]> granicus.if.org Git - postgresql/blob - configure
Update copyright git skip comment.
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.2devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 1996-2012, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 as_nl='
45 '
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87   as_unset=unset
88 else
89   as_unset=false
90 fi
91
92
93 # IFS
94 # We need space, tab and new line, in precisely that order.  Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" ""        $as_nl"
99
100 # Find who we are.  Look in the path if we contain no directory separator.
101 case $0 in
102   *[\\/]* ) as_myself=$0 ;;
103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106   IFS=$as_save_IFS
107   test -z "$as_dir" && as_dir=.
108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112      ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117   as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121   { (exit 1); exit 1; }
122 fi
123
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
141   as_expr=expr
142 else
143   as_expr=false
144 fi
145
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147   as_basename=basename
148 else
149   as_basename=false
150 fi
151
152
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156          X"$0" : 'X\(//\)$' \| \
157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 $as_echo X/"$0" |
159     sed '/^.*\/\([^/][^/]*\)\/*$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\/\)$/{
164             s//\1/
165             q
166           }
167           /^X\/\(\/\).*/{
168             s//\1/
169             q
170           }
171           s/.*/./; q'`
172
173 # CDPATH.
174 $as_unset CDPATH
175
176
177 if test "x$CONFIG_SHELL" = x; then
178   if (eval ":") 2>/dev/null; then
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183
184   if test $as_have_required = yes &&     (eval ":
185 (as_func_return () {
186   (exit \$1)
187 }
188 as_func_success () {
189   as_func_return 0
190 }
191 as_func_failure () {
192   as_func_return 1
193 }
194 as_func_ret_success () {
195   return 0
196 }
197 as_func_ret_failure () {
198   return 1
199 }
200
201 exitcode=0
202 if as_func_success; then
203   :
204 else
205   exitcode=1
206   echo as_func_success failed.
207 fi
208
209 if as_func_failure; then
210   exitcode=1
211   echo as_func_failure succeeded.
212 fi
213
214 if as_func_ret_success; then
215   :
216 else
217   exitcode=1
218   echo as_func_ret_success failed.
219 fi
220
221 if as_func_ret_failure; then
222   exitcode=1
223   echo as_func_ret_failure succeeded.
224 fi
225
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227   :
228 else
229   exitcode=1
230   echo positional parameters were not saved.
231 fi
232
233 test \$exitcode = 0) || { (exit 1); exit 1; }
234
235 (
236   as_lineno_1=\$LINENO
237   as_lineno_2=\$LINENO
238   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
241   :
242 else
243   as_candidate_shells=
244     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 do
247   IFS=$as_save_IFS
248   test -z "$as_dir" && as_dir=.
249   case $as_dir in
250          /*)
251            for as_base in sh bash ksh sh5; do
252              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253            done;;
254        esac
255 done
256 IFS=$as_save_IFS
257
258
259       for as_shell in $as_candidate_shells $SHELL; do
260          # Try only shells that exist, to save several forks.
261          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262                 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 _ASEOF
280 }; then
281   CONFIG_SHELL=$as_shell
282                as_have_required=yes
283                if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285   emulate sh
286   NULLCMD=:
287   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288   # is contrary to our usage.  Disable this feature.
289   alias -g '${1+"$@"}'='"$@"'
290   setopt NO_GLOB_SUBST
291 else
292   case `(set -o) 2>/dev/null` in
293   *posix*) set -o posix ;;
294 esac
295
296 fi
297
298
299 :
300 (as_func_return () {
301   (exit $1)
302 }
303 as_func_success () {
304   as_func_return 0
305 }
306 as_func_failure () {
307   as_func_return 1
308 }
309 as_func_ret_success () {
310   return 0
311 }
312 as_func_ret_failure () {
313   return 1
314 }
315
316 exitcode=0
317 if as_func_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_success failed.
322 fi
323
324 if as_func_failure; then
325   exitcode=1
326   echo as_func_failure succeeded.
327 fi
328
329 if as_func_ret_success; then
330   :
331 else
332   exitcode=1
333   echo as_func_ret_success failed.
334 fi
335
336 if as_func_ret_failure; then
337   exitcode=1
338   echo as_func_ret_failure succeeded.
339 fi
340
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
342   :
343 else
344   exitcode=1
345   echo positional parameters were not saved.
346 fi
347
348 test $exitcode = 0) || { (exit 1); exit 1; }
349
350 (
351   as_lineno_1=$LINENO
352   as_lineno_2=$LINENO
353   test "x$as_lineno_1" != "x$as_lineno_2" &&
354   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356 _ASEOF
357 }; then
358   break
359 fi
360
361 fi
362
363       done
364
365       if test "x$CONFIG_SHELL" != x; then
366   for as_var in BASH_ENV ENV
367         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368         done
369         export CONFIG_SHELL
370         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371 fi
372
373
374     if test $as_have_required = no; then
375   echo This script requires a shell more modern than all the
376       echo shells that I found on your system.  Please install a
377       echo modern shell, or manually run the script under such a
378       echo shell if you do have one.
379       { (exit 1); exit 1; }
380 fi
381
382
383 fi
384
385 fi
386
387
388
389 (eval "as_func_return () {
390   (exit \$1)
391 }
392 as_func_success () {
393   as_func_return 0
394 }
395 as_func_failure () {
396   as_func_return 1
397 }
398 as_func_ret_success () {
399   return 0
400 }
401 as_func_ret_failure () {
402   return 1
403 }
404
405 exitcode=0
406 if as_func_success; then
407   :
408 else
409   exitcode=1
410   echo as_func_success failed.
411 fi
412
413 if as_func_failure; then
414   exitcode=1
415   echo as_func_failure succeeded.
416 fi
417
418 if as_func_ret_success; then
419   :
420 else
421   exitcode=1
422   echo as_func_ret_success failed.
423 fi
424
425 if as_func_ret_failure; then
426   exitcode=1
427   echo as_func_ret_failure succeeded.
428 fi
429
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431   :
432 else
433   exitcode=1
434   echo positional parameters were not saved.
435 fi
436
437 test \$exitcode = 0") || {
438   echo No shell found that supports shell functions.
439   echo Please tell bug-autoconf@gnu.org about your system,
440   echo including any error possibly output before this message.
441   echo This can help us improve future autoconf versions.
442   echo Configuration will now proceed without shell functions.
443 }
444
445
446
447   as_lineno_1=$LINENO
448   as_lineno_2=$LINENO
449   test "x$as_lineno_1" != "x$as_lineno_2" &&
450   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453   # uniformly replaced by the line number.  The first 'sed' inserts a
454   # line-number line after each line using $LINENO; the second 'sed'
455   # does the real work.  The second script uses 'N' to pair each
456   # line-number line with the line containing $LINENO, and appends
457   # trailing '-' during substitution so that $LINENO is not a special
458   # case at line end.
459   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460   # scripts with optimization help from Paolo Bonzini.  Blame Lee
461   # E. McMahon (1931-1989) for sed's syntax.  :-)
462   sed -n '
463     p
464     /[$]LINENO/=
465   ' <$as_myself |
466     sed '
467       s/[$]LINENO.*/&-/
468       t lineno
469       b
470       :lineno
471       N
472       :loop
473       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474       t loop
475       s/-\n.*//
476     ' >$as_me.lineno &&
477   chmod +x "$as_me.lineno" ||
478     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479    { (exit 1); exit 1; }; }
480
481   # Don't try to exec as it changes $[0], causing all sort of problems
482   # (the dirname of $[0] is not the place where we might find the
483   # original and so on.  Autoconf is especially sensitive to this).
484   . "./$as_me.lineno"
485   # Exit status is that of the last command.
486   exit
487 }
488
489
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491   as_dirname=dirname
492 else
493   as_dirname=false
494 fi
495
496 ECHO_C= ECHO_N= ECHO_T=
497 case `echo -n x` in
498 -n*)
499   case `echo 'x\c'` in
500   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
501   *)   ECHO_C='\c';;
502   esac;;
503 *)
504   ECHO_N='-n';;
505 esac
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507    test "X`expr 00001 : '.*\(...\)'`" = X001; then
508   as_expr=expr
509 else
510   as_expr=false
511 fi
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -p'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -p'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -p'
533   fi
534 else
535   as_ln_s='cp -p'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p=:
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 if test -x / >/dev/null 2>&1; then
548   as_test_x='test -x'
549 else
550   if ls -dL / >/dev/null 2>&1; then
551     as_ls_L_option=L
552   else
553     as_ls_L_option=
554   fi
555   as_test_x='
556     eval sh -c '\''
557       if test -d "$1"; then
558         test -d "$1/.";
559       else
560         case $1 in
561         -*)set "./$1";;
562         esac;
563         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564         ???[sx]*):;;*)false;;esac;fi
565     '\'' sh
566   '
567 fi
568 as_executable_p=$as_test_x
569
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
578 exec 7<&0 </dev/null 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596 SHELL=${CONFIG_SHELL-/bin/sh}
597
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.2devel'
602 PACKAGE_STRING='PostgreSQL 9.2devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
604
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 #  include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #  include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_subst_vars='LTLIBOBJS
644 vpath_build
645 OSX
646 XSLTPROC
647 COLLATEINDEX
648 DOCBOOKSTYLE
649 have_docbook
650 JADE
651 NSGMLS
652 TCL_SHLIB_LD_LIBS
653 TCL_SHARED_BUILD
654 TCL_LIB_SPEC
655 TCL_LIBS
656 TCL_LIB_FILE
657 TCL_INCLUDE_SPEC
658 TCL_CONFIG_SH
659 TCLSH
660 XGETTEXT
661 MSGMERGE
662 MSGFMT
663 HAVE_POSIX_SIGNALS
664 LDAP_LIBS_BE
665 LDAP_LIBS_FE
666 PTHREAD_CFLAGS
667 PTHREAD_LIBS
668 PTHREAD_CC
669 acx_pthread_config
670 have_win32_dbghelp
671 HAVE_IPV6
672 LIBOBJS
673 OSSP_UUID_LIBS
674 ZIC
675 python_additional_libs
676 python_libspec
677 python_libdir
678 python_includespec
679 python_configdir
680 python_version
681 python_majorversion
682 PYTHON
683 perl_embed_ldflags
684 perl_useshrplib
685 perl_privlibexp
686 perl_archlibexp
687 PERL
688 FLEXFLAGS
689 FLEX
690 BISONFLAGS
691 BISON
692 MKDIR_P
693 AWK
694 LN_S
695 TAR
696 WINDRES
697 DLLWRAP
698 DLLTOOL
699 AR
700 STRIP_SHARED_LIB
701 STRIP_STATIC_LIB
702 STRIP
703 RANLIB
704 ld_R_works
705 with_gnu_ld
706 LD
707 LDFLAGS_SL
708 LDFLAGS_EX
709 ELF_SYS
710 EGREP
711 GREP
712 with_zlib
713 with_system_tzdata
714 with_libxslt
715 with_libxml
716 XML2_CONFIG
717 with_ossp_uuid
718 with_selinux
719 with_openssl
720 with_bonjour
721 with_ldap
722 with_pam
723 krb_srvtab
724 with_krb5
725 with_gssapi
726 with_python
727 with_perl
728 with_tcl
729 enable_thread_safety
730 INCLUDES
731 autodepend
732 TAS
733 GCC
734 CPP
735 SUN_STUDIO_CC
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 enable_dtrace
744 DTRACEFLAGS
745 DTRACE
746 enable_coverage
747 GENHTML
748 LCOV
749 GCOV
750 enable_profiling
751 enable_debug
752 enable_rpath
753 enable_shared
754 default_port
755 WANTED_LANGUAGES
756 enable_nls
757 PORTNAME
758 host_os
759 host_vendor
760 host_cpu
761 host
762 build_os
763 build_vendor
764 build_cpu
765 build
766 PG_MAJORVERSION
767 configure_args
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 with_template
809 with_includes
810 with_libraries
811 with_libs
812 enable_integer_datetimes
813 enable_nls
814 with_pgport
815 enable_shared
816 enable_rpath
817 enable_spinlocks
818 enable_debug
819 enable_profiling
820 enable_coverage
821 enable_dtrace
822 with_blocksize
823 with_segsize
824 with_wal_blocksize
825 with_wal_segsize
826 with_CC
827 enable_depend
828 enable_cassert
829 enable_thread_safety
830 with_tcl
831 with_tclconfig
832 with_perl
833 with_python
834 with_gssapi
835 with_krb5
836 with_krb_srvnam
837 with_pam
838 with_ldap
839 with_bonjour
840 with_openssl
841 with_selinux
842 with_readline
843 with_libedit_preferred
844 with_ossp_uuid
845 with_libxml
846 with_libxslt
847 with_system_tzdata
848 with_zlib
849 with_gnu_ld
850 enable_largefile
851 enable_float4_byval
852 enable_float8_byval
853 '
854       ac_precious_vars='build_alias
855 host_alias
856 target_alias
857 CC
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
862 CPP
863 LDFLAGS_EX
864 LDFLAGS_SL
865 DOCBOOKSTYLE'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
915
916 ac_prev=
917 ac_dashdash=
918 for ac_option
919 do
920   # If the previous option needs an argument, assign it.
921   if test -n "$ac_prev"; then
922     eval $ac_prev=\$ac_option
923     ac_prev=
924     continue
925   fi
926
927   case $ac_option in
928   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929   *)    ac_optarg=yes ;;
930   esac
931
932   # Accept the important Cygnus configure options, so we can diagnose typos.
933
934   case $ac_dashdash$ac_option in
935   --)
936     ac_dashdash=yes ;;
937
938   -bindir | --bindir | --bindi | --bind | --bin | --bi)
939     ac_prev=bindir ;;
940   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941     bindir=$ac_optarg ;;
942
943   -build | --build | --buil | --bui | --bu)
944     ac_prev=build_alias ;;
945   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946     build_alias=$ac_optarg ;;
947
948   -cache-file | --cache-file | --cache-fil | --cache-fi \
949   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950     ac_prev=cache_file ;;
951   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953     cache_file=$ac_optarg ;;
954
955   --config-cache | -C)
956     cache_file=config.cache ;;
957
958   -datadir | --datadir | --datadi | --datad)
959     ac_prev=datadir ;;
960   -datadir=* | --datadir=* | --datadi=* | --datad=*)
961     datadir=$ac_optarg ;;
962
963   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964   | --dataroo | --dataro | --datar)
965     ac_prev=datarootdir ;;
966   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968     datarootdir=$ac_optarg ;;
969
970   -disable-* | --disable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975    { (exit 1); exit 1; }; }
976     ac_useropt_orig=$ac_useropt
977     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978     case $ac_user_opts in
979       *"
980 "enable_$ac_useropt"
981 "*) ;;
982       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983          ac_unrecognized_sep=', ';;
984     esac
985     eval enable_$ac_useropt=no ;;
986
987   -docdir | --docdir | --docdi | --doc | --do)
988     ac_prev=docdir ;;
989   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990     docdir=$ac_optarg ;;
991
992   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993     ac_prev=dvidir ;;
994   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995     dvidir=$ac_optarg ;;
996
997   -enable-* | --enable-*)
998     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_useropt_orig=$ac_useropt
1004     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005     case $ac_user_opts in
1006       *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010          ac_unrecognized_sep=', ';;
1011     esac
1012     eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016   | --exec | --exe | --ex)
1017     ac_prev=exec_prefix ;;
1018   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020   | --exec=* | --exe=* | --ex=*)
1021     exec_prefix=$ac_optarg ;;
1022
1023   -gas | --gas | --ga | --g)
1024     # Obsolete; use --with-gas.
1025     with_gas=yes ;;
1026
1027   -help | --help | --hel | --he | -h)
1028     ac_init_help=long ;;
1029   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030     ac_init_help=recursive ;;
1031   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032     ac_init_help=short ;;
1033
1034   -host | --host | --hos | --ho)
1035     ac_prev=host_alias ;;
1036   -host=* | --host=* | --hos=* | --ho=*)
1037     host_alias=$ac_optarg ;;
1038
1039   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040     ac_prev=htmldir ;;
1041   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042   | --ht=*)
1043     htmldir=$ac_optarg ;;
1044
1045   -includedir | --includedir | --includedi | --included | --include \
1046   | --includ | --inclu | --incl | --inc)
1047     ac_prev=includedir ;;
1048   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049   | --includ=* | --inclu=* | --incl=* | --inc=*)
1050     includedir=$ac_optarg ;;
1051
1052   -infodir | --infodir | --infodi | --infod | --info | --inf)
1053     ac_prev=infodir ;;
1054   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055     infodir=$ac_optarg ;;
1056
1057   -libdir | --libdir | --libdi | --libd)
1058     ac_prev=libdir ;;
1059   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060     libdir=$ac_optarg ;;
1061
1062   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063   | --libexe | --libex | --libe)
1064     ac_prev=libexecdir ;;
1065   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066   | --libexe=* | --libex=* | --libe=*)
1067     libexecdir=$ac_optarg ;;
1068
1069   -localedir | --localedir | --localedi | --localed | --locale)
1070     ac_prev=localedir ;;
1071   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072     localedir=$ac_optarg ;;
1073
1074   -localstatedir | --localstatedir | --localstatedi | --localstated \
1075   | --localstate | --localstat | --localsta | --localst | --locals)
1076     ac_prev=localstatedir ;;
1077   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079     localstatedir=$ac_optarg ;;
1080
1081   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082     ac_prev=mandir ;;
1083   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084     mandir=$ac_optarg ;;
1085
1086   -nfp | --nfp | --nf)
1087     # Obsolete; use --without-fp.
1088     with_fp=no ;;
1089
1090   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091   | --no-cr | --no-c | -n)
1092     no_create=yes ;;
1093
1094   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096     no_recursion=yes ;;
1097
1098   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100   | --oldin | --oldi | --old | --ol | --o)
1101     ac_prev=oldincludedir ;;
1102   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105     oldincludedir=$ac_optarg ;;
1106
1107   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108     ac_prev=prefix ;;
1109   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110     prefix=$ac_optarg ;;
1111
1112   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113   | --program-pre | --program-pr | --program-p)
1114     ac_prev=program_prefix ;;
1115   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117     program_prefix=$ac_optarg ;;
1118
1119   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120   | --program-suf | --program-su | --program-s)
1121     ac_prev=program_suffix ;;
1122   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124     program_suffix=$ac_optarg ;;
1125
1126   -program-transform-name | --program-transform-name \
1127   | --program-transform-nam | --program-transform-na \
1128   | --program-transform-n | --program-transform- \
1129   | --program-transform | --program-transfor \
1130   | --program-transfo | --program-transf \
1131   | --program-trans | --program-tran \
1132   | --progr-tra | --program-tr | --program-t)
1133     ac_prev=program_transform_name ;;
1134   -program-transform-name=* | --program-transform-name=* \
1135   | --program-transform-nam=* | --program-transform-na=* \
1136   | --program-transform-n=* | --program-transform-=* \
1137   | --program-transform=* | --program-transfor=* \
1138   | --program-transfo=* | --program-transf=* \
1139   | --program-trans=* | --program-tran=* \
1140   | --progr-tra=* | --program-tr=* | --program-t=*)
1141     program_transform_name=$ac_optarg ;;
1142
1143   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144     ac_prev=pdfdir ;;
1145   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146     pdfdir=$ac_optarg ;;
1147
1148   -psdir | --psdir | --psdi | --psd | --ps)
1149     ac_prev=psdir ;;
1150   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151     psdir=$ac_optarg ;;
1152
1153   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154   | -silent | --silent | --silen | --sile | --sil)
1155     silent=yes ;;
1156
1157   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158     ac_prev=sbindir ;;
1159   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160   | --sbi=* | --sb=*)
1161     sbindir=$ac_optarg ;;
1162
1163   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165   | --sharedst | --shareds | --shared | --share | --shar \
1166   | --sha | --sh)
1167     ac_prev=sharedstatedir ;;
1168   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171   | --sha=* | --sh=*)
1172     sharedstatedir=$ac_optarg ;;
1173
1174   -site | --site | --sit)
1175     ac_prev=site ;;
1176   -site=* | --site=* | --sit=*)
1177     site=$ac_optarg ;;
1178
1179   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180     ac_prev=srcdir ;;
1181   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182     srcdir=$ac_optarg ;;
1183
1184   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185   | --syscon | --sysco | --sysc | --sys | --sy)
1186     ac_prev=sysconfdir ;;
1187   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189     sysconfdir=$ac_optarg ;;
1190
1191   -target | --target | --targe | --targ | --tar | --ta | --t)
1192     ac_prev=target_alias ;;
1193   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194     target_alias=$ac_optarg ;;
1195
1196   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197     verbose=yes ;;
1198
1199   -version | --version | --versio | --versi | --vers | -V)
1200     ac_init_version=: ;;
1201
1202   -with-* | --with-*)
1203     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1207    { (exit 1); exit 1; }; }
1208     ac_useropt_orig=$ac_useropt
1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210     case $ac_user_opts in
1211       *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215          ac_unrecognized_sep=', ';;
1216     esac
1217     eval with_$ac_useropt=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1224    { (exit 1); exit 1; }; }
1225     ac_useropt_orig=$ac_useropt
1226     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227     case $ac_user_opts in
1228       *"
1229 "with_$ac_useropt"
1230 "*) ;;
1231       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232          ac_unrecognized_sep=', ';;
1233     esac
1234     eval with_$ac_useropt=no ;;
1235
1236   --x)
1237     # Obsolete; use --with-x.
1238     with_x=yes ;;
1239
1240   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241   | --x-incl | --x-inc | --x-in | --x-i)
1242     ac_prev=x_includes ;;
1243   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245     x_includes=$ac_optarg ;;
1246
1247   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249     ac_prev=x_libraries ;;
1250   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252     x_libraries=$ac_optarg ;;
1253
1254   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256    { (exit 1); exit 1; }; }
1257     ;;
1258
1259   *=*)
1260     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264    { (exit 1); exit 1; }; }
1265     eval $ac_envvar=\$ac_optarg
1266     export $ac_envvar ;;
1267
1268   *)
1269     # FIXME: should be removed in autoconf 3.0.
1270     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274     ;;
1275
1276   esac
1277 done
1278
1279 if test -n "$ac_prev"; then
1280   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1282    { (exit 1); exit 1; }; }
1283 fi
1284
1285 if test -n "$ac_unrecognized_opts"; then
1286   case $enable_option_checking in
1287     no) ;;
1288     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1289    { (exit 1); exit 1; }; } ;;
1290     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291   esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296                 datadir sysconfdir sharedstatedir localstatedir includedir \
1297                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298                 libdir localedir mandir
1299 do
1300   eval ac_val=\$$ac_var
1301   # Remove trailing slashes.
1302   case $ac_val in
1303     */ )
1304       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305       eval $ac_var=\$ac_val;;
1306   esac
1307   # Be sure to have absolute directory names.
1308   case $ac_val in
1309     [\\/$]* | ?:[\\/]* )  continue;;
1310     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311   esac
1312   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313    { (exit 1); exit 1; }; }
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325   if test "x$build_alias" = x; then
1326     cross_compiling=maybe
1327     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328     If a cross compiler is detected then cross compile mode will be used." >&2
1329   elif test "x$build_alias" != "x$host_alias"; then
1330     cross_compiling=yes
1331   fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1344    { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1347    { (exit 1); exit 1; }; }
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352   ac_srcdir_defaulted=yes
1353   # Try the directory containing this script, then the parent directory.
1354   ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356          X"$as_myself" : 'X\(//\)[^/]' \| \
1357          X"$as_myself" : 'X\(//\)$' \| \
1358          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)[^/].*/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\/\)$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\).*/{
1373             s//\1/
1374             q
1375           }
1376           s/.*/./; q'`
1377   srcdir=$ac_confdir
1378   if test ! -r "$srcdir/$ac_unique_file"; then
1379     srcdir=..
1380   fi
1381 else
1382   ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387    { (exit 1); exit 1; }; }
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1392    { (exit 1); exit 1; }; }
1393         pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396   srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_env_${ac_var}_value=\$${ac_var}
1407   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1410
1411 #
1412 # Report the --help message.
1413 #
1414 if test "$ac_init_help" = "long"; then
1415   # Omit some internal or obsolete options to make the list less imposing.
1416   # This message is too long to be a string in the A/UX 3.1 sh.
1417   cat <<_ACEOF
1418 \`configure' configures PostgreSQL 9.2devel to adapt to many kinds of systems.
1419
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE.  See below for descriptions of some of the useful variables.
1424
1425 Defaults for the options are specified in brackets.
1426
1427 Configuration:
1428   -h, --help              display this help and exit
1429       --help=short        display options specific to this package
1430       --help=recursive    display the short help of all the included packages
1431   -V, --version           display version information and exit
1432   -q, --quiet, --silent   do not print \`checking...' messages
1433       --cache-file=FILE   cache test results in FILE [disabled]
1434   -C, --config-cache      alias for \`--cache-file=config.cache'
1435   -n, --no-create         do not create output files
1436       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1437
1438 Installation directories:
1439   --prefix=PREFIX         install architecture-independent files in PREFIX
1440                           [$ac_default_prefix]
1441   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1442                           [PREFIX]
1443
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1448
1449 For better control, use the options below.
1450
1451 Fine tuning of the installation directories:
1452   --bindir=DIR            user executables [EPREFIX/bin]
1453   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1454   --libexecdir=DIR        program executables [EPREFIX/libexec]
1455   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1456   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1457   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1458   --libdir=DIR            object code libraries [EPREFIX/lib]
1459   --includedir=DIR        C header files [PREFIX/include]
1460   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1461   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1462   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1463   --infodir=DIR           info documentation [DATAROOTDIR/info]
1464   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1465   --mandir=DIR            man documentation [DATAROOTDIR/man]
1466   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1467   --htmldir=DIR           html documentation [DOCDIR]
1468   --dvidir=DIR            dvi documentation [DOCDIR]
1469   --pdfdir=DIR            pdf documentation [DOCDIR]
1470   --psdir=DIR             ps documentation [DOCDIR]
1471 _ACEOF
1472
1473   cat <<\_ACEOF
1474
1475 System types:
1476   --build=BUILD     configure for building on BUILD [guessed]
1477   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482   case $ac_init_help in
1483      short | recursive ) echo "Configuration of PostgreSQL 9.2devel:";;
1484    esac
1485   cat <<\_ACEOF
1486
1487 Optional Features:
1488   --disable-option-checking  ignore unrecognized --enable/--with options
1489   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1490   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1491   --disable-integer-datetimes
1492                           disable 64-bit integer date/time support
1493   --enable-nls[=LANGUAGES]
1494                           enable Native Language Support
1495   --disable-shared        do not build shared libraries
1496   --disable-rpath         do not embed shared library search path in
1497                           executables
1498   --disable-spinlocks     do not use spinlocks
1499   --enable-debug          build with debugging symbols (-g)
1500   --enable-profiling      build with profiling enabled
1501   --enable-coverage       build with coverage testing instrumentation
1502   --enable-dtrace         build with DTrace support
1503   --enable-depend         turn on automatic dependency tracking
1504   --enable-cassert        enable assertion checks (for debugging)
1505   --disable-thread-safety disable thread-safety in client libraries
1506   --disable-largefile     omit support for large files
1507   --disable-float4-byval  disable float4 passed by value
1508   --disable-float8-byval  disable float8 passed by value
1509
1510 Optional Packages:
1511   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1512   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1513   --with-template=NAME    override operating system template
1514   --with-includes=DIRS    look for additional header files in DIRS
1515   --with-libraries=DIRS   look for additional libraries in DIRS
1516   --with-libs=DIRS        alternative spelling of --with-libraries
1517   --with-pgport=PORTNUM   set default port number [5432]
1518   --with-blocksize=BLOCKSIZE
1519                           set table block size in kB [8]
1520   --with-segsize=SEGSIZE  set table segment size in GB [1]
1521   --with-wal-blocksize=BLOCKSIZE
1522                           set WAL block size in kB [8]
1523   --with-wal-segsize=SEGSIZE
1524                           set WAL segment size in MB [16]
1525   --with-CC=CMD           set compiler (deprecated)
1526   --with-tcl              build Tcl modules (PL/Tcl)
1527   --with-tclconfig=DIR    tclConfig.sh is in DIR
1528   --with-perl             build Perl modules (PL/Perl)
1529   --with-python           build Python modules (PL/Python)
1530   --with-gssapi           build with GSSAPI support
1531   --with-krb5             build with Kerberos 5 support
1532   --with-krb-srvnam=NAME  default service principal name in Kerberos
1533                           [postgres]
1534   --with-pam              build with PAM support
1535   --with-ldap             build with LDAP support
1536   --with-bonjour          build with Bonjour support
1537   --with-openssl          build with OpenSSL support
1538   --with-selinux          build with SELinux support
1539   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1540   --with-libedit-preferred
1541                           prefer BSD Libedit over GNU Readline
1542   --with-ossp-uuid        build contrib/uuid-ossp, requires OSSP UUID library
1543   --with-libxml           build with XML support
1544   --with-libxslt          use XSLT support when building contrib/xml2
1545   --with-system-tzdata=DIR
1546                           use system time zone data in DIR
1547   --without-zlib          do not use Zlib
1548   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1549
1550 Some influential environment variables:
1551   CC          C compiler command
1552   CFLAGS      C compiler flags
1553   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1554               nonstandard directory <lib dir>
1555   LIBS        libraries to pass to the linker, e.g. -l<library>
1556   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557               you have headers in a nonstandard directory <include dir>
1558   CPP         C preprocessor
1559   LDFLAGS_EX  extra linker flags for linking executables only
1560   LDFLAGS_SL  extra linker flags for linking shared libraries only
1561   DOCBOOKSTYLE
1562               location of DocBook stylesheets
1563
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1566
1567 Report bugs to <pgsql-bugs@postgresql.org>.
1568 _ACEOF
1569 ac_status=$?
1570 fi
1571
1572 if test "$ac_init_help" = "recursive"; then
1573   # If there are subdirs, report their specific --help.
1574   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575     test -d "$ac_dir" ||
1576       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577       continue
1578     ac_builddir=.
1579
1580 case "$ac_dir" in
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *)
1583   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584   # A ".." for each directory in $ac_dir_suffix.
1585   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586   case $ac_top_builddir_sub in
1587   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589   esac ;;
1590 esac
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1595
1596 case $srcdir in
1597   .)  # We are building in place.
1598     ac_srcdir=.
1599     ac_top_srcdir=$ac_top_builddir_sub
1600     ac_abs_top_srcdir=$ac_pwd ;;
1601   [\\/]* | ?:[\\/]* )  # Absolute name.
1602     ac_srcdir=$srcdir$ac_dir_suffix;
1603     ac_top_srcdir=$srcdir
1604     ac_abs_top_srcdir=$srcdir ;;
1605   *) # Relative name.
1606     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607     ac_top_srcdir=$ac_top_build_prefix$srcdir
1608     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 esac
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612     cd "$ac_dir" || { ac_status=$?; continue; }
1613     # Check for guested configure.
1614     if test -f "$ac_srcdir/configure.gnu"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617     elif test -f "$ac_srcdir/configure"; then
1618       echo &&
1619       $SHELL "$ac_srcdir/configure" --help=recursive
1620     else
1621       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622     fi || ac_status=$?
1623     cd "$ac_pwd" || { ac_status=$?; break; }
1624   done
1625 fi
1626
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1629   cat <<\_ACEOF
1630 PostgreSQL configure 9.2devel
1631 generated by GNU Autoconf 2.63
1632
1633 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1634 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1637
1638 Copyright (c) 1996-2011, PostgreSQL Global Development Group
1639 _ACEOF
1640   exit
1641 fi
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1645
1646 It was created by PostgreSQL $as_me 9.2devel, which was
1647 generated by GNU Autoconf 2.63.  Invocation command line was
1648
1649   $ $0 $@
1650
1651 _ACEOF
1652 exec 5>>config.log
1653 {
1654 cat <<_ASUNAME
1655 ## --------- ##
1656 ## Platform. ##
1657 ## --------- ##
1658
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1667
1668 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1669 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1672 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1673 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1674 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1675
1676 _ASUNAME
1677
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1680 do
1681   IFS=$as_save_IFS
1682   test -z "$as_dir" && as_dir=.
1683   $as_echo "PATH: $as_dir"
1684 done
1685 IFS=$as_save_IFS
1686
1687 } >&5
1688
1689 cat >&5 <<_ACEOF
1690
1691
1692 ## ----------- ##
1693 ## Core tests. ##
1694 ## ----------- ##
1695
1696 _ACEOF
1697
1698
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1704 ac_configure_args=
1705 ac_configure_args0=
1706 ac_configure_args1=
1707 ac_must_keep_next=false
1708 for ac_pass in 1 2
1709 do
1710   for ac_arg
1711   do
1712     case $ac_arg in
1713     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715     | -silent | --silent | --silen | --sile | --sil)
1716       continue ;;
1717     *\'*)
1718       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719     esac
1720     case $ac_pass in
1721     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722     2)
1723       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724       if test $ac_must_keep_next = true; then
1725         ac_must_keep_next=false # Got value, back to normal.
1726       else
1727         case $ac_arg in
1728           *=* | --config-cache | -C | -disable-* | --disable-* \
1729           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731           | -with-* | --with-* | -without-* | --without-* | --x)
1732             case "$ac_configure_args0 " in
1733               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734             esac
1735             ;;
1736           -* ) ac_must_keep_next=true ;;
1737         esac
1738       fi
1739       ac_configure_args="$ac_configure_args '$ac_arg'"
1740       ;;
1741     esac
1742   done
1743 done
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log.  We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753   # Save into config.log some information that might help in debugging.
1754   {
1755     echo
1756
1757     cat <<\_ASBOX
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1761 _ASBOX
1762     echo
1763     # The following way of writing the cache mishandles newlines in values,
1764 (
1765   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766     eval ac_val=\$$ac_var
1767     case $ac_val in #(
1768     *${as_nl}*)
1769       case $ac_var in #(
1770       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1772       esac
1773       case $ac_var in #(
1774       _ | IFS | as_nl) ;; #(
1775       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1776       *) $as_unset $ac_var ;;
1777       esac ;;
1778     esac
1779   done
1780   (set) 2>&1 |
1781     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782     *${as_nl}ac_space=\ *)
1783       sed -n \
1784         "s/'\''/'\''\\\\'\'''\''/g;
1785           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786       ;; #(
1787     *)
1788       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1789       ;;
1790     esac |
1791     sort
1792 )
1793     echo
1794
1795     cat <<\_ASBOX
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1799 _ASBOX
1800     echo
1801     for ac_var in $ac_subst_vars
1802     do
1803       eval ac_val=\$$ac_var
1804       case $ac_val in
1805       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806       esac
1807       $as_echo "$ac_var='\''$ac_val'\''"
1808     done | sort
1809     echo
1810
1811     if test -n "$ac_subst_files"; then
1812       cat <<\_ASBOX
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1816 _ASBOX
1817       echo
1818       for ac_var in $ac_subst_files
1819       do
1820         eval ac_val=\$$ac_var
1821         case $ac_val in
1822         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823         esac
1824         $as_echo "$ac_var='\''$ac_val'\''"
1825       done | sort
1826       echo
1827     fi
1828
1829     if test -s confdefs.h; then
1830       cat <<\_ASBOX
1831 ## ----------- ##
1832 ## confdefs.h. ##
1833 ## ----------- ##
1834 _ASBOX
1835       echo
1836       cat confdefs.h
1837       echo
1838     fi
1839     test "$ac_signal" != 0 &&
1840       $as_echo "$as_me: caught signal $ac_signal"
1841     $as_echo "$as_me: exit $exit_status"
1842   } >&5
1843   rm -f core *.core core.conftest.* &&
1844     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845     exit $exit_status
1846 ' 0
1847 for ac_signal in 1 2 13 15; do
1848   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 done
1850 ac_signal=0
1851
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1854
1855 # Predefined preprocessor variables.
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 _ACEOF
1880
1881
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer an explicitly selected file to automatically selected ones.
1884 ac_site_file1=NONE
1885 ac_site_file2=NONE
1886 if test -n "$CONFIG_SITE"; then
1887   ac_site_file1=$CONFIG_SITE
1888 elif test "x$prefix" != xNONE; then
1889   ac_site_file1=$prefix/share/config.site
1890   ac_site_file2=$prefix/etc/config.site
1891 else
1892   ac_site_file1=$ac_default_prefix/share/config.site
1893   ac_site_file2=$ac_default_prefix/etc/config.site
1894 fi
1895 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1896 do
1897   test "x$ac_site_file" = xNONE && continue
1898   if test -r "$ac_site_file"; then
1899     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1901     sed 's/^/| /' "$ac_site_file" >&5
1902     . "$ac_site_file"
1903   fi
1904 done
1905
1906 if test -r "$cache_file"; then
1907   # Some versions of bash will fail to source /dev/null (special
1908   # files actually), so we avoid doing that.
1909   if test -f "$cache_file"; then
1910     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 $as_echo "$as_me: loading cache $cache_file" >&6;}
1912     case $cache_file in
1913       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914       *)                      . "./$cache_file";;
1915     esac
1916   fi
1917 else
1918   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 $as_echo "$as_me: creating cache $cache_file" >&6;}
1920   >$cache_file
1921 fi
1922
1923 # Check that the precious variables saved in the cache have kept the same
1924 # value.
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928   eval ac_new_set=\$ac_env_${ac_var}_set
1929   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930   eval ac_new_val=\$ac_env_${ac_var}_value
1931   case $ac_old_set,$ac_new_set in
1932     set,)
1933       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935       ac_cache_corrupted=: ;;
1936     ,set)
1937       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939       ac_cache_corrupted=: ;;
1940     ,);;
1941     *)
1942       if test "x$ac_old_val" != "x$ac_new_val"; then
1943         # differences in whitespace do not lead to failure.
1944         ac_old_val_w=`echo x $ac_old_val`
1945         ac_new_val_w=`echo x $ac_new_val`
1946         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1947           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949           ac_cache_corrupted=:
1950         else
1951           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1952 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1953           eval $ac_var=\$ac_old_val
1954         fi
1955         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1956 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1957         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1958 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1959       fi;;
1960   esac
1961   # Pass precious variables to config.status.
1962   if test "$ac_new_set" = set; then
1963     case $ac_new_val in
1964     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965     *) ac_arg=$ac_var=$ac_new_val ;;
1966     esac
1967     case " $ac_configure_args " in
1968       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1969       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970     esac
1971   fi
1972 done
1973 if $ac_cache_corrupted; then
1974   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1976   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007 ac_ext=c
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
2013
2014
2015
2016
2017
2018 ac_aux_dir=
2019 for ac_dir in config "$srcdir"/config; do
2020   if test -f "$ac_dir/install-sh"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/install-sh -c"
2023     break
2024   elif test -f "$ac_dir/install.sh"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/install.sh -c"
2027     break
2028   elif test -f "$ac_dir/shtool"; then
2029     ac_aux_dir=$ac_dir
2030     ac_install_sh="$ac_aux_dir/shtool install -c"
2031     break
2032   fi
2033 done
2034 if test -z "$ac_aux_dir"; then
2035   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2036 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2037    { (exit 1); exit 1; }; }
2038 fi
2039
2040 # These three variables are undocumented and unsupported,
2041 # and are intended to be withdrawn in a future Autoconf release.
2042 # They can cause serious problems if a builder's source tree is in a directory
2043 # whose full name contains unusual characters.
2044 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2045 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2046 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2047
2048
2049
2050 configure_args=$ac_configure_args
2051
2052
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PG_VERSION "$PACKAGE_VERSION"
2056 _ACEOF
2057
2058 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2059
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2063 _ACEOF
2064
2065
2066 # Make sure we can run config.sub.
2067 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2068   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2069 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2070    { (exit 1); exit 1; }; }
2071
2072 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2073 $as_echo_n "checking build system type... " >&6; }
2074 if test "${ac_cv_build+set}" = set; then
2075   $as_echo_n "(cached) " >&6
2076 else
2077   ac_build_alias=$build_alias
2078 test "x$ac_build_alias" = x &&
2079   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2080 test "x$ac_build_alias" = x &&
2081   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2082 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2083    { (exit 1); exit 1; }; }
2084 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2085   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2086 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2087    { (exit 1); exit 1; }; }
2088
2089 fi
2090 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2091 $as_echo "$ac_cv_build" >&6; }
2092 case $ac_cv_build in
2093 *-*-*) ;;
2094 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2095 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2096    { (exit 1); exit 1; }; };;
2097 esac
2098 build=$ac_cv_build
2099 ac_save_IFS=$IFS; IFS='-'
2100 set x $ac_cv_build
2101 shift
2102 build_cpu=$1
2103 build_vendor=$2
2104 shift; shift
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2107 build_os=$*
2108 IFS=$ac_save_IFS
2109 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2110
2111
2112 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2113 $as_echo_n "checking host system type... " >&6; }
2114 if test "${ac_cv_host+set}" = set; then
2115   $as_echo_n "(cached) " >&6
2116 else
2117   if test "x$host_alias" = x; then
2118   ac_cv_host=$ac_cv_build
2119 else
2120   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2121     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2122 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2123    { (exit 1); exit 1; }; }
2124 fi
2125
2126 fi
2127 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2128 $as_echo "$ac_cv_host" >&6; }
2129 case $ac_cv_host in
2130 *-*-*) ;;
2131 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2132 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2133    { (exit 1); exit 1; }; };;
2134 esac
2135 host=$ac_cv_host
2136 ac_save_IFS=$IFS; IFS='-'
2137 set x $ac_cv_host
2138 shift
2139 host_cpu=$1
2140 host_vendor=$2
2141 shift; shift
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2144 host_os=$*
2145 IFS=$ac_save_IFS
2146 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2147
2148
2149
2150 template=
2151 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2152 $as_echo_n "checking which template to use... " >&6; }
2153
2154
2155
2156
2157 # Check whether --with-template was given.
2158 if test "${with_template+set}" = set; then
2159   withval=$with_template;
2160   case $withval in
2161     yes)
2162       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2163 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2164    { (exit 1); exit 1; }; }
2165       ;;
2166     no)
2167       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2168 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2169    { (exit 1); exit 1; }; }
2170       ;;
2171     *)
2172
2173   case $withval in
2174     list)   echo; ls "$srcdir/src/template"; exit;;
2175     *)      if test -f "$srcdir/src/template/$with_template" ; then
2176               template=$withval
2177             else
2178               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2179 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2180    { (exit 1); exit 1; }; }
2181             fi;;
2182   esac
2183
2184       ;;
2185   esac
2186
2187 else
2188
2189 # --with-template not given
2190
2191 case $host_os in
2192      aix*) template=aix ;;
2193     bsdi*) template=bsdi ;;
2194   cygwin*) template=cygwin ;;
2195   darwin*) template=darwin ;;
2196 dragonfly*) template=netbsd ;;
2197     dgux*) template=dgux ;;
2198  freebsd*) template=freebsd ;;
2199     hpux*) template=hpux ;;
2200     irix*) template=irix ;;
2201  linux*|gnu*|k*bsd*-gnu)
2202            template=linux ;;
2203    mingw*) template=win32 ;;
2204   netbsd*) template=netbsd ;;
2205 nextstep*) template=nextstep ;;
2206  openbsd*) template=openbsd ;;
2207      osf*) template=osf ;;
2208      sco*) template=sco ;;
2209  solaris*) template=solaris ;;
2210    sunos*) template=sunos4 ;;
2211  sysv4.2*)
2212         case $host_vendor in
2213           univel) template=univel ;;
2214         esac ;;
2215    sysv4*) template=svr4 ;;
2216    sysv5*) template=unixware ;;
2217   ultrix*) template=ultrix4 ;;
2218 esac
2219
2220   if test x"$template" = x"" ; then
2221     { { $as_echo "$as_me:$LINENO: error:
2222 *******************************************************************
2223 PostgreSQL has apparently not been ported to your platform yet.
2224 To try a manual configuration, look into the src/template directory
2225 for a similar platform and use the '--with-template=' option.
2226
2227 Please also contact <pgsql-bugs@postgresql.org> to see about
2228 rectifying this.  Include the above 'checking host system type...'
2229 line.
2230 *******************************************************************
2231 " >&5
2232 $as_echo "$as_me: error:
2233 *******************************************************************
2234 PostgreSQL has apparently not been ported to your platform yet.
2235 To try a manual configuration, look into the src/template directory
2236 for a similar platform and use the '--with-template=' option.
2237
2238 Please also contact <pgsql-bugs@postgresql.org> to see about
2239 rectifying this.  Include the above 'checking host system type...'
2240 line.
2241 *******************************************************************
2242 " >&2;}
2243    { (exit 1); exit 1; }; }
2244   fi
2245
2246
2247 fi
2248
2249
2250
2251 { $as_echo "$as_me:$LINENO: result: $template" >&5
2252 $as_echo "$template" >&6; }
2253
2254 PORTNAME=$template
2255
2256
2257 # Initialize default assumption that we do not need separate assembly code
2258 # for TAS (test-and-set).  This can be overridden by the template file
2259 # when it's executed.
2260 need_tas=no
2261 tas_file=dummy.s
2262
2263
2264
2265 ##
2266 ## Command line options
2267 ##
2268
2269 #
2270 # Add non-standard directories to the include path
2271 #
2272
2273
2274
2275 # Check whether --with-includes was given.
2276 if test "${with_includes+set}" = set; then
2277   withval=$with_includes;
2278   case $withval in
2279     yes)
2280       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2281 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2282    { (exit 1); exit 1; }; }
2283       ;;
2284     no)
2285       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2286 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2287    { (exit 1); exit 1; }; }
2288       ;;
2289     *)
2290
2291       ;;
2292   esac
2293
2294 fi
2295
2296
2297
2298
2299 #
2300 # Add non-standard directories to the library search path
2301 #
2302
2303
2304
2305 # Check whether --with-libraries was given.
2306 if test "${with_libraries+set}" = set; then
2307   withval=$with_libraries;
2308   case $withval in
2309     yes)
2310       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2311 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2312    { (exit 1); exit 1; }; }
2313       ;;
2314     no)
2315       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2316 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2317    { (exit 1); exit 1; }; }
2318       ;;
2319     *)
2320       LIBRARY_DIRS=$withval
2321       ;;
2322   esac
2323
2324 fi
2325
2326
2327
2328
2329
2330
2331 # Check whether --with-libs was given.
2332 if test "${with_libs+set}" = set; then
2333   withval=$with_libs;
2334   case $withval in
2335     yes)
2336       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2337 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2338    { (exit 1); exit 1; }; }
2339       ;;
2340     no)
2341       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2342 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2343    { (exit 1); exit 1; }; }
2344       ;;
2345     *)
2346       LIBRARY_DIRS=$withval
2347       ;;
2348   esac
2349
2350 fi
2351
2352
2353
2354
2355 #
2356 # 64-bit integer date/time storage: enabled by default.
2357 #
2358 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2359 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2360
2361
2362 # Check whether --enable-integer-datetimes was given.
2363 if test "${enable_integer_datetimes+set}" = set; then
2364   enableval=$enable_integer_datetimes;
2365   case $enableval in
2366     yes)
2367
2368 cat >>confdefs.h <<\_ACEOF
2369 #define USE_INTEGER_DATETIMES 1
2370 _ACEOF
2371
2372       ;;
2373     no)
2374       :
2375       ;;
2376     *)
2377       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2378 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2379    { (exit 1); exit 1; }; }
2380       ;;
2381   esac
2382
2383 else
2384   enable_integer_datetimes=yes
2385
2386 cat >>confdefs.h <<\_ACEOF
2387 #define USE_INTEGER_DATETIMES 1
2388 _ACEOF
2389
2390 fi
2391
2392
2393 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2394 $as_echo "$enable_integer_datetimes" >&6; }
2395
2396
2397 #
2398 # NLS
2399 #
2400 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2401 $as_echo_n "checking whether NLS is wanted... " >&6; }
2402
2403
2404 # Check whether --enable-nls was given.
2405 if test "${enable_nls+set}" = set; then
2406   enableval=$enable_nls;
2407   case $enableval in
2408     yes)
2409       :
2410       ;;
2411     no)
2412       :
2413       ;;
2414     *)
2415       enable_nls=yes
2416 WANTED_LANGUAGES=$enableval
2417       ;;
2418   esac
2419
2420 else
2421   enable_nls=no
2422 fi
2423
2424
2425
2426 if test "$enable_nls" = yes; then
2427
2428 cat >>confdefs.h <<\_ACEOF
2429 #define ENABLE_NLS 1
2430 _ACEOF
2431
2432 fi
2433
2434 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2435 $as_echo "$enable_nls" >&6; }
2436
2437
2438
2439 #
2440 # Default port number (--with-pgport), default 5432
2441 #
2442 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2443 $as_echo_n "checking for default port number... " >&6; }
2444
2445
2446
2447 # Check whether --with-pgport was given.
2448 if test "${with_pgport+set}" = set; then
2449   withval=$with_pgport;
2450   case $withval in
2451     yes)
2452       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2453 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2454    { (exit 1); exit 1; }; }
2455       ;;
2456     no)
2457       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2458 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2459    { (exit 1); exit 1; }; }
2460       ;;
2461     *)
2462       default_port=$withval
2463       ;;
2464   esac
2465
2466 else
2467   default_port=5432
2468 fi
2469
2470
2471 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2472 $as_echo "$default_port" >&6; }
2473 # Need both of these because some places want an integer and some a string
2474
2475 cat >>confdefs.h <<_ACEOF
2476 #define DEF_PGPORT ${default_port}
2477 _ACEOF
2478
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define DEF_PGPORT_STR "${default_port}"
2482 _ACEOF
2483
2484
2485
2486 #
2487 # Option to disable shared libraries
2488 #
2489
2490
2491 # Check whether --enable-shared was given.
2492 if test "${enable_shared+set}" = set; then
2493   enableval=$enable_shared;
2494   case $enableval in
2495     yes)
2496       :
2497       ;;
2498     no)
2499       :
2500       ;;
2501     *)
2502       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2503 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2504    { (exit 1); exit 1; }; }
2505       ;;
2506   esac
2507
2508 else
2509   enable_shared=yes
2510
2511 fi
2512
2513
2514
2515
2516 #
2517 # '-rpath'-like feature can be disabled
2518 #
2519
2520
2521 # Check whether --enable-rpath was given.
2522 if test "${enable_rpath+set}" = set; then
2523   enableval=$enable_rpath;
2524   case $enableval in
2525     yes)
2526       :
2527       ;;
2528     no)
2529       :
2530       ;;
2531     *)
2532       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2533 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2534    { (exit 1); exit 1; }; }
2535       ;;
2536   esac
2537
2538 else
2539   enable_rpath=yes
2540
2541 fi
2542
2543
2544
2545
2546 #
2547 # Spinlocks
2548 #
2549
2550
2551 # Check whether --enable-spinlocks was given.
2552 if test "${enable_spinlocks+set}" = set; then
2553   enableval=$enable_spinlocks;
2554   case $enableval in
2555     yes)
2556       :
2557       ;;
2558     no)
2559       :
2560       ;;
2561     *)
2562       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2563 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2564    { (exit 1); exit 1; }; }
2565       ;;
2566   esac
2567
2568 else
2569   enable_spinlocks=yes
2570
2571 fi
2572
2573
2574
2575 #
2576 # --enable-debug adds -g to compiler flags
2577 #
2578
2579
2580 # Check whether --enable-debug was given.
2581 if test "${enable_debug+set}" = set; then
2582   enableval=$enable_debug;
2583   case $enableval in
2584     yes)
2585       :
2586       ;;
2587     no)
2588       :
2589       ;;
2590     *)
2591       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2592 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2593    { (exit 1); exit 1; }; }
2594       ;;
2595   esac
2596
2597 else
2598   enable_debug=no
2599
2600 fi
2601
2602
2603
2604
2605 #
2606 # --enable-profiling enables gcc profiling
2607 #
2608
2609
2610 # Check whether --enable-profiling was given.
2611 if test "${enable_profiling+set}" = set; then
2612   enableval=$enable_profiling;
2613   case $enableval in
2614     yes)
2615       :
2616       ;;
2617     no)
2618       :
2619       ;;
2620     *)
2621       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2622 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2623    { (exit 1); exit 1; }; }
2624       ;;
2625   esac
2626
2627 else
2628   enable_profiling=no
2629
2630 fi
2631
2632
2633
2634
2635 #
2636 # --enable-coverage enables generation of code coverage metrics with gcov
2637 #
2638
2639
2640 # Check whether --enable-coverage was given.
2641 if test "${enable_coverage+set}" = set; then
2642   enableval=$enable_coverage;
2643   case $enableval in
2644     yes)
2645       for ac_prog in gcov
2646 do
2647   # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_GCOV+set}" = set; then
2652   $as_echo_n "(cached) " >&6
2653 else
2654   if test -n "$GCOV"; then
2655   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662   for ac_exec_ext in '' $ac_executable_extensions; do
2663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664     ac_cv_prog_GCOV="$ac_prog"
2665     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666     break 2
2667   fi
2668 done
2669 done
2670 IFS=$as_save_IFS
2671
2672 fi
2673 fi
2674 GCOV=$ac_cv_prog_GCOV
2675 if test -n "$GCOV"; then
2676   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2677 $as_echo "$GCOV" >&6; }
2678 else
2679   { $as_echo "$as_me:$LINENO: result: no" >&5
2680 $as_echo "no" >&6; }
2681 fi
2682
2683
2684   test -n "$GCOV" && break
2685 done
2686
2687 if test -z "$GCOV"; then
2688   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2689 $as_echo "$as_me: error: gcov not found" >&2;}
2690    { (exit 1); exit 1; }; }
2691 fi
2692 for ac_prog in lcov
2693 do
2694   # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_prog_LCOV+set}" = set; then
2699   $as_echo_n "(cached) " >&6
2700 else
2701   if test -n "$LCOV"; then
2702   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707   IFS=$as_save_IFS
2708   test -z "$as_dir" && as_dir=.
2709   for ac_exec_ext in '' $ac_executable_extensions; do
2710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711     ac_cv_prog_LCOV="$ac_prog"
2712     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713     break 2
2714   fi
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi
2720 fi
2721 LCOV=$ac_cv_prog_LCOV
2722 if test -n "$LCOV"; then
2723   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2724 $as_echo "$LCOV" >&6; }
2725 else
2726   { $as_echo "$as_me:$LINENO: result: no" >&5
2727 $as_echo "no" >&6; }
2728 fi
2729
2730
2731   test -n "$LCOV" && break
2732 done
2733
2734 if test -z "$LCOV"; then
2735   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2736 $as_echo "$as_me: error: lcov not found" >&2;}
2737    { (exit 1); exit 1; }; }
2738 fi
2739 for ac_prog in genhtml
2740 do
2741   # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_GENHTML+set}" = set; then
2746   $as_echo_n "(cached) " >&6
2747 else
2748   if test -n "$GENHTML"; then
2749   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754   IFS=$as_save_IFS
2755   test -z "$as_dir" && as_dir=.
2756   for ac_exec_ext in '' $ac_executable_extensions; do
2757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758     ac_cv_prog_GENHTML="$ac_prog"
2759     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760     break 2
2761   fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 GENHTML=$ac_cv_prog_GENHTML
2769 if test -n "$GENHTML"; then
2770   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2771 $as_echo "$GENHTML" >&6; }
2772 else
2773   { $as_echo "$as_me:$LINENO: result: no" >&5
2774 $as_echo "no" >&6; }
2775 fi
2776
2777
2778   test -n "$GENHTML" && break
2779 done
2780
2781 if test -z "$GENHTML"; then
2782   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2783 $as_echo "$as_me: error: genhtml not found" >&2;}
2784    { (exit 1); exit 1; }; }
2785 fi
2786       ;;
2787     no)
2788       :
2789       ;;
2790     *)
2791       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2792 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2793    { (exit 1); exit 1; }; }
2794       ;;
2795   esac
2796
2797 else
2798   enable_coverage=no
2799
2800 fi
2801
2802
2803
2804
2805 #
2806 # DTrace
2807 #
2808
2809
2810 # Check whether --enable-dtrace was given.
2811 if test "${enable_dtrace+set}" = set; then
2812   enableval=$enable_dtrace;
2813   case $enableval in
2814     yes)
2815
2816 cat >>confdefs.h <<\_ACEOF
2817 #define ENABLE_DTRACE 1
2818 _ACEOF
2819
2820 for ac_prog in dtrace
2821 do
2822   # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_DTRACE+set}" = set; then
2827   $as_echo_n "(cached) " >&6
2828 else
2829   if test -n "$DTRACE"; then
2830   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837   for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     ac_cv_prog_DTRACE="$ac_prog"
2840     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 DTRACE=$ac_cv_prog_DTRACE
2850 if test -n "$DTRACE"; then
2851   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2852 $as_echo "$DTRACE" >&6; }
2853 else
2854   { $as_echo "$as_me:$LINENO: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858
2859   test -n "$DTRACE" && break
2860 done
2861
2862 if test -z "$DTRACE"; then
2863   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2864 $as_echo "$as_me: error: dtrace not found" >&2;}
2865    { (exit 1); exit 1; }; }
2866 fi
2867
2868       ;;
2869     no)
2870       :
2871       ;;
2872     *)
2873       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2874 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2875    { (exit 1); exit 1; }; }
2876       ;;
2877   esac
2878
2879 else
2880   enable_dtrace=no
2881
2882 fi
2883
2884
2885
2886
2887 #
2888 # Block size
2889 #
2890 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2891 $as_echo_n "checking for block size... " >&6; }
2892
2893
2894
2895 # Check whether --with-blocksize was given.
2896 if test "${with_blocksize+set}" = set; then
2897   withval=$with_blocksize;
2898   case $withval in
2899     yes)
2900       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2901 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2902    { (exit 1); exit 1; }; }
2903       ;;
2904     no)
2905       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2906 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2907    { (exit 1); exit 1; }; }
2908       ;;
2909     *)
2910       blocksize=$withval
2911       ;;
2912   esac
2913
2914 else
2915   blocksize=8
2916 fi
2917
2918
2919 case ${blocksize} in
2920   1) BLCKSZ=1024;;
2921   2) BLCKSZ=2048;;
2922   4) BLCKSZ=4096;;
2923   8) BLCKSZ=8192;;
2924  16) BLCKSZ=16384;;
2925  32) BLCKSZ=32768;;
2926   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2927 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2928    { (exit 1); exit 1; }; }
2929 esac
2930 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2931 $as_echo "${blocksize}kB" >&6; }
2932
2933
2934 cat >>confdefs.h <<_ACEOF
2935 #define BLCKSZ ${BLCKSZ}
2936 _ACEOF
2937
2938
2939 #
2940 # Relation segment size
2941 #
2942 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2943 $as_echo_n "checking for segment size... " >&6; }
2944
2945
2946
2947 # Check whether --with-segsize was given.
2948 if test "${with_segsize+set}" = set; then
2949   withval=$with_segsize;
2950   case $withval in
2951     yes)
2952       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2954    { (exit 1); exit 1; }; }
2955       ;;
2956     no)
2957       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2958 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2959    { (exit 1); exit 1; }; }
2960       ;;
2961     *)
2962       segsize=$withval
2963       ;;
2964   esac
2965
2966 else
2967   segsize=1
2968 fi
2969
2970
2971 # this expression is set up to avoid unnecessary integer overflow
2972 # blocksize is already guaranteed to be a factor of 1024
2973 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2974 test $? -eq 0 || exit 1
2975 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2976 $as_echo "${segsize}GB" >&6; }
2977
2978
2979 cat >>confdefs.h <<_ACEOF
2980 #define RELSEG_SIZE ${RELSEG_SIZE}
2981 _ACEOF
2982
2983
2984 #
2985 # WAL block size
2986 #
2987 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2988 $as_echo_n "checking for WAL block size... " >&6; }
2989
2990
2991
2992 # Check whether --with-wal-blocksize was given.
2993 if test "${with_wal_blocksize+set}" = set; then
2994   withval=$with_wal_blocksize;
2995   case $withval in
2996     yes)
2997       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2998 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2999    { (exit 1); exit 1; }; }
3000       ;;
3001     no)
3002       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
3003 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3004    { (exit 1); exit 1; }; }
3005       ;;
3006     *)
3007       wal_blocksize=$withval
3008       ;;
3009   esac
3010
3011 else
3012   wal_blocksize=8
3013 fi
3014
3015
3016 case ${wal_blocksize} in
3017   1) XLOG_BLCKSZ=1024;;
3018   2) XLOG_BLCKSZ=2048;;
3019   4) XLOG_BLCKSZ=4096;;
3020   8) XLOG_BLCKSZ=8192;;
3021  16) XLOG_BLCKSZ=16384;;
3022  32) XLOG_BLCKSZ=32768;;
3023  64) XLOG_BLCKSZ=65536;;
3024   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3025 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3026    { (exit 1); exit 1; }; }
3027 esac
3028 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3029 $as_echo "${wal_blocksize}kB" >&6; }
3030
3031
3032 cat >>confdefs.h <<_ACEOF
3033 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3034 _ACEOF
3035
3036
3037 #
3038 # WAL segment size
3039 #
3040 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3041 $as_echo_n "checking for WAL segment size... " >&6; }
3042
3043
3044
3045 # Check whether --with-wal-segsize was given.
3046 if test "${with_wal_segsize+set}" = set; then
3047   withval=$with_wal_segsize;
3048   case $withval in
3049     yes)
3050       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3051 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3052    { (exit 1); exit 1; }; }
3053       ;;
3054     no)
3055       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3056 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3057    { (exit 1); exit 1; }; }
3058       ;;
3059     *)
3060       wal_segsize=$withval
3061       ;;
3062   esac
3063
3064 else
3065   wal_segsize=16
3066 fi
3067
3068
3069 case ${wal_segsize} in
3070   1) ;;
3071   2) ;;
3072   4) ;;
3073   8) ;;
3074  16) ;;
3075  32) ;;
3076  64) ;;
3077   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3078 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3079    { (exit 1); exit 1; }; }
3080 esac
3081 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3082 $as_echo "${wal_segsize}MB" >&6; }
3083
3084
3085 cat >>confdefs.h <<_ACEOF
3086 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3087 _ACEOF
3088
3089
3090 #
3091 # C compiler
3092 #
3093
3094 # For historical reasons you can also use --with-CC to specify the C compiler
3095 # to use, although the standard way to do this is to set the CC environment
3096 # variable.
3097
3098
3099
3100 # Check whether --with-CC was given.
3101 if test "${with_CC+set}" = set; then
3102   withval=$with_CC;
3103   case $withval in
3104     yes)
3105       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3106 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3107    { (exit 1); exit 1; }; }
3108       ;;
3109     no)
3110       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3111 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3112    { (exit 1); exit 1; }; }
3113       ;;
3114     *)
3115       CC=$with_CC
3116       ;;
3117   esac
3118
3119 fi
3120
3121
3122
3123 case $template in
3124   aix) pgac_cc_list="gcc xlc";;
3125  irix) pgac_cc_list="cc";; # no gcc
3126     *) pgac_cc_list="gcc cc";;
3127 esac
3128
3129 ac_ext=c
3130 ac_cpp='$CPP $CPPFLAGS'
3131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 if test -n "$ac_tool_prefix"; then
3135   for ac_prog in $pgac_cc_list
3136   do
3137     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142   $as_echo_n "(cached) " >&6
3143 else
3144   if test -n "$CC"; then
3145   ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152   for ac_exec_ext in '' $ac_executable_extensions; do
3153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169   { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174     test -n "$CC" && break
3175   done
3176 fi
3177 if test -z "$CC"; then
3178   ac_ct_CC=$CC
3179   for ac_prog in $pgac_cc_list
3180 do
3181   # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3186   $as_echo_n "(cached) " >&6
3187 else
3188   if test -n "$ac_ct_CC"; then
3189   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194   IFS=$as_save_IFS
3195   test -z "$as_dir" && as_dir=.
3196   for ac_exec_ext in '' $ac_executable_extensions; do
3197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198     ac_cv_prog_ac_ct_CC="$ac_prog"
3199     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200     break 2
3201   fi
3202 done
3203 done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3212 else
3213   { $as_echo "$as_me:$LINENO: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218   test -n "$ac_ct_CC" && break
3219 done
3220
3221   if test "x$ac_ct_CC" = x; then
3222     CC=""
3223   else
3224     case $cross_compiling:$ac_tool_warned in
3225 yes:)
3226 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3229 esac
3230     CC=$ac_ct_CC
3231   fi
3232 fi
3233
3234
3235 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3238 See \`config.log' for more details." >&5
3239 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&2;}
3241    { (exit 1); exit 1; }; }; }
3242
3243 # Provide some information about the compiler.
3244 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3245 set X $ac_compile
3246 ac_compiler=$2
3247 { (ac_try="$ac_compiler --version >&5"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254   (eval "$ac_compiler --version >&5") 2>&5
3255   ac_status=$?
3256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }
3258 { (ac_try="$ac_compiler -v >&5"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265   (eval "$ac_compiler -v >&5") 2>&5
3266   ac_status=$?
3267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }
3269 { (ac_try="$ac_compiler -V >&5"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276   (eval "$ac_compiler -V >&5") 2>&5
3277   ac_status=$?
3278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); }
3280
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287
3288 int
3289 main ()
3290 {
3291
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3300 # of exeext.
3301 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3302 $as_echo_n "checking for C compiler default output file name... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307
3308 ac_rmfiles=
3309 for ac_file in $ac_files
3310 do
3311   case $ac_file in
3312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314   esac
3315 done
3316 rm -f $ac_rmfiles
3317
3318 if { (ac_try="$ac_link_default"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325   (eval "$ac_link_default") 2>&5
3326   ac_status=$?
3327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); }; then
3329   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3333 # Autoconf.
3334 for ac_file in $ac_files ''
3335 do
3336   test -f "$ac_file" || continue
3337   case $ac_file in
3338     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339         ;;
3340     [ab].out )
3341         # We found the default executable, but exeext='' is most
3342         # certainly right.
3343         break;;
3344     *.* )
3345         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346         then :; else
3347            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348         fi
3349         # We set ac_cv_exeext here because the later test for it is not
3350         # safe: cross compilers may not add the suffix if given an `-o'
3351         # argument, so we may need to know it at that point already.
3352         # Even if this section looks crufty: it has the advantage of
3353         # actually working.
3354         break;;
3355     * )
3356         break;;
3357   esac
3358 done
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
3361 else
3362   ac_file=''
3363 fi
3364
3365 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3366 $as_echo "$ac_file" >&6; }
3367 if test -z "$ac_file"; then
3368   $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3374 See \`config.log' for more details." >&5
3375 $as_echo "$as_me: error: C compiler cannot create executables
3376 See \`config.log' for more details." >&2;}
3377    { (exit 77); exit 77; }; }; }
3378 fi
3379
3380 ac_exeext=$ac_cv_exeext
3381
3382 # Check that the compiler produces executables we can run.  If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3387 # If not cross compiling, check that we can run a simple program.
3388 if test "$cross_compiling" != yes; then
3389   if { ac_try='./$ac_file'
3390   { (case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395 $as_echo "$ac_try_echo") >&5
3396   (eval "$ac_try") 2>&5
3397   ac_status=$?
3398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; }; then
3400     cross_compiling=no
3401   else
3402     if test "$cross_compiling" = maybe; then
3403         cross_compiling=yes
3404     else
3405         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details." >&5
3410 $as_echo "$as_me: error: cannot run C compiled programs.
3411 If you meant to cross compile, use \`--host'.
3412 See \`config.log' for more details." >&2;}
3413    { (exit 1); exit 1; }; }; }
3414     fi
3415   fi
3416 fi
3417 { $as_echo "$as_me:$LINENO: result: yes" >&5
3418 $as_echo "yes" >&6; }
3419
3420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3421 ac_clean_files=$ac_clean_files_save
3422 # Check that the compiler produces executables we can run.  If not, either
3423 # the compiler is broken, or we cross compile.
3424 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3425 $as_echo_n "checking whether we are cross compiling... " >&6; }
3426 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3428
3429 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3430 $as_echo_n "checking for suffix of executables... " >&6; }
3431 if { (ac_try="$ac_link"
3432 case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438   (eval "$ac_link") 2>&5
3439   ac_status=$?
3440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); }; then
3442   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3443 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3444 # work properly (i.e., refer to `conftest.exe'), while it won't with
3445 # `rm'.
3446 for ac_file in conftest.exe conftest conftest.*; do
3447   test -f "$ac_file" || continue
3448   case $ac_file in
3449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451           break;;
3452     * ) break;;
3453   esac
3454 done
3455 else
3456   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3459 See \`config.log' for more details." >&5
3460 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3461 See \`config.log' for more details." >&2;}
3462    { (exit 1); exit 1; }; }; }
3463 fi
3464
3465 rm -f conftest$ac_cv_exeext
3466 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3467 $as_echo "$ac_cv_exeext" >&6; }
3468
3469 rm -f conftest.$ac_ext
3470 EXEEXT=$ac_cv_exeext
3471 ac_exeext=$EXEEXT
3472 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3473 $as_echo_n "checking for suffix of object files... " >&6; }
3474 if test "${ac_cv_objext+set}" = set; then
3475   $as_echo_n "(cached) " >&6
3476 else
3477   cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h.  */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h.  */
3483
3484 int
3485 main ()
3486 {
3487
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 rm -f conftest.o conftest.obj
3493 if { (ac_try="$ac_compile"
3494 case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3499 $as_echo "$ac_try_echo") >&5
3500   (eval "$ac_compile") 2>&5
3501   ac_status=$?
3502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); }; then
3504   for ac_file in conftest.o conftest.obj conftest.*; do
3505   test -f "$ac_file" || continue;
3506   case $ac_file in
3507     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3509        break;;
3510   esac
3511 done
3512 else
3513   $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3521 See \`config.log' for more details." >&2;}
3522    { (exit 1); exit 1; }; }; }
3523 fi
3524
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526 fi
3527 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3530 ac_objext=$OBJEXT
3531 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3534   $as_echo_n "(cached) " >&6
3535 else
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546 #ifndef __GNUC__
3547        choke me
3548 #endif
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558   *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5
3562   (eval "$ac_compile") 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } && {
3569          test -z "$ac_c_werror_flag" ||
3570          test ! -s conftest.err
3571        } && test -s conftest.$ac_objext; then
3572   ac_compiler_gnu=yes
3573 else
3574   $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577         ac_compiler_gnu=no
3578 fi
3579
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3582
3583 fi
3584 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3585 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3586 if test $ac_compiler_gnu = yes; then
3587   GCC=yes
3588 else
3589   GCC=
3590 fi
3591 ac_test_CFLAGS=${CFLAGS+set}
3592 ac_save_CFLAGS=$CFLAGS
3593 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3594 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3595 if test "${ac_cv_prog_cc_g+set}" = set; then
3596   $as_echo_n "(cached) " >&6
3597 else
3598   ac_save_c_werror_flag=$ac_c_werror_flag
3599    ac_c_werror_flag=yes
3600    ac_cv_prog_cc_g=no
3601    CFLAGS="-g"
3602    cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h.  */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h.  */
3608
3609 int
3610 main ()
3611 {
3612
3613   ;
3614   return 0;
3615 }
3616 _ACEOF
3617 rm -f conftest.$ac_objext
3618 if { (ac_try="$ac_compile"
3619 case "(($ac_try" in
3620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621   *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625   (eval "$ac_compile") 2>conftest.er1
3626   ac_status=$?
3627   grep -v '^ *+' conftest.er1 >conftest.err
3628   rm -f conftest.er1
3629   cat conftest.err >&5
3630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); } && {
3632          test -z "$ac_c_werror_flag" ||
3633          test ! -s conftest.err
3634        } && test -s conftest.$ac_objext; then
3635   ac_cv_prog_cc_g=yes
3636 else
3637   $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640         CFLAGS=""
3641       cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h.  */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h.  */
3647
3648 int
3649 main ()
3650 {
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3658 case "(($ac_try" in
3659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660   *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664   (eval "$ac_compile") 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } && {
3671          test -z "$ac_c_werror_flag" ||
3672          test ! -s conftest.err
3673        } && test -s conftest.$ac_objext; then
3674   :
3675 else
3676   $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679         ac_c_werror_flag=$ac_save_c_werror_flag
3680          CFLAGS="-g"
3681          cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h.  */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h.  */
3687
3688 int
3689 main ()
3690 {
3691
3692   ;
3693   return 0;
3694 }
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704   (eval "$ac_compile") 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } && {
3711          test -z "$ac_c_werror_flag" ||
3712          test ! -s conftest.err
3713        } && test -s conftest.$ac_objext; then
3714   ac_cv_prog_cc_g=yes
3715 else
3716   $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719
3720 fi
3721
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 fi
3724
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 fi
3727
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729    ac_c_werror_flag=$ac_save_c_werror_flag
3730 fi
3731 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3732 $as_echo "$ac_cv_prog_cc_g" >&6; }
3733 if test "$ac_test_CFLAGS" = set; then
3734   CFLAGS=$ac_save_CFLAGS
3735 elif test $ac_cv_prog_cc_g = yes; then
3736   if test "$GCC" = yes; then
3737     CFLAGS="-g -O2"
3738   else
3739     CFLAGS="-g"
3740   fi
3741 else
3742   if test "$GCC" = yes; then
3743     CFLAGS="-O2"
3744   else
3745     CFLAGS=
3746   fi
3747 fi
3748 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3749 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3750 if test "${ac_cv_prog_cc_c89+set}" = set; then
3751   $as_echo_n "(cached) " >&6
3752 else
3753   ac_cv_prog_cc_c89=no
3754 ac_save_CC=$CC
3755 cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h.  */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h.  */
3761 #include <stdarg.h>
3762 #include <stdio.h>
3763 #include <sys/types.h>
3764 #include <sys/stat.h>
3765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3766 struct buf { int x; };
3767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3768 static char *e (p, i)
3769      char **p;
3770      int i;
3771 {
3772   return p[i];
3773 }
3774 static char *f (char * (*g) (char **, int), char **p, ...)
3775 {
3776   char *s;
3777   va_list v;
3778   va_start (v,p);
3779   s = g (p, va_arg (v,int));
3780   va_end (v);
3781   return s;
3782 }
3783
3784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3785    function prototypes and stuff, but not '\xHH' hex character constants.
3786    These don't provoke an error unfortunately, instead are silently treated
3787    as 'x'.  The following induces an error, until -std is added to get
3788    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3789    array size at least.  It's necessary to write '\x00'==0 to get something
3790    that's true only with -std.  */
3791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3792
3793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3794    inside strings and character constants.  */
3795 #define FOO(x) 'x'
3796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3797
3798 int test (int i, double x);
3799 struct s1 {int (*f) (int a);};
3800 struct s2 {int (*f) (double a);};
3801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3802 int argc;
3803 char **argv;
3804 int
3805 main ()
3806 {
3807 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3808   ;
3809   return 0;
3810 }
3811 _ACEOF
3812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3813         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3814 do
3815   CC="$ac_save_CC $ac_arg"
3816   rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3818 case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824   (eval "$ac_compile") 2>conftest.er1
3825   ac_status=$?
3826   grep -v '^ *+' conftest.er1 >conftest.err
3827   rm -f conftest.er1
3828   cat conftest.err >&5
3829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); } && {
3831          test -z "$ac_c_werror_flag" ||
3832          test ! -s conftest.err
3833        } && test -s conftest.$ac_objext; then
3834   ac_cv_prog_cc_c89=$ac_arg
3835 else
3836   $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839
3840 fi
3841
3842 rm -f core conftest.err conftest.$ac_objext
3843   test "x$ac_cv_prog_cc_c89" != "xno" && break
3844 done
3845 rm -f conftest.$ac_ext
3846 CC=$ac_save_CC
3847
3848 fi
3849 # AC_CACHE_VAL
3850 case "x$ac_cv_prog_cc_c89" in
3851   x)
3852     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3853 $as_echo "none needed" >&6; } ;;
3854   xno)
3855     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3856 $as_echo "unsupported" >&6; } ;;
3857   *)
3858     CC="$CC $ac_cv_prog_cc_c89"
3859     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3861 esac
3862
3863
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869
3870
3871 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3872 # but has idiosyncrasies of its own.  We assume icc will define
3873 # __INTEL_COMPILER regardless of CFLAGS.
3874
3875 cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h.  */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h.  */
3881
3882 int
3883 main ()
3884 {
3885 #ifndef __INTEL_COMPILER
3886 choke me
3887 #endif
3888   ;
3889   return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest.$ac_objext
3893 if { (ac_try="$ac_compile"
3894 case "(($ac_try" in
3895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896   *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3899 $as_echo "$ac_try_echo") >&5
3900   (eval "$ac_compile") 2>conftest.er1
3901   ac_status=$?
3902   grep -v '^ *+' conftest.er1 >conftest.err
3903   rm -f conftest.er1
3904   cat conftest.err >&5
3905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); } && {
3907          test -z "$ac_c_werror_flag" ||
3908          test ! -s conftest.err
3909        } && test -s conftest.$ac_objext; then
3910   ICC=yes
3911 else
3912   $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915         ICC=no
3916 fi
3917
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919
3920 # Check if it's Sun Studio compiler. We assume that
3921 # __SUNPRO_C will be defined for Sun Studio compilers
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928
3929 int
3930 main ()
3931 {
3932 #ifndef __SUNPRO_C
3933 choke me
3934 #endif
3935   ;
3936   return 0;
3937 }
3938 _ACEOF
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3941 case "(($ac_try" in
3942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943   *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3946 $as_echo "$ac_try_echo") >&5
3947   (eval "$ac_compile") 2>conftest.er1
3948   ac_status=$?
3949   grep -v '^ *+' conftest.er1 >conftest.err
3950   rm -f conftest.er1
3951   cat conftest.err >&5
3952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); } && {
3954          test -z "$ac_c_werror_flag" ||
3955          test ! -s conftest.err
3956        } && test -s conftest.$ac_objext; then
3957   SUN_STUDIO_CC=yes
3958 else
3959   $as_echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3961
3962         SUN_STUDIO_CC=no
3963 fi
3964
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966
3967
3968
3969 unset CFLAGS
3970
3971 #
3972 # Read the template
3973 #
3974 . "$srcdir/src/template/$template" || exit
3975
3976 # CFLAGS are selected so:
3977 # If the user specifies something in the environment, that is used.
3978 # else:  If the template file set something, that is used.
3979 # else:  If coverage was enabled, don't set anything.
3980 # else:  If the compiler is GCC, then we use -O2.
3981 # else:  If the compiler is something else, then we use -O, unless debugging.
3982
3983 if test "$ac_env_CFLAGS_set" = set; then
3984   CFLAGS=$ac_env_CFLAGS_value
3985 elif test "${CFLAGS+set}" = set; then
3986   : # (keep what template set)
3987 elif test "$enable_coverage" = yes; then
3988   : # no optimization by default
3989 elif test "$GCC" = yes; then
3990   CFLAGS="-O2"
3991 else
3992   # if the user selected debug mode, don't use -O
3993   if test "$enable_debug" != yes; then
3994     CFLAGS="-O"
3995   fi
3996 fi
3997
3998 # Some versions of GCC support some additional useful warning flags.
3999 # Check whether they are supported, and add them to CFLAGS if so.
4000 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4001 # but has its own.  Also check other compiler-specific flags here.
4002
4003 if test "$GCC" = yes -a "$ICC" = no; then
4004   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4005   # These work in some but not all gcc versions
4006   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
4007 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4008 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
4009   $as_echo_n "(cached) " >&6
4010 else
4011   pgac_save_CFLAGS=$CFLAGS
4012 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4013 ac_save_c_werror_flag=$ac_c_werror_flag
4014 ac_c_werror_flag=yes
4015 cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021
4022 int
4023 main ()
4024 {
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 rm -f conftest.$ac_objext
4031 if { (ac_try="$ac_compile"
4032 case "(($ac_try" in
4033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034   *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4037 $as_echo "$ac_try_echo") >&5
4038   (eval "$ac_compile") 2>conftest.er1
4039   ac_status=$?
4040   grep -v '^ *+' conftest.er1 >conftest.err
4041   rm -f conftest.er1
4042   cat conftest.err >&5
4043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } && {
4045          test -z "$ac_c_werror_flag" ||
4046          test ! -s conftest.err
4047        } && test -s conftest.$ac_objext; then
4048   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4049 else
4050   $as_echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4054 fi
4055
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4058 CFLAGS="$pgac_save_CFLAGS"
4059 fi
4060 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4061 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4062 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4063   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4064 fi
4065
4066   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4067 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4068 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4069   $as_echo_n "(cached) " >&6
4070 else
4071   pgac_save_CFLAGS=$CFLAGS
4072 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081
4082 int
4083 main ()
4084 {
4085
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (ac_try="$ac_compile"
4092 case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098   (eval "$ac_compile") 2>conftest.er1
4099   ac_status=$?
4100   grep -v '^ *+' conftest.er1 >conftest.err
4101   rm -f conftest.er1
4102   cat conftest.err >&5
4103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); } && {
4105          test -z "$ac_c_werror_flag" ||
4106          test ! -s conftest.err
4107        } && test -s conftest.$ac_objext; then
4108   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4109 else
4110   $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113         pgac_cv_prog_cc_cflags__Wendif_labels=no
4114 fi
4115
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="$pgac_save_CFLAGS"
4119 fi
4120 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4121 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4122 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4123   CFLAGS="$CFLAGS -Wendif-labels"
4124 fi
4125
4126   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4127 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4128 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4129   $as_echo_n "(cached) " >&6
4130 else
4131   pgac_save_CFLAGS=$CFLAGS
4132 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4133 ac_save_c_werror_flag=$ac_c_werror_flag
4134 ac_c_werror_flag=yes
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141
4142 int
4143 main ()
4144 {
4145
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4152 case "(($ac_try" in
4153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154   *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4157 $as_echo "$ac_try_echo") >&5
4158   (eval "$ac_compile") 2>conftest.er1
4159   ac_status=$?
4160   grep -v '^ *+' conftest.er1 >conftest.err
4161   rm -f conftest.er1
4162   cat conftest.err >&5
4163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); } && {
4165          test -z "$ac_c_werror_flag" ||
4166          test ! -s conftest.err
4167        } && test -s conftest.$ac_objext; then
4168   pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4169 else
4170   $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173         pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4174 fi
4175
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_c_werror_flag=$ac_save_c_werror_flag
4178 CFLAGS="$pgac_save_CFLAGS"
4179 fi
4180 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4181 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4182 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4183   CFLAGS="$CFLAGS -Wmissing-format-attribute"
4184 fi
4185
4186   # This was included in -Wall/-Wformat in older GCC versions
4187   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4188 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4189 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4190   $as_echo_n "(cached) " >&6
4191 else
4192   pgac_save_CFLAGS=$CFLAGS
4193 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4194 ac_save_c_werror_flag=$ac_c_werror_flag
4195 ac_c_werror_flag=yes
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h.  */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h.  */
4202
4203 int
4204 main ()
4205 {
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4213 case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219   (eval "$ac_compile") 2>conftest.er1
4220   ac_status=$?
4221   grep -v '^ *+' conftest.er1 >conftest.err
4222   rm -f conftest.er1
4223   cat conftest.err >&5
4224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); } && {
4226          test -z "$ac_c_werror_flag" ||
4227          test ! -s conftest.err
4228        } && test -s conftest.$ac_objext; then
4229   pgac_cv_prog_cc_cflags__Wformat_security=yes
4230 else
4231   $as_echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234         pgac_cv_prog_cc_cflags__Wformat_security=no
4235 fi
4236
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 ac_c_werror_flag=$ac_save_c_werror_flag
4239 CFLAGS="$pgac_save_CFLAGS"
4240 fi
4241 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4242 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4243 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4244   CFLAGS="$CFLAGS -Wformat-security"
4245 fi
4246
4247   # Disable strict-aliasing rules; needed for gcc 3.3+
4248   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4249 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4250 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4251   $as_echo_n "(cached) " >&6
4252 else
4253   pgac_save_CFLAGS=$CFLAGS
4254 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4255 ac_save_c_werror_flag=$ac_c_werror_flag
4256 ac_c_werror_flag=yes
4257 cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h.  */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h.  */
4263
4264 int
4265 main ()
4266 {
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4274 case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279 $as_echo "$ac_try_echo") >&5
4280   (eval "$ac_compile") 2>conftest.er1
4281   ac_status=$?
4282   grep -v '^ *+' conftest.er1 >conftest.err
4283   rm -f conftest.er1
4284   cat conftest.err >&5
4285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } && {
4287          test -z "$ac_c_werror_flag" ||
4288          test ! -s conftest.err
4289        } && test -s conftest.$ac_objext; then
4290   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4291 else
4292   $as_echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4300 CFLAGS="$pgac_save_CFLAGS"
4301 fi
4302 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4303 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4304 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4305   CFLAGS="$CFLAGS -fno-strict-aliasing"
4306 fi
4307
4308   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4309   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4310 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4311 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4312   $as_echo_n "(cached) " >&6
4313 else
4314   pgac_save_CFLAGS=$CFLAGS
4315 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4316 ac_save_c_werror_flag=$ac_c_werror_flag
4317 ac_c_werror_flag=yes
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324
4325 int
4326 main ()
4327 {
4328
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 rm -f conftest.$ac_objext
4334 if { (ac_try="$ac_compile"
4335 case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4340 $as_echo "$ac_try_echo") >&5
4341   (eval "$ac_compile") 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } && {
4348          test -z "$ac_c_werror_flag" ||
4349          test ! -s conftest.err
4350        } && test -s conftest.$ac_objext; then
4351   pgac_cv_prog_cc_cflags__fwrapv=yes
4352 else
4353   $as_echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356         pgac_cv_prog_cc_cflags__fwrapv=no
4357 fi
4358
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 ac_c_werror_flag=$ac_save_c_werror_flag
4361 CFLAGS="$pgac_save_CFLAGS"
4362 fi
4363 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4364 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4365 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4366   CFLAGS="$CFLAGS -fwrapv"
4367 fi
4368
4369   # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4370   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4371 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4372 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4373   $as_echo_n "(cached) " >&6
4374 else
4375   pgac_save_CFLAGS=$CFLAGS
4376 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4377 ac_save_c_werror_flag=$ac_c_werror_flag
4378 ac_c_werror_flag=yes
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h.  */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h.  */
4385
4386 int
4387 main ()
4388 {
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4401 $as_echo "$ac_try_echo") >&5
4402   (eval "$ac_compile") 2>conftest.er1
4403   ac_status=$?
4404   grep -v '^ *+' conftest.er1 >conftest.err
4405   rm -f conftest.er1
4406   cat conftest.err >&5
4407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } && {
4409          test -z "$ac_c_werror_flag" ||
4410          test ! -s conftest.err
4411        } && test -s conftest.$ac_objext; then
4412   pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4413 else
4414   $as_echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417         pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4418 fi
4419
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_c_werror_flag=$ac_save_c_werror_flag
4422 CFLAGS="$pgac_save_CFLAGS"
4423 fi
4424 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4425 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4426 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4427   CFLAGS="$CFLAGS -fexcess-precision=standard"
4428 fi
4429
4430 elif test "$ICC" = yes; then
4431   # Intel's compiler has a bug/misoptimization in checking for
4432   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4433   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4434 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4435 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4436   $as_echo_n "(cached) " >&6
4437 else
4438   pgac_save_CFLAGS=$CFLAGS
4439 CFLAGS="$pgac_save_CFLAGS -mp1"
4440 ac_save_c_werror_flag=$ac_c_werror_flag
4441 ac_c_werror_flag=yes
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h.  */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h.  */
4448
4449 int
4450 main ()
4451 {
4452
4453   ;
4454   return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext
4458 if { (ac_try="$ac_compile"
4459 case "(($ac_try" in
4460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461   *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464 $as_echo "$ac_try_echo") >&5
4465   (eval "$ac_compile") 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } && {
4472          test -z "$ac_c_werror_flag" ||
4473          test ! -s conftest.err
4474        } && test -s conftest.$ac_objext; then
4475   pgac_cv_prog_cc_cflags__mp1=yes
4476 else
4477   $as_echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480         pgac_cv_prog_cc_cflags__mp1=no
4481 fi
4482
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_c_werror_flag=$ac_save_c_werror_flag
4485 CFLAGS="$pgac_save_CFLAGS"
4486 fi
4487 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4488 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4489 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4490   CFLAGS="$CFLAGS -mp1"
4491 fi
4492
4493   # Make sure strict aliasing is off (though this is said to be the default)
4494   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4495 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4496 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4497   $as_echo_n "(cached) " >&6
4498 else
4499   pgac_save_CFLAGS=$CFLAGS
4500 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4501 ac_save_c_werror_flag=$ac_c_werror_flag
4502 ac_c_werror_flag=yes
4503 cat >conftest.$ac_ext <<_ACEOF
4504 /* confdefs.h.  */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h.  */
4509
4510 int
4511 main ()
4512 {
4513
4514   ;
4515   return 0;
4516 }
4517 _ACEOF
4518 rm -f conftest.$ac_objext
4519 if { (ac_try="$ac_compile"
4520 case "(($ac_try" in
4521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522   *) ac_try_echo=$ac_try;;
4523 esac
4524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4525 $as_echo "$ac_try_echo") >&5
4526   (eval "$ac_compile") 2>conftest.er1
4527   ac_status=$?
4528   grep -v '^ *+' conftest.er1 >conftest.err
4529   rm -f conftest.er1
4530   cat conftest.err >&5
4531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); } && {
4533          test -z "$ac_c_werror_flag" ||
4534          test ! -s conftest.err
4535        } && test -s conftest.$ac_objext; then
4536   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4537 else
4538   $as_echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4540
4541         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4542 fi
4543
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 ac_c_werror_flag=$ac_save_c_werror_flag
4546 CFLAGS="$pgac_save_CFLAGS"
4547 fi
4548 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4549 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4550 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4551   CFLAGS="$CFLAGS -fno-strict-aliasing"
4552 fi
4553
4554 elif test "$PORTNAME" = "aix"; then
4555   # AIX's xlc has to have strict aliasing turned off too
4556   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4557 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4558 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4559   $as_echo_n "(cached) " >&6
4560 else
4561   pgac_save_CFLAGS=$CFLAGS
4562 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4563 ac_save_c_werror_flag=$ac_c_werror_flag
4564 ac_c_werror_flag=yes
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h.  */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h.  */
4571
4572 int
4573 main ()
4574 {
4575
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4582 case "(($ac_try" in
4583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584   *) ac_try_echo=$ac_try;;
4585 esac
4586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4587 $as_echo "$ac_try_echo") >&5
4588   (eval "$ac_compile") 2>conftest.er1
4589   ac_status=$?
4590   grep -v '^ *+' conftest.er1 >conftest.err
4591   rm -f conftest.er1
4592   cat conftest.err >&5
4593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } && {
4595          test -z "$ac_c_werror_flag" ||
4596          test ! -s conftest.err
4597        } && test -s conftest.$ac_objext; then
4598   pgac_cv_prog_cc_cflags__qnoansialias=yes
4599 else
4600   $as_echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603         pgac_cv_prog_cc_cflags__qnoansialias=no
4604 fi
4605
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_c_werror_flag=$ac_save_c_werror_flag
4608 CFLAGS="$pgac_save_CFLAGS"
4609 fi
4610 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4611 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4612 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4613   CFLAGS="$CFLAGS -qnoansialias"
4614 fi
4615
4616 elif test "$PORTNAME" = "hpux"; then
4617   # On some versions of HP-UX, libm functions do not set errno by default.
4618   # Fix that by using +Olibmerrno if the compiler recognizes it.
4619   { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4620 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4621 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4622   $as_echo_n "(cached) " >&6
4623 else
4624   pgac_save_CFLAGS=$CFLAGS
4625 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4626 ac_save_c_werror_flag=$ac_c_werror_flag
4627 ac_c_werror_flag=yes
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634
4635 int
4636 main ()
4637 {
4638
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.$ac_objext
4644 if { (ac_try="$ac_compile"
4645 case "(($ac_try" in
4646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647   *) ac_try_echo=$ac_try;;
4648 esac
4649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4650 $as_echo "$ac_try_echo") >&5
4651   (eval "$ac_compile") 2>conftest.er1
4652   ac_status=$?
4653   grep -v '^ *+' conftest.er1 >conftest.err
4654   rm -f conftest.er1
4655   cat conftest.err >&5
4656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } && {
4658          test -z "$ac_c_werror_flag" ||
4659          test ! -s conftest.err
4660        } && test -s conftest.$ac_objext; then
4661   pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4662 else
4663   $as_echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666         pgac_cv_prog_cc_cflags_pOlibmerrno=no
4667 fi
4668
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4671 CFLAGS="$pgac_save_CFLAGS"
4672 fi
4673 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4674 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4675 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4676   CFLAGS="$CFLAGS +Olibmerrno"
4677 fi
4678
4679 fi
4680
4681 # supply -g if --enable-debug
4682 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4683   CFLAGS="$CFLAGS -g"
4684 fi
4685
4686 # enable code coverage if --enable-coverage
4687 if test "$enable_coverage" = yes; then
4688   if test "$GCC" = yes; then
4689     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4690   else
4691     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4692 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4693    { (exit 1); exit 1; }; }
4694   fi
4695 fi
4696
4697 # enable profiling if --enable-profiling
4698 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4699   if test "$GCC" = yes; then
4700
4701 cat >>confdefs.h <<\_ACEOF
4702 #define PROFILE_PID_DIR 1
4703 _ACEOF
4704
4705     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4706   else
4707     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4708 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4709    { (exit 1); exit 1; }; }
4710   fi
4711 fi
4712
4713 # We already have this in Makefile.win32, but configure needs it too
4714 if test "$PORTNAME" = "win32"; then
4715   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4716 fi
4717
4718 # Check if the compiler still works with the template settings
4719 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4720 $as_echo_n "checking whether the C compiler still works... " >&6; }
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h.  */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h.  */
4727
4728 int
4729 main ()
4730 {
4731 return 0;
4732   ;
4733   return 0;
4734 }
4735 _ACEOF
4736 rm -f conftest.$ac_objext conftest$ac_exeext
4737 if { (ac_try="$ac_link"
4738 case "(($ac_try" in
4739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740   *) ac_try_echo=$ac_try;;
4741 esac
4742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4743 $as_echo "$ac_try_echo") >&5
4744   (eval "$ac_link") 2>conftest.er1
4745   ac_status=$?
4746   grep -v '^ *+' conftest.er1 >conftest.err
4747   rm -f conftest.er1
4748   cat conftest.err >&5
4749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } && {
4751          test -z "$ac_c_werror_flag" ||
4752          test ! -s conftest.err
4753        } && test -s conftest$ac_exeext && {
4754          test "$cross_compiling" = yes ||
4755          $as_test_x conftest$ac_exeext
4756        }; then
4757   { $as_echo "$as_me:$LINENO: result: yes" >&5
4758 $as_echo "yes" >&6; }
4759 else
4760   $as_echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4762
4763         { $as_echo "$as_me:$LINENO: result: no" >&5
4764 $as_echo "no" >&6; }
4765    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4766 $as_echo "$as_me: error: cannot proceed" >&2;}
4767    { (exit 1); exit 1; }; }
4768 fi
4769
4770 rm -rf conftest.dSYM
4771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4772       conftest$ac_exeext conftest.$ac_ext
4773
4774 # Defend against gcc -ffast-math
4775 if test "$GCC" = yes; then
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h.  */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h.  */
4782
4783 int
4784 main ()
4785 {
4786 #ifdef __FAST_MATH__
4787 choke me
4788 #endif
4789   ;
4790   return 0;
4791 }
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4795 case "(($ac_try" in
4796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797   *) ac_try_echo=$ac_try;;
4798 esac
4799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4800 $as_echo "$ac_try_echo") >&5
4801   (eval "$ac_compile") 2>conftest.er1
4802   ac_status=$?
4803   grep -v '^ *+' conftest.er1 >conftest.err
4804   rm -f conftest.er1
4805   cat conftest.err >&5
4806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); } && {
4808          test -z "$ac_c_werror_flag" ||
4809          test ! -s conftest.err
4810        } && test -s conftest.$ac_objext; then
4811   :
4812 else
4813   $as_echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4817 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4818    { (exit 1); exit 1; }; }
4819 fi
4820
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 fi
4823
4824 ac_ext=c
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4830 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4831 # On Suns, sometimes $CPP names a directory.
4832 if test -n "$CPP" && test -d "$CPP"; then
4833   CPP=
4834 fi
4835 if test -z "$CPP"; then
4836   if test "${ac_cv_prog_CPP+set}" = set; then
4837   $as_echo_n "(cached) " >&6
4838 else
4839       # Double quotes because CPP needs to be expanded
4840     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4841     do
4842       ac_preproc_ok=false
4843 for ac_c_preproc_warn_flag in '' yes
4844 do
4845   # Use a header file that comes with gcc, so configuring glibc
4846   # with a fresh cross-compiler works.
4847   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4848   # <limits.h> exists even on freestanding compilers.
4849   # On the NeXT, cc -E runs the code through the compiler's parser,
4850   # not just through cpp. "Syntax error" is here to catch this case.
4851   cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h.  */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h.  */
4857 #ifdef __STDC__
4858 # include <limits.h>
4859 #else
4860 # include <assert.h>
4861 #endif
4862                      Syntax error
4863 _ACEOF
4864 if { (ac_try="$ac_cpp conftest.$ac_ext"
4865 case "(($ac_try" in
4866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867   *) ac_try_echo=$ac_try;;
4868 esac
4869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4872   ac_status=$?
4873   grep -v '^ *+' conftest.er1 >conftest.err
4874   rm -f conftest.er1
4875   cat conftest.err >&5
4876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); } >/dev/null && {
4878          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4879          test ! -s conftest.err
4880        }; then
4881   :
4882 else
4883   $as_echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886   # Broken: fails on valid input.
4887 continue
4888 fi
4889
4890 rm -f conftest.err conftest.$ac_ext
4891
4892   # OK, works on sane cases.  Now check whether nonexistent headers
4893   # can be detected and how.
4894   cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h.  */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h.  */
4900 #include <ac_nonexistent.h>
4901 _ACEOF
4902 if { (ac_try="$ac_cpp conftest.$ac_ext"
4903 case "(($ac_try" in
4904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905   *) ac_try_echo=$ac_try;;
4906 esac
4907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4908 $as_echo "$ac_try_echo") >&5
4909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4910   ac_status=$?
4911   grep -v '^ *+' conftest.er1 >conftest.err
4912   rm -f conftest.er1
4913   cat conftest.err >&5
4914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } >/dev/null && {
4916          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4917          test ! -s conftest.err
4918        }; then
4919   # Broken: success on invalid input.
4920 continue
4921 else
4922   $as_echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925   # Passes both tests.
4926 ac_preproc_ok=:
4927 break
4928 fi
4929
4930 rm -f conftest.err conftest.$ac_ext
4931
4932 done
4933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4934 rm -f conftest.err conftest.$ac_ext
4935 if $ac_preproc_ok; then
4936   break
4937 fi
4938
4939     done
4940     ac_cv_prog_CPP=$CPP
4941
4942 fi
4943   CPP=$ac_cv_prog_CPP
4944 else
4945   ac_cv_prog_CPP=$CPP
4946 fi
4947 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4948 $as_echo "$CPP" >&6; }
4949 ac_preproc_ok=false
4950 for ac_c_preproc_warn_flag in '' yes
4951 do
4952   # Use a header file that comes with gcc, so configuring glibc
4953   # with a fresh cross-compiler works.
4954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4955   # <limits.h> exists even on freestanding compilers.
4956   # On the NeXT, cc -E runs the code through the compiler's parser,
4957   # not just through cpp. "Syntax error" is here to catch this case.
4958   cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h.  */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h.  */
4964 #ifdef __STDC__
4965 # include <limits.h>
4966 #else
4967 # include <assert.h>
4968 #endif
4969                      Syntax error
4970 _ACEOF
4971 if { (ac_try="$ac_cpp conftest.$ac_ext"
4972 case "(($ac_try" in
4973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974   *) ac_try_echo=$ac_try;;
4975 esac
4976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4977 $as_echo "$ac_try_echo") >&5
4978   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4979   ac_status=$?
4980   grep -v '^ *+' conftest.er1 >conftest.err
4981   rm -f conftest.er1
4982   cat conftest.err >&5
4983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); } >/dev/null && {
4985          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4986          test ! -s conftest.err
4987        }; then
4988   :
4989 else
4990   $as_echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993   # Broken: fails on valid input.
4994 continue
4995 fi
4996
4997 rm -f conftest.err conftest.$ac_ext
4998
4999   # OK, works on sane cases.  Now check whether nonexistent headers
5000   # can be detected and how.
5001   cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h.  */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h.  */
5007 #include <ac_nonexistent.h>
5008 _ACEOF
5009 if { (ac_try="$ac_cpp conftest.$ac_ext"
5010 case "(($ac_try" in
5011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012   *) ac_try_echo=$ac_try;;
5013 esac
5014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5015 $as_echo "$ac_try_echo") >&5
5016   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5017   ac_status=$?
5018   grep -v '^ *+' conftest.er1 >conftest.err
5019   rm -f conftest.er1
5020   cat conftest.err >&5
5021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); } >/dev/null && {
5023          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5024          test ! -s conftest.err
5025        }; then
5026   # Broken: success on invalid input.
5027 continue
5028 else
5029   $as_echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5031
5032   # Passes both tests.
5033 ac_preproc_ok=:
5034 break
5035 fi
5036
5037 rm -f conftest.err conftest.$ac_ext
5038
5039 done
5040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5041 rm -f conftest.err conftest.$ac_ext
5042 if $ac_preproc_ok; then
5043   :
5044 else
5045   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5047 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5048 See \`config.log' for more details." >&5
5049 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5050 See \`config.log' for more details." >&2;}
5051    { (exit 1); exit 1; }; }; }
5052 fi
5053
5054 ac_ext=c
5055 ac_cpp='$CPP $CPPFLAGS'
5056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059
5060
5061
5062
5063 #
5064 # Set up TAS assembly code if needed; the template file has now had its
5065 # chance to request this.
5066 #
5067 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5068
5069
5070 if test "$need_tas" = yes ; then
5071   TAS=tas.o
5072 else
5073   TAS=""
5074 fi
5075
5076
5077
5078 #
5079 # Automatic dependency tracking
5080 #
5081
5082
5083 # Check whether --enable-depend was given.
5084 if test "${enable_depend+set}" = set; then
5085   enableval=$enable_depend;
5086   case $enableval in
5087     yes)
5088       autodepend=yes
5089       ;;
5090     no)
5091       :
5092       ;;
5093     *)
5094       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5095 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5096    { (exit 1); exit 1; }; }
5097       ;;
5098   esac
5099
5100 else
5101   enable_depend=no
5102
5103 fi
5104
5105
5106
5107
5108
5109 #
5110 # Enable assert checks
5111 #
5112
5113
5114 # Check whether --enable-cassert was given.
5115 if test "${enable_cassert+set}" = set; then
5116   enableval=$enable_cassert;
5117   case $enableval in
5118     yes)
5119
5120 cat >>confdefs.h <<\_ACEOF
5121 #define USE_ASSERT_CHECKING 1
5122 _ACEOF
5123
5124       ;;
5125     no)
5126       :
5127       ;;
5128     *)
5129       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5130 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5131    { (exit 1); exit 1; }; }
5132       ;;
5133   esac
5134
5135 else
5136   enable_cassert=no
5137
5138 fi
5139
5140
5141
5142
5143 #
5144 # Include directories
5145 #
5146 ac_save_IFS=$IFS
5147 IFS="${IFS}${PATH_SEPARATOR}"
5148 # SRCH_INC comes from the template file
5149 for dir in $with_includes $SRCH_INC; do
5150   if test -d "$dir"; then
5151     INCLUDES="$INCLUDES -I$dir"
5152   else
5153     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5154 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5155   fi
5156 done
5157 IFS=$ac_save_IFS
5158
5159
5160
5161 #
5162 # Library directories
5163 #
5164 ac_save_IFS=$IFS
5165 IFS="${IFS}${PATH_SEPARATOR}"
5166 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5167 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5168   if test -d "$dir"; then
5169     LIBDIRS="$LIBDIRS -L$dir"
5170   else
5171     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5172 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5173   fi
5174 done
5175 IFS=$ac_save_IFS
5176
5177 #
5178 # Enable thread-safe client libraries
5179 #
5180 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5181 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5182
5183
5184 # Check whether --enable-thread-safety was given.
5185 if test "${enable_thread_safety+set}" = set; then
5186   enableval=$enable_thread_safety;
5187   case $enableval in
5188     yes)
5189       :
5190       ;;
5191     no)
5192       :
5193       ;;
5194     *)
5195       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5196 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5197    { (exit 1); exit 1; }; }
5198       ;;
5199   esac
5200
5201 else
5202   enable_thread_safety=yes
5203
5204 fi
5205
5206
5207 if test "$enable_thread_safety" = yes; then
5208
5209 cat >>confdefs.h <<\_ACEOF
5210 #define ENABLE_THREAD_SAFETY 1
5211 _ACEOF
5212
5213 fi
5214 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5215 $as_echo "$enable_thread_safety" >&6; }
5216
5217
5218 #
5219 # Optionally build Tcl modules (PL/Tcl)
5220 #
5221 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5222 $as_echo_n "checking whether to build with Tcl... " >&6; }
5223
5224
5225
5226 # Check whether --with-tcl was given.
5227 if test "${with_tcl+set}" = set; then
5228   withval=$with_tcl;
5229   case $withval in
5230     yes)
5231       :
5232       ;;
5233     no)
5234       :
5235       ;;
5236     *)
5237       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5238 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5239    { (exit 1); exit 1; }; }
5240       ;;
5241   esac
5242
5243 else
5244   with_tcl=no
5245
5246 fi
5247
5248
5249 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5250 $as_echo "$with_tcl" >&6; }
5251
5252
5253 # We see if the path to the Tcl/Tk configuration scripts is specified.
5254 # This will override the use of tclsh to find the paths to search.
5255
5256
5257
5258
5259 # Check whether --with-tclconfig was given.
5260 if test "${with_tclconfig+set}" = set; then
5261   withval=$with_tclconfig;
5262   case $withval in
5263     yes)
5264       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5265 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5266    { (exit 1); exit 1; }; }
5267       ;;
5268     no)
5269       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5270 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5271    { (exit 1); exit 1; }; }
5272       ;;
5273     *)
5274
5275       ;;
5276   esac
5277
5278 fi
5279
5280
5281
5282 #
5283 # Optionally build Perl modules (PL/Perl)
5284 #
5285 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5286 $as_echo_n "checking whether to build Perl modules... " >&6; }
5287
5288
5289
5290 # Check whether --with-perl was given.
5291 if test "${with_perl+set}" = set; then
5292   withval=$with_perl;
5293   case $withval in
5294     yes)
5295       :
5296       ;;
5297     no)
5298       :
5299       ;;
5300     *)
5301       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5302 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5303    { (exit 1); exit 1; }; }
5304       ;;
5305   esac
5306
5307 else
5308   with_perl=no
5309
5310 fi
5311
5312
5313 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5314 $as_echo "$with_perl" >&6; }
5315
5316
5317 #
5318 # Optionally build Python modules (PL/Python)
5319 #
5320 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5321 $as_echo_n "checking whether to build Python modules... " >&6; }
5322
5323
5324
5325 # Check whether --with-python was given.
5326 if test "${with_python+set}" = set; then
5327   withval=$with_python;
5328   case $withval in
5329     yes)
5330       :
5331       ;;
5332     no)
5333       :
5334       ;;
5335     *)
5336       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5337 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5338    { (exit 1); exit 1; }; }
5339       ;;
5340   esac
5341
5342 else
5343   with_python=no
5344
5345 fi
5346
5347
5348 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5349 $as_echo "$with_python" >&6; }
5350
5351
5352 #
5353 # GSSAPI
5354 #
5355 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5356 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5357
5358
5359
5360 # Check whether --with-gssapi was given.
5361 if test "${with_gssapi+set}" = set; then
5362   withval=$with_gssapi;
5363   case $withval in
5364     yes)
5365
5366
5367 cat >>confdefs.h <<\_ACEOF
5368 #define ENABLE_GSS 1
5369 _ACEOF
5370
5371   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5372
5373       ;;
5374     no)
5375       :
5376       ;;
5377     *)
5378       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5379 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5380    { (exit 1); exit 1; }; }
5381       ;;
5382   esac
5383
5384 else
5385   with_gssapi=no
5386
5387 fi
5388
5389
5390 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5391 $as_echo "$with_gssapi" >&6; }
5392
5393
5394 #
5395 # Kerberos 5
5396 #
5397 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5398 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5399
5400
5401
5402 # Check whether --with-krb5 was given.
5403 if test "${with_krb5+set}" = set; then
5404   withval=$with_krb5;
5405   case $withval in
5406     yes)
5407
5408
5409 cat >>confdefs.h <<\_ACEOF
5410 #define KRB5 1
5411 _ACEOF
5412
5413   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5414
5415       ;;
5416     no)
5417       :
5418       ;;
5419     *)
5420       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5421 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5422    { (exit 1); exit 1; }; }
5423       ;;
5424   esac
5425
5426 else
5427   with_krb5=no
5428
5429 fi
5430
5431
5432 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5433 $as_echo "$with_krb5" >&6; }
5434
5435
5436
5437
5438
5439
5440 #
5441 # Kerberos configuration parameters
5442 #
5443
5444
5445
5446 # Check whether --with-krb-srvnam was given.
5447 if test "${with_krb_srvnam+set}" = set; then
5448   withval=$with_krb_srvnam;
5449   case $withval in
5450     yes)
5451       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5452 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5453    { (exit 1); exit 1; }; }
5454       ;;
5455     no)
5456       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5457 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5458    { (exit 1); exit 1; }; }
5459       ;;
5460     *)
5461
5462       ;;
5463   esac
5464
5465 else
5466   with_krb_srvnam="postgres"
5467 fi
5468
5469
5470
5471 cat >>confdefs.h <<_ACEOF
5472 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5473 _ACEOF
5474
5475
5476
5477 #
5478 # PAM
5479 #
5480 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5481 $as_echo_n "checking whether to build with PAM support... " >&6; }
5482
5483
5484
5485 # Check whether --with-pam was given.
5486 if test "${with_pam+set}" = set; then
5487   withval=$with_pam;
5488   case $withval in
5489     yes)
5490
5491 cat >>confdefs.h <<\_ACEOF
5492 #define USE_PAM 1
5493 _ACEOF
5494
5495       ;;
5496     no)
5497       :
5498       ;;
5499     *)
5500       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5501 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5502    { (exit 1); exit 1; }; }
5503       ;;
5504   esac
5505
5506 else
5507   with_pam=no
5508
5509 fi
5510
5511
5512 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5513 $as_echo "$with_pam" >&6; }
5514
5515
5516
5517 #
5518 # LDAP
5519 #
5520 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5521 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5522
5523
5524
5525 # Check whether --with-ldap was given.
5526 if test "${with_ldap+set}" = set; then
5527   withval=$with_ldap;
5528   case $withval in
5529     yes)
5530
5531 cat >>confdefs.h <<\_ACEOF
5532 #define USE_LDAP 1
5533 _ACEOF
5534
5535       ;;
5536     no)
5537       :
5538       ;;
5539     *)
5540       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5541 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5542    { (exit 1); exit 1; }; }
5543       ;;
5544   esac
5545
5546 else
5547   with_ldap=no
5548
5549 fi
5550
5551
5552 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5553 $as_echo "$with_ldap" >&6; }
5554
5555
5556
5557 #
5558 # Bonjour
5559 #
5560 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5561 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5562
5563
5564
5565 # Check whether --with-bonjour was given.
5566 if test "${with_bonjour+set}" = set; then
5567   withval=$with_bonjour;
5568   case $withval in
5569     yes)
5570
5571 cat >>confdefs.h <<\_ACEOF
5572 #define USE_BONJOUR 1
5573 _ACEOF
5574
5575       ;;
5576     no)
5577       :
5578       ;;
5579     *)
5580       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5581 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5582    { (exit 1); exit 1; }; }
5583       ;;
5584   esac
5585
5586 else
5587   with_bonjour=no
5588
5589 fi
5590
5591
5592 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5593 $as_echo "$with_bonjour" >&6; }
5594
5595
5596
5597 #
5598 # OpenSSL
5599 #
5600 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5601 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5602
5603
5604
5605 # Check whether --with-openssl was given.
5606 if test "${with_openssl+set}" = set; then
5607   withval=$with_openssl;
5608   case $withval in
5609     yes)
5610
5611 cat >>confdefs.h <<\_ACEOF
5612 #define USE_SSL 1
5613 _ACEOF
5614
5615       ;;
5616     no)
5617       :
5618       ;;
5619     *)
5620       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5621 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5622    { (exit 1); exit 1; }; }
5623       ;;
5624   esac
5625
5626 else
5627   with_openssl=no
5628
5629 fi
5630
5631
5632 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5633 $as_echo "$with_openssl" >&6; }
5634
5635
5636 #
5637 # SELinux
5638 #
5639 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5640 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5641
5642
5643
5644 # Check whether --with-selinux was given.
5645 if test "${with_selinux+set}" = set; then
5646   withval=$with_selinux;
5647   case $withval in
5648     yes)
5649       :
5650       ;;
5651     no)
5652       :
5653       ;;
5654     *)
5655       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5656 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5657    { (exit 1); exit 1; }; }
5658       ;;
5659   esac
5660
5661 else
5662   with_selinux=no
5663
5664 fi
5665
5666
5667
5668 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5669 $as_echo "$with_selinux" >&6; }
5670
5671 #
5672 # Readline
5673 #
5674
5675
5676
5677 # Check whether --with-readline was given.
5678 if test "${with_readline+set}" = set; then
5679   withval=$with_readline;
5680   case $withval in
5681     yes)
5682       :
5683       ;;
5684     no)
5685       :
5686       ;;
5687     *)
5688       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5689 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5690    { (exit 1); exit 1; }; }
5691       ;;
5692   esac
5693
5694 else
5695   with_readline=yes
5696
5697 fi
5698
5699
5700 # readline on MinGW has problems with backslashes in psql and other bugs.
5701 # This is particularly a problem with non-US code pages.
5702 # Therefore disable its use until we understand the cause. 2004-07-20
5703 if test "$PORTNAME" = "win32"; then
5704   if test "$with_readline" = yes; then
5705     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5706 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5707     with_readline=no
5708   fi
5709 fi
5710
5711
5712 #
5713 # Prefer libedit
5714 #
5715
5716
5717
5718 # Check whether --with-libedit-preferred was given.
5719 if test "${with_libedit_preferred+set}" = set; then
5720   withval=$with_libedit_preferred;
5721   case $withval in
5722     yes)
5723       :
5724       ;;
5725     no)
5726       :
5727       ;;
5728     *)
5729       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5730 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5731    { (exit 1); exit 1; }; }
5732       ;;
5733   esac
5734
5735 else
5736   with_libedit_preferred=no
5737
5738 fi
5739
5740
5741
5742
5743 #
5744 # OSSP UUID library
5745 #
5746
5747
5748
5749 # Check whether --with-ossp-uuid was given.
5750 if test "${with_ossp_uuid+set}" = set; then
5751   withval=$with_ossp_uuid;
5752   case $withval in
5753     yes)
5754       :
5755       ;;
5756     no)
5757       :
5758       ;;
5759     *)
5760       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5761 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5762    { (exit 1); exit 1; }; }
5763       ;;
5764   esac
5765
5766 else
5767   with_ossp_uuid=no
5768
5769 fi
5770
5771
5772
5773
5774
5775 #
5776 # XML
5777 #
5778
5779
5780
5781 # Check whether --with-libxml was given.
5782 if test "${with_libxml+set}" = set; then
5783   withval=$with_libxml;
5784   case $withval in
5785     yes)
5786
5787 cat >>confdefs.h <<\_ACEOF
5788 #define USE_LIBXML 1
5789 _ACEOF
5790
5791       ;;
5792     no)
5793       :
5794       ;;
5795     *)
5796       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5797 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5798    { (exit 1); exit 1; }; }
5799       ;;
5800   esac
5801
5802 else
5803   with_libxml=no
5804
5805 fi
5806
5807
5808
5809 if test "$with_libxml" = yes ; then
5810   for ac_prog in xml2-config
5811 do
5812   # Extract the first word of "$ac_prog", so it can be a program name with args.
5813 set dummy $ac_prog; ac_word=$2
5814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5817   $as_echo_n "(cached) " >&6
5818 else
5819   if test -n "$XML2_CONFIG"; then
5820   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827   for ac_exec_ext in '' $ac_executable_extensions; do
5828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829     ac_cv_prog_XML2_CONFIG="$ac_prog"
5830     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834 done
5835 IFS=$as_save_IFS
5836
5837 fi
5838 fi
5839 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5840 if test -n "$XML2_CONFIG"; then
5841   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5842 $as_echo "$XML2_CONFIG" >&6; }
5843 else
5844   { $as_echo "$as_me:$LINENO: result: no" >&5
5845 $as_echo "no" >&6; }
5846 fi
5847
5848
5849   test -n "$XML2_CONFIG" && break
5850 done
5851
5852   if test -n "$XML2_CONFIG"; then
5853     for pgac_option in `$XML2_CONFIG --cflags`; do
5854       case $pgac_option in
5855         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5856       esac
5857     done
5858     for pgac_option in `$XML2_CONFIG --libs`; do
5859       case $pgac_option in
5860         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5861       esac
5862     done
5863   fi
5864 fi
5865
5866
5867
5868 #
5869 # XSLT
5870 #
5871
5872
5873
5874 # Check whether --with-libxslt was given.
5875 if test "${with_libxslt+set}" = set; then
5876   withval=$with_libxslt;
5877   case $withval in
5878     yes)
5879
5880 cat >>confdefs.h <<\_ACEOF
5881 #define USE_LIBXSLT 1
5882 _ACEOF
5883
5884       ;;
5885     no)
5886       :
5887       ;;
5888     *)
5889       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5890 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5891    { (exit 1); exit 1; }; }
5892       ;;
5893   esac
5894
5895 else
5896   with_libxslt=no
5897
5898 fi
5899
5900
5901
5902
5903
5904
5905 #
5906 # tzdata
5907 #
5908
5909
5910
5911 # Check whether --with-system-tzdata was given.
5912 if test "${with_system_tzdata+set}" = set; then
5913   withval=$with_system_tzdata;
5914   case $withval in
5915     yes)
5916       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5917 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5918    { (exit 1); exit 1; }; }
5919       ;;
5920     no)
5921       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5922 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5923    { (exit 1); exit 1; }; }
5924       ;;
5925     *)
5926
5927       ;;
5928   esac
5929
5930 fi
5931
5932
5933
5934
5935 #
5936 # Zlib
5937 #
5938
5939
5940
5941 # Check whether --with-zlib was given.
5942 if test "${with_zlib+set}" = set; then
5943   withval=$with_zlib;
5944   case $withval in
5945     yes)
5946       :
5947       ;;
5948     no)
5949       :
5950       ;;
5951     *)
5952       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5953 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5954    { (exit 1); exit 1; }; }
5955       ;;
5956   esac
5957
5958 else
5959   with_zlib=yes
5960
5961 fi
5962
5963
5964
5965
5966 #
5967 # Elf
5968 #
5969
5970 # Assume system is ELF if it predefines __ELF__ as 1,
5971 # otherwise believe host_os based default.
5972 case $host_os in
5973     freebsd1*|freebsd2*) elf=no;;
5974     freebsd3*|freebsd4*) elf=yes;;
5975 esac
5976
5977
5978 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5979 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5980 if test "${ac_cv_path_GREP+set}" = set; then
5981   $as_echo_n "(cached) " >&6
5982 else
5983   if test -z "$GREP"; then
5984   ac_path_GREP_found=false
5985   # Loop through the user's path and test for each of PROGNAME-LIST
5986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5988 do
5989   IFS=$as_save_IFS
5990   test -z "$as_dir" && as_dir=.
5991   for ac_prog in grep ggrep; do
5992     for ac_exec_ext in '' $ac_executable_extensions; do
5993       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5994       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5995 # Check for GNU ac_path_GREP and select it if it is found.
5996   # Check for GNU $ac_path_GREP
5997 case `"$ac_path_GREP" --version 2>&1` in
5998 *GNU*)
5999   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6000 *)
6001   ac_count=0
6002   $as_echo_n 0123456789 >"conftest.in"
6003   while :
6004   do
6005     cat "conftest.in" "conftest.in" >"conftest.tmp"
6006     mv "conftest.tmp" "conftest.in"
6007     cp "conftest.in" "conftest.nl"
6008     $as_echo 'GREP' >> "conftest.nl"
6009     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6010     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6011     ac_count=`expr $ac_count + 1`
6012     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6013       # Best one so far, save it but keep looking for a better one
6014       ac_cv_path_GREP="$ac_path_GREP"
6015       ac_path_GREP_max=$ac_count
6016     fi
6017     # 10*(2^10) chars as input seems more than enough
6018     test $ac_count -gt 10 && break
6019   done
6020   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6021 esac
6022
6023       $ac_path_GREP_found && break 3
6024     done
6025   done
6026 done
6027 IFS=$as_save_IFS
6028   if test -z "$ac_cv_path_GREP"; then
6029     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6030 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6031    { (exit 1); exit 1; }; }
6032   fi
6033 else
6034   ac_cv_path_GREP=$GREP
6035 fi
6036
6037 fi
6038 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6039 $as_echo "$ac_cv_path_GREP" >&6; }
6040  GREP="$ac_cv_path_GREP"
6041
6042
6043 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6044 $as_echo_n "checking for egrep... " >&6; }
6045 if test "${ac_cv_path_EGREP+set}" = set; then
6046   $as_echo_n "(cached) " >&6
6047 else
6048   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6049    then ac_cv_path_EGREP="$GREP -E"
6050    else
6051      if test -z "$EGREP"; then
6052   ac_path_EGREP_found=false
6053   # Loop through the user's path and test for each of PROGNAME-LIST
6054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6056 do
6057   IFS=$as_save_IFS
6058   test -z "$as_dir" && as_dir=.
6059   for ac_prog in egrep; do
6060     for ac_exec_ext in '' $ac_executable_extensions; do
6061       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6062       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6063 # Check for GNU ac_path_EGREP and select it if it is found.
6064   # Check for GNU $ac_path_EGREP
6065 case `"$ac_path_EGREP" --version 2>&1` in
6066 *GNU*)
6067   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6068 *)
6069   ac_count=0
6070   $as_echo_n 0123456789 >"conftest.in"
6071   while :
6072   do
6073     cat "conftest.in" "conftest.in" >"conftest.tmp"
6074     mv "conftest.tmp" "conftest.in"
6075     cp "conftest.in" "conftest.nl"
6076     $as_echo 'EGREP' >> "conftest.nl"
6077     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6078     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6079     ac_count=`expr $ac_count + 1`
6080     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6081       # Best one so far, save it but keep looking for a better one
6082       ac_cv_path_EGREP="$ac_path_EGREP"
6083       ac_path_EGREP_max=$ac_count
6084     fi
6085     # 10*(2^10) chars as input seems more than enough
6086     test $ac_count -gt 10 && break
6087   done
6088   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6089 esac
6090
6091       $ac_path_EGREP_found && break 3
6092     done
6093   done
6094 done
6095 IFS=$as_save_IFS
6096   if test -z "$ac_cv_path_EGREP"; then
6097     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6098 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6099    { (exit 1); exit 1; }; }
6100   fi
6101 else
6102   ac_cv_path_EGREP=$EGREP
6103 fi
6104
6105    fi
6106 fi
6107 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6108 $as_echo "$ac_cv_path_EGREP" >&6; }
6109  EGREP="$ac_cv_path_EGREP"
6110
6111
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h.  */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h.  */
6118 #if __ELF__
6119   yes
6120 #endif
6121
6122 _ACEOF
6123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6124   $EGREP "yes" >/dev/null 2>&1; then
6125   ELF_SYS=true
6126 else
6127   if test "X$elf" = "Xyes" ; then
6128   ELF_SYS=true
6129 else
6130   ELF_SYS=
6131 fi
6132 fi
6133 rm -f conftest*
6134
6135
6136
6137 #
6138 # Assignments
6139 #
6140
6141 CPPFLAGS="$CPPFLAGS $INCLUDES"
6142 LDFLAGS="$LDFLAGS $LIBDIRS"
6143
6144
6145
6146
6147
6148 # Check whether --with-gnu-ld was given.
6149 if test "${with_gnu_ld+set}" = set; then
6150   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6151 else
6152   with_gnu_ld=no
6153 fi
6154
6155 ac_prog=ld
6156 if test "$GCC" = yes; then
6157   # Check if gcc -print-prog-name=ld gives a path.
6158   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6159 $as_echo_n "checking for ld used by GCC... " >&6; }
6160   case $host in
6161   *-*-mingw*)
6162     # gcc leaves a trailing carriage return which upsets mingw
6163     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6164   *)
6165     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6166   esac
6167   case "$ac_prog" in
6168     # Accept absolute paths.
6169     [\\/]* | [A-Za-z]:[\\/]*)
6170       re_direlt='/[^/][^/]*/\.\./'
6171       # Canonicalize the path of ld
6172       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6173       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6174         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6175       done
6176       test -z "$LD" && LD="$ac_prog"
6177       ;;
6178   "")
6179     # If it fails, then pretend we aren't using GCC.
6180     ac_prog=ld
6181     ;;
6182   *)
6183     # If it is relative, then search for the first ld in PATH.
6184     with_gnu_ld=unknown
6185     ;;
6186   esac
6187 elif test "$with_gnu_ld" = yes; then
6188   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6189 $as_echo_n "checking for GNU ld... " >&6; }
6190 else
6191   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6192 $as_echo_n "checking for non-GNU ld... " >&6; }
6193 fi
6194 if test "${ac_cv_path_LD+set}" = set; then
6195   $as_echo_n "(cached) " >&6
6196 else
6197   if test -z "$LD"; then
6198   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6199   for ac_dir in $PATH; do
6200     test -z "$ac_dir" && ac_dir=.
6201     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6202       ac_cv_path_LD="$ac_dir/$ac_prog"
6203       # Check to see if the program is GNU ld.  I'd rather use --version,
6204       # but apparently some GNU ld's only accept -v.
6205       # Break only if it was the GNU/non-GNU ld that we prefer.
6206       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6207         test "$with_gnu_ld" != no && break
6208       else
6209         test "$with_gnu_ld" != yes && break
6210       fi
6211     fi
6212   done
6213   IFS="$ac_save_ifs"
6214 else
6215   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6216 fi
6217 fi
6218
6219 LD="$ac_cv_path_LD"
6220 if test -n "$LD"; then
6221   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6222 $as_echo "$LD" >&6; }
6223 else
6224   { $as_echo "$as_me:$LINENO: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6228 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6229    { (exit 1); exit 1; }; }
6230 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6231 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6232 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6233   $as_echo_n "(cached) " >&6
6234 else
6235   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6236 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6237   ac_cv_prog_gnu_ld=yes
6238 else
6239   ac_cv_prog_gnu_ld=no
6240 fi
6241 fi
6242 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6243 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6244 with_gnu_ld=$ac_cv_prog_gnu_ld
6245
6246
6247
6248
6249 case $host_os in sysv5*)
6250   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6251 $as_echo_n "checking whether ld -R works... " >&6; }
6252 if test "${pgac_cv_prog_ld_R+set}" = set; then
6253   $as_echo_n "(cached) " >&6
6254 else
6255
6256     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6257     cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h.  */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h.  */
6263
6264 int
6265 main ()
6266 {
6267
6268   ;
6269   return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext conftest$ac_exeext
6273 if { (ac_try="$ac_link"
6274 case "(($ac_try" in
6275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276   *) ac_try_echo=$ac_try;;
6277 esac
6278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279 $as_echo "$ac_try_echo") >&5
6280   (eval "$ac_link") 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } && {
6287          test -z "$ac_c_werror_flag" ||
6288          test ! -s conftest.err
6289        } && test -s conftest$ac_exeext && {
6290          test "$cross_compiling" = yes ||
6291          $as_test_x conftest$ac_exeext
6292        }; then
6293   pgac_cv_prog_ld_R=yes
6294 else
6295   $as_echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6297
6298         pgac_cv_prog_ld_R=no
6299 fi
6300
6301 rm -rf conftest.dSYM
6302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6303       conftest$ac_exeext conftest.$ac_ext
6304     LDFLAGS=$pgac_save_LDFLAGS
6305
6306 fi
6307 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6308 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6309   ld_R_works=$pgac_cv_prog_ld_R
6310
6311 esac
6312 if test -n "$ac_tool_prefix"; then
6313   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6314 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if test "${ac_cv_prog_RANLIB+set}" = set; then
6318   $as_echo_n "(cached) " >&6
6319 else
6320   if test -n "$RANLIB"; then
6321   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328   for ac_exec_ext in '' $ac_executable_extensions; do
6329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6331     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 RANLIB=$ac_cv_prog_RANLIB
6341 if test -n "$RANLIB"; then
6342   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6343 $as_echo "$RANLIB" >&6; }
6344 else
6345   { $as_echo "$as_me:$LINENO: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349
6350 fi
6351 if test -z "$ac_cv_prog_RANLIB"; then
6352   ac_ct_RANLIB=$RANLIB
6353   # Extract the first word of "ranlib", so it can be a program name with args.
6354 set dummy ranlib; ac_word=$2
6355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$ac_ct_RANLIB"; then
6361   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368   for ac_exec_ext in '' $ac_executable_extensions; do
6369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370     ac_cv_prog_ac_ct_RANLIB="ranlib"
6371     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6381 if test -n "$ac_ct_RANLIB"; then
6382   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6383 $as_echo "$ac_ct_RANLIB" >&6; }
6384 else
6385   { $as_echo "$as_me:$LINENO: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389   if test "x$ac_ct_RANLIB" = x; then
6390     RANLIB=":"
6391   else
6392     case $cross_compiling:$ac_tool_warned in
6393 yes:)
6394 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6397 esac
6398     RANLIB=$ac_ct_RANLIB
6399   fi
6400 else
6401   RANLIB="$ac_cv_prog_RANLIB"
6402 fi
6403
6404
6405   if test -n "$ac_tool_prefix"; then
6406   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6407 set dummy ${ac_tool_prefix}strip; ac_word=$2
6408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if test "${ac_cv_prog_STRIP+set}" = set; then
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$STRIP"; then
6414   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421   for ac_exec_ext in '' $ac_executable_extensions; do
6422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6424     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428 done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 STRIP=$ac_cv_prog_STRIP
6434 if test -n "$STRIP"; then
6435   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6436 $as_echo "$STRIP" >&6; }
6437 else
6438   { $as_echo "$as_me:$LINENO: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442
6443 fi
6444 if test -z "$ac_cv_prog_STRIP"; then
6445   ac_ct_STRIP=$STRIP
6446   # Extract the first word of "strip", so it can be a program name with args.
6447 set dummy strip; ac_word=$2
6448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6451   $as_echo_n "(cached) " >&6
6452 else
6453   if test -n "$ac_ct_STRIP"; then
6454   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459   IFS=$as_save_IFS
6460   test -z "$as_dir" && as_dir=.
6461   for ac_exec_ext in '' $ac_executable_extensions; do
6462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463     ac_cv_prog_ac_ct_STRIP="strip"
6464     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465     break 2
6466   fi
6467 done
6468 done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6474 if test -n "$ac_ct_STRIP"; then
6475   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6476 $as_echo "$ac_ct_STRIP" >&6; }
6477 else
6478   { $as_echo "$as_me:$LINENO: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482   if test "x$ac_ct_STRIP" = x; then
6483     STRIP=":"
6484   else
6485     case $cross_compiling:$ac_tool_warned in
6486 yes:)
6487 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6490 esac
6491     STRIP=$ac_ct_STRIP
6492   fi
6493 else
6494   STRIP="$ac_cv_prog_STRIP"
6495 fi
6496
6497
6498   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6499 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6500   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6501     STRIP_STATIC_LIB="$STRIP -x"
6502     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6503     { $as_echo "$as_me:$LINENO: result: yes" >&5
6504 $as_echo "yes" >&6; }
6505   else
6506     STRIP_STATIC_LIB=:
6507     STRIP_SHARED_LIB=:
6508     { $as_echo "$as_me:$LINENO: result: no" >&5
6509 $as_echo "no" >&6; }
6510   fi
6511
6512
6513
6514 if test -n "$ac_tool_prefix"; then
6515   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}ar; ac_word=$2
6517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_AR+set}" = set; then
6520   $as_echo_n "(cached) " >&6
6521 else
6522   if test -n "$AR"; then
6523   ac_cv_prog_AR="$AR" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530   for ac_exec_ext in '' $ac_executable_extensions; do
6531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532     ac_cv_prog_AR="${ac_tool_prefix}ar"
6533     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534     break 2
6535   fi
6536 done
6537 done
6538 IFS=$as_save_IFS
6539
6540 fi
6541 fi
6542 AR=$ac_cv_prog_AR
6543 if test -n "$AR"; then
6544   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6545 $as_echo "$AR" >&6; }
6546 else
6547   { $as_echo "$as_me:$LINENO: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550
6551
6552 fi
6553 if test -z "$ac_cv_prog_AR"; then
6554   ac_ct_AR=$AR
6555   # Extract the first word of "ar", so it can be a program name with args.
6556 set dummy ar; ac_word=$2
6557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6560   $as_echo_n "(cached) " >&6
6561 else
6562   if test -n "$ac_ct_AR"; then
6563   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570   for ac_exec_ext in '' $ac_executable_extensions; do
6571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572     ac_cv_prog_ac_ct_AR="ar"
6573     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6583 if test -n "$ac_ct_AR"; then
6584   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6585 $as_echo "$ac_ct_AR" >&6; }
6586 else
6587   { $as_echo "$as_me:$LINENO: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591   if test "x$ac_ct_AR" = x; then
6592     AR="ar"
6593   else
6594     case $cross_compiling:$ac_tool_warned in
6595 yes:)
6596 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600     AR=$ac_ct_AR
6601   fi
6602 else
6603   AR="$ac_cv_prog_AR"
6604 fi
6605
6606 if test "$PORTNAME" = "win32"; then
6607   if test -n "$ac_tool_prefix"; then
6608   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6613   $as_echo_n "(cached) " >&6
6614 else
6615   if test -n "$DLLTOOL"; then
6616   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621   IFS=$as_save_IFS
6622   test -z "$as_dir" && as_dir=.
6623   for ac_exec_ext in '' $ac_executable_extensions; do
6624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6626     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627     break 2
6628   fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 DLLTOOL=$ac_cv_prog_DLLTOOL
6636 if test -n "$DLLTOOL"; then
6637   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6638 $as_echo "$DLLTOOL" >&6; }
6639 else
6640   { $as_echo "$as_me:$LINENO: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643
6644
6645 fi
6646 if test -z "$ac_cv_prog_DLLTOOL"; then
6647   ac_ct_DLLTOOL=$DLLTOOL
6648   # Extract the first word of "dlltool", so it can be a program name with args.
6649 set dummy dlltool; ac_word=$2
6650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6653   $as_echo_n "(cached) " >&6
6654 else
6655   if test -n "$ac_ct_DLLTOOL"; then
6656   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661   IFS=$as_save_IFS
6662   test -z "$as_dir" && as_dir=.
6663   for ac_exec_ext in '' $ac_executable_extensions; do
6664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6666     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667     break 2
6668   fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673 fi
6674 fi
6675 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6676 if test -n "$ac_ct_DLLTOOL"; then
6677   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6678 $as_echo "$ac_ct_DLLTOOL" >&6; }
6679 else
6680   { $as_echo "$as_me:$LINENO: result: no" >&5
6681 $as_echo "no" >&6; }
6682 fi
6683
6684   if test "x$ac_ct_DLLTOOL" = x; then
6685     DLLTOOL="dlltool"
6686   else
6687     case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693     DLLTOOL=$ac_ct_DLLTOOL
6694   fi
6695 else
6696   DLLTOOL="$ac_cv_prog_DLLTOOL"
6697 fi
6698
6699   if test -n "$ac_tool_prefix"; then
6700   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6702 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6705   $as_echo_n "(cached) " >&6
6706 else
6707   if test -n "$DLLWRAP"; then
6708   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713   IFS=$as_save_IFS
6714   test -z "$as_dir" && as_dir=.
6715   for ac_exec_ext in '' $ac_executable_extensions; do
6716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6718     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719     break 2
6720   fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 DLLWRAP=$ac_cv_prog_DLLWRAP
6728 if test -n "$DLLWRAP"; then
6729   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6730 $as_echo "$DLLWRAP" >&6; }
6731 else
6732   { $as_echo "$as_me:$LINENO: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735
6736
6737 fi
6738 if test -z "$ac_cv_prog_DLLWRAP"; then
6739   ac_ct_DLLWRAP=$DLLWRAP
6740   # Extract the first word of "dllwrap", so it can be a program name with args.
6741 set dummy dllwrap; ac_word=$2
6742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6745   $as_echo_n "(cached) " >&6
6746 else
6747   if test -n "$ac_ct_DLLWRAP"; then
6748   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753   IFS=$as_save_IFS
6754   test -z "$as_dir" && as_dir=.
6755   for ac_exec_ext in '' $ac_executable_extensions; do
6756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6758     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759     break 2
6760   fi
6761 done
6762 done
6763 IFS=$as_save_IFS
6764
6765 fi
6766 fi
6767 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6768 if test -n "$ac_ct_DLLWRAP"; then
6769   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6770 $as_echo "$ac_ct_DLLWRAP" >&6; }
6771 else
6772   { $as_echo "$as_me:$LINENO: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775
6776   if test "x$ac_ct_DLLWRAP" = x; then
6777     DLLWRAP="dllwrap"
6778   else
6779     case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6784 esac
6785     DLLWRAP=$ac_ct_DLLWRAP
6786   fi
6787 else
6788   DLLWRAP="$ac_cv_prog_DLLWRAP"
6789 fi
6790
6791   if test -n "$ac_tool_prefix"; then
6792   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}windres; ac_word=$2
6794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if test "${ac_cv_prog_WINDRES+set}" = set; then
6797   $as_echo_n "(cached) " >&6
6798 else
6799   if test -n "$WINDRES"; then
6800   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805   IFS=$as_save_IFS
6806   test -z "$as_dir" && as_dir=.
6807   for ac_exec_ext in '' $ac_executable_extensions; do
6808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6810     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811     break 2
6812   fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 WINDRES=$ac_cv_prog_WINDRES
6820 if test -n "$WINDRES"; then
6821   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6822 $as_echo "$WINDRES" >&6; }
6823 else
6824   { $as_echo "$as_me:$LINENO: result: no" >&5
6825 $as_echo "no" >&6; }
6826 fi
6827
6828
6829 fi
6830 if test -z "$ac_cv_prog_WINDRES"; then
6831   ac_ct_WINDRES=$WINDRES
6832   # Extract the first word of "windres", so it can be a program name with args.
6833 set dummy windres; ac_word=$2
6834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6837   $as_echo_n "(cached) " >&6
6838 else
6839   if test -n "$ac_ct_WINDRES"; then
6840   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845   IFS=$as_save_IFS
6846   test -z "$as_dir" && as_dir=.
6847   for ac_exec_ext in '' $ac_executable_extensions; do
6848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849     ac_cv_prog_ac_ct_WINDRES="windres"
6850     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851     break 2
6852   fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857 fi
6858 fi
6859 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6860 if test -n "$ac_ct_WINDRES"; then
6861   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6862 $as_echo "$ac_ct_WINDRES" >&6; }
6863 else
6864   { $as_echo "$as_me:$LINENO: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868   if test "x$ac_ct_WINDRES" = x; then
6869     WINDRES="windres"
6870   else
6871     case $cross_compiling:$ac_tool_warned in
6872 yes:)
6873 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875 ac_tool_warned=yes ;;
6876 esac
6877     WINDRES=$ac_ct_WINDRES
6878   fi
6879 else
6880   WINDRES="$ac_cv_prog_WINDRES"
6881 fi
6882
6883 fi
6884
6885 # Extract the first word of "tar", so it can be a program name with args.
6886 set dummy tar; ac_word=$2
6887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if test "${ac_cv_path_TAR+set}" = set; then
6890   $as_echo_n "(cached) " >&6
6891 else
6892   case $TAR in
6893   [\\/]* | ?:[\\/]*)
6894   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6895   ;;
6896   *)
6897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900   IFS=$as_save_IFS
6901   test -z "$as_dir" && as_dir=.
6902   for ac_exec_ext in '' $ac_executable_extensions; do
6903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6905     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906     break 2
6907   fi
6908 done
6909 done
6910 IFS=$as_save_IFS
6911
6912   ;;
6913 esac
6914 fi
6915 TAR=$ac_cv_path_TAR
6916 if test -n "$TAR"; then
6917   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6918 $as_echo "$TAR" >&6; }
6919 else
6920   { $as_echo "$as_me:$LINENO: result: no" >&5
6921 $as_echo "no" >&6; }
6922 fi
6923
6924
6925 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6926 $as_echo_n "checking whether ln -s works... " >&6; }
6927 LN_S=$as_ln_s
6928 if test "$LN_S" = "ln -s"; then
6929   { $as_echo "$as_me:$LINENO: result: yes" >&5
6930 $as_echo "yes" >&6; }
6931 else
6932   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6933 $as_echo "no, using $LN_S" >&6; }
6934 fi
6935
6936 for ac_prog in gawk mawk nawk awk
6937 do
6938   # Extract the first word of "$ac_prog", so it can be a program name with args.
6939 set dummy $ac_prog; ac_word=$2
6940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if test "${ac_cv_prog_AWK+set}" = set; then
6943   $as_echo_n "(cached) " >&6
6944 else
6945   if test -n "$AWK"; then
6946   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953   for ac_exec_ext in '' $ac_executable_extensions; do
6954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955     ac_cv_prog_AWK="$ac_prog"
6956     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 AWK=$ac_cv_prog_AWK
6966 if test -n "$AWK"; then
6967   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6968 $as_echo "$AWK" >&6; }
6969 else
6970   { $as_echo "$as_me:$LINENO: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974
6975   test -n "$AWK" && break
6976 done
6977
6978 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6979 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6980 if test -z "$MKDIR_P"; then
6981   if test "${ac_cv_path_mkdir+set}" = set; then
6982   $as_echo_n "(cached) " >&6
6983 else
6984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6986 do
6987   IFS=$as_save_IFS
6988   test -z "$as_dir" && as_dir=.
6989   for ac_prog in mkdir gmkdir; do
6990          for ac_exec_ext in '' $ac_executable_extensions; do
6991            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6992            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6993              'mkdir (GNU coreutils) '* | \
6994              'mkdir (coreutils) '* | \
6995              'mkdir (fileutils) '4.1*)
6996                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6997                break 3;;
6998            esac
6999          done
7000        done
7001 done
7002 IFS=$as_save_IFS
7003
7004 fi
7005
7006   if test "${ac_cv_path_mkdir+set}" = set; then
7007     MKDIR_P="$ac_cv_path_mkdir -p"
7008   else
7009     # As a last resort, use the slow shell script.  Don't cache a
7010     # value for MKDIR_P within a source directory, because that will
7011     # break other packages using the cache if that directory is
7012     # removed, or if the value is a relative name.
7013     test -d ./--version && rmdir ./--version
7014     MKDIR_P="$ac_install_sh -d"
7015   fi
7016 fi
7017 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7018 $as_echo "$MKDIR_P" >&6; }
7019
7020 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7021 # a relative path to it in each makefile where it subsitutes it. This clashes
7022 # with our Makefile.global concept. This workaround helps.
7023 case $MKDIR_P in
7024   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7025 esac
7026
7027 # Let the user override the search
7028 if test -z "$BISON"; then
7029   for ac_prog in bison
7030 do
7031   # Extract the first word of "$ac_prog", so it can be a program name with args.
7032 set dummy $ac_prog; ac_word=$2
7033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if test "${ac_cv_path_BISON+set}" = set; then
7036   $as_echo_n "(cached) " >&6
7037 else
7038   case $BISON in
7039   [\\/]* | ?:[\\/]*)
7040   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7041   ;;
7042   *)
7043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046   IFS=$as_save_IFS
7047   test -z "$as_dir" && as_dir=.
7048   for ac_exec_ext in '' $ac_executable_extensions; do
7049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7051     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052     break 2
7053   fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058   ;;
7059 esac
7060 fi
7061 BISON=$ac_cv_path_BISON
7062 if test -n "$BISON"; then
7063   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7064 $as_echo "$BISON" >&6; }
7065 else
7066   { $as_echo "$as_me:$LINENO: result: no" >&5
7067 $as_echo "no" >&6; }
7068 fi
7069
7070
7071   test -n "$BISON" && break
7072 done
7073
7074 fi
7075
7076 if test "$BISON"; then
7077   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7078   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7079 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7080   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7081   then
7082     { $as_echo "$as_me:$LINENO: WARNING:
7083 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7084 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7085 $as_echo "$as_me: WARNING:
7086 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7087 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7088     BISON=""
7089   fi
7090 fi
7091
7092 if test -z "$BISON"; then
7093   { $as_echo "$as_me:$LINENO: WARNING:
7094 *** Without Bison you will not be able to build PostgreSQL from Git nor
7095 *** change any of the parser definition files.  You can obtain Bison from
7096 *** a GNU mirror site.  (If you are using the official distribution of
7097 *** PostgreSQL then you do not need to worry about this, because the Bison
7098 *** output is pre-generated.)" >&5
7099 $as_echo "$as_me: WARNING:
7100 *** Without Bison you will not be able to build PostgreSQL from Git nor
7101 *** change any of the parser definition files.  You can obtain Bison from
7102 *** a GNU mirror site.  (If you are using the official distribution of
7103 *** PostgreSQL then you do not need to worry about this, because the Bison
7104 *** output is pre-generated.)" >&2;}
7105 fi
7106 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7107
7108
7109 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7110 $as_echo_n "checking for flex... " >&6; }
7111 if test "${pgac_cv_path_flex+set}" = set; then
7112   $as_echo_n "(cached) " >&6
7113 else
7114   # Let the user override the test
7115 if test -n "$FLEX"; then
7116   pgac_cv_path_flex=$FLEX
7117 else
7118   pgac_save_IFS=$IFS
7119   IFS=$PATH_SEPARATOR
7120   for pgac_dir in $PATH; do
7121     IFS=$pgac_save_IFS
7122     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7123       pgac_dir=`pwd`
7124     fi
7125     for pgac_prog in flex lex; do
7126       pgac_candidate="$pgac_dir/$pgac_prog"
7127       if test -f "$pgac_candidate" \
7128         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7129       then
7130         echo '%%'  > conftest.l
7131         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7132           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7133           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7134           then
7135             pgac_cv_path_flex=$pgac_candidate
7136             break 2
7137           else
7138             { $as_echo "$as_me:$LINENO: WARNING:
7139 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7140 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7141 $as_echo "$as_me: WARNING:
7142 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7143 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7144           fi
7145         fi
7146       fi
7147     done
7148   done
7149   rm -f conftest.l lex.yy.c
7150   : ${pgac_cv_path_flex=no}
7151 fi
7152
7153 fi
7154 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7155 $as_echo "$pgac_cv_path_flex" >&6; }
7156 if test x"$pgac_cv_path_flex" = x"no"; then
7157   { $as_echo "$as_me:$LINENO: WARNING:
7158 *** Without Flex you will not be able to build PostgreSQL from Git nor
7159 *** change any of the scanner definition files.  You can obtain Flex from
7160 *** a GNU mirror site.  (If you are using the official distribution of
7161 *** PostgreSQL then you do not need to worry about this because the Flex
7162 *** output is pre-generated.)" >&5
7163 $as_echo "$as_me: WARNING:
7164 *** Without Flex you will not be able to build PostgreSQL from Git nor
7165 *** change any of the scanner definition files.  You can obtain Flex from
7166 *** a GNU mirror site.  (If you are using the official distribution of
7167 *** PostgreSQL then you do not need to worry about this because the Flex
7168 *** output is pre-generated.)" >&2;}
7169
7170   FLEX=
7171 else
7172   FLEX=$pgac_cv_path_flex
7173   pgac_flex_version=`$FLEX --version 2>/dev/null`
7174   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7175 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7176 fi
7177
7178
7179
7180
7181
7182 # Let the user override the search
7183 if test -z "$PERL"; then
7184   # Extract the first word of "perl", so it can be a program name with args.
7185 set dummy perl; ac_word=$2
7186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if test "${ac_cv_path_PERL+set}" = set; then
7189   $as_echo_n "(cached) " >&6
7190 else
7191   case $PERL in
7192   [\\/]* | ?:[\\/]*)
7193   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7194   ;;
7195   *)
7196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201   for ac_exec_ext in '' $ac_executable_extensions; do
7202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7204     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208 done
7209 IFS=$as_save_IFS
7210
7211   ;;
7212 esac
7213 fi
7214 PERL=$ac_cv_path_PERL
7215 if test -n "$PERL"; then
7216   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7217 $as_echo "$PERL" >&6; }
7218 else
7219   { $as_echo "$as_me:$LINENO: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222
7223
7224 fi
7225
7226 if test "$PERL"; then
7227   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'`
7228   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7229 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7230   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7231     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7232   then
7233     { $as_echo "$as_me:$LINENO: WARNING:
7234 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7235 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7236 $as_echo "$as_me: WARNING:
7237 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7238 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7239     PERL=""
7240   fi
7241 fi
7242
7243 if test -z "$PERL"; then
7244   { $as_echo "$as_me:$LINENO: WARNING:
7245 *** Without Perl you will not be able to build PostgreSQL from Git.
7246 *** You can obtain Perl from any CPAN mirror site.
7247 *** (If you are using the official distribution of PostgreSQL then you do not
7248 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7249 $as_echo "$as_me: WARNING:
7250 *** Without Perl you will not be able to build PostgreSQL from Git.
7251 *** You can obtain Perl from any CPAN mirror site.
7252 *** (If you are using the official distribution of PostgreSQL then you do not
7253 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7254 fi
7255
7256 if test "$with_perl" = yes; then
7257   if test -z "$PERL"; then
7258     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7259 $as_echo "$as_me: error: Perl not found" >&2;}
7260    { (exit 1); exit 1; }; }
7261   fi
7262
7263 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7264 $as_echo_n "checking for Perl archlibexp... " >&6; }
7265 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7266 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7267 $as_echo "$perl_archlibexp" >&6; }
7268 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7269 $as_echo_n "checking for Perl privlibexp... " >&6; }
7270 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7271 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7272 $as_echo "$perl_privlibexp" >&6; }
7273 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7274 $as_echo_n "checking for Perl useshrplib... " >&6; }
7275 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7276 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7277 $as_echo "$perl_useshrplib" >&6; }
7278
7279 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7280 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7281 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7282 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7283 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7284 if test -z "$perl_embed_ldflags" ; then
7285         { $as_echo "$as_me:$LINENO: result: no" >&5
7286 $as_echo "no" >&6; }
7287         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7288 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7289 installed." >&5
7290 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7291 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7292 installed." >&2;}
7293    { (exit 1); exit 1; }; }
7294 else
7295         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7296 $as_echo "$perl_embed_ldflags" >&6; }
7297 fi
7298
7299 fi
7300
7301 if test "$with_python" = yes; then
7302   # Extract the first word of "python", so it can be a program name with args.
7303 set dummy python; ac_word=$2
7304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_path_PYTHON+set}" = set; then
7307   $as_echo_n "(cached) " >&6
7308 else
7309   case $PYTHON in
7310   [\\/]* | ?:[\\/]*)
7311   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7312   ;;
7313   *)
7314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317   IFS=$as_save_IFS
7318   test -z "$as_dir" && as_dir=.
7319   for ac_exec_ext in '' $ac_executable_extensions; do
7320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7322     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323     break 2
7324   fi
7325 done
7326 done
7327 IFS=$as_save_IFS
7328
7329   ;;
7330 esac
7331 fi
7332 PYTHON=$ac_cv_path_PYTHON
7333 if test -n "$PYTHON"; then
7334   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7335 $as_echo "$PYTHON" >&6; }
7336 else
7337   { $as_echo "$as_me:$LINENO: result: no" >&5
7338 $as_echo "no" >&6; }
7339 fi
7340
7341
7342 if test x"$PYTHON" = x""; then
7343   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7344 $as_echo "$as_me: error: Python not found" >&2;}
7345    { (exit 1); exit 1; }; }
7346 fi
7347
7348
7349 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7350 $as_echo_n "checking for Python distutils module... " >&6; }
7351 if "${PYTHON}" -c 'import distutils' 2>&5
7352 then
7353     { $as_echo "$as_me:$LINENO: result: yes" >&5
7354 $as_echo "yes" >&6; }
7355 else
7356     { $as_echo "$as_me:$LINENO: result: no" >&5
7357 $as_echo "no" >&6; }
7358     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7359 $as_echo "$as_me: error: distutils module not found" >&2;}
7360    { (exit 1); exit 1; }; }
7361 fi
7362 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7363 $as_echo_n "checking Python configuration directory... " >&6; }
7364 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7365 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7366 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7367 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7368
7369 # This should be enough of a message.
7370 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7371 $as_echo "$python_configdir" >&6; }
7372
7373
7374 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7375 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7376
7377 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7378 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7379 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7380 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7381
7382 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7383 then
7384         # New way: use the official shared library
7385         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7386         python_libspec="-L${python_libdir} -l${ldlibrary}"
7387 else
7388         # Old way: use libpython from python_configdir
7389         python_libdir="${python_configdir}"
7390         # LDVERSION was introduced in Python 3.2.
7391         python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7392         if test x"${python_ldversion}" = x""; then
7393                 python_ldversion=$python_version
7394         fi
7395         python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7396 fi
7397
7398 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7399
7400 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7401 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7402
7403
7404 # threaded python is not supported on bsd's
7405 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7406 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7407 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7408 if test "$pythreads" = "1"; then
7409   { $as_echo "$as_me:$LINENO: result: yes" >&5
7410 $as_echo "yes" >&6; }
7411   case $host_os in
7412   openbsd*|freebsd*)
7413     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7414 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7415    { (exit 1); exit 1; }; }
7416     ;;
7417   esac
7418 else
7419   { $as_echo "$as_me:$LINENO: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423
7424 fi
7425
7426 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7427   # Extract the first word of "zic", so it can be a program name with args.
7428 set dummy zic; ac_word=$2
7429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if test "${ac_cv_path_ZIC+set}" = set; then
7432   $as_echo_n "(cached) " >&6
7433 else
7434   case $ZIC in
7435   [\\/]* | ?:[\\/]*)
7436   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7437   ;;
7438   *)
7439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442   IFS=$as_save_IFS
7443   test -z "$as_dir" && as_dir=.
7444   for ac_exec_ext in '' $ac_executable_extensions; do
7445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7447     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448     break 2
7449   fi
7450 done
7451 done
7452 IFS=$as_save_IFS
7453
7454   ;;
7455 esac
7456 fi
7457 ZIC=$ac_cv_path_ZIC
7458 if test -n "$ZIC"; then
7459   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7460 $as_echo "$ZIC" >&6; }
7461 else
7462   { $as_echo "$as_me:$LINENO: result: no" >&5
7463 $as_echo "no" >&6; }
7464 fi
7465
7466
7467   if test -z "$ZIC"; then
7468     { { $as_echo "$as_me:$LINENO: error:
7469 When cross-compiling, either use the option --with-system-tzdata to use
7470 existing time-zone data, or set the environment variable ZIC to a zic
7471 program to use during the build." >&5
7472 $as_echo "$as_me: error:
7473 When cross-compiling, either use the option --with-system-tzdata to use
7474 existing time-zone data, or set the environment variable ZIC to a zic
7475 program to use during the build." >&2;}
7476    { (exit 1); exit 1; }; }
7477   fi
7478 fi
7479
7480
7481 ##
7482 ## Libraries
7483 ##
7484 ## Most libraries are included only if they demonstrably provide a function
7485 ## we need, but libm is an exception: always include it, because there are
7486 ## too many compilers that play cute optimization games that will break
7487 ## probes for standard functions such as pow().
7488 ##
7489
7490
7491 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7492 $as_echo_n "checking for main in -lm... " >&6; }
7493 if test "${ac_cv_lib_m_main+set}" = set; then
7494   $as_echo_n "(cached) " >&6
7495 else
7496   ac_check_lib_save_LIBS=$LIBS
7497 LIBS="-lm  $LIBS"
7498 cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h.  */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h.  */
7504
7505
7506 int
7507 main ()
7508 {
7509 return main ();
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (ac_try="$ac_link"
7516 case "(($ac_try" in
7517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518   *) ac_try_echo=$ac_try;;
7519 esac
7520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7521 $as_echo "$ac_try_echo") >&5
7522   (eval "$ac_link") 2>conftest.er1
7523   ac_status=$?
7524   grep -v '^ *+' conftest.er1 >conftest.err
7525   rm -f conftest.er1
7526   cat conftest.err >&5
7527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); } && {
7529          test -z "$ac_c_werror_flag" ||
7530          test ! -s conftest.err
7531        } && test -s conftest$ac_exeext && {
7532          test "$cross_compiling" = yes ||
7533          $as_test_x conftest$ac_exeext
7534        }; then
7535   ac_cv_lib_m_main=yes
7536 else
7537   $as_echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7539
7540         ac_cv_lib_m_main=no
7541 fi
7542
7543 rm -rf conftest.dSYM
7544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7545       conftest$ac_exeext conftest.$ac_ext
7546 LIBS=$ac_check_lib_save_LIBS
7547 fi
7548 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7549 $as_echo "$ac_cv_lib_m_main" >&6; }
7550 if test "x$ac_cv_lib_m_main" = x""yes; then
7551   cat >>confdefs.h <<_ACEOF
7552 #define HAVE_LIBM 1
7553 _ACEOF
7554
7555   LIBS="-lm $LIBS"
7556
7557 fi
7558
7559 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7560 $as_echo_n "checking for library containing setproctitle... " >&6; }
7561 if test "${ac_cv_search_setproctitle+set}" = set; then
7562   $as_echo_n "(cached) " >&6
7563 else
7564   ac_func_search_save_LIBS=$LIBS
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h.  */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h.  */
7571
7572 /* Override any GCC internal prototype to avoid an error.
7573    Use char because int might match the return type of a GCC
7574    builtin and then its argument prototype would still apply.  */
7575 #ifdef __cplusplus
7576 extern "C"
7577 #endif
7578 char setproctitle ();
7579 int
7580 main ()
7581 {
7582 return setproctitle ();
7583   ;
7584   return 0;
7585 }
7586 _ACEOF
7587 for ac_lib in '' util; do
7588   if test -z "$ac_lib"; then
7589     ac_res="none required"
7590   else
7591     ac_res=-l$ac_lib
7592     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7593   fi
7594   rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (ac_try="$ac_link"
7596 case "(($ac_try" in
7597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598   *) ac_try_echo=$ac_try;;
7599 esac
7600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7601 $as_echo "$ac_try_echo") >&5
7602   (eval "$ac_link") 2>conftest.er1
7603   ac_status=$?
7604   grep -v '^ *+' conftest.er1 >conftest.err
7605   rm -f conftest.er1
7606   cat conftest.err >&5
7607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); } && {
7609          test -z "$ac_c_werror_flag" ||
7610          test ! -s conftest.err
7611        } && test -s conftest$ac_exeext && {
7612          test "$cross_compiling" = yes ||
7613          $as_test_x conftest$ac_exeext
7614        }; then
7615   ac_cv_search_setproctitle=$ac_res
7616 else
7617   $as_echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7619
7620
7621 fi
7622
7623 rm -rf conftest.dSYM
7624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7625       conftest$ac_exeext
7626   if test "${ac_cv_search_setproctitle+set}" = set; then
7627   break
7628 fi
7629 done
7630 if test "${ac_cv_search_setproctitle+set}" = set; then
7631   :
7632 else
7633   ac_cv_search_setproctitle=no
7634 fi
7635 rm conftest.$ac_ext
7636 LIBS=$ac_func_search_save_LIBS
7637 fi
7638 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7639 $as_echo "$ac_cv_search_setproctitle" >&6; }
7640 ac_res=$ac_cv_search_setproctitle
7641 if test "$ac_res" != no; then
7642   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7643
7644 fi
7645
7646 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7647 $as_echo_n "checking for library containing dlopen... " >&6; }
7648 if test "${ac_cv_search_dlopen+set}" = set; then
7649   $as_echo_n "(cached) " >&6
7650 else
7651   ac_func_search_save_LIBS=$LIBS
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h.  */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h.  */
7658
7659 /* Override any GCC internal prototype to avoid an error.
7660    Use char because int might match the return type of a GCC
7661    builtin and then its argument prototype would still apply.  */
7662 #ifdef __cplusplus
7663 extern "C"
7664 #endif
7665 char dlopen ();
7666 int
7667 main ()
7668 {
7669 return dlopen ();
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 for ac_lib in '' dl; do
7675   if test -z "$ac_lib"; then
7676     ac_res="none required"
7677   else
7678     ac_res=-l$ac_lib
7679     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7680   fi
7681   rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (ac_try="$ac_link"
7683 case "(($ac_try" in
7684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685   *) ac_try_echo=$ac_try;;
7686 esac
7687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688 $as_echo "$ac_try_echo") >&5
7689   (eval "$ac_link") 2>conftest.er1
7690   ac_status=$?
7691   grep -v '^ *+' conftest.er1 >conftest.err
7692   rm -f conftest.er1
7693   cat conftest.err >&5
7694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); } && {
7696          test -z "$ac_c_werror_flag" ||
7697          test ! -s conftest.err
7698        } && test -s conftest$ac_exeext && {
7699          test "$cross_compiling" = yes ||
7700          $as_test_x conftest$ac_exeext
7701        }; then
7702   ac_cv_search_dlopen=$ac_res
7703 else
7704   $as_echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707
7708 fi
7709
7710 rm -rf conftest.dSYM
7711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7712       conftest$ac_exeext
7713   if test "${ac_cv_search_dlopen+set}" = set; then
7714   break
7715 fi
7716 done
7717 if test "${ac_cv_search_dlopen+set}" = set; then
7718   :
7719 else
7720   ac_cv_search_dlopen=no
7721 fi
7722 rm conftest.$ac_ext
7723 LIBS=$ac_func_search_save_LIBS
7724 fi
7725 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7726 $as_echo "$ac_cv_search_dlopen" >&6; }
7727 ac_res=$ac_cv_search_dlopen
7728 if test "$ac_res" != no; then
7729   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7730
7731 fi
7732
7733 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7734 $as_echo_n "checking for library containing socket... " >&6; }
7735 if test "${ac_cv_search_socket+set}" = set; then
7736   $as_echo_n "(cached) " >&6
7737 else
7738   ac_func_search_save_LIBS=$LIBS
7739 cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745
7746 /* Override any GCC internal prototype to avoid an error.
7747    Use char because int might match the return type of a GCC
7748    builtin and then its argument prototype would still apply.  */
7749 #ifdef __cplusplus
7750 extern "C"
7751 #endif
7752 char socket ();
7753 int
7754 main ()
7755 {
7756 return socket ();
7757   ;
7758   return 0;
7759 }
7760 _ACEOF
7761 for ac_lib in '' socket wsock32; do
7762   if test -z "$ac_lib"; then
7763     ac_res="none required"
7764   else
7765     ac_res=-l$ac_lib
7766     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7767   fi
7768   rm -f conftest.$ac_objext conftest$ac_exeext
7769 if { (ac_try="$ac_link"
7770 case "(($ac_try" in
7771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772   *) ac_try_echo=$ac_try;;
7773 esac
7774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7775 $as_echo "$ac_try_echo") >&5
7776   (eval "$ac_link") 2>conftest.er1
7777   ac_status=$?
7778   grep -v '^ *+' conftest.er1 >conftest.err
7779   rm -f conftest.er1
7780   cat conftest.err >&5
7781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); } && {
7783          test -z "$ac_c_werror_flag" ||
7784          test ! -s conftest.err
7785        } && test -s conftest$ac_exeext && {
7786          test "$cross_compiling" = yes ||
7787          $as_test_x conftest$ac_exeext
7788        }; then
7789   ac_cv_search_socket=$ac_res
7790 else
7791   $as_echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794
7795 fi
7796
7797 rm -rf conftest.dSYM
7798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7799       conftest$ac_exeext
7800   if test "${ac_cv_search_socket+set}" = set; then
7801   break
7802 fi
7803 done
7804 if test "${ac_cv_search_socket+set}" = set; then
7805   :
7806 else
7807   ac_cv_search_socket=no
7808 fi
7809 rm conftest.$ac_ext
7810 LIBS=$ac_func_search_save_LIBS
7811 fi
7812 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7813 $as_echo "$ac_cv_search_socket" >&6; }
7814 ac_res=$ac_cv_search_socket
7815 if test "$ac_res" != no; then
7816   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7817
7818 fi
7819
7820 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7821 $as_echo_n "checking for library containing shl_load... " >&6; }
7822 if test "${ac_cv_search_shl_load+set}" = set; then
7823   $as_echo_n "(cached) " >&6
7824 else
7825   ac_func_search_save_LIBS=$LIBS
7826 cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h.  */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h.  */
7832
7833 /* Override any GCC internal prototype to avoid an error.
7834    Use char because int might match the return type of a GCC
7835    builtin and then its argument prototype would still apply.  */
7836 #ifdef __cplusplus
7837 extern "C"
7838 #endif
7839 char shl_load ();
7840 int
7841 main ()
7842 {
7843 return shl_load ();
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 for ac_lib in '' dld; do
7849   if test -z "$ac_lib"; then
7850     ac_res="none required"
7851   else
7852     ac_res=-l$ac_lib
7853     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7854   fi
7855   rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (ac_try="$ac_link"
7857 case "(($ac_try" in
7858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859   *) ac_try_echo=$ac_try;;
7860 esac
7861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863   (eval "$ac_link") 2>conftest.er1
7864   ac_status=$?
7865   grep -v '^ *+' conftest.er1 >conftest.err
7866   rm -f conftest.er1
7867   cat conftest.err >&5
7868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); } && {
7870          test -z "$ac_c_werror_flag" ||
7871          test ! -s conftest.err
7872        } && test -s conftest$ac_exeext && {
7873          test "$cross_compiling" = yes ||
7874          $as_test_x conftest$ac_exeext
7875        }; then
7876   ac_cv_search_shl_load=$ac_res
7877 else
7878   $as_echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7880
7881
7882 fi
7883
7884 rm -rf conftest.dSYM
7885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7886       conftest$ac_exeext
7887   if test "${ac_cv_search_shl_load+set}" = set; then
7888   break
7889 fi
7890 done
7891 if test "${ac_cv_search_shl_load+set}" = set; then
7892   :
7893 else
7894   ac_cv_search_shl_load=no
7895 fi
7896 rm conftest.$ac_ext
7897 LIBS=$ac_func_search_save_LIBS
7898 fi
7899 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7900 $as_echo "$ac_cv_search_shl_load" >&6; }
7901 ac_res=$ac_cv_search_shl_load
7902 if test "$ac_res" != no; then
7903   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7904
7905 fi
7906
7907 # We only use libld in port/dynloader/aix.c
7908 case $host_os in
7909      aix*)
7910         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7911 $as_echo_n "checking for library containing ldopen... " >&6; }
7912 if test "${ac_cv_search_ldopen+set}" = set; then
7913   $as_echo_n "(cached) " >&6
7914 else
7915   ac_func_search_save_LIBS=$LIBS
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h.  */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h.  */
7922
7923 /* Override any GCC internal prototype to avoid an error.
7924    Use char because int might match the return type of a GCC
7925    builtin and then its argument prototype would still apply.  */
7926 #ifdef __cplusplus
7927 extern "C"
7928 #endif
7929 char ldopen ();
7930 int
7931 main ()
7932 {
7933 return ldopen ();
7934   ;
7935   return 0;
7936 }
7937 _ACEOF
7938 for ac_lib in '' ld; do
7939   if test -z "$ac_lib"; then
7940     ac_res="none required"
7941   else
7942     ac_res=-l$ac_lib
7943     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7944   fi
7945   rm -f conftest.$ac_objext conftest$ac_exeext
7946 if { (ac_try="$ac_link"
7947 case "(($ac_try" in
7948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949   *) ac_try_echo=$ac_try;;
7950 esac
7951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7952 $as_echo "$ac_try_echo") >&5
7953   (eval "$ac_link") 2>conftest.er1
7954   ac_status=$?
7955   grep -v '^ *+' conftest.er1 >conftest.err
7956   rm -f conftest.er1
7957   cat conftest.err >&5
7958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); } && {
7960          test -z "$ac_c_werror_flag" ||
7961          test ! -s conftest.err
7962        } && test -s conftest$ac_exeext && {
7963          test "$cross_compiling" = yes ||
7964          $as_test_x conftest$ac_exeext
7965        }; then
7966   ac_cv_search_ldopen=$ac_res
7967 else
7968   $as_echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971
7972 fi
7973
7974 rm -rf conftest.dSYM
7975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7976       conftest$ac_exeext
7977   if test "${ac_cv_search_ldopen+set}" = set; then
7978   break
7979 fi
7980 done
7981 if test "${ac_cv_search_ldopen+set}" = set; then
7982   :
7983 else
7984   ac_cv_search_ldopen=no
7985 fi
7986 rm conftest.$ac_ext
7987 LIBS=$ac_func_search_save_LIBS
7988 fi
7989 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7990 $as_echo "$ac_cv_search_ldopen" >&6; }
7991 ac_res=$ac_cv_search_ldopen
7992 if test "$ac_res" != no; then
7993   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7994
7995 fi
7996
7997         ;;
7998 esac
7999 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8000 $as_echo_n "checking for library containing getopt_long... " >&6; }
8001 if test "${ac_cv_search_getopt_long+set}" = set; then
8002   $as_echo_n "(cached) " >&6
8003 else
8004   ac_func_search_save_LIBS=$LIBS
8005 cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h.  */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h.  */
8011
8012 /* Override any GCC internal prototype to avoid an error.
8013    Use char because int might match the return type of a GCC
8014    builtin and then its argument prototype would still apply.  */
8015 #ifdef __cplusplus
8016 extern "C"
8017 #endif
8018 char getopt_long ();
8019 int
8020 main ()
8021 {
8022 return getopt_long ();
8023   ;
8024   return 0;
8025 }
8026 _ACEOF
8027 for ac_lib in '' getopt gnugetopt; do
8028   if test -z "$ac_lib"; then
8029     ac_res="none required"
8030   else
8031     ac_res=-l$ac_lib
8032     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8033   fi
8034   rm -f conftest.$ac_objext conftest$ac_exeext
8035 if { (ac_try="$ac_link"
8036 case "(($ac_try" in
8037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038   *) ac_try_echo=$ac_try;;
8039 esac
8040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8041 $as_echo "$ac_try_echo") >&5
8042   (eval "$ac_link") 2>conftest.er1
8043   ac_status=$?
8044   grep -v '^ *+' conftest.er1 >conftest.err
8045   rm -f conftest.er1
8046   cat conftest.err >&5
8047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } && {
8049          test -z "$ac_c_werror_flag" ||
8050          test ! -s conftest.err
8051        } && test -s conftest$ac_exeext && {
8052          test "$cross_compiling" = yes ||
8053          $as_test_x conftest$ac_exeext
8054        }; then
8055   ac_cv_search_getopt_long=$ac_res
8056 else
8057   $as_echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060
8061 fi
8062
8063 rm -rf conftest.dSYM
8064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8065       conftest$ac_exeext
8066   if test "${ac_cv_search_getopt_long+set}" = set; then
8067   break
8068 fi
8069 done
8070 if test "${ac_cv_search_getopt_long+set}" = set; then
8071   :
8072 else
8073   ac_cv_search_getopt_long=no
8074 fi
8075 rm conftest.$ac_ext
8076 LIBS=$ac_func_search_save_LIBS
8077 fi
8078 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8079 $as_echo "$ac_cv_search_getopt_long" >&6; }
8080 ac_res=$ac_cv_search_getopt_long
8081 if test "$ac_res" != no; then
8082   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8083
8084 fi
8085
8086 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8087 $as_echo_n "checking for library containing crypt... " >&6; }
8088 if test "${ac_cv_search_crypt+set}" = set; then
8089   $as_echo_n "(cached) " >&6
8090 else
8091   ac_func_search_save_LIBS=$LIBS
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098
8099 /* Override any GCC internal prototype to avoid an error.
8100    Use char because int might match the return type of a GCC
8101    builtin and then its argument prototype would still apply.  */
8102 #ifdef __cplusplus
8103 extern "C"
8104 #endif
8105 char crypt ();
8106 int
8107 main ()
8108 {
8109 return crypt ();
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 for ac_lib in '' crypt; do
8115   if test -z "$ac_lib"; then
8116     ac_res="none required"
8117   else
8118     ac_res=-l$ac_lib
8119     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8120   fi
8121   rm -f conftest.$ac_objext conftest$ac_exeext
8122 if { (ac_try="$ac_link"
8123 case "(($ac_try" in
8124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125   *) ac_try_echo=$ac_try;;
8126 esac
8127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8128 $as_echo "$ac_try_echo") >&5
8129   (eval "$ac_link") 2>conftest.er1
8130   ac_status=$?
8131   grep -v '^ *+' conftest.er1 >conftest.err
8132   rm -f conftest.er1
8133   cat conftest.err >&5
8134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); } && {
8136          test -z "$ac_c_werror_flag" ||
8137          test ! -s conftest.err
8138        } && test -s conftest$ac_exeext && {
8139          test "$cross_compiling" = yes ||
8140          $as_test_x conftest$ac_exeext
8141        }; then
8142   ac_cv_search_crypt=$ac_res
8143 else
8144   $as_echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8146
8147
8148 fi
8149
8150 rm -rf conftest.dSYM
8151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8152       conftest$ac_exeext
8153   if test "${ac_cv_search_crypt+set}" = set; then
8154   break
8155 fi
8156 done
8157 if test "${ac_cv_search_crypt+set}" = set; then
8158   :
8159 else
8160   ac_cv_search_crypt=no
8161 fi
8162 rm conftest.$ac_ext
8163 LIBS=$ac_func_search_save_LIBS
8164 fi
8165 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8166 $as_echo "$ac_cv_search_crypt" >&6; }
8167 ac_res=$ac_cv_search_crypt
8168 if test "$ac_res" != no; then
8169   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8170
8171 fi
8172
8173 # Solaris:
8174 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8175 $as_echo_n "checking for library containing fdatasync... " >&6; }
8176 if test "${ac_cv_search_fdatasync+set}" = set; then
8177   $as_echo_n "(cached) " >&6
8178 else
8179   ac_func_search_save_LIBS=$LIBS
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h.  */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h.  */
8186
8187 /* Override any GCC internal prototype to avoid an error.
8188    Use char because int might match the return type of a GCC
8189    builtin and then its argument prototype would still apply.  */
8190 #ifdef __cplusplus
8191 extern "C"
8192 #endif
8193 char fdatasync ();
8194 int
8195 main ()
8196 {
8197 return fdatasync ();
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 for ac_lib in '' rt posix4; do
8203   if test -z "$ac_lib"; then
8204     ac_res="none required"
8205   else
8206     ac_res=-l$ac_lib
8207     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8208   fi
8209   rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8211 case "(($ac_try" in
8212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213   *) ac_try_echo=$ac_try;;
8214 esac
8215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8216 $as_echo "$ac_try_echo") >&5
8217   (eval "$ac_link") 2>conftest.er1
8218   ac_status=$?
8219   grep -v '^ *+' conftest.er1 >conftest.err
8220   rm -f conftest.er1
8221   cat conftest.err >&5
8222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); } && {
8224          test -z "$ac_c_werror_flag" ||
8225          test ! -s conftest.err
8226        } && test -s conftest$ac_exeext && {
8227          test "$cross_compiling" = yes ||
8228          $as_test_x conftest$ac_exeext
8229        }; then
8230   ac_cv_search_fdatasync=$ac_res
8231 else
8232   $as_echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8234
8235
8236 fi
8237
8238 rm -rf conftest.dSYM
8239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8240       conftest$ac_exeext
8241   if test "${ac_cv_search_fdatasync+set}" = set; then
8242   break
8243 fi
8244 done
8245 if test "${ac_cv_search_fdatasync+set}" = set; then
8246   :
8247 else
8248   ac_cv_search_fdatasync=no
8249 fi
8250 rm conftest.$ac_ext
8251 LIBS=$ac_func_search_save_LIBS
8252 fi
8253 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8254 $as_echo "$ac_cv_search_fdatasync" >&6; }
8255 ac_res=$ac_cv_search_fdatasync
8256 if test "$ac_res" != no; then
8257   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8258
8259 fi
8260
8261 # Required for thread_test.c on Solaris 2.5:
8262 # Other ports use it too (HP-UX) so test unconditionally
8263 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8264 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8265 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8266   $as_echo_n "(cached) " >&6
8267 else
8268   ac_func_search_save_LIBS=$LIBS
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275
8276 /* Override any GCC internal prototype to avoid an error.
8277    Use char because int might match the return type of a GCC
8278    builtin and then its argument prototype would still apply.  */
8279 #ifdef __cplusplus
8280 extern "C"
8281 #endif
8282 char gethostbyname_r ();
8283 int
8284 main ()
8285 {
8286 return gethostbyname_r ();
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 for ac_lib in '' nsl; do
8292   if test -z "$ac_lib"; then
8293     ac_res="none required"
8294   else
8295     ac_res=-l$ac_lib
8296     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8297   fi
8298   rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (ac_try="$ac_link"
8300 case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8305 $as_echo "$ac_try_echo") >&5
8306   (eval "$ac_link") 2>conftest.er1
8307   ac_status=$?
8308   grep -v '^ *+' conftest.er1 >conftest.err
8309   rm -f conftest.er1
8310   cat conftest.err >&5
8311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } && {
8313          test -z "$ac_c_werror_flag" ||
8314          test ! -s conftest.err
8315        } && test -s conftest$ac_exeext && {
8316          test "$cross_compiling" = yes ||
8317          $as_test_x conftest$ac_exeext
8318        }; then
8319   ac_cv_search_gethostbyname_r=$ac_res
8320 else
8321   $as_echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324
8325 fi
8326
8327 rm -rf conftest.dSYM
8328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8329       conftest$ac_exeext
8330   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8331   break
8332 fi
8333 done
8334 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8335   :
8336 else
8337   ac_cv_search_gethostbyname_r=no
8338 fi
8339 rm conftest.$ac_ext
8340 LIBS=$ac_func_search_save_LIBS
8341 fi
8342 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8343 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8344 ac_res=$ac_cv_search_gethostbyname_r
8345 if test "$ac_res" != no; then
8346   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8347
8348 fi
8349
8350 # Cygwin:
8351 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8352 $as_echo_n "checking for library containing shmget... " >&6; }
8353 if test "${ac_cv_search_shmget+set}" = set; then
8354   $as_echo_n "(cached) " >&6
8355 else
8356   ac_func_search_save_LIBS=$LIBS
8357 cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h.  */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h.  */
8363
8364 /* Override any GCC internal prototype to avoid an error.
8365    Use char because int might match the return type of a GCC
8366    builtin and then its argument prototype would still apply.  */
8367 #ifdef __cplusplus
8368 extern "C"
8369 #endif
8370 char shmget ();
8371 int
8372 main ()
8373 {
8374 return shmget ();
8375   ;
8376   return 0;
8377 }
8378 _ACEOF
8379 for ac_lib in '' cygipc; do
8380   if test -z "$ac_lib"; then
8381     ac_res="none required"
8382   else
8383     ac_res=-l$ac_lib
8384     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8385   fi
8386   rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (ac_try="$ac_link"
8388 case "(($ac_try" in
8389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390   *) ac_try_echo=$ac_try;;
8391 esac
8392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8393 $as_echo "$ac_try_echo") >&5
8394   (eval "$ac_link") 2>conftest.er1
8395   ac_status=$?
8396   grep -v '^ *+' conftest.er1 >conftest.err
8397   rm -f conftest.er1
8398   cat conftest.err >&5
8399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); } && {
8401          test -z "$ac_c_werror_flag" ||
8402          test ! -s conftest.err
8403        } && test -s conftest$ac_exeext && {
8404          test "$cross_compiling" = yes ||
8405          $as_test_x conftest$ac_exeext
8406        }; then
8407   ac_cv_search_shmget=$ac_res
8408 else
8409   $as_echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412
8413 fi
8414
8415 rm -rf conftest.dSYM
8416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8417       conftest$ac_exeext
8418   if test "${ac_cv_search_shmget+set}" = set; then
8419   break
8420 fi
8421 done
8422 if test "${ac_cv_search_shmget+set}" = set; then
8423   :
8424 else
8425   ac_cv_search_shmget=no
8426 fi
8427 rm conftest.$ac_ext
8428 LIBS=$ac_func_search_save_LIBS
8429 fi
8430 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8431 $as_echo "$ac_cv_search_shmget" >&6; }
8432 ac_res=$ac_cv_search_shmget
8433 if test "$ac_res" != no; then
8434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8435
8436 fi
8437
8438
8439 if test "$with_readline" = yes; then
8440
8441
8442 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8443 $as_echo_n "checking for library containing readline... " >&6; }
8444 if test "${pgac_cv_check_readline+set}" = set; then
8445   $as_echo_n "(cached) " >&6
8446 else
8447   pgac_cv_check_readline=no
8448 pgac_save_LIBS=$LIBS
8449 if test x"$with_libedit_preferred" != x"yes"
8450 then    READLINE_ORDER="-lreadline -ledit"
8451 else    READLINE_ORDER="-ledit -lreadline"
8452 fi
8453 for pgac_rllib in $READLINE_ORDER ; do
8454   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8455     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8456     cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462
8463 /* Override any GCC internal prototype to avoid an error.
8464    Use char because int might match the return type of a GCC
8465    builtin and then its argument prototype would still apply.  */
8466 #ifdef __cplusplus
8467 extern "C"
8468 #endif
8469 char readline ();
8470 int
8471 main ()
8472 {
8473 return readline ();
8474   ;
8475   return 0;
8476 }
8477 _ACEOF
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8480 case "(($ac_try" in
8481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482   *) ac_try_echo=$ac_try;;
8483 esac
8484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8485 $as_echo "$ac_try_echo") >&5
8486   (eval "$ac_link") 2>conftest.er1
8487   ac_status=$?
8488   grep -v '^ *+' conftest.er1 >conftest.err
8489   rm -f conftest.er1
8490   cat conftest.err >&5
8491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); } && {
8493          test -z "$ac_c_werror_flag" ||
8494          test ! -s conftest.err
8495        } && test -s conftest$ac_exeext && {
8496          test "$cross_compiling" = yes ||
8497          $as_test_x conftest$ac_exeext
8498        }; then
8499
8500       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8501       # recognize dependent libraries; assume curses is needed if we didn't
8502       # find any dependency.
8503       case $host_os in
8504         netbsd* | openbsd* | irix*)
8505           if test x"$pgac_lib" = x"" ; then
8506             pgac_lib=" -lcurses"
8507           fi ;;
8508       esac
8509
8510       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8511       break
8512
8513 else
8514   $as_echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517
8518 fi
8519
8520 rm -rf conftest.dSYM
8521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8522       conftest$ac_exeext conftest.$ac_ext
8523   done
8524   if test "$pgac_cv_check_readline" != no ; then
8525     break
8526   fi
8527 done
8528 LIBS=$pgac_save_LIBS
8529
8530 fi
8531 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8532 $as_echo "$pgac_cv_check_readline" >&6; }
8533 if test "$pgac_cv_check_readline" != no ; then
8534   LIBS="$pgac_cv_check_readline $LIBS"
8535
8536 cat >>confdefs.h <<\_ACEOF
8537 #define HAVE_LIBREADLINE 1
8538 _ACEOF
8539
8540 fi
8541
8542
8543   if test x"$pgac_cv_check_readline" = x"no"; then
8544     { { $as_echo "$as_me:$LINENO: error: readline library not found
8545 If you have readline already installed, see config.log for details on the
8546 failure.  It is possible the compiler isn't looking in the proper directory.
8547 Use --without-readline to disable readline support." >&5
8548 $as_echo "$as_me: error: readline library not found
8549 If you have readline already installed, see config.log for details on the
8550 failure.  It is possible the compiler isn't looking in the proper directory.
8551 Use --without-readline to disable readline support." >&2;}
8552    { (exit 1); exit 1; }; }
8553   fi
8554 fi
8555
8556 if test "$with_zlib" = yes; then
8557
8558 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8559 $as_echo_n "checking for inflate in -lz... " >&6; }
8560 if test "${ac_cv_lib_z_inflate+set}" = set; then
8561   $as_echo_n "(cached) " >&6
8562 else
8563   ac_check_lib_save_LIBS=$LIBS
8564 LIBS="-lz  $LIBS"
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h.  */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h.  */
8571
8572 /* Override any GCC internal prototype to avoid an error.
8573    Use char because int might match the return type of a GCC
8574    builtin and then its argument prototype would still apply.  */
8575 #ifdef __cplusplus
8576 extern "C"
8577 #endif
8578 char inflate ();
8579 int
8580 main ()
8581 {
8582 return inflate ();
8583   ;
8584   return 0;
8585 }
8586 _ACEOF
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8589 case "(($ac_try" in
8590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591   *) ac_try_echo=$ac_try;;
8592 esac
8593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8594 $as_echo "$ac_try_echo") >&5
8595   (eval "$ac_link") 2>conftest.er1
8596   ac_status=$?
8597   grep -v '^ *+' conftest.er1 >conftest.err
8598   rm -f conftest.er1
8599   cat conftest.err >&5
8600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); } && {
8602          test -z "$ac_c_werror_flag" ||
8603          test ! -s conftest.err
8604        } && test -s conftest$ac_exeext && {
8605          test "$cross_compiling" = yes ||
8606          $as_test_x conftest$ac_exeext
8607        }; then
8608   ac_cv_lib_z_inflate=yes
8609 else
8610   $as_echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613         ac_cv_lib_z_inflate=no
8614 fi
8615
8616 rm -rf conftest.dSYM
8617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8618       conftest$ac_exeext conftest.$ac_ext
8619 LIBS=$ac_check_lib_save_LIBS
8620 fi
8621 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8622 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8623 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8624   cat >>confdefs.h <<_ACEOF
8625 #define HAVE_LIBZ 1
8626 _ACEOF
8627
8628   LIBS="-lz $LIBS"
8629
8630 else
8631   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8632 If you have zlib already installed, see config.log for details on the
8633 failure.  It is possible the compiler isn't looking in the proper directory.
8634 Use --without-zlib to disable zlib support." >&5
8635 $as_echo "$as_me: error: zlib library not found
8636 If you have zlib already installed, see config.log for details on the
8637 failure.  It is possible the compiler isn't looking in the proper directory.
8638 Use --without-zlib to disable zlib support." >&2;}
8639    { (exit 1); exit 1; }; }
8640 fi
8641
8642 fi
8643
8644 if test "$enable_spinlocks" = yes; then
8645
8646 cat >>confdefs.h <<\_ACEOF
8647 #define HAVE_SPINLOCKS 1
8648 _ACEOF
8649
8650 else
8651   { $as_echo "$as_me:$LINENO: WARNING:
8652 *** Not using spinlocks will cause poor performance." >&5
8653 $as_echo "$as_me: WARNING:
8654 *** Not using spinlocks will cause poor performance." >&2;}
8655 fi
8656
8657 if test "$with_gssapi" = yes ; then
8658   if test "$PORTNAME" != "win32"; then
8659     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8660 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8661 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8662   $as_echo_n "(cached) " >&6
8663 else
8664   ac_func_search_save_LIBS=$LIBS
8665 cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h.  */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h.  */
8671
8672 /* Override any GCC internal prototype to avoid an error.
8673    Use char because int might match the return type of a GCC
8674    builtin and then its argument prototype would still apply.  */
8675 #ifdef __cplusplus
8676 extern "C"
8677 #endif
8678 char gss_init_sec_context ();
8679 int
8680 main ()
8681 {
8682 return gss_init_sec_context ();
8683   ;
8684   return 0;
8685 }
8686 _ACEOF
8687 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8688   if test -z "$ac_lib"; then
8689     ac_res="none required"
8690   else
8691     ac_res=-l$ac_lib
8692     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8693   fi
8694   rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (ac_try="$ac_link"
8696 case "(($ac_try" in
8697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698   *) ac_try_echo=$ac_try;;
8699 esac
8700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8701 $as_echo "$ac_try_echo") >&5
8702   (eval "$ac_link") 2>conftest.er1
8703   ac_status=$?
8704   grep -v '^ *+' conftest.er1 >conftest.err
8705   rm -f conftest.er1
8706   cat conftest.err >&5
8707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } && {
8709          test -z "$ac_c_werror_flag" ||
8710          test ! -s conftest.err
8711        } && test -s conftest$ac_exeext && {
8712          test "$cross_compiling" = yes ||
8713          $as_test_x conftest$ac_exeext
8714        }; then
8715   ac_cv_search_gss_init_sec_context=$ac_res
8716 else
8717   $as_echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8719
8720
8721 fi
8722
8723 rm -rf conftest.dSYM
8724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8725       conftest$ac_exeext
8726   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8727   break
8728 fi
8729 done
8730 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8731   :
8732 else
8733   ac_cv_search_gss_init_sec_context=no
8734 fi
8735 rm conftest.$ac_ext
8736 LIBS=$ac_func_search_save_LIBS
8737 fi
8738 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8739 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8740 ac_res=$ac_cv_search_gss_init_sec_context
8741 if test "$ac_res" != no; then
8742   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8743
8744 else
8745   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8746 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8747    { (exit 1); exit 1; }; }
8748 fi
8749
8750   else
8751     LIBS="$LIBS -lgssapi32"
8752   fi
8753 fi
8754
8755 if test "$with_krb5" = yes ; then
8756   if test "$PORTNAME" != "win32"; then
8757      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8758 $as_echo_n "checking for library containing com_err... " >&6; }
8759 if test "${ac_cv_search_com_err+set}" = set; then
8760   $as_echo_n "(cached) " >&6
8761 else
8762   ac_func_search_save_LIBS=$LIBS
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h.  */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h.  */
8769
8770 /* Override any GCC internal prototype to avoid an error.
8771    Use char because int might match the return type of a GCC
8772    builtin and then its argument prototype would still apply.  */
8773 #ifdef __cplusplus
8774 extern "C"
8775 #endif
8776 char com_err ();
8777 int
8778 main ()
8779 {
8780 return com_err ();
8781   ;
8782   return 0;
8783 }
8784 _ACEOF
8785 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8786   if test -z "$ac_lib"; then
8787     ac_res="none required"
8788   else
8789     ac_res=-l$ac_lib
8790     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8791   fi
8792   rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (ac_try="$ac_link"
8794 case "(($ac_try" in
8795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796   *) ac_try_echo=$ac_try;;
8797 esac
8798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8799 $as_echo "$ac_try_echo") >&5
8800   (eval "$ac_link") 2>conftest.er1
8801   ac_status=$?
8802   grep -v '^ *+' conftest.er1 >conftest.err
8803   rm -f conftest.er1
8804   cat conftest.err >&5
8805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); } && {
8807          test -z "$ac_c_werror_flag" ||
8808          test ! -s conftest.err
8809        } && test -s conftest$ac_exeext && {
8810          test "$cross_compiling" = yes ||
8811          $as_test_x conftest$ac_exeext
8812        }; then
8813   ac_cv_search_com_err=$ac_res
8814 else
8815   $as_echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8817
8818
8819 fi
8820
8821 rm -rf conftest.dSYM
8822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8823       conftest$ac_exeext
8824   if test "${ac_cv_search_com_err+set}" = set; then
8825   break
8826 fi
8827 done
8828 if test "${ac_cv_search_com_err+set}" = set; then
8829   :
8830 else
8831   ac_cv_search_com_err=no
8832 fi
8833 rm conftest.$ac_ext
8834 LIBS=$ac_func_search_save_LIBS
8835 fi
8836 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8837 $as_echo "$ac_cv_search_com_err" >&6; }
8838 ac_res=$ac_cv_search_com_err
8839 if test "$ac_res" != no; then
8840   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8841
8842 else
8843   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8844 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8845    { (exit 1); exit 1; }; }
8846 fi
8847
8848      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8849 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8850 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8851   $as_echo_n "(cached) " >&6
8852 else
8853   ac_func_search_save_LIBS=$LIBS
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h.  */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h.  */
8860
8861 /* Override any GCC internal prototype to avoid an error.
8862    Use char because int might match the return type of a GCC
8863    builtin and then its argument prototype would still apply.  */
8864 #ifdef __cplusplus
8865 extern "C"
8866 #endif
8867 char krb5_sendauth ();
8868 int
8869 main ()
8870 {
8871 return krb5_sendauth ();
8872   ;
8873   return 0;
8874 }
8875 _ACEOF
8876 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8877   if test -z "$ac_lib"; then
8878     ac_res="none required"
8879   else
8880     ac_res=-l$ac_lib
8881     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8882   fi
8883   rm -f conftest.$ac_objext conftest$ac_exeext
8884 if { (ac_try="$ac_link"
8885 case "(($ac_try" in
8886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887   *) ac_try_echo=$ac_try;;
8888 esac
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891   (eval "$ac_link") 2>conftest.er1
8892   ac_status=$?
8893   grep -v '^ *+' conftest.er1 >conftest.err
8894   rm -f conftest.er1
8895   cat conftest.err >&5
8896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } && {
8898          test -z "$ac_c_werror_flag" ||
8899          test ! -s conftest.err
8900        } && test -s conftest$ac_exeext && {
8901          test "$cross_compiling" = yes ||
8902          $as_test_x conftest$ac_exeext
8903        }; then
8904   ac_cv_search_krb5_sendauth=$ac_res
8905 else
8906   $as_echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909
8910 fi
8911
8912 rm -rf conftest.dSYM
8913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8914       conftest$ac_exeext
8915   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8916   break
8917 fi
8918 done
8919 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8920   :
8921 else
8922   ac_cv_search_krb5_sendauth=no
8923 fi
8924 rm conftest.$ac_ext
8925 LIBS=$ac_func_search_save_LIBS
8926 fi
8927 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8928 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8929 ac_res=$ac_cv_search_krb5_sendauth
8930 if test "$ac_res" != no; then
8931   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8932
8933 else
8934   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8935 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8936    { (exit 1); exit 1; }; }
8937 fi
8938
8939   else
8940      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8941 $as_echo_n "checking for library containing com_err... " >&6; }
8942 if test "${ac_cv_search_com_err+set}" = set; then
8943   $as_echo_n "(cached) " >&6
8944 else
8945   ac_func_search_save_LIBS=$LIBS
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h.  */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h.  */
8952
8953 /* Override any GCC internal prototype to avoid an error.
8954    Use char because int might match the return type of a GCC
8955    builtin and then its argument prototype would still apply.  */
8956 #ifdef __cplusplus
8957 extern "C"
8958 #endif
8959 char com_err ();
8960 int
8961 main ()
8962 {
8963 return com_err ();
8964   ;
8965   return 0;
8966 }
8967 _ACEOF
8968 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8969   if test -z "$ac_lib"; then
8970     ac_res="none required"
8971   else
8972     ac_res=-l$ac_lib
8973     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8974   fi
8975   rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (ac_try="$ac_link"
8977 case "(($ac_try" in
8978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979   *) ac_try_echo=$ac_try;;
8980 esac
8981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8982 $as_echo "$ac_try_echo") >&5
8983   (eval "$ac_link") 2>conftest.er1
8984   ac_status=$?
8985   grep -v '^ *+' conftest.er1 >conftest.err
8986   rm -f conftest.er1
8987   cat conftest.err >&5
8988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); } && {
8990          test -z "$ac_c_werror_flag" ||
8991          test ! -s conftest.err
8992        } && test -s conftest$ac_exeext && {
8993          test "$cross_compiling" = yes ||
8994          $as_test_x conftest$ac_exeext
8995        }; then
8996   ac_cv_search_com_err=$ac_res
8997 else
8998   $as_echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9000
9001
9002 fi
9003
9004 rm -rf conftest.dSYM
9005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9006       conftest$ac_exeext
9007   if test "${ac_cv_search_com_err+set}" = set; then
9008   break
9009 fi
9010 done
9011 if test "${ac_cv_search_com_err+set}" = set; then
9012   :
9013 else
9014   ac_cv_search_com_err=no
9015 fi
9016 rm conftest.$ac_ext
9017 LIBS=$ac_func_search_save_LIBS
9018 fi
9019 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9020 $as_echo "$ac_cv_search_com_err" >&6; }
9021 ac_res=$ac_cv_search_com_err
9022 if test "$ac_res" != no; then
9023   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9024
9025 else
9026   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9027 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9028    { (exit 1); exit 1; }; }
9029 fi
9030
9031   fi
9032 fi
9033
9034 if test "$with_openssl" = yes ; then
9035     if test "$PORTNAME" != "win32"; then
9036
9037 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9038 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9039 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9040   $as_echo_n "(cached) " >&6
9041 else
9042   ac_check_lib_save_LIBS=$LIBS
9043 LIBS="-lcrypto  $LIBS"
9044 cat >conftest.$ac_ext <<_ACEOF
9045 /* confdefs.h.  */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h.  */
9050
9051 /* Override any GCC internal prototype to avoid an error.
9052    Use char because int might match the return type of a GCC
9053    builtin and then its argument prototype would still apply.  */
9054 #ifdef __cplusplus
9055 extern "C"
9056 #endif
9057 char CRYPTO_new_ex_data ();
9058 int
9059 main ()
9060 {
9061 return CRYPTO_new_ex_data ();
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (ac_try="$ac_link"
9068 case "(($ac_try" in
9069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070   *) ac_try_echo=$ac_try;;
9071 esac
9072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9073 $as_echo "$ac_try_echo") >&5
9074   (eval "$ac_link") 2>conftest.er1
9075   ac_status=$?
9076   grep -v '^ *+' conftest.er1 >conftest.err
9077   rm -f conftest.er1
9078   cat conftest.err >&5
9079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); } && {
9081          test -z "$ac_c_werror_flag" ||
9082          test ! -s conftest.err
9083        } && test -s conftest$ac_exeext && {
9084          test "$cross_compiling" = yes ||
9085          $as_test_x conftest$ac_exeext
9086        }; then
9087   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9088 else
9089   $as_echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9091
9092         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9093 fi
9094
9095 rm -rf conftest.dSYM
9096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9097       conftest$ac_exeext conftest.$ac_ext
9098 LIBS=$ac_check_lib_save_LIBS
9099 fi
9100 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9101 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9102 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9103   cat >>confdefs.h <<_ACEOF
9104 #define HAVE_LIBCRYPTO 1
9105 _ACEOF
9106
9107   LIBS="-lcrypto $LIBS"
9108
9109 else
9110   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9111 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9112    { (exit 1); exit 1; }; }
9113 fi
9114
9115
9116 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9117 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9118 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9119   $as_echo_n "(cached) " >&6
9120 else
9121   ac_check_lib_save_LIBS=$LIBS
9122 LIBS="-lssl  $LIBS"
9123 cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h.  */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h.  */
9129
9130 /* Override any GCC internal prototype to avoid an error.
9131    Use char because int might match the return type of a GCC
9132    builtin and then its argument prototype would still apply.  */
9133 #ifdef __cplusplus
9134 extern "C"
9135 #endif
9136 char SSL_library_init ();
9137 int
9138 main ()
9139 {
9140 return SSL_library_init ();
9141   ;
9142   return 0;
9143 }
9144 _ACEOF
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9147 case "(($ac_try" in
9148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149   *) ac_try_echo=$ac_try;;
9150 esac
9151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9152 $as_echo "$ac_try_echo") >&5
9153   (eval "$ac_link") 2>conftest.er1
9154   ac_status=$?
9155   grep -v '^ *+' conftest.er1 >conftest.err
9156   rm -f conftest.er1
9157   cat conftest.err >&5
9158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); } && {
9160          test -z "$ac_c_werror_flag" ||
9161          test ! -s conftest.err
9162        } && test -s conftest$ac_exeext && {
9163          test "$cross_compiling" = yes ||
9164          $as_test_x conftest$ac_exeext
9165        }; then
9166   ac_cv_lib_ssl_SSL_library_init=yes
9167 else
9168   $as_echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171         ac_cv_lib_ssl_SSL_library_init=no
9172 fi
9173
9174 rm -rf conftest.dSYM
9175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9176       conftest$ac_exeext conftest.$ac_ext
9177 LIBS=$ac_check_lib_save_LIBS
9178 fi
9179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9180 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9181 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9182   cat >>confdefs.h <<_ACEOF
9183 #define HAVE_LIBSSL 1
9184 _ACEOF
9185
9186   LIBS="-lssl $LIBS"
9187
9188 else
9189   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9190 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9191    { (exit 1); exit 1; }; }
9192 fi
9193
9194   else
9195
9196 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9197 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
9198 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9199   $as_echo_n "(cached) " >&6
9200 else
9201   ac_check_lib_save_LIBS=$LIBS
9202 LIBS="-leay32  $LIBS"
9203 cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209
9210 /* Override any GCC internal prototype to avoid an error.
9211    Use char because int might match the return type of a GCC
9212    builtin and then its argument prototype would still apply.  */
9213 #ifdef __cplusplus
9214 extern "C"
9215 #endif
9216 char CRYPTO_new_ex_data ();
9217 int
9218 main ()
9219 {
9220 return CRYPTO_new_ex_data ();
9221   ;
9222   return 0;
9223 }
9224 _ACEOF
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (ac_try="$ac_link"
9227 case "(($ac_try" in
9228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229   *) ac_try_echo=$ac_try;;
9230 esac
9231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9232 $as_echo "$ac_try_echo") >&5
9233   (eval "$ac_link") 2>conftest.er1
9234   ac_status=$?
9235   grep -v '^ *+' conftest.er1 >conftest.err
9236   rm -f conftest.er1
9237   cat conftest.err >&5
9238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); } && {
9240          test -z "$ac_c_werror_flag" ||
9241          test ! -s conftest.err
9242        } && test -s conftest$ac_exeext && {
9243          test "$cross_compiling" = yes ||
9244          $as_test_x conftest$ac_exeext
9245        }; then
9246   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9247 else
9248   $as_echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9252 fi
9253
9254 rm -rf conftest.dSYM
9255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9256       conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9258 fi
9259 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9260 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9261 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9262   cat >>confdefs.h <<_ACEOF
9263 #define HAVE_LIBEAY32 1
9264 _ACEOF
9265
9266   LIBS="-leay32 $LIBS"
9267
9268 else
9269   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9270 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9271    { (exit 1); exit 1; }; }
9272 fi
9273
9274
9275 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9276 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9277 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9278   $as_echo_n "(cached) " >&6
9279 else
9280   ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-lssleay32  $LIBS"
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h.  */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h.  */
9288
9289 /* Override any GCC internal prototype to avoid an error.
9290    Use char because int might match the return type of a GCC
9291    builtin and then its argument prototype would still apply.  */
9292 #ifdef __cplusplus
9293 extern "C"
9294 #endif
9295 char SSL_library_init ();
9296 int
9297 main ()
9298 {
9299 return SSL_library_init ();
9300   ;
9301   return 0;
9302 }
9303 _ACEOF
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (ac_try="$ac_link"
9306 case "(($ac_try" in
9307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308   *) ac_try_echo=$ac_try;;
9309 esac
9310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9311 $as_echo "$ac_try_echo") >&5
9312   (eval "$ac_link") 2>conftest.er1
9313   ac_status=$?
9314   grep -v '^ *+' conftest.er1 >conftest.err
9315   rm -f conftest.er1
9316   cat conftest.err >&5
9317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } && {
9319          test -z "$ac_c_werror_flag" ||
9320          test ! -s conftest.err
9321        } && test -s conftest$ac_exeext && {
9322          test "$cross_compiling" = yes ||
9323          $as_test_x conftest$ac_exeext
9324        }; then
9325   ac_cv_lib_ssleay32_SSL_library_init=yes
9326 else
9327   $as_echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9329
9330         ac_cv_lib_ssleay32_SSL_library_init=no
9331 fi
9332
9333 rm -rf conftest.dSYM
9334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335       conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9337 fi
9338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9339 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9340 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9341   cat >>confdefs.h <<_ACEOF
9342 #define HAVE_LIBSSLEAY32 1
9343 _ACEOF
9344
9345   LIBS="-lssleay32 $LIBS"
9346
9347 else
9348   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9349 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9350    { (exit 1); exit 1; }; }
9351 fi
9352
9353   fi
9354 fi
9355
9356 if test "$with_pam" = yes ; then
9357
9358 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9359 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9360 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9361   $as_echo_n "(cached) " >&6
9362 else
9363   ac_check_lib_save_LIBS=$LIBS
9364 LIBS="-lpam  $LIBS"
9365 cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h.  */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h.  */
9371
9372 /* Override any GCC internal prototype to avoid an error.
9373    Use char because int might match the return type of a GCC
9374    builtin and then its argument prototype would still apply.  */
9375 #ifdef __cplusplus
9376 extern "C"
9377 #endif
9378 char pam_start ();
9379 int
9380 main ()
9381 {
9382 return pam_start ();
9383   ;
9384   return 0;
9385 }
9386 _ACEOF
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (ac_try="$ac_link"
9389 case "(($ac_try" in
9390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391   *) ac_try_echo=$ac_try;;
9392 esac
9393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9394 $as_echo "$ac_try_echo") >&5
9395   (eval "$ac_link") 2>conftest.er1
9396   ac_status=$?
9397   grep -v '^ *+' conftest.er1 >conftest.err
9398   rm -f conftest.er1
9399   cat conftest.err >&5
9400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } && {
9402          test -z "$ac_c_werror_flag" ||
9403          test ! -s conftest.err
9404        } && test -s conftest$ac_exeext && {
9405          test "$cross_compiling" = yes ||
9406          $as_test_x conftest$ac_exeext
9407        }; then
9408   ac_cv_lib_pam_pam_start=yes
9409 else
9410   $as_echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9412
9413         ac_cv_lib_pam_pam_start=no
9414 fi
9415
9416 rm -rf conftest.dSYM
9417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418       conftest$ac_exeext conftest.$ac_ext
9419 LIBS=$ac_check_lib_save_LIBS
9420 fi
9421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9422 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9423 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9424   cat >>confdefs.h <<_ACEOF
9425 #define HAVE_LIBPAM 1
9426 _ACEOF
9427
9428   LIBS="-lpam $LIBS"
9429
9430 else
9431   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9432 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9433    { (exit 1); exit 1; }; }
9434 fi
9435
9436 fi
9437
9438 if test "$with_libxml" = yes ; then
9439
9440 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9441 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9442 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9443   $as_echo_n "(cached) " >&6
9444 else
9445   ac_check_lib_save_LIBS=$LIBS
9446 LIBS="-lxml2  $LIBS"
9447 cat >conftest.$ac_ext <<_ACEOF
9448 /* confdefs.h.  */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h.  */
9453
9454 /* Override any GCC internal prototype to avoid an error.
9455    Use char because int might match the return type of a GCC
9456    builtin and then its argument prototype would still apply.  */
9457 #ifdef __cplusplus
9458 extern "C"
9459 #endif
9460 char xmlSaveToBuffer ();
9461 int
9462 main ()
9463 {
9464 return xmlSaveToBuffer ();
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (ac_try="$ac_link"
9471 case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9476 $as_echo "$ac_try_echo") >&5
9477   (eval "$ac_link") 2>conftest.er1
9478   ac_status=$?
9479   grep -v '^ *+' conftest.er1 >conftest.err
9480   rm -f conftest.er1
9481   cat conftest.err >&5
9482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); } && {
9484          test -z "$ac_c_werror_flag" ||
9485          test ! -s conftest.err
9486        } && test -s conftest$ac_exeext && {
9487          test "$cross_compiling" = yes ||
9488          $as_test_x conftest$ac_exeext
9489        }; then
9490   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9491 else
9492   $as_echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9494
9495         ac_cv_lib_xml2_xmlSaveToBuffer=no
9496 fi
9497
9498 rm -rf conftest.dSYM
9499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9500       conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_lib_save_LIBS
9502 fi
9503 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9504 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9505 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9506   cat >>confdefs.h <<_ACEOF
9507 #define HAVE_LIBXML2 1
9508 _ACEOF
9509
9510   LIBS="-lxml2 $LIBS"
9511
9512 else
9513   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9514 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9515    { (exit 1); exit 1; }; }
9516 fi
9517
9518 fi
9519
9520 if test "$with_libxslt" = yes ; then
9521
9522 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9523 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9524 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9525   $as_echo_n "(cached) " >&6
9526 else
9527   ac_check_lib_save_LIBS=$LIBS
9528 LIBS="-lxslt  $LIBS"
9529 cat >conftest.$ac_ext <<_ACEOF
9530 /* confdefs.h.  */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h.  */
9535
9536 /* Override any GCC internal prototype to avoid an error.
9537    Use char because int might match the return type of a GCC
9538    builtin and then its argument prototype would still apply.  */
9539 #ifdef __cplusplus
9540 extern "C"
9541 #endif
9542 char xsltCleanupGlobals ();
9543 int
9544 main ()
9545 {
9546 return xsltCleanupGlobals ();
9547   ;
9548   return 0;
9549 }
9550 _ACEOF
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (ac_try="$ac_link"
9553 case "(($ac_try" in
9554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555   *) ac_try_echo=$ac_try;;
9556 esac
9557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9558 $as_echo "$ac_try_echo") >&5
9559   (eval "$ac_link") 2>conftest.er1
9560   ac_status=$?
9561   grep -v '^ *+' conftest.er1 >conftest.err
9562   rm -f conftest.er1
9563   cat conftest.err >&5
9564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); } && {
9566          test -z "$ac_c_werror_flag" ||
9567          test ! -s conftest.err
9568        } && test -s conftest$ac_exeext && {
9569          test "$cross_compiling" = yes ||
9570          $as_test_x conftest$ac_exeext
9571        }; then
9572   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9573 else
9574   $as_echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577         ac_cv_lib_xslt_xsltCleanupGlobals=no
9578 fi
9579
9580 rm -rf conftest.dSYM
9581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9582       conftest$ac_exeext conftest.$ac_ext
9583 LIBS=$ac_check_lib_save_LIBS
9584 fi
9585 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9586 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9587 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9588   cat >>confdefs.h <<_ACEOF
9589 #define HAVE_LIBXSLT 1
9590 _ACEOF
9591
9592   LIBS="-lxslt $LIBS"
9593
9594 else
9595   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9596 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9597    { (exit 1); exit 1; }; }
9598 fi
9599
9600 fi
9601
9602 # for contrib/sepgsql
9603 if test "$with_selinux" = yes; then
9604
9605 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9606 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9607 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9608   $as_echo_n "(cached) " >&6
9609 else
9610   ac_check_lib_save_LIBS=$LIBS
9611 LIBS="-lselinux  $LIBS"
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h.  */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h.  */
9618
9619 /* Override any GCC internal prototype to avoid an error.
9620    Use char because int might match the return type of a GCC
9621    builtin and then its argument prototype would still apply.  */
9622 #ifdef __cplusplus
9623 extern "C"
9624 #endif
9625 char selinux_status_open ();
9626 int
9627 main ()
9628 {
9629 return selinux_status_open ();
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9636 case "(($ac_try" in
9637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638   *) ac_try_echo=$ac_try;;
9639 esac
9640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9641 $as_echo "$ac_try_echo") >&5
9642   (eval "$ac_link") 2>conftest.er1
9643   ac_status=$?
9644   grep -v '^ *+' conftest.er1 >conftest.err
9645   rm -f conftest.er1
9646   cat conftest.err >&5
9647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); } && {
9649          test -z "$ac_c_werror_flag" ||
9650          test ! -s conftest.err
9651        } && test -s conftest$ac_exeext && {
9652          test "$cross_compiling" = yes ||
9653          $as_test_x conftest$ac_exeext
9654        }; then
9655   ac_cv_lib_selinux_selinux_status_open=yes
9656 else
9657   $as_echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9659
9660         ac_cv_lib_selinux_selinux_status_open=no
9661 fi
9662
9663 rm -rf conftest.dSYM
9664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9665       conftest$ac_exeext conftest.$ac_ext
9666 LIBS=$ac_check_lib_save_LIBS
9667 fi
9668 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9669 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9670 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9671   cat >>confdefs.h <<_ACEOF
9672 #define HAVE_LIBSELINUX 1
9673 _ACEOF
9674
9675   LIBS="-lselinux $LIBS"
9676
9677 else
9678   { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9679 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9680    { (exit 1); exit 1; }; }
9681 fi
9682
9683 fi
9684
9685 # for contrib/uuid-ossp
9686 if test "$with_ossp_uuid" = yes ; then
9687   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9688 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9689 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9690   $as_echo_n "(cached) " >&6
9691 else
9692   ac_check_lib_save_LIBS=$LIBS
9693 LIBS="-lossp-uuid  $LIBS"
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h.  */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h.  */
9700
9701 /* Override any GCC internal prototype to avoid an error.
9702    Use char because int might match the return type of a GCC
9703    builtin and then its argument prototype would still apply.  */
9704 #ifdef __cplusplus
9705 extern "C"
9706 #endif
9707 char uuid_export ();
9708 int
9709 main ()
9710 {
9711 return uuid_export ();
9712   ;
9713   return 0;
9714 }
9715 _ACEOF
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (ac_try="$ac_link"
9718 case "(($ac_try" in
9719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720   *) ac_try_echo=$ac_try;;
9721 esac
9722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9723 $as_echo "$ac_try_echo") >&5
9724   (eval "$ac_link") 2>conftest.er1
9725   ac_status=$?
9726   grep -v '^ *+' conftest.er1 >conftest.err
9727   rm -f conftest.er1
9728   cat conftest.err >&5
9729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); } && {
9731          test -z "$ac_c_werror_flag" ||
9732          test ! -s conftest.err
9733        } && test -s conftest$ac_exeext && {
9734          test "$cross_compiling" = yes ||
9735          $as_test_x conftest$ac_exeext
9736        }; then
9737   ac_cv_lib_ossp_uuid_uuid_export=yes
9738 else
9739   $as_echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742         ac_cv_lib_ossp_uuid_uuid_export=no
9743 fi
9744
9745 rm -rf conftest.dSYM
9746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9747       conftest$ac_exeext conftest.$ac_ext
9748 LIBS=$ac_check_lib_save_LIBS
9749 fi
9750 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9751 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9752 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9753   OSSP_UUID_LIBS="-lossp-uuid"
9754 else
9755   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9756 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9757 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9758   $as_echo_n "(cached) " >&6
9759 else
9760   ac_check_lib_save_LIBS=$LIBS
9761 LIBS="-luuid  $LIBS"
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h.  */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h.  */
9768
9769 /* Override any GCC internal prototype to avoid an error.
9770    Use char because int might match the return type of a GCC
9771    builtin and then its argument prototype would still apply.  */
9772 #ifdef __cplusplus
9773 extern "C"
9774 #endif
9775 char uuid_export ();
9776 int
9777 main ()
9778 {
9779 return uuid_export ();
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (ac_try="$ac_link"
9786 case "(($ac_try" in
9787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788   *) ac_try_echo=$ac_try;;
9789 esac
9790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792   (eval "$ac_link") 2>conftest.er1
9793   ac_status=$?
9794   grep -v '^ *+' conftest.er1 >conftest.err
9795   rm -f conftest.er1
9796   cat conftest.err >&5
9797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); } && {
9799          test -z "$ac_c_werror_flag" ||
9800          test ! -s conftest.err
9801        } && test -s conftest$ac_exeext && {
9802          test "$cross_compiling" = yes ||
9803          $as_test_x conftest$ac_exeext
9804        }; then
9805   ac_cv_lib_uuid_uuid_export=yes
9806 else
9807   $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810         ac_cv_lib_uuid_uuid_export=no
9811 fi
9812
9813 rm -rf conftest.dSYM
9814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9815       conftest$ac_exeext conftest.$ac_ext
9816 LIBS=$ac_check_lib_save_LIBS
9817 fi
9818 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9819 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9820 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9821   OSSP_UUID_LIBS="-luuid"
9822 else
9823   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9824 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9825    { (exit 1); exit 1; }; }
9826 fi
9827
9828 fi
9829
9830 fi
9831
9832
9833
9834 ##
9835 ## Header files
9836 ##
9837
9838 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9839 $as_echo_n "checking for ANSI C header files... " >&6; }
9840 if test "${ac_cv_header_stdc+set}" = set; then
9841   $as_echo_n "(cached) " >&6
9842 else
9843   cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h.  */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h.  */
9849 #include <stdlib.h>
9850 #include <stdarg.h>
9851 #include <string.h>
9852 #include <float.h>
9853
9854 int
9855 main ()
9856 {
9857
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext
9863 if { (ac_try="$ac_compile"
9864 case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869 $as_echo "$ac_try_echo") >&5
9870   (eval "$ac_compile") 2>conftest.er1
9871   ac_status=$?
9872   grep -v '^ *+' conftest.er1 >conftest.err
9873   rm -f conftest.er1
9874   cat conftest.err >&5
9875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } && {
9877          test -z "$ac_c_werror_flag" ||
9878          test ! -s conftest.err
9879        } && test -s conftest.$ac_objext; then
9880   ac_cv_header_stdc=yes
9881 else
9882   $as_echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9884
9885         ac_cv_header_stdc=no
9886 fi
9887
9888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889
9890 if test $ac_cv_header_stdc = yes; then
9891   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9892   cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898 #include <string.h>
9899
9900 _ACEOF
9901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9902   $EGREP "memchr" >/dev/null 2>&1; then
9903   :
9904 else
9905   ac_cv_header_stdc=no
9906 fi
9907 rm -f conftest*
9908
9909 fi
9910
9911 if test $ac_cv_header_stdc = yes; then
9912   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9913   cat >conftest.$ac_ext <<_ACEOF
9914 /* confdefs.h.  */
9915 _ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h.  */
9919 #include <stdlib.h>
9920
9921 _ACEOF
9922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9923   $EGREP "free" >/dev/null 2>&1; then
9924   :
9925 else
9926   ac_cv_header_stdc=no
9927 fi
9928 rm -f conftest*
9929
9930 fi
9931
9932 if test $ac_cv_header_stdc = yes; then
9933   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9934   if test "$cross_compiling" = yes; then
9935   :
9936 else
9937   cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943 #include <ctype.h>
9944 #include <stdlib.h>
9945 #if ((' ' & 0x0FF) == 0x020)
9946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9948 #else
9949 # define ISLOWER(c) \
9950                    (('a' <= (c) && (c) <= 'i') \
9951                      || ('j' <= (c) && (c) <= 'r') \
9952                      || ('s' <= (c) && (c) <= 'z'))
9953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9954 #endif
9955
9956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9957 int
9958 main ()
9959 {
9960   int i;
9961   for (i = 0; i < 256; i++)
9962     if (XOR (islower (i), ISLOWER (i))
9963         || toupper (i) != TOUPPER (i))
9964       return 2;
9965   return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9970 case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9975 $as_echo "$ac_try_echo") >&5
9976   (eval "$ac_link") 2>&5
9977   ac_status=$?
9978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9980   { (case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9985 $as_echo "$ac_try_echo") >&5
9986   (eval "$ac_try") 2>&5
9987   ac_status=$?
9988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); }; }; then
9990   :
9991 else
9992   $as_echo "$as_me: program exited with status $ac_status" >&5
9993 $as_echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9995
9996 ( exit $ac_status )
9997 ac_cv_header_stdc=no
9998 fi
9999 rm -rf conftest.dSYM
10000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10001 fi
10002
10003
10004 fi
10005 fi
10006 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10007 $as_echo "$ac_cv_header_stdc" >&6; }
10008 if test $ac_cv_header_stdc = yes; then
10009
10010 cat >>confdefs.h <<\_ACEOF
10011 #define STDC_HEADERS 1
10012 _ACEOF
10013
10014 fi
10015
10016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10027                   inttypes.h stdint.h unistd.h
10028 do
10029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10031 $as_echo_n "checking for $ac_header... " >&6; }
10032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10033   $as_echo_n "(cached) " >&6
10034 else
10035   cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041 $ac_includes_default
10042
10043 #include <$ac_header>
10044 _ACEOF
10045 rm -f conftest.$ac_objext
10046 if { (ac_try="$ac_compile"
10047 case "(($ac_try" in
10048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049   *) ac_try_echo=$ac_try;;
10050 esac
10051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10052 $as_echo "$ac_try_echo") >&5
10053   (eval "$ac_compile") 2>conftest.er1
10054   ac_status=$?
10055   grep -v '^ *+' conftest.er1 >conftest.err
10056   rm -f conftest.er1
10057   cat conftest.err >&5
10058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); } && {
10060          test -z "$ac_c_werror_flag" ||
10061          test ! -s conftest.err
10062        } && test -s conftest.$ac_objext; then
10063   eval "$as_ac_Header=yes"
10064 else
10065   $as_echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068         eval "$as_ac_Header=no"
10069 fi
10070
10071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10072 fi
10073 ac_res=`eval 'as_val=${'$as_ac_Header'}
10074                  $as_echo "$as_val"'`
10075                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10076 $as_echo "$ac_res" >&6; }
10077 as_val=`eval 'as_val=${'$as_ac_Header'}
10078                  $as_echo "$as_val"'`
10079    if test "x$as_val" = x""yes; then
10080   cat >>confdefs.h <<_ACEOF
10081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10082 _ACEOF
10083
10084 fi
10085
10086 done
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
10121 do
10122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10124   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10125 $as_echo_n "checking for $ac_header... " >&6; }
10126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10127   $as_echo_n "(cached) " >&6
10128 fi
10129 ac_res=`eval 'as_val=${'$as_ac_Header'}
10130                  $as_echo "$as_val"'`
10131                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10132 $as_echo "$ac_res" >&6; }
10133 else
10134   # Is the header compilable?
10135 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10136 $as_echo_n "checking $ac_header usability... " >&6; }
10137 cat >conftest.$ac_ext <<_ACEOF
10138 /* confdefs.h.  */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h.  */
10143 $ac_includes_default
10144 #include <$ac_header>
10145 _ACEOF
10146 rm -f conftest.$ac_objext
10147 if { (ac_try="$ac_compile"
10148 case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10153 $as_echo "$ac_try_echo") >&5
10154   (eval "$ac_compile") 2>conftest.er1
10155   ac_status=$?
10156   grep -v '^ *+' conftest.er1 >conftest.err
10157   rm -f conftest.er1
10158   cat conftest.err >&5
10159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); } && {
10161          test -z "$ac_c_werror_flag" ||
10162          test ! -s conftest.err
10163        } && test -s conftest.$ac_objext; then
10164   ac_header_compiler=yes
10165 else
10166   $as_echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10168
10169         ac_header_compiler=no
10170 fi
10171
10172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10173 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10174 $as_echo "$ac_header_compiler" >&6; }
10175
10176 # Is the header present?
10177 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10178 $as_echo_n "checking $ac_header presence... " >&6; }
10179 cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h.  */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h.  */
10185 #include <$ac_header>
10186 _ACEOF
10187 if { (ac_try="$ac_cpp conftest.$ac_ext"
10188 case "(($ac_try" in
10189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190   *) ac_try_echo=$ac_try;;
10191 esac
10192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10193 $as_echo "$ac_try_echo") >&5
10194   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10195   ac_status=$?
10196   grep -v '^ *+' conftest.er1 >conftest.err
10197   rm -f conftest.er1
10198   cat conftest.err >&5
10199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } >/dev/null && {
10201          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10202          test ! -s conftest.err
10203        }; then
10204   ac_header_preproc=yes
10205 else
10206   $as_echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209   ac_header_preproc=no
10210 fi
10211
10212 rm -f conftest.err conftest.$ac_ext
10213 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10214 $as_echo "$ac_header_preproc" >&6; }
10215
10216 # So?  What about this header?
10217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10218   yes:no: )
10219     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10220 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10221     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10222 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10223     ac_header_preproc=yes
10224     ;;
10225   no:yes:* )
10226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10227 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10229 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10233 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10234     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10235 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10236     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10237 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10238     ( cat <<\_ASBOX
10239 ## ---------------------------------------- ##
10240 ## Report this to pgsql-bugs@postgresql.org ##
10241 ## ---------------------------------------- ##
10242 _ASBOX
10243      ) | sed "s/^/$as_me: WARNING:     /" >&2
10244     ;;
10245 esac
10246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10247 $as_echo_n "checking for $ac_header... " >&6; }
10248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10249   $as_echo_n "(cached) " >&6
10250 else
10251   eval "$as_ac_Header=\$ac_header_preproc"
10252 fi
10253 ac_res=`eval 'as_val=${'$as_ac_Header'}
10254                  $as_echo "$as_val"'`
10255                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10256 $as_echo "$ac_res" >&6; }
10257
10258 fi
10259 as_val=`eval 'as_val=${'$as_ac_Header'}
10260                  $as_echo "$as_val"'`
10261    if test "x$as_val" = x""yes; then
10262   cat >>confdefs.h <<_ACEOF
10263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10264 _ACEOF
10265
10266 fi
10267
10268 done
10269
10270
10271 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10272 # is included first.
10273
10274 for ac_header in net/if.h
10275 do
10276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10278 $as_echo_n "checking for $ac_header... " >&6; }
10279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10280   $as_echo_n "(cached) " >&6
10281 else
10282   cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h.  */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h.  */
10288 $ac_includes_default
10289 #ifdef HAVE_SYS_SOCKET_H
10290 #include <sys/socket.h>
10291 #endif
10292
10293
10294 #include <$ac_header>
10295 _ACEOF
10296 rm -f conftest.$ac_objext
10297 if { (ac_try="$ac_compile"
10298 case "(($ac_try" in
10299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300   *) ac_try_echo=$ac_try;;
10301 esac
10302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303 $as_echo "$ac_try_echo") >&5
10304   (eval "$ac_compile") 2>conftest.er1
10305   ac_status=$?
10306   grep -v '^ *+' conftest.er1 >conftest.err
10307   rm -f conftest.er1
10308   cat conftest.err >&5
10309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } && {
10311          test -z "$ac_c_werror_flag" ||
10312          test ! -s conftest.err
10313        } && test -s conftest.$ac_objext; then
10314   eval "$as_ac_Header=yes"
10315 else
10316   $as_echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319         eval "$as_ac_Header=no"
10320 fi
10321
10322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10323 fi
10324 ac_res=`eval 'as_val=${'$as_ac_Header'}
10325                  $as_echo "$as_val"'`
10326                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10327 $as_echo "$ac_res" >&6; }
10328 as_val=`eval 'as_val=${'$as_ac_Header'}
10329                  $as_echo "$as_val"'`
10330    if test "x$as_val" = x""yes; then
10331   cat >>confdefs.h <<_ACEOF
10332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10333 _ACEOF
10334
10335 fi
10336
10337 done
10338
10339
10340 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10341 # netinet/in.h is included first.
10342
10343 for ac_header in netinet/in.h
10344 do
10345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10347   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10348 $as_echo_n "checking for $ac_header... " >&6; }
10349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10350   $as_echo_n "(cached) " >&6
10351 fi
10352 ac_res=`eval 'as_val=${'$as_ac_Header'}
10353                  $as_echo "$as_val"'`
10354                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10355 $as_echo "$ac_res" >&6; }
10356 else
10357   # Is the header compilable?
10358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10359 $as_echo_n "checking $ac_header usability... " >&6; }
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h.  */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h.  */
10366 $ac_includes_default
10367 #include <$ac_header>
10368 _ACEOF
10369 rm -f conftest.$ac_objext
10370 if { (ac_try="$ac_compile"
10371 case "(($ac_try" in
10372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373   *) ac_try_echo=$ac_try;;
10374 esac
10375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10376 $as_echo "$ac_try_echo") >&5
10377   (eval "$ac_compile") 2>conftest.er1
10378   ac_status=$?
10379   grep -v '^ *+' conftest.er1 >conftest.err
10380   rm -f conftest.er1
10381   cat conftest.err >&5
10382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); } && {
10384          test -z "$ac_c_werror_flag" ||
10385          test ! -s conftest.err
10386        } && test -s conftest.$ac_objext; then
10387   ac_header_compiler=yes
10388 else
10389   $as_echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10391
10392         ac_header_compiler=no
10393 fi
10394
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10397 $as_echo "$ac_header_compiler" >&6; }
10398
10399 # Is the header present?
10400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10401 $as_echo_n "checking $ac_header presence... " >&6; }
10402 cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h.  */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h.  */
10408 #include <$ac_header>
10409 _ACEOF
10410 if { (ac_try="$ac_cpp conftest.$ac_ext"
10411 case "(($ac_try" in
10412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413   *) ac_try_echo=$ac_try;;
10414 esac
10415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10416 $as_echo "$ac_try_echo") >&5
10417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10418   ac_status=$?
10419   grep -v '^ *+' conftest.er1 >conftest.err
10420   rm -f conftest.er1
10421   cat conftest.err >&5
10422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } >/dev/null && {
10424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10425          test ! -s conftest.err
10426        }; then
10427   ac_header_preproc=yes
10428 else
10429   $as_echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10431
10432   ac_header_preproc=no
10433 fi
10434
10435 rm -f conftest.err conftest.$ac_ext
10436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10437 $as_echo "$ac_header_preproc" >&6; }
10438
10439 # So?  What about this header?
10440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10441   yes:no: )
10442     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10446     ac_header_preproc=yes
10447     ;;
10448   no:yes:* )
10449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10452 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10453     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10455     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10456 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10457     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10461     ( cat <<\_ASBOX
10462 ## ---------------------------------------- ##
10463 ## Report this to pgsql-bugs@postgresql.org ##
10464 ## ---------------------------------------- ##
10465 _ASBOX
10466      ) | sed "s/^/$as_me: WARNING:     /" >&2
10467     ;;
10468 esac
10469 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10470 $as_echo_n "checking for $ac_header... " >&6; }
10471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10472   $as_echo_n "(cached) " >&6
10473 else
10474   eval "$as_ac_Header=\$ac_header_preproc"
10475 fi
10476 ac_res=`eval 'as_val=${'$as_ac_Header'}
10477                  $as_echo "$as_val"'`
10478                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10479 $as_echo "$ac_res" >&6; }
10480
10481 fi
10482 as_val=`eval 'as_val=${'$as_ac_Header'}
10483                  $as_echo "$as_val"'`
10484    if test "x$as_val" = x""yes; then
10485   cat >>confdefs.h <<_ACEOF
10486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10487 _ACEOF
10488
10489 fi
10490
10491 done
10492
10493
10494 for ac_header in netinet/tcp.h
10495 do
10496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10497 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10498 $as_echo_n "checking for $ac_header... " >&6; }
10499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10500   $as_echo_n "(cached) " >&6
10501 else
10502   cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h.  */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h.  */
10508 $ac_includes_default
10509 #ifdef HAVE_NETINET_IN_H
10510 #include <netinet/in.h>
10511 #endif
10512
10513
10514 #include <$ac_header>
10515 _ACEOF
10516 rm -f conftest.$ac_objext
10517 if { (ac_try="$ac_compile"
10518 case "(($ac_try" in
10519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520   *) ac_try_echo=$ac_try;;
10521 esac
10522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10523 $as_echo "$ac_try_echo") >&5
10524   (eval "$ac_compile") 2>conftest.er1
10525   ac_status=$?
10526   grep -v '^ *+' conftest.er1 >conftest.err
10527   rm -f conftest.er1
10528   cat conftest.err >&5
10529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); } && {
10531          test -z "$ac_c_werror_flag" ||
10532          test ! -s conftest.err
10533        } && test -s conftest.$ac_objext; then
10534   eval "$as_ac_Header=yes"
10535 else
10536   $as_echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10538
10539         eval "$as_ac_Header=no"
10540 fi
10541
10542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543 fi
10544 ac_res=`eval 'as_val=${'$as_ac_Header'}
10545                  $as_echo "$as_val"'`
10546                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10547 $as_echo "$ac_res" >&6; }
10548 as_val=`eval 'as_val=${'$as_ac_Header'}
10549                  $as_echo "$as_val"'`
10550    if test "x$as_val" = x""yes; then
10551   cat >>confdefs.h <<_ACEOF
10552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10553 _ACEOF
10554
10555 fi
10556
10557 done
10558
10559
10560 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10561
10562 for ac_header in readline/readline.h
10563 do
10564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10566   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10567 $as_echo_n "checking for $ac_header... " >&6; }
10568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10569   $as_echo_n "(cached) " >&6
10570 fi
10571 ac_res=`eval 'as_val=${'$as_ac_Header'}
10572                  $as_echo "$as_val"'`
10573                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10574 $as_echo "$ac_res" >&6; }
10575 else
10576   # Is the header compilable?
10577 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10578 $as_echo_n "checking $ac_header usability... " >&6; }
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585 $ac_includes_default
10586 #include <$ac_header>
10587 _ACEOF
10588 rm -f conftest.$ac_objext
10589 if { (ac_try="$ac_compile"
10590 case "(($ac_try" in
10591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592   *) ac_try_echo=$ac_try;;
10593 esac
10594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10595 $as_echo "$ac_try_echo") >&5
10596   (eval "$ac_compile") 2>conftest.er1
10597   ac_status=$?
10598   grep -v '^ *+' conftest.er1 >conftest.err
10599   rm -f conftest.er1
10600   cat conftest.err >&5
10601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } && {
10603          test -z "$ac_c_werror_flag" ||
10604          test ! -s conftest.err
10605        } && test -s conftest.$ac_objext; then
10606   ac_header_compiler=yes
10607 else
10608   $as_echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10610
10611         ac_header_compiler=no
10612 fi
10613
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10616 $as_echo "$ac_header_compiler" >&6; }
10617
10618 # Is the header present?
10619 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10620 $as_echo_n "checking $ac_header presence... " >&6; }
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h.  */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h.  */
10627 #include <$ac_header>
10628 _ACEOF
10629 if { (ac_try="$ac_cpp conftest.$ac_ext"
10630 case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10635 $as_echo "$ac_try_echo") >&5
10636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10637   ac_status=$?
10638   grep -v '^ *+' conftest.er1 >conftest.err
10639   rm -f conftest.er1
10640   cat conftest.err >&5
10641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); } >/dev/null && {
10643          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10644          test ! -s conftest.err
10645        }; then
10646   ac_header_preproc=yes
10647 else
10648   $as_echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10650
10651   ac_header_preproc=no
10652 fi
10653
10654 rm -f conftest.err conftest.$ac_ext
10655 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10656 $as_echo "$ac_header_preproc" >&6; }
10657
10658 # So?  What about this header?
10659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10660   yes:no: )
10661     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10662 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10663     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10665     ac_header_preproc=yes
10666     ;;
10667   no:yes:* )
10668     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10669 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10670     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10671 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10672     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10673 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10674     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10675 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10676     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10677 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10678     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10679 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10680     ( cat <<\_ASBOX
10681 ## ---------------------------------------- ##
10682 ## Report this to pgsql-bugs@postgresql.org ##
10683 ## ---------------------------------------- ##
10684 _ASBOX
10685      ) | sed "s/^/$as_me: WARNING:     /" >&2
10686     ;;
10687 esac
10688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10689 $as_echo_n "checking for $ac_header... " >&6; }
10690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10691   $as_echo_n "(cached) " >&6
10692 else
10693   eval "$as_ac_Header=\$ac_header_preproc"
10694 fi
10695 ac_res=`eval 'as_val=${'$as_ac_Header'}
10696                  $as_echo "$as_val"'`
10697                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10698 $as_echo "$ac_res" >&6; }
10699
10700 fi
10701 as_val=`eval 'as_val=${'$as_ac_Header'}
10702                  $as_echo "$as_val"'`
10703    if test "x$as_val" = x""yes; then
10704   cat >>confdefs.h <<_ACEOF
10705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10706 _ACEOF
10707
10708 else
10709
10710 for ac_header in readline.h
10711 do
10712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10714   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10715 $as_echo_n "checking for $ac_header... " >&6; }
10716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10717   $as_echo_n "(cached) " >&6
10718 fi
10719 ac_res=`eval 'as_val=${'$as_ac_Header'}
10720                  $as_echo "$as_val"'`
10721                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10722 $as_echo "$ac_res" >&6; }
10723 else
10724   # Is the header compilable?
10725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10726 $as_echo_n "checking $ac_header usability... " >&6; }
10727 cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h.  */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h.  */
10733 $ac_includes_default
10734 #include <$ac_header>
10735 _ACEOF
10736 rm -f conftest.$ac_objext
10737 if { (ac_try="$ac_compile"
10738 case "(($ac_try" in
10739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740   *) ac_try_echo=$ac_try;;
10741 esac
10742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10743 $as_echo "$ac_try_echo") >&5
10744   (eval "$ac_compile") 2>conftest.er1
10745   ac_status=$?
10746   grep -v '^ *+' conftest.er1 >conftest.err
10747   rm -f conftest.er1
10748   cat conftest.err >&5
10749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } && {
10751          test -z "$ac_c_werror_flag" ||
10752          test ! -s conftest.err
10753        } && test -s conftest.$ac_objext; then
10754   ac_header_compiler=yes
10755 else
10756   $as_echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759         ac_header_compiler=no
10760 fi
10761
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10764 $as_echo "$ac_header_compiler" >&6; }
10765
10766 # Is the header present?
10767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10768 $as_echo_n "checking $ac_header presence... " >&6; }
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h.  */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h.  */
10775 #include <$ac_header>
10776 _ACEOF
10777 if { (ac_try="$ac_cpp conftest.$ac_ext"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10783 $as_echo "$ac_try_echo") >&5
10784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10785   ac_status=$?
10786   grep -v '^ *+' conftest.er1 >conftest.err
10787   rm -f conftest.er1
10788   cat conftest.err >&5
10789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } >/dev/null && {
10791          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10792          test ! -s conftest.err
10793        }; then
10794   ac_header_preproc=yes
10795 else
10796   $as_echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799   ac_header_preproc=no
10800 fi
10801
10802 rm -f conftest.err conftest.$ac_ext
10803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10804 $as_echo "$ac_header_preproc" >&6; }
10805
10806 # So?  What about this header?
10807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10808   yes:no: )
10809     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10811     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10813     ac_header_preproc=yes
10814     ;;
10815   no:yes:* )
10816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10819 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10823 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10828     ( cat <<\_ASBOX
10829 ## ---------------------------------------- ##
10830 ## Report this to pgsql-bugs@postgresql.org ##
10831 ## ---------------------------------------- ##
10832 _ASBOX
10833      ) | sed "s/^/$as_me: WARNING:     /" >&2
10834     ;;
10835 esac
10836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10837 $as_echo_n "checking for $ac_header... " >&6; }
10838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10839   $as_echo_n "(cached) " >&6
10840 else
10841   eval "$as_ac_Header=\$ac_header_preproc"
10842 fi
10843 ac_res=`eval 'as_val=${'$as_ac_Header'}
10844                  $as_echo "$as_val"'`
10845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10846 $as_echo "$ac_res" >&6; }
10847
10848 fi
10849 as_val=`eval 'as_val=${'$as_ac_Header'}
10850                  $as_echo "$as_val"'`
10851    if test "x$as_val" = x""yes; then
10852   cat >>confdefs.h <<_ACEOF
10853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10854 _ACEOF
10855
10856 else
10857   { { $as_echo "$as_me:$LINENO: error: readline header not found
10858 If you have readline already installed, see config.log for details on the
10859 failure.  It is possible the compiler isn't looking in the proper directory.
10860 Use --without-readline to disable readline support." >&5
10861 $as_echo "$as_me: error: readline header not found
10862 If you have readline already installed, see config.log for details on the
10863 failure.  It is possible the compiler isn't looking in the proper directory.
10864 Use --without-readline to disable readline support." >&2;}
10865    { (exit 1); exit 1; }; }
10866 fi
10867
10868 done
10869
10870 fi
10871
10872 done
10873
10874
10875 for ac_header in readline/history.h
10876 do
10877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10879   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10880 $as_echo_n "checking for $ac_header... " >&6; }
10881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10882   $as_echo_n "(cached) " >&6
10883 fi
10884 ac_res=`eval 'as_val=${'$as_ac_Header'}
10885                  $as_echo "$as_val"'`
10886                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10887 $as_echo "$ac_res" >&6; }
10888 else
10889   # Is the header compilable?
10890 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10891 $as_echo_n "checking $ac_header usability... " >&6; }
10892 cat >conftest.$ac_ext <<_ACEOF
10893 /* confdefs.h.  */
10894 _ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h.  */
10898 $ac_includes_default
10899 #include <$ac_header>
10900 _ACEOF
10901 rm -f conftest.$ac_objext
10902 if { (ac_try="$ac_compile"
10903 case "(($ac_try" in
10904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905   *) ac_try_echo=$ac_try;;
10906 esac
10907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908 $as_echo "$ac_try_echo") >&5
10909   (eval "$ac_compile") 2>conftest.er1
10910   ac_status=$?
10911   grep -v '^ *+' conftest.er1 >conftest.err
10912   rm -f conftest.er1
10913   cat conftest.err >&5
10914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); } && {
10916          test -z "$ac_c_werror_flag" ||
10917          test ! -s conftest.err
10918        } && test -s conftest.$ac_objext; then
10919   ac_header_compiler=yes
10920 else
10921   $as_echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924         ac_header_compiler=no
10925 fi
10926
10927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10929 $as_echo "$ac_header_compiler" >&6; }
10930
10931 # Is the header present?
10932 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10933 $as_echo_n "checking $ac_header presence... " >&6; }
10934 cat >conftest.$ac_ext <<_ACEOF
10935 /* confdefs.h.  */
10936 _ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h.  */
10940 #include <$ac_header>
10941 _ACEOF
10942 if { (ac_try="$ac_cpp conftest.$ac_ext"
10943 case "(($ac_try" in
10944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945   *) ac_try_echo=$ac_try;;
10946 esac
10947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10948 $as_echo "$ac_try_echo") >&5
10949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10950   ac_status=$?
10951   grep -v '^ *+' conftest.er1 >conftest.err
10952   rm -f conftest.er1
10953   cat conftest.err >&5
10954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); } >/dev/null && {
10956          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10957          test ! -s conftest.err
10958        }; then
10959   ac_header_preproc=yes
10960 else
10961   $as_echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964   ac_header_preproc=no
10965 fi
10966
10967 rm -f conftest.err conftest.$ac_ext
10968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10969 $as_echo "$ac_header_preproc" >&6; }
10970
10971 # So?  What about this header?
10972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10973   yes:no: )
10974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10975 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10978     ac_header_preproc=yes
10979     ;;
10980   no:yes:* )
10981     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10982 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10983     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10984 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10985     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10986 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10987     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10988 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10989     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10991     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10992 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10993     ( cat <<\_ASBOX
10994 ## ---------------------------------------- ##
10995 ## Report this to pgsql-bugs@postgresql.org ##
10996 ## ---------------------------------------- ##
10997 _ASBOX
10998      ) | sed "s/^/$as_me: WARNING:     /" >&2
10999     ;;
11000 esac
11001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11002 $as_echo_n "checking for $ac_header... " >&6; }
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004   $as_echo_n "(cached) " >&6
11005 else
11006   eval "$as_ac_Header=\$ac_header_preproc"
11007 fi
11008 ac_res=`eval 'as_val=${'$as_ac_Header'}
11009                  $as_echo "$as_val"'`
11010                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11011 $as_echo "$ac_res" >&6; }
11012
11013 fi
11014 as_val=`eval 'as_val=${'$as_ac_Header'}
11015                  $as_echo "$as_val"'`
11016    if test "x$as_val" = x""yes; then
11017   cat >>confdefs.h <<_ACEOF
11018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11019 _ACEOF
11020
11021 else
11022
11023 for ac_header in history.h
11024 do
11025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11027   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11028 $as_echo_n "checking for $ac_header... " >&6; }
11029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11030   $as_echo_n "(cached) " >&6
11031 fi
11032 ac_res=`eval 'as_val=${'$as_ac_Header'}
11033                  $as_echo "$as_val"'`
11034                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11035 $as_echo "$ac_res" >&6; }
11036 else
11037   # Is the header compilable?
11038 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11039 $as_echo_n "checking $ac_header usability... " >&6; }
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046 $ac_includes_default
11047 #include <$ac_header>
11048 _ACEOF
11049 rm -f conftest.$ac_objext
11050 if { (ac_try="$ac_compile"
11051 case "(($ac_try" in
11052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053   *) ac_try_echo=$ac_try;;
11054 esac
11055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11056 $as_echo "$ac_try_echo") >&5
11057   (eval "$ac_compile") 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } && {
11064          test -z "$ac_c_werror_flag" ||
11065          test ! -s conftest.err
11066        } && test -s conftest.$ac_objext; then
11067   ac_header_compiler=yes
11068 else
11069   $as_echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072         ac_header_compiler=no
11073 fi
11074
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11077 $as_echo "$ac_header_compiler" >&6; }
11078
11079 # Is the header present?
11080 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11081 $as_echo_n "checking $ac_header presence... " >&6; }
11082 cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h.  */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h.  */
11088 #include <$ac_header>
11089 _ACEOF
11090 if { (ac_try="$ac_cpp conftest.$ac_ext"
11091 case "(($ac_try" in
11092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093   *) ac_try_echo=$ac_try;;
11094 esac
11095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11096 $as_echo "$ac_try_echo") >&5
11097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11098   ac_status=$?
11099   grep -v '^ *+' conftest.er1 >conftest.err
11100   rm -f conftest.er1
11101   cat conftest.err >&5
11102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } >/dev/null && {
11104          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11105          test ! -s conftest.err
11106        }; then
11107   ac_header_preproc=yes
11108 else
11109   $as_echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11111
11112   ac_header_preproc=no
11113 fi
11114
11115 rm -f conftest.err conftest.$ac_ext
11116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11117 $as_echo "$ac_header_preproc" >&6; }
11118
11119 # So?  What about this header?
11120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11121   yes:no: )
11122     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11123 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11126     ac_header_preproc=yes
11127     ;;
11128   no:yes:* )
11129     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11130 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11131     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11132 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11133     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11134 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11135     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11136 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11140 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11141     ( cat <<\_ASBOX
11142 ## ---------------------------------------- ##
11143 ## Report this to pgsql-bugs@postgresql.org ##
11144 ## ---------------------------------------- ##
11145 _ASBOX
11146      ) | sed "s/^/$as_me: WARNING:     /" >&2
11147     ;;
11148 esac
11149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11150 $as_echo_n "checking for $ac_header... " >&6; }
11151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11152   $as_echo_n "(cached) " >&6
11153 else
11154   eval "$as_ac_Header=\$ac_header_preproc"
11155 fi
11156 ac_res=`eval 'as_val=${'$as_ac_Header'}
11157                  $as_echo "$as_val"'`
11158                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11159 $as_echo "$ac_res" >&6; }
11160
11161 fi
11162 as_val=`eval 'as_val=${'$as_ac_Header'}
11163                  $as_echo "$as_val"'`
11164    if test "x$as_val" = x""yes; then
11165   cat >>confdefs.h <<_ACEOF
11166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11167 _ACEOF
11168
11169 else
11170   { { $as_echo "$as_me:$LINENO: error: history header not found
11171 If you have readline already installed, see config.log for details on the
11172 failure.  It is possible the compiler isn't looking in the proper directory.
11173 Use --without-readline to disable readline support." >&5
11174 $as_echo "$as_me: error: history header not found
11175 If you have readline already installed, see config.log for details on the
11176 failure.  It is possible the compiler isn't looking in the proper directory.
11177 Use --without-readline to disable readline support." >&2;}
11178    { (exit 1); exit 1; }; }
11179 fi
11180
11181 done
11182
11183 fi
11184
11185 done
11186
11187 fi
11188
11189 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11190 # Some installations of libedit usurp /usr/include/readline/, which seems
11191 # bad practice, since in combined installations readline will have its headers
11192 # there.  We might have to resort to AC_EGREP checks to make sure we found
11193 # the proper header...
11194
11195 for ac_header in editline/readline.h
11196 do
11197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11199   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 $as_echo_n "checking for $ac_header... " >&6; }
11201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202   $as_echo_n "(cached) " >&6
11203 fi
11204 ac_res=`eval 'as_val=${'$as_ac_Header'}
11205                  $as_echo "$as_val"'`
11206                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11207 $as_echo "$ac_res" >&6; }
11208 else
11209   # Is the header compilable?
11210 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11211 $as_echo_n "checking $ac_header usability... " >&6; }
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h.  */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h.  */
11218 $ac_includes_default
11219 #include <$ac_header>
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (ac_try="$ac_compile"
11223 case "(($ac_try" in
11224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225   *) ac_try_echo=$ac_try;;
11226 esac
11227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11228 $as_echo "$ac_try_echo") >&5
11229   (eval "$ac_compile") 2>conftest.er1
11230   ac_status=$?
11231   grep -v '^ *+' conftest.er1 >conftest.err
11232   rm -f conftest.er1
11233   cat conftest.err >&5
11234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); } && {
11236          test -z "$ac_c_werror_flag" ||
11237          test ! -s conftest.err
11238        } && test -s conftest.$ac_objext; then
11239   ac_header_compiler=yes
11240 else
11241   $as_echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11243
11244         ac_header_compiler=no
11245 fi
11246
11247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11249 $as_echo "$ac_header_compiler" >&6; }
11250
11251 # Is the header present?
11252 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11253 $as_echo_n "checking $ac_header presence... " >&6; }
11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h.  */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h.  */
11260 #include <$ac_header>
11261 _ACEOF
11262 if { (ac_try="$ac_cpp conftest.$ac_ext"
11263 case "(($ac_try" in
11264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265   *) ac_try_echo=$ac_try;;
11266 esac
11267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11268 $as_echo "$ac_try_echo") >&5
11269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11270   ac_status=$?
11271   grep -v '^ *+' conftest.er1 >conftest.err
11272   rm -f conftest.er1
11273   cat conftest.err >&5
11274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); } >/dev/null && {
11276          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11277          test ! -s conftest.err
11278        }; then
11279   ac_header_preproc=yes
11280 else
11281   $as_echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284   ac_header_preproc=no
11285 fi
11286
11287 rm -f conftest.err conftest.$ac_ext
11288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289 $as_echo "$ac_header_preproc" >&6; }
11290
11291 # So?  What about this header?
11292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11293   yes:no: )
11294     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11298     ac_header_preproc=yes
11299     ;;
11300   no:yes:* )
11301     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11304 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11305     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11308 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11309     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11313     ( cat <<\_ASBOX
11314 ## ---------------------------------------- ##
11315 ## Report this to pgsql-bugs@postgresql.org ##
11316 ## ---------------------------------------- ##
11317 _ASBOX
11318      ) | sed "s/^/$as_me: WARNING:     /" >&2
11319     ;;
11320 esac
11321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11322 $as_echo_n "checking for $ac_header... " >&6; }
11323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324   $as_echo_n "(cached) " >&6
11325 else
11326   eval "$as_ac_Header=\$ac_header_preproc"
11327 fi
11328 ac_res=`eval 'as_val=${'$as_ac_Header'}
11329                  $as_echo "$as_val"'`
11330                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11331 $as_echo "$ac_res" >&6; }
11332
11333 fi
11334 as_val=`eval 'as_val=${'$as_ac_Header'}
11335                  $as_echo "$as_val"'`
11336    if test "x$as_val" = x""yes; then
11337   cat >>confdefs.h <<_ACEOF
11338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11339 _ACEOF
11340
11341 else
11342
11343 for ac_header in readline.h
11344 do
11345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11348 $as_echo_n "checking for $ac_header... " >&6; }
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350   $as_echo_n "(cached) " >&6
11351 fi
11352 ac_res=`eval 'as_val=${'$as_ac_Header'}
11353                  $as_echo "$as_val"'`
11354                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11355 $as_echo "$ac_res" >&6; }
11356 else
11357   # Is the header compilable?
11358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11359 $as_echo_n "checking $ac_header usability... " >&6; }
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h.  */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h.  */
11366 $ac_includes_default
11367 #include <$ac_header>
11368 _ACEOF
11369 rm -f conftest.$ac_objext
11370 if { (ac_try="$ac_compile"
11371 case "(($ac_try" in
11372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373   *) ac_try_echo=$ac_try;;
11374 esac
11375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11376 $as_echo "$ac_try_echo") >&5
11377   (eval "$ac_compile") 2>conftest.er1
11378   ac_status=$?
11379   grep -v '^ *+' conftest.er1 >conftest.err
11380   rm -f conftest.er1
11381   cat conftest.err >&5
11382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); } && {
11384          test -z "$ac_c_werror_flag" ||
11385          test ! -s conftest.err
11386        } && test -s conftest.$ac_objext; then
11387   ac_header_compiler=yes
11388 else
11389   $as_echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11391
11392         ac_header_compiler=no
11393 fi
11394
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11397 $as_echo "$ac_header_compiler" >&6; }
11398
11399 # Is the header present?
11400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11401 $as_echo_n "checking $ac_header presence... " >&6; }
11402 cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h.  */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h.  */
11408 #include <$ac_header>
11409 _ACEOF
11410 if { (ac_try="$ac_cpp conftest.$ac_ext"
11411 case "(($ac_try" in
11412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413   *) ac_try_echo=$ac_try;;
11414 esac
11415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11416 $as_echo "$ac_try_echo") >&5
11417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11418   ac_status=$?
11419   grep -v '^ *+' conftest.er1 >conftest.err
11420   rm -f conftest.er1
11421   cat conftest.err >&5
11422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); } >/dev/null && {
11424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11425          test ! -s conftest.err
11426        }; then
11427   ac_header_preproc=yes
11428 else
11429   $as_echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432   ac_header_preproc=no
11433 fi
11434
11435 rm -f conftest.err conftest.$ac_ext
11436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 $as_echo "$ac_header_preproc" >&6; }
11438
11439 # So?  What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441   yes:no: )
11442     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446     ac_header_preproc=yes
11447     ;;
11448   no:yes:* )
11449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11452 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11453     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11456 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11457     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11461     ( cat <<\_ASBOX
11462 ## ---------------------------------------- ##
11463 ## Report this to pgsql-bugs@postgresql.org ##
11464 ## ---------------------------------------- ##
11465 _ASBOX
11466      ) | sed "s/^/$as_me: WARNING:     /" >&2
11467     ;;
11468 esac
11469 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11470 $as_echo_n "checking for $ac_header... " >&6; }
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472   $as_echo_n "(cached) " >&6
11473 else
11474   eval "$as_ac_Header=\$ac_header_preproc"
11475 fi
11476 ac_res=`eval 'as_val=${'$as_ac_Header'}
11477                  $as_echo "$as_val"'`
11478                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11479 $as_echo "$ac_res" >&6; }
11480
11481 fi
11482 as_val=`eval 'as_val=${'$as_ac_Header'}
11483                  $as_echo "$as_val"'`
11484    if test "x$as_val" = x""yes; then
11485   cat >>confdefs.h <<_ACEOF
11486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11487 _ACEOF
11488
11489 else
11490
11491 for ac_header in readline/readline.h
11492 do
11493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11496 $as_echo_n "checking for $ac_header... " >&6; }
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498   $as_echo_n "(cached) " >&6
11499 fi
11500 ac_res=`eval 'as_val=${'$as_ac_Header'}
11501                  $as_echo "$as_val"'`
11502                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11503 $as_echo "$ac_res" >&6; }
11504 else
11505   # Is the header compilable?
11506 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11507 $as_echo_n "checking $ac_header usability... " >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h.  */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h.  */
11514 $ac_includes_default
11515 #include <$ac_header>
11516 _ACEOF
11517 rm -f conftest.$ac_objext
11518 if { (ac_try="$ac_compile"
11519 case "(($ac_try" in
11520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521   *) ac_try_echo=$ac_try;;
11522 esac
11523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11524 $as_echo "$ac_try_echo") >&5
11525   (eval "$ac_compile") 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } && {
11532          test -z "$ac_c_werror_flag" ||
11533          test ! -s conftest.err
11534        } && test -s conftest.$ac_objext; then
11535   ac_header_compiler=yes
11536 else
11537   $as_echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11539
11540         ac_header_compiler=no
11541 fi
11542
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11545 $as_echo "$ac_header_compiler" >&6; }
11546
11547 # Is the header present?
11548 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11549 $as_echo_n "checking $ac_header presence... " >&6; }
11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h.  */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h.  */
11556 #include <$ac_header>
11557 _ACEOF
11558 if { (ac_try="$ac_cpp conftest.$ac_ext"
11559 case "(($ac_try" in
11560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561   *) ac_try_echo=$ac_try;;
11562 esac
11563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11564 $as_echo "$ac_try_echo") >&5
11565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11566   ac_status=$?
11567   grep -v '^ *+' conftest.er1 >conftest.err
11568   rm -f conftest.er1
11569   cat conftest.err >&5
11570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); } >/dev/null && {
11572          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11573          test ! -s conftest.err
11574        }; then
11575   ac_header_preproc=yes
11576 else
11577   $as_echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11579
11580   ac_header_preproc=no
11581 fi
11582
11583 rm -f conftest.err conftest.$ac_ext
11584 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11585 $as_echo "$ac_header_preproc" >&6; }
11586
11587 # So?  What about this header?
11588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11589   yes:no: )
11590     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11591 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11592     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11593 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11594     ac_header_preproc=yes
11595     ;;
11596   no:yes:* )
11597     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11598 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11599     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11600 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11601     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11602 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11603     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11604 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11605     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11606 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11607     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11608 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11609     ( cat <<\_ASBOX
11610 ## ---------------------------------------- ##
11611 ## Report this to pgsql-bugs@postgresql.org ##
11612 ## ---------------------------------------- ##
11613 _ASBOX
11614      ) | sed "s/^/$as_me: WARNING:     /" >&2
11615     ;;
11616 esac
11617 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11618 $as_echo_n "checking for $ac_header... " >&6; }
11619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11620   $as_echo_n "(cached) " >&6
11621 else
11622   eval "$as_ac_Header=\$ac_header_preproc"
11623 fi
11624 ac_res=`eval 'as_val=${'$as_ac_Header'}
11625                  $as_echo "$as_val"'`
11626                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11627 $as_echo "$ac_res" >&6; }
11628
11629 fi
11630 as_val=`eval 'as_val=${'$as_ac_Header'}
11631                  $as_echo "$as_val"'`
11632    if test "x$as_val" = x""yes; then
11633   cat >>confdefs.h <<_ACEOF
11634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11635 _ACEOF
11636
11637 else
11638   { { $as_echo "$as_me:$LINENO: error: readline header not found
11639 If you have libedit already installed, see config.log for details on the
11640 failure.  It is possible the compiler isn't looking in the proper directory.
11641 Use --without-readline to disable libedit support." >&5
11642 $as_echo "$as_me: error: readline header not found
11643 If you have libedit already installed, see config.log for details on the
11644 failure.  It is possible the compiler isn't looking in the proper directory.
11645 Use --without-readline to disable libedit support." >&2;}
11646    { (exit 1); exit 1; }; }
11647 fi
11648
11649 done
11650
11651 fi
11652
11653 done
11654
11655 fi
11656
11657 done
11658
11659 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11660 # not be there at all.  Hence, don't complain if not found.  We must check
11661 # though, since in yet other versions it is an independent header.
11662
11663 for ac_header in editline/history.h
11664 do
11665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11667   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11668 $as_echo_n "checking for $ac_header... " >&6; }
11669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11670   $as_echo_n "(cached) " >&6
11671 fi
11672 ac_res=`eval 'as_val=${'$as_ac_Header'}
11673                  $as_echo "$as_val"'`
11674                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11675 $as_echo "$ac_res" >&6; }
11676 else
11677   # Is the header compilable?
11678 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11679 $as_echo_n "checking $ac_header usability... " >&6; }
11680 cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686 $ac_includes_default
11687 #include <$ac_header>
11688 _ACEOF
11689 rm -f conftest.$ac_objext
11690 if { (ac_try="$ac_compile"
11691 case "(($ac_try" in
11692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693   *) ac_try_echo=$ac_try;;
11694 esac
11695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11696 $as_echo "$ac_try_echo") >&5
11697   (eval "$ac_compile") 2>conftest.er1
11698   ac_status=$?
11699   grep -v '^ *+' conftest.er1 >conftest.err
11700   rm -f conftest.er1
11701   cat conftest.err >&5
11702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); } && {
11704          test -z "$ac_c_werror_flag" ||
11705          test ! -s conftest.err
11706        } && test -s conftest.$ac_objext; then
11707   ac_header_compiler=yes
11708 else
11709   $as_echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712         ac_header_compiler=no
11713 fi
11714
11715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11717 $as_echo "$ac_header_compiler" >&6; }
11718
11719 # Is the header present?
11720 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11721 $as_echo_n "checking $ac_header presence... " >&6; }
11722 cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h.  */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h.  */
11728 #include <$ac_header>
11729 _ACEOF
11730 if { (ac_try="$ac_cpp conftest.$ac_ext"
11731 case "(($ac_try" in
11732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733   *) ac_try_echo=$ac_try;;
11734 esac
11735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11736 $as_echo "$ac_try_echo") >&5
11737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11738   ac_status=$?
11739   grep -v '^ *+' conftest.er1 >conftest.err
11740   rm -f conftest.er1
11741   cat conftest.err >&5
11742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); } >/dev/null && {
11744          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11745          test ! -s conftest.err
11746        }; then
11747   ac_header_preproc=yes
11748 else
11749   $as_echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11751
11752   ac_header_preproc=no
11753 fi
11754
11755 rm -f conftest.err conftest.$ac_ext
11756 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11757 $as_echo "$ac_header_preproc" >&6; }
11758
11759 # So?  What about this header?
11760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11761   yes:no: )
11762     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11763 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11764     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11765 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11766     ac_header_preproc=yes
11767     ;;
11768   no:yes:* )
11769     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11770 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11771     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11772 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11773     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11774 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11775     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11776 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11777     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11778 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11780 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11781     ( cat <<\_ASBOX
11782 ## ---------------------------------------- ##
11783 ## Report this to pgsql-bugs@postgresql.org ##
11784 ## ---------------------------------------- ##
11785 _ASBOX
11786      ) | sed "s/^/$as_me: WARNING:     /" >&2
11787     ;;
11788 esac
11789 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11790 $as_echo_n "checking for $ac_header... " >&6; }
11791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11792   $as_echo_n "(cached) " >&6
11793 else
11794   eval "$as_ac_Header=\$ac_header_preproc"
11795 fi
11796 ac_res=`eval 'as_val=${'$as_ac_Header'}
11797                  $as_echo "$as_val"'`
11798                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11799 $as_echo "$ac_res" >&6; }
11800
11801 fi
11802 as_val=`eval 'as_val=${'$as_ac_Header'}
11803                  $as_echo "$as_val"'`
11804    if test "x$as_val" = x""yes; then
11805   cat >>confdefs.h <<_ACEOF
11806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11807 _ACEOF
11808
11809 else
11810
11811 for ac_header in history.h
11812 do
11813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11815   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11816 $as_echo_n "checking for $ac_header... " >&6; }
11817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11818   $as_echo_n "(cached) " >&6
11819 fi
11820 ac_res=`eval 'as_val=${'$as_ac_Header'}
11821                  $as_echo "$as_val"'`
11822                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11823 $as_echo "$ac_res" >&6; }
11824 else
11825   # Is the header compilable?
11826 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11827 $as_echo_n "checking $ac_header usability... " >&6; }
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h.  */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h.  */
11834 $ac_includes_default
11835 #include <$ac_header>
11836 _ACEOF
11837 rm -f conftest.$ac_objext
11838 if { (ac_try="$ac_compile"
11839 case "(($ac_try" in
11840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841   *) ac_try_echo=$ac_try;;
11842 esac
11843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11844 $as_echo "$ac_try_echo") >&5
11845   (eval "$ac_compile") 2>conftest.er1
11846   ac_status=$?
11847   grep -v '^ *+' conftest.er1 >conftest.err
11848   rm -f conftest.er1
11849   cat conftest.err >&5
11850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); } && {
11852          test -z "$ac_c_werror_flag" ||
11853          test ! -s conftest.err
11854        } && test -s conftest.$ac_objext; then
11855   ac_header_compiler=yes
11856 else
11857   $as_echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860         ac_header_compiler=no
11861 fi
11862
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11865 $as_echo "$ac_header_compiler" >&6; }
11866
11867 # Is the header present?
11868 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11869 $as_echo_n "checking $ac_header presence... " >&6; }
11870 cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876 #include <$ac_header>
11877 _ACEOF
11878 if { (ac_try="$ac_cpp conftest.$ac_ext"
11879 case "(($ac_try" in
11880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881   *) ac_try_echo=$ac_try;;
11882 esac
11883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11884 $as_echo "$ac_try_echo") >&5
11885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11886   ac_status=$?
11887   grep -v '^ *+' conftest.er1 >conftest.err
11888   rm -f conftest.er1
11889   cat conftest.err >&5
11890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); } >/dev/null && {
11892          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11893          test ! -s conftest.err
11894        }; then
11895   ac_header_preproc=yes
11896 else
11897   $as_echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900   ac_header_preproc=no
11901 fi
11902
11903 rm -f conftest.err conftest.$ac_ext
11904 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11905 $as_echo "$ac_header_preproc" >&6; }
11906
11907 # So?  What about this header?
11908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11909   yes:no: )
11910     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11911 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11912     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11913 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11914     ac_header_preproc=yes
11915     ;;
11916   no:yes:* )
11917     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11918 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11919     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11920 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11921     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11922 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11924 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11928 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11929     ( cat <<\_ASBOX
11930 ## ---------------------------------------- ##
11931 ## Report this to pgsql-bugs@postgresql.org ##
11932 ## ---------------------------------------- ##
11933 _ASBOX
11934      ) | sed "s/^/$as_me: WARNING:     /" >&2
11935     ;;
11936 esac
11937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11938 $as_echo_n "checking for $ac_header... " >&6; }
11939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940   $as_echo_n "(cached) " >&6
11941 else
11942   eval "$as_ac_Header=\$ac_header_preproc"
11943 fi
11944 ac_res=`eval 'as_val=${'$as_ac_Header'}
11945                  $as_echo "$as_val"'`
11946                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11947 $as_echo "$ac_res" >&6; }
11948
11949 fi
11950 as_val=`eval 'as_val=${'$as_ac_Header'}
11951                  $as_echo "$as_val"'`
11952    if test "x$as_val" = x""yes; then
11953   cat >>confdefs.h <<_ACEOF
11954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11955 _ACEOF
11956
11957 else
11958
11959 for ac_header in readline/history.h
11960 do
11961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11963   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11964 $as_echo_n "checking for $ac_header... " >&6; }
11965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11966   $as_echo_n "(cached) " >&6
11967 fi
11968 ac_res=`eval 'as_val=${'$as_ac_Header'}
11969                  $as_echo "$as_val"'`
11970                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11971 $as_echo "$ac_res" >&6; }
11972 else
11973   # Is the header compilable?
11974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11975 $as_echo_n "checking $ac_header usability... " >&6; }
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h.  */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h.  */
11982 $ac_includes_default
11983 #include <$ac_header>
11984 _ACEOF
11985 rm -f conftest.$ac_objext
11986 if { (ac_try="$ac_compile"
11987 case "(($ac_try" in
11988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989   *) ac_try_echo=$ac_try;;
11990 esac
11991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11992 $as_echo "$ac_try_echo") >&5
11993   (eval "$ac_compile") 2>conftest.er1
11994   ac_status=$?
11995   grep -v '^ *+' conftest.er1 >conftest.err
11996   rm -f conftest.er1
11997   cat conftest.err >&5
11998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); } && {
12000          test -z "$ac_c_werror_flag" ||
12001          test ! -s conftest.err
12002        } && test -s conftest.$ac_objext; then
12003   ac_header_compiler=yes
12004 else
12005   $as_echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008         ac_header_compiler=no
12009 fi
12010
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12013 $as_echo "$ac_header_compiler" >&6; }
12014
12015 # Is the header present?
12016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12017 $as_echo_n "checking $ac_header presence... " >&6; }
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h.  */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h.  */
12024 #include <$ac_header>
12025 _ACEOF
12026 if { (ac_try="$ac_cpp conftest.$ac_ext"
12027 case "(($ac_try" in
12028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029   *) ac_try_echo=$ac_try;;
12030 esac
12031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12032 $as_echo "$ac_try_echo") >&5
12033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12034   ac_status=$?
12035   grep -v '^ *+' conftest.er1 >conftest.err
12036   rm -f conftest.er1
12037   cat conftest.err >&5
12038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); } >/dev/null && {
12040          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12041          test ! -s conftest.err
12042        }; then
12043   ac_header_preproc=yes
12044 else
12045   $as_echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048   ac_header_preproc=no
12049 fi
12050
12051 rm -f conftest.err conftest.$ac_ext
12052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12053 $as_echo "$ac_header_preproc" >&6; }
12054
12055 # So?  What about this header?
12056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12057   yes:no: )
12058     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12060     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12062     ac_header_preproc=yes
12063     ;;
12064   no:yes:* )
12065     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12067     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12068 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12069     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12071     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12072 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12073     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12075     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12077     ( cat <<\_ASBOX
12078 ## ---------------------------------------- ##
12079 ## Report this to pgsql-bugs@postgresql.org ##
12080 ## ---------------------------------------- ##
12081 _ASBOX
12082      ) | sed "s/^/$as_me: WARNING:     /" >&2
12083     ;;
12084 esac
12085 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12086 $as_echo_n "checking for $ac_header... " >&6; }
12087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12088   $as_echo_n "(cached) " >&6
12089 else
12090   eval "$as_ac_Header=\$ac_header_preproc"
12091 fi
12092 ac_res=`eval 'as_val=${'$as_ac_Header'}
12093                  $as_echo "$as_val"'`
12094                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12095 $as_echo "$ac_res" >&6; }
12096
12097 fi
12098 as_val=`eval 'as_val=${'$as_ac_Header'}
12099                  $as_echo "$as_val"'`
12100    if test "x$as_val" = x""yes; then
12101   cat >>confdefs.h <<_ACEOF
12102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12103 _ACEOF
12104
12105 fi
12106
12107 done
12108
12109 fi
12110
12111 done
12112
12113 fi
12114
12115 done
12116
12117 fi
12118
12119 if test "$with_zlib" = yes; then
12120   if test "${ac_cv_header_zlib_h+set}" = set; then
12121   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12122 $as_echo_n "checking for zlib.h... " >&6; }
12123 if test "${ac_cv_header_zlib_h+set}" = set; then
12124   $as_echo_n "(cached) " >&6
12125 fi
12126 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12127 $as_echo "$ac_cv_header_zlib_h" >&6; }
12128 else
12129   # Is the header compilable?
12130 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12131 $as_echo_n "checking zlib.h usability... " >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h.  */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h.  */
12138 $ac_includes_default
12139 #include <zlib.h>
12140 _ACEOF
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145   *) ac_try_echo=$ac_try;;
12146 esac
12147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12148 $as_echo "$ac_try_echo") >&5
12149   (eval "$ac_compile") 2>conftest.er1
12150   ac_status=$?
12151   grep -v '^ *+' conftest.er1 >conftest.err
12152   rm -f conftest.er1
12153   cat conftest.err >&5
12154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); } && {
12156          test -z "$ac_c_werror_flag" ||
12157          test ! -s conftest.err
12158        } && test -s conftest.$ac_objext; then
12159   ac_header_compiler=yes
12160 else
12161   $as_echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12163
12164         ac_header_compiler=no
12165 fi
12166
12167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12168 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12169 $as_echo "$ac_header_compiler" >&6; }
12170
12171 # Is the header present?
12172 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12173 $as_echo_n "checking zlib.h presence... " >&6; }
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h.  */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h.  */
12180 #include <zlib.h>
12181 _ACEOF
12182 if { (ac_try="$ac_cpp conftest.$ac_ext"
12183 case "(($ac_try" in
12184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185   *) ac_try_echo=$ac_try;;
12186 esac
12187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188 $as_echo "$ac_try_echo") >&5
12189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12190   ac_status=$?
12191   grep -v '^ *+' conftest.er1 >conftest.err
12192   rm -f conftest.er1
12193   cat conftest.err >&5
12194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); } >/dev/null && {
12196          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12197          test ! -s conftest.err
12198        }; then
12199   ac_header_preproc=yes
12200 else
12201   $as_echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12203
12204   ac_header_preproc=no
12205 fi
12206
12207 rm -f conftest.err conftest.$ac_ext
12208 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12209 $as_echo "$ac_header_preproc" >&6; }
12210
12211 # So?  What about this header?
12212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12213   yes:no: )
12214     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12215 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12216     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12217 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12218     ac_header_preproc=yes
12219     ;;
12220   no:yes:* )
12221     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12222 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12223     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12224 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12225     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12226 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12227     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12228 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12229     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12230 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12231     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12232 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12233     ( cat <<\_ASBOX
12234 ## ---------------------------------------- ##
12235 ## Report this to pgsql-bugs@postgresql.org ##
12236 ## ---------------------------------------- ##
12237 _ASBOX
12238      ) | sed "s/^/$as_me: WARNING:     /" >&2
12239     ;;
12240 esac
12241 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12242 $as_echo_n "checking for zlib.h... " >&6; }
12243 if test "${ac_cv_header_zlib_h+set}" = set; then
12244   $as_echo_n "(cached) " >&6
12245 else
12246   ac_cv_header_zlib_h=$ac_header_preproc
12247 fi
12248 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12249 $as_echo "$ac_cv_header_zlib_h" >&6; }
12250
12251 fi
12252 if test "x$ac_cv_header_zlib_h" = x""yes; then
12253   :
12254 else
12255   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12256 If you have zlib already installed, see config.log for details on the
12257 failure.  It is possible the compiler isn't looking in the proper directory.
12258 Use --without-zlib to disable zlib support." >&5
12259 $as_echo "$as_me: error: zlib header not found
12260 If you have zlib already installed, see config.log for details on the
12261 failure.  It is possible the compiler isn't looking in the proper directory.
12262 Use --without-zlib to disable zlib support." >&2;}
12263    { (exit 1); exit 1; }; }
12264 fi
12265
12266
12267 fi
12268
12269 if test "$with_gssapi" = yes ; then
12270
12271 for ac_header in gssapi/gssapi.h
12272 do
12273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12275   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12276 $as_echo_n "checking for $ac_header... " >&6; }
12277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12278   $as_echo_n "(cached) " >&6
12279 fi
12280 ac_res=`eval 'as_val=${'$as_ac_Header'}
12281                  $as_echo "$as_val"'`
12282                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12283 $as_echo "$ac_res" >&6; }
12284 else
12285   # Is the header compilable?
12286 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12287 $as_echo_n "checking $ac_header usability... " >&6; }
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h.  */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h.  */
12294 $ac_includes_default
12295 #include <$ac_header>
12296 _ACEOF
12297 rm -f conftest.$ac_objext
12298 if { (ac_try="$ac_compile"
12299 case "(($ac_try" in
12300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301   *) ac_try_echo=$ac_try;;
12302 esac
12303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12304 $as_echo "$ac_try_echo") >&5
12305   (eval "$ac_compile") 2>conftest.er1
12306   ac_status=$?
12307   grep -v '^ *+' conftest.er1 >conftest.err
12308   rm -f conftest.er1
12309   cat conftest.err >&5
12310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); } && {
12312          test -z "$ac_c_werror_flag" ||
12313          test ! -s conftest.err
12314        } && test -s conftest.$ac_objext; then
12315   ac_header_compiler=yes
12316 else
12317   $as_echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320         ac_header_compiler=no
12321 fi
12322
12323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12324 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12325 $as_echo "$ac_header_compiler" >&6; }
12326
12327 # Is the header present?
12328 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12329 $as_echo_n "checking $ac_header presence... " >&6; }
12330 cat >conftest.$ac_ext <<_ACEOF
12331 /* confdefs.h.  */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h.  */
12336 #include <$ac_header>
12337 _ACEOF
12338 if { (ac_try="$ac_cpp conftest.$ac_ext"
12339 case "(($ac_try" in
12340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341   *) ac_try_echo=$ac_try;;
12342 esac
12343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12344 $as_echo "$ac_try_echo") >&5
12345   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12346   ac_status=$?
12347   grep -v '^ *+' conftest.er1 >conftest.err
12348   rm -f conftest.er1
12349   cat conftest.err >&5
12350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); } >/dev/null && {
12352          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12353          test ! -s conftest.err
12354        }; then
12355   ac_header_preproc=yes
12356 else
12357   $as_echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360   ac_header_preproc=no
12361 fi
12362
12363 rm -f conftest.err conftest.$ac_ext
12364 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12365 $as_echo "$ac_header_preproc" >&6; }
12366
12367 # So?  What about this header?
12368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12369   yes:no: )
12370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12371 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12374     ac_header_preproc=yes
12375     ;;
12376   no:yes:* )
12377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12378 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12380 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12382 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12384 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12386 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12387     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12388 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12389     ( cat <<\_ASBOX
12390 ## ---------------------------------------- ##
12391 ## Report this to pgsql-bugs@postgresql.org ##
12392 ## ---------------------------------------- ##
12393 _ASBOX
12394      ) | sed "s/^/$as_me: WARNING:     /" >&2
12395     ;;
12396 esac
12397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12398 $as_echo_n "checking for $ac_header... " >&6; }
12399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12400   $as_echo_n "(cached) " >&6
12401 else
12402   eval "$as_ac_Header=\$ac_header_preproc"
12403 fi
12404 ac_res=`eval 'as_val=${'$as_ac_Header'}
12405                  $as_echo "$as_val"'`
12406                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12407 $as_echo "$ac_res" >&6; }
12408
12409 fi
12410 as_val=`eval 'as_val=${'$as_ac_Header'}
12411                  $as_echo "$as_val"'`
12412    if test "x$as_val" = x""yes; then
12413   cat >>confdefs.h <<_ACEOF
12414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12415 _ACEOF
12416
12417 else
12418
12419 for ac_header in gssapi.h
12420 do
12421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12423   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12424 $as_echo_n "checking for $ac_header... " >&6; }
12425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12426   $as_echo_n "(cached) " >&6
12427 fi
12428 ac_res=`eval 'as_val=${'$as_ac_Header'}
12429                  $as_echo "$as_val"'`
12430                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12431 $as_echo "$ac_res" >&6; }
12432 else
12433   # Is the header compilable?
12434 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12435 $as_echo_n "checking $ac_header usability... " >&6; }
12436 cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h.  */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h.  */
12442 $ac_includes_default
12443 #include <$ac_header>
12444 _ACEOF
12445 rm -f conftest.$ac_objext
12446 if { (ac_try="$ac_compile"
12447 case "(($ac_try" in
12448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449   *) ac_try_echo=$ac_try;;
12450 esac
12451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12452 $as_echo "$ac_try_echo") >&5
12453   (eval "$ac_compile") 2>conftest.er1
12454   ac_status=$?
12455   grep -v '^ *+' conftest.er1 >conftest.err
12456   rm -f conftest.er1
12457   cat conftest.err >&5
12458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); } && {
12460          test -z "$ac_c_werror_flag" ||
12461          test ! -s conftest.err
12462        } && test -s conftest.$ac_objext; then
12463   ac_header_compiler=yes
12464 else
12465   $as_echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12467
12468         ac_header_compiler=no
12469 fi
12470
12471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12472 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12473 $as_echo "$ac_header_compiler" >&6; }
12474
12475 # Is the header present?
12476 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12477 $as_echo_n "checking $ac_header presence... " >&6; }
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h.  */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h.  */
12484 #include <$ac_header>
12485 _ACEOF
12486 if { (ac_try="$ac_cpp conftest.$ac_ext"
12487 case "(($ac_try" in
12488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489   *) ac_try_echo=$ac_try;;
12490 esac
12491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12492 $as_echo "$ac_try_echo") >&5
12493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12494   ac_status=$?
12495   grep -v '^ *+' conftest.er1 >conftest.err
12496   rm -f conftest.er1
12497   cat conftest.err >&5
12498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); } >/dev/null && {
12500          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12501          test ! -s conftest.err
12502        }; then
12503   ac_header_preproc=yes
12504 else
12505   $as_echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508   ac_header_preproc=no
12509 fi
12510
12511 rm -f conftest.err conftest.$ac_ext
12512 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12513 $as_echo "$ac_header_preproc" >&6; }
12514
12515 # So?  What about this header?
12516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12517   yes:no: )
12518     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12519 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12520     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12521 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12522     ac_header_preproc=yes
12523     ;;
12524   no:yes:* )
12525     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12526 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12527     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12528 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12529     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12530 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12531     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12532 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12533     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12535     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12536 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12537     ( cat <<\_ASBOX
12538 ## ---------------------------------------- ##
12539 ## Report this to pgsql-bugs@postgresql.org ##
12540 ## ---------------------------------------- ##
12541 _ASBOX
12542      ) | sed "s/^/$as_me: WARNING:     /" >&2
12543     ;;
12544 esac
12545 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12546 $as_echo_n "checking for $ac_header... " >&6; }
12547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12548   $as_echo_n "(cached) " >&6
12549 else
12550   eval "$as_ac_Header=\$ac_header_preproc"
12551 fi
12552 ac_res=`eval 'as_val=${'$as_ac_Header'}
12553                  $as_echo "$as_val"'`
12554                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12555 $as_echo "$ac_res" >&6; }
12556
12557 fi
12558 as_val=`eval 'as_val=${'$as_ac_Header'}
12559                  $as_echo "$as_val"'`
12560    if test "x$as_val" = x""yes; then
12561   cat >>confdefs.h <<_ACEOF
12562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12563 _ACEOF
12564
12565 else
12566   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12567 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12568    { (exit 1); exit 1; }; }
12569 fi
12570
12571 done
12572
12573 fi
12574
12575 done
12576
12577 fi
12578
12579 if test "$with_krb5" = yes ; then
12580   if test "${ac_cv_header_krb5_h+set}" = set; then
12581   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12582 $as_echo_n "checking for krb5.h... " >&6; }
12583 if test "${ac_cv_header_krb5_h+set}" = set; then
12584   $as_echo_n "(cached) " >&6
12585 fi
12586 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12587 $as_echo "$ac_cv_header_krb5_h" >&6; }
12588 else
12589   # Is the header compilable?
12590 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12591 $as_echo_n "checking krb5.h usability... " >&6; }
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598 $ac_includes_default
12599 #include <krb5.h>
12600 _ACEOF
12601 rm -f conftest.$ac_objext
12602 if { (ac_try="$ac_compile"
12603 case "(($ac_try" in
12604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605   *) ac_try_echo=$ac_try;;
12606 esac
12607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12608 $as_echo "$ac_try_echo") >&5
12609   (eval "$ac_compile") 2>conftest.er1
12610   ac_status=$?
12611   grep -v '^ *+' conftest.er1 >conftest.err
12612   rm -f conftest.er1
12613   cat conftest.err >&5
12614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); } && {
12616          test -z "$ac_c_werror_flag" ||
12617          test ! -s conftest.err
12618        } && test -s conftest.$ac_objext; then
12619   ac_header_compiler=yes
12620 else
12621   $as_echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624         ac_header_compiler=no
12625 fi
12626
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12629 $as_echo "$ac_header_compiler" >&6; }
12630
12631 # Is the header present?
12632 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12633 $as_echo_n "checking krb5.h presence... " >&6; }
12634 cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h.  */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h.  */
12640 #include <krb5.h>
12641 _ACEOF
12642 if { (ac_try="$ac_cpp conftest.$ac_ext"
12643 case "(($ac_try" in
12644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645   *) ac_try_echo=$ac_try;;
12646 esac
12647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12648 $as_echo "$ac_try_echo") >&5
12649   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12650   ac_status=$?
12651   grep -v '^ *+' conftest.er1 >conftest.err
12652   rm -f conftest.er1
12653   cat conftest.err >&5
12654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } >/dev/null && {
12656          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12657          test ! -s conftest.err
12658        }; then
12659   ac_header_preproc=yes
12660 else
12661   $as_echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664   ac_header_preproc=no
12665 fi
12666
12667 rm -f conftest.err conftest.$ac_ext
12668 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12669 $as_echo "$ac_header_preproc" >&6; }
12670
12671 # So?  What about this header?
12672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12673   yes:no: )
12674     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12675 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12676     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12677 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12678     ac_header_preproc=yes
12679     ;;
12680   no:yes:* )
12681     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12682 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12683     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12684 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12685     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12686 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12687     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12688 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12689     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12690 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12691     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12692 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12693     ( cat <<\_ASBOX
12694 ## ---------------------------------------- ##
12695 ## Report this to pgsql-bugs@postgresql.org ##
12696 ## ---------------------------------------- ##
12697 _ASBOX
12698      ) | sed "s/^/$as_me: WARNING:     /" >&2
12699     ;;
12700 esac
12701 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12702 $as_echo_n "checking for krb5.h... " >&6; }
12703 if test "${ac_cv_header_krb5_h+set}" = set; then
12704   $as_echo_n "(cached) " >&6
12705 else
12706   ac_cv_header_krb5_h=$ac_header_preproc
12707 fi
12708 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12709 $as_echo "$ac_cv_header_krb5_h" >&6; }
12710
12711 fi
12712 if test "x$ac_cv_header_krb5_h" = x""yes; then
12713   :
12714 else
12715   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12716 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12717    { (exit 1); exit 1; }; }
12718 fi
12719
12720
12721 fi
12722
12723 if test "$with_openssl" = yes ; then
12724   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12725   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12726 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12727 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12728   $as_echo_n "(cached) " >&6
12729 fi
12730 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12731 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12732 else
12733   # Is the header compilable?
12734 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12735 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12736 cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h.  */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h.  */
12742 $ac_includes_default
12743 #include <openssl/ssl.h>
12744 _ACEOF
12745 rm -f conftest.$ac_objext
12746 if { (ac_try="$ac_compile"
12747 case "(($ac_try" in
12748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749   *) ac_try_echo=$ac_try;;
12750 esac
12751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12752 $as_echo "$ac_try_echo") >&5
12753   (eval "$ac_compile") 2>conftest.er1
12754   ac_status=$?
12755   grep -v '^ *+' conftest.er1 >conftest.err
12756   rm -f conftest.er1
12757   cat conftest.err >&5
12758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } && {
12760          test -z "$ac_c_werror_flag" ||
12761          test ! -s conftest.err
12762        } && test -s conftest.$ac_objext; then
12763   ac_header_compiler=yes
12764 else
12765   $as_echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12767
12768         ac_header_compiler=no
12769 fi
12770
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12773 $as_echo "$ac_header_compiler" >&6; }
12774
12775 # Is the header present?
12776 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12777 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12778 cat >conftest.$ac_ext <<_ACEOF
12779 /* confdefs.h.  */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h.  */
12784 #include <openssl/ssl.h>
12785 _ACEOF
12786 if { (ac_try="$ac_cpp conftest.$ac_ext"
12787 case "(($ac_try" in
12788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789   *) ac_try_echo=$ac_try;;
12790 esac
12791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12792 $as_echo "$ac_try_echo") >&5
12793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12794   ac_status=$?
12795   grep -v '^ *+' conftest.er1 >conftest.err
12796   rm -f conftest.er1
12797   cat conftest.err >&5
12798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); } >/dev/null && {
12800          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12801          test ! -s conftest.err
12802        }; then
12803   ac_header_preproc=yes
12804 else
12805   $as_echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12807
12808   ac_header_preproc=no
12809 fi
12810
12811 rm -f conftest.err conftest.$ac_ext
12812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12813 $as_echo "$ac_header_preproc" >&6; }
12814
12815 # So?  What about this header?
12816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12817   yes:no: )
12818     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12819 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12820     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12821 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12822     ac_header_preproc=yes
12823     ;;
12824   no:yes:* )
12825     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12826 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12827     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12828 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12829     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12830 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12831     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12832 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12833     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12834 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12835     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12836 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12837     ( cat <<\_ASBOX
12838 ## ---------------------------------------- ##
12839 ## Report this to pgsql-bugs@postgresql.org ##
12840 ## ---------------------------------------- ##
12841 _ASBOX
12842      ) | sed "s/^/$as_me: WARNING:     /" >&2
12843     ;;
12844 esac
12845 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12846 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12847 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12848   $as_echo_n "(cached) " >&6
12849 else
12850   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12851 fi
12852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12853 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12854
12855 fi
12856 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12857   :
12858 else
12859   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12860 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12861    { (exit 1); exit 1; }; }
12862 fi
12863
12864
12865   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12866   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12867 $as_echo_n "checking for openssl/err.h... " >&6; }
12868 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12869   $as_echo_n "(cached) " >&6
12870 fi
12871 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12872 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12873 else
12874   # Is the header compilable?
12875 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12876 $as_echo_n "checking openssl/err.h usability... " >&6; }
12877 cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h.  */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h.  */
12883 $ac_includes_default
12884 #include <openssl/err.h>
12885 _ACEOF
12886 rm -f conftest.$ac_objext
12887 if { (ac_try="$ac_compile"
12888 case "(($ac_try" in
12889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890   *) ac_try_echo=$ac_try;;
12891 esac
12892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12893 $as_echo "$ac_try_echo") >&5
12894   (eval "$ac_compile") 2>conftest.er1
12895   ac_status=$?
12896   grep -v '^ *+' conftest.er1 >conftest.err
12897   rm -f conftest.er1
12898   cat conftest.err >&5
12899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); } && {
12901          test -z "$ac_c_werror_flag" ||
12902          test ! -s conftest.err
12903        } && test -s conftest.$ac_objext; then
12904   ac_header_compiler=yes
12905 else
12906   $as_echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909         ac_header_compiler=no
12910 fi
12911
12912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12914 $as_echo "$ac_header_compiler" >&6; }
12915
12916 # Is the header present?
12917 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12918 $as_echo_n "checking openssl/err.h presence... " >&6; }
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h.  */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h.  */
12925 #include <openssl/err.h>
12926 _ACEOF
12927 if { (ac_try="$ac_cpp conftest.$ac_ext"
12928 case "(($ac_try" in
12929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930   *) ac_try_echo=$ac_try;;
12931 esac
12932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12933 $as_echo "$ac_try_echo") >&5
12934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12935   ac_status=$?
12936   grep -v '^ *+' conftest.er1 >conftest.err
12937   rm -f conftest.er1
12938   cat conftest.err >&5
12939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); } >/dev/null && {
12941          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12942          test ! -s conftest.err
12943        }; then
12944   ac_header_preproc=yes
12945 else
12946   $as_echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949   ac_header_preproc=no
12950 fi
12951
12952 rm -f conftest.err conftest.$ac_ext
12953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12954 $as_echo "$ac_header_preproc" >&6; }
12955
12956 # So?  What about this header?
12957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12958   yes:no: )
12959     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12960 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12961     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12962 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12963     ac_header_preproc=yes
12964     ;;
12965   no:yes:* )
12966     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12967 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12968     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12969 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12970     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12971 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12972     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12973 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12974     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12975 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12976     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12977 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12978     ( cat <<\_ASBOX
12979 ## ---------------------------------------- ##
12980 ## Report this to pgsql-bugs@postgresql.org ##
12981 ## ---------------------------------------- ##
12982 _ASBOX
12983      ) | sed "s/^/$as_me: WARNING:     /" >&2
12984     ;;
12985 esac
12986 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12987 $as_echo_n "checking for openssl/err.h... " >&6; }
12988 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12989   $as_echo_n "(cached) " >&6
12990 else
12991   ac_cv_header_openssl_err_h=$ac_header_preproc
12992 fi
12993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12994 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12995
12996 fi
12997 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12998   :
12999 else
13000   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13001 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13002    { (exit 1); exit 1; }; }
13003 fi
13004
13005
13006
13007 for ac_func in ERR_set_mark
13008 do
13009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13011 $as_echo_n "checking for $ac_func... " >&6; }
13012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13013   $as_echo_n "(cached) " >&6
13014 else
13015   cat >conftest.$ac_ext <<_ACEOF
13016 /* confdefs.h.  */
13017 _ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h.  */
13021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13023 #define $ac_func innocuous_$ac_func
13024
13025 /* System header to define __stub macros and hopefully few prototypes,
13026     which can conflict with char $ac_func (); below.
13027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13028     <limits.h> exists even on freestanding compilers.  */
13029
13030 #ifdef __STDC__
13031 # include <limits.h>
13032 #else
13033 # include <assert.h>
13034 #endif
13035
13036 #undef $ac_func
13037
13038 /* Override any GCC internal prototype to avoid an error.
13039    Use char because int might match the return type of a GCC
13040    builtin and then its argument prototype would still apply.  */
13041 #ifdef __cplusplus
13042 extern "C"
13043 #endif
13044 char $ac_func ();
13045 /* The GNU C library defines this for functions which it implements
13046     to always fail with ENOSYS.  Some functions are actually named
13047     something starting with __ and the normal name is an alias.  */
13048 #if defined __stub_$ac_func || defined __stub___$ac_func
13049 choke me
13050 #endif
13051
13052 int
13053 main ()
13054 {
13055 return $ac_func ();
13056   ;
13057   return 0;
13058 }
13059 _ACEOF
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064   *) ac_try_echo=$ac_try;;
13065 esac
13066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13067 $as_echo "$ac_try_echo") >&5
13068   (eval "$ac_link") 2>conftest.er1
13069   ac_status=$?
13070   grep -v '^ *+' conftest.er1 >conftest.err
13071   rm -f conftest.er1
13072   cat conftest.err >&5
13073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); } && {
13075          test -z "$ac_c_werror_flag" ||
13076          test ! -s conftest.err
13077        } && test -s conftest$ac_exeext && {
13078          test "$cross_compiling" = yes ||
13079          $as_test_x conftest$ac_exeext
13080        }; then
13081   eval "$as_ac_var=yes"
13082 else
13083   $as_echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13085
13086         eval "$as_ac_var=no"
13087 fi
13088
13089 rm -rf conftest.dSYM
13090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13091       conftest$ac_exeext conftest.$ac_ext
13092 fi
13093 ac_res=`eval 'as_val=${'$as_ac_var'}
13094                  $as_echo "$as_val"'`
13095                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13096 $as_echo "$ac_res" >&6; }
13097 as_val=`eval 'as_val=${'$as_ac_var'}
13098                  $as_echo "$as_val"'`
13099    if test "x$as_val" = x""yes; then
13100   cat >>confdefs.h <<_ACEOF
13101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13102 _ACEOF
13103
13104 fi
13105 done
13106
13107 fi
13108
13109 if test "$with_pam" = yes ; then
13110
13111 for ac_header in security/pam_appl.h
13112 do
13113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13115   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13116 $as_echo_n "checking for $ac_header... " >&6; }
13117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13118   $as_echo_n "(cached) " >&6
13119 fi
13120 ac_res=`eval 'as_val=${'$as_ac_Header'}
13121                  $as_echo "$as_val"'`
13122                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13123 $as_echo "$ac_res" >&6; }
13124 else
13125   # Is the header compilable?
13126 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13127 $as_echo_n "checking $ac_header usability... " >&6; }
13128 cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h.  */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h.  */
13134 $ac_includes_default
13135 #include <$ac_header>
13136 _ACEOF
13137 rm -f conftest.$ac_objext
13138 if { (ac_try="$ac_compile"
13139 case "(($ac_try" in
13140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141   *) ac_try_echo=$ac_try;;
13142 esac
13143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13144 $as_echo "$ac_try_echo") >&5
13145   (eval "$ac_compile") 2>conftest.er1
13146   ac_status=$?
13147   grep -v '^ *+' conftest.er1 >conftest.err
13148   rm -f conftest.er1
13149   cat conftest.err >&5
13150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); } && {
13152          test -z "$ac_c_werror_flag" ||
13153          test ! -s conftest.err
13154        } && test -s conftest.$ac_objext; then
13155   ac_header_compiler=yes
13156 else
13157   $as_echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13159
13160         ac_header_compiler=no
13161 fi
13162
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13165 $as_echo "$ac_header_compiler" >&6; }
13166
13167 # Is the header present?
13168 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13169 $as_echo_n "checking $ac_header presence... " >&6; }
13170 cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h.  */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h.  */
13176 #include <$ac_header>
13177 _ACEOF
13178 if { (ac_try="$ac_cpp conftest.$ac_ext"
13179 case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13184 $as_echo "$ac_try_echo") >&5
13185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13186   ac_status=$?
13187   grep -v '^ *+' conftest.er1 >conftest.err
13188   rm -f conftest.er1
13189   cat conftest.err >&5
13190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); } >/dev/null && {
13192          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13193          test ! -s conftest.err
13194        }; then
13195   ac_header_preproc=yes
13196 else
13197   $as_echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200   ac_header_preproc=no
13201 fi
13202
13203 rm -f conftest.err conftest.$ac_ext
13204 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13205 $as_echo "$ac_header_preproc" >&6; }
13206
13207 # So?  What about this header?
13208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13209   yes:no: )
13210     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13211 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13212     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13213 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13214     ac_header_preproc=yes
13215     ;;
13216   no:yes:* )
13217     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13218 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13219     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13220 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13221     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13222 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13223     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13224 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13225     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13227     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13228 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13229     ( cat <<\_ASBOX
13230 ## ---------------------------------------- ##
13231 ## Report this to pgsql-bugs@postgresql.org ##
13232 ## ---------------------------------------- ##
13233 _ASBOX
13234      ) | sed "s/^/$as_me: WARNING:     /" >&2
13235     ;;
13236 esac
13237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13238 $as_echo_n "checking for $ac_header... " >&6; }
13239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13240   $as_echo_n "(cached) " >&6
13241 else
13242   eval "$as_ac_Header=\$ac_header_preproc"
13243 fi
13244 ac_res=`eval 'as_val=${'$as_ac_Header'}
13245                  $as_echo "$as_val"'`
13246                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13247 $as_echo "$ac_res" >&6; }
13248
13249 fi
13250 as_val=`eval 'as_val=${'$as_ac_Header'}
13251                  $as_echo "$as_val"'`
13252    if test "x$as_val" = x""yes; then
13253   cat >>confdefs.h <<_ACEOF
13254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13255 _ACEOF
13256
13257 else
13258
13259 for ac_header in pam/pam_appl.h
13260 do
13261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13263   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13264 $as_echo_n "checking for $ac_header... " >&6; }
13265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13266   $as_echo_n "(cached) " >&6
13267 fi
13268 ac_res=`eval 'as_val=${'$as_ac_Header'}
13269                  $as_echo "$as_val"'`
13270                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13271 $as_echo "$ac_res" >&6; }
13272 else
13273   # Is the header compilable?
13274 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13275 $as_echo_n "checking $ac_header usability... " >&6; }
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h.  */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h.  */
13282 $ac_includes_default
13283 #include <$ac_header>
13284 _ACEOF
13285 rm -f conftest.$ac_objext
13286 if { (ac_try="$ac_compile"
13287 case "(($ac_try" in
13288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289   *) ac_try_echo=$ac_try;;
13290 esac
13291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13292 $as_echo "$ac_try_echo") >&5
13293   (eval "$ac_compile") 2>conftest.er1
13294   ac_status=$?
13295   grep -v '^ *+' conftest.er1 >conftest.err
13296   rm -f conftest.er1
13297   cat conftest.err >&5
13298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); } && {
13300          test -z "$ac_c_werror_flag" ||
13301          test ! -s conftest.err
13302        } && test -s conftest.$ac_objext; then
13303   ac_header_compiler=yes
13304 else
13305   $as_echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13307
13308         ac_header_compiler=no
13309 fi
13310
13311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13312 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13313 $as_echo "$ac_header_compiler" >&6; }
13314
13315 # Is the header present?
13316 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13317 $as_echo_n "checking $ac_header presence... " >&6; }
13318 cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324 #include <$ac_header>
13325 _ACEOF
13326 if { (ac_try="$ac_cpp conftest.$ac_ext"
13327 case "(($ac_try" in
13328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329   *) ac_try_echo=$ac_try;;
13330 esac
13331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13332 $as_echo "$ac_try_echo") >&5
13333   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13334   ac_status=$?
13335   grep -v '^ *+' conftest.er1 >conftest.err
13336   rm -f conftest.er1
13337   cat conftest.err >&5
13338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); } >/dev/null && {
13340          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13341          test ! -s conftest.err
13342        }; then
13343   ac_header_preproc=yes
13344 else
13345   $as_echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13347
13348   ac_header_preproc=no
13349 fi
13350
13351 rm -f conftest.err conftest.$ac_ext
13352 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13353 $as_echo "$ac_header_preproc" >&6; }
13354
13355 # So?  What about this header?
13356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13357   yes:no: )
13358     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13359 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13360     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13362     ac_header_preproc=yes
13363     ;;
13364   no:yes:* )
13365     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13366 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13367     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13368 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13370 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13372 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13376 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13377     ( cat <<\_ASBOX
13378 ## ---------------------------------------- ##
13379 ## Report this to pgsql-bugs@postgresql.org ##
13380 ## ---------------------------------------- ##
13381 _ASBOX
13382      ) | sed "s/^/$as_me: WARNING:     /" >&2
13383     ;;
13384 esac
13385 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13386 $as_echo_n "checking for $ac_header... " >&6; }
13387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13388   $as_echo_n "(cached) " >&6
13389 else
13390   eval "$as_ac_Header=\$ac_header_preproc"
13391 fi
13392 ac_res=`eval 'as_val=${'$as_ac_Header'}
13393                  $as_echo "$as_val"'`
13394                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13395 $as_echo "$ac_res" >&6; }
13396
13397 fi
13398 as_val=`eval 'as_val=${'$as_ac_Header'}
13399                  $as_echo "$as_val"'`
13400    if test "x$as_val" = x""yes; then
13401   cat >>confdefs.h <<_ACEOF
13402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13403 _ACEOF
13404
13405 else
13406   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13407 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13408    { (exit 1); exit 1; }; }
13409 fi
13410
13411 done
13412
13413 fi
13414
13415 done
13416
13417 fi
13418
13419 if test "$with_libxml" = yes ; then
13420   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13421   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13422 $as_echo_n "checking for libxml/parser.h... " >&6; }
13423 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13424   $as_echo_n "(cached) " >&6
13425 fi
13426 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13427 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13428 else
13429   # Is the header compilable?
13430 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13431 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13432 cat >conftest.$ac_ext <<_ACEOF
13433 /* confdefs.h.  */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h.  */
13438 $ac_includes_default
13439 #include <libxml/parser.h>
13440 _ACEOF
13441 rm -f conftest.$ac_objext
13442 if { (ac_try="$ac_compile"
13443 case "(($ac_try" in
13444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445   *) ac_try_echo=$ac_try;;
13446 esac
13447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13448 $as_echo "$ac_try_echo") >&5
13449   (eval "$ac_compile") 2>conftest.er1
13450   ac_status=$?
13451   grep -v '^ *+' conftest.er1 >conftest.err
13452   rm -f conftest.er1
13453   cat conftest.err >&5
13454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); } && {
13456          test -z "$ac_c_werror_flag" ||
13457          test ! -s conftest.err
13458        } && test -s conftest.$ac_objext; then
13459   ac_header_compiler=yes
13460 else
13461   $as_echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464         ac_header_compiler=no
13465 fi
13466
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13469 $as_echo "$ac_header_compiler" >&6; }
13470
13471 # Is the header present?
13472 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13473 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h.  */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h.  */
13480 #include <libxml/parser.h>
13481 _ACEOF
13482 if { (ac_try="$ac_cpp conftest.$ac_ext"
13483 case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13488 $as_echo "$ac_try_echo") >&5
13489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } >/dev/null && {
13496          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13497          test ! -s conftest.err
13498        }; then
13499   ac_header_preproc=yes
13500 else
13501   $as_echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504   ac_header_preproc=no
13505 fi
13506
13507 rm -f conftest.err conftest.$ac_ext
13508 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13509 $as_echo "$ac_header_preproc" >&6; }
13510
13511 # So?  What about this header?
13512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13513   yes:no: )
13514     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13515 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13516     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13517 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13518     ac_header_preproc=yes
13519     ;;
13520   no:yes:* )
13521     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13522 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13523     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13524 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13525     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13526 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13527     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13528 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13529     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13530 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13531     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13532 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13533     ( cat <<\_ASBOX
13534 ## ---------------------------------------- ##
13535 ## Report this to pgsql-bugs@postgresql.org ##
13536 ## ---------------------------------------- ##
13537 _ASBOX
13538      ) | sed "s/^/$as_me: WARNING:     /" >&2
13539     ;;
13540 esac
13541 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13542 $as_echo_n "checking for libxml/parser.h... " >&6; }
13543 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13544   $as_echo_n "(cached) " >&6
13545 else
13546   ac_cv_header_libxml_parser_h=$ac_header_preproc
13547 fi
13548 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13549 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13550
13551 fi
13552 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13553   :
13554 else
13555   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13556 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13557    { (exit 1); exit 1; }; }
13558 fi
13559
13560
13561 fi
13562
13563 if test "$with_libxslt" = yes ; then
13564   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13565   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13566 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13567 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13568   $as_echo_n "(cached) " >&6
13569 fi
13570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13571 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13572 else
13573   # Is the header compilable?
13574 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13575 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13576 cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h.  */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h.  */
13582 $ac_includes_default
13583 #include <libxslt/xslt.h>
13584 _ACEOF
13585 rm -f conftest.$ac_objext
13586 if { (ac_try="$ac_compile"
13587 case "(($ac_try" in
13588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589   *) ac_try_echo=$ac_try;;
13590 esac
13591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13592 $as_echo "$ac_try_echo") >&5
13593   (eval "$ac_compile") 2>conftest.er1
13594   ac_status=$?
13595   grep -v '^ *+' conftest.er1 >conftest.err
13596   rm -f conftest.er1
13597   cat conftest.err >&5
13598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599   (exit $ac_status); } && {
13600          test -z "$ac_c_werror_flag" ||
13601          test ! -s conftest.err
13602        } && test -s conftest.$ac_objext; then
13603   ac_header_compiler=yes
13604 else
13605   $as_echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608         ac_header_compiler=no
13609 fi
13610
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13613 $as_echo "$ac_header_compiler" >&6; }
13614
13615 # Is the header present?
13616 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13617 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13618 cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624 #include <libxslt/xslt.h>
13625 _ACEOF
13626 if { (ac_try="$ac_cpp conftest.$ac_ext"
13627 case "(($ac_try" in
13628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629   *) ac_try_echo=$ac_try;;
13630 esac
13631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13632 $as_echo "$ac_try_echo") >&5
13633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13634   ac_status=$?
13635   grep -v '^ *+' conftest.er1 >conftest.err
13636   rm -f conftest.er1
13637   cat conftest.err >&5
13638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } >/dev/null && {
13640          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13641          test ! -s conftest.err
13642        }; then
13643   ac_header_preproc=yes
13644 else
13645   $as_echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13647
13648   ac_header_preproc=no
13649 fi
13650
13651 rm -f conftest.err conftest.$ac_ext
13652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13653 $as_echo "$ac_header_preproc" >&6; }
13654
13655 # So?  What about this header?
13656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13657   yes:no: )
13658     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13659 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13660     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13661 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13662     ac_header_preproc=yes
13663     ;;
13664   no:yes:* )
13665     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13666 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13667     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13668 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13669     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13670 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13671     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13672 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13673     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13674 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13675     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13676 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13677     ( cat <<\_ASBOX
13678 ## ---------------------------------------- ##
13679 ## Report this to pgsql-bugs@postgresql.org ##
13680 ## ---------------------------------------- ##
13681 _ASBOX
13682      ) | sed "s/^/$as_me: WARNING:     /" >&2
13683     ;;
13684 esac
13685 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13686 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13687 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13688   $as_echo_n "(cached) " >&6
13689 else
13690   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13691 fi
13692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13693 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13694
13695 fi
13696 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13697   :
13698 else
13699   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13700 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13701    { (exit 1); exit 1; }; }
13702 fi
13703
13704
13705 fi
13706
13707 if test "$with_ldap" = yes ; then
13708   if test "$PORTNAME" != "win32"; then
13709
13710 for ac_header in ldap.h
13711 do
13712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13714   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13715 $as_echo_n "checking for $ac_header... " >&6; }
13716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13717   $as_echo_n "(cached) " >&6
13718 fi
13719 ac_res=`eval 'as_val=${'$as_ac_Header'}
13720                  $as_echo "$as_val"'`
13721                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13722 $as_echo "$ac_res" >&6; }
13723 else
13724   # Is the header compilable?
13725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13726 $as_echo_n "checking $ac_header usability... " >&6; }
13727 cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 $ac_includes_default
13734 #include <$ac_header>
13735 _ACEOF
13736 rm -f conftest.$ac_objext
13737 if { (ac_try="$ac_compile"
13738 case "(($ac_try" in
13739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740   *) ac_try_echo=$ac_try;;
13741 esac
13742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13743 $as_echo "$ac_try_echo") >&5
13744   (eval "$ac_compile") 2>conftest.er1
13745   ac_status=$?
13746   grep -v '^ *+' conftest.er1 >conftest.err
13747   rm -f conftest.er1
13748   cat conftest.err >&5
13749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } && {
13751          test -z "$ac_c_werror_flag" ||
13752          test ! -s conftest.err
13753        } && test -s conftest.$ac_objext; then
13754   ac_header_compiler=yes
13755 else
13756   $as_echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13758
13759         ac_header_compiler=no
13760 fi
13761
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13764 $as_echo "$ac_header_compiler" >&6; }
13765
13766 # Is the header present?
13767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13768 $as_echo_n "checking $ac_header presence... " >&6; }
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h.  */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h.  */
13775 #include <$ac_header>
13776 _ACEOF
13777 if { (ac_try="$ac_cpp conftest.$ac_ext"
13778 case "(($ac_try" in
13779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780   *) ac_try_echo=$ac_try;;
13781 esac
13782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13783 $as_echo "$ac_try_echo") >&5
13784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13785   ac_status=$?
13786   grep -v '^ *+' conftest.er1 >conftest.err
13787   rm -f conftest.er1
13788   cat conftest.err >&5
13789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); } >/dev/null && {
13791          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13792          test ! -s conftest.err
13793        }; then
13794   ac_header_preproc=yes
13795 else
13796   $as_echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799   ac_header_preproc=no
13800 fi
13801
13802 rm -f conftest.err conftest.$ac_ext
13803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13804 $as_echo "$ac_header_preproc" >&6; }
13805
13806 # So?  What about this header?
13807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13808   yes:no: )
13809     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13811     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13813     ac_header_preproc=yes
13814     ;;
13815   no:yes:* )
13816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13819 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13823 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13828     ( cat <<\_ASBOX
13829 ## ---------------------------------------- ##
13830 ## Report this to pgsql-bugs@postgresql.org ##
13831 ## ---------------------------------------- ##
13832 _ASBOX
13833      ) | sed "s/^/$as_me: WARNING:     /" >&2
13834     ;;
13835 esac
13836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13837 $as_echo_n "checking for $ac_header... " >&6; }
13838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13839   $as_echo_n "(cached) " >&6
13840 else
13841   eval "$as_ac_Header=\$ac_header_preproc"
13842 fi
13843 ac_res=`eval 'as_val=${'$as_ac_Header'}
13844                  $as_echo "$as_val"'`
13845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13846 $as_echo "$ac_res" >&6; }
13847
13848 fi
13849 as_val=`eval 'as_val=${'$as_ac_Header'}
13850                  $as_echo "$as_val"'`
13851    if test "x$as_val" = x""yes; then
13852   cat >>confdefs.h <<_ACEOF
13853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13854 _ACEOF
13855
13856 else
13857   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13858 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13859    { (exit 1); exit 1; }; }
13860 fi
13861
13862 done
13863
13864   else
13865
13866 for ac_header in winldap.h
13867 do
13868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13869 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13870 $as_echo_n "checking for $ac_header... " >&6; }
13871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13872   $as_echo_n "(cached) " >&6
13873 else
13874   cat >conftest.$ac_ext <<_ACEOF
13875 /* confdefs.h.  */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h.  */
13880 $ac_includes_default
13881 #include <windows.h>
13882
13883
13884 #include <$ac_header>
13885 _ACEOF
13886 rm -f conftest.$ac_objext
13887 if { (ac_try="$ac_compile"
13888 case "(($ac_try" in
13889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890   *) ac_try_echo=$ac_try;;
13891 esac
13892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13893 $as_echo "$ac_try_echo") >&5
13894   (eval "$ac_compile") 2>conftest.er1
13895   ac_status=$?
13896   grep -v '^ *+' conftest.er1 >conftest.err
13897   rm -f conftest.er1
13898   cat conftest.err >&5
13899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); } && {
13901          test -z "$ac_c_werror_flag" ||
13902          test ! -s conftest.err
13903        } && test -s conftest.$ac_objext; then
13904   eval "$as_ac_Header=yes"
13905 else
13906   $as_echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909         eval "$as_ac_Header=no"
13910 fi
13911
13912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13913 fi
13914 ac_res=`eval 'as_val=${'$as_ac_Header'}
13915                  $as_echo "$as_val"'`
13916                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13917 $as_echo "$ac_res" >&6; }
13918 as_val=`eval 'as_val=${'$as_ac_Header'}
13919                  $as_echo "$as_val"'`
13920    if test "x$as_val" = x""yes; then
13921   cat >>confdefs.h <<_ACEOF
13922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13923 _ACEOF
13924
13925 else
13926   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13927 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13928    { (exit 1); exit 1; }; }
13929 fi
13930
13931 done
13932
13933   fi
13934 fi
13935
13936 if test "$with_bonjour" = yes ; then
13937   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13938   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13939 $as_echo_n "checking for dns_sd.h... " >&6; }
13940 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13941   $as_echo_n "(cached) " >&6
13942 fi
13943 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13944 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13945 else
13946   # Is the header compilable?
13947 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13948 $as_echo_n "checking dns_sd.h usability... " >&6; }
13949 cat >conftest.$ac_ext <<_ACEOF
13950 /* confdefs.h.  */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h.  */
13955 $ac_includes_default
13956 #include <dns_sd.h>
13957 _ACEOF
13958 rm -f conftest.$ac_objext
13959 if { (ac_try="$ac_compile"
13960 case "(($ac_try" in
13961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962   *) ac_try_echo=$ac_try;;
13963 esac
13964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13965 $as_echo "$ac_try_echo") >&5
13966   (eval "$ac_compile") 2>conftest.er1
13967   ac_status=$?
13968   grep -v '^ *+' conftest.er1 >conftest.err
13969   rm -f conftest.er1
13970   cat conftest.err >&5
13971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); } && {
13973          test -z "$ac_c_werror_flag" ||
13974          test ! -s conftest.err
13975        } && test -s conftest.$ac_objext; then
13976   ac_header_compiler=yes
13977 else
13978   $as_echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13980
13981         ac_header_compiler=no
13982 fi
13983
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13986 $as_echo "$ac_header_compiler" >&6; }
13987
13988 # Is the header present?
13989 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13990 $as_echo_n "checking dns_sd.h presence... " >&6; }
13991 cat >conftest.$ac_ext <<_ACEOF
13992 /* confdefs.h.  */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h.  */
13997 #include <dns_sd.h>
13998 _ACEOF
13999 if { (ac_try="$ac_cpp conftest.$ac_ext"
14000 case "(($ac_try" in
14001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002   *) ac_try_echo=$ac_try;;
14003 esac
14004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14005 $as_echo "$ac_try_echo") >&5
14006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14007   ac_status=$?
14008   grep -v '^ *+' conftest.er1 >conftest.err
14009   rm -f conftest.er1
14010   cat conftest.err >&5
14011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); } >/dev/null && {
14013          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14014          test ! -s conftest.err
14015        }; then
14016   ac_header_preproc=yes
14017 else
14018   $as_echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14020
14021   ac_header_preproc=no
14022 fi
14023
14024 rm -f conftest.err conftest.$ac_ext
14025 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14026 $as_echo "$ac_header_preproc" >&6; }
14027
14028 # So?  What about this header?
14029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14030   yes:no: )
14031     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14032 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14033     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14034 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14035     ac_header_preproc=yes
14036     ;;
14037   no:yes:* )
14038     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14039 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14040     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
14041 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
14042     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14043 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14044     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
14045 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14046     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14047 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14048     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14049 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14050     ( cat <<\_ASBOX
14051 ## ---------------------------------------- ##
14052 ## Report this to pgsql-bugs@postgresql.org ##
14053 ## ---------------------------------------- ##
14054 _ASBOX
14055      ) | sed "s/^/$as_me: WARNING:     /" >&2
14056     ;;
14057 esac
14058 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14059 $as_echo_n "checking for dns_sd.h... " >&6; }
14060 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14061   $as_echo_n "(cached) " >&6
14062 else
14063   ac_cv_header_dns_sd_h=$ac_header_preproc
14064 fi
14065 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14066 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14067
14068 fi
14069 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14070   :
14071 else
14072   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14073 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14074    { (exit 1); exit 1; }; }
14075 fi
14076
14077
14078 fi
14079
14080 # for contrib/uuid-ossp
14081 if test "$with_ossp_uuid" = yes ; then
14082
14083 for ac_header in ossp/uuid.h
14084 do
14085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14087   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14088 $as_echo_n "checking for $ac_header... " >&6; }
14089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14090   $as_echo_n "(cached) " >&6
14091 fi
14092 ac_res=`eval 'as_val=${'$as_ac_Header'}
14093                  $as_echo "$as_val"'`
14094                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14095 $as_echo "$ac_res" >&6; }
14096 else
14097   # Is the header compilable?
14098 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14099 $as_echo_n "checking $ac_header usability... " >&6; }
14100 cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h.  */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h.  */
14106 $ac_includes_default
14107 #include <$ac_header>
14108 _ACEOF
14109 rm -f conftest.$ac_objext
14110 if { (ac_try="$ac_compile"
14111 case "(($ac_try" in
14112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113   *) ac_try_echo=$ac_try;;
14114 esac
14115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14116 $as_echo "$ac_try_echo") >&5
14117   (eval "$ac_compile") 2>conftest.er1
14118   ac_status=$?
14119   grep -v '^ *+' conftest.er1 >conftest.err
14120   rm -f conftest.er1
14121   cat conftest.err >&5
14122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); } && {
14124          test -z "$ac_c_werror_flag" ||
14125          test ! -s conftest.err
14126        } && test -s conftest.$ac_objext; then
14127   ac_header_compiler=yes
14128 else
14129   $as_echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132         ac_header_compiler=no
14133 fi
14134
14135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14136 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14137 $as_echo "$ac_header_compiler" >&6; }
14138
14139 # Is the header present?
14140 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14141 $as_echo_n "checking $ac_header presence... " >&6; }
14142 cat >conftest.$ac_ext <<_ACEOF
14143 /* confdefs.h.  */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h.  */
14148 #include <$ac_header>
14149 _ACEOF
14150 if { (ac_try="$ac_cpp conftest.$ac_ext"
14151 case "(($ac_try" in
14152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153   *) ac_try_echo=$ac_try;;
14154 esac
14155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14156 $as_echo "$ac_try_echo") >&5
14157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14158   ac_status=$?
14159   grep -v '^ *+' conftest.er1 >conftest.err
14160   rm -f conftest.er1
14161   cat conftest.err >&5
14162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } >/dev/null && {
14164          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14165          test ! -s conftest.err
14166        }; then
14167   ac_header_preproc=yes
14168 else
14169   $as_echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14171
14172   ac_header_preproc=no
14173 fi
14174
14175 rm -f conftest.err conftest.$ac_ext
14176 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14177 $as_echo "$ac_header_preproc" >&6; }
14178
14179 # So?  What about this header?
14180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14181   yes:no: )
14182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14183 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14185 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14186     ac_header_preproc=yes
14187     ;;
14188   no:yes:* )
14189     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14190 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14191     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14192 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14193     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14194 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14196 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14199     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14200 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14201     ( cat <<\_ASBOX
14202 ## ---------------------------------------- ##
14203 ## Report this to pgsql-bugs@postgresql.org ##
14204 ## ---------------------------------------- ##
14205 _ASBOX
14206      ) | sed "s/^/$as_me: WARNING:     /" >&2
14207     ;;
14208 esac
14209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14210 $as_echo_n "checking for $ac_header... " >&6; }
14211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14212   $as_echo_n "(cached) " >&6
14213 else
14214   eval "$as_ac_Header=\$ac_header_preproc"
14215 fi
14216 ac_res=`eval 'as_val=${'$as_ac_Header'}
14217                  $as_echo "$as_val"'`
14218                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14219 $as_echo "$ac_res" >&6; }
14220
14221 fi
14222 as_val=`eval 'as_val=${'$as_ac_Header'}
14223                  $as_echo "$as_val"'`
14224    if test "x$as_val" = x""yes; then
14225   cat >>confdefs.h <<_ACEOF
14226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14227 _ACEOF
14228
14229 else
14230
14231
14232 for ac_header in uuid.h
14233 do
14234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14236   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14237 $as_echo_n "checking for $ac_header... " >&6; }
14238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14239   $as_echo_n "(cached) " >&6
14240 fi
14241 ac_res=`eval 'as_val=${'$as_ac_Header'}
14242                  $as_echo "$as_val"'`
14243                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14244 $as_echo "$ac_res" >&6; }
14245 else
14246   # Is the header compilable?
14247 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14248 $as_echo_n "checking $ac_header usability... " >&6; }
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h.  */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h.  */
14255 $ac_includes_default
14256 #include <$ac_header>
14257 _ACEOF
14258 rm -f conftest.$ac_objext
14259 if { (ac_try="$ac_compile"
14260 case "(($ac_try" in
14261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262   *) ac_try_echo=$ac_try;;
14263 esac
14264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14265 $as_echo "$ac_try_echo") >&5
14266   (eval "$ac_compile") 2>conftest.er1
14267   ac_status=$?
14268   grep -v '^ *+' conftest.er1 >conftest.err
14269   rm -f conftest.er1
14270   cat conftest.err >&5
14271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); } && {
14273          test -z "$ac_c_werror_flag" ||
14274          test ! -s conftest.err
14275        } && test -s conftest.$ac_objext; then
14276   ac_header_compiler=yes
14277 else
14278   $as_echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14280
14281         ac_header_compiler=no
14282 fi
14283
14284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14285 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14286 $as_echo "$ac_header_compiler" >&6; }
14287
14288 # Is the header present?
14289 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14290 $as_echo_n "checking $ac_header presence... " >&6; }
14291 cat >conftest.$ac_ext <<_ACEOF
14292 /* confdefs.h.  */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h.  */
14297 #include <$ac_header>
14298 _ACEOF
14299 if { (ac_try="$ac_cpp conftest.$ac_ext"
14300 case "(($ac_try" in
14301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302   *) ac_try_echo=$ac_try;;
14303 esac
14304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14305 $as_echo "$ac_try_echo") >&5
14306   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14307   ac_status=$?
14308   grep -v '^ *+' conftest.er1 >conftest.err
14309   rm -f conftest.er1
14310   cat conftest.err >&5
14311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); } >/dev/null && {
14313          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14314          test ! -s conftest.err
14315        }; then
14316   ac_header_preproc=yes
14317 else
14318   $as_echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14320
14321   ac_header_preproc=no
14322 fi
14323
14324 rm -f conftest.err conftest.$ac_ext
14325 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14326 $as_echo "$ac_header_preproc" >&6; }
14327
14328 # So?  What about this header?
14329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14330   yes:no: )
14331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14332 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14333     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14335     ac_header_preproc=yes
14336     ;;
14337   no:yes:* )
14338     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14339 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14340     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14341 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14342     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14343 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14344     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14345 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14346     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14347 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14348     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14349 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14350     ( cat <<\_ASBOX
14351 ## ---------------------------------------- ##
14352 ## Report this to pgsql-bugs@postgresql.org ##
14353 ## ---------------------------------------- ##
14354 _ASBOX
14355      ) | sed "s/^/$as_me: WARNING:     /" >&2
14356     ;;
14357 esac
14358 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14359 $as_echo_n "checking for $ac_header... " >&6; }
14360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14361   $as_echo_n "(cached) " >&6
14362 else
14363   eval "$as_ac_Header=\$ac_header_preproc"
14364 fi
14365 ac_res=`eval 'as_val=${'$as_ac_Header'}
14366                  $as_echo "$as_val"'`
14367                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14368 $as_echo "$ac_res" >&6; }
14369
14370 fi
14371 as_val=`eval 'as_val=${'$as_ac_Header'}
14372                  $as_echo "$as_val"'`
14373    if test "x$as_val" = x""yes; then
14374   cat >>confdefs.h <<_ACEOF
14375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14376 _ACEOF
14377
14378 else
14379   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14380 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14381    { (exit 1); exit 1; }; }
14382 fi
14383
14384 done
14385
14386 fi
14387
14388 done
14389
14390 fi
14391
14392 if test "$PORTNAME" = "win32" ; then
14393
14394 for ac_header in crtdefs.h
14395 do
14396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14398   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14399 $as_echo_n "checking for $ac_header... " >&6; }
14400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14401   $as_echo_n "(cached) " >&6
14402 fi
14403 ac_res=`eval 'as_val=${'$as_ac_Header'}
14404                  $as_echo "$as_val"'`
14405                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14406 $as_echo "$ac_res" >&6; }
14407 else
14408   # Is the header compilable?
14409 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14410 $as_echo_n "checking $ac_header usability... " >&6; }
14411 cat >conftest.$ac_ext <<_ACEOF
14412 /* confdefs.h.  */
14413 _ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h.  */
14417 $ac_includes_default
14418 #include <$ac_header>
14419 _ACEOF
14420 rm -f conftest.$ac_objext
14421 if { (ac_try="$ac_compile"
14422 case "(($ac_try" in
14423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424   *) ac_try_echo=$ac_try;;
14425 esac
14426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14427 $as_echo "$ac_try_echo") >&5
14428   (eval "$ac_compile") 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } && {
14435          test -z "$ac_c_werror_flag" ||
14436          test ! -s conftest.err
14437        } && test -s conftest.$ac_objext; then
14438   ac_header_compiler=yes
14439 else
14440   $as_echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14442
14443         ac_header_compiler=no
14444 fi
14445
14446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14448 $as_echo "$ac_header_compiler" >&6; }
14449
14450 # Is the header present?
14451 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14452 $as_echo_n "checking $ac_header presence... " >&6; }
14453 cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h.  */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h.  */
14459 #include <$ac_header>
14460 _ACEOF
14461 if { (ac_try="$ac_cpp conftest.$ac_ext"
14462 case "(($ac_try" in
14463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464   *) ac_try_echo=$ac_try;;
14465 esac
14466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14467 $as_echo "$ac_try_echo") >&5
14468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14469   ac_status=$?
14470   grep -v '^ *+' conftest.er1 >conftest.err
14471   rm -f conftest.er1
14472   cat conftest.err >&5
14473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); } >/dev/null && {
14475          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14476          test ! -s conftest.err
14477        }; then
14478   ac_header_preproc=yes
14479 else
14480   $as_echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14482
14483   ac_header_preproc=no
14484 fi
14485
14486 rm -f conftest.err conftest.$ac_ext
14487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14488 $as_echo "$ac_header_preproc" >&6; }
14489
14490 # So?  What about this header?
14491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14492   yes:no: )
14493     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14494 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14495     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14497     ac_header_preproc=yes
14498     ;;
14499   no:yes:* )
14500     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14501 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14502     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14503 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14504     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14505 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14506     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14507 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14508     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14510     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14511 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14512     ( cat <<\_ASBOX
14513 ## ---------------------------------------- ##
14514 ## Report this to pgsql-bugs@postgresql.org ##
14515 ## ---------------------------------------- ##
14516 _ASBOX
14517      ) | sed "s/^/$as_me: WARNING:     /" >&2
14518     ;;
14519 esac
14520 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14521 $as_echo_n "checking for $ac_header... " >&6; }
14522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14523   $as_echo_n "(cached) " >&6
14524 else
14525   eval "$as_ac_Header=\$ac_header_preproc"
14526 fi
14527 ac_res=`eval 'as_val=${'$as_ac_Header'}
14528                  $as_echo "$as_val"'`
14529                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14530 $as_echo "$ac_res" >&6; }
14531
14532 fi
14533 as_val=`eval 'as_val=${'$as_ac_Header'}
14534                  $as_echo "$as_val"'`
14535    if test "x$as_val" = x""yes; then
14536   cat >>confdefs.h <<_ACEOF
14537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14538 _ACEOF
14539
14540 fi
14541
14542 done
14543
14544 fi
14545
14546 ##
14547 ## Types, structures, compiler characteristics
14548 ##
14549
14550
14551  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14552 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14553 if test "${ac_cv_c_bigendian+set}" = set; then
14554   $as_echo_n "(cached) " >&6
14555 else
14556   ac_cv_c_bigendian=unknown
14557     # See if we're dealing with a universal compiler.
14558     cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h.  */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h.  */
14564 #ifndef __APPLE_CC__
14565                not a universal capable compiler
14566              #endif
14567              typedef int dummy;
14568
14569 _ACEOF
14570 rm -f conftest.$ac_objext
14571 if { (ac_try="$ac_compile"
14572 case "(($ac_try" in
14573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574   *) ac_try_echo=$ac_try;;
14575 esac
14576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14577 $as_echo "$ac_try_echo") >&5
14578   (eval "$ac_compile") 2>conftest.er1
14579   ac_status=$?
14580   grep -v '^ *+' conftest.er1 >conftest.err
14581   rm -f conftest.er1
14582   cat conftest.err >&5
14583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); } && {
14585          test -z "$ac_c_werror_flag" ||
14586          test ! -s conftest.err
14587        } && test -s conftest.$ac_objext; then
14588
14589         # Check for potential -arch flags.  It is not universal unless
14590         # there are some -arch flags.  Note that *ppc* also matches
14591         # ppc64.  This check is also rather less than ideal.
14592         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14593           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14594         esac
14595 else
14596   $as_echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14598
14599
14600 fi
14601
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603     if test $ac_cv_c_bigendian = unknown; then
14604       # See if sys/param.h defines the BYTE_ORDER macro.
14605       cat >conftest.$ac_ext <<_ACEOF
14606 /* confdefs.h.  */
14607 _ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h.  */
14611 #include <sys/types.h>
14612              #include <sys/param.h>
14613
14614 int
14615 main ()
14616 {
14617 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14618                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14619                      && LITTLE_ENDIAN)
14620               bogus endian macros
14621              #endif
14622
14623   ;
14624   return 0;
14625 }
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (ac_try="$ac_compile"
14629 case "(($ac_try" in
14630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631   *) ac_try_echo=$ac_try;;
14632 esac
14633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14634 $as_echo "$ac_try_echo") >&5
14635   (eval "$ac_compile") 2>conftest.er1
14636   ac_status=$?
14637   grep -v '^ *+' conftest.er1 >conftest.err
14638   rm -f conftest.er1
14639   cat conftest.err >&5
14640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); } && {
14642          test -z "$ac_c_werror_flag" ||
14643          test ! -s conftest.err
14644        } && test -s conftest.$ac_objext; then
14645   # It does; now see whether it defined to BIG_ENDIAN or not.
14646          cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h.  */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h.  */
14652 #include <sys/types.h>
14653                 #include <sys/param.h>
14654
14655 int
14656 main ()
14657 {
14658 #if BYTE_ORDER != BIG_ENDIAN
14659                  not big endian
14660                 #endif
14661
14662   ;
14663   return 0;
14664 }
14665 _ACEOF
14666 rm -f conftest.$ac_objext
14667 if { (ac_try="$ac_compile"
14668 case "(($ac_try" in
14669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670   *) ac_try_echo=$ac_try;;
14671 esac
14672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14673 $as_echo "$ac_try_echo") >&5
14674   (eval "$ac_compile") 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } && {
14681          test -z "$ac_c_werror_flag" ||
14682          test ! -s conftest.err
14683        } && test -s conftest.$ac_objext; then
14684   ac_cv_c_bigendian=yes
14685 else
14686   $as_echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689         ac_cv_c_bigendian=no
14690 fi
14691
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 else
14694   $as_echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14696
14697
14698 fi
14699
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701     fi
14702     if test $ac_cv_c_bigendian = unknown; then
14703       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14704       cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710 #include <limits.h>
14711
14712 int
14713 main ()
14714 {
14715 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14716               bogus endian macros
14717              #endif
14718
14719   ;
14720   return 0;
14721 }
14722 _ACEOF
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727   *) ac_try_echo=$ac_try;;
14728 esac
14729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14730 $as_echo "$ac_try_echo") >&5
14731   (eval "$ac_compile") 2>conftest.er1
14732   ac_status=$?
14733   grep -v '^ *+' conftest.er1 >conftest.err
14734   rm -f conftest.er1
14735   cat conftest.err >&5
14736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); } && {
14738          test -z "$ac_c_werror_flag" ||
14739          test ! -s conftest.err
14740        } && test -s conftest.$ac_objext; then
14741   # It does; now see whether it defined to _BIG_ENDIAN or not.
14742          cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h.  */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h.  */
14748 #include <limits.h>
14749
14750 int
14751 main ()
14752 {
14753 #ifndef _BIG_ENDIAN
14754                  not big endian
14755                 #endif
14756
14757   ;
14758   return 0;
14759 }
14760 _ACEOF
14761 rm -f conftest.$ac_objext
14762 if { (ac_try="$ac_compile"
14763 case "(($ac_try" in
14764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765   *) ac_try_echo=$ac_try;;
14766 esac
14767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14768 $as_echo "$ac_try_echo") >&5
14769   (eval "$ac_compile") 2>conftest.er1
14770   ac_status=$?
14771   grep -v '^ *+' conftest.er1 >conftest.err
14772   rm -f conftest.er1
14773   cat conftest.err >&5
14774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); } && {
14776          test -z "$ac_c_werror_flag" ||
14777          test ! -s conftest.err
14778        } && test -s conftest.$ac_objext; then
14779   ac_cv_c_bigendian=yes
14780 else
14781   $as_echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14783
14784         ac_cv_c_bigendian=no
14785 fi
14786
14787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788 else
14789   $as_echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14791
14792
14793 fi
14794
14795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14796     fi
14797     if test $ac_cv_c_bigendian = unknown; then
14798       # Compile a test program.
14799       if test "$cross_compiling" = yes; then
14800   # Try to guess by grepping values from an object file.
14801          cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h.  */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h.  */
14807 short int ascii_mm[] =
14808                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14809                 short int ascii_ii[] =
14810                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14811                 int use_ascii (int i) {
14812                   return ascii_mm[i] + ascii_ii[i];
14813                 }
14814                 short int ebcdic_ii[] =
14815                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14816                 short int ebcdic_mm[] =
14817                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14818                 int use_ebcdic (int i) {
14819                   return ebcdic_mm[i] + ebcdic_ii[i];
14820                 }
14821                 extern int foo;
14822
14823 int
14824 main ()
14825 {
14826 return use_ascii (foo) == use_ebcdic (foo);
14827   ;
14828   return 0;
14829 }
14830 _ACEOF
14831 rm -f conftest.$ac_objext
14832 if { (ac_try="$ac_compile"
14833 case "(($ac_try" in
14834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835   *) ac_try_echo=$ac_try;;
14836 esac
14837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14838 $as_echo "$ac_try_echo") >&5
14839   (eval "$ac_compile") 2>conftest.er1
14840   ac_status=$?
14841   grep -v '^ *+' conftest.er1 >conftest.err
14842   rm -f conftest.er1
14843   cat conftest.err >&5
14844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); } && {
14846          test -z "$ac_c_werror_flag" ||
14847          test ! -s conftest.err
14848        } && test -s conftest.$ac_objext; then
14849   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14850               ac_cv_c_bigendian=yes
14851             fi
14852             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14853               if test "$ac_cv_c_bigendian" = unknown; then
14854                 ac_cv_c_bigendian=no
14855               else
14856                 # finding both strings is unlikely to happen, but who knows?
14857                 ac_cv_c_bigendian=unknown
14858               fi
14859             fi
14860 else
14861   $as_echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14863
14864
14865 fi
14866
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 else
14869   cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h.  */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h.  */
14875 $ac_includes_default
14876 int
14877 main ()
14878 {
14879
14880              /* Are we little or big endian?  From Harbison&Steele.  */
14881              union
14882              {
14883                long int l;
14884                char c[sizeof (long int)];
14885              } u;
14886              u.l = 1;
14887              return u.c[sizeof (long int) - 1] == 1;
14888
14889   ;
14890   return 0;
14891 }
14892 _ACEOF
14893 rm -f conftest$ac_exeext
14894 if { (ac_try="$ac_link"
14895 case "(($ac_try" in
14896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897   *) ac_try_echo=$ac_try;;
14898 esac
14899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14900 $as_echo "$ac_try_echo") >&5
14901   (eval "$ac_link") 2>&5
14902   ac_status=$?
14903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905   { (case "(($ac_try" in
14906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907   *) ac_try_echo=$ac_try;;
14908 esac
14909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14910 $as_echo "$ac_try_echo") >&5
14911   (eval "$ac_try") 2>&5
14912   ac_status=$?
14913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); }; }; then
14915   ac_cv_c_bigendian=no
14916 else
14917   $as_echo "$as_me: program exited with status $ac_status" >&5
14918 $as_echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 ( exit $ac_status )
14922 ac_cv_c_bigendian=yes
14923 fi
14924 rm -rf conftest.dSYM
14925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14926 fi
14927
14928
14929     fi
14930 fi
14931 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14932 $as_echo "$ac_cv_c_bigendian" >&6; }
14933  case $ac_cv_c_bigendian in #(
14934    yes)
14935      cat >>confdefs.h <<\_ACEOF
14936 #define WORDS_BIGENDIAN 1
14937 _ACEOF
14938 ;; #(
14939    no)
14940       ;; #(
14941    universal)
14942
14943 cat >>confdefs.h <<\_ACEOF
14944 #define AC_APPLE_UNIVERSAL_BUILD 1
14945 _ACEOF
14946
14947      ;; #(
14948    *)
14949      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14950  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14951 $as_echo "$as_me: error: unknown endianness
14952  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14953    { (exit 1); exit 1; }; } ;;
14954  esac
14955
14956 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14957 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14958 if test "${ac_cv_c_const+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 /* FIXME: Include the comments suggested by Paul. */
14972 #ifndef __cplusplus
14973   /* Ultrix mips cc rejects this.  */
14974   typedef int charset[2];
14975   const charset cs;
14976   /* SunOS 4.1.1 cc rejects this.  */
14977   char const *const *pcpcc;
14978   char **ppc;
14979   /* NEC SVR4.0.2 mips cc rejects this.  */
14980   struct point {int x, y;};
14981   static struct point const zero = {0,0};
14982   /* AIX XL C 1.02.0.0 rejects this.
14983      It does not let you subtract one const X* pointer from another in
14984      an arm of an if-expression whose if-part is not a constant
14985      expression */
14986   const char *g = "string";
14987   pcpcc = &g + (g ? g-g : 0);
14988   /* HPUX 7.0 cc rejects these. */
14989   ++pcpcc;
14990   ppc = (char**) pcpcc;
14991   pcpcc = (char const *const *) ppc;
14992   { /* SCO 3.2v4 cc rejects this.  */
14993     char *t;
14994     char const *s = 0 ? (char *) 0 : (char const *) 0;
14995
14996     *t++ = 0;
14997     if (s) return 0;
14998   }
14999   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15000     int x[] = {25, 17};
15001     const int *foo = &x[0];
15002     ++foo;
15003   }
15004   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15005     typedef const int *iptr;
15006     iptr p = 0;
15007     ++p;
15008   }
15009   { /* AIX XL C 1.02.0.0 rejects this saying
15010        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15011     struct s { int j; const int *ap[3]; };
15012     struct s *b; b->j = 5;
15013   }
15014   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15015     const int foo = 10;
15016     if (!foo) return 0;
15017   }
15018   return !cs[0] && !zero.x;
15019 #endif
15020
15021   ;
15022   return 0;
15023 }
15024 _ACEOF
15025 rm -f conftest.$ac_objext
15026 if { (ac_try="$ac_compile"
15027 case "(($ac_try" in
15028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029   *) ac_try_echo=$ac_try;;
15030 esac
15031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15032 $as_echo "$ac_try_echo") >&5
15033   (eval "$ac_compile") 2>conftest.er1
15034   ac_status=$?
15035   grep -v '^ *+' conftest.er1 >conftest.err
15036   rm -f conftest.er1
15037   cat conftest.err >&5
15038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } && {
15040          test -z "$ac_c_werror_flag" ||
15041          test ! -s conftest.err
15042        } && test -s conftest.$ac_objext; then
15043   ac_cv_c_const=yes
15044 else
15045   $as_echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048         ac_cv_c_const=no
15049 fi
15050
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 fi
15053 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15054 $as_echo "$ac_cv_c_const" >&6; }
15055 if test $ac_cv_c_const = no; then
15056
15057 cat >>confdefs.h <<\_ACEOF
15058 #define const /**/
15059 _ACEOF
15060
15061 fi
15062
15063 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15064 $as_echo_n "checking for inline... " >&6; }
15065 if test "${ac_cv_c_inline+set}" = set; then
15066   $as_echo_n "(cached) " >&6
15067 else
15068   ac_cv_c_inline=no
15069 for ac_kw in inline __inline__ __inline; do
15070   cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h.  */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h.  */
15076 #ifndef __cplusplus
15077 typedef int foo_t;
15078 static $ac_kw foo_t static_foo () {return 0; }
15079 $ac_kw foo_t foo () {return 0; }
15080 #endif
15081
15082 _ACEOF
15083 rm -f conftest.$ac_objext
15084 if { (ac_try="$ac_compile"
15085 case "(($ac_try" in
15086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087   *) ac_try_echo=$ac_try;;
15088 esac
15089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15090 $as_echo "$ac_try_echo") >&5
15091   (eval "$ac_compile") 2>conftest.er1
15092   ac_status=$?
15093   grep -v '^ *+' conftest.er1 >conftest.err
15094   rm -f conftest.er1
15095   cat conftest.err >&5
15096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); } && {
15098          test -z "$ac_c_werror_flag" ||
15099          test ! -s conftest.err
15100        } && test -s conftest.$ac_objext; then
15101   ac_cv_c_inline=$ac_kw
15102 else
15103   $as_echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15105
15106
15107 fi
15108
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110   test "$ac_cv_c_inline" != no && break
15111 done
15112
15113 fi
15114 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15115 $as_echo "$ac_cv_c_inline" >&6; }
15116
15117
15118 case $ac_cv_c_inline in
15119   inline | yes) ;;
15120   *)
15121     case $ac_cv_c_inline in
15122       no) ac_val=;;
15123       *) ac_val=$ac_cv_c_inline;;
15124     esac
15125     cat >>confdefs.h <<_ACEOF
15126 #ifndef __cplusplus
15127 #define inline $ac_val
15128 #endif
15129 _ACEOF
15130     ;;
15131 esac
15132
15133 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15134 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15135 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15136   $as_echo_n "(cached) " >&6
15137 else
15138   pgac_cv_c_inline_quietly=no
15139   if test "$ac_cv_c_inline" != no; then
15140     pgac_c_inline_save_werror=$ac_c_werror_flag
15141     ac_c_werror_flag=yes
15142     cat >conftest.$ac_ext <<_ACEOF
15143 /* confdefs.h.  */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h.  */
15148 static inline int fun () {return 0;}
15149 int
15150 main ()
15151 {
15152
15153   ;
15154   return 0;
15155 }
15156 _ACEOF
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (ac_try="$ac_link"
15159 case "(($ac_try" in
15160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161   *) ac_try_echo=$ac_try;;
15162 esac
15163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15164 $as_echo "$ac_try_echo") >&5
15165   (eval "$ac_link") 2>conftest.er1
15166   ac_status=$?
15167   grep -v '^ *+' conftest.er1 >conftest.err
15168   rm -f conftest.er1
15169   cat conftest.err >&5
15170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); } && {
15172          test -z "$ac_c_werror_flag" ||
15173          test ! -s conftest.err
15174        } && test -s conftest$ac_exeext && {
15175          test "$cross_compiling" = yes ||
15176          $as_test_x conftest$ac_exeext
15177        }; then
15178   pgac_cv_c_inline_quietly=yes
15179 else
15180   $as_echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15182
15183
15184 fi
15185
15186 rm -rf conftest.dSYM
15187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15188       conftest$ac_exeext conftest.$ac_ext
15189     ac_c_werror_flag=$pgac_c_inline_save_werror
15190   fi
15191 fi
15192 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15193 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15194 if test "$pgac_cv_c_inline_quietly" != no; then
15195
15196 cat >>confdefs.h <<_ACEOF
15197 #define USE_INLINE 1
15198 _ACEOF
15199
15200 fi
15201
15202 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15203 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15204 if test "${ac_cv_c_stringize+set}" = set; then
15205   $as_echo_n "(cached) " >&6
15206 else
15207   cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h.  */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h.  */
15213 #define x(y) #y
15214
15215 char *s = x(teststring);
15216 _ACEOF
15217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15218   $EGREP "#teststring" >/dev/null 2>&1; then
15219   ac_cv_c_stringize=no
15220 else
15221   ac_cv_c_stringize=yes
15222 fi
15223 rm -f conftest*
15224
15225 fi
15226 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15227 $as_echo "$ac_cv_c_stringize" >&6; }
15228 if test $ac_cv_c_stringize = yes; then
15229
15230 cat >>confdefs.h <<\_ACEOF
15231 #define HAVE_STRINGIZE 1
15232 _ACEOF
15233
15234 fi
15235
15236
15237   { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15238 $as_echo_n "checking for flexible array members... " >&6; }
15239 if test "${ac_cv_c_flexmember+set}" = set; then
15240   $as_echo_n "(cached) " >&6
15241 else
15242   cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 #include <stdlib.h>
15249             #include <stdio.h>
15250             #include <stddef.h>
15251             struct s { int n; double d[]; };
15252 int
15253 main ()
15254 {
15255 int m = getchar ();
15256             struct s *p = malloc (offsetof (struct s, d)
15257                                   + m * sizeof (double));
15258             p->d[0] = 0.0;
15259             return p->d != (double *) NULL;
15260   ;
15261   return 0;
15262 }
15263 _ACEOF
15264 rm -f conftest.$ac_objext
15265 if { (ac_try="$ac_compile"
15266 case "(($ac_try" in
15267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268   *) ac_try_echo=$ac_try;;
15269 esac
15270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15271 $as_echo "$ac_try_echo") >&5
15272   (eval "$ac_compile") 2>conftest.er1
15273   ac_status=$?
15274   grep -v '^ *+' conftest.er1 >conftest.err
15275   rm -f conftest.er1
15276   cat conftest.err >&5
15277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); } && {
15279          test -z "$ac_c_werror_flag" ||
15280          test ! -s conftest.err
15281        } && test -s conftest.$ac_objext; then
15282   ac_cv_c_flexmember=yes
15283 else
15284   $as_echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15286
15287         ac_cv_c_flexmember=no
15288 fi
15289
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291 fi
15292 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15293 $as_echo "$ac_cv_c_flexmember" >&6; }
15294   if test $ac_cv_c_flexmember = yes; then
15295
15296 cat >>confdefs.h <<\_ACEOF
15297 #define FLEXIBLE_ARRAY_MEMBER /**/
15298 _ACEOF
15299
15300   else
15301     cat >>confdefs.h <<\_ACEOF
15302 #define FLEXIBLE_ARRAY_MEMBER 1
15303 _ACEOF
15304
15305   fi
15306
15307 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15308 $as_echo_n "checking for signed types... " >&6; }
15309 if test "${pgac_cv_c_signed+set}" = set; then
15310   $as_echo_n "(cached) " >&6
15311 else
15312   cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h.  */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h.  */
15318
15319 int
15320 main ()
15321 {
15322 signed char c; signed short s; signed int i;
15323   ;
15324   return 0;
15325 }
15326 _ACEOF
15327 rm -f conftest.$ac_objext
15328 if { (ac_try="$ac_compile"
15329 case "(($ac_try" in
15330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331   *) ac_try_echo=$ac_try;;
15332 esac
15333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15334 $as_echo "$ac_try_echo") >&5
15335   (eval "$ac_compile") 2>conftest.er1
15336   ac_status=$?
15337   grep -v '^ *+' conftest.er1 >conftest.err
15338   rm -f conftest.er1
15339   cat conftest.err >&5
15340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); } && {
15342          test -z "$ac_c_werror_flag" ||
15343          test ! -s conftest.err
15344        } && test -s conftest.$ac_objext; then
15345   pgac_cv_c_signed=yes
15346 else
15347   $as_echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15349
15350         pgac_cv_c_signed=no
15351 fi
15352
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354 fi
15355 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15356 $as_echo "$pgac_cv_c_signed" >&6; }
15357 if test x"$pgac_cv_c_signed" = xno ; then
15358
15359 cat >>confdefs.h <<\_ACEOF
15360 #define signed /**/
15361 _ACEOF
15362
15363 fi
15364 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15365 $as_echo_n "checking for working volatile... " >&6; }
15366 if test "${ac_cv_c_volatile+set}" = set; then
15367   $as_echo_n "(cached) " >&6
15368 else
15369   cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h.  */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h.  */
15375
15376 int
15377 main ()
15378 {
15379
15380 volatile int x;
15381 int * volatile y = (int *) 0;
15382 return !x && !y;
15383   ;
15384   return 0;
15385 }
15386 _ACEOF
15387 rm -f conftest.$ac_objext
15388 if { (ac_try="$ac_compile"
15389 case "(($ac_try" in
15390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391   *) ac_try_echo=$ac_try;;
15392 esac
15393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15394 $as_echo "$ac_try_echo") >&5
15395   (eval "$ac_compile") 2>conftest.er1
15396   ac_status=$?
15397   grep -v '^ *+' conftest.er1 >conftest.err
15398   rm -f conftest.er1
15399   cat conftest.err >&5
15400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); } && {
15402          test -z "$ac_c_werror_flag" ||
15403          test ! -s conftest.err
15404        } && test -s conftest.$ac_objext; then
15405   ac_cv_c_volatile=yes
15406 else
15407   $as_echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15409
15410         ac_cv_c_volatile=no
15411 fi
15412
15413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15414 fi
15415 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15416 $as_echo "$ac_cv_c_volatile" >&6; }
15417 if test $ac_cv_c_volatile = no; then
15418
15419 cat >>confdefs.h <<\_ACEOF
15420 #define volatile /**/
15421 _ACEOF
15422
15423 fi
15424
15425 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15426 $as_echo_n "checking for __func__... " >&6; }
15427 if test "${pgac_cv_funcname_func_support+set}" = set; then
15428   $as_echo_n "(cached) " >&6
15429 else
15430   cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h.  */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h.  */
15436 #include <stdio.h>
15437 int
15438 main ()
15439 {
15440 printf("%s\n", __func__);
15441   ;
15442   return 0;
15443 }
15444 _ACEOF
15445 rm -f conftest.$ac_objext
15446 if { (ac_try="$ac_compile"
15447 case "(($ac_try" in
15448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449   *) ac_try_echo=$ac_try;;
15450 esac
15451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15452 $as_echo "$ac_try_echo") >&5
15453   (eval "$ac_compile") 2>conftest.er1
15454   ac_status=$?
15455   grep -v '^ *+' conftest.er1 >conftest.err
15456   rm -f conftest.er1
15457   cat conftest.err >&5
15458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); } && {
15460          test -z "$ac_c_werror_flag" ||
15461          test ! -s conftest.err
15462        } && test -s conftest.$ac_objext; then
15463   pgac_cv_funcname_func_support=yes
15464 else
15465   $as_echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468         pgac_cv_funcname_func_support=no
15469 fi
15470
15471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15472 fi
15473 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15474 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15475 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15476
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_FUNCNAME__FUNC 1
15479 _ACEOF
15480
15481 else
15482 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15483 $as_echo_n "checking for __FUNCTION__... " >&6; }
15484 if test "${pgac_cv_funcname_function_support+set}" = set; then
15485   $as_echo_n "(cached) " >&6
15486 else
15487   cat >conftest.$ac_ext <<_ACEOF
15488 /* confdefs.h.  */
15489 _ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h.  */
15493 #include <stdio.h>
15494 int
15495 main ()
15496 {
15497 printf("%s\n", __FUNCTION__);
15498   ;
15499   return 0;
15500 }
15501 _ACEOF
15502 rm -f conftest.$ac_objext
15503 if { (ac_try="$ac_compile"
15504 case "(($ac_try" in
15505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506   *) ac_try_echo=$ac_try;;
15507 esac
15508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15509 $as_echo "$ac_try_echo") >&5
15510   (eval "$ac_compile") 2>conftest.er1
15511   ac_status=$?
15512   grep -v '^ *+' conftest.er1 >conftest.err
15513   rm -f conftest.er1
15514   cat conftest.err >&5
15515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); } && {
15517          test -z "$ac_c_werror_flag" ||
15518          test ! -s conftest.err
15519        } && test -s conftest.$ac_objext; then
15520   pgac_cv_funcname_function_support=yes
15521 else
15522   $as_echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525         pgac_cv_funcname_function_support=no
15526 fi
15527
15528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15529 fi
15530 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15531 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15532 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15533
15534 cat >>confdefs.h <<\_ACEOF
15535 #define HAVE_FUNCNAME__FUNCTION 1
15536 _ACEOF
15537
15538 fi
15539 fi
15540 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15541 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15542 if test "${ac_cv_struct_tm+set}" = set; then
15543   $as_echo_n "(cached) " >&6
15544 else
15545   cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h.  */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h.  */
15551 #include <sys/types.h>
15552 #include <time.h>
15553
15554 int
15555 main ()
15556 {
15557 struct tm tm;
15558                                      int *p = &tm.tm_sec;
15559                                      return !p;
15560   ;
15561   return 0;
15562 }
15563 _ACEOF
15564 rm -f conftest.$ac_objext
15565 if { (ac_try="$ac_compile"
15566 case "(($ac_try" in
15567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568   *) ac_try_echo=$ac_try;;
15569 esac
15570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15571 $as_echo "$ac_try_echo") >&5
15572   (eval "$ac_compile") 2>conftest.er1
15573   ac_status=$?
15574   grep -v '^ *+' conftest.er1 >conftest.err
15575   rm -f conftest.er1
15576   cat conftest.err >&5
15577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); } && {
15579          test -z "$ac_c_werror_flag" ||
15580          test ! -s conftest.err
15581        } && test -s conftest.$ac_objext; then
15582   ac_cv_struct_tm=time.h
15583 else
15584   $as_echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15586
15587         ac_cv_struct_tm=sys/time.h
15588 fi
15589
15590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591 fi
15592 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15593 $as_echo "$ac_cv_struct_tm" >&6; }
15594 if test $ac_cv_struct_tm = sys/time.h; then
15595
15596 cat >>confdefs.h <<\_ACEOF
15597 #define TM_IN_SYS_TIME 1
15598 _ACEOF
15599
15600 fi
15601
15602 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15603 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15604 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15605   $as_echo_n "(cached) " >&6
15606 else
15607   cat >conftest.$ac_ext <<_ACEOF
15608 /* confdefs.h.  */
15609 _ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h.  */
15613 #include <sys/types.h>
15614 #include <$ac_cv_struct_tm>
15615
15616
15617 int
15618 main ()
15619 {
15620 static struct tm ac_aggr;
15621 if (ac_aggr.tm_zone)
15622 return 0;
15623   ;
15624   return 0;
15625 }
15626 _ACEOF
15627 rm -f conftest.$ac_objext
15628 if { (ac_try="$ac_compile"
15629 case "(($ac_try" in
15630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631   *) ac_try_echo=$ac_try;;
15632 esac
15633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15634 $as_echo "$ac_try_echo") >&5
15635   (eval "$ac_compile") 2>conftest.er1
15636   ac_status=$?
15637   grep -v '^ *+' conftest.er1 >conftest.err
15638   rm -f conftest.er1
15639   cat conftest.err >&5
15640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); } && {
15642          test -z "$ac_c_werror_flag" ||
15643          test ! -s conftest.err
15644        } && test -s conftest.$ac_objext; then
15645   ac_cv_member_struct_tm_tm_zone=yes
15646 else
15647   $as_echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15649
15650         cat >conftest.$ac_ext <<_ACEOF
15651 /* confdefs.h.  */
15652 _ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h.  */
15656 #include <sys/types.h>
15657 #include <$ac_cv_struct_tm>
15658
15659
15660 int
15661 main ()
15662 {
15663 static struct tm ac_aggr;
15664 if (sizeof ac_aggr.tm_zone)
15665 return 0;
15666   ;
15667   return 0;
15668 }
15669 _ACEOF
15670 rm -f conftest.$ac_objext
15671 if { (ac_try="$ac_compile"
15672 case "(($ac_try" in
15673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674   *) ac_try_echo=$ac_try;;
15675 esac
15676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15677 $as_echo "$ac_try_echo") >&5
15678   (eval "$ac_compile") 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } && {
15685          test -z "$ac_c_werror_flag" ||
15686          test ! -s conftest.err
15687        } && test -s conftest.$ac_objext; then
15688   ac_cv_member_struct_tm_tm_zone=yes
15689 else
15690   $as_echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693         ac_cv_member_struct_tm_tm_zone=no
15694 fi
15695
15696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15697 fi
15698
15699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15700 fi
15701 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15702 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15703 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15704
15705 cat >>confdefs.h <<_ACEOF
15706 #define HAVE_STRUCT_TM_TM_ZONE 1
15707 _ACEOF
15708
15709
15710 fi
15711
15712 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15713
15714 cat >>confdefs.h <<\_ACEOF
15715 #define HAVE_TM_ZONE 1
15716 _ACEOF
15717
15718 fi
15719 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15720 $as_echo_n "checking for tzname... " >&6; }
15721 if test "${ac_cv_var_tzname+set}" = set; then
15722   $as_echo_n "(cached) " >&6
15723 else
15724   cat >conftest.$ac_ext <<_ACEOF
15725 /* confdefs.h.  */
15726 _ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h.  */
15730 #include <time.h>
15731 #ifndef tzname /* For SGI.  */
15732 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15733 #endif
15734
15735 int
15736 main ()
15737 {
15738 atoi(*tzname);
15739   ;
15740   return 0;
15741 }
15742 _ACEOF
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747   *) ac_try_echo=$ac_try;;
15748 esac
15749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15750 $as_echo "$ac_try_echo") >&5
15751   (eval "$ac_link") 2>conftest.er1
15752   ac_status=$?
15753   grep -v '^ *+' conftest.er1 >conftest.err
15754   rm -f conftest.er1
15755   cat conftest.err >&5
15756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } && {
15758          test -z "$ac_c_werror_flag" ||
15759          test ! -s conftest.err
15760        } && test -s conftest$ac_exeext && {
15761          test "$cross_compiling" = yes ||
15762          $as_test_x conftest$ac_exeext
15763        }; then
15764   ac_cv_var_tzname=yes
15765 else
15766   $as_echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769         ac_cv_var_tzname=no
15770 fi
15771
15772 rm -rf conftest.dSYM
15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15774       conftest$ac_exeext conftest.$ac_ext
15775 fi
15776 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15777 $as_echo "$ac_cv_var_tzname" >&6; }
15778 if test $ac_cv_var_tzname = yes; then
15779
15780 cat >>confdefs.h <<\_ACEOF
15781 #define HAVE_TZNAME 1
15782 _ACEOF
15783
15784 fi
15785
15786 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15787 $as_echo_n "checking for union semun... " >&6; }
15788 if test "${ac_cv_type_union_semun+set}" = set; then
15789   $as_echo_n "(cached) " >&6
15790 else
15791   ac_cv_type_union_semun=no
15792 cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h.  */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h.  */
15798 #include <sys/types.h>
15799 #include <sys/ipc.h>
15800 #include <sys/sem.h>
15801
15802 int
15803 main ()
15804 {
15805 if (sizeof (union semun))
15806        return 0;
15807   ;
15808   return 0;
15809 }
15810 _ACEOF
15811 rm -f conftest.$ac_objext
15812 if { (ac_try="$ac_compile"
15813 case "(($ac_try" in
15814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815   *) ac_try_echo=$ac_try;;
15816 esac
15817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15818 $as_echo "$ac_try_echo") >&5
15819   (eval "$ac_compile") 2>conftest.er1
15820   ac_status=$?
15821   grep -v '^ *+' conftest.er1 >conftest.err
15822   rm -f conftest.er1
15823   cat conftest.err >&5
15824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); } && {
15826          test -z "$ac_c_werror_flag" ||
15827          test ! -s conftest.err
15828        } && test -s conftest.$ac_objext; then
15829   cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h.  */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h.  */
15835 #include <sys/types.h>
15836 #include <sys/ipc.h>
15837 #include <sys/sem.h>
15838
15839 int
15840 main ()
15841 {
15842 if (sizeof ((union semun)))
15843           return 0;
15844   ;
15845   return 0;
15846 }
15847 _ACEOF
15848 rm -f conftest.$ac_objext
15849 if { (ac_try="$ac_compile"
15850 case "(($ac_try" in
15851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852   *) ac_try_echo=$ac_try;;
15853 esac
15854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15855 $as_echo "$ac_try_echo") >&5
15856   (eval "$ac_compile") 2>conftest.er1
15857   ac_status=$?
15858   grep -v '^ *+' conftest.er1 >conftest.err
15859   rm -f conftest.er1
15860   cat conftest.err >&5
15861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); } && {
15863          test -z "$ac_c_werror_flag" ||
15864          test ! -s conftest.err
15865        } && test -s conftest.$ac_objext; then
15866   :
15867 else
15868   $as_echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15870
15871         ac_cv_type_union_semun=yes
15872 fi
15873
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15875 else
15876   $as_echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879
15880 fi
15881
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 fi
15884 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15885 $as_echo "$ac_cv_type_union_semun" >&6; }
15886 if test "x$ac_cv_type_union_semun" = x""yes; then
15887
15888 cat >>confdefs.h <<_ACEOF
15889 #define HAVE_UNION_SEMUN 1
15890 _ACEOF
15891
15892
15893 fi
15894
15895 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15896 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15897 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15898   $as_echo_n "(cached) " >&6
15899 else
15900   ac_cv_type_struct_sockaddr_un=no
15901 cat >conftest.$ac_ext <<_ACEOF
15902 /* confdefs.h.  */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h.  */
15907 #include <sys/types.h>
15908 #ifdef HAVE_SYS_UN_H
15909 #include <sys/un.h>
15910 #endif
15911
15912
15913 int
15914 main ()
15915 {
15916 if (sizeof (struct sockaddr_un))
15917        return 0;
15918   ;
15919   return 0;
15920 }
15921 _ACEOF
15922 rm -f conftest.$ac_objext
15923 if { (ac_try="$ac_compile"
15924 case "(($ac_try" in
15925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926   *) ac_try_echo=$ac_try;;
15927 esac
15928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15929 $as_echo "$ac_try_echo") >&5
15930   (eval "$ac_compile") 2>conftest.er1
15931   ac_status=$?
15932   grep -v '^ *+' conftest.er1 >conftest.err
15933   rm -f conftest.er1
15934   cat conftest.err >&5
15935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); } && {
15937          test -z "$ac_c_werror_flag" ||
15938          test ! -s conftest.err
15939        } && test -s conftest.$ac_objext; then
15940   cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946 #include <sys/types.h>
15947 #ifdef HAVE_SYS_UN_H
15948 #include <sys/un.h>
15949 #endif
15950
15951
15952 int
15953 main ()
15954 {
15955 if (sizeof ((struct sockaddr_un)))
15956           return 0;
15957   ;
15958   return 0;
15959 }
15960 _ACEOF
15961 rm -f conftest.$ac_objext
15962 if { (ac_try="$ac_compile"
15963 case "(($ac_try" in
15964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965   *) ac_try_echo=$ac_try;;
15966 esac
15967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15968 $as_echo "$ac_try_echo") >&5
15969   (eval "$ac_compile") 2>conftest.er1
15970   ac_status=$?
15971   grep -v '^ *+' conftest.er1 >conftest.err
15972   rm -f conftest.er1
15973   cat conftest.err >&5
15974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975   (exit $ac_status); } && {
15976          test -z "$ac_c_werror_flag" ||
15977          test ! -s conftest.err
15978        } && test -s conftest.$ac_objext; then
15979   :
15980 else
15981   $as_echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15983
15984         ac_cv_type_struct_sockaddr_un=yes
15985 fi
15986
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988 else
15989   $as_echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15991
15992
15993 fi
15994
15995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15996 fi
15997 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15998 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15999 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16000
16001 cat >>confdefs.h <<_ACEOF
16002 #define HAVE_STRUCT_SOCKADDR_UN 1
16003 _ACEOF
16004
16005
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_UNIX_SOCKETS 1
16008 _ACEOF
16009
16010 fi
16011
16012 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16013 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16014 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16015   $as_echo_n "(cached) " >&6
16016 else
16017   ac_cv_type_struct_sockaddr_storage=no
16018 cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h.  */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h.  */
16024 #include <sys/types.h>
16025 #ifdef HAVE_SYS_SOCKET_H
16026 #include <sys/socket.h>
16027 #endif
16028
16029
16030 int
16031 main ()
16032 {
16033 if (sizeof (struct sockaddr_storage))
16034        return 0;
16035   ;
16036   return 0;
16037 }
16038 _ACEOF
16039 rm -f conftest.$ac_objext
16040 if { (ac_try="$ac_compile"
16041 case "(($ac_try" in
16042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043   *) ac_try_echo=$ac_try;;
16044 esac
16045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16046 $as_echo "$ac_try_echo") >&5
16047   (eval "$ac_compile") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } && {
16054          test -z "$ac_c_werror_flag" ||
16055          test ! -s conftest.err
16056        } && test -s conftest.$ac_objext; then
16057   cat >conftest.$ac_ext <<_ACEOF
16058 /* confdefs.h.  */
16059 _ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h.  */
16063 #include <sys/types.h>
16064 #ifdef HAVE_SYS_SOCKET_H
16065 #include <sys/socket.h>
16066 #endif
16067
16068
16069 int
16070 main ()
16071 {
16072 if (sizeof ((struct sockaddr_storage)))
16073           return 0;
16074   ;
16075   return 0;
16076 }
16077 _ACEOF
16078 rm -f conftest.$ac_objext
16079 if { (ac_try="$ac_compile"
16080 case "(($ac_try" in
16081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082   *) ac_try_echo=$ac_try;;
16083 esac
16084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16085 $as_echo "$ac_try_echo") >&5
16086   (eval "$ac_compile") 2>conftest.er1
16087   ac_status=$?
16088   grep -v '^ *+' conftest.er1 >conftest.err
16089   rm -f conftest.er1
16090   cat conftest.err >&5
16091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } && {
16093          test -z "$ac_c_werror_flag" ||
16094          test ! -s conftest.err
16095        } && test -s conftest.$ac_objext; then
16096   :
16097 else
16098   $as_echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16100
16101         ac_cv_type_struct_sockaddr_storage=yes
16102 fi
16103
16104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105 else
16106   $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109
16110 fi
16111
16112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16113 fi
16114 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16115 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16116 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16117
16118 cat >>confdefs.h <<_ACEOF
16119 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16120 _ACEOF
16121
16122
16123 fi
16124
16125 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16126 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16127 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16128   $as_echo_n "(cached) " >&6
16129 else
16130   cat >conftest.$ac_ext <<_ACEOF
16131 /* confdefs.h.  */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h.  */
16136 #include <sys/types.h>
16137 #ifdef HAVE_SYS_SOCKET_H
16138 #include <sys/socket.h>
16139 #endif
16140
16141
16142 int
16143 main ()
16144 {
16145 static struct sockaddr_storage ac_aggr;
16146 if (ac_aggr.ss_family)
16147 return 0;
16148   ;
16149   return 0;
16150 }
16151 _ACEOF
16152 rm -f conftest.$ac_objext
16153 if { (ac_try="$ac_compile"
16154 case "(($ac_try" in
16155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156   *) ac_try_echo=$ac_try;;
16157 esac
16158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16159 $as_echo "$ac_try_echo") >&5
16160   (eval "$ac_compile") 2>conftest.er1
16161   ac_status=$?
16162   grep -v '^ *+' conftest.er1 >conftest.err
16163   rm -f conftest.er1
16164   cat conftest.err >&5
16165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); } && {
16167          test -z "$ac_c_werror_flag" ||
16168          test ! -s conftest.err
16169        } && test -s conftest.$ac_objext; then
16170   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16171 else
16172   $as_echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16174
16175         cat >conftest.$ac_ext <<_ACEOF
16176 /* confdefs.h.  */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h.  */
16181 #include <sys/types.h>
16182 #ifdef HAVE_SYS_SOCKET_H
16183 #include <sys/socket.h>
16184 #endif
16185
16186
16187 int
16188 main ()
16189 {
16190 static struct sockaddr_storage ac_aggr;
16191 if (sizeof ac_aggr.ss_family)
16192 return 0;
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201   *) ac_try_echo=$ac_try;;
16202 esac
16203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16204 $as_echo "$ac_try_echo") >&5
16205   (eval "$ac_compile") 2>conftest.er1
16206   ac_status=$?
16207   grep -v '^ *+' conftest.er1 >conftest.err
16208   rm -f conftest.er1
16209   cat conftest.err >&5
16210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); } && {
16212          test -z "$ac_c_werror_flag" ||
16213          test ! -s conftest.err
16214        } && test -s conftest.$ac_objext; then
16215   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16216 else
16217   $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220         ac_cv_member_struct_sockaddr_storage_ss_family=no
16221 fi
16222
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 fi
16225
16226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16227 fi
16228 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16229 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16230 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16231
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16234 _ACEOF
16235
16236
16237 fi
16238 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16239 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16240 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16241   $as_echo_n "(cached) " >&6
16242 else
16243   cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h.  */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h.  */
16249 #include <sys/types.h>
16250 #ifdef HAVE_SYS_SOCKET_H
16251 #include <sys/socket.h>
16252 #endif
16253
16254
16255 int
16256 main ()
16257 {
16258 static struct sockaddr_storage ac_aggr;
16259 if (ac_aggr.__ss_family)
16260 return 0;
16261   ;
16262   return 0;
16263 }
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (ac_try="$ac_compile"
16267 case "(($ac_try" in
16268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269   *) ac_try_echo=$ac_try;;
16270 esac
16271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16272 $as_echo "$ac_try_echo") >&5
16273   (eval "$ac_compile") 2>conftest.er1
16274   ac_status=$?
16275   grep -v '^ *+' conftest.er1 >conftest.err
16276   rm -f conftest.er1
16277   cat conftest.err >&5
16278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); } && {
16280          test -z "$ac_c_werror_flag" ||
16281          test ! -s conftest.err
16282        } && test -s conftest.$ac_objext; then
16283   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16284 else
16285   $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288         cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h.  */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h.  */
16294 #include <sys/types.h>
16295 #ifdef HAVE_SYS_SOCKET_H
16296 #include <sys/socket.h>
16297 #endif
16298
16299
16300 int
16301 main ()
16302 {
16303 static struct sockaddr_storage ac_aggr;
16304 if (sizeof ac_aggr.__ss_family)
16305 return 0;
16306   ;
16307   return 0;
16308 }
16309 _ACEOF
16310 rm -f conftest.$ac_objext
16311 if { (ac_try="$ac_compile"
16312 case "(($ac_try" in
16313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314   *) ac_try_echo=$ac_try;;
16315 esac
16316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16317 $as_echo "$ac_try_echo") >&5
16318   (eval "$ac_compile") 2>conftest.er1
16319   ac_status=$?
16320   grep -v '^ *+' conftest.er1 >conftest.err
16321   rm -f conftest.er1
16322   cat conftest.err >&5
16323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); } && {
16325          test -z "$ac_c_werror_flag" ||
16326          test ! -s conftest.err
16327        } && test -s conftest.$ac_objext; then
16328   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16329 else
16330   $as_echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333         ac_cv_member_struct_sockaddr_storage___ss_family=no
16334 fi
16335
16336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16337 fi
16338
16339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16340 fi
16341 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16342 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16343 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16344
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16347 _ACEOF
16348
16349
16350 fi
16351 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16352 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16353 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16354   $as_echo_n "(cached) " >&6
16355 else
16356   cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h.  */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h.  */
16362 #include <sys/types.h>
16363 #ifdef HAVE_SYS_SOCKET_H
16364 #include <sys/socket.h>
16365 #endif
16366
16367
16368 int
16369 main ()
16370 {
16371 static struct sockaddr_storage ac_aggr;
16372 if (ac_aggr.ss_len)
16373 return 0;
16374   ;
16375   return 0;
16376 }
16377 _ACEOF
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382   *) ac_try_echo=$ac_try;;
16383 esac
16384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16385 $as_echo "$ac_try_echo") >&5
16386   (eval "$ac_compile") 2>conftest.er1
16387   ac_status=$?
16388   grep -v '^ *+' conftest.er1 >conftest.err
16389   rm -f conftest.er1
16390   cat conftest.err >&5
16391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); } && {
16393          test -z "$ac_c_werror_flag" ||
16394          test ! -s conftest.err
16395        } && test -s conftest.$ac_objext; then
16396   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16397 else
16398   $as_echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16400
16401         cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h.  */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h.  */
16407 #include <sys/types.h>
16408 #ifdef HAVE_SYS_SOCKET_H
16409 #include <sys/socket.h>
16410 #endif
16411
16412
16413 int
16414 main ()
16415 {
16416 static struct sockaddr_storage ac_aggr;
16417 if (sizeof ac_aggr.ss_len)
16418 return 0;
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430 $as_echo "$ac_try_echo") >&5
16431   (eval "$ac_compile") 2>conftest.er1
16432   ac_status=$?
16433   grep -v '^ *+' conftest.er1 >conftest.err
16434   rm -f conftest.er1
16435   cat conftest.err >&5
16436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); } && {
16438          test -z "$ac_c_werror_flag" ||
16439          test ! -s conftest.err
16440        } && test -s conftest.$ac_objext; then
16441   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16442 else
16443   $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16445
16446         ac_cv_member_struct_sockaddr_storage_ss_len=no
16447 fi
16448
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450 fi
16451
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453 fi
16454 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16455 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16456 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16457
16458 cat >>confdefs.h <<_ACEOF
16459 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16460 _ACEOF
16461
16462
16463 fi
16464 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16465 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16466 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16467   $as_echo_n "(cached) " >&6
16468 else
16469   cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h.  */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h.  */
16475 #include <sys/types.h>
16476 #ifdef HAVE_SYS_SOCKET_H
16477 #include <sys/socket.h>
16478 #endif
16479
16480
16481 int
16482 main ()
16483 {
16484 static struct sockaddr_storage ac_aggr;
16485 if (ac_aggr.__ss_len)
16486 return 0;
16487   ;
16488   return 0;
16489 }
16490 _ACEOF
16491 rm -f conftest.$ac_objext
16492 if { (ac_try="$ac_compile"
16493 case "(($ac_try" in
16494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495   *) ac_try_echo=$ac_try;;
16496 esac
16497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16498 $as_echo "$ac_try_echo") >&5
16499   (eval "$ac_compile") 2>conftest.er1
16500   ac_status=$?
16501   grep -v '^ *+' conftest.er1 >conftest.err
16502   rm -f conftest.er1
16503   cat conftest.err >&5
16504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505   (exit $ac_status); } && {
16506          test -z "$ac_c_werror_flag" ||
16507          test ! -s conftest.err
16508        } && test -s conftest.$ac_objext; then
16509   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16510 else
16511   $as_echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16513
16514         cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h.  */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h.  */
16520 #include <sys/types.h>
16521 #ifdef HAVE_SYS_SOCKET_H
16522 #include <sys/socket.h>
16523 #endif
16524
16525
16526 int
16527 main ()
16528 {
16529 static struct sockaddr_storage ac_aggr;
16530 if (sizeof ac_aggr.__ss_len)
16531 return 0;
16532   ;
16533   return 0;
16534 }
16535 _ACEOF
16536 rm -f conftest.$ac_objext
16537 if { (ac_try="$ac_compile"
16538 case "(($ac_try" in
16539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540   *) ac_try_echo=$ac_try;;
16541 esac
16542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16543 $as_echo "$ac_try_echo") >&5
16544   (eval "$ac_compile") 2>conftest.er1
16545   ac_status=$?
16546   grep -v '^ *+' conftest.er1 >conftest.err
16547   rm -f conftest.er1
16548   cat conftest.err >&5
16549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } && {
16551          test -z "$ac_c_werror_flag" ||
16552          test ! -s conftest.err
16553        } && test -s conftest.$ac_objext; then
16554   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16555 else
16556   $as_echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559         ac_cv_member_struct_sockaddr_storage___ss_len=no
16560 fi
16561
16562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16563 fi
16564
16565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16566 fi
16567 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16568 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16569 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16570
16571 cat >>confdefs.h <<_ACEOF
16572 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16573 _ACEOF
16574
16575
16576 fi
16577 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16578 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16579 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16580   $as_echo_n "(cached) " >&6
16581 else
16582   cat >conftest.$ac_ext <<_ACEOF
16583 /* confdefs.h.  */
16584 _ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h.  */
16588 #include <sys/types.h>
16589 #ifdef HAVE_SYS_SOCKET_H
16590 #include <sys/socket.h>
16591 #endif
16592
16593
16594 int
16595 main ()
16596 {
16597 static struct sockaddr ac_aggr;
16598 if (ac_aggr.sa_len)
16599 return 0;
16600   ;
16601   return 0;
16602 }
16603 _ACEOF
16604 rm -f conftest.$ac_objext
16605 if { (ac_try="$ac_compile"
16606 case "(($ac_try" in
16607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608   *) ac_try_echo=$ac_try;;
16609 esac
16610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16611 $as_echo "$ac_try_echo") >&5
16612   (eval "$ac_compile") 2>conftest.er1
16613   ac_status=$?
16614   grep -v '^ *+' conftest.er1 >conftest.err
16615   rm -f conftest.er1
16616   cat conftest.err >&5
16617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } && {
16619          test -z "$ac_c_werror_flag" ||
16620          test ! -s conftest.err
16621        } && test -s conftest.$ac_objext; then
16622   ac_cv_member_struct_sockaddr_sa_len=yes
16623 else
16624   $as_echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16626
16627         cat >conftest.$ac_ext <<_ACEOF
16628 /* confdefs.h.  */
16629 _ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h.  */
16633 #include <sys/types.h>
16634 #ifdef HAVE_SYS_SOCKET_H
16635 #include <sys/socket.h>
16636 #endif
16637
16638
16639 int
16640 main ()
16641 {
16642 static struct sockaddr ac_aggr;
16643 if (sizeof ac_aggr.sa_len)
16644 return 0;
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657   (eval "$ac_compile") 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } && {
16664          test -z "$ac_c_werror_flag" ||
16665          test ! -s conftest.err
16666        } && test -s conftest.$ac_objext; then
16667   ac_cv_member_struct_sockaddr_sa_len=yes
16668 else
16669   $as_echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16671
16672         ac_cv_member_struct_sockaddr_sa_len=no
16673 fi
16674
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676 fi
16677
16678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16679 fi
16680 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16681 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16682 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16683
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16686 _ACEOF
16687
16688
16689 fi
16690
16691 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16692 $as_echo_n "checking for struct addrinfo... " >&6; }
16693 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16694   $as_echo_n "(cached) " >&6
16695 else
16696   ac_cv_type_struct_addrinfo=no
16697 cat >conftest.$ac_ext <<_ACEOF
16698 /* confdefs.h.  */
16699 _ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h.  */
16703 #include <sys/types.h>
16704 #include <sys/socket.h>
16705 #include <netdb.h>
16706
16707
16708 int
16709 main ()
16710 {
16711 if (sizeof (struct addrinfo))
16712        return 0;
16713   ;
16714   return 0;
16715 }
16716 _ACEOF
16717 rm -f conftest.$ac_objext
16718 if { (ac_try="$ac_compile"
16719 case "(($ac_try" in
16720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721   *) ac_try_echo=$ac_try;;
16722 esac
16723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16724 $as_echo "$ac_try_echo") >&5
16725   (eval "$ac_compile") 2>conftest.er1
16726   ac_status=$?
16727   grep -v '^ *+' conftest.er1 >conftest.err
16728   rm -f conftest.er1
16729   cat conftest.err >&5
16730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); } && {
16732          test -z "$ac_c_werror_flag" ||
16733          test ! -s conftest.err
16734        } && test -s conftest.$ac_objext; then
16735   cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741 #include <sys/types.h>
16742 #include <sys/socket.h>
16743 #include <netdb.h>
16744
16745
16746 int
16747 main ()
16748 {
16749 if (sizeof ((struct addrinfo)))
16750           return 0;
16751   ;
16752   return 0;
16753 }
16754 _ACEOF
16755 rm -f conftest.$ac_objext
16756 if { (ac_try="$ac_compile"
16757 case "(($ac_try" in
16758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759   *) ac_try_echo=$ac_try;;
16760 esac
16761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16762 $as_echo "$ac_try_echo") >&5
16763   (eval "$ac_compile") 2>conftest.er1
16764   ac_status=$?
16765   grep -v '^ *+' conftest.er1 >conftest.err
16766   rm -f conftest.er1
16767   cat conftest.err >&5
16768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); } && {
16770          test -z "$ac_c_werror_flag" ||
16771          test ! -s conftest.err
16772        } && test -s conftest.$ac_objext; then
16773   :
16774 else
16775   $as_echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16777
16778         ac_cv_type_struct_addrinfo=yes
16779 fi
16780
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 else
16783   $as_echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786
16787 fi
16788
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 fi
16791 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16792 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16793 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16794
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_STRUCT_ADDRINFO 1
16797 _ACEOF
16798
16799
16800 fi
16801
16802
16803   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16804 $as_echo_n "checking for intptr_t... " >&6; }
16805 if test "${ac_cv_type_intptr_t+set}" = set; then
16806   $as_echo_n "(cached) " >&6
16807 else
16808   ac_cv_type_intptr_t=no
16809 cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h.  */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h.  */
16815 $ac_includes_default
16816 int
16817 main ()
16818 {
16819 if (sizeof (intptr_t))
16820        return 0;
16821   ;
16822   return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext
16826 if { (ac_try="$ac_compile"
16827 case "(($ac_try" in
16828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829   *) ac_try_echo=$ac_try;;
16830 esac
16831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16832 $as_echo "$ac_try_echo") >&5
16833   (eval "$ac_compile") 2>conftest.er1
16834   ac_status=$?
16835   grep -v '^ *+' conftest.er1 >conftest.err
16836   rm -f conftest.er1
16837   cat conftest.err >&5
16838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } && {
16840          test -z "$ac_c_werror_flag" ||
16841          test ! -s conftest.err
16842        } && test -s conftest.$ac_objext; then
16843   cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849 $ac_includes_default
16850 int
16851 main ()
16852 {
16853 if (sizeof ((intptr_t)))
16854           return 0;
16855   ;
16856   return 0;
16857 }
16858 _ACEOF
16859 rm -f conftest.$ac_objext
16860 if { (ac_try="$ac_compile"
16861 case "(($ac_try" in
16862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863   *) ac_try_echo=$ac_try;;
16864 esac
16865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16866 $as_echo "$ac_try_echo") >&5
16867   (eval "$ac_compile") 2>conftest.er1
16868   ac_status=$?
16869   grep -v '^ *+' conftest.er1 >conftest.err
16870   rm -f conftest.er1
16871   cat conftest.err >&5
16872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); } && {
16874          test -z "$ac_c_werror_flag" ||
16875          test ! -s conftest.err
16876        } && test -s conftest.$ac_objext; then
16877   :
16878 else
16879   $as_echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16881
16882         ac_cv_type_intptr_t=yes
16883 fi
16884
16885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886 else
16887   $as_echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890
16891 fi
16892
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894 fi
16895 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16896 $as_echo "$ac_cv_type_intptr_t" >&6; }
16897 if test "x$ac_cv_type_intptr_t" = x""yes; then
16898
16899 cat >>confdefs.h <<\_ACEOF
16900 #define HAVE_INTPTR_T 1
16901 _ACEOF
16902
16903 else
16904   for ac_type in 'int' 'long int' 'long long int'; do
16905        cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h.  */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h.  */
16911 $ac_includes_default
16912 int
16913 main ()
16914 {
16915 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16916 test_array [0] = 0
16917
16918   ;
16919   return 0;
16920 }
16921 _ACEOF
16922 rm -f conftest.$ac_objext
16923 if { (ac_try="$ac_compile"
16924 case "(($ac_try" in
16925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926   *) ac_try_echo=$ac_try;;
16927 esac
16928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16929 $as_echo "$ac_try_echo") >&5
16930   (eval "$ac_compile") 2>conftest.er1
16931   ac_status=$?
16932   grep -v '^ *+' conftest.er1 >conftest.err
16933   rm -f conftest.er1
16934   cat conftest.err >&5
16935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); } && {
16937          test -z "$ac_c_werror_flag" ||
16938          test ! -s conftest.err
16939        } && test -s conftest.$ac_objext; then
16940
16941 cat >>confdefs.h <<_ACEOF
16942 #define intptr_t $ac_type
16943 _ACEOF
16944
16945           ac_type=
16946 else
16947   $as_echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16949
16950
16951 fi
16952
16953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954        test -z "$ac_type" && break
16955      done
16956 fi
16957
16958
16959
16960   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16961 $as_echo_n "checking for uintptr_t... " >&6; }
16962 if test "${ac_cv_type_uintptr_t+set}" = set; then
16963   $as_echo_n "(cached) " >&6
16964 else
16965   ac_cv_type_uintptr_t=no
16966 cat >conftest.$ac_ext <<_ACEOF
16967 /* confdefs.h.  */
16968 _ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h.  */
16972 $ac_includes_default
16973 int
16974 main ()
16975 {
16976 if (sizeof (uintptr_t))
16977        return 0;
16978   ;
16979   return 0;
16980 }
16981 _ACEOF
16982 rm -f conftest.$ac_objext
16983 if { (ac_try="$ac_compile"
16984 case "(($ac_try" in
16985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986   *) ac_try_echo=$ac_try;;
16987 esac
16988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16989 $as_echo "$ac_try_echo") >&5
16990   (eval "$ac_compile") 2>conftest.er1
16991   ac_status=$?
16992   grep -v '^ *+' conftest.er1 >conftest.err
16993   rm -f conftest.er1
16994   cat conftest.err >&5
16995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); } && {
16997          test -z "$ac_c_werror_flag" ||
16998          test ! -s conftest.err
16999        } && test -s conftest.$ac_objext; then
17000   cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h.  */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h.  */
17006 $ac_includes_default
17007 int
17008 main ()
17009 {
17010 if (sizeof ((uintptr_t)))
17011           return 0;
17012   ;
17013   return 0;
17014 }
17015 _ACEOF
17016 rm -f conftest.$ac_objext
17017 if { (ac_try="$ac_compile"
17018 case "(($ac_try" in
17019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020   *) ac_try_echo=$ac_try;;
17021 esac
17022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17023 $as_echo "$ac_try_echo") >&5
17024   (eval "$ac_compile") 2>conftest.er1
17025   ac_status=$?
17026   grep -v '^ *+' conftest.er1 >conftest.err
17027   rm -f conftest.er1
17028   cat conftest.err >&5
17029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030   (exit $ac_status); } && {
17031          test -z "$ac_c_werror_flag" ||
17032          test ! -s conftest.err
17033        } && test -s conftest.$ac_objext; then
17034   :
17035 else
17036   $as_echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17038
17039         ac_cv_type_uintptr_t=yes
17040 fi
17041
17042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043 else
17044   $as_echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047
17048 fi
17049
17050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17051 fi
17052 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17053 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17054 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17055
17056 cat >>confdefs.h <<\_ACEOF
17057 #define HAVE_UINTPTR_T 1
17058 _ACEOF
17059
17060 else
17061   for ac_type in 'unsigned int' 'unsigned long int' \
17062         'unsigned long long int'; do
17063        cat >conftest.$ac_ext <<_ACEOF
17064 /* confdefs.h.  */
17065 _ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h.  */
17069 $ac_includes_default
17070 int
17071 main ()
17072 {
17073 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17074 test_array [0] = 0
17075
17076   ;
17077   return 0;
17078 }
17079 _ACEOF
17080 rm -f conftest.$ac_objext
17081 if { (ac_try="$ac_compile"
17082 case "(($ac_try" in
17083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084   *) ac_try_echo=$ac_try;;
17085 esac
17086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17087 $as_echo "$ac_try_echo") >&5
17088   (eval "$ac_compile") 2>conftest.er1
17089   ac_status=$?
17090   grep -v '^ *+' conftest.er1 >conftest.err
17091   rm -f conftest.er1
17092   cat conftest.err >&5
17093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); } && {
17095          test -z "$ac_c_werror_flag" ||
17096          test ! -s conftest.err
17097        } && test -s conftest.$ac_objext; then
17098
17099 cat >>confdefs.h <<_ACEOF
17100 #define uintptr_t $ac_type
17101 _ACEOF
17102
17103           ac_type=
17104 else
17105   $as_echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17107
17108
17109 fi
17110
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112        test -z "$ac_type" && break
17113      done
17114 fi
17115
17116
17117
17118   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17119 $as_echo_n "checking for long long int... " >&6; }
17120 if test "${ac_cv_type_long_long_int+set}" = set; then
17121   $as_echo_n "(cached) " >&6
17122 else
17123   cat >conftest.$ac_ext <<_ACEOF
17124
17125   /* confdefs.h.  */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h.  */
17130 /* For now, do not test the preprocessor; as of 2007 there are too many
17131          implementations with broken preprocessors.  Perhaps this can
17132          be revisited in 2012.  In the meantime, code should not expect
17133          #if to work with literals wider than 32 bits.  */
17134       /* Test literals.  */
17135       long long int ll = 9223372036854775807ll;
17136       long long int nll = -9223372036854775807LL;
17137       unsigned long long int ull = 18446744073709551615ULL;
17138       /* Test constant expressions.   */
17139       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17140                      ? 1 : -1)];
17141       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17142                      ? 1 : -1)];
17143       int i = 63;
17144 int
17145 main ()
17146 {
17147 /* Test availability of runtime routines for shift and division.  */
17148       long long int llmax = 9223372036854775807ll;
17149       unsigned long long int ullmax = 18446744073709551615ull;
17150       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17151               | (llmax / ll) | (llmax % ll)
17152               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17153               | (ullmax / ull) | (ullmax % ull));
17154   ;
17155   return 0;
17156 }
17157
17158 _ACEOF
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163   *) ac_try_echo=$ac_try;;
17164 esac
17165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17166 $as_echo "$ac_try_echo") >&5
17167   (eval "$ac_link") 2>conftest.er1
17168   ac_status=$?
17169   grep -v '^ *+' conftest.er1 >conftest.err
17170   rm -f conftest.er1
17171   cat conftest.err >&5
17172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); } && {
17174          test -z "$ac_c_werror_flag" ||
17175          test ! -s conftest.err
17176        } && test -s conftest$ac_exeext && {
17177          test "$cross_compiling" = yes ||
17178          $as_test_x conftest$ac_exeext
17179        }; then
17180                         if test "$cross_compiling" = yes; then
17181   ac_cv_type_long_long_int=yes
17182 else
17183   cat >conftest.$ac_ext <<_ACEOF
17184 /* confdefs.h.  */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h.  */
17189 #include <limits.h>
17190                #ifndef LLONG_MAX
17191                # define HALF \
17192                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17193                # define LLONG_MAX (HALF - 1 + HALF)
17194                #endif
17195 int
17196 main ()
17197 {
17198 long long int n = 1;
17199                int i;
17200                for (i = 0; ; i++)
17201                  {
17202                    long long int m = n << i;
17203                    if (m >> i != n)
17204                      return 1;
17205                    if (LLONG_MAX / 2 < m)
17206                      break;
17207                  }
17208                return 0;
17209   ;
17210   return 0;
17211 }
17212 _ACEOF
17213 rm -f conftest$ac_exeext
17214 if { (ac_try="$ac_link"
17215 case "(($ac_try" in
17216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217   *) ac_try_echo=$ac_try;;
17218 esac
17219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17220 $as_echo "$ac_try_echo") >&5
17221   (eval "$ac_link") 2>&5
17222   ac_status=$?
17223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17225   { (case "(($ac_try" in
17226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227   *) ac_try_echo=$ac_try;;
17228 esac
17229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17230 $as_echo "$ac_try_echo") >&5
17231   (eval "$ac_try") 2>&5
17232   ac_status=$?
17233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; }; then
17235   ac_cv_type_long_long_int=yes
17236 else
17237   $as_echo "$as_me: program exited with status $ac_status" >&5
17238 $as_echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17240
17241 ( exit $ac_status )
17242 ac_cv_type_long_long_int=no
17243 fi
17244 rm -rf conftest.dSYM
17245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17246 fi
17247
17248
17249 else
17250   $as_echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17252
17253         ac_cv_type_long_long_int=no
17254 fi
17255
17256 rm -rf conftest.dSYM
17257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17258       conftest$ac_exeext conftest.$ac_ext
17259 fi
17260 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17261 $as_echo "$ac_cv_type_long_long_int" >&6; }
17262   if test $ac_cv_type_long_long_int = yes; then
17263
17264 cat >>confdefs.h <<\_ACEOF
17265 #define HAVE_LONG_LONG_INT 1
17266 _ACEOF
17267
17268   fi
17269
17270
17271 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17272 $as_echo_n "checking for locale_t... " >&6; }
17273 if test "${pgac_cv_type_locale_t+set}" = set; then
17274   $as_echo_n "(cached) " >&6
17275 else
17276   cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282 #include <locale.h>
17283 locale_t x;
17284 int
17285 main ()
17286 {
17287
17288   ;
17289   return 0;
17290 }
17291 _ACEOF
17292 rm -f conftest.$ac_objext
17293 if { (ac_try="$ac_compile"
17294 case "(($ac_try" in
17295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296   *) ac_try_echo=$ac_try;;
17297 esac
17298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17299 $as_echo "$ac_try_echo") >&5
17300   (eval "$ac_compile") 2>conftest.er1
17301   ac_status=$?
17302   grep -v '^ *+' conftest.er1 >conftest.err
17303   rm -f conftest.er1
17304   cat conftest.err >&5
17305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); } && {
17307          test -z "$ac_c_werror_flag" ||
17308          test ! -s conftest.err
17309        } && test -s conftest.$ac_objext; then
17310   pgac_cv_type_locale_t=yes
17311 else
17312   $as_echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17314
17315         cat >conftest.$ac_ext <<_ACEOF
17316 /* confdefs.h.  */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h.  */
17321 #include <xlocale.h>
17322 locale_t x;
17323 int
17324 main ()
17325 {
17326
17327   ;
17328   return 0;
17329 }
17330 _ACEOF
17331 rm -f conftest.$ac_objext
17332 if { (ac_try="$ac_compile"
17333 case "(($ac_try" in
17334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335   *) ac_try_echo=$ac_try;;
17336 esac
17337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17338 $as_echo "$ac_try_echo") >&5
17339   (eval "$ac_compile") 2>conftest.er1
17340   ac_status=$?
17341   grep -v '^ *+' conftest.er1 >conftest.err
17342   rm -f conftest.er1
17343   cat conftest.err >&5
17344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345   (exit $ac_status); } && {
17346          test -z "$ac_c_werror_flag" ||
17347          test ! -s conftest.err
17348        } && test -s conftest.$ac_objext; then
17349   pgac_cv_type_locale_t='yes (in xlocale.h)'
17350 else
17351   $as_echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17353
17354         pgac_cv_type_locale_t=no
17355 fi
17356
17357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17358 fi
17359
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361 fi
17362 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17363 $as_echo "$pgac_cv_type_locale_t" >&6; }
17364 if test "$pgac_cv_type_locale_t" != no; then
17365
17366 cat >>confdefs.h <<\_ACEOF
17367 #define HAVE_LOCALE_T 1
17368 _ACEOF
17369
17370 fi
17371 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17372
17373 cat >>confdefs.h <<\_ACEOF
17374 #define LOCALE_T_IN_XLOCALE 1
17375 _ACEOF
17376
17377 fi
17378
17379 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17380 $as_echo_n "checking for struct cmsgcred... " >&6; }
17381 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17382   $as_echo_n "(cached) " >&6
17383 else
17384   ac_cv_type_struct_cmsgcred=no
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h.  */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h.  */
17391 #include <sys/socket.h>
17392 #ifdef HAVE_SYS_UCRED_H
17393 #include <sys/ucred.h>
17394 #endif
17395
17396 int
17397 main ()
17398 {
17399 if (sizeof (struct cmsgcred))
17400        return 0;
17401   ;
17402   return 0;
17403 }
17404 _ACEOF
17405 rm -f conftest.$ac_objext
17406 if { (ac_try="$ac_compile"
17407 case "(($ac_try" in
17408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409   *) ac_try_echo=$ac_try;;
17410 esac
17411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17412 $as_echo "$ac_try_echo") >&5
17413   (eval "$ac_compile") 2>conftest.er1
17414   ac_status=$?
17415   grep -v '^ *+' conftest.er1 >conftest.err
17416   rm -f conftest.er1
17417   cat conftest.err >&5
17418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); } && {
17420          test -z "$ac_c_werror_flag" ||
17421          test ! -s conftest.err
17422        } && test -s conftest.$ac_objext; then
17423   cat >conftest.$ac_ext <<_ACEOF
17424 /* confdefs.h.  */
17425 _ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h.  */
17429 #include <sys/socket.h>
17430 #ifdef HAVE_SYS_UCRED_H
17431 #include <sys/ucred.h>
17432 #endif
17433
17434 int
17435 main ()
17436 {
17437 if (sizeof ((struct cmsgcred)))
17438           return 0;
17439   ;
17440   return 0;
17441 }
17442 _ACEOF
17443 rm -f conftest.$ac_objext
17444 if { (ac_try="$ac_compile"
17445 case "(($ac_try" in
17446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447   *) ac_try_echo=$ac_try;;
17448 esac
17449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17450 $as_echo "$ac_try_echo") >&5
17451   (eval "$ac_compile") 2>conftest.er1
17452   ac_status=$?
17453   grep -v '^ *+' conftest.er1 >conftest.err
17454   rm -f conftest.er1
17455   cat conftest.err >&5
17456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); } && {
17458          test -z "$ac_c_werror_flag" ||
17459          test ! -s conftest.err
17460        } && test -s conftest.$ac_objext; then
17461   :
17462 else
17463   $as_echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17465
17466         ac_cv_type_struct_cmsgcred=yes
17467 fi
17468
17469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17470 else
17471   $as_echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474
17475 fi
17476
17477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17478 fi
17479 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17480 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17481 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17482
17483 cat >>confdefs.h <<_ACEOF
17484 #define HAVE_STRUCT_CMSGCRED 1
17485 _ACEOF
17486
17487
17488 fi
17489
17490
17491 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17492 $as_echo_n "checking for struct option... " >&6; }
17493 if test "${ac_cv_type_struct_option+set}" = set; then
17494   $as_echo_n "(cached) " >&6
17495 else
17496   ac_cv_type_struct_option=no
17497 cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h.  */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h.  */
17503 #ifdef HAVE_GETOPT_H
17504 #include <getopt.h>
17505 #endif
17506
17507 int
17508 main ()
17509 {
17510 if (sizeof (struct option))
17511        return 0;
17512   ;
17513   return 0;
17514 }
17515 _ACEOF
17516 rm -f conftest.$ac_objext
17517 if { (ac_try="$ac_compile"
17518 case "(($ac_try" in
17519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520   *) ac_try_echo=$ac_try;;
17521 esac
17522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17523 $as_echo "$ac_try_echo") >&5
17524   (eval "$ac_compile") 2>conftest.er1
17525   ac_status=$?
17526   grep -v '^ *+' conftest.er1 >conftest.err
17527   rm -f conftest.er1
17528   cat conftest.err >&5
17529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); } && {
17531          test -z "$ac_c_werror_flag" ||
17532          test ! -s conftest.err
17533        } && test -s conftest.$ac_objext; then
17534   cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h.  */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h.  */
17540 #ifdef HAVE_GETOPT_H
17541 #include <getopt.h>
17542 #endif
17543
17544 int
17545 main ()
17546 {
17547 if (sizeof ((struct option)))
17548           return 0;
17549   ;
17550   return 0;
17551 }
17552 _ACEOF
17553 rm -f conftest.$ac_objext
17554 if { (ac_try="$ac_compile"
17555 case "(($ac_try" in
17556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557   *) ac_try_echo=$ac_try;;
17558 esac
17559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17560 $as_echo "$ac_try_echo") >&5
17561   (eval "$ac_compile") 2>conftest.er1
17562   ac_status=$?
17563   grep -v '^ *+' conftest.er1 >conftest.err
17564   rm -f conftest.er1
17565   cat conftest.err >&5
17566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); } && {
17568          test -z "$ac_c_werror_flag" ||
17569          test ! -s conftest.err
17570        } && test -s conftest.$ac_objext; then
17571   :
17572 else
17573   $as_echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576         ac_cv_type_struct_option=yes
17577 fi
17578
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580 else
17581   $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17583
17584
17585 fi
17586
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17588 fi
17589 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17590 $as_echo "$ac_cv_type_struct_option" >&6; }
17591 if test "x$ac_cv_type_struct_option" = x""yes; then
17592
17593 cat >>confdefs.h <<_ACEOF
17594 #define HAVE_STRUCT_OPTION 1
17595 _ACEOF
17596
17597
17598 fi
17599
17600
17601 if test "$with_zlib" = yes; then
17602   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17603   # did not).  While we could work around the lack of z_streamp, it
17604   # seems unwise to encourage people to use such old zlib versions...
17605   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17606 $as_echo_n "checking for z_streamp... " >&6; }
17607 if test "${ac_cv_type_z_streamp+set}" = set; then
17608   $as_echo_n "(cached) " >&6
17609 else
17610   ac_cv_type_z_streamp=no
17611 cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h.  */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h.  */
17617 #include <zlib.h>
17618
17619 int
17620 main ()
17621 {
17622 if (sizeof (z_streamp))
17623        return 0;
17624   ;
17625   return 0;
17626 }
17627 _ACEOF
17628 rm -f conftest.$ac_objext
17629 if { (ac_try="$ac_compile"
17630 case "(($ac_try" in
17631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632   *) ac_try_echo=$ac_try;;
17633 esac
17634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17635 $as_echo "$ac_try_echo") >&5
17636   (eval "$ac_compile") 2>conftest.er1
17637   ac_status=$?
17638   grep -v '^ *+' conftest.er1 >conftest.err
17639   rm -f conftest.er1
17640   cat conftest.err >&5
17641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); } && {
17643          test -z "$ac_c_werror_flag" ||
17644          test ! -s conftest.err
17645        } && test -s conftest.$ac_objext; then
17646   cat >conftest.$ac_ext <<_ACEOF
17647 /* confdefs.h.  */
17648 _ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h.  */
17652 #include <zlib.h>
17653
17654 int
17655 main ()
17656 {
17657 if (sizeof ((z_streamp)))
17658           return 0;
17659   ;
17660   return 0;
17661 }
17662 _ACEOF
17663 rm -f conftest.$ac_objext
17664 if { (ac_try="$ac_compile"
17665 case "(($ac_try" in
17666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667   *) ac_try_echo=$ac_try;;
17668 esac
17669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17670 $as_echo "$ac_try_echo") >&5
17671   (eval "$ac_compile") 2>conftest.er1
17672   ac_status=$?
17673   grep -v '^ *+' conftest.er1 >conftest.err
17674   rm -f conftest.er1
17675   cat conftest.err >&5
17676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677   (exit $ac_status); } && {
17678          test -z "$ac_c_werror_flag" ||
17679          test ! -s conftest.err
17680        } && test -s conftest.$ac_objext; then
17681   :
17682 else
17683   $as_echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17685
17686         ac_cv_type_z_streamp=yes
17687 fi
17688
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17690 else
17691   $as_echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694
17695 fi
17696
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698 fi
17699 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17700 $as_echo "$ac_cv_type_z_streamp" >&6; }
17701 if test "x$ac_cv_type_z_streamp" = x""yes; then
17702   :
17703 else
17704   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17705 Use --without-zlib to disable zlib support." >&5
17706 $as_echo "$as_me: error: zlib version is too old
17707 Use --without-zlib to disable zlib support." >&2;}
17708    { (exit 1); exit 1; }; }
17709 fi
17710
17711 fi
17712
17713 if test "$with_krb5" = yes; then
17714 # Check for differences between MIT and Heimdal (KTH) releases
17715   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17716 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17717 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17718   $as_echo_n "(cached) " >&6
17719 else
17720   cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h.  */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h.  */
17726 #include <krb5.h>
17727
17728 int
17729 main ()
17730 {
17731 static krb5_ticket ac_aggr;
17732 if (ac_aggr.enc_part2)
17733 return 0;
17734   ;
17735   return 0;
17736 }
17737 _ACEOF
17738 rm -f conftest.$ac_objext
17739 if { (ac_try="$ac_compile"
17740 case "(($ac_try" in
17741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742   *) ac_try_echo=$ac_try;;
17743 esac
17744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17745 $as_echo "$ac_try_echo") >&5
17746   (eval "$ac_compile") 2>conftest.er1
17747   ac_status=$?
17748   grep -v '^ *+' conftest.er1 >conftest.err
17749   rm -f conftest.er1
17750   cat conftest.err >&5
17751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); } && {
17753          test -z "$ac_c_werror_flag" ||
17754          test ! -s conftest.err
17755        } && test -s conftest.$ac_objext; then
17756   ac_cv_member_krb5_ticket_enc_part2=yes
17757 else
17758   $as_echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761         cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h.  */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h.  */
17767 #include <krb5.h>
17768
17769 int
17770 main ()
17771 {
17772 static krb5_ticket ac_aggr;
17773 if (sizeof ac_aggr.enc_part2)
17774 return 0;
17775   ;
17776   return 0;
17777 }
17778 _ACEOF
17779 rm -f conftest.$ac_objext
17780 if { (ac_try="$ac_compile"
17781 case "(($ac_try" in
17782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783   *) ac_try_echo=$ac_try;;
17784 esac
17785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17786 $as_echo "$ac_try_echo") >&5
17787   (eval "$ac_compile") 2>conftest.er1
17788   ac_status=$?
17789   grep -v '^ *+' conftest.er1 >conftest.err
17790   rm -f conftest.er1
17791   cat conftest.err >&5
17792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); } && {
17794          test -z "$ac_c_werror_flag" ||
17795          test ! -s conftest.err
17796        } && test -s conftest.$ac_objext; then
17797   ac_cv_member_krb5_ticket_enc_part2=yes
17798 else
17799   $as_echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17801
17802         ac_cv_member_krb5_ticket_enc_part2=no
17803 fi
17804
17805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806 fi
17807
17808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809 fi
17810 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17811 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17812 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17813
17814 cat >>confdefs.h <<_ACEOF
17815 #define HAVE_KRB5_TICKET_ENC_PART2 1
17816 _ACEOF
17817
17818
17819 else
17820   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17821 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17822 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17823   $as_echo_n "(cached) " >&6
17824 else
17825   cat >conftest.$ac_ext <<_ACEOF
17826 /* confdefs.h.  */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h.  */
17831 #include <krb5.h>
17832
17833 int
17834 main ()
17835 {
17836 static krb5_ticket ac_aggr;
17837 if (ac_aggr.client)
17838 return 0;
17839   ;
17840   return 0;
17841 }
17842 _ACEOF
17843 rm -f conftest.$ac_objext
17844 if { (ac_try="$ac_compile"
17845 case "(($ac_try" in
17846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847   *) ac_try_echo=$ac_try;;
17848 esac
17849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17850 $as_echo "$ac_try_echo") >&5
17851   (eval "$ac_compile") 2>conftest.er1
17852   ac_status=$?
17853   grep -v '^ *+' conftest.er1 >conftest.err
17854   rm -f conftest.er1
17855   cat conftest.err >&5
17856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); } && {
17858          test -z "$ac_c_werror_flag" ||
17859          test ! -s conftest.err
17860        } && test -s conftest.$ac_objext; then
17861   ac_cv_member_krb5_ticket_client=yes
17862 else
17863   $as_echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17865
17866         cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h.  */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h.  */
17872 #include <krb5.h>
17873
17874 int
17875 main ()
17876 {
17877 static krb5_ticket ac_aggr;
17878 if (sizeof ac_aggr.client)
17879 return 0;
17880   ;
17881   return 0;
17882 }
17883 _ACEOF
17884 rm -f conftest.$ac_objext
17885 if { (ac_try="$ac_compile"
17886 case "(($ac_try" in
17887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888   *) ac_try_echo=$ac_try;;
17889 esac
17890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17891 $as_echo "$ac_try_echo") >&5
17892   (eval "$ac_compile") 2>conftest.er1
17893   ac_status=$?
17894   grep -v '^ *+' conftest.er1 >conftest.err
17895   rm -f conftest.er1
17896   cat conftest.err >&5
17897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); } && {
17899          test -z "$ac_c_werror_flag" ||
17900          test ! -s conftest.err
17901        } && test -s conftest.$ac_objext; then
17902   ac_cv_member_krb5_ticket_client=yes
17903 else
17904   $as_echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907         ac_cv_member_krb5_ticket_client=no
17908 fi
17909
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 fi
17912
17913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17914 fi
17915 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17916 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17917 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17918
17919 cat >>confdefs.h <<_ACEOF
17920 #define HAVE_KRB5_TICKET_CLIENT 1
17921 _ACEOF
17922
17923
17924 else
17925   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17926 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17927    { (exit 1); exit 1; }; }
17928 fi
17929
17930 fi
17931
17932   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17933 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17934 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17935   $as_echo_n "(cached) " >&6
17936 else
17937   cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h.  */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h.  */
17943 #include <krb5.h>
17944
17945 int
17946 main ()
17947 {
17948 static krb5_error ac_aggr;
17949 if (ac_aggr.text.data)
17950 return 0;
17951   ;
17952   return 0;
17953 }
17954 _ACEOF
17955 rm -f conftest.$ac_objext
17956 if { (ac_try="$ac_compile"
17957 case "(($ac_try" in
17958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959   *) ac_try_echo=$ac_try;;
17960 esac
17961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17962 $as_echo "$ac_try_echo") >&5
17963   (eval "$ac_compile") 2>conftest.er1
17964   ac_status=$?
17965   grep -v '^ *+' conftest.er1 >conftest.err
17966   rm -f conftest.er1
17967   cat conftest.err >&5
17968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } && {
17970          test -z "$ac_c_werror_flag" ||
17971          test ! -s conftest.err
17972        } && test -s conftest.$ac_objext; then
17973   ac_cv_member_krb5_error_text_data=yes
17974 else
17975   $as_echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17977
17978         cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h.  */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h.  */
17984 #include <krb5.h>
17985
17986 int
17987 main ()
17988 {
17989 static krb5_error ac_aggr;
17990 if (sizeof ac_aggr.text.data)
17991 return 0;
17992   ;
17993   return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18003 $as_echo "$ac_try_echo") >&5
18004   (eval "$ac_compile") 2>conftest.er1
18005   ac_status=$?
18006   grep -v '^ *+' conftest.er1 >conftest.err
18007   rm -f conftest.er1
18008   cat conftest.err >&5
18009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); } && {
18011          test -z "$ac_c_werror_flag" ||
18012          test ! -s conftest.err
18013        } && test -s conftest.$ac_objext; then
18014   ac_cv_member_krb5_error_text_data=yes
18015 else
18016   $as_echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019         ac_cv_member_krb5_error_text_data=no
18020 fi
18021
18022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023 fi
18024
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026 fi
18027 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18028 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18029 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18030
18031 cat >>confdefs.h <<_ACEOF
18032 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18033 _ACEOF
18034
18035
18036 else
18037   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18038 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18039 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18040   $as_echo_n "(cached) " >&6
18041 else
18042   cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h.  */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h.  */
18048 #include <krb5.h>
18049
18050 int
18051 main ()
18052 {
18053 static krb5_error ac_aggr;
18054 if (ac_aggr.e_data)
18055 return 0;
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext
18061 if { (ac_try="$ac_compile"
18062 case "(($ac_try" in
18063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064   *) ac_try_echo=$ac_try;;
18065 esac
18066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18067 $as_echo "$ac_try_echo") >&5
18068   (eval "$ac_compile") 2>conftest.er1
18069   ac_status=$?
18070   grep -v '^ *+' conftest.er1 >conftest.err
18071   rm -f conftest.er1
18072   cat conftest.err >&5
18073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); } && {
18075          test -z "$ac_c_werror_flag" ||
18076          test ! -s conftest.err
18077        } && test -s conftest.$ac_objext; then
18078   ac_cv_member_krb5_error_e_data=yes
18079 else
18080   $as_echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18082
18083         cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h.  */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h.  */
18089 #include <krb5.h>
18090
18091 int
18092 main ()
18093 {
18094 static krb5_error ac_aggr;
18095 if (sizeof ac_aggr.e_data)
18096 return 0;
18097   ;
18098   return 0;
18099 }
18100 _ACEOF
18101 rm -f conftest.$ac_objext
18102 if { (ac_try="$ac_compile"
18103 case "(($ac_try" in
18104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105   *) ac_try_echo=$ac_try;;
18106 esac
18107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18108 $as_echo "$ac_try_echo") >&5
18109   (eval "$ac_compile") 2>conftest.er1
18110   ac_status=$?
18111   grep -v '^ *+' conftest.er1 >conftest.err
18112   rm -f conftest.er1
18113   cat conftest.err >&5
18114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); } && {
18116          test -z "$ac_c_werror_flag" ||
18117          test ! -s conftest.err
18118        } && test -s conftest.$ac_objext; then
18119   ac_cv_member_krb5_error_e_data=yes
18120 else
18121   $as_echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18123
18124         ac_cv_member_krb5_error_e_data=no
18125 fi
18126
18127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18128 fi
18129
18130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18131 fi
18132 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18133 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18134 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18135
18136 cat >>confdefs.h <<_ACEOF
18137 #define HAVE_KRB5_ERROR_E_DATA 1
18138 _ACEOF
18139
18140
18141 else
18142   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18143 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18144    { (exit 1); exit 1; }; }
18145 fi
18146
18147 fi
18148
18149
18150 # Win32 requires headers to be loaded for __stdcall, so can't use
18151 # AC_CHECK_FUNCS here.
18152   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18153 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18154   cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h.  */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h.  */
18160 #include <krb5.h>
18161 int
18162 main ()
18163 {
18164 krb5_free_unparsed_name(NULL,NULL);
18165   ;
18166   return 0;
18167 }
18168 _ACEOF
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (ac_try="$ac_link"
18171 case "(($ac_try" in
18172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173   *) ac_try_echo=$ac_try;;
18174 esac
18175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18176 $as_echo "$ac_try_echo") >&5
18177   (eval "$ac_link") 2>conftest.er1
18178   ac_status=$?
18179   grep -v '^ *+' conftest.er1 >conftest.err
18180   rm -f conftest.er1
18181   cat conftest.err >&5
18182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); } && {
18184          test -z "$ac_c_werror_flag" ||
18185          test ! -s conftest.err
18186        } && test -s conftest$ac_exeext && {
18187          test "$cross_compiling" = yes ||
18188          $as_test_x conftest$ac_exeext
18189        }; then
18190
18191 cat >>confdefs.h <<\_ACEOF
18192 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18193 _ACEOF
18194
18195 { $as_echo "$as_me:$LINENO: result: yes" >&5
18196 $as_echo "yes" >&6; }
18197 else
18198   $as_echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201         { $as_echo "$as_me:$LINENO: result: no" >&5
18202 $as_echo "no" >&6; }
18203 fi
18204
18205 rm -rf conftest.dSYM
18206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18207       conftest$ac_exeext conftest.$ac_ext
18208 fi
18209
18210 # Check largefile support.  You might think this is a system service not a
18211 # compiler characteristic, but you'd be wrong.  We must check this before
18212 # probing existence of related functions such as fseeko, since the largefile
18213 # defines can affect what is generated for that.
18214 if test "$PORTNAME" != "win32"; then
18215    # Check whether --enable-largefile was given.
18216 if test "${enable_largefile+set}" = set; then
18217   enableval=$enable_largefile;
18218 fi
18219
18220 if test "$enable_largefile" != no; then
18221
18222   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18223 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18224 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18225   $as_echo_n "(cached) " >&6
18226 else
18227   ac_cv_sys_largefile_CC=no
18228      if test "$GCC" != yes; then
18229        ac_save_CC=$CC
18230        while :; do
18231          # IRIX 6.2 and later do not support large files by default,
18232          # so use the C compiler's -n32 option if that helps.
18233          cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h.  */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h.  */
18239 #include <sys/types.h>
18240  /* Check that off_t can represent 2**63 - 1 correctly.
18241     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18242     since some C++ compilers masquerading as C compilers
18243     incorrectly reject 9223372036854775807.  */
18244 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18245   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18246                        && LARGE_OFF_T % 2147483647 == 1)
18247                       ? 1 : -1];
18248 int
18249 main ()
18250 {
18251
18252   ;
18253   return 0;
18254 }
18255 _ACEOF
18256          rm -f conftest.$ac_objext
18257 if { (ac_try="$ac_compile"
18258 case "(($ac_try" in
18259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260   *) ac_try_echo=$ac_try;;
18261 esac
18262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18263 $as_echo "$ac_try_echo") >&5
18264   (eval "$ac_compile") 2>conftest.er1
18265   ac_status=$?
18266   grep -v '^ *+' conftest.er1 >conftest.err
18267   rm -f conftest.er1
18268   cat conftest.err >&5
18269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); } && {
18271          test -z "$ac_c_werror_flag" ||
18272          test ! -s conftest.err
18273        } && test -s conftest.$ac_objext; then
18274   break
18275 else
18276   $as_echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18278
18279
18280 fi
18281
18282 rm -f core conftest.err conftest.$ac_objext
18283          CC="$CC -n32"
18284          rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288   *) ac_try_echo=$ac_try;;
18289 esac
18290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18291 $as_echo "$ac_try_echo") >&5
18292   (eval "$ac_compile") 2>conftest.er1
18293   ac_status=$?
18294   grep -v '^ *+' conftest.er1 >conftest.err
18295   rm -f conftest.er1
18296   cat conftest.err >&5
18297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); } && {
18299          test -z "$ac_c_werror_flag" ||
18300          test ! -s conftest.err
18301        } && test -s conftest.$ac_objext; then
18302   ac_cv_sys_largefile_CC=' -n32'; break
18303 else
18304   $as_echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18306
18307
18308 fi
18309
18310 rm -f core conftest.err conftest.$ac_objext
18311          break
18312        done
18313        CC=$ac_save_CC
18314        rm -f conftest.$ac_ext
18315     fi
18316 fi
18317 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18318 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18319   if test "$ac_cv_sys_largefile_CC" != no; then
18320     CC=$CC$ac_cv_sys_largefile_CC
18321   fi
18322
18323   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18324 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18325 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18326   $as_echo_n "(cached) " >&6
18327 else
18328   while :; do
18329   cat >conftest.$ac_ext <<_ACEOF
18330 /* confdefs.h.  */
18331 _ACEOF
18332 cat confdefs.h >>conftest.$ac_ext
18333 cat >>conftest.$ac_ext <<_ACEOF
18334 /* end confdefs.h.  */
18335 #include <sys/types.h>
18336  /* Check that off_t can represent 2**63 - 1 correctly.
18337     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18338     since some C++ compilers masquerading as C compilers
18339     incorrectly reject 9223372036854775807.  */
18340 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18341   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18342                        && LARGE_OFF_T % 2147483647 == 1)
18343                       ? 1 : -1];
18344 int
18345 main ()
18346 {
18347
18348   ;
18349   return 0;
18350 }
18351 _ACEOF
18352 rm -f conftest.$ac_objext
18353 if { (ac_try="$ac_compile"
18354 case "(($ac_try" in
18355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356   *) ac_try_echo=$ac_try;;
18357 esac
18358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18359 $as_echo "$ac_try_echo") >&5
18360   (eval "$ac_compile") 2>conftest.er1
18361   ac_status=$?
18362   grep -v '^ *+' conftest.er1 >conftest.err
18363   rm -f conftest.er1
18364   cat conftest.err >&5
18365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); } && {
18367          test -z "$ac_c_werror_flag" ||
18368          test ! -s conftest.err
18369        } && test -s conftest.$ac_objext; then
18370   ac_cv_sys_file_offset_bits=no; break
18371 else
18372   $as_echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18374
18375
18376 fi
18377
18378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18379   cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h.  */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h.  */
18385 #define _FILE_OFFSET_BITS 64
18386 #include <sys/types.h>
18387  /* Check that off_t can represent 2**63 - 1 correctly.
18388     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18389     since some C++ compilers masquerading as C compilers
18390     incorrectly reject 9223372036854775807.  */
18391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18392   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18393                        && LARGE_OFF_T % 2147483647 == 1)
18394                       ? 1 : -1];
18395 int
18396 main ()
18397 {
18398
18399   ;
18400   return 0;
18401 }
18402 _ACEOF
18403 rm -f conftest.$ac_objext
18404 if { (ac_try="$ac_compile"
18405 case "(($ac_try" in
18406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407   *) ac_try_echo=$ac_try;;
18408 esac
18409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18410 $as_echo "$ac_try_echo") >&5
18411   (eval "$ac_compile") 2>conftest.er1
18412   ac_status=$?
18413   grep -v '^ *+' conftest.er1 >conftest.err
18414   rm -f conftest.er1
18415   cat conftest.err >&5
18416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); } && {
18418          test -z "$ac_c_werror_flag" ||
18419          test ! -s conftest.err
18420        } && test -s conftest.$ac_objext; then
18421   ac_cv_sys_file_offset_bits=64; break
18422 else
18423   $as_echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18425
18426
18427 fi
18428
18429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430   ac_cv_sys_file_offset_bits=unknown
18431   break
18432 done
18433 fi
18434 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18435 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18436 case $ac_cv_sys_file_offset_bits in #(
18437   no | unknown) ;;
18438   *)
18439 cat >>confdefs.h <<_ACEOF
18440 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18441 _ACEOF
18442 ;;
18443 esac
18444 rm -rf conftest*
18445   if test $ac_cv_sys_file_offset_bits = unknown; then
18446     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18447 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18448 if test "${ac_cv_sys_large_files+set}" = set; then
18449   $as_echo_n "(cached) " >&6
18450 else
18451   while :; do
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 #include <sys/types.h>
18459  /* Check that off_t can represent 2**63 - 1 correctly.
18460     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18461     since some C++ compilers masquerading as C compilers
18462     incorrectly reject 9223372036854775807.  */
18463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18464   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18465                        && LARGE_OFF_T % 2147483647 == 1)
18466                       ? 1 : -1];
18467 int
18468 main ()
18469 {
18470
18471   ;
18472   return 0;
18473 }
18474 _ACEOF
18475 rm -f conftest.$ac_objext
18476 if { (ac_try="$ac_compile"
18477 case "(($ac_try" in
18478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479   *) ac_try_echo=$ac_try;;
18480 esac
18481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18482 $as_echo "$ac_try_echo") >&5
18483   (eval "$ac_compile") 2>conftest.er1
18484   ac_status=$?
18485   grep -v '^ *+' conftest.er1 >conftest.err
18486   rm -f conftest.er1
18487   cat conftest.err >&5
18488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); } && {
18490          test -z "$ac_c_werror_flag" ||
18491          test ! -s conftest.err
18492        } && test -s conftest.$ac_objext; then
18493   ac_cv_sys_large_files=no; break
18494 else
18495   $as_echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18497
18498
18499 fi
18500
18501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18502   cat >conftest.$ac_ext <<_ACEOF
18503 /* confdefs.h.  */
18504 _ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h.  */
18508 #define _LARGE_FILES 1
18509 #include <sys/types.h>
18510  /* Check that off_t can represent 2**63 - 1 correctly.
18511     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18512     since some C++ compilers masquerading as C compilers
18513     incorrectly reject 9223372036854775807.  */
18514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18515   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18516                        && LARGE_OFF_T % 2147483647 == 1)
18517                       ? 1 : -1];
18518 int
18519 main ()
18520 {
18521
18522   ;
18523   return 0;
18524 }
18525 _ACEOF
18526 rm -f conftest.$ac_objext
18527 if { (ac_try="$ac_compile"
18528 case "(($ac_try" in
18529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530   *) ac_try_echo=$ac_try;;
18531 esac
18532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18533 $as_echo "$ac_try_echo") >&5
18534   (eval "$ac_compile") 2>conftest.er1
18535   ac_status=$?
18536   grep -v '^ *+' conftest.er1 >conftest.err
18537   rm -f conftest.er1
18538   cat conftest.err >&5
18539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); } && {
18541          test -z "$ac_c_werror_flag" ||
18542          test ! -s conftest.err
18543        } && test -s conftest.$ac_objext; then
18544   ac_cv_sys_large_files=1; break
18545 else
18546   $as_echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18548
18549
18550 fi
18551
18552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18553   ac_cv_sys_large_files=unknown
18554   break
18555 done
18556 fi
18557 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18558 $as_echo "$ac_cv_sys_large_files" >&6; }
18559 case $ac_cv_sys_large_files in #(
18560   no | unknown) ;;
18561   *)
18562 cat >>confdefs.h <<_ACEOF
18563 #define _LARGE_FILES $ac_cv_sys_large_files
18564 _ACEOF
18565 ;;
18566 esac
18567 rm -rf conftest*
18568   fi
18569 fi
18570
18571 fi
18572
18573 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18574 # The cast to long int works around a bug in the HP C Compiler
18575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18577 # This bug is HP SR number 8606223364.
18578 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18579 $as_echo_n "checking size of off_t... " >&6; }
18580 if test "${ac_cv_sizeof_off_t+set}" = set; then
18581   $as_echo_n "(cached) " >&6
18582 else
18583   if test "$cross_compiling" = yes; then
18584   # Depending upon the size, compute the lo and hi bounds.
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h.  */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h.  */
18591 $ac_includes_default
18592 int
18593 main ()
18594 {
18595 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18596 test_array [0] = 0
18597
18598   ;
18599   return 0;
18600 }
18601 _ACEOF
18602 rm -f conftest.$ac_objext
18603 if { (ac_try="$ac_compile"
18604 case "(($ac_try" in
18605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606   *) ac_try_echo=$ac_try;;
18607 esac
18608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18609 $as_echo "$ac_try_echo") >&5
18610   (eval "$ac_compile") 2>conftest.er1
18611   ac_status=$?
18612   grep -v '^ *+' conftest.er1 >conftest.err
18613   rm -f conftest.er1
18614   cat conftest.err >&5
18615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); } && {
18617          test -z "$ac_c_werror_flag" ||
18618          test ! -s conftest.err
18619        } && test -s conftest.$ac_objext; then
18620   ac_lo=0 ac_mid=0
18621   while :; do
18622     cat >conftest.$ac_ext <<_ACEOF
18623 /* confdefs.h.  */
18624 _ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h.  */
18628 $ac_includes_default
18629 int
18630 main ()
18631 {
18632 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18633 test_array [0] = 0
18634
18635   ;
18636   return 0;
18637 }
18638 _ACEOF
18639 rm -f conftest.$ac_objext
18640 if { (ac_try="$ac_compile"
18641 case "(($ac_try" in
18642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643   *) ac_try_echo=$ac_try;;
18644 esac
18645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18646 $as_echo "$ac_try_echo") >&5
18647   (eval "$ac_compile") 2>conftest.er1
18648   ac_status=$?
18649   grep -v '^ *+' conftest.er1 >conftest.err
18650   rm -f conftest.er1
18651   cat conftest.err >&5
18652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); } && {
18654          test -z "$ac_c_werror_flag" ||
18655          test ! -s conftest.err
18656        } && test -s conftest.$ac_objext; then
18657   ac_hi=$ac_mid; break
18658 else
18659   $as_echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18661
18662         ac_lo=`expr $ac_mid + 1`
18663                         if test $ac_lo -le $ac_mid; then
18664                           ac_lo= ac_hi=
18665                           break
18666                         fi
18667                         ac_mid=`expr 2 '*' $ac_mid + 1`
18668 fi
18669
18670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18671   done
18672 else
18673   $as_echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676         cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h.  */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h.  */
18682 $ac_includes_default
18683 int
18684 main ()
18685 {
18686 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18687 test_array [0] = 0
18688
18689   ;
18690   return 0;
18691 }
18692 _ACEOF
18693 rm -f conftest.$ac_objext
18694 if { (ac_try="$ac_compile"
18695 case "(($ac_try" in
18696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697   *) ac_try_echo=$ac_try;;
18698 esac
18699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18700 $as_echo "$ac_try_echo") >&5
18701   (eval "$ac_compile") 2>conftest.er1
18702   ac_status=$?
18703   grep -v '^ *+' conftest.er1 >conftest.err
18704   rm -f conftest.er1
18705   cat conftest.err >&5
18706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); } && {
18708          test -z "$ac_c_werror_flag" ||
18709          test ! -s conftest.err
18710        } && test -s conftest.$ac_objext; then
18711   ac_hi=-1 ac_mid=-1
18712   while :; do
18713     cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h.  */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h.  */
18719 $ac_includes_default
18720 int
18721 main ()
18722 {
18723 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18724 test_array [0] = 0
18725
18726   ;
18727   return 0;
18728 }
18729 _ACEOF
18730 rm -f conftest.$ac_objext
18731 if { (ac_try="$ac_compile"
18732 case "(($ac_try" in
18733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734   *) ac_try_echo=$ac_try;;
18735 esac
18736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18737 $as_echo "$ac_try_echo") >&5
18738   (eval "$ac_compile") 2>conftest.er1
18739   ac_status=$?
18740   grep -v '^ *+' conftest.er1 >conftest.err
18741   rm -f conftest.er1
18742   cat conftest.err >&5
18743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); } && {
18745          test -z "$ac_c_werror_flag" ||
18746          test ! -s conftest.err
18747        } && test -s conftest.$ac_objext; then
18748   ac_lo=$ac_mid; break
18749 else
18750   $as_echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18752
18753         ac_hi=`expr '(' $ac_mid ')' - 1`
18754                         if test $ac_mid -le $ac_hi; then
18755                           ac_lo= ac_hi=
18756                           break
18757                         fi
18758                         ac_mid=`expr 2 '*' $ac_mid`
18759 fi
18760
18761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18762   done
18763 else
18764   $as_echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18766
18767         ac_lo= ac_hi=
18768 fi
18769
18770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18771 fi
18772
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774 # Binary search between lo and hi bounds.
18775 while test "x$ac_lo" != "x$ac_hi"; do
18776   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18777   cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783 $ac_includes_default
18784 int
18785 main ()
18786 {
18787 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18788 test_array [0] = 0
18789
18790   ;
18791   return 0;
18792 }
18793 _ACEOF
18794 rm -f conftest.$ac_objext
18795 if { (ac_try="$ac_compile"
18796 case "(($ac_try" in
18797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798   *) ac_try_echo=$ac_try;;
18799 esac
18800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18801 $as_echo "$ac_try_echo") >&5
18802   (eval "$ac_compile") 2>conftest.er1
18803   ac_status=$?
18804   grep -v '^ *+' conftest.er1 >conftest.err
18805   rm -f conftest.er1
18806   cat conftest.err >&5
18807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); } && {
18809          test -z "$ac_c_werror_flag" ||
18810          test ! -s conftest.err
18811        } && test -s conftest.$ac_objext; then
18812   ac_hi=$ac_mid
18813 else
18814   $as_echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817         ac_lo=`expr '(' $ac_mid ')' + 1`
18818 fi
18819
18820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18821 done
18822 case $ac_lo in
18823 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18824 '') if test "$ac_cv_type_off_t" = yes; then
18825      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18827 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18828 See \`config.log' for more details." >&5
18829 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18830 See \`config.log' for more details." >&2;}
18831    { (exit 77); exit 77; }; }; }
18832    else
18833      ac_cv_sizeof_off_t=0
18834    fi ;;
18835 esac
18836 else
18837   cat >conftest.$ac_ext <<_ACEOF
18838 /* confdefs.h.  */
18839 _ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h.  */
18843 $ac_includes_default
18844 static long int longval () { return (long int) (sizeof (off_t)); }
18845 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18846 #include <stdio.h>
18847 #include <stdlib.h>
18848 int
18849 main ()
18850 {
18851
18852   FILE *f = fopen ("conftest.val", "w");
18853   if (! f)
18854     return 1;
18855   if (((long int) (sizeof (off_t))) < 0)
18856     {
18857       long int i = longval ();
18858       if (i != ((long int) (sizeof (off_t))))
18859         return 1;
18860       fprintf (f, "%ld", i);
18861     }
18862   else
18863     {
18864       unsigned long int i = ulongval ();
18865       if (i != ((long int) (sizeof (off_t))))
18866         return 1;
18867       fprintf (f, "%lu", i);
18868     }
18869   /* Do not output a trailing newline, as this causes \r\n confusion
18870      on some platforms.  */
18871   return ferror (f) || fclose (f) != 0;
18872
18873   ;
18874   return 0;
18875 }
18876 _ACEOF
18877 rm -f conftest$ac_exeext
18878 if { (ac_try="$ac_link"
18879 case "(($ac_try" in
18880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881   *) ac_try_echo=$ac_try;;
18882 esac
18883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18884 $as_echo "$ac_try_echo") >&5
18885   (eval "$ac_link") 2>&5
18886   ac_status=$?
18887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18889   { (case "(($ac_try" in
18890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891   *) ac_try_echo=$ac_try;;
18892 esac
18893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18894 $as_echo "$ac_try_echo") >&5
18895   (eval "$ac_try") 2>&5
18896   ac_status=$?
18897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; }; then
18899   ac_cv_sizeof_off_t=`cat conftest.val`
18900 else
18901   $as_echo "$as_me: program exited with status $ac_status" >&5
18902 $as_echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905 ( exit $ac_status )
18906 if test "$ac_cv_type_off_t" = yes; then
18907      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18909 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18910 See \`config.log' for more details." >&5
18911 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18912 See \`config.log' for more details." >&2;}
18913    { (exit 77); exit 77; }; }; }
18914    else
18915      ac_cv_sizeof_off_t=0
18916    fi
18917 fi
18918 rm -rf conftest.dSYM
18919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18920 fi
18921 rm -f conftest.val
18922 fi
18923 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18924 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18925
18926
18927
18928 cat >>confdefs.h <<_ACEOF
18929 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18930 _ACEOF
18931
18932
18933
18934 # If we don't have largefile support, can't handle segsize >= 2GB.
18935 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18936    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18937 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18938    { (exit 1); exit 1; }; }
18939 fi
18940
18941
18942 ##
18943 ## Functions, global variables
18944 ##
18945
18946 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18947 $as_echo_n "checking for int timezone... " >&6; }
18948 if test "${pgac_cv_var_int_timezone+set}" = set; then
18949   $as_echo_n "(cached) " >&6
18950 else
18951   cat >conftest.$ac_ext <<_ACEOF
18952 /* confdefs.h.  */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h.  */
18957 #include <time.h>
18958 int res;
18959 int
18960 main ()
18961 {
18962 #ifndef __CYGWIN__
18963 res = timezone / 60;
18964 #else
18965 res = _timezone / 60;
18966 #endif
18967   ;
18968   return 0;
18969 }
18970 _ACEOF
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (ac_try="$ac_link"
18973 case "(($ac_try" in
18974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975   *) ac_try_echo=$ac_try;;
18976 esac
18977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18978 $as_echo "$ac_try_echo") >&5
18979   (eval "$ac_link") 2>conftest.er1
18980   ac_status=$?
18981   grep -v '^ *+' conftest.er1 >conftest.err
18982   rm -f conftest.er1
18983   cat conftest.err >&5
18984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); } && {
18986          test -z "$ac_c_werror_flag" ||
18987          test ! -s conftest.err
18988        } && test -s conftest$ac_exeext && {
18989          test "$cross_compiling" = yes ||
18990          $as_test_x conftest$ac_exeext
18991        }; then
18992   pgac_cv_var_int_timezone=yes
18993 else
18994   $as_echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18996
18997         pgac_cv_var_int_timezone=no
18998 fi
18999
19000 rm -rf conftest.dSYM
19001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19002       conftest$ac_exeext conftest.$ac_ext
19003 fi
19004 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19005 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19006 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19007
19008 cat >>confdefs.h <<\_ACEOF
19009 #define HAVE_INT_TIMEZONE /**/
19010 _ACEOF
19011
19012 fi
19013 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19014 $as_echo_n "checking types of arguments for accept()... " >&6; }
19015  if test "${ac_cv_func_accept_return+set}" = set; then
19016   $as_echo_n "(cached) " >&6
19017 else
19018    if test "${ac_cv_func_accept_arg1+set}" = set; then
19019   $as_echo_n "(cached) " >&6
19020 else
19021     if test "${ac_cv_func_accept_arg2+set}" = set; then
19022   $as_echo_n "(cached) " >&6
19023 else
19024      if test "${ac_cv_func_accept_arg3+set}" = set; then
19025   $as_echo_n "(cached) " >&6
19026 else
19027       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19028       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19029        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19030         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19031          cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h.  */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h.  */
19037 #ifdef HAVE_SYS_TYPES_H
19038 #include <sys/types.h>
19039 #endif
19040 #ifdef HAVE_SYS_SOCKET_H
19041 #include <sys/socket.h>
19042 #endif
19043 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19044 int
19045 main ()
19046 {
19047
19048   ;
19049   return 0;
19050 }
19051 _ACEOF
19052 rm -f conftest.$ac_objext
19053 if { (ac_try="$ac_compile"
19054 case "(($ac_try" in
19055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056   *) ac_try_echo=$ac_try;;
19057 esac
19058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19059 $as_echo "$ac_try_echo") >&5
19060   (eval "$ac_compile") 2>conftest.er1
19061   ac_status=$?
19062   grep -v '^ *+' conftest.er1 >conftest.err
19063   rm -f conftest.er1
19064   cat conftest.err >&5
19065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); } && {
19067          test -z "$ac_c_werror_flag" ||
19068          test ! -s conftest.err
19069        } && test -s conftest.$ac_objext; then
19070   ac_not_found=no; break 4
19071 else
19072   $as_echo "$as_me: failed program was:" >&5
19073 sed 's/^/| /' conftest.$ac_ext >&5
19074
19075         ac_not_found=yes
19076 fi
19077
19078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19079        done
19080       done
19081      done
19082     done
19083     if test "$ac_not_found" = yes; then
19084       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19085 $as_echo "$as_me: error: could not determine argument types" >&2;}
19086    { (exit 1); exit 1; }; }
19087     fi
19088     if test "$ac_cv_func_accept_arg3" = "void"; then
19089       ac_cv_func_accept_arg3=int
19090     fi
19091
19092 fi
19093
19094 fi
19095
19096 fi
19097
19098 fi
19099  { $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
19100 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19101
19102 cat >>confdefs.h <<_ACEOF
19103 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19104 _ACEOF
19105
19106
19107 cat >>confdefs.h <<_ACEOF
19108 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19109 _ACEOF
19110
19111
19112 cat >>confdefs.h <<_ACEOF
19113 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19114 _ACEOF
19115
19116
19117 cat >>confdefs.h <<_ACEOF
19118 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19119 _ACEOF
19120
19121
19122 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19123 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19124 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19125   $as_echo_n "(cached) " >&6
19126 else
19127   cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h.  */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h.  */
19133 #include <sys/time.h>
19134 int
19135 main ()
19136 {
19137 struct timeval *tp;
19138 struct timezone *tzp;
19139 gettimeofday(tp,tzp);
19140   ;
19141   return 0;
19142 }
19143 _ACEOF
19144 rm -f conftest.$ac_objext
19145 if { (ac_try="$ac_compile"
19146 case "(($ac_try" in
19147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148   *) ac_try_echo=$ac_try;;
19149 esac
19150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19151 $as_echo "$ac_try_echo") >&5
19152   (eval "$ac_compile") 2>conftest.er1
19153   ac_status=$?
19154   grep -v '^ *+' conftest.er1 >conftest.err
19155   rm -f conftest.er1
19156   cat conftest.err >&5
19157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); } && {
19159          test -z "$ac_c_werror_flag" ||
19160          test ! -s conftest.err
19161        } && test -s conftest.$ac_objext; then
19162   pgac_cv_func_gettimeofday_1arg=no
19163 else
19164   $as_echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19166
19167         pgac_cv_func_gettimeofday_1arg=yes
19168 fi
19169
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19171 fi
19172 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19173 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19174 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19175
19176 cat >>confdefs.h <<\_ACEOF
19177 #define GETTIMEOFDAY_1ARG /**/
19178 _ACEOF
19179
19180 fi
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
19207 do
19208 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19209 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19210 $as_echo_n "checking for $ac_func... " >&6; }
19211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19212   $as_echo_n "(cached) " >&6
19213 else
19214   cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h.  */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h.  */
19220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19222 #define $ac_func innocuous_$ac_func
19223
19224 /* System header to define __stub macros and hopefully few prototypes,
19225     which can conflict with char $ac_func (); below.
19226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19227     <limits.h> exists even on freestanding compilers.  */
19228
19229 #ifdef __STDC__
19230 # include <limits.h>
19231 #else
19232 # include <assert.h>
19233 #endif
19234
19235 #undef $ac_func
19236
19237 /* Override any GCC internal prototype to avoid an error.
19238    Use char because int might match the return type of a GCC
19239    builtin and then its argument prototype would still apply.  */
19240 #ifdef __cplusplus
19241 extern "C"
19242 #endif
19243 char $ac_func ();
19244 /* The GNU C library defines this for functions which it implements
19245     to always fail with ENOSYS.  Some functions are actually named
19246     something starting with __ and the normal name is an alias.  */
19247 #if defined __stub_$ac_func || defined __stub___$ac_func
19248 choke me
19249 #endif
19250
19251 int
19252 main ()
19253 {
19254 return $ac_func ();
19255   ;
19256   return 0;
19257 }
19258 _ACEOF
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (ac_try="$ac_link"
19261 case "(($ac_try" in
19262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263   *) ac_try_echo=$ac_try;;
19264 esac
19265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19266 $as_echo "$ac_try_echo") >&5
19267   (eval "$ac_link") 2>conftest.er1
19268   ac_status=$?
19269   grep -v '^ *+' conftest.er1 >conftest.err
19270   rm -f conftest.er1
19271   cat conftest.err >&5
19272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273   (exit $ac_status); } && {
19274          test -z "$ac_c_werror_flag" ||
19275          test ! -s conftest.err
19276        } && test -s conftest$ac_exeext && {
19277          test "$cross_compiling" = yes ||
19278          $as_test_x conftest$ac_exeext
19279        }; then
19280   eval "$as_ac_var=yes"
19281 else
19282   $as_echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19284
19285         eval "$as_ac_var=no"
19286 fi
19287
19288 rm -rf conftest.dSYM
19289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19290       conftest$ac_exeext conftest.$ac_ext
19291 fi
19292 ac_res=`eval 'as_val=${'$as_ac_var'}
19293                  $as_echo "$as_val"'`
19294                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19295 $as_echo "$ac_res" >&6; }
19296 as_val=`eval 'as_val=${'$as_ac_var'}
19297                  $as_echo "$as_val"'`
19298    if test "x$as_val" = x""yes; then
19299   cat >>confdefs.h <<_ACEOF
19300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19301 _ACEOF
19302
19303 fi
19304 done
19305
19306
19307
19308 for ac_func in fseeko
19309 do
19310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19311 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19312 $as_echo_n "checking for $ac_func... " >&6; }
19313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19314   $as_echo_n "(cached) " >&6
19315 else
19316   cat >conftest.$ac_ext <<_ACEOF
19317 /* confdefs.h.  */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h.  */
19322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19324 #define $ac_func innocuous_$ac_func
19325
19326 /* System header to define __stub macros and hopefully few prototypes,
19327     which can conflict with char $ac_func (); below.
19328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19329     <limits.h> exists even on freestanding compilers.  */
19330
19331 #ifdef __STDC__
19332 # include <limits.h>
19333 #else
19334 # include <assert.h>
19335 #endif
19336
19337 #undef $ac_func
19338
19339 /* Override any GCC internal prototype to avoid an error.
19340    Use char because int might match the return type of a GCC
19341    builtin and then its argument prototype would still apply.  */
19342 #ifdef __cplusplus
19343 extern "C"
19344 #endif
19345 char $ac_func ();
19346 /* The GNU C library defines this for functions which it implements
19347     to always fail with ENOSYS.  Some functions are actually named
19348     something starting with __ and the normal name is an alias.  */
19349 #if defined __stub_$ac_func || defined __stub___$ac_func
19350 choke me
19351 #endif
19352
19353 int
19354 main ()
19355 {
19356 return $ac_func ();
19357   ;
19358   return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365   *) ac_try_echo=$ac_try;;
19366 esac
19367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19368 $as_echo "$ac_try_echo") >&5
19369   (eval "$ac_link") 2>conftest.er1
19370   ac_status=$?
19371   grep -v '^ *+' conftest.er1 >conftest.err
19372   rm -f conftest.er1
19373   cat conftest.err >&5
19374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); } && {
19376          test -z "$ac_c_werror_flag" ||
19377          test ! -s conftest.err
19378        } && test -s conftest$ac_exeext && {
19379          test "$cross_compiling" = yes ||
19380          $as_test_x conftest$ac_exeext
19381        }; then
19382   eval "$as_ac_var=yes"
19383 else
19384   $as_echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19386
19387         eval "$as_ac_var=no"
19388 fi
19389
19390 rm -rf conftest.dSYM
19391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19392       conftest$ac_exeext conftest.$ac_ext
19393 fi
19394 ac_res=`eval 'as_val=${'$as_ac_var'}
19395                  $as_echo "$as_val"'`
19396                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19397 $as_echo "$ac_res" >&6; }
19398 as_val=`eval 'as_val=${'$as_ac_var'}
19399                  $as_echo "$as_val"'`
19400    if test "x$as_val" = x""yes; then
19401   cat >>confdefs.h <<_ACEOF
19402 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19403 _ACEOF
19404
19405 else
19406   case " $LIBOBJS " in
19407   *" $ac_func.$ac_objext "* ) ;;
19408   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19409  ;;
19410 esac
19411
19412 fi
19413 done
19414
19415
19416 case $host_os in
19417         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19418         # Mingw uses macros to access Win32 API calls
19419         bsdi*|netbsd*|mingw*)
19420
19421 cat >>confdefs.h <<\_ACEOF
19422 #define HAVE_FSEEKO 1
19423 _ACEOF
19424
19425                 ac_cv_func_fseeko=yes;;
19426         *)
19427                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19428 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19429 if test "${ac_cv_sys_largefile_source+set}" = set; then
19430   $as_echo_n "(cached) " >&6
19431 else
19432   while :; do
19433   cat >conftest.$ac_ext <<_ACEOF
19434 /* confdefs.h.  */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h.  */
19439 #include <sys/types.h> /* for off_t */
19440      #include <stdio.h>
19441 int
19442 main ()
19443 {
19444 int (*fp) (FILE *, off_t, int) = fseeko;
19445      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19446   ;
19447   return 0;
19448 }
19449 _ACEOF
19450 rm -f conftest.$ac_objext conftest$ac_exeext
19451 if { (ac_try="$ac_link"
19452 case "(($ac_try" in
19453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454   *) ac_try_echo=$ac_try;;
19455 esac
19456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19457 $as_echo "$ac_try_echo") >&5
19458   (eval "$ac_link") 2>conftest.er1
19459   ac_status=$?
19460   grep -v '^ *+' conftest.er1 >conftest.err
19461   rm -f conftest.er1
19462   cat conftest.err >&5
19463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464   (exit $ac_status); } && {
19465          test -z "$ac_c_werror_flag" ||
19466          test ! -s conftest.err
19467        } && test -s conftest$ac_exeext && {
19468          test "$cross_compiling" = yes ||
19469          $as_test_x conftest$ac_exeext
19470        }; then
19471   ac_cv_sys_largefile_source=no; break
19472 else
19473   $as_echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19475
19476
19477 fi
19478
19479 rm -rf conftest.dSYM
19480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19481       conftest$ac_exeext conftest.$ac_ext
19482   cat >conftest.$ac_ext <<_ACEOF
19483 /* confdefs.h.  */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h.  */
19488 #define _LARGEFILE_SOURCE 1
19489 #include <sys/types.h> /* for off_t */
19490      #include <stdio.h>
19491 int
19492 main ()
19493 {
19494 int (*fp) (FILE *, off_t, int) = fseeko;
19495      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19496   ;
19497   return 0;
19498 }
19499 _ACEOF
19500 rm -f conftest.$ac_objext conftest$ac_exeext
19501 if { (ac_try="$ac_link"
19502 case "(($ac_try" in
19503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504   *) ac_try_echo=$ac_try;;
19505 esac
19506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19507 $as_echo "$ac_try_echo") >&5
19508   (eval "$ac_link") 2>conftest.er1
19509   ac_status=$?
19510   grep -v '^ *+' conftest.er1 >conftest.err
19511   rm -f conftest.er1
19512   cat conftest.err >&5
19513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); } && {
19515          test -z "$ac_c_werror_flag" ||
19516          test ! -s conftest.err
19517        } && test -s conftest$ac_exeext && {
19518          test "$cross_compiling" = yes ||
19519          $as_test_x conftest$ac_exeext
19520        }; then
19521   ac_cv_sys_largefile_source=1; break
19522 else
19523   $as_echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526
19527 fi
19528
19529 rm -rf conftest.dSYM
19530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19531       conftest$ac_exeext conftest.$ac_ext
19532   ac_cv_sys_largefile_source=unknown
19533   break
19534 done
19535 fi
19536 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19537 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19538 case $ac_cv_sys_largefile_source in #(
19539   no | unknown) ;;
19540   *)
19541 cat >>confdefs.h <<_ACEOF
19542 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19543 _ACEOF
19544 ;;
19545 esac
19546 rm -rf conftest*
19547
19548 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19549 # in glibc 2.1.3, but that breaks too many other things.
19550 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19551 if test $ac_cv_sys_largefile_source != unknown; then
19552
19553 cat >>confdefs.h <<\_ACEOF
19554 #define HAVE_FSEEKO 1
19555 _ACEOF
19556
19557 fi
19558 ;;
19559 esac
19560
19561 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19562 # by calling it, 2009-04-02
19563 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19564 if test "$PORTNAME" != "solaris"; then
19565
19566 for ac_func in posix_fadvise
19567 do
19568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19569 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19570 $as_echo_n "checking for $ac_func... " >&6; }
19571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19572   $as_echo_n "(cached) " >&6
19573 else
19574   cat >conftest.$ac_ext <<_ACEOF
19575 /* confdefs.h.  */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h.  */
19580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19582 #define $ac_func innocuous_$ac_func
19583
19584 /* System header to define __stub macros and hopefully few prototypes,
19585     which can conflict with char $ac_func (); below.
19586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19587     <limits.h> exists even on freestanding compilers.  */
19588
19589 #ifdef __STDC__
19590 # include <limits.h>
19591 #else
19592 # include <assert.h>
19593 #endif
19594
19595 #undef $ac_func
19596
19597 /* Override any GCC internal prototype to avoid an error.
19598    Use char because int might match the return type of a GCC
19599    builtin and then its argument prototype would still apply.  */
19600 #ifdef __cplusplus
19601 extern "C"
19602 #endif
19603 char $ac_func ();
19604 /* The GNU C library defines this for functions which it implements
19605     to always fail with ENOSYS.  Some functions are actually named
19606     something starting with __ and the normal name is an alias.  */
19607 #if defined __stub_$ac_func || defined __stub___$ac_func
19608 choke me
19609 #endif
19610
19611 int
19612 main ()
19613 {
19614 return $ac_func ();
19615   ;
19616   return 0;
19617 }
19618 _ACEOF
19619 rm -f conftest.$ac_objext conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623   *) ac_try_echo=$ac_try;;
19624 esac
19625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19626 $as_echo "$ac_try_echo") >&5
19627   (eval "$ac_link") 2>conftest.er1
19628   ac_status=$?
19629   grep -v '^ *+' conftest.er1 >conftest.err
19630   rm -f conftest.er1
19631   cat conftest.err >&5
19632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); } && {
19634          test -z "$ac_c_werror_flag" ||
19635          test ! -s conftest.err
19636        } && test -s conftest$ac_exeext && {
19637          test "$cross_compiling" = yes ||
19638          $as_test_x conftest$ac_exeext
19639        }; then
19640   eval "$as_ac_var=yes"
19641 else
19642   $as_echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19644
19645         eval "$as_ac_var=no"
19646 fi
19647
19648 rm -rf conftest.dSYM
19649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19650       conftest$ac_exeext conftest.$ac_ext
19651 fi
19652 ac_res=`eval 'as_val=${'$as_ac_var'}
19653                  $as_echo "$as_val"'`
19654                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19655 $as_echo "$ac_res" >&6; }
19656 as_val=`eval 'as_val=${'$as_ac_var'}
19657                  $as_echo "$as_val"'`
19658    if test "x$as_val" = x""yes; then
19659   cat >>confdefs.h <<_ACEOF
19660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19661 _ACEOF
19662
19663 fi
19664 done
19665
19666 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19667 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19668 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19669   $as_echo_n "(cached) " >&6
19670 else
19671   cat >conftest.$ac_ext <<_ACEOF
19672 /* confdefs.h.  */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h.  */
19677 #include <fcntl.h>
19678
19679 int
19680 main ()
19681 {
19682 #ifndef posix_fadvise
19683   (void) posix_fadvise;
19684 #endif
19685
19686   ;
19687   return 0;
19688 }
19689 _ACEOF
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694   *) ac_try_echo=$ac_try;;
19695 esac
19696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19697 $as_echo "$ac_try_echo") >&5
19698   (eval "$ac_compile") 2>conftest.er1
19699   ac_status=$?
19700   grep -v '^ *+' conftest.er1 >conftest.err
19701   rm -f conftest.er1
19702   cat conftest.err >&5
19703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); } && {
19705          test -z "$ac_c_werror_flag" ||
19706          test ! -s conftest.err
19707        } && test -s conftest.$ac_objext; then
19708   ac_cv_have_decl_posix_fadvise=yes
19709 else
19710   $as_echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19712
19713         ac_cv_have_decl_posix_fadvise=no
19714 fi
19715
19716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717 fi
19718 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19719 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19720 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19721
19722 cat >>confdefs.h <<_ACEOF
19723 #define HAVE_DECL_POSIX_FADVISE 1
19724 _ACEOF
19725
19726
19727 else
19728   cat >>confdefs.h <<_ACEOF
19729 #define HAVE_DECL_POSIX_FADVISE 0
19730 _ACEOF
19731
19732
19733 fi
19734
19735
19736 fi
19737
19738 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19739 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19740 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19741   $as_echo_n "(cached) " >&6
19742 else
19743   cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h.  */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h.  */
19749 #include <unistd.h>
19750
19751 int
19752 main ()
19753 {
19754 #ifndef fdatasync
19755   (void) fdatasync;
19756 #endif
19757
19758   ;
19759   return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766   *) ac_try_echo=$ac_try;;
19767 esac
19768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19769 $as_echo "$ac_try_echo") >&5
19770   (eval "$ac_compile") 2>conftest.er1
19771   ac_status=$?
19772   grep -v '^ *+' conftest.er1 >conftest.err
19773   rm -f conftest.er1
19774   cat conftest.err >&5
19775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); } && {
19777          test -z "$ac_c_werror_flag" ||
19778          test ! -s conftest.err
19779        } && test -s conftest.$ac_objext; then
19780   ac_cv_have_decl_fdatasync=yes
19781 else
19782   $as_echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785         ac_cv_have_decl_fdatasync=no
19786 fi
19787
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19789 fi
19790 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19791 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19792 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19793
19794 cat >>confdefs.h <<_ACEOF
19795 #define HAVE_DECL_FDATASYNC 1
19796 _ACEOF
19797
19798
19799 else
19800   cat >>confdefs.h <<_ACEOF
19801 #define HAVE_DECL_FDATASYNC 0
19802 _ACEOF
19803
19804
19805 fi
19806
19807
19808 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19809 $as_echo_n "checking whether strlcat is declared... " >&6; }
19810 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19811   $as_echo_n "(cached) " >&6
19812 else
19813   cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h.  */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h.  */
19819 $ac_includes_default
19820 int
19821 main ()
19822 {
19823 #ifndef strlcat
19824   (void) strlcat;
19825 #endif
19826
19827   ;
19828   return 0;
19829 }
19830 _ACEOF
19831 rm -f conftest.$ac_objext
19832 if { (ac_try="$ac_compile"
19833 case "(($ac_try" in
19834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835   *) ac_try_echo=$ac_try;;
19836 esac
19837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19838 $as_echo "$ac_try_echo") >&5
19839   (eval "$ac_compile") 2>conftest.er1
19840   ac_status=$?
19841   grep -v '^ *+' conftest.er1 >conftest.err
19842   rm -f conftest.er1
19843   cat conftest.err >&5
19844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); } && {
19846          test -z "$ac_c_werror_flag" ||
19847          test ! -s conftest.err
19848        } && test -s conftest.$ac_objext; then
19849   ac_cv_have_decl_strlcat=yes
19850 else
19851   $as_echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854         ac_cv_have_decl_strlcat=no
19855 fi
19856
19857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19858 fi
19859 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19860 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19861 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19862
19863 cat >>confdefs.h <<_ACEOF
19864 #define HAVE_DECL_STRLCAT 1
19865 _ACEOF
19866
19867
19868 else
19869   cat >>confdefs.h <<_ACEOF
19870 #define HAVE_DECL_STRLCAT 0
19871 _ACEOF
19872
19873
19874 fi
19875 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19876 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19877 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19878   $as_echo_n "(cached) " >&6
19879 else
19880   cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h.  */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h.  */
19886 $ac_includes_default
19887 int
19888 main ()
19889 {
19890 #ifndef strlcpy
19891   (void) strlcpy;
19892 #endif
19893
19894   ;
19895   return 0;
19896 }
19897 _ACEOF
19898 rm -f conftest.$ac_objext
19899 if { (ac_try="$ac_compile"
19900 case "(($ac_try" in
19901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902   *) ac_try_echo=$ac_try;;
19903 esac
19904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19905 $as_echo "$ac_try_echo") >&5
19906   (eval "$ac_compile") 2>conftest.er1
19907   ac_status=$?
19908   grep -v '^ *+' conftest.er1 >conftest.err
19909   rm -f conftest.er1
19910   cat conftest.err >&5
19911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912   (exit $ac_status); } && {
19913          test -z "$ac_c_werror_flag" ||
19914          test ! -s conftest.err
19915        } && test -s conftest.$ac_objext; then
19916   ac_cv_have_decl_strlcpy=yes
19917 else
19918   $as_echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19920
19921         ac_cv_have_decl_strlcpy=no
19922 fi
19923
19924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925 fi
19926 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19927 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19928 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19929
19930 cat >>confdefs.h <<_ACEOF
19931 #define HAVE_DECL_STRLCPY 1
19932 _ACEOF
19933
19934
19935 else
19936   cat >>confdefs.h <<_ACEOF
19937 #define HAVE_DECL_STRLCPY 0
19938 _ACEOF
19939
19940
19941 fi
19942
19943
19944 # This is probably only present on Darwin, but may as well check always
19945 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19946 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19947 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19948   $as_echo_n "(cached) " >&6
19949 else
19950   cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h.  */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h.  */
19956 #include <fcntl.h>
19957
19958 int
19959 main ()
19960 {
19961 #ifndef F_FULLFSYNC
19962   (void) F_FULLFSYNC;
19963 #endif
19964
19965   ;
19966   return 0;
19967 }
19968 _ACEOF
19969 rm -f conftest.$ac_objext
19970 if { (ac_try="$ac_compile"
19971 case "(($ac_try" in
19972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973   *) ac_try_echo=$ac_try;;
19974 esac
19975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19976 $as_echo "$ac_try_echo") >&5
19977   (eval "$ac_compile") 2>conftest.er1
19978   ac_status=$?
19979   grep -v '^ *+' conftest.er1 >conftest.err
19980   rm -f conftest.er1
19981   cat conftest.err >&5
19982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983   (exit $ac_status); } && {
19984          test -z "$ac_c_werror_flag" ||
19985          test ! -s conftest.err
19986        } && test -s conftest.$ac_objext; then
19987   ac_cv_have_decl_F_FULLFSYNC=yes
19988 else
19989   $as_echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19991
19992         ac_cv_have_decl_F_FULLFSYNC=no
19993 fi
19994
19995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19996 fi
19997 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19998 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19999 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20000
20001 cat >>confdefs.h <<_ACEOF
20002 #define HAVE_DECL_F_FULLFSYNC 1
20003 _ACEOF
20004
20005
20006 else
20007   cat >>confdefs.h <<_ACEOF
20008 #define HAVE_DECL_F_FULLFSYNC 0
20009 _ACEOF
20010
20011
20012 fi
20013
20014
20015
20016 HAVE_IPV6=no
20017 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20018 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20019 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20020   $as_echo_n "(cached) " >&6
20021 else
20022   ac_cv_type_struct_sockaddr_in6=no
20023 cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h.  */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h.  */
20029 $ac_includes_default
20030 #include <netinet/in.h>
20031
20032 int
20033 main ()
20034 {
20035 if (sizeof (struct sockaddr_in6))
20036        return 0;
20037   ;
20038   return 0;
20039 }
20040 _ACEOF
20041 rm -f conftest.$ac_objext
20042 if { (ac_try="$ac_compile"
20043 case "(($ac_try" in
20044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045   *) ac_try_echo=$ac_try;;
20046 esac
20047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20048 $as_echo "$ac_try_echo") >&5
20049   (eval "$ac_compile") 2>conftest.er1
20050   ac_status=$?
20051   grep -v '^ *+' conftest.er1 >conftest.err
20052   rm -f conftest.er1
20053   cat conftest.err >&5
20054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); } && {
20056          test -z "$ac_c_werror_flag" ||
20057          test ! -s conftest.err
20058        } && test -s conftest.$ac_objext; then
20059   cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h.  */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h.  */
20065 $ac_includes_default
20066 #include <netinet/in.h>
20067
20068 int
20069 main ()
20070 {
20071 if (sizeof ((struct sockaddr_in6)))
20072           return 0;
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 rm -f conftest.$ac_objext
20078 if { (ac_try="$ac_compile"
20079 case "(($ac_try" in
20080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081   *) ac_try_echo=$ac_try;;
20082 esac
20083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20084 $as_echo "$ac_try_echo") >&5
20085   (eval "$ac_compile") 2>conftest.er1
20086   ac_status=$?
20087   grep -v '^ *+' conftest.er1 >conftest.err
20088   rm -f conftest.er1
20089   cat conftest.err >&5
20090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091   (exit $ac_status); } && {
20092          test -z "$ac_c_werror_flag" ||
20093          test ! -s conftest.err
20094        } && test -s conftest.$ac_objext; then
20095   :
20096 else
20097   $as_echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20099
20100         ac_cv_type_struct_sockaddr_in6=yes
20101 fi
20102
20103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20104 else
20105   $as_echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20107
20108
20109 fi
20110
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112 fi
20113 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20114 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20115 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20116
20117 cat >>confdefs.h <<\_ACEOF
20118 #define HAVE_IPV6 1
20119 _ACEOF
20120
20121          HAVE_IPV6=yes
20122 fi
20123
20124
20125
20126 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20127 $as_echo_n "checking for PS_STRINGS... " >&6; }
20128 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20129   $as_echo_n "(cached) " >&6
20130 else
20131   cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h.  */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h.  */
20137 #include <machine/vmparam.h>
20138 #include <sys/exec.h>
20139
20140 int
20141 main ()
20142 {
20143 PS_STRINGS->ps_nargvstr = 1;
20144 PS_STRINGS->ps_argvstr = "foo";
20145   ;
20146   return 0;
20147 }
20148 _ACEOF
20149 rm -f conftest.$ac_objext conftest$ac_exeext
20150 if { (ac_try="$ac_link"
20151 case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20156 $as_echo "$ac_try_echo") >&5
20157   (eval "$ac_link") 2>conftest.er1
20158   ac_status=$?
20159   grep -v '^ *+' conftest.er1 >conftest.err
20160   rm -f conftest.er1
20161   cat conftest.err >&5
20162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); } && {
20164          test -z "$ac_c_werror_flag" ||
20165          test ! -s conftest.err
20166        } && test -s conftest$ac_exeext && {
20167          test "$cross_compiling" = yes ||
20168          $as_test_x conftest$ac_exeext
20169        }; then
20170   pgac_cv_var_PS_STRINGS=yes
20171 else
20172   $as_echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20174
20175         pgac_cv_var_PS_STRINGS=no
20176 fi
20177
20178 rm -rf conftest.dSYM
20179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20180       conftest$ac_exeext conftest.$ac_ext
20181 fi
20182 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20183 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20184 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20185
20186 cat >>confdefs.h <<\_ACEOF
20187 #define HAVE_PS_STRINGS /**/
20188 _ACEOF
20189
20190 fi
20191
20192
20193 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20194 # is missing.  Yes, there are machines that have only one.  We may
20195 # also decide to use snprintf.c if snprintf() is present but does not
20196 # have all the features we need --- see below.
20197
20198 if test "$PORTNAME" = "win32"; then
20199   # Win32 gets snprintf.c built unconditionally.
20200   #
20201   # To properly translate all NLS languages strings, we must support the
20202   # *printf() %$ format, which allows *printf() arguments to be selected
20203   # by position in the translated string.
20204   #
20205   # libintl versions < 0.13 use the native *printf() functions, and Win32
20206   # *printf() doesn't understand %$, so we must use our /port versions,
20207   # which do understand %$. libintl versions >= 0.13 include their own
20208   # *printf versions on Win32.  The libintl 0.13 release note text is:
20209   #
20210   #   C format strings with positions, as they arise when a translator
20211   #   needs to reorder a sentence, are now supported on all platforms.
20212   #   On those few platforms (NetBSD and Woe32) for which the native
20213   #   printf()/fprintf()/... functions don't support such format
20214   #   strings, replacements are provided through <libintl.h>.
20215   #
20216   # We could use libintl >= 0.13's *printf() if we were sure that we had
20217   # a litint >= 0.13 at runtime, but seeing that there is no clean way
20218   # to guarantee that, it is best to just use our own, so we are sure to
20219   # get %$ support. In include/port.h we disable the *printf() macros
20220   # that might have been defined by libintl.
20221   #
20222   # We do this unconditionally whether NLS is used or not so we are sure
20223   # that all Win32 libraries and binaries behave the same.
20224   pgac_need_repl_snprintf=yes
20225 else
20226   pgac_need_repl_snprintf=no
20227
20228 for ac_func in snprintf
20229 do
20230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20231 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20232 $as_echo_n "checking for $ac_func... " >&6; }
20233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20234   $as_echo_n "(cached) " >&6
20235 else
20236   cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h.  */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h.  */
20242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20244 #define $ac_func innocuous_$ac_func
20245
20246 /* System header to define __stub macros and hopefully few prototypes,
20247     which can conflict with char $ac_func (); below.
20248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20249     <limits.h> exists even on freestanding compilers.  */
20250
20251 #ifdef __STDC__
20252 # include <limits.h>
20253 #else
20254 # include <assert.h>
20255 #endif
20256
20257 #undef $ac_func
20258
20259 /* Override any GCC internal prototype to avoid an error.
20260    Use char because int might match the return type of a GCC
20261    builtin and then its argument prototype would still apply.  */
20262 #ifdef __cplusplus
20263 extern "C"
20264 #endif
20265 char $ac_func ();
20266 /* The GNU C library defines this for functions which it implements
20267     to always fail with ENOSYS.  Some functions are actually named
20268     something starting with __ and the normal name is an alias.  */
20269 #if defined __stub_$ac_func || defined __stub___$ac_func
20270 choke me
20271 #endif
20272
20273 int
20274 main ()
20275 {
20276 return $ac_func ();
20277   ;
20278   return 0;
20279 }
20280 _ACEOF
20281 rm -f conftest.$ac_objext conftest$ac_exeext
20282 if { (ac_try="$ac_link"
20283 case "(($ac_try" in
20284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285   *) ac_try_echo=$ac_try;;
20286 esac
20287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20288 $as_echo "$ac_try_echo") >&5
20289   (eval "$ac_link") 2>conftest.er1
20290   ac_status=$?
20291   grep -v '^ *+' conftest.er1 >conftest.err
20292   rm -f conftest.er1
20293   cat conftest.err >&5
20294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); } && {
20296          test -z "$ac_c_werror_flag" ||
20297          test ! -s conftest.err
20298        } && test -s conftest$ac_exeext && {
20299          test "$cross_compiling" = yes ||
20300          $as_test_x conftest$ac_exeext
20301        }; then
20302   eval "$as_ac_var=yes"
20303 else
20304   $as_echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20306
20307         eval "$as_ac_var=no"
20308 fi
20309
20310 rm -rf conftest.dSYM
20311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20312       conftest$ac_exeext conftest.$ac_ext
20313 fi
20314 ac_res=`eval 'as_val=${'$as_ac_var'}
20315                  $as_echo "$as_val"'`
20316                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20317 $as_echo "$ac_res" >&6; }
20318 as_val=`eval 'as_val=${'$as_ac_var'}
20319                  $as_echo "$as_val"'`
20320    if test "x$as_val" = x""yes; then
20321   cat >>confdefs.h <<_ACEOF
20322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20323 _ACEOF
20324
20325 else
20326   pgac_need_repl_snprintf=yes
20327 fi
20328 done
20329
20330
20331 for ac_func in vsnprintf
20332 do
20333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20334 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20335 $as_echo_n "checking for $ac_func... " >&6; }
20336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20337   $as_echo_n "(cached) " >&6
20338 else
20339   cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h.  */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h.  */
20345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20347 #define $ac_func innocuous_$ac_func
20348
20349 /* System header to define __stub macros and hopefully few prototypes,
20350     which can conflict with char $ac_func (); below.
20351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20352     <limits.h> exists even on freestanding compilers.  */
20353
20354 #ifdef __STDC__
20355 # include <limits.h>
20356 #else
20357 # include <assert.h>
20358 #endif
20359
20360 #undef $ac_func
20361
20362 /* Override any GCC internal prototype to avoid an error.
20363    Use char because int might match the return type of a GCC
20364    builtin and then its argument prototype would still apply.  */
20365 #ifdef __cplusplus
20366 extern "C"
20367 #endif
20368 char $ac_func ();
20369 /* The GNU C library defines this for functions which it implements
20370     to always fail with ENOSYS.  Some functions are actually named
20371     something starting with __ and the normal name is an alias.  */
20372 #if defined __stub_$ac_func || defined __stub___$ac_func
20373 choke me
20374 #endif
20375
20376 int
20377 main ()
20378 {
20379 return $ac_func ();
20380   ;
20381   return 0;
20382 }
20383 _ACEOF
20384 rm -f conftest.$ac_objext conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20391 $as_echo "$ac_try_echo") >&5
20392   (eval "$ac_link") 2>conftest.er1
20393   ac_status=$?
20394   grep -v '^ *+' conftest.er1 >conftest.err
20395   rm -f conftest.er1
20396   cat conftest.err >&5
20397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); } && {
20399          test -z "$ac_c_werror_flag" ||
20400          test ! -s conftest.err
20401        } && test -s conftest$ac_exeext && {
20402          test "$cross_compiling" = yes ||
20403          $as_test_x conftest$ac_exeext
20404        }; then
20405   eval "$as_ac_var=yes"
20406 else
20407   $as_echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410         eval "$as_ac_var=no"
20411 fi
20412
20413 rm -rf conftest.dSYM
20414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20415       conftest$ac_exeext conftest.$ac_ext
20416 fi
20417 ac_res=`eval 'as_val=${'$as_ac_var'}
20418                  $as_echo "$as_val"'`
20419                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20420 $as_echo "$ac_res" >&6; }
20421 as_val=`eval 'as_val=${'$as_ac_var'}
20422                  $as_echo "$as_val"'`
20423    if test "x$as_val" = x""yes; then
20424   cat >>confdefs.h <<_ACEOF
20425 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20426 _ACEOF
20427
20428 else
20429   pgac_need_repl_snprintf=yes
20430 fi
20431 done
20432
20433 fi
20434
20435
20436 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20437 # include/c.h will provide declarations.  Note this is a separate test
20438 # from whether the functions exist in the C library --- there are
20439 # systems that have the functions but don't bother to declare them :-(
20440
20441 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20442 $as_echo_n "checking whether snprintf is declared... " >&6; }
20443 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20444   $as_echo_n "(cached) " >&6
20445 else
20446   cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452 $ac_includes_default
20453 int
20454 main ()
20455 {
20456 #ifndef snprintf
20457   (void) snprintf;
20458 #endif
20459
20460   ;
20461   return 0;
20462 }
20463 _ACEOF
20464 rm -f conftest.$ac_objext
20465 if { (ac_try="$ac_compile"
20466 case "(($ac_try" in
20467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468   *) ac_try_echo=$ac_try;;
20469 esac
20470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20471 $as_echo "$ac_try_echo") >&5
20472   (eval "$ac_compile") 2>conftest.er1
20473   ac_status=$?
20474   grep -v '^ *+' conftest.er1 >conftest.err
20475   rm -f conftest.er1
20476   cat conftest.err >&5
20477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); } && {
20479          test -z "$ac_c_werror_flag" ||
20480          test ! -s conftest.err
20481        } && test -s conftest.$ac_objext; then
20482   ac_cv_have_decl_snprintf=yes
20483 else
20484   $as_echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20486
20487         ac_cv_have_decl_snprintf=no
20488 fi
20489
20490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20491 fi
20492 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20493 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20494 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20495
20496 cat >>confdefs.h <<_ACEOF
20497 #define HAVE_DECL_SNPRINTF 1
20498 _ACEOF
20499
20500
20501 else
20502   cat >>confdefs.h <<_ACEOF
20503 #define HAVE_DECL_SNPRINTF 0
20504 _ACEOF
20505
20506
20507 fi
20508 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20509 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20510 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20511   $as_echo_n "(cached) " >&6
20512 else
20513   cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h.  */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h.  */
20519 $ac_includes_default
20520 int
20521 main ()
20522 {
20523 #ifndef vsnprintf
20524   (void) vsnprintf;
20525 #endif
20526
20527   ;
20528   return 0;
20529 }
20530 _ACEOF
20531 rm -f conftest.$ac_objext
20532 if { (ac_try="$ac_compile"
20533 case "(($ac_try" in
20534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535   *) ac_try_echo=$ac_try;;
20536 esac
20537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20538 $as_echo "$ac_try_echo") >&5
20539   (eval "$ac_compile") 2>conftest.er1
20540   ac_status=$?
20541   grep -v '^ *+' conftest.er1 >conftest.err
20542   rm -f conftest.er1
20543   cat conftest.err >&5
20544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); } && {
20546          test -z "$ac_c_werror_flag" ||
20547          test ! -s conftest.err
20548        } && test -s conftest.$ac_objext; then
20549   ac_cv_have_decl_vsnprintf=yes
20550 else
20551   $as_echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554         ac_cv_have_decl_vsnprintf=no
20555 fi
20556
20557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20558 fi
20559 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20560 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20561 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20562
20563 cat >>confdefs.h <<_ACEOF
20564 #define HAVE_DECL_VSNPRINTF 1
20565 _ACEOF
20566
20567
20568 else
20569   cat >>confdefs.h <<_ACEOF
20570 #define HAVE_DECL_VSNPRINTF 0
20571 _ACEOF
20572
20573
20574 fi
20575
20576
20577
20578
20579 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20580 $as_echo_n "checking for isinf... " >&6; }
20581 if test "${ac_cv_func_isinf+set}" = set; then
20582   $as_echo_n "(cached) " >&6
20583 else
20584   cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h.  */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h.  */
20590
20591 #include <math.h>
20592 double glob_double;
20593
20594 int
20595 main ()
20596 {
20597 return isinf(glob_double) ? 0 : 1;
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (ac_try="$ac_link"
20604 case "(($ac_try" in
20605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606   *) ac_try_echo=$ac_try;;
20607 esac
20608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20609 $as_echo "$ac_try_echo") >&5
20610   (eval "$ac_link") 2>conftest.er1
20611   ac_status=$?
20612   grep -v '^ *+' conftest.er1 >conftest.err
20613   rm -f conftest.er1
20614   cat conftest.err >&5
20615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); } && {
20617          test -z "$ac_c_werror_flag" ||
20618          test ! -s conftest.err
20619        } && test -s conftest$ac_exeext && {
20620          test "$cross_compiling" = yes ||
20621          $as_test_x conftest$ac_exeext
20622        }; then
20623   ac_cv_func_isinf=yes
20624 else
20625   $as_echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20627
20628         ac_cv_func_isinf=no
20629 fi
20630
20631 rm -rf conftest.dSYM
20632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20633       conftest$ac_exeext conftest.$ac_ext
20634 fi
20635 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20636 $as_echo "$ac_cv_func_isinf" >&6; }
20637
20638 if test $ac_cv_func_isinf = yes ; then
20639
20640 cat >>confdefs.h <<\_ACEOF
20641 #define HAVE_ISINF 1
20642 _ACEOF
20643
20644 else
20645   case " $LIBOBJS " in
20646   *" isinf.$ac_objext "* ) ;;
20647   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20648  ;;
20649 esac
20650
20651   # Look for a way to implement a substitute for isinf()
20652
20653
20654
20655
20656 for ac_func in fpclass fp_class fp_class_d class
20657 do
20658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20659 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20660 $as_echo_n "checking for $ac_func... " >&6; }
20661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20662   $as_echo_n "(cached) " >&6
20663 else
20664   cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h.  */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h.  */
20670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20672 #define $ac_func innocuous_$ac_func
20673
20674 /* System header to define __stub macros and hopefully few prototypes,
20675     which can conflict with char $ac_func (); below.
20676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20677     <limits.h> exists even on freestanding compilers.  */
20678
20679 #ifdef __STDC__
20680 # include <limits.h>
20681 #else
20682 # include <assert.h>
20683 #endif
20684
20685 #undef $ac_func
20686
20687 /* Override any GCC internal prototype to avoid an error.
20688    Use char because int might match the return type of a GCC
20689    builtin and then its argument prototype would still apply.  */
20690 #ifdef __cplusplus
20691 extern "C"
20692 #endif
20693 char $ac_func ();
20694 /* The GNU C library defines this for functions which it implements
20695     to always fail with ENOSYS.  Some functions are actually named
20696     something starting with __ and the normal name is an alias.  */
20697 #if defined __stub_$ac_func || defined __stub___$ac_func
20698 choke me
20699 #endif
20700
20701 int
20702 main ()
20703 {
20704 return $ac_func ();
20705   ;
20706   return 0;
20707 }
20708 _ACEOF
20709 rm -f conftest.$ac_objext conftest$ac_exeext
20710 if { (ac_try="$ac_link"
20711 case "(($ac_try" in
20712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713   *) ac_try_echo=$ac_try;;
20714 esac
20715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20716 $as_echo "$ac_try_echo") >&5
20717   (eval "$ac_link") 2>conftest.er1
20718   ac_status=$?
20719   grep -v '^ *+' conftest.er1 >conftest.err
20720   rm -f conftest.er1
20721   cat conftest.err >&5
20722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); } && {
20724          test -z "$ac_c_werror_flag" ||
20725          test ! -s conftest.err
20726        } && test -s conftest$ac_exeext && {
20727          test "$cross_compiling" = yes ||
20728          $as_test_x conftest$ac_exeext
20729        }; then
20730   eval "$as_ac_var=yes"
20731 else
20732   $as_echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20734
20735         eval "$as_ac_var=no"
20736 fi
20737
20738 rm -rf conftest.dSYM
20739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20740       conftest$ac_exeext conftest.$ac_ext
20741 fi
20742 ac_res=`eval 'as_val=${'$as_ac_var'}
20743                  $as_echo "$as_val"'`
20744                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20745 $as_echo "$ac_res" >&6; }
20746 as_val=`eval 'as_val=${'$as_ac_var'}
20747                  $as_echo "$as_val"'`
20748    if test "x$as_val" = x""yes; then
20749   cat >>confdefs.h <<_ACEOF
20750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20751 _ACEOF
20752  break
20753 fi
20754 done
20755
20756 fi
20757
20758 # Some versions of libedit contain strlcpy(); so disregard that library while
20759 # checking for these standard libc functions.
20760 pgac_save_LIBS="$LIBS"
20761 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20777 do
20778 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20779 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20780 $as_echo_n "checking for $ac_func... " >&6; }
20781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20782   $as_echo_n "(cached) " >&6
20783 else
20784   cat >conftest.$ac_ext <<_ACEOF
20785 /* confdefs.h.  */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h.  */
20790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20792 #define $ac_func innocuous_$ac_func
20793
20794 /* System header to define __stub macros and hopefully few prototypes,
20795     which can conflict with char $ac_func (); below.
20796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20797     <limits.h> exists even on freestanding compilers.  */
20798
20799 #ifdef __STDC__
20800 # include <limits.h>
20801 #else
20802 # include <assert.h>
20803 #endif
20804
20805 #undef $ac_func
20806
20807 /* Override any GCC internal prototype to avoid an error.
20808    Use char because int might match the return type of a GCC
20809    builtin and then its argument prototype would still apply.  */
20810 #ifdef __cplusplus
20811 extern "C"
20812 #endif
20813 char $ac_func ();
20814 /* The GNU C library defines this for functions which it implements
20815     to always fail with ENOSYS.  Some functions are actually named
20816     something starting with __ and the normal name is an alias.  */
20817 #if defined __stub_$ac_func || defined __stub___$ac_func
20818 choke me
20819 #endif
20820
20821 int
20822 main ()
20823 {
20824 return $ac_func ();
20825   ;
20826   return 0;
20827 }
20828 _ACEOF
20829 rm -f conftest.$ac_objext conftest$ac_exeext
20830 if { (ac_try="$ac_link"
20831 case "(($ac_try" in
20832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833   *) ac_try_echo=$ac_try;;
20834 esac
20835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20836 $as_echo "$ac_try_echo") >&5
20837   (eval "$ac_link") 2>conftest.er1
20838   ac_status=$?
20839   grep -v '^ *+' conftest.er1 >conftest.err
20840   rm -f conftest.er1
20841   cat conftest.err >&5
20842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); } && {
20844          test -z "$ac_c_werror_flag" ||
20845          test ! -s conftest.err
20846        } && test -s conftest$ac_exeext && {
20847          test "$cross_compiling" = yes ||
20848          $as_test_x conftest$ac_exeext
20849        }; then
20850   eval "$as_ac_var=yes"
20851 else
20852   $as_echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855         eval "$as_ac_var=no"
20856 fi
20857
20858 rm -rf conftest.dSYM
20859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20860       conftest$ac_exeext conftest.$ac_ext
20861 fi
20862 ac_res=`eval 'as_val=${'$as_ac_var'}
20863                  $as_echo "$as_val"'`
20864                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20865 $as_echo "$ac_res" >&6; }
20866 as_val=`eval 'as_val=${'$as_ac_var'}
20867                  $as_echo "$as_val"'`
20868    if test "x$as_val" = x""yes; then
20869   cat >>confdefs.h <<_ACEOF
20870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20871 _ACEOF
20872
20873 else
20874   case " $LIBOBJS " in
20875   *" $ac_func.$ac_objext "* ) ;;
20876   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20877  ;;
20878 esac
20879
20880 fi
20881 done
20882
20883
20884
20885 case $host_os in
20886
20887         # Windows uses a specialised env handler
20888         # and doesn't need a replacement getpeereid because it doesn't use
20889         # Unix sockets.
20890         mingw*)
20891
20892 cat >>confdefs.h <<\_ACEOF
20893 #define HAVE_UNSETENV 1
20894 _ACEOF
20895
20896
20897 cat >>confdefs.h <<\_ACEOF
20898 #define HAVE_GETPEEREID 1
20899 _ACEOF
20900
20901                 ac_cv_func_unsetenv=yes
20902                 ac_cv_func_getpeereid=yes;;
20903         *)
20904
20905
20906 for ac_func in unsetenv getpeereid
20907 do
20908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20909 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20910 $as_echo_n "checking for $ac_func... " >&6; }
20911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20912   $as_echo_n "(cached) " >&6
20913 else
20914   cat >conftest.$ac_ext <<_ACEOF
20915 /* confdefs.h.  */
20916 _ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h.  */
20920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20922 #define $ac_func innocuous_$ac_func
20923
20924 /* System header to define __stub macros and hopefully few prototypes,
20925     which can conflict with char $ac_func (); below.
20926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20927     <limits.h> exists even on freestanding compilers.  */
20928
20929 #ifdef __STDC__
20930 # include <limits.h>
20931 #else
20932 # include <assert.h>
20933 #endif
20934
20935 #undef $ac_func
20936
20937 /* Override any GCC internal prototype to avoid an error.
20938    Use char because int might match the return type of a GCC
20939    builtin and then its argument prototype would still apply.  */
20940 #ifdef __cplusplus
20941 extern "C"
20942 #endif
20943 char $ac_func ();
20944 /* The GNU C library defines this for functions which it implements
20945     to always fail with ENOSYS.  Some functions are actually named
20946     something starting with __ and the normal name is an alias.  */
20947 #if defined __stub_$ac_func || defined __stub___$ac_func
20948 choke me
20949 #endif
20950
20951 int
20952 main ()
20953 {
20954 return $ac_func ();
20955   ;
20956   return 0;
20957 }
20958 _ACEOF
20959 rm -f conftest.$ac_objext conftest$ac_exeext
20960 if { (ac_try="$ac_link"
20961 case "(($ac_try" in
20962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963   *) ac_try_echo=$ac_try;;
20964 esac
20965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20966 $as_echo "$ac_try_echo") >&5
20967   (eval "$ac_link") 2>conftest.er1
20968   ac_status=$?
20969   grep -v '^ *+' conftest.er1 >conftest.err
20970   rm -f conftest.er1
20971   cat conftest.err >&5
20972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); } && {
20974          test -z "$ac_c_werror_flag" ||
20975          test ! -s conftest.err
20976        } && test -s conftest$ac_exeext && {
20977          test "$cross_compiling" = yes ||
20978          $as_test_x conftest$ac_exeext
20979        }; then
20980   eval "$as_ac_var=yes"
20981 else
20982   $as_echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20984
20985         eval "$as_ac_var=no"
20986 fi
20987
20988 rm -rf conftest.dSYM
20989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20990       conftest$ac_exeext conftest.$ac_ext
20991 fi
20992 ac_res=`eval 'as_val=${'$as_ac_var'}
20993                  $as_echo "$as_val"'`
20994                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20995 $as_echo "$ac_res" >&6; }
20996 as_val=`eval 'as_val=${'$as_ac_var'}
20997                  $as_echo "$as_val"'`
20998    if test "x$as_val" = x""yes; then
20999   cat >>confdefs.h <<_ACEOF
21000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21001 _ACEOF
21002
21003 else
21004   case " $LIBOBJS " in
21005   *" $ac_func.$ac_objext "* ) ;;
21006   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21007  ;;
21008 esac
21009
21010 fi
21011 done
21012
21013
21014                 ;;
21015 esac
21016
21017
21018 LIBS="$pgac_save_LIBS"
21019
21020 # System's version of getaddrinfo(), if any, may be used only if we found
21021 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21022 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21023 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
21024 # because we want to use our own getaddrinfo.c on Windows anyway.)
21025 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21026
21027 for ac_func in getaddrinfo
21028 do
21029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21030 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21031 $as_echo_n "checking for $ac_func... " >&6; }
21032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21033   $as_echo_n "(cached) " >&6
21034 else
21035   cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h.  */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h.  */
21041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21043 #define $ac_func innocuous_$ac_func
21044
21045 /* System header to define __stub macros and hopefully few prototypes,
21046     which can conflict with char $ac_func (); below.
21047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21048     <limits.h> exists even on freestanding compilers.  */
21049
21050 #ifdef __STDC__
21051 # include <limits.h>
21052 #else
21053 # include <assert.h>
21054 #endif
21055
21056 #undef $ac_func
21057
21058 /* Override any GCC internal prototype to avoid an error.
21059    Use char because int might match the return type of a GCC
21060    builtin and then its argument prototype would still apply.  */
21061 #ifdef __cplusplus
21062 extern "C"
21063 #endif
21064 char $ac_func ();
21065 /* The GNU C library defines this for functions which it implements
21066     to always fail with ENOSYS.  Some functions are actually named
21067     something starting with __ and the normal name is an alias.  */
21068 #if defined __stub_$ac_func || defined __stub___$ac_func
21069 choke me
21070 #endif
21071
21072 int
21073 main ()
21074 {
21075 return $ac_func ();
21076   ;
21077   return 0;
21078 }
21079 _ACEOF
21080 rm -f conftest.$ac_objext conftest$ac_exeext
21081 if { (ac_try="$ac_link"
21082 case "(($ac_try" in
21083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084   *) ac_try_echo=$ac_try;;
21085 esac
21086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21087 $as_echo "$ac_try_echo") >&5
21088   (eval "$ac_link") 2>conftest.er1
21089   ac_status=$?
21090   grep -v '^ *+' conftest.er1 >conftest.err
21091   rm -f conftest.er1
21092   cat conftest.err >&5
21093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094   (exit $ac_status); } && {
21095          test -z "$ac_c_werror_flag" ||
21096          test ! -s conftest.err
21097        } && test -s conftest$ac_exeext && {
21098          test "$cross_compiling" = yes ||
21099          $as_test_x conftest$ac_exeext
21100        }; then
21101   eval "$as_ac_var=yes"
21102 else
21103   $as_echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21105
21106         eval "$as_ac_var=no"
21107 fi
21108
21109 rm -rf conftest.dSYM
21110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21111       conftest$ac_exeext conftest.$ac_ext
21112 fi
21113 ac_res=`eval 'as_val=${'$as_ac_var'}
21114                  $as_echo "$as_val"'`
21115                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21116 $as_echo "$ac_res" >&6; }
21117 as_val=`eval 'as_val=${'$as_ac_var'}
21118                  $as_echo "$as_val"'`
21119    if test "x$as_val" = x""yes; then
21120   cat >>confdefs.h <<_ACEOF
21121 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21122 _ACEOF
21123
21124 else
21125   case " $LIBOBJS " in
21126   *" $ac_func.$ac_objext "* ) ;;
21127   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21128  ;;
21129 esac
21130
21131 fi
21132 done
21133
21134
21135 else
21136   case " $LIBOBJS " in
21137   *" getaddrinfo.$ac_objext "* ) ;;
21138   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21139  ;;
21140 esac
21141
21142 fi
21143
21144 # Similarly, use system's getopt_long() only if system provides struct option.
21145 if test x"$ac_cv_type_struct_option" = xyes ; then
21146
21147 for ac_func in getopt_long
21148 do
21149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21150 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21151 $as_echo_n "checking for $ac_func... " >&6; }
21152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21153   $as_echo_n "(cached) " >&6
21154 else
21155   cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h.  */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h.  */
21161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21163 #define $ac_func innocuous_$ac_func
21164
21165 /* System header to define __stub macros and hopefully few prototypes,
21166     which can conflict with char $ac_func (); below.
21167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21168     <limits.h> exists even on freestanding compilers.  */
21169
21170 #ifdef __STDC__
21171 # include <limits.h>
21172 #else
21173 # include <assert.h>
21174 #endif
21175
21176 #undef $ac_func
21177
21178 /* Override any GCC internal prototype to avoid an error.
21179    Use char because int might match the return type of a GCC
21180    builtin and then its argument prototype would still apply.  */
21181 #ifdef __cplusplus
21182 extern "C"
21183 #endif
21184 char $ac_func ();
21185 /* The GNU C library defines this for functions which it implements
21186     to always fail with ENOSYS.  Some functions are actually named
21187     something starting with __ and the normal name is an alias.  */
21188 #if defined __stub_$ac_func || defined __stub___$ac_func
21189 choke me
21190 #endif
21191
21192 int
21193 main ()
21194 {
21195 return $ac_func ();
21196   ;
21197   return 0;
21198 }
21199 _ACEOF
21200 rm -f conftest.$ac_objext conftest$ac_exeext
21201 if { (ac_try="$ac_link"
21202 case "(($ac_try" in
21203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204   *) ac_try_echo=$ac_try;;
21205 esac
21206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21207 $as_echo "$ac_try_echo") >&5
21208   (eval "$ac_link") 2>conftest.er1
21209   ac_status=$?
21210   grep -v '^ *+' conftest.er1 >conftest.err
21211   rm -f conftest.er1
21212   cat conftest.err >&5
21213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); } && {
21215          test -z "$ac_c_werror_flag" ||
21216          test ! -s conftest.err
21217        } && test -s conftest$ac_exeext && {
21218          test "$cross_compiling" = yes ||
21219          $as_test_x conftest$ac_exeext
21220        }; then
21221   eval "$as_ac_var=yes"
21222 else
21223   $as_echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21225
21226         eval "$as_ac_var=no"
21227 fi
21228
21229 rm -rf conftest.dSYM
21230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21231       conftest$ac_exeext conftest.$ac_ext
21232 fi
21233 ac_res=`eval 'as_val=${'$as_ac_var'}
21234                  $as_echo "$as_val"'`
21235                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21236 $as_echo "$ac_res" >&6; }
21237 as_val=`eval 'as_val=${'$as_ac_var'}
21238                  $as_echo "$as_val"'`
21239    if test "x$as_val" = x""yes; then
21240   cat >>confdefs.h <<_ACEOF
21241 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21242 _ACEOF
21243
21244 else
21245   case " $LIBOBJS " in
21246   *" $ac_func.$ac_objext "* ) ;;
21247   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21248  ;;
21249 esac
21250
21251 fi
21252 done
21253
21254
21255 else
21256   case " $LIBOBJS " in
21257   *" getopt_long.$ac_objext "* ) ;;
21258   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21259  ;;
21260 esac
21261
21262 fi
21263
21264 # Solaris' getopt() doesn't do what we want for long options, so always use
21265 # our version on that platform.
21266 if test "$PORTNAME" = "solaris"; then
21267   case " $LIBOBJS " in
21268   *" getopt.$ac_objext "* ) ;;
21269   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21270  ;;
21271 esac
21272
21273 fi
21274
21275 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21276 # so always use our version on Windows.
21277 if test "$PORTNAME" = "win32"; then
21278   case " $LIBOBJS " in
21279   *" getopt.$ac_objext "* ) ;;
21280   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21281  ;;
21282 esac
21283
21284   case " $LIBOBJS " in
21285   *" getopt_long.$ac_objext "* ) ;;
21286   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21287  ;;
21288 esac
21289
21290 fi
21291
21292 # Win32 support
21293 if test "$PORTNAME" = "win32"; then
21294
21295 for ac_func in gettimeofday
21296 do
21297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21298 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21299 $as_echo_n "checking for $ac_func... " >&6; }
21300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21301   $as_echo_n "(cached) " >&6
21302 else
21303   cat >conftest.$ac_ext <<_ACEOF
21304 /* confdefs.h.  */
21305 _ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h.  */
21309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21311 #define $ac_func innocuous_$ac_func
21312
21313 /* System header to define __stub macros and hopefully few prototypes,
21314     which can conflict with char $ac_func (); below.
21315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21316     <limits.h> exists even on freestanding compilers.  */
21317
21318 #ifdef __STDC__
21319 # include <limits.h>
21320 #else
21321 # include <assert.h>
21322 #endif
21323
21324 #undef $ac_func
21325
21326 /* Override any GCC internal prototype to avoid an error.
21327    Use char because int might match the return type of a GCC
21328    builtin and then its argument prototype would still apply.  */
21329 #ifdef __cplusplus
21330 extern "C"
21331 #endif
21332 char $ac_func ();
21333 /* The GNU C library defines this for functions which it implements
21334     to always fail with ENOSYS.  Some functions are actually named
21335     something starting with __ and the normal name is an alias.  */
21336 #if defined __stub_$ac_func || defined __stub___$ac_func
21337 choke me
21338 #endif
21339
21340 int
21341 main ()
21342 {
21343 return $ac_func ();
21344   ;
21345   return 0;
21346 }
21347 _ACEOF
21348 rm -f conftest.$ac_objext conftest$ac_exeext
21349 if { (ac_try="$ac_link"
21350 case "(($ac_try" in
21351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352   *) ac_try_echo=$ac_try;;
21353 esac
21354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21355 $as_echo "$ac_try_echo") >&5
21356   (eval "$ac_link") 2>conftest.er1
21357   ac_status=$?
21358   grep -v '^ *+' conftest.er1 >conftest.err
21359   rm -f conftest.er1
21360   cat conftest.err >&5
21361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); } && {
21363          test -z "$ac_c_werror_flag" ||
21364          test ! -s conftest.err
21365        } && test -s conftest$ac_exeext && {
21366          test "$cross_compiling" = yes ||
21367          $as_test_x conftest$ac_exeext
21368        }; then
21369   eval "$as_ac_var=yes"
21370 else
21371   $as_echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374         eval "$as_ac_var=no"
21375 fi
21376
21377 rm -rf conftest.dSYM
21378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21379       conftest$ac_exeext conftest.$ac_ext
21380 fi
21381 ac_res=`eval 'as_val=${'$as_ac_var'}
21382                  $as_echo "$as_val"'`
21383                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21384 $as_echo "$ac_res" >&6; }
21385 as_val=`eval 'as_val=${'$as_ac_var'}
21386                  $as_echo "$as_val"'`
21387    if test "x$as_val" = x""yes; then
21388   cat >>confdefs.h <<_ACEOF
21389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21390 _ACEOF
21391
21392 else
21393   case " $LIBOBJS " in
21394   *" $ac_func.$ac_objext "* ) ;;
21395   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21396  ;;
21397 esac
21398
21399 fi
21400 done
21401
21402
21403   case " $LIBOBJS " in
21404   *" kill.$ac_objext "* ) ;;
21405   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21406  ;;
21407 esac
21408
21409   case " $LIBOBJS " in
21410   *" open.$ac_objext "* ) ;;
21411   *) LIBOBJS="$LIBOBJS open.$ac_objext"
21412  ;;
21413 esac
21414
21415   case " $LIBOBJS " in
21416   *" win32env.$ac_objext "* ) ;;
21417   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21418  ;;
21419 esac
21420
21421   case " $LIBOBJS " in
21422   *" win32error.$ac_objext "* ) ;;
21423   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21424  ;;
21425 esac
21426
21427   case " $LIBOBJS " in
21428   *" win32setlocale.$ac_objext "* ) ;;
21429   *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21430  ;;
21431 esac
21432
21433
21434 cat >>confdefs.h <<\_ACEOF
21435 #define HAVE_SYMLINK 1
21436 _ACEOF
21437
21438   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21439 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21440 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21441   $as_echo_n "(cached) " >&6
21442 else
21443   ac_cv_type_MINIDUMP_TYPE=no
21444 cat >conftest.$ac_ext <<_ACEOF
21445 /* confdefs.h.  */
21446 _ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h.  */
21450
21451 #define WIN32_LEAN_AND_MEAN
21452 #include <windows.h>
21453 #include <string.h>
21454 #include <dbghelp.h>
21455
21456 int
21457 main ()
21458 {
21459 if (sizeof (MINIDUMP_TYPE))
21460        return 0;
21461   ;
21462   return 0;
21463 }
21464 _ACEOF
21465 rm -f conftest.$ac_objext
21466 if { (ac_try="$ac_compile"
21467 case "(($ac_try" in
21468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469   *) ac_try_echo=$ac_try;;
21470 esac
21471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21472 $as_echo "$ac_try_echo") >&5
21473   (eval "$ac_compile") 2>conftest.er1
21474   ac_status=$?
21475   grep -v '^ *+' conftest.er1 >conftest.err
21476   rm -f conftest.er1
21477   cat conftest.err >&5
21478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); } && {
21480          test -z "$ac_c_werror_flag" ||
21481          test ! -s conftest.err
21482        } && test -s conftest.$ac_objext; then
21483   cat >conftest.$ac_ext <<_ACEOF
21484 /* confdefs.h.  */
21485 _ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h.  */
21489
21490 #define WIN32_LEAN_AND_MEAN
21491 #include <windows.h>
21492 #include <string.h>
21493 #include <dbghelp.h>
21494
21495 int
21496 main ()
21497 {
21498 if (sizeof ((MINIDUMP_TYPE)))
21499           return 0;
21500   ;
21501   return 0;
21502 }
21503 _ACEOF
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508   *) ac_try_echo=$ac_try;;
21509 esac
21510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21511 $as_echo "$ac_try_echo") >&5
21512   (eval "$ac_compile") 2>conftest.er1
21513   ac_status=$?
21514   grep -v '^ *+' conftest.er1 >conftest.err
21515   rm -f conftest.er1
21516   cat conftest.err >&5
21517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518   (exit $ac_status); } && {
21519          test -z "$ac_c_werror_flag" ||
21520          test ! -s conftest.err
21521        } && test -s conftest.$ac_objext; then
21522   :
21523 else
21524   $as_echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21526
21527         ac_cv_type_MINIDUMP_TYPE=yes
21528 fi
21529
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21531 else
21532   $as_echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.$ac_ext >&5
21534
21535
21536 fi
21537
21538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21539 fi
21540 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21541 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21542 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21543
21544 cat >>confdefs.h <<_ACEOF
21545 #define HAVE_MINIDUMP_TYPE 1
21546 _ACEOF
21547
21548 pgac_minidump_type=yes
21549 else
21550   pgac_minidump_type=no
21551 fi
21552
21553 fi
21554 if test x"$pgac_minidump_type" = x"yes" ; then
21555   have_win32_dbghelp=yes
21556
21557 else
21558   have_win32_dbghelp=no
21559
21560 fi
21561
21562 if test "$with_readline" = yes; then
21563   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21564 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21565 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21566   $as_echo_n "(cached) " >&6
21567 else
21568   cat >conftest.$ac_ext <<_ACEOF
21569 /* confdefs.h.  */
21570 _ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h.  */
21574 #include <stdio.h>
21575 #ifdef HAVE_READLINE_READLINE_H
21576 # include <readline/readline.h>
21577 #elif defined(HAVE_READLINE_H)
21578 # include <readline.h>
21579 #endif
21580
21581 int
21582 main ()
21583 {
21584 rl_completion_append_character = 'x';
21585   ;
21586   return 0;
21587 }
21588 _ACEOF
21589 rm -f conftest.$ac_objext conftest$ac_exeext
21590 if { (ac_try="$ac_link"
21591 case "(($ac_try" in
21592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593   *) ac_try_echo=$ac_try;;
21594 esac
21595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21596 $as_echo "$ac_try_echo") >&5
21597   (eval "$ac_link") 2>conftest.er1
21598   ac_status=$?
21599   grep -v '^ *+' conftest.er1 >conftest.err
21600   rm -f conftest.er1
21601   cat conftest.err >&5
21602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); } && {
21604          test -z "$ac_c_werror_flag" ||
21605          test ! -s conftest.err
21606        } && test -s conftest$ac_exeext && {
21607          test "$cross_compiling" = yes ||
21608          $as_test_x conftest$ac_exeext
21609        }; then
21610   pgac_cv_var_rl_completion_append_character=yes
21611 else
21612   $as_echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21614
21615         pgac_cv_var_rl_completion_append_character=no
21616 fi
21617
21618 rm -rf conftest.dSYM
21619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21620       conftest$ac_exeext conftest.$ac_ext
21621 fi
21622 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21623 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21624 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21625
21626 cat >>confdefs.h <<\_ACEOF
21627 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21628 _ACEOF
21629
21630 fi
21631
21632
21633 for ac_func in rl_completion_matches rl_filename_completion_function
21634 do
21635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21636 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21637 $as_echo_n "checking for $ac_func... " >&6; }
21638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21639   $as_echo_n "(cached) " >&6
21640 else
21641   cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21649 #define $ac_func innocuous_$ac_func
21650
21651 /* System header to define __stub macros and hopefully few prototypes,
21652     which can conflict with char $ac_func (); below.
21653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21654     <limits.h> exists even on freestanding compilers.  */
21655
21656 #ifdef __STDC__
21657 # include <limits.h>
21658 #else
21659 # include <assert.h>
21660 #endif
21661
21662 #undef $ac_func
21663
21664 /* Override any GCC internal prototype to avoid an error.
21665    Use char because int might match the return type of a GCC
21666    builtin and then its argument prototype would still apply.  */
21667 #ifdef __cplusplus
21668 extern "C"
21669 #endif
21670 char $ac_func ();
21671 /* The GNU C library defines this for functions which it implements
21672     to always fail with ENOSYS.  Some functions are actually named
21673     something starting with __ and the normal name is an alias.  */
21674 #if defined __stub_$ac_func || defined __stub___$ac_func
21675 choke me
21676 #endif
21677
21678 int
21679 main ()
21680 {
21681 return $ac_func ();
21682   ;
21683   return 0;
21684 }
21685 _ACEOF
21686 rm -f conftest.$ac_objext conftest$ac_exeext
21687 if { (ac_try="$ac_link"
21688 case "(($ac_try" in
21689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690   *) ac_try_echo=$ac_try;;
21691 esac
21692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21693 $as_echo "$ac_try_echo") >&5
21694   (eval "$ac_link") 2>conftest.er1
21695   ac_status=$?
21696   grep -v '^ *+' conftest.er1 >conftest.err
21697   rm -f conftest.er1
21698   cat conftest.err >&5
21699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); } && {
21701          test -z "$ac_c_werror_flag" ||
21702          test ! -s conftest.err
21703        } && test -s conftest$ac_exeext && {
21704          test "$cross_compiling" = yes ||
21705          $as_test_x conftest$ac_exeext
21706        }; then
21707   eval "$as_ac_var=yes"
21708 else
21709   $as_echo "$as_me: failed program was:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21711
21712         eval "$as_ac_var=no"
21713 fi
21714
21715 rm -rf conftest.dSYM
21716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21717       conftest$ac_exeext conftest.$ac_ext
21718 fi
21719 ac_res=`eval 'as_val=${'$as_ac_var'}
21720                  $as_echo "$as_val"'`
21721                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21722 $as_echo "$ac_res" >&6; }
21723 as_val=`eval 'as_val=${'$as_ac_var'}
21724                  $as_echo "$as_val"'`
21725    if test "x$as_val" = x""yes; then
21726   cat >>confdefs.h <<_ACEOF
21727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21728 _ACEOF
21729
21730 fi
21731 done
21732
21733
21734
21735 for ac_func in append_history history_truncate_file
21736 do
21737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21738 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21739 $as_echo_n "checking for $ac_func... " >&6; }
21740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21741   $as_echo_n "(cached) " >&6
21742 else
21743   cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21751 #define $ac_func innocuous_$ac_func
21752
21753 /* System header to define __stub macros and hopefully few prototypes,
21754     which can conflict with char $ac_func (); below.
21755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21756     <limits.h> exists even on freestanding compilers.  */
21757
21758 #ifdef __STDC__
21759 # include <limits.h>
21760 #else
21761 # include <assert.h>
21762 #endif
21763
21764 #undef $ac_func
21765
21766 /* Override any GCC internal prototype to avoid an error.
21767    Use char because int might match the return type of a GCC
21768    builtin and then its argument prototype would still apply.  */
21769 #ifdef __cplusplus
21770 extern "C"
21771 #endif
21772 char $ac_func ();
21773 /* The GNU C library defines this for functions which it implements
21774     to always fail with ENOSYS.  Some functions are actually named
21775     something starting with __ and the normal name is an alias.  */
21776 #if defined __stub_$ac_func || defined __stub___$ac_func
21777 choke me
21778 #endif
21779
21780 int
21781 main ()
21782 {
21783 return $ac_func ();
21784   ;
21785   return 0;
21786 }
21787 _ACEOF
21788 rm -f conftest.$ac_objext conftest$ac_exeext
21789 if { (ac_try="$ac_link"
21790 case "(($ac_try" in
21791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792   *) ac_try_echo=$ac_try;;
21793 esac
21794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21795 $as_echo "$ac_try_echo") >&5
21796   (eval "$ac_link") 2>conftest.er1
21797   ac_status=$?
21798   grep -v '^ *+' conftest.er1 >conftest.err
21799   rm -f conftest.er1
21800   cat conftest.err >&5
21801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); } && {
21803          test -z "$ac_c_werror_flag" ||
21804          test ! -s conftest.err
21805        } && test -s conftest$ac_exeext && {
21806          test "$cross_compiling" = yes ||
21807          $as_test_x conftest$ac_exeext
21808        }; then
21809   eval "$as_ac_var=yes"
21810 else
21811   $as_echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21813
21814         eval "$as_ac_var=no"
21815 fi
21816
21817 rm -rf conftest.dSYM
21818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21819       conftest$ac_exeext conftest.$ac_ext
21820 fi
21821 ac_res=`eval 'as_val=${'$as_ac_var'}
21822                  $as_echo "$as_val"'`
21823                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21824 $as_echo "$ac_res" >&6; }
21825 as_val=`eval 'as_val=${'$as_ac_var'}
21826                  $as_echo "$as_val"'`
21827    if test "x$as_val" = x""yes; then
21828   cat >>confdefs.h <<_ACEOF
21829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21830 _ACEOF
21831
21832 fi
21833 done
21834
21835 fi
21836
21837
21838 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21839 $as_echo_n "checking for sigsetjmp... " >&6; }
21840 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21841   $as_echo_n "(cached) " >&6
21842 else
21843   cat >conftest.$ac_ext <<_ACEOF
21844 /* confdefs.h.  */
21845 _ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h.  */
21849 #include <setjmp.h>
21850 int
21851 main ()
21852 {
21853 sigjmp_buf x; sigsetjmp(x, 1);
21854   ;
21855   return 0;
21856 }
21857 _ACEOF
21858 rm -f conftest.$ac_objext conftest$ac_exeext
21859 if { (ac_try="$ac_link"
21860 case "(($ac_try" in
21861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862   *) ac_try_echo=$ac_try;;
21863 esac
21864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21865 $as_echo "$ac_try_echo") >&5
21866   (eval "$ac_link") 2>conftest.er1
21867   ac_status=$?
21868   grep -v '^ *+' conftest.er1 >conftest.err
21869   rm -f conftest.er1
21870   cat conftest.err >&5
21871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872   (exit $ac_status); } && {
21873          test -z "$ac_c_werror_flag" ||
21874          test ! -s conftest.err
21875        } && test -s conftest$ac_exeext && {
21876          test "$cross_compiling" = yes ||
21877          $as_test_x conftest$ac_exeext
21878        }; then
21879   pgac_cv_func_sigsetjmp=yes
21880 else
21881   $as_echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21883
21884         pgac_cv_func_sigsetjmp=no
21885 fi
21886
21887 rm -rf conftest.dSYM
21888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21889       conftest$ac_exeext conftest.$ac_ext
21890 fi
21891 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21892 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21893 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21894
21895 cat >>confdefs.h <<\_ACEOF
21896 #define HAVE_SIGSETJMP 1
21897 _ACEOF
21898
21899 fi
21900
21901 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21902 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21903 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21904   $as_echo_n "(cached) " >&6
21905 else
21906   cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912 #include <signal.h>
21913 /* NetBSD declares sys_siglist in unistd.h.  */
21914 #ifdef HAVE_UNISTD_H
21915 # include <unistd.h>
21916 #endif
21917
21918
21919 int
21920 main ()
21921 {
21922 #ifndef sys_siglist
21923   (void) sys_siglist;
21924 #endif
21925
21926   ;
21927   return 0;
21928 }
21929 _ACEOF
21930 rm -f conftest.$ac_objext
21931 if { (ac_try="$ac_compile"
21932 case "(($ac_try" in
21933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934   *) ac_try_echo=$ac_try;;
21935 esac
21936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21937 $as_echo "$ac_try_echo") >&5
21938   (eval "$ac_compile") 2>conftest.er1
21939   ac_status=$?
21940   grep -v '^ *+' conftest.er1 >conftest.err
21941   rm -f conftest.er1
21942   cat conftest.err >&5
21943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); } && {
21945          test -z "$ac_c_werror_flag" ||
21946          test ! -s conftest.err
21947        } && test -s conftest.$ac_objext; then
21948   ac_cv_have_decl_sys_siglist=yes
21949 else
21950   $as_echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21952
21953         ac_cv_have_decl_sys_siglist=no
21954 fi
21955
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21957 fi
21958 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21959 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21960 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21961
21962 cat >>confdefs.h <<_ACEOF
21963 #define HAVE_DECL_SYS_SIGLIST 1
21964 _ACEOF
21965
21966
21967 else
21968   cat >>confdefs.h <<_ACEOF
21969 #define HAVE_DECL_SYS_SIGLIST 0
21970 _ACEOF
21971
21972
21973 fi
21974
21975
21976
21977
21978 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21979 $as_echo_n "checking for syslog... " >&6; }
21980 if test "${ac_cv_func_syslog+set}" = set; then
21981   $as_echo_n "(cached) " >&6
21982 else
21983   cat >conftest.$ac_ext <<_ACEOF
21984 /* confdefs.h.  */
21985 _ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h.  */
21989 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21991 #define syslog innocuous_syslog
21992
21993 /* System header to define __stub macros and hopefully few prototypes,
21994     which can conflict with char syslog (); below.
21995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21996     <limits.h> exists even on freestanding compilers.  */
21997
21998 #ifdef __STDC__
21999 # include <limits.h>
22000 #else
22001 # include <assert.h>
22002 #endif
22003
22004 #undef syslog
22005
22006 /* Override any GCC internal prototype to avoid an error.
22007    Use char because int might match the return type of a GCC
22008    builtin and then its argument prototype would still apply.  */
22009 #ifdef __cplusplus
22010 extern "C"
22011 #endif
22012 char syslog ();
22013 /* The GNU C library defines this for functions which it implements
22014     to always fail with ENOSYS.  Some functions are actually named
22015     something starting with __ and the normal name is an alias.  */
22016 #if defined __stub_syslog || defined __stub___syslog
22017 choke me
22018 #endif
22019
22020 int
22021 main ()
22022 {
22023 return syslog ();
22024   ;
22025   return 0;
22026 }
22027 _ACEOF
22028 rm -f conftest.$ac_objext conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032   *) ac_try_echo=$ac_try;;
22033 esac
22034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22035 $as_echo "$ac_try_echo") >&5
22036   (eval "$ac_link") 2>conftest.er1
22037   ac_status=$?
22038   grep -v '^ *+' conftest.er1 >conftest.err
22039   rm -f conftest.er1
22040   cat conftest.err >&5
22041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042   (exit $ac_status); } && {
22043          test -z "$ac_c_werror_flag" ||
22044          test ! -s conftest.err
22045        } && test -s conftest$ac_exeext && {
22046          test "$cross_compiling" = yes ||
22047          $as_test_x conftest$ac_exeext
22048        }; then
22049   ac_cv_func_syslog=yes
22050 else
22051   $as_echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22053
22054         ac_cv_func_syslog=no
22055 fi
22056
22057 rm -rf conftest.dSYM
22058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22059       conftest$ac_exeext conftest.$ac_ext
22060 fi
22061 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22062 $as_echo "$ac_cv_func_syslog" >&6; }
22063 if test "x$ac_cv_func_syslog" = x""yes; then
22064   if test "${ac_cv_header_syslog_h+set}" = set; then
22065   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22066 $as_echo_n "checking for syslog.h... " >&6; }
22067 if test "${ac_cv_header_syslog_h+set}" = set; then
22068   $as_echo_n "(cached) " >&6
22069 fi
22070 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22071 $as_echo "$ac_cv_header_syslog_h" >&6; }
22072 else
22073   # Is the header compilable?
22074 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22075 $as_echo_n "checking syslog.h usability... " >&6; }
22076 cat >conftest.$ac_ext <<_ACEOF
22077 /* confdefs.h.  */
22078 _ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h.  */
22082 $ac_includes_default
22083 #include <syslog.h>
22084 _ACEOF
22085 rm -f conftest.$ac_objext
22086 if { (ac_try="$ac_compile"
22087 case "(($ac_try" in
22088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089   *) ac_try_echo=$ac_try;;
22090 esac
22091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22092 $as_echo "$ac_try_echo") >&5
22093   (eval "$ac_compile") 2>conftest.er1
22094   ac_status=$?
22095   grep -v '^ *+' conftest.er1 >conftest.err
22096   rm -f conftest.er1
22097   cat conftest.err >&5
22098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099   (exit $ac_status); } && {
22100          test -z "$ac_c_werror_flag" ||
22101          test ! -s conftest.err
22102        } && test -s conftest.$ac_objext; then
22103   ac_header_compiler=yes
22104 else
22105   $as_echo "$as_me: failed program was:" >&5
22106 sed 's/^/| /' conftest.$ac_ext >&5
22107
22108         ac_header_compiler=no
22109 fi
22110
22111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22112 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22113 $as_echo "$ac_header_compiler" >&6; }
22114
22115 # Is the header present?
22116 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22117 $as_echo_n "checking syslog.h presence... " >&6; }
22118 cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h.  */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h.  */
22124 #include <syslog.h>
22125 _ACEOF
22126 if { (ac_try="$ac_cpp conftest.$ac_ext"
22127 case "(($ac_try" in
22128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129   *) ac_try_echo=$ac_try;;
22130 esac
22131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22132 $as_echo "$ac_try_echo") >&5
22133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22134   ac_status=$?
22135   grep -v '^ *+' conftest.er1 >conftest.err
22136   rm -f conftest.er1
22137   cat conftest.err >&5
22138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); } >/dev/null && {
22140          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22141          test ! -s conftest.err
22142        }; then
22143   ac_header_preproc=yes
22144 else
22145   $as_echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148   ac_header_preproc=no
22149 fi
22150
22151 rm -f conftest.err conftest.$ac_ext
22152 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22153 $as_echo "$ac_header_preproc" >&6; }
22154
22155 # So?  What about this header?
22156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22157   yes:no: )
22158     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22159 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22160     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22161 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22162     ac_header_preproc=yes
22163     ;;
22164   no:yes:* )
22165     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22166 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22167     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
22168 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
22169     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22170 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22171     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
22172 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22173     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22174 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22175     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22176 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22177     ( cat <<\_ASBOX
22178 ## ---------------------------------------- ##
22179 ## Report this to pgsql-bugs@postgresql.org ##
22180 ## ---------------------------------------- ##
22181 _ASBOX
22182      ) | sed "s/^/$as_me: WARNING:     /" >&2
22183     ;;
22184 esac
22185 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22186 $as_echo_n "checking for syslog.h... " >&6; }
22187 if test "${ac_cv_header_syslog_h+set}" = set; then
22188   $as_echo_n "(cached) " >&6
22189 else
22190   ac_cv_header_syslog_h=$ac_header_preproc
22191 fi
22192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22193 $as_echo "$ac_cv_header_syslog_h" >&6; }
22194
22195 fi
22196 if test "x$ac_cv_header_syslog_h" = x""yes; then
22197
22198 cat >>confdefs.h <<\_ACEOF
22199 #define HAVE_SYSLOG 1
22200 _ACEOF
22201
22202 fi
22203
22204
22205 fi
22206
22207
22208 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22209 $as_echo_n "checking for opterr... " >&6; }
22210 if test "${pgac_cv_var_int_opterr+set}" = set; then
22211   $as_echo_n "(cached) " >&6
22212 else
22213   cat >conftest.$ac_ext <<_ACEOF
22214 /* confdefs.h.  */
22215 _ACEOF
22216 cat confdefs.h >>conftest.$ac_ext
22217 cat >>conftest.$ac_ext <<_ACEOF
22218 /* end confdefs.h.  */
22219 #include <unistd.h>
22220 int
22221 main ()
22222 {
22223 extern int opterr; opterr = 1;
22224   ;
22225   return 0;
22226 }
22227 _ACEOF
22228 rm -f conftest.$ac_objext conftest$ac_exeext
22229 if { (ac_try="$ac_link"
22230 case "(($ac_try" in
22231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232   *) ac_try_echo=$ac_try;;
22233 esac
22234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22235 $as_echo "$ac_try_echo") >&5
22236   (eval "$ac_link") 2>conftest.er1
22237   ac_status=$?
22238   grep -v '^ *+' conftest.er1 >conftest.err
22239   rm -f conftest.er1
22240   cat conftest.err >&5
22241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242   (exit $ac_status); } && {
22243          test -z "$ac_c_werror_flag" ||
22244          test ! -s conftest.err
22245        } && test -s conftest$ac_exeext && {
22246          test "$cross_compiling" = yes ||
22247          $as_test_x conftest$ac_exeext
22248        }; then
22249   pgac_cv_var_int_opterr=yes
22250 else
22251   $as_echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22253
22254         pgac_cv_var_int_opterr=no
22255 fi
22256
22257 rm -rf conftest.dSYM
22258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22259       conftest$ac_exeext conftest.$ac_ext
22260 fi
22261 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22262 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22263 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22264
22265 cat >>confdefs.h <<\_ACEOF
22266 #define HAVE_INT_OPTERR 1
22267 _ACEOF
22268
22269 fi
22270
22271 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22272 $as_echo_n "checking for optreset... " >&6; }
22273 if test "${pgac_cv_var_int_optreset+set}" = set; then
22274   $as_echo_n "(cached) " >&6
22275 else
22276   cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h.  */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h.  */
22282 #include <unistd.h>
22283 int
22284 main ()
22285 {
22286 extern int optreset; optreset = 1;
22287   ;
22288   return 0;
22289 }
22290 _ACEOF
22291 rm -f conftest.$ac_objext conftest$ac_exeext
22292 if { (ac_try="$ac_link"
22293 case "(($ac_try" in
22294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22295   *) ac_try_echo=$ac_try;;
22296 esac
22297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22298 $as_echo "$ac_try_echo") >&5
22299   (eval "$ac_link") 2>conftest.er1
22300   ac_status=$?
22301   grep -v '^ *+' conftest.er1 >conftest.err
22302   rm -f conftest.er1
22303   cat conftest.err >&5
22304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305   (exit $ac_status); } && {
22306          test -z "$ac_c_werror_flag" ||
22307          test ! -s conftest.err
22308        } && test -s conftest$ac_exeext && {
22309          test "$cross_compiling" = yes ||
22310          $as_test_x conftest$ac_exeext
22311        }; then
22312   pgac_cv_var_int_optreset=yes
22313 else
22314   $as_echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22316
22317         pgac_cv_var_int_optreset=no
22318 fi
22319
22320 rm -rf conftest.dSYM
22321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22322       conftest$ac_exeext conftest.$ac_ext
22323 fi
22324 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22325 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22326 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22327
22328 cat >>confdefs.h <<\_ACEOF
22329 #define HAVE_INT_OPTRESET 1
22330 _ACEOF
22331
22332 fi
22333
22334
22335
22336 for ac_func in strtoll strtoq
22337 do
22338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22340 $as_echo_n "checking for $ac_func... " >&6; }
22341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22342   $as_echo_n "(cached) " >&6
22343 else
22344   cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h.  */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h.  */
22350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22352 #define $ac_func innocuous_$ac_func
22353
22354 /* System header to define __stub macros and hopefully few prototypes,
22355     which can conflict with char $ac_func (); below.
22356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22357     <limits.h> exists even on freestanding compilers.  */
22358
22359 #ifdef __STDC__
22360 # include <limits.h>
22361 #else
22362 # include <assert.h>
22363 #endif
22364
22365 #undef $ac_func
22366
22367 /* Override any GCC internal prototype to avoid an error.
22368    Use char because int might match the return type of a GCC
22369    builtin and then its argument prototype would still apply.  */
22370 #ifdef __cplusplus
22371 extern "C"
22372 #endif
22373 char $ac_func ();
22374 /* The GNU C library defines this for functions which it implements
22375     to always fail with ENOSYS.  Some functions are actually named
22376     something starting with __ and the normal name is an alias.  */
22377 #if defined __stub_$ac_func || defined __stub___$ac_func
22378 choke me
22379 #endif
22380
22381 int
22382 main ()
22383 {
22384 return $ac_func ();
22385   ;
22386   return 0;
22387 }
22388 _ACEOF
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393   *) ac_try_echo=$ac_try;;
22394 esac
22395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22396 $as_echo "$ac_try_echo") >&5
22397   (eval "$ac_link") 2>conftest.er1
22398   ac_status=$?
22399   grep -v '^ *+' conftest.er1 >conftest.err
22400   rm -f conftest.er1
22401   cat conftest.err >&5
22402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } && {
22404          test -z "$ac_c_werror_flag" ||
22405          test ! -s conftest.err
22406        } && test -s conftest$ac_exeext && {
22407          test "$cross_compiling" = yes ||
22408          $as_test_x conftest$ac_exeext
22409        }; then
22410   eval "$as_ac_var=yes"
22411 else
22412   $as_echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415         eval "$as_ac_var=no"
22416 fi
22417
22418 rm -rf conftest.dSYM
22419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22420       conftest$ac_exeext conftest.$ac_ext
22421 fi
22422 ac_res=`eval 'as_val=${'$as_ac_var'}
22423                  $as_echo "$as_val"'`
22424                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22425 $as_echo "$ac_res" >&6; }
22426 as_val=`eval 'as_val=${'$as_ac_var'}
22427                  $as_echo "$as_val"'`
22428    if test "x$as_val" = x""yes; then
22429   cat >>confdefs.h <<_ACEOF
22430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22431 _ACEOF
22432  break
22433 fi
22434 done
22435
22436
22437
22438 for ac_func in strtoull strtouq
22439 do
22440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22441 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22442 $as_echo_n "checking for $ac_func... " >&6; }
22443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22444   $as_echo_n "(cached) " >&6
22445 else
22446   cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h.  */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h.  */
22452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22454 #define $ac_func innocuous_$ac_func
22455
22456 /* System header to define __stub macros and hopefully few prototypes,
22457     which can conflict with char $ac_func (); below.
22458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22459     <limits.h> exists even on freestanding compilers.  */
22460
22461 #ifdef __STDC__
22462 # include <limits.h>
22463 #else
22464 # include <assert.h>
22465 #endif
22466
22467 #undef $ac_func
22468
22469 /* Override any GCC internal prototype to avoid an error.
22470    Use char because int might match the return type of a GCC
22471    builtin and then its argument prototype would still apply.  */
22472 #ifdef __cplusplus
22473 extern "C"
22474 #endif
22475 char $ac_func ();
22476 /* The GNU C library defines this for functions which it implements
22477     to always fail with ENOSYS.  Some functions are actually named
22478     something starting with __ and the normal name is an alias.  */
22479 #if defined __stub_$ac_func || defined __stub___$ac_func
22480 choke me
22481 #endif
22482
22483 int
22484 main ()
22485 {
22486 return $ac_func ();
22487   ;
22488   return 0;
22489 }
22490 _ACEOF
22491 rm -f conftest.$ac_objext conftest$ac_exeext
22492 if { (ac_try="$ac_link"
22493 case "(($ac_try" in
22494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495   *) ac_try_echo=$ac_try;;
22496 esac
22497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22498 $as_echo "$ac_try_echo") >&5
22499   (eval "$ac_link") 2>conftest.er1
22500   ac_status=$?
22501   grep -v '^ *+' conftest.er1 >conftest.err
22502   rm -f conftest.er1
22503   cat conftest.err >&5
22504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); } && {
22506          test -z "$ac_c_werror_flag" ||
22507          test ! -s conftest.err
22508        } && test -s conftest$ac_exeext && {
22509          test "$cross_compiling" = yes ||
22510          $as_test_x conftest$ac_exeext
22511        }; then
22512   eval "$as_ac_var=yes"
22513 else
22514   $as_echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22516
22517         eval "$as_ac_var=no"
22518 fi
22519
22520 rm -rf conftest.dSYM
22521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22522       conftest$ac_exeext conftest.$ac_ext
22523 fi
22524 ac_res=`eval 'as_val=${'$as_ac_var'}
22525                  $as_echo "$as_val"'`
22526                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22527 $as_echo "$ac_res" >&6; }
22528 as_val=`eval 'as_val=${'$as_ac_var'}
22529                  $as_echo "$as_val"'`
22530    if test "x$as_val" = x""yes; then
22531   cat >>confdefs.h <<_ACEOF
22532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22533 _ACEOF
22534  break
22535 fi
22536 done
22537
22538
22539
22540 #
22541 # Pthreads
22542 #
22543 # For each platform, we need to know about any special compile and link
22544 # libraries, and whether the normal C function names are thread-safe.
22545 # See the comment at the top of src/port/thread.c for more information.
22546 # WIN32 doesn't need the pthread tests;  it always uses threads
22547 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22548
22549
22550
22551 ac_ext=c
22552 ac_cpp='$CPP $CPPFLAGS'
22553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22556
22557 acx_pthread_ok=no
22558
22559 # We used to check for pthread.h first, but this fails if pthread.h
22560 # requires special compiler flags (e.g. on True64 or Sequent).
22561 # It gets checked for in the link test anyway.
22562
22563 # First of all, check if the user has set any of the PTHREAD_LIBS,
22564 # etcetera environment variables, and if threads linking works using
22565 # them:
22566 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22567         save_CFLAGS="$CFLAGS"
22568         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22569         save_LIBS="$LIBS"
22570         LIBS="$PTHREAD_LIBS $LIBS"
22571         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22572 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22573         cat >conftest.$ac_ext <<_ACEOF
22574 /* confdefs.h.  */
22575 _ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h.  */
22579
22580 /* Override any GCC internal prototype to avoid an error.
22581    Use char because int might match the return type of a GCC
22582    builtin and then its argument prototype would still apply.  */
22583 #ifdef __cplusplus
22584 extern "C"
22585 #endif
22586 char pthread_join ();
22587 int
22588 main ()
22589 {
22590 return pthread_join ();
22591   ;
22592   return 0;
22593 }
22594 _ACEOF
22595 rm -f conftest.$ac_objext conftest$ac_exeext
22596 if { (ac_try="$ac_link"
22597 case "(($ac_try" in
22598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599   *) ac_try_echo=$ac_try;;
22600 esac
22601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22602 $as_echo "$ac_try_echo") >&5
22603   (eval "$ac_link") 2>conftest.er1
22604   ac_status=$?
22605   grep -v '^ *+' conftest.er1 >conftest.err
22606   rm -f conftest.er1
22607   cat conftest.err >&5
22608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609   (exit $ac_status); } && {
22610          test -z "$ac_c_werror_flag" ||
22611          test ! -s conftest.err
22612        } && test -s conftest$ac_exeext && {
22613          test "$cross_compiling" = yes ||
22614          $as_test_x conftest$ac_exeext
22615        }; then
22616   acx_pthread_ok=yes
22617 else
22618   $as_echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22620
22621
22622 fi
22623
22624 rm -rf conftest.dSYM
22625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22626       conftest$ac_exeext conftest.$ac_ext
22627         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22628 $as_echo "$acx_pthread_ok" >&6; }
22629         if test x"$acx_pthread_ok" = xno; then
22630                 PTHREAD_LIBS=""
22631                 PTHREAD_CFLAGS=""
22632         fi
22633         LIBS="$save_LIBS"
22634         CFLAGS="$save_CFLAGS"
22635 fi
22636
22637 # We must check for the threads library under a number of different
22638 # names; the ordering is very important because some systems
22639 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22640 # libraries is broken (non-POSIX).
22641
22642 # Create a list of thread flags to try.  Items starting with a "-" are
22643 # C compiler flags, and other items are library names, except for "none"
22644 # which indicates that we try without any flags at all, and "pthread-config"
22645 # which is a program returning the flags for the Pth emulation library.
22646
22647 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22648
22649 # The ordering *is* (sometimes) important.  Some notes on the
22650 # individual items follow:
22651
22652 # pthreads: AIX (must check this before -lpthread)
22653 # none: in case threads are in libc; should be tried before -Kthread and
22654 #       other compiler flags to prevent continual compiler warnings
22655 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22656 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22657 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22658 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22659 # -pthreads: Solaris/gcc
22660 # -mthreads: Mingw32/gcc, Lynx/gcc
22661 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22662 #      doesn't hurt to check since this sometimes defines pthreads too;
22663 #      also defines -D_REENTRANT)
22664 # pthread: Linux, etcetera
22665 # --thread-safe: KAI C++
22666 # pthread-config: use pthread-config program (for GNU Pth library)
22667
22668 case "${host_cpu}-${host_os}" in
22669         *solaris*)
22670
22671         # On Solaris (at least, for some versions), libc contains stubbed
22672         # (non-functional) versions of the pthreads routines, so link-based
22673         # tests will erroneously succeed.  (We need to link with -pthread or
22674         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22675         # a function called by this macro, so we could check for that, but
22676         # who knows whether they'll stub that too in a future libc.)  So,
22677         # we'll just look for -pthreads and -lpthread first:
22678
22679         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22680         ;;
22681 esac
22682
22683 if test x"$acx_pthread_ok" = xno; then
22684 for flag in $acx_pthread_flags; do
22685
22686         tryPTHREAD_CFLAGS=""
22687         tryPTHREAD_LIBS=""
22688         case $flag in
22689                 none)
22690                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22691 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22692                 ;;
22693
22694                 -*)
22695                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22696 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22697                 tryPTHREAD_CFLAGS="$flag"
22698                 ;;
22699
22700                 pthread-config)
22701                 # skip this if we already have flags defined, for PostgreSQL
22702                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22703                 # Extract the first word of "pthread-config", so it can be a program name with args.
22704 set dummy pthread-config; ac_word=$2
22705 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22706 $as_echo_n "checking for $ac_word... " >&6; }
22707 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22708   $as_echo_n "(cached) " >&6
22709 else
22710   if test -n "$acx_pthread_config"; then
22711   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22712 else
22713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22714 for as_dir in $PATH
22715 do
22716   IFS=$as_save_IFS
22717   test -z "$as_dir" && as_dir=.
22718   for ac_exec_ext in '' $ac_executable_extensions; do
22719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22720     ac_cv_prog_acx_pthread_config="yes"
22721     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22722     break 2
22723   fi
22724 done
22725 done
22726 IFS=$as_save_IFS
22727
22728   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22729 fi
22730 fi
22731 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22732 if test -n "$acx_pthread_config"; then
22733   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22734 $as_echo "$acx_pthread_config" >&6; }
22735 else
22736   { $as_echo "$as_me:$LINENO: result: no" >&5
22737 $as_echo "no" >&6; }
22738 fi
22739
22740
22741                 if test x"$acx_pthread_config" = xno; then continue; fi
22742                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22743                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22744                 ;;
22745
22746                 *)
22747                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22748 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22749                 tryPTHREAD_LIBS="-l$flag"
22750                 ;;
22751         esac
22752
22753         save_LIBS="$LIBS"
22754         save_CFLAGS="$CFLAGS"
22755         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22756         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22757
22758         # Check for various functions.  We must include pthread.h,
22759         # since some functions may be macros.  (On the Sequent, we
22760         # need a special flag -Kthread to make this header compile.)
22761         # We check for pthread_join because it is in -lpthread on IRIX
22762         # while pthread_create is in libc.  We check for pthread_attr_init
22763         # due to DEC craziness with -lpthreads.  We check for
22764         # pthread_cleanup_push because it is one of the few pthread
22765         # functions on Solaris that doesn't have a non-functional libc stub.
22766         # We try pthread_create on general principles.
22767         cat >conftest.$ac_ext <<_ACEOF
22768 /* confdefs.h.  */
22769 _ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h.  */
22773 #include <pthread.h>
22774 int
22775 main ()
22776 {
22777 pthread_t th; pthread_join(th, 0);
22778                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22779                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22780   ;
22781   return 0;
22782 }
22783 _ACEOF
22784 rm -f conftest.$ac_objext conftest$ac_exeext
22785 if { (ac_try="$ac_link"
22786 case "(($ac_try" in
22787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788   *) ac_try_echo=$ac_try;;
22789 esac
22790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22791 $as_echo "$ac_try_echo") >&5
22792   (eval "$ac_link") 2>conftest.er1
22793   ac_status=$?
22794   grep -v '^ *+' conftest.er1 >conftest.err
22795   rm -f conftest.er1
22796   cat conftest.err >&5
22797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); } && {
22799          test -z "$ac_c_werror_flag" ||
22800          test ! -s conftest.err
22801        } && test -s conftest$ac_exeext && {
22802          test "$cross_compiling" = yes ||
22803          $as_test_x conftest$ac_exeext
22804        }; then
22805   acx_pthread_ok=yes
22806 else
22807   $as_echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22809
22810         acx_pthread_ok=no
22811 fi
22812
22813 rm -rf conftest.dSYM
22814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22815       conftest$ac_exeext conftest.$ac_ext
22816
22817         if test "x$acx_pthread_ok" = xyes; then
22818             # Don't use options that are ignored by the compiler.
22819             # We find them by checking stderror.
22820             cat >conftest.$ac_ext <<_ACEOF
22821 int
22822 main (int argc, char **argv)
22823 {
22824   (void) argc;
22825   (void) argv;
22826   return 0;
22827 }
22828 _ACEOF
22829             rm -f conftest.$ac_objext conftest$ac_exeext
22830             # Check both linking and compiling, because they might tolerate different options.
22831             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22832                 # we continue with more flags because Linux needs -lpthread
22833                 # for libpq builds on PostgreSQL.  The test above only
22834                 # tests for building binaries, not shared libraries.
22835                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22836                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22837             else   acx_pthread_ok=no
22838             fi
22839         fi
22840
22841         LIBS="$save_LIBS"
22842         CFLAGS="$save_CFLAGS"
22843
22844         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22845 $as_echo "$acx_pthread_ok" >&6; }
22846 done
22847 fi
22848
22849 # Various other checks:
22850 if test "x$acx_pthread_ok" = xyes; then
22851         save_LIBS="$LIBS"
22852         LIBS="$PTHREAD_LIBS $LIBS"
22853         save_CFLAGS="$CFLAGS"
22854         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22855
22856         # Detect AIX lossage: threads are created detached by default
22857         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22858         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22859 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22860         cat >conftest.$ac_ext <<_ACEOF
22861 /* confdefs.h.  */
22862 _ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h.  */
22866 #include <pthread.h>
22867 int
22868 main ()
22869 {
22870 int attr=PTHREAD_CREATE_JOINABLE;
22871   ;
22872   return 0;
22873 }
22874 _ACEOF
22875 rm -f conftest.$ac_objext conftest$ac_exeext
22876 if { (ac_try="$ac_link"
22877 case "(($ac_try" in
22878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879   *) ac_try_echo=$ac_try;;
22880 esac
22881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22882 $as_echo "$ac_try_echo") >&5
22883   (eval "$ac_link") 2>conftest.er1
22884   ac_status=$?
22885   grep -v '^ *+' conftest.er1 >conftest.err
22886   rm -f conftest.er1
22887   cat conftest.err >&5
22888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889   (exit $ac_status); } && {
22890          test -z "$ac_c_werror_flag" ||
22891          test ! -s conftest.err
22892        } && test -s conftest$ac_exeext && {
22893          test "$cross_compiling" = yes ||
22894          $as_test_x conftest$ac_exeext
22895        }; then
22896   ok=PTHREAD_CREATE_JOINABLE
22897 else
22898   $as_echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22900
22901         ok=unknown
22902 fi
22903
22904 rm -rf conftest.dSYM
22905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22906       conftest$ac_exeext conftest.$ac_ext
22907         if test x"$ok" = xunknown; then
22908                 cat >conftest.$ac_ext <<_ACEOF
22909 /* confdefs.h.  */
22910 _ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h.  */
22914 #include <pthread.h>
22915 int
22916 main ()
22917 {
22918 int attr=PTHREAD_CREATE_UNDETACHED;
22919   ;
22920   return 0;
22921 }
22922 _ACEOF
22923 rm -f conftest.$ac_objext conftest$ac_exeext
22924 if { (ac_try="$ac_link"
22925 case "(($ac_try" in
22926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927   *) ac_try_echo=$ac_try;;
22928 esac
22929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22930 $as_echo "$ac_try_echo") >&5
22931   (eval "$ac_link") 2>conftest.er1
22932   ac_status=$?
22933   grep -v '^ *+' conftest.er1 >conftest.err
22934   rm -f conftest.er1
22935   cat conftest.err >&5
22936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); } && {
22938          test -z "$ac_c_werror_flag" ||
22939          test ! -s conftest.err
22940        } && test -s conftest$ac_exeext && {
22941          test "$cross_compiling" = yes ||
22942          $as_test_x conftest$ac_exeext
22943        }; then
22944   ok=PTHREAD_CREATE_UNDETACHED
22945 else
22946   $as_echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22948
22949         ok=unknown
22950 fi
22951
22952 rm -rf conftest.dSYM
22953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22954       conftest$ac_exeext conftest.$ac_ext
22955         fi
22956         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22957
22958 cat >>confdefs.h <<\_ACEOF
22959 #define PTHREAD_CREATE_JOINABLE $ok
22960 _ACEOF
22961
22962         fi
22963         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22964 $as_echo "${ok}" >&6; }
22965         if test x"$ok" = xunknown; then
22966                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22967 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22968         fi
22969
22970         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22971 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22972         flag=no
22973 # We always add these in PostgreSQL
22974 #       case "${host_cpu}-${host_os}" in
22975 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22976 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22977 #       esac
22978         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22979 $as_echo "${flag}" >&6; }
22980         if test "x$flag" != xno; then
22981                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22982         fi
22983
22984         LIBS="$save_LIBS"
22985         CFLAGS="$save_CFLAGS"
22986
22987 # Supporting cc_r would require a special CC in all places that
22988 # use libpq, and that is ugly, so we don't do it.  Users can still
22989 # define their compiler as cc_r to do thread builds of everything.
22990         # More AIX lossage: must compile with cc_r
22991         # Extract the first word of "cc_r", so it can be a program name with args.
22992 set dummy cc_r; ac_word=$2
22993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22994 $as_echo_n "checking for $ac_word... " >&6; }
22995 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22996   $as_echo_n "(cached) " >&6
22997 else
22998   if test -n "$PTHREAD_CC"; then
22999   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23000 else
23001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23002 for as_dir in $PATH
23003 do
23004   IFS=$as_save_IFS
23005   test -z "$as_dir" && as_dir=.
23006   for ac_exec_ext in '' $ac_executable_extensions; do
23007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23008     ac_cv_prog_PTHREAD_CC="cc_r"
23009     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23010     break 2
23011   fi
23012 done
23013 done
23014 IFS=$as_save_IFS
23015
23016   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23017 fi
23018 fi
23019 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23020 if test -n "$PTHREAD_CC"; then
23021   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23022 $as_echo "$PTHREAD_CC" >&6; }
23023 else
23024   { $as_echo "$as_me:$LINENO: result: no" >&5
23025 $as_echo "no" >&6; }
23026 fi
23027
23028
23029 else
23030         PTHREAD_CC="$CC"
23031 fi
23032
23033
23034
23035
23036
23037 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23038 if test x"$acx_pthread_ok" = xyes; then
23039
23040 cat >>confdefs.h <<\_ACEOF
23041 #define HAVE_PTHREAD 1
23042 _ACEOF
23043
23044         :
23045 else
23046         acx_pthread_ok=no
23047
23048 fi
23049 ac_ext=c
23050 ac_cpp='$CPP $CPPFLAGS'
23051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23054
23055         # set thread flags
23056
23057 # Some platforms use these, so just define them.  They can't hurt if they
23058 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23059 # enables 5-arg getpwuid_r, among other things.
23060 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23061
23062
23063 # At this point, we don't want to muck with the compiler name for threading.
23064 # Let's see who fails, perhaps AIX.  2004-04-23
23065 if test "$PTHREAD_CC" != "$CC"; then
23066 { { $as_echo "$as_me:$LINENO: error:
23067 PostgreSQL does not support platforms that require a special compiler
23068 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23069 $as_echo "$as_me: error:
23070 PostgreSQL does not support platforms that require a special compiler
23071 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23072    { (exit 1); exit 1; }; }
23073 fi
23074
23075 # Check for *_r functions
23076 _CFLAGS="$CFLAGS"
23077 _LIBS="$LIBS"
23078 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23079 LIBS="$LIBS $PTHREAD_LIBS"
23080
23081 if test "$PORTNAME" != "win32"; then
23082 if test "${ac_cv_header_pthread_h+set}" = set; then
23083   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23084 $as_echo_n "checking for pthread.h... " >&6; }
23085 if test "${ac_cv_header_pthread_h+set}" = set; then
23086   $as_echo_n "(cached) " >&6
23087 fi
23088 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23089 $as_echo "$ac_cv_header_pthread_h" >&6; }
23090 else
23091   # Is the header compilable?
23092 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23093 $as_echo_n "checking pthread.h usability... " >&6; }
23094 cat >conftest.$ac_ext <<_ACEOF
23095 /* confdefs.h.  */
23096 _ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h.  */
23100 $ac_includes_default
23101 #include <pthread.h>
23102 _ACEOF
23103 rm -f conftest.$ac_objext
23104 if { (ac_try="$ac_compile"
23105 case "(($ac_try" in
23106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107   *) ac_try_echo=$ac_try;;
23108 esac
23109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23110 $as_echo "$ac_try_echo") >&5
23111   (eval "$ac_compile") 2>conftest.er1
23112   ac_status=$?
23113   grep -v '^ *+' conftest.er1 >conftest.err
23114   rm -f conftest.er1
23115   cat conftest.err >&5
23116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); } && {
23118          test -z "$ac_c_werror_flag" ||
23119          test ! -s conftest.err
23120        } && test -s conftest.$ac_objext; then
23121   ac_header_compiler=yes
23122 else
23123   $as_echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23125
23126         ac_header_compiler=no
23127 fi
23128
23129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23130 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23131 $as_echo "$ac_header_compiler" >&6; }
23132
23133 # Is the header present?
23134 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23135 $as_echo_n "checking pthread.h presence... " >&6; }
23136 cat >conftest.$ac_ext <<_ACEOF
23137 /* confdefs.h.  */
23138 _ACEOF
23139 cat confdefs.h >>conftest.$ac_ext
23140 cat >>conftest.$ac_ext <<_ACEOF
23141 /* end confdefs.h.  */
23142 #include <pthread.h>
23143 _ACEOF
23144 if { (ac_try="$ac_cpp conftest.$ac_ext"
23145 case "(($ac_try" in
23146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147   *) ac_try_echo=$ac_try;;
23148 esac
23149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23150 $as_echo "$ac_try_echo") >&5
23151   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23152   ac_status=$?
23153   grep -v '^ *+' conftest.er1 >conftest.err
23154   rm -f conftest.er1
23155   cat conftest.err >&5
23156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157   (exit $ac_status); } >/dev/null && {
23158          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23159          test ! -s conftest.err
23160        }; then
23161   ac_header_preproc=yes
23162 else
23163   $as_echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23165
23166   ac_header_preproc=no
23167 fi
23168
23169 rm -f conftest.err conftest.$ac_ext
23170 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23171 $as_echo "$ac_header_preproc" >&6; }
23172
23173 # So?  What about this header?
23174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23175   yes:no: )
23176     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23177 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23178     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23179 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23180     ac_header_preproc=yes
23181     ;;
23182   no:yes:* )
23183     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23184 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23185     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23186 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23187     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23188 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23189     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23190 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23191     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23192 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23193     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23194 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23195     ( cat <<\_ASBOX
23196 ## ---------------------------------------- ##
23197 ## Report this to pgsql-bugs@postgresql.org ##
23198 ## ---------------------------------------- ##
23199 _ASBOX
23200      ) | sed "s/^/$as_me: WARNING:     /" >&2
23201     ;;
23202 esac
23203 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23204 $as_echo_n "checking for pthread.h... " >&6; }
23205 if test "${ac_cv_header_pthread_h+set}" = set; then
23206   $as_echo_n "(cached) " >&6
23207 else
23208   ac_cv_header_pthread_h=$ac_header_preproc
23209 fi
23210 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23211 $as_echo "$ac_cv_header_pthread_h" >&6; }
23212
23213 fi
23214 if test "x$ac_cv_header_pthread_h" = x""yes; then
23215   :
23216 else
23217   { { $as_echo "$as_me:$LINENO: error:
23218 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
23219 $as_echo "$as_me: error:
23220 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
23221    { (exit 1); exit 1; }; }
23222 fi
23223
23224
23225 fi
23226
23227
23228
23229
23230 for ac_func in strerror_r getpwuid_r gethostbyname_r
23231 do
23232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23233 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23234 $as_echo_n "checking for $ac_func... " >&6; }
23235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23236   $as_echo_n "(cached) " >&6
23237 else
23238   cat >conftest.$ac_ext <<_ACEOF
23239 /* confdefs.h.  */
23240 _ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h.  */
23244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23246 #define $ac_func innocuous_$ac_func
23247
23248 /* System header to define __stub macros and hopefully few prototypes,
23249     which can conflict with char $ac_func (); below.
23250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23251     <limits.h> exists even on freestanding compilers.  */
23252
23253 #ifdef __STDC__
23254 # include <limits.h>
23255 #else
23256 # include <assert.h>
23257 #endif
23258
23259 #undef $ac_func
23260
23261 /* Override any GCC internal prototype to avoid an error.
23262    Use char because int might match the return type of a GCC
23263    builtin and then its argument prototype would still apply.  */
23264 #ifdef __cplusplus
23265 extern "C"
23266 #endif
23267 char $ac_func ();
23268 /* The GNU C library defines this for functions which it implements
23269     to always fail with ENOSYS.  Some functions are actually named
23270     something starting with __ and the normal name is an alias.  */
23271 #if defined __stub_$ac_func || defined __stub___$ac_func
23272 choke me
23273 #endif
23274
23275 int
23276 main ()
23277 {
23278 return $ac_func ();
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (ac_try="$ac_link"
23285 case "(($ac_try" in
23286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287   *) ac_try_echo=$ac_try;;
23288 esac
23289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23290 $as_echo "$ac_try_echo") >&5
23291   (eval "$ac_link") 2>conftest.er1
23292   ac_status=$?
23293   grep -v '^ *+' conftest.er1 >conftest.err
23294   rm -f conftest.er1
23295   cat conftest.err >&5
23296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297   (exit $ac_status); } && {
23298          test -z "$ac_c_werror_flag" ||
23299          test ! -s conftest.err
23300        } && test -s conftest$ac_exeext && {
23301          test "$cross_compiling" = yes ||
23302          $as_test_x conftest$ac_exeext
23303        }; then
23304   eval "$as_ac_var=yes"
23305 else
23306   $as_echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23308
23309         eval "$as_ac_var=no"
23310 fi
23311
23312 rm -rf conftest.dSYM
23313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23314       conftest$ac_exeext conftest.$ac_ext
23315 fi
23316 ac_res=`eval 'as_val=${'$as_ac_var'}
23317                  $as_echo "$as_val"'`
23318                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23319 $as_echo "$ac_res" >&6; }
23320 as_val=`eval 'as_val=${'$as_ac_var'}
23321                  $as_echo "$as_val"'`
23322    if test "x$as_val" = x""yes; then
23323   cat >>confdefs.h <<_ACEOF
23324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23325 _ACEOF
23326
23327 fi
23328 done
23329
23330
23331 # Do test here with the proper thread flags
23332 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23333 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23334 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23335   $as_echo_n "(cached) " >&6
23336 else
23337   cat >conftest.$ac_ext <<_ACEOF
23338 /* confdefs.h.  */
23339 _ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h.  */
23343 #include <sys/types.h>
23344 #include <pwd.h>
23345 int
23346 main ()
23347 {
23348 uid_t uid;
23349 struct passwd *space;
23350 char *buf;
23351 size_t bufsize;
23352 struct passwd **result;
23353 getpwuid_r(uid, space, buf, bufsize, result);
23354   ;
23355   return 0;
23356 }
23357 _ACEOF
23358 rm -f conftest.$ac_objext
23359 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
23376   pgac_cv_func_getpwuid_r_5arg=yes
23377 else
23378   $as_echo "$as_me: failed program was:" >&5
23379 sed 's/^/| /' conftest.$ac_ext >&5
23380
23381         pgac_cv_func_getpwuid_r_5arg=no
23382 fi
23383
23384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23385 fi
23386 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23387 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23388 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23389
23390 cat >>confdefs.h <<\_ACEOF
23391 #define GETPWUID_R_5ARG /**/
23392 _ACEOF
23393
23394 fi
23395
23396 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23397 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23398 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23399   $as_echo_n "(cached) " >&6
23400 else
23401   cat >conftest.$ac_ext <<_ACEOF
23402 /* confdefs.h.  */
23403 _ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h.  */
23407 #include <string.h>
23408 int
23409 main ()
23410 {
23411 #ifndef _AIX
23412 int strerror_r(int, char *, size_t);
23413 #else
23414 /* Older AIX has 'int' for the third argument so we don't test the args. */
23415 int strerror_r();
23416 #endif
23417   ;
23418   return 0;
23419 }
23420 _ACEOF
23421 rm -f conftest.$ac_objext
23422 if { (ac_try="$ac_compile"
23423 case "(($ac_try" in
23424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23425   *) ac_try_echo=$ac_try;;
23426 esac
23427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23428 $as_echo "$ac_try_echo") >&5
23429   (eval "$ac_compile") 2>conftest.er1
23430   ac_status=$?
23431   grep -v '^ *+' conftest.er1 >conftest.err
23432   rm -f conftest.er1
23433   cat conftest.err >&5
23434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); } && {
23436          test -z "$ac_c_werror_flag" ||
23437          test ! -s conftest.err
23438        } && test -s conftest.$ac_objext; then
23439   pgac_cv_func_strerror_r_int=yes
23440 else
23441   $as_echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23443
23444         pgac_cv_func_strerror_r_int=no
23445 fi
23446
23447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23448 fi
23449 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23450 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23451 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23452
23453 cat >>confdefs.h <<\_ACEOF
23454 #define STRERROR_R_INT /**/
23455 _ACEOF
23456
23457 fi
23458
23459
23460 CFLAGS="$_CFLAGS"
23461 LIBS="$_LIBS"
23462
23463 else
23464 # do not use values from template file
23465 PTHREAD_CFLAGS=
23466 PTHREAD_LIBS=
23467 fi
23468
23469
23470
23471
23472
23473 # We can test for libldap_r only after we know PTHREAD_LIBS
23474 if test "$with_ldap" = yes ; then
23475   _LIBS="$LIBS"
23476   if test "$PORTNAME" != "win32"; then
23477
23478 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23479 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23480 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23481   $as_echo_n "(cached) " >&6
23482 else
23483   ac_check_lib_save_LIBS=$LIBS
23484 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23485 cat >conftest.$ac_ext <<_ACEOF
23486 /* confdefs.h.  */
23487 _ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h.  */
23491
23492 /* Override any GCC internal prototype to avoid an error.
23493    Use char because int might match the return type of a GCC
23494    builtin and then its argument prototype would still apply.  */
23495 #ifdef __cplusplus
23496 extern "C"
23497 #endif
23498 char ldap_bind ();
23499 int
23500 main ()
23501 {
23502 return ldap_bind ();
23503   ;
23504   return 0;
23505 }
23506 _ACEOF
23507 rm -f conftest.$ac_objext conftest$ac_exeext
23508 if { (ac_try="$ac_link"
23509 case "(($ac_try" in
23510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23511   *) ac_try_echo=$ac_try;;
23512 esac
23513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23514 $as_echo "$ac_try_echo") >&5
23515   (eval "$ac_link") 2>conftest.er1
23516   ac_status=$?
23517   grep -v '^ *+' conftest.er1 >conftest.err
23518   rm -f conftest.er1
23519   cat conftest.err >&5
23520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); } && {
23522          test -z "$ac_c_werror_flag" ||
23523          test ! -s conftest.err
23524        } && test -s conftest$ac_exeext && {
23525          test "$cross_compiling" = yes ||
23526          $as_test_x conftest$ac_exeext
23527        }; then
23528   ac_cv_lib_ldap_ldap_bind=yes
23529 else
23530   $as_echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533         ac_cv_lib_ldap_ldap_bind=no
23534 fi
23535
23536 rm -rf conftest.dSYM
23537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23538       conftest$ac_exeext conftest.$ac_ext
23539 LIBS=$ac_check_lib_save_LIBS
23540 fi
23541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23542 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23543 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23544   cat >>confdefs.h <<_ACEOF
23545 #define HAVE_LIBLDAP 1
23546 _ACEOF
23547
23548   LIBS="-lldap $LIBS"
23549
23550 else
23551   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23552 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23553    { (exit 1); exit 1; }; }
23554 fi
23555
23556     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23557     if test "$enable_thread_safety" = yes; then
23558       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23559
23560 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23561 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23562 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23563   $as_echo_n "(cached) " >&6
23564 else
23565   ac_check_lib_save_LIBS=$LIBS
23566 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23567 cat >conftest.$ac_ext <<_ACEOF
23568 /* confdefs.h.  */
23569 _ACEOF
23570 cat confdefs.h >>conftest.$ac_ext
23571 cat >>conftest.$ac_ext <<_ACEOF
23572 /* end confdefs.h.  */
23573
23574 /* Override any GCC internal prototype to avoid an error.
23575    Use char because int might match the return type of a GCC
23576    builtin and then its argument prototype would still apply.  */
23577 #ifdef __cplusplus
23578 extern "C"
23579 #endif
23580 char ldap_simple_bind ();
23581 int
23582 main ()
23583 {
23584 return ldap_simple_bind ();
23585   ;
23586   return 0;
23587 }
23588 _ACEOF
23589 rm -f conftest.$ac_objext conftest$ac_exeext
23590 if { (ac_try="$ac_link"
23591 case "(($ac_try" in
23592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593   *) ac_try_echo=$ac_try;;
23594 esac
23595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23596 $as_echo "$ac_try_echo") >&5
23597   (eval "$ac_link") 2>conftest.er1
23598   ac_status=$?
23599   grep -v '^ *+' conftest.er1 >conftest.err
23600   rm -f conftest.er1
23601   cat conftest.err >&5
23602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603   (exit $ac_status); } && {
23604          test -z "$ac_c_werror_flag" ||
23605          test ! -s conftest.err
23606        } && test -s conftest$ac_exeext && {
23607          test "$cross_compiling" = yes ||
23608          $as_test_x conftest$ac_exeext
23609        }; then
23610   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23611 else
23612   $as_echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23614
23615         ac_cv_lib_ldap_r_ldap_simple_bind=no
23616 fi
23617
23618 rm -rf conftest.dSYM
23619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23620       conftest$ac_exeext conftest.$ac_ext
23621 LIBS=$ac_check_lib_save_LIBS
23622 fi
23623 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23624 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23625 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23626   cat >>confdefs.h <<_ACEOF
23627 #define HAVE_LIBLDAP_R 1
23628 _ACEOF
23629
23630   LIBS="-lldap_r $LIBS"
23631
23632 else
23633   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23634 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23635    { (exit 1); exit 1; }; }
23636 fi
23637
23638       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23639     else
23640       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23641     fi
23642   else
23643
23644 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23645 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23646 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23647   $as_echo_n "(cached) " >&6
23648 else
23649   ac_check_lib_save_LIBS=$LIBS
23650 LIBS="-lwldap32  $LIBS"
23651 cat >conftest.$ac_ext <<_ACEOF
23652 /* confdefs.h.  */
23653 _ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h.  */
23657
23658 /* Override any GCC internal prototype to avoid an error.
23659    Use char because int might match the return type of a GCC
23660    builtin and then its argument prototype would still apply.  */
23661 #ifdef __cplusplus
23662 extern "C"
23663 #endif
23664 char ldap_bind ();
23665 int
23666 main ()
23667 {
23668 return ldap_bind ();
23669   ;
23670   return 0;
23671 }
23672 _ACEOF
23673 rm -f conftest.$ac_objext conftest$ac_exeext
23674 if { (ac_try="$ac_link"
23675 case "(($ac_try" in
23676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23677   *) ac_try_echo=$ac_try;;
23678 esac
23679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23680 $as_echo "$ac_try_echo") >&5
23681   (eval "$ac_link") 2>conftest.er1
23682   ac_status=$?
23683   grep -v '^ *+' conftest.er1 >conftest.err
23684   rm -f conftest.er1
23685   cat conftest.err >&5
23686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); } && {
23688          test -z "$ac_c_werror_flag" ||
23689          test ! -s conftest.err
23690        } && test -s conftest$ac_exeext && {
23691          test "$cross_compiling" = yes ||
23692          $as_test_x conftest$ac_exeext
23693        }; then
23694   ac_cv_lib_wldap32_ldap_bind=yes
23695 else
23696   $as_echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23698
23699         ac_cv_lib_wldap32_ldap_bind=no
23700 fi
23701
23702 rm -rf conftest.dSYM
23703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23704       conftest$ac_exeext conftest.$ac_ext
23705 LIBS=$ac_check_lib_save_LIBS
23706 fi
23707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23708 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23709 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23710   cat >>confdefs.h <<_ACEOF
23711 #define HAVE_LIBWLDAP32 1
23712 _ACEOF
23713
23714   LIBS="-lwldap32 $LIBS"
23715
23716 else
23717   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23718 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23719    { (exit 1); exit 1; }; }
23720 fi
23721
23722     LDAP_LIBS_FE="-lwldap32"
23723     LDAP_LIBS_BE="-lwldap32"
23724   fi
23725   LIBS="$_LIBS"
23726 fi
23727
23728
23729
23730
23731 # Older versions of libxml2 lack the xmlStructuredErrorContext variable
23732 # (which could be a macro referring to a function, if threading is enabled)
23733 if test "$with_libxml" = yes ; then
23734   { $as_echo "$as_me:$LINENO: checking for xmlStructuredErrorContext" >&5
23735 $as_echo_n "checking for xmlStructuredErrorContext... " >&6; }
23736 if test "${pgac_cv_libxml_structerrctx+set}" = set; then
23737   $as_echo_n "(cached) " >&6
23738 else
23739   cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h.  */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h.  */
23745 #include <libxml/globals.h>
23746                 void *globptr;
23747 int
23748 main ()
23749 {
23750 globptr = xmlStructuredErrorContext
23751   ;
23752   return 0;
23753 }
23754 _ACEOF
23755 rm -f conftest.$ac_objext conftest$ac_exeext
23756 if { (ac_try="$ac_link"
23757 case "(($ac_try" in
23758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759   *) ac_try_echo=$ac_try;;
23760 esac
23761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23762 $as_echo "$ac_try_echo") >&5
23763   (eval "$ac_link") 2>conftest.er1
23764   ac_status=$?
23765   grep -v '^ *+' conftest.er1 >conftest.err
23766   rm -f conftest.er1
23767   cat conftest.err >&5
23768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); } && {
23770          test -z "$ac_c_werror_flag" ||
23771          test ! -s conftest.err
23772        } && test -s conftest$ac_exeext && {
23773          test "$cross_compiling" = yes ||
23774          $as_test_x conftest$ac_exeext
23775        }; then
23776   pgac_cv_libxml_structerrctx=yes
23777 else
23778   $as_echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23780
23781         pgac_cv_libxml_structerrctx=no
23782 fi
23783
23784 rm -rf conftest.dSYM
23785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23786       conftest$ac_exeext conftest.$ac_ext
23787 fi
23788 { $as_echo "$as_me:$LINENO: result: $pgac_cv_libxml_structerrctx" >&5
23789 $as_echo "$pgac_cv_libxml_structerrctx" >&6; }
23790   if test x"$pgac_cv_libxml_structerrctx" = x"yes"; then
23791
23792 cat >>confdefs.h <<\_ACEOF
23793 #define HAVE_XMLSTRUCTUREDERRORCONTEXT 1
23794 _ACEOF
23795
23796   fi
23797 fi
23798
23799
23800 # This test makes sure that run tests work at all.  Sometimes a shared
23801 # library is found by the linker, but the runtime linker can't find it.
23802 # This check should come after all modifications of compiler or linker
23803 # variables, and before any other run tests.
23804 { $as_echo "$as_me:$LINENO: checking test program" >&5
23805 $as_echo_n "checking test program... " >&6; }
23806 if test "$cross_compiling" = yes; then
23807   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23808 $as_echo "cross-compiling" >&6; }
23809 else
23810   cat >conftest.$ac_ext <<_ACEOF
23811 /* confdefs.h.  */
23812 _ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h.  */
23816 int main() { return 0; }
23817 _ACEOF
23818 rm -f conftest$ac_exeext
23819 if { (ac_try="$ac_link"
23820 case "(($ac_try" in
23821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822   *) ac_try_echo=$ac_try;;
23823 esac
23824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23825 $as_echo "$ac_try_echo") >&5
23826   (eval "$ac_link") 2>&5
23827   ac_status=$?
23828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23830   { (case "(($ac_try" in
23831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23832   *) ac_try_echo=$ac_try;;
23833 esac
23834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23835 $as_echo "$ac_try_echo") >&5
23836   (eval "$ac_try") 2>&5
23837   ac_status=$?
23838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839   (exit $ac_status); }; }; then
23840   { $as_echo "$as_me:$LINENO: result: ok" >&5
23841 $as_echo "ok" >&6; }
23842 else
23843   $as_echo "$as_me: program exited with status $ac_status" >&5
23844 $as_echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23846
23847 ( exit $ac_status )
23848 { $as_echo "$as_me:$LINENO: result: failed" >&5
23849 $as_echo "failed" >&6; }
23850 { { $as_echo "$as_me:$LINENO: error:
23851 Could not execute a simple test program.  This may be a problem
23852 related to locating shared libraries.  Check the file 'config.log'
23853 for the exact reason." >&5
23854 $as_echo "$as_me: error:
23855 Could not execute a simple test program.  This may be a problem
23856 related to locating shared libraries.  Check the file 'config.log'
23857 for the exact reason." >&2;}
23858    { (exit 1); exit 1; }; }
23859 fi
23860 rm -rf conftest.dSYM
23861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23862 fi
23863
23864
23865
23866 # --------------------
23867 # Run tests below here
23868 # --------------------
23869
23870 # Force use of our snprintf if system's doesn't do arg control
23871 # See comment above at snprintf test for details.
23872 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23873   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23874 $as_echo_n "checking whether printf supports argument control... " >&6; }
23875 if test "${pgac_cv_printf_arg_control+set}" = set; then
23876   $as_echo_n "(cached) " >&6
23877 else
23878   if test "$cross_compiling" = yes; then
23879   pgac_cv_printf_arg_control=cross
23880 else
23881   cat >conftest.$ac_ext <<_ACEOF
23882 /* confdefs.h.  */
23883 _ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h.  */
23887 #include <stdio.h>
23888 #include <string.h>
23889
23890 int main()
23891 {
23892   char buf[100];
23893
23894   /* can it swap arguments? */
23895   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23896   if (strcmp(buf, "4 3") != 0)
23897     return 1;
23898   return 0;
23899 }
23900 _ACEOF
23901 rm -f conftest$ac_exeext
23902 if { (ac_try="$ac_link"
23903 case "(($ac_try" in
23904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905   *) ac_try_echo=$ac_try;;
23906 esac
23907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23908 $as_echo "$ac_try_echo") >&5
23909   (eval "$ac_link") 2>&5
23910   ac_status=$?
23911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23913   { (case "(($ac_try" in
23914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23915   *) ac_try_echo=$ac_try;;
23916 esac
23917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23918 $as_echo "$ac_try_echo") >&5
23919   (eval "$ac_try") 2>&5
23920   ac_status=$?
23921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922   (exit $ac_status); }; }; then
23923   pgac_cv_printf_arg_control=yes
23924 else
23925   $as_echo "$as_me: program exited with status $ac_status" >&5
23926 $as_echo "$as_me: failed program was:" >&5
23927 sed 's/^/| /' conftest.$ac_ext >&5
23928
23929 ( exit $ac_status )
23930 pgac_cv_printf_arg_control=no
23931 fi
23932 rm -rf conftest.dSYM
23933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23934 fi
23935
23936
23937
23938 fi
23939 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23940 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23941
23942   if test $pgac_cv_printf_arg_control != yes ; then
23943     pgac_need_repl_snprintf=yes
23944   fi
23945 fi
23946
23947
23948
23949
23950 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23951 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23952 if test "${pgac_cv_type_long_int_64+set}" = set; then
23953   $as_echo_n "(cached) " >&6
23954 else
23955   if test "$cross_compiling" = yes; then
23956   # If cross-compiling, check the size reported by the compiler and
23957 # trust that the arithmetic works.
23958 cat >conftest.$ac_ext <<_ACEOF
23959 /* confdefs.h.  */
23960 _ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h.  */
23964
23965 int
23966 main ()
23967 {
23968 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23969 test_array [0] = 0
23970
23971   ;
23972   return 0;
23973 }
23974 _ACEOF
23975 rm -f conftest.$ac_objext
23976 if { (ac_try="$ac_compile"
23977 case "(($ac_try" in
23978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979   *) ac_try_echo=$ac_try;;
23980 esac
23981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23982 $as_echo "$ac_try_echo") >&5
23983   (eval "$ac_compile") 2>conftest.er1
23984   ac_status=$?
23985   grep -v '^ *+' conftest.er1 >conftest.err
23986   rm -f conftest.er1
23987   cat conftest.err >&5
23988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989   (exit $ac_status); } && {
23990          test -z "$ac_c_werror_flag" ||
23991          test ! -s conftest.err
23992        } && test -s conftest.$ac_objext; then
23993   pgac_cv_type_long_int_64=yes
23994 else
23995   $as_echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23997
23998         pgac_cv_type_long_int_64=no
23999 fi
24000
24001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24002 else
24003   cat >conftest.$ac_ext <<_ACEOF
24004 /* confdefs.h.  */
24005 _ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h.  */
24009 typedef long int ac_int64;
24010
24011 /*
24012  * These are globals to discourage the compiler from folding all the
24013  * arithmetic tests down to compile-time constants.
24014  */
24015 ac_int64 a = 20000001;
24016 ac_int64 b = 40000005;
24017
24018 int does_int64_work()
24019 {
24020   ac_int64 c,d;
24021
24022   if (sizeof(ac_int64) != 8)
24023     return 0;                   /* definitely not the right size */
24024
24025   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24026   c = a * b;
24027   d = (c + b) / b;
24028   if (d != a+1)
24029     return 0;
24030   return 1;
24031 }
24032 main() {
24033   exit(! does_int64_work());
24034 }
24035 _ACEOF
24036 rm -f conftest$ac_exeext
24037 if { (ac_try="$ac_link"
24038 case "(($ac_try" in
24039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040   *) ac_try_echo=$ac_try;;
24041 esac
24042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24043 $as_echo "$ac_try_echo") >&5
24044   (eval "$ac_link") 2>&5
24045   ac_status=$?
24046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24048   { (case "(($ac_try" in
24049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050   *) ac_try_echo=$ac_try;;
24051 esac
24052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24053 $as_echo "$ac_try_echo") >&5
24054   (eval "$ac_try") 2>&5
24055   ac_status=$?
24056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057   (exit $ac_status); }; }; then
24058   pgac_cv_type_long_int_64=yes
24059 else
24060   $as_echo "$as_me: program exited with status $ac_status" >&5
24061 $as_echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24063
24064 ( exit $ac_status )
24065 pgac_cv_type_long_int_64=no
24066 fi
24067 rm -rf conftest.dSYM
24068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24069 fi
24070
24071
24072 fi
24073 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24074 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24075
24076 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24077 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24078
24079 cat >>confdefs.h <<\_ACEOF
24080 #define HAVE_LONG_INT_64 1
24081 _ACEOF
24082
24083 fi
24084
24085
24086 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24087   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24088 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24089 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24090   $as_echo_n "(cached) " >&6
24091 else
24092   if test "$cross_compiling" = yes; then
24093   # If cross-compiling, check the size reported by the compiler and
24094 # trust that the arithmetic works.
24095 cat >conftest.$ac_ext <<_ACEOF
24096 /* confdefs.h.  */
24097 _ACEOF
24098 cat confdefs.h >>conftest.$ac_ext
24099 cat >>conftest.$ac_ext <<_ACEOF
24100 /* end confdefs.h.  */
24101
24102 int
24103 main ()
24104 {
24105 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24106 test_array [0] = 0
24107
24108   ;
24109   return 0;
24110 }
24111 _ACEOF
24112 rm -f conftest.$ac_objext
24113 if { (ac_try="$ac_compile"
24114 case "(($ac_try" in
24115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116   *) ac_try_echo=$ac_try;;
24117 esac
24118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24119 $as_echo "$ac_try_echo") >&5
24120   (eval "$ac_compile") 2>conftest.er1
24121   ac_status=$?
24122   grep -v '^ *+' conftest.er1 >conftest.err
24123   rm -f conftest.er1
24124   cat conftest.err >&5
24125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126   (exit $ac_status); } && {
24127          test -z "$ac_c_werror_flag" ||
24128          test ! -s conftest.err
24129        } && test -s conftest.$ac_objext; then
24130   pgac_cv_type_long_long_int_64=yes
24131 else
24132   $as_echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.$ac_ext >&5
24134
24135         pgac_cv_type_long_long_int_64=no
24136 fi
24137
24138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24139 else
24140   cat >conftest.$ac_ext <<_ACEOF
24141 /* confdefs.h.  */
24142 _ACEOF
24143 cat confdefs.h >>conftest.$ac_ext
24144 cat >>conftest.$ac_ext <<_ACEOF
24145 /* end confdefs.h.  */
24146 typedef long long int ac_int64;
24147
24148 /*
24149  * These are globals to discourage the compiler from folding all the
24150  * arithmetic tests down to compile-time constants.
24151  */
24152 ac_int64 a = 20000001;
24153 ac_int64 b = 40000005;
24154
24155 int does_int64_work()
24156 {
24157   ac_int64 c,d;
24158
24159   if (sizeof(ac_int64) != 8)
24160     return 0;                   /* definitely not the right size */
24161
24162   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24163   c = a * b;
24164   d = (c + b) / b;
24165   if (d != a+1)
24166     return 0;
24167   return 1;
24168 }
24169 main() {
24170   exit(! does_int64_work());
24171 }
24172 _ACEOF
24173 rm -f conftest$ac_exeext
24174 if { (ac_try="$ac_link"
24175 case "(($ac_try" in
24176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177   *) ac_try_echo=$ac_try;;
24178 esac
24179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24180 $as_echo "$ac_try_echo") >&5
24181   (eval "$ac_link") 2>&5
24182   ac_status=$?
24183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24185   { (case "(($ac_try" in
24186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24187   *) ac_try_echo=$ac_try;;
24188 esac
24189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24190 $as_echo "$ac_try_echo") >&5
24191   (eval "$ac_try") 2>&5
24192   ac_status=$?
24193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194   (exit $ac_status); }; }; then
24195   pgac_cv_type_long_long_int_64=yes
24196 else
24197   $as_echo "$as_me: program exited with status $ac_status" >&5
24198 $as_echo "$as_me: failed program was:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24200
24201 ( exit $ac_status )
24202 pgac_cv_type_long_long_int_64=no
24203 fi
24204 rm -rf conftest.dSYM
24205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24206 fi
24207
24208
24209 fi
24210 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24211 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24212
24213 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24214 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24215
24216 cat >>confdefs.h <<\_ACEOF
24217 #define HAVE_LONG_LONG_INT_64 1
24218 _ACEOF
24219
24220 fi
24221
24222   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24223     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24224 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24225    { (exit 1); exit 1; }; }
24226   fi
24227 fi
24228
24229
24230
24231 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24232   cat >conftest.$ac_ext <<_ACEOF
24233 /* confdefs.h.  */
24234 _ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h.  */
24238
24239 #define INT64CONST(x)  x##LL
24240 long long int foo = INT64CONST(0x1234567890123456);
24241
24242 int
24243 main ()
24244 {
24245
24246   ;
24247   return 0;
24248 }
24249 _ACEOF
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254   *) ac_try_echo=$ac_try;;
24255 esac
24256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24257 $as_echo "$ac_try_echo") >&5
24258   (eval "$ac_compile") 2>conftest.er1
24259   ac_status=$?
24260   grep -v '^ *+' conftest.er1 >conftest.err
24261   rm -f conftest.er1
24262   cat conftest.err >&5
24263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264   (exit $ac_status); } && {
24265          test -z "$ac_c_werror_flag" ||
24266          test ! -s conftest.err
24267        } && test -s conftest.$ac_objext; then
24268
24269 cat >>confdefs.h <<\_ACEOF
24270 #define HAVE_LL_CONSTANTS 1
24271 _ACEOF
24272
24273 else
24274   $as_echo "$as_me: failed program was:" >&5
24275 sed 's/^/| /' conftest.$ac_ext >&5
24276
24277
24278 fi
24279
24280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24281 fi
24282
24283
24284 # If we found "long int" is 64 bits, assume snprintf handles it.  If
24285 # we found we need to use "long long int", better check.  We cope with
24286 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
24287 # work, fall back to our own snprintf emulation (which we know uses %lld).
24288
24289 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24290   if test $pgac_need_repl_snprintf = no; then
24291     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24292 $as_echo_n "checking snprintf format for long long int... " >&6; }
24293 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24294   $as_echo_n "(cached) " >&6
24295 else
24296   for pgac_format in '%lld' '%qd' '%I64d'; do
24297 if test "$cross_compiling" = yes; then
24298   pgac_cv_snprintf_long_long_int_format=cross; break
24299 else
24300   cat >conftest.$ac_ext <<_ACEOF
24301 /* confdefs.h.  */
24302 _ACEOF
24303 cat confdefs.h >>conftest.$ac_ext
24304 cat >>conftest.$ac_ext <<_ACEOF
24305 /* end confdefs.h.  */
24306 #include <stdio.h>
24307 typedef long long int ac_int64;
24308 #define INT64_FORMAT "$pgac_format"
24309
24310 ac_int64 a = 20000001;
24311 ac_int64 b = 40000005;
24312
24313 int does_int64_snprintf_work()
24314 {
24315   ac_int64 c;
24316   char buf[100];
24317
24318   if (sizeof(ac_int64) != 8)
24319     return 0;                   /* doesn't look like the right size */
24320
24321   c = a * b;
24322   snprintf(buf, 100, INT64_FORMAT, c);
24323   if (strcmp(buf, "800000140000005") != 0)
24324     return 0;                   /* either multiply or snprintf is busted */
24325   return 1;
24326 }
24327 main() {
24328   exit(! does_int64_snprintf_work());
24329 }
24330 _ACEOF
24331 rm -f conftest$ac_exeext
24332 if { (ac_try="$ac_link"
24333 case "(($ac_try" in
24334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335   *) ac_try_echo=$ac_try;;
24336 esac
24337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24338 $as_echo "$ac_try_echo") >&5
24339   (eval "$ac_link") 2>&5
24340   ac_status=$?
24341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24343   { (case "(($ac_try" in
24344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345   *) ac_try_echo=$ac_try;;
24346 esac
24347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24348 $as_echo "$ac_try_echo") >&5
24349   (eval "$ac_try") 2>&5
24350   ac_status=$?
24351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352   (exit $ac_status); }; }; then
24353   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24354 else
24355   $as_echo "$as_me: program exited with status $ac_status" >&5
24356 $as_echo "$as_me: failed program was:" >&5
24357 sed 's/^/| /' conftest.$ac_ext >&5
24358
24359 fi
24360 rm -rf conftest.dSYM
24361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24362 fi
24363
24364
24365 done
24366 fi
24367
24368 LONG_LONG_INT_FORMAT=''
24369
24370 case $pgac_cv_snprintf_long_long_int_format in
24371   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24372 $as_echo "cannot test (not on host machine)" >&6; };;
24373   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24374 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24375          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24376   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
24377 $as_echo "none" >&6; };;
24378 esac
24379     if test "$LONG_LONG_INT_FORMAT" = ""; then
24380       # Force usage of our own snprintf, since system snprintf is broken
24381       pgac_need_repl_snprintf=yes
24382       LONG_LONG_INT_FORMAT='%lld'
24383     fi
24384   else
24385     # Here if we previously decided we needed to use our own snprintf
24386     LONG_LONG_INT_FORMAT='%lld'
24387   fi
24388   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24389   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24390   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24391 else
24392   # Here if we are not using 'long long int' at all
24393   INT64_FORMAT='"%ld"'
24394   UINT64_FORMAT='"%lu"'
24395 fi
24396
24397
24398 cat >>confdefs.h <<_ACEOF
24399 #define INT64_FORMAT $INT64_FORMAT
24400 _ACEOF
24401
24402
24403
24404 cat >>confdefs.h <<_ACEOF
24405 #define UINT64_FORMAT $UINT64_FORMAT
24406 _ACEOF
24407
24408
24409 # Now we have checked all the reasons to replace snprintf
24410 if test $pgac_need_repl_snprintf = yes; then
24411
24412 cat >>confdefs.h <<\_ACEOF
24413 #define USE_REPL_SNPRINTF 1
24414 _ACEOF
24415
24416   case " $LIBOBJS " in
24417   *" snprintf.$ac_objext "* ) ;;
24418   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24419  ;;
24420 esac
24421
24422 fi
24423
24424 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24425 # The cast to long int works around a bug in the HP C Compiler
24426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24428 # This bug is HP SR number 8606223364.
24429 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24430 $as_echo_n "checking size of void *... " >&6; }
24431 if test "${ac_cv_sizeof_void_p+set}" = set; then
24432   $as_echo_n "(cached) " >&6
24433 else
24434   if test "$cross_compiling" = yes; then
24435   # Depending upon the size, compute the lo and hi bounds.
24436 cat >conftest.$ac_ext <<_ACEOF
24437 /* confdefs.h.  */
24438 _ACEOF
24439 cat confdefs.h >>conftest.$ac_ext
24440 cat >>conftest.$ac_ext <<_ACEOF
24441 /* end confdefs.h.  */
24442 $ac_includes_default
24443 int
24444 main ()
24445 {
24446 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24447 test_array [0] = 0
24448
24449   ;
24450   return 0;
24451 }
24452 _ACEOF
24453 rm -f conftest.$ac_objext
24454 if { (ac_try="$ac_compile"
24455 case "(($ac_try" in
24456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457   *) ac_try_echo=$ac_try;;
24458 esac
24459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24460 $as_echo "$ac_try_echo") >&5
24461   (eval "$ac_compile") 2>conftest.er1
24462   ac_status=$?
24463   grep -v '^ *+' conftest.er1 >conftest.err
24464   rm -f conftest.er1
24465   cat conftest.err >&5
24466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); } && {
24468          test -z "$ac_c_werror_flag" ||
24469          test ! -s conftest.err
24470        } && test -s conftest.$ac_objext; then
24471   ac_lo=0 ac_mid=0
24472   while :; do
24473     cat >conftest.$ac_ext <<_ACEOF
24474 /* confdefs.h.  */
24475 _ACEOF
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h.  */
24479 $ac_includes_default
24480 int
24481 main ()
24482 {
24483 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24484 test_array [0] = 0
24485
24486   ;
24487   return 0;
24488 }
24489 _ACEOF
24490 rm -f conftest.$ac_objext
24491 if { (ac_try="$ac_compile"
24492 case "(($ac_try" in
24493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24494   *) ac_try_echo=$ac_try;;
24495 esac
24496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24497 $as_echo "$ac_try_echo") >&5
24498   (eval "$ac_compile") 2>conftest.er1
24499   ac_status=$?
24500   grep -v '^ *+' conftest.er1 >conftest.err
24501   rm -f conftest.er1
24502   cat conftest.err >&5
24503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504   (exit $ac_status); } && {
24505          test -z "$ac_c_werror_flag" ||
24506          test ! -s conftest.err
24507        } && test -s conftest.$ac_objext; then
24508   ac_hi=$ac_mid; break
24509 else
24510   $as_echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24512
24513         ac_lo=`expr $ac_mid + 1`
24514                         if test $ac_lo -le $ac_mid; then
24515                           ac_lo= ac_hi=
24516                           break
24517                         fi
24518                         ac_mid=`expr 2 '*' $ac_mid + 1`
24519 fi
24520
24521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24522   done
24523 else
24524   $as_echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24526
24527         cat >conftest.$ac_ext <<_ACEOF
24528 /* confdefs.h.  */
24529 _ACEOF
24530 cat confdefs.h >>conftest.$ac_ext
24531 cat >>conftest.$ac_ext <<_ACEOF
24532 /* end confdefs.h.  */
24533 $ac_includes_default
24534 int
24535 main ()
24536 {
24537 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24538 test_array [0] = 0
24539
24540   ;
24541   return 0;
24542 }
24543 _ACEOF
24544 rm -f conftest.$ac_objext
24545 if { (ac_try="$ac_compile"
24546 case "(($ac_try" in
24547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548   *) ac_try_echo=$ac_try;;
24549 esac
24550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24551 $as_echo "$ac_try_echo") >&5
24552   (eval "$ac_compile") 2>conftest.er1
24553   ac_status=$?
24554   grep -v '^ *+' conftest.er1 >conftest.err
24555   rm -f conftest.er1
24556   cat conftest.err >&5
24557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558   (exit $ac_status); } && {
24559          test -z "$ac_c_werror_flag" ||
24560          test ! -s conftest.err
24561        } && test -s conftest.$ac_objext; then
24562   ac_hi=-1 ac_mid=-1
24563   while :; do
24564     cat >conftest.$ac_ext <<_ACEOF
24565 /* confdefs.h.  */
24566 _ACEOF
24567 cat confdefs.h >>conftest.$ac_ext
24568 cat >>conftest.$ac_ext <<_ACEOF
24569 /* end confdefs.h.  */
24570 $ac_includes_default
24571 int
24572 main ()
24573 {
24574 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24575 test_array [0] = 0
24576
24577   ;
24578   return 0;
24579 }
24580 _ACEOF
24581 rm -f conftest.$ac_objext
24582 if { (ac_try="$ac_compile"
24583 case "(($ac_try" in
24584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585   *) ac_try_echo=$ac_try;;
24586 esac
24587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24588 $as_echo "$ac_try_echo") >&5
24589   (eval "$ac_compile") 2>conftest.er1
24590   ac_status=$?
24591   grep -v '^ *+' conftest.er1 >conftest.err
24592   rm -f conftest.er1
24593   cat conftest.err >&5
24594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595   (exit $ac_status); } && {
24596          test -z "$ac_c_werror_flag" ||
24597          test ! -s conftest.err
24598        } && test -s conftest.$ac_objext; then
24599   ac_lo=$ac_mid; break
24600 else
24601   $as_echo "$as_me: failed program was:" >&5
24602 sed 's/^/| /' conftest.$ac_ext >&5
24603
24604         ac_hi=`expr '(' $ac_mid ')' - 1`
24605                         if test $ac_mid -le $ac_hi; then
24606                           ac_lo= ac_hi=
24607                           break
24608                         fi
24609                         ac_mid=`expr 2 '*' $ac_mid`
24610 fi
24611
24612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24613   done
24614 else
24615   $as_echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24617
24618         ac_lo= ac_hi=
24619 fi
24620
24621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24622 fi
24623
24624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24625 # Binary search between lo and hi bounds.
24626 while test "x$ac_lo" != "x$ac_hi"; do
24627   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24628   cat >conftest.$ac_ext <<_ACEOF
24629 /* confdefs.h.  */
24630 _ACEOF
24631 cat confdefs.h >>conftest.$ac_ext
24632 cat >>conftest.$ac_ext <<_ACEOF
24633 /* end confdefs.h.  */
24634 $ac_includes_default
24635 int
24636 main ()
24637 {
24638 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24639 test_array [0] = 0
24640
24641   ;
24642   return 0;
24643 }
24644 _ACEOF
24645 rm -f conftest.$ac_objext
24646 if { (ac_try="$ac_compile"
24647 case "(($ac_try" in
24648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24649   *) ac_try_echo=$ac_try;;
24650 esac
24651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24652 $as_echo "$ac_try_echo") >&5
24653   (eval "$ac_compile") 2>conftest.er1
24654   ac_status=$?
24655   grep -v '^ *+' conftest.er1 >conftest.err
24656   rm -f conftest.er1
24657   cat conftest.err >&5
24658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659   (exit $ac_status); } && {
24660          test -z "$ac_c_werror_flag" ||
24661          test ! -s conftest.err
24662        } && test -s conftest.$ac_objext; then
24663   ac_hi=$ac_mid
24664 else
24665   $as_echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24667
24668         ac_lo=`expr '(' $ac_mid ')' + 1`
24669 fi
24670
24671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24672 done
24673 case $ac_lo in
24674 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24675 '') if test "$ac_cv_type_void_p" = yes; then
24676      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24678 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24679 See \`config.log' for more details." >&5
24680 $as_echo "$as_me: error: cannot compute sizeof (void *)
24681 See \`config.log' for more details." >&2;}
24682    { (exit 77); exit 77; }; }; }
24683    else
24684      ac_cv_sizeof_void_p=0
24685    fi ;;
24686 esac
24687 else
24688   cat >conftest.$ac_ext <<_ACEOF
24689 /* confdefs.h.  */
24690 _ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h.  */
24694 $ac_includes_default
24695 static long int longval () { return (long int) (sizeof (void *)); }
24696 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24697 #include <stdio.h>
24698 #include <stdlib.h>
24699 int
24700 main ()
24701 {
24702
24703   FILE *f = fopen ("conftest.val", "w");
24704   if (! f)
24705     return 1;
24706   if (((long int) (sizeof (void *))) < 0)
24707     {
24708       long int i = longval ();
24709       if (i != ((long int) (sizeof (void *))))
24710         return 1;
24711       fprintf (f, "%ld", i);
24712     }
24713   else
24714     {
24715       unsigned long int i = ulongval ();
24716       if (i != ((long int) (sizeof (void *))))
24717         return 1;
24718       fprintf (f, "%lu", i);
24719     }
24720   /* Do not output a trailing newline, as this causes \r\n confusion
24721      on some platforms.  */
24722   return ferror (f) || fclose (f) != 0;
24723
24724   ;
24725   return 0;
24726 }
24727 _ACEOF
24728 rm -f conftest$ac_exeext
24729 if { (ac_try="$ac_link"
24730 case "(($ac_try" in
24731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732   *) ac_try_echo=$ac_try;;
24733 esac
24734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24735 $as_echo "$ac_try_echo") >&5
24736   (eval "$ac_link") 2>&5
24737   ac_status=$?
24738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24740   { (case "(($ac_try" in
24741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24742   *) ac_try_echo=$ac_try;;
24743 esac
24744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24745 $as_echo "$ac_try_echo") >&5
24746   (eval "$ac_try") 2>&5
24747   ac_status=$?
24748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749   (exit $ac_status); }; }; then
24750   ac_cv_sizeof_void_p=`cat conftest.val`
24751 else
24752   $as_echo "$as_me: program exited with status $ac_status" >&5
24753 $as_echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24755
24756 ( exit $ac_status )
24757 if test "$ac_cv_type_void_p" = yes; then
24758      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24760 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24761 See \`config.log' for more details." >&5
24762 $as_echo "$as_me: error: cannot compute sizeof (void *)
24763 See \`config.log' for more details." >&2;}
24764    { (exit 77); exit 77; }; }; }
24765    else
24766      ac_cv_sizeof_void_p=0
24767    fi
24768 fi
24769 rm -rf conftest.dSYM
24770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24771 fi
24772 rm -f conftest.val
24773 fi
24774 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24775 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24776
24777
24778
24779 cat >>confdefs.h <<_ACEOF
24780 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24781 _ACEOF
24782
24783
24784 # The cast to long int works around a bug in the HP C Compiler
24785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24787 # This bug is HP SR number 8606223364.
24788 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24789 $as_echo_n "checking size of size_t... " >&6; }
24790 if test "${ac_cv_sizeof_size_t+set}" = set; then
24791   $as_echo_n "(cached) " >&6
24792 else
24793   if test "$cross_compiling" = yes; then
24794   # Depending upon the size, compute the lo and hi bounds.
24795 cat >conftest.$ac_ext <<_ACEOF
24796 /* confdefs.h.  */
24797 _ACEOF
24798 cat confdefs.h >>conftest.$ac_ext
24799 cat >>conftest.$ac_ext <<_ACEOF
24800 /* end confdefs.h.  */
24801 $ac_includes_default
24802 int
24803 main ()
24804 {
24805 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24806 test_array [0] = 0
24807
24808   ;
24809   return 0;
24810 }
24811 _ACEOF
24812 rm -f conftest.$ac_objext
24813 if { (ac_try="$ac_compile"
24814 case "(($ac_try" in
24815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816   *) ac_try_echo=$ac_try;;
24817 esac
24818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24819 $as_echo "$ac_try_echo") >&5
24820   (eval "$ac_compile") 2>conftest.er1
24821   ac_status=$?
24822   grep -v '^ *+' conftest.er1 >conftest.err
24823   rm -f conftest.er1
24824   cat conftest.err >&5
24825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826   (exit $ac_status); } && {
24827          test -z "$ac_c_werror_flag" ||
24828          test ! -s conftest.err
24829        } && test -s conftest.$ac_objext; then
24830   ac_lo=0 ac_mid=0
24831   while :; do
24832     cat >conftest.$ac_ext <<_ACEOF
24833 /* confdefs.h.  */
24834 _ACEOF
24835 cat confdefs.h >>conftest.$ac_ext
24836 cat >>conftest.$ac_ext <<_ACEOF
24837 /* end confdefs.h.  */
24838 $ac_includes_default
24839 int
24840 main ()
24841 {
24842 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24843 test_array [0] = 0
24844
24845   ;
24846   return 0;
24847 }
24848 _ACEOF
24849 rm -f conftest.$ac_objext
24850 if { (ac_try="$ac_compile"
24851 case "(($ac_try" in
24852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853   *) ac_try_echo=$ac_try;;
24854 esac
24855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24856 $as_echo "$ac_try_echo") >&5
24857   (eval "$ac_compile") 2>conftest.er1
24858   ac_status=$?
24859   grep -v '^ *+' conftest.er1 >conftest.err
24860   rm -f conftest.er1
24861   cat conftest.err >&5
24862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863   (exit $ac_status); } && {
24864          test -z "$ac_c_werror_flag" ||
24865          test ! -s conftest.err
24866        } && test -s conftest.$ac_objext; then
24867   ac_hi=$ac_mid; break
24868 else
24869   $as_echo "$as_me: failed program was:" >&5
24870 sed 's/^/| /' conftest.$ac_ext >&5
24871
24872         ac_lo=`expr $ac_mid + 1`
24873                         if test $ac_lo -le $ac_mid; then
24874                           ac_lo= ac_hi=
24875                           break
24876                         fi
24877                         ac_mid=`expr 2 '*' $ac_mid + 1`
24878 fi
24879
24880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24881   done
24882 else
24883   $as_echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24885
24886         cat >conftest.$ac_ext <<_ACEOF
24887 /* confdefs.h.  */
24888 _ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h.  */
24892 $ac_includes_default
24893 int
24894 main ()
24895 {
24896 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24897 test_array [0] = 0
24898
24899   ;
24900   return 0;
24901 }
24902 _ACEOF
24903 rm -f conftest.$ac_objext
24904 if { (ac_try="$ac_compile"
24905 case "(($ac_try" in
24906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907   *) ac_try_echo=$ac_try;;
24908 esac
24909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24910 $as_echo "$ac_try_echo") >&5
24911   (eval "$ac_compile") 2>conftest.er1
24912   ac_status=$?
24913   grep -v '^ *+' conftest.er1 >conftest.err
24914   rm -f conftest.er1
24915   cat conftest.err >&5
24916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917   (exit $ac_status); } && {
24918          test -z "$ac_c_werror_flag" ||
24919          test ! -s conftest.err
24920        } && test -s conftest.$ac_objext; then
24921   ac_hi=-1 ac_mid=-1
24922   while :; do
24923     cat >conftest.$ac_ext <<_ACEOF
24924 /* confdefs.h.  */
24925 _ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h.  */
24929 $ac_includes_default
24930 int
24931 main ()
24932 {
24933 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24934 test_array [0] = 0
24935
24936   ;
24937   return 0;
24938 }
24939 _ACEOF
24940 rm -f conftest.$ac_objext
24941 if { (ac_try="$ac_compile"
24942 case "(($ac_try" in
24943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24944   *) ac_try_echo=$ac_try;;
24945 esac
24946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24947 $as_echo "$ac_try_echo") >&5
24948   (eval "$ac_compile") 2>conftest.er1
24949   ac_status=$?
24950   grep -v '^ *+' conftest.er1 >conftest.err
24951   rm -f conftest.er1
24952   cat conftest.err >&5
24953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); } && {
24955          test -z "$ac_c_werror_flag" ||
24956          test ! -s conftest.err
24957        } && test -s conftest.$ac_objext; then
24958   ac_lo=$ac_mid; break
24959 else
24960   $as_echo "$as_me: failed program was:" >&5
24961 sed 's/^/| /' conftest.$ac_ext >&5
24962
24963         ac_hi=`expr '(' $ac_mid ')' - 1`
24964                         if test $ac_mid -le $ac_hi; then
24965                           ac_lo= ac_hi=
24966                           break
24967                         fi
24968                         ac_mid=`expr 2 '*' $ac_mid`
24969 fi
24970
24971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24972   done
24973 else
24974   $as_echo "$as_me: failed program was:" >&5
24975 sed 's/^/| /' conftest.$ac_ext >&5
24976
24977         ac_lo= ac_hi=
24978 fi
24979
24980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24981 fi
24982
24983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24984 # Binary search between lo and hi bounds.
24985 while test "x$ac_lo" != "x$ac_hi"; do
24986   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24987   cat >conftest.$ac_ext <<_ACEOF
24988 /* confdefs.h.  */
24989 _ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h.  */
24993 $ac_includes_default
24994 int
24995 main ()
24996 {
24997 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24998 test_array [0] = 0
24999
25000   ;
25001   return 0;
25002 }
25003 _ACEOF
25004 rm -f conftest.$ac_objext
25005 if { (ac_try="$ac_compile"
25006 case "(($ac_try" in
25007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008   *) ac_try_echo=$ac_try;;
25009 esac
25010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25011 $as_echo "$ac_try_echo") >&5
25012   (eval "$ac_compile") 2>conftest.er1
25013   ac_status=$?
25014   grep -v '^ *+' conftest.er1 >conftest.err
25015   rm -f conftest.er1
25016   cat conftest.err >&5
25017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); } && {
25019          test -z "$ac_c_werror_flag" ||
25020          test ! -s conftest.err
25021        } && test -s conftest.$ac_objext; then
25022   ac_hi=$ac_mid
25023 else
25024   $as_echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25026
25027         ac_lo=`expr '(' $ac_mid ')' + 1`
25028 fi
25029
25030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25031 done
25032 case $ac_lo in
25033 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25034 '') if test "$ac_cv_type_size_t" = yes; then
25035      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25037 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25038 See \`config.log' for more details." >&5
25039 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25040 See \`config.log' for more details." >&2;}
25041    { (exit 77); exit 77; }; }; }
25042    else
25043      ac_cv_sizeof_size_t=0
25044    fi ;;
25045 esac
25046 else
25047   cat >conftest.$ac_ext <<_ACEOF
25048 /* confdefs.h.  */
25049 _ACEOF
25050 cat confdefs.h >>conftest.$ac_ext
25051 cat >>conftest.$ac_ext <<_ACEOF
25052 /* end confdefs.h.  */
25053 $ac_includes_default
25054 static long int longval () { return (long int) (sizeof (size_t)); }
25055 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25056 #include <stdio.h>
25057 #include <stdlib.h>
25058 int
25059 main ()
25060 {
25061
25062   FILE *f = fopen ("conftest.val", "w");
25063   if (! f)
25064     return 1;
25065   if (((long int) (sizeof (size_t))) < 0)
25066     {
25067       long int i = longval ();
25068       if (i != ((long int) (sizeof (size_t))))
25069         return 1;
25070       fprintf (f, "%ld", i);
25071     }
25072   else
25073     {
25074       unsigned long int i = ulongval ();
25075       if (i != ((long int) (sizeof (size_t))))
25076         return 1;
25077       fprintf (f, "%lu", i);
25078     }
25079   /* Do not output a trailing newline, as this causes \r\n confusion
25080      on some platforms.  */
25081   return ferror (f) || fclose (f) != 0;
25082
25083   ;
25084   return 0;
25085 }
25086 _ACEOF
25087 rm -f conftest$ac_exeext
25088 if { (ac_try="$ac_link"
25089 case "(($ac_try" in
25090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25091   *) ac_try_echo=$ac_try;;
25092 esac
25093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25094 $as_echo "$ac_try_echo") >&5
25095   (eval "$ac_link") 2>&5
25096   ac_status=$?
25097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25099   { (case "(($ac_try" in
25100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25101   *) ac_try_echo=$ac_try;;
25102 esac
25103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25104 $as_echo "$ac_try_echo") >&5
25105   (eval "$ac_try") 2>&5
25106   ac_status=$?
25107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); }; }; then
25109   ac_cv_sizeof_size_t=`cat conftest.val`
25110 else
25111   $as_echo "$as_me: program exited with status $ac_status" >&5
25112 $as_echo "$as_me: failed program was:" >&5
25113 sed 's/^/| /' conftest.$ac_ext >&5
25114
25115 ( exit $ac_status )
25116 if test "$ac_cv_type_size_t" = yes; then
25117      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25119 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25120 See \`config.log' for more details." >&5
25121 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25122 See \`config.log' for more details." >&2;}
25123    { (exit 77); exit 77; }; }; }
25124    else
25125      ac_cv_sizeof_size_t=0
25126    fi
25127 fi
25128 rm -rf conftest.dSYM
25129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25130 fi
25131 rm -f conftest.val
25132 fi
25133 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25134 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25135
25136
25137
25138 cat >>confdefs.h <<_ACEOF
25139 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25140 _ACEOF
25141
25142
25143 # The cast to long int works around a bug in the HP C Compiler
25144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25146 # This bug is HP SR number 8606223364.
25147 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25148 $as_echo_n "checking size of long... " >&6; }
25149 if test "${ac_cv_sizeof_long+set}" = set; then
25150   $as_echo_n "(cached) " >&6
25151 else
25152   if test "$cross_compiling" = yes; then
25153   # Depending upon the size, compute the lo and hi bounds.
25154 cat >conftest.$ac_ext <<_ACEOF
25155 /* confdefs.h.  */
25156 _ACEOF
25157 cat confdefs.h >>conftest.$ac_ext
25158 cat >>conftest.$ac_ext <<_ACEOF
25159 /* end confdefs.h.  */
25160 $ac_includes_default
25161 int
25162 main ()
25163 {
25164 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25165 test_array [0] = 0
25166
25167   ;
25168   return 0;
25169 }
25170 _ACEOF
25171 rm -f conftest.$ac_objext
25172 if { (ac_try="$ac_compile"
25173 case "(($ac_try" in
25174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175   *) ac_try_echo=$ac_try;;
25176 esac
25177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25178 $as_echo "$ac_try_echo") >&5
25179   (eval "$ac_compile") 2>conftest.er1
25180   ac_status=$?
25181   grep -v '^ *+' conftest.er1 >conftest.err
25182   rm -f conftest.er1
25183   cat conftest.err >&5
25184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); } && {
25186          test -z "$ac_c_werror_flag" ||
25187          test ! -s conftest.err
25188        } && test -s conftest.$ac_objext; then
25189   ac_lo=0 ac_mid=0
25190   while :; do
25191     cat >conftest.$ac_ext <<_ACEOF
25192 /* confdefs.h.  */
25193 _ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h.  */
25197 $ac_includes_default
25198 int
25199 main ()
25200 {
25201 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25202 test_array [0] = 0
25203
25204   ;
25205   return 0;
25206 }
25207 _ACEOF
25208 rm -f conftest.$ac_objext
25209 if { (ac_try="$ac_compile"
25210 case "(($ac_try" in
25211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212   *) ac_try_echo=$ac_try;;
25213 esac
25214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25215 $as_echo "$ac_try_echo") >&5
25216   (eval "$ac_compile") 2>conftest.er1
25217   ac_status=$?
25218   grep -v '^ *+' conftest.er1 >conftest.err
25219   rm -f conftest.er1
25220   cat conftest.err >&5
25221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222   (exit $ac_status); } && {
25223          test -z "$ac_c_werror_flag" ||
25224          test ! -s conftest.err
25225        } && test -s conftest.$ac_objext; then
25226   ac_hi=$ac_mid; break
25227 else
25228   $as_echo "$as_me: failed program was:" >&5
25229 sed 's/^/| /' conftest.$ac_ext >&5
25230
25231         ac_lo=`expr $ac_mid + 1`
25232                         if test $ac_lo -le $ac_mid; then
25233                           ac_lo= ac_hi=
25234                           break
25235                         fi
25236                         ac_mid=`expr 2 '*' $ac_mid + 1`
25237 fi
25238
25239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25240   done
25241 else
25242   $as_echo "$as_me: failed program was:" >&5
25243 sed 's/^/| /' conftest.$ac_ext >&5
25244
25245         cat >conftest.$ac_ext <<_ACEOF
25246 /* confdefs.h.  */
25247 _ACEOF
25248 cat confdefs.h >>conftest.$ac_ext
25249 cat >>conftest.$ac_ext <<_ACEOF
25250 /* end confdefs.h.  */
25251 $ac_includes_default
25252 int
25253 main ()
25254 {
25255 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25256 test_array [0] = 0
25257
25258   ;
25259   return 0;
25260 }
25261 _ACEOF
25262 rm -f conftest.$ac_objext
25263 if { (ac_try="$ac_compile"
25264 case "(($ac_try" in
25265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266   *) ac_try_echo=$ac_try;;
25267 esac
25268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25269 $as_echo "$ac_try_echo") >&5
25270   (eval "$ac_compile") 2>conftest.er1
25271   ac_status=$?
25272   grep -v '^ *+' conftest.er1 >conftest.err
25273   rm -f conftest.er1
25274   cat conftest.err >&5
25275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276   (exit $ac_status); } && {
25277          test -z "$ac_c_werror_flag" ||
25278          test ! -s conftest.err
25279        } && test -s conftest.$ac_objext; then
25280   ac_hi=-1 ac_mid=-1
25281   while :; do
25282     cat >conftest.$ac_ext <<_ACEOF
25283 /* confdefs.h.  */
25284 _ACEOF
25285 cat confdefs.h >>conftest.$ac_ext
25286 cat >>conftest.$ac_ext <<_ACEOF
25287 /* end confdefs.h.  */
25288 $ac_includes_default
25289 int
25290 main ()
25291 {
25292 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25293 test_array [0] = 0
25294
25295   ;
25296   return 0;
25297 }
25298 _ACEOF
25299 rm -f conftest.$ac_objext
25300 if { (ac_try="$ac_compile"
25301 case "(($ac_try" in
25302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25303   *) ac_try_echo=$ac_try;;
25304 esac
25305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25306 $as_echo "$ac_try_echo") >&5
25307   (eval "$ac_compile") 2>conftest.er1
25308   ac_status=$?
25309   grep -v '^ *+' conftest.er1 >conftest.err
25310   rm -f conftest.er1
25311   cat conftest.err >&5
25312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313   (exit $ac_status); } && {
25314          test -z "$ac_c_werror_flag" ||
25315          test ! -s conftest.err
25316        } && test -s conftest.$ac_objext; then
25317   ac_lo=$ac_mid; break
25318 else
25319   $as_echo "$as_me: failed program was:" >&5
25320 sed 's/^/| /' conftest.$ac_ext >&5
25321
25322         ac_hi=`expr '(' $ac_mid ')' - 1`
25323                         if test $ac_mid -le $ac_hi; then
25324                           ac_lo= ac_hi=
25325                           break
25326                         fi
25327                         ac_mid=`expr 2 '*' $ac_mid`
25328 fi
25329
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331   done
25332 else
25333   $as_echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25335
25336         ac_lo= ac_hi=
25337 fi
25338
25339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25340 fi
25341
25342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25343 # Binary search between lo and hi bounds.
25344 while test "x$ac_lo" != "x$ac_hi"; do
25345   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25346   cat >conftest.$ac_ext <<_ACEOF
25347 /* confdefs.h.  */
25348 _ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h.  */
25352 $ac_includes_default
25353 int
25354 main ()
25355 {
25356 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25357 test_array [0] = 0
25358
25359   ;
25360   return 0;
25361 }
25362 _ACEOF
25363 rm -f conftest.$ac_objext
25364 if { (ac_try="$ac_compile"
25365 case "(($ac_try" in
25366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25367   *) ac_try_echo=$ac_try;;
25368 esac
25369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25370 $as_echo "$ac_try_echo") >&5
25371   (eval "$ac_compile") 2>conftest.er1
25372   ac_status=$?
25373   grep -v '^ *+' conftest.er1 >conftest.err
25374   rm -f conftest.er1
25375   cat conftest.err >&5
25376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377   (exit $ac_status); } && {
25378          test -z "$ac_c_werror_flag" ||
25379          test ! -s conftest.err
25380        } && test -s conftest.$ac_objext; then
25381   ac_hi=$ac_mid
25382 else
25383   $as_echo "$as_me: failed program was:" >&5
25384 sed 's/^/| /' conftest.$ac_ext >&5
25385
25386         ac_lo=`expr '(' $ac_mid ')' + 1`
25387 fi
25388
25389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25390 done
25391 case $ac_lo in
25392 ?*) ac_cv_sizeof_long=$ac_lo;;
25393 '') if test "$ac_cv_type_long" = yes; then
25394      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25396 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25397 See \`config.log' for more details." >&5
25398 $as_echo "$as_me: error: cannot compute sizeof (long)
25399 See \`config.log' for more details." >&2;}
25400    { (exit 77); exit 77; }; }; }
25401    else
25402      ac_cv_sizeof_long=0
25403    fi ;;
25404 esac
25405 else
25406   cat >conftest.$ac_ext <<_ACEOF
25407 /* confdefs.h.  */
25408 _ACEOF
25409 cat confdefs.h >>conftest.$ac_ext
25410 cat >>conftest.$ac_ext <<_ACEOF
25411 /* end confdefs.h.  */
25412 $ac_includes_default
25413 static long int longval () { return (long int) (sizeof (long)); }
25414 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25415 #include <stdio.h>
25416 #include <stdlib.h>
25417 int
25418 main ()
25419 {
25420
25421   FILE *f = fopen ("conftest.val", "w");
25422   if (! f)
25423     return 1;
25424   if (((long int) (sizeof (long))) < 0)
25425     {
25426       long int i = longval ();
25427       if (i != ((long int) (sizeof (long))))
25428         return 1;
25429       fprintf (f, "%ld", i);
25430     }
25431   else
25432     {
25433       unsigned long int i = ulongval ();
25434       if (i != ((long int) (sizeof (long))))
25435         return 1;
25436       fprintf (f, "%lu", i);
25437     }
25438   /* Do not output a trailing newline, as this causes \r\n confusion
25439      on some platforms.  */
25440   return ferror (f) || fclose (f) != 0;
25441
25442   ;
25443   return 0;
25444 }
25445 _ACEOF
25446 rm -f conftest$ac_exeext
25447 if { (ac_try="$ac_link"
25448 case "(($ac_try" in
25449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450   *) ac_try_echo=$ac_try;;
25451 esac
25452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25453 $as_echo "$ac_try_echo") >&5
25454   (eval "$ac_link") 2>&5
25455   ac_status=$?
25456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25458   { (case "(($ac_try" in
25459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460   *) ac_try_echo=$ac_try;;
25461 esac
25462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25463 $as_echo "$ac_try_echo") >&5
25464   (eval "$ac_try") 2>&5
25465   ac_status=$?
25466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467   (exit $ac_status); }; }; then
25468   ac_cv_sizeof_long=`cat conftest.val`
25469 else
25470   $as_echo "$as_me: program exited with status $ac_status" >&5
25471 $as_echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25473
25474 ( exit $ac_status )
25475 if test "$ac_cv_type_long" = yes; then
25476      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25478 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25479 See \`config.log' for more details." >&5
25480 $as_echo "$as_me: error: cannot compute sizeof (long)
25481 See \`config.log' for more details." >&2;}
25482    { (exit 77); exit 77; }; }; }
25483    else
25484      ac_cv_sizeof_long=0
25485    fi
25486 fi
25487 rm -rf conftest.dSYM
25488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25489 fi
25490 rm -f conftest.val
25491 fi
25492 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25493 $as_echo "$ac_cv_sizeof_long" >&6; }
25494
25495
25496
25497 cat >>confdefs.h <<_ACEOF
25498 #define SIZEOF_LONG $ac_cv_sizeof_long
25499 _ACEOF
25500
25501
25502
25503 # Decide whether float4 is passed by value: user-selectable, enabled by default
25504 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25505 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25506
25507
25508 # Check whether --enable-float4-byval was given.
25509 if test "${enable_float4_byval+set}" = set; then
25510   enableval=$enable_float4_byval;
25511   case $enableval in
25512     yes)
25513
25514 cat >>confdefs.h <<\_ACEOF
25515 #define USE_FLOAT4_BYVAL 1
25516 _ACEOF
25517
25518                float4passbyval=true
25519       ;;
25520     no)
25521       float4passbyval=false
25522       ;;
25523     *)
25524       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25525 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25526    { (exit 1); exit 1; }; }
25527       ;;
25528   esac
25529
25530 else
25531   enable_float4_byval=yes
25532
25533 cat >>confdefs.h <<\_ACEOF
25534 #define USE_FLOAT4_BYVAL 1
25535 _ACEOF
25536
25537                float4passbyval=true
25538 fi
25539
25540
25541 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25542 $as_echo "$enable_float4_byval" >&6; }
25543
25544 cat >>confdefs.h <<_ACEOF
25545 #define FLOAT4PASSBYVAL $float4passbyval
25546 _ACEOF
25547
25548
25549 # Decide whether float8 is passed by value.
25550 # Note: this setting also controls int8 and related types such as timestamp.
25551 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25552 # If not, trying to select it is an error.
25553 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25554 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25555 if test $ac_cv_sizeof_void_p -ge 8 ; then
25556
25557
25558 # Check whether --enable-float8-byval was given.
25559 if test "${enable_float8_byval+set}" = set; then
25560   enableval=$enable_float8_byval;
25561   case $enableval in
25562     yes)
25563       :
25564       ;;
25565     no)
25566       :
25567       ;;
25568     *)
25569       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25570 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25571    { (exit 1); exit 1; }; }
25572       ;;
25573   esac
25574
25575 else
25576   enable_float8_byval=yes
25577
25578 fi
25579
25580
25581 else
25582
25583
25584 # Check whether --enable-float8-byval was given.
25585 if test "${enable_float8_byval+set}" = set; then
25586   enableval=$enable_float8_byval;
25587   case $enableval in
25588     yes)
25589       :
25590       ;;
25591     no)
25592       :
25593       ;;
25594     *)
25595       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25596 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25597    { (exit 1); exit 1; }; }
25598       ;;
25599   esac
25600
25601 else
25602   enable_float8_byval=no
25603
25604 fi
25605
25606
25607   if test "$enable_float8_byval" = yes ; then
25608     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25609 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25610    { (exit 1); exit 1; }; }
25611   fi
25612 fi
25613 if test "$enable_float8_byval" = yes ; then
25614
25615 cat >>confdefs.h <<\_ACEOF
25616 #define USE_FLOAT8_BYVAL 1
25617 _ACEOF
25618
25619   float8passbyval=true
25620 else
25621   float8passbyval=false
25622 fi
25623 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25624 $as_echo "$enable_float8_byval" >&6; }
25625
25626 cat >>confdefs.h <<_ACEOF
25627 #define FLOAT8PASSBYVAL $float8passbyval
25628 _ACEOF
25629
25630
25631 # Determine memory alignment requirements for the basic C data types.
25632
25633 # The cast to long int works around a bug in the HP C Compiler,
25634 # see AC_CHECK_SIZEOF for more information.
25635 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25636 $as_echo_n "checking alignment of short... " >&6; }
25637 if test "${ac_cv_alignof_short+set}" = set; then
25638   $as_echo_n "(cached) " >&6
25639 else
25640   if test "$cross_compiling" = yes; then
25641   # Depending upon the size, compute the lo and hi bounds.
25642 cat >conftest.$ac_ext <<_ACEOF
25643 /* confdefs.h.  */
25644 _ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h.  */
25648 $ac_includes_default
25649 #ifndef offsetof
25650 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25651 #endif
25652 typedef struct { char x; short y; } ac__type_alignof_;
25653 int
25654 main ()
25655 {
25656 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25657 test_array [0] = 0
25658
25659   ;
25660   return 0;
25661 }
25662 _ACEOF
25663 rm -f conftest.$ac_objext
25664 if { (ac_try="$ac_compile"
25665 case "(($ac_try" in
25666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25667   *) ac_try_echo=$ac_try;;
25668 esac
25669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25670 $as_echo "$ac_try_echo") >&5
25671   (eval "$ac_compile") 2>conftest.er1
25672   ac_status=$?
25673   grep -v '^ *+' conftest.er1 >conftest.err
25674   rm -f conftest.er1
25675   cat conftest.err >&5
25676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677   (exit $ac_status); } && {
25678          test -z "$ac_c_werror_flag" ||
25679          test ! -s conftest.err
25680        } && test -s conftest.$ac_objext; then
25681   ac_lo=0 ac_mid=0
25682   while :; do
25683     cat >conftest.$ac_ext <<_ACEOF
25684 /* confdefs.h.  */
25685 _ACEOF
25686 cat confdefs.h >>conftest.$ac_ext
25687 cat >>conftest.$ac_ext <<_ACEOF
25688 /* end confdefs.h.  */
25689 $ac_includes_default
25690 #ifndef offsetof
25691 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25692 #endif
25693 typedef struct { char x; short y; } ac__type_alignof_;
25694 int
25695 main ()
25696 {
25697 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25698 test_array [0] = 0
25699
25700   ;
25701   return 0;
25702 }
25703 _ACEOF
25704 rm -f conftest.$ac_objext
25705 if { (ac_try="$ac_compile"
25706 case "(($ac_try" in
25707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708   *) ac_try_echo=$ac_try;;
25709 esac
25710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25711 $as_echo "$ac_try_echo") >&5
25712   (eval "$ac_compile") 2>conftest.er1
25713   ac_status=$?
25714   grep -v '^ *+' conftest.er1 >conftest.err
25715   rm -f conftest.er1
25716   cat conftest.err >&5
25717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); } && {
25719          test -z "$ac_c_werror_flag" ||
25720          test ! -s conftest.err
25721        } && test -s conftest.$ac_objext; then
25722   ac_hi=$ac_mid; break
25723 else
25724   $as_echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25726
25727         ac_lo=`expr $ac_mid + 1`
25728                         if test $ac_lo -le $ac_mid; then
25729                           ac_lo= ac_hi=
25730                           break
25731                         fi
25732                         ac_mid=`expr 2 '*' $ac_mid + 1`
25733 fi
25734
25735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25736   done
25737 else
25738   $as_echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25740
25741         cat >conftest.$ac_ext <<_ACEOF
25742 /* confdefs.h.  */
25743 _ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h.  */
25747 $ac_includes_default
25748 #ifndef offsetof
25749 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25750 #endif
25751 typedef struct { char x; short y; } ac__type_alignof_;
25752 int
25753 main ()
25754 {
25755 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25756 test_array [0] = 0
25757
25758   ;
25759   return 0;
25760 }
25761 _ACEOF
25762 rm -f conftest.$ac_objext
25763 if { (ac_try="$ac_compile"
25764 case "(($ac_try" in
25765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25766   *) ac_try_echo=$ac_try;;
25767 esac
25768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25769 $as_echo "$ac_try_echo") >&5
25770   (eval "$ac_compile") 2>conftest.er1
25771   ac_status=$?
25772   grep -v '^ *+' conftest.er1 >conftest.err
25773   rm -f conftest.er1
25774   cat conftest.err >&5
25775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776   (exit $ac_status); } && {
25777          test -z "$ac_c_werror_flag" ||
25778          test ! -s conftest.err
25779        } && test -s conftest.$ac_objext; then
25780   ac_hi=-1 ac_mid=-1
25781   while :; do
25782     cat >conftest.$ac_ext <<_ACEOF
25783 /* confdefs.h.  */
25784 _ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h.  */
25788 $ac_includes_default
25789 #ifndef offsetof
25790 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25791 #endif
25792 typedef struct { char x; short y; } ac__type_alignof_;
25793 int
25794 main ()
25795 {
25796 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25797 test_array [0] = 0
25798
25799   ;
25800   return 0;
25801 }
25802 _ACEOF
25803 rm -f conftest.$ac_objext
25804 if { (ac_try="$ac_compile"
25805 case "(($ac_try" in
25806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25807   *) ac_try_echo=$ac_try;;
25808 esac
25809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25810 $as_echo "$ac_try_echo") >&5
25811   (eval "$ac_compile") 2>conftest.er1
25812   ac_status=$?
25813   grep -v '^ *+' conftest.er1 >conftest.err
25814   rm -f conftest.er1
25815   cat conftest.err >&5
25816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817   (exit $ac_status); } && {
25818          test -z "$ac_c_werror_flag" ||
25819          test ! -s conftest.err
25820        } && test -s conftest.$ac_objext; then
25821   ac_lo=$ac_mid; break
25822 else
25823   $as_echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25825
25826         ac_hi=`expr '(' $ac_mid ')' - 1`
25827                         if test $ac_mid -le $ac_hi; then
25828                           ac_lo= ac_hi=
25829                           break
25830                         fi
25831                         ac_mid=`expr 2 '*' $ac_mid`
25832 fi
25833
25834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25835   done
25836 else
25837   $as_echo "$as_me: failed program was:" >&5
25838 sed 's/^/| /' conftest.$ac_ext >&5
25839
25840         ac_lo= ac_hi=
25841 fi
25842
25843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25844 fi
25845
25846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25847 # Binary search between lo and hi bounds.
25848 while test "x$ac_lo" != "x$ac_hi"; do
25849   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25850   cat >conftest.$ac_ext <<_ACEOF
25851 /* confdefs.h.  */
25852 _ACEOF
25853 cat confdefs.h >>conftest.$ac_ext
25854 cat >>conftest.$ac_ext <<_ACEOF
25855 /* end confdefs.h.  */
25856 $ac_includes_default
25857 #ifndef offsetof
25858 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25859 #endif
25860 typedef struct { char x; short y; } ac__type_alignof_;
25861 int
25862 main ()
25863 {
25864 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25865 test_array [0] = 0
25866
25867   ;
25868   return 0;
25869 }
25870 _ACEOF
25871 rm -f conftest.$ac_objext
25872 if { (ac_try="$ac_compile"
25873 case "(($ac_try" in
25874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25875   *) ac_try_echo=$ac_try;;
25876 esac
25877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25878 $as_echo "$ac_try_echo") >&5
25879   (eval "$ac_compile") 2>conftest.er1
25880   ac_status=$?
25881   grep -v '^ *+' conftest.er1 >conftest.err
25882   rm -f conftest.er1
25883   cat conftest.err >&5
25884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885   (exit $ac_status); } && {
25886          test -z "$ac_c_werror_flag" ||
25887          test ! -s conftest.err
25888        } && test -s conftest.$ac_objext; then
25889   ac_hi=$ac_mid
25890 else
25891   $as_echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25893
25894         ac_lo=`expr '(' $ac_mid ')' + 1`
25895 fi
25896
25897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25898 done
25899 case $ac_lo in
25900 ?*) ac_cv_alignof_short=$ac_lo;;
25901 '') if test "$ac_cv_type_short" = yes; then
25902      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25904 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25905 See \`config.log' for more details." >&5
25906 $as_echo "$as_me: error: cannot compute alignment of short
25907 See \`config.log' for more details." >&2;}
25908    { (exit 77); exit 77; }; }; }
25909    else
25910      ac_cv_alignof_short=0
25911    fi ;;
25912 esac
25913 else
25914   cat >conftest.$ac_ext <<_ACEOF
25915 /* confdefs.h.  */
25916 _ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h.  */
25920 $ac_includes_default
25921 #ifndef offsetof
25922 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25923 #endif
25924 typedef struct { char x; short y; } ac__type_alignof_;
25925 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25926 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25927 #include <stdio.h>
25928 #include <stdlib.h>
25929 int
25930 main ()
25931 {
25932
25933   FILE *f = fopen ("conftest.val", "w");
25934   if (! f)
25935     return 1;
25936   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25937     {
25938       long int i = longval ();
25939       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25940         return 1;
25941       fprintf (f, "%ld", i);
25942     }
25943   else
25944     {
25945       unsigned long int i = ulongval ();
25946       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25947         return 1;
25948       fprintf (f, "%lu", i);
25949     }
25950   /* Do not output a trailing newline, as this causes \r\n confusion
25951      on some platforms.  */
25952   return ferror (f) || fclose (f) != 0;
25953
25954   ;
25955   return 0;
25956 }
25957 _ACEOF
25958 rm -f conftest$ac_exeext
25959 if { (ac_try="$ac_link"
25960 case "(($ac_try" in
25961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25962   *) ac_try_echo=$ac_try;;
25963 esac
25964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25965 $as_echo "$ac_try_echo") >&5
25966   (eval "$ac_link") 2>&5
25967   ac_status=$?
25968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25970   { (case "(($ac_try" in
25971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972   *) ac_try_echo=$ac_try;;
25973 esac
25974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25975 $as_echo "$ac_try_echo") >&5
25976   (eval "$ac_try") 2>&5
25977   ac_status=$?
25978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); }; }; then
25980   ac_cv_alignof_short=`cat conftest.val`
25981 else
25982   $as_echo "$as_me: program exited with status $ac_status" >&5
25983 $as_echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25985
25986 ( exit $ac_status )
25987 if test "$ac_cv_type_short" = yes; then
25988      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25990 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25991 See \`config.log' for more details." >&5
25992 $as_echo "$as_me: error: cannot compute alignment of short
25993 See \`config.log' for more details." >&2;}
25994    { (exit 77); exit 77; }; }; }
25995    else
25996      ac_cv_alignof_short=0
25997    fi
25998 fi
25999 rm -rf conftest.dSYM
26000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26001 fi
26002 rm -f conftest.val
26003 fi
26004 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26005 $as_echo "$ac_cv_alignof_short" >&6; }
26006
26007
26008
26009 cat >>confdefs.h <<_ACEOF
26010 #define ALIGNOF_SHORT $ac_cv_alignof_short
26011 _ACEOF
26012
26013
26014 # The cast to long int works around a bug in the HP C Compiler,
26015 # see AC_CHECK_SIZEOF for more information.
26016 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26017 $as_echo_n "checking alignment of int... " >&6; }
26018 if test "${ac_cv_alignof_int+set}" = set; then
26019   $as_echo_n "(cached) " >&6
26020 else
26021   if test "$cross_compiling" = yes; then
26022   # Depending upon the size, compute the lo and hi bounds.
26023 cat >conftest.$ac_ext <<_ACEOF
26024 /* confdefs.h.  */
26025 _ACEOF
26026 cat confdefs.h >>conftest.$ac_ext
26027 cat >>conftest.$ac_ext <<_ACEOF
26028 /* end confdefs.h.  */
26029 $ac_includes_default
26030 #ifndef offsetof
26031 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26032 #endif
26033 typedef struct { char x; int y; } ac__type_alignof_;
26034 int
26035 main ()
26036 {
26037 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26038 test_array [0] = 0
26039
26040   ;
26041   return 0;
26042 }
26043 _ACEOF
26044 rm -f conftest.$ac_objext
26045 if { (ac_try="$ac_compile"
26046 case "(($ac_try" in
26047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26048   *) ac_try_echo=$ac_try;;
26049 esac
26050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26051 $as_echo "$ac_try_echo") >&5
26052   (eval "$ac_compile") 2>conftest.er1
26053   ac_status=$?
26054   grep -v '^ *+' conftest.er1 >conftest.err
26055   rm -f conftest.er1
26056   cat conftest.err >&5
26057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058   (exit $ac_status); } && {
26059          test -z "$ac_c_werror_flag" ||
26060          test ! -s conftest.err
26061        } && test -s conftest.$ac_objext; then
26062   ac_lo=0 ac_mid=0
26063   while :; do
26064     cat >conftest.$ac_ext <<_ACEOF
26065 /* confdefs.h.  */
26066 _ACEOF
26067 cat confdefs.h >>conftest.$ac_ext
26068 cat >>conftest.$ac_ext <<_ACEOF
26069 /* end confdefs.h.  */
26070 $ac_includes_default
26071 #ifndef offsetof
26072 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26073 #endif
26074 typedef struct { char x; int y; } ac__type_alignof_;
26075 int
26076 main ()
26077 {
26078 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26079 test_array [0] = 0
26080
26081   ;
26082   return 0;
26083 }
26084 _ACEOF
26085 rm -f conftest.$ac_objext
26086 if { (ac_try="$ac_compile"
26087 case "(($ac_try" in
26088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089   *) ac_try_echo=$ac_try;;
26090 esac
26091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26092 $as_echo "$ac_try_echo") >&5
26093   (eval "$ac_compile") 2>conftest.er1
26094   ac_status=$?
26095   grep -v '^ *+' conftest.er1 >conftest.err
26096   rm -f conftest.er1
26097   cat conftest.err >&5
26098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099   (exit $ac_status); } && {
26100          test -z "$ac_c_werror_flag" ||
26101          test ! -s conftest.err
26102        } && test -s conftest.$ac_objext; then
26103   ac_hi=$ac_mid; break
26104 else
26105   $as_echo "$as_me: failed program was:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26107
26108         ac_lo=`expr $ac_mid + 1`
26109                         if test $ac_lo -le $ac_mid; then
26110                           ac_lo= ac_hi=
26111                           break
26112                         fi
26113                         ac_mid=`expr 2 '*' $ac_mid + 1`
26114 fi
26115
26116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26117   done
26118 else
26119   $as_echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.$ac_ext >&5
26121
26122         cat >conftest.$ac_ext <<_ACEOF
26123 /* confdefs.h.  */
26124 _ACEOF
26125 cat confdefs.h >>conftest.$ac_ext
26126 cat >>conftest.$ac_ext <<_ACEOF
26127 /* end confdefs.h.  */
26128 $ac_includes_default
26129 #ifndef offsetof
26130 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26131 #endif
26132 typedef struct { char x; int y; } ac__type_alignof_;
26133 int
26134 main ()
26135 {
26136 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26137 test_array [0] = 0
26138
26139   ;
26140   return 0;
26141 }
26142 _ACEOF
26143 rm -f conftest.$ac_objext
26144 if { (ac_try="$ac_compile"
26145 case "(($ac_try" in
26146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26147   *) ac_try_echo=$ac_try;;
26148 esac
26149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26150 $as_echo "$ac_try_echo") >&5
26151   (eval "$ac_compile") 2>conftest.er1
26152   ac_status=$?
26153   grep -v '^ *+' conftest.er1 >conftest.err
26154   rm -f conftest.er1
26155   cat conftest.err >&5
26156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157   (exit $ac_status); } && {
26158          test -z "$ac_c_werror_flag" ||
26159          test ! -s conftest.err
26160        } && test -s conftest.$ac_objext; then
26161   ac_hi=-1 ac_mid=-1
26162   while :; do
26163     cat >conftest.$ac_ext <<_ACEOF
26164 /* confdefs.h.  */
26165 _ACEOF
26166 cat confdefs.h >>conftest.$ac_ext
26167 cat >>conftest.$ac_ext <<_ACEOF
26168 /* end confdefs.h.  */
26169 $ac_includes_default
26170 #ifndef offsetof
26171 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26172 #endif
26173 typedef struct { char x; int y; } ac__type_alignof_;
26174 int
26175 main ()
26176 {
26177 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26178 test_array [0] = 0
26179
26180   ;
26181   return 0;
26182 }
26183 _ACEOF
26184 rm -f conftest.$ac_objext
26185 if { (ac_try="$ac_compile"
26186 case "(($ac_try" in
26187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26188   *) ac_try_echo=$ac_try;;
26189 esac
26190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26191 $as_echo "$ac_try_echo") >&5
26192   (eval "$ac_compile") 2>conftest.er1
26193   ac_status=$?
26194   grep -v '^ *+' conftest.er1 >conftest.err
26195   rm -f conftest.er1
26196   cat conftest.err >&5
26197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198   (exit $ac_status); } && {
26199          test -z "$ac_c_werror_flag" ||
26200          test ! -s conftest.err
26201        } && test -s conftest.$ac_objext; then
26202   ac_lo=$ac_mid; break
26203 else
26204   $as_echo "$as_me: failed program was:" >&5
26205 sed 's/^/| /' conftest.$ac_ext >&5
26206
26207         ac_hi=`expr '(' $ac_mid ')' - 1`
26208                         if test $ac_mid -le $ac_hi; then
26209                           ac_lo= ac_hi=
26210                           break
26211                         fi
26212                         ac_mid=`expr 2 '*' $ac_mid`
26213 fi
26214
26215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26216   done
26217 else
26218   $as_echo "$as_me: failed program was:" >&5
26219 sed 's/^/| /' conftest.$ac_ext >&5
26220
26221         ac_lo= ac_hi=
26222 fi
26223
26224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26225 fi
26226
26227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26228 # Binary search between lo and hi bounds.
26229 while test "x$ac_lo" != "x$ac_hi"; do
26230   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26231   cat >conftest.$ac_ext <<_ACEOF
26232 /* confdefs.h.  */
26233 _ACEOF
26234 cat confdefs.h >>conftest.$ac_ext
26235 cat >>conftest.$ac_ext <<_ACEOF
26236 /* end confdefs.h.  */
26237 $ac_includes_default
26238 #ifndef offsetof
26239 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26240 #endif
26241 typedef struct { char x; int y; } ac__type_alignof_;
26242 int
26243 main ()
26244 {
26245 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26246 test_array [0] = 0
26247
26248   ;
26249   return 0;
26250 }
26251 _ACEOF
26252 rm -f conftest.$ac_objext
26253 if { (ac_try="$ac_compile"
26254 case "(($ac_try" in
26255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26256   *) ac_try_echo=$ac_try;;
26257 esac
26258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26259 $as_echo "$ac_try_echo") >&5
26260   (eval "$ac_compile") 2>conftest.er1
26261   ac_status=$?
26262   grep -v '^ *+' conftest.er1 >conftest.err
26263   rm -f conftest.er1
26264   cat conftest.err >&5
26265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266   (exit $ac_status); } && {
26267          test -z "$ac_c_werror_flag" ||
26268          test ! -s conftest.err
26269        } && test -s conftest.$ac_objext; then
26270   ac_hi=$ac_mid
26271 else
26272   $as_echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26274
26275         ac_lo=`expr '(' $ac_mid ')' + 1`
26276 fi
26277
26278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26279 done
26280 case $ac_lo in
26281 ?*) ac_cv_alignof_int=$ac_lo;;
26282 '') if test "$ac_cv_type_int" = yes; then
26283      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26285 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26286 See \`config.log' for more details." >&5
26287 $as_echo "$as_me: error: cannot compute alignment of int
26288 See \`config.log' for more details." >&2;}
26289    { (exit 77); exit 77; }; }; }
26290    else
26291      ac_cv_alignof_int=0
26292    fi ;;
26293 esac
26294 else
26295   cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h.  */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h.  */
26301 $ac_includes_default
26302 #ifndef offsetof
26303 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26304 #endif
26305 typedef struct { char x; int y; } ac__type_alignof_;
26306 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26307 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26308 #include <stdio.h>
26309 #include <stdlib.h>
26310 int
26311 main ()
26312 {
26313
26314   FILE *f = fopen ("conftest.val", "w");
26315   if (! f)
26316     return 1;
26317   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26318     {
26319       long int i = longval ();
26320       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26321         return 1;
26322       fprintf (f, "%ld", i);
26323     }
26324   else
26325     {
26326       unsigned long int i = ulongval ();
26327       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26328         return 1;
26329       fprintf (f, "%lu", i);
26330     }
26331   /* Do not output a trailing newline, as this causes \r\n confusion
26332      on some platforms.  */
26333   return ferror (f) || fclose (f) != 0;
26334
26335   ;
26336   return 0;
26337 }
26338 _ACEOF
26339 rm -f conftest$ac_exeext
26340 if { (ac_try="$ac_link"
26341 case "(($ac_try" in
26342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26343   *) ac_try_echo=$ac_try;;
26344 esac
26345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26346 $as_echo "$ac_try_echo") >&5
26347   (eval "$ac_link") 2>&5
26348   ac_status=$?
26349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26351   { (case "(($ac_try" in
26352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26353   *) ac_try_echo=$ac_try;;
26354 esac
26355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26356 $as_echo "$ac_try_echo") >&5
26357   (eval "$ac_try") 2>&5
26358   ac_status=$?
26359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360   (exit $ac_status); }; }; then
26361   ac_cv_alignof_int=`cat conftest.val`
26362 else
26363   $as_echo "$as_me: program exited with status $ac_status" >&5
26364 $as_echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26366
26367 ( exit $ac_status )
26368 if test "$ac_cv_type_int" = yes; then
26369      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26371 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26372 See \`config.log' for more details." >&5
26373 $as_echo "$as_me: error: cannot compute alignment of int
26374 See \`config.log' for more details." >&2;}
26375    { (exit 77); exit 77; }; }; }
26376    else
26377      ac_cv_alignof_int=0
26378    fi
26379 fi
26380 rm -rf conftest.dSYM
26381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26382 fi
26383 rm -f conftest.val
26384 fi
26385 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26386 $as_echo "$ac_cv_alignof_int" >&6; }
26387
26388
26389
26390 cat >>confdefs.h <<_ACEOF
26391 #define ALIGNOF_INT $ac_cv_alignof_int
26392 _ACEOF
26393
26394
26395 # The cast to long int works around a bug in the HP C Compiler,
26396 # see AC_CHECK_SIZEOF for more information.
26397 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26398 $as_echo_n "checking alignment of long... " >&6; }
26399 if test "${ac_cv_alignof_long+set}" = set; then
26400   $as_echo_n "(cached) " >&6
26401 else
26402   if test "$cross_compiling" = yes; then
26403   # Depending upon the size, compute the lo and hi bounds.
26404 cat >conftest.$ac_ext <<_ACEOF
26405 /* confdefs.h.  */
26406 _ACEOF
26407 cat confdefs.h >>conftest.$ac_ext
26408 cat >>conftest.$ac_ext <<_ACEOF
26409 /* end confdefs.h.  */
26410 $ac_includes_default
26411 #ifndef offsetof
26412 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26413 #endif
26414 typedef struct { char x; long y; } ac__type_alignof_;
26415 int
26416 main ()
26417 {
26418 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26419 test_array [0] = 0
26420
26421   ;
26422   return 0;
26423 }
26424 _ACEOF
26425 rm -f conftest.$ac_objext
26426 if { (ac_try="$ac_compile"
26427 case "(($ac_try" in
26428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26429   *) ac_try_echo=$ac_try;;
26430 esac
26431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26432 $as_echo "$ac_try_echo") >&5
26433   (eval "$ac_compile") 2>conftest.er1
26434   ac_status=$?
26435   grep -v '^ *+' conftest.er1 >conftest.err
26436   rm -f conftest.er1
26437   cat conftest.err >&5
26438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439   (exit $ac_status); } && {
26440          test -z "$ac_c_werror_flag" ||
26441          test ! -s conftest.err
26442        } && test -s conftest.$ac_objext; then
26443   ac_lo=0 ac_mid=0
26444   while :; do
26445     cat >conftest.$ac_ext <<_ACEOF
26446 /* confdefs.h.  */
26447 _ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h.  */
26451 $ac_includes_default
26452 #ifndef offsetof
26453 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26454 #endif
26455 typedef struct { char x; long y; } ac__type_alignof_;
26456 int
26457 main ()
26458 {
26459 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26460 test_array [0] = 0
26461
26462   ;
26463   return 0;
26464 }
26465 _ACEOF
26466 rm -f conftest.$ac_objext
26467 if { (ac_try="$ac_compile"
26468 case "(($ac_try" in
26469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26470   *) ac_try_echo=$ac_try;;
26471 esac
26472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26473 $as_echo "$ac_try_echo") >&5
26474   (eval "$ac_compile") 2>conftest.er1
26475   ac_status=$?
26476   grep -v '^ *+' conftest.er1 >conftest.err
26477   rm -f conftest.er1
26478   cat conftest.err >&5
26479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480   (exit $ac_status); } && {
26481          test -z "$ac_c_werror_flag" ||
26482          test ! -s conftest.err
26483        } && test -s conftest.$ac_objext; then
26484   ac_hi=$ac_mid; break
26485 else
26486   $as_echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26488
26489         ac_lo=`expr $ac_mid + 1`
26490                         if test $ac_lo -le $ac_mid; then
26491                           ac_lo= ac_hi=
26492                           break
26493                         fi
26494                         ac_mid=`expr 2 '*' $ac_mid + 1`
26495 fi
26496
26497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26498   done
26499 else
26500   $as_echo "$as_me: failed program was:" >&5
26501 sed 's/^/| /' conftest.$ac_ext >&5
26502
26503         cat >conftest.$ac_ext <<_ACEOF
26504 /* confdefs.h.  */
26505 _ACEOF
26506 cat confdefs.h >>conftest.$ac_ext
26507 cat >>conftest.$ac_ext <<_ACEOF
26508 /* end confdefs.h.  */
26509 $ac_includes_default
26510 #ifndef offsetof
26511 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26512 #endif
26513 typedef struct { char x; long y; } ac__type_alignof_;
26514 int
26515 main ()
26516 {
26517 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26518 test_array [0] = 0
26519
26520   ;
26521   return 0;
26522 }
26523 _ACEOF
26524 rm -f conftest.$ac_objext
26525 if { (ac_try="$ac_compile"
26526 case "(($ac_try" in
26527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26528   *) ac_try_echo=$ac_try;;
26529 esac
26530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26531 $as_echo "$ac_try_echo") >&5
26532   (eval "$ac_compile") 2>conftest.er1
26533   ac_status=$?
26534   grep -v '^ *+' conftest.er1 >conftest.err
26535   rm -f conftest.er1
26536   cat conftest.err >&5
26537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538   (exit $ac_status); } && {
26539          test -z "$ac_c_werror_flag" ||
26540          test ! -s conftest.err
26541        } && test -s conftest.$ac_objext; then
26542   ac_hi=-1 ac_mid=-1
26543   while :; do
26544     cat >conftest.$ac_ext <<_ACEOF
26545 /* confdefs.h.  */
26546 _ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h.  */
26550 $ac_includes_default
26551 #ifndef offsetof
26552 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26553 #endif
26554 typedef struct { char x; long y; } ac__type_alignof_;
26555 int
26556 main ()
26557 {
26558 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26559 test_array [0] = 0
26560
26561   ;
26562   return 0;
26563 }
26564 _ACEOF
26565 rm -f conftest.$ac_objext
26566 if { (ac_try="$ac_compile"
26567 case "(($ac_try" in
26568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569   *) ac_try_echo=$ac_try;;
26570 esac
26571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26572 $as_echo "$ac_try_echo") >&5
26573   (eval "$ac_compile") 2>conftest.er1
26574   ac_status=$?
26575   grep -v '^ *+' conftest.er1 >conftest.err
26576   rm -f conftest.er1
26577   cat conftest.err >&5
26578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579   (exit $ac_status); } && {
26580          test -z "$ac_c_werror_flag" ||
26581          test ! -s conftest.err
26582        } && test -s conftest.$ac_objext; then
26583   ac_lo=$ac_mid; break
26584 else
26585   $as_echo "$as_me: failed program was:" >&5
26586 sed 's/^/| /' conftest.$ac_ext >&5
26587
26588         ac_hi=`expr '(' $ac_mid ')' - 1`
26589                         if test $ac_mid -le $ac_hi; then
26590                           ac_lo= ac_hi=
26591                           break
26592                         fi
26593                         ac_mid=`expr 2 '*' $ac_mid`
26594 fi
26595
26596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26597   done
26598 else
26599   $as_echo "$as_me: failed program was:" >&5
26600 sed 's/^/| /' conftest.$ac_ext >&5
26601
26602         ac_lo= ac_hi=
26603 fi
26604
26605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26606 fi
26607
26608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26609 # Binary search between lo and hi bounds.
26610 while test "x$ac_lo" != "x$ac_hi"; do
26611   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26612   cat >conftest.$ac_ext <<_ACEOF
26613 /* confdefs.h.  */
26614 _ACEOF
26615 cat confdefs.h >>conftest.$ac_ext
26616 cat >>conftest.$ac_ext <<_ACEOF
26617 /* end confdefs.h.  */
26618 $ac_includes_default
26619 #ifndef offsetof
26620 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26621 #endif
26622 typedef struct { char x; long y; } ac__type_alignof_;
26623 int
26624 main ()
26625 {
26626 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26627 test_array [0] = 0
26628
26629   ;
26630   return 0;
26631 }
26632 _ACEOF
26633 rm -f conftest.$ac_objext
26634 if { (ac_try="$ac_compile"
26635 case "(($ac_try" in
26636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26637   *) ac_try_echo=$ac_try;;
26638 esac
26639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26640 $as_echo "$ac_try_echo") >&5
26641   (eval "$ac_compile") 2>conftest.er1
26642   ac_status=$?
26643   grep -v '^ *+' conftest.er1 >conftest.err
26644   rm -f conftest.er1
26645   cat conftest.err >&5
26646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647   (exit $ac_status); } && {
26648          test -z "$ac_c_werror_flag" ||
26649          test ! -s conftest.err
26650        } && test -s conftest.$ac_objext; then
26651   ac_hi=$ac_mid
26652 else
26653   $as_echo "$as_me: failed program was:" >&5
26654 sed 's/^/| /' conftest.$ac_ext >&5
26655
26656         ac_lo=`expr '(' $ac_mid ')' + 1`
26657 fi
26658
26659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26660 done
26661 case $ac_lo in
26662 ?*) ac_cv_alignof_long=$ac_lo;;
26663 '') if test "$ac_cv_type_long" = yes; then
26664      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26666 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26667 See \`config.log' for more details." >&5
26668 $as_echo "$as_me: error: cannot compute alignment of long
26669 See \`config.log' for more details." >&2;}
26670    { (exit 77); exit 77; }; }; }
26671    else
26672      ac_cv_alignof_long=0
26673    fi ;;
26674 esac
26675 else
26676   cat >conftest.$ac_ext <<_ACEOF
26677 /* confdefs.h.  */
26678 _ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h.  */
26682 $ac_includes_default
26683 #ifndef offsetof
26684 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26685 #endif
26686 typedef struct { char x; long y; } ac__type_alignof_;
26687 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26688 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26689 #include <stdio.h>
26690 #include <stdlib.h>
26691 int
26692 main ()
26693 {
26694
26695   FILE *f = fopen ("conftest.val", "w");
26696   if (! f)
26697     return 1;
26698   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26699     {
26700       long int i = longval ();
26701       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26702         return 1;
26703       fprintf (f, "%ld", i);
26704     }
26705   else
26706     {
26707       unsigned long int i = ulongval ();
26708       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26709         return 1;
26710       fprintf (f, "%lu", i);
26711     }
26712   /* Do not output a trailing newline, as this causes \r\n confusion
26713      on some platforms.  */
26714   return ferror (f) || fclose (f) != 0;
26715
26716   ;
26717   return 0;
26718 }
26719 _ACEOF
26720 rm -f conftest$ac_exeext
26721 if { (ac_try="$ac_link"
26722 case "(($ac_try" in
26723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26724   *) ac_try_echo=$ac_try;;
26725 esac
26726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26727 $as_echo "$ac_try_echo") >&5
26728   (eval "$ac_link") 2>&5
26729   ac_status=$?
26730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26732   { (case "(($ac_try" in
26733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734   *) ac_try_echo=$ac_try;;
26735 esac
26736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26737 $as_echo "$ac_try_echo") >&5
26738   (eval "$ac_try") 2>&5
26739   ac_status=$?
26740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741   (exit $ac_status); }; }; then
26742   ac_cv_alignof_long=`cat conftest.val`
26743 else
26744   $as_echo "$as_me: program exited with status $ac_status" >&5
26745 $as_echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26747
26748 ( exit $ac_status )
26749 if test "$ac_cv_type_long" = yes; then
26750      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26752 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26753 See \`config.log' for more details." >&5
26754 $as_echo "$as_me: error: cannot compute alignment of long
26755 See \`config.log' for more details." >&2;}
26756    { (exit 77); exit 77; }; }; }
26757    else
26758      ac_cv_alignof_long=0
26759    fi
26760 fi
26761 rm -rf conftest.dSYM
26762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26763 fi
26764 rm -f conftest.val
26765 fi
26766 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26767 $as_echo "$ac_cv_alignof_long" >&6; }
26768
26769
26770
26771 cat >>confdefs.h <<_ACEOF
26772 #define ALIGNOF_LONG $ac_cv_alignof_long
26773 _ACEOF
26774
26775
26776 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26777   # The cast to long int works around a bug in the HP C Compiler,
26778 # see AC_CHECK_SIZEOF for more information.
26779 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26780 $as_echo_n "checking alignment of long long int... " >&6; }
26781 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26782   $as_echo_n "(cached) " >&6
26783 else
26784   if test "$cross_compiling" = yes; then
26785   # Depending upon the size, compute the lo and hi bounds.
26786 cat >conftest.$ac_ext <<_ACEOF
26787 /* confdefs.h.  */
26788 _ACEOF
26789 cat confdefs.h >>conftest.$ac_ext
26790 cat >>conftest.$ac_ext <<_ACEOF
26791 /* end confdefs.h.  */
26792 $ac_includes_default
26793 #ifndef offsetof
26794 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26795 #endif
26796 typedef struct { char x; long long int y; } ac__type_alignof_;
26797 int
26798 main ()
26799 {
26800 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26801 test_array [0] = 0
26802
26803   ;
26804   return 0;
26805 }
26806 _ACEOF
26807 rm -f conftest.$ac_objext
26808 if { (ac_try="$ac_compile"
26809 case "(($ac_try" in
26810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26811   *) ac_try_echo=$ac_try;;
26812 esac
26813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26814 $as_echo "$ac_try_echo") >&5
26815   (eval "$ac_compile") 2>conftest.er1
26816   ac_status=$?
26817   grep -v '^ *+' conftest.er1 >conftest.err
26818   rm -f conftest.er1
26819   cat conftest.err >&5
26820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821   (exit $ac_status); } && {
26822          test -z "$ac_c_werror_flag" ||
26823          test ! -s conftest.err
26824        } && test -s conftest.$ac_objext; then
26825   ac_lo=0 ac_mid=0
26826   while :; do
26827     cat >conftest.$ac_ext <<_ACEOF
26828 /* confdefs.h.  */
26829 _ACEOF
26830 cat confdefs.h >>conftest.$ac_ext
26831 cat >>conftest.$ac_ext <<_ACEOF
26832 /* end confdefs.h.  */
26833 $ac_includes_default
26834 #ifndef offsetof
26835 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26836 #endif
26837 typedef struct { char x; long long int y; } ac__type_alignof_;
26838 int
26839 main ()
26840 {
26841 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26842 test_array [0] = 0
26843
26844   ;
26845   return 0;
26846 }
26847 _ACEOF
26848 rm -f conftest.$ac_objext
26849 if { (ac_try="$ac_compile"
26850 case "(($ac_try" in
26851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26852   *) ac_try_echo=$ac_try;;
26853 esac
26854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26855 $as_echo "$ac_try_echo") >&5
26856   (eval "$ac_compile") 2>conftest.er1
26857   ac_status=$?
26858   grep -v '^ *+' conftest.er1 >conftest.err
26859   rm -f conftest.er1
26860   cat conftest.err >&5
26861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862   (exit $ac_status); } && {
26863          test -z "$ac_c_werror_flag" ||
26864          test ! -s conftest.err
26865        } && test -s conftest.$ac_objext; then
26866   ac_hi=$ac_mid; break
26867 else
26868   $as_echo "$as_me: failed program was:" >&5
26869 sed 's/^/| /' conftest.$ac_ext >&5
26870
26871         ac_lo=`expr $ac_mid + 1`
26872                         if test $ac_lo -le $ac_mid; then
26873                           ac_lo= ac_hi=
26874                           break
26875                         fi
26876                         ac_mid=`expr 2 '*' $ac_mid + 1`
26877 fi
26878
26879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26880   done
26881 else
26882   $as_echo "$as_me: failed program was:" >&5
26883 sed 's/^/| /' conftest.$ac_ext >&5
26884
26885         cat >conftest.$ac_ext <<_ACEOF
26886 /* confdefs.h.  */
26887 _ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h.  */
26891 $ac_includes_default
26892 #ifndef offsetof
26893 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26894 #endif
26895 typedef struct { char x; long long int y; } ac__type_alignof_;
26896 int
26897 main ()
26898 {
26899 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26900 test_array [0] = 0
26901
26902   ;
26903   return 0;
26904 }
26905 _ACEOF
26906 rm -f conftest.$ac_objext
26907 if { (ac_try="$ac_compile"
26908 case "(($ac_try" in
26909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26910   *) ac_try_echo=$ac_try;;
26911 esac
26912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26913 $as_echo "$ac_try_echo") >&5
26914   (eval "$ac_compile") 2>conftest.er1
26915   ac_status=$?
26916   grep -v '^ *+' conftest.er1 >conftest.err
26917   rm -f conftest.er1
26918   cat conftest.err >&5
26919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920   (exit $ac_status); } && {
26921          test -z "$ac_c_werror_flag" ||
26922          test ! -s conftest.err
26923        } && test -s conftest.$ac_objext; then
26924   ac_hi=-1 ac_mid=-1
26925   while :; do
26926     cat >conftest.$ac_ext <<_ACEOF
26927 /* confdefs.h.  */
26928 _ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h.  */
26932 $ac_includes_default
26933 #ifndef offsetof
26934 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26935 #endif
26936 typedef struct { char x; long long int y; } ac__type_alignof_;
26937 int
26938 main ()
26939 {
26940 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26941 test_array [0] = 0
26942
26943   ;
26944   return 0;
26945 }
26946 _ACEOF
26947 rm -f conftest.$ac_objext
26948 if { (ac_try="$ac_compile"
26949 case "(($ac_try" in
26950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26951   *) ac_try_echo=$ac_try;;
26952 esac
26953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26954 $as_echo "$ac_try_echo") >&5
26955   (eval "$ac_compile") 2>conftest.er1
26956   ac_status=$?
26957   grep -v '^ *+' conftest.er1 >conftest.err
26958   rm -f conftest.er1
26959   cat conftest.err >&5
26960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961   (exit $ac_status); } && {
26962          test -z "$ac_c_werror_flag" ||
26963          test ! -s conftest.err
26964        } && test -s conftest.$ac_objext; then
26965   ac_lo=$ac_mid; break
26966 else
26967   $as_echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26969
26970         ac_hi=`expr '(' $ac_mid ')' - 1`
26971                         if test $ac_mid -le $ac_hi; then
26972                           ac_lo= ac_hi=
26973                           break
26974                         fi
26975                         ac_mid=`expr 2 '*' $ac_mid`
26976 fi
26977
26978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26979   done
26980 else
26981   $as_echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.$ac_ext >&5
26983
26984         ac_lo= ac_hi=
26985 fi
26986
26987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26988 fi
26989
26990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26991 # Binary search between lo and hi bounds.
26992 while test "x$ac_lo" != "x$ac_hi"; do
26993   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26994   cat >conftest.$ac_ext <<_ACEOF
26995 /* confdefs.h.  */
26996 _ACEOF
26997 cat confdefs.h >>conftest.$ac_ext
26998 cat >>conftest.$ac_ext <<_ACEOF
26999 /* end confdefs.h.  */
27000 $ac_includes_default
27001 #ifndef offsetof
27002 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27003 #endif
27004 typedef struct { char x; long long int y; } ac__type_alignof_;
27005 int
27006 main ()
27007 {
27008 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27009 test_array [0] = 0
27010
27011   ;
27012   return 0;
27013 }
27014 _ACEOF
27015 rm -f conftest.$ac_objext
27016 if { (ac_try="$ac_compile"
27017 case "(($ac_try" in
27018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019   *) ac_try_echo=$ac_try;;
27020 esac
27021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27022 $as_echo "$ac_try_echo") >&5
27023   (eval "$ac_compile") 2>conftest.er1
27024   ac_status=$?
27025   grep -v '^ *+' conftest.er1 >conftest.err
27026   rm -f conftest.er1
27027   cat conftest.err >&5
27028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029   (exit $ac_status); } && {
27030          test -z "$ac_c_werror_flag" ||
27031          test ! -s conftest.err
27032        } && test -s conftest.$ac_objext; then
27033   ac_hi=$ac_mid
27034 else
27035   $as_echo "$as_me: failed program was:" >&5
27036 sed 's/^/| /' conftest.$ac_ext >&5
27037
27038         ac_lo=`expr '(' $ac_mid ')' + 1`
27039 fi
27040
27041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27042 done
27043 case $ac_lo in
27044 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27045 '') if test "$ac_cv_type_long_long_int" = yes; then
27046      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27048 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27049 See \`config.log' for more details." >&5
27050 $as_echo "$as_me: error: cannot compute alignment of long long int
27051 See \`config.log' for more details." >&2;}
27052    { (exit 77); exit 77; }; }; }
27053    else
27054      ac_cv_alignof_long_long_int=0
27055    fi ;;
27056 esac
27057 else
27058   cat >conftest.$ac_ext <<_ACEOF
27059 /* confdefs.h.  */
27060 _ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h.  */
27064 $ac_includes_default
27065 #ifndef offsetof
27066 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27067 #endif
27068 typedef struct { char x; long long int y; } ac__type_alignof_;
27069 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27070 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27071 #include <stdio.h>
27072 #include <stdlib.h>
27073 int
27074 main ()
27075 {
27076
27077   FILE *f = fopen ("conftest.val", "w");
27078   if (! f)
27079     return 1;
27080   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27081     {
27082       long int i = longval ();
27083       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27084         return 1;
27085       fprintf (f, "%ld", i);
27086     }
27087   else
27088     {
27089       unsigned long int i = ulongval ();
27090       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27091         return 1;
27092       fprintf (f, "%lu", i);
27093     }
27094   /* Do not output a trailing newline, as this causes \r\n confusion
27095      on some platforms.  */
27096   return ferror (f) || fclose (f) != 0;
27097
27098   ;
27099   return 0;
27100 }
27101 _ACEOF
27102 rm -f conftest$ac_exeext
27103 if { (ac_try="$ac_link"
27104 case "(($ac_try" in
27105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106   *) ac_try_echo=$ac_try;;
27107 esac
27108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27109 $as_echo "$ac_try_echo") >&5
27110   (eval "$ac_link") 2>&5
27111   ac_status=$?
27112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27114   { (case "(($ac_try" in
27115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116   *) ac_try_echo=$ac_try;;
27117 esac
27118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27119 $as_echo "$ac_try_echo") >&5
27120   (eval "$ac_try") 2>&5
27121   ac_status=$?
27122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); }; }; then
27124   ac_cv_alignof_long_long_int=`cat conftest.val`
27125 else
27126   $as_echo "$as_me: program exited with status $ac_status" >&5
27127 $as_echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27129
27130 ( exit $ac_status )
27131 if test "$ac_cv_type_long_long_int" = yes; then
27132      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27134 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27135 See \`config.log' for more details." >&5
27136 $as_echo "$as_me: error: cannot compute alignment of long long int
27137 See \`config.log' for more details." >&2;}
27138    { (exit 77); exit 77; }; }; }
27139    else
27140      ac_cv_alignof_long_long_int=0
27141    fi
27142 fi
27143 rm -rf conftest.dSYM
27144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27145 fi
27146 rm -f conftest.val
27147 fi
27148 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27149 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27150
27151
27152
27153 cat >>confdefs.h <<_ACEOF
27154 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27155 _ACEOF
27156
27157
27158 fi
27159 # The cast to long int works around a bug in the HP C Compiler,
27160 # see AC_CHECK_SIZEOF for more information.
27161 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27162 $as_echo_n "checking alignment of double... " >&6; }
27163 if test "${ac_cv_alignof_double+set}" = set; then
27164   $as_echo_n "(cached) " >&6
27165 else
27166   if test "$cross_compiling" = yes; then
27167   # Depending upon the size, compute the lo and hi bounds.
27168 cat >conftest.$ac_ext <<_ACEOF
27169 /* confdefs.h.  */
27170 _ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h.  */
27174 $ac_includes_default
27175 #ifndef offsetof
27176 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27177 #endif
27178 typedef struct { char x; double y; } ac__type_alignof_;
27179 int
27180 main ()
27181 {
27182 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27183 test_array [0] = 0
27184
27185   ;
27186   return 0;
27187 }
27188 _ACEOF
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
27191 case "(($ac_try" in
27192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193   *) ac_try_echo=$ac_try;;
27194 esac
27195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27196 $as_echo "$ac_try_echo") >&5
27197   (eval "$ac_compile") 2>conftest.er1
27198   ac_status=$?
27199   grep -v '^ *+' conftest.er1 >conftest.err
27200   rm -f conftest.er1
27201   cat conftest.err >&5
27202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203   (exit $ac_status); } && {
27204          test -z "$ac_c_werror_flag" ||
27205          test ! -s conftest.err
27206        } && test -s conftest.$ac_objext; then
27207   ac_lo=0 ac_mid=0
27208   while :; do
27209     cat >conftest.$ac_ext <<_ACEOF
27210 /* confdefs.h.  */
27211 _ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h.  */
27215 $ac_includes_default
27216 #ifndef offsetof
27217 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27218 #endif
27219 typedef struct { char x; double y; } ac__type_alignof_;
27220 int
27221 main ()
27222 {
27223 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27224 test_array [0] = 0
27225
27226   ;
27227   return 0;
27228 }
27229 _ACEOF
27230 rm -f conftest.$ac_objext
27231 if { (ac_try="$ac_compile"
27232 case "(($ac_try" in
27233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27234   *) ac_try_echo=$ac_try;;
27235 esac
27236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27237 $as_echo "$ac_try_echo") >&5
27238   (eval "$ac_compile") 2>conftest.er1
27239   ac_status=$?
27240   grep -v '^ *+' conftest.er1 >conftest.err
27241   rm -f conftest.er1
27242   cat conftest.err >&5
27243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244   (exit $ac_status); } && {
27245          test -z "$ac_c_werror_flag" ||
27246          test ! -s conftest.err
27247        } && test -s conftest.$ac_objext; then
27248   ac_hi=$ac_mid; break
27249 else
27250   $as_echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.$ac_ext >&5
27252
27253         ac_lo=`expr $ac_mid + 1`
27254                         if test $ac_lo -le $ac_mid; then
27255                           ac_lo= ac_hi=
27256                           break
27257                         fi
27258                         ac_mid=`expr 2 '*' $ac_mid + 1`
27259 fi
27260
27261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27262   done
27263 else
27264   $as_echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27266
27267         cat >conftest.$ac_ext <<_ACEOF
27268 /* confdefs.h.  */
27269 _ACEOF
27270 cat confdefs.h >>conftest.$ac_ext
27271 cat >>conftest.$ac_ext <<_ACEOF
27272 /* end confdefs.h.  */
27273 $ac_includes_default
27274 #ifndef offsetof
27275 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27276 #endif
27277 typedef struct { char x; double y; } ac__type_alignof_;
27278 int
27279 main ()
27280 {
27281 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27282 test_array [0] = 0
27283
27284   ;
27285   return 0;
27286 }
27287 _ACEOF
27288 rm -f conftest.$ac_objext
27289 if { (ac_try="$ac_compile"
27290 case "(($ac_try" in
27291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292   *) ac_try_echo=$ac_try;;
27293 esac
27294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27295 $as_echo "$ac_try_echo") >&5
27296   (eval "$ac_compile") 2>conftest.er1
27297   ac_status=$?
27298   grep -v '^ *+' conftest.er1 >conftest.err
27299   rm -f conftest.er1
27300   cat conftest.err >&5
27301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302   (exit $ac_status); } && {
27303          test -z "$ac_c_werror_flag" ||
27304          test ! -s conftest.err
27305        } && test -s conftest.$ac_objext; then
27306   ac_hi=-1 ac_mid=-1
27307   while :; do
27308     cat >conftest.$ac_ext <<_ACEOF
27309 /* confdefs.h.  */
27310 _ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h.  */
27314 $ac_includes_default
27315 #ifndef offsetof
27316 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27317 #endif
27318 typedef struct { char x; double y; } ac__type_alignof_;
27319 int
27320 main ()
27321 {
27322 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27323 test_array [0] = 0
27324
27325   ;
27326   return 0;
27327 }
27328 _ACEOF
27329 rm -f conftest.$ac_objext
27330 if { (ac_try="$ac_compile"
27331 case "(($ac_try" in
27332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27333   *) ac_try_echo=$ac_try;;
27334 esac
27335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27336 $as_echo "$ac_try_echo") >&5
27337   (eval "$ac_compile") 2>conftest.er1
27338   ac_status=$?
27339   grep -v '^ *+' conftest.er1 >conftest.err
27340   rm -f conftest.er1
27341   cat conftest.err >&5
27342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343   (exit $ac_status); } && {
27344          test -z "$ac_c_werror_flag" ||
27345          test ! -s conftest.err
27346        } && test -s conftest.$ac_objext; then
27347   ac_lo=$ac_mid; break
27348 else
27349   $as_echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27351
27352         ac_hi=`expr '(' $ac_mid ')' - 1`
27353                         if test $ac_mid -le $ac_hi; then
27354                           ac_lo= ac_hi=
27355                           break
27356                         fi
27357                         ac_mid=`expr 2 '*' $ac_mid`
27358 fi
27359
27360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27361   done
27362 else
27363   $as_echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.$ac_ext >&5
27365
27366         ac_lo= ac_hi=
27367 fi
27368
27369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27370 fi
27371
27372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27373 # Binary search between lo and hi bounds.
27374 while test "x$ac_lo" != "x$ac_hi"; do
27375   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27376   cat >conftest.$ac_ext <<_ACEOF
27377 /* confdefs.h.  */
27378 _ACEOF
27379 cat confdefs.h >>conftest.$ac_ext
27380 cat >>conftest.$ac_ext <<_ACEOF
27381 /* end confdefs.h.  */
27382 $ac_includes_default
27383 #ifndef offsetof
27384 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27385 #endif
27386 typedef struct { char x; double y; } ac__type_alignof_;
27387 int
27388 main ()
27389 {
27390 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27391 test_array [0] = 0
27392
27393   ;
27394   return 0;
27395 }
27396 _ACEOF
27397 rm -f conftest.$ac_objext
27398 if { (ac_try="$ac_compile"
27399 case "(($ac_try" in
27400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401   *) ac_try_echo=$ac_try;;
27402 esac
27403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27404 $as_echo "$ac_try_echo") >&5
27405   (eval "$ac_compile") 2>conftest.er1
27406   ac_status=$?
27407   grep -v '^ *+' conftest.er1 >conftest.err
27408   rm -f conftest.er1
27409   cat conftest.err >&5
27410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411   (exit $ac_status); } && {
27412          test -z "$ac_c_werror_flag" ||
27413          test ! -s conftest.err
27414        } && test -s conftest.$ac_objext; then
27415   ac_hi=$ac_mid
27416 else
27417   $as_echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27419
27420         ac_lo=`expr '(' $ac_mid ')' + 1`
27421 fi
27422
27423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27424 done
27425 case $ac_lo in
27426 ?*) ac_cv_alignof_double=$ac_lo;;
27427 '') if test "$ac_cv_type_double" = yes; then
27428      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27430 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27431 See \`config.log' for more details." >&5
27432 $as_echo "$as_me: error: cannot compute alignment of double
27433 See \`config.log' for more details." >&2;}
27434    { (exit 77); exit 77; }; }; }
27435    else
27436      ac_cv_alignof_double=0
27437    fi ;;
27438 esac
27439 else
27440   cat >conftest.$ac_ext <<_ACEOF
27441 /* confdefs.h.  */
27442 _ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h.  */
27446 $ac_includes_default
27447 #ifndef offsetof
27448 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27449 #endif
27450 typedef struct { char x; double y; } ac__type_alignof_;
27451 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27452 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27453 #include <stdio.h>
27454 #include <stdlib.h>
27455 int
27456 main ()
27457 {
27458
27459   FILE *f = fopen ("conftest.val", "w");
27460   if (! f)
27461     return 1;
27462   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27463     {
27464       long int i = longval ();
27465       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27466         return 1;
27467       fprintf (f, "%ld", i);
27468     }
27469   else
27470     {
27471       unsigned long int i = ulongval ();
27472       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27473         return 1;
27474       fprintf (f, "%lu", i);
27475     }
27476   /* Do not output a trailing newline, as this causes \r\n confusion
27477      on some platforms.  */
27478   return ferror (f) || fclose (f) != 0;
27479
27480   ;
27481   return 0;
27482 }
27483 _ACEOF
27484 rm -f conftest$ac_exeext
27485 if { (ac_try="$ac_link"
27486 case "(($ac_try" in
27487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488   *) ac_try_echo=$ac_try;;
27489 esac
27490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27491 $as_echo "$ac_try_echo") >&5
27492   (eval "$ac_link") 2>&5
27493   ac_status=$?
27494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27496   { (case "(($ac_try" in
27497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498   *) ac_try_echo=$ac_try;;
27499 esac
27500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27501 $as_echo "$ac_try_echo") >&5
27502   (eval "$ac_try") 2>&5
27503   ac_status=$?
27504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); }; }; then
27506   ac_cv_alignof_double=`cat conftest.val`
27507 else
27508   $as_echo "$as_me: program exited with status $ac_status" >&5
27509 $as_echo "$as_me: failed program was:" >&5
27510 sed 's/^/| /' conftest.$ac_ext >&5
27511
27512 ( exit $ac_status )
27513 if test "$ac_cv_type_double" = yes; then
27514      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27516 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27517 See \`config.log' for more details." >&5
27518 $as_echo "$as_me: error: cannot compute alignment of double
27519 See \`config.log' for more details." >&2;}
27520    { (exit 77); exit 77; }; }; }
27521    else
27522      ac_cv_alignof_double=0
27523    fi
27524 fi
27525 rm -rf conftest.dSYM
27526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27527 fi
27528 rm -f conftest.val
27529 fi
27530 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27531 $as_echo "$ac_cv_alignof_double" >&6; }
27532
27533
27534
27535 cat >>confdefs.h <<_ACEOF
27536 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27537 _ACEOF
27538
27539
27540
27541 # Compute maximum alignment of any basic type.
27542 # We assume long's alignment is at least as strong as char, short, or int;
27543 # but we must check long long (if it exists) and double.
27544
27545 MAX_ALIGNOF=$ac_cv_alignof_long
27546 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27547   MAX_ALIGNOF=$ac_cv_alignof_double
27548 fi
27549 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27550   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27551 fi
27552
27553 cat >>confdefs.h <<_ACEOF
27554 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27555 _ACEOF
27556
27557
27558
27559 # Some platforms predefine the types int8, int16, etc.  Only check
27560 # a (hopefully) representative subset.
27561 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27562 $as_echo_n "checking for int8... " >&6; }
27563 if test "${ac_cv_type_int8+set}" = set; then
27564   $as_echo_n "(cached) " >&6
27565 else
27566   ac_cv_type_int8=no
27567 cat >conftest.$ac_ext <<_ACEOF
27568 /* confdefs.h.  */
27569 _ACEOF
27570 cat confdefs.h >>conftest.$ac_ext
27571 cat >>conftest.$ac_ext <<_ACEOF
27572 /* end confdefs.h.  */
27573 #include <stdio.h>
27574 #ifdef HAVE_SUPPORTDEFS_H
27575 #include <SupportDefs.h>
27576 #endif
27577
27578 int
27579 main ()
27580 {
27581 if (sizeof (int8))
27582        return 0;
27583   ;
27584   return 0;
27585 }
27586 _ACEOF
27587 rm -f conftest.$ac_objext
27588 if { (ac_try="$ac_compile"
27589 case "(($ac_try" in
27590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27591   *) ac_try_echo=$ac_try;;
27592 esac
27593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27594 $as_echo "$ac_try_echo") >&5
27595   (eval "$ac_compile") 2>conftest.er1
27596   ac_status=$?
27597   grep -v '^ *+' conftest.er1 >conftest.err
27598   rm -f conftest.er1
27599   cat conftest.err >&5
27600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601   (exit $ac_status); } && {
27602          test -z "$ac_c_werror_flag" ||
27603          test ! -s conftest.err
27604        } && test -s conftest.$ac_objext; then
27605   cat >conftest.$ac_ext <<_ACEOF
27606 /* confdefs.h.  */
27607 _ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h.  */
27611 #include <stdio.h>
27612 #ifdef HAVE_SUPPORTDEFS_H
27613 #include <SupportDefs.h>
27614 #endif
27615
27616 int
27617 main ()
27618 {
27619 if (sizeof ((int8)))
27620           return 0;
27621   ;
27622   return 0;
27623 }
27624 _ACEOF
27625 rm -f conftest.$ac_objext
27626 if { (ac_try="$ac_compile"
27627 case "(($ac_try" in
27628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27629   *) ac_try_echo=$ac_try;;
27630 esac
27631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27632 $as_echo "$ac_try_echo") >&5
27633   (eval "$ac_compile") 2>conftest.er1
27634   ac_status=$?
27635   grep -v '^ *+' conftest.er1 >conftest.err
27636   rm -f conftest.er1
27637   cat conftest.err >&5
27638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639   (exit $ac_status); } && {
27640          test -z "$ac_c_werror_flag" ||
27641          test ! -s conftest.err
27642        } && test -s conftest.$ac_objext; then
27643   :
27644 else
27645   $as_echo "$as_me: failed program was:" >&5
27646 sed 's/^/| /' conftest.$ac_ext >&5
27647
27648         ac_cv_type_int8=yes
27649 fi
27650
27651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27652 else
27653   $as_echo "$as_me: failed program was:" >&5
27654 sed 's/^/| /' conftest.$ac_ext >&5
27655
27656
27657 fi
27658
27659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27660 fi
27661 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27662 $as_echo "$ac_cv_type_int8" >&6; }
27663 if test "x$ac_cv_type_int8" = x""yes; then
27664
27665 cat >>confdefs.h <<_ACEOF
27666 #define HAVE_INT8 1
27667 _ACEOF
27668
27669
27670 fi
27671 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27672 $as_echo_n "checking for uint8... " >&6; }
27673 if test "${ac_cv_type_uint8+set}" = set; then
27674   $as_echo_n "(cached) " >&6
27675 else
27676   ac_cv_type_uint8=no
27677 cat >conftest.$ac_ext <<_ACEOF
27678 /* confdefs.h.  */
27679 _ACEOF
27680 cat confdefs.h >>conftest.$ac_ext
27681 cat >>conftest.$ac_ext <<_ACEOF
27682 /* end confdefs.h.  */
27683 #include <stdio.h>
27684 #ifdef HAVE_SUPPORTDEFS_H
27685 #include <SupportDefs.h>
27686 #endif
27687
27688 int
27689 main ()
27690 {
27691 if (sizeof (uint8))
27692        return 0;
27693   ;
27694   return 0;
27695 }
27696 _ACEOF
27697 rm -f conftest.$ac_objext
27698 if { (ac_try="$ac_compile"
27699 case "(($ac_try" in
27700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701   *) ac_try_echo=$ac_try;;
27702 esac
27703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27704 $as_echo "$ac_try_echo") >&5
27705   (eval "$ac_compile") 2>conftest.er1
27706   ac_status=$?
27707   grep -v '^ *+' conftest.er1 >conftest.err
27708   rm -f conftest.er1
27709   cat conftest.err >&5
27710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711   (exit $ac_status); } && {
27712          test -z "$ac_c_werror_flag" ||
27713          test ! -s conftest.err
27714        } && test -s conftest.$ac_objext; then
27715   cat >conftest.$ac_ext <<_ACEOF
27716 /* confdefs.h.  */
27717 _ACEOF
27718 cat confdefs.h >>conftest.$ac_ext
27719 cat >>conftest.$ac_ext <<_ACEOF
27720 /* end confdefs.h.  */
27721 #include <stdio.h>
27722 #ifdef HAVE_SUPPORTDEFS_H
27723 #include <SupportDefs.h>
27724 #endif
27725
27726 int
27727 main ()
27728 {
27729 if (sizeof ((uint8)))
27730           return 0;
27731   ;
27732   return 0;
27733 }
27734 _ACEOF
27735 rm -f conftest.$ac_objext
27736 if { (ac_try="$ac_compile"
27737 case "(($ac_try" in
27738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27739   *) ac_try_echo=$ac_try;;
27740 esac
27741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27742 $as_echo "$ac_try_echo") >&5
27743   (eval "$ac_compile") 2>conftest.er1
27744   ac_status=$?
27745   grep -v '^ *+' conftest.er1 >conftest.err
27746   rm -f conftest.er1
27747   cat conftest.err >&5
27748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749   (exit $ac_status); } && {
27750          test -z "$ac_c_werror_flag" ||
27751          test ! -s conftest.err
27752        } && test -s conftest.$ac_objext; then
27753   :
27754 else
27755   $as_echo "$as_me: failed program was:" >&5
27756 sed 's/^/| /' conftest.$ac_ext >&5
27757
27758         ac_cv_type_uint8=yes
27759 fi
27760
27761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27762 else
27763   $as_echo "$as_me: failed program was:" >&5
27764 sed 's/^/| /' conftest.$ac_ext >&5
27765
27766
27767 fi
27768
27769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27770 fi
27771 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27772 $as_echo "$ac_cv_type_uint8" >&6; }
27773 if test "x$ac_cv_type_uint8" = x""yes; then
27774
27775 cat >>confdefs.h <<_ACEOF
27776 #define HAVE_UINT8 1
27777 _ACEOF
27778
27779
27780 fi
27781 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27782 $as_echo_n "checking for int64... " >&6; }
27783 if test "${ac_cv_type_int64+set}" = set; then
27784   $as_echo_n "(cached) " >&6
27785 else
27786   ac_cv_type_int64=no
27787 cat >conftest.$ac_ext <<_ACEOF
27788 /* confdefs.h.  */
27789 _ACEOF
27790 cat confdefs.h >>conftest.$ac_ext
27791 cat >>conftest.$ac_ext <<_ACEOF
27792 /* end confdefs.h.  */
27793 #include <stdio.h>
27794 #ifdef HAVE_SUPPORTDEFS_H
27795 #include <SupportDefs.h>
27796 #endif
27797
27798 int
27799 main ()
27800 {
27801 if (sizeof (int64))
27802        return 0;
27803   ;
27804   return 0;
27805 }
27806 _ACEOF
27807 rm -f conftest.$ac_objext
27808 if { (ac_try="$ac_compile"
27809 case "(($ac_try" in
27810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27811   *) ac_try_echo=$ac_try;;
27812 esac
27813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27814 $as_echo "$ac_try_echo") >&5
27815   (eval "$ac_compile") 2>conftest.er1
27816   ac_status=$?
27817   grep -v '^ *+' conftest.er1 >conftest.err
27818   rm -f conftest.er1
27819   cat conftest.err >&5
27820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821   (exit $ac_status); } && {
27822          test -z "$ac_c_werror_flag" ||
27823          test ! -s conftest.err
27824        } && test -s conftest.$ac_objext; then
27825   cat >conftest.$ac_ext <<_ACEOF
27826 /* confdefs.h.  */
27827 _ACEOF
27828 cat confdefs.h >>conftest.$ac_ext
27829 cat >>conftest.$ac_ext <<_ACEOF
27830 /* end confdefs.h.  */
27831 #include <stdio.h>
27832 #ifdef HAVE_SUPPORTDEFS_H
27833 #include <SupportDefs.h>
27834 #endif
27835
27836 int
27837 main ()
27838 {
27839 if (sizeof ((int64)))
27840           return 0;
27841   ;
27842   return 0;
27843 }
27844 _ACEOF
27845 rm -f conftest.$ac_objext
27846 if { (ac_try="$ac_compile"
27847 case "(($ac_try" in
27848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27849   *) ac_try_echo=$ac_try;;
27850 esac
27851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27852 $as_echo "$ac_try_echo") >&5
27853   (eval "$ac_compile") 2>conftest.er1
27854   ac_status=$?
27855   grep -v '^ *+' conftest.er1 >conftest.err
27856   rm -f conftest.er1
27857   cat conftest.err >&5
27858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859   (exit $ac_status); } && {
27860          test -z "$ac_c_werror_flag" ||
27861          test ! -s conftest.err
27862        } && test -s conftest.$ac_objext; then
27863   :
27864 else
27865   $as_echo "$as_me: failed program was:" >&5
27866 sed 's/^/| /' conftest.$ac_ext >&5
27867
27868         ac_cv_type_int64=yes
27869 fi
27870
27871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27872 else
27873   $as_echo "$as_me: failed program was:" >&5
27874 sed 's/^/| /' conftest.$ac_ext >&5
27875
27876
27877 fi
27878
27879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27880 fi
27881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27882 $as_echo "$ac_cv_type_int64" >&6; }
27883 if test "x$ac_cv_type_int64" = x""yes; then
27884
27885 cat >>confdefs.h <<_ACEOF
27886 #define HAVE_INT64 1
27887 _ACEOF
27888
27889
27890 fi
27891 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27892 $as_echo_n "checking for uint64... " >&6; }
27893 if test "${ac_cv_type_uint64+set}" = set; then
27894   $as_echo_n "(cached) " >&6
27895 else
27896   ac_cv_type_uint64=no
27897 cat >conftest.$ac_ext <<_ACEOF
27898 /* confdefs.h.  */
27899 _ACEOF
27900 cat confdefs.h >>conftest.$ac_ext
27901 cat >>conftest.$ac_ext <<_ACEOF
27902 /* end confdefs.h.  */
27903 #include <stdio.h>
27904 #ifdef HAVE_SUPPORTDEFS_H
27905 #include <SupportDefs.h>
27906 #endif
27907
27908 int
27909 main ()
27910 {
27911 if (sizeof (uint64))
27912        return 0;
27913   ;
27914   return 0;
27915 }
27916 _ACEOF
27917 rm -f conftest.$ac_objext
27918 if { (ac_try="$ac_compile"
27919 case "(($ac_try" in
27920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921   *) ac_try_echo=$ac_try;;
27922 esac
27923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27924 $as_echo "$ac_try_echo") >&5
27925   (eval "$ac_compile") 2>conftest.er1
27926   ac_status=$?
27927   grep -v '^ *+' conftest.er1 >conftest.err
27928   rm -f conftest.er1
27929   cat conftest.err >&5
27930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931   (exit $ac_status); } && {
27932          test -z "$ac_c_werror_flag" ||
27933          test ! -s conftest.err
27934        } && test -s conftest.$ac_objext; then
27935   cat >conftest.$ac_ext <<_ACEOF
27936 /* confdefs.h.  */
27937 _ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h.  */
27941 #include <stdio.h>
27942 #ifdef HAVE_SUPPORTDEFS_H
27943 #include <SupportDefs.h>
27944 #endif
27945
27946 int
27947 main ()
27948 {
27949 if (sizeof ((uint64)))
27950           return 0;
27951   ;
27952   return 0;
27953 }
27954 _ACEOF
27955 rm -f conftest.$ac_objext
27956 if { (ac_try="$ac_compile"
27957 case "(($ac_try" in
27958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959   *) ac_try_echo=$ac_try;;
27960 esac
27961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27962 $as_echo "$ac_try_echo") >&5
27963   (eval "$ac_compile") 2>conftest.er1
27964   ac_status=$?
27965   grep -v '^ *+' conftest.er1 >conftest.err
27966   rm -f conftest.er1
27967   cat conftest.err >&5
27968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969   (exit $ac_status); } && {
27970          test -z "$ac_c_werror_flag" ||
27971          test ! -s conftest.err
27972        } && test -s conftest.$ac_objext; then
27973   :
27974 else
27975   $as_echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27977
27978         ac_cv_type_uint64=yes
27979 fi
27980
27981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27982 else
27983   $as_echo "$as_me: failed program was:" >&5
27984 sed 's/^/| /' conftest.$ac_ext >&5
27985
27986
27987 fi
27988
27989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27990 fi
27991 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27992 $as_echo "$ac_cv_type_uint64" >&6; }
27993 if test "x$ac_cv_type_uint64" = x""yes; then
27994
27995 cat >>confdefs.h <<_ACEOF
27996 #define HAVE_UINT64 1
27997 _ACEOF
27998
27999
28000 fi
28001
28002
28003 # We also check for sig_atomic_t, which *should* be defined per ANSI
28004 # C, but is missing on some old platforms.
28005 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28006 $as_echo_n "checking for sig_atomic_t... " >&6; }
28007 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28008   $as_echo_n "(cached) " >&6
28009 else
28010   ac_cv_type_sig_atomic_t=no
28011 cat >conftest.$ac_ext <<_ACEOF
28012 /* confdefs.h.  */
28013 _ACEOF
28014 cat confdefs.h >>conftest.$ac_ext
28015 cat >>conftest.$ac_ext <<_ACEOF
28016 /* end confdefs.h.  */
28017 #include <signal.h>
28018
28019 int
28020 main ()
28021 {
28022 if (sizeof (sig_atomic_t))
28023        return 0;
28024   ;
28025   return 0;
28026 }
28027 _ACEOF
28028 rm -f conftest.$ac_objext
28029 if { (ac_try="$ac_compile"
28030 case "(($ac_try" in
28031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28032   *) ac_try_echo=$ac_try;;
28033 esac
28034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28035 $as_echo "$ac_try_echo") >&5
28036   (eval "$ac_compile") 2>conftest.er1
28037   ac_status=$?
28038   grep -v '^ *+' conftest.er1 >conftest.err
28039   rm -f conftest.er1
28040   cat conftest.err >&5
28041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); } && {
28043          test -z "$ac_c_werror_flag" ||
28044          test ! -s conftest.err
28045        } && test -s conftest.$ac_objext; then
28046   cat >conftest.$ac_ext <<_ACEOF
28047 /* confdefs.h.  */
28048 _ACEOF
28049 cat confdefs.h >>conftest.$ac_ext
28050 cat >>conftest.$ac_ext <<_ACEOF
28051 /* end confdefs.h.  */
28052 #include <signal.h>
28053
28054 int
28055 main ()
28056 {
28057 if (sizeof ((sig_atomic_t)))
28058           return 0;
28059   ;
28060   return 0;
28061 }
28062 _ACEOF
28063 rm -f conftest.$ac_objext
28064 if { (ac_try="$ac_compile"
28065 case "(($ac_try" in
28066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067   *) ac_try_echo=$ac_try;;
28068 esac
28069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28070 $as_echo "$ac_try_echo") >&5
28071   (eval "$ac_compile") 2>conftest.er1
28072   ac_status=$?
28073   grep -v '^ *+' conftest.er1 >conftest.err
28074   rm -f conftest.er1
28075   cat conftest.err >&5
28076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077   (exit $ac_status); } && {
28078          test -z "$ac_c_werror_flag" ||
28079          test ! -s conftest.err
28080        } && test -s conftest.$ac_objext; then
28081   :
28082 else
28083   $as_echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28085
28086         ac_cv_type_sig_atomic_t=yes
28087 fi
28088
28089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28090 else
28091   $as_echo "$as_me: failed program was:" >&5
28092 sed 's/^/| /' conftest.$ac_ext >&5
28093
28094
28095 fi
28096
28097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28098 fi
28099 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28100 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28101 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28102
28103 cat >>confdefs.h <<_ACEOF
28104 #define HAVE_SIG_ATOMIC_T 1
28105 _ACEOF
28106
28107
28108 fi
28109
28110
28111
28112 if test "$PORTNAME" != "win32"
28113 then
28114 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28115 $as_echo_n "checking for POSIX signal interface... " >&6; }
28116 if test "${pgac_cv_func_posix_signals+set}" = set; then
28117   $as_echo_n "(cached) " >&6
28118 else
28119   cat >conftest.$ac_ext <<_ACEOF
28120 /* confdefs.h.  */
28121 _ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h.  */
28125 #include <signal.h>
28126
28127 int
28128 main ()
28129 {
28130 struct sigaction act, oact;
28131 sigemptyset(&act.sa_mask);
28132 act.sa_flags = SA_RESTART;
28133 sigaction(0, &act, &oact);
28134   ;
28135   return 0;
28136 }
28137 _ACEOF
28138 rm -f conftest.$ac_objext conftest$ac_exeext
28139 if { (ac_try="$ac_link"
28140 case "(($ac_try" in
28141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28142   *) ac_try_echo=$ac_try;;
28143 esac
28144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28145 $as_echo "$ac_try_echo") >&5
28146   (eval "$ac_link") 2>conftest.er1
28147   ac_status=$?
28148   grep -v '^ *+' conftest.er1 >conftest.err
28149   rm -f conftest.er1
28150   cat conftest.err >&5
28151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152   (exit $ac_status); } && {
28153          test -z "$ac_c_werror_flag" ||
28154          test ! -s conftest.err
28155        } && test -s conftest$ac_exeext && {
28156          test "$cross_compiling" = yes ||
28157          $as_test_x conftest$ac_exeext
28158        }; then
28159   pgac_cv_func_posix_signals=yes
28160 else
28161   $as_echo "$as_me: failed program was:" >&5
28162 sed 's/^/| /' conftest.$ac_ext >&5
28163
28164         pgac_cv_func_posix_signals=no
28165 fi
28166
28167 rm -rf conftest.dSYM
28168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28169       conftest$ac_exeext conftest.$ac_ext
28170 fi
28171 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28172 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28173 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28174
28175 cat >>confdefs.h <<\_ACEOF
28176 #define HAVE_POSIX_SIGNALS /**/
28177 _ACEOF
28178
28179 fi
28180 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28181
28182 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28183   { { $as_echo "$as_me:$LINENO: error:
28184 Thread-safety requires POSIX signals, which are not supported by this
28185 operating system;  use --disable-thread-safety to disable thread safety." >&5
28186 $as_echo "$as_me: error:
28187 Thread-safety requires POSIX signals, which are not supported by this
28188 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28189    { (exit 1); exit 1; }; }
28190 fi
28191 fi
28192
28193 # SunOS doesn't handle negative byte comparisons properly with +/- return
28194 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28195 $as_echo_n "checking for working memcmp... " >&6; }
28196 if test "${ac_cv_func_memcmp_working+set}" = set; then
28197   $as_echo_n "(cached) " >&6
28198 else
28199   if test "$cross_compiling" = yes; then
28200   ac_cv_func_memcmp_working=no
28201 else
28202   cat >conftest.$ac_ext <<_ACEOF
28203 /* confdefs.h.  */
28204 _ACEOF
28205 cat confdefs.h >>conftest.$ac_ext
28206 cat >>conftest.$ac_ext <<_ACEOF
28207 /* end confdefs.h.  */
28208 $ac_includes_default
28209 int
28210 main ()
28211 {
28212
28213   /* Some versions of memcmp are not 8-bit clean.  */
28214   char c0 = '\100', c1 = '\200', c2 = '\201';
28215   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28216     return 1;
28217
28218   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28219      or more and with at least one buffer not starting on a 4-byte boundary.
28220      William Lewis provided this test program.   */
28221   {
28222     char foo[21];
28223     char bar[21];
28224     int i;
28225     for (i = 0; i < 4; i++)
28226       {
28227         char *a = foo + i;
28228         char *b = bar + i;
28229         strcpy (a, "--------01111111");
28230         strcpy (b, "--------10000000");
28231         if (memcmp (a, b, 16) >= 0)
28232           return 1;
28233       }
28234     return 0;
28235   }
28236
28237   ;
28238   return 0;
28239 }
28240 _ACEOF
28241 rm -f conftest$ac_exeext
28242 if { (ac_try="$ac_link"
28243 case "(($ac_try" in
28244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28245   *) ac_try_echo=$ac_try;;
28246 esac
28247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28248 $as_echo "$ac_try_echo") >&5
28249   (eval "$ac_link") 2>&5
28250   ac_status=$?
28251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28253   { (case "(($ac_try" in
28254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28255   *) ac_try_echo=$ac_try;;
28256 esac
28257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28258 $as_echo "$ac_try_echo") >&5
28259   (eval "$ac_try") 2>&5
28260   ac_status=$?
28261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262   (exit $ac_status); }; }; then
28263   ac_cv_func_memcmp_working=yes
28264 else
28265   $as_echo "$as_me: program exited with status $ac_status" >&5
28266 $as_echo "$as_me: failed program was:" >&5
28267 sed 's/^/| /' conftest.$ac_ext >&5
28268
28269 ( exit $ac_status )
28270 ac_cv_func_memcmp_working=no
28271 fi
28272 rm -rf conftest.dSYM
28273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28274 fi
28275
28276
28277 fi
28278 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28279 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28280 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28281   *" memcmp.$ac_objext "* ) ;;
28282   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28283  ;;
28284 esac
28285
28286
28287
28288
28289 # Select semaphore implementation type.
28290 if test "$PORTNAME" != "win32"; then
28291   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28292
28293 cat >>confdefs.h <<\_ACEOF
28294 #define USE_NAMED_POSIX_SEMAPHORES 1
28295 _ACEOF
28296
28297     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28298   else
28299     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28300
28301 cat >>confdefs.h <<\_ACEOF
28302 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28303 _ACEOF
28304
28305       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28306     else
28307
28308 cat >>confdefs.h <<\_ACEOF
28309 #define USE_SYSV_SEMAPHORES 1
28310 _ACEOF
28311
28312       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28313     fi
28314   fi
28315 else
28316
28317 cat >>confdefs.h <<\_ACEOF
28318 #define USE_WIN32_SEMAPHORES 1
28319 _ACEOF
28320
28321   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28322 fi
28323
28324
28325 # Select shared-memory implementation type.
28326 if test "$PORTNAME" != "win32"; then
28327
28328 cat >>confdefs.h <<\_ACEOF
28329 #define USE_SYSV_SHARED_MEMORY 1
28330 _ACEOF
28331
28332   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28333 else
28334
28335 cat >>confdefs.h <<\_ACEOF
28336 #define USE_WIN32_SHARED_MEMORY 1
28337 _ACEOF
28338
28339   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28340 fi
28341
28342 # Select latch implementation type.
28343 if test "$PORTNAME" != "win32"; then
28344   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28345 else
28346   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28347 fi
28348
28349 # If not set in template file, set bytes to use libc memset()
28350 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28351   MEMSET_LOOP_LIMIT=1024
28352 fi
28353
28354 cat >>confdefs.h <<_ACEOF
28355 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28356 _ACEOF
28357
28358
28359
28360 if test "$enable_nls" = yes ; then
28361
28362   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28363 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28364 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28365   $as_echo_n "(cached) " >&6
28366 else
28367   ac_func_search_save_LIBS=$LIBS
28368 cat >conftest.$ac_ext <<_ACEOF
28369 /* confdefs.h.  */
28370 _ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h.  */
28374
28375 /* Override any GCC internal prototype to avoid an error.
28376    Use char because int might match the return type of a GCC
28377    builtin and then its argument prototype would still apply.  */
28378 #ifdef __cplusplus
28379 extern "C"
28380 #endif
28381 char bind_textdomain_codeset ();
28382 int
28383 main ()
28384 {
28385 return bind_textdomain_codeset ();
28386   ;
28387   return 0;
28388 }
28389 _ACEOF
28390 for ac_lib in '' intl; do
28391   if test -z "$ac_lib"; then
28392     ac_res="none required"
28393   else
28394     ac_res=-l$ac_lib
28395     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28396   fi
28397   rm -f conftest.$ac_objext conftest$ac_exeext
28398 if { (ac_try="$ac_link"
28399 case "(($ac_try" in
28400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401   *) ac_try_echo=$ac_try;;
28402 esac
28403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28404 $as_echo "$ac_try_echo") >&5
28405   (eval "$ac_link") 2>conftest.er1
28406   ac_status=$?
28407   grep -v '^ *+' conftest.er1 >conftest.err
28408   rm -f conftest.er1
28409   cat conftest.err >&5
28410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); } && {
28412          test -z "$ac_c_werror_flag" ||
28413          test ! -s conftest.err
28414        } && test -s conftest$ac_exeext && {
28415          test "$cross_compiling" = yes ||
28416          $as_test_x conftest$ac_exeext
28417        }; then
28418   ac_cv_search_bind_textdomain_codeset=$ac_res
28419 else
28420   $as_echo "$as_me: failed program was:" >&5
28421 sed 's/^/| /' conftest.$ac_ext >&5
28422
28423
28424 fi
28425
28426 rm -rf conftest.dSYM
28427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28428       conftest$ac_exeext
28429   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28430   break
28431 fi
28432 done
28433 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28434   :
28435 else
28436   ac_cv_search_bind_textdomain_codeset=no
28437 fi
28438 rm conftest.$ac_ext
28439 LIBS=$ac_func_search_save_LIBS
28440 fi
28441 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28442 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28443 ac_res=$ac_cv_search_bind_textdomain_codeset
28444 if test "$ac_res" != no; then
28445   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28446
28447 else
28448   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28449 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28450    { (exit 1); exit 1; }; }
28451 fi
28452
28453   if test "${ac_cv_header_libintl_h+set}" = set; then
28454   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28455 $as_echo_n "checking for libintl.h... " >&6; }
28456 if test "${ac_cv_header_libintl_h+set}" = set; then
28457   $as_echo_n "(cached) " >&6
28458 fi
28459 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28460 $as_echo "$ac_cv_header_libintl_h" >&6; }
28461 else
28462   # Is the header compilable?
28463 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28464 $as_echo_n "checking libintl.h usability... " >&6; }
28465 cat >conftest.$ac_ext <<_ACEOF
28466 /* confdefs.h.  */
28467 _ACEOF
28468 cat confdefs.h >>conftest.$ac_ext
28469 cat >>conftest.$ac_ext <<_ACEOF
28470 /* end confdefs.h.  */
28471 $ac_includes_default
28472 #include <libintl.h>
28473 _ACEOF
28474 rm -f conftest.$ac_objext
28475 if { (ac_try="$ac_compile"
28476 case "(($ac_try" in
28477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478   *) ac_try_echo=$ac_try;;
28479 esac
28480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28481 $as_echo "$ac_try_echo") >&5
28482   (eval "$ac_compile") 2>conftest.er1
28483   ac_status=$?
28484   grep -v '^ *+' conftest.er1 >conftest.err
28485   rm -f conftest.er1
28486   cat conftest.err >&5
28487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488   (exit $ac_status); } && {
28489          test -z "$ac_c_werror_flag" ||
28490          test ! -s conftest.err
28491        } && test -s conftest.$ac_objext; then
28492   ac_header_compiler=yes
28493 else
28494   $as_echo "$as_me: failed program was:" >&5
28495 sed 's/^/| /' conftest.$ac_ext >&5
28496
28497         ac_header_compiler=no
28498 fi
28499
28500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28501 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28502 $as_echo "$ac_header_compiler" >&6; }
28503
28504 # Is the header present?
28505 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28506 $as_echo_n "checking libintl.h presence... " >&6; }
28507 cat >conftest.$ac_ext <<_ACEOF
28508 /* confdefs.h.  */
28509 _ACEOF
28510 cat confdefs.h >>conftest.$ac_ext
28511 cat >>conftest.$ac_ext <<_ACEOF
28512 /* end confdefs.h.  */
28513 #include <libintl.h>
28514 _ACEOF
28515 if { (ac_try="$ac_cpp conftest.$ac_ext"
28516 case "(($ac_try" in
28517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28518   *) ac_try_echo=$ac_try;;
28519 esac
28520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28521 $as_echo "$ac_try_echo") >&5
28522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28523   ac_status=$?
28524   grep -v '^ *+' conftest.er1 >conftest.err
28525   rm -f conftest.er1
28526   cat conftest.err >&5
28527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528   (exit $ac_status); } >/dev/null && {
28529          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28530          test ! -s conftest.err
28531        }; then
28532   ac_header_preproc=yes
28533 else
28534   $as_echo "$as_me: failed program was:" >&5
28535 sed 's/^/| /' conftest.$ac_ext >&5
28536
28537   ac_header_preproc=no
28538 fi
28539
28540 rm -f conftest.err conftest.$ac_ext
28541 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28542 $as_echo "$ac_header_preproc" >&6; }
28543
28544 # So?  What about this header?
28545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28546   yes:no: )
28547     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28548 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28549     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28550 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28551     ac_header_preproc=yes
28552     ;;
28553   no:yes:* )
28554     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28555 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28556     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28557 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28558     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28559 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28560     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28561 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28562     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28563 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28564     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28565 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28566     ( cat <<\_ASBOX
28567 ## ---------------------------------------- ##
28568 ## Report this to pgsql-bugs@postgresql.org ##
28569 ## ---------------------------------------- ##
28570 _ASBOX
28571      ) | sed "s/^/$as_me: WARNING:     /" >&2
28572     ;;
28573 esac
28574 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28575 $as_echo_n "checking for libintl.h... " >&6; }
28576 if test "${ac_cv_header_libintl_h+set}" = set; then
28577   $as_echo_n "(cached) " >&6
28578 else
28579   ac_cv_header_libintl_h=$ac_header_preproc
28580 fi
28581 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28582 $as_echo "$ac_cv_header_libintl_h" >&6; }
28583
28584 fi
28585 if test "x$ac_cv_header_libintl_h" = x""yes; then
28586   :
28587 else
28588   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28589 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28590    { (exit 1); exit 1; }; }
28591 fi
28592
28593
28594   for ac_prog in msgfmt
28595 do
28596   # Extract the first word of "$ac_prog", so it can be a program name with args.
28597 set dummy $ac_prog; ac_word=$2
28598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28599 $as_echo_n "checking for $ac_word... " >&6; }
28600 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28601   $as_echo_n "(cached) " >&6
28602 else
28603   if test -n "$MSGFMT"; then
28604   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28605 else
28606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28607 for as_dir in $PATH
28608 do
28609   IFS=$as_save_IFS
28610   test -z "$as_dir" && as_dir=.
28611   for ac_exec_ext in '' $ac_executable_extensions; do
28612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28613     ac_cv_prog_MSGFMT="$ac_prog"
28614     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28615     break 2
28616   fi
28617 done
28618 done
28619 IFS=$as_save_IFS
28620
28621 fi
28622 fi
28623 MSGFMT=$ac_cv_prog_MSGFMT
28624 if test -n "$MSGFMT"; then
28625   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28626 $as_echo "$MSGFMT" >&6; }
28627 else
28628   { $as_echo "$as_me:$LINENO: result: no" >&5
28629 $as_echo "no" >&6; }
28630 fi
28631
28632
28633   test -n "$MSGFMT" && break
28634 done
28635
28636   if test -z "$MSGFMT"; then
28637     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28638 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28639    { (exit 1); exit 1; }; }
28640   fi
28641   for ac_prog in msgmerge
28642 do
28643   # Extract the first word of "$ac_prog", so it can be a program name with args.
28644 set dummy $ac_prog; ac_word=$2
28645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28646 $as_echo_n "checking for $ac_word... " >&6; }
28647 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28648   $as_echo_n "(cached) " >&6
28649 else
28650   if test -n "$MSGMERGE"; then
28651   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28652 else
28653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28654 for as_dir in $PATH
28655 do
28656   IFS=$as_save_IFS
28657   test -z "$as_dir" && as_dir=.
28658   for ac_exec_ext in '' $ac_executable_extensions; do
28659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28660     ac_cv_prog_MSGMERGE="$ac_prog"
28661     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28662     break 2
28663   fi
28664 done
28665 done
28666 IFS=$as_save_IFS
28667
28668 fi
28669 fi
28670 MSGMERGE=$ac_cv_prog_MSGMERGE
28671 if test -n "$MSGMERGE"; then
28672   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28673 $as_echo "$MSGMERGE" >&6; }
28674 else
28675   { $as_echo "$as_me:$LINENO: result: no" >&5
28676 $as_echo "no" >&6; }
28677 fi
28678
28679
28680   test -n "$MSGMERGE" && break
28681 done
28682
28683   for ac_prog in xgettext
28684 do
28685   # Extract the first word of "$ac_prog", so it can be a program name with args.
28686 set dummy $ac_prog; ac_word=$2
28687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28688 $as_echo_n "checking for $ac_word... " >&6; }
28689 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28690   $as_echo_n "(cached) " >&6
28691 else
28692   if test -n "$XGETTEXT"; then
28693   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28694 else
28695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28696 for as_dir in $PATH
28697 do
28698   IFS=$as_save_IFS
28699   test -z "$as_dir" && as_dir=.
28700   for ac_exec_ext in '' $ac_executable_extensions; do
28701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28702     ac_cv_prog_XGETTEXT="$ac_prog"
28703     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28704     break 2
28705   fi
28706 done
28707 done
28708 IFS=$as_save_IFS
28709
28710 fi
28711 fi
28712 XGETTEXT=$ac_cv_prog_XGETTEXT
28713 if test -n "$XGETTEXT"; then
28714   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28715 $as_echo "$XGETTEXT" >&6; }
28716 else
28717   { $as_echo "$as_me:$LINENO: result: no" >&5
28718 $as_echo "no" >&6; }
28719 fi
28720
28721
28722   test -n "$XGETTEXT" && break
28723 done
28724
28725
28726 fi
28727
28728 # Check for Tcl configuration script tclConfig.sh
28729 if test "$with_tcl" = yes; then
28730     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28731 do
28732   # Extract the first word of "$ac_prog", so it can be a program name with args.
28733 set dummy $ac_prog; ac_word=$2
28734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28735 $as_echo_n "checking for $ac_word... " >&6; }
28736 if test "${ac_cv_path_TCLSH+set}" = set; then
28737   $as_echo_n "(cached) " >&6
28738 else
28739   case $TCLSH in
28740   [\\/]* | ?:[\\/]*)
28741   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28742   ;;
28743   *)
28744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28745 for as_dir in $PATH
28746 do
28747   IFS=$as_save_IFS
28748   test -z "$as_dir" && as_dir=.
28749   for ac_exec_ext in '' $ac_executable_extensions; do
28750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28751     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28752     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28753     break 2
28754   fi
28755 done
28756 done
28757 IFS=$as_save_IFS
28758
28759   ;;
28760 esac
28761 fi
28762 TCLSH=$ac_cv_path_TCLSH
28763 if test -n "$TCLSH"; then
28764   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28765 $as_echo "$TCLSH" >&6; }
28766 else
28767   { $as_echo "$as_me:$LINENO: result: no" >&5
28768 $as_echo "no" >&6; }
28769 fi
28770
28771
28772   test -n "$TCLSH" && break
28773 done
28774
28775 if test x"$TCLSH" = x""; then
28776   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28777 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28778    { (exit 1); exit 1; }; }
28779 fi
28780
28781 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28782 $as_echo_n "checking for tclConfig.sh... " >&6; }
28783 # Let user override test
28784 if test -z "$TCL_CONFIG_SH"; then
28785     pgac_test_dirs="$with_tclconfig"
28786
28787     set X $pgac_test_dirs; shift
28788     if test $# -eq 0; then
28789         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28790 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28791    { (exit 1); exit 1; }; }
28792         set X `echo 'puts $auto_path' | $TCLSH`; shift
28793     fi
28794
28795     for pgac_dir do
28796         if test -r "$pgac_dir/tclConfig.sh"; then
28797             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28798             break
28799         fi
28800     done
28801 fi
28802
28803 if test -z "$TCL_CONFIG_SH"; then
28804     { $as_echo "$as_me:$LINENO: result: no" >&5
28805 $as_echo "no" >&6; }
28806     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28807 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28808    { (exit 1); exit 1; }; }
28809 else
28810     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28811 $as_echo "$TCL_CONFIG_SH" >&6; }
28812 fi
28813
28814
28815
28816     . "$TCL_CONFIG_SH"
28817 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28818 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28819 eval TCL_LIBS=\"$TCL_LIBS\"
28820 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28821 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28822
28823         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28824     ac_save_CPPFLAGS=$CPPFLAGS
28825     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28826     if test "${ac_cv_header_tcl_h+set}" = set; then
28827   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28828 $as_echo_n "checking for tcl.h... " >&6; }
28829 if test "${ac_cv_header_tcl_h+set}" = set; then
28830   $as_echo_n "(cached) " >&6
28831 fi
28832 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28833 $as_echo "$ac_cv_header_tcl_h" >&6; }
28834 else
28835   # Is the header compilable?
28836 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28837 $as_echo_n "checking tcl.h usability... " >&6; }
28838 cat >conftest.$ac_ext <<_ACEOF
28839 /* confdefs.h.  */
28840 _ACEOF
28841 cat confdefs.h >>conftest.$ac_ext
28842 cat >>conftest.$ac_ext <<_ACEOF
28843 /* end confdefs.h.  */
28844 $ac_includes_default
28845 #include <tcl.h>
28846 _ACEOF
28847 rm -f conftest.$ac_objext
28848 if { (ac_try="$ac_compile"
28849 case "(($ac_try" in
28850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28851   *) ac_try_echo=$ac_try;;
28852 esac
28853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28854 $as_echo "$ac_try_echo") >&5
28855   (eval "$ac_compile") 2>conftest.er1
28856   ac_status=$?
28857   grep -v '^ *+' conftest.er1 >conftest.err
28858   rm -f conftest.er1
28859   cat conftest.err >&5
28860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861   (exit $ac_status); } && {
28862          test -z "$ac_c_werror_flag" ||
28863          test ! -s conftest.err
28864        } && test -s conftest.$ac_objext; then
28865   ac_header_compiler=yes
28866 else
28867   $as_echo "$as_me: failed program was:" >&5
28868 sed 's/^/| /' conftest.$ac_ext >&5
28869
28870         ac_header_compiler=no
28871 fi
28872
28873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28875 $as_echo "$ac_header_compiler" >&6; }
28876
28877 # Is the header present?
28878 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28879 $as_echo_n "checking tcl.h presence... " >&6; }
28880 cat >conftest.$ac_ext <<_ACEOF
28881 /* confdefs.h.  */
28882 _ACEOF
28883 cat confdefs.h >>conftest.$ac_ext
28884 cat >>conftest.$ac_ext <<_ACEOF
28885 /* end confdefs.h.  */
28886 #include <tcl.h>
28887 _ACEOF
28888 if { (ac_try="$ac_cpp conftest.$ac_ext"
28889 case "(($ac_try" in
28890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28891   *) ac_try_echo=$ac_try;;
28892 esac
28893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28894 $as_echo "$ac_try_echo") >&5
28895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28896   ac_status=$?
28897   grep -v '^ *+' conftest.er1 >conftest.err
28898   rm -f conftest.er1
28899   cat conftest.err >&5
28900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901   (exit $ac_status); } >/dev/null && {
28902          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28903          test ! -s conftest.err
28904        }; then
28905   ac_header_preproc=yes
28906 else
28907   $as_echo "$as_me: failed program was:" >&5
28908 sed 's/^/| /' conftest.$ac_ext >&5
28909
28910   ac_header_preproc=no
28911 fi
28912
28913 rm -f conftest.err conftest.$ac_ext
28914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28915 $as_echo "$ac_header_preproc" >&6; }
28916
28917 # So?  What about this header?
28918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28919   yes:no: )
28920     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28921 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28922     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28923 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28924     ac_header_preproc=yes
28925     ;;
28926   no:yes:* )
28927     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28928 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28929     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
28930 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
28931     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28932 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28933     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
28934 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28935     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28936 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28937     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28938 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28939     ( cat <<\_ASBOX
28940 ## ---------------------------------------- ##
28941 ## Report this to pgsql-bugs@postgresql.org ##
28942 ## ---------------------------------------- ##
28943 _ASBOX
28944      ) | sed "s/^/$as_me: WARNING:     /" >&2
28945     ;;
28946 esac
28947 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28948 $as_echo_n "checking for tcl.h... " >&6; }
28949 if test "${ac_cv_header_tcl_h+set}" = set; then
28950   $as_echo_n "(cached) " >&6
28951 else
28952   ac_cv_header_tcl_h=$ac_header_preproc
28953 fi
28954 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28955 $as_echo "$ac_cv_header_tcl_h" >&6; }
28956
28957 fi
28958 if test "x$ac_cv_header_tcl_h" = x""yes; then
28959   :
28960 else
28961   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28962 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28963    { (exit 1); exit 1; }; }
28964 fi
28965
28966
28967     CPPFLAGS=$ac_save_CPPFLAGS
28968 fi
28969
28970 # check for <Python.h>
28971 if test "$with_python" = yes; then
28972   ac_save_CPPFLAGS=$CPPFLAGS
28973   CPPFLAGS="$python_includespec $CPPFLAGS"
28974   if test "${ac_cv_header_Python_h+set}" = set; then
28975   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28976 $as_echo_n "checking for Python.h... " >&6; }
28977 if test "${ac_cv_header_Python_h+set}" = set; then
28978   $as_echo_n "(cached) " >&6
28979 fi
28980 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28981 $as_echo "$ac_cv_header_Python_h" >&6; }
28982 else
28983   # Is the header compilable?
28984 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
28985 $as_echo_n "checking Python.h usability... " >&6; }
28986 cat >conftest.$ac_ext <<_ACEOF
28987 /* confdefs.h.  */
28988 _ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h.  */
28992 $ac_includes_default
28993 #include <Python.h>
28994 _ACEOF
28995 rm -f conftest.$ac_objext
28996 if { (ac_try="$ac_compile"
28997 case "(($ac_try" in
28998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28999   *) ac_try_echo=$ac_try;;
29000 esac
29001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29002 $as_echo "$ac_try_echo") >&5
29003   (eval "$ac_compile") 2>conftest.er1
29004   ac_status=$?
29005   grep -v '^ *+' conftest.er1 >conftest.err
29006   rm -f conftest.er1
29007   cat conftest.err >&5
29008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009   (exit $ac_status); } && {
29010          test -z "$ac_c_werror_flag" ||
29011          test ! -s conftest.err
29012        } && test -s conftest.$ac_objext; then
29013   ac_header_compiler=yes
29014 else
29015   $as_echo "$as_me: failed program was:" >&5
29016 sed 's/^/| /' conftest.$ac_ext >&5
29017
29018         ac_header_compiler=no
29019 fi
29020
29021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29022 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29023 $as_echo "$ac_header_compiler" >&6; }
29024
29025 # Is the header present?
29026 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29027 $as_echo_n "checking Python.h presence... " >&6; }
29028 cat >conftest.$ac_ext <<_ACEOF
29029 /* confdefs.h.  */
29030 _ACEOF
29031 cat confdefs.h >>conftest.$ac_ext
29032 cat >>conftest.$ac_ext <<_ACEOF
29033 /* end confdefs.h.  */
29034 #include <Python.h>
29035 _ACEOF
29036 if { (ac_try="$ac_cpp conftest.$ac_ext"
29037 case "(($ac_try" in
29038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039   *) ac_try_echo=$ac_try;;
29040 esac
29041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29042 $as_echo "$ac_try_echo") >&5
29043   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29044   ac_status=$?
29045   grep -v '^ *+' conftest.er1 >conftest.err
29046   rm -f conftest.er1
29047   cat conftest.err >&5
29048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049   (exit $ac_status); } >/dev/null && {
29050          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29051          test ! -s conftest.err
29052        }; then
29053   ac_header_preproc=yes
29054 else
29055   $as_echo "$as_me: failed program was:" >&5
29056 sed 's/^/| /' conftest.$ac_ext >&5
29057
29058   ac_header_preproc=no
29059 fi
29060
29061 rm -f conftest.err conftest.$ac_ext
29062 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29063 $as_echo "$ac_header_preproc" >&6; }
29064
29065 # So?  What about this header?
29066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29067   yes:no: )
29068     { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29069 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29070     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29071 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29072     ac_header_preproc=yes
29073     ;;
29074   no:yes:* )
29075     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29076 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29077     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29078 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29079     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29080 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29081     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29082 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29083     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29084 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29085     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29086 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29087     ( cat <<\_ASBOX
29088 ## ---------------------------------------- ##
29089 ## Report this to pgsql-bugs@postgresql.org ##
29090 ## ---------------------------------------- ##
29091 _ASBOX
29092      ) | sed "s/^/$as_me: WARNING:     /" >&2
29093     ;;
29094 esac
29095 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29096 $as_echo_n "checking for Python.h... " >&6; }
29097 if test "${ac_cv_header_Python_h+set}" = set; then
29098   $as_echo_n "(cached) " >&6
29099 else
29100   ac_cv_header_Python_h=$ac_header_preproc
29101 fi
29102 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29103 $as_echo "$ac_cv_header_Python_h" >&6; }
29104
29105 fi
29106 if test "x$ac_cv_header_Python_h" = x""yes; then
29107   :
29108 else
29109   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29110 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29111    { (exit 1); exit 1; }; }
29112 fi
29113
29114
29115   CPPFLAGS=$ac_save_CPPFLAGS
29116 fi
29117
29118 #
29119 # Check for DocBook and tools
29120 #
29121 for ac_prog in onsgmls nsgmls
29122 do
29123   # Extract the first word of "$ac_prog", so it can be a program name with args.
29124 set dummy $ac_prog; ac_word=$2
29125 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29126 $as_echo_n "checking for $ac_word... " >&6; }
29127 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29128   $as_echo_n "(cached) " >&6
29129 else
29130   if test -n "$NSGMLS"; then
29131   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29132 else
29133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29134 for as_dir in $PATH
29135 do
29136   IFS=$as_save_IFS
29137   test -z "$as_dir" && as_dir=.
29138   for ac_exec_ext in '' $ac_executable_extensions; do
29139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29140     ac_cv_prog_NSGMLS="$ac_prog"
29141     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29142     break 2
29143   fi
29144 done
29145 done
29146 IFS=$as_save_IFS
29147
29148 fi
29149 fi
29150 NSGMLS=$ac_cv_prog_NSGMLS
29151 if test -n "$NSGMLS"; then
29152   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29153 $as_echo "$NSGMLS" >&6; }
29154 else
29155   { $as_echo "$as_me:$LINENO: result: no" >&5
29156 $as_echo "no" >&6; }
29157 fi
29158
29159
29160   test -n "$NSGMLS" && break
29161 done
29162
29163 for ac_prog in openjade jade
29164 do
29165   # Extract the first word of "$ac_prog", so it can be a program name with args.
29166 set dummy $ac_prog; ac_word=$2
29167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29168 $as_echo_n "checking for $ac_word... " >&6; }
29169 if test "${ac_cv_prog_JADE+set}" = set; then
29170   $as_echo_n "(cached) " >&6
29171 else
29172   if test -n "$JADE"; then
29173   ac_cv_prog_JADE="$JADE" # Let the user override the test.
29174 else
29175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29176 for as_dir in $PATH
29177 do
29178   IFS=$as_save_IFS
29179   test -z "$as_dir" && as_dir=.
29180   for ac_exec_ext in '' $ac_executable_extensions; do
29181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29182     ac_cv_prog_JADE="$ac_prog"
29183     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29184     break 2
29185   fi
29186 done
29187 done
29188 IFS=$as_save_IFS
29189
29190 fi
29191 fi
29192 JADE=$ac_cv_prog_JADE
29193 if test -n "$JADE"; then
29194   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29195 $as_echo "$JADE" >&6; }
29196 else
29197   { $as_echo "$as_me:$LINENO: result: no" >&5
29198 $as_echo "no" >&6; }
29199 fi
29200
29201
29202   test -n "$JADE" && break
29203 done
29204
29205
29206 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29207 $as_echo_n "checking for DocBook V4.2... " >&6; }
29208 if test "${pgac_cv_check_docbook+set}" = set; then
29209   $as_echo_n "(cached) " >&6
29210 else
29211   cat >conftest.sgml <<EOF
29212 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29213 <book>
29214  <title>test</title>
29215  <chapter>
29216   <title>random</title>
29217    <sect1>
29218     <title>testsect</title>
29219     <para>text</para>
29220   </sect1>
29221  </chapter>
29222 </book>
29223 EOF
29224
29225 pgac_cv_check_docbook=no
29226
29227 if test -n "$NSGMLS"; then
29228   $NSGMLS -s conftest.sgml 1>&5 2>&1
29229   if test $? -eq 0; then
29230     pgac_cv_check_docbook=yes
29231   fi
29232 fi
29233 rm -f conftest.sgml
29234 fi
29235 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29236 $as_echo "$pgac_cv_check_docbook" >&6; }
29237
29238 have_docbook=$pgac_cv_check_docbook
29239
29240
29241 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29242 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29243 if test "${pgac_cv_path_stylesheets+set}" = set; then
29244   $as_echo_n "(cached) " >&6
29245 else
29246   if test -n "$DOCBOOKSTYLE"; then
29247   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29248 else
29249   for pgac_prefix in /usr /usr/local /opt /sw; do
29250     for pgac_infix in share lib; do
29251       for pgac_postfix in \
29252         sgml/stylesheets/nwalsh-modular \
29253         sgml/stylesheets/docbook \
29254         sgml/stylesheets/dsssl/docbook \
29255         sgml/docbook-dsssl \
29256         sgml/docbook/dsssl/modular \
29257         sgml/docbook/stylesheet/dsssl/modular \
29258         sgml/docbook/dsssl-stylesheets \
29259         sgml/dsssl/docbook-dsssl-nwalsh
29260       do
29261         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29262         if test -r "$pgac_candidate/html/docbook.dsl" \
29263            && test -r "$pgac_candidate/print/docbook.dsl"
29264         then
29265           pgac_cv_path_stylesheets=$pgac_candidate
29266           break 3
29267         fi
29268       done
29269     done
29270   done
29271 fi
29272 fi
29273
29274 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29275
29276 if test -n "$DOCBOOKSTYLE"; then
29277   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29278 $as_echo "$DOCBOOKSTYLE" >&6; }
29279 else
29280   { $as_echo "$as_me:$LINENO: result: no" >&5
29281 $as_echo "no" >&6; }
29282 fi
29283 if test -n "$DOCBOOKSTYLE"; then
29284   for ac_prog in collateindex.pl
29285 do
29286   # Extract the first word of "$ac_prog", so it can be a program name with args.
29287 set dummy $ac_prog; ac_word=$2
29288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29289 $as_echo_n "checking for $ac_word... " >&6; }
29290 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29291   $as_echo_n "(cached) " >&6
29292 else
29293   case $COLLATEINDEX in
29294   [\\/]* | ?:[\\/]*)
29295   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29296   ;;
29297   *)
29298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29299 for as_dir in $DOCBOOKSTYLE/bin $PATH
29300 do
29301   IFS=$as_save_IFS
29302   test -z "$as_dir" && as_dir=.
29303   for ac_exec_ext in '' $ac_executable_extensions; do
29304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29305     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29306     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29307     break 2
29308   fi
29309 done
29310 done
29311 IFS=$as_save_IFS
29312
29313   ;;
29314 esac
29315 fi
29316 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29317 if test -n "$COLLATEINDEX"; then
29318   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29319 $as_echo "$COLLATEINDEX" >&6; }
29320 else
29321   { $as_echo "$as_me:$LINENO: result: no" >&5
29322 $as_echo "no" >&6; }
29323 fi
29324
29325
29326   test -n "$COLLATEINDEX" && break
29327 done
29328
29329 else
29330   for ac_prog in collateindex.pl
29331 do
29332   # Extract the first word of "$ac_prog", so it can be a program name with args.
29333 set dummy $ac_prog; ac_word=$2
29334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29335 $as_echo_n "checking for $ac_word... " >&6; }
29336 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29337   $as_echo_n "(cached) " >&6
29338 else
29339   case $COLLATEINDEX in
29340   [\\/]* | ?:[\\/]*)
29341   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29342   ;;
29343   *)
29344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29345 for as_dir in $PATH
29346 do
29347   IFS=$as_save_IFS
29348   test -z "$as_dir" && as_dir=.
29349   for ac_exec_ext in '' $ac_executable_extensions; do
29350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29351     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29352     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29353     break 2
29354   fi
29355 done
29356 done
29357 IFS=$as_save_IFS
29358
29359   ;;
29360 esac
29361 fi
29362 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29363 if test -n "$COLLATEINDEX"; then
29364   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29365 $as_echo "$COLLATEINDEX" >&6; }
29366 else
29367   { $as_echo "$as_me:$LINENO: result: no" >&5
29368 $as_echo "no" >&6; }
29369 fi
29370
29371
29372   test -n "$COLLATEINDEX" && break
29373 done
29374
29375 fi
29376 for ac_prog in xsltproc
29377 do
29378   # Extract the first word of "$ac_prog", so it can be a program name with args.
29379 set dummy $ac_prog; ac_word=$2
29380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29381 $as_echo_n "checking for $ac_word... " >&6; }
29382 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29383   $as_echo_n "(cached) " >&6
29384 else
29385   if test -n "$XSLTPROC"; then
29386   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29387 else
29388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29389 for as_dir in $PATH
29390 do
29391   IFS=$as_save_IFS
29392   test -z "$as_dir" && as_dir=.
29393   for ac_exec_ext in '' $ac_executable_extensions; do
29394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29395     ac_cv_prog_XSLTPROC="$ac_prog"
29396     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29397     break 2
29398   fi
29399 done
29400 done
29401 IFS=$as_save_IFS
29402
29403 fi
29404 fi
29405 XSLTPROC=$ac_cv_prog_XSLTPROC
29406 if test -n "$XSLTPROC"; then
29407   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29408 $as_echo "$XSLTPROC" >&6; }
29409 else
29410   { $as_echo "$as_me:$LINENO: result: no" >&5
29411 $as_echo "no" >&6; }
29412 fi
29413
29414
29415   test -n "$XSLTPROC" && break
29416 done
29417
29418 for ac_prog in osx sgml2xml sx
29419 do
29420   # Extract the first word of "$ac_prog", so it can be a program name with args.
29421 set dummy $ac_prog; ac_word=$2
29422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29423 $as_echo_n "checking for $ac_word... " >&6; }
29424 if test "${ac_cv_prog_OSX+set}" = set; then
29425   $as_echo_n "(cached) " >&6
29426 else
29427   if test -n "$OSX"; then
29428   ac_cv_prog_OSX="$OSX" # Let the user override the test.
29429 else
29430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29431 for as_dir in $PATH
29432 do
29433   IFS=$as_save_IFS
29434   test -z "$as_dir" && as_dir=.
29435   for ac_exec_ext in '' $ac_executable_extensions; do
29436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29437     ac_cv_prog_OSX="$ac_prog"
29438     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29439     break 2
29440   fi
29441 done
29442 done
29443 IFS=$as_save_IFS
29444
29445 fi
29446 fi
29447 OSX=$ac_cv_prog_OSX
29448 if test -n "$OSX"; then
29449   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29450 $as_echo "$OSX" >&6; }
29451 else
29452   { $as_echo "$as_me:$LINENO: result: no" >&5
29453 $as_echo "no" >&6; }
29454 fi
29455
29456
29457   test -n "$OSX" && break
29458 done
29459
29460
29461 # Thread testing
29462
29463 # We have to run the thread test near the end so we have all our symbols
29464 # defined.  Cross compiling throws a warning.
29465 #
29466 if test "$enable_thread_safety" = yes; then
29467 if test "$PORTNAME" != "win32"
29468 then
29469 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29470 $as_echo_n "checking thread safety of required library functions... " >&6; }
29471
29472 _CFLAGS="$CFLAGS"
29473 _LIBS="$LIBS"
29474 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29475 LIBS="$LIBS $PTHREAD_LIBS"
29476 if test "$cross_compiling" = yes; then
29477   { $as_echo "$as_me:$LINENO: result: maybe" >&5
29478 $as_echo "maybe" >&6; }
29479   { $as_echo "$as_me:$LINENO: WARNING:
29480 *** Skipping thread test program because of cross-compile build.
29481 *** Run the program in src/test/thread on the target machine.
29482 " >&5
29483 $as_echo "$as_me: WARNING:
29484 *** Skipping thread test program because of cross-compile build.
29485 *** Run the program in src/test/thread on the target machine.
29486 " >&2;}
29487 else
29488   cat >conftest.$ac_ext <<_ACEOF
29489 /* confdefs.h.  */
29490 _ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h.  */
29494 #include "$srcdir/src/test/thread/thread_test.c"
29495 _ACEOF
29496 rm -f conftest$ac_exeext
29497 if { (ac_try="$ac_link"
29498 case "(($ac_try" in
29499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500   *) ac_try_echo=$ac_try;;
29501 esac
29502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29503 $as_echo "$ac_try_echo") >&5
29504   (eval "$ac_link") 2>&5
29505   ac_status=$?
29506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29508   { (case "(($ac_try" in
29509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510   *) ac_try_echo=$ac_try;;
29511 esac
29512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29513 $as_echo "$ac_try_echo") >&5
29514   (eval "$ac_try") 2>&5
29515   ac_status=$?
29516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); }; }; then
29518   { $as_echo "$as_me:$LINENO: result: yes" >&5
29519 $as_echo "yes" >&6; }
29520 else
29521   $as_echo "$as_me: program exited with status $ac_status" >&5
29522 $as_echo "$as_me: failed program was:" >&5
29523 sed 's/^/| /' conftest.$ac_ext >&5
29524
29525 ( exit $ac_status )
29526 { $as_echo "$as_me:$LINENO: result: no" >&5
29527 $as_echo "no" >&6; }
29528   { { $as_echo "$as_me:$LINENO: error: thread test program failed
29529 This platform is not thread-safe.  Check the file 'config.log' or compile
29530 and run src/test/thread/thread_test for the exact reason.
29531 Use --disable-thread-safety to disable thread safety." >&5
29532 $as_echo "$as_me: error: thread test program failed
29533 This platform is not thread-safe.  Check the file 'config.log' or compile
29534 and run src/test/thread/thread_test for the exact reason.
29535 Use --disable-thread-safety to disable thread safety." >&2;}
29536    { (exit 1); exit 1; }; }
29537 fi
29538 rm -rf conftest.dSYM
29539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29540 fi
29541
29542
29543 CFLAGS="$_CFLAGS"
29544 LIBS="$_LIBS"
29545 else
29546 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29547 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29548 fi
29549 fi
29550
29551 # If compiler will take -Wl,--as-needed (or various platform-specific
29552 # spellings thereof) then add that to LDFLAGS.  This is much easier than
29553 # trying to filter LIBS to the minimum for each executable.
29554 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29555 # libreadline; therefore we postpone testing it until we know what library
29556 # dependencies readline has.  The test code will try to link with $LIBS.
29557 if test "$with_readline" = yes; then
29558   link_test_func=readline
29559 else
29560   link_test_func=exit
29561 fi
29562
29563 if test "$PORTNAME" = "darwin"; then
29564   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29565 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29566 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29567   $as_echo_n "(cached) " >&6
29568 else
29569   pgac_save_LDFLAGS=$LDFLAGS
29570 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29571 if test "$cross_compiling" = yes; then
29572   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29573 else
29574   cat >conftest.$ac_ext <<_ACEOF
29575 /* confdefs.h.  */
29576 _ACEOF
29577 cat confdefs.h >>conftest.$ac_ext
29578 cat >>conftest.$ac_ext <<_ACEOF
29579 /* end confdefs.h.  */
29580 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29581 int
29582 main ()
29583 {
29584
29585   ;
29586   return 0;
29587 }
29588 _ACEOF
29589 rm -f conftest$ac_exeext
29590 if { (ac_try="$ac_link"
29591 case "(($ac_try" in
29592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593   *) ac_try_echo=$ac_try;;
29594 esac
29595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29596 $as_echo "$ac_try_echo") >&5
29597   (eval "$ac_link") 2>&5
29598   ac_status=$?
29599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29601   { (case "(($ac_try" in
29602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603   *) ac_try_echo=$ac_try;;
29604 esac
29605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29606 $as_echo "$ac_try_echo") >&5
29607   (eval "$ac_try") 2>&5
29608   ac_status=$?
29609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610   (exit $ac_status); }; }; then
29611   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29612 else
29613   $as_echo "$as_me: program exited with status $ac_status" >&5
29614 $as_echo "$as_me: failed program was:" >&5
29615 sed 's/^/| /' conftest.$ac_ext >&5
29616
29617 ( exit $ac_status )
29618 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29619 fi
29620 rm -rf conftest.dSYM
29621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29622 fi
29623
29624
29625 LDFLAGS="$pgac_save_LDFLAGS"
29626 fi
29627 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29628 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29629 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29630   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29631 fi
29632
29633 elif test "$PORTNAME" = "openbsd"; then
29634   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29635 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29636 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29637   $as_echo_n "(cached) " >&6
29638 else
29639   pgac_save_LDFLAGS=$LDFLAGS
29640 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29641 if test "$cross_compiling" = yes; then
29642   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29643 else
29644   cat >conftest.$ac_ext <<_ACEOF
29645 /* confdefs.h.  */
29646 _ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h.  */
29650 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29651 int
29652 main ()
29653 {
29654
29655   ;
29656   return 0;
29657 }
29658 _ACEOF
29659 rm -f conftest$ac_exeext
29660 if { (ac_try="$ac_link"
29661 case "(($ac_try" in
29662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663   *) ac_try_echo=$ac_try;;
29664 esac
29665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29666 $as_echo "$ac_try_echo") >&5
29667   (eval "$ac_link") 2>&5
29668   ac_status=$?
29669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29671   { (case "(($ac_try" in
29672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29673   *) ac_try_echo=$ac_try;;
29674 esac
29675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29676 $as_echo "$ac_try_echo") >&5
29677   (eval "$ac_try") 2>&5
29678   ac_status=$?
29679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680   (exit $ac_status); }; }; then
29681   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29682 else
29683   $as_echo "$as_me: program exited with status $ac_status" >&5
29684 $as_echo "$as_me: failed program was:" >&5
29685 sed 's/^/| /' conftest.$ac_ext >&5
29686
29687 ( exit $ac_status )
29688 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29689 fi
29690 rm -rf conftest.dSYM
29691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29692 fi
29693
29694
29695 LDFLAGS="$pgac_save_LDFLAGS"
29696 fi
29697 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29698 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29699 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29700   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29701 fi
29702
29703 else
29704   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29705 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29706 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29707   $as_echo_n "(cached) " >&6
29708 else
29709   pgac_save_LDFLAGS=$LDFLAGS
29710 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29711 if test "$cross_compiling" = yes; then
29712   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29713 else
29714   cat >conftest.$ac_ext <<_ACEOF
29715 /* confdefs.h.  */
29716 _ACEOF
29717 cat confdefs.h >>conftest.$ac_ext
29718 cat >>conftest.$ac_ext <<_ACEOF
29719 /* end confdefs.h.  */
29720 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29721 int
29722 main ()
29723 {
29724
29725   ;
29726   return 0;
29727 }
29728 _ACEOF
29729 rm -f conftest$ac_exeext
29730 if { (ac_try="$ac_link"
29731 case "(($ac_try" in
29732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29733   *) ac_try_echo=$ac_try;;
29734 esac
29735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29736 $as_echo "$ac_try_echo") >&5
29737   (eval "$ac_link") 2>&5
29738   ac_status=$?
29739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29741   { (case "(($ac_try" in
29742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29743   *) ac_try_echo=$ac_try;;
29744 esac
29745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29746 $as_echo "$ac_try_echo") >&5
29747   (eval "$ac_try") 2>&5
29748   ac_status=$?
29749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750   (exit $ac_status); }; }; then
29751   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29752 else
29753   $as_echo "$as_me: program exited with status $ac_status" >&5
29754 $as_echo "$as_me: failed program was:" >&5
29755 sed 's/^/| /' conftest.$ac_ext >&5
29756
29757 ( exit $ac_status )
29758 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29759 fi
29760 rm -rf conftest.dSYM
29761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29762 fi
29763
29764
29765 LDFLAGS="$pgac_save_LDFLAGS"
29766 fi
29767 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29768 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29769 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29770   LDFLAGS="$LDFLAGS -Wl,--as-needed"
29771 fi
29772
29773 fi
29774
29775 # Create compiler version string
29776 if test x"$GCC" = x"yes" ; then
29777   cc_string=`${CC} --version | sed q`
29778   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29779 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29780   cc_string=`${CC} -V 2>&1 | sed q`
29781 else
29782   cc_string=$CC
29783 fi
29784
29785
29786 cat >>confdefs.h <<_ACEOF
29787 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29788 _ACEOF
29789
29790
29791 # Supply a numeric version string for use by 3rd party add-ons
29792 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29793 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29794 tr '.' '        ' |
29795 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29796
29797 cat >>confdefs.h <<_ACEOF
29798 #define PG_VERSION_NUM $PG_VERSION_NUM
29799 _ACEOF
29800
29801
29802
29803 # Begin output steps
29804
29805 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29806 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29807 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29808 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29809 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29810 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29811 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29812 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29813
29814 # prepare build tree if outside source tree
29815 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29816 # Note 2: /bin/pwd might be better than shell's built-in at getting
29817 #         a symlink-free name.
29818 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29819   vpath_build=no
29820 else
29821   vpath_build=yes
29822   if test "$no_create" != yes; then
29823     $as_echo_n "preparing build tree... " >&6
29824     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29825     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29826       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29827 $as_echo "$as_me: error: failed" >&2;}
29828    { (exit 1); exit 1; }; }
29829     { $as_echo "$as_me:$LINENO: result: done" >&5
29830 $as_echo "done" >&6; }
29831   fi
29832 fi
29833
29834
29835
29836 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29837
29838
29839 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}"
29840
29841
29842 if test "$PORTNAME" = "win32"; then
29843 ac_config_commands="$ac_config_commands check_win32_symlinks"
29844
29845 fi
29846
29847 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29848
29849
29850 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29851
29852
29853 cat >confcache <<\_ACEOF
29854 # This file is a shell script that caches the results of configure
29855 # tests run on this system so they can be shared between configure
29856 # scripts and configure runs, see configure's option --config-cache.
29857 # It is not useful on other systems.  If it contains results you don't
29858 # want to keep, you may remove or edit it.
29859 #
29860 # config.status only pays attention to the cache file if you give it
29861 # the --recheck option to rerun configure.
29862 #
29863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29865 # following values.
29866
29867 _ACEOF
29868
29869 # The following way of writing the cache mishandles newlines in values,
29870 # but we know of no workaround that is simple, portable, and efficient.
29871 # So, we kill variables containing newlines.
29872 # Ultrix sh set writes to stderr and can't be redirected directly,
29873 # and sets the high bit in the cache file unless we assign to the vars.
29874 (
29875   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29876     eval ac_val=\$$ac_var
29877     case $ac_val in #(
29878     *${as_nl}*)
29879       case $ac_var in #(
29880       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29881 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29882       esac
29883       case $ac_var in #(
29884       _ | IFS | as_nl) ;; #(
29885       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29886       *) $as_unset $ac_var ;;
29887       esac ;;
29888     esac
29889   done
29890
29891   (set) 2>&1 |
29892     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29893     *${as_nl}ac_space=\ *)
29894       # `set' does not quote correctly, so add quotes (double-quote
29895       # substitution turns \\\\ into \\, and sed turns \\ into \).
29896       sed -n \
29897         "s/'/'\\\\''/g;
29898           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29899       ;; #(
29900     *)
29901       # `set' quotes correctly as required by POSIX, so do not add quotes.
29902       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29903       ;;
29904     esac |
29905     sort
29906 ) |
29907   sed '
29908      /^ac_cv_env_/b end
29909      t clear
29910      :clear
29911      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29912      t end
29913      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29914      :end' >>confcache
29915 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29916   if test -w "$cache_file"; then
29917     test "x$cache_file" != "x/dev/null" &&
29918       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29919 $as_echo "$as_me: updating cache $cache_file" >&6;}
29920     cat confcache >$cache_file
29921   else
29922     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29923 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29924   fi
29925 fi
29926 rm -f confcache
29927
29928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29929 # Let make expand exec_prefix.
29930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29931
29932 DEFS=-DHAVE_CONFIG_H
29933
29934 ac_libobjs=
29935 ac_ltlibobjs=
29936 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29937   # 1. Remove the extension, and $U if already installed.
29938   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29939   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29940   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29941   #    will be set to the directory where LIBOBJS objects are built.
29942   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29943   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29944 done
29945 LIBOBJS=$ac_libobjs
29946
29947 LTLIBOBJS=$ac_ltlibobjs
29948
29949
29950
29951
29952 : ${CONFIG_STATUS=./config.status}
29953 ac_write_fail=0
29954 ac_clean_files_save=$ac_clean_files
29955 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29956 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29957 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29958 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29959 #! $SHELL
29960 # Generated by $as_me.
29961 # Run this file to recreate the current configuration.
29962 # Compiler output produced by configure, useful for debugging
29963 # configure, is in config.log if it exists.
29964
29965 debug=false
29966 ac_cs_recheck=false
29967 ac_cs_silent=false
29968 SHELL=\${CONFIG_SHELL-$SHELL}
29969 _ACEOF
29970
29971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29972 ## --------------------- ##
29973 ## M4sh Initialization.  ##
29974 ## --------------------- ##
29975
29976 # Be more Bourne compatible
29977 DUALCASE=1; export DUALCASE # for MKS sh
29978 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29979   emulate sh
29980   NULLCMD=:
29981   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29982   # is contrary to our usage.  Disable this feature.
29983   alias -g '${1+"$@"}'='"$@"'
29984   setopt NO_GLOB_SUBST
29985 else
29986   case `(set -o) 2>/dev/null` in
29987   *posix*) set -o posix ;;
29988 esac
29989
29990 fi
29991
29992
29993
29994
29995 # PATH needs CR
29996 # Avoid depending upon Character Ranges.
29997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30000 as_cr_digits='0123456789'
30001 as_cr_alnum=$as_cr_Letters$as_cr_digits
30002
30003 as_nl='
30004 '
30005 export as_nl
30006 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30007 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30009 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30010 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30011   as_echo='printf %s\n'
30012   as_echo_n='printf %s'
30013 else
30014   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30015     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30016     as_echo_n='/usr/ucb/echo -n'
30017   else
30018     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30019     as_echo_n_body='eval
30020       arg=$1;
30021       case $arg in
30022       *"$as_nl"*)
30023         expr "X$arg" : "X\\(.*\\)$as_nl";
30024         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30025       esac;
30026       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30027     '
30028     export as_echo_n_body
30029     as_echo_n='sh -c $as_echo_n_body as_echo'
30030   fi
30031   export as_echo_body
30032   as_echo='sh -c $as_echo_body as_echo'
30033 fi
30034
30035 # The user is always right.
30036 if test "${PATH_SEPARATOR+set}" != set; then
30037   PATH_SEPARATOR=:
30038   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30039     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30040       PATH_SEPARATOR=';'
30041   }
30042 fi
30043
30044 # Support unset when possible.
30045 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30046   as_unset=unset
30047 else
30048   as_unset=false
30049 fi
30050
30051
30052 # IFS
30053 # We need space, tab and new line, in precisely that order.  Quoting is
30054 # there to prevent editors from complaining about space-tab.
30055 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30056 # splitting by setting IFS to empty value.)
30057 IFS=" ""        $as_nl"
30058
30059 # Find who we are.  Look in the path if we contain no directory separator.
30060 case $0 in
30061   *[\\/]* ) as_myself=$0 ;;
30062   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30063 for as_dir in $PATH
30064 do
30065   IFS=$as_save_IFS
30066   test -z "$as_dir" && as_dir=.
30067   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30068 done
30069 IFS=$as_save_IFS
30070
30071      ;;
30072 esac
30073 # We did not find ourselves, most probably we were run as `sh COMMAND'
30074 # in which case we are not to be found in the path.
30075 if test "x$as_myself" = x; then
30076   as_myself=$0
30077 fi
30078 if test ! -f "$as_myself"; then
30079   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30080   { (exit 1); exit 1; }
30081 fi
30082
30083 # Work around bugs in pre-3.0 UWIN ksh.
30084 for as_var in ENV MAIL MAILPATH
30085 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30086 done
30087 PS1='$ '
30088 PS2='> '
30089 PS4='+ '
30090
30091 # NLS nuisances.
30092 LC_ALL=C
30093 export LC_ALL
30094 LANGUAGE=C
30095 export LANGUAGE
30096
30097 # Required to use basename.
30098 if expr a : '\(a\)' >/dev/null 2>&1 &&
30099    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30100   as_expr=expr
30101 else
30102   as_expr=false
30103 fi
30104
30105 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30106   as_basename=basename
30107 else
30108   as_basename=false
30109 fi
30110
30111
30112 # Name of the executable.
30113 as_me=`$as_basename -- "$0" ||
30114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30115          X"$0" : 'X\(//\)$' \| \
30116          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30117 $as_echo X/"$0" |
30118     sed '/^.*\/\([^/][^/]*\)\/*$/{
30119             s//\1/
30120             q
30121           }
30122           /^X\/\(\/\/\)$/{
30123             s//\1/
30124             q
30125           }
30126           /^X\/\(\/\).*/{
30127             s//\1/
30128             q
30129           }
30130           s/.*/./; q'`
30131
30132 # CDPATH.
30133 $as_unset CDPATH
30134
30135
30136
30137   as_lineno_1=$LINENO
30138   as_lineno_2=$LINENO
30139   test "x$as_lineno_1" != "x$as_lineno_2" &&
30140   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30141
30142   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30143   # uniformly replaced by the line number.  The first 'sed' inserts a
30144   # line-number line after each line using $LINENO; the second 'sed'
30145   # does the real work.  The second script uses 'N' to pair each
30146   # line-number line with the line containing $LINENO, and appends
30147   # trailing '-' during substitution so that $LINENO is not a special
30148   # case at line end.
30149   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30150   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30151   # E. McMahon (1931-1989) for sed's syntax.  :-)
30152   sed -n '
30153     p
30154     /[$]LINENO/=
30155   ' <$as_myself |
30156     sed '
30157       s/[$]LINENO.*/&-/
30158       t lineno
30159       b
30160       :lineno
30161       N
30162       :loop
30163       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30164       t loop
30165       s/-\n.*//
30166     ' >$as_me.lineno &&
30167   chmod +x "$as_me.lineno" ||
30168     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30169    { (exit 1); exit 1; }; }
30170
30171   # Don't try to exec as it changes $[0], causing all sort of problems
30172   # (the dirname of $[0] is not the place where we might find the
30173   # original and so on.  Autoconf is especially sensitive to this).
30174   . "./$as_me.lineno"
30175   # Exit status is that of the last command.
30176   exit
30177 }
30178
30179
30180 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30181   as_dirname=dirname
30182 else
30183   as_dirname=false
30184 fi
30185
30186 ECHO_C= ECHO_N= ECHO_T=
30187 case `echo -n x` in
30188 -n*)
30189   case `echo 'x\c'` in
30190   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30191   *)   ECHO_C='\c';;
30192   esac;;
30193 *)
30194   ECHO_N='-n';;
30195 esac
30196 if expr a : '\(a\)' >/dev/null 2>&1 &&
30197    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30198   as_expr=expr
30199 else
30200   as_expr=false
30201 fi
30202
30203 rm -f conf$$ conf$$.exe conf$$.file
30204 if test -d conf$$.dir; then
30205   rm -f conf$$.dir/conf$$.file
30206 else
30207   rm -f conf$$.dir
30208   mkdir conf$$.dir 2>/dev/null
30209 fi
30210 if (echo >conf$$.file) 2>/dev/null; then
30211   if ln -s conf$$.file conf$$ 2>/dev/null; then
30212     as_ln_s='ln -s'
30213     # ... but there are two gotchas:
30214     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30215     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30216     # In both cases, we have to default to `cp -p'.
30217     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30218       as_ln_s='cp -p'
30219   elif ln conf$$.file conf$$ 2>/dev/null; then
30220     as_ln_s=ln
30221   else
30222     as_ln_s='cp -p'
30223   fi
30224 else
30225   as_ln_s='cp -p'
30226 fi
30227 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30228 rmdir conf$$.dir 2>/dev/null
30229
30230 if mkdir -p . 2>/dev/null; then
30231   as_mkdir_p=:
30232 else
30233   test -d ./-p && rmdir ./-p
30234   as_mkdir_p=false
30235 fi
30236
30237 if test -x / >/dev/null 2>&1; then
30238   as_test_x='test -x'
30239 else
30240   if ls -dL / >/dev/null 2>&1; then
30241     as_ls_L_option=L
30242   else
30243     as_ls_L_option=
30244   fi
30245   as_test_x='
30246     eval sh -c '\''
30247       if test -d "$1"; then
30248         test -d "$1/.";
30249       else
30250         case $1 in
30251         -*)set "./$1";;
30252         esac;
30253         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30254         ???[sx]*):;;*)false;;esac;fi
30255     '\'' sh
30256   '
30257 fi
30258 as_executable_p=$as_test_x
30259
30260 # Sed expression to map a string onto a valid CPP name.
30261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30262
30263 # Sed expression to map a string onto a valid variable name.
30264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30265
30266
30267 exec 6>&1
30268
30269 # Save the log message, to keep $[0] and so on meaningful, and to
30270 # report actual input values of CONFIG_FILES etc. instead of their
30271 # values after options handling.
30272 ac_log="
30273 This file was extended by PostgreSQL $as_me 9.2devel, which was
30274 generated by GNU Autoconf 2.63.  Invocation command line was
30275
30276   CONFIG_FILES    = $CONFIG_FILES
30277   CONFIG_HEADERS  = $CONFIG_HEADERS
30278   CONFIG_LINKS    = $CONFIG_LINKS
30279   CONFIG_COMMANDS = $CONFIG_COMMANDS
30280   $ $0 $@
30281
30282 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30283 "
30284
30285 _ACEOF
30286
30287 case $ac_config_files in *"
30288 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30289 esac
30290
30291 case $ac_config_headers in *"
30292 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30293 esac
30294
30295
30296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30297 # Files that config.status was made for.
30298 config_files="$ac_config_files"
30299 config_headers="$ac_config_headers"
30300 config_links="$ac_config_links"
30301 config_commands="$ac_config_commands"
30302
30303 _ACEOF
30304
30305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30306 ac_cs_usage="\
30307 \`$as_me' instantiates files from templates according to the
30308 current configuration.
30309
30310 Usage: $0 [OPTION]... [FILE]...
30311
30312   -h, --help       print this help, then exit
30313   -V, --version    print version number and configuration settings, then exit
30314   -q, --quiet, --silent
30315                    do not print progress messages
30316   -d, --debug      don't remove temporary files
30317       --recheck    update $as_me by reconfiguring in the same conditions
30318       --file=FILE[:TEMPLATE]
30319                    instantiate the configuration file FILE
30320       --header=FILE[:TEMPLATE]
30321                    instantiate the configuration header FILE
30322
30323 Configuration files:
30324 $config_files
30325
30326 Configuration headers:
30327 $config_headers
30328
30329 Configuration links:
30330 $config_links
30331
30332 Configuration commands:
30333 $config_commands
30334
30335 Report bugs to <bug-autoconf@gnu.org>."
30336
30337 _ACEOF
30338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30339 ac_cs_version="\\
30340 PostgreSQL config.status 9.2devel
30341 configured by $0, generated by GNU Autoconf 2.63,
30342   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30343
30344 Copyright (C) 2008 Free Software Foundation, Inc.
30345 This config.status script is free software; the Free Software Foundation
30346 gives unlimited permission to copy, distribute and modify it."
30347
30348 ac_pwd='$ac_pwd'
30349 srcdir='$srcdir'
30350 MKDIR_P='$MKDIR_P'
30351 AWK='$AWK'
30352 test -n "\$AWK" || AWK=awk
30353 _ACEOF
30354
30355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30356 # The default lists apply if the user does not specify any file.
30357 ac_need_defaults=:
30358 while test $# != 0
30359 do
30360   case $1 in
30361   --*=*)
30362     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30363     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30364     ac_shift=:
30365     ;;
30366   *)
30367     ac_option=$1
30368     ac_optarg=$2
30369     ac_shift=shift
30370     ;;
30371   esac
30372
30373   case $ac_option in
30374   # Handling of the options.
30375   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30376     ac_cs_recheck=: ;;
30377   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30378     $as_echo "$ac_cs_version"; exit ;;
30379   --debug | --debu | --deb | --de | --d | -d )
30380     debug=: ;;
30381   --file | --fil | --fi | --f )
30382     $ac_shift
30383     case $ac_optarg in
30384     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30385     esac
30386     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30387     ac_need_defaults=false;;
30388   --header | --heade | --head | --hea )
30389     $ac_shift
30390     case $ac_optarg in
30391     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30392     esac
30393     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30394     ac_need_defaults=false;;
30395   --he | --h)
30396     # Conflict between --help and --header
30397     { $as_echo "$as_me: error: ambiguous option: $1
30398 Try \`$0 --help' for more information." >&2
30399    { (exit 1); exit 1; }; };;
30400   --help | --hel | -h )
30401     $as_echo "$ac_cs_usage"; exit ;;
30402   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30403   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30404     ac_cs_silent=: ;;
30405
30406   # This is an error.
30407   -*) { $as_echo "$as_me: error: unrecognized option: $1
30408 Try \`$0 --help' for more information." >&2
30409    { (exit 1); exit 1; }; } ;;
30410
30411   *) ac_config_targets="$ac_config_targets $1"
30412      ac_need_defaults=false ;;
30413
30414   esac
30415   shift
30416 done
30417
30418 ac_configure_extra_args=
30419
30420 if $ac_cs_silent; then
30421   exec 6>/dev/null
30422   ac_configure_extra_args="$ac_configure_extra_args --silent"
30423 fi
30424
30425 _ACEOF
30426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30427 if \$ac_cs_recheck; then
30428   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30429   shift
30430   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30431   CONFIG_SHELL='$SHELL'
30432   export CONFIG_SHELL
30433   exec "\$@"
30434 fi
30435
30436 _ACEOF
30437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30438 exec 5>>config.log
30439 {
30440   echo
30441   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30442 ## Running $as_me. ##
30443 _ASBOX
30444   $as_echo "$ac_log"
30445 } >&5
30446
30447 _ACEOF
30448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30449 _ACEOF
30450
30451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30452
30453 # Handling of arguments.
30454 for ac_config_target in $ac_config_targets
30455 do
30456   case $ac_config_target in
30457     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30458     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30459     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30460     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30461     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30462     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30463     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30464     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30465     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30466     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30467     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30468     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30469     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30470
30471   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30472 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30473    { (exit 1); exit 1; }; };;
30474   esac
30475 done
30476
30477
30478 # If the user did not use the arguments to specify the items to instantiate,
30479 # then the envvar interface is used.  Set only those that are not.
30480 # We use the long form for the default assignment because of an extremely
30481 # bizarre bug on SunOS 4.1.3.
30482 if $ac_need_defaults; then
30483   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30484   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30485   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30486   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30487 fi
30488
30489 # Have a temporary directory for convenience.  Make it in the build tree
30490 # simply because there is no reason against having it here, and in addition,
30491 # creating and moving files from /tmp can sometimes cause problems.
30492 # Hook for its removal unless debugging.
30493 # Note that there is a small window in which the directory will not be cleaned:
30494 # after its creation but before its name has been assigned to `$tmp'.
30495 $debug ||
30496 {
30497   tmp=
30498   trap 'exit_status=$?
30499   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30500 ' 0
30501   trap '{ (exit 1); exit 1; }' 1 2 13 15
30502 }
30503 # Create a (secure) tmp directory for tmp files.
30504
30505 {
30506   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30507   test -n "$tmp" && test -d "$tmp"
30508 }  ||
30509 {
30510   tmp=./conf$$-$RANDOM
30511   (umask 077 && mkdir "$tmp")
30512 } ||
30513 {
30514    $as_echo "$as_me: cannot create a temporary directory in ." >&2
30515    { (exit 1); exit 1; }
30516 }
30517
30518 # Set up the scripts for CONFIG_FILES section.
30519 # No need to generate them if there are no CONFIG_FILES.
30520 # This happens for instance with `./config.status config.h'.
30521 if test -n "$CONFIG_FILES"; then
30522
30523
30524 ac_cr='\r'
30525 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30526 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30527   ac_cs_awk_cr='\\r'
30528 else
30529   ac_cs_awk_cr=$ac_cr
30530 fi
30531
30532 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30533 _ACEOF
30534
30535
30536 {
30537   echo "cat >conf$$subs.awk <<_ACEOF" &&
30538   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30539   echo "_ACEOF"
30540 } >conf$$subs.sh ||
30541   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30542 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30543    { (exit 1); exit 1; }; }
30544 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30545 ac_delim='%!_!# '
30546 for ac_last_try in false false false false false :; do
30547   . ./conf$$subs.sh ||
30548     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30549 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30550    { (exit 1); exit 1; }; }
30551
30552   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30553   if test $ac_delim_n = $ac_delim_num; then
30554     break
30555   elif $ac_last_try; then
30556     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30557 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30558    { (exit 1); exit 1; }; }
30559   else
30560     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30561   fi
30562 done
30563 rm -f conf$$subs.sh
30564
30565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30566 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30567 _ACEOF
30568 sed -n '
30569 h
30570 s/^/S["/; s/!.*/"]=/
30571 p
30572 g
30573 s/^[^!]*!//
30574 :repl
30575 t repl
30576 s/'"$ac_delim"'$//
30577 t delim
30578 :nl
30579 h
30580 s/\(.\{148\}\).*/\1/
30581 t more1
30582 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30583 p
30584 n
30585 b repl
30586 :more1
30587 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30588 p
30589 g
30590 s/.\{148\}//
30591 t nl
30592 :delim
30593 h
30594 s/\(.\{148\}\).*/\1/
30595 t more2
30596 s/["\\]/\\&/g; s/^/"/; s/$/"/
30597 p
30598 b
30599 :more2
30600 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30601 p
30602 g
30603 s/.\{148\}//
30604 t delim
30605 ' <conf$$subs.awk | sed '
30606 /^[^""]/{
30607   N
30608   s/\n//
30609 }
30610 ' >>$CONFIG_STATUS || ac_write_fail=1
30611 rm -f conf$$subs.awk
30612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30613 _ACAWK
30614 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30615   for (key in S) S_is_set[key] = 1
30616   FS = "\a"
30617
30618 }
30619 {
30620   line = $ 0
30621   nfields = split(line, field, "@")
30622   substed = 0
30623   len = length(field[1])
30624   for (i = 2; i < nfields; i++) {
30625     key = field[i]
30626     keylen = length(key)
30627     if (S_is_set[key]) {
30628       value = S[key]
30629       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30630       len += length(value) + length(field[++i])
30631       substed = 1
30632     } else
30633       len += 1 + keylen
30634   }
30635
30636   print line
30637 }
30638
30639 _ACAWK
30640 _ACEOF
30641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30642 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30643   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30644 else
30645   cat
30646 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30647   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30648 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30649    { (exit 1); exit 1; }; }
30650 _ACEOF
30651
30652 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30653 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30654 # trailing colons and then remove the whole line if VPATH becomes empty
30655 # (actually we leave an empty line to preserve line numbers).
30656 if test "x$srcdir" = x.; then
30657   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30658 s/:*\$(srcdir):*/:/
30659 s/:*\${srcdir}:*/:/
30660 s/:*@srcdir@:*/:/
30661 s/^\([^=]*=[     ]*\):*/\1/
30662 s/:*$//
30663 s/^[^=]*=[       ]*$//
30664 }'
30665 fi
30666
30667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30668 fi # test -n "$CONFIG_FILES"
30669
30670 # Set up the scripts for CONFIG_HEADERS section.
30671 # No need to generate them if there are no CONFIG_HEADERS.
30672 # This happens for instance with `./config.status Makefile'.
30673 if test -n "$CONFIG_HEADERS"; then
30674 cat >"$tmp/defines.awk" <<\_ACAWK ||
30675 BEGIN {
30676 _ACEOF
30677
30678 # Transform confdefs.h into an awk script `defines.awk', embedded as
30679 # here-document in config.status, that substitutes the proper values into
30680 # config.h.in to produce config.h.
30681
30682 # Create a delimiter string that does not exist in confdefs.h, to ease
30683 # handling of long lines.
30684 ac_delim='%!_!# '
30685 for ac_last_try in false false :; do
30686   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30687   if test -z "$ac_t"; then
30688     break
30689   elif $ac_last_try; then
30690     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30691 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30692    { (exit 1); exit 1; }; }
30693   else
30694     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30695   fi
30696 done
30697
30698 # For the awk script, D is an array of macro values keyed by name,
30699 # likewise P contains macro parameters if any.  Preserve backslash
30700 # newline sequences.
30701
30702 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30703 sed -n '
30704 s/.\{148\}/&'"$ac_delim"'/g
30705 t rset
30706 :rset
30707 s/^[     ]*#[    ]*define[       ][      ]*/ /
30708 t def
30709 d
30710 :def
30711 s/\\$//
30712 t bsnl
30713 s/["\\]/\\&/g
30714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30715 D["\1"]=" \3"/p
30716 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30717 d
30718 :bsnl
30719 s/["\\]/\\&/g
30720 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30721 D["\1"]=" \3\\\\\\n"\\/p
30722 t cont
30723 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30724 t cont
30725 d
30726 :cont
30727 n
30728 s/.\{148\}/&'"$ac_delim"'/g
30729 t clear
30730 :clear
30731 s/\\$//
30732 t bsnlc
30733 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30734 d
30735 :bsnlc
30736 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30737 b cont
30738 ' <confdefs.h | sed '
30739 s/'"$ac_delim"'/"\\\
30740 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30741
30742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30743   for (key in D) D_is_set[key] = 1
30744   FS = "\a"
30745 }
30746 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30747   line = \$ 0
30748   split(line, arg, " ")
30749   if (arg[1] == "#") {
30750     defundef = arg[2]
30751     mac1 = arg[3]
30752   } else {
30753     defundef = substr(arg[1], 2)
30754     mac1 = arg[2]
30755   }
30756   split(mac1, mac2, "(") #)
30757   macro = mac2[1]
30758   prefix = substr(line, 1, index(line, defundef) - 1)
30759   if (D_is_set[macro]) {
30760     # Preserve the white space surrounding the "#".
30761     print prefix "define", macro P[macro] D[macro]
30762     next
30763   } else {
30764     # Replace #undef with comments.  This is necessary, for example,
30765     # in the case of _POSIX_SOURCE, which is predefined and required
30766     # on some systems where configure will not decide to define it.
30767     if (defundef == "undef") {
30768       print "/*", prefix defundef, macro, "*/"
30769       next
30770     }
30771   }
30772 }
30773 { print }
30774 _ACAWK
30775 _ACEOF
30776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30777   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30778 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30779    { (exit 1); exit 1; }; }
30780 fi # test -n "$CONFIG_HEADERS"
30781
30782
30783 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30784 shift
30785 for ac_tag
30786 do
30787   case $ac_tag in
30788   :[FHLC]) ac_mode=$ac_tag; continue;;
30789   esac
30790   case $ac_mode$ac_tag in
30791   :[FHL]*:*);;
30792   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30793 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30794    { (exit 1); exit 1; }; };;
30795   :[FH]-) ac_tag=-:-;;
30796   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30797   esac
30798   ac_save_IFS=$IFS
30799   IFS=:
30800   set x $ac_tag
30801   IFS=$ac_save_IFS
30802   shift
30803   ac_file=$1
30804   shift
30805
30806   case $ac_mode in
30807   :L) ac_source=$1;;
30808   :[FH])
30809     ac_file_inputs=
30810     for ac_f
30811     do
30812       case $ac_f in
30813       -) ac_f="$tmp/stdin";;
30814       *) # Look for the file first in the build tree, then in the source tree
30815          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30816          # because $ac_f cannot contain `:'.
30817          test -f "$ac_f" ||
30818            case $ac_f in
30819            [\\/$]*) false;;
30820            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30821            esac ||
30822            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30823 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30824    { (exit 1); exit 1; }; };;
30825       esac
30826       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30827       ac_file_inputs="$ac_file_inputs '$ac_f'"
30828     done
30829
30830     # Let's still pretend it is `configure' which instantiates (i.e., don't
30831     # use $as_me), people would be surprised to read:
30832     #    /* config.h.  Generated by config.status.  */
30833     configure_input='Generated from '`
30834           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30835         `' by configure.'
30836     if test x"$ac_file" != x-; then
30837       configure_input="$ac_file.  $configure_input"
30838       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30839 $as_echo "$as_me: creating $ac_file" >&6;}
30840     fi
30841     # Neutralize special characters interpreted by sed in replacement strings.
30842     case $configure_input in #(
30843     *\&* | *\|* | *\\* )
30844        ac_sed_conf_input=`$as_echo "$configure_input" |
30845        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30846     *) ac_sed_conf_input=$configure_input;;
30847     esac
30848
30849     case $ac_tag in
30850     *:-:* | *:-) cat >"$tmp/stdin" \
30851       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30852 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30853    { (exit 1); exit 1; }; } ;;
30854     esac
30855     ;;
30856   esac
30857
30858   ac_dir=`$as_dirname -- "$ac_file" ||
30859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30860          X"$ac_file" : 'X\(//\)[^/]' \| \
30861          X"$ac_file" : 'X\(//\)$' \| \
30862          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30863 $as_echo X"$ac_file" |
30864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30865             s//\1/
30866             q
30867           }
30868           /^X\(\/\/\)[^/].*/{
30869             s//\1/
30870             q
30871           }
30872           /^X\(\/\/\)$/{
30873             s//\1/
30874             q
30875           }
30876           /^X\(\/\).*/{
30877             s//\1/
30878             q
30879           }
30880           s/.*/./; q'`
30881   { as_dir="$ac_dir"
30882   case $as_dir in #(
30883   -*) as_dir=./$as_dir;;
30884   esac
30885   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30886     as_dirs=
30887     while :; do
30888       case $as_dir in #(
30889       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30890       *) as_qdir=$as_dir;;
30891       esac
30892       as_dirs="'$as_qdir' $as_dirs"
30893       as_dir=`$as_dirname -- "$as_dir" ||
30894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30895          X"$as_dir" : 'X\(//\)[^/]' \| \
30896          X"$as_dir" : 'X\(//\)$' \| \
30897          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30898 $as_echo X"$as_dir" |
30899     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30900             s//\1/
30901             q
30902           }
30903           /^X\(\/\/\)[^/].*/{
30904             s//\1/
30905             q
30906           }
30907           /^X\(\/\/\)$/{
30908             s//\1/
30909             q
30910           }
30911           /^X\(\/\).*/{
30912             s//\1/
30913             q
30914           }
30915           s/.*/./; q'`
30916       test -d "$as_dir" && break
30917     done
30918     test -z "$as_dirs" || eval "mkdir $as_dirs"
30919   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30920 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30921    { (exit 1); exit 1; }; }; }
30922   ac_builddir=.
30923
30924 case "$ac_dir" in
30925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30926 *)
30927   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30928   # A ".." for each directory in $ac_dir_suffix.
30929   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30930   case $ac_top_builddir_sub in
30931   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30932   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30933   esac ;;
30934 esac
30935 ac_abs_top_builddir=$ac_pwd
30936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30937 # for backward compatibility:
30938 ac_top_builddir=$ac_top_build_prefix
30939
30940 case $srcdir in
30941   .)  # We are building in place.
30942     ac_srcdir=.
30943     ac_top_srcdir=$ac_top_builddir_sub
30944     ac_abs_top_srcdir=$ac_pwd ;;
30945   [\\/]* | ?:[\\/]* )  # Absolute name.
30946     ac_srcdir=$srcdir$ac_dir_suffix;
30947     ac_top_srcdir=$srcdir
30948     ac_abs_top_srcdir=$srcdir ;;
30949   *) # Relative name.
30950     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30951     ac_top_srcdir=$ac_top_build_prefix$srcdir
30952     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30953 esac
30954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30955
30956
30957   case $ac_mode in
30958   :F)
30959   #
30960   # CONFIG_FILE
30961   #
30962
30963   ac_MKDIR_P=$MKDIR_P
30964   case $MKDIR_P in
30965   [\\/$]* | ?:[\\/]* ) ;;
30966   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30967   esac
30968 _ACEOF
30969
30970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30971 # If the template does not know about datarootdir, expand it.
30972 # FIXME: This hack should be removed a few years after 2.60.
30973 ac_datarootdir_hack=; ac_datarootdir_seen=
30974
30975 ac_sed_dataroot='
30976 /datarootdir/ {
30977   p
30978   q
30979 }
30980 /@datadir@/p
30981 /@docdir@/p
30982 /@infodir@/p
30983 /@localedir@/p
30984 /@mandir@/p
30985 '
30986 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30987 *datarootdir*) ac_datarootdir_seen=yes;;
30988 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30989   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30990 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30991 _ACEOF
30992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30993   ac_datarootdir_hack='
30994   s&@datadir@&$datadir&g
30995   s&@docdir@&$docdir&g
30996   s&@infodir@&$infodir&g
30997   s&@localedir@&$localedir&g
30998   s&@mandir@&$mandir&g
30999     s&\\\${datarootdir}&$datarootdir&g' ;;
31000 esac
31001 _ACEOF
31002
31003 # Neutralize VPATH when `$srcdir' = `.'.
31004 # Shell code in configure.ac might set extrasub.
31005 # FIXME: do we really want to maintain this feature?
31006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31007 ac_sed_extra="$ac_vpsub
31008 $extrasub
31009 _ACEOF
31010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31011 :t
31012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31013 s|@configure_input@|$ac_sed_conf_input|;t t
31014 s&@top_builddir@&$ac_top_builddir_sub&;t t
31015 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31016 s&@srcdir@&$ac_srcdir&;t t
31017 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31018 s&@top_srcdir@&$ac_top_srcdir&;t t
31019 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31020 s&@builddir@&$ac_builddir&;t t
31021 s&@abs_builddir@&$ac_abs_builddir&;t t
31022 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31023 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31024 $ac_datarootdir_hack
31025 "
31026 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31027   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31028 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31029    { (exit 1); exit 1; }; }
31030
31031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31032   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31033   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31034   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31035 which seems to be undefined.  Please make sure it is defined." >&5
31036 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31037 which seems to be undefined.  Please make sure it is defined." >&2;}
31038
31039   rm -f "$tmp/stdin"
31040   case $ac_file in
31041   -) cat "$tmp/out" && rm -f "$tmp/out";;
31042   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31043   esac \
31044   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31045 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31046    { (exit 1); exit 1; }; }
31047  ;;
31048   :H)
31049   #
31050   # CONFIG_HEADER
31051   #
31052   if test x"$ac_file" != x-; then
31053     {
31054       $as_echo "/* $configure_input  */" \
31055       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31056     } >"$tmp/config.h" \
31057       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31058 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31059    { (exit 1); exit 1; }; }
31060     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31061       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31062 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31063     else
31064       rm -f "$ac_file"
31065       mv "$tmp/config.h" "$ac_file" \
31066         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31067 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31068    { (exit 1); exit 1; }; }
31069     fi
31070   else
31071     $as_echo "/* $configure_input  */" \
31072       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31073       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31074 $as_echo "$as_me: error: could not create -" >&2;}
31075    { (exit 1); exit 1; }; }
31076   fi
31077  ;;
31078   :L)
31079   #
31080   # CONFIG_LINK
31081   #
31082
31083   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31084     :
31085   else
31086     # Prefer the file from the source tree if names are identical.
31087     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31088       ac_source=$srcdir/$ac_source
31089     fi
31090
31091     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31092 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31093
31094     if test ! -r "$ac_source"; then
31095       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31096 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31097    { (exit 1); exit 1; }; }
31098     fi
31099     rm -f "$ac_file"
31100
31101     # Try a relative symlink, then a hard link, then a copy.
31102     case $srcdir in
31103     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31104         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31105     esac
31106     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31107       ln "$ac_source" "$ac_file" 2>/dev/null ||
31108       cp -p "$ac_source" "$ac_file" ||
31109       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31110 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31111    { (exit 1); exit 1; }; }
31112   fi
31113  ;;
31114   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31115 $as_echo "$as_me: executing $ac_file commands" >&6;}
31116  ;;
31117   esac
31118
31119
31120   case $ac_file$ac_mode in
31121     "check_win32_symlinks":C)
31122 # Links sometimes fail undetected on Mingw -
31123 # so here we detect it and warn the user
31124 for FILE in $CONFIG_LINKS
31125  do
31126         # test -e works for symlinks in the MinGW console
31127         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31128 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31129  done
31130  ;;
31131     "src/include/pg_config.h":H)
31132 # Update timestamp for pg_config.h (see Makefile.global)
31133 echo >src/include/stamp-h
31134  ;;
31135     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31136
31137   esac
31138 done # for ac_tag
31139
31140
31141 { (exit 0); exit 0; }
31142 _ACEOF
31143 chmod +x $CONFIG_STATUS
31144 ac_clean_files=$ac_clean_files_save
31145
31146 test $ac_write_fail = 0 ||
31147   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31148 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31149    { (exit 1); exit 1; }; }
31150
31151
31152 # configure is writing to config.log, and then calls config.status.
31153 # config.status does its own redirection, appending to config.log.
31154 # Unfortunately, on DOS this fails, as config.log is still kept open
31155 # by configure, so config.status won't be able to write to it; its
31156 # output is simply discarded.  So we exec the FD to /dev/null,
31157 # effectively closing config.log, so it can be properly (re)opened and
31158 # appended to by config.status.  When coming back to configure, we
31159 # need to make the FD available again.
31160 if test "$no_create" != yes; then
31161   ac_cs_success=:
31162   ac_config_status_args=
31163   test "$silent" = yes &&
31164     ac_config_status_args="$ac_config_status_args --quiet"
31165   exec 5>/dev/null
31166   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31167   exec 5>>config.log
31168   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31169   # would make configure fail if this is the last instruction.
31170   $ac_cs_success || { (exit 1); exit 1; }
31171 fi
31172 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31173   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31174 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31175 fi
31176