]> granicus.if.org Git - postgresql/blob - configure
Replace pg_asprintf() with psprintf().
[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.4devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 1996-2013, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 as_nl='
45 '
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87   as_unset=unset
88 else
89   as_unset=false
90 fi
91
92
93 # IFS
94 # We need space, tab and new line, in precisely that order.  Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" ""        $as_nl"
99
100 # Find who we are.  Look in the path if we contain no directory separator.
101 case $0 in
102   *[\\/]* ) as_myself=$0 ;;
103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106   IFS=$as_save_IFS
107   test -z "$as_dir" && as_dir=.
108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112      ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117   as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121   { (exit 1); exit 1; }
122 fi
123
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
141   as_expr=expr
142 else
143   as_expr=false
144 fi
145
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147   as_basename=basename
148 else
149   as_basename=false
150 fi
151
152
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156          X"$0" : 'X\(//\)$' \| \
157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 $as_echo X/"$0" |
159     sed '/^.*\/\([^/][^/]*\)\/*$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\/\)$/{
164             s//\1/
165             q
166           }
167           /^X\/\(\/\).*/{
168             s//\1/
169             q
170           }
171           s/.*/./; q'`
172
173 # CDPATH.
174 $as_unset CDPATH
175
176
177 if test "x$CONFIG_SHELL" = x; then
178   if (eval ":") 2>/dev/null; then
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183
184   if test $as_have_required = yes &&     (eval ":
185 (as_func_return () {
186   (exit \$1)
187 }
188 as_func_success () {
189   as_func_return 0
190 }
191 as_func_failure () {
192   as_func_return 1
193 }
194 as_func_ret_success () {
195   return 0
196 }
197 as_func_ret_failure () {
198   return 1
199 }
200
201 exitcode=0
202 if as_func_success; then
203   :
204 else
205   exitcode=1
206   echo as_func_success failed.
207 fi
208
209 if as_func_failure; then
210   exitcode=1
211   echo as_func_failure succeeded.
212 fi
213
214 if as_func_ret_success; then
215   :
216 else
217   exitcode=1
218   echo as_func_ret_success failed.
219 fi
220
221 if as_func_ret_failure; then
222   exitcode=1
223   echo as_func_ret_failure succeeded.
224 fi
225
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227   :
228 else
229   exitcode=1
230   echo positional parameters were not saved.
231 fi
232
233 test \$exitcode = 0) || { (exit 1); exit 1; }
234
235 (
236   as_lineno_1=\$LINENO
237   as_lineno_2=\$LINENO
238   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
241   :
242 else
243   as_candidate_shells=
244     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 do
247   IFS=$as_save_IFS
248   test -z "$as_dir" && as_dir=.
249   case $as_dir in
250          /*)
251            for as_base in sh bash ksh sh5; do
252              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253            done;;
254        esac
255 done
256 IFS=$as_save_IFS
257
258
259       for as_shell in $as_candidate_shells $SHELL; do
260          # Try only shells that exist, to save several forks.
261          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262                 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 _ASEOF
280 }; then
281   CONFIG_SHELL=$as_shell
282                as_have_required=yes
283                if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285   emulate sh
286   NULLCMD=:
287   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288   # is contrary to our usage.  Disable this feature.
289   alias -g '${1+"$@"}'='"$@"'
290   setopt NO_GLOB_SUBST
291 else
292   case `(set -o) 2>/dev/null` in
293   *posix*) set -o posix ;;
294 esac
295
296 fi
297
298
299 :
300 (as_func_return () {
301   (exit $1)
302 }
303 as_func_success () {
304   as_func_return 0
305 }
306 as_func_failure () {
307   as_func_return 1
308 }
309 as_func_ret_success () {
310   return 0
311 }
312 as_func_ret_failure () {
313   return 1
314 }
315
316 exitcode=0
317 if as_func_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_success failed.
322 fi
323
324 if as_func_failure; then
325   exitcode=1
326   echo as_func_failure succeeded.
327 fi
328
329 if as_func_ret_success; then
330   :
331 else
332   exitcode=1
333   echo as_func_ret_success failed.
334 fi
335
336 if as_func_ret_failure; then
337   exitcode=1
338   echo as_func_ret_failure succeeded.
339 fi
340
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
342   :
343 else
344   exitcode=1
345   echo positional parameters were not saved.
346 fi
347
348 test $exitcode = 0) || { (exit 1); exit 1; }
349
350 (
351   as_lineno_1=$LINENO
352   as_lineno_2=$LINENO
353   test "x$as_lineno_1" != "x$as_lineno_2" &&
354   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356 _ASEOF
357 }; then
358   break
359 fi
360
361 fi
362
363       done
364
365       if test "x$CONFIG_SHELL" != x; then
366   for as_var in BASH_ENV ENV
367         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368         done
369         export CONFIG_SHELL
370         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371 fi
372
373
374     if test $as_have_required = no; then
375   echo This script requires a shell more modern than all the
376       echo shells that I found on your system.  Please install a
377       echo modern shell, or manually run the script under such a
378       echo shell if you do have one.
379       { (exit 1); exit 1; }
380 fi
381
382
383 fi
384
385 fi
386
387
388
389 (eval "as_func_return () {
390   (exit \$1)
391 }
392 as_func_success () {
393   as_func_return 0
394 }
395 as_func_failure () {
396   as_func_return 1
397 }
398 as_func_ret_success () {
399   return 0
400 }
401 as_func_ret_failure () {
402   return 1
403 }
404
405 exitcode=0
406 if as_func_success; then
407   :
408 else
409   exitcode=1
410   echo as_func_success failed.
411 fi
412
413 if as_func_failure; then
414   exitcode=1
415   echo as_func_failure succeeded.
416 fi
417
418 if as_func_ret_success; then
419   :
420 else
421   exitcode=1
422   echo as_func_ret_success failed.
423 fi
424
425 if as_func_ret_failure; then
426   exitcode=1
427   echo as_func_ret_failure succeeded.
428 fi
429
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431   :
432 else
433   exitcode=1
434   echo positional parameters were not saved.
435 fi
436
437 test \$exitcode = 0") || {
438   echo No shell found that supports shell functions.
439   echo Please tell bug-autoconf@gnu.org about your system,
440   echo including any error possibly output before this message.
441   echo This can help us improve future autoconf versions.
442   echo Configuration will now proceed without shell functions.
443 }
444
445
446
447   as_lineno_1=$LINENO
448   as_lineno_2=$LINENO
449   test "x$as_lineno_1" != "x$as_lineno_2" &&
450   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453   # uniformly replaced by the line number.  The first 'sed' inserts a
454   # line-number line after each line using $LINENO; the second 'sed'
455   # does the real work.  The second script uses 'N' to pair each
456   # line-number line with the line containing $LINENO, and appends
457   # trailing '-' during substitution so that $LINENO is not a special
458   # case at line end.
459   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460   # scripts with optimization help from Paolo Bonzini.  Blame Lee
461   # E. McMahon (1931-1989) for sed's syntax.  :-)
462   sed -n '
463     p
464     /[$]LINENO/=
465   ' <$as_myself |
466     sed '
467       s/[$]LINENO.*/&-/
468       t lineno
469       b
470       :lineno
471       N
472       :loop
473       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474       t loop
475       s/-\n.*//
476     ' >$as_me.lineno &&
477   chmod +x "$as_me.lineno" ||
478     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479    { (exit 1); exit 1; }; }
480
481   # Don't try to exec as it changes $[0], causing all sort of problems
482   # (the dirname of $[0] is not the place where we might find the
483   # original and so on.  Autoconf is especially sensitive to this).
484   . "./$as_me.lineno"
485   # Exit status is that of the last command.
486   exit
487 }
488
489
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491   as_dirname=dirname
492 else
493   as_dirname=false
494 fi
495
496 ECHO_C= ECHO_N= ECHO_T=
497 case `echo -n x` in
498 -n*)
499   case `echo 'x\c'` in
500   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
501   *)   ECHO_C='\c';;
502   esac;;
503 *)
504   ECHO_N='-n';;
505 esac
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507    test "X`expr 00001 : '.*\(...\)'`" = X001; then
508   as_expr=expr
509 else
510   as_expr=false
511 fi
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -p'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -p'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -p'
533   fi
534 else
535   as_ln_s='cp -p'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p=:
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 if test -x / >/dev/null 2>&1; then
548   as_test_x='test -x'
549 else
550   if ls -dL / >/dev/null 2>&1; then
551     as_ls_L_option=L
552   else
553     as_ls_L_option=
554   fi
555   as_test_x='
556     eval sh -c '\''
557       if test -d "$1"; then
558         test -d "$1/.";
559       else
560         case $1 in
561         -*)set "./$1";;
562         esac;
563         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564         ???[sx]*):;;*)false;;esac;fi
565     '\'' sh
566   '
567 fi
568 as_executable_p=$as_test_x
569
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
578 exec 7<&0 </dev/null 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596 SHELL=${CONFIG_SHELL-/bin/sh}
597
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.4devel'
602 PACKAGE_STRING='PostgreSQL 9.4devel'
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_FLAGS
663 MSGFMT
664 HAVE_POSIX_SIGNALS
665 LDAP_LIBS_BE
666 LDAP_LIBS_FE
667 PTHREAD_CFLAGS
668 PTHREAD_LIBS
669 PTHREAD_CC
670 acx_pthread_config
671 have_win32_dbghelp
672 HAVE_IPV6
673 LIBOBJS
674 OSSP_UUID_LIBS
675 ZIC
676 python_enable_shared
677 python_additional_libs
678 python_libspec
679 python_libdir
680 python_includespec
681 python_version
682 python_majorversion
683 PYTHON
684 perl_embed_ldflags
685 perl_useshrplib
686 perl_privlibexp
687 perl_archlibexp
688 PERL
689 FLEXFLAGS
690 FLEX
691 BISONFLAGS
692 BISON
693 MKDIR_P
694 AWK
695 LN_S
696 TAR
697 install_bin
698 INSTALL_DATA
699 INSTALL_SCRIPT
700 INSTALL_PROGRAM
701 WINDRES
702 DLLWRAP
703 DLLTOOL
704 AR
705 STRIP_SHARED_LIB
706 STRIP_STATIC_LIB
707 STRIP
708 RANLIB
709 ld_R_works
710 with_gnu_ld
711 LD
712 LDFLAGS_SL
713 LDFLAGS_EX
714 ELF_SYS
715 EGREP
716 GREP
717 with_zlib
718 with_system_tzdata
719 with_libxslt
720 with_libxml
721 XML2_CONFIG
722 with_ossp_uuid
723 with_selinux
724 with_openssl
725 krb_srvtab
726 with_python
727 with_perl
728 with_tcl
729 enable_thread_safety
730 INCLUDES
731 autodepend
732 TAS
733 GCC
734 CPP
735 CFLAGS_VECTOR
736 SUN_STUDIO_CC
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
744 enable_dtrace
745 DTRACEFLAGS
746 DTRACE
747 enable_coverage
748 GENHTML
749 LCOV
750 GCOV
751 enable_debug
752 enable_rpath
753 default_port
754 WANTED_LANGUAGES
755 enable_nls
756 PORTNAME
757 host_os
758 host_vendor
759 host_cpu
760 host
761 build_os
762 build_vendor
763 build_cpu
764 build
765 PG_MAJORVERSION
766 configure_args
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL'
804 ac_subst_files=''
805 ac_user_opts='
806 enable_option_checking
807 with_template
808 with_includes
809 with_libraries
810 with_libs
811 enable_integer_datetimes
812 enable_nls
813 with_pgport
814 enable_rpath
815 enable_spinlocks
816 enable_debug
817 enable_profiling
818 enable_coverage
819 enable_dtrace
820 with_blocksize
821 with_segsize
822 with_wal_blocksize
823 with_wal_segsize
824 with_CC
825 enable_depend
826 enable_cassert
827 enable_thread_safety
828 with_tcl
829 with_tclconfig
830 with_perl
831 with_python
832 with_gssapi
833 with_krb5
834 with_krb_srvnam
835 with_pam
836 with_ldap
837 with_bonjour
838 with_openssl
839 with_selinux
840 with_readline
841 with_libedit_preferred
842 with_ossp_uuid
843 with_libxml
844 with_libxslt
845 with_system_tzdata
846 with_zlib
847 with_gnu_ld
848 enable_largefile
849 enable_float4_byval
850 enable_float8_byval
851 '
852       ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CC
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CPP
861 LDFLAGS_EX
862 LDFLAGS_SL
863 DOCBOOKSTYLE'
864
865
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
887
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918   # If the previous option needs an argument, assign it.
919   if test -n "$ac_prev"; then
920     eval $ac_prev=\$ac_option
921     ac_prev=
922     continue
923   fi
924
925   case $ac_option in
926   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927   *)    ac_optarg=yes ;;
928   esac
929
930   # Accept the important Cygnus configure options, so we can diagnose typos.
931
932   case $ac_dashdash$ac_option in
933   --)
934     ac_dashdash=yes ;;
935
936   -bindir | --bindir | --bindi | --bind | --bin | --bi)
937     ac_prev=bindir ;;
938   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939     bindir=$ac_optarg ;;
940
941   -build | --build | --buil | --bui | --bu)
942     ac_prev=build_alias ;;
943   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944     build_alias=$ac_optarg ;;
945
946   -cache-file | --cache-file | --cache-fil | --cache-fi \
947   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948     ac_prev=cache_file ;;
949   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951     cache_file=$ac_optarg ;;
952
953   --config-cache | -C)
954     cache_file=config.cache ;;
955
956   -datadir | --datadir | --datadi | --datad)
957     ac_prev=datadir ;;
958   -datadir=* | --datadir=* | --datadi=* | --datad=*)
959     datadir=$ac_optarg ;;
960
961   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962   | --dataroo | --dataro | --datar)
963     ac_prev=datarootdir ;;
964   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966     datarootdir=$ac_optarg ;;
967
968   -disable-* | --disable-*)
969     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970     # Reject names that are not valid shell variable names.
971     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973    { (exit 1); exit 1; }; }
974     ac_useropt_orig=$ac_useropt
975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976     case $ac_user_opts in
977       *"
978 "enable_$ac_useropt"
979 "*) ;;
980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981          ac_unrecognized_sep=', ';;
982     esac
983     eval enable_$ac_useropt=no ;;
984
985   -docdir | --docdir | --docdi | --doc | --do)
986     ac_prev=docdir ;;
987   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988     docdir=$ac_optarg ;;
989
990   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991     ac_prev=dvidir ;;
992   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993     dvidir=$ac_optarg ;;
994
995   -enable-* | --enable-*)
996     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997     # Reject names that are not valid shell variable names.
998     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1000    { (exit 1); exit 1; }; }
1001     ac_useropt_orig=$ac_useropt
1002     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003     case $ac_user_opts in
1004       *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008          ac_unrecognized_sep=', ';;
1009     esac
1010     eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014   | --exec | --exe | --ex)
1015     ac_prev=exec_prefix ;;
1016   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018   | --exec=* | --exe=* | --ex=*)
1019     exec_prefix=$ac_optarg ;;
1020
1021   -gas | --gas | --ga | --g)
1022     # Obsolete; use --with-gas.
1023     with_gas=yes ;;
1024
1025   -help | --help | --hel | --he | -h)
1026     ac_init_help=long ;;
1027   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028     ac_init_help=recursive ;;
1029   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030     ac_init_help=short ;;
1031
1032   -host | --host | --hos | --ho)
1033     ac_prev=host_alias ;;
1034   -host=* | --host=* | --hos=* | --ho=*)
1035     host_alias=$ac_optarg ;;
1036
1037   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038     ac_prev=htmldir ;;
1039   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040   | --ht=*)
1041     htmldir=$ac_optarg ;;
1042
1043   -includedir | --includedir | --includedi | --included | --include \
1044   | --includ | --inclu | --incl | --inc)
1045     ac_prev=includedir ;;
1046   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047   | --includ=* | --inclu=* | --incl=* | --inc=*)
1048     includedir=$ac_optarg ;;
1049
1050   -infodir | --infodir | --infodi | --infod | --info | --inf)
1051     ac_prev=infodir ;;
1052   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053     infodir=$ac_optarg ;;
1054
1055   -libdir | --libdir | --libdi | --libd)
1056     ac_prev=libdir ;;
1057   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058     libdir=$ac_optarg ;;
1059
1060   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061   | --libexe | --libex | --libe)
1062     ac_prev=libexecdir ;;
1063   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064   | --libexe=* | --libex=* | --libe=*)
1065     libexecdir=$ac_optarg ;;
1066
1067   -localedir | --localedir | --localedi | --localed | --locale)
1068     ac_prev=localedir ;;
1069   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070     localedir=$ac_optarg ;;
1071
1072   -localstatedir | --localstatedir | --localstatedi | --localstated \
1073   | --localstate | --localstat | --localsta | --localst | --locals)
1074     ac_prev=localstatedir ;;
1075   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077     localstatedir=$ac_optarg ;;
1078
1079   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080     ac_prev=mandir ;;
1081   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082     mandir=$ac_optarg ;;
1083
1084   -nfp | --nfp | --nf)
1085     # Obsolete; use --without-fp.
1086     with_fp=no ;;
1087
1088   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089   | --no-cr | --no-c | -n)
1090     no_create=yes ;;
1091
1092   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094     no_recursion=yes ;;
1095
1096   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098   | --oldin | --oldi | --old | --ol | --o)
1099     ac_prev=oldincludedir ;;
1100   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103     oldincludedir=$ac_optarg ;;
1104
1105   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106     ac_prev=prefix ;;
1107   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108     prefix=$ac_optarg ;;
1109
1110   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111   | --program-pre | --program-pr | --program-p)
1112     ac_prev=program_prefix ;;
1113   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115     program_prefix=$ac_optarg ;;
1116
1117   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118   | --program-suf | --program-su | --program-s)
1119     ac_prev=program_suffix ;;
1120   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122     program_suffix=$ac_optarg ;;
1123
1124   -program-transform-name | --program-transform-name \
1125   | --program-transform-nam | --program-transform-na \
1126   | --program-transform-n | --program-transform- \
1127   | --program-transform | --program-transfor \
1128   | --program-transfo | --program-transf \
1129   | --program-trans | --program-tran \
1130   | --progr-tra | --program-tr | --program-t)
1131     ac_prev=program_transform_name ;;
1132   -program-transform-name=* | --program-transform-name=* \
1133   | --program-transform-nam=* | --program-transform-na=* \
1134   | --program-transform-n=* | --program-transform-=* \
1135   | --program-transform=* | --program-transfor=* \
1136   | --program-transfo=* | --program-transf=* \
1137   | --program-trans=* | --program-tran=* \
1138   | --progr-tra=* | --program-tr=* | --program-t=*)
1139     program_transform_name=$ac_optarg ;;
1140
1141   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142     ac_prev=pdfdir ;;
1143   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144     pdfdir=$ac_optarg ;;
1145
1146   -psdir | --psdir | --psdi | --psd | --ps)
1147     ac_prev=psdir ;;
1148   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149     psdir=$ac_optarg ;;
1150
1151   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152   | -silent | --silent | --silen | --sile | --sil)
1153     silent=yes ;;
1154
1155   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156     ac_prev=sbindir ;;
1157   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158   | --sbi=* | --sb=*)
1159     sbindir=$ac_optarg ;;
1160
1161   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163   | --sharedst | --shareds | --shared | --share | --shar \
1164   | --sha | --sh)
1165     ac_prev=sharedstatedir ;;
1166   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169   | --sha=* | --sh=*)
1170     sharedstatedir=$ac_optarg ;;
1171
1172   -site | --site | --sit)
1173     ac_prev=site ;;
1174   -site=* | --site=* | --sit=*)
1175     site=$ac_optarg ;;
1176
1177   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178     ac_prev=srcdir ;;
1179   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180     srcdir=$ac_optarg ;;
1181
1182   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183   | --syscon | --sysco | --sysc | --sys | --sy)
1184     ac_prev=sysconfdir ;;
1185   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187     sysconfdir=$ac_optarg ;;
1188
1189   -target | --target | --targe | --targ | --tar | --ta | --t)
1190     ac_prev=target_alias ;;
1191   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192     target_alias=$ac_optarg ;;
1193
1194   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195     verbose=yes ;;
1196
1197   -version | --version | --versio | --versi | --vers | -V)
1198     ac_init_version=: ;;
1199
1200   -with-* | --with-*)
1201     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202     # Reject names that are not valid shell variable names.
1203     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1205    { (exit 1); exit 1; }; }
1206     ac_useropt_orig=$ac_useropt
1207     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208     case $ac_user_opts in
1209       *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213          ac_unrecognized_sep=', ';;
1214     esac
1215     eval with_$ac_useropt=\$ac_optarg ;;
1216
1217   -without-* | --without-*)
1218     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1222    { (exit 1); exit 1; }; }
1223     ac_useropt_orig=$ac_useropt
1224     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225     case $ac_user_opts in
1226       *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230          ac_unrecognized_sep=', ';;
1231     esac
1232     eval with_$ac_useropt=no ;;
1233
1234   --x)
1235     # Obsolete; use --with-x.
1236     with_x=yes ;;
1237
1238   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239   | --x-incl | --x-inc | --x-in | --x-i)
1240     ac_prev=x_includes ;;
1241   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243     x_includes=$ac_optarg ;;
1244
1245   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247     ac_prev=x_libraries ;;
1248   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250     x_libraries=$ac_optarg ;;
1251
1252   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1253 Try \`$0 --help' for more information." >&2
1254    { (exit 1); exit 1; }; }
1255     ;;
1256
1257   *=*)
1258     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259     # Reject names that are not valid shell variable names.
1260     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262    { (exit 1); exit 1; }; }
1263     eval $ac_envvar=\$ac_optarg
1264     export $ac_envvar ;;
1265
1266   *)
1267     # FIXME: should be removed in autoconf 3.0.
1268     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272     ;;
1273
1274   esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1280    { (exit 1); exit 1; }; }
1281 fi
1282
1283 if test -n "$ac_unrecognized_opts"; then
1284   case $enable_option_checking in
1285     no) ;;
1286     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1287    { (exit 1); exit 1; }; } ;;
1288     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289   esac
1290 fi
1291
1292 # Check all directory arguments for consistency.
1293 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294                 datadir sysconfdir sharedstatedir localstatedir includedir \
1295                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296                 libdir localedir mandir
1297 do
1298   eval ac_val=\$$ac_var
1299   # Remove trailing slashes.
1300   case $ac_val in
1301     */ )
1302       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303       eval $ac_var=\$ac_val;;
1304   esac
1305   # Be sure to have absolute directory names.
1306   case $ac_val in
1307     [\\/$]* | ?:[\\/]* )  continue;;
1308     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309   esac
1310   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311    { (exit 1); exit 1; }; }
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323   if test "x$build_alias" = x; then
1324     cross_compiling=maybe
1325     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326     If a cross compiler is detected then cross compile mode will be used." >&2
1327   elif test "x$build_alias" != "x$host_alias"; then
1328     cross_compiling=yes
1329   fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1342    { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1345    { (exit 1); exit 1; }; }
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350   ac_srcdir_defaulted=yes
1351   # Try the directory containing this script, then the parent directory.
1352   ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354          X"$as_myself" : 'X\(//\)[^/]' \| \
1355          X"$as_myself" : 'X\(//\)$' \| \
1356          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)[^/].*/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\/\)$/{
1367             s//\1/
1368             q
1369           }
1370           /^X\(\/\).*/{
1371             s//\1/
1372             q
1373           }
1374           s/.*/./; q'`
1375   srcdir=$ac_confdir
1376   if test ! -r "$srcdir/$ac_unique_file"; then
1377     srcdir=..
1378   fi
1379 else
1380   ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385    { (exit 1); exit 1; }; }
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1390    { (exit 1); exit 1; }; }
1391         pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394   srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_env_${ac_var}_value=\$${ac_var}
1405   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413   # Omit some internal or obsolete options to make the list less imposing.
1414   # This message is too long to be a string in the A/UX 3.1 sh.
1415   cat <<_ACEOF
1416 \`configure' configures PostgreSQL 9.4devel to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426   -h, --help              display this help and exit
1427       --help=short        display options specific to this package
1428       --help=recursive    display the short help of all the included packages
1429   -V, --version           display version information and exit
1430   -q, --quiet, --silent   do not print \`checking...' messages
1431       --cache-file=FILE   cache test results in FILE [disabled]
1432   -C, --config-cache      alias for \`--cache-file=config.cache'
1433   -n, --no-create         do not create output files
1434       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437   --prefix=PREFIX         install architecture-independent files in PREFIX
1438                           [$ac_default_prefix]
1439   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440                           [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450   --bindir=DIR            user executables [EPREFIX/bin]
1451   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1452   --libexecdir=DIR        program executables [EPREFIX/libexec]
1453   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1454   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1455   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1456   --libdir=DIR            object code libraries [EPREFIX/lib]
1457   --includedir=DIR        C header files [PREFIX/include]
1458   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1459   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1460   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1461   --infodir=DIR           info documentation [DATAROOTDIR/info]
1462   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1463   --mandir=DIR            man documentation [DATAROOTDIR/man]
1464   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1465   --htmldir=DIR           html documentation [DOCDIR]
1466   --dvidir=DIR            dvi documentation [DOCDIR]
1467   --pdfdir=DIR            pdf documentation [DOCDIR]
1468   --psdir=DIR             ps documentation [DOCDIR]
1469 _ACEOF
1470
1471   cat <<\_ACEOF
1472
1473 System types:
1474   --build=BUILD     configure for building on BUILD [guessed]
1475   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480   case $ac_init_help in
1481      short | recursive ) echo "Configuration of PostgreSQL 9.4devel:";;
1482    esac
1483   cat <<\_ACEOF
1484
1485 Optional Features:
1486   --disable-option-checking  ignore unrecognized --enable/--with options
1487   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1488   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1489   --disable-integer-datetimes
1490                           disable 64-bit integer date/time support
1491   --enable-nls[=LANGUAGES]
1492                           enable Native Language Support
1493   --disable-rpath         do not embed shared library search path in
1494                           executables
1495   --disable-spinlocks     do not use spinlocks
1496   --enable-debug          build with debugging symbols (-g)
1497   --enable-profiling      build with profiling enabled
1498   --enable-coverage       build with coverage testing instrumentation
1499   --enable-dtrace         build with DTrace support
1500   --enable-depend         turn on automatic dependency tracking
1501   --enable-cassert        enable assertion checks (for debugging)
1502   --disable-thread-safety disable thread-safety in client libraries
1503   --disable-largefile     omit support for large files
1504   --disable-float4-byval  disable float4 passed by value
1505   --disable-float8-byval  disable float8 passed by value
1506
1507 Optional Packages:
1508   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1509   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1510   --with-template=NAME    override operating system template
1511   --with-includes=DIRS    look for additional header files in DIRS
1512   --with-libraries=DIRS   look for additional libraries in DIRS
1513   --with-libs=DIRS        alternative spelling of --with-libraries
1514   --with-pgport=PORTNUM   set default port number [5432]
1515   --with-blocksize=BLOCKSIZE
1516                           set table block size in kB [8]
1517   --with-segsize=SEGSIZE  set table segment size in GB [1]
1518   --with-wal-blocksize=BLOCKSIZE
1519                           set WAL block size in kB [8]
1520   --with-wal-segsize=SEGSIZE
1521                           set WAL segment size in MB [16]
1522   --with-CC=CMD           set compiler (deprecated)
1523   --with-tcl              build Tcl modules (PL/Tcl)
1524   --with-tclconfig=DIR    tclConfig.sh is in DIR
1525   --with-perl             build Perl modules (PL/Perl)
1526   --with-python           build Python modules (PL/Python)
1527   --with-gssapi           build with GSSAPI support
1528   --with-krb5             build with Kerberos 5 support
1529   --with-krb-srvnam=NAME  default service principal name in Kerberos
1530                           [postgres]
1531   --with-pam              build with PAM support
1532   --with-ldap             build with LDAP support
1533   --with-bonjour          build with Bonjour support
1534   --with-openssl          build with OpenSSL support
1535   --with-selinux          build with SELinux support
1536   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1537   --with-libedit-preferred
1538                           prefer BSD Libedit over GNU Readline
1539   --with-ossp-uuid        build contrib/uuid-ossp, requires OSSP UUID library
1540   --with-libxml           build with XML support
1541   --with-libxslt          use XSLT support when building contrib/xml2
1542   --with-system-tzdata=DIR
1543                           use system time zone data in DIR
1544   --without-zlib          do not use Zlib
1545   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1546
1547 Some influential environment variables:
1548   CC          C compiler command
1549   CFLAGS      C compiler flags
1550   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551               nonstandard directory <lib dir>
1552   LIBS        libraries to pass to the linker, e.g. -l<library>
1553   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554               you have headers in a nonstandard directory <include dir>
1555   CPP         C preprocessor
1556   LDFLAGS_EX  extra linker flags for linking executables only
1557   LDFLAGS_SL  extra linker flags for linking shared libraries only
1558   DOCBOOKSTYLE
1559               location of DocBook stylesheets
1560
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1563
1564 Report bugs to <pgsql-bugs@postgresql.org>.
1565 _ACEOF
1566 ac_status=$?
1567 fi
1568
1569 if test "$ac_init_help" = "recursive"; then
1570   # If there are subdirs, report their specific --help.
1571   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572     test -d "$ac_dir" ||
1573       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574       continue
1575     ac_builddir=.
1576
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *)
1580   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581   # A ".." for each directory in $ac_dir_suffix.
1582   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583   case $ac_top_builddir_sub in
1584   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586   esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1592
1593 case $srcdir in
1594   .)  # We are building in place.
1595     ac_srcdir=.
1596     ac_top_srcdir=$ac_top_builddir_sub
1597     ac_abs_top_srcdir=$ac_pwd ;;
1598   [\\/]* | ?:[\\/]* )  # Absolute name.
1599     ac_srcdir=$srcdir$ac_dir_suffix;
1600     ac_top_srcdir=$srcdir
1601     ac_abs_top_srcdir=$srcdir ;;
1602   *) # Relative name.
1603     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604     ac_top_srcdir=$ac_top_build_prefix$srcdir
1605     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609     cd "$ac_dir" || { ac_status=$?; continue; }
1610     # Check for guested configure.
1611     if test -f "$ac_srcdir/configure.gnu"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614     elif test -f "$ac_srcdir/configure"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure" --help=recursive
1617     else
1618       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619     fi || ac_status=$?
1620     cd "$ac_pwd" || { ac_status=$?; break; }
1621   done
1622 fi
1623
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626   cat <<\_ACEOF
1627 PostgreSQL configure 9.4devel
1628 generated by GNU Autoconf 2.63
1629
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634
1635 Copyright (c) 1996-2013, PostgreSQL Global Development Group
1636 _ACEOF
1637   exit
1638 fi
1639 cat >config.log <<_ACEOF
1640 This file contains any messages produced by compilers while
1641 running configure, to aid debugging if configure makes a mistake.
1642
1643 It was created by PostgreSQL $as_me 9.4devel, which was
1644 generated by GNU Autoconf 2.63.  Invocation command line was
1645
1646   $ $0 $@
1647
1648 _ACEOF
1649 exec 5>>config.log
1650 {
1651 cat <<_ASUNAME
1652 ## --------- ##
1653 ## Platform. ##
1654 ## --------- ##
1655
1656 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1657 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1658 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1659 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1660 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1661
1662 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1663 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1664
1665 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1666 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1668 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1669 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1670 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1671 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1672
1673 _ASUNAME
1674
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   $as_echo "PATH: $as_dir"
1681 done
1682 IFS=$as_save_IFS
1683
1684 } >&5
1685
1686 cat >&5 <<_ACEOF
1687
1688
1689 ## ----------- ##
1690 ## Core tests. ##
1691 ## ----------- ##
1692
1693 _ACEOF
1694
1695
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1701 ac_configure_args=
1702 ac_configure_args0=
1703 ac_configure_args1=
1704 ac_must_keep_next=false
1705 for ac_pass in 1 2
1706 do
1707   for ac_arg
1708   do
1709     case $ac_arg in
1710     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712     | -silent | --silent | --silen | --sile | --sil)
1713       continue ;;
1714     *\'*)
1715       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716     esac
1717     case $ac_pass in
1718     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1719     2)
1720       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1721       if test $ac_must_keep_next = true; then
1722         ac_must_keep_next=false # Got value, back to normal.
1723       else
1724         case $ac_arg in
1725           *=* | --config-cache | -C | -disable-* | --disable-* \
1726           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728           | -with-* | --with-* | -without-* | --without-* | --x)
1729             case "$ac_configure_args0 " in
1730               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731             esac
1732             ;;
1733           -* ) ac_must_keep_next=true ;;
1734         esac
1735       fi
1736       ac_configure_args="$ac_configure_args '$ac_arg'"
1737       ;;
1738     esac
1739   done
1740 done
1741 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1742 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1743
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log.  We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750   # Save into config.log some information that might help in debugging.
1751   {
1752     echo
1753
1754     cat <<\_ASBOX
1755 ## ---------------- ##
1756 ## Cache variables. ##
1757 ## ---------------- ##
1758 _ASBOX
1759     echo
1760     # The following way of writing the cache mishandles newlines in values,
1761 (
1762   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1763     eval ac_val=\$$ac_var
1764     case $ac_val in #(
1765     *${as_nl}*)
1766       case $ac_var in #(
1767       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1769       esac
1770       case $ac_var in #(
1771       _ | IFS | as_nl) ;; #(
1772       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1773       *) $as_unset $ac_var ;;
1774       esac ;;
1775     esac
1776   done
1777   (set) 2>&1 |
1778     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1779     *${as_nl}ac_space=\ *)
1780       sed -n \
1781         "s/'\''/'\''\\\\'\'''\''/g;
1782           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783       ;; #(
1784     *)
1785       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786       ;;
1787     esac |
1788     sort
1789 )
1790     echo
1791
1792     cat <<\_ASBOX
1793 ## ----------------- ##
1794 ## Output variables. ##
1795 ## ----------------- ##
1796 _ASBOX
1797     echo
1798     for ac_var in $ac_subst_vars
1799     do
1800       eval ac_val=\$$ac_var
1801       case $ac_val in
1802       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803       esac
1804       $as_echo "$ac_var='\''$ac_val'\''"
1805     done | sort
1806     echo
1807
1808     if test -n "$ac_subst_files"; then
1809       cat <<\_ASBOX
1810 ## ------------------- ##
1811 ## File substitutions. ##
1812 ## ------------------- ##
1813 _ASBOX
1814       echo
1815       for ac_var in $ac_subst_files
1816       do
1817         eval ac_val=\$$ac_var
1818         case $ac_val in
1819         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820         esac
1821         $as_echo "$ac_var='\''$ac_val'\''"
1822       done | sort
1823       echo
1824     fi
1825
1826     if test -s confdefs.h; then
1827       cat <<\_ASBOX
1828 ## ----------- ##
1829 ## confdefs.h. ##
1830 ## ----------- ##
1831 _ASBOX
1832       echo
1833       cat confdefs.h
1834       echo
1835     fi
1836     test "$ac_signal" != 0 &&
1837       $as_echo "$as_me: caught signal $ac_signal"
1838     $as_echo "$as_me: exit $exit_status"
1839   } >&5
1840   rm -f core *.core core.conftest.* &&
1841     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842     exit $exit_status
1843 ' 0
1844 for ac_signal in 1 2 13 15; do
1845   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1846 done
1847 ac_signal=0
1848
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1851
1852 # Predefined preprocessor variables.
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_NAME "$PACKAGE_NAME"
1856 _ACEOF
1857
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1861 _ACEOF
1862
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1866 _ACEOF
1867
1868
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_STRING "$PACKAGE_STRING"
1871 _ACEOF
1872
1873
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1876 _ACEOF
1877
1878
1879 # Let the site file select an alternate cache file if it wants to.
1880 # Prefer an explicitly selected file to automatically selected ones.
1881 ac_site_file1=NONE
1882 ac_site_file2=NONE
1883 if test -n "$CONFIG_SITE"; then
1884   ac_site_file1=$CONFIG_SITE
1885 elif test "x$prefix" != xNONE; then
1886   ac_site_file1=$prefix/share/config.site
1887   ac_site_file2=$prefix/etc/config.site
1888 else
1889   ac_site_file1=$ac_default_prefix/share/config.site
1890   ac_site_file2=$ac_default_prefix/etc/config.site
1891 fi
1892 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1893 do
1894   test "x$ac_site_file" = xNONE && continue
1895   if test -r "$ac_site_file"; then
1896     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1898     sed 's/^/| /' "$ac_site_file" >&5
1899     . "$ac_site_file"
1900   fi
1901 done
1902
1903 if test -r "$cache_file"; then
1904   # Some versions of bash will fail to source /dev/null (special
1905   # files actually), so we avoid doing that.
1906   if test -f "$cache_file"; then
1907     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 $as_echo "$as_me: loading cache $cache_file" >&6;}
1909     case $cache_file in
1910       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911       *)                      . "./$cache_file";;
1912     esac
1913   fi
1914 else
1915   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 $as_echo "$as_me: creating cache $cache_file" >&6;}
1917   >$cache_file
1918 fi
1919
1920 # Check that the precious variables saved in the cache have kept the same
1921 # value.
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925   eval ac_new_set=\$ac_env_${ac_var}_set
1926   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927   eval ac_new_val=\$ac_env_${ac_var}_value
1928   case $ac_old_set,$ac_new_set in
1929     set,)
1930       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932       ac_cache_corrupted=: ;;
1933     ,set)
1934       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936       ac_cache_corrupted=: ;;
1937     ,);;
1938     *)
1939       if test "x$ac_old_val" != "x$ac_new_val"; then
1940         # differences in whitespace do not lead to failure.
1941         ac_old_val_w=`echo x $ac_old_val`
1942         ac_new_val_w=`echo x $ac_new_val`
1943         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1944           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1945 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1946           ac_cache_corrupted=:
1947         else
1948           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1949 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1950           eval $ac_var=\$ac_old_val
1951         fi
1952         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1953 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1954         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1955 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1956       fi;;
1957   esac
1958   # Pass precious variables to config.status.
1959   if test "$ac_new_set" = set; then
1960     case $ac_new_val in
1961     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962     *) ac_arg=$ac_var=$ac_new_val ;;
1963     esac
1964     case " $ac_configure_args " in
1965       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1966       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967     esac
1968   fi
1969 done
1970 if $ac_cache_corrupted; then
1971   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1974 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1975   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1976 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1977    { (exit 1); exit 1; }; }
1978 fi
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004 ac_ext=c
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009
2010
2011
2012
2013
2014
2015 ac_aux_dir=
2016 for ac_dir in config "$srcdir"/config; do
2017   if test -f "$ac_dir/install-sh"; then
2018     ac_aux_dir=$ac_dir
2019     ac_install_sh="$ac_aux_dir/install-sh -c"
2020     break
2021   elif test -f "$ac_dir/install.sh"; then
2022     ac_aux_dir=$ac_dir
2023     ac_install_sh="$ac_aux_dir/install.sh -c"
2024     break
2025   elif test -f "$ac_dir/shtool"; then
2026     ac_aux_dir=$ac_dir
2027     ac_install_sh="$ac_aux_dir/shtool install -c"
2028     break
2029   fi
2030 done
2031 if test -z "$ac_aux_dir"; then
2032   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2033 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2034    { (exit 1); exit 1; }; }
2035 fi
2036
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2044
2045
2046
2047 configure_args=$ac_configure_args
2048
2049
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PG_VERSION "$PACKAGE_VERSION"
2053 _ACEOF
2054
2055 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2056
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2060 _ACEOF
2061
2062
2063 # Make sure we can run config.sub.
2064 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2065   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2066 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2067    { (exit 1); exit 1; }; }
2068
2069 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2070 $as_echo_n "checking build system type... " >&6; }
2071 if test "${ac_cv_build+set}" = set; then
2072   $as_echo_n "(cached) " >&6
2073 else
2074   ac_build_alias=$build_alias
2075 test "x$ac_build_alias" = x &&
2076   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2077 test "x$ac_build_alias" = x &&
2078   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2079 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2080    { (exit 1); exit 1; }; }
2081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2082   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2083 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 fi
2087 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2088 $as_echo "$ac_cv_build" >&6; }
2089 case $ac_cv_build in
2090 *-*-*) ;;
2091 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2092 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2093    { (exit 1); exit 1; }; };;
2094 esac
2095 build=$ac_cv_build
2096 ac_save_IFS=$IFS; IFS='-'
2097 set x $ac_cv_build
2098 shift
2099 build_cpu=$1
2100 build_vendor=$2
2101 shift; shift
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2104 build_os=$*
2105 IFS=$ac_save_IFS
2106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2107
2108
2109 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2110 $as_echo_n "checking host system type... " >&6; }
2111 if test "${ac_cv_host+set}" = set; then
2112   $as_echo_n "(cached) " >&6
2113 else
2114   if test "x$host_alias" = x; then
2115   ac_cv_host=$ac_cv_build
2116 else
2117   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2118     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2119 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2122
2123 fi
2124 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2125 $as_echo "$ac_cv_host" >&6; }
2126 case $ac_cv_host in
2127 *-*-*) ;;
2128 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2129 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2130    { (exit 1); exit 1; }; };;
2131 esac
2132 host=$ac_cv_host
2133 ac_save_IFS=$IFS; IFS='-'
2134 set x $ac_cv_host
2135 shift
2136 host_cpu=$1
2137 host_vendor=$2
2138 shift; shift
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2141 host_os=$*
2142 IFS=$ac_save_IFS
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2144
2145
2146
2147 template=
2148 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2149 $as_echo_n "checking which template to use... " >&6; }
2150
2151
2152
2153
2154 # Check whether --with-template was given.
2155 if test "${with_template+set}" = set; then
2156   withval=$with_template;
2157   case $withval in
2158     yes)
2159       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2160 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2161    { (exit 1); exit 1; }; }
2162       ;;
2163     no)
2164       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2165 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2166    { (exit 1); exit 1; }; }
2167       ;;
2168     *)
2169
2170   case $withval in
2171     list)   echo; ls "$srcdir/src/template"; exit;;
2172     *)      if test -f "$srcdir/src/template/$with_template" ; then
2173               template=$withval
2174             else
2175               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2176 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2177    { (exit 1); exit 1; }; }
2178             fi;;
2179   esac
2180
2181       ;;
2182   esac
2183
2184 else
2185
2186 # --with-template not given
2187
2188 case $host_os in
2189      aix*) template=aix ;;
2190   cygwin*) template=cygwin ;;
2191   darwin*) template=darwin ;;
2192 dragonfly*) template=netbsd ;;
2193  freebsd*) template=freebsd ;;
2194     hpux*) template=hpux ;;
2195  linux*|gnu*|k*bsd*-gnu)
2196            template=linux ;;
2197    mingw*) template=win32 ;;
2198   netbsd*) template=netbsd ;;
2199  openbsd*) template=openbsd ;;
2200      osf*) template=osf ;;
2201      sco*) template=sco ;;
2202  solaris*) template=solaris ;;
2203    sysv5*) template=unixware ;;
2204 esac
2205
2206   if test x"$template" = x"" ; then
2207     { { $as_echo "$as_me:$LINENO: error:
2208 *******************************************************************
2209 PostgreSQL has apparently not been ported to your platform yet.
2210 To try a manual configuration, look into the src/template directory
2211 for a similar platform and use the '--with-template=' option.
2212
2213 Please also contact <pgsql-bugs@postgresql.org> to see about
2214 rectifying this.  Include the above 'checking host system type...'
2215 line.
2216 *******************************************************************
2217 " >&5
2218 $as_echo "$as_me: error:
2219 *******************************************************************
2220 PostgreSQL has apparently not been ported to your platform yet.
2221 To try a manual configuration, look into the src/template directory
2222 for a similar platform and use the '--with-template=' option.
2223
2224 Please also contact <pgsql-bugs@postgresql.org> to see about
2225 rectifying this.  Include the above 'checking host system type...'
2226 line.
2227 *******************************************************************
2228 " >&2;}
2229    { (exit 1); exit 1; }; }
2230   fi
2231
2232
2233 fi
2234
2235
2236
2237 { $as_echo "$as_me:$LINENO: result: $template" >&5
2238 $as_echo "$template" >&6; }
2239
2240 PORTNAME=$template
2241
2242
2243 # Initialize default assumption that we do not need separate assembly code
2244 # for TAS (test-and-set).  This can be overridden by the template file
2245 # when it's executed.
2246 need_tas=no
2247 tas_file=dummy.s
2248
2249
2250
2251 ##
2252 ## Command line options
2253 ##
2254
2255 #
2256 # Add non-standard directories to the include path
2257 #
2258
2259
2260
2261 # Check whether --with-includes was given.
2262 if test "${with_includes+set}" = set; then
2263   withval=$with_includes;
2264   case $withval in
2265     yes)
2266       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2267 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2268    { (exit 1); exit 1; }; }
2269       ;;
2270     no)
2271       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2272 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2273    { (exit 1); exit 1; }; }
2274       ;;
2275     *)
2276
2277       ;;
2278   esac
2279
2280 fi
2281
2282
2283
2284
2285 #
2286 # Add non-standard directories to the library search path
2287 #
2288
2289
2290
2291 # Check whether --with-libraries was given.
2292 if test "${with_libraries+set}" = set; then
2293   withval=$with_libraries;
2294   case $withval in
2295     yes)
2296       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2297 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2298    { (exit 1); exit 1; }; }
2299       ;;
2300     no)
2301       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2302 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2303    { (exit 1); exit 1; }; }
2304       ;;
2305     *)
2306       LIBRARY_DIRS=$withval
2307       ;;
2308   esac
2309
2310 fi
2311
2312
2313
2314
2315
2316
2317 # Check whether --with-libs was given.
2318 if test "${with_libs+set}" = set; then
2319   withval=$with_libs;
2320   case $withval in
2321     yes)
2322       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2323 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2324    { (exit 1); exit 1; }; }
2325       ;;
2326     no)
2327       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2328 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2329    { (exit 1); exit 1; }; }
2330       ;;
2331     *)
2332       LIBRARY_DIRS=$withval
2333       ;;
2334   esac
2335
2336 fi
2337
2338
2339
2340
2341 #
2342 # 64-bit integer date/time storage: enabled by default.
2343 #
2344 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2345 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2346
2347
2348 # Check whether --enable-integer-datetimes was given.
2349 if test "${enable_integer_datetimes+set}" = set; then
2350   enableval=$enable_integer_datetimes;
2351   case $enableval in
2352     yes)
2353
2354 cat >>confdefs.h <<\_ACEOF
2355 #define USE_INTEGER_DATETIMES 1
2356 _ACEOF
2357
2358       ;;
2359     no)
2360       :
2361       ;;
2362     *)
2363       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2364 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2365    { (exit 1); exit 1; }; }
2366       ;;
2367   esac
2368
2369 else
2370   enable_integer_datetimes=yes
2371
2372 cat >>confdefs.h <<\_ACEOF
2373 #define USE_INTEGER_DATETIMES 1
2374 _ACEOF
2375
2376 fi
2377
2378
2379 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2380 $as_echo "$enable_integer_datetimes" >&6; }
2381
2382
2383 #
2384 # NLS
2385 #
2386 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2387 $as_echo_n "checking whether NLS is wanted... " >&6; }
2388
2389
2390 # Check whether --enable-nls was given.
2391 if test "${enable_nls+set}" = set; then
2392   enableval=$enable_nls;
2393   case $enableval in
2394     yes)
2395       :
2396       ;;
2397     no)
2398       :
2399       ;;
2400     *)
2401       enable_nls=yes
2402 WANTED_LANGUAGES=$enableval
2403       ;;
2404   esac
2405
2406 else
2407   enable_nls=no
2408 fi
2409
2410
2411
2412 if test "$enable_nls" = yes; then
2413
2414 cat >>confdefs.h <<\_ACEOF
2415 #define ENABLE_NLS 1
2416 _ACEOF
2417
2418 fi
2419
2420 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2421 $as_echo "$enable_nls" >&6; }
2422
2423
2424
2425 #
2426 # Default port number (--with-pgport), default 5432
2427 #
2428 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2429 $as_echo_n "checking for default port number... " >&6; }
2430
2431
2432
2433 # Check whether --with-pgport was given.
2434 if test "${with_pgport+set}" = set; then
2435   withval=$with_pgport;
2436   case $withval in
2437     yes)
2438       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2439 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2440    { (exit 1); exit 1; }; }
2441       ;;
2442     no)
2443       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2444 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2445    { (exit 1); exit 1; }; }
2446       ;;
2447     *)
2448       default_port=$withval
2449       ;;
2450   esac
2451
2452 else
2453   default_port=5432
2454 fi
2455
2456
2457 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2458 $as_echo "$default_port" >&6; }
2459 # Need both of these because some places want an integer and some a string
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define DEF_PGPORT ${default_port}
2463 _ACEOF
2464
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define DEF_PGPORT_STR "${default_port}"
2468 _ACEOF
2469
2470
2471
2472 #
2473 # '-rpath'-like feature can be disabled
2474 #
2475
2476
2477 # Check whether --enable-rpath was given.
2478 if test "${enable_rpath+set}" = set; then
2479   enableval=$enable_rpath;
2480   case $enableval in
2481     yes)
2482       :
2483       ;;
2484     no)
2485       :
2486       ;;
2487     *)
2488       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2489 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2490    { (exit 1); exit 1; }; }
2491       ;;
2492   esac
2493
2494 else
2495   enable_rpath=yes
2496
2497 fi
2498
2499
2500
2501
2502 #
2503 # Spinlocks
2504 #
2505
2506
2507 # Check whether --enable-spinlocks was given.
2508 if test "${enable_spinlocks+set}" = set; then
2509   enableval=$enable_spinlocks;
2510   case $enableval in
2511     yes)
2512       :
2513       ;;
2514     no)
2515       :
2516       ;;
2517     *)
2518       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2519 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2520    { (exit 1); exit 1; }; }
2521       ;;
2522   esac
2523
2524 else
2525   enable_spinlocks=yes
2526
2527 fi
2528
2529
2530
2531 #
2532 # --enable-debug adds -g to compiler flags
2533 #
2534
2535
2536 # Check whether --enable-debug was given.
2537 if test "${enable_debug+set}" = set; then
2538   enableval=$enable_debug;
2539   case $enableval in
2540     yes)
2541       :
2542       ;;
2543     no)
2544       :
2545       ;;
2546     *)
2547       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2548 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2549    { (exit 1); exit 1; }; }
2550       ;;
2551   esac
2552
2553 else
2554   enable_debug=no
2555
2556 fi
2557
2558
2559
2560
2561 #
2562 # --enable-profiling enables gcc profiling
2563 #
2564
2565
2566 # Check whether --enable-profiling was given.
2567 if test "${enable_profiling+set}" = set; then
2568   enableval=$enable_profiling;
2569   case $enableval in
2570     yes)
2571       :
2572       ;;
2573     no)
2574       :
2575       ;;
2576     *)
2577       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2578 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2579    { (exit 1); exit 1; }; }
2580       ;;
2581   esac
2582
2583 else
2584   enable_profiling=no
2585
2586 fi
2587
2588
2589
2590 #
2591 # --enable-coverage enables generation of code coverage metrics with gcov
2592 #
2593
2594
2595 # Check whether --enable-coverage was given.
2596 if test "${enable_coverage+set}" = set; then
2597   enableval=$enable_coverage;
2598   case $enableval in
2599     yes)
2600       for ac_prog in gcov
2601 do
2602   # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_GCOV+set}" = set; then
2607   $as_echo_n "(cached) " >&6
2608 else
2609   if test -n "$GCOV"; then
2610   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615   IFS=$as_save_IFS
2616   test -z "$as_dir" && as_dir=.
2617   for ac_exec_ext in '' $ac_executable_extensions; do
2618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619     ac_cv_prog_GCOV="$ac_prog"
2620     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621     break 2
2622   fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 GCOV=$ac_cv_prog_GCOV
2630 if test -n "$GCOV"; then
2631   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2632 $as_echo "$GCOV" >&6; }
2633 else
2634   { $as_echo "$as_me:$LINENO: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638
2639   test -n "$GCOV" && break
2640 done
2641
2642 if test -z "$GCOV"; then
2643   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2644 $as_echo "$as_me: error: gcov not found" >&2;}
2645    { (exit 1); exit 1; }; }
2646 fi
2647 for ac_prog in lcov
2648 do
2649   # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_LCOV+set}" = set; then
2654   $as_echo_n "(cached) " >&6
2655 else
2656   if test -n "$LCOV"; then
2657   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662   IFS=$as_save_IFS
2663   test -z "$as_dir" && as_dir=.
2664   for ac_exec_ext in '' $ac_executable_extensions; do
2665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666     ac_cv_prog_LCOV="$ac_prog"
2667     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668     break 2
2669   fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 LCOV=$ac_cv_prog_LCOV
2677 if test -n "$LCOV"; then
2678   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2679 $as_echo "$LCOV" >&6; }
2680 else
2681   { $as_echo "$as_me:$LINENO: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686   test -n "$LCOV" && break
2687 done
2688
2689 if test -z "$LCOV"; then
2690   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2691 $as_echo "$as_me: error: lcov not found" >&2;}
2692    { (exit 1); exit 1; }; }
2693 fi
2694 for ac_prog in genhtml
2695 do
2696   # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_GENHTML+set}" = set; then
2701   $as_echo_n "(cached) " >&6
2702 else
2703   if test -n "$GENHTML"; then
2704   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711   for ac_exec_ext in '' $ac_executable_extensions; do
2712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713     ac_cv_prog_GENHTML="$ac_prog"
2714     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715     break 2
2716   fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 GENHTML=$ac_cv_prog_GENHTML
2724 if test -n "$GENHTML"; then
2725   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2726 $as_echo "$GENHTML" >&6; }
2727 else
2728   { $as_echo "$as_me:$LINENO: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733   test -n "$GENHTML" && break
2734 done
2735
2736 if test -z "$GENHTML"; then
2737   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2738 $as_echo "$as_me: error: genhtml not found" >&2;}
2739    { (exit 1); exit 1; }; }
2740 fi
2741       ;;
2742     no)
2743       :
2744       ;;
2745     *)
2746       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2747 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2748    { (exit 1); exit 1; }; }
2749       ;;
2750   esac
2751
2752 else
2753   enable_coverage=no
2754
2755 fi
2756
2757
2758
2759
2760 #
2761 # DTrace
2762 #
2763
2764
2765 # Check whether --enable-dtrace was given.
2766 if test "${enable_dtrace+set}" = set; then
2767   enableval=$enable_dtrace;
2768   case $enableval in
2769     yes)
2770       for ac_prog in dtrace
2771 do
2772   # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if test "${ac_cv_prog_DTRACE+set}" = set; then
2777   $as_echo_n "(cached) " >&6
2778 else
2779   if test -n "$DTRACE"; then
2780   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785   IFS=$as_save_IFS
2786   test -z "$as_dir" && as_dir=.
2787   for ac_exec_ext in '' $ac_executable_extensions; do
2788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789     ac_cv_prog_DTRACE="$ac_prog"
2790     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791     break 2
2792   fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 DTRACE=$ac_cv_prog_DTRACE
2800 if test -n "$DTRACE"; then
2801   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2802 $as_echo "$DTRACE" >&6; }
2803 else
2804   { $as_echo "$as_me:$LINENO: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808
2809   test -n "$DTRACE" && break
2810 done
2811
2812 if test -z "$DTRACE"; then
2813   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2814 $as_echo "$as_me: error: dtrace not found" >&2;}
2815    { (exit 1); exit 1; }; }
2816 fi
2817
2818       ;;
2819     no)
2820       :
2821       ;;
2822     *)
2823       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2824 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2825    { (exit 1); exit 1; }; }
2826       ;;
2827   esac
2828
2829 else
2830   enable_dtrace=no
2831
2832 fi
2833
2834
2835
2836
2837 #
2838 # Block size
2839 #
2840 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2841 $as_echo_n "checking for block size... " >&6; }
2842
2843
2844
2845 # Check whether --with-blocksize was given.
2846 if test "${with_blocksize+set}" = set; then
2847   withval=$with_blocksize;
2848   case $withval in
2849     yes)
2850       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2851 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2852    { (exit 1); exit 1; }; }
2853       ;;
2854     no)
2855       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2856 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2857    { (exit 1); exit 1; }; }
2858       ;;
2859     *)
2860       blocksize=$withval
2861       ;;
2862   esac
2863
2864 else
2865   blocksize=8
2866 fi
2867
2868
2869 case ${blocksize} in
2870   1) BLCKSZ=1024;;
2871   2) BLCKSZ=2048;;
2872   4) BLCKSZ=4096;;
2873   8) BLCKSZ=8192;;
2874  16) BLCKSZ=16384;;
2875  32) BLCKSZ=32768;;
2876   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2877 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2878    { (exit 1); exit 1; }; }
2879 esac
2880 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2881 $as_echo "${blocksize}kB" >&6; }
2882
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define BLCKSZ ${BLCKSZ}
2886 _ACEOF
2887
2888
2889 #
2890 # Relation segment size
2891 #
2892 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2893 $as_echo_n "checking for segment size... " >&6; }
2894
2895
2896
2897 # Check whether --with-segsize was given.
2898 if test "${with_segsize+set}" = set; then
2899   withval=$with_segsize;
2900   case $withval in
2901     yes)
2902       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2903 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2904    { (exit 1); exit 1; }; }
2905       ;;
2906     no)
2907       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2908 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2909    { (exit 1); exit 1; }; }
2910       ;;
2911     *)
2912       segsize=$withval
2913       ;;
2914   esac
2915
2916 else
2917   segsize=1
2918 fi
2919
2920
2921 # this expression is set up to avoid unnecessary integer overflow
2922 # blocksize is already guaranteed to be a factor of 1024
2923 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2924 test $? -eq 0 || exit 1
2925 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2926 $as_echo "${segsize}GB" >&6; }
2927
2928
2929 cat >>confdefs.h <<_ACEOF
2930 #define RELSEG_SIZE ${RELSEG_SIZE}
2931 _ACEOF
2932
2933
2934 #
2935 # WAL block size
2936 #
2937 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2938 $as_echo_n "checking for WAL block size... " >&6; }
2939
2940
2941
2942 # Check whether --with-wal-blocksize was given.
2943 if test "${with_wal_blocksize+set}" = set; then
2944   withval=$with_wal_blocksize;
2945   case $withval in
2946     yes)
2947       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2948 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2949    { (exit 1); exit 1; }; }
2950       ;;
2951     no)
2952       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2954    { (exit 1); exit 1; }; }
2955       ;;
2956     *)
2957       wal_blocksize=$withval
2958       ;;
2959   esac
2960
2961 else
2962   wal_blocksize=8
2963 fi
2964
2965
2966 case ${wal_blocksize} in
2967   1) XLOG_BLCKSZ=1024;;
2968   2) XLOG_BLCKSZ=2048;;
2969   4) XLOG_BLCKSZ=4096;;
2970   8) XLOG_BLCKSZ=8192;;
2971  16) XLOG_BLCKSZ=16384;;
2972  32) XLOG_BLCKSZ=32768;;
2973  64) XLOG_BLCKSZ=65536;;
2974   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2975 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2976    { (exit 1); exit 1; }; }
2977 esac
2978 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2979 $as_echo "${wal_blocksize}kB" >&6; }
2980
2981
2982 cat >>confdefs.h <<_ACEOF
2983 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2984 _ACEOF
2985
2986
2987 #
2988 # WAL segment size
2989 #
2990 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
2991 $as_echo_n "checking for WAL segment size... " >&6; }
2992
2993
2994
2995 # Check whether --with-wal-segsize was given.
2996 if test "${with_wal_segsize+set}" = set; then
2997   withval=$with_wal_segsize;
2998   case $withval in
2999     yes)
3000       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3001 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3002    { (exit 1); exit 1; }; }
3003       ;;
3004     no)
3005       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3006 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3007    { (exit 1); exit 1; }; }
3008       ;;
3009     *)
3010       wal_segsize=$withval
3011       ;;
3012   esac
3013
3014 else
3015   wal_segsize=16
3016 fi
3017
3018
3019 case ${wal_segsize} in
3020   1) ;;
3021   2) ;;
3022   4) ;;
3023   8) ;;
3024  16) ;;
3025  32) ;;
3026  64) ;;
3027   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3028 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3029    { (exit 1); exit 1; }; }
3030 esac
3031 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3032 $as_echo "${wal_segsize}MB" >&6; }
3033
3034
3035 cat >>confdefs.h <<_ACEOF
3036 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3037 _ACEOF
3038
3039
3040 #
3041 # C compiler
3042 #
3043
3044 # For historical reasons you can also use --with-CC to specify the C compiler
3045 # to use, although the standard way to do this is to set the CC environment
3046 # variable.
3047
3048
3049
3050 # Check whether --with-CC was given.
3051 if test "${with_CC+set}" = set; then
3052   withval=$with_CC;
3053   case $withval in
3054     yes)
3055       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3056 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3057    { (exit 1); exit 1; }; }
3058       ;;
3059     no)
3060       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3061 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3062    { (exit 1); exit 1; }; }
3063       ;;
3064     *)
3065       CC=$with_CC
3066       ;;
3067   esac
3068
3069 fi
3070
3071
3072
3073 case $template in
3074   aix) pgac_cc_list="gcc xlc";;
3075     *) pgac_cc_list="gcc cc";;
3076 esac
3077
3078 ac_ext=c
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 if test -n "$ac_tool_prefix"; then
3084   for ac_prog in $pgac_cc_list
3085   do
3086     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then
3091   $as_echo_n "(cached) " >&6
3092 else
3093   if test -n "$CC"; then
3094   ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099   IFS=$as_save_IFS
3100   test -z "$as_dir" && as_dir=.
3101   for ac_exec_ext in '' $ac_executable_extensions; do
3102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105     break 2
3106   fi
3107 done
3108 done
3109 IFS=$as_save_IFS
3110
3111 fi
3112 fi
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118   { $as_echo "$as_me:$LINENO: result: no" >&5
3119 $as_echo "no" >&6; }
3120 fi
3121
3122
3123     test -n "$CC" && break
3124   done
3125 fi
3126 if test -z "$CC"; then
3127   ac_ct_CC=$CC
3128   for ac_prog in $pgac_cc_list
3129 do
3130   # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy $ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3135   $as_echo_n "(cached) " >&6
3136 else
3137   if test -n "$ac_ct_CC"; then
3138   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145   for ac_exec_ext in '' $ac_executable_extensions; do
3146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147     ac_cv_prog_ac_ct_CC="$ac_prog"
3148     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149     break 2
3150   fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3161 else
3162   { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167   test -n "$ac_ct_CC" && break
3168 done
3169
3170   if test "x$ac_ct_CC" = x; then
3171     CC=""
3172   else
3173     case $cross_compiling:$ac_tool_warned in
3174 yes:)
3175 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3178 esac
3179     CC=$ac_ct_CC
3180   fi
3181 fi
3182
3183
3184 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3187 See \`config.log' for more details." >&5
3188 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details." >&2;}
3190    { (exit 1); exit 1; }; }; }
3191
3192 # Provide some information about the compiler.
3193 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3194 set X $ac_compile
3195 ac_compiler=$2
3196 { (ac_try="$ac_compiler --version >&5"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203   (eval "$ac_compiler --version >&5") 2>&5
3204   ac_status=$?
3205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); }
3207 { (ac_try="$ac_compiler -v >&5"
3208 case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213 $as_echo "$ac_try_echo") >&5
3214   (eval "$ac_compiler -v >&5") 2>&5
3215   ac_status=$?
3216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }
3218 { (ac_try="$ac_compiler -V >&5"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224 $as_echo "$ac_try_echo") >&5
3225   (eval "$ac_compiler -V >&5") 2>&5
3226   ac_status=$?
3227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }
3229
3230 cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h.  */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h.  */
3236
3237 int
3238 main ()
3239 {
3240
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 ac_clean_files_save=$ac_clean_files
3246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3247 # Try to create an executable without -o first, disregard a.out.
3248 # It will help us diagnose broken compilers, and finding out an intuition
3249 # of exeext.
3250 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3251 $as_echo_n "checking for C compiler default output file name... " >&6; }
3252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3253
3254 # The possible output files:
3255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3256
3257 ac_rmfiles=
3258 for ac_file in $ac_files
3259 do
3260   case $ac_file in
3261     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3263   esac
3264 done
3265 rm -f $ac_rmfiles
3266
3267 if { (ac_try="$ac_link_default"
3268 case "(($ac_try" in
3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270   *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3273 $as_echo "$ac_try_echo") >&5
3274   (eval "$ac_link_default") 2>&5
3275   ac_status=$?
3276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); }; then
3278   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3280 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3281 # so that the user can short-circuit this test for compilers unknown to
3282 # Autoconf.
3283 for ac_file in $ac_files ''
3284 do
3285   test -f "$ac_file" || continue
3286   case $ac_file in
3287     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3288         ;;
3289     [ab].out )
3290         # We found the default executable, but exeext='' is most
3291         # certainly right.
3292         break;;
3293     *.* )
3294         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3295         then :; else
3296            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297         fi
3298         # We set ac_cv_exeext here because the later test for it is not
3299         # safe: cross compilers may not add the suffix if given an `-o'
3300         # argument, so we may need to know it at that point already.
3301         # Even if this section looks crufty: it has the advantage of
3302         # actually working.
3303         break;;
3304     * )
3305         break;;
3306   esac
3307 done
3308 test "$ac_cv_exeext" = no && ac_cv_exeext=
3309
3310 else
3311   ac_file=''
3312 fi
3313
3314 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3315 $as_echo "$ac_file" >&6; }
3316 if test -z "$ac_file"; then
3317   $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: C compiler cannot create executables
3325 See \`config.log' for more details." >&2;}
3326    { (exit 77); exit 77; }; }; }
3327 fi
3328
3329 ac_exeext=$ac_cv_exeext
3330
3331 # Check that the compiler produces executables we can run.  If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3334 $as_echo_n "checking whether the C compiler works... " >&6; }
3335 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3336 # If not cross compiling, check that we can run a simple program.
3337 if test "$cross_compiling" != yes; then
3338   if { ac_try='./$ac_file'
3339   { (case "(($ac_try" in
3340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341   *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345   (eval "$ac_try") 2>&5
3346   ac_status=$?
3347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }; }; then
3349     cross_compiling=no
3350   else
3351     if test "$cross_compiling" = maybe; then
3352         cross_compiling=yes
3353     else
3354         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3357 If you meant to cross compile, use \`--host'.
3358 See \`config.log' for more details." >&5
3359 $as_echo "$as_me: error: cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details." >&2;}
3362    { (exit 1); exit 1; }; }; }
3363     fi
3364   fi
3365 fi
3366 { $as_echo "$as_me:$LINENO: result: yes" >&5
3367 $as_echo "yes" >&6; }
3368
3369 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3370 ac_clean_files=$ac_clean_files_save
3371 # Check that the compiler produces executables we can run.  If not, either
3372 # the compiler is broken, or we cross compile.
3373 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3374 $as_echo_n "checking whether we are cross compiling... " >&6; }
3375 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3376 $as_echo "$cross_compiling" >&6; }
3377
3378 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3379 $as_echo_n "checking for suffix of executables... " >&6; }
3380 if { (ac_try="$ac_link"
3381 case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3386 $as_echo "$ac_try_echo") >&5
3387   (eval "$ac_link") 2>&5
3388   ac_status=$?
3389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; then
3391   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe'), while it won't with
3394 # `rm'.
3395 for ac_file in conftest.exe conftest conftest.*; do
3396   test -f "$ac_file" || continue
3397   case $ac_file in
3398     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400           break;;
3401     * ) break;;
3402   esac
3403 done
3404 else
3405   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details." >&5
3409 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details." >&2;}
3411    { (exit 1); exit 1; }; }; }
3412 fi
3413
3414 rm -f conftest$ac_cv_exeext
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3416 $as_echo "$ac_cv_exeext" >&6; }
3417
3418 rm -f conftest.$ac_ext
3419 EXEEXT=$ac_cv_exeext
3420 ac_exeext=$EXEEXT
3421 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3422 $as_echo_n "checking for suffix of object files... " >&6; }
3423 if test "${ac_cv_objext+set}" = set; then
3424   $as_echo_n "(cached) " >&6
3425 else
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432
3433 int
3434 main ()
3435 {
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.o conftest.obj
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448 $as_echo "$ac_try_echo") >&5
3449   (eval "$ac_compile") 2>&5
3450   ac_status=$?
3451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); }; then
3453   for ac_file in conftest.o conftest.obj conftest.*; do
3454   test -f "$ac_file" || continue;
3455   case $ac_file in
3456     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3457     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3458        break;;
3459   esac
3460 done
3461 else
3462   $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3468 See \`config.log' for more details." >&5
3469 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3470 See \`config.log' for more details." >&2;}
3471    { (exit 1); exit 1; }; }; }
3472 fi
3473
3474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3475 fi
3476 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3477 $as_echo "$ac_cv_objext" >&6; }
3478 OBJEXT=$ac_cv_objext
3479 ac_objext=$OBJEXT
3480 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3481 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3482 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3483   $as_echo_n "(cached) " >&6
3484 else
3485   cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491
3492 int
3493 main ()
3494 {
3495 #ifndef __GNUC__
3496        choke me
3497 #endif
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510 $as_echo "$ac_try_echo") >&5
3511   (eval "$ac_compile") 2>conftest.er1
3512   ac_status=$?
3513   grep -v '^ *+' conftest.er1 >conftest.err
3514   rm -f conftest.er1
3515   cat conftest.err >&5
3516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); } && {
3518          test -z "$ac_c_werror_flag" ||
3519          test ! -s conftest.err
3520        } && test -s conftest.$ac_objext; then
3521   ac_compiler_gnu=yes
3522 else
3523   $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3525
3526         ac_compiler_gnu=no
3527 fi
3528
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3531
3532 fi
3533 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3534 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3535 if test $ac_compiler_gnu = yes; then
3536   GCC=yes
3537 else
3538   GCC=
3539 fi
3540 ac_test_CFLAGS=${CFLAGS+set}
3541 ac_save_CFLAGS=$CFLAGS
3542 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3543 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3544 if test "${ac_cv_prog_cc_g+set}" = set; then
3545   $as_echo_n "(cached) " >&6
3546 else
3547   ac_save_c_werror_flag=$ac_c_werror_flag
3548    ac_c_werror_flag=yes
3549    ac_cv_prog_cc_g=no
3550    CFLAGS="-g"
3551    cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557
3558 int
3559 main ()
3560 {
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570   *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574   (eval "$ac_compile") 2>conftest.er1
3575   ac_status=$?
3576   grep -v '^ *+' conftest.er1 >conftest.err
3577   rm -f conftest.er1
3578   cat conftest.err >&5
3579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); } && {
3581          test -z "$ac_c_werror_flag" ||
3582          test ! -s conftest.err
3583        } && test -s conftest.$ac_objext; then
3584   ac_cv_prog_cc_g=yes
3585 else
3586   $as_echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3588
3589         CFLAGS=""
3590       cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h.  */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h.  */
3596
3597 int
3598 main ()
3599 {
3600
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3612 $as_echo "$ac_try_echo") >&5
3613   (eval "$ac_compile") 2>conftest.er1
3614   ac_status=$?
3615   grep -v '^ *+' conftest.er1 >conftest.err
3616   rm -f conftest.er1
3617   cat conftest.err >&5
3618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); } && {
3620          test -z "$ac_c_werror_flag" ||
3621          test ! -s conftest.err
3622        } && test -s conftest.$ac_objext; then
3623   :
3624 else
3625   $as_echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628         ac_c_werror_flag=$ac_save_c_werror_flag
3629          CFLAGS="-g"
3630          cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.$ac_objext
3646 if { (ac_try="$ac_compile"
3647 case "(($ac_try" in
3648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649   *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3652 $as_echo "$ac_try_echo") >&5
3653   (eval "$ac_compile") 2>conftest.er1
3654   ac_status=$?
3655   grep -v '^ *+' conftest.er1 >conftest.err
3656   rm -f conftest.er1
3657   cat conftest.err >&5
3658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); } && {
3660          test -z "$ac_c_werror_flag" ||
3661          test ! -s conftest.err
3662        } && test -s conftest.$ac_objext; then
3663   ac_cv_prog_cc_g=yes
3664 else
3665   $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668
3669 fi
3670
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 fi
3673
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 fi
3676
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678    ac_c_werror_flag=$ac_save_c_werror_flag
3679 fi
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3681 $as_echo "$ac_cv_prog_cc_g" >&6; }
3682 if test "$ac_test_CFLAGS" = set; then
3683   CFLAGS=$ac_save_CFLAGS
3684 elif test $ac_cv_prog_cc_g = yes; then
3685   if test "$GCC" = yes; then
3686     CFLAGS="-g -O2"
3687   else
3688     CFLAGS="-g"
3689   fi
3690 else
3691   if test "$GCC" = yes; then
3692     CFLAGS="-O2"
3693   else
3694     CFLAGS=
3695   fi
3696 fi
3697 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3698 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3699 if test "${ac_cv_prog_cc_c89+set}" = set; then
3700   $as_echo_n "(cached) " >&6
3701 else
3702   ac_cv_prog_cc_c89=no
3703 ac_save_CC=$CC
3704 cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h.  */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h.  */
3710 #include <stdarg.h>
3711 #include <stdio.h>
3712 #include <sys/types.h>
3713 #include <sys/stat.h>
3714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3715 struct buf { int x; };
3716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3717 static char *e (p, i)
3718      char **p;
3719      int i;
3720 {
3721   return p[i];
3722 }
3723 static char *f (char * (*g) (char **, int), char **p, ...)
3724 {
3725   char *s;
3726   va_list v;
3727   va_start (v,p);
3728   s = g (p, va_arg (v,int));
3729   va_end (v);
3730   return s;
3731 }
3732
3733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3734    function prototypes and stuff, but not '\xHH' hex character constants.
3735    These don't provoke an error unfortunately, instead are silently treated
3736    as 'x'.  The following induces an error, until -std is added to get
3737    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3738    array size at least.  It's necessary to write '\x00'==0 to get something
3739    that's true only with -std.  */
3740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3741
3742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3743    inside strings and character constants.  */
3744 #define FOO(x) 'x'
3745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3746
3747 int test (int i, double x);
3748 struct s1 {int (*f) (int a);};
3749 struct s2 {int (*f) (double a);};
3750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3751 int argc;
3752 char **argv;
3753 int
3754 main ()
3755 {
3756 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3762         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3763 do
3764   CC="$ac_save_CC $ac_arg"
3765   rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3767 case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3772 $as_echo "$ac_try_echo") >&5
3773   (eval "$ac_compile") 2>conftest.er1
3774   ac_status=$?
3775   grep -v '^ *+' conftest.er1 >conftest.err
3776   rm -f conftest.er1
3777   cat conftest.err >&5
3778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } && {
3780          test -z "$ac_c_werror_flag" ||
3781          test ! -s conftest.err
3782        } && test -s conftest.$ac_objext; then
3783   ac_cv_prog_cc_c89=$ac_arg
3784 else
3785   $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788
3789 fi
3790
3791 rm -f core conftest.err conftest.$ac_objext
3792   test "x$ac_cv_prog_cc_c89" != "xno" && break
3793 done
3794 rm -f conftest.$ac_ext
3795 CC=$ac_save_CC
3796
3797 fi
3798 # AC_CACHE_VAL
3799 case "x$ac_cv_prog_cc_c89" in
3800   x)
3801     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3802 $as_echo "none needed" >&6; } ;;
3803   xno)
3804     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3805 $as_echo "unsupported" >&6; } ;;
3806   *)
3807     CC="$CC $ac_cv_prog_cc_c89"
3808     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3810 esac
3811
3812
3813 ac_ext=c
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818
3819
3820 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3821 # but has idiosyncrasies of its own.  We assume icc will define
3822 # __INTEL_COMPILER regardless of CFLAGS.
3823
3824 cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h.  */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h.  */
3830
3831 int
3832 main ()
3833 {
3834 #ifndef __INTEL_COMPILER
3835 choke me
3836 #endif
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3843 case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3848 $as_echo "$ac_try_echo") >&5
3849   (eval "$ac_compile") 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } && {
3856          test -z "$ac_c_werror_flag" ||
3857          test ! -s conftest.err
3858        } && test -s conftest.$ac_objext; then
3859   ICC=yes
3860 else
3861   $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864         ICC=no
3865 fi
3866
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868
3869 # Check if it's Sun Studio compiler. We assume that
3870 # __SUNPRO_C will be defined for Sun Studio compilers
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h.  */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881 #ifndef __SUNPRO_C
3882 choke me
3883 #endif
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3890 case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896   (eval "$ac_compile") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } && {
3903          test -z "$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        } && test -s conftest.$ac_objext; then
3906   SUN_STUDIO_CC=yes
3907 else
3908   $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911         SUN_STUDIO_CC=no
3912 fi
3913
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915
3916
3917
3918 unset CFLAGS
3919
3920 #
3921 # Read the template
3922 #
3923 . "$srcdir/src/template/$template" || exit
3924
3925 # CFLAGS are selected so:
3926 # If the user specifies something in the environment, that is used.
3927 # else:  If the template file set something, that is used.
3928 # else:  If coverage was enabled, don't set anything.
3929 # else:  If the compiler is GCC, then we use -O2.
3930 # else:  If the compiler is something else, then we use -O, unless debugging.
3931
3932 if test "$ac_env_CFLAGS_set" = set; then
3933   CFLAGS=$ac_env_CFLAGS_value
3934 elif test "${CFLAGS+set}" = set; then
3935   : # (keep what template set)
3936 elif test "$enable_coverage" = yes; then
3937   : # no optimization by default
3938 elif test "$GCC" = yes; then
3939   CFLAGS="-O2"
3940 else
3941   # if the user selected debug mode, don't use -O
3942   if test "$enable_debug" != yes; then
3943     CFLAGS="-O"
3944   fi
3945 fi
3946
3947 # set CFLAGS_VECTOR from the environment, if available
3948 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
3949   CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
3950 fi
3951
3952 # Some versions of GCC support some additional useful warning flags.
3953 # Check whether they are supported, and add them to CFLAGS if so.
3954 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3955 # but has its own.  Also check other compiler-specific flags here.
3956
3957 if test "$GCC" = yes -a "$ICC" = no; then
3958   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3959   # These work in some but not all gcc versions
3960   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3961 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3962 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3963   $as_echo_n "(cached) " >&6
3964 else
3965   pgac_save_CFLAGS=$CFLAGS
3966 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3967 ac_save_c_werror_flag=$ac_c_werror_flag
3968 ac_c_werror_flag=yes
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h.  */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h.  */
3975
3976 int
3977 main ()
3978 {
3979
3980   ;
3981   return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (ac_try="$ac_compile"
3986 case "(($ac_try" in
3987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988   *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3991 $as_echo "$ac_try_echo") >&5
3992   (eval "$ac_compile") 2>conftest.er1
3993   ac_status=$?
3994   grep -v '^ *+' conftest.er1 >conftest.err
3995   rm -f conftest.er1
3996   cat conftest.err >&5
3997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); } && {
3999          test -z "$ac_c_werror_flag" ||
4000          test ! -s conftest.err
4001        } && test -s conftest.$ac_objext; then
4002   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4003 else
4004   $as_echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4008 fi
4009
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 ac_c_werror_flag=$ac_save_c_werror_flag
4012 CFLAGS="$pgac_save_CFLAGS"
4013 fi
4014 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4015 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4016 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4017   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4018 fi
4019
4020   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4021 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4022 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4023   $as_echo_n "(cached) " >&6
4024 else
4025   pgac_save_CFLAGS=$CFLAGS
4026 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4027 ac_save_c_werror_flag=$ac_c_werror_flag
4028 ac_c_werror_flag=yes
4029 cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h.  */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h.  */
4035
4036 int
4037 main ()
4038 {
4039
4040   ;
4041   return 0;
4042 }
4043 _ACEOF
4044 rm -f conftest.$ac_objext
4045 if { (ac_try="$ac_compile"
4046 case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4051 $as_echo "$ac_try_echo") >&5
4052   (eval "$ac_compile") 2>conftest.er1
4053   ac_status=$?
4054   grep -v '^ *+' conftest.er1 >conftest.err
4055   rm -f conftest.er1
4056   cat conftest.err >&5
4057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); } && {
4059          test -z "$ac_c_werror_flag" ||
4060          test ! -s conftest.err
4061        } && test -s conftest.$ac_objext; then
4062   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4063 else
4064   $as_echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4066
4067         pgac_cv_prog_cc_cflags__Wendif_labels=no
4068 fi
4069
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 ac_c_werror_flag=$ac_save_c_werror_flag
4072 CFLAGS="$pgac_save_CFLAGS"
4073 fi
4074 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4075 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4076 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4077   CFLAGS="$CFLAGS -Wendif-labels"
4078 fi
4079
4080   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4081 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4082 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4083   $as_echo_n "(cached) " >&6
4084 else
4085   pgac_save_CFLAGS=$CFLAGS
4086 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095
4096 int
4097 main ()
4098 {
4099
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4106 case "(($ac_try" in
4107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108   *) ac_try_echo=$ac_try;;
4109 esac
4110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4111 $as_echo "$ac_try_echo") >&5
4112   (eval "$ac_compile") 2>conftest.er1
4113   ac_status=$?
4114   grep -v '^ *+' conftest.er1 >conftest.err
4115   rm -f conftest.er1
4116   cat conftest.err >&5
4117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); } && {
4119          test -z "$ac_c_werror_flag" ||
4120          test ! -s conftest.err
4121        } && test -s conftest.$ac_objext; then
4122   pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4123 else
4124   $as_echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127         pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4128 fi
4129
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 ac_c_werror_flag=$ac_save_c_werror_flag
4132 CFLAGS="$pgac_save_CFLAGS"
4133 fi
4134 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4135 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4136 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4137   CFLAGS="$CFLAGS -Wmissing-format-attribute"
4138 fi
4139
4140   # This was included in -Wall/-Wformat in older GCC versions
4141   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4142 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4143 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4144   $as_echo_n "(cached) " >&6
4145 else
4146   pgac_save_CFLAGS=$CFLAGS
4147 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4148 ac_save_c_werror_flag=$ac_c_werror_flag
4149 ac_c_werror_flag=yes
4150 cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156
4157 int
4158 main ()
4159 {
4160
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext
4166 if { (ac_try="$ac_compile"
4167 case "(($ac_try" in
4168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169   *) ac_try_echo=$ac_try;;
4170 esac
4171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4172 $as_echo "$ac_try_echo") >&5
4173   (eval "$ac_compile") 2>conftest.er1
4174   ac_status=$?
4175   grep -v '^ *+' conftest.er1 >conftest.err
4176   rm -f conftest.er1
4177   cat conftest.err >&5
4178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); } && {
4180          test -z "$ac_c_werror_flag" ||
4181          test ! -s conftest.err
4182        } && test -s conftest.$ac_objext; then
4183   pgac_cv_prog_cc_cflags__Wformat_security=yes
4184 else
4185   $as_echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188         pgac_cv_prog_cc_cflags__Wformat_security=no
4189 fi
4190
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 ac_c_werror_flag=$ac_save_c_werror_flag
4193 CFLAGS="$pgac_save_CFLAGS"
4194 fi
4195 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4196 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4197 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4198   CFLAGS="$CFLAGS -Wformat-security"
4199 fi
4200
4201   # Disable strict-aliasing rules; needed for gcc 3.3+
4202   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4203 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4204 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4205   $as_echo_n "(cached) " >&6
4206 else
4207   pgac_save_CFLAGS=$CFLAGS
4208 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4209 ac_save_c_werror_flag=$ac_c_werror_flag
4210 ac_c_werror_flag=yes
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217
4218 int
4219 main ()
4220 {
4221
4222   ;
4223   return 0;
4224 }
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (ac_try="$ac_compile"
4228 case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4233 $as_echo "$ac_try_echo") >&5
4234   (eval "$ac_compile") 2>conftest.er1
4235   ac_status=$?
4236   grep -v '^ *+' conftest.er1 >conftest.err
4237   rm -f conftest.er1
4238   cat conftest.err >&5
4239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); } && {
4241          test -z "$ac_c_werror_flag" ||
4242          test ! -s conftest.err
4243        } && test -s conftest.$ac_objext; then
4244   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4245 else
4246   $as_echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4250 fi
4251
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 ac_c_werror_flag=$ac_save_c_werror_flag
4254 CFLAGS="$pgac_save_CFLAGS"
4255 fi
4256 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4257 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4258 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4259   CFLAGS="$CFLAGS -fno-strict-aliasing"
4260 fi
4261
4262   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4263   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4264 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4265 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4266   $as_echo_n "(cached) " >&6
4267 else
4268   pgac_save_CFLAGS=$CFLAGS
4269 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4270 ac_save_c_werror_flag=$ac_c_werror_flag
4271 ac_c_werror_flag=yes
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h.  */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h.  */
4278
4279 int
4280 main ()
4281 {
4282
4283   ;
4284   return 0;
4285 }
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (ac_try="$ac_compile"
4289 case "(($ac_try" in
4290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291   *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4294 $as_echo "$ac_try_echo") >&5
4295   (eval "$ac_compile") 2>conftest.er1
4296   ac_status=$?
4297   grep -v '^ *+' conftest.er1 >conftest.err
4298   rm -f conftest.er1
4299   cat conftest.err >&5
4300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); } && {
4302          test -z "$ac_c_werror_flag" ||
4303          test ! -s conftest.err
4304        } && test -s conftest.$ac_objext; then
4305   pgac_cv_prog_cc_cflags__fwrapv=yes
4306 else
4307   $as_echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310         pgac_cv_prog_cc_cflags__fwrapv=no
4311 fi
4312
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_c_werror_flag=$ac_save_c_werror_flag
4315 CFLAGS="$pgac_save_CFLAGS"
4316 fi
4317 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4318 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4319 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4320   CFLAGS="$CFLAGS -fwrapv"
4321 fi
4322
4323   # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4324   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4325 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4326 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4327   $as_echo_n "(cached) " >&6
4328 else
4329   pgac_save_CFLAGS=$CFLAGS
4330 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4331 ac_save_c_werror_flag=$ac_c_werror_flag
4332 ac_c_werror_flag=yes
4333 cat >conftest.$ac_ext <<_ACEOF
4334 /* confdefs.h.  */
4335 _ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h.  */
4339
4340 int
4341 main ()
4342 {
4343
4344   ;
4345   return 0;
4346 }
4347 _ACEOF
4348 rm -f conftest.$ac_objext
4349 if { (ac_try="$ac_compile"
4350 case "(($ac_try" in
4351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352   *) ac_try_echo=$ac_try;;
4353 esac
4354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4355 $as_echo "$ac_try_echo") >&5
4356   (eval "$ac_compile") 2>conftest.er1
4357   ac_status=$?
4358   grep -v '^ *+' conftest.er1 >conftest.err
4359   rm -f conftest.er1
4360   cat conftest.err >&5
4361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); } && {
4363          test -z "$ac_c_werror_flag" ||
4364          test ! -s conftest.err
4365        } && test -s conftest.$ac_objext; then
4366   pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4367 else
4368   $as_echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371         pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4372 fi
4373
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 ac_c_werror_flag=$ac_save_c_werror_flag
4376 CFLAGS="$pgac_save_CFLAGS"
4377 fi
4378 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4379 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4380 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4381   CFLAGS="$CFLAGS -fexcess-precision=standard"
4382 fi
4383
4384   # Optimization flags for specific files that benefit from vectorization
4385   { $as_echo "$as_me:$LINENO: checking whether $CC supports -funroll-loops" >&5
4386 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4387 if test "${pgac_cv_prog_cc_cflags__funroll_loops+set}" = set; then
4388   $as_echo_n "(cached) " >&6
4389 else
4390   pgac_save_CFLAGS=$CFLAGS
4391 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4392 ac_save_c_werror_flag=$ac_c_werror_flag
4393 ac_c_werror_flag=yes
4394 cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h.  */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h.  */
4400
4401 int
4402 main ()
4403 {
4404
4405   ;
4406   return 0;
4407 }
4408 _ACEOF
4409 rm -f conftest.$ac_objext
4410 if { (ac_try="$ac_compile"
4411 case "(($ac_try" in
4412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413   *) ac_try_echo=$ac_try;;
4414 esac
4415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4416 $as_echo "$ac_try_echo") >&5
4417   (eval "$ac_compile") 2>conftest.er1
4418   ac_status=$?
4419   grep -v '^ *+' conftest.er1 >conftest.err
4420   rm -f conftest.er1
4421   cat conftest.err >&5
4422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423   (exit $ac_status); } && {
4424          test -z "$ac_c_werror_flag" ||
4425          test ! -s conftest.err
4426        } && test -s conftest.$ac_objext; then
4427   pgac_cv_prog_cc_cflags__funroll_loops=yes
4428 else
4429   $as_echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432         pgac_cv_prog_cc_cflags__funroll_loops=no
4433 fi
4434
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 ac_c_werror_flag=$ac_save_c_werror_flag
4437 CFLAGS="$pgac_save_CFLAGS"
4438 fi
4439 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4440 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4441 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4442   CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4443 fi
4444
4445   { $as_echo "$as_me:$LINENO: checking whether $CC supports -ftree-vectorize" >&5
4446 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4447 if test "${pgac_cv_prog_cc_cflags__ftree_vectorize+set}" = set; then
4448   $as_echo_n "(cached) " >&6
4449 else
4450   pgac_save_CFLAGS=$CFLAGS
4451 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4452 ac_save_c_werror_flag=$ac_c_werror_flag
4453 ac_c_werror_flag=yes
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460
4461 int
4462 main ()
4463 {
4464
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (ac_try="$ac_compile"
4471 case "(($ac_try" in
4472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473   *) ac_try_echo=$ac_try;;
4474 esac
4475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4476 $as_echo "$ac_try_echo") >&5
4477   (eval "$ac_compile") 2>conftest.er1
4478   ac_status=$?
4479   grep -v '^ *+' conftest.er1 >conftest.err
4480   rm -f conftest.er1
4481   cat conftest.err >&5
4482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); } && {
4484          test -z "$ac_c_werror_flag" ||
4485          test ! -s conftest.err
4486        } && test -s conftest.$ac_objext; then
4487   pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4488 else
4489   $as_echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492         pgac_cv_prog_cc_cflags__ftree_vectorize=no
4493 fi
4494
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 ac_c_werror_flag=$ac_save_c_werror_flag
4497 CFLAGS="$pgac_save_CFLAGS"
4498 fi
4499 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4500 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4501 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4502   CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4503 fi
4504
4505 elif test "$ICC" = yes; then
4506   # Intel's compiler has a bug/misoptimization in checking for
4507   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4508   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4509 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4510 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4511   $as_echo_n "(cached) " >&6
4512 else
4513   pgac_save_CFLAGS=$CFLAGS
4514 CFLAGS="$pgac_save_CFLAGS -mp1"
4515 ac_save_c_werror_flag=$ac_c_werror_flag
4516 ac_c_werror_flag=yes
4517 cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h.  */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h.  */
4523
4524 int
4525 main ()
4526 {
4527
4528   ;
4529   return 0;
4530 }
4531 _ACEOF
4532 rm -f conftest.$ac_objext
4533 if { (ac_try="$ac_compile"
4534 case "(($ac_try" in
4535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536   *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4539 $as_echo "$ac_try_echo") >&5
4540   (eval "$ac_compile") 2>conftest.er1
4541   ac_status=$?
4542   grep -v '^ *+' conftest.er1 >conftest.err
4543   rm -f conftest.er1
4544   cat conftest.err >&5
4545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } && {
4547          test -z "$ac_c_werror_flag" ||
4548          test ! -s conftest.err
4549        } && test -s conftest.$ac_objext; then
4550   pgac_cv_prog_cc_cflags__mp1=yes
4551 else
4552   $as_echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555         pgac_cv_prog_cc_cflags__mp1=no
4556 fi
4557
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 ac_c_werror_flag=$ac_save_c_werror_flag
4560 CFLAGS="$pgac_save_CFLAGS"
4561 fi
4562 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4563 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4564 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4565   CFLAGS="$CFLAGS -mp1"
4566 fi
4567
4568   # Make sure strict aliasing is off (though this is said to be the default)
4569   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4570 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4571 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4572   $as_echo_n "(cached) " >&6
4573 else
4574   pgac_save_CFLAGS=$CFLAGS
4575 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4576 ac_save_c_werror_flag=$ac_c_werror_flag
4577 ac_c_werror_flag=yes
4578 cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584
4585 int
4586 main ()
4587 {
4588
4589   ;
4590   return 0;
4591 }
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4595 case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601   (eval "$ac_compile") 2>conftest.er1
4602   ac_status=$?
4603   grep -v '^ *+' conftest.er1 >conftest.err
4604   rm -f conftest.er1
4605   cat conftest.err >&5
4606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } && {
4608          test -z "$ac_c_werror_flag" ||
4609          test ! -s conftest.err
4610        } && test -s conftest.$ac_objext; then
4611   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4612 else
4613   $as_echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4615
4616         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4617 fi
4618
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_c_werror_flag=$ac_save_c_werror_flag
4621 CFLAGS="$pgac_save_CFLAGS"
4622 fi
4623 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4624 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4625 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4626   CFLAGS="$CFLAGS -fno-strict-aliasing"
4627 fi
4628
4629 elif test "$PORTNAME" = "aix"; then
4630   # AIX's xlc has to have strict aliasing turned off too
4631   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4632 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4633 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4634   $as_echo_n "(cached) " >&6
4635 else
4636   pgac_save_CFLAGS=$CFLAGS
4637 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4638 ac_save_c_werror_flag=$ac_c_werror_flag
4639 ac_c_werror_flag=yes
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646
4647 int
4648 main ()
4649 {
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4657 case "(($ac_try" in
4658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659   *) ac_try_echo=$ac_try;;
4660 esac
4661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4662 $as_echo "$ac_try_echo") >&5
4663   (eval "$ac_compile") 2>conftest.er1
4664   ac_status=$?
4665   grep -v '^ *+' conftest.er1 >conftest.err
4666   rm -f conftest.er1
4667   cat conftest.err >&5
4668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } && {
4670          test -z "$ac_c_werror_flag" ||
4671          test ! -s conftest.err
4672        } && test -s conftest.$ac_objext; then
4673   pgac_cv_prog_cc_cflags__qnoansialias=yes
4674 else
4675   $as_echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678         pgac_cv_prog_cc_cflags__qnoansialias=no
4679 fi
4680
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 ac_c_werror_flag=$ac_save_c_werror_flag
4683 CFLAGS="$pgac_save_CFLAGS"
4684 fi
4685 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4686 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4687 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4688   CFLAGS="$CFLAGS -qnoansialias"
4689 fi
4690
4691 elif test "$PORTNAME" = "hpux"; then
4692   # On some versions of HP-UX, libm functions do not set errno by default.
4693   # Fix that by using +Olibmerrno if the compiler recognizes it.
4694   { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4695 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4696 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4697   $as_echo_n "(cached) " >&6
4698 else
4699   pgac_save_CFLAGS=$CFLAGS
4700 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4701 ac_save_c_werror_flag=$ac_c_werror_flag
4702 ac_c_werror_flag=yes
4703 cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h.  */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h.  */
4709
4710 int
4711 main ()
4712 {
4713
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718 rm -f conftest.$ac_objext
4719 if { (ac_try="$ac_compile"
4720 case "(($ac_try" in
4721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722   *) ac_try_echo=$ac_try;;
4723 esac
4724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4725 $as_echo "$ac_try_echo") >&5
4726   (eval "$ac_compile") 2>conftest.er1
4727   ac_status=$?
4728   grep -v '^ *+' conftest.er1 >conftest.err
4729   rm -f conftest.er1
4730   cat conftest.err >&5
4731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); } && {
4733          test -z "$ac_c_werror_flag" ||
4734          test ! -s conftest.err
4735        } && test -s conftest.$ac_objext; then
4736   pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4737 else
4738   $as_echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4740
4741         pgac_cv_prog_cc_cflags_pOlibmerrno=no
4742 fi
4743
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_c_werror_flag=$ac_save_c_werror_flag
4746 CFLAGS="$pgac_save_CFLAGS"
4747 fi
4748 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4749 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4750 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4751   CFLAGS="$CFLAGS +Olibmerrno"
4752 fi
4753
4754 fi
4755
4756 CFLAGS_VECTOR=$CFLAGS_VECTOR
4757
4758
4759 # supply -g if --enable-debug
4760 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4761   CFLAGS="$CFLAGS -g"
4762 fi
4763
4764 # enable code coverage if --enable-coverage
4765 if test "$enable_coverage" = yes; then
4766   if test "$GCC" = yes; then
4767     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4768   else
4769     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4770 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4771    { (exit 1); exit 1; }; }
4772   fi
4773 fi
4774
4775 # enable profiling if --enable-profiling
4776 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4777   if test "$GCC" = yes; then
4778
4779 cat >>confdefs.h <<\_ACEOF
4780 #define PROFILE_PID_DIR 1
4781 _ACEOF
4782
4783     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4784   else
4785     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4786 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4787    { (exit 1); exit 1; }; }
4788   fi
4789 fi
4790
4791 # We already have this in Makefile.win32, but configure needs it too
4792 if test "$PORTNAME" = "win32"; then
4793   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4794 fi
4795
4796 # Check if the compiler still works with the template settings
4797 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4798 $as_echo_n "checking whether the C compiler still works... " >&6; }
4799 cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h.  */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h.  */
4805
4806 int
4807 main ()
4808 {
4809 return 0;
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (ac_try="$ac_link"
4816 case "(($ac_try" in
4817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818   *) ac_try_echo=$ac_try;;
4819 esac
4820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4821 $as_echo "$ac_try_echo") >&5
4822   (eval "$ac_link") 2>conftest.er1
4823   ac_status=$?
4824   grep -v '^ *+' conftest.er1 >conftest.err
4825   rm -f conftest.er1
4826   cat conftest.err >&5
4827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); } && {
4829          test -z "$ac_c_werror_flag" ||
4830          test ! -s conftest.err
4831        } && test -s conftest$ac_exeext && {
4832          test "$cross_compiling" = yes ||
4833          $as_test_x conftest$ac_exeext
4834        }; then
4835   { $as_echo "$as_me:$LINENO: result: yes" >&5
4836 $as_echo "yes" >&6; }
4837 else
4838   $as_echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841         { $as_echo "$as_me:$LINENO: result: no" >&5
4842 $as_echo "no" >&6; }
4843    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4844 $as_echo "$as_me: error: cannot proceed" >&2;}
4845    { (exit 1); exit 1; }; }
4846 fi
4847
4848 rm -rf conftest.dSYM
4849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4850       conftest$ac_exeext conftest.$ac_ext
4851
4852 # Defend against gcc -ffast-math
4853 if test "$GCC" = yes; then
4854 cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h.  */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h.  */
4860
4861 int
4862 main ()
4863 {
4864 #ifdef __FAST_MATH__
4865 choke me
4866 #endif
4867   ;
4868   return 0;
4869 }
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (ac_try="$ac_compile"
4873 case "(($ac_try" in
4874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875   *) ac_try_echo=$ac_try;;
4876 esac
4877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4878 $as_echo "$ac_try_echo") >&5
4879   (eval "$ac_compile") 2>conftest.er1
4880   ac_status=$?
4881   grep -v '^ *+' conftest.er1 >conftest.err
4882   rm -f conftest.er1
4883   cat conftest.err >&5
4884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); } && {
4886          test -z "$ac_c_werror_flag" ||
4887          test ! -s conftest.err
4888        } && test -s conftest.$ac_objext; then
4889   :
4890 else
4891   $as_echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4895 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4896    { (exit 1); exit 1; }; }
4897 fi
4898
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 fi
4901
4902 ac_ext=c
4903 ac_cpp='$CPP $CPPFLAGS'
4904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4907 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4908 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4909 # On Suns, sometimes $CPP names a directory.
4910 if test -n "$CPP" && test -d "$CPP"; then
4911   CPP=
4912 fi
4913 if test -z "$CPP"; then
4914   if test "${ac_cv_prog_CPP+set}" = set; then
4915   $as_echo_n "(cached) " >&6
4916 else
4917       # Double quotes because CPP needs to be expanded
4918     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4919     do
4920       ac_preproc_ok=false
4921 for ac_c_preproc_warn_flag in '' yes
4922 do
4923   # Use a header file that comes with gcc, so configuring glibc
4924   # with a fresh cross-compiler works.
4925   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926   # <limits.h> exists even on freestanding compilers.
4927   # On the NeXT, cc -E runs the code through the compiler's parser,
4928   # not just through cpp. "Syntax error" is here to catch this case.
4929   cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935 #ifdef __STDC__
4936 # include <limits.h>
4937 #else
4938 # include <assert.h>
4939 #endif
4940                      Syntax error
4941 _ACEOF
4942 if { (ac_try="$ac_cpp conftest.$ac_ext"
4943 case "(($ac_try" in
4944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945   *) ac_try_echo=$ac_try;;
4946 esac
4947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4948 $as_echo "$ac_try_echo") >&5
4949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4950   ac_status=$?
4951   grep -v '^ *+' conftest.er1 >conftest.err
4952   rm -f conftest.er1
4953   cat conftest.err >&5
4954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); } >/dev/null && {
4956          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4957          test ! -s conftest.err
4958        }; then
4959   :
4960 else
4961   $as_echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964   # Broken: fails on valid input.
4965 continue
4966 fi
4967
4968 rm -f conftest.err conftest.$ac_ext
4969
4970   # OK, works on sane cases.  Now check whether nonexistent headers
4971   # can be detected and how.
4972   cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h.  */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h.  */
4978 #include <ac_nonexistent.h>
4979 _ACEOF
4980 if { (ac_try="$ac_cpp conftest.$ac_ext"
4981 case "(($ac_try" in
4982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983   *) ac_try_echo=$ac_try;;
4984 esac
4985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4986 $as_echo "$ac_try_echo") >&5
4987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4988   ac_status=$?
4989   grep -v '^ *+' conftest.er1 >conftest.err
4990   rm -f conftest.er1
4991   cat conftest.err >&5
4992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } >/dev/null && {
4994          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4995          test ! -s conftest.err
4996        }; then
4997   # Broken: success on invalid input.
4998 continue
4999 else
5000   $as_echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5002
5003   # Passes both tests.
5004 ac_preproc_ok=:
5005 break
5006 fi
5007
5008 rm -f conftest.err conftest.$ac_ext
5009
5010 done
5011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5012 rm -f conftest.err conftest.$ac_ext
5013 if $ac_preproc_ok; then
5014   break
5015 fi
5016
5017     done
5018     ac_cv_prog_CPP=$CPP
5019
5020 fi
5021   CPP=$ac_cv_prog_CPP
5022 else
5023   ac_cv_prog_CPP=$CPP
5024 fi
5025 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5026 $as_echo "$CPP" >&6; }
5027 ac_preproc_ok=false
5028 for ac_c_preproc_warn_flag in '' yes
5029 do
5030   # Use a header file that comes with gcc, so configuring glibc
5031   # with a fresh cross-compiler works.
5032   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033   # <limits.h> exists even on freestanding compilers.
5034   # On the NeXT, cc -E runs the code through the compiler's parser,
5035   # not just through cpp. "Syntax error" is here to catch this case.
5036   cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h.  */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h.  */
5042 #ifdef __STDC__
5043 # include <limits.h>
5044 #else
5045 # include <assert.h>
5046 #endif
5047                      Syntax error
5048 _ACEOF
5049 if { (ac_try="$ac_cpp conftest.$ac_ext"
5050 case "(($ac_try" in
5051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052   *) ac_try_echo=$ac_try;;
5053 esac
5054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5055 $as_echo "$ac_try_echo") >&5
5056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5057   ac_status=$?
5058   grep -v '^ *+' conftest.er1 >conftest.err
5059   rm -f conftest.er1
5060   cat conftest.err >&5
5061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } >/dev/null && {
5063          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5064          test ! -s conftest.err
5065        }; then
5066   :
5067 else
5068   $as_echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5070
5071   # Broken: fails on valid input.
5072 continue
5073 fi
5074
5075 rm -f conftest.err conftest.$ac_ext
5076
5077   # OK, works on sane cases.  Now check whether nonexistent headers
5078   # can be detected and how.
5079   cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h.  */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h.  */
5085 #include <ac_nonexistent.h>
5086 _ACEOF
5087 if { (ac_try="$ac_cpp conftest.$ac_ext"
5088 case "(($ac_try" in
5089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090   *) ac_try_echo=$ac_try;;
5091 esac
5092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5093 $as_echo "$ac_try_echo") >&5
5094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5095   ac_status=$?
5096   grep -v '^ *+' conftest.er1 >conftest.err
5097   rm -f conftest.er1
5098   cat conftest.err >&5
5099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); } >/dev/null && {
5101          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5102          test ! -s conftest.err
5103        }; then
5104   # Broken: success on invalid input.
5105 continue
5106 else
5107   $as_echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110   # Passes both tests.
5111 ac_preproc_ok=:
5112 break
5113 fi
5114
5115 rm -f conftest.err conftest.$ac_ext
5116
5117 done
5118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119 rm -f conftest.err conftest.$ac_ext
5120 if $ac_preproc_ok; then
5121   :
5122 else
5123   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5125 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5126 See \`config.log' for more details." >&5
5127 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5128 See \`config.log' for more details." >&2;}
5129    { (exit 1); exit 1; }; }; }
5130 fi
5131
5132 ac_ext=c
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137
5138
5139
5140
5141 #
5142 # Set up TAS assembly code if needed; the template file has now had its
5143 # chance to request this.
5144 #
5145 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5146
5147
5148 if test "$need_tas" = yes ; then
5149   TAS=tas.o
5150 else
5151   TAS=""
5152 fi
5153
5154
5155
5156 #
5157 # Automatic dependency tracking
5158 #
5159
5160
5161 # Check whether --enable-depend was given.
5162 if test "${enable_depend+set}" = set; then
5163   enableval=$enable_depend;
5164   case $enableval in
5165     yes)
5166       autodepend=yes
5167       ;;
5168     no)
5169       :
5170       ;;
5171     *)
5172       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5173 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5174    { (exit 1); exit 1; }; }
5175       ;;
5176   esac
5177
5178 else
5179   enable_depend=no
5180
5181 fi
5182
5183
5184
5185
5186
5187 #
5188 # Enable assert checks
5189 #
5190
5191
5192 # Check whether --enable-cassert was given.
5193 if test "${enable_cassert+set}" = set; then
5194   enableval=$enable_cassert;
5195   case $enableval in
5196     yes)
5197
5198 cat >>confdefs.h <<\_ACEOF
5199 #define USE_ASSERT_CHECKING 1
5200 _ACEOF
5201
5202       ;;
5203     no)
5204       :
5205       ;;
5206     *)
5207       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5208 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5209    { (exit 1); exit 1; }; }
5210       ;;
5211   esac
5212
5213 else
5214   enable_cassert=no
5215
5216 fi
5217
5218
5219
5220
5221 #
5222 # Include directories
5223 #
5224 ac_save_IFS=$IFS
5225 IFS="${IFS}${PATH_SEPARATOR}"
5226 # SRCH_INC comes from the template file
5227 for dir in $with_includes $SRCH_INC; do
5228   if test -d "$dir"; then
5229     INCLUDES="$INCLUDES -I$dir"
5230   else
5231     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5232 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5233   fi
5234 done
5235 IFS=$ac_save_IFS
5236
5237
5238
5239 #
5240 # Library directories
5241 #
5242 ac_save_IFS=$IFS
5243 IFS="${IFS}${PATH_SEPARATOR}"
5244 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5245 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5246   if test -d "$dir"; then
5247     LIBDIRS="$LIBDIRS -L$dir"
5248   else
5249     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5250 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5251   fi
5252 done
5253 IFS=$ac_save_IFS
5254
5255 #
5256 # Enable thread-safe client libraries
5257 #
5258 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5259 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5260
5261
5262 # Check whether --enable-thread-safety was given.
5263 if test "${enable_thread_safety+set}" = set; then
5264   enableval=$enable_thread_safety;
5265   case $enableval in
5266     yes)
5267       :
5268       ;;
5269     no)
5270       :
5271       ;;
5272     *)
5273       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5274 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5275    { (exit 1); exit 1; }; }
5276       ;;
5277   esac
5278
5279 else
5280   enable_thread_safety=yes
5281
5282 fi
5283
5284
5285 if test "$enable_thread_safety" = yes; then
5286
5287 cat >>confdefs.h <<\_ACEOF
5288 #define ENABLE_THREAD_SAFETY 1
5289 _ACEOF
5290
5291 fi
5292 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5293 $as_echo "$enable_thread_safety" >&6; }
5294
5295
5296 #
5297 # Optionally build Tcl modules (PL/Tcl)
5298 #
5299 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5300 $as_echo_n "checking whether to build with Tcl... " >&6; }
5301
5302
5303
5304 # Check whether --with-tcl was given.
5305 if test "${with_tcl+set}" = set; then
5306   withval=$with_tcl;
5307   case $withval in
5308     yes)
5309       :
5310       ;;
5311     no)
5312       :
5313       ;;
5314     *)
5315       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5316 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5317    { (exit 1); exit 1; }; }
5318       ;;
5319   esac
5320
5321 else
5322   with_tcl=no
5323
5324 fi
5325
5326
5327 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5328 $as_echo "$with_tcl" >&6; }
5329
5330
5331 # We see if the path to the Tcl/Tk configuration scripts is specified.
5332 # This will override the use of tclsh to find the paths to search.
5333
5334
5335
5336
5337 # Check whether --with-tclconfig was given.
5338 if test "${with_tclconfig+set}" = set; then
5339   withval=$with_tclconfig;
5340   case $withval in
5341     yes)
5342       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5343 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5344    { (exit 1); exit 1; }; }
5345       ;;
5346     no)
5347       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5348 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5349    { (exit 1); exit 1; }; }
5350       ;;
5351     *)
5352
5353       ;;
5354   esac
5355
5356 fi
5357
5358
5359
5360 #
5361 # Optionally build Perl modules (PL/Perl)
5362 #
5363 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5364 $as_echo_n "checking whether to build Perl modules... " >&6; }
5365
5366
5367
5368 # Check whether --with-perl was given.
5369 if test "${with_perl+set}" = set; then
5370   withval=$with_perl;
5371   case $withval in
5372     yes)
5373       :
5374       ;;
5375     no)
5376       :
5377       ;;
5378     *)
5379       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5380 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5381    { (exit 1); exit 1; }; }
5382       ;;
5383   esac
5384
5385 else
5386   with_perl=no
5387
5388 fi
5389
5390
5391 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5392 $as_echo "$with_perl" >&6; }
5393
5394
5395 #
5396 # Optionally build Python modules (PL/Python)
5397 #
5398 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5399 $as_echo_n "checking whether to build Python modules... " >&6; }
5400
5401
5402
5403 # Check whether --with-python was given.
5404 if test "${with_python+set}" = set; then
5405   withval=$with_python;
5406   case $withval in
5407     yes)
5408       :
5409       ;;
5410     no)
5411       :
5412       ;;
5413     *)
5414       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5415 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5416    { (exit 1); exit 1; }; }
5417       ;;
5418   esac
5419
5420 else
5421   with_python=no
5422
5423 fi
5424
5425
5426 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5427 $as_echo "$with_python" >&6; }
5428
5429
5430 #
5431 # GSSAPI
5432 #
5433 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5434 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5435
5436
5437
5438 # Check whether --with-gssapi was given.
5439 if test "${with_gssapi+set}" = set; then
5440   withval=$with_gssapi;
5441   case $withval in
5442     yes)
5443
5444
5445 cat >>confdefs.h <<\_ACEOF
5446 #define ENABLE_GSS 1
5447 _ACEOF
5448
5449   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5450
5451       ;;
5452     no)
5453       :
5454       ;;
5455     *)
5456       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5457 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5458    { (exit 1); exit 1; }; }
5459       ;;
5460   esac
5461
5462 else
5463   with_gssapi=no
5464
5465 fi
5466
5467
5468 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5469 $as_echo "$with_gssapi" >&6; }
5470
5471 #
5472 # Kerberos 5
5473 #
5474 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5475 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5476
5477
5478
5479 # Check whether --with-krb5 was given.
5480 if test "${with_krb5+set}" = set; then
5481   withval=$with_krb5;
5482   case $withval in
5483     yes)
5484
5485
5486 cat >>confdefs.h <<\_ACEOF
5487 #define KRB5 1
5488 _ACEOF
5489
5490   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5491
5492       ;;
5493     no)
5494       :
5495       ;;
5496     *)
5497       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5498 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5499    { (exit 1); exit 1; }; }
5500       ;;
5501   esac
5502
5503 else
5504   with_krb5=no
5505
5506 fi
5507
5508
5509 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5510 $as_echo "$with_krb5" >&6; }
5511
5512
5513
5514
5515
5516 #
5517 # Kerberos configuration parameters
5518 #
5519
5520
5521
5522 # Check whether --with-krb-srvnam was given.
5523 if test "${with_krb_srvnam+set}" = set; then
5524   withval=$with_krb_srvnam;
5525   case $withval in
5526     yes)
5527       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5528 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5529    { (exit 1); exit 1; }; }
5530       ;;
5531     no)
5532       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5533 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5534    { (exit 1); exit 1; }; }
5535       ;;
5536     *)
5537
5538       ;;
5539   esac
5540
5541 else
5542   with_krb_srvnam="postgres"
5543 fi
5544
5545
5546
5547 cat >>confdefs.h <<_ACEOF
5548 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5549 _ACEOF
5550
5551
5552
5553 #
5554 # PAM
5555 #
5556 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5557 $as_echo_n "checking whether to build with PAM support... " >&6; }
5558
5559
5560
5561 # Check whether --with-pam was given.
5562 if test "${with_pam+set}" = set; then
5563   withval=$with_pam;
5564   case $withval in
5565     yes)
5566
5567 cat >>confdefs.h <<\_ACEOF
5568 #define USE_PAM 1
5569 _ACEOF
5570
5571       ;;
5572     no)
5573       :
5574       ;;
5575     *)
5576       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5577 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5578    { (exit 1); exit 1; }; }
5579       ;;
5580   esac
5581
5582 else
5583   with_pam=no
5584
5585 fi
5586
5587
5588 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5589 $as_echo "$with_pam" >&6; }
5590
5591
5592 #
5593 # LDAP
5594 #
5595 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5596 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5597
5598
5599
5600 # Check whether --with-ldap was given.
5601 if test "${with_ldap+set}" = set; then
5602   withval=$with_ldap;
5603   case $withval in
5604     yes)
5605
5606 cat >>confdefs.h <<\_ACEOF
5607 #define USE_LDAP 1
5608 _ACEOF
5609
5610       ;;
5611     no)
5612       :
5613       ;;
5614     *)
5615       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5616 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5617    { (exit 1); exit 1; }; }
5618       ;;
5619   esac
5620
5621 else
5622   with_ldap=no
5623
5624 fi
5625
5626
5627 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5628 $as_echo "$with_ldap" >&6; }
5629
5630
5631 #
5632 # Bonjour
5633 #
5634 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5635 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5636
5637
5638
5639 # Check whether --with-bonjour was given.
5640 if test "${with_bonjour+set}" = set; then
5641   withval=$with_bonjour;
5642   case $withval in
5643     yes)
5644
5645 cat >>confdefs.h <<\_ACEOF
5646 #define USE_BONJOUR 1
5647 _ACEOF
5648
5649       ;;
5650     no)
5651       :
5652       ;;
5653     *)
5654       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5655 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5656    { (exit 1); exit 1; }; }
5657       ;;
5658   esac
5659
5660 else
5661   with_bonjour=no
5662
5663 fi
5664
5665
5666 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5667 $as_echo "$with_bonjour" >&6; }
5668
5669
5670 #
5671 # OpenSSL
5672 #
5673 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5674 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5675
5676
5677
5678 # Check whether --with-openssl was given.
5679 if test "${with_openssl+set}" = set; then
5680   withval=$with_openssl;
5681   case $withval in
5682     yes)
5683
5684 cat >>confdefs.h <<\_ACEOF
5685 #define USE_SSL 1
5686 _ACEOF
5687
5688       ;;
5689     no)
5690       :
5691       ;;
5692     *)
5693       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5694 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5695    { (exit 1); exit 1; }; }
5696       ;;
5697   esac
5698
5699 else
5700   with_openssl=no
5701
5702 fi
5703
5704
5705 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5706 $as_echo "$with_openssl" >&6; }
5707
5708
5709 #
5710 # SELinux
5711 #
5712 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5713 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5714
5715
5716
5717 # Check whether --with-selinux was given.
5718 if test "${with_selinux+set}" = set; then
5719   withval=$with_selinux;
5720   case $withval in
5721     yes)
5722       :
5723       ;;
5724     no)
5725       :
5726       ;;
5727     *)
5728       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5729 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5730    { (exit 1); exit 1; }; }
5731       ;;
5732   esac
5733
5734 else
5735   with_selinux=no
5736
5737 fi
5738
5739
5740
5741 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5742 $as_echo "$with_selinux" >&6; }
5743
5744 #
5745 # Readline
5746 #
5747
5748
5749
5750 # Check whether --with-readline was given.
5751 if test "${with_readline+set}" = set; then
5752   withval=$with_readline;
5753   case $withval in
5754     yes)
5755       :
5756       ;;
5757     no)
5758       :
5759       ;;
5760     *)
5761       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5762 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5763    { (exit 1); exit 1; }; }
5764       ;;
5765   esac
5766
5767 else
5768   with_readline=yes
5769
5770 fi
5771
5772
5773 # readline on MinGW has problems with backslashes in psql and other bugs.
5774 # This is particularly a problem with non-US code pages.
5775 # Therefore disable its use until we understand the cause. 2004-07-20
5776 if test "$PORTNAME" = "win32"; then
5777   if test "$with_readline" = yes; then
5778     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5779 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5780     with_readline=no
5781   fi
5782 fi
5783
5784
5785 #
5786 # Prefer libedit
5787 #
5788
5789
5790
5791 # Check whether --with-libedit-preferred was given.
5792 if test "${with_libedit_preferred+set}" = set; then
5793   withval=$with_libedit_preferred;
5794   case $withval in
5795     yes)
5796       :
5797       ;;
5798     no)
5799       :
5800       ;;
5801     *)
5802       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5803 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5804    { (exit 1); exit 1; }; }
5805       ;;
5806   esac
5807
5808 else
5809   with_libedit_preferred=no
5810
5811 fi
5812
5813
5814
5815
5816 #
5817 # OSSP UUID library
5818 #
5819
5820
5821
5822 # Check whether --with-ossp-uuid was given.
5823 if test "${with_ossp_uuid+set}" = set; then
5824   withval=$with_ossp_uuid;
5825   case $withval in
5826     yes)
5827       :
5828       ;;
5829     no)
5830       :
5831       ;;
5832     *)
5833       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5834 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5835    { (exit 1); exit 1; }; }
5836       ;;
5837   esac
5838
5839 else
5840   with_ossp_uuid=no
5841
5842 fi
5843
5844
5845
5846
5847
5848 #
5849 # XML
5850 #
5851
5852
5853
5854 # Check whether --with-libxml was given.
5855 if test "${with_libxml+set}" = set; then
5856   withval=$with_libxml;
5857   case $withval in
5858     yes)
5859
5860 cat >>confdefs.h <<\_ACEOF
5861 #define USE_LIBXML 1
5862 _ACEOF
5863
5864       ;;
5865     no)
5866       :
5867       ;;
5868     *)
5869       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5870 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5871    { (exit 1); exit 1; }; }
5872       ;;
5873   esac
5874
5875 else
5876   with_libxml=no
5877
5878 fi
5879
5880
5881
5882 if test "$with_libxml" = yes ; then
5883   for ac_prog in xml2-config
5884 do
5885   # Extract the first word of "$ac_prog", so it can be a program name with args.
5886 set dummy $ac_prog; ac_word=$2
5887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5890   $as_echo_n "(cached) " >&6
5891 else
5892   if test -n "$XML2_CONFIG"; then
5893   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_prog_XML2_CONFIG="$ac_prog"
5903     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908 IFS=$as_save_IFS
5909
5910 fi
5911 fi
5912 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5913 if test -n "$XML2_CONFIG"; then
5914   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5915 $as_echo "$XML2_CONFIG" >&6; }
5916 else
5917   { $as_echo "$as_me:$LINENO: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920
5921
5922   test -n "$XML2_CONFIG" && break
5923 done
5924
5925   if test -n "$XML2_CONFIG"; then
5926     for pgac_option in `$XML2_CONFIG --cflags`; do
5927       case $pgac_option in
5928         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5929       esac
5930     done
5931     for pgac_option in `$XML2_CONFIG --libs`; do
5932       case $pgac_option in
5933         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5934       esac
5935     done
5936   fi
5937 fi
5938
5939
5940
5941 #
5942 # XSLT
5943 #
5944
5945
5946
5947 # Check whether --with-libxslt was given.
5948 if test "${with_libxslt+set}" = set; then
5949   withval=$with_libxslt;
5950   case $withval in
5951     yes)
5952
5953 cat >>confdefs.h <<\_ACEOF
5954 #define USE_LIBXSLT 1
5955 _ACEOF
5956
5957       ;;
5958     no)
5959       :
5960       ;;
5961     *)
5962       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5963 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5964    { (exit 1); exit 1; }; }
5965       ;;
5966   esac
5967
5968 else
5969   with_libxslt=no
5970
5971 fi
5972
5973
5974
5975
5976
5977
5978 #
5979 # tzdata
5980 #
5981
5982
5983
5984 # Check whether --with-system-tzdata was given.
5985 if test "${with_system_tzdata+set}" = set; then
5986   withval=$with_system_tzdata;
5987   case $withval in
5988     yes)
5989       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5990 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5991    { (exit 1); exit 1; }; }
5992       ;;
5993     no)
5994       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5995 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5996    { (exit 1); exit 1; }; }
5997       ;;
5998     *)
5999
6000       ;;
6001   esac
6002
6003 fi
6004
6005
6006
6007
6008 #
6009 # Zlib
6010 #
6011
6012
6013
6014 # Check whether --with-zlib was given.
6015 if test "${with_zlib+set}" = set; then
6016   withval=$with_zlib;
6017   case $withval in
6018     yes)
6019       :
6020       ;;
6021     no)
6022       :
6023       ;;
6024     *)
6025       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
6026 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
6027    { (exit 1); exit 1; }; }
6028       ;;
6029   esac
6030
6031 else
6032   with_zlib=yes
6033
6034 fi
6035
6036
6037
6038
6039 #
6040 # Elf
6041 #
6042
6043 # Assume system is ELF if it predefines __ELF__ as 1,
6044 # otherwise believe host_os based default.
6045 case $host_os in
6046     freebsd1*|freebsd2*) elf=no;;
6047     freebsd3*|freebsd4*) elf=yes;;
6048 esac
6049
6050
6051 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6052 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6053 if test "${ac_cv_path_GREP+set}" = set; then
6054   $as_echo_n "(cached) " >&6
6055 else
6056   if test -z "$GREP"; then
6057   ac_path_GREP_found=false
6058   # Loop through the user's path and test for each of PROGNAME-LIST
6059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064   for ac_prog in grep ggrep; do
6065     for ac_exec_ext in '' $ac_executable_extensions; do
6066       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6067       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6068 # Check for GNU ac_path_GREP and select it if it is found.
6069   # Check for GNU $ac_path_GREP
6070 case `"$ac_path_GREP" --version 2>&1` in
6071 *GNU*)
6072   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6073 *)
6074   ac_count=0
6075   $as_echo_n 0123456789 >"conftest.in"
6076   while :
6077   do
6078     cat "conftest.in" "conftest.in" >"conftest.tmp"
6079     mv "conftest.tmp" "conftest.in"
6080     cp "conftest.in" "conftest.nl"
6081     $as_echo 'GREP' >> "conftest.nl"
6082     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6083     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6084     ac_count=`expr $ac_count + 1`
6085     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6086       # Best one so far, save it but keep looking for a better one
6087       ac_cv_path_GREP="$ac_path_GREP"
6088       ac_path_GREP_max=$ac_count
6089     fi
6090     # 10*(2^10) chars as input seems more than enough
6091     test $ac_count -gt 10 && break
6092   done
6093   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6094 esac
6095
6096       $ac_path_GREP_found && break 3
6097     done
6098   done
6099 done
6100 IFS=$as_save_IFS
6101   if test -z "$ac_cv_path_GREP"; then
6102     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6103 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6104    { (exit 1); exit 1; }; }
6105   fi
6106 else
6107   ac_cv_path_GREP=$GREP
6108 fi
6109
6110 fi
6111 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6112 $as_echo "$ac_cv_path_GREP" >&6; }
6113  GREP="$ac_cv_path_GREP"
6114
6115
6116 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6117 $as_echo_n "checking for egrep... " >&6; }
6118 if test "${ac_cv_path_EGREP+set}" = set; then
6119   $as_echo_n "(cached) " >&6
6120 else
6121   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6122    then ac_cv_path_EGREP="$GREP -E"
6123    else
6124      if test -z "$EGREP"; then
6125   ac_path_EGREP_found=false
6126   # Loop through the user's path and test for each of PROGNAME-LIST
6127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6129 do
6130   IFS=$as_save_IFS
6131   test -z "$as_dir" && as_dir=.
6132   for ac_prog in egrep; do
6133     for ac_exec_ext in '' $ac_executable_extensions; do
6134       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6135       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6136 # Check for GNU ac_path_EGREP and select it if it is found.
6137   # Check for GNU $ac_path_EGREP
6138 case `"$ac_path_EGREP" --version 2>&1` in
6139 *GNU*)
6140   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6141 *)
6142   ac_count=0
6143   $as_echo_n 0123456789 >"conftest.in"
6144   while :
6145   do
6146     cat "conftest.in" "conftest.in" >"conftest.tmp"
6147     mv "conftest.tmp" "conftest.in"
6148     cp "conftest.in" "conftest.nl"
6149     $as_echo 'EGREP' >> "conftest.nl"
6150     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6151     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6152     ac_count=`expr $ac_count + 1`
6153     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6154       # Best one so far, save it but keep looking for a better one
6155       ac_cv_path_EGREP="$ac_path_EGREP"
6156       ac_path_EGREP_max=$ac_count
6157     fi
6158     # 10*(2^10) chars as input seems more than enough
6159     test $ac_count -gt 10 && break
6160   done
6161   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6162 esac
6163
6164       $ac_path_EGREP_found && break 3
6165     done
6166   done
6167 done
6168 IFS=$as_save_IFS
6169   if test -z "$ac_cv_path_EGREP"; then
6170     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6171 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6172    { (exit 1); exit 1; }; }
6173   fi
6174 else
6175   ac_cv_path_EGREP=$EGREP
6176 fi
6177
6178    fi
6179 fi
6180 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6181 $as_echo "$ac_cv_path_EGREP" >&6; }
6182  EGREP="$ac_cv_path_EGREP"
6183
6184
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h.  */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h.  */
6191 #if __ELF__
6192   yes
6193 #endif
6194
6195 _ACEOF
6196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6197   $EGREP "yes" >/dev/null 2>&1; then
6198   ELF_SYS=true
6199 else
6200   if test "X$elf" = "Xyes" ; then
6201   ELF_SYS=true
6202 else
6203   ELF_SYS=
6204 fi
6205 fi
6206 rm -f conftest*
6207
6208
6209
6210 #
6211 # Assignments
6212 #
6213
6214 CPPFLAGS="$CPPFLAGS $INCLUDES"
6215 LDFLAGS="$LDFLAGS $LIBDIRS"
6216
6217
6218
6219
6220
6221 # Check whether --with-gnu-ld was given.
6222 if test "${with_gnu_ld+set}" = set; then
6223   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6224 else
6225   with_gnu_ld=no
6226 fi
6227
6228 ac_prog=ld
6229 if test "$GCC" = yes; then
6230   # Check if gcc -print-prog-name=ld gives a path.
6231   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6232 $as_echo_n "checking for ld used by GCC... " >&6; }
6233   case $host in
6234   *-*-mingw*)
6235     # gcc leaves a trailing carriage return which upsets mingw
6236     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6237   *)
6238     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6239   esac
6240   case "$ac_prog" in
6241     # Accept absolute paths.
6242     [\\/]* | [A-Za-z]:[\\/]*)
6243       re_direlt='/[^/][^/]*/\.\./'
6244       # Canonicalize the path of ld
6245       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6246       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6247         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6248       done
6249       test -z "$LD" && LD="$ac_prog"
6250       ;;
6251   "")
6252     # If it fails, then pretend we aren't using GCC.
6253     ac_prog=ld
6254     ;;
6255   *)
6256     # If it is relative, then search for the first ld in PATH.
6257     with_gnu_ld=unknown
6258     ;;
6259   esac
6260 elif test "$with_gnu_ld" = yes; then
6261   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6262 $as_echo_n "checking for GNU ld... " >&6; }
6263 else
6264   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6265 $as_echo_n "checking for non-GNU ld... " >&6; }
6266 fi
6267 if test "${ac_cv_path_LD+set}" = set; then
6268   $as_echo_n "(cached) " >&6
6269 else
6270   if test -z "$LD"; then
6271   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6272   for ac_dir in $PATH; do
6273     test -z "$ac_dir" && ac_dir=.
6274     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6275       ac_cv_path_LD="$ac_dir/$ac_prog"
6276       # Check to see if the program is GNU ld.  I'd rather use --version,
6277       # but apparently some GNU ld's only accept -v.
6278       # Break only if it was the GNU/non-GNU ld that we prefer.
6279       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6280         test "$with_gnu_ld" != no && break
6281       else
6282         test "$with_gnu_ld" != yes && break
6283       fi
6284     fi
6285   done
6286   IFS="$ac_save_ifs"
6287 else
6288   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6289 fi
6290 fi
6291
6292 LD="$ac_cv_path_LD"
6293 if test -n "$LD"; then
6294   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6295 $as_echo "$LD" >&6; }
6296 else
6297   { $as_echo "$as_me:$LINENO: result: no" >&5
6298 $as_echo "no" >&6; }
6299 fi
6300 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6301 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6302    { (exit 1); exit 1; }; }
6303 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6304 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6305 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6306   $as_echo_n "(cached) " >&6
6307 else
6308   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6309 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6310   ac_cv_prog_gnu_ld=yes
6311 else
6312   ac_cv_prog_gnu_ld=no
6313 fi
6314 fi
6315 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6316 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6317 with_gnu_ld=$ac_cv_prog_gnu_ld
6318
6319
6320
6321
6322 case $host_os in sysv5*)
6323   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6324 $as_echo_n "checking whether ld -R works... " >&6; }
6325 if test "${pgac_cv_prog_ld_R+set}" = set; then
6326   $as_echo_n "(cached) " >&6
6327 else
6328
6329     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6330     cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h.  */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h.  */
6336
6337 int
6338 main ()
6339 {
6340
6341   ;
6342   return 0;
6343 }
6344 _ACEOF
6345 rm -f conftest.$ac_objext conftest$ac_exeext
6346 if { (ac_try="$ac_link"
6347 case "(($ac_try" in
6348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349   *) ac_try_echo=$ac_try;;
6350 esac
6351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6352 $as_echo "$ac_try_echo") >&5
6353   (eval "$ac_link") 2>conftest.er1
6354   ac_status=$?
6355   grep -v '^ *+' conftest.er1 >conftest.err
6356   rm -f conftest.er1
6357   cat conftest.err >&5
6358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); } && {
6360          test -z "$ac_c_werror_flag" ||
6361          test ! -s conftest.err
6362        } && test -s conftest$ac_exeext && {
6363          test "$cross_compiling" = yes ||
6364          $as_test_x conftest$ac_exeext
6365        }; then
6366   pgac_cv_prog_ld_R=yes
6367 else
6368   $as_echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371         pgac_cv_prog_ld_R=no
6372 fi
6373
6374 rm -rf conftest.dSYM
6375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6376       conftest$ac_exeext conftest.$ac_ext
6377     LDFLAGS=$pgac_save_LDFLAGS
6378
6379 fi
6380 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6381 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6382   ld_R_works=$pgac_cv_prog_ld_R
6383
6384 esac
6385 if test -n "$ac_tool_prefix"; then
6386   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if test "${ac_cv_prog_RANLIB+set}" = set; then
6391   $as_echo_n "(cached) " >&6
6392 else
6393   if test -n "$RANLIB"; then
6394   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399   IFS=$as_save_IFS
6400   test -z "$as_dir" && as_dir=.
6401   for ac_exec_ext in '' $ac_executable_extensions; do
6402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6404     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405     break 2
6406   fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 RANLIB=$ac_cv_prog_RANLIB
6414 if test -n "$RANLIB"; then
6415   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6416 $as_echo "$RANLIB" >&6; }
6417 else
6418   { $as_echo "$as_me:$LINENO: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422
6423 fi
6424 if test -z "$ac_cv_prog_RANLIB"; then
6425   ac_ct_RANLIB=$RANLIB
6426   # Extract the first word of "ranlib", so it can be a program name with args.
6427 set dummy ranlib; ac_word=$2
6428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6431   $as_echo_n "(cached) " >&6
6432 else
6433   if test -n "$ac_ct_RANLIB"; then
6434   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439   IFS=$as_save_IFS
6440   test -z "$as_dir" && as_dir=.
6441   for ac_exec_ext in '' $ac_executable_extensions; do
6442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6443     ac_cv_prog_ac_ct_RANLIB="ranlib"
6444     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445     break 2
6446   fi
6447 done
6448 done
6449 IFS=$as_save_IFS
6450
6451 fi
6452 fi
6453 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6454 if test -n "$ac_ct_RANLIB"; then
6455   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6456 $as_echo "$ac_ct_RANLIB" >&6; }
6457 else
6458   { $as_echo "$as_me:$LINENO: result: no" >&5
6459 $as_echo "no" >&6; }
6460 fi
6461
6462   if test "x$ac_ct_RANLIB" = x; then
6463     RANLIB=":"
6464   else
6465     case $cross_compiling:$ac_tool_warned in
6466 yes:)
6467 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6469 ac_tool_warned=yes ;;
6470 esac
6471     RANLIB=$ac_ct_RANLIB
6472   fi
6473 else
6474   RANLIB="$ac_cv_prog_RANLIB"
6475 fi
6476
6477
6478   if test -n "$ac_tool_prefix"; then
6479   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}strip; ac_word=$2
6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_STRIP+set}" = set; then
6484   $as_echo_n "(cached) " >&6
6485 else
6486   if test -n "$STRIP"; then
6487   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492   IFS=$as_save_IFS
6493   test -z "$as_dir" && as_dir=.
6494   for ac_exec_ext in '' $ac_executable_extensions; do
6495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498     break 2
6499   fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 STRIP=$ac_cv_prog_STRIP
6507 if test -n "$STRIP"; then
6508   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6509 $as_echo "$STRIP" >&6; }
6510 else
6511   { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515
6516 fi
6517 if test -z "$ac_cv_prog_STRIP"; then
6518   ac_ct_STRIP=$STRIP
6519   # Extract the first word of "strip", so it can be a program name with args.
6520 set dummy strip; ac_word=$2
6521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6524   $as_echo_n "(cached) " >&6
6525 else
6526   if test -n "$ac_ct_STRIP"; then
6527   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532   IFS=$as_save_IFS
6533   test -z "$as_dir" && as_dir=.
6534   for ac_exec_ext in '' $ac_executable_extensions; do
6535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536     ac_cv_prog_ac_ct_STRIP="strip"
6537     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538     break 2
6539   fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544 fi
6545 fi
6546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6547 if test -n "$ac_ct_STRIP"; then
6548   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6549 $as_echo "$ac_ct_STRIP" >&6; }
6550 else
6551   { $as_echo "$as_me:$LINENO: result: no" >&5
6552 $as_echo "no" >&6; }
6553 fi
6554
6555   if test "x$ac_ct_STRIP" = x; then
6556     STRIP=":"
6557   else
6558     case $cross_compiling:$ac_tool_warned in
6559 yes:)
6560 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6563 esac
6564     STRIP=$ac_ct_STRIP
6565   fi
6566 else
6567   STRIP="$ac_cv_prog_STRIP"
6568 fi
6569
6570
6571   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6572 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6573   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6574     STRIP_STATIC_LIB="$STRIP -x"
6575     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6576     { $as_echo "$as_me:$LINENO: result: yes" >&5
6577 $as_echo "yes" >&6; }
6578   else
6579     case $host_os in
6580       darwin*)
6581         STRIP="$STRIP -x"
6582         STRIP_STATIC_LIB=$STRIP
6583         STRIP_SHARED_LIB=$STRIP
6584         { $as_echo "$as_me:$LINENO: result: yes" >&5
6585 $as_echo "yes" >&6; }
6586         ;;
6587       *)
6588         STRIP_STATIC_LIB=:
6589         STRIP_SHARED_LIB=:
6590         { $as_echo "$as_me:$LINENO: result: no" >&5
6591 $as_echo "no" >&6; }
6592         ;;
6593     esac
6594   fi
6595
6596
6597
6598 if test -n "$ac_tool_prefix"; then
6599   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6600 set dummy ${ac_tool_prefix}ar; ac_word=$2
6601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if test "${ac_cv_prog_AR+set}" = set; then
6604   $as_echo_n "(cached) " >&6
6605 else
6606   if test -n "$AR"; then
6607   ac_cv_prog_AR="$AR" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612   IFS=$as_save_IFS
6613   test -z "$as_dir" && as_dir=.
6614   for ac_exec_ext in '' $ac_executable_extensions; do
6615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616     ac_cv_prog_AR="${ac_tool_prefix}ar"
6617     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618     break 2
6619   fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 AR=$ac_cv_prog_AR
6627 if test -n "$AR"; then
6628   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6629 $as_echo "$AR" >&6; }
6630 else
6631   { $as_echo "$as_me:$LINENO: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635
6636 fi
6637 if test -z "$ac_cv_prog_AR"; then
6638   ac_ct_AR=$AR
6639   # Extract the first word of "ar", so it can be a program name with args.
6640 set dummy ar; ac_word=$2
6641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6644   $as_echo_n "(cached) " >&6
6645 else
6646   if test -n "$ac_ct_AR"; then
6647   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654   for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_prog_ac_ct_AR="ar"
6657     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6667 if test -n "$ac_ct_AR"; then
6668   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6669 $as_echo "$ac_ct_AR" >&6; }
6670 else
6671   { $as_echo "$as_me:$LINENO: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675   if test "x$ac_ct_AR" = x; then
6676     AR="ar"
6677   else
6678     case $cross_compiling:$ac_tool_warned in
6679 yes:)
6680 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6682 ac_tool_warned=yes ;;
6683 esac
6684     AR=$ac_ct_AR
6685   fi
6686 else
6687   AR="$ac_cv_prog_AR"
6688 fi
6689
6690 if test "$PORTNAME" = "win32"; then
6691   if test -n "$ac_tool_prefix"; then
6692   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6697   $as_echo_n "(cached) " >&6
6698 else
6699   if test -n "$DLLTOOL"; then
6700   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705   IFS=$as_save_IFS
6706   test -z "$as_dir" && as_dir=.
6707   for ac_exec_ext in '' $ac_executable_extensions; do
6708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6710     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711     break 2
6712   fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 DLLTOOL=$ac_cv_prog_DLLTOOL
6720 if test -n "$DLLTOOL"; then
6721   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6722 $as_echo "$DLLTOOL" >&6; }
6723 else
6724   { $as_echo "$as_me:$LINENO: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728
6729 fi
6730 if test -z "$ac_cv_prog_DLLTOOL"; then
6731   ac_ct_DLLTOOL=$DLLTOOL
6732   # Extract the first word of "dlltool", so it can be a program name with args.
6733 set dummy dlltool; ac_word=$2
6734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6737   $as_echo_n "(cached) " >&6
6738 else
6739   if test -n "$ac_ct_DLLTOOL"; then
6740   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747   for ac_exec_ext in '' $ac_executable_extensions; do
6748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6750     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6760 if test -n "$ac_ct_DLLTOOL"; then
6761   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6762 $as_echo "$ac_ct_DLLTOOL" >&6; }
6763 else
6764   { $as_echo "$as_me:$LINENO: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768   if test "x$ac_ct_DLLTOOL" = x; then
6769     DLLTOOL="dlltool"
6770   else
6771     case $cross_compiling:$ac_tool_warned in
6772 yes:)
6773 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777     DLLTOOL=$ac_ct_DLLTOOL
6778   fi
6779 else
6780   DLLTOOL="$ac_cv_prog_DLLTOOL"
6781 fi
6782
6783   if test -n "$ac_tool_prefix"; then
6784   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6789   $as_echo_n "(cached) " >&6
6790 else
6791   if test -n "$DLLWRAP"; then
6792   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799   for ac_exec_ext in '' $ac_executable_extensions; do
6800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6802     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809 fi
6810 fi
6811 DLLWRAP=$ac_cv_prog_DLLWRAP
6812 if test -n "$DLLWRAP"; then
6813   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6814 $as_echo "$DLLWRAP" >&6; }
6815 else
6816   { $as_echo "$as_me:$LINENO: result: no" >&5
6817 $as_echo "no" >&6; }
6818 fi
6819
6820
6821 fi
6822 if test -z "$ac_cv_prog_DLLWRAP"; then
6823   ac_ct_DLLWRAP=$DLLWRAP
6824   # Extract the first word of "dllwrap", so it can be a program name with args.
6825 set dummy dllwrap; ac_word=$2
6826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6829   $as_echo_n "(cached) " >&6
6830 else
6831   if test -n "$ac_ct_DLLWRAP"; then
6832   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837   IFS=$as_save_IFS
6838   test -z "$as_dir" && as_dir=.
6839   for ac_exec_ext in '' $ac_executable_extensions; do
6840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6842     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843     break 2
6844   fi
6845 done
6846 done
6847 IFS=$as_save_IFS
6848
6849 fi
6850 fi
6851 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6852 if test -n "$ac_ct_DLLWRAP"; then
6853   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6854 $as_echo "$ac_ct_DLLWRAP" >&6; }
6855 else
6856   { $as_echo "$as_me:$LINENO: result: no" >&5
6857 $as_echo "no" >&6; }
6858 fi
6859
6860   if test "x$ac_ct_DLLWRAP" = x; then
6861     DLLWRAP="dllwrap"
6862   else
6863     case $cross_compiling:$ac_tool_warned in
6864 yes:)
6865 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869     DLLWRAP=$ac_ct_DLLWRAP
6870   fi
6871 else
6872   DLLWRAP="$ac_cv_prog_DLLWRAP"
6873 fi
6874
6875   if test -n "$ac_tool_prefix"; then
6876   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}windres; ac_word=$2
6878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if test "${ac_cv_prog_WINDRES+set}" = set; then
6881   $as_echo_n "(cached) " >&6
6882 else
6883   if test -n "$WINDRES"; then
6884   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889   IFS=$as_save_IFS
6890   test -z "$as_dir" && as_dir=.
6891   for ac_exec_ext in '' $ac_executable_extensions; do
6892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6894     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895     break 2
6896   fi
6897 done
6898 done
6899 IFS=$as_save_IFS
6900
6901 fi
6902 fi
6903 WINDRES=$ac_cv_prog_WINDRES
6904 if test -n "$WINDRES"; then
6905   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6906 $as_echo "$WINDRES" >&6; }
6907 else
6908   { $as_echo "$as_me:$LINENO: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911
6912
6913 fi
6914 if test -z "$ac_cv_prog_WINDRES"; then
6915   ac_ct_WINDRES=$WINDRES
6916   # Extract the first word of "windres", so it can be a program name with args.
6917 set dummy windres; ac_word=$2
6918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6921   $as_echo_n "(cached) " >&6
6922 else
6923   if test -n "$ac_ct_WINDRES"; then
6924   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929   IFS=$as_save_IFS
6930   test -z "$as_dir" && as_dir=.
6931   for ac_exec_ext in '' $ac_executable_extensions; do
6932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933     ac_cv_prog_ac_ct_WINDRES="windres"
6934     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935     break 2
6936   fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941 fi
6942 fi
6943 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6944 if test -n "$ac_ct_WINDRES"; then
6945   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6946 $as_echo "$ac_ct_WINDRES" >&6; }
6947 else
6948   { $as_echo "$as_me:$LINENO: result: no" >&5
6949 $as_echo "no" >&6; }
6950 fi
6951
6952   if test "x$ac_ct_WINDRES" = x; then
6953     WINDRES="windres"
6954   else
6955     case $cross_compiling:$ac_tool_warned in
6956 yes:)
6957 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6960 esac
6961     WINDRES=$ac_ct_WINDRES
6962   fi
6963 else
6964   WINDRES="$ac_cv_prog_WINDRES"
6965 fi
6966
6967 fi
6968
6969 # Find a good install program.  We prefer a C program (faster),
6970 # so one script is as good as another.  But avoid the broken or
6971 # incompatible versions:
6972 # SysV /etc/install, /usr/sbin/install
6973 # SunOS /usr/etc/install
6974 # IRIX /sbin/install
6975 # AIX /bin/install
6976 # AmigaOS /C/install, which installs bootblocks on floppy discs
6977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6980 # OS/2's system install, which has a completely different semantic
6981 # ./install, which can be erroneously created by make from ./install.sh.
6982 # Reject install programs that cannot install multiple files.
6983 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6984 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6985 if test -z "$INSTALL"; then
6986 if test "${ac_cv_path_install+set}" = set; then
6987   $as_echo_n "(cached) " >&6
6988 else
6989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992   IFS=$as_save_IFS
6993   test -z "$as_dir" && as_dir=.
6994   # Account for people who put trailing slashes in PATH elements.
6995 case $as_dir/ in
6996   ./ | .// | /cC/* | \
6997   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6998   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6999   /usr/ucb/* ) ;;
7000   *)
7001     # OSF1 and SCO ODT 3.0 have their own names for install.
7002     # Don't use installbsd from OSF since it installs stuff as root
7003     # by default.
7004     for ac_prog in ginstall scoinst install; do
7005       for ac_exec_ext in '' $ac_executable_extensions; do
7006         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7007           if test $ac_prog = install &&
7008             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7009             # AIX install.  It has an incompatible calling convention.
7010             :
7011           elif test $ac_prog = install &&
7012             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7013             # program-specific install script used by HP pwplus--don't use.
7014             :
7015           else
7016             rm -rf conftest.one conftest.two conftest.dir
7017             echo one > conftest.one
7018             echo two > conftest.two
7019             mkdir conftest.dir
7020             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7021               test -s conftest.one && test -s conftest.two &&
7022               test -s conftest.dir/conftest.one &&
7023               test -s conftest.dir/conftest.two
7024             then
7025               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7026               break 3
7027             fi
7028           fi
7029         fi
7030       done
7031     done
7032     ;;
7033 esac
7034
7035 done
7036 IFS=$as_save_IFS
7037
7038 rm -rf conftest.one conftest.two conftest.dir
7039
7040 fi
7041   if test "${ac_cv_path_install+set}" = set; then
7042     INSTALL=$ac_cv_path_install
7043   else
7044     # As a last resort, use the slow shell script.  Don't cache a
7045     # value for INSTALL within a source directory, because that will
7046     # break other packages using the cache if that directory is
7047     # removed, or if the value is a relative name.
7048     INSTALL=$ac_install_sh
7049   fi
7050 fi
7051 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7052 $as_echo "$INSTALL" >&6; }
7053
7054 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7055 # It thinks the first close brace ends the variable substitution.
7056 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7057
7058 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7059
7060 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7061
7062 # When Autoconf chooses install-sh as install program it tries to generate
7063 # a relative path to it in each makefile where it subsitutes it. This clashes
7064 # with our Makefile.global concept. This workaround helps.
7065 case $INSTALL in
7066   *install-sh*) install_bin='';;
7067   *) install_bin=$INSTALL;;
7068 esac
7069
7070
7071 # Extract the first word of "tar", so it can be a program name with args.
7072 set dummy tar; ac_word=$2
7073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if test "${ac_cv_path_TAR+set}" = set; then
7076   $as_echo_n "(cached) " >&6
7077 else
7078   case $TAR in
7079   [\\/]* | ?:[\\/]*)
7080   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7081   ;;
7082   *)
7083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086   IFS=$as_save_IFS
7087   test -z "$as_dir" && as_dir=.
7088   for ac_exec_ext in '' $ac_executable_extensions; do
7089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7091     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092     break 2
7093   fi
7094 done
7095 done
7096 IFS=$as_save_IFS
7097
7098   ;;
7099 esac
7100 fi
7101 TAR=$ac_cv_path_TAR
7102 if test -n "$TAR"; then
7103   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
7104 $as_echo "$TAR" >&6; }
7105 else
7106   { $as_echo "$as_me:$LINENO: result: no" >&5
7107 $as_echo "no" >&6; }
7108 fi
7109
7110
7111 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7112 $as_echo_n "checking whether ln -s works... " >&6; }
7113 LN_S=$as_ln_s
7114 if test "$LN_S" = "ln -s"; then
7115   { $as_echo "$as_me:$LINENO: result: yes" >&5
7116 $as_echo "yes" >&6; }
7117 else
7118   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7119 $as_echo "no, using $LN_S" >&6; }
7120 fi
7121
7122 for ac_prog in gawk mawk nawk awk
7123 do
7124   # Extract the first word of "$ac_prog", so it can be a program name with args.
7125 set dummy $ac_prog; ac_word=$2
7126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if test "${ac_cv_prog_AWK+set}" = set; then
7129   $as_echo_n "(cached) " >&6
7130 else
7131   if test -n "$AWK"; then
7132   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139   for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_prog_AWK="$ac_prog"
7142     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149 fi
7150 fi
7151 AWK=$ac_cv_prog_AWK
7152 if test -n "$AWK"; then
7153   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7154 $as_echo "$AWK" >&6; }
7155 else
7156   { $as_echo "$as_me:$LINENO: result: no" >&5
7157 $as_echo "no" >&6; }
7158 fi
7159
7160
7161   test -n "$AWK" && break
7162 done
7163
7164 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7165 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7166 if test -z "$MKDIR_P"; then
7167   if test "${ac_cv_path_mkdir+set}" = set; then
7168   $as_echo_n "(cached) " >&6
7169 else
7170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175   for ac_prog in mkdir gmkdir; do
7176          for ac_exec_ext in '' $ac_executable_extensions; do
7177            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7178            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7179              'mkdir (GNU coreutils) '* | \
7180              'mkdir (coreutils) '* | \
7181              'mkdir (fileutils) '4.1*)
7182                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7183                break 3;;
7184            esac
7185          done
7186        done
7187 done
7188 IFS=$as_save_IFS
7189
7190 fi
7191
7192   if test "${ac_cv_path_mkdir+set}" = set; then
7193     MKDIR_P="$ac_cv_path_mkdir -p"
7194   else
7195     # As a last resort, use the slow shell script.  Don't cache a
7196     # value for MKDIR_P within a source directory, because that will
7197     # break other packages using the cache if that directory is
7198     # removed, or if the value is a relative name.
7199     test -d ./--version && rmdir ./--version
7200     MKDIR_P="$ac_install_sh -d"
7201   fi
7202 fi
7203 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7204 $as_echo "$MKDIR_P" >&6; }
7205
7206 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7207 # a relative path to it in each makefile where it subsitutes it. This clashes
7208 # with our Makefile.global concept. This workaround helps.
7209 case $MKDIR_P in
7210   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7211 esac
7212
7213 # Let the user override the search
7214 if test -z "$BISON"; then
7215   for ac_prog in bison
7216 do
7217   # Extract the first word of "$ac_prog", so it can be a program name with args.
7218 set dummy $ac_prog; ac_word=$2
7219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if test "${ac_cv_path_BISON+set}" = set; then
7222   $as_echo_n "(cached) " >&6
7223 else
7224   case $BISON in
7225   [\\/]* | ?:[\\/]*)
7226   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7227   ;;
7228   *)
7229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234   for ac_exec_ext in '' $ac_executable_extensions; do
7235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7237     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238     break 2
7239   fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244   ;;
7245 esac
7246 fi
7247 BISON=$ac_cv_path_BISON
7248 if test -n "$BISON"; then
7249   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7250 $as_echo "$BISON" >&6; }
7251 else
7252   { $as_echo "$as_me:$LINENO: result: no" >&5
7253 $as_echo "no" >&6; }
7254 fi
7255
7256
7257   test -n "$BISON" && break
7258 done
7259
7260 fi
7261
7262 if test "$BISON"; then
7263   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7264   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7265 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7266   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7267   then
7268     { $as_echo "$as_me:$LINENO: WARNING:
7269 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7270 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7271 $as_echo "$as_me: WARNING:
7272 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7273 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7274     BISON=""
7275   fi
7276 fi
7277
7278 if test -z "$BISON"; then
7279   { $as_echo "$as_me:$LINENO: WARNING:
7280 *** Without Bison you will not be able to build PostgreSQL from Git nor
7281 *** change any of the parser definition files.  You can obtain Bison from
7282 *** a GNU mirror site.  (If you are using the official distribution of
7283 *** PostgreSQL then you do not need to worry about this, because the Bison
7284 *** output is pre-generated.)" >&5
7285 $as_echo "$as_me: WARNING:
7286 *** Without Bison you will not be able to build PostgreSQL from Git nor
7287 *** change any of the parser definition files.  You can obtain Bison from
7288 *** a GNU mirror site.  (If you are using the official distribution of
7289 *** PostgreSQL then you do not need to worry about this, because the Bison
7290 *** output is pre-generated.)" >&2;}
7291 fi
7292 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7293
7294
7295 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7296 $as_echo_n "checking for flex... " >&6; }
7297 if test "${pgac_cv_path_flex+set}" = set; then
7298   $as_echo_n "(cached) " >&6
7299 else
7300   # Let the user override the test
7301 if test -n "$FLEX"; then
7302   pgac_cv_path_flex=$FLEX
7303 else
7304   pgac_save_IFS=$IFS
7305   IFS=$PATH_SEPARATOR
7306   for pgac_dir in $PATH; do
7307     IFS=$pgac_save_IFS
7308     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7309       pgac_dir=`pwd`
7310     fi
7311     for pgac_prog in flex lex; do
7312       pgac_candidate="$pgac_dir/$pgac_prog"
7313       if test -f "$pgac_candidate" \
7314         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7315       then
7316         echo '%%'  > conftest.l
7317         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7318           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7319           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7320           then
7321             pgac_cv_path_flex=$pgac_candidate
7322             break 2
7323           else
7324             { $as_echo "$as_me:$LINENO: WARNING:
7325 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7326 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7327 $as_echo "$as_me: WARNING:
7328 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7329 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7330           fi
7331         fi
7332       fi
7333     done
7334   done
7335   rm -f conftest.l lex.yy.c
7336   : ${pgac_cv_path_flex=no}
7337 fi
7338
7339 fi
7340 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7341 $as_echo "$pgac_cv_path_flex" >&6; }
7342 if test x"$pgac_cv_path_flex" = x"no"; then
7343   { $as_echo "$as_me:$LINENO: WARNING:
7344 *** Without Flex you will not be able to build PostgreSQL from Git nor
7345 *** change any of the scanner definition files.  You can obtain Flex from
7346 *** a GNU mirror site.  (If you are using the official distribution of
7347 *** PostgreSQL then you do not need to worry about this because the Flex
7348 *** output is pre-generated.)" >&5
7349 $as_echo "$as_me: WARNING:
7350 *** Without Flex you will not be able to build PostgreSQL from Git nor
7351 *** change any of the scanner definition files.  You can obtain Flex from
7352 *** a GNU mirror site.  (If you are using the official distribution of
7353 *** PostgreSQL then you do not need to worry about this because the Flex
7354 *** output is pre-generated.)" >&2;}
7355
7356   FLEX=
7357 else
7358   FLEX=$pgac_cv_path_flex
7359   pgac_flex_version=`$FLEX --version 2>/dev/null`
7360   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7361 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7362 fi
7363
7364
7365
7366
7367
7368 # Let the user override the search
7369 if test -z "$PERL"; then
7370   # Extract the first word of "perl", so it can be a program name with args.
7371 set dummy perl; ac_word=$2
7372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if test "${ac_cv_path_PERL+set}" = set; then
7375   $as_echo_n "(cached) " >&6
7376 else
7377   case $PERL in
7378   [\\/]* | ?:[\\/]*)
7379   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7380   ;;
7381   *)
7382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387   for ac_exec_ext in '' $ac_executable_extensions; do
7388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7390     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397   ;;
7398 esac
7399 fi
7400 PERL=$ac_cv_path_PERL
7401 if test -n "$PERL"; then
7402   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7403 $as_echo "$PERL" >&6; }
7404 else
7405   { $as_echo "$as_me:$LINENO: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408
7409
7410 fi
7411
7412 if test "$PERL"; then
7413   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'`
7414   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7415 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7416   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7417     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7418   then
7419     { $as_echo "$as_me:$LINENO: WARNING:
7420 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7421 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7422 $as_echo "$as_me: WARNING:
7423 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7424 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7425     PERL=""
7426   fi
7427 fi
7428
7429 if test -z "$PERL"; then
7430   { $as_echo "$as_me:$LINENO: WARNING:
7431 *** Without Perl you will not be able to build PostgreSQL from Git.
7432 *** You can obtain Perl from any CPAN mirror site.
7433 *** (If you are using the official distribution of PostgreSQL then you do not
7434 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7435 $as_echo "$as_me: WARNING:
7436 *** Without Perl you will not be able to build PostgreSQL from Git.
7437 *** You can obtain Perl from any CPAN mirror site.
7438 *** (If you are using the official distribution of PostgreSQL then you do not
7439 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7440 fi
7441
7442 if test "$with_perl" = yes; then
7443   if test -z "$PERL"; then
7444     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7445 $as_echo "$as_me: error: Perl not found" >&2;}
7446    { (exit 1); exit 1; }; }
7447   fi
7448
7449 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7450 $as_echo_n "checking for Perl archlibexp... " >&6; }
7451 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7452 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7453 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7454 $as_echo "$perl_archlibexp" >&6; }
7455 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7456 $as_echo_n "checking for Perl privlibexp... " >&6; }
7457 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7458 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7459 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7460 $as_echo "$perl_privlibexp" >&6; }
7461 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7462 $as_echo_n "checking for Perl useshrplib... " >&6; }
7463 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7464 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7465 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7466 $as_echo "$perl_useshrplib" >&6; }
7467
7468 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7469 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7470 if test "$PORTNAME" = "win32" ; then
7471 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7472 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7473 else
7474 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7475 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7476 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7477 fi
7478 if test -z "$perl_embed_ldflags" ; then
7479         { $as_echo "$as_me:$LINENO: result: no" >&5
7480 $as_echo "no" >&6; }
7481         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7482 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7483 installed." >&5
7484 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7485 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7486 installed." >&2;}
7487    { (exit 1); exit 1; }; }
7488 else
7489         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7490 $as_echo "$perl_embed_ldflags" >&6; }
7491 fi
7492
7493 fi
7494
7495 if test "$with_python" = yes; then
7496   # Extract the first word of "python", so it can be a program name with args.
7497 set dummy python; ac_word=$2
7498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if test "${ac_cv_path_PYTHON+set}" = set; then
7501   $as_echo_n "(cached) " >&6
7502 else
7503   case $PYTHON in
7504   [\\/]* | ?:[\\/]*)
7505   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7506   ;;
7507   *)
7508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513   for ac_exec_ext in '' $ac_executable_extensions; do
7514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7516     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520 done
7521 IFS=$as_save_IFS
7522
7523   ;;
7524 esac
7525 fi
7526 PYTHON=$ac_cv_path_PYTHON
7527 if test -n "$PYTHON"; then
7528   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7529 $as_echo "$PYTHON" >&6; }
7530 else
7531   { $as_echo "$as_me:$LINENO: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535
7536 if test x"$PYTHON" = x""; then
7537   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7538 $as_echo "$as_me: error: Python not found" >&2;}
7539    { (exit 1); exit 1; }; }
7540 fi
7541
7542
7543 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7544 $as_echo_n "checking for Python distutils module... " >&6; }
7545 if "${PYTHON}" -c 'import distutils' 2>&5
7546 then
7547     { $as_echo "$as_me:$LINENO: result: yes" >&5
7548 $as_echo "yes" >&6; }
7549 else
7550     { $as_echo "$as_me:$LINENO: result: no" >&5
7551 $as_echo "no" >&6; }
7552     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7553 $as_echo "$as_me: error: distutils module not found" >&2;}
7554    { (exit 1); exit 1; }; }
7555 fi
7556 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7557 $as_echo_n "checking Python configuration directory... " >&6; }
7558 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7559 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7560 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7561 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7562 $as_echo "$python_configdir" >&6; }
7563
7564 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7565 $as_echo_n "checking Python include directories... " >&6; }
7566 python_includespec=`${PYTHON} -c "
7567 import distutils.sysconfig
7568 a = '-I' + distutils.sysconfig.get_python_inc(False)
7569 b = '-I' + distutils.sysconfig.get_python_inc(True)
7570 if a == b:
7571     print(a)
7572 else:
7573     print(a + ' ' + b)"`
7574 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7575 $as_echo "$python_includespec" >&6; }
7576
7577
7578
7579 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7580 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7581
7582 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7583 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7584 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7585 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7586 python_framework=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORK'))))"`
7587 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7588
7589 if test -n "$python_framework"; then
7590         python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
7591         python_libspec="-F${python_frameworkprefix} -framework $python_framework"
7592         python_enable_shared=1
7593 elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7594 then
7595         # New way: use the official shared library
7596         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7597         python_libspec="-L${python_libdir} -l${ldlibrary}"
7598 else
7599         # Old way: use libpython from python_configdir
7600         python_libdir="${python_configdir}"
7601         # LDVERSION was introduced in Python 3.2.
7602         python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7603         if test x"${python_ldversion}" = x""; then
7604                 python_ldversion=$python_version
7605         fi
7606         python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7607 fi
7608
7609 if test -z "$python_framework"; then
7610         python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7611 fi
7612
7613 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7614 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7615
7616
7617 # threaded python is not supported on OpenBSD
7618 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7619 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7620 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7621 if test "$pythreads" = "1"; then
7622   { $as_echo "$as_me:$LINENO: result: yes" >&5
7623 $as_echo "yes" >&6; }
7624   case $host_os in
7625   openbsd*)
7626     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7627 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7628    { (exit 1); exit 1; }; }
7629     ;;
7630   esac
7631 else
7632   { $as_echo "$as_me:$LINENO: result: no" >&5
7633 $as_echo "no" >&6; }
7634 fi
7635
7636
7637 fi
7638
7639 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7640   # Extract the first word of "zic", so it can be a program name with args.
7641 set dummy zic; ac_word=$2
7642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if test "${ac_cv_path_ZIC+set}" = set; then
7645   $as_echo_n "(cached) " >&6
7646 else
7647   case $ZIC in
7648   [\\/]* | ?:[\\/]*)
7649   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7650   ;;
7651   *)
7652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655   IFS=$as_save_IFS
7656   test -z "$as_dir" && as_dir=.
7657   for ac_exec_ext in '' $ac_executable_extensions; do
7658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7659     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7660     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661     break 2
7662   fi
7663 done
7664 done
7665 IFS=$as_save_IFS
7666
7667   ;;
7668 esac
7669 fi
7670 ZIC=$ac_cv_path_ZIC
7671 if test -n "$ZIC"; then
7672   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7673 $as_echo "$ZIC" >&6; }
7674 else
7675   { $as_echo "$as_me:$LINENO: result: no" >&5
7676 $as_echo "no" >&6; }
7677 fi
7678
7679
7680   if test -z "$ZIC"; then
7681     { { $as_echo "$as_me:$LINENO: error:
7682 When cross-compiling, either use the option --with-system-tzdata to use
7683 existing time-zone data, or set the environment variable ZIC to a zic
7684 program to use during the build." >&5
7685 $as_echo "$as_me: error:
7686 When cross-compiling, either use the option --with-system-tzdata to use
7687 existing time-zone data, or set the environment variable ZIC to a zic
7688 program to use during the build." >&2;}
7689    { (exit 1); exit 1; }; }
7690   fi
7691 fi
7692
7693
7694 ##
7695 ## Libraries
7696 ##
7697 ## Most libraries are included only if they demonstrably provide a function
7698 ## we need, but libm is an exception: always include it, because there are
7699 ## too many compilers that play cute optimization games that will break
7700 ## probes for standard functions such as pow().
7701 ##
7702
7703
7704 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7705 $as_echo_n "checking for main in -lm... " >&6; }
7706 if test "${ac_cv_lib_m_main+set}" = set; then
7707   $as_echo_n "(cached) " >&6
7708 else
7709   ac_check_lib_save_LIBS=$LIBS
7710 LIBS="-lm  $LIBS"
7711 cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h.  */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h.  */
7717
7718
7719 int
7720 main ()
7721 {
7722 return main ();
7723   ;
7724   return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (ac_try="$ac_link"
7729 case "(($ac_try" in
7730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731   *) ac_try_echo=$ac_try;;
7732 esac
7733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7734 $as_echo "$ac_try_echo") >&5
7735   (eval "$ac_link") 2>conftest.er1
7736   ac_status=$?
7737   grep -v '^ *+' conftest.er1 >conftest.err
7738   rm -f conftest.er1
7739   cat conftest.err >&5
7740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); } && {
7742          test -z "$ac_c_werror_flag" ||
7743          test ! -s conftest.err
7744        } && test -s conftest$ac_exeext && {
7745          test "$cross_compiling" = yes ||
7746          $as_test_x conftest$ac_exeext
7747        }; then
7748   ac_cv_lib_m_main=yes
7749 else
7750   $as_echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7752
7753         ac_cv_lib_m_main=no
7754 fi
7755
7756 rm -rf conftest.dSYM
7757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7758       conftest$ac_exeext conftest.$ac_ext
7759 LIBS=$ac_check_lib_save_LIBS
7760 fi
7761 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7762 $as_echo "$ac_cv_lib_m_main" >&6; }
7763 if test "x$ac_cv_lib_m_main" = x""yes; then
7764   cat >>confdefs.h <<_ACEOF
7765 #define HAVE_LIBM 1
7766 _ACEOF
7767
7768   LIBS="-lm $LIBS"
7769
7770 fi
7771
7772 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7773 $as_echo_n "checking for library containing setproctitle... " >&6; }
7774 if test "${ac_cv_search_setproctitle+set}" = set; then
7775   $as_echo_n "(cached) " >&6
7776 else
7777   ac_func_search_save_LIBS=$LIBS
7778 cat >conftest.$ac_ext <<_ACEOF
7779 /* confdefs.h.  */
7780 _ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h.  */
7784
7785 /* Override any GCC internal prototype to avoid an error.
7786    Use char because int might match the return type of a GCC
7787    builtin and then its argument prototype would still apply.  */
7788 #ifdef __cplusplus
7789 extern "C"
7790 #endif
7791 char setproctitle ();
7792 int
7793 main ()
7794 {
7795 return setproctitle ();
7796   ;
7797   return 0;
7798 }
7799 _ACEOF
7800 for ac_lib in '' util; do
7801   if test -z "$ac_lib"; then
7802     ac_res="none required"
7803   else
7804     ac_res=-l$ac_lib
7805     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7806   fi
7807   rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (ac_try="$ac_link"
7809 case "(($ac_try" in
7810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811   *) ac_try_echo=$ac_try;;
7812 esac
7813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7814 $as_echo "$ac_try_echo") >&5
7815   (eval "$ac_link") 2>conftest.er1
7816   ac_status=$?
7817   grep -v '^ *+' conftest.er1 >conftest.err
7818   rm -f conftest.er1
7819   cat conftest.err >&5
7820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); } && {
7822          test -z "$ac_c_werror_flag" ||
7823          test ! -s conftest.err
7824        } && test -s conftest$ac_exeext && {
7825          test "$cross_compiling" = yes ||
7826          $as_test_x conftest$ac_exeext
7827        }; then
7828   ac_cv_search_setproctitle=$ac_res
7829 else
7830   $as_echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.$ac_ext >&5
7832
7833
7834 fi
7835
7836 rm -rf conftest.dSYM
7837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7838       conftest$ac_exeext
7839   if test "${ac_cv_search_setproctitle+set}" = set; then
7840   break
7841 fi
7842 done
7843 if test "${ac_cv_search_setproctitle+set}" = set; then
7844   :
7845 else
7846   ac_cv_search_setproctitle=no
7847 fi
7848 rm conftest.$ac_ext
7849 LIBS=$ac_func_search_save_LIBS
7850 fi
7851 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7852 $as_echo "$ac_cv_search_setproctitle" >&6; }
7853 ac_res=$ac_cv_search_setproctitle
7854 if test "$ac_res" != no; then
7855   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7856
7857 fi
7858
7859 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7860 $as_echo_n "checking for library containing dlopen... " >&6; }
7861 if test "${ac_cv_search_dlopen+set}" = set; then
7862   $as_echo_n "(cached) " >&6
7863 else
7864   ac_func_search_save_LIBS=$LIBS
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h.  */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h.  */
7871
7872 /* Override any GCC internal prototype to avoid an error.
7873    Use char because int might match the return type of a GCC
7874    builtin and then its argument prototype would still apply.  */
7875 #ifdef __cplusplus
7876 extern "C"
7877 #endif
7878 char dlopen ();
7879 int
7880 main ()
7881 {
7882 return dlopen ();
7883   ;
7884   return 0;
7885 }
7886 _ACEOF
7887 for ac_lib in '' dl; do
7888   if test -z "$ac_lib"; then
7889     ac_res="none required"
7890   else
7891     ac_res=-l$ac_lib
7892     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7893   fi
7894   rm -f conftest.$ac_objext conftest$ac_exeext
7895 if { (ac_try="$ac_link"
7896 case "(($ac_try" in
7897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898   *) ac_try_echo=$ac_try;;
7899 esac
7900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7901 $as_echo "$ac_try_echo") >&5
7902   (eval "$ac_link") 2>conftest.er1
7903   ac_status=$?
7904   grep -v '^ *+' conftest.er1 >conftest.err
7905   rm -f conftest.er1
7906   cat conftest.err >&5
7907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); } && {
7909          test -z "$ac_c_werror_flag" ||
7910          test ! -s conftest.err
7911        } && test -s conftest$ac_exeext && {
7912          test "$cross_compiling" = yes ||
7913          $as_test_x conftest$ac_exeext
7914        }; then
7915   ac_cv_search_dlopen=$ac_res
7916 else
7917   $as_echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920
7921 fi
7922
7923 rm -rf conftest.dSYM
7924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7925       conftest$ac_exeext
7926   if test "${ac_cv_search_dlopen+set}" = set; then
7927   break
7928 fi
7929 done
7930 if test "${ac_cv_search_dlopen+set}" = set; then
7931   :
7932 else
7933   ac_cv_search_dlopen=no
7934 fi
7935 rm conftest.$ac_ext
7936 LIBS=$ac_func_search_save_LIBS
7937 fi
7938 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7939 $as_echo "$ac_cv_search_dlopen" >&6; }
7940 ac_res=$ac_cv_search_dlopen
7941 if test "$ac_res" != no; then
7942   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7943
7944 fi
7945
7946 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7947 $as_echo_n "checking for library containing socket... " >&6; }
7948 if test "${ac_cv_search_socket+set}" = set; then
7949   $as_echo_n "(cached) " >&6
7950 else
7951   ac_func_search_save_LIBS=$LIBS
7952 cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h.  */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h.  */
7958
7959 /* Override any GCC internal prototype to avoid an error.
7960    Use char because int might match the return type of a GCC
7961    builtin and then its argument prototype would still apply.  */
7962 #ifdef __cplusplus
7963 extern "C"
7964 #endif
7965 char socket ();
7966 int
7967 main ()
7968 {
7969 return socket ();
7970   ;
7971   return 0;
7972 }
7973 _ACEOF
7974 for ac_lib in '' socket wsock32; do
7975   if test -z "$ac_lib"; then
7976     ac_res="none required"
7977   else
7978     ac_res=-l$ac_lib
7979     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7980   fi
7981   rm -f conftest.$ac_objext conftest$ac_exeext
7982 if { (ac_try="$ac_link"
7983 case "(($ac_try" in
7984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7985   *) ac_try_echo=$ac_try;;
7986 esac
7987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7988 $as_echo "$ac_try_echo") >&5
7989   (eval "$ac_link") 2>conftest.er1
7990   ac_status=$?
7991   grep -v '^ *+' conftest.er1 >conftest.err
7992   rm -f conftest.er1
7993   cat conftest.err >&5
7994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); } && {
7996          test -z "$ac_c_werror_flag" ||
7997          test ! -s conftest.err
7998        } && test -s conftest$ac_exeext && {
7999          test "$cross_compiling" = yes ||
8000          $as_test_x conftest$ac_exeext
8001        }; then
8002   ac_cv_search_socket=$ac_res
8003 else
8004   $as_echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007
8008 fi
8009
8010 rm -rf conftest.dSYM
8011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8012       conftest$ac_exeext
8013   if test "${ac_cv_search_socket+set}" = set; then
8014   break
8015 fi
8016 done
8017 if test "${ac_cv_search_socket+set}" = set; then
8018   :
8019 else
8020   ac_cv_search_socket=no
8021 fi
8022 rm conftest.$ac_ext
8023 LIBS=$ac_func_search_save_LIBS
8024 fi
8025 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8026 $as_echo "$ac_cv_search_socket" >&6; }
8027 ac_res=$ac_cv_search_socket
8028 if test "$ac_res" != no; then
8029   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8030
8031 fi
8032
8033 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
8034 $as_echo_n "checking for library containing shl_load... " >&6; }
8035 if test "${ac_cv_search_shl_load+set}" = set; then
8036   $as_echo_n "(cached) " >&6
8037 else
8038   ac_func_search_save_LIBS=$LIBS
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h.  */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h.  */
8045
8046 /* Override any GCC internal prototype to avoid an error.
8047    Use char because int might match the return type of a GCC
8048    builtin and then its argument prototype would still apply.  */
8049 #ifdef __cplusplus
8050 extern "C"
8051 #endif
8052 char shl_load ();
8053 int
8054 main ()
8055 {
8056 return shl_load ();
8057   ;
8058   return 0;
8059 }
8060 _ACEOF
8061 for ac_lib in '' dld; do
8062   if test -z "$ac_lib"; then
8063     ac_res="none required"
8064   else
8065     ac_res=-l$ac_lib
8066     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8067   fi
8068   rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (ac_try="$ac_link"
8070 case "(($ac_try" in
8071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072   *) ac_try_echo=$ac_try;;
8073 esac
8074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8075 $as_echo "$ac_try_echo") >&5
8076   (eval "$ac_link") 2>conftest.er1
8077   ac_status=$?
8078   grep -v '^ *+' conftest.er1 >conftest.err
8079   rm -f conftest.er1
8080   cat conftest.err >&5
8081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } && {
8083          test -z "$ac_c_werror_flag" ||
8084          test ! -s conftest.err
8085        } && test -s conftest$ac_exeext && {
8086          test "$cross_compiling" = yes ||
8087          $as_test_x conftest$ac_exeext
8088        }; then
8089   ac_cv_search_shl_load=$ac_res
8090 else
8091   $as_echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094
8095 fi
8096
8097 rm -rf conftest.dSYM
8098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8099       conftest$ac_exeext
8100   if test "${ac_cv_search_shl_load+set}" = set; then
8101   break
8102 fi
8103 done
8104 if test "${ac_cv_search_shl_load+set}" = set; then
8105   :
8106 else
8107   ac_cv_search_shl_load=no
8108 fi
8109 rm conftest.$ac_ext
8110 LIBS=$ac_func_search_save_LIBS
8111 fi
8112 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
8113 $as_echo "$ac_cv_search_shl_load" >&6; }
8114 ac_res=$ac_cv_search_shl_load
8115 if test "$ac_res" != no; then
8116   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8117
8118 fi
8119
8120 # We only use libld in port/dynloader/aix.c
8121 case $host_os in
8122      aix*)
8123         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
8124 $as_echo_n "checking for library containing ldopen... " >&6; }
8125 if test "${ac_cv_search_ldopen+set}" = set; then
8126   $as_echo_n "(cached) " >&6
8127 else
8128   ac_func_search_save_LIBS=$LIBS
8129 cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h.  */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h.  */
8135
8136 /* Override any GCC internal prototype to avoid an error.
8137    Use char because int might match the return type of a GCC
8138    builtin and then its argument prototype would still apply.  */
8139 #ifdef __cplusplus
8140 extern "C"
8141 #endif
8142 char ldopen ();
8143 int
8144 main ()
8145 {
8146 return ldopen ();
8147   ;
8148   return 0;
8149 }
8150 _ACEOF
8151 for ac_lib in '' ld; do
8152   if test -z "$ac_lib"; then
8153     ac_res="none required"
8154   else
8155     ac_res=-l$ac_lib
8156     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8157   fi
8158   rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (ac_try="$ac_link"
8160 case "(($ac_try" in
8161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162   *) ac_try_echo=$ac_try;;
8163 esac
8164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8165 $as_echo "$ac_try_echo") >&5
8166   (eval "$ac_link") 2>conftest.er1
8167   ac_status=$?
8168   grep -v '^ *+' conftest.er1 >conftest.err
8169   rm -f conftest.er1
8170   cat conftest.err >&5
8171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); } && {
8173          test -z "$ac_c_werror_flag" ||
8174          test ! -s conftest.err
8175        } && test -s conftest$ac_exeext && {
8176          test "$cross_compiling" = yes ||
8177          $as_test_x conftest$ac_exeext
8178        }; then
8179   ac_cv_search_ldopen=$ac_res
8180 else
8181   $as_echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8183
8184
8185 fi
8186
8187 rm -rf conftest.dSYM
8188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8189       conftest$ac_exeext
8190   if test "${ac_cv_search_ldopen+set}" = set; then
8191   break
8192 fi
8193 done
8194 if test "${ac_cv_search_ldopen+set}" = set; then
8195   :
8196 else
8197   ac_cv_search_ldopen=no
8198 fi
8199 rm conftest.$ac_ext
8200 LIBS=$ac_func_search_save_LIBS
8201 fi
8202 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8203 $as_echo "$ac_cv_search_ldopen" >&6; }
8204 ac_res=$ac_cv_search_ldopen
8205 if test "$ac_res" != no; then
8206   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8207
8208 fi
8209
8210         ;;
8211 esac
8212 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8213 $as_echo_n "checking for library containing getopt_long... " >&6; }
8214 if test "${ac_cv_search_getopt_long+set}" = set; then
8215   $as_echo_n "(cached) " >&6
8216 else
8217   ac_func_search_save_LIBS=$LIBS
8218 cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h.  */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h.  */
8224
8225 /* Override any GCC internal prototype to avoid an error.
8226    Use char because int might match the return type of a GCC
8227    builtin and then its argument prototype would still apply.  */
8228 #ifdef __cplusplus
8229 extern "C"
8230 #endif
8231 char getopt_long ();
8232 int
8233 main ()
8234 {
8235 return getopt_long ();
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 for ac_lib in '' getopt gnugetopt; do
8241   if test -z "$ac_lib"; then
8242     ac_res="none required"
8243   else
8244     ac_res=-l$ac_lib
8245     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8246   fi
8247   rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (ac_try="$ac_link"
8249 case "(($ac_try" in
8250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251   *) ac_try_echo=$ac_try;;
8252 esac
8253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8254 $as_echo "$ac_try_echo") >&5
8255   (eval "$ac_link") 2>conftest.er1
8256   ac_status=$?
8257   grep -v '^ *+' conftest.er1 >conftest.err
8258   rm -f conftest.er1
8259   cat conftest.err >&5
8260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); } && {
8262          test -z "$ac_c_werror_flag" ||
8263          test ! -s conftest.err
8264        } && test -s conftest$ac_exeext && {
8265          test "$cross_compiling" = yes ||
8266          $as_test_x conftest$ac_exeext
8267        }; then
8268   ac_cv_search_getopt_long=$ac_res
8269 else
8270   $as_echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273
8274 fi
8275
8276 rm -rf conftest.dSYM
8277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8278       conftest$ac_exeext
8279   if test "${ac_cv_search_getopt_long+set}" = set; then
8280   break
8281 fi
8282 done
8283 if test "${ac_cv_search_getopt_long+set}" = set; then
8284   :
8285 else
8286   ac_cv_search_getopt_long=no
8287 fi
8288 rm conftest.$ac_ext
8289 LIBS=$ac_func_search_save_LIBS
8290 fi
8291 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8292 $as_echo "$ac_cv_search_getopt_long" >&6; }
8293 ac_res=$ac_cv_search_getopt_long
8294 if test "$ac_res" != no; then
8295   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8296
8297 fi
8298
8299 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8300 $as_echo_n "checking for library containing crypt... " >&6; }
8301 if test "${ac_cv_search_crypt+set}" = set; then
8302   $as_echo_n "(cached) " >&6
8303 else
8304   ac_func_search_save_LIBS=$LIBS
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h.  */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h.  */
8311
8312 /* Override any GCC internal prototype to avoid an error.
8313    Use char because int might match the return type of a GCC
8314    builtin and then its argument prototype would still apply.  */
8315 #ifdef __cplusplus
8316 extern "C"
8317 #endif
8318 char crypt ();
8319 int
8320 main ()
8321 {
8322 return crypt ();
8323   ;
8324   return 0;
8325 }
8326 _ACEOF
8327 for ac_lib in '' crypt; do
8328   if test -z "$ac_lib"; then
8329     ac_res="none required"
8330   else
8331     ac_res=-l$ac_lib
8332     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8333   fi
8334   rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (ac_try="$ac_link"
8336 case "(($ac_try" in
8337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338   *) ac_try_echo=$ac_try;;
8339 esac
8340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8341 $as_echo "$ac_try_echo") >&5
8342   (eval "$ac_link") 2>conftest.er1
8343   ac_status=$?
8344   grep -v '^ *+' conftest.er1 >conftest.err
8345   rm -f conftest.er1
8346   cat conftest.err >&5
8347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); } && {
8349          test -z "$ac_c_werror_flag" ||
8350          test ! -s conftest.err
8351        } && test -s conftest$ac_exeext && {
8352          test "$cross_compiling" = yes ||
8353          $as_test_x conftest$ac_exeext
8354        }; then
8355   ac_cv_search_crypt=$ac_res
8356 else
8357   $as_echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8359
8360
8361 fi
8362
8363 rm -rf conftest.dSYM
8364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8365       conftest$ac_exeext
8366   if test "${ac_cv_search_crypt+set}" = set; then
8367   break
8368 fi
8369 done
8370 if test "${ac_cv_search_crypt+set}" = set; then
8371   :
8372 else
8373   ac_cv_search_crypt=no
8374 fi
8375 rm conftest.$ac_ext
8376 LIBS=$ac_func_search_save_LIBS
8377 fi
8378 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8379 $as_echo "$ac_cv_search_crypt" >&6; }
8380 ac_res=$ac_cv_search_crypt
8381 if test "$ac_res" != no; then
8382   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8383
8384 fi
8385
8386 { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
8387 $as_echo_n "checking for library containing shm_open... " >&6; }
8388 if test "${ac_cv_search_shm_open+set}" = set; then
8389   $as_echo_n "(cached) " >&6
8390 else
8391   ac_func_search_save_LIBS=$LIBS
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398
8399 /* Override any GCC internal prototype to avoid an error.
8400    Use char because int might match the return type of a GCC
8401    builtin and then its argument prototype would still apply.  */
8402 #ifdef __cplusplus
8403 extern "C"
8404 #endif
8405 char shm_open ();
8406 int
8407 main ()
8408 {
8409 return shm_open ();
8410   ;
8411   return 0;
8412 }
8413 _ACEOF
8414 for ac_lib in '' rt; do
8415   if test -z "$ac_lib"; then
8416     ac_res="none required"
8417   else
8418     ac_res=-l$ac_lib
8419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8420   fi
8421   rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (ac_try="$ac_link"
8423 case "(($ac_try" in
8424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425   *) ac_try_echo=$ac_try;;
8426 esac
8427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8428 $as_echo "$ac_try_echo") >&5
8429   (eval "$ac_link") 2>conftest.er1
8430   ac_status=$?
8431   grep -v '^ *+' conftest.er1 >conftest.err
8432   rm -f conftest.er1
8433   cat conftest.err >&5
8434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); } && {
8436          test -z "$ac_c_werror_flag" ||
8437          test ! -s conftest.err
8438        } && test -s conftest$ac_exeext && {
8439          test "$cross_compiling" = yes ||
8440          $as_test_x conftest$ac_exeext
8441        }; then
8442   ac_cv_search_shm_open=$ac_res
8443 else
8444   $as_echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8446
8447
8448 fi
8449
8450 rm -rf conftest.dSYM
8451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8452       conftest$ac_exeext
8453   if test "${ac_cv_search_shm_open+set}" = set; then
8454   break
8455 fi
8456 done
8457 if test "${ac_cv_search_shm_open+set}" = set; then
8458   :
8459 else
8460   ac_cv_search_shm_open=no
8461 fi
8462 rm conftest.$ac_ext
8463 LIBS=$ac_func_search_save_LIBS
8464 fi
8465 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
8466 $as_echo "$ac_cv_search_shm_open" >&6; }
8467 ac_res=$ac_cv_search_shm_open
8468 if test "$ac_res" != no; then
8469   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8470
8471 fi
8472
8473 { $as_echo "$as_me:$LINENO: checking for library containing shm_unlink" >&5
8474 $as_echo_n "checking for library containing shm_unlink... " >&6; }
8475 if test "${ac_cv_search_shm_unlink+set}" = set; then
8476   $as_echo_n "(cached) " >&6
8477 else
8478   ac_func_search_save_LIBS=$LIBS
8479 cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h.  */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h.  */
8485
8486 /* Override any GCC internal prototype to avoid an error.
8487    Use char because int might match the return type of a GCC
8488    builtin and then its argument prototype would still apply.  */
8489 #ifdef __cplusplus
8490 extern "C"
8491 #endif
8492 char shm_unlink ();
8493 int
8494 main ()
8495 {
8496 return shm_unlink ();
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 for ac_lib in '' rt; do
8502   if test -z "$ac_lib"; then
8503     ac_res="none required"
8504   else
8505     ac_res=-l$ac_lib
8506     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8507   fi
8508   rm -f conftest.$ac_objext conftest$ac_exeext
8509 if { (ac_try="$ac_link"
8510 case "(($ac_try" in
8511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512   *) ac_try_echo=$ac_try;;
8513 esac
8514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8515 $as_echo "$ac_try_echo") >&5
8516   (eval "$ac_link") 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } && {
8523          test -z "$ac_c_werror_flag" ||
8524          test ! -s conftest.err
8525        } && test -s conftest$ac_exeext && {
8526          test "$cross_compiling" = yes ||
8527          $as_test_x conftest$ac_exeext
8528        }; then
8529   ac_cv_search_shm_unlink=$ac_res
8530 else
8531   $as_echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534
8535 fi
8536
8537 rm -rf conftest.dSYM
8538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8539       conftest$ac_exeext
8540   if test "${ac_cv_search_shm_unlink+set}" = set; then
8541   break
8542 fi
8543 done
8544 if test "${ac_cv_search_shm_unlink+set}" = set; then
8545   :
8546 else
8547   ac_cv_search_shm_unlink=no
8548 fi
8549 rm conftest.$ac_ext
8550 LIBS=$ac_func_search_save_LIBS
8551 fi
8552 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_unlink" >&5
8553 $as_echo "$ac_cv_search_shm_unlink" >&6; }
8554 ac_res=$ac_cv_search_shm_unlink
8555 if test "$ac_res" != no; then
8556   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8557
8558 fi
8559
8560 # Solaris:
8561 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8562 $as_echo_n "checking for library containing fdatasync... " >&6; }
8563 if test "${ac_cv_search_fdatasync+set}" = set; then
8564   $as_echo_n "(cached) " >&6
8565 else
8566   ac_func_search_save_LIBS=$LIBS
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h.  */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h.  */
8573
8574 /* Override any GCC internal prototype to avoid an error.
8575    Use char because int might match the return type of a GCC
8576    builtin and then its argument prototype would still apply.  */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 char fdatasync ();
8581 int
8582 main ()
8583 {
8584 return fdatasync ();
8585   ;
8586   return 0;
8587 }
8588 _ACEOF
8589 for ac_lib in '' rt posix4; do
8590   if test -z "$ac_lib"; then
8591     ac_res="none required"
8592   else
8593     ac_res=-l$ac_lib
8594     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8595   fi
8596   rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8598 case "(($ac_try" in
8599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600   *) ac_try_echo=$ac_try;;
8601 esac
8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8603 $as_echo "$ac_try_echo") >&5
8604   (eval "$ac_link") 2>conftest.er1
8605   ac_status=$?
8606   grep -v '^ *+' conftest.er1 >conftest.err
8607   rm -f conftest.er1
8608   cat conftest.err >&5
8609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } && {
8611          test -z "$ac_c_werror_flag" ||
8612          test ! -s conftest.err
8613        } && test -s conftest$ac_exeext && {
8614          test "$cross_compiling" = yes ||
8615          $as_test_x conftest$ac_exeext
8616        }; then
8617   ac_cv_search_fdatasync=$ac_res
8618 else
8619   $as_echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622
8623 fi
8624
8625 rm -rf conftest.dSYM
8626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8627       conftest$ac_exeext
8628   if test "${ac_cv_search_fdatasync+set}" = set; then
8629   break
8630 fi
8631 done
8632 if test "${ac_cv_search_fdatasync+set}" = set; then
8633   :
8634 else
8635   ac_cv_search_fdatasync=no
8636 fi
8637 rm conftest.$ac_ext
8638 LIBS=$ac_func_search_save_LIBS
8639 fi
8640 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8641 $as_echo "$ac_cv_search_fdatasync" >&6; }
8642 ac_res=$ac_cv_search_fdatasync
8643 if test "$ac_res" != no; then
8644   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8645
8646 fi
8647
8648 # Required for thread_test.c on Solaris 2.5:
8649 # Other ports use it too (HP-UX) so test unconditionally
8650 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8651 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8652 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8653   $as_echo_n "(cached) " >&6
8654 else
8655   ac_func_search_save_LIBS=$LIBS
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662
8663 /* Override any GCC internal prototype to avoid an error.
8664    Use char because int might match the return type of a GCC
8665    builtin and then its argument prototype would still apply.  */
8666 #ifdef __cplusplus
8667 extern "C"
8668 #endif
8669 char gethostbyname_r ();
8670 int
8671 main ()
8672 {
8673 return gethostbyname_r ();
8674   ;
8675   return 0;
8676 }
8677 _ACEOF
8678 for ac_lib in '' nsl; do
8679   if test -z "$ac_lib"; then
8680     ac_res="none required"
8681   else
8682     ac_res=-l$ac_lib
8683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8684   fi
8685   rm -f conftest.$ac_objext conftest$ac_exeext
8686 if { (ac_try="$ac_link"
8687 case "(($ac_try" in
8688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689   *) ac_try_echo=$ac_try;;
8690 esac
8691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8692 $as_echo "$ac_try_echo") >&5
8693   (eval "$ac_link") 2>conftest.er1
8694   ac_status=$?
8695   grep -v '^ *+' conftest.er1 >conftest.err
8696   rm -f conftest.er1
8697   cat conftest.err >&5
8698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); } && {
8700          test -z "$ac_c_werror_flag" ||
8701          test ! -s conftest.err
8702        } && test -s conftest$ac_exeext && {
8703          test "$cross_compiling" = yes ||
8704          $as_test_x conftest$ac_exeext
8705        }; then
8706   ac_cv_search_gethostbyname_r=$ac_res
8707 else
8708   $as_echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711
8712 fi
8713
8714 rm -rf conftest.dSYM
8715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8716       conftest$ac_exeext
8717   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8718   break
8719 fi
8720 done
8721 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8722   :
8723 else
8724   ac_cv_search_gethostbyname_r=no
8725 fi
8726 rm conftest.$ac_ext
8727 LIBS=$ac_func_search_save_LIBS
8728 fi
8729 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8730 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8731 ac_res=$ac_cv_search_gethostbyname_r
8732 if test "$ac_res" != no; then
8733   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8734
8735 fi
8736
8737 # Cygwin:
8738 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8739 $as_echo_n "checking for library containing shmget... " >&6; }
8740 if test "${ac_cv_search_shmget+set}" = set; then
8741   $as_echo_n "(cached) " >&6
8742 else
8743   ac_func_search_save_LIBS=$LIBS
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h.  */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h.  */
8750
8751 /* Override any GCC internal prototype to avoid an error.
8752    Use char because int might match the return type of a GCC
8753    builtin and then its argument prototype would still apply.  */
8754 #ifdef __cplusplus
8755 extern "C"
8756 #endif
8757 char shmget ();
8758 int
8759 main ()
8760 {
8761 return shmget ();
8762   ;
8763   return 0;
8764 }
8765 _ACEOF
8766 for ac_lib in '' cygipc; do
8767   if test -z "$ac_lib"; then
8768     ac_res="none required"
8769   else
8770     ac_res=-l$ac_lib
8771     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8772   fi
8773   rm -f conftest.$ac_objext conftest$ac_exeext
8774 if { (ac_try="$ac_link"
8775 case "(($ac_try" in
8776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777   *) ac_try_echo=$ac_try;;
8778 esac
8779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8780 $as_echo "$ac_try_echo") >&5
8781   (eval "$ac_link") 2>conftest.er1
8782   ac_status=$?
8783   grep -v '^ *+' conftest.er1 >conftest.err
8784   rm -f conftest.er1
8785   cat conftest.err >&5
8786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); } && {
8788          test -z "$ac_c_werror_flag" ||
8789          test ! -s conftest.err
8790        } && test -s conftest$ac_exeext && {
8791          test "$cross_compiling" = yes ||
8792          $as_test_x conftest$ac_exeext
8793        }; then
8794   ac_cv_search_shmget=$ac_res
8795 else
8796   $as_echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8798
8799
8800 fi
8801
8802 rm -rf conftest.dSYM
8803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8804       conftest$ac_exeext
8805   if test "${ac_cv_search_shmget+set}" = set; then
8806   break
8807 fi
8808 done
8809 if test "${ac_cv_search_shmget+set}" = set; then
8810   :
8811 else
8812   ac_cv_search_shmget=no
8813 fi
8814 rm conftest.$ac_ext
8815 LIBS=$ac_func_search_save_LIBS
8816 fi
8817 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8818 $as_echo "$ac_cv_search_shmget" >&6; }
8819 ac_res=$ac_cv_search_shmget
8820 if test "$ac_res" != no; then
8821   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8822
8823 fi
8824
8825
8826 if test "$with_readline" = yes; then
8827
8828
8829 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8830 $as_echo_n "checking for library containing readline... " >&6; }
8831 if test "${pgac_cv_check_readline+set}" = set; then
8832   $as_echo_n "(cached) " >&6
8833 else
8834   pgac_cv_check_readline=no
8835 pgac_save_LIBS=$LIBS
8836 if test x"$with_libedit_preferred" != x"yes"
8837 then    READLINE_ORDER="-lreadline -ledit"
8838 else    READLINE_ORDER="-ledit -lreadline"
8839 fi
8840 for pgac_rllib in $READLINE_ORDER ; do
8841   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8842     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8843     cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h.  */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h.  */
8849
8850 /* Override any GCC internal prototype to avoid an error.
8851    Use char because int might match the return type of a GCC
8852    builtin and then its argument prototype would still apply.  */
8853 #ifdef __cplusplus
8854 extern "C"
8855 #endif
8856 char readline ();
8857 int
8858 main ()
8859 {
8860 return readline ();
8861   ;
8862   return 0;
8863 }
8864 _ACEOF
8865 rm -f conftest.$ac_objext conftest$ac_exeext
8866 if { (ac_try="$ac_link"
8867 case "(($ac_try" in
8868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869   *) ac_try_echo=$ac_try;;
8870 esac
8871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873   (eval "$ac_link") 2>conftest.er1
8874   ac_status=$?
8875   grep -v '^ *+' conftest.er1 >conftest.err
8876   rm -f conftest.er1
8877   cat conftest.err >&5
8878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } && {
8880          test -z "$ac_c_werror_flag" ||
8881          test ! -s conftest.err
8882        } && test -s conftest$ac_exeext && {
8883          test "$cross_compiling" = yes ||
8884          $as_test_x conftest$ac_exeext
8885        }; then
8886
8887       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8888       # recognize dependent libraries; assume curses is needed if we didn't
8889       # find any dependency.
8890       case $host_os in
8891         netbsd* | openbsd* | irix*)
8892           if test x"$pgac_lib" = x"" ; then
8893             pgac_lib=" -lcurses"
8894           fi ;;
8895       esac
8896
8897       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8898       break
8899
8900 else
8901   $as_echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8903
8904
8905 fi
8906
8907 rm -rf conftest.dSYM
8908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8909       conftest$ac_exeext conftest.$ac_ext
8910   done
8911   if test "$pgac_cv_check_readline" != no ; then
8912     break
8913   fi
8914 done
8915 LIBS=$pgac_save_LIBS
8916
8917 fi
8918 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8919 $as_echo "$pgac_cv_check_readline" >&6; }
8920 if test "$pgac_cv_check_readline" != no ; then
8921   LIBS="$pgac_cv_check_readline $LIBS"
8922
8923 cat >>confdefs.h <<\_ACEOF
8924 #define HAVE_LIBREADLINE 1
8925 _ACEOF
8926
8927 fi
8928
8929
8930   if test x"$pgac_cv_check_readline" = x"no"; then
8931     { { $as_echo "$as_me:$LINENO: error: readline library not found
8932 If you have readline already installed, see config.log for details on the
8933 failure.  It is possible the compiler isn't looking in the proper directory.
8934 Use --without-readline to disable readline support." >&5
8935 $as_echo "$as_me: error: readline library not found
8936 If you have readline already installed, see config.log for details on the
8937 failure.  It is possible the compiler isn't looking in the proper directory.
8938 Use --without-readline to disable readline support." >&2;}
8939    { (exit 1); exit 1; }; }
8940   fi
8941 fi
8942
8943 if test "$with_zlib" = yes; then
8944
8945 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8946 $as_echo_n "checking for inflate in -lz... " >&6; }
8947 if test "${ac_cv_lib_z_inflate+set}" = set; then
8948   $as_echo_n "(cached) " >&6
8949 else
8950   ac_check_lib_save_LIBS=$LIBS
8951 LIBS="-lz  $LIBS"
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h.  */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h.  */
8958
8959 /* Override any GCC internal prototype to avoid an error.
8960    Use char because int might match the return type of a GCC
8961    builtin and then its argument prototype would still apply.  */
8962 #ifdef __cplusplus
8963 extern "C"
8964 #endif
8965 char inflate ();
8966 int
8967 main ()
8968 {
8969 return inflate ();
8970   ;
8971   return 0;
8972 }
8973 _ACEOF
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (ac_try="$ac_link"
8976 case "(($ac_try" in
8977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978   *) ac_try_echo=$ac_try;;
8979 esac
8980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8981 $as_echo "$ac_try_echo") >&5
8982   (eval "$ac_link") 2>conftest.er1
8983   ac_status=$?
8984   grep -v '^ *+' conftest.er1 >conftest.err
8985   rm -f conftest.er1
8986   cat conftest.err >&5
8987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); } && {
8989          test -z "$ac_c_werror_flag" ||
8990          test ! -s conftest.err
8991        } && test -s conftest$ac_exeext && {
8992          test "$cross_compiling" = yes ||
8993          $as_test_x conftest$ac_exeext
8994        }; then
8995   ac_cv_lib_z_inflate=yes
8996 else
8997   $as_echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000         ac_cv_lib_z_inflate=no
9001 fi
9002
9003 rm -rf conftest.dSYM
9004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9005       conftest$ac_exeext conftest.$ac_ext
9006 LIBS=$ac_check_lib_save_LIBS
9007 fi
9008 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
9009 $as_echo "$ac_cv_lib_z_inflate" >&6; }
9010 if test "x$ac_cv_lib_z_inflate" = x""yes; then
9011   cat >>confdefs.h <<_ACEOF
9012 #define HAVE_LIBZ 1
9013 _ACEOF
9014
9015   LIBS="-lz $LIBS"
9016
9017 else
9018   { { $as_echo "$as_me:$LINENO: error: zlib library not found
9019 If you have zlib already installed, see config.log for details on the
9020 failure.  It is possible the compiler isn't looking in the proper directory.
9021 Use --without-zlib to disable zlib support." >&5
9022 $as_echo "$as_me: error: zlib library not found
9023 If you have zlib already installed, see config.log for details on the
9024 failure.  It is possible the compiler isn't looking in the proper directory.
9025 Use --without-zlib to disable zlib support." >&2;}
9026    { (exit 1); exit 1; }; }
9027 fi
9028
9029 fi
9030
9031 if test "$enable_spinlocks" = yes; then
9032
9033 cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_SPINLOCKS 1
9035 _ACEOF
9036
9037 else
9038   { $as_echo "$as_me:$LINENO: WARNING:
9039 *** Not using spinlocks will cause poor performance." >&5
9040 $as_echo "$as_me: WARNING:
9041 *** Not using spinlocks will cause poor performance." >&2;}
9042 fi
9043
9044 if test "$with_gssapi" = yes ; then
9045   if test "$PORTNAME" != "win32"; then
9046     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
9047 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
9048 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
9049   $as_echo_n "(cached) " >&6
9050 else
9051   ac_func_search_save_LIBS=$LIBS
9052 cat >conftest.$ac_ext <<_ACEOF
9053 /* confdefs.h.  */
9054 _ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h.  */
9058
9059 /* Override any GCC internal prototype to avoid an error.
9060    Use char because int might match the return type of a GCC
9061    builtin and then its argument prototype would still apply.  */
9062 #ifdef __cplusplus
9063 extern "C"
9064 #endif
9065 char gss_init_sec_context ();
9066 int
9067 main ()
9068 {
9069 return gss_init_sec_context ();
9070   ;
9071   return 0;
9072 }
9073 _ACEOF
9074 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
9075   if test -z "$ac_lib"; then
9076     ac_res="none required"
9077   else
9078     ac_res=-l$ac_lib
9079     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9080   fi
9081   rm -f conftest.$ac_objext conftest$ac_exeext
9082 if { (ac_try="$ac_link"
9083 case "(($ac_try" in
9084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9085   *) ac_try_echo=$ac_try;;
9086 esac
9087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9088 $as_echo "$ac_try_echo") >&5
9089   (eval "$ac_link") 2>conftest.er1
9090   ac_status=$?
9091   grep -v '^ *+' conftest.er1 >conftest.err
9092   rm -f conftest.er1
9093   cat conftest.err >&5
9094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); } && {
9096          test -z "$ac_c_werror_flag" ||
9097          test ! -s conftest.err
9098        } && test -s conftest$ac_exeext && {
9099          test "$cross_compiling" = yes ||
9100          $as_test_x conftest$ac_exeext
9101        }; then
9102   ac_cv_search_gss_init_sec_context=$ac_res
9103 else
9104   $as_echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107
9108 fi
9109
9110 rm -rf conftest.dSYM
9111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9112       conftest$ac_exeext
9113   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
9114   break
9115 fi
9116 done
9117 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
9118   :
9119 else
9120   ac_cv_search_gss_init_sec_context=no
9121 fi
9122 rm conftest.$ac_ext
9123 LIBS=$ac_func_search_save_LIBS
9124 fi
9125 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
9126 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
9127 ac_res=$ac_cv_search_gss_init_sec_context
9128 if test "$ac_res" != no; then
9129   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9130
9131 else
9132   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
9133 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
9134    { (exit 1); exit 1; }; }
9135 fi
9136
9137   else
9138     LIBS="$LIBS -lgssapi32"
9139   fi
9140 fi
9141
9142 if test "$with_krb5" = yes ; then
9143   if test "$PORTNAME" != "win32"; then
9144      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9145 $as_echo_n "checking for library containing com_err... " >&6; }
9146 if test "${ac_cv_search_com_err+set}" = set; then
9147   $as_echo_n "(cached) " >&6
9148 else
9149   ac_func_search_save_LIBS=$LIBS
9150 cat >conftest.$ac_ext <<_ACEOF
9151 /* confdefs.h.  */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h.  */
9156
9157 /* Override any GCC internal prototype to avoid an error.
9158    Use char because int might match the return type of a GCC
9159    builtin and then its argument prototype would still apply.  */
9160 #ifdef __cplusplus
9161 extern "C"
9162 #endif
9163 char com_err ();
9164 int
9165 main ()
9166 {
9167 return com_err ();
9168   ;
9169   return 0;
9170 }
9171 _ACEOF
9172 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
9173   if test -z "$ac_lib"; then
9174     ac_res="none required"
9175   else
9176     ac_res=-l$ac_lib
9177     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9178   fi
9179   rm -f conftest.$ac_objext conftest$ac_exeext
9180 if { (ac_try="$ac_link"
9181 case "(($ac_try" in
9182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183   *) ac_try_echo=$ac_try;;
9184 esac
9185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9186 $as_echo "$ac_try_echo") >&5
9187   (eval "$ac_link") 2>conftest.er1
9188   ac_status=$?
9189   grep -v '^ *+' conftest.er1 >conftest.err
9190   rm -f conftest.er1
9191   cat conftest.err >&5
9192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } && {
9194          test -z "$ac_c_werror_flag" ||
9195          test ! -s conftest.err
9196        } && test -s conftest$ac_exeext && {
9197          test "$cross_compiling" = yes ||
9198          $as_test_x conftest$ac_exeext
9199        }; then
9200   ac_cv_search_com_err=$ac_res
9201 else
9202   $as_echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9204
9205
9206 fi
9207
9208 rm -rf conftest.dSYM
9209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9210       conftest$ac_exeext
9211   if test "${ac_cv_search_com_err+set}" = set; then
9212   break
9213 fi
9214 done
9215 if test "${ac_cv_search_com_err+set}" = set; then
9216   :
9217 else
9218   ac_cv_search_com_err=no
9219 fi
9220 rm conftest.$ac_ext
9221 LIBS=$ac_func_search_save_LIBS
9222 fi
9223 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9224 $as_echo "$ac_cv_search_com_err" >&6; }
9225 ac_res=$ac_cv_search_com_err
9226 if test "$ac_res" != no; then
9227   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9228
9229 else
9230   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9231 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9232    { (exit 1); exit 1; }; }
9233 fi
9234
9235      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
9236 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
9237 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9238   $as_echo_n "(cached) " >&6
9239 else
9240   ac_func_search_save_LIBS=$LIBS
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h.  */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h.  */
9247
9248 /* Override any GCC internal prototype to avoid an error.
9249    Use char because int might match the return type of a GCC
9250    builtin and then its argument prototype would still apply.  */
9251 #ifdef __cplusplus
9252 extern "C"
9253 #endif
9254 char krb5_sendauth ();
9255 int
9256 main ()
9257 {
9258 return krb5_sendauth ();
9259   ;
9260   return 0;
9261 }
9262 _ACEOF
9263 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
9264   if test -z "$ac_lib"; then
9265     ac_res="none required"
9266   else
9267     ac_res=-l$ac_lib
9268     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9269   fi
9270   rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (ac_try="$ac_link"
9272 case "(($ac_try" in
9273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274   *) ac_try_echo=$ac_try;;
9275 esac
9276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9277 $as_echo "$ac_try_echo") >&5
9278   (eval "$ac_link") 2>conftest.er1
9279   ac_status=$?
9280   grep -v '^ *+' conftest.er1 >conftest.err
9281   rm -f conftest.er1
9282   cat conftest.err >&5
9283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); } && {
9285          test -z "$ac_c_werror_flag" ||
9286          test ! -s conftest.err
9287        } && test -s conftest$ac_exeext && {
9288          test "$cross_compiling" = yes ||
9289          $as_test_x conftest$ac_exeext
9290        }; then
9291   ac_cv_search_krb5_sendauth=$ac_res
9292 else
9293   $as_echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9295
9296
9297 fi
9298
9299 rm -rf conftest.dSYM
9300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9301       conftest$ac_exeext
9302   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9303   break
9304 fi
9305 done
9306 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9307   :
9308 else
9309   ac_cv_search_krb5_sendauth=no
9310 fi
9311 rm conftest.$ac_ext
9312 LIBS=$ac_func_search_save_LIBS
9313 fi
9314 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
9315 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9316 ac_res=$ac_cv_search_krb5_sendauth
9317 if test "$ac_res" != no; then
9318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9319
9320 else
9321   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9322 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9323    { (exit 1); exit 1; }; }
9324 fi
9325
9326   else
9327      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9328 $as_echo_n "checking for library containing com_err... " >&6; }
9329 if test "${ac_cv_search_com_err+set}" = set; then
9330   $as_echo_n "(cached) " >&6
9331 else
9332   ac_func_search_save_LIBS=$LIBS
9333 cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h.  */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h.  */
9339
9340 /* Override any GCC internal prototype to avoid an error.
9341    Use char because int might match the return type of a GCC
9342    builtin and then its argument prototype would still apply.  */
9343 #ifdef __cplusplus
9344 extern "C"
9345 #endif
9346 char com_err ();
9347 int
9348 main ()
9349 {
9350 return com_err ();
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9356   if test -z "$ac_lib"; then
9357     ac_res="none required"
9358   else
9359     ac_res=-l$ac_lib
9360     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9361   fi
9362   rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (ac_try="$ac_link"
9364 case "(($ac_try" in
9365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366   *) ac_try_echo=$ac_try;;
9367 esac
9368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9369 $as_echo "$ac_try_echo") >&5
9370   (eval "$ac_link") 2>conftest.er1
9371   ac_status=$?
9372   grep -v '^ *+' conftest.er1 >conftest.err
9373   rm -f conftest.er1
9374   cat conftest.err >&5
9375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); } && {
9377          test -z "$ac_c_werror_flag" ||
9378          test ! -s conftest.err
9379        } && test -s conftest$ac_exeext && {
9380          test "$cross_compiling" = yes ||
9381          $as_test_x conftest$ac_exeext
9382        }; then
9383   ac_cv_search_com_err=$ac_res
9384 else
9385   $as_echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388
9389 fi
9390
9391 rm -rf conftest.dSYM
9392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9393       conftest$ac_exeext
9394   if test "${ac_cv_search_com_err+set}" = set; then
9395   break
9396 fi
9397 done
9398 if test "${ac_cv_search_com_err+set}" = set; then
9399   :
9400 else
9401   ac_cv_search_com_err=no
9402 fi
9403 rm conftest.$ac_ext
9404 LIBS=$ac_func_search_save_LIBS
9405 fi
9406 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9407 $as_echo "$ac_cv_search_com_err" >&6; }
9408 ac_res=$ac_cv_search_com_err
9409 if test "$ac_res" != no; then
9410   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9411
9412 else
9413   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9414 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9415    { (exit 1); exit 1; }; }
9416 fi
9417
9418   fi
9419 fi
9420
9421 if test "$with_openssl" = yes ; then
9422     if test "$PORTNAME" != "win32"; then
9423
9424 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9425 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9426 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9427   $as_echo_n "(cached) " >&6
9428 else
9429   ac_check_lib_save_LIBS=$LIBS
9430 LIBS="-lcrypto  $LIBS"
9431 cat >conftest.$ac_ext <<_ACEOF
9432 /* confdefs.h.  */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h.  */
9437
9438 /* Override any GCC internal prototype to avoid an error.
9439    Use char because int might match the return type of a GCC
9440    builtin and then its argument prototype would still apply.  */
9441 #ifdef __cplusplus
9442 extern "C"
9443 #endif
9444 char CRYPTO_new_ex_data ();
9445 int
9446 main ()
9447 {
9448 return CRYPTO_new_ex_data ();
9449   ;
9450   return 0;
9451 }
9452 _ACEOF
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (ac_try="$ac_link"
9455 case "(($ac_try" in
9456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457   *) ac_try_echo=$ac_try;;
9458 esac
9459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9460 $as_echo "$ac_try_echo") >&5
9461   (eval "$ac_link") 2>conftest.er1
9462   ac_status=$?
9463   grep -v '^ *+' conftest.er1 >conftest.err
9464   rm -f conftest.er1
9465   cat conftest.err >&5
9466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); } && {
9468          test -z "$ac_c_werror_flag" ||
9469          test ! -s conftest.err
9470        } && test -s conftest$ac_exeext && {
9471          test "$cross_compiling" = yes ||
9472          $as_test_x conftest$ac_exeext
9473        }; then
9474   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9475 else
9476   $as_echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9478
9479         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9480 fi
9481
9482 rm -rf conftest.dSYM
9483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9484       conftest$ac_exeext conftest.$ac_ext
9485 LIBS=$ac_check_lib_save_LIBS
9486 fi
9487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9488 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9489 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9490   cat >>confdefs.h <<_ACEOF
9491 #define HAVE_LIBCRYPTO 1
9492 _ACEOF
9493
9494   LIBS="-lcrypto $LIBS"
9495
9496 else
9497   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9498 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9499    { (exit 1); exit 1; }; }
9500 fi
9501
9502
9503 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9504 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9505 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9506   $as_echo_n "(cached) " >&6
9507 else
9508   ac_check_lib_save_LIBS=$LIBS
9509 LIBS="-lssl  $LIBS"
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h.  */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h.  */
9516
9517 /* Override any GCC internal prototype to avoid an error.
9518    Use char because int might match the return type of a GCC
9519    builtin and then its argument prototype would still apply.  */
9520 #ifdef __cplusplus
9521 extern "C"
9522 #endif
9523 char SSL_library_init ();
9524 int
9525 main ()
9526 {
9527 return SSL_library_init ();
9528   ;
9529   return 0;
9530 }
9531 _ACEOF
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (ac_try="$ac_link"
9534 case "(($ac_try" in
9535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536   *) ac_try_echo=$ac_try;;
9537 esac
9538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9539 $as_echo "$ac_try_echo") >&5
9540   (eval "$ac_link") 2>conftest.er1
9541   ac_status=$?
9542   grep -v '^ *+' conftest.er1 >conftest.err
9543   rm -f conftest.er1
9544   cat conftest.err >&5
9545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } && {
9547          test -z "$ac_c_werror_flag" ||
9548          test ! -s conftest.err
9549        } && test -s conftest$ac_exeext && {
9550          test "$cross_compiling" = yes ||
9551          $as_test_x conftest$ac_exeext
9552        }; then
9553   ac_cv_lib_ssl_SSL_library_init=yes
9554 else
9555   $as_echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9557
9558         ac_cv_lib_ssl_SSL_library_init=no
9559 fi
9560
9561 rm -rf conftest.dSYM
9562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9563       conftest$ac_exeext conftest.$ac_ext
9564 LIBS=$ac_check_lib_save_LIBS
9565 fi
9566 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9567 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9568 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9569   cat >>confdefs.h <<_ACEOF
9570 #define HAVE_LIBSSL 1
9571 _ACEOF
9572
9573   LIBS="-lssl $LIBS"
9574
9575 else
9576   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9577 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9578    { (exit 1); exit 1; }; }
9579 fi
9580
9581   else
9582      { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9583 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9584 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9585   $as_echo_n "(cached) " >&6
9586 else
9587   ac_func_search_save_LIBS=$LIBS
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h.  */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h.  */
9594
9595 /* Override any GCC internal prototype to avoid an error.
9596    Use char because int might match the return type of a GCC
9597    builtin and then its argument prototype would still apply.  */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 char CRYPTO_new_ex_data ();
9602 int
9603 main ()
9604 {
9605 return CRYPTO_new_ex_data ();
9606   ;
9607   return 0;
9608 }
9609 _ACEOF
9610 for ac_lib in '' eay32 crypto; do
9611   if test -z "$ac_lib"; then
9612     ac_res="none required"
9613   else
9614     ac_res=-l$ac_lib
9615     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9616   fi
9617   rm -f conftest.$ac_objext conftest$ac_exeext
9618 if { (ac_try="$ac_link"
9619 case "(($ac_try" in
9620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621   *) ac_try_echo=$ac_try;;
9622 esac
9623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9624 $as_echo "$ac_try_echo") >&5
9625   (eval "$ac_link") 2>conftest.er1
9626   ac_status=$?
9627   grep -v '^ *+' conftest.er1 >conftest.err
9628   rm -f conftest.er1
9629   cat conftest.err >&5
9630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); } && {
9632          test -z "$ac_c_werror_flag" ||
9633          test ! -s conftest.err
9634        } && test -s conftest$ac_exeext && {
9635          test "$cross_compiling" = yes ||
9636          $as_test_x conftest$ac_exeext
9637        }; then
9638   ac_cv_search_CRYPTO_new_ex_data=$ac_res
9639 else
9640   $as_echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9642
9643
9644 fi
9645
9646 rm -rf conftest.dSYM
9647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9648       conftest$ac_exeext
9649   if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9650   break
9651 fi
9652 done
9653 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9654   :
9655 else
9656   ac_cv_search_CRYPTO_new_ex_data=no
9657 fi
9658 rm conftest.$ac_ext
9659 LIBS=$ac_func_search_save_LIBS
9660 fi
9661 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9662 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9663 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9664 if test "$ac_res" != no; then
9665   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9666
9667 else
9668   { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9669 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9670    { (exit 1); exit 1; }; }
9671 fi
9672
9673      { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9674 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9675 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9676   $as_echo_n "(cached) " >&6
9677 else
9678   ac_func_search_save_LIBS=$LIBS
9679 cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685
9686 /* Override any GCC internal prototype to avoid an error.
9687    Use char because int might match the return type of a GCC
9688    builtin and then its argument prototype would still apply.  */
9689 #ifdef __cplusplus
9690 extern "C"
9691 #endif
9692 char SSL_library_init ();
9693 int
9694 main ()
9695 {
9696 return SSL_library_init ();
9697   ;
9698   return 0;
9699 }
9700 _ACEOF
9701 for ac_lib in '' ssleay32 ssl; do
9702   if test -z "$ac_lib"; then
9703     ac_res="none required"
9704   else
9705     ac_res=-l$ac_lib
9706     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9707   fi
9708   rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (ac_try="$ac_link"
9710 case "(($ac_try" in
9711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712   *) ac_try_echo=$ac_try;;
9713 esac
9714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9715 $as_echo "$ac_try_echo") >&5
9716   (eval "$ac_link") 2>conftest.er1
9717   ac_status=$?
9718   grep -v '^ *+' conftest.er1 >conftest.err
9719   rm -f conftest.er1
9720   cat conftest.err >&5
9721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); } && {
9723          test -z "$ac_c_werror_flag" ||
9724          test ! -s conftest.err
9725        } && test -s conftest$ac_exeext && {
9726          test "$cross_compiling" = yes ||
9727          $as_test_x conftest$ac_exeext
9728        }; then
9729   ac_cv_search_SSL_library_init=$ac_res
9730 else
9731   $as_echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
9734
9735 fi
9736
9737 rm -rf conftest.dSYM
9738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9739       conftest$ac_exeext
9740   if test "${ac_cv_search_SSL_library_init+set}" = set; then
9741   break
9742 fi
9743 done
9744 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9745   :
9746 else
9747   ac_cv_search_SSL_library_init=no
9748 fi
9749 rm conftest.$ac_ext
9750 LIBS=$ac_func_search_save_LIBS
9751 fi
9752 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9753 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9754 ac_res=$ac_cv_search_SSL_library_init
9755 if test "$ac_res" != no; then
9756   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9757
9758 else
9759   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9760 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9761    { (exit 1); exit 1; }; }
9762 fi
9763
9764   fi
9765 fi
9766
9767 if test "$with_pam" = yes ; then
9768
9769 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9770 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9771 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9772   $as_echo_n "(cached) " >&6
9773 else
9774   ac_check_lib_save_LIBS=$LIBS
9775 LIBS="-lpam  $LIBS"
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h.  */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h.  */
9782
9783 /* Override any GCC internal prototype to avoid an error.
9784    Use char because int might match the return type of a GCC
9785    builtin and then its argument prototype would still apply.  */
9786 #ifdef __cplusplus
9787 extern "C"
9788 #endif
9789 char pam_start ();
9790 int
9791 main ()
9792 {
9793 return pam_start ();
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (ac_try="$ac_link"
9800 case "(($ac_try" in
9801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802   *) ac_try_echo=$ac_try;;
9803 esac
9804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9805 $as_echo "$ac_try_echo") >&5
9806   (eval "$ac_link") 2>conftest.er1
9807   ac_status=$?
9808   grep -v '^ *+' conftest.er1 >conftest.err
9809   rm -f conftest.er1
9810   cat conftest.err >&5
9811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); } && {
9813          test -z "$ac_c_werror_flag" ||
9814          test ! -s conftest.err
9815        } && test -s conftest$ac_exeext && {
9816          test "$cross_compiling" = yes ||
9817          $as_test_x conftest$ac_exeext
9818        }; then
9819   ac_cv_lib_pam_pam_start=yes
9820 else
9821   $as_echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824         ac_cv_lib_pam_pam_start=no
9825 fi
9826
9827 rm -rf conftest.dSYM
9828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9829       conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9831 fi
9832 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9833 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9834 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9835   cat >>confdefs.h <<_ACEOF
9836 #define HAVE_LIBPAM 1
9837 _ACEOF
9838
9839   LIBS="-lpam $LIBS"
9840
9841 else
9842   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9843 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9844    { (exit 1); exit 1; }; }
9845 fi
9846
9847 fi
9848
9849 if test "$with_libxml" = yes ; then
9850
9851 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9852 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9853 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9854   $as_echo_n "(cached) " >&6
9855 else
9856   ac_check_lib_save_LIBS=$LIBS
9857 LIBS="-lxml2  $LIBS"
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h.  */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h.  */
9864
9865 /* Override any GCC internal prototype to avoid an error.
9866    Use char because int might match the return type of a GCC
9867    builtin and then its argument prototype would still apply.  */
9868 #ifdef __cplusplus
9869 extern "C"
9870 #endif
9871 char xmlSaveToBuffer ();
9872 int
9873 main ()
9874 {
9875 return xmlSaveToBuffer ();
9876   ;
9877   return 0;
9878 }
9879 _ACEOF
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (ac_try="$ac_link"
9882 case "(($ac_try" in
9883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884   *) ac_try_echo=$ac_try;;
9885 esac
9886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9887 $as_echo "$ac_try_echo") >&5
9888   (eval "$ac_link") 2>conftest.er1
9889   ac_status=$?
9890   grep -v '^ *+' conftest.er1 >conftest.err
9891   rm -f conftest.er1
9892   cat conftest.err >&5
9893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); } && {
9895          test -z "$ac_c_werror_flag" ||
9896          test ! -s conftest.err
9897        } && test -s conftest$ac_exeext && {
9898          test "$cross_compiling" = yes ||
9899          $as_test_x conftest$ac_exeext
9900        }; then
9901   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9902 else
9903   $as_echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9905
9906         ac_cv_lib_xml2_xmlSaveToBuffer=no
9907 fi
9908
9909 rm -rf conftest.dSYM
9910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9911       conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9913 fi
9914 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9915 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9916 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9917   cat >>confdefs.h <<_ACEOF
9918 #define HAVE_LIBXML2 1
9919 _ACEOF
9920
9921   LIBS="-lxml2 $LIBS"
9922
9923 else
9924   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9925 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9926    { (exit 1); exit 1; }; }
9927 fi
9928
9929 fi
9930
9931 if test "$with_libxslt" = yes ; then
9932
9933 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9934 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9935 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9936   $as_echo_n "(cached) " >&6
9937 else
9938   ac_check_lib_save_LIBS=$LIBS
9939 LIBS="-lxslt  $LIBS"
9940 cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h.  */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h.  */
9946
9947 /* Override any GCC internal prototype to avoid an error.
9948    Use char because int might match the return type of a GCC
9949    builtin and then its argument prototype would still apply.  */
9950 #ifdef __cplusplus
9951 extern "C"
9952 #endif
9953 char xsltCleanupGlobals ();
9954 int
9955 main ()
9956 {
9957 return xsltCleanupGlobals ();
9958   ;
9959   return 0;
9960 }
9961 _ACEOF
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (ac_try="$ac_link"
9964 case "(($ac_try" in
9965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966   *) ac_try_echo=$ac_try;;
9967 esac
9968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9969 $as_echo "$ac_try_echo") >&5
9970   (eval "$ac_link") 2>conftest.er1
9971   ac_status=$?
9972   grep -v '^ *+' conftest.er1 >conftest.err
9973   rm -f conftest.er1
9974   cat conftest.err >&5
9975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); } && {
9977          test -z "$ac_c_werror_flag" ||
9978          test ! -s conftest.err
9979        } && test -s conftest$ac_exeext && {
9980          test "$cross_compiling" = yes ||
9981          $as_test_x conftest$ac_exeext
9982        }; then
9983   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9984 else
9985   $as_echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988         ac_cv_lib_xslt_xsltCleanupGlobals=no
9989 fi
9990
9991 rm -rf conftest.dSYM
9992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9993       conftest$ac_exeext conftest.$ac_ext
9994 LIBS=$ac_check_lib_save_LIBS
9995 fi
9996 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9997 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9998 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9999   cat >>confdefs.h <<_ACEOF
10000 #define HAVE_LIBXSLT 1
10001 _ACEOF
10002
10003   LIBS="-lxslt $LIBS"
10004
10005 else
10006   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
10007 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
10008    { (exit 1); exit 1; }; }
10009 fi
10010
10011 fi
10012
10013 # for contrib/sepgsql
10014 if test "$with_selinux" = yes; then
10015
10016 { $as_echo "$as_me:$LINENO: checking for security_compute_create_name in -lselinux" >&5
10017 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
10018 if test "${ac_cv_lib_selinux_security_compute_create_name+set}" = set; then
10019   $as_echo_n "(cached) " >&6
10020 else
10021   ac_check_lib_save_LIBS=$LIBS
10022 LIBS="-lselinux  $LIBS"
10023 cat >conftest.$ac_ext <<_ACEOF
10024 /* confdefs.h.  */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h.  */
10029
10030 /* Override any GCC internal prototype to avoid an error.
10031    Use char because int might match the return type of a GCC
10032    builtin and then its argument prototype would still apply.  */
10033 #ifdef __cplusplus
10034 extern "C"
10035 #endif
10036 char security_compute_create_name ();
10037 int
10038 main ()
10039 {
10040 return security_compute_create_name ();
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (ac_try="$ac_link"
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_link") 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_exeext && {
10063          test "$cross_compiling" = yes ||
10064          $as_test_x conftest$ac_exeext
10065        }; then
10066   ac_cv_lib_selinux_security_compute_create_name=yes
10067 else
10068   $as_echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10070
10071         ac_cv_lib_selinux_security_compute_create_name=no
10072 fi
10073
10074 rm -rf conftest.dSYM
10075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10076       conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10078 fi
10079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
10080 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
10081 if test "x$ac_cv_lib_selinux_security_compute_create_name" = x""yes; then
10082   cat >>confdefs.h <<_ACEOF
10083 #define HAVE_LIBSELINUX 1
10084 _ACEOF
10085
10086   LIBS="-lselinux $LIBS"
10087
10088 else
10089   { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.1.10 or newer, is required for SELinux support" >&5
10090 $as_echo "$as_me: error: library 'libselinux', version 2.1.10 or newer, is required for SELinux support" >&2;}
10091    { (exit 1); exit 1; }; }
10092 fi
10093
10094 fi
10095
10096 # for contrib/uuid-ossp
10097 if test "$with_ossp_uuid" = yes ; then
10098   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
10099 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
10100 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
10101   $as_echo_n "(cached) " >&6
10102 else
10103   ac_check_lib_save_LIBS=$LIBS
10104 LIBS="-lossp-uuid  $LIBS"
10105 cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h.  */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h.  */
10111
10112 /* Override any GCC internal prototype to avoid an error.
10113    Use char because int might match the return type of a GCC
10114    builtin and then its argument prototype would still apply.  */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 char uuid_export ();
10119 int
10120 main ()
10121 {
10122 return uuid_export ();
10123   ;
10124   return 0;
10125 }
10126 _ACEOF
10127 rm -f conftest.$ac_objext conftest$ac_exeext
10128 if { (ac_try="$ac_link"
10129 case "(($ac_try" in
10130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131   *) ac_try_echo=$ac_try;;
10132 esac
10133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10134 $as_echo "$ac_try_echo") >&5
10135   (eval "$ac_link") 2>conftest.er1
10136   ac_status=$?
10137   grep -v '^ *+' conftest.er1 >conftest.err
10138   rm -f conftest.er1
10139   cat conftest.err >&5
10140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); } && {
10142          test -z "$ac_c_werror_flag" ||
10143          test ! -s conftest.err
10144        } && test -s conftest$ac_exeext && {
10145          test "$cross_compiling" = yes ||
10146          $as_test_x conftest$ac_exeext
10147        }; then
10148   ac_cv_lib_ossp_uuid_uuid_export=yes
10149 else
10150   $as_echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10152
10153         ac_cv_lib_ossp_uuid_uuid_export=no
10154 fi
10155
10156 rm -rf conftest.dSYM
10157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10158       conftest$ac_exeext conftest.$ac_ext
10159 LIBS=$ac_check_lib_save_LIBS
10160 fi
10161 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
10162 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
10163 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
10164   OSSP_UUID_LIBS="-lossp-uuid"
10165 else
10166   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
10167 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
10168 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
10169   $as_echo_n "(cached) " >&6
10170 else
10171   ac_check_lib_save_LIBS=$LIBS
10172 LIBS="-luuid  $LIBS"
10173 cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h.  */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h.  */
10179
10180 /* Override any GCC internal prototype to avoid an error.
10181    Use char because int might match the return type of a GCC
10182    builtin and then its argument prototype would still apply.  */
10183 #ifdef __cplusplus
10184 extern "C"
10185 #endif
10186 char uuid_export ();
10187 int
10188 main ()
10189 {
10190 return uuid_export ();
10191   ;
10192   return 0;
10193 }
10194 _ACEOF
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (ac_try="$ac_link"
10197 case "(($ac_try" in
10198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199   *) ac_try_echo=$ac_try;;
10200 esac
10201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10202 $as_echo "$ac_try_echo") >&5
10203   (eval "$ac_link") 2>conftest.er1
10204   ac_status=$?
10205   grep -v '^ *+' conftest.er1 >conftest.err
10206   rm -f conftest.er1
10207   cat conftest.err >&5
10208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); } && {
10210          test -z "$ac_c_werror_flag" ||
10211          test ! -s conftest.err
10212        } && test -s conftest$ac_exeext && {
10213          test "$cross_compiling" = yes ||
10214          $as_test_x conftest$ac_exeext
10215        }; then
10216   ac_cv_lib_uuid_uuid_export=yes
10217 else
10218   $as_echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10220
10221         ac_cv_lib_uuid_uuid_export=no
10222 fi
10223
10224 rm -rf conftest.dSYM
10225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10226       conftest$ac_exeext conftest.$ac_ext
10227 LIBS=$ac_check_lib_save_LIBS
10228 fi
10229 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
10230 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
10231 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
10232   OSSP_UUID_LIBS="-luuid"
10233 else
10234   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
10235 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
10236    { (exit 1); exit 1; }; }
10237 fi
10238
10239 fi
10240
10241 fi
10242
10243
10244
10245 ##
10246 ## Header files
10247 ##
10248
10249 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10250 $as_echo_n "checking for ANSI C header files... " >&6; }
10251 if test "${ac_cv_header_stdc+set}" = set; then
10252   $as_echo_n "(cached) " >&6
10253 else
10254   cat >conftest.$ac_ext <<_ACEOF
10255 /* confdefs.h.  */
10256 _ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h.  */
10260 #include <stdlib.h>
10261 #include <stdarg.h>
10262 #include <string.h>
10263 #include <float.h>
10264
10265 int
10266 main ()
10267 {
10268
10269   ;
10270   return 0;
10271 }
10272 _ACEOF
10273 rm -f conftest.$ac_objext
10274 if { (ac_try="$ac_compile"
10275 case "(($ac_try" in
10276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277   *) ac_try_echo=$ac_try;;
10278 esac
10279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10280 $as_echo "$ac_try_echo") >&5
10281   (eval "$ac_compile") 2>conftest.er1
10282   ac_status=$?
10283   grep -v '^ *+' conftest.er1 >conftest.err
10284   rm -f conftest.er1
10285   cat conftest.err >&5
10286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); } && {
10288          test -z "$ac_c_werror_flag" ||
10289          test ! -s conftest.err
10290        } && test -s conftest.$ac_objext; then
10291   ac_cv_header_stdc=yes
10292 else
10293   $as_echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10295
10296         ac_cv_header_stdc=no
10297 fi
10298
10299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10300
10301 if test $ac_cv_header_stdc = yes; then
10302   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10303   cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h.  */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h.  */
10309 #include <string.h>
10310
10311 _ACEOF
10312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10313   $EGREP "memchr" >/dev/null 2>&1; then
10314   :
10315 else
10316   ac_cv_header_stdc=no
10317 fi
10318 rm -f conftest*
10319
10320 fi
10321
10322 if test $ac_cv_header_stdc = yes; then
10323   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10324   cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h.  */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h.  */
10330 #include <stdlib.h>
10331
10332 _ACEOF
10333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10334   $EGREP "free" >/dev/null 2>&1; then
10335   :
10336 else
10337   ac_cv_header_stdc=no
10338 fi
10339 rm -f conftest*
10340
10341 fi
10342
10343 if test $ac_cv_header_stdc = yes; then
10344   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10345   if test "$cross_compiling" = yes; then
10346   :
10347 else
10348   cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354 #include <ctype.h>
10355 #include <stdlib.h>
10356 #if ((' ' & 0x0FF) == 0x020)
10357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10359 #else
10360 # define ISLOWER(c) \
10361                    (('a' <= (c) && (c) <= 'i') \
10362                      || ('j' <= (c) && (c) <= 'r') \
10363                      || ('s' <= (c) && (c) <= 'z'))
10364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10365 #endif
10366
10367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10368 int
10369 main ()
10370 {
10371   int i;
10372   for (i = 0; i < 256; i++)
10373     if (XOR (islower (i), ISLOWER (i))
10374         || toupper (i) != TOUPPER (i))
10375       return 2;
10376   return 0;
10377 }
10378 _ACEOF
10379 rm -f conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383   *) ac_try_echo=$ac_try;;
10384 esac
10385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10386 $as_echo "$ac_try_echo") >&5
10387   (eval "$ac_link") 2>&5
10388   ac_status=$?
10389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10391   { (case "(($ac_try" in
10392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393   *) ac_try_echo=$ac_try;;
10394 esac
10395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10396 $as_echo "$ac_try_echo") >&5
10397   (eval "$ac_try") 2>&5
10398   ac_status=$?
10399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); }; }; then
10401   :
10402 else
10403   $as_echo "$as_me: program exited with status $ac_status" >&5
10404 $as_echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10406
10407 ( exit $ac_status )
10408 ac_cv_header_stdc=no
10409 fi
10410 rm -rf conftest.dSYM
10411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10412 fi
10413
10414
10415 fi
10416 fi
10417 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10418 $as_echo "$ac_cv_header_stdc" >&6; }
10419 if test $ac_cv_header_stdc = yes; then
10420
10421 cat >>confdefs.h <<\_ACEOF
10422 #define STDC_HEADERS 1
10423 _ACEOF
10424
10425 fi
10426
10427 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10438                   inttypes.h stdint.h unistd.h
10439 do
10440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10441 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 $as_echo_n "checking for $ac_header... " >&6; }
10443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10444   $as_echo_n "(cached) " >&6
10445 else
10446   cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h.  */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h.  */
10452 $ac_includes_default
10453
10454 #include <$ac_header>
10455 _ACEOF
10456 rm -f conftest.$ac_objext
10457 if { (ac_try="$ac_compile"
10458 case "(($ac_try" in
10459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460   *) ac_try_echo=$ac_try;;
10461 esac
10462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10463 $as_echo "$ac_try_echo") >&5
10464   (eval "$ac_compile") 2>conftest.er1
10465   ac_status=$?
10466   grep -v '^ *+' conftest.er1 >conftest.err
10467   rm -f conftest.er1
10468   cat conftest.err >&5
10469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); } && {
10471          test -z "$ac_c_werror_flag" ||
10472          test ! -s conftest.err
10473        } && test -s conftest.$ac_objext; then
10474   eval "$as_ac_Header=yes"
10475 else
10476   $as_echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10478
10479         eval "$as_ac_Header=no"
10480 fi
10481
10482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10483 fi
10484 ac_res=`eval 'as_val=${'$as_ac_Header'}
10485                  $as_echo "$as_val"'`
10486                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10487 $as_echo "$ac_res" >&6; }
10488 as_val=`eval 'as_val=${'$as_ac_Header'}
10489                  $as_echo "$as_val"'`
10490    if test "x$as_val" = x""yes; then
10491   cat >>confdefs.h <<_ACEOF
10492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10493 _ACEOF
10494
10495 fi
10496
10497 done
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10528 do
10529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10531   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10532 $as_echo_n "checking for $ac_header... " >&6; }
10533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10534   $as_echo_n "(cached) " >&6
10535 fi
10536 ac_res=`eval 'as_val=${'$as_ac_Header'}
10537                  $as_echo "$as_val"'`
10538                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10539 $as_echo "$ac_res" >&6; }
10540 else
10541   # Is the header compilable?
10542 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10543 $as_echo_n "checking $ac_header usability... " >&6; }
10544 cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h.  */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h.  */
10550 $ac_includes_default
10551 #include <$ac_header>
10552 _ACEOF
10553 rm -f conftest.$ac_objext
10554 if { (ac_try="$ac_compile"
10555 case "(($ac_try" in
10556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557   *) ac_try_echo=$ac_try;;
10558 esac
10559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10560 $as_echo "$ac_try_echo") >&5
10561   (eval "$ac_compile") 2>conftest.er1
10562   ac_status=$?
10563   grep -v '^ *+' conftest.er1 >conftest.err
10564   rm -f conftest.er1
10565   cat conftest.err >&5
10566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); } && {
10568          test -z "$ac_c_werror_flag" ||
10569          test ! -s conftest.err
10570        } && test -s conftest.$ac_objext; then
10571   ac_header_compiler=yes
10572 else
10573   $as_echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10575
10576         ac_header_compiler=no
10577 fi
10578
10579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10580 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10581 $as_echo "$ac_header_compiler" >&6; }
10582
10583 # Is the header present?
10584 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10585 $as_echo_n "checking $ac_header presence... " >&6; }
10586 cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h.  */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h.  */
10592 #include <$ac_header>
10593 _ACEOF
10594 if { (ac_try="$ac_cpp conftest.$ac_ext"
10595 case "(($ac_try" in
10596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597   *) ac_try_echo=$ac_try;;
10598 esac
10599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10600 $as_echo "$ac_try_echo") >&5
10601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10602   ac_status=$?
10603   grep -v '^ *+' conftest.er1 >conftest.err
10604   rm -f conftest.er1
10605   cat conftest.err >&5
10606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } >/dev/null && {
10608          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10609          test ! -s conftest.err
10610        }; then
10611   ac_header_preproc=yes
10612 else
10613   $as_echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616   ac_header_preproc=no
10617 fi
10618
10619 rm -f conftest.err conftest.$ac_ext
10620 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10621 $as_echo "$ac_header_preproc" >&6; }
10622
10623 # So?  What about this header?
10624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10625   yes:no: )
10626     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10627 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10628     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10629 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10630     ac_header_preproc=yes
10631     ;;
10632   no:yes:* )
10633     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10634 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10635     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10636 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10637     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10638 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10639     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10640 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10641     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10643     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10644 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10645     ( cat <<\_ASBOX
10646 ## ---------------------------------------- ##
10647 ## Report this to pgsql-bugs@postgresql.org ##
10648 ## ---------------------------------------- ##
10649 _ASBOX
10650      ) | sed "s/^/$as_me: WARNING:     /" >&2
10651     ;;
10652 esac
10653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 $as_echo_n "checking for $ac_header... " >&6; }
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656   $as_echo_n "(cached) " >&6
10657 else
10658   eval "$as_ac_Header=\$ac_header_preproc"
10659 fi
10660 ac_res=`eval 'as_val=${'$as_ac_Header'}
10661                  $as_echo "$as_val"'`
10662                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10663 $as_echo "$ac_res" >&6; }
10664
10665 fi
10666 as_val=`eval 'as_val=${'$as_ac_Header'}
10667                  $as_echo "$as_val"'`
10668    if test "x$as_val" = x""yes; then
10669   cat >>confdefs.h <<_ACEOF
10670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10671 _ACEOF
10672
10673 fi
10674
10675 done
10676
10677
10678 # On BSD, test for net/if.h will fail unless sys/socket.h
10679 # is included first.
10680
10681 for ac_header in net/if.h
10682 do
10683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10684 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10685 $as_echo_n "checking for $ac_header... " >&6; }
10686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687   $as_echo_n "(cached) " >&6
10688 else
10689   cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h.  */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h.  */
10695 $ac_includes_default
10696 #ifdef HAVE_SYS_SOCKET_H
10697 #include <sys/socket.h>
10698 #endif
10699
10700
10701 #include <$ac_header>
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707   *) ac_try_echo=$ac_try;;
10708 esac
10709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10710 $as_echo "$ac_try_echo") >&5
10711   (eval "$ac_compile") 2>conftest.er1
10712   ac_status=$?
10713   grep -v '^ *+' conftest.er1 >conftest.err
10714   rm -f conftest.er1
10715   cat conftest.err >&5
10716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); } && {
10718          test -z "$ac_c_werror_flag" ||
10719          test ! -s conftest.err
10720        } && test -s conftest.$ac_objext; then
10721   eval "$as_ac_Header=yes"
10722 else
10723   $as_echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726         eval "$as_ac_Header=no"
10727 fi
10728
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 fi
10731 ac_res=`eval 'as_val=${'$as_ac_Header'}
10732                  $as_echo "$as_val"'`
10733                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10734 $as_echo "$ac_res" >&6; }
10735 as_val=`eval 'as_val=${'$as_ac_Header'}
10736                  $as_echo "$as_val"'`
10737    if test "x$as_val" = x""yes; then
10738   cat >>confdefs.h <<_ACEOF
10739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10740 _ACEOF
10741
10742 fi
10743
10744 done
10745
10746
10747 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10748 # is included first.
10749
10750 for ac_header in sys/ucred.h
10751 do
10752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10754 $as_echo_n "checking for $ac_header... " >&6; }
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756   $as_echo_n "(cached) " >&6
10757 else
10758   cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h.  */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h.  */
10764 $ac_includes_default
10765 #include <sys/param.h>
10766
10767
10768 #include <$ac_header>
10769 _ACEOF
10770 rm -f conftest.$ac_objext
10771 if { (ac_try="$ac_compile"
10772 case "(($ac_try" in
10773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774   *) ac_try_echo=$ac_try;;
10775 esac
10776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10777 $as_echo "$ac_try_echo") >&5
10778   (eval "$ac_compile") 2>conftest.er1
10779   ac_status=$?
10780   grep -v '^ *+' conftest.er1 >conftest.err
10781   rm -f conftest.er1
10782   cat conftest.err >&5
10783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); } && {
10785          test -z "$ac_c_werror_flag" ||
10786          test ! -s conftest.err
10787        } && test -s conftest.$ac_objext; then
10788   eval "$as_ac_Header=yes"
10789 else
10790   $as_echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793         eval "$as_ac_Header=no"
10794 fi
10795
10796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 fi
10798 ac_res=`eval 'as_val=${'$as_ac_Header'}
10799                  $as_echo "$as_val"'`
10800                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10801 $as_echo "$ac_res" >&6; }
10802 as_val=`eval 'as_val=${'$as_ac_Header'}
10803                  $as_echo "$as_val"'`
10804    if test "x$as_val" = x""yes; then
10805   cat >>confdefs.h <<_ACEOF
10806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10807 _ACEOF
10808
10809 fi
10810
10811 done
10812
10813
10814 # At least on IRIX, test for netinet/tcp.h will fail unless
10815 # netinet/in.h is included first.
10816
10817 for ac_header in netinet/in.h
10818 do
10819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10821   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10822 $as_echo_n "checking for $ac_header... " >&6; }
10823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10824   $as_echo_n "(cached) " >&6
10825 fi
10826 ac_res=`eval 'as_val=${'$as_ac_Header'}
10827                  $as_echo "$as_val"'`
10828                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10829 $as_echo "$ac_res" >&6; }
10830 else
10831   # Is the header compilable?
10832 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10833 $as_echo_n "checking $ac_header usability... " >&6; }
10834 cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h.  */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h.  */
10840 $ac_includes_default
10841 #include <$ac_header>
10842 _ACEOF
10843 rm -f conftest.$ac_objext
10844 if { (ac_try="$ac_compile"
10845 case "(($ac_try" in
10846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847   *) ac_try_echo=$ac_try;;
10848 esac
10849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10850 $as_echo "$ac_try_echo") >&5
10851   (eval "$ac_compile") 2>conftest.er1
10852   ac_status=$?
10853   grep -v '^ *+' conftest.er1 >conftest.err
10854   rm -f conftest.er1
10855   cat conftest.err >&5
10856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } && {
10858          test -z "$ac_c_werror_flag" ||
10859          test ! -s conftest.err
10860        } && test -s conftest.$ac_objext; then
10861   ac_header_compiler=yes
10862 else
10863   $as_echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10865
10866         ac_header_compiler=no
10867 fi
10868
10869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10871 $as_echo "$ac_header_compiler" >&6; }
10872
10873 # Is the header present?
10874 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10875 $as_echo_n "checking $ac_header presence... " >&6; }
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h.  */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h.  */
10882 #include <$ac_header>
10883 _ACEOF
10884 if { (ac_try="$ac_cpp conftest.$ac_ext"
10885 case "(($ac_try" in
10886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887   *) ac_try_echo=$ac_try;;
10888 esac
10889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10890 $as_echo "$ac_try_echo") >&5
10891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10892   ac_status=$?
10893   grep -v '^ *+' conftest.er1 >conftest.err
10894   rm -f conftest.er1
10895   cat conftest.err >&5
10896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); } >/dev/null && {
10898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10899          test ! -s conftest.err
10900        }; then
10901   ac_header_preproc=yes
10902 else
10903   $as_echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10905
10906   ac_header_preproc=no
10907 fi
10908
10909 rm -f conftest.err conftest.$ac_ext
10910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10911 $as_echo "$ac_header_preproc" >&6; }
10912
10913 # So?  What about this header?
10914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10915   yes:no: )
10916     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10917 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10918     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10919 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10920     ac_header_preproc=yes
10921     ;;
10922   no:yes:* )
10923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10924 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10926 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10928 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10930 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10934 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10935     ( cat <<\_ASBOX
10936 ## ---------------------------------------- ##
10937 ## Report this to pgsql-bugs@postgresql.org ##
10938 ## ---------------------------------------- ##
10939 _ASBOX
10940      ) | sed "s/^/$as_me: WARNING:     /" >&2
10941     ;;
10942 esac
10943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10944 $as_echo_n "checking for $ac_header... " >&6; }
10945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10946   $as_echo_n "(cached) " >&6
10947 else
10948   eval "$as_ac_Header=\$ac_header_preproc"
10949 fi
10950 ac_res=`eval 'as_val=${'$as_ac_Header'}
10951                  $as_echo "$as_val"'`
10952                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10953 $as_echo "$ac_res" >&6; }
10954
10955 fi
10956 as_val=`eval 'as_val=${'$as_ac_Header'}
10957                  $as_echo "$as_val"'`
10958    if test "x$as_val" = x""yes; then
10959   cat >>confdefs.h <<_ACEOF
10960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10961 _ACEOF
10962
10963 fi
10964
10965 done
10966
10967
10968 for ac_header in netinet/tcp.h
10969 do
10970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10971 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10972 $as_echo_n "checking for $ac_header... " >&6; }
10973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10974   $as_echo_n "(cached) " >&6
10975 else
10976   cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982 $ac_includes_default
10983 #ifdef HAVE_NETINET_IN_H
10984 #include <netinet/in.h>
10985 #endif
10986
10987
10988 #include <$ac_header>
10989 _ACEOF
10990 rm -f conftest.$ac_objext
10991 if { (ac_try="$ac_compile"
10992 case "(($ac_try" in
10993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994   *) ac_try_echo=$ac_try;;
10995 esac
10996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10997 $as_echo "$ac_try_echo") >&5
10998   (eval "$ac_compile") 2>conftest.er1
10999   ac_status=$?
11000   grep -v '^ *+' conftest.er1 >conftest.err
11001   rm -f conftest.er1
11002   cat conftest.err >&5
11003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); } && {
11005          test -z "$ac_c_werror_flag" ||
11006          test ! -s conftest.err
11007        } && test -s conftest.$ac_objext; then
11008   eval "$as_ac_Header=yes"
11009 else
11010   $as_echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013         eval "$as_ac_Header=no"
11014 fi
11015
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 fi
11018 ac_res=`eval 'as_val=${'$as_ac_Header'}
11019                  $as_echo "$as_val"'`
11020                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11021 $as_echo "$ac_res" >&6; }
11022 as_val=`eval 'as_val=${'$as_ac_Header'}
11023                  $as_echo "$as_val"'`
11024    if test "x$as_val" = x""yes; then
11025   cat >>confdefs.h <<_ACEOF
11026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11027 _ACEOF
11028
11029 fi
11030
11031 done
11032
11033
11034 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
11035
11036 for ac_header in readline/readline.h
11037 do
11038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11040   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11041 $as_echo_n "checking for $ac_header... " >&6; }
11042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11043   $as_echo_n "(cached) " >&6
11044 fi
11045 ac_res=`eval 'as_val=${'$as_ac_Header'}
11046                  $as_echo "$as_val"'`
11047                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11048 $as_echo "$ac_res" >&6; }
11049 else
11050   # Is the header compilable?
11051 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11052 $as_echo_n "checking $ac_header usability... " >&6; }
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059 $ac_includes_default
11060 #include <$ac_header>
11061 _ACEOF
11062 rm -f conftest.$ac_objext
11063 if { (ac_try="$ac_compile"
11064 case "(($ac_try" in
11065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066   *) ac_try_echo=$ac_try;;
11067 esac
11068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11069 $as_echo "$ac_try_echo") >&5
11070   (eval "$ac_compile") 2>conftest.er1
11071   ac_status=$?
11072   grep -v '^ *+' conftest.er1 >conftest.err
11073   rm -f conftest.er1
11074   cat conftest.err >&5
11075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); } && {
11077          test -z "$ac_c_werror_flag" ||
11078          test ! -s conftest.err
11079        } && test -s conftest.$ac_objext; then
11080   ac_header_compiler=yes
11081 else
11082   $as_echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085         ac_header_compiler=no
11086 fi
11087
11088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11090 $as_echo "$ac_header_compiler" >&6; }
11091
11092 # Is the header present?
11093 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11094 $as_echo_n "checking $ac_header presence... " >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101 #include <$ac_header>
11102 _ACEOF
11103 if { (ac_try="$ac_cpp conftest.$ac_ext"
11104 case "(($ac_try" in
11105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106   *) ac_try_echo=$ac_try;;
11107 esac
11108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11109 $as_echo "$ac_try_echo") >&5
11110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11111   ac_status=$?
11112   grep -v '^ *+' conftest.er1 >conftest.err
11113   rm -f conftest.er1
11114   cat conftest.err >&5
11115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); } >/dev/null && {
11117          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11118          test ! -s conftest.err
11119        }; then
11120   ac_header_preproc=yes
11121 else
11122   $as_echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11124
11125   ac_header_preproc=no
11126 fi
11127
11128 rm -f conftest.err conftest.$ac_ext
11129 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11130 $as_echo "$ac_header_preproc" >&6; }
11131
11132 # So?  What about this header?
11133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11134   yes:no: )
11135     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11136 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11139     ac_header_preproc=yes
11140     ;;
11141   no:yes:* )
11142     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11143 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11144     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11145 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11146     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11147 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11148     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11149 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11150     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11151 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11152     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11153 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11154     ( cat <<\_ASBOX
11155 ## ---------------------------------------- ##
11156 ## Report this to pgsql-bugs@postgresql.org ##
11157 ## ---------------------------------------- ##
11158 _ASBOX
11159      ) | sed "s/^/$as_me: WARNING:     /" >&2
11160     ;;
11161 esac
11162 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11163 $as_echo_n "checking for $ac_header... " >&6; }
11164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11165   $as_echo_n "(cached) " >&6
11166 else
11167   eval "$as_ac_Header=\$ac_header_preproc"
11168 fi
11169 ac_res=`eval 'as_val=${'$as_ac_Header'}
11170                  $as_echo "$as_val"'`
11171                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11172 $as_echo "$ac_res" >&6; }
11173
11174 fi
11175 as_val=`eval 'as_val=${'$as_ac_Header'}
11176                  $as_echo "$as_val"'`
11177    if test "x$as_val" = x""yes; then
11178   cat >>confdefs.h <<_ACEOF
11179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11180 _ACEOF
11181
11182 else
11183
11184 for ac_header in readline.h
11185 do
11186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11188   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11189 $as_echo_n "checking for $ac_header... " >&6; }
11190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11191   $as_echo_n "(cached) " >&6
11192 fi
11193 ac_res=`eval 'as_val=${'$as_ac_Header'}
11194                  $as_echo "$as_val"'`
11195                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11196 $as_echo "$ac_res" >&6; }
11197 else
11198   # Is the header compilable?
11199 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11200 $as_echo_n "checking $ac_header usability... " >&6; }
11201 cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h.  */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h.  */
11207 $ac_includes_default
11208 #include <$ac_header>
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (ac_try="$ac_compile"
11212 case "(($ac_try" in
11213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214   *) ac_try_echo=$ac_try;;
11215 esac
11216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11217 $as_echo "$ac_try_echo") >&5
11218   (eval "$ac_compile") 2>conftest.er1
11219   ac_status=$?
11220   grep -v '^ *+' conftest.er1 >conftest.err
11221   rm -f conftest.er1
11222   cat conftest.err >&5
11223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); } && {
11225          test -z "$ac_c_werror_flag" ||
11226          test ! -s conftest.err
11227        } && test -s conftest.$ac_objext; then
11228   ac_header_compiler=yes
11229 else
11230   $as_echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11232
11233         ac_header_compiler=no
11234 fi
11235
11236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11238 $as_echo "$ac_header_compiler" >&6; }
11239
11240 # Is the header present?
11241 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11242 $as_echo_n "checking $ac_header presence... " >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h.  */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h.  */
11249 #include <$ac_header>
11250 _ACEOF
11251 if { (ac_try="$ac_cpp conftest.$ac_ext"
11252 case "(($ac_try" in
11253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254   *) ac_try_echo=$ac_try;;
11255 esac
11256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11257 $as_echo "$ac_try_echo") >&5
11258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11259   ac_status=$?
11260   grep -v '^ *+' conftest.er1 >conftest.err
11261   rm -f conftest.er1
11262   cat conftest.err >&5
11263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } >/dev/null && {
11265          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11266          test ! -s conftest.err
11267        }; then
11268   ac_header_preproc=yes
11269 else
11270   $as_echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11272
11273   ac_header_preproc=no
11274 fi
11275
11276 rm -f conftest.err conftest.$ac_ext
11277 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11278 $as_echo "$ac_header_preproc" >&6; }
11279
11280 # So?  What about this header?
11281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11282   yes:no: )
11283     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11285     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11287     ac_header_preproc=yes
11288     ;;
11289   no:yes:* )
11290     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11291 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11292     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11293 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11294     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11296     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11297 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11298     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11300     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11301 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11302     ( cat <<\_ASBOX
11303 ## ---------------------------------------- ##
11304 ## Report this to pgsql-bugs@postgresql.org ##
11305 ## ---------------------------------------- ##
11306 _ASBOX
11307      ) | sed "s/^/$as_me: WARNING:     /" >&2
11308     ;;
11309 esac
11310 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11311 $as_echo_n "checking for $ac_header... " >&6; }
11312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11313   $as_echo_n "(cached) " >&6
11314 else
11315   eval "$as_ac_Header=\$ac_header_preproc"
11316 fi
11317 ac_res=`eval 'as_val=${'$as_ac_Header'}
11318                  $as_echo "$as_val"'`
11319                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11320 $as_echo "$ac_res" >&6; }
11321
11322 fi
11323 as_val=`eval 'as_val=${'$as_ac_Header'}
11324                  $as_echo "$as_val"'`
11325    if test "x$as_val" = x""yes; then
11326   cat >>confdefs.h <<_ACEOF
11327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11328 _ACEOF
11329
11330 else
11331   { { $as_echo "$as_me:$LINENO: error: readline header not found
11332 If you have readline already installed, see config.log for details on the
11333 failure.  It is possible the compiler isn't looking in the proper directory.
11334 Use --without-readline to disable readline support." >&5
11335 $as_echo "$as_me: error: readline header not found
11336 If you have readline already installed, see config.log for details on the
11337 failure.  It is possible the compiler isn't looking in the proper directory.
11338 Use --without-readline to disable readline support." >&2;}
11339    { (exit 1); exit 1; }; }
11340 fi
11341
11342 done
11343
11344 fi
11345
11346 done
11347
11348
11349 for ac_header in readline/history.h
11350 do
11351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11353   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11354 $as_echo_n "checking for $ac_header... " >&6; }
11355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11356   $as_echo_n "(cached) " >&6
11357 fi
11358 ac_res=`eval 'as_val=${'$as_ac_Header'}
11359                  $as_echo "$as_val"'`
11360                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11361 $as_echo "$ac_res" >&6; }
11362 else
11363   # Is the header compilable?
11364 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11365 $as_echo_n "checking $ac_header usability... " >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 $ac_includes_default
11373 #include <$ac_header>
11374 _ACEOF
11375 rm -f conftest.$ac_objext
11376 if { (ac_try="$ac_compile"
11377 case "(($ac_try" in
11378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379   *) ac_try_echo=$ac_try;;
11380 esac
11381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11382 $as_echo "$ac_try_echo") >&5
11383   (eval "$ac_compile") 2>conftest.er1
11384   ac_status=$?
11385   grep -v '^ *+' conftest.er1 >conftest.err
11386   rm -f conftest.er1
11387   cat conftest.err >&5
11388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); } && {
11390          test -z "$ac_c_werror_flag" ||
11391          test ! -s conftest.err
11392        } && test -s conftest.$ac_objext; then
11393   ac_header_compiler=yes
11394 else
11395   $as_echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11397
11398         ac_header_compiler=no
11399 fi
11400
11401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11403 $as_echo "$ac_header_compiler" >&6; }
11404
11405 # Is the header present?
11406 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11407 $as_echo_n "checking $ac_header presence... " >&6; }
11408 cat >conftest.$ac_ext <<_ACEOF
11409 /* confdefs.h.  */
11410 _ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h.  */
11414 #include <$ac_header>
11415 _ACEOF
11416 if { (ac_try="$ac_cpp conftest.$ac_ext"
11417 case "(($ac_try" in
11418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419   *) ac_try_echo=$ac_try;;
11420 esac
11421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11422 $as_echo "$ac_try_echo") >&5
11423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11424   ac_status=$?
11425   grep -v '^ *+' conftest.er1 >conftest.err
11426   rm -f conftest.er1
11427   cat conftest.err >&5
11428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); } >/dev/null && {
11430          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11431          test ! -s conftest.err
11432        }; then
11433   ac_header_preproc=yes
11434 else
11435   $as_echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11437
11438   ac_header_preproc=no
11439 fi
11440
11441 rm -f conftest.err conftest.$ac_ext
11442 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11443 $as_echo "$ac_header_preproc" >&6; }
11444
11445 # So?  What about this header?
11446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11447   yes:no: )
11448     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11449 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11450     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11451 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11452     ac_header_preproc=yes
11453     ;;
11454   no:yes:* )
11455     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11456 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11457     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11458 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11460 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11461     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11462 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11463     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11464 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11465     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11466 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11467     ( cat <<\_ASBOX
11468 ## ---------------------------------------- ##
11469 ## Report this to pgsql-bugs@postgresql.org ##
11470 ## ---------------------------------------- ##
11471 _ASBOX
11472      ) | sed "s/^/$as_me: WARNING:     /" >&2
11473     ;;
11474 esac
11475 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11476 $as_echo_n "checking for $ac_header... " >&6; }
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478   $as_echo_n "(cached) " >&6
11479 else
11480   eval "$as_ac_Header=\$ac_header_preproc"
11481 fi
11482 ac_res=`eval 'as_val=${'$as_ac_Header'}
11483                  $as_echo "$as_val"'`
11484                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11485 $as_echo "$ac_res" >&6; }
11486
11487 fi
11488 as_val=`eval 'as_val=${'$as_ac_Header'}
11489                  $as_echo "$as_val"'`
11490    if test "x$as_val" = x""yes; then
11491   cat >>confdefs.h <<_ACEOF
11492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11493 _ACEOF
11494
11495 else
11496
11497 for ac_header in history.h
11498 do
11499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11502 $as_echo_n "checking for $ac_header... " >&6; }
11503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11504   $as_echo_n "(cached) " >&6
11505 fi
11506 ac_res=`eval 'as_val=${'$as_ac_Header'}
11507                  $as_echo "$as_val"'`
11508                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11509 $as_echo "$ac_res" >&6; }
11510 else
11511   # Is the header compilable?
11512 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11513 $as_echo_n "checking $ac_header usability... " >&6; }
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h.  */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h.  */
11520 $ac_includes_default
11521 #include <$ac_header>
11522 _ACEOF
11523 rm -f conftest.$ac_objext
11524 if { (ac_try="$ac_compile"
11525 case "(($ac_try" in
11526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527   *) ac_try_echo=$ac_try;;
11528 esac
11529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11530 $as_echo "$ac_try_echo") >&5
11531   (eval "$ac_compile") 2>conftest.er1
11532   ac_status=$?
11533   grep -v '^ *+' conftest.er1 >conftest.err
11534   rm -f conftest.er1
11535   cat conftest.err >&5
11536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); } && {
11538          test -z "$ac_c_werror_flag" ||
11539          test ! -s conftest.err
11540        } && test -s conftest.$ac_objext; then
11541   ac_header_compiler=yes
11542 else
11543   $as_echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11545
11546         ac_header_compiler=no
11547 fi
11548
11549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11551 $as_echo "$ac_header_compiler" >&6; }
11552
11553 # Is the header present?
11554 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11555 $as_echo_n "checking $ac_header presence... " >&6; }
11556 cat >conftest.$ac_ext <<_ACEOF
11557 /* confdefs.h.  */
11558 _ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h.  */
11562 #include <$ac_header>
11563 _ACEOF
11564 if { (ac_try="$ac_cpp conftest.$ac_ext"
11565 case "(($ac_try" in
11566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567   *) ac_try_echo=$ac_try;;
11568 esac
11569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11570 $as_echo "$ac_try_echo") >&5
11571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11572   ac_status=$?
11573   grep -v '^ *+' conftest.er1 >conftest.err
11574   rm -f conftest.er1
11575   cat conftest.err >&5
11576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } >/dev/null && {
11578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11579          test ! -s conftest.err
11580        }; then
11581   ac_header_preproc=yes
11582 else
11583   $as_echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11585
11586   ac_header_preproc=no
11587 fi
11588
11589 rm -f conftest.err conftest.$ac_ext
11590 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11591 $as_echo "$ac_header_preproc" >&6; }
11592
11593 # So?  What about this header?
11594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11595   yes:no: )
11596     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11597 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11598     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11599 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11600     ac_header_preproc=yes
11601     ;;
11602   no:yes:* )
11603     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11604 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11605     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11606 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11607     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11608 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11609     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11610 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11611     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11612 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11613     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11614 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11615     ( cat <<\_ASBOX
11616 ## ---------------------------------------- ##
11617 ## Report this to pgsql-bugs@postgresql.org ##
11618 ## ---------------------------------------- ##
11619 _ASBOX
11620      ) | sed "s/^/$as_me: WARNING:     /" >&2
11621     ;;
11622 esac
11623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11624 $as_echo_n "checking for $ac_header... " >&6; }
11625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11626   $as_echo_n "(cached) " >&6
11627 else
11628   eval "$as_ac_Header=\$ac_header_preproc"
11629 fi
11630 ac_res=`eval 'as_val=${'$as_ac_Header'}
11631                  $as_echo "$as_val"'`
11632                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11633 $as_echo "$ac_res" >&6; }
11634
11635 fi
11636 as_val=`eval 'as_val=${'$as_ac_Header'}
11637                  $as_echo "$as_val"'`
11638    if test "x$as_val" = x""yes; then
11639   cat >>confdefs.h <<_ACEOF
11640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11641 _ACEOF
11642
11643 else
11644   { { $as_echo "$as_me:$LINENO: error: history header not found
11645 If you have readline already installed, see config.log for details on the
11646 failure.  It is possible the compiler isn't looking in the proper directory.
11647 Use --without-readline to disable readline support." >&5
11648 $as_echo "$as_me: error: history header not found
11649 If you have readline already installed, see config.log for details on the
11650 failure.  It is possible the compiler isn't looking in the proper directory.
11651 Use --without-readline to disable readline support." >&2;}
11652    { (exit 1); exit 1; }; }
11653 fi
11654
11655 done
11656
11657 fi
11658
11659 done
11660
11661 fi
11662
11663 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11664 # Some installations of libedit usurp /usr/include/readline/, which seems
11665 # bad practice, since in combined installations readline will have its headers
11666 # there.  We might have to resort to AC_EGREP checks to make sure we found
11667 # the proper header...
11668
11669 for ac_header in editline/readline.h
11670 do
11671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11673   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11674 $as_echo_n "checking for $ac_header... " >&6; }
11675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11676   $as_echo_n "(cached) " >&6
11677 fi
11678 ac_res=`eval 'as_val=${'$as_ac_Header'}
11679                  $as_echo "$as_val"'`
11680                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11681 $as_echo "$ac_res" >&6; }
11682 else
11683   # Is the header compilable?
11684 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11685 $as_echo_n "checking $ac_header usability... " >&6; }
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h.  */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h.  */
11692 $ac_includes_default
11693 #include <$ac_header>
11694 _ACEOF
11695 rm -f conftest.$ac_objext
11696 if { (ac_try="$ac_compile"
11697 case "(($ac_try" in
11698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699   *) ac_try_echo=$ac_try;;
11700 esac
11701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11702 $as_echo "$ac_try_echo") >&5
11703   (eval "$ac_compile") 2>conftest.er1
11704   ac_status=$?
11705   grep -v '^ *+' conftest.er1 >conftest.err
11706   rm -f conftest.er1
11707   cat conftest.err >&5
11708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); } && {
11710          test -z "$ac_c_werror_flag" ||
11711          test ! -s conftest.err
11712        } && test -s conftest.$ac_objext; then
11713   ac_header_compiler=yes
11714 else
11715   $as_echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11717
11718         ac_header_compiler=no
11719 fi
11720
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11723 $as_echo "$ac_header_compiler" >&6; }
11724
11725 # Is the header present?
11726 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11727 $as_echo_n "checking $ac_header presence... " >&6; }
11728 cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h.  */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h.  */
11734 #include <$ac_header>
11735 _ACEOF
11736 if { (ac_try="$ac_cpp conftest.$ac_ext"
11737 case "(($ac_try" in
11738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739   *) ac_try_echo=$ac_try;;
11740 esac
11741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11742 $as_echo "$ac_try_echo") >&5
11743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11744   ac_status=$?
11745   grep -v '^ *+' conftest.er1 >conftest.err
11746   rm -f conftest.er1
11747   cat conftest.err >&5
11748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } >/dev/null && {
11750          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11751          test ! -s conftest.err
11752        }; then
11753   ac_header_preproc=yes
11754 else
11755   $as_echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758   ac_header_preproc=no
11759 fi
11760
11761 rm -f conftest.err conftest.$ac_ext
11762 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11763 $as_echo "$ac_header_preproc" >&6; }
11764
11765 # So?  What about this header?
11766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11767   yes:no: )
11768     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11769 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11770     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11771 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11772     ac_header_preproc=yes
11773     ;;
11774   no:yes:* )
11775     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11776 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11777     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11778 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11780 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11782 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11786 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11787     ( cat <<\_ASBOX
11788 ## ---------------------------------------- ##
11789 ## Report this to pgsql-bugs@postgresql.org ##
11790 ## ---------------------------------------- ##
11791 _ASBOX
11792      ) | sed "s/^/$as_me: WARNING:     /" >&2
11793     ;;
11794 esac
11795 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11796 $as_echo_n "checking for $ac_header... " >&6; }
11797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11798   $as_echo_n "(cached) " >&6
11799 else
11800   eval "$as_ac_Header=\$ac_header_preproc"
11801 fi
11802 ac_res=`eval 'as_val=${'$as_ac_Header'}
11803                  $as_echo "$as_val"'`
11804                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11805 $as_echo "$ac_res" >&6; }
11806
11807 fi
11808 as_val=`eval 'as_val=${'$as_ac_Header'}
11809                  $as_echo "$as_val"'`
11810    if test "x$as_val" = x""yes; then
11811   cat >>confdefs.h <<_ACEOF
11812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11813 _ACEOF
11814
11815 else
11816
11817 for ac_header in readline.h
11818 do
11819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11821   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11822 $as_echo_n "checking for $ac_header... " >&6; }
11823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11824   $as_echo_n "(cached) " >&6
11825 fi
11826 ac_res=`eval 'as_val=${'$as_ac_Header'}
11827                  $as_echo "$as_val"'`
11828                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11829 $as_echo "$ac_res" >&6; }
11830 else
11831   # Is the header compilable?
11832 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11833 $as_echo_n "checking $ac_header usability... " >&6; }
11834 cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h.  */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h.  */
11840 $ac_includes_default
11841 #include <$ac_header>
11842 _ACEOF
11843 rm -f conftest.$ac_objext
11844 if { (ac_try="$ac_compile"
11845 case "(($ac_try" in
11846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847   *) ac_try_echo=$ac_try;;
11848 esac
11849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11850 $as_echo "$ac_try_echo") >&5
11851   (eval "$ac_compile") 2>conftest.er1
11852   ac_status=$?
11853   grep -v '^ *+' conftest.er1 >conftest.err
11854   rm -f conftest.er1
11855   cat conftest.err >&5
11856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); } && {
11858          test -z "$ac_c_werror_flag" ||
11859          test ! -s conftest.err
11860        } && test -s conftest.$ac_objext; then
11861   ac_header_compiler=yes
11862 else
11863   $as_echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11865
11866         ac_header_compiler=no
11867 fi
11868
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11871 $as_echo "$ac_header_compiler" >&6; }
11872
11873 # Is the header present?
11874 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11875 $as_echo_n "checking $ac_header presence... " >&6; }
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h.  */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h.  */
11882 #include <$ac_header>
11883 _ACEOF
11884 if { (ac_try="$ac_cpp conftest.$ac_ext"
11885 case "(($ac_try" in
11886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887   *) ac_try_echo=$ac_try;;
11888 esac
11889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11890 $as_echo "$ac_try_echo") >&5
11891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11892   ac_status=$?
11893   grep -v '^ *+' conftest.er1 >conftest.err
11894   rm -f conftest.er1
11895   cat conftest.err >&5
11896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); } >/dev/null && {
11898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11899          test ! -s conftest.err
11900        }; then
11901   ac_header_preproc=yes
11902 else
11903   $as_echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906   ac_header_preproc=no
11907 fi
11908
11909 rm -f conftest.err conftest.$ac_ext
11910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11911 $as_echo "$ac_header_preproc" >&6; }
11912
11913 # So?  What about this header?
11914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11915   yes:no: )
11916     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11917 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11918     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11919 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11920     ac_header_preproc=yes
11921     ;;
11922   no:yes:* )
11923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11924 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11926 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11928 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11930 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11934 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11935     ( cat <<\_ASBOX
11936 ## ---------------------------------------- ##
11937 ## Report this to pgsql-bugs@postgresql.org ##
11938 ## ---------------------------------------- ##
11939 _ASBOX
11940      ) | sed "s/^/$as_me: WARNING:     /" >&2
11941     ;;
11942 esac
11943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11944 $as_echo_n "checking for $ac_header... " >&6; }
11945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11946   $as_echo_n "(cached) " >&6
11947 else
11948   eval "$as_ac_Header=\$ac_header_preproc"
11949 fi
11950 ac_res=`eval 'as_val=${'$as_ac_Header'}
11951                  $as_echo "$as_val"'`
11952                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11953 $as_echo "$ac_res" >&6; }
11954
11955 fi
11956 as_val=`eval 'as_val=${'$as_ac_Header'}
11957                  $as_echo "$as_val"'`
11958    if test "x$as_val" = x""yes; then
11959   cat >>confdefs.h <<_ACEOF
11960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11961 _ACEOF
11962
11963 else
11964
11965 for ac_header in readline/readline.h
11966 do
11967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11969   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11970 $as_echo_n "checking for $ac_header... " >&6; }
11971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11972   $as_echo_n "(cached) " >&6
11973 fi
11974 ac_res=`eval 'as_val=${'$as_ac_Header'}
11975                  $as_echo "$as_val"'`
11976                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11977 $as_echo "$ac_res" >&6; }
11978 else
11979   # Is the header compilable?
11980 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11981 $as_echo_n "checking $ac_header usability... " >&6; }
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h.  */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h.  */
11988 $ac_includes_default
11989 #include <$ac_header>
11990 _ACEOF
11991 rm -f conftest.$ac_objext
11992 if { (ac_try="$ac_compile"
11993 case "(($ac_try" in
11994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995   *) ac_try_echo=$ac_try;;
11996 esac
11997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11998 $as_echo "$ac_try_echo") >&5
11999   (eval "$ac_compile") 2>conftest.er1
12000   ac_status=$?
12001   grep -v '^ *+' conftest.er1 >conftest.err
12002   rm -f conftest.er1
12003   cat conftest.err >&5
12004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); } && {
12006          test -z "$ac_c_werror_flag" ||
12007          test ! -s conftest.err
12008        } && test -s conftest.$ac_objext; then
12009   ac_header_compiler=yes
12010 else
12011   $as_echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12013
12014         ac_header_compiler=no
12015 fi
12016
12017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12018 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12019 $as_echo "$ac_header_compiler" >&6; }
12020
12021 # Is the header present?
12022 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12023 $as_echo_n "checking $ac_header presence... " >&6; }
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h.  */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h.  */
12030 #include <$ac_header>
12031 _ACEOF
12032 if { (ac_try="$ac_cpp conftest.$ac_ext"
12033 case "(($ac_try" in
12034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035   *) ac_try_echo=$ac_try;;
12036 esac
12037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12038 $as_echo "$ac_try_echo") >&5
12039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12040   ac_status=$?
12041   grep -v '^ *+' conftest.er1 >conftest.err
12042   rm -f conftest.er1
12043   cat conftest.err >&5
12044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); } >/dev/null && {
12046          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12047          test ! -s conftest.err
12048        }; then
12049   ac_header_preproc=yes
12050 else
12051   $as_echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12053
12054   ac_header_preproc=no
12055 fi
12056
12057 rm -f conftest.err conftest.$ac_ext
12058 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12059 $as_echo "$ac_header_preproc" >&6; }
12060
12061 # So?  What about this header?
12062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12063   yes:no: )
12064     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12065 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12067 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12068     ac_header_preproc=yes
12069     ;;
12070   no:yes:* )
12071     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12072 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12073     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12074 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12075     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12076 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12077     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12078 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12080 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12081     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12082 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12083     ( cat <<\_ASBOX
12084 ## ---------------------------------------- ##
12085 ## Report this to pgsql-bugs@postgresql.org ##
12086 ## ---------------------------------------- ##
12087 _ASBOX
12088      ) | sed "s/^/$as_me: WARNING:     /" >&2
12089     ;;
12090 esac
12091 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12092 $as_echo_n "checking for $ac_header... " >&6; }
12093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094   $as_echo_n "(cached) " >&6
12095 else
12096   eval "$as_ac_Header=\$ac_header_preproc"
12097 fi
12098 ac_res=`eval 'as_val=${'$as_ac_Header'}
12099                  $as_echo "$as_val"'`
12100                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12101 $as_echo "$ac_res" >&6; }
12102
12103 fi
12104 as_val=`eval 'as_val=${'$as_ac_Header'}
12105                  $as_echo "$as_val"'`
12106    if test "x$as_val" = x""yes; then
12107   cat >>confdefs.h <<_ACEOF
12108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12109 _ACEOF
12110
12111 else
12112   { { $as_echo "$as_me:$LINENO: error: readline header not found
12113 If you have libedit already installed, see config.log for details on the
12114 failure.  It is possible the compiler isn't looking in the proper directory.
12115 Use --without-readline to disable libedit support." >&5
12116 $as_echo "$as_me: error: readline header not found
12117 If you have libedit already installed, see config.log for details on the
12118 failure.  It is possible the compiler isn't looking in the proper directory.
12119 Use --without-readline to disable libedit support." >&2;}
12120    { (exit 1); exit 1; }; }
12121 fi
12122
12123 done
12124
12125 fi
12126
12127 done
12128
12129 fi
12130
12131 done
12132
12133 # Note: in a libedit installation, history.h is sometimes a dummy, and may
12134 # not be there at all.  Hence, don't complain if not found.  We must check
12135 # though, since in yet other versions it is an independent header.
12136
12137 for ac_header in editline/history.h
12138 do
12139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12141   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12142 $as_echo_n "checking for $ac_header... " >&6; }
12143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12144   $as_echo_n "(cached) " >&6
12145 fi
12146 ac_res=`eval 'as_val=${'$as_ac_Header'}
12147                  $as_echo "$as_val"'`
12148                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12149 $as_echo "$ac_res" >&6; }
12150 else
12151   # Is the header compilable?
12152 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12153 $as_echo_n "checking $ac_header usability... " >&6; }
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160 $ac_includes_default
12161 #include <$ac_header>
12162 _ACEOF
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167   *) ac_try_echo=$ac_try;;
12168 esac
12169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170 $as_echo "$ac_try_echo") >&5
12171   (eval "$ac_compile") 2>conftest.er1
12172   ac_status=$?
12173   grep -v '^ *+' conftest.er1 >conftest.err
12174   rm -f conftest.er1
12175   cat conftest.err >&5
12176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } && {
12178          test -z "$ac_c_werror_flag" ||
12179          test ! -s conftest.err
12180        } && test -s conftest.$ac_objext; then
12181   ac_header_compiler=yes
12182 else
12183   $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186         ac_header_compiler=no
12187 fi
12188
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12191 $as_echo "$ac_header_compiler" >&6; }
12192
12193 # Is the header present?
12194 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12195 $as_echo_n "checking $ac_header presence... " >&6; }
12196 cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h.  */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h.  */
12202 #include <$ac_header>
12203 _ACEOF
12204 if { (ac_try="$ac_cpp conftest.$ac_ext"
12205 case "(($ac_try" in
12206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207   *) ac_try_echo=$ac_try;;
12208 esac
12209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } >/dev/null && {
12218          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12219          test ! -s conftest.err
12220        }; then
12221   ac_header_preproc=yes
12222 else
12223   $as_echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226   ac_header_preproc=no
12227 fi
12228
12229 rm -f conftest.err conftest.$ac_ext
12230 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 $as_echo "$ac_header_preproc" >&6; }
12232
12233 # So?  What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12235   yes:no: )
12236     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12237 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12240     ac_header_preproc=yes
12241     ;;
12242   no:yes:* )
12243     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12244 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12245     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12246 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12247     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12248 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12249     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12250 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12251     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12252 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12253     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12254 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12255     ( cat <<\_ASBOX
12256 ## ---------------------------------------- ##
12257 ## Report this to pgsql-bugs@postgresql.org ##
12258 ## ---------------------------------------- ##
12259 _ASBOX
12260      ) | sed "s/^/$as_me: WARNING:     /" >&2
12261     ;;
12262 esac
12263 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 $as_echo_n "checking for $ac_header... " >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266   $as_echo_n "(cached) " >&6
12267 else
12268   eval "$as_ac_Header=\$ac_header_preproc"
12269 fi
12270 ac_res=`eval 'as_val=${'$as_ac_Header'}
12271                  $as_echo "$as_val"'`
12272                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12273 $as_echo "$ac_res" >&6; }
12274
12275 fi
12276 as_val=`eval 'as_val=${'$as_ac_Header'}
12277                  $as_echo "$as_val"'`
12278    if test "x$as_val" = x""yes; then
12279   cat >>confdefs.h <<_ACEOF
12280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12281 _ACEOF
12282
12283 else
12284
12285 for ac_header in history.h
12286 do
12287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12289   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12290 $as_echo_n "checking for $ac_header... " >&6; }
12291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12292   $as_echo_n "(cached) " >&6
12293 fi
12294 ac_res=`eval 'as_val=${'$as_ac_Header'}
12295                  $as_echo "$as_val"'`
12296                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12297 $as_echo "$ac_res" >&6; }
12298 else
12299   # Is the header compilable?
12300 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12301 $as_echo_n "checking $ac_header usability... " >&6; }
12302 cat >conftest.$ac_ext <<_ACEOF
12303 /* confdefs.h.  */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h.  */
12308 $ac_includes_default
12309 #include <$ac_header>
12310 _ACEOF
12311 rm -f conftest.$ac_objext
12312 if { (ac_try="$ac_compile"
12313 case "(($ac_try" in
12314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315   *) ac_try_echo=$ac_try;;
12316 esac
12317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12318 $as_echo "$ac_try_echo") >&5
12319   (eval "$ac_compile") 2>conftest.er1
12320   ac_status=$?
12321   grep -v '^ *+' conftest.er1 >conftest.err
12322   rm -f conftest.er1
12323   cat conftest.err >&5
12324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); } && {
12326          test -z "$ac_c_werror_flag" ||
12327          test ! -s conftest.err
12328        } && test -s conftest.$ac_objext; then
12329   ac_header_compiler=yes
12330 else
12331   $as_echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12333
12334         ac_header_compiler=no
12335 fi
12336
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12339 $as_echo "$ac_header_compiler" >&6; }
12340
12341 # Is the header present?
12342 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12343 $as_echo_n "checking $ac_header presence... " >&6; }
12344 cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h.  */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h.  */
12350 #include <$ac_header>
12351 _ACEOF
12352 if { (ac_try="$ac_cpp conftest.$ac_ext"
12353 case "(($ac_try" in
12354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355   *) ac_try_echo=$ac_try;;
12356 esac
12357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12358 $as_echo "$ac_try_echo") >&5
12359   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12360   ac_status=$?
12361   grep -v '^ *+' conftest.er1 >conftest.err
12362   rm -f conftest.er1
12363   cat conftest.err >&5
12364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); } >/dev/null && {
12366          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12367          test ! -s conftest.err
12368        }; then
12369   ac_header_preproc=yes
12370 else
12371   $as_echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12373
12374   ac_header_preproc=no
12375 fi
12376
12377 rm -f conftest.err conftest.$ac_ext
12378 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12379 $as_echo "$ac_header_preproc" >&6; }
12380
12381 # So?  What about this header?
12382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12383   yes:no: )
12384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12385 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12388     ac_header_preproc=yes
12389     ;;
12390   no:yes:* )
12391     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12392 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12393     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12394 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12395     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12396 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12397     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12398 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12399     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12400 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12401     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12402 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12403     ( cat <<\_ASBOX
12404 ## ---------------------------------------- ##
12405 ## Report this to pgsql-bugs@postgresql.org ##
12406 ## ---------------------------------------- ##
12407 _ASBOX
12408      ) | sed "s/^/$as_me: WARNING:     /" >&2
12409     ;;
12410 esac
12411 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12412 $as_echo_n "checking for $ac_header... " >&6; }
12413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12414   $as_echo_n "(cached) " >&6
12415 else
12416   eval "$as_ac_Header=\$ac_header_preproc"
12417 fi
12418 ac_res=`eval 'as_val=${'$as_ac_Header'}
12419                  $as_echo "$as_val"'`
12420                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12421 $as_echo "$ac_res" >&6; }
12422
12423 fi
12424 as_val=`eval 'as_val=${'$as_ac_Header'}
12425                  $as_echo "$as_val"'`
12426    if test "x$as_val" = x""yes; then
12427   cat >>confdefs.h <<_ACEOF
12428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12429 _ACEOF
12430
12431 else
12432
12433 for ac_header in readline/history.h
12434 do
12435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12437   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12438 $as_echo_n "checking for $ac_header... " >&6; }
12439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12440   $as_echo_n "(cached) " >&6
12441 fi
12442 ac_res=`eval 'as_val=${'$as_ac_Header'}
12443                  $as_echo "$as_val"'`
12444                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12445 $as_echo "$ac_res" >&6; }
12446 else
12447   # Is the header compilable?
12448 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12449 $as_echo_n "checking $ac_header usability... " >&6; }
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h.  */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h.  */
12456 $ac_includes_default
12457 #include <$ac_header>
12458 _ACEOF
12459 rm -f conftest.$ac_objext
12460 if { (ac_try="$ac_compile"
12461 case "(($ac_try" in
12462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463   *) ac_try_echo=$ac_try;;
12464 esac
12465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12466 $as_echo "$ac_try_echo") >&5
12467   (eval "$ac_compile") 2>conftest.er1
12468   ac_status=$?
12469   grep -v '^ *+' conftest.er1 >conftest.err
12470   rm -f conftest.er1
12471   cat conftest.err >&5
12472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); } && {
12474          test -z "$ac_c_werror_flag" ||
12475          test ! -s conftest.err
12476        } && test -s conftest.$ac_objext; then
12477   ac_header_compiler=yes
12478 else
12479   $as_echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482         ac_header_compiler=no
12483 fi
12484
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12487 $as_echo "$ac_header_compiler" >&6; }
12488
12489 # Is the header present?
12490 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12491 $as_echo_n "checking $ac_header presence... " >&6; }
12492 cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h.  */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h.  */
12498 #include <$ac_header>
12499 _ACEOF
12500 if { (ac_try="$ac_cpp conftest.$ac_ext"
12501 case "(($ac_try" in
12502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503   *) ac_try_echo=$ac_try;;
12504 esac
12505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12506 $as_echo "$ac_try_echo") >&5
12507   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12508   ac_status=$?
12509   grep -v '^ *+' conftest.er1 >conftest.err
12510   rm -f conftest.er1
12511   cat conftest.err >&5
12512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } >/dev/null && {
12514          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12515          test ! -s conftest.err
12516        }; then
12517   ac_header_preproc=yes
12518 else
12519   $as_echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12521
12522   ac_header_preproc=no
12523 fi
12524
12525 rm -f conftest.err conftest.$ac_ext
12526 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12527 $as_echo "$ac_header_preproc" >&6; }
12528
12529 # So?  What about this header?
12530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12531   yes:no: )
12532     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12533 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12534     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12535 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12536     ac_header_preproc=yes
12537     ;;
12538   no:yes:* )
12539     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12540 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12541     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12542 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12543     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12544 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12545     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12546 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12548 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12550 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12551     ( cat <<\_ASBOX
12552 ## ---------------------------------------- ##
12553 ## Report this to pgsql-bugs@postgresql.org ##
12554 ## ---------------------------------------- ##
12555 _ASBOX
12556      ) | sed "s/^/$as_me: WARNING:     /" >&2
12557     ;;
12558 esac
12559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12560 $as_echo_n "checking for $ac_header... " >&6; }
12561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12562   $as_echo_n "(cached) " >&6
12563 else
12564   eval "$as_ac_Header=\$ac_header_preproc"
12565 fi
12566 ac_res=`eval 'as_val=${'$as_ac_Header'}
12567                  $as_echo "$as_val"'`
12568                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12569 $as_echo "$ac_res" >&6; }
12570
12571 fi
12572 as_val=`eval 'as_val=${'$as_ac_Header'}
12573                  $as_echo "$as_val"'`
12574    if test "x$as_val" = x""yes; then
12575   cat >>confdefs.h <<_ACEOF
12576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12577 _ACEOF
12578
12579 fi
12580
12581 done
12582
12583 fi
12584
12585 done
12586
12587 fi
12588
12589 done
12590
12591 fi
12592
12593 if test "$with_zlib" = yes; then
12594   if test "${ac_cv_header_zlib_h+set}" = set; then
12595   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12596 $as_echo_n "checking for zlib.h... " >&6; }
12597 if test "${ac_cv_header_zlib_h+set}" = set; then
12598   $as_echo_n "(cached) " >&6
12599 fi
12600 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12601 $as_echo "$ac_cv_header_zlib_h" >&6; }
12602 else
12603   # Is the header compilable?
12604 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12605 $as_echo_n "checking zlib.h usability... " >&6; }
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h.  */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h.  */
12612 $ac_includes_default
12613 #include <zlib.h>
12614 _ACEOF
12615 rm -f conftest.$ac_objext
12616 if { (ac_try="$ac_compile"
12617 case "(($ac_try" in
12618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619   *) ac_try_echo=$ac_try;;
12620 esac
12621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12622 $as_echo "$ac_try_echo") >&5
12623   (eval "$ac_compile") 2>conftest.er1
12624   ac_status=$?
12625   grep -v '^ *+' conftest.er1 >conftest.err
12626   rm -f conftest.er1
12627   cat conftest.err >&5
12628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); } && {
12630          test -z "$ac_c_werror_flag" ||
12631          test ! -s conftest.err
12632        } && test -s conftest.$ac_objext; then
12633   ac_header_compiler=yes
12634 else
12635   $as_echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12637
12638         ac_header_compiler=no
12639 fi
12640
12641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12643 $as_echo "$ac_header_compiler" >&6; }
12644
12645 # Is the header present?
12646 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12647 $as_echo_n "checking zlib.h presence... " >&6; }
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h.  */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h.  */
12654 #include <zlib.h>
12655 _ACEOF
12656 if { (ac_try="$ac_cpp conftest.$ac_ext"
12657 case "(($ac_try" in
12658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659   *) ac_try_echo=$ac_try;;
12660 esac
12661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12662 $as_echo "$ac_try_echo") >&5
12663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12664   ac_status=$?
12665   grep -v '^ *+' conftest.er1 >conftest.err
12666   rm -f conftest.er1
12667   cat conftest.err >&5
12668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); } >/dev/null && {
12670          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12671          test ! -s conftest.err
12672        }; then
12673   ac_header_preproc=yes
12674 else
12675   $as_echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12677
12678   ac_header_preproc=no
12679 fi
12680
12681 rm -f conftest.err conftest.$ac_ext
12682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12683 $as_echo "$ac_header_preproc" >&6; }
12684
12685 # So?  What about this header?
12686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12687   yes:no: )
12688     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12689 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12690     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12691 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12692     ac_header_preproc=yes
12693     ;;
12694   no:yes:* )
12695     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12696 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12697     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12698 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12699     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12700 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12701     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12702 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12703     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12704 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12705     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12706 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12707     ( cat <<\_ASBOX
12708 ## ---------------------------------------- ##
12709 ## Report this to pgsql-bugs@postgresql.org ##
12710 ## ---------------------------------------- ##
12711 _ASBOX
12712      ) | sed "s/^/$as_me: WARNING:     /" >&2
12713     ;;
12714 esac
12715 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12716 $as_echo_n "checking for zlib.h... " >&6; }
12717 if test "${ac_cv_header_zlib_h+set}" = set; then
12718   $as_echo_n "(cached) " >&6
12719 else
12720   ac_cv_header_zlib_h=$ac_header_preproc
12721 fi
12722 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12723 $as_echo "$ac_cv_header_zlib_h" >&6; }
12724
12725 fi
12726 if test "x$ac_cv_header_zlib_h" = x""yes; then
12727   :
12728 else
12729   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12730 If you have zlib already installed, see config.log for details on the
12731 failure.  It is possible the compiler isn't looking in the proper directory.
12732 Use --without-zlib to disable zlib support." >&5
12733 $as_echo "$as_me: error: zlib header not found
12734 If you have zlib already installed, see config.log for details on the
12735 failure.  It is possible the compiler isn't looking in the proper directory.
12736 Use --without-zlib to disable zlib support." >&2;}
12737    { (exit 1); exit 1; }; }
12738 fi
12739
12740
12741 fi
12742
12743 if test "$with_gssapi" = yes ; then
12744
12745 for ac_header in gssapi/gssapi.h
12746 do
12747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12749   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12750 $as_echo_n "checking for $ac_header... " >&6; }
12751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12752   $as_echo_n "(cached) " >&6
12753 fi
12754 ac_res=`eval 'as_val=${'$as_ac_Header'}
12755                  $as_echo "$as_val"'`
12756                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12757 $as_echo "$ac_res" >&6; }
12758 else
12759   # Is the header compilable?
12760 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12761 $as_echo_n "checking $ac_header usability... " >&6; }
12762 cat >conftest.$ac_ext <<_ACEOF
12763 /* confdefs.h.  */
12764 _ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h.  */
12768 $ac_includes_default
12769 #include <$ac_header>
12770 _ACEOF
12771 rm -f conftest.$ac_objext
12772 if { (ac_try="$ac_compile"
12773 case "(($ac_try" in
12774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775   *) ac_try_echo=$ac_try;;
12776 esac
12777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12778 $as_echo "$ac_try_echo") >&5
12779   (eval "$ac_compile") 2>conftest.er1
12780   ac_status=$?
12781   grep -v '^ *+' conftest.er1 >conftest.err
12782   rm -f conftest.er1
12783   cat conftest.err >&5
12784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); } && {
12786          test -z "$ac_c_werror_flag" ||
12787          test ! -s conftest.err
12788        } && test -s conftest.$ac_objext; then
12789   ac_header_compiler=yes
12790 else
12791   $as_echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794         ac_header_compiler=no
12795 fi
12796
12797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12799 $as_echo "$ac_header_compiler" >&6; }
12800
12801 # Is the header present?
12802 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12803 $as_echo_n "checking $ac_header presence... " >&6; }
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h.  */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h.  */
12810 #include <$ac_header>
12811 _ACEOF
12812 if { (ac_try="$ac_cpp conftest.$ac_ext"
12813 case "(($ac_try" in
12814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815   *) ac_try_echo=$ac_try;;
12816 esac
12817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12818 $as_echo "$ac_try_echo") >&5
12819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12820   ac_status=$?
12821   grep -v '^ *+' conftest.er1 >conftest.err
12822   rm -f conftest.er1
12823   cat conftest.err >&5
12824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); } >/dev/null && {
12826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12827          test ! -s conftest.err
12828        }; then
12829   ac_header_preproc=yes
12830 else
12831   $as_echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12833
12834   ac_header_preproc=no
12835 fi
12836
12837 rm -f conftest.err conftest.$ac_ext
12838 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12839 $as_echo "$ac_header_preproc" >&6; }
12840
12841 # So?  What about this header?
12842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12843   yes:no: )
12844     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12845 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12846     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12847 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12848     ac_header_preproc=yes
12849     ;;
12850   no:yes:* )
12851     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12852 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12853     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12854 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12855     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12856 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12857     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12858 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12859     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12861     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12862 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12863     ( cat <<\_ASBOX
12864 ## ---------------------------------------- ##
12865 ## Report this to pgsql-bugs@postgresql.org ##
12866 ## ---------------------------------------- ##
12867 _ASBOX
12868      ) | sed "s/^/$as_me: WARNING:     /" >&2
12869     ;;
12870 esac
12871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12872 $as_echo_n "checking for $ac_header... " >&6; }
12873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12874   $as_echo_n "(cached) " >&6
12875 else
12876   eval "$as_ac_Header=\$ac_header_preproc"
12877 fi
12878 ac_res=`eval 'as_val=${'$as_ac_Header'}
12879                  $as_echo "$as_val"'`
12880                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12881 $as_echo "$ac_res" >&6; }
12882
12883 fi
12884 as_val=`eval 'as_val=${'$as_ac_Header'}
12885                  $as_echo "$as_val"'`
12886    if test "x$as_val" = x""yes; then
12887   cat >>confdefs.h <<_ACEOF
12888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12889 _ACEOF
12890
12891 else
12892
12893 for ac_header in gssapi.h
12894 do
12895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12897   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12898 $as_echo_n "checking for $ac_header... " >&6; }
12899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12900   $as_echo_n "(cached) " >&6
12901 fi
12902 ac_res=`eval 'as_val=${'$as_ac_Header'}
12903                  $as_echo "$as_val"'`
12904                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12905 $as_echo "$ac_res" >&6; }
12906 else
12907   # Is the header compilable?
12908 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12909 $as_echo_n "checking $ac_header usability... " >&6; }
12910 cat >conftest.$ac_ext <<_ACEOF
12911 /* confdefs.h.  */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h.  */
12916 $ac_includes_default
12917 #include <$ac_header>
12918 _ACEOF
12919 rm -f conftest.$ac_objext
12920 if { (ac_try="$ac_compile"
12921 case "(($ac_try" in
12922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923   *) ac_try_echo=$ac_try;;
12924 esac
12925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12926 $as_echo "$ac_try_echo") >&5
12927   (eval "$ac_compile") 2>conftest.er1
12928   ac_status=$?
12929   grep -v '^ *+' conftest.er1 >conftest.err
12930   rm -f conftest.er1
12931   cat conftest.err >&5
12932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); } && {
12934          test -z "$ac_c_werror_flag" ||
12935          test ! -s conftest.err
12936        } && test -s conftest.$ac_objext; then
12937   ac_header_compiler=yes
12938 else
12939   $as_echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12941
12942         ac_header_compiler=no
12943 fi
12944
12945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12947 $as_echo "$ac_header_compiler" >&6; }
12948
12949 # Is the header present?
12950 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12951 $as_echo_n "checking $ac_header presence... " >&6; }
12952 cat >conftest.$ac_ext <<_ACEOF
12953 /* confdefs.h.  */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h.  */
12958 #include <$ac_header>
12959 _ACEOF
12960 if { (ac_try="$ac_cpp conftest.$ac_ext"
12961 case "(($ac_try" in
12962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963   *) ac_try_echo=$ac_try;;
12964 esac
12965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12966 $as_echo "$ac_try_echo") >&5
12967   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12968   ac_status=$?
12969   grep -v '^ *+' conftest.er1 >conftest.err
12970   rm -f conftest.er1
12971   cat conftest.err >&5
12972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); } >/dev/null && {
12974          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12975          test ! -s conftest.err
12976        }; then
12977   ac_header_preproc=yes
12978 else
12979   $as_echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12981
12982   ac_header_preproc=no
12983 fi
12984
12985 rm -f conftest.err conftest.$ac_ext
12986 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12987 $as_echo "$ac_header_preproc" >&6; }
12988
12989 # So?  What about this header?
12990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12991   yes:no: )
12992     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12993 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12994     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12995 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12996     ac_header_preproc=yes
12997     ;;
12998   no:yes:* )
12999     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13000 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13001     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13002 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13003     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13004 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13006 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13007     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13008 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13009     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13010 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13011     ( cat <<\_ASBOX
13012 ## ---------------------------------------- ##
13013 ## Report this to pgsql-bugs@postgresql.org ##
13014 ## ---------------------------------------- ##
13015 _ASBOX
13016      ) | sed "s/^/$as_me: WARNING:     /" >&2
13017     ;;
13018 esac
13019 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13020 $as_echo_n "checking for $ac_header... " >&6; }
13021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13022   $as_echo_n "(cached) " >&6
13023 else
13024   eval "$as_ac_Header=\$ac_header_preproc"
13025 fi
13026 ac_res=`eval 'as_val=${'$as_ac_Header'}
13027                  $as_echo "$as_val"'`
13028                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13029 $as_echo "$ac_res" >&6; }
13030
13031 fi
13032 as_val=`eval 'as_val=${'$as_ac_Header'}
13033                  $as_echo "$as_val"'`
13034    if test "x$as_val" = x""yes; then
13035   cat >>confdefs.h <<_ACEOF
13036 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13037 _ACEOF
13038
13039 else
13040   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
13041 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
13042    { (exit 1); exit 1; }; }
13043 fi
13044
13045 done
13046
13047 fi
13048
13049 done
13050
13051 fi
13052
13053 if test "$with_krb5" = yes ; then
13054   if test "${ac_cv_header_krb5_h+set}" = set; then
13055   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
13056 $as_echo_n "checking for krb5.h... " >&6; }
13057 if test "${ac_cv_header_krb5_h+set}" = set; then
13058   $as_echo_n "(cached) " >&6
13059 fi
13060 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
13061 $as_echo "$ac_cv_header_krb5_h" >&6; }
13062 else
13063   # Is the header compilable?
13064 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
13065 $as_echo_n "checking krb5.h usability... " >&6; }
13066 cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h.  */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h.  */
13072 $ac_includes_default
13073 #include <krb5.h>
13074 _ACEOF
13075 rm -f conftest.$ac_objext
13076 if { (ac_try="$ac_compile"
13077 case "(($ac_try" in
13078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079   *) ac_try_echo=$ac_try;;
13080 esac
13081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13082 $as_echo "$ac_try_echo") >&5
13083   (eval "$ac_compile") 2>conftest.er1
13084   ac_status=$?
13085   grep -v '^ *+' conftest.er1 >conftest.err
13086   rm -f conftest.er1
13087   cat conftest.err >&5
13088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); } && {
13090          test -z "$ac_c_werror_flag" ||
13091          test ! -s conftest.err
13092        } && test -s conftest.$ac_objext; then
13093   ac_header_compiler=yes
13094 else
13095   $as_echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13097
13098         ac_header_compiler=no
13099 fi
13100
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13103 $as_echo "$ac_header_compiler" >&6; }
13104
13105 # Is the header present?
13106 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
13107 $as_echo_n "checking krb5.h presence... " >&6; }
13108 cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h.  */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h.  */
13114 #include <krb5.h>
13115 _ACEOF
13116 if { (ac_try="$ac_cpp conftest.$ac_ext"
13117 case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13122 $as_echo "$ac_try_echo") >&5
13123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13124   ac_status=$?
13125   grep -v '^ *+' conftest.er1 >conftest.err
13126   rm -f conftest.er1
13127   cat conftest.err >&5
13128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); } >/dev/null && {
13130          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13131          test ! -s conftest.err
13132        }; then
13133   ac_header_preproc=yes
13134 else
13135   $as_echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13137
13138   ac_header_preproc=no
13139 fi
13140
13141 rm -f conftest.err conftest.$ac_ext
13142 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13143 $as_echo "$ac_header_preproc" >&6; }
13144
13145 # So?  What about this header?
13146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13147   yes:no: )
13148     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
13149 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13150     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
13151 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
13152     ac_header_preproc=yes
13153     ;;
13154   no:yes:* )
13155     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
13156 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
13157     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
13158 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
13159     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
13160 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
13161     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
13162 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13163     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
13164 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
13165     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
13166 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
13167     ( cat <<\_ASBOX
13168 ## ---------------------------------------- ##
13169 ## Report this to pgsql-bugs@postgresql.org ##
13170 ## ---------------------------------------- ##
13171 _ASBOX
13172      ) | sed "s/^/$as_me: WARNING:     /" >&2
13173     ;;
13174 esac
13175 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
13176 $as_echo_n "checking for krb5.h... " >&6; }
13177 if test "${ac_cv_header_krb5_h+set}" = set; then
13178   $as_echo_n "(cached) " >&6
13179 else
13180   ac_cv_header_krb5_h=$ac_header_preproc
13181 fi
13182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
13183 $as_echo "$ac_cv_header_krb5_h" >&6; }
13184
13185 fi
13186 if test "x$ac_cv_header_krb5_h" = x""yes; then
13187   :
13188 else
13189   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
13190 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
13191    { (exit 1); exit 1; }; }
13192 fi
13193
13194
13195 fi
13196
13197 if test "$with_openssl" = yes ; then
13198   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13199   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13200 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13201 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13202   $as_echo_n "(cached) " >&6
13203 fi
13204 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13205 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13206 else
13207   # Is the header compilable?
13208 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
13209 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
13210 cat >conftest.$ac_ext <<_ACEOF
13211 /* confdefs.h.  */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h.  */
13216 $ac_includes_default
13217 #include <openssl/ssl.h>
13218 _ACEOF
13219 rm -f conftest.$ac_objext
13220 if { (ac_try="$ac_compile"
13221 case "(($ac_try" in
13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223   *) ac_try_echo=$ac_try;;
13224 esac
13225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13226 $as_echo "$ac_try_echo") >&5
13227   (eval "$ac_compile") 2>conftest.er1
13228   ac_status=$?
13229   grep -v '^ *+' conftest.er1 >conftest.err
13230   rm -f conftest.er1
13231   cat conftest.err >&5
13232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } && {
13234          test -z "$ac_c_werror_flag" ||
13235          test ! -s conftest.err
13236        } && test -s conftest.$ac_objext; then
13237   ac_header_compiler=yes
13238 else
13239   $as_echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13241
13242         ac_header_compiler=no
13243 fi
13244
13245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13247 $as_echo "$ac_header_compiler" >&6; }
13248
13249 # Is the header present?
13250 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
13251 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
13252 cat >conftest.$ac_ext <<_ACEOF
13253 /* confdefs.h.  */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h.  */
13258 #include <openssl/ssl.h>
13259 _ACEOF
13260 if { (ac_try="$ac_cpp conftest.$ac_ext"
13261 case "(($ac_try" in
13262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263   *) ac_try_echo=$ac_try;;
13264 esac
13265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13266 $as_echo "$ac_try_echo") >&5
13267   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13268   ac_status=$?
13269   grep -v '^ *+' conftest.er1 >conftest.err
13270   rm -f conftest.er1
13271   cat conftest.err >&5
13272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); } >/dev/null && {
13274          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13275          test ! -s conftest.err
13276        }; then
13277   ac_header_preproc=yes
13278 else
13279   $as_echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13281
13282   ac_header_preproc=no
13283 fi
13284
13285 rm -f conftest.err conftest.$ac_ext
13286 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13287 $as_echo "$ac_header_preproc" >&6; }
13288
13289 # So?  What about this header?
13290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13291   yes:no: )
13292     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13293 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13294     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
13295 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
13296     ac_header_preproc=yes
13297     ;;
13298   no:yes:* )
13299     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
13300 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
13301     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
13302 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
13303     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
13304 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
13305     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
13306 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13307     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
13308 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
13309     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
13310 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
13311     ( cat <<\_ASBOX
13312 ## ---------------------------------------- ##
13313 ## Report this to pgsql-bugs@postgresql.org ##
13314 ## ---------------------------------------- ##
13315 _ASBOX
13316      ) | sed "s/^/$as_me: WARNING:     /" >&2
13317     ;;
13318 esac
13319 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13320 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13321 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13322   $as_echo_n "(cached) " >&6
13323 else
13324   ac_cv_header_openssl_ssl_h=$ac_header_preproc
13325 fi
13326 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13327 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13328
13329 fi
13330 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
13331   :
13332 else
13333   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
13334 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
13335    { (exit 1); exit 1; }; }
13336 fi
13337
13338
13339   if test "${ac_cv_header_openssl_err_h+set}" = set; then
13340   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13341 $as_echo_n "checking for openssl/err.h... " >&6; }
13342 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13343   $as_echo_n "(cached) " >&6
13344 fi
13345 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13346 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13347 else
13348   # Is the header compilable?
13349 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
13350 $as_echo_n "checking openssl/err.h usability... " >&6; }
13351 cat >conftest.$ac_ext <<_ACEOF
13352 /* confdefs.h.  */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h.  */
13357 $ac_includes_default
13358 #include <openssl/err.h>
13359 _ACEOF
13360 rm -f conftest.$ac_objext
13361 if { (ac_try="$ac_compile"
13362 case "(($ac_try" in
13363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364   *) ac_try_echo=$ac_try;;
13365 esac
13366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13367 $as_echo "$ac_try_echo") >&5
13368   (eval "$ac_compile") 2>conftest.er1
13369   ac_status=$?
13370   grep -v '^ *+' conftest.er1 >conftest.err
13371   rm -f conftest.er1
13372   cat conftest.err >&5
13373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); } && {
13375          test -z "$ac_c_werror_flag" ||
13376          test ! -s conftest.err
13377        } && test -s conftest.$ac_objext; then
13378   ac_header_compiler=yes
13379 else
13380   $as_echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383         ac_header_compiler=no
13384 fi
13385
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13388 $as_echo "$ac_header_compiler" >&6; }
13389
13390 # Is the header present?
13391 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13392 $as_echo_n "checking openssl/err.h presence... " >&6; }
13393 cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h.  */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h.  */
13399 #include <openssl/err.h>
13400 _ACEOF
13401 if { (ac_try="$ac_cpp conftest.$ac_ext"
13402 case "(($ac_try" in
13403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404   *) ac_try_echo=$ac_try;;
13405 esac
13406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13407 $as_echo "$ac_try_echo") >&5
13408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13409   ac_status=$?
13410   grep -v '^ *+' conftest.er1 >conftest.err
13411   rm -f conftest.er1
13412   cat conftest.err >&5
13413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); } >/dev/null && {
13415          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13416          test ! -s conftest.err
13417        }; then
13418   ac_header_preproc=yes
13419 else
13420   $as_echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423   ac_header_preproc=no
13424 fi
13425
13426 rm -f conftest.err conftest.$ac_ext
13427 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13428 $as_echo "$ac_header_preproc" >&6; }
13429
13430 # So?  What about this header?
13431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13432   yes:no: )
13433     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13434 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13435     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13436 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13437     ac_header_preproc=yes
13438     ;;
13439   no:yes:* )
13440     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13441 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13442     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
13443 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
13444     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13445 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13446     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
13447 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13448     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13449 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13450     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13451 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13452     ( cat <<\_ASBOX
13453 ## ---------------------------------------- ##
13454 ## Report this to pgsql-bugs@postgresql.org ##
13455 ## ---------------------------------------- ##
13456 _ASBOX
13457      ) | sed "s/^/$as_me: WARNING:     /" >&2
13458     ;;
13459 esac
13460 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13461 $as_echo_n "checking for openssl/err.h... " >&6; }
13462 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13463   $as_echo_n "(cached) " >&6
13464 else
13465   ac_cv_header_openssl_err_h=$ac_header_preproc
13466 fi
13467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13468 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13469
13470 fi
13471 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13472   :
13473 else
13474   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13475 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13476    { (exit 1); exit 1; }; }
13477 fi
13478
13479
13480 fi
13481
13482 if test "$with_pam" = yes ; then
13483
13484 for ac_header in security/pam_appl.h
13485 do
13486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13488   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13489 $as_echo_n "checking for $ac_header... " >&6; }
13490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13491   $as_echo_n "(cached) " >&6
13492 fi
13493 ac_res=`eval 'as_val=${'$as_ac_Header'}
13494                  $as_echo "$as_val"'`
13495                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13496 $as_echo "$ac_res" >&6; }
13497 else
13498   # Is the header compilable?
13499 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13500 $as_echo_n "checking $ac_header usability... " >&6; }
13501 cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h.  */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h.  */
13507 $ac_includes_default
13508 #include <$ac_header>
13509 _ACEOF
13510 rm -f conftest.$ac_objext
13511 if { (ac_try="$ac_compile"
13512 case "(($ac_try" in
13513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514   *) ac_try_echo=$ac_try;;
13515 esac
13516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13517 $as_echo "$ac_try_echo") >&5
13518   (eval "$ac_compile") 2>conftest.er1
13519   ac_status=$?
13520   grep -v '^ *+' conftest.er1 >conftest.err
13521   rm -f conftest.er1
13522   cat conftest.err >&5
13523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); } && {
13525          test -z "$ac_c_werror_flag" ||
13526          test ! -s conftest.err
13527        } && test -s conftest.$ac_objext; then
13528   ac_header_compiler=yes
13529 else
13530   $as_echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13532
13533         ac_header_compiler=no
13534 fi
13535
13536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13538 $as_echo "$ac_header_compiler" >&6; }
13539
13540 # Is the header present?
13541 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13542 $as_echo_n "checking $ac_header presence... " >&6; }
13543 cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h.  */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h.  */
13549 #include <$ac_header>
13550 _ACEOF
13551 if { (ac_try="$ac_cpp conftest.$ac_ext"
13552 case "(($ac_try" in
13553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554   *) ac_try_echo=$ac_try;;
13555 esac
13556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13557 $as_echo "$ac_try_echo") >&5
13558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13559   ac_status=$?
13560   grep -v '^ *+' conftest.er1 >conftest.err
13561   rm -f conftest.er1
13562   cat conftest.err >&5
13563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); } >/dev/null && {
13565          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13566          test ! -s conftest.err
13567        }; then
13568   ac_header_preproc=yes
13569 else
13570   $as_echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13572
13573   ac_header_preproc=no
13574 fi
13575
13576 rm -f conftest.err conftest.$ac_ext
13577 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13578 $as_echo "$ac_header_preproc" >&6; }
13579
13580 # So?  What about this header?
13581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13582   yes:no: )
13583     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13584 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13585     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13586 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13587     ac_header_preproc=yes
13588     ;;
13589   no:yes:* )
13590     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13591 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13592     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13593 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13594     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13595 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13596     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13597 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13598     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13599 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13601 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13602     ( cat <<\_ASBOX
13603 ## ---------------------------------------- ##
13604 ## Report this to pgsql-bugs@postgresql.org ##
13605 ## ---------------------------------------- ##
13606 _ASBOX
13607      ) | sed "s/^/$as_me: WARNING:     /" >&2
13608     ;;
13609 esac
13610 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13611 $as_echo_n "checking for $ac_header... " >&6; }
13612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13613   $as_echo_n "(cached) " >&6
13614 else
13615   eval "$as_ac_Header=\$ac_header_preproc"
13616 fi
13617 ac_res=`eval 'as_val=${'$as_ac_Header'}
13618                  $as_echo "$as_val"'`
13619                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13620 $as_echo "$ac_res" >&6; }
13621
13622 fi
13623 as_val=`eval 'as_val=${'$as_ac_Header'}
13624                  $as_echo "$as_val"'`
13625    if test "x$as_val" = x""yes; then
13626   cat >>confdefs.h <<_ACEOF
13627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13628 _ACEOF
13629
13630 else
13631
13632 for ac_header in pam/pam_appl.h
13633 do
13634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13636   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13637 $as_echo_n "checking for $ac_header... " >&6; }
13638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13639   $as_echo_n "(cached) " >&6
13640 fi
13641 ac_res=`eval 'as_val=${'$as_ac_Header'}
13642                  $as_echo "$as_val"'`
13643                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13644 $as_echo "$ac_res" >&6; }
13645 else
13646   # Is the header compilable?
13647 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13648 $as_echo_n "checking $ac_header usability... " >&6; }
13649 cat >conftest.$ac_ext <<_ACEOF
13650 /* confdefs.h.  */
13651 _ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h.  */
13655 $ac_includes_default
13656 #include <$ac_header>
13657 _ACEOF
13658 rm -f conftest.$ac_objext
13659 if { (ac_try="$ac_compile"
13660 case "(($ac_try" in
13661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662   *) ac_try_echo=$ac_try;;
13663 esac
13664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13665 $as_echo "$ac_try_echo") >&5
13666   (eval "$ac_compile") 2>conftest.er1
13667   ac_status=$?
13668   grep -v '^ *+' conftest.er1 >conftest.err
13669   rm -f conftest.er1
13670   cat conftest.err >&5
13671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } && {
13673          test -z "$ac_c_werror_flag" ||
13674          test ! -s conftest.err
13675        } && test -s conftest.$ac_objext; then
13676   ac_header_compiler=yes
13677 else
13678   $as_echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13680
13681         ac_header_compiler=no
13682 fi
13683
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13686 $as_echo "$ac_header_compiler" >&6; }
13687
13688 # Is the header present?
13689 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13690 $as_echo_n "checking $ac_header presence... " >&6; }
13691 cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h.  */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h.  */
13697 #include <$ac_header>
13698 _ACEOF
13699 if { (ac_try="$ac_cpp conftest.$ac_ext"
13700 case "(($ac_try" in
13701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702   *) ac_try_echo=$ac_try;;
13703 esac
13704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13705 $as_echo "$ac_try_echo") >&5
13706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13707   ac_status=$?
13708   grep -v '^ *+' conftest.er1 >conftest.err
13709   rm -f conftest.er1
13710   cat conftest.err >&5
13711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); } >/dev/null && {
13713          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13714          test ! -s conftest.err
13715        }; then
13716   ac_header_preproc=yes
13717 else
13718   $as_echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13720
13721   ac_header_preproc=no
13722 fi
13723
13724 rm -f conftest.err conftest.$ac_ext
13725 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13726 $as_echo "$ac_header_preproc" >&6; }
13727
13728 # So?  What about this header?
13729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13730   yes:no: )
13731     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13732 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13733     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13735     ac_header_preproc=yes
13736     ;;
13737   no:yes:* )
13738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13739 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13740     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13741 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13742     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13743 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13745 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13748     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13749 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13750     ( cat <<\_ASBOX
13751 ## ---------------------------------------- ##
13752 ## Report this to pgsql-bugs@postgresql.org ##
13753 ## ---------------------------------------- ##
13754 _ASBOX
13755      ) | sed "s/^/$as_me: WARNING:     /" >&2
13756     ;;
13757 esac
13758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13759 $as_echo_n "checking for $ac_header... " >&6; }
13760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13761   $as_echo_n "(cached) " >&6
13762 else
13763   eval "$as_ac_Header=\$ac_header_preproc"
13764 fi
13765 ac_res=`eval 'as_val=${'$as_ac_Header'}
13766                  $as_echo "$as_val"'`
13767                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13768 $as_echo "$ac_res" >&6; }
13769
13770 fi
13771 as_val=`eval 'as_val=${'$as_ac_Header'}
13772                  $as_echo "$as_val"'`
13773    if test "x$as_val" = x""yes; then
13774   cat >>confdefs.h <<_ACEOF
13775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13776 _ACEOF
13777
13778 else
13779   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13780 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13781    { (exit 1); exit 1; }; }
13782 fi
13783
13784 done
13785
13786 fi
13787
13788 done
13789
13790 fi
13791
13792 if test "$with_libxml" = yes ; then
13793   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13794   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13795 $as_echo_n "checking for libxml/parser.h... " >&6; }
13796 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13797   $as_echo_n "(cached) " >&6
13798 fi
13799 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13800 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13801 else
13802   # Is the header compilable?
13803 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13804 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13805 cat >conftest.$ac_ext <<_ACEOF
13806 /* confdefs.h.  */
13807 _ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h.  */
13811 $ac_includes_default
13812 #include <libxml/parser.h>
13813 _ACEOF
13814 rm -f conftest.$ac_objext
13815 if { (ac_try="$ac_compile"
13816 case "(($ac_try" in
13817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818   *) ac_try_echo=$ac_try;;
13819 esac
13820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13821 $as_echo "$ac_try_echo") >&5
13822   (eval "$ac_compile") 2>conftest.er1
13823   ac_status=$?
13824   grep -v '^ *+' conftest.er1 >conftest.err
13825   rm -f conftest.er1
13826   cat conftest.err >&5
13827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); } && {
13829          test -z "$ac_c_werror_flag" ||
13830          test ! -s conftest.err
13831        } && test -s conftest.$ac_objext; then
13832   ac_header_compiler=yes
13833 else
13834   $as_echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13836
13837         ac_header_compiler=no
13838 fi
13839
13840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13841 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13842 $as_echo "$ac_header_compiler" >&6; }
13843
13844 # Is the header present?
13845 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13846 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13847 cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h.  */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h.  */
13853 #include <libxml/parser.h>
13854 _ACEOF
13855 if { (ac_try="$ac_cpp conftest.$ac_ext"
13856 case "(($ac_try" in
13857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858   *) ac_try_echo=$ac_try;;
13859 esac
13860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13861 $as_echo "$ac_try_echo") >&5
13862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13863   ac_status=$?
13864   grep -v '^ *+' conftest.er1 >conftest.err
13865   rm -f conftest.er1
13866   cat conftest.err >&5
13867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); } >/dev/null && {
13869          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13870          test ! -s conftest.err
13871        }; then
13872   ac_header_preproc=yes
13873 else
13874   $as_echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13876
13877   ac_header_preproc=no
13878 fi
13879
13880 rm -f conftest.err conftest.$ac_ext
13881 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13882 $as_echo "$ac_header_preproc" >&6; }
13883
13884 # So?  What about this header?
13885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13886   yes:no: )
13887     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13888 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13889     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13890 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13891     ac_header_preproc=yes
13892     ;;
13893   no:yes:* )
13894     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13895 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13896     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13897 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13898     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13899 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13900     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13901 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13902     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13903 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13904     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13905 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13906     ( cat <<\_ASBOX
13907 ## ---------------------------------------- ##
13908 ## Report this to pgsql-bugs@postgresql.org ##
13909 ## ---------------------------------------- ##
13910 _ASBOX
13911      ) | sed "s/^/$as_me: WARNING:     /" >&2
13912     ;;
13913 esac
13914 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13915 $as_echo_n "checking for libxml/parser.h... " >&6; }
13916 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13917   $as_echo_n "(cached) " >&6
13918 else
13919   ac_cv_header_libxml_parser_h=$ac_header_preproc
13920 fi
13921 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13922 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13923
13924 fi
13925 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13926   :
13927 else
13928   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13929 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13930    { (exit 1); exit 1; }; }
13931 fi
13932
13933
13934 fi
13935
13936 if test "$with_libxslt" = yes ; then
13937   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13938   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13939 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13940 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13941   $as_echo_n "(cached) " >&6
13942 fi
13943 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13944 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13945 else
13946   # Is the header compilable?
13947 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13948 $as_echo_n "checking libxslt/xslt.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 <libxslt/xslt.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 libxslt/xslt.h presence" >&5
13990 $as_echo_n "checking libxslt/xslt.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 <libxslt/xslt.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: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
14032 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14033     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
14034 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
14035     ac_header_preproc=yes
14036     ;;
14037   no:yes:* )
14038     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
14039 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
14040     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
14041 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
14042     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
14043 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
14044     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
14045 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14046     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
14047 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
14048     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
14049 $as_echo "$as_me: WARNING: libxslt/xslt.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 libxslt/xslt.h" >&5
14059 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
14060 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
14061   $as_echo_n "(cached) " >&6
14062 else
14063   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
14064 fi
14065 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
14066 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
14067
14068 fi
14069 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
14070   :
14071 else
14072   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
14073 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
14074    { (exit 1); exit 1; }; }
14075 fi
14076
14077
14078 fi
14079
14080 if test "$with_ldap" = yes ; then
14081   if test "$PORTNAME" != "win32"; then
14082
14083 for ac_header in ldap.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   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
14231 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
14232    { (exit 1); exit 1; }; }
14233 fi
14234
14235 done
14236
14237   else
14238
14239 for ac_header in winldap.h
14240 do
14241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14242 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14243 $as_echo_n "checking for $ac_header... " >&6; }
14244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14245   $as_echo_n "(cached) " >&6
14246 else
14247   cat >conftest.$ac_ext <<_ACEOF
14248 /* confdefs.h.  */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h.  */
14253 $ac_includes_default
14254 #include <windows.h>
14255
14256
14257 #include <$ac_header>
14258 _ACEOF
14259 rm -f conftest.$ac_objext
14260 if { (ac_try="$ac_compile"
14261 case "(($ac_try" in
14262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263   *) ac_try_echo=$ac_try;;
14264 esac
14265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14266 $as_echo "$ac_try_echo") >&5
14267   (eval "$ac_compile") 2>conftest.er1
14268   ac_status=$?
14269   grep -v '^ *+' conftest.er1 >conftest.err
14270   rm -f conftest.er1
14271   cat conftest.err >&5
14272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); } && {
14274          test -z "$ac_c_werror_flag" ||
14275          test ! -s conftest.err
14276        } && test -s conftest.$ac_objext; then
14277   eval "$as_ac_Header=yes"
14278 else
14279   $as_echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14281
14282         eval "$as_ac_Header=no"
14283 fi
14284
14285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14286 fi
14287 ac_res=`eval 'as_val=${'$as_ac_Header'}
14288                  $as_echo "$as_val"'`
14289                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14290 $as_echo "$ac_res" >&6; }
14291 as_val=`eval 'as_val=${'$as_ac_Header'}
14292                  $as_echo "$as_val"'`
14293    if test "x$as_val" = x""yes; then
14294   cat >>confdefs.h <<_ACEOF
14295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14296 _ACEOF
14297
14298 else
14299   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
14300 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
14301    { (exit 1); exit 1; }; }
14302 fi
14303
14304 done
14305
14306   fi
14307 fi
14308
14309 if test "$with_bonjour" = yes ; then
14310   if test "${ac_cv_header_dns_sd_h+set}" = set; then
14311   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14312 $as_echo_n "checking for dns_sd.h... " >&6; }
14313 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14314   $as_echo_n "(cached) " >&6
14315 fi
14316 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14317 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14318 else
14319   # Is the header compilable?
14320 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
14321 $as_echo_n "checking dns_sd.h usability... " >&6; }
14322 cat >conftest.$ac_ext <<_ACEOF
14323 /* confdefs.h.  */
14324 _ACEOF
14325 cat confdefs.h >>conftest.$ac_ext
14326 cat >>conftest.$ac_ext <<_ACEOF
14327 /* end confdefs.h.  */
14328 $ac_includes_default
14329 #include <dns_sd.h>
14330 _ACEOF
14331 rm -f conftest.$ac_objext
14332 if { (ac_try="$ac_compile"
14333 case "(($ac_try" in
14334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14335   *) ac_try_echo=$ac_try;;
14336 esac
14337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14338 $as_echo "$ac_try_echo") >&5
14339   (eval "$ac_compile") 2>conftest.er1
14340   ac_status=$?
14341   grep -v '^ *+' conftest.er1 >conftest.err
14342   rm -f conftest.er1
14343   cat conftest.err >&5
14344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); } && {
14346          test -z "$ac_c_werror_flag" ||
14347          test ! -s conftest.err
14348        } && test -s conftest.$ac_objext; then
14349   ac_header_compiler=yes
14350 else
14351   $as_echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14353
14354         ac_header_compiler=no
14355 fi
14356
14357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14359 $as_echo "$ac_header_compiler" >&6; }
14360
14361 # Is the header present?
14362 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
14363 $as_echo_n "checking dns_sd.h presence... " >&6; }
14364 cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h.  */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h.  */
14370 #include <dns_sd.h>
14371 _ACEOF
14372 if { (ac_try="$ac_cpp conftest.$ac_ext"
14373 case "(($ac_try" in
14374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375   *) ac_try_echo=$ac_try;;
14376 esac
14377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14378 $as_echo "$ac_try_echo") >&5
14379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14380   ac_status=$?
14381   grep -v '^ *+' conftest.er1 >conftest.err
14382   rm -f conftest.er1
14383   cat conftest.err >&5
14384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); } >/dev/null && {
14386          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14387          test ! -s conftest.err
14388        }; then
14389   ac_header_preproc=yes
14390 else
14391   $as_echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394   ac_header_preproc=no
14395 fi
14396
14397 rm -f conftest.err conftest.$ac_ext
14398 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14399 $as_echo "$ac_header_preproc" >&6; }
14400
14401 # So?  What about this header?
14402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14403   yes:no: )
14404     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14405 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14406     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14407 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14408     ac_header_preproc=yes
14409     ;;
14410   no:yes:* )
14411     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14412 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14413     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
14414 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
14415     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14416 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14417     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
14418 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14419     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14420 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14421     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14422 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14423     ( cat <<\_ASBOX
14424 ## ---------------------------------------- ##
14425 ## Report this to pgsql-bugs@postgresql.org ##
14426 ## ---------------------------------------- ##
14427 _ASBOX
14428      ) | sed "s/^/$as_me: WARNING:     /" >&2
14429     ;;
14430 esac
14431 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14432 $as_echo_n "checking for dns_sd.h... " >&6; }
14433 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14434   $as_echo_n "(cached) " >&6
14435 else
14436   ac_cv_header_dns_sd_h=$ac_header_preproc
14437 fi
14438 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14439 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14440
14441 fi
14442 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14443   :
14444 else
14445   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14446 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14447    { (exit 1); exit 1; }; }
14448 fi
14449
14450
14451 fi
14452
14453 # for contrib/uuid-ossp
14454 if test "$with_ossp_uuid" = yes ; then
14455
14456 for ac_header in ossp/uuid.h
14457 do
14458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14460   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14461 $as_echo_n "checking for $ac_header... " >&6; }
14462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14463   $as_echo_n "(cached) " >&6
14464 fi
14465 ac_res=`eval 'as_val=${'$as_ac_Header'}
14466                  $as_echo "$as_val"'`
14467                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14468 $as_echo "$ac_res" >&6; }
14469 else
14470   # Is the header compilable?
14471 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14472 $as_echo_n "checking $ac_header usability... " >&6; }
14473 cat >conftest.$ac_ext <<_ACEOF
14474 /* confdefs.h.  */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h.  */
14479 $ac_includes_default
14480 #include <$ac_header>
14481 _ACEOF
14482 rm -f conftest.$ac_objext
14483 if { (ac_try="$ac_compile"
14484 case "(($ac_try" in
14485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486   *) ac_try_echo=$ac_try;;
14487 esac
14488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14489 $as_echo "$ac_try_echo") >&5
14490   (eval "$ac_compile") 2>conftest.er1
14491   ac_status=$?
14492   grep -v '^ *+' conftest.er1 >conftest.err
14493   rm -f conftest.er1
14494   cat conftest.err >&5
14495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); } && {
14497          test -z "$ac_c_werror_flag" ||
14498          test ! -s conftest.err
14499        } && test -s conftest.$ac_objext; then
14500   ac_header_compiler=yes
14501 else
14502   $as_echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505         ac_header_compiler=no
14506 fi
14507
14508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14510 $as_echo "$ac_header_compiler" >&6; }
14511
14512 # Is the header present?
14513 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14514 $as_echo_n "checking $ac_header presence... " >&6; }
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521 #include <$ac_header>
14522 _ACEOF
14523 if { (ac_try="$ac_cpp conftest.$ac_ext"
14524 case "(($ac_try" in
14525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526   *) ac_try_echo=$ac_try;;
14527 esac
14528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14529 $as_echo "$ac_try_echo") >&5
14530   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14531   ac_status=$?
14532   grep -v '^ *+' conftest.er1 >conftest.err
14533   rm -f conftest.er1
14534   cat conftest.err >&5
14535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); } >/dev/null && {
14537          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14538          test ! -s conftest.err
14539        }; then
14540   ac_header_preproc=yes
14541 else
14542   $as_echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545   ac_header_preproc=no
14546 fi
14547
14548 rm -f conftest.err conftest.$ac_ext
14549 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14550 $as_echo "$ac_header_preproc" >&6; }
14551
14552 # So?  What about this header?
14553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14554   yes:no: )
14555     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14556 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14557     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14559     ac_header_preproc=yes
14560     ;;
14561   no:yes:* )
14562     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14563 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14564     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14565 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14566     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14567 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14568     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14569 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14570     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14571 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14572     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14573 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14574     ( cat <<\_ASBOX
14575 ## ---------------------------------------- ##
14576 ## Report this to pgsql-bugs@postgresql.org ##
14577 ## ---------------------------------------- ##
14578 _ASBOX
14579      ) | sed "s/^/$as_me: WARNING:     /" >&2
14580     ;;
14581 esac
14582 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14583 $as_echo_n "checking for $ac_header... " >&6; }
14584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14585   $as_echo_n "(cached) " >&6
14586 else
14587   eval "$as_ac_Header=\$ac_header_preproc"
14588 fi
14589 ac_res=`eval 'as_val=${'$as_ac_Header'}
14590                  $as_echo "$as_val"'`
14591                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14592 $as_echo "$ac_res" >&6; }
14593
14594 fi
14595 as_val=`eval 'as_val=${'$as_ac_Header'}
14596                  $as_echo "$as_val"'`
14597    if test "x$as_val" = x""yes; then
14598   cat >>confdefs.h <<_ACEOF
14599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14600 _ACEOF
14601
14602 else
14603
14604
14605 for ac_header in uuid.h
14606 do
14607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14609   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14610 $as_echo_n "checking for $ac_header... " >&6; }
14611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14612   $as_echo_n "(cached) " >&6
14613 fi
14614 ac_res=`eval 'as_val=${'$as_ac_Header'}
14615                  $as_echo "$as_val"'`
14616                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14617 $as_echo "$ac_res" >&6; }
14618 else
14619   # Is the header compilable?
14620 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14621 $as_echo_n "checking $ac_header usability... " >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h.  */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h.  */
14628 $ac_includes_default
14629 #include <$ac_header>
14630 _ACEOF
14631 rm -f conftest.$ac_objext
14632 if { (ac_try="$ac_compile"
14633 case "(($ac_try" in
14634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635   *) ac_try_echo=$ac_try;;
14636 esac
14637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14638 $as_echo "$ac_try_echo") >&5
14639   (eval "$ac_compile") 2>conftest.er1
14640   ac_status=$?
14641   grep -v '^ *+' conftest.er1 >conftest.err
14642   rm -f conftest.er1
14643   cat conftest.err >&5
14644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); } && {
14646          test -z "$ac_c_werror_flag" ||
14647          test ! -s conftest.err
14648        } && test -s conftest.$ac_objext; then
14649   ac_header_compiler=yes
14650 else
14651   $as_echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14653
14654         ac_header_compiler=no
14655 fi
14656
14657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14659 $as_echo "$ac_header_compiler" >&6; }
14660
14661 # Is the header present?
14662 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14663 $as_echo_n "checking $ac_header presence... " >&6; }
14664 cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h.  */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h.  */
14670 #include <$ac_header>
14671 _ACEOF
14672 if { (ac_try="$ac_cpp conftest.$ac_ext"
14673 case "(($ac_try" in
14674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675   *) ac_try_echo=$ac_try;;
14676 esac
14677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14678 $as_echo "$ac_try_echo") >&5
14679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14680   ac_status=$?
14681   grep -v '^ *+' conftest.er1 >conftest.err
14682   rm -f conftest.er1
14683   cat conftest.err >&5
14684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); } >/dev/null && {
14686          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14687          test ! -s conftest.err
14688        }; then
14689   ac_header_preproc=yes
14690 else
14691   $as_echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14693
14694   ac_header_preproc=no
14695 fi
14696
14697 rm -f conftest.err conftest.$ac_ext
14698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14699 $as_echo "$ac_header_preproc" >&6; }
14700
14701 # So?  What about this header?
14702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14703   yes:no: )
14704     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14705 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14706     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14708     ac_header_preproc=yes
14709     ;;
14710   no:yes:* )
14711     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14712 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14713     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14714 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14715     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14716 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14717     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14718 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14719     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14721     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14722 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14723     ( cat <<\_ASBOX
14724 ## ---------------------------------------- ##
14725 ## Report this to pgsql-bugs@postgresql.org ##
14726 ## ---------------------------------------- ##
14727 _ASBOX
14728      ) | sed "s/^/$as_me: WARNING:     /" >&2
14729     ;;
14730 esac
14731 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14732 $as_echo_n "checking for $ac_header... " >&6; }
14733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14734   $as_echo_n "(cached) " >&6
14735 else
14736   eval "$as_ac_Header=\$ac_header_preproc"
14737 fi
14738 ac_res=`eval 'as_val=${'$as_ac_Header'}
14739                  $as_echo "$as_val"'`
14740                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14741 $as_echo "$ac_res" >&6; }
14742
14743 fi
14744 as_val=`eval 'as_val=${'$as_ac_Header'}
14745                  $as_echo "$as_val"'`
14746    if test "x$as_val" = x""yes; then
14747   cat >>confdefs.h <<_ACEOF
14748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14749 _ACEOF
14750
14751 else
14752   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14753 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14754    { (exit 1); exit 1; }; }
14755 fi
14756
14757 done
14758
14759 fi
14760
14761 done
14762
14763 fi
14764
14765 if test "$PORTNAME" = "win32" ; then
14766
14767 for ac_header in crtdefs.h
14768 do
14769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14771   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14772 $as_echo_n "checking for $ac_header... " >&6; }
14773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14774   $as_echo_n "(cached) " >&6
14775 fi
14776 ac_res=`eval 'as_val=${'$as_ac_Header'}
14777                  $as_echo "$as_val"'`
14778                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14779 $as_echo "$ac_res" >&6; }
14780 else
14781   # Is the header compilable?
14782 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14783 $as_echo_n "checking $ac_header usability... " >&6; }
14784 cat >conftest.$ac_ext <<_ACEOF
14785 /* confdefs.h.  */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h.  */
14790 $ac_includes_default
14791 #include <$ac_header>
14792 _ACEOF
14793 rm -f conftest.$ac_objext
14794 if { (ac_try="$ac_compile"
14795 case "(($ac_try" in
14796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797   *) ac_try_echo=$ac_try;;
14798 esac
14799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14800 $as_echo "$ac_try_echo") >&5
14801   (eval "$ac_compile") 2>conftest.er1
14802   ac_status=$?
14803   grep -v '^ *+' conftest.er1 >conftest.err
14804   rm -f conftest.er1
14805   cat conftest.err >&5
14806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); } && {
14808          test -z "$ac_c_werror_flag" ||
14809          test ! -s conftest.err
14810        } && test -s conftest.$ac_objext; then
14811   ac_header_compiler=yes
14812 else
14813   $as_echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14815
14816         ac_header_compiler=no
14817 fi
14818
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14821 $as_echo "$ac_header_compiler" >&6; }
14822
14823 # Is the header present?
14824 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14825 $as_echo_n "checking $ac_header presence... " >&6; }
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h.  */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h.  */
14832 #include <$ac_header>
14833 _ACEOF
14834 if { (ac_try="$ac_cpp conftest.$ac_ext"
14835 case "(($ac_try" in
14836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837   *) ac_try_echo=$ac_try;;
14838 esac
14839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14840 $as_echo "$ac_try_echo") >&5
14841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14842   ac_status=$?
14843   grep -v '^ *+' conftest.er1 >conftest.err
14844   rm -f conftest.er1
14845   cat conftest.err >&5
14846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); } >/dev/null && {
14848          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14849          test ! -s conftest.err
14850        }; then
14851   ac_header_preproc=yes
14852 else
14853   $as_echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14855
14856   ac_header_preproc=no
14857 fi
14858
14859 rm -f conftest.err conftest.$ac_ext
14860 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14861 $as_echo "$ac_header_preproc" >&6; }
14862
14863 # So?  What about this header?
14864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14865   yes:no: )
14866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14867 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14869 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14870     ac_header_preproc=yes
14871     ;;
14872   no:yes:* )
14873     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14874 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14875     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14876 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14877     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14878 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14879     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14880 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14881     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14882 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14883     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14884 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14885     ( cat <<\_ASBOX
14886 ## ---------------------------------------- ##
14887 ## Report this to pgsql-bugs@postgresql.org ##
14888 ## ---------------------------------------- ##
14889 _ASBOX
14890      ) | sed "s/^/$as_me: WARNING:     /" >&2
14891     ;;
14892 esac
14893 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14894 $as_echo_n "checking for $ac_header... " >&6; }
14895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14896   $as_echo_n "(cached) " >&6
14897 else
14898   eval "$as_ac_Header=\$ac_header_preproc"
14899 fi
14900 ac_res=`eval 'as_val=${'$as_ac_Header'}
14901                  $as_echo "$as_val"'`
14902                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14903 $as_echo "$ac_res" >&6; }
14904
14905 fi
14906 as_val=`eval 'as_val=${'$as_ac_Header'}
14907                  $as_echo "$as_val"'`
14908    if test "x$as_val" = x""yes; then
14909   cat >>confdefs.h <<_ACEOF
14910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14911 _ACEOF
14912
14913 fi
14914
14915 done
14916
14917 fi
14918
14919 ##
14920 ## Types, structures, compiler characteristics
14921 ##
14922
14923
14924  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14925 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14926 if test "${ac_cv_c_bigendian+set}" = set; then
14927   $as_echo_n "(cached) " >&6
14928 else
14929   ac_cv_c_bigendian=unknown
14930     # See if we're dealing with a universal compiler.
14931     cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h.  */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h.  */
14937 #ifndef __APPLE_CC__
14938                not a universal capable compiler
14939              #endif
14940              typedef int dummy;
14941
14942 _ACEOF
14943 rm -f conftest.$ac_objext
14944 if { (ac_try="$ac_compile"
14945 case "(($ac_try" in
14946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947   *) ac_try_echo=$ac_try;;
14948 esac
14949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14950 $as_echo "$ac_try_echo") >&5
14951   (eval "$ac_compile") 2>conftest.er1
14952   ac_status=$?
14953   grep -v '^ *+' conftest.er1 >conftest.err
14954   rm -f conftest.er1
14955   cat conftest.err >&5
14956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); } && {
14958          test -z "$ac_c_werror_flag" ||
14959          test ! -s conftest.err
14960        } && test -s conftest.$ac_objext; then
14961
14962         # Check for potential -arch flags.  It is not universal unless
14963         # there are some -arch flags.  Note that *ppc* also matches
14964         # ppc64.  This check is also rather less than ideal.
14965         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14966           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14967         esac
14968 else
14969   $as_echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.$ac_ext >&5
14971
14972
14973 fi
14974
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976     if test $ac_cv_c_bigendian = unknown; then
14977       # See if sys/param.h defines the BYTE_ORDER macro.
14978       cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h.  */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h.  */
14984 #include <sys/types.h>
14985              #include <sys/param.h>
14986
14987 int
14988 main ()
14989 {
14990 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14991                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14992                      && LITTLE_ENDIAN)
14993               bogus endian macros
14994              #endif
14995
14996   ;
14997   return 0;
14998 }
14999 _ACEOF
15000 rm -f conftest.$ac_objext
15001 if { (ac_try="$ac_compile"
15002 case "(($ac_try" in
15003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004   *) ac_try_echo=$ac_try;;
15005 esac
15006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15007 $as_echo "$ac_try_echo") >&5
15008   (eval "$ac_compile") 2>conftest.er1
15009   ac_status=$?
15010   grep -v '^ *+' conftest.er1 >conftest.err
15011   rm -f conftest.er1
15012   cat conftest.err >&5
15013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014   (exit $ac_status); } && {
15015          test -z "$ac_c_werror_flag" ||
15016          test ! -s conftest.err
15017        } && test -s conftest.$ac_objext; then
15018   # It does; now see whether it defined to BIG_ENDIAN or not.
15019          cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h.  */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h.  */
15025 #include <sys/types.h>
15026                 #include <sys/param.h>
15027
15028 int
15029 main ()
15030 {
15031 #if BYTE_ORDER != BIG_ENDIAN
15032                  not big endian
15033                 #endif
15034
15035   ;
15036   return 0;
15037 }
15038 _ACEOF
15039 rm -f conftest.$ac_objext
15040 if { (ac_try="$ac_compile"
15041 case "(($ac_try" in
15042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043   *) ac_try_echo=$ac_try;;
15044 esac
15045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15046 $as_echo "$ac_try_echo") >&5
15047   (eval "$ac_compile") 2>conftest.er1
15048   ac_status=$?
15049   grep -v '^ *+' conftest.er1 >conftest.err
15050   rm -f conftest.er1
15051   cat conftest.err >&5
15052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); } && {
15054          test -z "$ac_c_werror_flag" ||
15055          test ! -s conftest.err
15056        } && test -s conftest.$ac_objext; then
15057   ac_cv_c_bigendian=yes
15058 else
15059   $as_echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15061
15062         ac_cv_c_bigendian=no
15063 fi
15064
15065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15066 else
15067   $as_echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15069
15070
15071 fi
15072
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074     fi
15075     if test $ac_cv_c_bigendian = unknown; then
15076       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15077       cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h.  */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h.  */
15083 #include <limits.h>
15084
15085 int
15086 main ()
15087 {
15088 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15089               bogus endian macros
15090              #endif
15091
15092   ;
15093   return 0;
15094 }
15095 _ACEOF
15096 rm -f conftest.$ac_objext
15097 if { (ac_try="$ac_compile"
15098 case "(($ac_try" in
15099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15100   *) ac_try_echo=$ac_try;;
15101 esac
15102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15103 $as_echo "$ac_try_echo") >&5
15104   (eval "$ac_compile") 2>conftest.er1
15105   ac_status=$?
15106   grep -v '^ *+' conftest.er1 >conftest.err
15107   rm -f conftest.er1
15108   cat conftest.err >&5
15109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); } && {
15111          test -z "$ac_c_werror_flag" ||
15112          test ! -s conftest.err
15113        } && test -s conftest.$ac_objext; then
15114   # It does; now see whether it defined to _BIG_ENDIAN or not.
15115          cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h.  */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h.  */
15121 #include <limits.h>
15122
15123 int
15124 main ()
15125 {
15126 #ifndef _BIG_ENDIAN
15127                  not big endian
15128                 #endif
15129
15130   ;
15131   return 0;
15132 }
15133 _ACEOF
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138   *) ac_try_echo=$ac_try;;
15139 esac
15140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15141 $as_echo "$ac_try_echo") >&5
15142   (eval "$ac_compile") 2>conftest.er1
15143   ac_status=$?
15144   grep -v '^ *+' conftest.er1 >conftest.err
15145   rm -f conftest.er1
15146   cat conftest.err >&5
15147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); } && {
15149          test -z "$ac_c_werror_flag" ||
15150          test ! -s conftest.err
15151        } && test -s conftest.$ac_objext; then
15152   ac_cv_c_bigendian=yes
15153 else
15154   $as_echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.$ac_ext >&5
15156
15157         ac_cv_c_bigendian=no
15158 fi
15159
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 else
15162   $as_echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15164
15165
15166 fi
15167
15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15169     fi
15170     if test $ac_cv_c_bigendian = unknown; then
15171       # Compile a test program.
15172       if test "$cross_compiling" = yes; then
15173   # Try to guess by grepping values from an object file.
15174          cat >conftest.$ac_ext <<_ACEOF
15175 /* confdefs.h.  */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h.  */
15180 short int ascii_mm[] =
15181                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15182                 short int ascii_ii[] =
15183                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15184                 int use_ascii (int i) {
15185                   return ascii_mm[i] + ascii_ii[i];
15186                 }
15187                 short int ebcdic_ii[] =
15188                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15189                 short int ebcdic_mm[] =
15190                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15191                 int use_ebcdic (int i) {
15192                   return ebcdic_mm[i] + ebcdic_ii[i];
15193                 }
15194                 extern int foo;
15195
15196 int
15197 main ()
15198 {
15199 return use_ascii (foo) == use_ebcdic (foo);
15200   ;
15201   return 0;
15202 }
15203 _ACEOF
15204 rm -f conftest.$ac_objext
15205 if { (ac_try="$ac_compile"
15206 case "(($ac_try" in
15207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208   *) ac_try_echo=$ac_try;;
15209 esac
15210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15211 $as_echo "$ac_try_echo") >&5
15212   (eval "$ac_compile") 2>conftest.er1
15213   ac_status=$?
15214   grep -v '^ *+' conftest.er1 >conftest.err
15215   rm -f conftest.er1
15216   cat conftest.err >&5
15217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); } && {
15219          test -z "$ac_c_werror_flag" ||
15220          test ! -s conftest.err
15221        } && test -s conftest.$ac_objext; then
15222   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15223               ac_cv_c_bigendian=yes
15224             fi
15225             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15226               if test "$ac_cv_c_bigendian" = unknown; then
15227                 ac_cv_c_bigendian=no
15228               else
15229                 # finding both strings is unlikely to happen, but who knows?
15230                 ac_cv_c_bigendian=unknown
15231               fi
15232             fi
15233 else
15234   $as_echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15236
15237
15238 fi
15239
15240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 $ac_includes_default
15249 int
15250 main ()
15251 {
15252
15253              /* Are we little or big endian?  From Harbison&Steele.  */
15254              union
15255              {
15256                long int l;
15257                char c[sizeof (long int)];
15258              } u;
15259              u.l = 1;
15260              return u.c[sizeof (long int) - 1] == 1;
15261
15262   ;
15263   return 0;
15264 }
15265 _ACEOF
15266 rm -f conftest$ac_exeext
15267 if { (ac_try="$ac_link"
15268 case "(($ac_try" in
15269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270   *) ac_try_echo=$ac_try;;
15271 esac
15272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15273 $as_echo "$ac_try_echo") >&5
15274   (eval "$ac_link") 2>&5
15275   ac_status=$?
15276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15278   { (case "(($ac_try" in
15279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280   *) ac_try_echo=$ac_try;;
15281 esac
15282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15283 $as_echo "$ac_try_echo") >&5
15284   (eval "$ac_try") 2>&5
15285   ac_status=$?
15286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); }; }; then
15288   ac_cv_c_bigendian=no
15289 else
15290   $as_echo "$as_me: program exited with status $ac_status" >&5
15291 $as_echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15293
15294 ( exit $ac_status )
15295 ac_cv_c_bigendian=yes
15296 fi
15297 rm -rf conftest.dSYM
15298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15299 fi
15300
15301
15302     fi
15303 fi
15304 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15305 $as_echo "$ac_cv_c_bigendian" >&6; }
15306  case $ac_cv_c_bigendian in #(
15307    yes)
15308      cat >>confdefs.h <<\_ACEOF
15309 #define WORDS_BIGENDIAN 1
15310 _ACEOF
15311 ;; #(
15312    no)
15313       ;; #(
15314    universal)
15315
15316 cat >>confdefs.h <<\_ACEOF
15317 #define AC_APPLE_UNIVERSAL_BUILD 1
15318 _ACEOF
15319
15320      ;; #(
15321    *)
15322      { { $as_echo "$as_me:$LINENO: error: unknown endianness
15323  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15324 $as_echo "$as_me: error: unknown endianness
15325  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15326    { (exit 1); exit 1; }; } ;;
15327  esac
15328
15329 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15330 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15331 if test "${ac_cv_c_const+set}" = set; then
15332   $as_echo_n "(cached) " >&6
15333 else
15334   cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h.  */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h.  */
15340
15341 int
15342 main ()
15343 {
15344 /* FIXME: Include the comments suggested by Paul. */
15345 #ifndef __cplusplus
15346   /* Ultrix mips cc rejects this.  */
15347   typedef int charset[2];
15348   const charset cs;
15349   /* SunOS 4.1.1 cc rejects this.  */
15350   char const *const *pcpcc;
15351   char **ppc;
15352   /* NEC SVR4.0.2 mips cc rejects this.  */
15353   struct point {int x, y;};
15354   static struct point const zero = {0,0};
15355   /* AIX XL C 1.02.0.0 rejects this.
15356      It does not let you subtract one const X* pointer from another in
15357      an arm of an if-expression whose if-part is not a constant
15358      expression */
15359   const char *g = "string";
15360   pcpcc = &g + (g ? g-g : 0);
15361   /* HPUX 7.0 cc rejects these. */
15362   ++pcpcc;
15363   ppc = (char**) pcpcc;
15364   pcpcc = (char const *const *) ppc;
15365   { /* SCO 3.2v4 cc rejects this.  */
15366     char *t;
15367     char const *s = 0 ? (char *) 0 : (char const *) 0;
15368
15369     *t++ = 0;
15370     if (s) return 0;
15371   }
15372   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15373     int x[] = {25, 17};
15374     const int *foo = &x[0];
15375     ++foo;
15376   }
15377   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15378     typedef const int *iptr;
15379     iptr p = 0;
15380     ++p;
15381   }
15382   { /* AIX XL C 1.02.0.0 rejects this saying
15383        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15384     struct s { int j; const int *ap[3]; };
15385     struct s *b; b->j = 5;
15386   }
15387   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15388     const int foo = 10;
15389     if (!foo) return 0;
15390   }
15391   return !cs[0] && !zero.x;
15392 #endif
15393
15394   ;
15395   return 0;
15396 }
15397 _ACEOF
15398 rm -f conftest.$ac_objext
15399 if { (ac_try="$ac_compile"
15400 case "(($ac_try" in
15401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402   *) ac_try_echo=$ac_try;;
15403 esac
15404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15405 $as_echo "$ac_try_echo") >&5
15406   (eval "$ac_compile") 2>conftest.er1
15407   ac_status=$?
15408   grep -v '^ *+' conftest.er1 >conftest.err
15409   rm -f conftest.er1
15410   cat conftest.err >&5
15411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); } && {
15413          test -z "$ac_c_werror_flag" ||
15414          test ! -s conftest.err
15415        } && test -s conftest.$ac_objext; then
15416   ac_cv_c_const=yes
15417 else
15418   $as_echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.$ac_ext >&5
15420
15421         ac_cv_c_const=no
15422 fi
15423
15424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15425 fi
15426 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15427 $as_echo "$ac_cv_c_const" >&6; }
15428 if test $ac_cv_c_const = no; then
15429
15430 cat >>confdefs.h <<\_ACEOF
15431 #define const /**/
15432 _ACEOF
15433
15434 fi
15435
15436 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15437 $as_echo_n "checking for inline... " >&6; }
15438 if test "${ac_cv_c_inline+set}" = set; then
15439   $as_echo_n "(cached) " >&6
15440 else
15441   ac_cv_c_inline=no
15442 for ac_kw in inline __inline__ __inline; do
15443   cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h.  */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h.  */
15449 #ifndef __cplusplus
15450 typedef int foo_t;
15451 static $ac_kw foo_t static_foo () {return 0; }
15452 $ac_kw foo_t foo () {return 0; }
15453 #endif
15454
15455 _ACEOF
15456 rm -f conftest.$ac_objext
15457 if { (ac_try="$ac_compile"
15458 case "(($ac_try" in
15459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460   *) ac_try_echo=$ac_try;;
15461 esac
15462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15463 $as_echo "$ac_try_echo") >&5
15464   (eval "$ac_compile") 2>conftest.er1
15465   ac_status=$?
15466   grep -v '^ *+' conftest.er1 >conftest.err
15467   rm -f conftest.er1
15468   cat conftest.err >&5
15469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); } && {
15471          test -z "$ac_c_werror_flag" ||
15472          test ! -s conftest.err
15473        } && test -s conftest.$ac_objext; then
15474   ac_cv_c_inline=$ac_kw
15475 else
15476   $as_echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15478
15479
15480 fi
15481
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15483   test "$ac_cv_c_inline" != no && break
15484 done
15485
15486 fi
15487 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15488 $as_echo "$ac_cv_c_inline" >&6; }
15489
15490
15491 case $ac_cv_c_inline in
15492   inline | yes) ;;
15493   *)
15494     case $ac_cv_c_inline in
15495       no) ac_val=;;
15496       *) ac_val=$ac_cv_c_inline;;
15497     esac
15498     cat >>confdefs.h <<_ACEOF
15499 #ifndef __cplusplus
15500 #define inline $ac_val
15501 #endif
15502 _ACEOF
15503     ;;
15504 esac
15505
15506 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15507 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15508 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15509   $as_echo_n "(cached) " >&6
15510 else
15511   pgac_cv_c_inline_quietly=no
15512   if test "$ac_cv_c_inline" != no; then
15513     pgac_c_inline_save_werror=$ac_c_werror_flag
15514     ac_c_werror_flag=yes
15515     cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h.  */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h.  */
15521 static inline int fun () {return 0;}
15522 int
15523 main ()
15524 {
15525
15526   ;
15527   return 0;
15528 }
15529 _ACEOF
15530 rm -f conftest.$ac_objext conftest$ac_exeext
15531 if { (ac_try="$ac_link"
15532 case "(($ac_try" in
15533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534   *) ac_try_echo=$ac_try;;
15535 esac
15536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15537 $as_echo "$ac_try_echo") >&5
15538   (eval "$ac_link") 2>conftest.er1
15539   ac_status=$?
15540   grep -v '^ *+' conftest.er1 >conftest.err
15541   rm -f conftest.er1
15542   cat conftest.err >&5
15543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); } && {
15545          test -z "$ac_c_werror_flag" ||
15546          test ! -s conftest.err
15547        } && test -s conftest$ac_exeext && {
15548          test "$cross_compiling" = yes ||
15549          $as_test_x conftest$ac_exeext
15550        }; then
15551   pgac_cv_c_inline_quietly=yes
15552 else
15553   $as_echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15555
15556
15557 fi
15558
15559 rm -rf conftest.dSYM
15560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15561       conftest$ac_exeext conftest.$ac_ext
15562     ac_c_werror_flag=$pgac_c_inline_save_werror
15563   fi
15564 fi
15565 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15566 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15567 if test "$pgac_cv_c_inline_quietly" != no; then
15568
15569 cat >>confdefs.h <<_ACEOF
15570 #define PG_USE_INLINE 1
15571 _ACEOF
15572
15573 fi
15574
15575 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15576 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15577 if test "${ac_cv_c_stringize+set}" = set; then
15578   $as_echo_n "(cached) " >&6
15579 else
15580   cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h.  */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h.  */
15586 #define x(y) #y
15587
15588 char *s = x(teststring);
15589 _ACEOF
15590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15591   $EGREP "#teststring" >/dev/null 2>&1; then
15592   ac_cv_c_stringize=no
15593 else
15594   ac_cv_c_stringize=yes
15595 fi
15596 rm -f conftest*
15597
15598 fi
15599 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15600 $as_echo "$ac_cv_c_stringize" >&6; }
15601 if test $ac_cv_c_stringize = yes; then
15602
15603 cat >>confdefs.h <<\_ACEOF
15604 #define HAVE_STRINGIZE 1
15605 _ACEOF
15606
15607 fi
15608
15609
15610   { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15611 $as_echo_n "checking for flexible array members... " >&6; }
15612 if test "${ac_cv_c_flexmember+set}" = set; then
15613   $as_echo_n "(cached) " >&6
15614 else
15615   cat >conftest.$ac_ext <<_ACEOF
15616 /* confdefs.h.  */
15617 _ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h.  */
15621 #include <stdlib.h>
15622             #include <stdio.h>
15623             #include <stddef.h>
15624             struct s { int n; double d[]; };
15625 int
15626 main ()
15627 {
15628 int m = getchar ();
15629             struct s *p = malloc (offsetof (struct s, d)
15630                                   + m * sizeof (double));
15631             p->d[0] = 0.0;
15632             return p->d != (double *) NULL;
15633   ;
15634   return 0;
15635 }
15636 _ACEOF
15637 rm -f conftest.$ac_objext
15638 if { (ac_try="$ac_compile"
15639 case "(($ac_try" in
15640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641   *) ac_try_echo=$ac_try;;
15642 esac
15643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15644 $as_echo "$ac_try_echo") >&5
15645   (eval "$ac_compile") 2>conftest.er1
15646   ac_status=$?
15647   grep -v '^ *+' conftest.er1 >conftest.err
15648   rm -f conftest.er1
15649   cat conftest.err >&5
15650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); } && {
15652          test -z "$ac_c_werror_flag" ||
15653          test ! -s conftest.err
15654        } && test -s conftest.$ac_objext; then
15655   ac_cv_c_flexmember=yes
15656 else
15657   $as_echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15659
15660         ac_cv_c_flexmember=no
15661 fi
15662
15663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15664 fi
15665 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15666 $as_echo "$ac_cv_c_flexmember" >&6; }
15667   if test $ac_cv_c_flexmember = yes; then
15668
15669 cat >>confdefs.h <<\_ACEOF
15670 #define FLEXIBLE_ARRAY_MEMBER /**/
15671 _ACEOF
15672
15673   else
15674     cat >>confdefs.h <<\_ACEOF
15675 #define FLEXIBLE_ARRAY_MEMBER 1
15676 _ACEOF
15677
15678   fi
15679
15680 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15681 $as_echo_n "checking for signed types... " >&6; }
15682 if test "${pgac_cv_c_signed+set}" = set; then
15683   $as_echo_n "(cached) " >&6
15684 else
15685   cat >conftest.$ac_ext <<_ACEOF
15686 /* confdefs.h.  */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h.  */
15691
15692 int
15693 main ()
15694 {
15695 signed char c; signed short s; signed int i;
15696   ;
15697   return 0;
15698 }
15699 _ACEOF
15700 rm -f conftest.$ac_objext
15701 if { (ac_try="$ac_compile"
15702 case "(($ac_try" in
15703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704   *) ac_try_echo=$ac_try;;
15705 esac
15706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15707 $as_echo "$ac_try_echo") >&5
15708   (eval "$ac_compile") 2>conftest.er1
15709   ac_status=$?
15710   grep -v '^ *+' conftest.er1 >conftest.err
15711   rm -f conftest.er1
15712   cat conftest.err >&5
15713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); } && {
15715          test -z "$ac_c_werror_flag" ||
15716          test ! -s conftest.err
15717        } && test -s conftest.$ac_objext; then
15718   pgac_cv_c_signed=yes
15719 else
15720   $as_echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15722
15723         pgac_cv_c_signed=no
15724 fi
15725
15726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727 fi
15728 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15729 $as_echo "$pgac_cv_c_signed" >&6; }
15730 if test x"$pgac_cv_c_signed" = xno ; then
15731
15732 cat >>confdefs.h <<\_ACEOF
15733 #define signed /**/
15734 _ACEOF
15735
15736 fi
15737 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15738 $as_echo_n "checking for working volatile... " >&6; }
15739 if test "${ac_cv_c_volatile+set}" = set; then
15740   $as_echo_n "(cached) " >&6
15741 else
15742   cat >conftest.$ac_ext <<_ACEOF
15743 /* confdefs.h.  */
15744 _ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h.  */
15748
15749 int
15750 main ()
15751 {
15752
15753 volatile int x;
15754 int * volatile y = (int *) 0;
15755 return !x && !y;
15756   ;
15757   return 0;
15758 }
15759 _ACEOF
15760 rm -f conftest.$ac_objext
15761 if { (ac_try="$ac_compile"
15762 case "(($ac_try" in
15763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764   *) ac_try_echo=$ac_try;;
15765 esac
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768   (eval "$ac_compile") 2>conftest.er1
15769   ac_status=$?
15770   grep -v '^ *+' conftest.er1 >conftest.err
15771   rm -f conftest.er1
15772   cat conftest.err >&5
15773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } && {
15775          test -z "$ac_c_werror_flag" ||
15776          test ! -s conftest.err
15777        } && test -s conftest.$ac_objext; then
15778   ac_cv_c_volatile=yes
15779 else
15780   $as_echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15782
15783         ac_cv_c_volatile=no
15784 fi
15785
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 fi
15788 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15789 $as_echo "$ac_cv_c_volatile" >&6; }
15790 if test $ac_cv_c_volatile = no; then
15791
15792 cat >>confdefs.h <<\_ACEOF
15793 #define volatile /**/
15794 _ACEOF
15795
15796 fi
15797
15798 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15799 $as_echo_n "checking for __func__... " >&6; }
15800 if test "${pgac_cv_funcname_func_support+set}" = set; then
15801   $as_echo_n "(cached) " >&6
15802 else
15803   cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h.  */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h.  */
15809 #include <stdio.h>
15810 int
15811 main ()
15812 {
15813 printf("%s\n", __func__);
15814   ;
15815   return 0;
15816 }
15817 _ACEOF
15818 rm -f conftest.$ac_objext
15819 if { (ac_try="$ac_compile"
15820 case "(($ac_try" in
15821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822   *) ac_try_echo=$ac_try;;
15823 esac
15824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15825 $as_echo "$ac_try_echo") >&5
15826   (eval "$ac_compile") 2>conftest.er1
15827   ac_status=$?
15828   grep -v '^ *+' conftest.er1 >conftest.err
15829   rm -f conftest.er1
15830   cat conftest.err >&5
15831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); } && {
15833          test -z "$ac_c_werror_flag" ||
15834          test ! -s conftest.err
15835        } && test -s conftest.$ac_objext; then
15836   pgac_cv_funcname_func_support=yes
15837 else
15838   $as_echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841         pgac_cv_funcname_func_support=no
15842 fi
15843
15844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845 fi
15846 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15847 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15848 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15849
15850 cat >>confdefs.h <<\_ACEOF
15851 #define HAVE_FUNCNAME__FUNC 1
15852 _ACEOF
15853
15854 else
15855 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15856 $as_echo_n "checking for __FUNCTION__... " >&6; }
15857 if test "${pgac_cv_funcname_function_support+set}" = set; then
15858   $as_echo_n "(cached) " >&6
15859 else
15860   cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h.  */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h.  */
15866 #include <stdio.h>
15867 int
15868 main ()
15869 {
15870 printf("%s\n", __FUNCTION__);
15871   ;
15872   return 0;
15873 }
15874 _ACEOF
15875 rm -f conftest.$ac_objext
15876 if { (ac_try="$ac_compile"
15877 case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15882 $as_echo "$ac_try_echo") >&5
15883   (eval "$ac_compile") 2>conftest.er1
15884   ac_status=$?
15885   grep -v '^ *+' conftest.er1 >conftest.err
15886   rm -f conftest.er1
15887   cat conftest.err >&5
15888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); } && {
15890          test -z "$ac_c_werror_flag" ||
15891          test ! -s conftest.err
15892        } && test -s conftest.$ac_objext; then
15893   pgac_cv_funcname_function_support=yes
15894 else
15895   $as_echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898         pgac_cv_funcname_function_support=no
15899 fi
15900
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 fi
15903 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15904 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15905 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15906
15907 cat >>confdefs.h <<\_ACEOF
15908 #define HAVE_FUNCNAME__FUNCTION 1
15909 _ACEOF
15910
15911 fi
15912 fi
15913 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15914 $as_echo_n "checking for _Static_assert... " >&6; }
15915 if test "${pgac_cv__static_assert+set}" = set; then
15916   $as_echo_n "(cached) " >&6
15917 else
15918   cat >conftest.$ac_ext <<_ACEOF
15919 /* confdefs.h.  */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h.  */
15924
15925 int
15926 main ()
15927 {
15928 ({ _Static_assert(1, "foo"); })
15929   ;
15930   return 0;
15931 }
15932 _ACEOF
15933 rm -f conftest.$ac_objext conftest$ac_exeext
15934 if { (ac_try="$ac_link"
15935 case "(($ac_try" in
15936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937   *) ac_try_echo=$ac_try;;
15938 esac
15939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15940 $as_echo "$ac_try_echo") >&5
15941   (eval "$ac_link") 2>conftest.er1
15942   ac_status=$?
15943   grep -v '^ *+' conftest.er1 >conftest.err
15944   rm -f conftest.er1
15945   cat conftest.err >&5
15946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); } && {
15948          test -z "$ac_c_werror_flag" ||
15949          test ! -s conftest.err
15950        } && test -s conftest$ac_exeext && {
15951          test "$cross_compiling" = yes ||
15952          $as_test_x conftest$ac_exeext
15953        }; then
15954   pgac_cv__static_assert=yes
15955 else
15956   $as_echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15958
15959         pgac_cv__static_assert=no
15960 fi
15961
15962 rm -rf conftest.dSYM
15963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15964       conftest$ac_exeext conftest.$ac_ext
15965 fi
15966 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15967 $as_echo "$pgac_cv__static_assert" >&6; }
15968 if test x"$pgac_cv__static_assert" = xyes ; then
15969
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE__STATIC_ASSERT 1
15972 _ACEOF
15973
15974 fi
15975 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15976 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15977 if test "${pgac_cv__types_compatible+set}" = set; then
15978   $as_echo_n "(cached) " >&6
15979 else
15980   cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h.  */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h.  */
15986
15987 int
15988 main ()
15989 {
15990  int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15991   ;
15992   return 0;
15993 }
15994 _ACEOF
15995 rm -f conftest.$ac_objext
15996 if { (ac_try="$ac_compile"
15997 case "(($ac_try" in
15998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999   *) ac_try_echo=$ac_try;;
16000 esac
16001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16002 $as_echo "$ac_try_echo") >&5
16003   (eval "$ac_compile") 2>conftest.er1
16004   ac_status=$?
16005   grep -v '^ *+' conftest.er1 >conftest.err
16006   rm -f conftest.er1
16007   cat conftest.err >&5
16008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); } && {
16010          test -z "$ac_c_werror_flag" ||
16011          test ! -s conftest.err
16012        } && test -s conftest.$ac_objext; then
16013   pgac_cv__types_compatible=yes
16014 else
16015   $as_echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018         pgac_cv__types_compatible=no
16019 fi
16020
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022 fi
16023 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
16024 $as_echo "$pgac_cv__types_compatible" >&6; }
16025 if test x"$pgac_cv__types_compatible" = xyes ; then
16026
16027 cat >>confdefs.h <<\_ACEOF
16028 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
16029 _ACEOF
16030
16031 fi
16032 { $as_echo "$as_me:$LINENO: checking for __builtin_constant_p" >&5
16033 $as_echo_n "checking for __builtin_constant_p... " >&6; }
16034 if test "${pgac_cv__builtin_constant_p+set}" = set; then
16035   $as_echo_n "(cached) " >&6
16036 else
16037   cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043 static int x; static int y[__builtin_constant_p(x) ? x : 1];
16044 int
16045 main ()
16046 {
16047
16048   ;
16049   return 0;
16050 }
16051 _ACEOF
16052 rm -f conftest.$ac_objext
16053 if { (ac_try="$ac_compile"
16054 case "(($ac_try" in
16055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056   *) ac_try_echo=$ac_try;;
16057 esac
16058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16059 $as_echo "$ac_try_echo") >&5
16060   (eval "$ac_compile") 2>conftest.er1
16061   ac_status=$?
16062   grep -v '^ *+' conftest.er1 >conftest.err
16063   rm -f conftest.er1
16064   cat conftest.err >&5
16065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); } && {
16067          test -z "$ac_c_werror_flag" ||
16068          test ! -s conftest.err
16069        } && test -s conftest.$ac_objext; then
16070   pgac_cv__builtin_constant_p=yes
16071 else
16072   $as_echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16074
16075         pgac_cv__builtin_constant_p=no
16076 fi
16077
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079 fi
16080 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_constant_p" >&5
16081 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
16082 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
16083
16084 cat >>confdefs.h <<\_ACEOF
16085 #define HAVE__BUILTIN_CONSTANT_P 1
16086 _ACEOF
16087
16088 fi
16089 { $as_echo "$as_me:$LINENO: checking for __builtin_unreachable" >&5
16090 $as_echo_n "checking for __builtin_unreachable... " >&6; }
16091 if test "${pgac_cv__builtin_unreachable+set}" = set; then
16092   $as_echo_n "(cached) " >&6
16093 else
16094   cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h.  */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h.  */
16100
16101 int
16102 main ()
16103 {
16104 __builtin_unreachable();
16105   ;
16106   return 0;
16107 }
16108 _ACEOF
16109 rm -f conftest.$ac_objext conftest$ac_exeext
16110 if { (ac_try="$ac_link"
16111 case "(($ac_try" in
16112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113   *) ac_try_echo=$ac_try;;
16114 esac
16115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16116 $as_echo "$ac_try_echo") >&5
16117   (eval "$ac_link") 2>conftest.er1
16118   ac_status=$?
16119   grep -v '^ *+' conftest.er1 >conftest.err
16120   rm -f conftest.er1
16121   cat conftest.err >&5
16122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); } && {
16124          test -z "$ac_c_werror_flag" ||
16125          test ! -s conftest.err
16126        } && test -s conftest$ac_exeext && {
16127          test "$cross_compiling" = yes ||
16128          $as_test_x conftest$ac_exeext
16129        }; then
16130   pgac_cv__builtin_unreachable=yes
16131 else
16132   $as_echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16134
16135         pgac_cv__builtin_unreachable=no
16136 fi
16137
16138 rm -rf conftest.dSYM
16139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16140       conftest$ac_exeext conftest.$ac_ext
16141 fi
16142 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_unreachable" >&5
16143 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
16144 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
16145
16146 cat >>confdefs.h <<\_ACEOF
16147 #define HAVE__BUILTIN_UNREACHABLE 1
16148 _ACEOF
16149
16150 fi
16151 { $as_echo "$as_me:$LINENO: checking for __VA_ARGS__" >&5
16152 $as_echo_n "checking for __VA_ARGS__... " >&6; }
16153 if test "${pgac_cv__va_args+set}" = set; then
16154   $as_echo_n "(cached) " >&6
16155 else
16156   cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h.  */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h.  */
16162 #include <stdio.h>
16163 int
16164 main ()
16165 {
16166 #define debug(...) fprintf(stderr, __VA_ARGS__)
16167 debug("%s", "blarg");
16168
16169   ;
16170   return 0;
16171 }
16172 _ACEOF
16173 rm -f conftest.$ac_objext
16174 if { (ac_try="$ac_compile"
16175 case "(($ac_try" in
16176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177   *) ac_try_echo=$ac_try;;
16178 esac
16179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16180 $as_echo "$ac_try_echo") >&5
16181   (eval "$ac_compile") 2>conftest.er1
16182   ac_status=$?
16183   grep -v '^ *+' conftest.er1 >conftest.err
16184   rm -f conftest.er1
16185   cat conftest.err >&5
16186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); } && {
16188          test -z "$ac_c_werror_flag" ||
16189          test ! -s conftest.err
16190        } && test -s conftest.$ac_objext; then
16191   pgac_cv__va_args=yes
16192 else
16193   $as_echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16195
16196         pgac_cv__va_args=no
16197 fi
16198
16199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16200 fi
16201 { $as_echo "$as_me:$LINENO: result: $pgac_cv__va_args" >&5
16202 $as_echo "$pgac_cv__va_args" >&6; }
16203 if test x"$pgac_cv__va_args" = xyes ; then
16204
16205 cat >>confdefs.h <<\_ACEOF
16206 #define HAVE__VA_ARGS 1
16207 _ACEOF
16208
16209 fi
16210 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16211 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16212 if test "${ac_cv_struct_tm+set}" = set; then
16213   $as_echo_n "(cached) " >&6
16214 else
16215   cat >conftest.$ac_ext <<_ACEOF
16216 /* confdefs.h.  */
16217 _ACEOF
16218 cat confdefs.h >>conftest.$ac_ext
16219 cat >>conftest.$ac_ext <<_ACEOF
16220 /* end confdefs.h.  */
16221 #include <sys/types.h>
16222 #include <time.h>
16223
16224 int
16225 main ()
16226 {
16227 struct tm tm;
16228                                      int *p = &tm.tm_sec;
16229                                      return !p;
16230   ;
16231   return 0;
16232 }
16233 _ACEOF
16234 rm -f conftest.$ac_objext
16235 if { (ac_try="$ac_compile"
16236 case "(($ac_try" in
16237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238   *) ac_try_echo=$ac_try;;
16239 esac
16240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16241 $as_echo "$ac_try_echo") >&5
16242   (eval "$ac_compile") 2>conftest.er1
16243   ac_status=$?
16244   grep -v '^ *+' conftest.er1 >conftest.err
16245   rm -f conftest.er1
16246   cat conftest.err >&5
16247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); } && {
16249          test -z "$ac_c_werror_flag" ||
16250          test ! -s conftest.err
16251        } && test -s conftest.$ac_objext; then
16252   ac_cv_struct_tm=time.h
16253 else
16254   $as_echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16256
16257         ac_cv_struct_tm=sys/time.h
16258 fi
16259
16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 fi
16262 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16263 $as_echo "$ac_cv_struct_tm" >&6; }
16264 if test $ac_cv_struct_tm = sys/time.h; then
16265
16266 cat >>confdefs.h <<\_ACEOF
16267 #define TM_IN_SYS_TIME 1
16268 _ACEOF
16269
16270 fi
16271
16272 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16273 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
16274 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16275   $as_echo_n "(cached) " >&6
16276 else
16277   cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h.  */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h.  */
16283 #include <sys/types.h>
16284 #include <$ac_cv_struct_tm>
16285
16286
16287 int
16288 main ()
16289 {
16290 static struct tm ac_aggr;
16291 if (ac_aggr.tm_zone)
16292 return 0;
16293   ;
16294   return 0;
16295 }
16296 _ACEOF
16297 rm -f conftest.$ac_objext
16298 if { (ac_try="$ac_compile"
16299 case "(($ac_try" in
16300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301   *) ac_try_echo=$ac_try;;
16302 esac
16303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16304 $as_echo "$ac_try_echo") >&5
16305   (eval "$ac_compile") 2>conftest.er1
16306   ac_status=$?
16307   grep -v '^ *+' conftest.er1 >conftest.err
16308   rm -f conftest.er1
16309   cat conftest.err >&5
16310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311   (exit $ac_status); } && {
16312          test -z "$ac_c_werror_flag" ||
16313          test ! -s conftest.err
16314        } && test -s conftest.$ac_objext; then
16315   ac_cv_member_struct_tm_tm_zone=yes
16316 else
16317   $as_echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.$ac_ext >&5
16319
16320         cat >conftest.$ac_ext <<_ACEOF
16321 /* confdefs.h.  */
16322 _ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h.  */
16326 #include <sys/types.h>
16327 #include <$ac_cv_struct_tm>
16328
16329
16330 int
16331 main ()
16332 {
16333 static struct tm ac_aggr;
16334 if (sizeof ac_aggr.tm_zone)
16335 return 0;
16336   ;
16337   return 0;
16338 }
16339 _ACEOF
16340 rm -f conftest.$ac_objext
16341 if { (ac_try="$ac_compile"
16342 case "(($ac_try" in
16343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16344   *) ac_try_echo=$ac_try;;
16345 esac
16346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16347 $as_echo "$ac_try_echo") >&5
16348   (eval "$ac_compile") 2>conftest.er1
16349   ac_status=$?
16350   grep -v '^ *+' conftest.er1 >conftest.err
16351   rm -f conftest.er1
16352   cat conftest.err >&5
16353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); } && {
16355          test -z "$ac_c_werror_flag" ||
16356          test ! -s conftest.err
16357        } && test -s conftest.$ac_objext; then
16358   ac_cv_member_struct_tm_tm_zone=yes
16359 else
16360   $as_echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363         ac_cv_member_struct_tm_tm_zone=no
16364 fi
16365
16366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367 fi
16368
16369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16370 fi
16371 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16372 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
16373 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
16374
16375 cat >>confdefs.h <<_ACEOF
16376 #define HAVE_STRUCT_TM_TM_ZONE 1
16377 _ACEOF
16378
16379
16380 fi
16381
16382 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16383
16384 cat >>confdefs.h <<\_ACEOF
16385 #define HAVE_TM_ZONE 1
16386 _ACEOF
16387
16388 fi
16389 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
16390 $as_echo_n "checking for tzname... " >&6; }
16391 if test "${ac_cv_var_tzname+set}" = set; then
16392   $as_echo_n "(cached) " >&6
16393 else
16394   cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h.  */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h.  */
16400 #include <time.h>
16401 #ifndef tzname /* For SGI.  */
16402 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
16403 #endif
16404
16405 int
16406 main ()
16407 {
16408 atoi(*tzname);
16409   ;
16410   return 0;
16411 }
16412 _ACEOF
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (ac_try="$ac_link"
16415 case "(($ac_try" in
16416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417   *) ac_try_echo=$ac_try;;
16418 esac
16419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16420 $as_echo "$ac_try_echo") >&5
16421   (eval "$ac_link") 2>conftest.er1
16422   ac_status=$?
16423   grep -v '^ *+' conftest.er1 >conftest.err
16424   rm -f conftest.er1
16425   cat conftest.err >&5
16426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); } && {
16428          test -z "$ac_c_werror_flag" ||
16429          test ! -s conftest.err
16430        } && test -s conftest$ac_exeext && {
16431          test "$cross_compiling" = yes ||
16432          $as_test_x conftest$ac_exeext
16433        }; then
16434   ac_cv_var_tzname=yes
16435 else
16436   $as_echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439         ac_cv_var_tzname=no
16440 fi
16441
16442 rm -rf conftest.dSYM
16443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16444       conftest$ac_exeext conftest.$ac_ext
16445 fi
16446 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16447 $as_echo "$ac_cv_var_tzname" >&6; }
16448 if test $ac_cv_var_tzname = yes; then
16449
16450 cat >>confdefs.h <<\_ACEOF
16451 #define HAVE_TZNAME 1
16452 _ACEOF
16453
16454 fi
16455
16456 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
16457 $as_echo_n "checking for union semun... " >&6; }
16458 if test "${ac_cv_type_union_semun+set}" = set; then
16459   $as_echo_n "(cached) " >&6
16460 else
16461   ac_cv_type_union_semun=no
16462 cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h.  */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h.  */
16468 #include <sys/types.h>
16469 #include <sys/ipc.h>
16470 #include <sys/sem.h>
16471
16472 int
16473 main ()
16474 {
16475 if (sizeof (union semun))
16476        return 0;
16477   ;
16478   return 0;
16479 }
16480 _ACEOF
16481 rm -f conftest.$ac_objext
16482 if { (ac_try="$ac_compile"
16483 case "(($ac_try" in
16484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485   *) ac_try_echo=$ac_try;;
16486 esac
16487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16488 $as_echo "$ac_try_echo") >&5
16489   (eval "$ac_compile") 2>conftest.er1
16490   ac_status=$?
16491   grep -v '^ *+' conftest.er1 >conftest.err
16492   rm -f conftest.er1
16493   cat conftest.err >&5
16494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); } && {
16496          test -z "$ac_c_werror_flag" ||
16497          test ! -s conftest.err
16498        } && test -s conftest.$ac_objext; then
16499   cat >conftest.$ac_ext <<_ACEOF
16500 /* confdefs.h.  */
16501 _ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h.  */
16505 #include <sys/types.h>
16506 #include <sys/ipc.h>
16507 #include <sys/sem.h>
16508
16509 int
16510 main ()
16511 {
16512 if (sizeof ((union semun)))
16513           return 0;
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518 rm -f conftest.$ac_objext
16519 if { (ac_try="$ac_compile"
16520 case "(($ac_try" in
16521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522   *) ac_try_echo=$ac_try;;
16523 esac
16524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16525 $as_echo "$ac_try_echo") >&5
16526   (eval "$ac_compile") 2>conftest.er1
16527   ac_status=$?
16528   grep -v '^ *+' conftest.er1 >conftest.err
16529   rm -f conftest.er1
16530   cat conftest.err >&5
16531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); } && {
16533          test -z "$ac_c_werror_flag" ||
16534          test ! -s conftest.err
16535        } && test -s conftest.$ac_objext; then
16536   :
16537 else
16538   $as_echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541         ac_cv_type_union_semun=yes
16542 fi
16543
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545 else
16546   $as_echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549
16550 fi
16551
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 fi
16554 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
16555 $as_echo "$ac_cv_type_union_semun" >&6; }
16556 if test "x$ac_cv_type_union_semun" = x""yes; then
16557
16558 cat >>confdefs.h <<_ACEOF
16559 #define HAVE_UNION_SEMUN 1
16560 _ACEOF
16561
16562
16563 fi
16564
16565 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16566 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16567 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16568   $as_echo_n "(cached) " >&6
16569 else
16570   ac_cv_type_struct_sockaddr_un=no
16571 cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h.  */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h.  */
16577 #include <sys/types.h>
16578 #ifdef HAVE_SYS_UN_H
16579 #include <sys/un.h>
16580 #endif
16581
16582
16583 int
16584 main ()
16585 {
16586 if (sizeof (struct sockaddr_un))
16587        return 0;
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext
16593 if { (ac_try="$ac_compile"
16594 case "(($ac_try" in
16595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596   *) ac_try_echo=$ac_try;;
16597 esac
16598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16599 $as_echo "$ac_try_echo") >&5
16600   (eval "$ac_compile") 2>conftest.er1
16601   ac_status=$?
16602   grep -v '^ *+' conftest.er1 >conftest.err
16603   rm -f conftest.er1
16604   cat conftest.err >&5
16605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); } && {
16607          test -z "$ac_c_werror_flag" ||
16608          test ! -s conftest.err
16609        } && test -s conftest.$ac_objext; then
16610   cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h.  */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h.  */
16616 #include <sys/types.h>
16617 #ifdef HAVE_SYS_UN_H
16618 #include <sys/un.h>
16619 #endif
16620
16621
16622 int
16623 main ()
16624 {
16625 if (sizeof ((struct sockaddr_un)))
16626           return 0;
16627   ;
16628   return 0;
16629 }
16630 _ACEOF
16631 rm -f conftest.$ac_objext
16632 if { (ac_try="$ac_compile"
16633 case "(($ac_try" in
16634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635   *) ac_try_echo=$ac_try;;
16636 esac
16637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16638 $as_echo "$ac_try_echo") >&5
16639   (eval "$ac_compile") 2>conftest.er1
16640   ac_status=$?
16641   grep -v '^ *+' conftest.er1 >conftest.err
16642   rm -f conftest.er1
16643   cat conftest.err >&5
16644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } && {
16646          test -z "$ac_c_werror_flag" ||
16647          test ! -s conftest.err
16648        } && test -s conftest.$ac_objext; then
16649   :
16650 else
16651   $as_echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654         ac_cv_type_struct_sockaddr_un=yes
16655 fi
16656
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 else
16659   $as_echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16661
16662
16663 fi
16664
16665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16666 fi
16667 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16668 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16669 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16670
16671 cat >>confdefs.h <<\_ACEOF
16672 #define HAVE_UNIX_SOCKETS 1
16673 _ACEOF
16674
16675 fi
16676
16677 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16678 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16679 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16680   $as_echo_n "(cached) " >&6
16681 else
16682   ac_cv_type_struct_sockaddr_storage=no
16683 cat >conftest.$ac_ext <<_ACEOF
16684 /* confdefs.h.  */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h.  */
16689 #include <sys/types.h>
16690 #ifdef HAVE_SYS_SOCKET_H
16691 #include <sys/socket.h>
16692 #endif
16693
16694
16695 int
16696 main ()
16697 {
16698 if (sizeof (struct sockaddr_storage))
16699        return 0;
16700   ;
16701   return 0;
16702 }
16703 _ACEOF
16704 rm -f conftest.$ac_objext
16705 if { (ac_try="$ac_compile"
16706 case "(($ac_try" in
16707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708   *) ac_try_echo=$ac_try;;
16709 esac
16710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16711 $as_echo "$ac_try_echo") >&5
16712   (eval "$ac_compile") 2>conftest.er1
16713   ac_status=$?
16714   grep -v '^ *+' conftest.er1 >conftest.err
16715   rm -f conftest.er1
16716   cat conftest.err >&5
16717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); } && {
16719          test -z "$ac_c_werror_flag" ||
16720          test ! -s conftest.err
16721        } && test -s conftest.$ac_objext; then
16722   cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h.  */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h.  */
16728 #include <sys/types.h>
16729 #ifdef HAVE_SYS_SOCKET_H
16730 #include <sys/socket.h>
16731 #endif
16732
16733
16734 int
16735 main ()
16736 {
16737 if (sizeof ((struct sockaddr_storage)))
16738           return 0;
16739   ;
16740   return 0;
16741 }
16742 _ACEOF
16743 rm -f conftest.$ac_objext
16744 if { (ac_try="$ac_compile"
16745 case "(($ac_try" in
16746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747   *) ac_try_echo=$ac_try;;
16748 esac
16749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16750 $as_echo "$ac_try_echo") >&5
16751   (eval "$ac_compile") 2>conftest.er1
16752   ac_status=$?
16753   grep -v '^ *+' conftest.er1 >conftest.err
16754   rm -f conftest.er1
16755   cat conftest.err >&5
16756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); } && {
16758          test -z "$ac_c_werror_flag" ||
16759          test ! -s conftest.err
16760        } && test -s conftest.$ac_objext; then
16761   :
16762 else
16763   $as_echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16765
16766         ac_cv_type_struct_sockaddr_storage=yes
16767 fi
16768
16769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16770 else
16771   $as_echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16773
16774
16775 fi
16776
16777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16778 fi
16779 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16780 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16781 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16782
16783 cat >>confdefs.h <<_ACEOF
16784 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16785 _ACEOF
16786
16787
16788 fi
16789
16790 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16791 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16792 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16793   $as_echo_n "(cached) " >&6
16794 else
16795   cat >conftest.$ac_ext <<_ACEOF
16796 /* confdefs.h.  */
16797 _ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h.  */
16801 #include <sys/types.h>
16802 #ifdef HAVE_SYS_SOCKET_H
16803 #include <sys/socket.h>
16804 #endif
16805
16806
16807 int
16808 main ()
16809 {
16810 static struct sockaddr_storage ac_aggr;
16811 if (ac_aggr.ss_family)
16812 return 0;
16813   ;
16814   return 0;
16815 }
16816 _ACEOF
16817 rm -f conftest.$ac_objext
16818 if { (ac_try="$ac_compile"
16819 case "(($ac_try" in
16820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821   *) ac_try_echo=$ac_try;;
16822 esac
16823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16824 $as_echo "$ac_try_echo") >&5
16825   (eval "$ac_compile") 2>conftest.er1
16826   ac_status=$?
16827   grep -v '^ *+' conftest.er1 >conftest.err
16828   rm -f conftest.er1
16829   cat conftest.err >&5
16830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); } && {
16832          test -z "$ac_c_werror_flag" ||
16833          test ! -s conftest.err
16834        } && test -s conftest.$ac_objext; then
16835   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16836 else
16837   $as_echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16839
16840         cat >conftest.$ac_ext <<_ACEOF
16841 /* confdefs.h.  */
16842 _ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h.  */
16846 #include <sys/types.h>
16847 #ifdef HAVE_SYS_SOCKET_H
16848 #include <sys/socket.h>
16849 #endif
16850
16851
16852 int
16853 main ()
16854 {
16855 static struct sockaddr_storage ac_aggr;
16856 if (sizeof ac_aggr.ss_family)
16857 return 0;
16858   ;
16859   return 0;
16860 }
16861 _ACEOF
16862 rm -f conftest.$ac_objext
16863 if { (ac_try="$ac_compile"
16864 case "(($ac_try" in
16865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866   *) ac_try_echo=$ac_try;;
16867 esac
16868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16869 $as_echo "$ac_try_echo") >&5
16870   (eval "$ac_compile") 2>conftest.er1
16871   ac_status=$?
16872   grep -v '^ *+' conftest.er1 >conftest.err
16873   rm -f conftest.er1
16874   cat conftest.err >&5
16875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); } && {
16877          test -z "$ac_c_werror_flag" ||
16878          test ! -s conftest.err
16879        } && test -s conftest.$ac_objext; then
16880   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16881 else
16882   $as_echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16884
16885         ac_cv_member_struct_sockaddr_storage_ss_family=no
16886 fi
16887
16888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16889 fi
16890
16891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16892 fi
16893 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16894 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16895 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16896
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16899 _ACEOF
16900
16901
16902 fi
16903 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16904 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16905 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16906   $as_echo_n "(cached) " >&6
16907 else
16908   cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h.  */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h.  */
16914 #include <sys/types.h>
16915 #ifdef HAVE_SYS_SOCKET_H
16916 #include <sys/socket.h>
16917 #endif
16918
16919
16920 int
16921 main ()
16922 {
16923 static struct sockaddr_storage ac_aggr;
16924 if (ac_aggr.__ss_family)
16925 return 0;
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 rm -f conftest.$ac_objext
16931 if { (ac_try="$ac_compile"
16932 case "(($ac_try" in
16933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934   *) ac_try_echo=$ac_try;;
16935 esac
16936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16937 $as_echo "$ac_try_echo") >&5
16938   (eval "$ac_compile") 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } && {
16945          test -z "$ac_c_werror_flag" ||
16946          test ! -s conftest.err
16947        } && test -s conftest.$ac_objext; then
16948   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16949 else
16950   $as_echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953         cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h.  */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h.  */
16959 #include <sys/types.h>
16960 #ifdef HAVE_SYS_SOCKET_H
16961 #include <sys/socket.h>
16962 #endif
16963
16964
16965 int
16966 main ()
16967 {
16968 static struct sockaddr_storage ac_aggr;
16969 if (sizeof ac_aggr.__ss_family)
16970 return 0;
16971   ;
16972   return 0;
16973 }
16974 _ACEOF
16975 rm -f conftest.$ac_objext
16976 if { (ac_try="$ac_compile"
16977 case "(($ac_try" in
16978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979   *) ac_try_echo=$ac_try;;
16980 esac
16981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16982 $as_echo "$ac_try_echo") >&5
16983   (eval "$ac_compile") 2>conftest.er1
16984   ac_status=$?
16985   grep -v '^ *+' conftest.er1 >conftest.err
16986   rm -f conftest.er1
16987   cat conftest.err >&5
16988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); } && {
16990          test -z "$ac_c_werror_flag" ||
16991          test ! -s conftest.err
16992        } && test -s conftest.$ac_objext; then
16993   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16994 else
16995   $as_echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16997
16998         ac_cv_member_struct_sockaddr_storage___ss_family=no
16999 fi
17000
17001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17002 fi
17003
17004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005 fi
17006 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
17007 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
17008 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
17009
17010 cat >>confdefs.h <<_ACEOF
17011 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
17012 _ACEOF
17013
17014
17015 fi
17016 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
17017 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
17018 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
17019   $as_echo_n "(cached) " >&6
17020 else
17021   cat >conftest.$ac_ext <<_ACEOF
17022 /* confdefs.h.  */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h.  */
17027 #include <sys/types.h>
17028 #ifdef HAVE_SYS_SOCKET_H
17029 #include <sys/socket.h>
17030 #endif
17031
17032
17033 int
17034 main ()
17035 {
17036 static struct sockaddr_storage ac_aggr;
17037 if (ac_aggr.ss_len)
17038 return 0;
17039   ;
17040   return 0;
17041 }
17042 _ACEOF
17043 rm -f conftest.$ac_objext
17044 if { (ac_try="$ac_compile"
17045 case "(($ac_try" in
17046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047   *) ac_try_echo=$ac_try;;
17048 esac
17049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17050 $as_echo "$ac_try_echo") >&5
17051   (eval "$ac_compile") 2>conftest.er1
17052   ac_status=$?
17053   grep -v '^ *+' conftest.er1 >conftest.err
17054   rm -f conftest.er1
17055   cat conftest.err >&5
17056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); } && {
17058          test -z "$ac_c_werror_flag" ||
17059          test ! -s conftest.err
17060        } && test -s conftest.$ac_objext; then
17061   ac_cv_member_struct_sockaddr_storage_ss_len=yes
17062 else
17063   $as_echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17065
17066         cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h.  */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h.  */
17072 #include <sys/types.h>
17073 #ifdef HAVE_SYS_SOCKET_H
17074 #include <sys/socket.h>
17075 #endif
17076
17077
17078 int
17079 main ()
17080 {
17081 static struct sockaddr_storage ac_aggr;
17082 if (sizeof ac_aggr.ss_len)
17083 return 0;
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext
17089 if { (ac_try="$ac_compile"
17090 case "(($ac_try" in
17091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092   *) ac_try_echo=$ac_try;;
17093 esac
17094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17095 $as_echo "$ac_try_echo") >&5
17096   (eval "$ac_compile") 2>conftest.er1
17097   ac_status=$?
17098   grep -v '^ *+' conftest.er1 >conftest.err
17099   rm -f conftest.er1
17100   cat conftest.err >&5
17101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); } && {
17103          test -z "$ac_c_werror_flag" ||
17104          test ! -s conftest.err
17105        } && test -s conftest.$ac_objext; then
17106   ac_cv_member_struct_sockaddr_storage_ss_len=yes
17107 else
17108   $as_echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17110
17111         ac_cv_member_struct_sockaddr_storage_ss_len=no
17112 fi
17113
17114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17115 fi
17116
17117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17118 fi
17119 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
17120 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
17121 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
17122
17123 cat >>confdefs.h <<_ACEOF
17124 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
17125 _ACEOF
17126
17127
17128 fi
17129 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
17130 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
17131 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
17132   $as_echo_n "(cached) " >&6
17133 else
17134   cat >conftest.$ac_ext <<_ACEOF
17135 /* confdefs.h.  */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h.  */
17140 #include <sys/types.h>
17141 #ifdef HAVE_SYS_SOCKET_H
17142 #include <sys/socket.h>
17143 #endif
17144
17145
17146 int
17147 main ()
17148 {
17149 static struct sockaddr_storage ac_aggr;
17150 if (ac_aggr.__ss_len)
17151 return 0;
17152   ;
17153   return 0;
17154 }
17155 _ACEOF
17156 rm -f conftest.$ac_objext
17157 if { (ac_try="$ac_compile"
17158 case "(($ac_try" in
17159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160   *) ac_try_echo=$ac_try;;
17161 esac
17162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17163 $as_echo "$ac_try_echo") >&5
17164   (eval "$ac_compile") 2>conftest.er1
17165   ac_status=$?
17166   grep -v '^ *+' conftest.er1 >conftest.err
17167   rm -f conftest.er1
17168   cat conftest.err >&5
17169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); } && {
17171          test -z "$ac_c_werror_flag" ||
17172          test ! -s conftest.err
17173        } && test -s conftest.$ac_objext; then
17174   ac_cv_member_struct_sockaddr_storage___ss_len=yes
17175 else
17176   $as_echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17178
17179         cat >conftest.$ac_ext <<_ACEOF
17180 /* confdefs.h.  */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h.  */
17185 #include <sys/types.h>
17186 #ifdef HAVE_SYS_SOCKET_H
17187 #include <sys/socket.h>
17188 #endif
17189
17190
17191 int
17192 main ()
17193 {
17194 static struct sockaddr_storage ac_aggr;
17195 if (sizeof ac_aggr.__ss_len)
17196 return 0;
17197   ;
17198   return 0;
17199 }
17200 _ACEOF
17201 rm -f conftest.$ac_objext
17202 if { (ac_try="$ac_compile"
17203 case "(($ac_try" in
17204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205   *) ac_try_echo=$ac_try;;
17206 esac
17207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17208 $as_echo "$ac_try_echo") >&5
17209   (eval "$ac_compile") 2>conftest.er1
17210   ac_status=$?
17211   grep -v '^ *+' conftest.er1 >conftest.err
17212   rm -f conftest.er1
17213   cat conftest.err >&5
17214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); } && {
17216          test -z "$ac_c_werror_flag" ||
17217          test ! -s conftest.err
17218        } && test -s conftest.$ac_objext; then
17219   ac_cv_member_struct_sockaddr_storage___ss_len=yes
17220 else
17221   $as_echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17223
17224         ac_cv_member_struct_sockaddr_storage___ss_len=no
17225 fi
17226
17227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17228 fi
17229
17230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17231 fi
17232 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
17233 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
17234 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
17235
17236 cat >>confdefs.h <<_ACEOF
17237 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
17238 _ACEOF
17239
17240
17241 fi
17242 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
17243 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
17244 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
17245   $as_echo_n "(cached) " >&6
17246 else
17247   cat >conftest.$ac_ext <<_ACEOF
17248 /* confdefs.h.  */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h.  */
17253 #include <sys/types.h>
17254 #ifdef HAVE_SYS_SOCKET_H
17255 #include <sys/socket.h>
17256 #endif
17257
17258
17259 int
17260 main ()
17261 {
17262 static struct sockaddr ac_aggr;
17263 if (ac_aggr.sa_len)
17264 return 0;
17265   ;
17266   return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273   *) ac_try_echo=$ac_try;;
17274 esac
17275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17276 $as_echo "$ac_try_echo") >&5
17277   (eval "$ac_compile") 2>conftest.er1
17278   ac_status=$?
17279   grep -v '^ *+' conftest.er1 >conftest.err
17280   rm -f conftest.er1
17281   cat conftest.err >&5
17282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); } && {
17284          test -z "$ac_c_werror_flag" ||
17285          test ! -s conftest.err
17286        } && test -s conftest.$ac_objext; then
17287   ac_cv_member_struct_sockaddr_sa_len=yes
17288 else
17289   $as_echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17291
17292         cat >conftest.$ac_ext <<_ACEOF
17293 /* confdefs.h.  */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h.  */
17298 #include <sys/types.h>
17299 #ifdef HAVE_SYS_SOCKET_H
17300 #include <sys/socket.h>
17301 #endif
17302
17303
17304 int
17305 main ()
17306 {
17307 static struct sockaddr ac_aggr;
17308 if (sizeof ac_aggr.sa_len)
17309 return 0;
17310   ;
17311   return 0;
17312 }
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (ac_try="$ac_compile"
17316 case "(($ac_try" in
17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318   *) ac_try_echo=$ac_try;;
17319 esac
17320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17321 $as_echo "$ac_try_echo") >&5
17322   (eval "$ac_compile") 2>conftest.er1
17323   ac_status=$?
17324   grep -v '^ *+' conftest.er1 >conftest.err
17325   rm -f conftest.er1
17326   cat conftest.err >&5
17327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); } && {
17329          test -z "$ac_c_werror_flag" ||
17330          test ! -s conftest.err
17331        } && test -s conftest.$ac_objext; then
17332   ac_cv_member_struct_sockaddr_sa_len=yes
17333 else
17334   $as_echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17336
17337         ac_cv_member_struct_sockaddr_sa_len=no
17338 fi
17339
17340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17341 fi
17342
17343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17344 fi
17345 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
17346 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
17347 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
17348
17349 cat >>confdefs.h <<_ACEOF
17350 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
17351 _ACEOF
17352
17353
17354 fi
17355
17356 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
17357 $as_echo_n "checking for struct addrinfo... " >&6; }
17358 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
17359   $as_echo_n "(cached) " >&6
17360 else
17361   ac_cv_type_struct_addrinfo=no
17362 cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h.  */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h.  */
17368 #include <sys/types.h>
17369 #include <sys/socket.h>
17370 #include <netdb.h>
17371
17372
17373 int
17374 main ()
17375 {
17376 if (sizeof (struct addrinfo))
17377        return 0;
17378   ;
17379   return 0;
17380 }
17381 _ACEOF
17382 rm -f conftest.$ac_objext
17383 if { (ac_try="$ac_compile"
17384 case "(($ac_try" in
17385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386   *) ac_try_echo=$ac_try;;
17387 esac
17388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17389 $as_echo "$ac_try_echo") >&5
17390   (eval "$ac_compile") 2>conftest.er1
17391   ac_status=$?
17392   grep -v '^ *+' conftest.er1 >conftest.err
17393   rm -f conftest.er1
17394   cat conftest.err >&5
17395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); } && {
17397          test -z "$ac_c_werror_flag" ||
17398          test ! -s conftest.err
17399        } && test -s conftest.$ac_objext; then
17400   cat >conftest.$ac_ext <<_ACEOF
17401 /* confdefs.h.  */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h.  */
17406 #include <sys/types.h>
17407 #include <sys/socket.h>
17408 #include <netdb.h>
17409
17410
17411 int
17412 main ()
17413 {
17414 if (sizeof ((struct addrinfo)))
17415           return 0;
17416   ;
17417   return 0;
17418 }
17419 _ACEOF
17420 rm -f conftest.$ac_objext
17421 if { (ac_try="$ac_compile"
17422 case "(($ac_try" in
17423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424   *) ac_try_echo=$ac_try;;
17425 esac
17426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17427 $as_echo "$ac_try_echo") >&5
17428   (eval "$ac_compile") 2>conftest.er1
17429   ac_status=$?
17430   grep -v '^ *+' conftest.er1 >conftest.err
17431   rm -f conftest.er1
17432   cat conftest.err >&5
17433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); } && {
17435          test -z "$ac_c_werror_flag" ||
17436          test ! -s conftest.err
17437        } && test -s conftest.$ac_objext; then
17438   :
17439 else
17440   $as_echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443         ac_cv_type_struct_addrinfo=yes
17444 fi
17445
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 else
17448   $as_echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451
17452 fi
17453
17454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17455 fi
17456 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
17457 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
17458 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
17459
17460 cat >>confdefs.h <<_ACEOF
17461 #define HAVE_STRUCT_ADDRINFO 1
17462 _ACEOF
17463
17464
17465 fi
17466
17467
17468   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
17469 $as_echo_n "checking for intptr_t... " >&6; }
17470 if test "${ac_cv_type_intptr_t+set}" = set; then
17471   $as_echo_n "(cached) " >&6
17472 else
17473   ac_cv_type_intptr_t=no
17474 cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h.  */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h.  */
17480 $ac_includes_default
17481 int
17482 main ()
17483 {
17484 if (sizeof (intptr_t))
17485        return 0;
17486   ;
17487   return 0;
17488 }
17489 _ACEOF
17490 rm -f conftest.$ac_objext
17491 if { (ac_try="$ac_compile"
17492 case "(($ac_try" in
17493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494   *) ac_try_echo=$ac_try;;
17495 esac
17496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17497 $as_echo "$ac_try_echo") >&5
17498   (eval "$ac_compile") 2>conftest.er1
17499   ac_status=$?
17500   grep -v '^ *+' conftest.er1 >conftest.err
17501   rm -f conftest.er1
17502   cat conftest.err >&5
17503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); } && {
17505          test -z "$ac_c_werror_flag" ||
17506          test ! -s conftest.err
17507        } && test -s conftest.$ac_objext; then
17508   cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h.  */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h.  */
17514 $ac_includes_default
17515 int
17516 main ()
17517 {
17518 if (sizeof ((intptr_t)))
17519           return 0;
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext
17525 if { (ac_try="$ac_compile"
17526 case "(($ac_try" in
17527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528   *) ac_try_echo=$ac_try;;
17529 esac
17530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17531 $as_echo "$ac_try_echo") >&5
17532   (eval "$ac_compile") 2>conftest.er1
17533   ac_status=$?
17534   grep -v '^ *+' conftest.er1 >conftest.err
17535   rm -f conftest.er1
17536   cat conftest.err >&5
17537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); } && {
17539          test -z "$ac_c_werror_flag" ||
17540          test ! -s conftest.err
17541        } && test -s conftest.$ac_objext; then
17542   :
17543 else
17544   $as_echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547         ac_cv_type_intptr_t=yes
17548 fi
17549
17550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17551 else
17552   $as_echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555
17556 fi
17557
17558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 fi
17560 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
17561 $as_echo "$ac_cv_type_intptr_t" >&6; }
17562 if test "x$ac_cv_type_intptr_t" = x""yes; then
17563
17564 cat >>confdefs.h <<\_ACEOF
17565 #define HAVE_INTPTR_T 1
17566 _ACEOF
17567
17568 else
17569   for ac_type in 'int' 'long int' 'long long int'; do
17570        cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h.  */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h.  */
17576 $ac_includes_default
17577 int
17578 main ()
17579 {
17580 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17581 test_array [0] = 0
17582
17583   ;
17584   return 0;
17585 }
17586 _ACEOF
17587 rm -f conftest.$ac_objext
17588 if { (ac_try="$ac_compile"
17589 case "(($ac_try" in
17590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591   *) ac_try_echo=$ac_try;;
17592 esac
17593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17594 $as_echo "$ac_try_echo") >&5
17595   (eval "$ac_compile") 2>conftest.er1
17596   ac_status=$?
17597   grep -v '^ *+' conftest.er1 >conftest.err
17598   rm -f conftest.er1
17599   cat conftest.err >&5
17600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); } && {
17602          test -z "$ac_c_werror_flag" ||
17603          test ! -s conftest.err
17604        } && test -s conftest.$ac_objext; then
17605
17606 cat >>confdefs.h <<_ACEOF
17607 #define intptr_t $ac_type
17608 _ACEOF
17609
17610           ac_type=
17611 else
17612   $as_echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17614
17615
17616 fi
17617
17618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17619        test -z "$ac_type" && break
17620      done
17621 fi
17622
17623
17624
17625   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17626 $as_echo_n "checking for uintptr_t... " >&6; }
17627 if test "${ac_cv_type_uintptr_t+set}" = set; then
17628   $as_echo_n "(cached) " >&6
17629 else
17630   ac_cv_type_uintptr_t=no
17631 cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h.  */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h.  */
17637 $ac_includes_default
17638 int
17639 main ()
17640 {
17641 if (sizeof (uintptr_t))
17642        return 0;
17643   ;
17644   return 0;
17645 }
17646 _ACEOF
17647 rm -f conftest.$ac_objext
17648 if { (ac_try="$ac_compile"
17649 case "(($ac_try" in
17650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651   *) ac_try_echo=$ac_try;;
17652 esac
17653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17654 $as_echo "$ac_try_echo") >&5
17655   (eval "$ac_compile") 2>conftest.er1
17656   ac_status=$?
17657   grep -v '^ *+' conftest.er1 >conftest.err
17658   rm -f conftest.er1
17659   cat conftest.err >&5
17660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } && {
17662          test -z "$ac_c_werror_flag" ||
17663          test ! -s conftest.err
17664        } && test -s conftest.$ac_objext; then
17665   cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h.  */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h.  */
17671 $ac_includes_default
17672 int
17673 main ()
17674 {
17675 if (sizeof ((uintptr_t)))
17676           return 0;
17677   ;
17678   return 0;
17679 }
17680 _ACEOF
17681 rm -f conftest.$ac_objext
17682 if { (ac_try="$ac_compile"
17683 case "(($ac_try" in
17684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685   *) ac_try_echo=$ac_try;;
17686 esac
17687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17688 $as_echo "$ac_try_echo") >&5
17689   (eval "$ac_compile") 2>conftest.er1
17690   ac_status=$?
17691   grep -v '^ *+' conftest.er1 >conftest.err
17692   rm -f conftest.er1
17693   cat conftest.err >&5
17694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); } && {
17696          test -z "$ac_c_werror_flag" ||
17697          test ! -s conftest.err
17698        } && test -s conftest.$ac_objext; then
17699   :
17700 else
17701   $as_echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17703
17704         ac_cv_type_uintptr_t=yes
17705 fi
17706
17707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17708 else
17709   $as_echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17711
17712
17713 fi
17714
17715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17716 fi
17717 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17718 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17719 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17720
17721 cat >>confdefs.h <<\_ACEOF
17722 #define HAVE_UINTPTR_T 1
17723 _ACEOF
17724
17725 else
17726   for ac_type in 'unsigned int' 'unsigned long int' \
17727         'unsigned long long int'; do
17728        cat >conftest.$ac_ext <<_ACEOF
17729 /* confdefs.h.  */
17730 _ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h.  */
17734 $ac_includes_default
17735 int
17736 main ()
17737 {
17738 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17739 test_array [0] = 0
17740
17741   ;
17742   return 0;
17743 }
17744 _ACEOF
17745 rm -f conftest.$ac_objext
17746 if { (ac_try="$ac_compile"
17747 case "(($ac_try" in
17748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749   *) ac_try_echo=$ac_try;;
17750 esac
17751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17752 $as_echo "$ac_try_echo") >&5
17753   (eval "$ac_compile") 2>conftest.er1
17754   ac_status=$?
17755   grep -v '^ *+' conftest.er1 >conftest.err
17756   rm -f conftest.er1
17757   cat conftest.err >&5
17758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); } && {
17760          test -z "$ac_c_werror_flag" ||
17761          test ! -s conftest.err
17762        } && test -s conftest.$ac_objext; then
17763
17764 cat >>confdefs.h <<_ACEOF
17765 #define uintptr_t $ac_type
17766 _ACEOF
17767
17768           ac_type=
17769 else
17770   $as_echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17772
17773
17774 fi
17775
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777        test -z "$ac_type" && break
17778      done
17779 fi
17780
17781
17782
17783   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17784 $as_echo_n "checking for long long int... " >&6; }
17785 if test "${ac_cv_type_long_long_int+set}" = set; then
17786   $as_echo_n "(cached) " >&6
17787 else
17788   cat >conftest.$ac_ext <<_ACEOF
17789
17790   /* confdefs.h.  */
17791 _ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h.  */
17795 /* For now, do not test the preprocessor; as of 2007 there are too many
17796          implementations with broken preprocessors.  Perhaps this can
17797          be revisited in 2012.  In the meantime, code should not expect
17798          #if to work with literals wider than 32 bits.  */
17799       /* Test literals.  */
17800       long long int ll = 9223372036854775807ll;
17801       long long int nll = -9223372036854775807LL;
17802       unsigned long long int ull = 18446744073709551615ULL;
17803       /* Test constant expressions.   */
17804       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17805                      ? 1 : -1)];
17806       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17807                      ? 1 : -1)];
17808       int i = 63;
17809 int
17810 main ()
17811 {
17812 /* Test availability of runtime routines for shift and division.  */
17813       long long int llmax = 9223372036854775807ll;
17814       unsigned long long int ullmax = 18446744073709551615ull;
17815       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17816               | (llmax / ll) | (llmax % ll)
17817               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17818               | (ullmax / ull) | (ullmax % ull));
17819   ;
17820   return 0;
17821 }
17822
17823 _ACEOF
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (ac_try="$ac_link"
17826 case "(($ac_try" in
17827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828   *) ac_try_echo=$ac_try;;
17829 esac
17830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17831 $as_echo "$ac_try_echo") >&5
17832   (eval "$ac_link") 2>conftest.er1
17833   ac_status=$?
17834   grep -v '^ *+' conftest.er1 >conftest.err
17835   rm -f conftest.er1
17836   cat conftest.err >&5
17837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } && {
17839          test -z "$ac_c_werror_flag" ||
17840          test ! -s conftest.err
17841        } && test -s conftest$ac_exeext && {
17842          test "$cross_compiling" = yes ||
17843          $as_test_x conftest$ac_exeext
17844        }; then
17845                         if test "$cross_compiling" = yes; then
17846   ac_cv_type_long_long_int=yes
17847 else
17848   cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h.  */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h.  */
17854 #include <limits.h>
17855                #ifndef LLONG_MAX
17856                # define HALF \
17857                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17858                # define LLONG_MAX (HALF - 1 + HALF)
17859                #endif
17860 int
17861 main ()
17862 {
17863 long long int n = 1;
17864                int i;
17865                for (i = 0; ; i++)
17866                  {
17867                    long long int m = n << i;
17868                    if (m >> i != n)
17869                      return 1;
17870                    if (LLONG_MAX / 2 < m)
17871                      break;
17872                  }
17873                return 0;
17874   ;
17875   return 0;
17876 }
17877 _ACEOF
17878 rm -f conftest$ac_exeext
17879 if { (ac_try="$ac_link"
17880 case "(($ac_try" in
17881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17882   *) ac_try_echo=$ac_try;;
17883 esac
17884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17885 $as_echo "$ac_try_echo") >&5
17886   (eval "$ac_link") 2>&5
17887   ac_status=$?
17888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17890   { (case "(($ac_try" in
17891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892   *) ac_try_echo=$ac_try;;
17893 esac
17894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17895 $as_echo "$ac_try_echo") >&5
17896   (eval "$ac_try") 2>&5
17897   ac_status=$?
17898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899   (exit $ac_status); }; }; then
17900   ac_cv_type_long_long_int=yes
17901 else
17902   $as_echo "$as_me: program exited with status $ac_status" >&5
17903 $as_echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906 ( exit $ac_status )
17907 ac_cv_type_long_long_int=no
17908 fi
17909 rm -rf conftest.dSYM
17910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17911 fi
17912
17913
17914 else
17915   $as_echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17917
17918         ac_cv_type_long_long_int=no
17919 fi
17920
17921 rm -rf conftest.dSYM
17922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17923       conftest$ac_exeext conftest.$ac_ext
17924 fi
17925 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17926 $as_echo "$ac_cv_type_long_long_int" >&6; }
17927   if test $ac_cv_type_long_long_int = yes; then
17928
17929 cat >>confdefs.h <<\_ACEOF
17930 #define HAVE_LONG_LONG_INT 1
17931 _ACEOF
17932
17933   fi
17934
17935
17936 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17937 $as_echo_n "checking for locale_t... " >&6; }
17938 if test "${pgac_cv_type_locale_t+set}" = set; then
17939   $as_echo_n "(cached) " >&6
17940 else
17941   cat >conftest.$ac_ext <<_ACEOF
17942 /* confdefs.h.  */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h.  */
17947 #include <locale.h>
17948 locale_t x;
17949 int
17950 main ()
17951 {
17952
17953   ;
17954   return 0;
17955 }
17956 _ACEOF
17957 rm -f conftest.$ac_objext
17958 if { (ac_try="$ac_compile"
17959 case "(($ac_try" in
17960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961   *) ac_try_echo=$ac_try;;
17962 esac
17963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17964 $as_echo "$ac_try_echo") >&5
17965   (eval "$ac_compile") 2>conftest.er1
17966   ac_status=$?
17967   grep -v '^ *+' conftest.er1 >conftest.err
17968   rm -f conftest.er1
17969   cat conftest.err >&5
17970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971   (exit $ac_status); } && {
17972          test -z "$ac_c_werror_flag" ||
17973          test ! -s conftest.err
17974        } && test -s conftest.$ac_objext; then
17975   pgac_cv_type_locale_t=yes
17976 else
17977   $as_echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17979
17980         cat >conftest.$ac_ext <<_ACEOF
17981 /* confdefs.h.  */
17982 _ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h.  */
17986 #include <xlocale.h>
17987 locale_t x;
17988 int
17989 main ()
17990 {
17991
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   pgac_cv_type_locale_t='yes (in xlocale.h)'
18015 else
18016   $as_echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019         pgac_cv_type_locale_t=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: $pgac_cv_type_locale_t" >&5
18028 $as_echo "$pgac_cv_type_locale_t" >&6; }
18029 if test "$pgac_cv_type_locale_t" != no; then
18030
18031 cat >>confdefs.h <<\_ACEOF
18032 #define HAVE_LOCALE_T 1
18033 _ACEOF
18034
18035 fi
18036 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
18037
18038 cat >>confdefs.h <<\_ACEOF
18039 #define LOCALE_T_IN_XLOCALE 1
18040 _ACEOF
18041
18042 fi
18043
18044 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
18045 $as_echo_n "checking for struct cmsgcred... " >&6; }
18046 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
18047   $as_echo_n "(cached) " >&6
18048 else
18049   ac_cv_type_struct_cmsgcred=no
18050 cat >conftest.$ac_ext <<_ACEOF
18051 /* confdefs.h.  */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h.  */
18056 #include <sys/socket.h>
18057 #include <sys/param.h>
18058 #ifdef HAVE_SYS_UCRED_H
18059 #include <sys/ucred.h>
18060 #endif
18061
18062 int
18063 main ()
18064 {
18065 if (sizeof (struct cmsgcred))
18066        return 0;
18067   ;
18068   return 0;
18069 }
18070 _ACEOF
18071 rm -f conftest.$ac_objext
18072 if { (ac_try="$ac_compile"
18073 case "(($ac_try" in
18074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18075   *) ac_try_echo=$ac_try;;
18076 esac
18077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18078 $as_echo "$ac_try_echo") >&5
18079   (eval "$ac_compile") 2>conftest.er1
18080   ac_status=$?
18081   grep -v '^ *+' conftest.er1 >conftest.err
18082   rm -f conftest.er1
18083   cat conftest.err >&5
18084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); } && {
18086          test -z "$ac_c_werror_flag" ||
18087          test ! -s conftest.err
18088        } && test -s conftest.$ac_objext; then
18089   cat >conftest.$ac_ext <<_ACEOF
18090 /* confdefs.h.  */
18091 _ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h.  */
18095 #include <sys/socket.h>
18096 #include <sys/param.h>
18097 #ifdef HAVE_SYS_UCRED_H
18098 #include <sys/ucred.h>
18099 #endif
18100
18101 int
18102 main ()
18103 {
18104 if (sizeof ((struct cmsgcred)))
18105           return 0;
18106   ;
18107   return 0;
18108 }
18109 _ACEOF
18110 rm -f conftest.$ac_objext
18111 if { (ac_try="$ac_compile"
18112 case "(($ac_try" in
18113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114   *) ac_try_echo=$ac_try;;
18115 esac
18116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18117 $as_echo "$ac_try_echo") >&5
18118   (eval "$ac_compile") 2>conftest.er1
18119   ac_status=$?
18120   grep -v '^ *+' conftest.er1 >conftest.err
18121   rm -f conftest.er1
18122   cat conftest.err >&5
18123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); } && {
18125          test -z "$ac_c_werror_flag" ||
18126          test ! -s conftest.err
18127        } && test -s conftest.$ac_objext; then
18128   :
18129 else
18130   $as_echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18132
18133         ac_cv_type_struct_cmsgcred=yes
18134 fi
18135
18136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18137 else
18138   $as_echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18140
18141
18142 fi
18143
18144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18145 fi
18146 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
18147 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
18148 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
18149
18150 cat >>confdefs.h <<_ACEOF
18151 #define HAVE_STRUCT_CMSGCRED 1
18152 _ACEOF
18153
18154
18155 fi
18156
18157
18158 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
18159 $as_echo_n "checking for struct option... " >&6; }
18160 if test "${ac_cv_type_struct_option+set}" = set; then
18161   $as_echo_n "(cached) " >&6
18162 else
18163   ac_cv_type_struct_option=no
18164 cat >conftest.$ac_ext <<_ACEOF
18165 /* confdefs.h.  */
18166 _ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h.  */
18170 #ifdef HAVE_GETOPT_H
18171 #include <getopt.h>
18172 #endif
18173
18174 int
18175 main ()
18176 {
18177 if (sizeof (struct option))
18178        return 0;
18179   ;
18180   return 0;
18181 }
18182 _ACEOF
18183 rm -f conftest.$ac_objext
18184 if { (ac_try="$ac_compile"
18185 case "(($ac_try" in
18186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187   *) ac_try_echo=$ac_try;;
18188 esac
18189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18190 $as_echo "$ac_try_echo") >&5
18191   (eval "$ac_compile") 2>conftest.er1
18192   ac_status=$?
18193   grep -v '^ *+' conftest.er1 >conftest.err
18194   rm -f conftest.er1
18195   cat conftest.err >&5
18196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); } && {
18198          test -z "$ac_c_werror_flag" ||
18199          test ! -s conftest.err
18200        } && test -s conftest.$ac_objext; then
18201   cat >conftest.$ac_ext <<_ACEOF
18202 /* confdefs.h.  */
18203 _ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h.  */
18207 #ifdef HAVE_GETOPT_H
18208 #include <getopt.h>
18209 #endif
18210
18211 int
18212 main ()
18213 {
18214 if (sizeof ((struct option)))
18215           return 0;
18216   ;
18217   return 0;
18218 }
18219 _ACEOF
18220 rm -f conftest.$ac_objext
18221 if { (ac_try="$ac_compile"
18222 case "(($ac_try" in
18223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224   *) ac_try_echo=$ac_try;;
18225 esac
18226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18227 $as_echo "$ac_try_echo") >&5
18228   (eval "$ac_compile") 2>conftest.er1
18229   ac_status=$?
18230   grep -v '^ *+' conftest.er1 >conftest.err
18231   rm -f conftest.er1
18232   cat conftest.err >&5
18233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234   (exit $ac_status); } && {
18235          test -z "$ac_c_werror_flag" ||
18236          test ! -s conftest.err
18237        } && test -s conftest.$ac_objext; then
18238   :
18239 else
18240   $as_echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18242
18243         ac_cv_type_struct_option=yes
18244 fi
18245
18246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18247 else
18248   $as_echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18250
18251
18252 fi
18253
18254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18255 fi
18256 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
18257 $as_echo "$ac_cv_type_struct_option" >&6; }
18258 if test "x$ac_cv_type_struct_option" = x""yes; then
18259
18260 cat >>confdefs.h <<_ACEOF
18261 #define HAVE_STRUCT_OPTION 1
18262 _ACEOF
18263
18264
18265 fi
18266
18267
18268 if test "$with_zlib" = yes; then
18269   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
18270   # did not).  While we could work around the lack of z_streamp, it
18271   # seems unwise to encourage people to use such old zlib versions...
18272   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
18273 $as_echo_n "checking for z_streamp... " >&6; }
18274 if test "${ac_cv_type_z_streamp+set}" = set; then
18275   $as_echo_n "(cached) " >&6
18276 else
18277   ac_cv_type_z_streamp=no
18278 cat >conftest.$ac_ext <<_ACEOF
18279 /* confdefs.h.  */
18280 _ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h.  */
18284 #include <zlib.h>
18285
18286 int
18287 main ()
18288 {
18289 if (sizeof (z_streamp))
18290        return 0;
18291   ;
18292   return 0;
18293 }
18294 _ACEOF
18295 rm -f conftest.$ac_objext
18296 if { (ac_try="$ac_compile"
18297 case "(($ac_try" in
18298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299   *) ac_try_echo=$ac_try;;
18300 esac
18301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18302 $as_echo "$ac_try_echo") >&5
18303   (eval "$ac_compile") 2>conftest.er1
18304   ac_status=$?
18305   grep -v '^ *+' conftest.er1 >conftest.err
18306   rm -f conftest.er1
18307   cat conftest.err >&5
18308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309   (exit $ac_status); } && {
18310          test -z "$ac_c_werror_flag" ||
18311          test ! -s conftest.err
18312        } && test -s conftest.$ac_objext; then
18313   cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h.  */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h.  */
18319 #include <zlib.h>
18320
18321 int
18322 main ()
18323 {
18324 if (sizeof ((z_streamp)))
18325           return 0;
18326   ;
18327   return 0;
18328 }
18329 _ACEOF
18330 rm -f conftest.$ac_objext
18331 if { (ac_try="$ac_compile"
18332 case "(($ac_try" in
18333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334   *) ac_try_echo=$ac_try;;
18335 esac
18336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18337 $as_echo "$ac_try_echo") >&5
18338   (eval "$ac_compile") 2>conftest.er1
18339   ac_status=$?
18340   grep -v '^ *+' conftest.er1 >conftest.err
18341   rm -f conftest.er1
18342   cat conftest.err >&5
18343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); } && {
18345          test -z "$ac_c_werror_flag" ||
18346          test ! -s conftest.err
18347        } && test -s conftest.$ac_objext; then
18348   :
18349 else
18350   $as_echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18352
18353         ac_cv_type_z_streamp=yes
18354 fi
18355
18356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18357 else
18358   $as_echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18360
18361
18362 fi
18363
18364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18365 fi
18366 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
18367 $as_echo "$ac_cv_type_z_streamp" >&6; }
18368 if test "x$ac_cv_type_z_streamp" = x""yes; then
18369   :
18370 else
18371   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
18372 Use --without-zlib to disable zlib support." >&5
18373 $as_echo "$as_me: error: zlib version is too old
18374 Use --without-zlib to disable zlib support." >&2;}
18375    { (exit 1); exit 1; }; }
18376 fi
18377
18378 fi
18379
18380 if test "$with_krb5" = yes; then
18381 # Check for differences between MIT and Heimdal (KTH) releases
18382   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
18383 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
18384 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
18385   $as_echo_n "(cached) " >&6
18386 else
18387   cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h.  */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h.  */
18393 #include <krb5.h>
18394
18395 int
18396 main ()
18397 {
18398 static krb5_ticket ac_aggr;
18399 if (ac_aggr.enc_part2)
18400 return 0;
18401   ;
18402   return 0;
18403 }
18404 _ACEOF
18405 rm -f conftest.$ac_objext
18406 if { (ac_try="$ac_compile"
18407 case "(($ac_try" in
18408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409   *) ac_try_echo=$ac_try;;
18410 esac
18411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18412 $as_echo "$ac_try_echo") >&5
18413   (eval "$ac_compile") 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } && {
18420          test -z "$ac_c_werror_flag" ||
18421          test ! -s conftest.err
18422        } && test -s conftest.$ac_objext; then
18423   ac_cv_member_krb5_ticket_enc_part2=yes
18424 else
18425   $as_echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18427
18428         cat >conftest.$ac_ext <<_ACEOF
18429 /* confdefs.h.  */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h.  */
18434 #include <krb5.h>
18435
18436 int
18437 main ()
18438 {
18439 static krb5_ticket ac_aggr;
18440 if (sizeof ac_aggr.enc_part2)
18441 return 0;
18442   ;
18443   return 0;
18444 }
18445 _ACEOF
18446 rm -f conftest.$ac_objext
18447 if { (ac_try="$ac_compile"
18448 case "(($ac_try" in
18449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450   *) ac_try_echo=$ac_try;;
18451 esac
18452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18453 $as_echo "$ac_try_echo") >&5
18454   (eval "$ac_compile") 2>conftest.er1
18455   ac_status=$?
18456   grep -v '^ *+' conftest.er1 >conftest.err
18457   rm -f conftest.er1
18458   cat conftest.err >&5
18459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); } && {
18461          test -z "$ac_c_werror_flag" ||
18462          test ! -s conftest.err
18463        } && test -s conftest.$ac_objext; then
18464   ac_cv_member_krb5_ticket_enc_part2=yes
18465 else
18466   $as_echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18468
18469         ac_cv_member_krb5_ticket_enc_part2=no
18470 fi
18471
18472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18473 fi
18474
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476 fi
18477 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
18478 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
18479 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
18480
18481 cat >>confdefs.h <<_ACEOF
18482 #define HAVE_KRB5_TICKET_ENC_PART2 1
18483 _ACEOF
18484
18485
18486 else
18487   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
18488 $as_echo_n "checking for krb5_ticket.client... " >&6; }
18489 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
18490   $as_echo_n "(cached) " >&6
18491 else
18492   cat >conftest.$ac_ext <<_ACEOF
18493 /* confdefs.h.  */
18494 _ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h.  */
18498 #include <krb5.h>
18499
18500 int
18501 main ()
18502 {
18503 static krb5_ticket ac_aggr;
18504 if (ac_aggr.client)
18505 return 0;
18506   ;
18507   return 0;
18508 }
18509 _ACEOF
18510 rm -f conftest.$ac_objext
18511 if { (ac_try="$ac_compile"
18512 case "(($ac_try" in
18513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514   *) ac_try_echo=$ac_try;;
18515 esac
18516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18517 $as_echo "$ac_try_echo") >&5
18518   (eval "$ac_compile") 2>conftest.er1
18519   ac_status=$?
18520   grep -v '^ *+' conftest.er1 >conftest.err
18521   rm -f conftest.er1
18522   cat conftest.err >&5
18523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); } && {
18525          test -z "$ac_c_werror_flag" ||
18526          test ! -s conftest.err
18527        } && test -s conftest.$ac_objext; then
18528   ac_cv_member_krb5_ticket_client=yes
18529 else
18530   $as_echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18532
18533         cat >conftest.$ac_ext <<_ACEOF
18534 /* confdefs.h.  */
18535 _ACEOF
18536 cat confdefs.h >>conftest.$ac_ext
18537 cat >>conftest.$ac_ext <<_ACEOF
18538 /* end confdefs.h.  */
18539 #include <krb5.h>
18540
18541 int
18542 main ()
18543 {
18544 static krb5_ticket ac_aggr;
18545 if (sizeof ac_aggr.client)
18546 return 0;
18547   ;
18548   return 0;
18549 }
18550 _ACEOF
18551 rm -f conftest.$ac_objext
18552 if { (ac_try="$ac_compile"
18553 case "(($ac_try" in
18554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555   *) ac_try_echo=$ac_try;;
18556 esac
18557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18558 $as_echo "$ac_try_echo") >&5
18559   (eval "$ac_compile") 2>conftest.er1
18560   ac_status=$?
18561   grep -v '^ *+' conftest.er1 >conftest.err
18562   rm -f conftest.er1
18563   cat conftest.err >&5
18564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565   (exit $ac_status); } && {
18566          test -z "$ac_c_werror_flag" ||
18567          test ! -s conftest.err
18568        } && test -s conftest.$ac_objext; then
18569   ac_cv_member_krb5_ticket_client=yes
18570 else
18571   $as_echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18573
18574         ac_cv_member_krb5_ticket_client=no
18575 fi
18576
18577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578 fi
18579
18580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18581 fi
18582 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18583 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18584 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18585
18586 cat >>confdefs.h <<_ACEOF
18587 #define HAVE_KRB5_TICKET_CLIENT 1
18588 _ACEOF
18589
18590
18591 else
18592   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18593 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18594    { (exit 1); exit 1; }; }
18595 fi
18596
18597 fi
18598
18599   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18600 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18601 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18602   $as_echo_n "(cached) " >&6
18603 else
18604   cat >conftest.$ac_ext <<_ACEOF
18605 /* confdefs.h.  */
18606 _ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h.  */
18610 #include <krb5.h>
18611
18612 int
18613 main ()
18614 {
18615 static krb5_error ac_aggr;
18616 if (ac_aggr.text.data)
18617 return 0;
18618   ;
18619   return 0;
18620 }
18621 _ACEOF
18622 rm -f conftest.$ac_objext
18623 if { (ac_try="$ac_compile"
18624 case "(($ac_try" in
18625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626   *) ac_try_echo=$ac_try;;
18627 esac
18628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18629 $as_echo "$ac_try_echo") >&5
18630   (eval "$ac_compile") 2>conftest.er1
18631   ac_status=$?
18632   grep -v '^ *+' conftest.er1 >conftest.err
18633   rm -f conftest.er1
18634   cat conftest.err >&5
18635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636   (exit $ac_status); } && {
18637          test -z "$ac_c_werror_flag" ||
18638          test ! -s conftest.err
18639        } && test -s conftest.$ac_objext; then
18640   ac_cv_member_krb5_error_text_data=yes
18641 else
18642   $as_echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18644
18645         cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h.  */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h.  */
18651 #include <krb5.h>
18652
18653 int
18654 main ()
18655 {
18656 static krb5_error ac_aggr;
18657 if (sizeof ac_aggr.text.data)
18658 return 0;
18659   ;
18660   return 0;
18661 }
18662 _ACEOF
18663 rm -f conftest.$ac_objext
18664 if { (ac_try="$ac_compile"
18665 case "(($ac_try" in
18666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667   *) ac_try_echo=$ac_try;;
18668 esac
18669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18670 $as_echo "$ac_try_echo") >&5
18671   (eval "$ac_compile") 2>conftest.er1
18672   ac_status=$?
18673   grep -v '^ *+' conftest.er1 >conftest.err
18674   rm -f conftest.er1
18675   cat conftest.err >&5
18676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); } && {
18678          test -z "$ac_c_werror_flag" ||
18679          test ! -s conftest.err
18680        } && test -s conftest.$ac_objext; then
18681   ac_cv_member_krb5_error_text_data=yes
18682 else
18683   $as_echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18685
18686         ac_cv_member_krb5_error_text_data=no
18687 fi
18688
18689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18690 fi
18691
18692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18693 fi
18694 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18695 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18696 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18697
18698 cat >>confdefs.h <<_ACEOF
18699 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18700 _ACEOF
18701
18702
18703 else
18704   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18705 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18706 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18707   $as_echo_n "(cached) " >&6
18708 else
18709   cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h.  */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h.  */
18715 #include <krb5.h>
18716
18717 int
18718 main ()
18719 {
18720 static krb5_error ac_aggr;
18721 if (ac_aggr.e_data)
18722 return 0;
18723   ;
18724   return 0;
18725 }
18726 _ACEOF
18727 rm -f conftest.$ac_objext
18728 if { (ac_try="$ac_compile"
18729 case "(($ac_try" in
18730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731   *) ac_try_echo=$ac_try;;
18732 esac
18733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18734 $as_echo "$ac_try_echo") >&5
18735   (eval "$ac_compile") 2>conftest.er1
18736   ac_status=$?
18737   grep -v '^ *+' conftest.er1 >conftest.err
18738   rm -f conftest.er1
18739   cat conftest.err >&5
18740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741   (exit $ac_status); } && {
18742          test -z "$ac_c_werror_flag" ||
18743          test ! -s conftest.err
18744        } && test -s conftest.$ac_objext; then
18745   ac_cv_member_krb5_error_e_data=yes
18746 else
18747   $as_echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18749
18750         cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756 #include <krb5.h>
18757
18758 int
18759 main ()
18760 {
18761 static krb5_error ac_aggr;
18762 if (sizeof ac_aggr.e_data)
18763 return 0;
18764   ;
18765   return 0;
18766 }
18767 _ACEOF
18768 rm -f conftest.$ac_objext
18769 if { (ac_try="$ac_compile"
18770 case "(($ac_try" in
18771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772   *) ac_try_echo=$ac_try;;
18773 esac
18774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18775 $as_echo "$ac_try_echo") >&5
18776   (eval "$ac_compile") 2>conftest.er1
18777   ac_status=$?
18778   grep -v '^ *+' conftest.er1 >conftest.err
18779   rm -f conftest.er1
18780   cat conftest.err >&5
18781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); } && {
18783          test -z "$ac_c_werror_flag" ||
18784          test ! -s conftest.err
18785        } && test -s conftest.$ac_objext; then
18786   ac_cv_member_krb5_error_e_data=yes
18787 else
18788   $as_echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18790
18791         ac_cv_member_krb5_error_e_data=no
18792 fi
18793
18794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18795 fi
18796
18797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18798 fi
18799 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18800 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18801 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18802
18803 cat >>confdefs.h <<_ACEOF
18804 #define HAVE_KRB5_ERROR_E_DATA 1
18805 _ACEOF
18806
18807
18808 else
18809   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18810 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18811    { (exit 1); exit 1; }; }
18812 fi
18813
18814 fi
18815
18816
18817 # Win32 requires headers to be loaded for __stdcall, so can't use
18818 # AC_CHECK_FUNCS here.
18819   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18820 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18821   cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h.  */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h.  */
18827 #include <krb5.h>
18828 int
18829 main ()
18830 {
18831 krb5_free_unparsed_name(NULL,NULL);
18832   ;
18833   return 0;
18834 }
18835 _ACEOF
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (ac_try="$ac_link"
18838 case "(($ac_try" in
18839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840   *) ac_try_echo=$ac_try;;
18841 esac
18842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18843 $as_echo "$ac_try_echo") >&5
18844   (eval "$ac_link") 2>conftest.er1
18845   ac_status=$?
18846   grep -v '^ *+' conftest.er1 >conftest.err
18847   rm -f conftest.er1
18848   cat conftest.err >&5
18849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); } && {
18851          test -z "$ac_c_werror_flag" ||
18852          test ! -s conftest.err
18853        } && test -s conftest$ac_exeext && {
18854          test "$cross_compiling" = yes ||
18855          $as_test_x conftest$ac_exeext
18856        }; then
18857
18858 cat >>confdefs.h <<\_ACEOF
18859 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18860 _ACEOF
18861
18862 { $as_echo "$as_me:$LINENO: result: yes" >&5
18863 $as_echo "yes" >&6; }
18864 else
18865   $as_echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18867
18868         { $as_echo "$as_me:$LINENO: result: no" >&5
18869 $as_echo "no" >&6; }
18870 fi
18871
18872 rm -rf conftest.dSYM
18873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18874       conftest$ac_exeext conftest.$ac_ext
18875 fi
18876
18877 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18878 case $host_cpu in
18879   ppc*|powerpc*)
18880     { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18881 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18882     cat >conftest.$ac_ext <<_ACEOF
18883 /* confdefs.h.  */
18884 _ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h.  */
18888
18889 int
18890 main ()
18891 {
18892 int a = 0; int *p = &a; int r;
18893          __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18894   ;
18895   return 0;
18896 }
18897 _ACEOF
18898 rm -f conftest.$ac_objext
18899 if { (ac_try="$ac_compile"
18900 case "(($ac_try" in
18901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902   *) ac_try_echo=$ac_try;;
18903 esac
18904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18905 $as_echo "$ac_try_echo") >&5
18906   (eval "$ac_compile") 2>conftest.er1
18907   ac_status=$?
18908   grep -v '^ *+' conftest.er1 >conftest.err
18909   rm -f conftest.er1
18910   cat conftest.err >&5
18911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); } && {
18913          test -z "$ac_c_werror_flag" ||
18914          test ! -s conftest.err
18915        } && test -s conftest.$ac_objext; then
18916   pgac_cv_have_ppc_mutex_hint=yes
18917 else
18918   $as_echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18920
18921         pgac_cv_have_ppc_mutex_hint=no
18922 fi
18923
18924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18925     { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18926 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18927     if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18928
18929 cat >>confdefs.h <<\_ACEOF
18930 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18931 _ACEOF
18932
18933     fi
18934   ;;
18935 esac
18936
18937 # Check largefile support.  You might think this is a system service not a
18938 # compiler characteristic, but you'd be wrong.  We must check this before
18939 # probing existence of related functions such as fseeko, since the largefile
18940 # defines can affect what is generated for that.
18941 if test "$PORTNAME" != "win32"; then
18942    # Check whether --enable-largefile was given.
18943 if test "${enable_largefile+set}" = set; then
18944   enableval=$enable_largefile;
18945 fi
18946
18947 if test "$enable_largefile" != no; then
18948
18949   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18950 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18951 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18952   $as_echo_n "(cached) " >&6
18953 else
18954   ac_cv_sys_largefile_CC=no
18955      if test "$GCC" != yes; then
18956        ac_save_CC=$CC
18957        while :; do
18958          # IRIX 6.2 and later do not support large files by default,
18959          # so use the C compiler's -n32 option if that helps.
18960          cat >conftest.$ac_ext <<_ACEOF
18961 /* confdefs.h.  */
18962 _ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h.  */
18966 #include <sys/types.h>
18967  /* Check that off_t can represent 2**63 - 1 correctly.
18968     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18969     since some C++ compilers masquerading as C compilers
18970     incorrectly reject 9223372036854775807.  */
18971 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18972   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18973                        && LARGE_OFF_T % 2147483647 == 1)
18974                       ? 1 : -1];
18975 int
18976 main ()
18977 {
18978
18979   ;
18980   return 0;
18981 }
18982 _ACEOF
18983          rm -f conftest.$ac_objext
18984 if { (ac_try="$ac_compile"
18985 case "(($ac_try" in
18986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987   *) ac_try_echo=$ac_try;;
18988 esac
18989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18990 $as_echo "$ac_try_echo") >&5
18991   (eval "$ac_compile") 2>conftest.er1
18992   ac_status=$?
18993   grep -v '^ *+' conftest.er1 >conftest.err
18994   rm -f conftest.er1
18995   cat conftest.err >&5
18996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); } && {
18998          test -z "$ac_c_werror_flag" ||
18999          test ! -s conftest.err
19000        } && test -s conftest.$ac_objext; then
19001   break
19002 else
19003   $as_echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19005
19006
19007 fi
19008
19009 rm -f core conftest.err conftest.$ac_objext
19010          CC="$CC -n32"
19011          rm -f conftest.$ac_objext
19012 if { (ac_try="$ac_compile"
19013 case "(($ac_try" in
19014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015   *) ac_try_echo=$ac_try;;
19016 esac
19017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19018 $as_echo "$ac_try_echo") >&5
19019   (eval "$ac_compile") 2>conftest.er1
19020   ac_status=$?
19021   grep -v '^ *+' conftest.er1 >conftest.err
19022   rm -f conftest.er1
19023   cat conftest.err >&5
19024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); } && {
19026          test -z "$ac_c_werror_flag" ||
19027          test ! -s conftest.err
19028        } && test -s conftest.$ac_objext; then
19029   ac_cv_sys_largefile_CC=' -n32'; break
19030 else
19031   $as_echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19033
19034
19035 fi
19036
19037 rm -f core conftest.err conftest.$ac_objext
19038          break
19039        done
19040        CC=$ac_save_CC
19041        rm -f conftest.$ac_ext
19042     fi
19043 fi
19044 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19045 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
19046   if test "$ac_cv_sys_largefile_CC" != no; then
19047     CC=$CC$ac_cv_sys_largefile_CC
19048   fi
19049
19050   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19051 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19052 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19053   $as_echo_n "(cached) " >&6
19054 else
19055   while :; do
19056   cat >conftest.$ac_ext <<_ACEOF
19057 /* confdefs.h.  */
19058 _ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h.  */
19062 #include <sys/types.h>
19063  /* Check that off_t can represent 2**63 - 1 correctly.
19064     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19065     since some C++ compilers masquerading as C compilers
19066     incorrectly reject 9223372036854775807.  */
19067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19068   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19069                        && LARGE_OFF_T % 2147483647 == 1)
19070                       ? 1 : -1];
19071 int
19072 main ()
19073 {
19074
19075   ;
19076   return 0;
19077 }
19078 _ACEOF
19079 rm -f conftest.$ac_objext
19080 if { (ac_try="$ac_compile"
19081 case "(($ac_try" in
19082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083   *) ac_try_echo=$ac_try;;
19084 esac
19085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19086 $as_echo "$ac_try_echo") >&5
19087   (eval "$ac_compile") 2>conftest.er1
19088   ac_status=$?
19089   grep -v '^ *+' conftest.er1 >conftest.err
19090   rm -f conftest.er1
19091   cat conftest.err >&5
19092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); } && {
19094          test -z "$ac_c_werror_flag" ||
19095          test ! -s conftest.err
19096        } && test -s conftest.$ac_objext; then
19097   ac_cv_sys_file_offset_bits=no; break
19098 else
19099   $as_echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102
19103 fi
19104
19105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19106   cat >conftest.$ac_ext <<_ACEOF
19107 /* confdefs.h.  */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h.  */
19112 #define _FILE_OFFSET_BITS 64
19113 #include <sys/types.h>
19114  /* Check that off_t can represent 2**63 - 1 correctly.
19115     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19116     since some C++ compilers masquerading as C compilers
19117     incorrectly reject 9223372036854775807.  */
19118 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19119   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19120                        && LARGE_OFF_T % 2147483647 == 1)
19121                       ? 1 : -1];
19122 int
19123 main ()
19124 {
19125
19126   ;
19127   return 0;
19128 }
19129 _ACEOF
19130 rm -f conftest.$ac_objext
19131 if { (ac_try="$ac_compile"
19132 case "(($ac_try" in
19133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134   *) ac_try_echo=$ac_try;;
19135 esac
19136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19137 $as_echo "$ac_try_echo") >&5
19138   (eval "$ac_compile") 2>conftest.er1
19139   ac_status=$?
19140   grep -v '^ *+' conftest.er1 >conftest.err
19141   rm -f conftest.er1
19142   cat conftest.err >&5
19143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); } && {
19145          test -z "$ac_c_werror_flag" ||
19146          test ! -s conftest.err
19147        } && test -s conftest.$ac_objext; then
19148   ac_cv_sys_file_offset_bits=64; break
19149 else
19150   $as_echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19152
19153
19154 fi
19155
19156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19157   ac_cv_sys_file_offset_bits=unknown
19158   break
19159 done
19160 fi
19161 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19162 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19163 case $ac_cv_sys_file_offset_bits in #(
19164   no | unknown) ;;
19165   *)
19166 cat >>confdefs.h <<_ACEOF
19167 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19168 _ACEOF
19169 ;;
19170 esac
19171 rm -rf conftest*
19172   if test $ac_cv_sys_file_offset_bits = unknown; then
19173     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19174 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19175 if test "${ac_cv_sys_large_files+set}" = set; then
19176   $as_echo_n "(cached) " >&6
19177 else
19178   while :; do
19179   cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h.  */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h.  */
19185 #include <sys/types.h>
19186  /* Check that off_t can represent 2**63 - 1 correctly.
19187     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19188     since some C++ compilers masquerading as C compilers
19189     incorrectly reject 9223372036854775807.  */
19190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19191   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19192                        && LARGE_OFF_T % 2147483647 == 1)
19193                       ? 1 : -1];
19194 int
19195 main ()
19196 {
19197
19198   ;
19199   return 0;
19200 }
19201 _ACEOF
19202 rm -f conftest.$ac_objext
19203 if { (ac_try="$ac_compile"
19204 case "(($ac_try" in
19205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206   *) ac_try_echo=$ac_try;;
19207 esac
19208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19209 $as_echo "$ac_try_echo") >&5
19210   (eval "$ac_compile") 2>conftest.er1
19211   ac_status=$?
19212   grep -v '^ *+' conftest.er1 >conftest.err
19213   rm -f conftest.er1
19214   cat conftest.err >&5
19215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); } && {
19217          test -z "$ac_c_werror_flag" ||
19218          test ! -s conftest.err
19219        } && test -s conftest.$ac_objext; then
19220   ac_cv_sys_large_files=no; break
19221 else
19222   $as_echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19224
19225
19226 fi
19227
19228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229   cat >conftest.$ac_ext <<_ACEOF
19230 /* confdefs.h.  */
19231 _ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h.  */
19235 #define _LARGE_FILES 1
19236 #include <sys/types.h>
19237  /* Check that off_t can represent 2**63 - 1 correctly.
19238     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19239     since some C++ compilers masquerading as C compilers
19240     incorrectly reject 9223372036854775807.  */
19241 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19242   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19243                        && LARGE_OFF_T % 2147483647 == 1)
19244                       ? 1 : -1];
19245 int
19246 main ()
19247 {
19248
19249   ;
19250   return 0;
19251 }
19252 _ACEOF
19253 rm -f conftest.$ac_objext
19254 if { (ac_try="$ac_compile"
19255 case "(($ac_try" in
19256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257   *) ac_try_echo=$ac_try;;
19258 esac
19259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19260 $as_echo "$ac_try_echo") >&5
19261   (eval "$ac_compile") 2>conftest.er1
19262   ac_status=$?
19263   grep -v '^ *+' conftest.er1 >conftest.err
19264   rm -f conftest.er1
19265   cat conftest.err >&5
19266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); } && {
19268          test -z "$ac_c_werror_flag" ||
19269          test ! -s conftest.err
19270        } && test -s conftest.$ac_objext; then
19271   ac_cv_sys_large_files=1; break
19272 else
19273   $as_echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19275
19276
19277 fi
19278
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280   ac_cv_sys_large_files=unknown
19281   break
19282 done
19283 fi
19284 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19285 $as_echo "$ac_cv_sys_large_files" >&6; }
19286 case $ac_cv_sys_large_files in #(
19287   no | unknown) ;;
19288   *)
19289 cat >>confdefs.h <<_ACEOF
19290 #define _LARGE_FILES $ac_cv_sys_large_files
19291 _ACEOF
19292 ;;
19293 esac
19294 rm -rf conftest*
19295   fi
19296 fi
19297
19298 fi
19299
19300 # Check for largefile support (must be after AC_SYS_LARGEFILE)
19301 # The cast to long int works around a bug in the HP C Compiler
19302 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19303 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19304 # This bug is HP SR number 8606223364.
19305 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
19306 $as_echo_n "checking size of off_t... " >&6; }
19307 if test "${ac_cv_sizeof_off_t+set}" = set; then
19308   $as_echo_n "(cached) " >&6
19309 else
19310   if test "$cross_compiling" = yes; then
19311   # Depending upon the size, compute the lo and hi bounds.
19312 cat >conftest.$ac_ext <<_ACEOF
19313 /* confdefs.h.  */
19314 _ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h.  */
19318 $ac_includes_default
19319 int
19320 main ()
19321 {
19322 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
19323 test_array [0] = 0
19324
19325   ;
19326   return 0;
19327 }
19328 _ACEOF
19329 rm -f conftest.$ac_objext
19330 if { (ac_try="$ac_compile"
19331 case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19336 $as_echo "$ac_try_echo") >&5
19337   (eval "$ac_compile") 2>conftest.er1
19338   ac_status=$?
19339   grep -v '^ *+' conftest.er1 >conftest.err
19340   rm -f conftest.er1
19341   cat conftest.err >&5
19342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); } && {
19344          test -z "$ac_c_werror_flag" ||
19345          test ! -s conftest.err
19346        } && test -s conftest.$ac_objext; then
19347   ac_lo=0 ac_mid=0
19348   while :; do
19349     cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h.  */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h.  */
19355 $ac_includes_default
19356 int
19357 main ()
19358 {
19359 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19360 test_array [0] = 0
19361
19362   ;
19363   return 0;
19364 }
19365 _ACEOF
19366 rm -f conftest.$ac_objext
19367 if { (ac_try="$ac_compile"
19368 case "(($ac_try" in
19369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370   *) ac_try_echo=$ac_try;;
19371 esac
19372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19373 $as_echo "$ac_try_echo") >&5
19374   (eval "$ac_compile") 2>conftest.er1
19375   ac_status=$?
19376   grep -v '^ *+' conftest.er1 >conftest.err
19377   rm -f conftest.er1
19378   cat conftest.err >&5
19379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); } && {
19381          test -z "$ac_c_werror_flag" ||
19382          test ! -s conftest.err
19383        } && test -s conftest.$ac_objext; then
19384   ac_hi=$ac_mid; break
19385 else
19386   $as_echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19388
19389         ac_lo=`expr $ac_mid + 1`
19390                         if test $ac_lo -le $ac_mid; then
19391                           ac_lo= ac_hi=
19392                           break
19393                         fi
19394                         ac_mid=`expr 2 '*' $ac_mid + 1`
19395 fi
19396
19397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19398   done
19399 else
19400   $as_echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403         cat >conftest.$ac_ext <<_ACEOF
19404 /* confdefs.h.  */
19405 _ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h.  */
19409 $ac_includes_default
19410 int
19411 main ()
19412 {
19413 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
19414 test_array [0] = 0
19415
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext
19421 if { (ac_try="$ac_compile"
19422 case "(($ac_try" in
19423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424   *) ac_try_echo=$ac_try;;
19425 esac
19426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19427 $as_echo "$ac_try_echo") >&5
19428   (eval "$ac_compile") 2>conftest.er1
19429   ac_status=$?
19430   grep -v '^ *+' conftest.er1 >conftest.err
19431   rm -f conftest.er1
19432   cat conftest.err >&5
19433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434   (exit $ac_status); } && {
19435          test -z "$ac_c_werror_flag" ||
19436          test ! -s conftest.err
19437        } && test -s conftest.$ac_objext; then
19438   ac_hi=-1 ac_mid=-1
19439   while :; do
19440     cat >conftest.$ac_ext <<_ACEOF
19441 /* confdefs.h.  */
19442 _ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h.  */
19446 $ac_includes_default
19447 int
19448 main ()
19449 {
19450 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
19451 test_array [0] = 0
19452
19453   ;
19454   return 0;
19455 }
19456 _ACEOF
19457 rm -f conftest.$ac_objext
19458 if { (ac_try="$ac_compile"
19459 case "(($ac_try" in
19460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461   *) ac_try_echo=$ac_try;;
19462 esac
19463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19464 $as_echo "$ac_try_echo") >&5
19465   (eval "$ac_compile") 2>conftest.er1
19466   ac_status=$?
19467   grep -v '^ *+' conftest.er1 >conftest.err
19468   rm -f conftest.er1
19469   cat conftest.err >&5
19470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); } && {
19472          test -z "$ac_c_werror_flag" ||
19473          test ! -s conftest.err
19474        } && test -s conftest.$ac_objext; then
19475   ac_lo=$ac_mid; break
19476 else
19477   $as_echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19479
19480         ac_hi=`expr '(' $ac_mid ')' - 1`
19481                         if test $ac_mid -le $ac_hi; then
19482                           ac_lo= ac_hi=
19483                           break
19484                         fi
19485                         ac_mid=`expr 2 '*' $ac_mid`
19486 fi
19487
19488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489   done
19490 else
19491   $as_echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494         ac_lo= ac_hi=
19495 fi
19496
19497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19498 fi
19499
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19501 # Binary search between lo and hi bounds.
19502 while test "x$ac_lo" != "x$ac_hi"; do
19503   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19504   cat >conftest.$ac_ext <<_ACEOF
19505 /* confdefs.h.  */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h.  */
19510 $ac_includes_default
19511 int
19512 main ()
19513 {
19514 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19515 test_array [0] = 0
19516
19517   ;
19518   return 0;
19519 }
19520 _ACEOF
19521 rm -f conftest.$ac_objext
19522 if { (ac_try="$ac_compile"
19523 case "(($ac_try" in
19524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525   *) ac_try_echo=$ac_try;;
19526 esac
19527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19528 $as_echo "$ac_try_echo") >&5
19529   (eval "$ac_compile") 2>conftest.er1
19530   ac_status=$?
19531   grep -v '^ *+' conftest.er1 >conftest.err
19532   rm -f conftest.er1
19533   cat conftest.err >&5
19534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535   (exit $ac_status); } && {
19536          test -z "$ac_c_werror_flag" ||
19537          test ! -s conftest.err
19538        } && test -s conftest.$ac_objext; then
19539   ac_hi=$ac_mid
19540 else
19541   $as_echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19543
19544         ac_lo=`expr '(' $ac_mid ')' + 1`
19545 fi
19546
19547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19548 done
19549 case $ac_lo in
19550 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19551 '') if test "$ac_cv_type_off_t" = yes; then
19552      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19554 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19555 See \`config.log' for more details." >&5
19556 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19557 See \`config.log' for more details." >&2;}
19558    { (exit 77); exit 77; }; }; }
19559    else
19560      ac_cv_sizeof_off_t=0
19561    fi ;;
19562 esac
19563 else
19564   cat >conftest.$ac_ext <<_ACEOF
19565 /* confdefs.h.  */
19566 _ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h.  */
19570 $ac_includes_default
19571 static long int longval () { return (long int) (sizeof (off_t)); }
19572 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19573 #include <stdio.h>
19574 #include <stdlib.h>
19575 int
19576 main ()
19577 {
19578
19579   FILE *f = fopen ("conftest.val", "w");
19580   if (! f)
19581     return 1;
19582   if (((long int) (sizeof (off_t))) < 0)
19583     {
19584       long int i = longval ();
19585       if (i != ((long int) (sizeof (off_t))))
19586         return 1;
19587       fprintf (f, "%ld", i);
19588     }
19589   else
19590     {
19591       unsigned long int i = ulongval ();
19592       if (i != ((long int) (sizeof (off_t))))
19593         return 1;
19594       fprintf (f, "%lu", i);
19595     }
19596   /* Do not output a trailing newline, as this causes \r\n confusion
19597      on some platforms.  */
19598   return ferror (f) || fclose (f) != 0;
19599
19600   ;
19601   return 0;
19602 }
19603 _ACEOF
19604 rm -f conftest$ac_exeext
19605 if { (ac_try="$ac_link"
19606 case "(($ac_try" in
19607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608   *) ac_try_echo=$ac_try;;
19609 esac
19610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19611 $as_echo "$ac_try_echo") >&5
19612   (eval "$ac_link") 2>&5
19613   ac_status=$?
19614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19616   { (case "(($ac_try" in
19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618   *) ac_try_echo=$ac_try;;
19619 esac
19620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19621 $as_echo "$ac_try_echo") >&5
19622   (eval "$ac_try") 2>&5
19623   ac_status=$?
19624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); }; }; then
19626   ac_cv_sizeof_off_t=`cat conftest.val`
19627 else
19628   $as_echo "$as_me: program exited with status $ac_status" >&5
19629 $as_echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19631
19632 ( exit $ac_status )
19633 if test "$ac_cv_type_off_t" = yes; then
19634      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19636 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19637 See \`config.log' for more details." >&5
19638 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19639 See \`config.log' for more details." >&2;}
19640    { (exit 77); exit 77; }; }; }
19641    else
19642      ac_cv_sizeof_off_t=0
19643    fi
19644 fi
19645 rm -rf conftest.dSYM
19646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19647 fi
19648 rm -f conftest.val
19649 fi
19650 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19651 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19652
19653
19654
19655 cat >>confdefs.h <<_ACEOF
19656 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19657 _ACEOF
19658
19659
19660
19661 # If we don't have largefile support, can't handle segsize >= 2GB.
19662 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19663    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19664 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19665    { (exit 1); exit 1; }; }
19666 fi
19667
19668
19669 ##
19670 ## Functions, global variables
19671 ##
19672
19673 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19674 $as_echo_n "checking for int timezone... " >&6; }
19675 if test "${pgac_cv_var_int_timezone+set}" = set; then
19676   $as_echo_n "(cached) " >&6
19677 else
19678   cat >conftest.$ac_ext <<_ACEOF
19679 /* confdefs.h.  */
19680 _ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h.  */
19684 #include <time.h>
19685 int res;
19686 int
19687 main ()
19688 {
19689 #ifndef __CYGWIN__
19690 res = timezone / 60;
19691 #else
19692 res = _timezone / 60;
19693 #endif
19694   ;
19695   return 0;
19696 }
19697 _ACEOF
19698 rm -f conftest.$ac_objext conftest$ac_exeext
19699 if { (ac_try="$ac_link"
19700 case "(($ac_try" in
19701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702   *) ac_try_echo=$ac_try;;
19703 esac
19704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19705 $as_echo "$ac_try_echo") >&5
19706   (eval "$ac_link") 2>conftest.er1
19707   ac_status=$?
19708   grep -v '^ *+' conftest.er1 >conftest.err
19709   rm -f conftest.er1
19710   cat conftest.err >&5
19711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); } && {
19713          test -z "$ac_c_werror_flag" ||
19714          test ! -s conftest.err
19715        } && test -s conftest$ac_exeext && {
19716          test "$cross_compiling" = yes ||
19717          $as_test_x conftest$ac_exeext
19718        }; then
19719   pgac_cv_var_int_timezone=yes
19720 else
19721   $as_echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19723
19724         pgac_cv_var_int_timezone=no
19725 fi
19726
19727 rm -rf conftest.dSYM
19728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19729       conftest$ac_exeext conftest.$ac_ext
19730 fi
19731 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19732 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19733 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19734
19735 cat >>confdefs.h <<\_ACEOF
19736 #define HAVE_INT_TIMEZONE 1
19737 _ACEOF
19738
19739 fi
19740 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19741 $as_echo_n "checking types of arguments for accept()... " >&6; }
19742  if test "${ac_cv_func_accept_return+set}" = set; then
19743   $as_echo_n "(cached) " >&6
19744 else
19745    if test "${ac_cv_func_accept_arg1+set}" = set; then
19746   $as_echo_n "(cached) " >&6
19747 else
19748     if test "${ac_cv_func_accept_arg2+set}" = set; then
19749   $as_echo_n "(cached) " >&6
19750 else
19751      if test "${ac_cv_func_accept_arg3+set}" = set; then
19752   $as_echo_n "(cached) " >&6
19753 else
19754       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19755       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19756        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19757         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19758          cat >conftest.$ac_ext <<_ACEOF
19759 /* confdefs.h.  */
19760 _ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h.  */
19764 #ifdef HAVE_SYS_TYPES_H
19765 #include <sys/types.h>
19766 #endif
19767 #ifdef HAVE_SYS_SOCKET_H
19768 #include <sys/socket.h>
19769 #endif
19770 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19771 int
19772 main ()
19773 {
19774
19775   ;
19776   return 0;
19777 }
19778 _ACEOF
19779 rm -f conftest.$ac_objext
19780 if { (ac_try="$ac_compile"
19781 case "(($ac_try" in
19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783   *) ac_try_echo=$ac_try;;
19784 esac
19785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19786 $as_echo "$ac_try_echo") >&5
19787   (eval "$ac_compile") 2>conftest.er1
19788   ac_status=$?
19789   grep -v '^ *+' conftest.er1 >conftest.err
19790   rm -f conftest.er1
19791   cat conftest.err >&5
19792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); } && {
19794          test -z "$ac_c_werror_flag" ||
19795          test ! -s conftest.err
19796        } && test -s conftest.$ac_objext; then
19797   ac_not_found=no; break 4
19798 else
19799   $as_echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19801
19802         ac_not_found=yes
19803 fi
19804
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806        done
19807       done
19808      done
19809     done
19810     if test "$ac_not_found" = yes; then
19811       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19812 $as_echo "$as_me: error: could not determine argument types" >&2;}
19813    { (exit 1); exit 1; }; }
19814     fi
19815     if test "$ac_cv_func_accept_arg3" = "void"; then
19816       ac_cv_func_accept_arg3=int
19817     fi
19818
19819 fi
19820
19821 fi
19822
19823 fi
19824
19825 fi
19826  { $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
19827 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19828
19829 cat >>confdefs.h <<_ACEOF
19830 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19831 _ACEOF
19832
19833
19834 cat >>confdefs.h <<_ACEOF
19835 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19836 _ACEOF
19837
19838
19839 cat >>confdefs.h <<_ACEOF
19840 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19841 _ACEOF
19842
19843
19844 cat >>confdefs.h <<_ACEOF
19845 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19846 _ACEOF
19847
19848
19849 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19850 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19851 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19852   $as_echo_n "(cached) " >&6
19853 else
19854   cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h.  */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h.  */
19860 #include <sys/time.h>
19861 int
19862 main ()
19863 {
19864 struct timeval *tp;
19865 struct timezone *tzp;
19866 gettimeofday(tp,tzp);
19867   ;
19868   return 0;
19869 }
19870 _ACEOF
19871 rm -f conftest.$ac_objext
19872 if { (ac_try="$ac_compile"
19873 case "(($ac_try" in
19874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875   *) ac_try_echo=$ac_try;;
19876 esac
19877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19878 $as_echo "$ac_try_echo") >&5
19879   (eval "$ac_compile") 2>conftest.er1
19880   ac_status=$?
19881   grep -v '^ *+' conftest.er1 >conftest.err
19882   rm -f conftest.er1
19883   cat conftest.err >&5
19884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); } && {
19886          test -z "$ac_c_werror_flag" ||
19887          test ! -s conftest.err
19888        } && test -s conftest.$ac_objext; then
19889   pgac_cv_func_gettimeofday_1arg=no
19890 else
19891   $as_echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19893
19894         pgac_cv_func_gettimeofday_1arg=yes
19895 fi
19896
19897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898 fi
19899 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19900 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19901 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19902
19903 cat >>confdefs.h <<\_ACEOF
19904 #define GETTIMEOFDAY_1ARG 1
19905 _ACEOF
19906
19907 fi
19908
19909
19910
19911 # Some versions of libedit contain strlcpy(), setproctitle(), and other
19912 # symbols that that library has no business exposing to the world.  Pending
19913 # acquisition of a clue by those developers, ignore libedit (including its
19914 # possible alias of libreadline) while checking for everything else.
19915 LIBS_including_readline="$LIBS"
19916 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid shm_open sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19941 do
19942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19943 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19944 $as_echo_n "checking for $ac_func... " >&6; }
19945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19946   $as_echo_n "(cached) " >&6
19947 else
19948   cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19956 #define $ac_func innocuous_$ac_func
19957
19958 /* System header to define __stub macros and hopefully few prototypes,
19959     which can conflict with char $ac_func (); below.
19960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19961     <limits.h> exists even on freestanding compilers.  */
19962
19963 #ifdef __STDC__
19964 # include <limits.h>
19965 #else
19966 # include <assert.h>
19967 #endif
19968
19969 #undef $ac_func
19970
19971 /* Override any GCC internal prototype to avoid an error.
19972    Use char because int might match the return type of a GCC
19973    builtin and then its argument prototype would still apply.  */
19974 #ifdef __cplusplus
19975 extern "C"
19976 #endif
19977 char $ac_func ();
19978 /* The GNU C library defines this for functions which it implements
19979     to always fail with ENOSYS.  Some functions are actually named
19980     something starting with __ and the normal name is an alias.  */
19981 #if defined __stub_$ac_func || defined __stub___$ac_func
19982 choke me
19983 #endif
19984
19985 int
19986 main ()
19987 {
19988 return $ac_func ();
19989   ;
19990   return 0;
19991 }
19992 _ACEOF
19993 rm -f conftest.$ac_objext conftest$ac_exeext
19994 if { (ac_try="$ac_link"
19995 case "(($ac_try" in
19996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997   *) ac_try_echo=$ac_try;;
19998 esac
19999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20000 $as_echo "$ac_try_echo") >&5
20001   (eval "$ac_link") 2>conftest.er1
20002   ac_status=$?
20003   grep -v '^ *+' conftest.er1 >conftest.err
20004   rm -f conftest.er1
20005   cat conftest.err >&5
20006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007   (exit $ac_status); } && {
20008          test -z "$ac_c_werror_flag" ||
20009          test ! -s conftest.err
20010        } && test -s conftest$ac_exeext && {
20011          test "$cross_compiling" = yes ||
20012          $as_test_x conftest$ac_exeext
20013        }; then
20014   eval "$as_ac_var=yes"
20015 else
20016   $as_echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20018
20019         eval "$as_ac_var=no"
20020 fi
20021
20022 rm -rf conftest.dSYM
20023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20024       conftest$ac_exeext conftest.$ac_ext
20025 fi
20026 ac_res=`eval 'as_val=${'$as_ac_var'}
20027                  $as_echo "$as_val"'`
20028                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20029 $as_echo "$ac_res" >&6; }
20030 as_val=`eval 'as_val=${'$as_ac_var'}
20031                  $as_echo "$as_val"'`
20032    if test "x$as_val" = x""yes; then
20033   cat >>confdefs.h <<_ACEOF
20034 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20035 _ACEOF
20036
20037 fi
20038 done
20039
20040
20041
20042 for ac_func in fseeko
20043 do
20044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20045 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20046 $as_echo_n "checking for $ac_func... " >&6; }
20047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20048   $as_echo_n "(cached) " >&6
20049 else
20050   cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h.  */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h.  */
20056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20058 #define $ac_func innocuous_$ac_func
20059
20060 /* System header to define __stub macros and hopefully few prototypes,
20061     which can conflict with char $ac_func (); below.
20062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20063     <limits.h> exists even on freestanding compilers.  */
20064
20065 #ifdef __STDC__
20066 # include <limits.h>
20067 #else
20068 # include <assert.h>
20069 #endif
20070
20071 #undef $ac_func
20072
20073 /* Override any GCC internal prototype to avoid an error.
20074    Use char because int might match the return type of a GCC
20075    builtin and then its argument prototype would still apply.  */
20076 #ifdef __cplusplus
20077 extern "C"
20078 #endif
20079 char $ac_func ();
20080 /* The GNU C library defines this for functions which it implements
20081     to always fail with ENOSYS.  Some functions are actually named
20082     something starting with __ and the normal name is an alias.  */
20083 #if defined __stub_$ac_func || defined __stub___$ac_func
20084 choke me
20085 #endif
20086
20087 int
20088 main ()
20089 {
20090 return $ac_func ();
20091   ;
20092   return 0;
20093 }
20094 _ACEOF
20095 rm -f conftest.$ac_objext conftest$ac_exeext
20096 if { (ac_try="$ac_link"
20097 case "(($ac_try" in
20098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099   *) ac_try_echo=$ac_try;;
20100 esac
20101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20102 $as_echo "$ac_try_echo") >&5
20103   (eval "$ac_link") 2>conftest.er1
20104   ac_status=$?
20105   grep -v '^ *+' conftest.er1 >conftest.err
20106   rm -f conftest.er1
20107   cat conftest.err >&5
20108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109   (exit $ac_status); } && {
20110          test -z "$ac_c_werror_flag" ||
20111          test ! -s conftest.err
20112        } && test -s conftest$ac_exeext && {
20113          test "$cross_compiling" = yes ||
20114          $as_test_x conftest$ac_exeext
20115        }; then
20116   eval "$as_ac_var=yes"
20117 else
20118   $as_echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121         eval "$as_ac_var=no"
20122 fi
20123
20124 rm -rf conftest.dSYM
20125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20126       conftest$ac_exeext conftest.$ac_ext
20127 fi
20128 ac_res=`eval 'as_val=${'$as_ac_var'}
20129                  $as_echo "$as_val"'`
20130                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20131 $as_echo "$ac_res" >&6; }
20132 as_val=`eval 'as_val=${'$as_ac_var'}
20133                  $as_echo "$as_val"'`
20134    if test "x$as_val" = x""yes; then
20135   cat >>confdefs.h <<_ACEOF
20136 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20137 _ACEOF
20138
20139 else
20140   case " $LIBOBJS " in
20141   *" $ac_func.$ac_objext "* ) ;;
20142   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20143  ;;
20144 esac
20145
20146 fi
20147 done
20148
20149
20150 case $host_os in
20151         # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
20152         # Mingw uses macros to access Win32 API calls
20153         netbsd*|mingw*)
20154
20155 cat >>confdefs.h <<\_ACEOF
20156 #define HAVE_FSEEKO 1
20157 _ACEOF
20158
20159                 ac_cv_func_fseeko=yes;;
20160         *)
20161                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20162 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20163 if test "${ac_cv_sys_largefile_source+set}" = set; then
20164   $as_echo_n "(cached) " >&6
20165 else
20166   while :; do
20167   cat >conftest.$ac_ext <<_ACEOF
20168 /* confdefs.h.  */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h.  */
20173 #include <sys/types.h> /* for off_t */
20174      #include <stdio.h>
20175 int
20176 main ()
20177 {
20178 int (*fp) (FILE *, off_t, int) = fseeko;
20179      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20180   ;
20181   return 0;
20182 }
20183 _ACEOF
20184 rm -f conftest.$ac_objext conftest$ac_exeext
20185 if { (ac_try="$ac_link"
20186 case "(($ac_try" in
20187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188   *) ac_try_echo=$ac_try;;
20189 esac
20190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20191 $as_echo "$ac_try_echo") >&5
20192   (eval "$ac_link") 2>conftest.er1
20193   ac_status=$?
20194   grep -v '^ *+' conftest.er1 >conftest.err
20195   rm -f conftest.er1
20196   cat conftest.err >&5
20197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); } && {
20199          test -z "$ac_c_werror_flag" ||
20200          test ! -s conftest.err
20201        } && test -s conftest$ac_exeext && {
20202          test "$cross_compiling" = yes ||
20203          $as_test_x conftest$ac_exeext
20204        }; then
20205   ac_cv_sys_largefile_source=no; break
20206 else
20207   $as_echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20209
20210
20211 fi
20212
20213 rm -rf conftest.dSYM
20214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20215       conftest$ac_exeext conftest.$ac_ext
20216   cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h.  */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h.  */
20222 #define _LARGEFILE_SOURCE 1
20223 #include <sys/types.h> /* for off_t */
20224      #include <stdio.h>
20225 int
20226 main ()
20227 {
20228 int (*fp) (FILE *, off_t, int) = fseeko;
20229      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20230   ;
20231   return 0;
20232 }
20233 _ACEOF
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (ac_try="$ac_link"
20236 case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20241 $as_echo "$ac_try_echo") >&5
20242   (eval "$ac_link") 2>conftest.er1
20243   ac_status=$?
20244   grep -v '^ *+' conftest.er1 >conftest.err
20245   rm -f conftest.er1
20246   cat conftest.err >&5
20247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); } && {
20249          test -z "$ac_c_werror_flag" ||
20250          test ! -s conftest.err
20251        } && test -s conftest$ac_exeext && {
20252          test "$cross_compiling" = yes ||
20253          $as_test_x conftest$ac_exeext
20254        }; then
20255   ac_cv_sys_largefile_source=1; break
20256 else
20257   $as_echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20259
20260
20261 fi
20262
20263 rm -rf conftest.dSYM
20264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20265       conftest$ac_exeext conftest.$ac_ext
20266   ac_cv_sys_largefile_source=unknown
20267   break
20268 done
20269 fi
20270 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20271 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20272 case $ac_cv_sys_largefile_source in #(
20273   no | unknown) ;;
20274   *)
20275 cat >>confdefs.h <<_ACEOF
20276 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20277 _ACEOF
20278 ;;
20279 esac
20280 rm -rf conftest*
20281
20282 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20283 # in glibc 2.1.3, but that breaks too many other things.
20284 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20285 if test $ac_cv_sys_largefile_source != unknown; then
20286
20287 cat >>confdefs.h <<\_ACEOF
20288 #define HAVE_FSEEKO 1
20289 _ACEOF
20290
20291 fi
20292 ;;
20293 esac
20294
20295 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
20296 # by calling it, 2009-04-02
20297 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
20298 if test "$PORTNAME" != "solaris"; then
20299
20300 for ac_func in posix_fadvise
20301 do
20302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20303 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20304 $as_echo_n "checking for $ac_func... " >&6; }
20305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20306   $as_echo_n "(cached) " >&6
20307 else
20308   cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h.  */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h.  */
20314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20316 #define $ac_func innocuous_$ac_func
20317
20318 /* System header to define __stub macros and hopefully few prototypes,
20319     which can conflict with char $ac_func (); below.
20320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20321     <limits.h> exists even on freestanding compilers.  */
20322
20323 #ifdef __STDC__
20324 # include <limits.h>
20325 #else
20326 # include <assert.h>
20327 #endif
20328
20329 #undef $ac_func
20330
20331 /* Override any GCC internal prototype to avoid an error.
20332    Use char because int might match the return type of a GCC
20333    builtin and then its argument prototype would still apply.  */
20334 #ifdef __cplusplus
20335 extern "C"
20336 #endif
20337 char $ac_func ();
20338 /* The GNU C library defines this for functions which it implements
20339     to always fail with ENOSYS.  Some functions are actually named
20340     something starting with __ and the normal name is an alias.  */
20341 #if defined __stub_$ac_func || defined __stub___$ac_func
20342 choke me
20343 #endif
20344
20345 int
20346 main ()
20347 {
20348 return $ac_func ();
20349   ;
20350   return 0;
20351 }
20352 _ACEOF
20353 rm -f conftest.$ac_objext conftest$ac_exeext
20354 if { (ac_try="$ac_link"
20355 case "(($ac_try" in
20356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357   *) ac_try_echo=$ac_try;;
20358 esac
20359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20360 $as_echo "$ac_try_echo") >&5
20361   (eval "$ac_link") 2>conftest.er1
20362   ac_status=$?
20363   grep -v '^ *+' conftest.er1 >conftest.err
20364   rm -f conftest.er1
20365   cat conftest.err >&5
20366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); } && {
20368          test -z "$ac_c_werror_flag" ||
20369          test ! -s conftest.err
20370        } && test -s conftest$ac_exeext && {
20371          test "$cross_compiling" = yes ||
20372          $as_test_x conftest$ac_exeext
20373        }; then
20374   eval "$as_ac_var=yes"
20375 else
20376   $as_echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379         eval "$as_ac_var=no"
20380 fi
20381
20382 rm -rf conftest.dSYM
20383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20384       conftest$ac_exeext conftest.$ac_ext
20385 fi
20386 ac_res=`eval 'as_val=${'$as_ac_var'}
20387                  $as_echo "$as_val"'`
20388                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20389 $as_echo "$ac_res" >&6; }
20390 as_val=`eval 'as_val=${'$as_ac_var'}
20391                  $as_echo "$as_val"'`
20392    if test "x$as_val" = x""yes; then
20393   cat >>confdefs.h <<_ACEOF
20394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20395 _ACEOF
20396
20397 fi
20398 done
20399
20400 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
20401 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
20402 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
20403   $as_echo_n "(cached) " >&6
20404 else
20405   cat >conftest.$ac_ext <<_ACEOF
20406 /* confdefs.h.  */
20407 _ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h.  */
20411 #include <fcntl.h>
20412
20413 int
20414 main ()
20415 {
20416 #ifndef posix_fadvise
20417   (void) posix_fadvise;
20418 #endif
20419
20420   ;
20421   return 0;
20422 }
20423 _ACEOF
20424 rm -f conftest.$ac_objext
20425 if { (ac_try="$ac_compile"
20426 case "(($ac_try" in
20427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428   *) ac_try_echo=$ac_try;;
20429 esac
20430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20431 $as_echo "$ac_try_echo") >&5
20432   (eval "$ac_compile") 2>conftest.er1
20433   ac_status=$?
20434   grep -v '^ *+' conftest.er1 >conftest.err
20435   rm -f conftest.er1
20436   cat conftest.err >&5
20437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); } && {
20439          test -z "$ac_c_werror_flag" ||
20440          test ! -s conftest.err
20441        } && test -s conftest.$ac_objext; then
20442   ac_cv_have_decl_posix_fadvise=yes
20443 else
20444   $as_echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20446
20447         ac_cv_have_decl_posix_fadvise=no
20448 fi
20449
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20451 fi
20452 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
20453 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
20454 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
20455
20456 cat >>confdefs.h <<_ACEOF
20457 #define HAVE_DECL_POSIX_FADVISE 1
20458 _ACEOF
20459
20460
20461 else
20462   cat >>confdefs.h <<_ACEOF
20463 #define HAVE_DECL_POSIX_FADVISE 0
20464 _ACEOF
20465
20466
20467 fi
20468
20469
20470 fi
20471
20472 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
20473 $as_echo_n "checking whether fdatasync is declared... " >&6; }
20474 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
20475   $as_echo_n "(cached) " >&6
20476 else
20477   cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483 #include <unistd.h>
20484
20485 int
20486 main ()
20487 {
20488 #ifndef fdatasync
20489   (void) fdatasync;
20490 #endif
20491
20492   ;
20493   return 0;
20494 }
20495 _ACEOF
20496 rm -f conftest.$ac_objext
20497 if { (ac_try="$ac_compile"
20498 case "(($ac_try" in
20499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500   *) ac_try_echo=$ac_try;;
20501 esac
20502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20503 $as_echo "$ac_try_echo") >&5
20504   (eval "$ac_compile") 2>conftest.er1
20505   ac_status=$?
20506   grep -v '^ *+' conftest.er1 >conftest.err
20507   rm -f conftest.er1
20508   cat conftest.err >&5
20509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); } && {
20511          test -z "$ac_c_werror_flag" ||
20512          test ! -s conftest.err
20513        } && test -s conftest.$ac_objext; then
20514   ac_cv_have_decl_fdatasync=yes
20515 else
20516   $as_echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20518
20519         ac_cv_have_decl_fdatasync=no
20520 fi
20521
20522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20523 fi
20524 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
20525 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
20526 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
20527
20528 cat >>confdefs.h <<_ACEOF
20529 #define HAVE_DECL_FDATASYNC 1
20530 _ACEOF
20531
20532
20533 else
20534   cat >>confdefs.h <<_ACEOF
20535 #define HAVE_DECL_FDATASYNC 0
20536 _ACEOF
20537
20538
20539 fi
20540
20541
20542 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
20543 $as_echo_n "checking whether strlcat is declared... " >&6; }
20544 if test "${ac_cv_have_decl_strlcat+set}" = set; then
20545   $as_echo_n "(cached) " >&6
20546 else
20547   cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h.  */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h.  */
20553 $ac_includes_default
20554 int
20555 main ()
20556 {
20557 #ifndef strlcat
20558   (void) strlcat;
20559 #endif
20560
20561   ;
20562   return 0;
20563 }
20564 _ACEOF
20565 rm -f conftest.$ac_objext
20566 if { (ac_try="$ac_compile"
20567 case "(($ac_try" in
20568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569   *) ac_try_echo=$ac_try;;
20570 esac
20571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20572 $as_echo "$ac_try_echo") >&5
20573   (eval "$ac_compile") 2>conftest.er1
20574   ac_status=$?
20575   grep -v '^ *+' conftest.er1 >conftest.err
20576   rm -f conftest.er1
20577   cat conftest.err >&5
20578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); } && {
20580          test -z "$ac_c_werror_flag" ||
20581          test ! -s conftest.err
20582        } && test -s conftest.$ac_objext; then
20583   ac_cv_have_decl_strlcat=yes
20584 else
20585   $as_echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588         ac_cv_have_decl_strlcat=no
20589 fi
20590
20591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592 fi
20593 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20594 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20595 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20596
20597 cat >>confdefs.h <<_ACEOF
20598 #define HAVE_DECL_STRLCAT 1
20599 _ACEOF
20600
20601
20602 else
20603   cat >>confdefs.h <<_ACEOF
20604 #define HAVE_DECL_STRLCAT 0
20605 _ACEOF
20606
20607
20608 fi
20609 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20610 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20611 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20612   $as_echo_n "(cached) " >&6
20613 else
20614   cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h.  */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h.  */
20620 $ac_includes_default
20621 int
20622 main ()
20623 {
20624 #ifndef strlcpy
20625   (void) strlcpy;
20626 #endif
20627
20628   ;
20629   return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest.$ac_objext
20633 if { (ac_try="$ac_compile"
20634 case "(($ac_try" in
20635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636   *) ac_try_echo=$ac_try;;
20637 esac
20638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20639 $as_echo "$ac_try_echo") >&5
20640   (eval "$ac_compile") 2>conftest.er1
20641   ac_status=$?
20642   grep -v '^ *+' conftest.er1 >conftest.err
20643   rm -f conftest.er1
20644   cat conftest.err >&5
20645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); } && {
20647          test -z "$ac_c_werror_flag" ||
20648          test ! -s conftest.err
20649        } && test -s conftest.$ac_objext; then
20650   ac_cv_have_decl_strlcpy=yes
20651 else
20652   $as_echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20654
20655         ac_cv_have_decl_strlcpy=no
20656 fi
20657
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20659 fi
20660 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20661 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20662 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20663
20664 cat >>confdefs.h <<_ACEOF
20665 #define HAVE_DECL_STRLCPY 1
20666 _ACEOF
20667
20668
20669 else
20670   cat >>confdefs.h <<_ACEOF
20671 #define HAVE_DECL_STRLCPY 0
20672 _ACEOF
20673
20674
20675 fi
20676
20677
20678 # This is probably only present on Darwin, but may as well check always
20679 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20680 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20681 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20682   $as_echo_n "(cached) " >&6
20683 else
20684   cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h.  */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h.  */
20690 #include <fcntl.h>
20691
20692 int
20693 main ()
20694 {
20695 #ifndef F_FULLFSYNC
20696   (void) F_FULLFSYNC;
20697 #endif
20698
20699   ;
20700   return 0;
20701 }
20702 _ACEOF
20703 rm -f conftest.$ac_objext
20704 if { (ac_try="$ac_compile"
20705 case "(($ac_try" in
20706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707   *) ac_try_echo=$ac_try;;
20708 esac
20709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20710 $as_echo "$ac_try_echo") >&5
20711   (eval "$ac_compile") 2>conftest.er1
20712   ac_status=$?
20713   grep -v '^ *+' conftest.er1 >conftest.err
20714   rm -f conftest.er1
20715   cat conftest.err >&5
20716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } && {
20718          test -z "$ac_c_werror_flag" ||
20719          test ! -s conftest.err
20720        } && test -s conftest.$ac_objext; then
20721   ac_cv_have_decl_F_FULLFSYNC=yes
20722 else
20723   $as_echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726         ac_cv_have_decl_F_FULLFSYNC=no
20727 fi
20728
20729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20730 fi
20731 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20732 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20733 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20734
20735 cat >>confdefs.h <<_ACEOF
20736 #define HAVE_DECL_F_FULLFSYNC 1
20737 _ACEOF
20738
20739
20740 else
20741   cat >>confdefs.h <<_ACEOF
20742 #define HAVE_DECL_F_FULLFSYNC 0
20743 _ACEOF
20744
20745
20746 fi
20747
20748
20749
20750 HAVE_IPV6=no
20751 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20752 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20753 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20754   $as_echo_n "(cached) " >&6
20755 else
20756   ac_cv_type_struct_sockaddr_in6=no
20757 cat >conftest.$ac_ext <<_ACEOF
20758 /* confdefs.h.  */
20759 _ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h.  */
20763 $ac_includes_default
20764 #include <netinet/in.h>
20765
20766 int
20767 main ()
20768 {
20769 if (sizeof (struct sockaddr_in6))
20770        return 0;
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779   *) ac_try_echo=$ac_try;;
20780 esac
20781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20782 $as_echo "$ac_try_echo") >&5
20783   (eval "$ac_compile") 2>conftest.er1
20784   ac_status=$?
20785   grep -v '^ *+' conftest.er1 >conftest.err
20786   rm -f conftest.er1
20787   cat conftest.err >&5
20788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789   (exit $ac_status); } && {
20790          test -z "$ac_c_werror_flag" ||
20791          test ! -s conftest.err
20792        } && test -s conftest.$ac_objext; then
20793   cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h.  */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h.  */
20799 $ac_includes_default
20800 #include <netinet/in.h>
20801
20802 int
20803 main ()
20804 {
20805 if (sizeof ((struct sockaddr_in6)))
20806           return 0;
20807   ;
20808   return 0;
20809 }
20810 _ACEOF
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815   *) ac_try_echo=$ac_try;;
20816 esac
20817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20818 $as_echo "$ac_try_echo") >&5
20819   (eval "$ac_compile") 2>conftest.er1
20820   ac_status=$?
20821   grep -v '^ *+' conftest.er1 >conftest.err
20822   rm -f conftest.er1
20823   cat conftest.err >&5
20824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); } && {
20826          test -z "$ac_c_werror_flag" ||
20827          test ! -s conftest.err
20828        } && test -s conftest.$ac_objext; then
20829   :
20830 else
20831   $as_echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20833
20834         ac_cv_type_struct_sockaddr_in6=yes
20835 fi
20836
20837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20838 else
20839   $as_echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20841
20842
20843 fi
20844
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 fi
20847 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20848 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20849 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20850
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_IPV6 1
20853 _ACEOF
20854
20855          HAVE_IPV6=yes
20856 fi
20857
20858
20859
20860 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20861 $as_echo_n "checking for PS_STRINGS... " >&6; }
20862 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20863   $as_echo_n "(cached) " >&6
20864 else
20865   cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h.  */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h.  */
20871 #include <machine/vmparam.h>
20872 #include <sys/exec.h>
20873
20874 int
20875 main ()
20876 {
20877 PS_STRINGS->ps_nargvstr = 1;
20878 PS_STRINGS->ps_argvstr = "foo";
20879   ;
20880   return 0;
20881 }
20882 _ACEOF
20883 rm -f conftest.$ac_objext conftest$ac_exeext
20884 if { (ac_try="$ac_link"
20885 case "(($ac_try" in
20886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887   *) ac_try_echo=$ac_try;;
20888 esac
20889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20890 $as_echo "$ac_try_echo") >&5
20891   (eval "$ac_link") 2>conftest.er1
20892   ac_status=$?
20893   grep -v '^ *+' conftest.er1 >conftest.err
20894   rm -f conftest.er1
20895   cat conftest.err >&5
20896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); } && {
20898          test -z "$ac_c_werror_flag" ||
20899          test ! -s conftest.err
20900        } && test -s conftest$ac_exeext && {
20901          test "$cross_compiling" = yes ||
20902          $as_test_x conftest$ac_exeext
20903        }; then
20904   pgac_cv_var_PS_STRINGS=yes
20905 else
20906   $as_echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909         pgac_cv_var_PS_STRINGS=no
20910 fi
20911
20912 rm -rf conftest.dSYM
20913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20914       conftest$ac_exeext conftest.$ac_ext
20915 fi
20916 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20917 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20918 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20919
20920 cat >>confdefs.h <<\_ACEOF
20921 #define HAVE_PS_STRINGS 1
20922 _ACEOF
20923
20924 fi
20925
20926
20927 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20928 # is missing.  Yes, there are machines that have only one.  We may
20929 # also decide to use snprintf.c if snprintf() is present but does not
20930 # have all the features we need --- see below.
20931
20932 if test "$PORTNAME" = "win32"; then
20933   # Win32 gets snprintf.c built unconditionally.
20934   #
20935   # To properly translate all NLS languages strings, we must support the
20936   # *printf() %$ format, which allows *printf() arguments to be selected
20937   # by position in the translated string.
20938   #
20939   # libintl versions < 0.13 use the native *printf() functions, and Win32
20940   # *printf() doesn't understand %$, so we must use our /port versions,
20941   # which do understand %$. libintl versions >= 0.13 include their own
20942   # *printf versions on Win32.  The libintl 0.13 release note text is:
20943   #
20944   #   C format strings with positions, as they arise when a translator
20945   #   needs to reorder a sentence, are now supported on all platforms.
20946   #   On those few platforms (NetBSD and Woe32) for which the native
20947   #   printf()/fprintf()/... functions don't support such format
20948   #   strings, replacements are provided through <libintl.h>.
20949   #
20950   # We could use libintl >= 0.13's *printf() if we were sure that we had
20951   # a litint >= 0.13 at runtime, but seeing that there is no clean way
20952   # to guarantee that, it is best to just use our own, so we are sure to
20953   # get %$ support. In include/port.h we disable the *printf() macros
20954   # that might have been defined by libintl.
20955   #
20956   # We do this unconditionally whether NLS is used or not so we are sure
20957   # that all Win32 libraries and binaries behave the same.
20958   pgac_need_repl_snprintf=yes
20959 else
20960   pgac_need_repl_snprintf=no
20961
20962 for ac_func in snprintf
20963 do
20964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20965 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20966 $as_echo_n "checking for $ac_func... " >&6; }
20967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20968   $as_echo_n "(cached) " >&6
20969 else
20970   cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h.  */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h.  */
20976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20978 #define $ac_func innocuous_$ac_func
20979
20980 /* System header to define __stub macros and hopefully few prototypes,
20981     which can conflict with char $ac_func (); below.
20982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20983     <limits.h> exists even on freestanding compilers.  */
20984
20985 #ifdef __STDC__
20986 # include <limits.h>
20987 #else
20988 # include <assert.h>
20989 #endif
20990
20991 #undef $ac_func
20992
20993 /* Override any GCC internal prototype to avoid an error.
20994    Use char because int might match the return type of a GCC
20995    builtin and then its argument prototype would still apply.  */
20996 #ifdef __cplusplus
20997 extern "C"
20998 #endif
20999 char $ac_func ();
21000 /* The GNU C library defines this for functions which it implements
21001     to always fail with ENOSYS.  Some functions are actually named
21002     something starting with __ and the normal name is an alias.  */
21003 #if defined __stub_$ac_func || defined __stub___$ac_func
21004 choke me
21005 #endif
21006
21007 int
21008 main ()
21009 {
21010 return $ac_func ();
21011   ;
21012   return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (ac_try="$ac_link"
21017 case "(($ac_try" in
21018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019   *) ac_try_echo=$ac_try;;
21020 esac
21021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21022 $as_echo "$ac_try_echo") >&5
21023   (eval "$ac_link") 2>conftest.er1
21024   ac_status=$?
21025   grep -v '^ *+' conftest.er1 >conftest.err
21026   rm -f conftest.er1
21027   cat conftest.err >&5
21028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); } && {
21030          test -z "$ac_c_werror_flag" ||
21031          test ! -s conftest.err
21032        } && test -s conftest$ac_exeext && {
21033          test "$cross_compiling" = yes ||
21034          $as_test_x conftest$ac_exeext
21035        }; then
21036   eval "$as_ac_var=yes"
21037 else
21038   $as_echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21040
21041         eval "$as_ac_var=no"
21042 fi
21043
21044 rm -rf conftest.dSYM
21045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21046       conftest$ac_exeext conftest.$ac_ext
21047 fi
21048 ac_res=`eval 'as_val=${'$as_ac_var'}
21049                  $as_echo "$as_val"'`
21050                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21051 $as_echo "$ac_res" >&6; }
21052 as_val=`eval 'as_val=${'$as_ac_var'}
21053                  $as_echo "$as_val"'`
21054    if test "x$as_val" = x""yes; then
21055   cat >>confdefs.h <<_ACEOF
21056 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21057 _ACEOF
21058
21059 else
21060   pgac_need_repl_snprintf=yes
21061 fi
21062 done
21063
21064
21065 for ac_func in vsnprintf
21066 do
21067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21068 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21069 $as_echo_n "checking for $ac_func... " >&6; }
21070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21071   $as_echo_n "(cached) " >&6
21072 else
21073   cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h.  */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h.  */
21079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21081 #define $ac_func innocuous_$ac_func
21082
21083 /* System header to define __stub macros and hopefully few prototypes,
21084     which can conflict with char $ac_func (); below.
21085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21086     <limits.h> exists even on freestanding compilers.  */
21087
21088 #ifdef __STDC__
21089 # include <limits.h>
21090 #else
21091 # include <assert.h>
21092 #endif
21093
21094 #undef $ac_func
21095
21096 /* Override any GCC internal prototype to avoid an error.
21097    Use char because int might match the return type of a GCC
21098    builtin and then its argument prototype would still apply.  */
21099 #ifdef __cplusplus
21100 extern "C"
21101 #endif
21102 char $ac_func ();
21103 /* The GNU C library defines this for functions which it implements
21104     to always fail with ENOSYS.  Some functions are actually named
21105     something starting with __ and the normal name is an alias.  */
21106 #if defined __stub_$ac_func || defined __stub___$ac_func
21107 choke me
21108 #endif
21109
21110 int
21111 main ()
21112 {
21113 return $ac_func ();
21114   ;
21115   return 0;
21116 }
21117 _ACEOF
21118 rm -f conftest.$ac_objext conftest$ac_exeext
21119 if { (ac_try="$ac_link"
21120 case "(($ac_try" in
21121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122   *) ac_try_echo=$ac_try;;
21123 esac
21124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21125 $as_echo "$ac_try_echo") >&5
21126   (eval "$ac_link") 2>conftest.er1
21127   ac_status=$?
21128   grep -v '^ *+' conftest.er1 >conftest.err
21129   rm -f conftest.er1
21130   cat conftest.err >&5
21131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); } && {
21133          test -z "$ac_c_werror_flag" ||
21134          test ! -s conftest.err
21135        } && test -s conftest$ac_exeext && {
21136          test "$cross_compiling" = yes ||
21137          $as_test_x conftest$ac_exeext
21138        }; then
21139   eval "$as_ac_var=yes"
21140 else
21141   $as_echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21143
21144         eval "$as_ac_var=no"
21145 fi
21146
21147 rm -rf conftest.dSYM
21148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21149       conftest$ac_exeext conftest.$ac_ext
21150 fi
21151 ac_res=`eval 'as_val=${'$as_ac_var'}
21152                  $as_echo "$as_val"'`
21153                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21154 $as_echo "$ac_res" >&6; }
21155 as_val=`eval 'as_val=${'$as_ac_var'}
21156                  $as_echo "$as_val"'`
21157    if test "x$as_val" = x""yes; then
21158   cat >>confdefs.h <<_ACEOF
21159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21160 _ACEOF
21161
21162 else
21163   pgac_need_repl_snprintf=yes
21164 fi
21165 done
21166
21167 fi
21168
21169
21170 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
21171 # include/c.h will provide declarations.  Note this is a separate test
21172 # from whether the functions exist in the C library --- there are
21173 # systems that have the functions but don't bother to declare them :-(
21174
21175 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
21176 $as_echo_n "checking whether snprintf is declared... " >&6; }
21177 if test "${ac_cv_have_decl_snprintf+set}" = set; then
21178   $as_echo_n "(cached) " >&6
21179 else
21180   cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h.  */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h.  */
21186 $ac_includes_default
21187 int
21188 main ()
21189 {
21190 #ifndef snprintf
21191   (void) snprintf;
21192 #endif
21193
21194   ;
21195   return 0;
21196 }
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (ac_try="$ac_compile"
21200 case "(($ac_try" in
21201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202   *) ac_try_echo=$ac_try;;
21203 esac
21204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21205 $as_echo "$ac_try_echo") >&5
21206   (eval "$ac_compile") 2>conftest.er1
21207   ac_status=$?
21208   grep -v '^ *+' conftest.er1 >conftest.err
21209   rm -f conftest.er1
21210   cat conftest.err >&5
21211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212   (exit $ac_status); } && {
21213          test -z "$ac_c_werror_flag" ||
21214          test ! -s conftest.err
21215        } && test -s conftest.$ac_objext; then
21216   ac_cv_have_decl_snprintf=yes
21217 else
21218   $as_echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21220
21221         ac_cv_have_decl_snprintf=no
21222 fi
21223
21224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 fi
21226 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
21227 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
21228 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
21229
21230 cat >>confdefs.h <<_ACEOF
21231 #define HAVE_DECL_SNPRINTF 1
21232 _ACEOF
21233
21234
21235 else
21236   cat >>confdefs.h <<_ACEOF
21237 #define HAVE_DECL_SNPRINTF 0
21238 _ACEOF
21239
21240
21241 fi
21242 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
21243 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
21244 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
21245   $as_echo_n "(cached) " >&6
21246 else
21247   cat >conftest.$ac_ext <<_ACEOF
21248 /* confdefs.h.  */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h.  */
21253 $ac_includes_default
21254 int
21255 main ()
21256 {
21257 #ifndef vsnprintf
21258   (void) vsnprintf;
21259 #endif
21260
21261   ;
21262   return 0;
21263 }
21264 _ACEOF
21265 rm -f conftest.$ac_objext
21266 if { (ac_try="$ac_compile"
21267 case "(($ac_try" in
21268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269   *) ac_try_echo=$ac_try;;
21270 esac
21271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21272 $as_echo "$ac_try_echo") >&5
21273   (eval "$ac_compile") 2>conftest.er1
21274   ac_status=$?
21275   grep -v '^ *+' conftest.er1 >conftest.err
21276   rm -f conftest.er1
21277   cat conftest.err >&5
21278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); } && {
21280          test -z "$ac_c_werror_flag" ||
21281          test ! -s conftest.err
21282        } && test -s conftest.$ac_objext; then
21283   ac_cv_have_decl_vsnprintf=yes
21284 else
21285   $as_echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.$ac_ext >&5
21287
21288         ac_cv_have_decl_vsnprintf=no
21289 fi
21290
21291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21292 fi
21293 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
21294 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
21295 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
21296
21297 cat >>confdefs.h <<_ACEOF
21298 #define HAVE_DECL_VSNPRINTF 1
21299 _ACEOF
21300
21301
21302 else
21303   cat >>confdefs.h <<_ACEOF
21304 #define HAVE_DECL_VSNPRINTF 0
21305 _ACEOF
21306
21307
21308 fi
21309
21310
21311
21312
21313 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
21314 $as_echo_n "checking for isinf... " >&6; }
21315 if test "${ac_cv_func_isinf+set}" = set; then
21316   $as_echo_n "(cached) " >&6
21317 else
21318   cat >conftest.$ac_ext <<_ACEOF
21319 /* confdefs.h.  */
21320 _ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h.  */
21324
21325 #include <math.h>
21326 double glob_double;
21327
21328 int
21329 main ()
21330 {
21331 return isinf(glob_double) ? 0 : 1;
21332   ;
21333   return 0;
21334 }
21335 _ACEOF
21336 rm -f conftest.$ac_objext conftest$ac_exeext
21337 if { (ac_try="$ac_link"
21338 case "(($ac_try" in
21339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21340   *) ac_try_echo=$ac_try;;
21341 esac
21342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21343 $as_echo "$ac_try_echo") >&5
21344   (eval "$ac_link") 2>conftest.er1
21345   ac_status=$?
21346   grep -v '^ *+' conftest.er1 >conftest.err
21347   rm -f conftest.er1
21348   cat conftest.err >&5
21349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); } && {
21351          test -z "$ac_c_werror_flag" ||
21352          test ! -s conftest.err
21353        } && test -s conftest$ac_exeext && {
21354          test "$cross_compiling" = yes ||
21355          $as_test_x conftest$ac_exeext
21356        }; then
21357   ac_cv_func_isinf=yes
21358 else
21359   $as_echo "$as_me: failed program was:" >&5
21360 sed 's/^/| /' conftest.$ac_ext >&5
21361
21362         ac_cv_func_isinf=no
21363 fi
21364
21365 rm -rf conftest.dSYM
21366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21367       conftest$ac_exeext conftest.$ac_ext
21368 fi
21369 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
21370 $as_echo "$ac_cv_func_isinf" >&6; }
21371
21372 if test $ac_cv_func_isinf = yes ; then
21373
21374 cat >>confdefs.h <<\_ACEOF
21375 #define HAVE_ISINF 1
21376 _ACEOF
21377
21378 else
21379   case " $LIBOBJS " in
21380   *" isinf.$ac_objext "* ) ;;
21381   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
21382  ;;
21383 esac
21384
21385   # Look for a way to implement a substitute for isinf()
21386
21387
21388
21389
21390 for ac_func in fpclass fp_class fp_class_d class
21391 do
21392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21393 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21394 $as_echo_n "checking for $ac_func... " >&6; }
21395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21396   $as_echo_n "(cached) " >&6
21397 else
21398   cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h.  */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h.  */
21404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21406 #define $ac_func innocuous_$ac_func
21407
21408 /* System header to define __stub macros and hopefully few prototypes,
21409     which can conflict with char $ac_func (); below.
21410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21411     <limits.h> exists even on freestanding compilers.  */
21412
21413 #ifdef __STDC__
21414 # include <limits.h>
21415 #else
21416 # include <assert.h>
21417 #endif
21418
21419 #undef $ac_func
21420
21421 /* Override any GCC internal prototype to avoid an error.
21422    Use char because int might match the return type of a GCC
21423    builtin and then its argument prototype would still apply.  */
21424 #ifdef __cplusplus
21425 extern "C"
21426 #endif
21427 char $ac_func ();
21428 /* The GNU C library defines this for functions which it implements
21429     to always fail with ENOSYS.  Some functions are actually named
21430     something starting with __ and the normal name is an alias.  */
21431 #if defined __stub_$ac_func || defined __stub___$ac_func
21432 choke me
21433 #endif
21434
21435 int
21436 main ()
21437 {
21438 return $ac_func ();
21439   ;
21440   return 0;
21441 }
21442 _ACEOF
21443 rm -f conftest.$ac_objext conftest$ac_exeext
21444 if { (ac_try="$ac_link"
21445 case "(($ac_try" in
21446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447   *) ac_try_echo=$ac_try;;
21448 esac
21449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21450 $as_echo "$ac_try_echo") >&5
21451   (eval "$ac_link") 2>conftest.er1
21452   ac_status=$?
21453   grep -v '^ *+' conftest.er1 >conftest.err
21454   rm -f conftest.er1
21455   cat conftest.err >&5
21456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); } && {
21458          test -z "$ac_c_werror_flag" ||
21459          test ! -s conftest.err
21460        } && test -s conftest$ac_exeext && {
21461          test "$cross_compiling" = yes ||
21462          $as_test_x conftest$ac_exeext
21463        }; then
21464   eval "$as_ac_var=yes"
21465 else
21466   $as_echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469         eval "$as_ac_var=no"
21470 fi
21471
21472 rm -rf conftest.dSYM
21473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21474       conftest$ac_exeext conftest.$ac_ext
21475 fi
21476 ac_res=`eval 'as_val=${'$as_ac_var'}
21477                  $as_echo "$as_val"'`
21478                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21479 $as_echo "$ac_res" >&6; }
21480 as_val=`eval 'as_val=${'$as_ac_var'}
21481                  $as_echo "$as_val"'`
21482    if test "x$as_val" = x""yes; then
21483   cat >>confdefs.h <<_ACEOF
21484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21485 _ACEOF
21486  break
21487 fi
21488 done
21489
21490 fi
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
21504 do
21505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21506 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21507 $as_echo_n "checking for $ac_func... " >&6; }
21508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21509   $as_echo_n "(cached) " >&6
21510 else
21511   cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h.  */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h.  */
21517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21519 #define $ac_func innocuous_$ac_func
21520
21521 /* System header to define __stub macros and hopefully few prototypes,
21522     which can conflict with char $ac_func (); below.
21523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21524     <limits.h> exists even on freestanding compilers.  */
21525
21526 #ifdef __STDC__
21527 # include <limits.h>
21528 #else
21529 # include <assert.h>
21530 #endif
21531
21532 #undef $ac_func
21533
21534 /* Override any GCC internal prototype to avoid an error.
21535    Use char because int might match the return type of a GCC
21536    builtin and then its argument prototype would still apply.  */
21537 #ifdef __cplusplus
21538 extern "C"
21539 #endif
21540 char $ac_func ();
21541 /* The GNU C library defines this for functions which it implements
21542     to always fail with ENOSYS.  Some functions are actually named
21543     something starting with __ and the normal name is an alias.  */
21544 #if defined __stub_$ac_func || defined __stub___$ac_func
21545 choke me
21546 #endif
21547
21548 int
21549 main ()
21550 {
21551 return $ac_func ();
21552   ;
21553   return 0;
21554 }
21555 _ACEOF
21556 rm -f conftest.$ac_objext conftest$ac_exeext
21557 if { (ac_try="$ac_link"
21558 case "(($ac_try" in
21559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560   *) ac_try_echo=$ac_try;;
21561 esac
21562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21563 $as_echo "$ac_try_echo") >&5
21564   (eval "$ac_link") 2>conftest.er1
21565   ac_status=$?
21566   grep -v '^ *+' conftest.er1 >conftest.err
21567   rm -f conftest.er1
21568   cat conftest.err >&5
21569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); } && {
21571          test -z "$ac_c_werror_flag" ||
21572          test ! -s conftest.err
21573        } && test -s conftest$ac_exeext && {
21574          test "$cross_compiling" = yes ||
21575          $as_test_x conftest$ac_exeext
21576        }; then
21577   eval "$as_ac_var=yes"
21578 else
21579   $as_echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21581
21582         eval "$as_ac_var=no"
21583 fi
21584
21585 rm -rf conftest.dSYM
21586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21587       conftest$ac_exeext conftest.$ac_ext
21588 fi
21589 ac_res=`eval 'as_val=${'$as_ac_var'}
21590                  $as_echo "$as_val"'`
21591                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21592 $as_echo "$ac_res" >&6; }
21593 as_val=`eval 'as_val=${'$as_ac_var'}
21594                  $as_echo "$as_val"'`
21595    if test "x$as_val" = x""yes; then
21596   cat >>confdefs.h <<_ACEOF
21597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21598 _ACEOF
21599
21600 else
21601   case " $LIBOBJS " in
21602   *" $ac_func.$ac_objext "* ) ;;
21603   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21604  ;;
21605 esac
21606
21607 fi
21608 done
21609
21610
21611
21612 case $host_os in
21613
21614         # Windows uses a specialised env handler
21615         # and doesn't need a replacement getpeereid because it doesn't use
21616         # Unix sockets.
21617         mingw*)
21618
21619 cat >>confdefs.h <<\_ACEOF
21620 #define HAVE_UNSETENV 1
21621 _ACEOF
21622
21623
21624 cat >>confdefs.h <<\_ACEOF
21625 #define HAVE_GETPEEREID 1
21626 _ACEOF
21627
21628                 ac_cv_func_unsetenv=yes
21629                 ac_cv_func_getpeereid=yes;;
21630         *)
21631
21632
21633 for ac_func in unsetenv getpeereid
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 else
21731   case " $LIBOBJS " in
21732   *" $ac_func.$ac_objext "* ) ;;
21733   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21734  ;;
21735 esac
21736
21737 fi
21738 done
21739
21740
21741                 ;;
21742 esac
21743
21744 # System's version of getaddrinfo(), if any, may be used only if we found
21745 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21746 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21747 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
21748 # because we want to use our own getaddrinfo.c on Windows anyway.)
21749 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21750
21751 for ac_func in getaddrinfo
21752 do
21753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21754 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21755 $as_echo_n "checking for $ac_func... " >&6; }
21756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21757   $as_echo_n "(cached) " >&6
21758 else
21759   cat >conftest.$ac_ext <<_ACEOF
21760 /* confdefs.h.  */
21761 _ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h.  */
21765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21767 #define $ac_func innocuous_$ac_func
21768
21769 /* System header to define __stub macros and hopefully few prototypes,
21770     which can conflict with char $ac_func (); below.
21771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21772     <limits.h> exists even on freestanding compilers.  */
21773
21774 #ifdef __STDC__
21775 # include <limits.h>
21776 #else
21777 # include <assert.h>
21778 #endif
21779
21780 #undef $ac_func
21781
21782 /* Override any GCC internal prototype to avoid an error.
21783    Use char because int might match the return type of a GCC
21784    builtin and then its argument prototype would still apply.  */
21785 #ifdef __cplusplus
21786 extern "C"
21787 #endif
21788 char $ac_func ();
21789 /* The GNU C library defines this for functions which it implements
21790     to always fail with ENOSYS.  Some functions are actually named
21791     something starting with __ and the normal name is an alias.  */
21792 #if defined __stub_$ac_func || defined __stub___$ac_func
21793 choke me
21794 #endif
21795
21796 int
21797 main ()
21798 {
21799 return $ac_func ();
21800   ;
21801   return 0;
21802 }
21803 _ACEOF
21804 rm -f conftest.$ac_objext conftest$ac_exeext
21805 if { (ac_try="$ac_link"
21806 case "(($ac_try" in
21807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808   *) ac_try_echo=$ac_try;;
21809 esac
21810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21811 $as_echo "$ac_try_echo") >&5
21812   (eval "$ac_link") 2>conftest.er1
21813   ac_status=$?
21814   grep -v '^ *+' conftest.er1 >conftest.err
21815   rm -f conftest.er1
21816   cat conftest.err >&5
21817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); } && {
21819          test -z "$ac_c_werror_flag" ||
21820          test ! -s conftest.err
21821        } && test -s conftest$ac_exeext && {
21822          test "$cross_compiling" = yes ||
21823          $as_test_x conftest$ac_exeext
21824        }; then
21825   eval "$as_ac_var=yes"
21826 else
21827   $as_echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.$ac_ext >&5
21829
21830         eval "$as_ac_var=no"
21831 fi
21832
21833 rm -rf conftest.dSYM
21834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21835       conftest$ac_exeext conftest.$ac_ext
21836 fi
21837 ac_res=`eval 'as_val=${'$as_ac_var'}
21838                  $as_echo "$as_val"'`
21839                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21840 $as_echo "$ac_res" >&6; }
21841 as_val=`eval 'as_val=${'$as_ac_var'}
21842                  $as_echo "$as_val"'`
21843    if test "x$as_val" = x""yes; then
21844   cat >>confdefs.h <<_ACEOF
21845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21846 _ACEOF
21847
21848 else
21849   case " $LIBOBJS " in
21850   *" $ac_func.$ac_objext "* ) ;;
21851   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21852  ;;
21853 esac
21854
21855 fi
21856 done
21857
21858
21859 else
21860   case " $LIBOBJS " in
21861   *" getaddrinfo.$ac_objext "* ) ;;
21862   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21863  ;;
21864 esac
21865
21866 fi
21867
21868 # Similarly, use system's getopt_long() only if system provides struct option.
21869 if test x"$ac_cv_type_struct_option" = xyes ; then
21870
21871 for ac_func in getopt_long
21872 do
21873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21874 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21875 $as_echo_n "checking for $ac_func... " >&6; }
21876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21877   $as_echo_n "(cached) " >&6
21878 else
21879   cat >conftest.$ac_ext <<_ACEOF
21880 /* confdefs.h.  */
21881 _ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h.  */
21885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21887 #define $ac_func innocuous_$ac_func
21888
21889 /* System header to define __stub macros and hopefully few prototypes,
21890     which can conflict with char $ac_func (); below.
21891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21892     <limits.h> exists even on freestanding compilers.  */
21893
21894 #ifdef __STDC__
21895 # include <limits.h>
21896 #else
21897 # include <assert.h>
21898 #endif
21899
21900 #undef $ac_func
21901
21902 /* Override any GCC internal prototype to avoid an error.
21903    Use char because int might match the return type of a GCC
21904    builtin and then its argument prototype would still apply.  */
21905 #ifdef __cplusplus
21906 extern "C"
21907 #endif
21908 char $ac_func ();
21909 /* The GNU C library defines this for functions which it implements
21910     to always fail with ENOSYS.  Some functions are actually named
21911     something starting with __ and the normal name is an alias.  */
21912 #if defined __stub_$ac_func || defined __stub___$ac_func
21913 choke me
21914 #endif
21915
21916 int
21917 main ()
21918 {
21919 return $ac_func ();
21920   ;
21921   return 0;
21922 }
21923 _ACEOF
21924 rm -f conftest.$ac_objext conftest$ac_exeext
21925 if { (ac_try="$ac_link"
21926 case "(($ac_try" in
21927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928   *) ac_try_echo=$ac_try;;
21929 esac
21930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21931 $as_echo "$ac_try_echo") >&5
21932   (eval "$ac_link") 2>conftest.er1
21933   ac_status=$?
21934   grep -v '^ *+' conftest.er1 >conftest.err
21935   rm -f conftest.er1
21936   cat conftest.err >&5
21937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); } && {
21939          test -z "$ac_c_werror_flag" ||
21940          test ! -s conftest.err
21941        } && test -s conftest$ac_exeext && {
21942          test "$cross_compiling" = yes ||
21943          $as_test_x conftest$ac_exeext
21944        }; then
21945   eval "$as_ac_var=yes"
21946 else
21947   $as_echo "$as_me: failed program was:" >&5
21948 sed 's/^/| /' conftest.$ac_ext >&5
21949
21950         eval "$as_ac_var=no"
21951 fi
21952
21953 rm -rf conftest.dSYM
21954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21955       conftest$ac_exeext conftest.$ac_ext
21956 fi
21957 ac_res=`eval 'as_val=${'$as_ac_var'}
21958                  $as_echo "$as_val"'`
21959                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21960 $as_echo "$ac_res" >&6; }
21961 as_val=`eval 'as_val=${'$as_ac_var'}
21962                  $as_echo "$as_val"'`
21963    if test "x$as_val" = x""yes; then
21964   cat >>confdefs.h <<_ACEOF
21965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21966 _ACEOF
21967
21968 else
21969   case " $LIBOBJS " in
21970   *" $ac_func.$ac_objext "* ) ;;
21971   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21972  ;;
21973 esac
21974
21975 fi
21976 done
21977
21978
21979 else
21980   case " $LIBOBJS " in
21981   *" getopt_long.$ac_objext "* ) ;;
21982   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21983  ;;
21984 esac
21985
21986 fi
21987
21988 # Solaris' getopt() doesn't do what we want for long options, so always use
21989 # our version on that platform.
21990 if test "$PORTNAME" = "solaris"; then
21991   case " $LIBOBJS " in
21992   *" getopt.$ac_objext "* ) ;;
21993   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21994  ;;
21995 esac
21996
21997 fi
21998
21999 # mingw has adopted a GNU-centric interpretation of optind/optreset,
22000 # so always use our version on Windows.
22001 if test "$PORTNAME" = "win32"; then
22002   case " $LIBOBJS " in
22003   *" getopt.$ac_objext "* ) ;;
22004   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
22005  ;;
22006 esac
22007
22008   case " $LIBOBJS " in
22009   *" getopt_long.$ac_objext "* ) ;;
22010   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
22011  ;;
22012 esac
22013
22014 fi
22015
22016 # Win32 support
22017 if test "$PORTNAME" = "win32"; then
22018
22019 for ac_func in gettimeofday
22020 do
22021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22022 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22023 $as_echo_n "checking for $ac_func... " >&6; }
22024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22025   $as_echo_n "(cached) " >&6
22026 else
22027   cat >conftest.$ac_ext <<_ACEOF
22028 /* confdefs.h.  */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h.  */
22033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22035 #define $ac_func innocuous_$ac_func
22036
22037 /* System header to define __stub macros and hopefully few prototypes,
22038     which can conflict with char $ac_func (); below.
22039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22040     <limits.h> exists even on freestanding compilers.  */
22041
22042 #ifdef __STDC__
22043 # include <limits.h>
22044 #else
22045 # include <assert.h>
22046 #endif
22047
22048 #undef $ac_func
22049
22050 /* Override any GCC internal prototype to avoid an error.
22051    Use char because int might match the return type of a GCC
22052    builtin and then its argument prototype would still apply.  */
22053 #ifdef __cplusplus
22054 extern "C"
22055 #endif
22056 char $ac_func ();
22057 /* The GNU C library defines this for functions which it implements
22058     to always fail with ENOSYS.  Some functions are actually named
22059     something starting with __ and the normal name is an alias.  */
22060 #if defined __stub_$ac_func || defined __stub___$ac_func
22061 choke me
22062 #endif
22063
22064 int
22065 main ()
22066 {
22067 return $ac_func ();
22068   ;
22069   return 0;
22070 }
22071 _ACEOF
22072 rm -f conftest.$ac_objext conftest$ac_exeext
22073 if { (ac_try="$ac_link"
22074 case "(($ac_try" in
22075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076   *) ac_try_echo=$ac_try;;
22077 esac
22078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22079 $as_echo "$ac_try_echo") >&5
22080   (eval "$ac_link") 2>conftest.er1
22081   ac_status=$?
22082   grep -v '^ *+' conftest.er1 >conftest.err
22083   rm -f conftest.er1
22084   cat conftest.err >&5
22085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); } && {
22087          test -z "$ac_c_werror_flag" ||
22088          test ! -s conftest.err
22089        } && test -s conftest$ac_exeext && {
22090          test "$cross_compiling" = yes ||
22091          $as_test_x conftest$ac_exeext
22092        }; then
22093   eval "$as_ac_var=yes"
22094 else
22095   $as_echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22097
22098         eval "$as_ac_var=no"
22099 fi
22100
22101 rm -rf conftest.dSYM
22102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22103       conftest$ac_exeext conftest.$ac_ext
22104 fi
22105 ac_res=`eval 'as_val=${'$as_ac_var'}
22106                  $as_echo "$as_val"'`
22107                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22108 $as_echo "$ac_res" >&6; }
22109 as_val=`eval 'as_val=${'$as_ac_var'}
22110                  $as_echo "$as_val"'`
22111    if test "x$as_val" = x""yes; then
22112   cat >>confdefs.h <<_ACEOF
22113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22114 _ACEOF
22115
22116 else
22117   case " $LIBOBJS " in
22118   *" $ac_func.$ac_objext "* ) ;;
22119   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22120  ;;
22121 esac
22122
22123 fi
22124 done
22125
22126
22127   case " $LIBOBJS " in
22128   *" kill.$ac_objext "* ) ;;
22129   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
22130  ;;
22131 esac
22132
22133   case " $LIBOBJS " in
22134   *" open.$ac_objext "* ) ;;
22135   *) LIBOBJS="$LIBOBJS open.$ac_objext"
22136  ;;
22137 esac
22138
22139   case " $LIBOBJS " in
22140   *" win32env.$ac_objext "* ) ;;
22141   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
22142  ;;
22143 esac
22144
22145   case " $LIBOBJS " in
22146   *" win32error.$ac_objext "* ) ;;
22147   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
22148  ;;
22149 esac
22150
22151   case " $LIBOBJS " in
22152   *" win32setlocale.$ac_objext "* ) ;;
22153   *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
22154  ;;
22155 esac
22156
22157
22158 cat >>confdefs.h <<\_ACEOF
22159 #define HAVE_SYMLINK 1
22160 _ACEOF
22161
22162   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
22163 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
22164 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
22165   $as_echo_n "(cached) " >&6
22166 else
22167   ac_cv_type_MINIDUMP_TYPE=no
22168 cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h.  */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h.  */
22174
22175 #define WIN32_LEAN_AND_MEAN
22176 #include <windows.h>
22177 #include <string.h>
22178 #include <dbghelp.h>
22179
22180 int
22181 main ()
22182 {
22183 if (sizeof (MINIDUMP_TYPE))
22184        return 0;
22185   ;
22186   return 0;
22187 }
22188 _ACEOF
22189 rm -f conftest.$ac_objext
22190 if { (ac_try="$ac_compile"
22191 case "(($ac_try" in
22192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193   *) ac_try_echo=$ac_try;;
22194 esac
22195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22196 $as_echo "$ac_try_echo") >&5
22197   (eval "$ac_compile") 2>conftest.er1
22198   ac_status=$?
22199   grep -v '^ *+' conftest.er1 >conftest.err
22200   rm -f conftest.er1
22201   cat conftest.err >&5
22202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203   (exit $ac_status); } && {
22204          test -z "$ac_c_werror_flag" ||
22205          test ! -s conftest.err
22206        } && test -s conftest.$ac_objext; then
22207   cat >conftest.$ac_ext <<_ACEOF
22208 /* confdefs.h.  */
22209 _ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h.  */
22213
22214 #define WIN32_LEAN_AND_MEAN
22215 #include <windows.h>
22216 #include <string.h>
22217 #include <dbghelp.h>
22218
22219 int
22220 main ()
22221 {
22222 if (sizeof ((MINIDUMP_TYPE)))
22223           return 0;
22224   ;
22225   return 0;
22226 }
22227 _ACEOF
22228 rm -f conftest.$ac_objext
22229 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
22246   :
22247 else
22248   $as_echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251         ac_cv_type_MINIDUMP_TYPE=yes
22252 fi
22253
22254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255 else
22256   $as_echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259
22260 fi
22261
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 fi
22264 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
22265 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
22266 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
22267
22268 cat >>confdefs.h <<_ACEOF
22269 #define HAVE_MINIDUMP_TYPE 1
22270 _ACEOF
22271
22272 pgac_minidump_type=yes
22273 else
22274   pgac_minidump_type=no
22275 fi
22276
22277 fi
22278 if test x"$pgac_minidump_type" = x"yes" ; then
22279   have_win32_dbghelp=yes
22280
22281 else
22282   have_win32_dbghelp=no
22283
22284 fi
22285
22286 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
22287 $as_echo_n "checking for sigsetjmp... " >&6; }
22288 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
22289   $as_echo_n "(cached) " >&6
22290 else
22291   cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h.  */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h.  */
22297 #include <setjmp.h>
22298 int
22299 main ()
22300 {
22301 sigjmp_buf x; sigsetjmp(x, 1);
22302   ;
22303   return 0;
22304 }
22305 _ACEOF
22306 rm -f conftest.$ac_objext conftest$ac_exeext
22307 if { (ac_try="$ac_link"
22308 case "(($ac_try" in
22309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310   *) ac_try_echo=$ac_try;;
22311 esac
22312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22313 $as_echo "$ac_try_echo") >&5
22314   (eval "$ac_link") 2>conftest.er1
22315   ac_status=$?
22316   grep -v '^ *+' conftest.er1 >conftest.err
22317   rm -f conftest.er1
22318   cat conftest.err >&5
22319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); } && {
22321          test -z "$ac_c_werror_flag" ||
22322          test ! -s conftest.err
22323        } && test -s conftest$ac_exeext && {
22324          test "$cross_compiling" = yes ||
22325          $as_test_x conftest$ac_exeext
22326        }; then
22327   pgac_cv_func_sigsetjmp=yes
22328 else
22329   $as_echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22331
22332         pgac_cv_func_sigsetjmp=no
22333 fi
22334
22335 rm -rf conftest.dSYM
22336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22337       conftest$ac_exeext conftest.$ac_ext
22338 fi
22339 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
22340 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
22341 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
22342
22343 cat >>confdefs.h <<\_ACEOF
22344 #define HAVE_SIGSETJMP 1
22345 _ACEOF
22346
22347 fi
22348
22349 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22350 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
22351 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22352   $as_echo_n "(cached) " >&6
22353 else
22354   cat >conftest.$ac_ext <<_ACEOF
22355 /* confdefs.h.  */
22356 _ACEOF
22357 cat confdefs.h >>conftest.$ac_ext
22358 cat >>conftest.$ac_ext <<_ACEOF
22359 /* end confdefs.h.  */
22360 #include <signal.h>
22361 /* NetBSD declares sys_siglist in unistd.h.  */
22362 #ifdef HAVE_UNISTD_H
22363 # include <unistd.h>
22364 #endif
22365
22366
22367 int
22368 main ()
22369 {
22370 #ifndef sys_siglist
22371   (void) sys_siglist;
22372 #endif
22373
22374   ;
22375   return 0;
22376 }
22377 _ACEOF
22378 rm -f conftest.$ac_objext
22379 if { (ac_try="$ac_compile"
22380 case "(($ac_try" in
22381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382   *) ac_try_echo=$ac_try;;
22383 esac
22384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22385 $as_echo "$ac_try_echo") >&5
22386   (eval "$ac_compile") 2>conftest.er1
22387   ac_status=$?
22388   grep -v '^ *+' conftest.er1 >conftest.err
22389   rm -f conftest.er1
22390   cat conftest.err >&5
22391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392   (exit $ac_status); } && {
22393          test -z "$ac_c_werror_flag" ||
22394          test ! -s conftest.err
22395        } && test -s conftest.$ac_objext; then
22396   ac_cv_have_decl_sys_siglist=yes
22397 else
22398   $as_echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22400
22401         ac_cv_have_decl_sys_siglist=no
22402 fi
22403
22404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22405 fi
22406 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22407 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22408 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22409
22410 cat >>confdefs.h <<_ACEOF
22411 #define HAVE_DECL_SYS_SIGLIST 1
22412 _ACEOF
22413
22414
22415 else
22416   cat >>confdefs.h <<_ACEOF
22417 #define HAVE_DECL_SYS_SIGLIST 0
22418 _ACEOF
22419
22420
22421 fi
22422
22423
22424
22425
22426 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22427 $as_echo_n "checking for syslog... " >&6; }
22428 if test "${ac_cv_func_syslog+set}" = set; then
22429   $as_echo_n "(cached) " >&6
22430 else
22431   cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h.  */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h.  */
22437 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22439 #define syslog innocuous_syslog
22440
22441 /* System header to define __stub macros and hopefully few prototypes,
22442     which can conflict with char syslog (); below.
22443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22444     <limits.h> exists even on freestanding compilers.  */
22445
22446 #ifdef __STDC__
22447 # include <limits.h>
22448 #else
22449 # include <assert.h>
22450 #endif
22451
22452 #undef syslog
22453
22454 /* Override any GCC internal prototype to avoid an error.
22455    Use char because int might match the return type of a GCC
22456    builtin and then its argument prototype would still apply.  */
22457 #ifdef __cplusplus
22458 extern "C"
22459 #endif
22460 char syslog ();
22461 /* The GNU C library defines this for functions which it implements
22462     to always fail with ENOSYS.  Some functions are actually named
22463     something starting with __ and the normal name is an alias.  */
22464 #if defined __stub_syslog || defined __stub___syslog
22465 choke me
22466 #endif
22467
22468 int
22469 main ()
22470 {
22471 return syslog ();
22472   ;
22473   return 0;
22474 }
22475 _ACEOF
22476 rm -f conftest.$ac_objext conftest$ac_exeext
22477 if { (ac_try="$ac_link"
22478 case "(($ac_try" in
22479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480   *) ac_try_echo=$ac_try;;
22481 esac
22482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22483 $as_echo "$ac_try_echo") >&5
22484   (eval "$ac_link") 2>conftest.er1
22485   ac_status=$?
22486   grep -v '^ *+' conftest.er1 >conftest.err
22487   rm -f conftest.er1
22488   cat conftest.err >&5
22489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490   (exit $ac_status); } && {
22491          test -z "$ac_c_werror_flag" ||
22492          test ! -s conftest.err
22493        } && test -s conftest$ac_exeext && {
22494          test "$cross_compiling" = yes ||
22495          $as_test_x conftest$ac_exeext
22496        }; then
22497   ac_cv_func_syslog=yes
22498 else
22499   $as_echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22501
22502         ac_cv_func_syslog=no
22503 fi
22504
22505 rm -rf conftest.dSYM
22506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22507       conftest$ac_exeext conftest.$ac_ext
22508 fi
22509 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22510 $as_echo "$ac_cv_func_syslog" >&6; }
22511 if test "x$ac_cv_func_syslog" = x""yes; then
22512   if test "${ac_cv_header_syslog_h+set}" = set; then
22513   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22514 $as_echo_n "checking for syslog.h... " >&6; }
22515 if test "${ac_cv_header_syslog_h+set}" = set; then
22516   $as_echo_n "(cached) " >&6
22517 fi
22518 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22519 $as_echo "$ac_cv_header_syslog_h" >&6; }
22520 else
22521   # Is the header compilable?
22522 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22523 $as_echo_n "checking syslog.h usability... " >&6; }
22524 cat >conftest.$ac_ext <<_ACEOF
22525 /* confdefs.h.  */
22526 _ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h.  */
22530 $ac_includes_default
22531 #include <syslog.h>
22532 _ACEOF
22533 rm -f conftest.$ac_objext
22534 if { (ac_try="$ac_compile"
22535 case "(($ac_try" in
22536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537   *) ac_try_echo=$ac_try;;
22538 esac
22539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22540 $as_echo "$ac_try_echo") >&5
22541   (eval "$ac_compile") 2>conftest.er1
22542   ac_status=$?
22543   grep -v '^ *+' conftest.er1 >conftest.err
22544   rm -f conftest.er1
22545   cat conftest.err >&5
22546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547   (exit $ac_status); } && {
22548          test -z "$ac_c_werror_flag" ||
22549          test ! -s conftest.err
22550        } && test -s conftest.$ac_objext; then
22551   ac_header_compiler=yes
22552 else
22553   $as_echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22555
22556         ac_header_compiler=no
22557 fi
22558
22559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22560 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22561 $as_echo "$ac_header_compiler" >&6; }
22562
22563 # Is the header present?
22564 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22565 $as_echo_n "checking syslog.h presence... " >&6; }
22566 cat >conftest.$ac_ext <<_ACEOF
22567 /* confdefs.h.  */
22568 _ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h.  */
22572 #include <syslog.h>
22573 _ACEOF
22574 if { (ac_try="$ac_cpp conftest.$ac_ext"
22575 case "(($ac_try" in
22576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577   *) ac_try_echo=$ac_try;;
22578 esac
22579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22580 $as_echo "$ac_try_echo") >&5
22581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22582   ac_status=$?
22583   grep -v '^ *+' conftest.er1 >conftest.err
22584   rm -f conftest.er1
22585   cat conftest.err >&5
22586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587   (exit $ac_status); } >/dev/null && {
22588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22589          test ! -s conftest.err
22590        }; then
22591   ac_header_preproc=yes
22592 else
22593   $as_echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22595
22596   ac_header_preproc=no
22597 fi
22598
22599 rm -f conftest.err conftest.$ac_ext
22600 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22601 $as_echo "$ac_header_preproc" >&6; }
22602
22603 # So?  What about this header?
22604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22605   yes:no: )
22606     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22607 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22608     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22609 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22610     ac_header_preproc=yes
22611     ;;
22612   no:yes:* )
22613     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22614 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22615     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
22616 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
22617     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22618 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22619     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
22620 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22621     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22622 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22623     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22624 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22625     ( cat <<\_ASBOX
22626 ## ---------------------------------------- ##
22627 ## Report this to pgsql-bugs@postgresql.org ##
22628 ## ---------------------------------------- ##
22629 _ASBOX
22630      ) | sed "s/^/$as_me: WARNING:     /" >&2
22631     ;;
22632 esac
22633 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22634 $as_echo_n "checking for syslog.h... " >&6; }
22635 if test "${ac_cv_header_syslog_h+set}" = set; then
22636   $as_echo_n "(cached) " >&6
22637 else
22638   ac_cv_header_syslog_h=$ac_header_preproc
22639 fi
22640 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22641 $as_echo "$ac_cv_header_syslog_h" >&6; }
22642
22643 fi
22644 if test "x$ac_cv_header_syslog_h" = x""yes; then
22645
22646 cat >>confdefs.h <<\_ACEOF
22647 #define HAVE_SYSLOG 1
22648 _ACEOF
22649
22650 fi
22651
22652
22653 fi
22654
22655
22656 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22657 $as_echo_n "checking for opterr... " >&6; }
22658 if test "${pgac_cv_var_int_opterr+set}" = set; then
22659   $as_echo_n "(cached) " >&6
22660 else
22661   cat >conftest.$ac_ext <<_ACEOF
22662 /* confdefs.h.  */
22663 _ACEOF
22664 cat confdefs.h >>conftest.$ac_ext
22665 cat >>conftest.$ac_ext <<_ACEOF
22666 /* end confdefs.h.  */
22667 #include <unistd.h>
22668 int
22669 main ()
22670 {
22671 extern int opterr; opterr = 1;
22672   ;
22673   return 0;
22674 }
22675 _ACEOF
22676 rm -f conftest.$ac_objext conftest$ac_exeext
22677 if { (ac_try="$ac_link"
22678 case "(($ac_try" in
22679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680   *) ac_try_echo=$ac_try;;
22681 esac
22682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22683 $as_echo "$ac_try_echo") >&5
22684   (eval "$ac_link") 2>conftest.er1
22685   ac_status=$?
22686   grep -v '^ *+' conftest.er1 >conftest.err
22687   rm -f conftest.er1
22688   cat conftest.err >&5
22689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690   (exit $ac_status); } && {
22691          test -z "$ac_c_werror_flag" ||
22692          test ! -s conftest.err
22693        } && test -s conftest$ac_exeext && {
22694          test "$cross_compiling" = yes ||
22695          $as_test_x conftest$ac_exeext
22696        }; then
22697   pgac_cv_var_int_opterr=yes
22698 else
22699   $as_echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22701
22702         pgac_cv_var_int_opterr=no
22703 fi
22704
22705 rm -rf conftest.dSYM
22706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22707       conftest$ac_exeext conftest.$ac_ext
22708 fi
22709 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22710 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22711 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22712
22713 cat >>confdefs.h <<\_ACEOF
22714 #define HAVE_INT_OPTERR 1
22715 _ACEOF
22716
22717 fi
22718
22719 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22720 $as_echo_n "checking for optreset... " >&6; }
22721 if test "${pgac_cv_var_int_optreset+set}" = set; then
22722   $as_echo_n "(cached) " >&6
22723 else
22724   cat >conftest.$ac_ext <<_ACEOF
22725 /* confdefs.h.  */
22726 _ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h.  */
22730 #include <unistd.h>
22731 int
22732 main ()
22733 {
22734 extern int optreset; optreset = 1;
22735   ;
22736   return 0;
22737 }
22738 _ACEOF
22739 rm -f conftest.$ac_objext conftest$ac_exeext
22740 if { (ac_try="$ac_link"
22741 case "(($ac_try" in
22742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743   *) ac_try_echo=$ac_try;;
22744 esac
22745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22746 $as_echo "$ac_try_echo") >&5
22747   (eval "$ac_link") 2>conftest.er1
22748   ac_status=$?
22749   grep -v '^ *+' conftest.er1 >conftest.err
22750   rm -f conftest.er1
22751   cat conftest.err >&5
22752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); } && {
22754          test -z "$ac_c_werror_flag" ||
22755          test ! -s conftest.err
22756        } && test -s conftest$ac_exeext && {
22757          test "$cross_compiling" = yes ||
22758          $as_test_x conftest$ac_exeext
22759        }; then
22760   pgac_cv_var_int_optreset=yes
22761 else
22762   $as_echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22764
22765         pgac_cv_var_int_optreset=no
22766 fi
22767
22768 rm -rf conftest.dSYM
22769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22770       conftest$ac_exeext conftest.$ac_ext
22771 fi
22772 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22773 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22774 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22775
22776 cat >>confdefs.h <<\_ACEOF
22777 #define HAVE_INT_OPTRESET 1
22778 _ACEOF
22779
22780 fi
22781
22782
22783
22784 for ac_func in strtoll strtoq
22785 do
22786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22787 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22788 $as_echo_n "checking for $ac_func... " >&6; }
22789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22790   $as_echo_n "(cached) " >&6
22791 else
22792   cat >conftest.$ac_ext <<_ACEOF
22793 /* confdefs.h.  */
22794 _ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h.  */
22798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22800 #define $ac_func innocuous_$ac_func
22801
22802 /* System header to define __stub macros and hopefully few prototypes,
22803     which can conflict with char $ac_func (); below.
22804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22805     <limits.h> exists even on freestanding compilers.  */
22806
22807 #ifdef __STDC__
22808 # include <limits.h>
22809 #else
22810 # include <assert.h>
22811 #endif
22812
22813 #undef $ac_func
22814
22815 /* Override any GCC internal prototype to avoid an error.
22816    Use char because int might match the return type of a GCC
22817    builtin and then its argument prototype would still apply.  */
22818 #ifdef __cplusplus
22819 extern "C"
22820 #endif
22821 char $ac_func ();
22822 /* The GNU C library defines this for functions which it implements
22823     to always fail with ENOSYS.  Some functions are actually named
22824     something starting with __ and the normal name is an alias.  */
22825 #if defined __stub_$ac_func || defined __stub___$ac_func
22826 choke me
22827 #endif
22828
22829 int
22830 main ()
22831 {
22832 return $ac_func ();
22833   ;
22834   return 0;
22835 }
22836 _ACEOF
22837 rm -f conftest.$ac_objext conftest$ac_exeext
22838 if { (ac_try="$ac_link"
22839 case "(($ac_try" in
22840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841   *) ac_try_echo=$ac_try;;
22842 esac
22843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22844 $as_echo "$ac_try_echo") >&5
22845   (eval "$ac_link") 2>conftest.er1
22846   ac_status=$?
22847   grep -v '^ *+' conftest.er1 >conftest.err
22848   rm -f conftest.er1
22849   cat conftest.err >&5
22850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851   (exit $ac_status); } && {
22852          test -z "$ac_c_werror_flag" ||
22853          test ! -s conftest.err
22854        } && test -s conftest$ac_exeext && {
22855          test "$cross_compiling" = yes ||
22856          $as_test_x conftest$ac_exeext
22857        }; then
22858   eval "$as_ac_var=yes"
22859 else
22860   $as_echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22862
22863         eval "$as_ac_var=no"
22864 fi
22865
22866 rm -rf conftest.dSYM
22867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22868       conftest$ac_exeext conftest.$ac_ext
22869 fi
22870 ac_res=`eval 'as_val=${'$as_ac_var'}
22871                  $as_echo "$as_val"'`
22872                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22873 $as_echo "$ac_res" >&6; }
22874 as_val=`eval 'as_val=${'$as_ac_var'}
22875                  $as_echo "$as_val"'`
22876    if test "x$as_val" = x""yes; then
22877   cat >>confdefs.h <<_ACEOF
22878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22879 _ACEOF
22880  break
22881 fi
22882 done
22883
22884
22885
22886 for ac_func in strtoull strtouq
22887 do
22888 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22889 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22890 $as_echo_n "checking for $ac_func... " >&6; }
22891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22892   $as_echo_n "(cached) " >&6
22893 else
22894   cat >conftest.$ac_ext <<_ACEOF
22895 /* confdefs.h.  */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h.  */
22900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22902 #define $ac_func innocuous_$ac_func
22903
22904 /* System header to define __stub macros and hopefully few prototypes,
22905     which can conflict with char $ac_func (); below.
22906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22907     <limits.h> exists even on freestanding compilers.  */
22908
22909 #ifdef __STDC__
22910 # include <limits.h>
22911 #else
22912 # include <assert.h>
22913 #endif
22914
22915 #undef $ac_func
22916
22917 /* Override any GCC internal prototype to avoid an error.
22918    Use char because int might match the return type of a GCC
22919    builtin and then its argument prototype would still apply.  */
22920 #ifdef __cplusplus
22921 extern "C"
22922 #endif
22923 char $ac_func ();
22924 /* The GNU C library defines this for functions which it implements
22925     to always fail with ENOSYS.  Some functions are actually named
22926     something starting with __ and the normal name is an alias.  */
22927 #if defined __stub_$ac_func || defined __stub___$ac_func
22928 choke me
22929 #endif
22930
22931 int
22932 main ()
22933 {
22934 return $ac_func ();
22935   ;
22936   return 0;
22937 }
22938 _ACEOF
22939 rm -f conftest.$ac_objext conftest$ac_exeext
22940 if { (ac_try="$ac_link"
22941 case "(($ac_try" in
22942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943   *) ac_try_echo=$ac_try;;
22944 esac
22945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22946 $as_echo "$ac_try_echo") >&5
22947   (eval "$ac_link") 2>conftest.er1
22948   ac_status=$?
22949   grep -v '^ *+' conftest.er1 >conftest.err
22950   rm -f conftest.er1
22951   cat conftest.err >&5
22952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953   (exit $ac_status); } && {
22954          test -z "$ac_c_werror_flag" ||
22955          test ! -s conftest.err
22956        } && test -s conftest$ac_exeext && {
22957          test "$cross_compiling" = yes ||
22958          $as_test_x conftest$ac_exeext
22959        }; then
22960   eval "$as_ac_var=yes"
22961 else
22962   $as_echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22964
22965         eval "$as_ac_var=no"
22966 fi
22967
22968 rm -rf conftest.dSYM
22969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22970       conftest$ac_exeext conftest.$ac_ext
22971 fi
22972 ac_res=`eval 'as_val=${'$as_ac_var'}
22973                  $as_echo "$as_val"'`
22974                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22975 $as_echo "$ac_res" >&6; }
22976 as_val=`eval 'as_val=${'$as_ac_var'}
22977                  $as_echo "$as_val"'`
22978    if test "x$as_val" = x""yes; then
22979   cat >>confdefs.h <<_ACEOF
22980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22981 _ACEOF
22982  break
22983 fi
22984 done
22985
22986
22987 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22988 $as_echo_n "checking for builtin locking functions... " >&6; }
22989 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22990   $as_echo_n "(cached) " >&6
22991 else
22992   cat >conftest.$ac_ext <<_ACEOF
22993 /* confdefs.h.  */
22994 _ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h.  */
22998
22999 int
23000 main ()
23001 {
23002 int lock = 0;
23003    __sync_lock_test_and_set(&lock, 1);
23004    __sync_lock_release(&lock);
23005   ;
23006   return 0;
23007 }
23008 _ACEOF
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (ac_try="$ac_link"
23011 case "(($ac_try" in
23012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013   *) ac_try_echo=$ac_try;;
23014 esac
23015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23016 $as_echo "$ac_try_echo") >&5
23017   (eval "$ac_link") 2>conftest.er1
23018   ac_status=$?
23019   grep -v '^ *+' conftest.er1 >conftest.err
23020   rm -f conftest.er1
23021   cat conftest.err >&5
23022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } && {
23024          test -z "$ac_c_werror_flag" ||
23025          test ! -s conftest.err
23026        } && test -s conftest$ac_exeext && {
23027          test "$cross_compiling" = yes ||
23028          $as_test_x conftest$ac_exeext
23029        }; then
23030   pgac_cv_gcc_int_atomics="yes"
23031 else
23032   $as_echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23034
23035         pgac_cv_gcc_int_atomics="no"
23036 fi
23037
23038 rm -rf conftest.dSYM
23039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23040       conftest$ac_exeext conftest.$ac_ext
23041 fi
23042 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
23043 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
23044 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
23045
23046 cat >>confdefs.h <<\_ACEOF
23047 #define HAVE_GCC_INT_ATOMICS 1
23048 _ACEOF
23049
23050 fi
23051
23052 # Lastly, restore full LIBS list and check for readline/libedit symbols
23053 LIBS="$LIBS_including_readline"
23054
23055 if test "$with_readline" = yes; then
23056   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
23057 $as_echo_n "checking for rl_completion_append_character... " >&6; }
23058 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
23059   $as_echo_n "(cached) " >&6
23060 else
23061   cat >conftest.$ac_ext <<_ACEOF
23062 /* confdefs.h.  */
23063 _ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h.  */
23067 #include <stdio.h>
23068 #ifdef HAVE_READLINE_READLINE_H
23069 # include <readline/readline.h>
23070 #elif defined(HAVE_READLINE_H)
23071 # include <readline.h>
23072 #endif
23073
23074 int
23075 main ()
23076 {
23077 rl_completion_append_character = 'x';
23078   ;
23079   return 0;
23080 }
23081 _ACEOF
23082 rm -f conftest.$ac_objext conftest$ac_exeext
23083 if { (ac_try="$ac_link"
23084 case "(($ac_try" in
23085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23086   *) ac_try_echo=$ac_try;;
23087 esac
23088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23089 $as_echo "$ac_try_echo") >&5
23090   (eval "$ac_link") 2>conftest.er1
23091   ac_status=$?
23092   grep -v '^ *+' conftest.er1 >conftest.err
23093   rm -f conftest.er1
23094   cat conftest.err >&5
23095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096   (exit $ac_status); } && {
23097          test -z "$ac_c_werror_flag" ||
23098          test ! -s conftest.err
23099        } && test -s conftest$ac_exeext && {
23100          test "$cross_compiling" = yes ||
23101          $as_test_x conftest$ac_exeext
23102        }; then
23103   pgac_cv_var_rl_completion_append_character=yes
23104 else
23105   $as_echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23107
23108         pgac_cv_var_rl_completion_append_character=no
23109 fi
23110
23111 rm -rf conftest.dSYM
23112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23113       conftest$ac_exeext conftest.$ac_ext
23114 fi
23115 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
23116 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
23117 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
23118
23119 cat >>confdefs.h <<\_ACEOF
23120 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23121 _ACEOF
23122
23123 fi
23124
23125
23126 for ac_func in rl_completion_matches rl_filename_completion_function
23127 do
23128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23129 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23130 $as_echo_n "checking for $ac_func... " >&6; }
23131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23132   $as_echo_n "(cached) " >&6
23133 else
23134   cat >conftest.$ac_ext <<_ACEOF
23135 /* confdefs.h.  */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h.  */
23140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23142 #define $ac_func innocuous_$ac_func
23143
23144 /* System header to define __stub macros and hopefully few prototypes,
23145     which can conflict with char $ac_func (); below.
23146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23147     <limits.h> exists even on freestanding compilers.  */
23148
23149 #ifdef __STDC__
23150 # include <limits.h>
23151 #else
23152 # include <assert.h>
23153 #endif
23154
23155 #undef $ac_func
23156
23157 /* Override any GCC internal prototype to avoid an error.
23158    Use char because int might match the return type of a GCC
23159    builtin and then its argument prototype would still apply.  */
23160 #ifdef __cplusplus
23161 extern "C"
23162 #endif
23163 char $ac_func ();
23164 /* The GNU C library defines this for functions which it implements
23165     to always fail with ENOSYS.  Some functions are actually named
23166     something starting with __ and the normal name is an alias.  */
23167 #if defined __stub_$ac_func || defined __stub___$ac_func
23168 choke me
23169 #endif
23170
23171 int
23172 main ()
23173 {
23174 return $ac_func ();
23175   ;
23176   return 0;
23177 }
23178 _ACEOF
23179 rm -f conftest.$ac_objext conftest$ac_exeext
23180 if { (ac_try="$ac_link"
23181 case "(($ac_try" in
23182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183   *) ac_try_echo=$ac_try;;
23184 esac
23185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23186 $as_echo "$ac_try_echo") >&5
23187   (eval "$ac_link") 2>conftest.er1
23188   ac_status=$?
23189   grep -v '^ *+' conftest.er1 >conftest.err
23190   rm -f conftest.er1
23191   cat conftest.err >&5
23192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193   (exit $ac_status); } && {
23194          test -z "$ac_c_werror_flag" ||
23195          test ! -s conftest.err
23196        } && test -s conftest$ac_exeext && {
23197          test "$cross_compiling" = yes ||
23198          $as_test_x conftest$ac_exeext
23199        }; then
23200   eval "$as_ac_var=yes"
23201 else
23202   $as_echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23204
23205         eval "$as_ac_var=no"
23206 fi
23207
23208 rm -rf conftest.dSYM
23209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23210       conftest$ac_exeext conftest.$ac_ext
23211 fi
23212 ac_res=`eval 'as_val=${'$as_ac_var'}
23213                  $as_echo "$as_val"'`
23214                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23215 $as_echo "$ac_res" >&6; }
23216 as_val=`eval 'as_val=${'$as_ac_var'}
23217                  $as_echo "$as_val"'`
23218    if test "x$as_val" = x""yes; then
23219   cat >>confdefs.h <<_ACEOF
23220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23221 _ACEOF
23222
23223 fi
23224 done
23225
23226
23227
23228 for ac_func in append_history history_truncate_file
23229 do
23230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23231 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23232 $as_echo_n "checking for $ac_func... " >&6; }
23233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23234   $as_echo_n "(cached) " >&6
23235 else
23236   cat >conftest.$ac_ext <<_ACEOF
23237 /* confdefs.h.  */
23238 _ACEOF
23239 cat confdefs.h >>conftest.$ac_ext
23240 cat >>conftest.$ac_ext <<_ACEOF
23241 /* end confdefs.h.  */
23242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23244 #define $ac_func innocuous_$ac_func
23245
23246 /* System header to define __stub macros and hopefully few prototypes,
23247     which can conflict with char $ac_func (); below.
23248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23249     <limits.h> exists even on freestanding compilers.  */
23250
23251 #ifdef __STDC__
23252 # include <limits.h>
23253 #else
23254 # include <assert.h>
23255 #endif
23256
23257 #undef $ac_func
23258
23259 /* Override any GCC internal prototype to avoid an error.
23260    Use char because int might match the return type of a GCC
23261    builtin and then its argument prototype would still apply.  */
23262 #ifdef __cplusplus
23263 extern "C"
23264 #endif
23265 char $ac_func ();
23266 /* The GNU C library defines this for functions which it implements
23267     to always fail with ENOSYS.  Some functions are actually named
23268     something starting with __ and the normal name is an alias.  */
23269 #if defined __stub_$ac_func || defined __stub___$ac_func
23270 choke me
23271 #endif
23272
23273 int
23274 main ()
23275 {
23276 return $ac_func ();
23277   ;
23278   return 0;
23279 }
23280 _ACEOF
23281 rm -f conftest.$ac_objext conftest$ac_exeext
23282 if { (ac_try="$ac_link"
23283 case "(($ac_try" in
23284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23285   *) ac_try_echo=$ac_try;;
23286 esac
23287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23288 $as_echo "$ac_try_echo") >&5
23289   (eval "$ac_link") 2>conftest.er1
23290   ac_status=$?
23291   grep -v '^ *+' conftest.er1 >conftest.err
23292   rm -f conftest.er1
23293   cat conftest.err >&5
23294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295   (exit $ac_status); } && {
23296          test -z "$ac_c_werror_flag" ||
23297          test ! -s conftest.err
23298        } && test -s conftest$ac_exeext && {
23299          test "$cross_compiling" = yes ||
23300          $as_test_x conftest$ac_exeext
23301        }; then
23302   eval "$as_ac_var=yes"
23303 else
23304   $as_echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23306
23307         eval "$as_ac_var=no"
23308 fi
23309
23310 rm -rf conftest.dSYM
23311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23312       conftest$ac_exeext conftest.$ac_ext
23313 fi
23314 ac_res=`eval 'as_val=${'$as_ac_var'}
23315                  $as_echo "$as_val"'`
23316                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23317 $as_echo "$ac_res" >&6; }
23318 as_val=`eval 'as_val=${'$as_ac_var'}
23319                  $as_echo "$as_val"'`
23320    if test "x$as_val" = x""yes; then
23321   cat >>confdefs.h <<_ACEOF
23322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23323 _ACEOF
23324
23325 fi
23326 done
23327
23328 fi
23329
23330
23331 #
23332 # Pthreads
23333 #
23334 # For each platform, we need to know about any special compile and link
23335 # libraries, and whether the normal C function names are thread-safe.
23336 # See the comment at the top of src/port/thread.c for more information.
23337 # WIN32 doesn't need the pthread tests;  it always uses threads
23338 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
23339
23340
23341
23342 ac_ext=c
23343 ac_cpp='$CPP $CPPFLAGS'
23344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23347
23348 acx_pthread_ok=no
23349
23350 # We used to check for pthread.h first, but this fails if pthread.h
23351 # requires special compiler flags (e.g. on True64 or Sequent).
23352 # It gets checked for in the link test anyway.
23353
23354 # First of all, check if the user has set any of the PTHREAD_LIBS,
23355 # etcetera environment variables, and if threads linking works using
23356 # them:
23357 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23358         save_CFLAGS="$CFLAGS"
23359         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23360         save_LIBS="$LIBS"
23361         LIBS="$PTHREAD_LIBS $LIBS"
23362         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23363 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
23364         cat >conftest.$ac_ext <<_ACEOF
23365 /* confdefs.h.  */
23366 _ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h.  */
23370
23371 /* Override any GCC internal prototype to avoid an error.
23372    Use char because int might match the return type of a GCC
23373    builtin and then its argument prototype would still apply.  */
23374 #ifdef __cplusplus
23375 extern "C"
23376 #endif
23377 char pthread_join ();
23378 int
23379 main ()
23380 {
23381 return pthread_join ();
23382   ;
23383   return 0;
23384 }
23385 _ACEOF
23386 rm -f conftest.$ac_objext conftest$ac_exeext
23387 if { (ac_try="$ac_link"
23388 case "(($ac_try" in
23389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390   *) ac_try_echo=$ac_try;;
23391 esac
23392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23393 $as_echo "$ac_try_echo") >&5
23394   (eval "$ac_link") 2>conftest.er1
23395   ac_status=$?
23396   grep -v '^ *+' conftest.er1 >conftest.err
23397   rm -f conftest.er1
23398   cat conftest.err >&5
23399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); } && {
23401          test -z "$ac_c_werror_flag" ||
23402          test ! -s conftest.err
23403        } && test -s conftest$ac_exeext && {
23404          test "$cross_compiling" = yes ||
23405          $as_test_x conftest$ac_exeext
23406        }; then
23407   acx_pthread_ok=yes
23408 else
23409   $as_echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23411
23412
23413 fi
23414
23415 rm -rf conftest.dSYM
23416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23417       conftest$ac_exeext conftest.$ac_ext
23418         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23419 $as_echo "$acx_pthread_ok" >&6; }
23420         if test x"$acx_pthread_ok" = xno; then
23421                 PTHREAD_LIBS=""
23422                 PTHREAD_CFLAGS=""
23423         fi
23424         LIBS="$save_LIBS"
23425         CFLAGS="$save_CFLAGS"
23426 fi
23427
23428 # We must check for the threads library under a number of different
23429 # names; the ordering is very important because some systems
23430 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23431 # libraries is broken (non-POSIX).
23432
23433 # Create a list of thread flags to try.  Items starting with a "-" are
23434 # C compiler flags, and other items are library names, except for "none"
23435 # which indicates that we try without any flags at all, and "pthread-config"
23436 # which is a program returning the flags for the Pth emulation library.
23437
23438 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
23439
23440 # The ordering *is* (sometimes) important.  Some notes on the
23441 # individual items follow:
23442
23443 # pthreads: AIX (must check this before -lpthread)
23444 # none: in case threads are in libc; should be tried before -Kthread and
23445 #       other compiler flags to prevent continual compiler warnings
23446 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23447 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23448 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23449 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23450 # -pthreads: Solaris/gcc
23451 # -mthreads: Mingw32/gcc, Lynx/gcc
23452 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23453 #      doesn't hurt to check since this sometimes defines pthreads too;
23454 #      also defines -D_REENTRANT)
23455 # pthread: Linux, etcetera
23456 # --thread-safe: KAI C++
23457 # pthread-config: use pthread-config program (for GNU Pth library)
23458
23459 case "${host_cpu}-${host_os}" in
23460         *solaris*)
23461
23462         # On Solaris (at least, for some versions), libc contains stubbed
23463         # (non-functional) versions of the pthreads routines, so link-based
23464         # tests will erroneously succeed.  (We need to link with -pthread or
23465         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
23466         # a function called by this macro, so we could check for that, but
23467         # who knows whether they'll stub that too in a future libc.)  So,
23468         # we'll just look for -pthreads and -lpthread first:
23469
23470         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
23471         ;;
23472 esac
23473
23474 if test x"$acx_pthread_ok" = xno; then
23475 for flag in $acx_pthread_flags; do
23476
23477         tryPTHREAD_CFLAGS=""
23478         tryPTHREAD_LIBS=""
23479         case $flag in
23480                 none)
23481                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23482 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
23483                 ;;
23484
23485                 -*)
23486                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23487 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
23488                 tryPTHREAD_CFLAGS="$flag"
23489                 ;;
23490
23491                 pthread-config)
23492                 # skip this if we already have flags defined, for PostgreSQL
23493                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
23494                 # Extract the first word of "pthread-config", so it can be a program name with args.
23495 set dummy pthread-config; ac_word=$2
23496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23497 $as_echo_n "checking for $ac_word... " >&6; }
23498 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23499   $as_echo_n "(cached) " >&6
23500 else
23501   if test -n "$acx_pthread_config"; then
23502   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23503 else
23504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23505 for as_dir in $PATH
23506 do
23507   IFS=$as_save_IFS
23508   test -z "$as_dir" && as_dir=.
23509   for ac_exec_ext in '' $ac_executable_extensions; do
23510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23511     ac_cv_prog_acx_pthread_config="yes"
23512     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23513     break 2
23514   fi
23515 done
23516 done
23517 IFS=$as_save_IFS
23518
23519   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23520 fi
23521 fi
23522 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23523 if test -n "$acx_pthread_config"; then
23524   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23525 $as_echo "$acx_pthread_config" >&6; }
23526 else
23527   { $as_echo "$as_me:$LINENO: result: no" >&5
23528 $as_echo "no" >&6; }
23529 fi
23530
23531
23532                 if test x"$acx_pthread_config" = xno; then continue; fi
23533                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
23534                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23535                 ;;
23536
23537                 *)
23538                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23539 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23540                 tryPTHREAD_LIBS="-l$flag"
23541                 ;;
23542         esac
23543
23544         save_LIBS="$LIBS"
23545         save_CFLAGS="$CFLAGS"
23546         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
23547         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23548
23549         # Check for various functions.  We must include pthread.h,
23550         # since some functions may be macros.  (On the Sequent, we
23551         # need a special flag -Kthread to make this header compile.)
23552         # We check for pthread_join because it is in -lpthread on IRIX
23553         # while pthread_create is in libc.  We check for pthread_attr_init
23554         # due to DEC craziness with -lpthreads.  We check for
23555         # pthread_cleanup_push because it is one of the few pthread
23556         # functions on Solaris that doesn't have a non-functional libc stub.
23557         # We try pthread_create on general principles.
23558         cat >conftest.$ac_ext <<_ACEOF
23559 /* confdefs.h.  */
23560 _ACEOF
23561 cat confdefs.h >>conftest.$ac_ext
23562 cat >>conftest.$ac_ext <<_ACEOF
23563 /* end confdefs.h.  */
23564 #include <pthread.h>
23565 int
23566 main ()
23567 {
23568 pthread_t th; pthread_join(th, 0);
23569                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
23570                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23571   ;
23572   return 0;
23573 }
23574 _ACEOF
23575 rm -f conftest.$ac_objext conftest$ac_exeext
23576 if { (ac_try="$ac_link"
23577 case "(($ac_try" in
23578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579   *) ac_try_echo=$ac_try;;
23580 esac
23581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23582 $as_echo "$ac_try_echo") >&5
23583   (eval "$ac_link") 2>conftest.er1
23584   ac_status=$?
23585   grep -v '^ *+' conftest.er1 >conftest.err
23586   rm -f conftest.er1
23587   cat conftest.err >&5
23588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589   (exit $ac_status); } && {
23590          test -z "$ac_c_werror_flag" ||
23591          test ! -s conftest.err
23592        } && test -s conftest$ac_exeext && {
23593          test "$cross_compiling" = yes ||
23594          $as_test_x conftest$ac_exeext
23595        }; then
23596   acx_pthread_ok=yes
23597 else
23598   $as_echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23600
23601         acx_pthread_ok=no
23602 fi
23603
23604 rm -rf conftest.dSYM
23605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23606       conftest$ac_exeext conftest.$ac_ext
23607
23608         if test "x$acx_pthread_ok" = xyes; then
23609             # Don't use options that are ignored by the compiler.
23610             # We find them by checking stderror.
23611             cat >conftest.$ac_ext <<_ACEOF
23612 int
23613 main (int argc, char **argv)
23614 {
23615   (void) argc;
23616   (void) argv;
23617   return 0;
23618 }
23619 _ACEOF
23620             rm -f conftest.$ac_objext conftest$ac_exeext
23621             # Check both linking and compiling, because they might tolerate different options.
23622             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23623                 # we continue with more flags because Linux needs -lpthread
23624                 # for libpq builds on PostgreSQL.  The test above only
23625                 # tests for building binaries, not shared libraries.
23626                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23627                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23628             else   acx_pthread_ok=no
23629             fi
23630         fi
23631
23632         LIBS="$save_LIBS"
23633         CFLAGS="$save_CFLAGS"
23634
23635         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23636 $as_echo "$acx_pthread_ok" >&6; }
23637 done
23638 fi
23639
23640 # Various other checks:
23641 if test "x$acx_pthread_ok" = xyes; then
23642         save_LIBS="$LIBS"
23643         LIBS="$PTHREAD_LIBS $LIBS"
23644         save_CFLAGS="$CFLAGS"
23645         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23646
23647         # Detect AIX lossage: threads are created detached by default
23648         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23649         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23650 $as_echo_n "checking for joinable pthread attribute... " >&6; }
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 #include <pthread.h>
23658 int
23659 main ()
23660 {
23661 int attr=PTHREAD_CREATE_JOINABLE;
23662   ;
23663   return 0;
23664 }
23665 _ACEOF
23666 rm -f conftest.$ac_objext conftest$ac_exeext
23667 if { (ac_try="$ac_link"
23668 case "(($ac_try" in
23669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670   *) ac_try_echo=$ac_try;;
23671 esac
23672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23673 $as_echo "$ac_try_echo") >&5
23674   (eval "$ac_link") 2>conftest.er1
23675   ac_status=$?
23676   grep -v '^ *+' conftest.er1 >conftest.err
23677   rm -f conftest.er1
23678   cat conftest.err >&5
23679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); } && {
23681          test -z "$ac_c_werror_flag" ||
23682          test ! -s conftest.err
23683        } && test -s conftest$ac_exeext && {
23684          test "$cross_compiling" = yes ||
23685          $as_test_x conftest$ac_exeext
23686        }; then
23687   ok=PTHREAD_CREATE_JOINABLE
23688 else
23689   $as_echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23691
23692         ok=unknown
23693 fi
23694
23695 rm -rf conftest.dSYM
23696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23697       conftest$ac_exeext conftest.$ac_ext
23698         if test x"$ok" = xunknown; then
23699                 cat >conftest.$ac_ext <<_ACEOF
23700 /* confdefs.h.  */
23701 _ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h.  */
23705 #include <pthread.h>
23706 int
23707 main ()
23708 {
23709 int attr=PTHREAD_CREATE_UNDETACHED;
23710   ;
23711   return 0;
23712 }
23713 _ACEOF
23714 rm -f conftest.$ac_objext conftest$ac_exeext
23715 if { (ac_try="$ac_link"
23716 case "(($ac_try" in
23717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718   *) ac_try_echo=$ac_try;;
23719 esac
23720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23721 $as_echo "$ac_try_echo") >&5
23722   (eval "$ac_link") 2>conftest.er1
23723   ac_status=$?
23724   grep -v '^ *+' conftest.er1 >conftest.err
23725   rm -f conftest.er1
23726   cat conftest.err >&5
23727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728   (exit $ac_status); } && {
23729          test -z "$ac_c_werror_flag" ||
23730          test ! -s conftest.err
23731        } && test -s conftest$ac_exeext && {
23732          test "$cross_compiling" = yes ||
23733          $as_test_x conftest$ac_exeext
23734        }; then
23735   ok=PTHREAD_CREATE_UNDETACHED
23736 else
23737   $as_echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23739
23740         ok=unknown
23741 fi
23742
23743 rm -rf conftest.dSYM
23744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23745       conftest$ac_exeext conftest.$ac_ext
23746         fi
23747         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23748
23749 cat >>confdefs.h <<\_ACEOF
23750 #define PTHREAD_CREATE_JOINABLE $ok
23751 _ACEOF
23752
23753         fi
23754         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23755 $as_echo "${ok}" >&6; }
23756         if test x"$ok" = xunknown; then
23757                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23758 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23759         fi
23760
23761         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23762 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23763         flag=no
23764 # We always add these in PostgreSQL
23765 #       case "${host_cpu}-${host_os}" in
23766 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23767 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23768 #       esac
23769         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23770 $as_echo "${flag}" >&6; }
23771         if test "x$flag" != xno; then
23772                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23773         fi
23774
23775         LIBS="$save_LIBS"
23776         CFLAGS="$save_CFLAGS"
23777
23778 # Supporting cc_r would require a special CC in all places that
23779 # use libpq, and that is ugly, so we don't do it.  Users can still
23780 # define their compiler as cc_r to do thread builds of everything.
23781         # More AIX lossage: must compile with cc_r
23782         # Extract the first word of "cc_r", so it can be a program name with args.
23783 set dummy cc_r; ac_word=$2
23784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23785 $as_echo_n "checking for $ac_word... " >&6; }
23786 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23787   $as_echo_n "(cached) " >&6
23788 else
23789   if test -n "$PTHREAD_CC"; then
23790   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23791 else
23792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23793 for as_dir in $PATH
23794 do
23795   IFS=$as_save_IFS
23796   test -z "$as_dir" && as_dir=.
23797   for ac_exec_ext in '' $ac_executable_extensions; do
23798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23799     ac_cv_prog_PTHREAD_CC="cc_r"
23800     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23801     break 2
23802   fi
23803 done
23804 done
23805 IFS=$as_save_IFS
23806
23807   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23808 fi
23809 fi
23810 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23811 if test -n "$PTHREAD_CC"; then
23812   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23813 $as_echo "$PTHREAD_CC" >&6; }
23814 else
23815   { $as_echo "$as_me:$LINENO: result: no" >&5
23816 $as_echo "no" >&6; }
23817 fi
23818
23819
23820 else
23821         PTHREAD_CC="$CC"
23822 fi
23823
23824
23825
23826
23827
23828 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23829 if test x"$acx_pthread_ok" = xyes; then
23830
23831 cat >>confdefs.h <<\_ACEOF
23832 #define HAVE_PTHREAD 1
23833 _ACEOF
23834
23835         :
23836 else
23837         acx_pthread_ok=no
23838
23839 fi
23840 ac_ext=c
23841 ac_cpp='$CPP $CPPFLAGS'
23842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23845
23846         # set thread flags
23847
23848 # Some platforms use these, so just define them.  They can't hurt if they
23849 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23850 # enables 5-arg getpwuid_r, among other things.
23851 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23852
23853
23854 # At this point, we don't want to muck with the compiler name for threading.
23855 # Let's see who fails, perhaps AIX.  2004-04-23
23856 if test "$PTHREAD_CC" != "$CC"; then
23857 { { $as_echo "$as_me:$LINENO: error:
23858 PostgreSQL does not support platforms that require a special compiler
23859 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23860 $as_echo "$as_me: error:
23861 PostgreSQL does not support platforms that require a special compiler
23862 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23863    { (exit 1); exit 1; }; }
23864 fi
23865
23866 # Check for *_r functions
23867 _CFLAGS="$CFLAGS"
23868 _LIBS="$LIBS"
23869 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23870 LIBS="$LIBS $PTHREAD_LIBS"
23871
23872 if test "$PORTNAME" != "win32"; then
23873 if test "${ac_cv_header_pthread_h+set}" = set; then
23874   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23875 $as_echo_n "checking for pthread.h... " >&6; }
23876 if test "${ac_cv_header_pthread_h+set}" = set; then
23877   $as_echo_n "(cached) " >&6
23878 fi
23879 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23880 $as_echo "$ac_cv_header_pthread_h" >&6; }
23881 else
23882   # Is the header compilable?
23883 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23884 $as_echo_n "checking pthread.h usability... " >&6; }
23885 cat >conftest.$ac_ext <<_ACEOF
23886 /* confdefs.h.  */
23887 _ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h.  */
23891 $ac_includes_default
23892 #include <pthread.h>
23893 _ACEOF
23894 rm -f conftest.$ac_objext
23895 if { (ac_try="$ac_compile"
23896 case "(($ac_try" in
23897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898   *) ac_try_echo=$ac_try;;
23899 esac
23900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23901 $as_echo "$ac_try_echo") >&5
23902   (eval "$ac_compile") 2>conftest.er1
23903   ac_status=$?
23904   grep -v '^ *+' conftest.er1 >conftest.err
23905   rm -f conftest.er1
23906   cat conftest.err >&5
23907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908   (exit $ac_status); } && {
23909          test -z "$ac_c_werror_flag" ||
23910          test ! -s conftest.err
23911        } && test -s conftest.$ac_objext; then
23912   ac_header_compiler=yes
23913 else
23914   $as_echo "$as_me: failed program was:" >&5
23915 sed 's/^/| /' conftest.$ac_ext >&5
23916
23917         ac_header_compiler=no
23918 fi
23919
23920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23922 $as_echo "$ac_header_compiler" >&6; }
23923
23924 # Is the header present?
23925 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23926 $as_echo_n "checking pthread.h presence... " >&6; }
23927 cat >conftest.$ac_ext <<_ACEOF
23928 /* confdefs.h.  */
23929 _ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h.  */
23933 #include <pthread.h>
23934 _ACEOF
23935 if { (ac_try="$ac_cpp conftest.$ac_ext"
23936 case "(($ac_try" in
23937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23938   *) ac_try_echo=$ac_try;;
23939 esac
23940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23941 $as_echo "$ac_try_echo") >&5
23942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23943   ac_status=$?
23944   grep -v '^ *+' conftest.er1 >conftest.err
23945   rm -f conftest.er1
23946   cat conftest.err >&5
23947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948   (exit $ac_status); } >/dev/null && {
23949          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23950          test ! -s conftest.err
23951        }; then
23952   ac_header_preproc=yes
23953 else
23954   $as_echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23956
23957   ac_header_preproc=no
23958 fi
23959
23960 rm -f conftest.err conftest.$ac_ext
23961 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23962 $as_echo "$ac_header_preproc" >&6; }
23963
23964 # So?  What about this header?
23965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23966   yes:no: )
23967     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23968 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23969     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23970 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23971     ac_header_preproc=yes
23972     ;;
23973   no:yes:* )
23974     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23975 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23976     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23977 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23978     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23979 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23980     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23981 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23982     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23983 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23984     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23985 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23986     ( cat <<\_ASBOX
23987 ## ---------------------------------------- ##
23988 ## Report this to pgsql-bugs@postgresql.org ##
23989 ## ---------------------------------------- ##
23990 _ASBOX
23991      ) | sed "s/^/$as_me: WARNING:     /" >&2
23992     ;;
23993 esac
23994 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23995 $as_echo_n "checking for pthread.h... " >&6; }
23996 if test "${ac_cv_header_pthread_h+set}" = set; then
23997   $as_echo_n "(cached) " >&6
23998 else
23999   ac_cv_header_pthread_h=$ac_header_preproc
24000 fi
24001 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
24002 $as_echo "$ac_cv_header_pthread_h" >&6; }
24003
24004 fi
24005 if test "x$ac_cv_header_pthread_h" = x""yes; then
24006   :
24007 else
24008   { { $as_echo "$as_me:$LINENO: error:
24009 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
24010 $as_echo "$as_me: error:
24011 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
24012    { (exit 1); exit 1; }; }
24013 fi
24014
24015
24016 fi
24017
24018
24019
24020
24021 for ac_func in strerror_r getpwuid_r gethostbyname_r
24022 do
24023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24024 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24025 $as_echo_n "checking for $ac_func... " >&6; }
24026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24027   $as_echo_n "(cached) " >&6
24028 else
24029   cat >conftest.$ac_ext <<_ACEOF
24030 /* confdefs.h.  */
24031 _ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h.  */
24035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24037 #define $ac_func innocuous_$ac_func
24038
24039 /* System header to define __stub macros and hopefully few prototypes,
24040     which can conflict with char $ac_func (); below.
24041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24042     <limits.h> exists even on freestanding compilers.  */
24043
24044 #ifdef __STDC__
24045 # include <limits.h>
24046 #else
24047 # include <assert.h>
24048 #endif
24049
24050 #undef $ac_func
24051
24052 /* Override any GCC internal prototype to avoid an error.
24053    Use char because int might match the return type of a GCC
24054    builtin and then its argument prototype would still apply.  */
24055 #ifdef __cplusplus
24056 extern "C"
24057 #endif
24058 char $ac_func ();
24059 /* The GNU C library defines this for functions which it implements
24060     to always fail with ENOSYS.  Some functions are actually named
24061     something starting with __ and the normal name is an alias.  */
24062 #if defined __stub_$ac_func || defined __stub___$ac_func
24063 choke me
24064 #endif
24065
24066 int
24067 main ()
24068 {
24069 return $ac_func ();
24070   ;
24071   return 0;
24072 }
24073 _ACEOF
24074 rm -f conftest.$ac_objext conftest$ac_exeext
24075 if { (ac_try="$ac_link"
24076 case "(($ac_try" in
24077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078   *) ac_try_echo=$ac_try;;
24079 esac
24080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24081 $as_echo "$ac_try_echo") >&5
24082   (eval "$ac_link") 2>conftest.er1
24083   ac_status=$?
24084   grep -v '^ *+' conftest.er1 >conftest.err
24085   rm -f conftest.er1
24086   cat conftest.err >&5
24087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088   (exit $ac_status); } && {
24089          test -z "$ac_c_werror_flag" ||
24090          test ! -s conftest.err
24091        } && test -s conftest$ac_exeext && {
24092          test "$cross_compiling" = yes ||
24093          $as_test_x conftest$ac_exeext
24094        }; then
24095   eval "$as_ac_var=yes"
24096 else
24097   $as_echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24099
24100         eval "$as_ac_var=no"
24101 fi
24102
24103 rm -rf conftest.dSYM
24104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24105       conftest$ac_exeext conftest.$ac_ext
24106 fi
24107 ac_res=`eval 'as_val=${'$as_ac_var'}
24108                  $as_echo "$as_val"'`
24109                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24110 $as_echo "$ac_res" >&6; }
24111 as_val=`eval 'as_val=${'$as_ac_var'}
24112                  $as_echo "$as_val"'`
24113    if test "x$as_val" = x""yes; then
24114   cat >>confdefs.h <<_ACEOF
24115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24116 _ACEOF
24117
24118 fi
24119 done
24120
24121
24122 # Do test here with the proper thread flags
24123 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
24124 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
24125 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
24126   $as_echo_n "(cached) " >&6
24127 else
24128   cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h.  */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h.  */
24134 #include <sys/types.h>
24135 #include <pwd.h>
24136 int
24137 main ()
24138 {
24139 uid_t uid;
24140 struct passwd *space;
24141 char *buf;
24142 size_t bufsize;
24143 struct passwd **result;
24144 getpwuid_r(uid, space, buf, bufsize, result);
24145   ;
24146   return 0;
24147 }
24148 _ACEOF
24149 rm -f conftest.$ac_objext
24150 if { (ac_try="$ac_compile"
24151 case "(($ac_try" in
24152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153   *) ac_try_echo=$ac_try;;
24154 esac
24155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24156 $as_echo "$ac_try_echo") >&5
24157   (eval "$ac_compile") 2>conftest.er1
24158   ac_status=$?
24159   grep -v '^ *+' conftest.er1 >conftest.err
24160   rm -f conftest.er1
24161   cat conftest.err >&5
24162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163   (exit $ac_status); } && {
24164          test -z "$ac_c_werror_flag" ||
24165          test ! -s conftest.err
24166        } && test -s conftest.$ac_objext; then
24167   pgac_cv_func_getpwuid_r_5arg=yes
24168 else
24169   $as_echo "$as_me: failed program was:" >&5
24170 sed 's/^/| /' conftest.$ac_ext >&5
24171
24172         pgac_cv_func_getpwuid_r_5arg=no
24173 fi
24174
24175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24176 fi
24177 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
24178 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
24179 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
24180
24181 cat >>confdefs.h <<\_ACEOF
24182 #define GETPWUID_R_5ARG 1
24183 _ACEOF
24184
24185 fi
24186
24187 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
24188 $as_echo_n "checking whether strerror_r returns int... " >&6; }
24189 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
24190   $as_echo_n "(cached) " >&6
24191 else
24192   cat >conftest.$ac_ext <<_ACEOF
24193 /* confdefs.h.  */
24194 _ACEOF
24195 cat confdefs.h >>conftest.$ac_ext
24196 cat >>conftest.$ac_ext <<_ACEOF
24197 /* end confdefs.h.  */
24198 #include <string.h>
24199 int
24200 main ()
24201 {
24202 #ifndef _AIX
24203 int strerror_r(int, char *, size_t);
24204 #else
24205 /* Older AIX has 'int' for the third argument so we don't test the args. */
24206 int strerror_r();
24207 #endif
24208   ;
24209   return 0;
24210 }
24211 _ACEOF
24212 rm -f conftest.$ac_objext
24213 if { (ac_try="$ac_compile"
24214 case "(($ac_try" in
24215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216   *) ac_try_echo=$ac_try;;
24217 esac
24218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24219 $as_echo "$ac_try_echo") >&5
24220   (eval "$ac_compile") 2>conftest.er1
24221   ac_status=$?
24222   grep -v '^ *+' conftest.er1 >conftest.err
24223   rm -f conftest.er1
24224   cat conftest.err >&5
24225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226   (exit $ac_status); } && {
24227          test -z "$ac_c_werror_flag" ||
24228          test ! -s conftest.err
24229        } && test -s conftest.$ac_objext; then
24230   pgac_cv_func_strerror_r_int=yes
24231 else
24232   $as_echo "$as_me: failed program was:" >&5
24233 sed 's/^/| /' conftest.$ac_ext >&5
24234
24235         pgac_cv_func_strerror_r_int=no
24236 fi
24237
24238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24239 fi
24240 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
24241 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
24242 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
24243
24244 cat >>confdefs.h <<\_ACEOF
24245 #define STRERROR_R_INT 1
24246 _ACEOF
24247
24248 fi
24249
24250
24251 CFLAGS="$_CFLAGS"
24252 LIBS="$_LIBS"
24253
24254 else
24255 # do not use values from template file
24256 PTHREAD_CFLAGS=
24257 PTHREAD_LIBS=
24258 fi
24259
24260
24261
24262
24263
24264 # We can test for libldap_r only after we know PTHREAD_LIBS
24265 if test "$with_ldap" = yes ; then
24266   _LIBS="$LIBS"
24267   if test "$PORTNAME" != "win32"; then
24268
24269 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
24270 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
24271 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
24272   $as_echo_n "(cached) " >&6
24273 else
24274   ac_check_lib_save_LIBS=$LIBS
24275 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
24276 cat >conftest.$ac_ext <<_ACEOF
24277 /* confdefs.h.  */
24278 _ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h.  */
24282
24283 /* Override any GCC internal prototype to avoid an error.
24284    Use char because int might match the return type of a GCC
24285    builtin and then its argument prototype would still apply.  */
24286 #ifdef __cplusplus
24287 extern "C"
24288 #endif
24289 char ldap_bind ();
24290 int
24291 main ()
24292 {
24293 return ldap_bind ();
24294   ;
24295   return 0;
24296 }
24297 _ACEOF
24298 rm -f conftest.$ac_objext conftest$ac_exeext
24299 if { (ac_try="$ac_link"
24300 case "(($ac_try" in
24301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24302   *) ac_try_echo=$ac_try;;
24303 esac
24304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24305 $as_echo "$ac_try_echo") >&5
24306   (eval "$ac_link") 2>conftest.er1
24307   ac_status=$?
24308   grep -v '^ *+' conftest.er1 >conftest.err
24309   rm -f conftest.er1
24310   cat conftest.err >&5
24311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312   (exit $ac_status); } && {
24313          test -z "$ac_c_werror_flag" ||
24314          test ! -s conftest.err
24315        } && test -s conftest$ac_exeext && {
24316          test "$cross_compiling" = yes ||
24317          $as_test_x conftest$ac_exeext
24318        }; then
24319   ac_cv_lib_ldap_ldap_bind=yes
24320 else
24321   $as_echo "$as_me: failed program was:" >&5
24322 sed 's/^/| /' conftest.$ac_ext >&5
24323
24324         ac_cv_lib_ldap_ldap_bind=no
24325 fi
24326
24327 rm -rf conftest.dSYM
24328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24329       conftest$ac_exeext conftest.$ac_ext
24330 LIBS=$ac_check_lib_save_LIBS
24331 fi
24332 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
24333 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
24334 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
24335   cat >>confdefs.h <<_ACEOF
24336 #define HAVE_LIBLDAP 1
24337 _ACEOF
24338
24339   LIBS="-lldap $LIBS"
24340
24341 else
24342   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
24343 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
24344    { (exit 1); exit 1; }; }
24345 fi
24346
24347     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
24348     if test "$enable_thread_safety" = yes; then
24349       # on some platforms ldap_r fails to link without PTHREAD_LIBS
24350
24351 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
24352 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
24353 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
24354   $as_echo_n "(cached) " >&6
24355 else
24356   ac_check_lib_save_LIBS=$LIBS
24357 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
24358 cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h.  */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h.  */
24364
24365 /* Override any GCC internal prototype to avoid an error.
24366    Use char because int might match the return type of a GCC
24367    builtin and then its argument prototype would still apply.  */
24368 #ifdef __cplusplus
24369 extern "C"
24370 #endif
24371 char ldap_simple_bind ();
24372 int
24373 main ()
24374 {
24375 return ldap_simple_bind ();
24376   ;
24377   return 0;
24378 }
24379 _ACEOF
24380 rm -f conftest.$ac_objext conftest$ac_exeext
24381 if { (ac_try="$ac_link"
24382 case "(($ac_try" in
24383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24384   *) ac_try_echo=$ac_try;;
24385 esac
24386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24387 $as_echo "$ac_try_echo") >&5
24388   (eval "$ac_link") 2>conftest.er1
24389   ac_status=$?
24390   grep -v '^ *+' conftest.er1 >conftest.err
24391   rm -f conftest.er1
24392   cat conftest.err >&5
24393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394   (exit $ac_status); } && {
24395          test -z "$ac_c_werror_flag" ||
24396          test ! -s conftest.err
24397        } && test -s conftest$ac_exeext && {
24398          test "$cross_compiling" = yes ||
24399          $as_test_x conftest$ac_exeext
24400        }; then
24401   ac_cv_lib_ldap_r_ldap_simple_bind=yes
24402 else
24403   $as_echo "$as_me: failed program was:" >&5
24404 sed 's/^/| /' conftest.$ac_ext >&5
24405
24406         ac_cv_lib_ldap_r_ldap_simple_bind=no
24407 fi
24408
24409 rm -rf conftest.dSYM
24410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24411       conftest$ac_exeext conftest.$ac_ext
24412 LIBS=$ac_check_lib_save_LIBS
24413 fi
24414 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
24415 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
24416 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
24417   cat >>confdefs.h <<_ACEOF
24418 #define HAVE_LIBLDAP_R 1
24419 _ACEOF
24420
24421   LIBS="-lldap_r $LIBS"
24422
24423 else
24424   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
24425 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
24426    { (exit 1); exit 1; }; }
24427 fi
24428
24429       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
24430     else
24431       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
24432     fi
24433   else
24434
24435 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
24436 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
24437 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
24438   $as_echo_n "(cached) " >&6
24439 else
24440   ac_check_lib_save_LIBS=$LIBS
24441 LIBS="-lwldap32  $LIBS"
24442 cat >conftest.$ac_ext <<_ACEOF
24443 /* confdefs.h.  */
24444 _ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h.  */
24448
24449 /* Override any GCC internal prototype to avoid an error.
24450    Use char because int might match the return type of a GCC
24451    builtin and then its argument prototype would still apply.  */
24452 #ifdef __cplusplus
24453 extern "C"
24454 #endif
24455 char ldap_bind ();
24456 int
24457 main ()
24458 {
24459 return ldap_bind ();
24460   ;
24461   return 0;
24462 }
24463 _ACEOF
24464 rm -f conftest.$ac_objext conftest$ac_exeext
24465 if { (ac_try="$ac_link"
24466 case "(($ac_try" in
24467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24468   *) ac_try_echo=$ac_try;;
24469 esac
24470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24471 $as_echo "$ac_try_echo") >&5
24472   (eval "$ac_link") 2>conftest.er1
24473   ac_status=$?
24474   grep -v '^ *+' conftest.er1 >conftest.err
24475   rm -f conftest.er1
24476   cat conftest.err >&5
24477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478   (exit $ac_status); } && {
24479          test -z "$ac_c_werror_flag" ||
24480          test ! -s conftest.err
24481        } && test -s conftest$ac_exeext && {
24482          test "$cross_compiling" = yes ||
24483          $as_test_x conftest$ac_exeext
24484        }; then
24485   ac_cv_lib_wldap32_ldap_bind=yes
24486 else
24487   $as_echo "$as_me: failed program was:" >&5
24488 sed 's/^/| /' conftest.$ac_ext >&5
24489
24490         ac_cv_lib_wldap32_ldap_bind=no
24491 fi
24492
24493 rm -rf conftest.dSYM
24494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24495       conftest$ac_exeext conftest.$ac_ext
24496 LIBS=$ac_check_lib_save_LIBS
24497 fi
24498 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
24499 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
24500 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
24501   cat >>confdefs.h <<_ACEOF
24502 #define HAVE_LIBWLDAP32 1
24503 _ACEOF
24504
24505   LIBS="-lwldap32 $LIBS"
24506
24507 else
24508   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
24509 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
24510    { (exit 1); exit 1; }; }
24511 fi
24512
24513     LDAP_LIBS_FE="-lwldap32"
24514     LDAP_LIBS_BE="-lwldap32"
24515   fi
24516   LIBS="$_LIBS"
24517 fi
24518
24519
24520
24521
24522 # This test makes sure that run tests work at all.  Sometimes a shared
24523 # library is found by the linker, but the runtime linker can't find it.
24524 # This check should come after all modifications of compiler or linker
24525 # variables, and before any other run tests.
24526 { $as_echo "$as_me:$LINENO: checking test program" >&5
24527 $as_echo_n "checking test program... " >&6; }
24528 if test "$cross_compiling" = yes; then
24529   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
24530 $as_echo "cross-compiling" >&6; }
24531 else
24532   cat >conftest.$ac_ext <<_ACEOF
24533 /* confdefs.h.  */
24534 _ACEOF
24535 cat confdefs.h >>conftest.$ac_ext
24536 cat >>conftest.$ac_ext <<_ACEOF
24537 /* end confdefs.h.  */
24538 int main() { return 0; }
24539 _ACEOF
24540 rm -f conftest$ac_exeext
24541 if { (ac_try="$ac_link"
24542 case "(($ac_try" in
24543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544   *) ac_try_echo=$ac_try;;
24545 esac
24546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24547 $as_echo "$ac_try_echo") >&5
24548   (eval "$ac_link") 2>&5
24549   ac_status=$?
24550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24552   { (case "(($ac_try" in
24553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554   *) ac_try_echo=$ac_try;;
24555 esac
24556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24557 $as_echo "$ac_try_echo") >&5
24558   (eval "$ac_try") 2>&5
24559   ac_status=$?
24560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561   (exit $ac_status); }; }; then
24562   { $as_echo "$as_me:$LINENO: result: ok" >&5
24563 $as_echo "ok" >&6; }
24564 else
24565   $as_echo "$as_me: program exited with status $ac_status" >&5
24566 $as_echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24568
24569 ( exit $ac_status )
24570 { $as_echo "$as_me:$LINENO: result: failed" >&5
24571 $as_echo "failed" >&6; }
24572 { { $as_echo "$as_me:$LINENO: error:
24573 Could not execute a simple test program.  This may be a problem
24574 related to locating shared libraries.  Check the file 'config.log'
24575 for the exact reason." >&5
24576 $as_echo "$as_me: error:
24577 Could not execute a simple test program.  This may be a problem
24578 related to locating shared libraries.  Check the file 'config.log'
24579 for the exact reason." >&2;}
24580    { (exit 1); exit 1; }; }
24581 fi
24582 rm -rf conftest.dSYM
24583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24584 fi
24585
24586
24587
24588 # --------------------
24589 # Run tests below here
24590 # --------------------
24591
24592 # Force use of our snprintf if system's doesn't do arg control
24593 # See comment above at snprintf test for details.
24594 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24595   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24596 $as_echo_n "checking whether printf supports argument control... " >&6; }
24597 if test "${pgac_cv_printf_arg_control+set}" = set; then
24598   $as_echo_n "(cached) " >&6
24599 else
24600   if test "$cross_compiling" = yes; then
24601   pgac_cv_printf_arg_control=cross
24602 else
24603   cat >conftest.$ac_ext <<_ACEOF
24604 /* confdefs.h.  */
24605 _ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h.  */
24609 #include <stdio.h>
24610 #include <string.h>
24611
24612 int main()
24613 {
24614   char buf[100];
24615
24616   /* can it swap arguments? */
24617   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24618   if (strcmp(buf, "4 3") != 0)
24619     return 1;
24620   return 0;
24621 }
24622 _ACEOF
24623 rm -f conftest$ac_exeext
24624 if { (ac_try="$ac_link"
24625 case "(($ac_try" in
24626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627   *) ac_try_echo=$ac_try;;
24628 esac
24629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24630 $as_echo "$ac_try_echo") >&5
24631   (eval "$ac_link") 2>&5
24632   ac_status=$?
24633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24635   { (case "(($ac_try" in
24636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637   *) ac_try_echo=$ac_try;;
24638 esac
24639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24640 $as_echo "$ac_try_echo") >&5
24641   (eval "$ac_try") 2>&5
24642   ac_status=$?
24643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644   (exit $ac_status); }; }; then
24645   pgac_cv_printf_arg_control=yes
24646 else
24647   $as_echo "$as_me: program exited with status $ac_status" >&5
24648 $as_echo "$as_me: failed program was:" >&5
24649 sed 's/^/| /' conftest.$ac_ext >&5
24650
24651 ( exit $ac_status )
24652 pgac_cv_printf_arg_control=no
24653 fi
24654 rm -rf conftest.dSYM
24655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24656 fi
24657
24658
24659
24660 fi
24661 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24662 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24663
24664   if test $pgac_cv_printf_arg_control != yes ; then
24665     pgac_need_repl_snprintf=yes
24666   fi
24667 fi
24668
24669
24670
24671
24672 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24673 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24674 if test "${pgac_cv_type_long_int_64+set}" = set; then
24675   $as_echo_n "(cached) " >&6
24676 else
24677   if test "$cross_compiling" = yes; then
24678   # If cross-compiling, check the size reported by the compiler and
24679 # trust that the arithmetic works.
24680 cat >conftest.$ac_ext <<_ACEOF
24681 /* confdefs.h.  */
24682 _ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h.  */
24686
24687 int
24688 main ()
24689 {
24690 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24691 test_array [0] = 0
24692
24693   ;
24694   return 0;
24695 }
24696 _ACEOF
24697 rm -f conftest.$ac_objext
24698 if { (ac_try="$ac_compile"
24699 case "(($ac_try" in
24700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701   *) ac_try_echo=$ac_try;;
24702 esac
24703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24704 $as_echo "$ac_try_echo") >&5
24705   (eval "$ac_compile") 2>conftest.er1
24706   ac_status=$?
24707   grep -v '^ *+' conftest.er1 >conftest.err
24708   rm -f conftest.er1
24709   cat conftest.err >&5
24710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711   (exit $ac_status); } && {
24712          test -z "$ac_c_werror_flag" ||
24713          test ! -s conftest.err
24714        } && test -s conftest.$ac_objext; then
24715   pgac_cv_type_long_int_64=yes
24716 else
24717   $as_echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24719
24720         pgac_cv_type_long_int_64=no
24721 fi
24722
24723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24724 else
24725   cat >conftest.$ac_ext <<_ACEOF
24726 /* confdefs.h.  */
24727 _ACEOF
24728 cat confdefs.h >>conftest.$ac_ext
24729 cat >>conftest.$ac_ext <<_ACEOF
24730 /* end confdefs.h.  */
24731 typedef long int ac_int64;
24732
24733 /*
24734  * These are globals to discourage the compiler from folding all the
24735  * arithmetic tests down to compile-time constants.
24736  */
24737 ac_int64 a = 20000001;
24738 ac_int64 b = 40000005;
24739
24740 int does_int64_work()
24741 {
24742   ac_int64 c,d;
24743
24744   if (sizeof(ac_int64) != 8)
24745     return 0;                   /* definitely not the right size */
24746
24747   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24748   c = a * b;
24749   d = (c + b) / b;
24750   if (d != a+1)
24751     return 0;
24752   return 1;
24753 }
24754 main() {
24755   exit(! does_int64_work());
24756 }
24757 _ACEOF
24758 rm -f conftest$ac_exeext
24759 if { (ac_try="$ac_link"
24760 case "(($ac_try" in
24761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762   *) ac_try_echo=$ac_try;;
24763 esac
24764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24765 $as_echo "$ac_try_echo") >&5
24766   (eval "$ac_link") 2>&5
24767   ac_status=$?
24768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24770   { (case "(($ac_try" in
24771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24772   *) ac_try_echo=$ac_try;;
24773 esac
24774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24775 $as_echo "$ac_try_echo") >&5
24776   (eval "$ac_try") 2>&5
24777   ac_status=$?
24778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779   (exit $ac_status); }; }; then
24780   pgac_cv_type_long_int_64=yes
24781 else
24782   $as_echo "$as_me: program exited with status $ac_status" >&5
24783 $as_echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24785
24786 ( exit $ac_status )
24787 pgac_cv_type_long_int_64=no
24788 fi
24789 rm -rf conftest.dSYM
24790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24791 fi
24792
24793
24794 fi
24795 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24796 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24797
24798 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24799 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24800
24801 cat >>confdefs.h <<\_ACEOF
24802 #define HAVE_LONG_INT_64 1
24803 _ACEOF
24804
24805 fi
24806
24807
24808 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24809   pg_int64_type="long int"
24810 else
24811   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24812 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24813 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24814   $as_echo_n "(cached) " >&6
24815 else
24816   if test "$cross_compiling" = yes; then
24817   # If cross-compiling, check the size reported by the compiler and
24818 # trust that the arithmetic works.
24819 cat >conftest.$ac_ext <<_ACEOF
24820 /* confdefs.h.  */
24821 _ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h.  */
24825
24826 int
24827 main ()
24828 {
24829 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24830 test_array [0] = 0
24831
24832   ;
24833   return 0;
24834 }
24835 _ACEOF
24836 rm -f conftest.$ac_objext
24837 if { (ac_try="$ac_compile"
24838 case "(($ac_try" in
24839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840   *) ac_try_echo=$ac_try;;
24841 esac
24842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24843 $as_echo "$ac_try_echo") >&5
24844   (eval "$ac_compile") 2>conftest.er1
24845   ac_status=$?
24846   grep -v '^ *+' conftest.er1 >conftest.err
24847   rm -f conftest.er1
24848   cat conftest.err >&5
24849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850   (exit $ac_status); } && {
24851          test -z "$ac_c_werror_flag" ||
24852          test ! -s conftest.err
24853        } && test -s conftest.$ac_objext; then
24854   pgac_cv_type_long_long_int_64=yes
24855 else
24856   $as_echo "$as_me: failed program was:" >&5
24857 sed 's/^/| /' conftest.$ac_ext >&5
24858
24859         pgac_cv_type_long_long_int_64=no
24860 fi
24861
24862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24863 else
24864   cat >conftest.$ac_ext <<_ACEOF
24865 /* confdefs.h.  */
24866 _ACEOF
24867 cat confdefs.h >>conftest.$ac_ext
24868 cat >>conftest.$ac_ext <<_ACEOF
24869 /* end confdefs.h.  */
24870 typedef long long int ac_int64;
24871
24872 /*
24873  * These are globals to discourage the compiler from folding all the
24874  * arithmetic tests down to compile-time constants.
24875  */
24876 ac_int64 a = 20000001;
24877 ac_int64 b = 40000005;
24878
24879 int does_int64_work()
24880 {
24881   ac_int64 c,d;
24882
24883   if (sizeof(ac_int64) != 8)
24884     return 0;                   /* definitely not the right size */
24885
24886   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24887   c = a * b;
24888   d = (c + b) / b;
24889   if (d != a+1)
24890     return 0;
24891   return 1;
24892 }
24893 main() {
24894   exit(! does_int64_work());
24895 }
24896 _ACEOF
24897 rm -f conftest$ac_exeext
24898 if { (ac_try="$ac_link"
24899 case "(($ac_try" in
24900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901   *) ac_try_echo=$ac_try;;
24902 esac
24903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24904 $as_echo "$ac_try_echo") >&5
24905   (eval "$ac_link") 2>&5
24906   ac_status=$?
24907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24909   { (case "(($ac_try" in
24910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24911   *) ac_try_echo=$ac_try;;
24912 esac
24913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24914 $as_echo "$ac_try_echo") >&5
24915   (eval "$ac_try") 2>&5
24916   ac_status=$?
24917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918   (exit $ac_status); }; }; then
24919   pgac_cv_type_long_long_int_64=yes
24920 else
24921   $as_echo "$as_me: program exited with status $ac_status" >&5
24922 $as_echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24924
24925 ( exit $ac_status )
24926 pgac_cv_type_long_long_int_64=no
24927 fi
24928 rm -rf conftest.dSYM
24929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24930 fi
24931
24932
24933 fi
24934 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24935 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24936
24937 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24938 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24939
24940 cat >>confdefs.h <<\_ACEOF
24941 #define HAVE_LONG_LONG_INT_64 1
24942 _ACEOF
24943
24944 fi
24945
24946   if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24947     pg_int64_type="long long int"
24948   else
24949     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24950 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24951    { (exit 1); exit 1; }; }
24952   fi
24953 fi
24954
24955
24956 cat >>confdefs.h <<_ACEOF
24957 #define PG_INT64_TYPE $pg_int64_type
24958 _ACEOF
24959
24960
24961
24962 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24963   cat >conftest.$ac_ext <<_ACEOF
24964 /* confdefs.h.  */
24965 _ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h.  */
24969
24970 #define INT64CONST(x)  x##LL
24971 long long int foo = INT64CONST(0x1234567890123456);
24972
24973 int
24974 main ()
24975 {
24976
24977   ;
24978   return 0;
24979 }
24980 _ACEOF
24981 rm -f conftest.$ac_objext
24982 if { (ac_try="$ac_compile"
24983 case "(($ac_try" in
24984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985   *) ac_try_echo=$ac_try;;
24986 esac
24987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24988 $as_echo "$ac_try_echo") >&5
24989   (eval "$ac_compile") 2>conftest.er1
24990   ac_status=$?
24991   grep -v '^ *+' conftest.er1 >conftest.err
24992   rm -f conftest.er1
24993   cat conftest.err >&5
24994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995   (exit $ac_status); } && {
24996          test -z "$ac_c_werror_flag" ||
24997          test ! -s conftest.err
24998        } && test -s conftest.$ac_objext; then
24999
25000 cat >>confdefs.h <<\_ACEOF
25001 #define HAVE_LL_CONSTANTS 1
25002 _ACEOF
25003
25004 else
25005   $as_echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25007
25008
25009 fi
25010
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25012 fi
25013
25014
25015 # If we found "long int" is 64 bits, assume snprintf handles it.  If
25016 # we found we need to use "long long int", better check.  We cope with
25017 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
25018 # work, fall back to our own snprintf emulation (which we know uses %lld).
25019
25020 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
25021   if test $pgac_need_repl_snprintf = no; then
25022     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
25023 $as_echo_n "checking snprintf format for long long int... " >&6; }
25024 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
25025   $as_echo_n "(cached) " >&6
25026 else
25027   for pgac_format in '%lld' '%qd' '%I64d'; do
25028 if test "$cross_compiling" = yes; then
25029   pgac_cv_snprintf_long_long_int_format=cross; break
25030 else
25031   cat >conftest.$ac_ext <<_ACEOF
25032 /* confdefs.h.  */
25033 _ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h.  */
25037 #include <stdio.h>
25038 typedef long long int ac_int64;
25039 #define INT64_FORMAT "$pgac_format"
25040
25041 ac_int64 a = 20000001;
25042 ac_int64 b = 40000005;
25043
25044 int does_int64_snprintf_work()
25045 {
25046   ac_int64 c;
25047   char buf[100];
25048
25049   if (sizeof(ac_int64) != 8)
25050     return 0;                   /* doesn't look like the right size */
25051
25052   c = a * b;
25053   snprintf(buf, 100, INT64_FORMAT, c);
25054   if (strcmp(buf, "800000140000005") != 0)
25055     return 0;                   /* either multiply or snprintf is busted */
25056   return 1;
25057 }
25058 main() {
25059   exit(! does_int64_snprintf_work());
25060 }
25061 _ACEOF
25062 rm -f conftest$ac_exeext
25063 if { (ac_try="$ac_link"
25064 case "(($ac_try" in
25065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066   *) ac_try_echo=$ac_try;;
25067 esac
25068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25069 $as_echo "$ac_try_echo") >&5
25070   (eval "$ac_link") 2>&5
25071   ac_status=$?
25072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25074   { (case "(($ac_try" in
25075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076   *) ac_try_echo=$ac_try;;
25077 esac
25078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25079 $as_echo "$ac_try_echo") >&5
25080   (eval "$ac_try") 2>&5
25081   ac_status=$?
25082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083   (exit $ac_status); }; }; then
25084   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
25085 else
25086   $as_echo "$as_me: program exited with status $ac_status" >&5
25087 $as_echo "$as_me: failed program was:" >&5
25088 sed 's/^/| /' conftest.$ac_ext >&5
25089
25090 fi
25091 rm -rf conftest.dSYM
25092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25093 fi
25094
25095
25096 done
25097 fi
25098
25099 LONG_LONG_INT_FORMAT=''
25100
25101 case $pgac_cv_snprintf_long_long_int_format in
25102   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
25103 $as_echo "cannot test (not on host machine)" >&6; };;
25104   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
25105 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
25106          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
25107   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
25108 $as_echo "none" >&6; };;
25109 esac
25110     if test "$LONG_LONG_INT_FORMAT" = ""; then
25111       # Force usage of our own snprintf, since system snprintf is broken
25112       pgac_need_repl_snprintf=yes
25113       LONG_LONG_INT_FORMAT='%lld'
25114     fi
25115   else
25116     # Here if we previously decided we needed to use our own snprintf
25117     LONG_LONG_INT_FORMAT='%lld'
25118   fi
25119   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
25120   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
25121   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
25122 else
25123   # Here if we are not using 'long long int' at all
25124   INT64_FORMAT='"%ld"'
25125   UINT64_FORMAT='"%lu"'
25126 fi
25127
25128
25129 cat >>confdefs.h <<_ACEOF
25130 #define INT64_FORMAT $INT64_FORMAT
25131 _ACEOF
25132
25133
25134
25135 cat >>confdefs.h <<_ACEOF
25136 #define UINT64_FORMAT $UINT64_FORMAT
25137 _ACEOF
25138
25139
25140 # Now we have checked all the reasons to replace snprintf
25141 if test $pgac_need_repl_snprintf = yes; then
25142
25143 cat >>confdefs.h <<\_ACEOF
25144 #define USE_REPL_SNPRINTF 1
25145 _ACEOF
25146
25147   case " $LIBOBJS " in
25148   *" snprintf.$ac_objext "* ) ;;
25149   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
25150  ;;
25151 esac
25152
25153 fi
25154
25155 # Check size of void *, size_t (enables tweaks for > 32bit address space)
25156 # The cast to long int works around a bug in the HP C Compiler
25157 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25158 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25159 # This bug is HP SR number 8606223364.
25160 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
25161 $as_echo_n "checking size of void *... " >&6; }
25162 if test "${ac_cv_sizeof_void_p+set}" = set; then
25163   $as_echo_n "(cached) " >&6
25164 else
25165   if test "$cross_compiling" = yes; then
25166   # Depending upon the size, compute the lo and hi bounds.
25167 cat >conftest.$ac_ext <<_ACEOF
25168 /* confdefs.h.  */
25169 _ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h.  */
25173 $ac_includes_default
25174 int
25175 main ()
25176 {
25177 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
25178 test_array [0] = 0
25179
25180   ;
25181   return 0;
25182 }
25183 _ACEOF
25184 rm -f conftest.$ac_objext
25185 if { (ac_try="$ac_compile"
25186 case "(($ac_try" in
25187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188   *) ac_try_echo=$ac_try;;
25189 esac
25190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25191 $as_echo "$ac_try_echo") >&5
25192   (eval "$ac_compile") 2>conftest.er1
25193   ac_status=$?
25194   grep -v '^ *+' conftest.er1 >conftest.err
25195   rm -f conftest.er1
25196   cat conftest.err >&5
25197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198   (exit $ac_status); } && {
25199          test -z "$ac_c_werror_flag" ||
25200          test ! -s conftest.err
25201        } && test -s conftest.$ac_objext; then
25202   ac_lo=0 ac_mid=0
25203   while :; do
25204     cat >conftest.$ac_ext <<_ACEOF
25205 /* confdefs.h.  */
25206 _ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h.  */
25210 $ac_includes_default
25211 int
25212 main ()
25213 {
25214 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25215 test_array [0] = 0
25216
25217   ;
25218   return 0;
25219 }
25220 _ACEOF
25221 rm -f conftest.$ac_objext
25222 if { (ac_try="$ac_compile"
25223 case "(($ac_try" in
25224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225   *) ac_try_echo=$ac_try;;
25226 esac
25227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25228 $as_echo "$ac_try_echo") >&5
25229   (eval "$ac_compile") 2>conftest.er1
25230   ac_status=$?
25231   grep -v '^ *+' conftest.er1 >conftest.err
25232   rm -f conftest.er1
25233   cat conftest.err >&5
25234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235   (exit $ac_status); } && {
25236          test -z "$ac_c_werror_flag" ||
25237          test ! -s conftest.err
25238        } && test -s conftest.$ac_objext; then
25239   ac_hi=$ac_mid; break
25240 else
25241   $as_echo "$as_me: failed program was:" >&5
25242 sed 's/^/| /' conftest.$ac_ext >&5
25243
25244         ac_lo=`expr $ac_mid + 1`
25245                         if test $ac_lo -le $ac_mid; then
25246                           ac_lo= ac_hi=
25247                           break
25248                         fi
25249                         ac_mid=`expr 2 '*' $ac_mid + 1`
25250 fi
25251
25252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25253   done
25254 else
25255   $as_echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25257
25258         cat >conftest.$ac_ext <<_ACEOF
25259 /* confdefs.h.  */
25260 _ACEOF
25261 cat confdefs.h >>conftest.$ac_ext
25262 cat >>conftest.$ac_ext <<_ACEOF
25263 /* end confdefs.h.  */
25264 $ac_includes_default
25265 int
25266 main ()
25267 {
25268 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
25269 test_array [0] = 0
25270
25271   ;
25272   return 0;
25273 }
25274 _ACEOF
25275 rm -f conftest.$ac_objext
25276 if { (ac_try="$ac_compile"
25277 case "(($ac_try" in
25278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25279   *) ac_try_echo=$ac_try;;
25280 esac
25281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25282 $as_echo "$ac_try_echo") >&5
25283   (eval "$ac_compile") 2>conftest.er1
25284   ac_status=$?
25285   grep -v '^ *+' conftest.er1 >conftest.err
25286   rm -f conftest.er1
25287   cat conftest.err >&5
25288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); } && {
25290          test -z "$ac_c_werror_flag" ||
25291          test ! -s conftest.err
25292        } && test -s conftest.$ac_objext; then
25293   ac_hi=-1 ac_mid=-1
25294   while :; do
25295     cat >conftest.$ac_ext <<_ACEOF
25296 /* confdefs.h.  */
25297 _ACEOF
25298 cat confdefs.h >>conftest.$ac_ext
25299 cat >>conftest.$ac_ext <<_ACEOF
25300 /* end confdefs.h.  */
25301 $ac_includes_default
25302 int
25303 main ()
25304 {
25305 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
25306 test_array [0] = 0
25307
25308   ;
25309   return 0;
25310 }
25311 _ACEOF
25312 rm -f conftest.$ac_objext
25313 if { (ac_try="$ac_compile"
25314 case "(($ac_try" in
25315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316   *) ac_try_echo=$ac_try;;
25317 esac
25318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25319 $as_echo "$ac_try_echo") >&5
25320   (eval "$ac_compile") 2>conftest.er1
25321   ac_status=$?
25322   grep -v '^ *+' conftest.er1 >conftest.err
25323   rm -f conftest.er1
25324   cat conftest.err >&5
25325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326   (exit $ac_status); } && {
25327          test -z "$ac_c_werror_flag" ||
25328          test ! -s conftest.err
25329        } && test -s conftest.$ac_objext; then
25330   ac_lo=$ac_mid; break
25331 else
25332   $as_echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25334
25335         ac_hi=`expr '(' $ac_mid ')' - 1`
25336                         if test $ac_mid -le $ac_hi; then
25337                           ac_lo= ac_hi=
25338                           break
25339                         fi
25340                         ac_mid=`expr 2 '*' $ac_mid`
25341 fi
25342
25343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25344   done
25345 else
25346   $as_echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25348
25349         ac_lo= ac_hi=
25350 fi
25351
25352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25353 fi
25354
25355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25356 # Binary search between lo and hi bounds.
25357 while test "x$ac_lo" != "x$ac_hi"; do
25358   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25359   cat >conftest.$ac_ext <<_ACEOF
25360 /* confdefs.h.  */
25361 _ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h.  */
25365 $ac_includes_default
25366 int
25367 main ()
25368 {
25369 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25370 test_array [0] = 0
25371
25372   ;
25373   return 0;
25374 }
25375 _ACEOF
25376 rm -f conftest.$ac_objext
25377 if { (ac_try="$ac_compile"
25378 case "(($ac_try" in
25379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380   *) ac_try_echo=$ac_try;;
25381 esac
25382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25383 $as_echo "$ac_try_echo") >&5
25384   (eval "$ac_compile") 2>conftest.er1
25385   ac_status=$?
25386   grep -v '^ *+' conftest.er1 >conftest.err
25387   rm -f conftest.er1
25388   cat conftest.err >&5
25389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); } && {
25391          test -z "$ac_c_werror_flag" ||
25392          test ! -s conftest.err
25393        } && test -s conftest.$ac_objext; then
25394   ac_hi=$ac_mid
25395 else
25396   $as_echo "$as_me: failed program was:" >&5
25397 sed 's/^/| /' conftest.$ac_ext >&5
25398
25399         ac_lo=`expr '(' $ac_mid ')' + 1`
25400 fi
25401
25402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25403 done
25404 case $ac_lo in
25405 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25406 '') if test "$ac_cv_type_void_p" = yes; then
25407      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25409 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25410 See \`config.log' for more details." >&5
25411 $as_echo "$as_me: error: cannot compute sizeof (void *)
25412 See \`config.log' for more details." >&2;}
25413    { (exit 77); exit 77; }; }; }
25414    else
25415      ac_cv_sizeof_void_p=0
25416    fi ;;
25417 esac
25418 else
25419   cat >conftest.$ac_ext <<_ACEOF
25420 /* confdefs.h.  */
25421 _ACEOF
25422 cat confdefs.h >>conftest.$ac_ext
25423 cat >>conftest.$ac_ext <<_ACEOF
25424 /* end confdefs.h.  */
25425 $ac_includes_default
25426 static long int longval () { return (long int) (sizeof (void *)); }
25427 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
25428 #include <stdio.h>
25429 #include <stdlib.h>
25430 int
25431 main ()
25432 {
25433
25434   FILE *f = fopen ("conftest.val", "w");
25435   if (! f)
25436     return 1;
25437   if (((long int) (sizeof (void *))) < 0)
25438     {
25439       long int i = longval ();
25440       if (i != ((long int) (sizeof (void *))))
25441         return 1;
25442       fprintf (f, "%ld", i);
25443     }
25444   else
25445     {
25446       unsigned long int i = ulongval ();
25447       if (i != ((long int) (sizeof (void *))))
25448         return 1;
25449       fprintf (f, "%lu", i);
25450     }
25451   /* Do not output a trailing newline, as this causes \r\n confusion
25452      on some platforms.  */
25453   return ferror (f) || fclose (f) != 0;
25454
25455   ;
25456   return 0;
25457 }
25458 _ACEOF
25459 rm -f conftest$ac_exeext
25460 if { (ac_try="$ac_link"
25461 case "(($ac_try" in
25462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25463   *) ac_try_echo=$ac_try;;
25464 esac
25465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25466 $as_echo "$ac_try_echo") >&5
25467   (eval "$ac_link") 2>&5
25468   ac_status=$?
25469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25471   { (case "(($ac_try" in
25472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25473   *) ac_try_echo=$ac_try;;
25474 esac
25475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25476 $as_echo "$ac_try_echo") >&5
25477   (eval "$ac_try") 2>&5
25478   ac_status=$?
25479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480   (exit $ac_status); }; }; then
25481   ac_cv_sizeof_void_p=`cat conftest.val`
25482 else
25483   $as_echo "$as_me: program exited with status $ac_status" >&5
25484 $as_echo "$as_me: failed program was:" >&5
25485 sed 's/^/| /' conftest.$ac_ext >&5
25486
25487 ( exit $ac_status )
25488 if test "$ac_cv_type_void_p" = yes; then
25489      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25491 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25492 See \`config.log' for more details." >&5
25493 $as_echo "$as_me: error: cannot compute sizeof (void *)
25494 See \`config.log' for more details." >&2;}
25495    { (exit 77); exit 77; }; }; }
25496    else
25497      ac_cv_sizeof_void_p=0
25498    fi
25499 fi
25500 rm -rf conftest.dSYM
25501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25502 fi
25503 rm -f conftest.val
25504 fi
25505 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25506 $as_echo "$ac_cv_sizeof_void_p" >&6; }
25507
25508
25509
25510 cat >>confdefs.h <<_ACEOF
25511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25512 _ACEOF
25513
25514
25515 # The cast to long int works around a bug in the HP C Compiler
25516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25518 # This bug is HP SR number 8606223364.
25519 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
25520 $as_echo_n "checking size of size_t... " >&6; }
25521 if test "${ac_cv_sizeof_size_t+set}" = set; then
25522   $as_echo_n "(cached) " >&6
25523 else
25524   if test "$cross_compiling" = yes; then
25525   # Depending upon the size, compute the lo and hi bounds.
25526 cat >conftest.$ac_ext <<_ACEOF
25527 /* confdefs.h.  */
25528 _ACEOF
25529 cat confdefs.h >>conftest.$ac_ext
25530 cat >>conftest.$ac_ext <<_ACEOF
25531 /* end confdefs.h.  */
25532 $ac_includes_default
25533 int
25534 main ()
25535 {
25536 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
25537 test_array [0] = 0
25538
25539   ;
25540   return 0;
25541 }
25542 _ACEOF
25543 rm -f conftest.$ac_objext
25544 if { (ac_try="$ac_compile"
25545 case "(($ac_try" in
25546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25547   *) ac_try_echo=$ac_try;;
25548 esac
25549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25550 $as_echo "$ac_try_echo") >&5
25551   (eval "$ac_compile") 2>conftest.er1
25552   ac_status=$?
25553   grep -v '^ *+' conftest.er1 >conftest.err
25554   rm -f conftest.er1
25555   cat conftest.err >&5
25556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557   (exit $ac_status); } && {
25558          test -z "$ac_c_werror_flag" ||
25559          test ! -s conftest.err
25560        } && test -s conftest.$ac_objext; then
25561   ac_lo=0 ac_mid=0
25562   while :; do
25563     cat >conftest.$ac_ext <<_ACEOF
25564 /* confdefs.h.  */
25565 _ACEOF
25566 cat confdefs.h >>conftest.$ac_ext
25567 cat >>conftest.$ac_ext <<_ACEOF
25568 /* end confdefs.h.  */
25569 $ac_includes_default
25570 int
25571 main ()
25572 {
25573 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25574 test_array [0] = 0
25575
25576   ;
25577   return 0;
25578 }
25579 _ACEOF
25580 rm -f conftest.$ac_objext
25581 if { (ac_try="$ac_compile"
25582 case "(($ac_try" in
25583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584   *) ac_try_echo=$ac_try;;
25585 esac
25586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25587 $as_echo "$ac_try_echo") >&5
25588   (eval "$ac_compile") 2>conftest.er1
25589   ac_status=$?
25590   grep -v '^ *+' conftest.er1 >conftest.err
25591   rm -f conftest.er1
25592   cat conftest.err >&5
25593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); } && {
25595          test -z "$ac_c_werror_flag" ||
25596          test ! -s conftest.err
25597        } && test -s conftest.$ac_objext; then
25598   ac_hi=$ac_mid; break
25599 else
25600   $as_echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25602
25603         ac_lo=`expr $ac_mid + 1`
25604                         if test $ac_lo -le $ac_mid; then
25605                           ac_lo= ac_hi=
25606                           break
25607                         fi
25608                         ac_mid=`expr 2 '*' $ac_mid + 1`
25609 fi
25610
25611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25612   done
25613 else
25614   $as_echo "$as_me: failed program was:" >&5
25615 sed 's/^/| /' conftest.$ac_ext >&5
25616
25617         cat >conftest.$ac_ext <<_ACEOF
25618 /* confdefs.h.  */
25619 _ACEOF
25620 cat confdefs.h >>conftest.$ac_ext
25621 cat >>conftest.$ac_ext <<_ACEOF
25622 /* end confdefs.h.  */
25623 $ac_includes_default
25624 int
25625 main ()
25626 {
25627 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25628 test_array [0] = 0
25629
25630   ;
25631   return 0;
25632 }
25633 _ACEOF
25634 rm -f conftest.$ac_objext
25635 if { (ac_try="$ac_compile"
25636 case "(($ac_try" in
25637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25638   *) ac_try_echo=$ac_try;;
25639 esac
25640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25641 $as_echo "$ac_try_echo") >&5
25642   (eval "$ac_compile") 2>conftest.er1
25643   ac_status=$?
25644   grep -v '^ *+' conftest.er1 >conftest.err
25645   rm -f conftest.er1
25646   cat conftest.err >&5
25647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648   (exit $ac_status); } && {
25649          test -z "$ac_c_werror_flag" ||
25650          test ! -s conftest.err
25651        } && test -s conftest.$ac_objext; then
25652   ac_hi=-1 ac_mid=-1
25653   while :; do
25654     cat >conftest.$ac_ext <<_ACEOF
25655 /* confdefs.h.  */
25656 _ACEOF
25657 cat confdefs.h >>conftest.$ac_ext
25658 cat >>conftest.$ac_ext <<_ACEOF
25659 /* end confdefs.h.  */
25660 $ac_includes_default
25661 int
25662 main ()
25663 {
25664 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25665 test_array [0] = 0
25666
25667   ;
25668   return 0;
25669 }
25670 _ACEOF
25671 rm -f conftest.$ac_objext
25672 if { (ac_try="$ac_compile"
25673 case "(($ac_try" in
25674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675   *) ac_try_echo=$ac_try;;
25676 esac
25677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25678 $as_echo "$ac_try_echo") >&5
25679   (eval "$ac_compile") 2>conftest.er1
25680   ac_status=$?
25681   grep -v '^ *+' conftest.er1 >conftest.err
25682   rm -f conftest.er1
25683   cat conftest.err >&5
25684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685   (exit $ac_status); } && {
25686          test -z "$ac_c_werror_flag" ||
25687          test ! -s conftest.err
25688        } && test -s conftest.$ac_objext; then
25689   ac_lo=$ac_mid; break
25690 else
25691   $as_echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25693
25694         ac_hi=`expr '(' $ac_mid ')' - 1`
25695                         if test $ac_mid -le $ac_hi; then
25696                           ac_lo= ac_hi=
25697                           break
25698                         fi
25699                         ac_mid=`expr 2 '*' $ac_mid`
25700 fi
25701
25702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25703   done
25704 else
25705   $as_echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25707
25708         ac_lo= ac_hi=
25709 fi
25710
25711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25712 fi
25713
25714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25715 # Binary search between lo and hi bounds.
25716 while test "x$ac_lo" != "x$ac_hi"; do
25717   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25718   cat >conftest.$ac_ext <<_ACEOF
25719 /* confdefs.h.  */
25720 _ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h.  */
25724 $ac_includes_default
25725 int
25726 main ()
25727 {
25728 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25729 test_array [0] = 0
25730
25731   ;
25732   return 0;
25733 }
25734 _ACEOF
25735 rm -f conftest.$ac_objext
25736 if { (ac_try="$ac_compile"
25737 case "(($ac_try" in
25738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25739   *) ac_try_echo=$ac_try;;
25740 esac
25741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25742 $as_echo "$ac_try_echo") >&5
25743   (eval "$ac_compile") 2>conftest.er1
25744   ac_status=$?
25745   grep -v '^ *+' conftest.er1 >conftest.err
25746   rm -f conftest.er1
25747   cat conftest.err >&5
25748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749   (exit $ac_status); } && {
25750          test -z "$ac_c_werror_flag" ||
25751          test ! -s conftest.err
25752        } && test -s conftest.$ac_objext; then
25753   ac_hi=$ac_mid
25754 else
25755   $as_echo "$as_me: failed program was:" >&5
25756 sed 's/^/| /' conftest.$ac_ext >&5
25757
25758         ac_lo=`expr '(' $ac_mid ')' + 1`
25759 fi
25760
25761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25762 done
25763 case $ac_lo in
25764 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25765 '') if test "$ac_cv_type_size_t" = yes; then
25766      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25768 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25769 See \`config.log' for more details." >&5
25770 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25771 See \`config.log' for more details." >&2;}
25772    { (exit 77); exit 77; }; }; }
25773    else
25774      ac_cv_sizeof_size_t=0
25775    fi ;;
25776 esac
25777 else
25778   cat >conftest.$ac_ext <<_ACEOF
25779 /* confdefs.h.  */
25780 _ACEOF
25781 cat confdefs.h >>conftest.$ac_ext
25782 cat >>conftest.$ac_ext <<_ACEOF
25783 /* end confdefs.h.  */
25784 $ac_includes_default
25785 static long int longval () { return (long int) (sizeof (size_t)); }
25786 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25787 #include <stdio.h>
25788 #include <stdlib.h>
25789 int
25790 main ()
25791 {
25792
25793   FILE *f = fopen ("conftest.val", "w");
25794   if (! f)
25795     return 1;
25796   if (((long int) (sizeof (size_t))) < 0)
25797     {
25798       long int i = longval ();
25799       if (i != ((long int) (sizeof (size_t))))
25800         return 1;
25801       fprintf (f, "%ld", i);
25802     }
25803   else
25804     {
25805       unsigned long int i = ulongval ();
25806       if (i != ((long int) (sizeof (size_t))))
25807         return 1;
25808       fprintf (f, "%lu", i);
25809     }
25810   /* Do not output a trailing newline, as this causes \r\n confusion
25811      on some platforms.  */
25812   return ferror (f) || fclose (f) != 0;
25813
25814   ;
25815   return 0;
25816 }
25817 _ACEOF
25818 rm -f conftest$ac_exeext
25819 if { (ac_try="$ac_link"
25820 case "(($ac_try" in
25821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25822   *) ac_try_echo=$ac_try;;
25823 esac
25824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25825 $as_echo "$ac_try_echo") >&5
25826   (eval "$ac_link") 2>&5
25827   ac_status=$?
25828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25830   { (case "(($ac_try" in
25831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25832   *) ac_try_echo=$ac_try;;
25833 esac
25834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25835 $as_echo "$ac_try_echo") >&5
25836   (eval "$ac_try") 2>&5
25837   ac_status=$?
25838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839   (exit $ac_status); }; }; then
25840   ac_cv_sizeof_size_t=`cat conftest.val`
25841 else
25842   $as_echo "$as_me: program exited with status $ac_status" >&5
25843 $as_echo "$as_me: failed program was:" >&5
25844 sed 's/^/| /' conftest.$ac_ext >&5
25845
25846 ( exit $ac_status )
25847 if test "$ac_cv_type_size_t" = yes; then
25848      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25850 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25851 See \`config.log' for more details." >&5
25852 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25853 See \`config.log' for more details." >&2;}
25854    { (exit 77); exit 77; }; }; }
25855    else
25856      ac_cv_sizeof_size_t=0
25857    fi
25858 fi
25859 rm -rf conftest.dSYM
25860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25861 fi
25862 rm -f conftest.val
25863 fi
25864 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25865 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25866
25867
25868
25869 cat >>confdefs.h <<_ACEOF
25870 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25871 _ACEOF
25872
25873
25874 # The cast to long int works around a bug in the HP C Compiler
25875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25877 # This bug is HP SR number 8606223364.
25878 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25879 $as_echo_n "checking size of long... " >&6; }
25880 if test "${ac_cv_sizeof_long+set}" = set; then
25881   $as_echo_n "(cached) " >&6
25882 else
25883   if test "$cross_compiling" = yes; then
25884   # Depending upon the size, compute the lo and hi bounds.
25885 cat >conftest.$ac_ext <<_ACEOF
25886 /* confdefs.h.  */
25887 _ACEOF
25888 cat confdefs.h >>conftest.$ac_ext
25889 cat >>conftest.$ac_ext <<_ACEOF
25890 /* end confdefs.h.  */
25891 $ac_includes_default
25892 int
25893 main ()
25894 {
25895 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25896 test_array [0] = 0
25897
25898   ;
25899   return 0;
25900 }
25901 _ACEOF
25902 rm -f conftest.$ac_objext
25903 if { (ac_try="$ac_compile"
25904 case "(($ac_try" in
25905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25906   *) ac_try_echo=$ac_try;;
25907 esac
25908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25909 $as_echo "$ac_try_echo") >&5
25910   (eval "$ac_compile") 2>conftest.er1
25911   ac_status=$?
25912   grep -v '^ *+' conftest.er1 >conftest.err
25913   rm -f conftest.er1
25914   cat conftest.err >&5
25915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); } && {
25917          test -z "$ac_c_werror_flag" ||
25918          test ! -s conftest.err
25919        } && test -s conftest.$ac_objext; then
25920   ac_lo=0 ac_mid=0
25921   while :; do
25922     cat >conftest.$ac_ext <<_ACEOF
25923 /* confdefs.h.  */
25924 _ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h.  */
25928 $ac_includes_default
25929 int
25930 main ()
25931 {
25932 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25933 test_array [0] = 0
25934
25935   ;
25936   return 0;
25937 }
25938 _ACEOF
25939 rm -f conftest.$ac_objext
25940 if { (ac_try="$ac_compile"
25941 case "(($ac_try" in
25942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25943   *) ac_try_echo=$ac_try;;
25944 esac
25945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25946 $as_echo "$ac_try_echo") >&5
25947   (eval "$ac_compile") 2>conftest.er1
25948   ac_status=$?
25949   grep -v '^ *+' conftest.er1 >conftest.err
25950   rm -f conftest.er1
25951   cat conftest.err >&5
25952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953   (exit $ac_status); } && {
25954          test -z "$ac_c_werror_flag" ||
25955          test ! -s conftest.err
25956        } && test -s conftest.$ac_objext; then
25957   ac_hi=$ac_mid; break
25958 else
25959   $as_echo "$as_me: failed program was:" >&5
25960 sed 's/^/| /' conftest.$ac_ext >&5
25961
25962         ac_lo=`expr $ac_mid + 1`
25963                         if test $ac_lo -le $ac_mid; then
25964                           ac_lo= ac_hi=
25965                           break
25966                         fi
25967                         ac_mid=`expr 2 '*' $ac_mid + 1`
25968 fi
25969
25970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25971   done
25972 else
25973   $as_echo "$as_me: failed program was:" >&5
25974 sed 's/^/| /' conftest.$ac_ext >&5
25975
25976         cat >conftest.$ac_ext <<_ACEOF
25977 /* confdefs.h.  */
25978 _ACEOF
25979 cat confdefs.h >>conftest.$ac_ext
25980 cat >>conftest.$ac_ext <<_ACEOF
25981 /* end confdefs.h.  */
25982 $ac_includes_default
25983 int
25984 main ()
25985 {
25986 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25987 test_array [0] = 0
25988
25989   ;
25990   return 0;
25991 }
25992 _ACEOF
25993 rm -f conftest.$ac_objext
25994 if { (ac_try="$ac_compile"
25995 case "(($ac_try" in
25996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25997   *) ac_try_echo=$ac_try;;
25998 esac
25999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26000 $as_echo "$ac_try_echo") >&5
26001   (eval "$ac_compile") 2>conftest.er1
26002   ac_status=$?
26003   grep -v '^ *+' conftest.er1 >conftest.err
26004   rm -f conftest.er1
26005   cat conftest.err >&5
26006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007   (exit $ac_status); } && {
26008          test -z "$ac_c_werror_flag" ||
26009          test ! -s conftest.err
26010        } && test -s conftest.$ac_objext; then
26011   ac_hi=-1 ac_mid=-1
26012   while :; do
26013     cat >conftest.$ac_ext <<_ACEOF
26014 /* confdefs.h.  */
26015 _ACEOF
26016 cat confdefs.h >>conftest.$ac_ext
26017 cat >>conftest.$ac_ext <<_ACEOF
26018 /* end confdefs.h.  */
26019 $ac_includes_default
26020 int
26021 main ()
26022 {
26023 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
26024 test_array [0] = 0
26025
26026   ;
26027   return 0;
26028 }
26029 _ACEOF
26030 rm -f conftest.$ac_objext
26031 if { (ac_try="$ac_compile"
26032 case "(($ac_try" in
26033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26034   *) ac_try_echo=$ac_try;;
26035 esac
26036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26037 $as_echo "$ac_try_echo") >&5
26038   (eval "$ac_compile") 2>conftest.er1
26039   ac_status=$?
26040   grep -v '^ *+' conftest.er1 >conftest.err
26041   rm -f conftest.er1
26042   cat conftest.err >&5
26043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044   (exit $ac_status); } && {
26045          test -z "$ac_c_werror_flag" ||
26046          test ! -s conftest.err
26047        } && test -s conftest.$ac_objext; then
26048   ac_lo=$ac_mid; break
26049 else
26050   $as_echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26052
26053         ac_hi=`expr '(' $ac_mid ')' - 1`
26054                         if test $ac_mid -le $ac_hi; then
26055                           ac_lo= ac_hi=
26056                           break
26057                         fi
26058                         ac_mid=`expr 2 '*' $ac_mid`
26059 fi
26060
26061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26062   done
26063 else
26064   $as_echo "$as_me: failed program was:" >&5
26065 sed 's/^/| /' conftest.$ac_ext >&5
26066
26067         ac_lo= ac_hi=
26068 fi
26069
26070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26071 fi
26072
26073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26074 # Binary search between lo and hi bounds.
26075 while test "x$ac_lo" != "x$ac_hi"; do
26076   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26077   cat >conftest.$ac_ext <<_ACEOF
26078 /* confdefs.h.  */
26079 _ACEOF
26080 cat confdefs.h >>conftest.$ac_ext
26081 cat >>conftest.$ac_ext <<_ACEOF
26082 /* end confdefs.h.  */
26083 $ac_includes_default
26084 int
26085 main ()
26086 {
26087 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26088 test_array [0] = 0
26089
26090   ;
26091   return 0;
26092 }
26093 _ACEOF
26094 rm -f conftest.$ac_objext
26095 if { (ac_try="$ac_compile"
26096 case "(($ac_try" in
26097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26098   *) ac_try_echo=$ac_try;;
26099 esac
26100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26101 $as_echo "$ac_try_echo") >&5
26102   (eval "$ac_compile") 2>conftest.er1
26103   ac_status=$?
26104   grep -v '^ *+' conftest.er1 >conftest.err
26105   rm -f conftest.er1
26106   cat conftest.err >&5
26107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108   (exit $ac_status); } && {
26109          test -z "$ac_c_werror_flag" ||
26110          test ! -s conftest.err
26111        } && test -s conftest.$ac_objext; then
26112   ac_hi=$ac_mid
26113 else
26114   $as_echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26116
26117         ac_lo=`expr '(' $ac_mid ')' + 1`
26118 fi
26119
26120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26121 done
26122 case $ac_lo in
26123 ?*) ac_cv_sizeof_long=$ac_lo;;
26124 '') if test "$ac_cv_type_long" = yes; then
26125      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26127 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26128 See \`config.log' for more details." >&5
26129 $as_echo "$as_me: error: cannot compute sizeof (long)
26130 See \`config.log' for more details." >&2;}
26131    { (exit 77); exit 77; }; }; }
26132    else
26133      ac_cv_sizeof_long=0
26134    fi ;;
26135 esac
26136 else
26137   cat >conftest.$ac_ext <<_ACEOF
26138 /* confdefs.h.  */
26139 _ACEOF
26140 cat confdefs.h >>conftest.$ac_ext
26141 cat >>conftest.$ac_ext <<_ACEOF
26142 /* end confdefs.h.  */
26143 $ac_includes_default
26144 static long int longval () { return (long int) (sizeof (long)); }
26145 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
26146 #include <stdio.h>
26147 #include <stdlib.h>
26148 int
26149 main ()
26150 {
26151
26152   FILE *f = fopen ("conftest.val", "w");
26153   if (! f)
26154     return 1;
26155   if (((long int) (sizeof (long))) < 0)
26156     {
26157       long int i = longval ();
26158       if (i != ((long int) (sizeof (long))))
26159         return 1;
26160       fprintf (f, "%ld", i);
26161     }
26162   else
26163     {
26164       unsigned long int i = ulongval ();
26165       if (i != ((long int) (sizeof (long))))
26166         return 1;
26167       fprintf (f, "%lu", i);
26168     }
26169   /* Do not output a trailing newline, as this causes \r\n confusion
26170      on some platforms.  */
26171   return ferror (f) || fclose (f) != 0;
26172
26173   ;
26174   return 0;
26175 }
26176 _ACEOF
26177 rm -f conftest$ac_exeext
26178 if { (ac_try="$ac_link"
26179 case "(($ac_try" in
26180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26181   *) ac_try_echo=$ac_try;;
26182 esac
26183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26184 $as_echo "$ac_try_echo") >&5
26185   (eval "$ac_link") 2>&5
26186   ac_status=$?
26187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26189   { (case "(($ac_try" in
26190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26191   *) ac_try_echo=$ac_try;;
26192 esac
26193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26194 $as_echo "$ac_try_echo") >&5
26195   (eval "$ac_try") 2>&5
26196   ac_status=$?
26197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198   (exit $ac_status); }; }; then
26199   ac_cv_sizeof_long=`cat conftest.val`
26200 else
26201   $as_echo "$as_me: program exited with status $ac_status" >&5
26202 $as_echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205 ( exit $ac_status )
26206 if test "$ac_cv_type_long" = yes; then
26207      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26209 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26210 See \`config.log' for more details." >&5
26211 $as_echo "$as_me: error: cannot compute sizeof (long)
26212 See \`config.log' for more details." >&2;}
26213    { (exit 77); exit 77; }; }; }
26214    else
26215      ac_cv_sizeof_long=0
26216    fi
26217 fi
26218 rm -rf conftest.dSYM
26219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26220 fi
26221 rm -f conftest.val
26222 fi
26223 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26224 $as_echo "$ac_cv_sizeof_long" >&6; }
26225
26226
26227
26228 cat >>confdefs.h <<_ACEOF
26229 #define SIZEOF_LONG $ac_cv_sizeof_long
26230 _ACEOF
26231
26232
26233
26234 # Decide whether float4 is passed by value: user-selectable, enabled by default
26235 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
26236 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
26237
26238
26239 # Check whether --enable-float4-byval was given.
26240 if test "${enable_float4_byval+set}" = set; then
26241   enableval=$enable_float4_byval;
26242   case $enableval in
26243     yes)
26244
26245 cat >>confdefs.h <<\_ACEOF
26246 #define USE_FLOAT4_BYVAL 1
26247 _ACEOF
26248
26249                float4passbyval=true
26250       ;;
26251     no)
26252       float4passbyval=false
26253       ;;
26254     *)
26255       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
26256 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
26257    { (exit 1); exit 1; }; }
26258       ;;
26259   esac
26260
26261 else
26262   enable_float4_byval=yes
26263
26264 cat >>confdefs.h <<\_ACEOF
26265 #define USE_FLOAT4_BYVAL 1
26266 _ACEOF
26267
26268                float4passbyval=true
26269 fi
26270
26271
26272 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
26273 $as_echo "$enable_float4_byval" >&6; }
26274
26275 cat >>confdefs.h <<_ACEOF
26276 #define FLOAT4PASSBYVAL $float4passbyval
26277 _ACEOF
26278
26279
26280 # Decide whether float8 is passed by value.
26281 # Note: this setting also controls int8 and related types such as timestamp.
26282 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
26283 # If not, trying to select it is an error.
26284 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
26285 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
26286 if test $ac_cv_sizeof_void_p -ge 8 ; then
26287
26288
26289 # Check whether --enable-float8-byval was given.
26290 if test "${enable_float8_byval+set}" = set; then
26291   enableval=$enable_float8_byval;
26292   case $enableval in
26293     yes)
26294       :
26295       ;;
26296     no)
26297       :
26298       ;;
26299     *)
26300       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26301 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26302    { (exit 1); exit 1; }; }
26303       ;;
26304   esac
26305
26306 else
26307   enable_float8_byval=yes
26308
26309 fi
26310
26311
26312 else
26313
26314
26315 # Check whether --enable-float8-byval was given.
26316 if test "${enable_float8_byval+set}" = set; then
26317   enableval=$enable_float8_byval;
26318   case $enableval in
26319     yes)
26320       :
26321       ;;
26322     no)
26323       :
26324       ;;
26325     *)
26326       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26327 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26328    { (exit 1); exit 1; }; }
26329       ;;
26330   esac
26331
26332 else
26333   enable_float8_byval=no
26334
26335 fi
26336
26337
26338   if test "$enable_float8_byval" = yes ; then
26339     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
26340 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
26341    { (exit 1); exit 1; }; }
26342   fi
26343 fi
26344 if test "$enable_float8_byval" = yes ; then
26345
26346 cat >>confdefs.h <<\_ACEOF
26347 #define USE_FLOAT8_BYVAL 1
26348 _ACEOF
26349
26350   float8passbyval=true
26351 else
26352   float8passbyval=false
26353 fi
26354 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
26355 $as_echo "$enable_float8_byval" >&6; }
26356
26357 cat >>confdefs.h <<_ACEOF
26358 #define FLOAT8PASSBYVAL $float8passbyval
26359 _ACEOF
26360
26361
26362 # Determine memory alignment requirements for the basic C data types.
26363
26364 # The cast to long int works around a bug in the HP C Compiler,
26365 # see AC_CHECK_SIZEOF for more information.
26366 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
26367 $as_echo_n "checking alignment of short... " >&6; }
26368 if test "${ac_cv_alignof_short+set}" = set; then
26369   $as_echo_n "(cached) " >&6
26370 else
26371   if test "$cross_compiling" = yes; then
26372   # Depending upon the size, compute the lo and hi bounds.
26373 cat >conftest.$ac_ext <<_ACEOF
26374 /* confdefs.h.  */
26375 _ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h.  */
26379 $ac_includes_default
26380 #ifndef offsetof
26381 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26382 #endif
26383 typedef struct { char x; short y; } ac__type_alignof_;
26384 int
26385 main ()
26386 {
26387 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26388 test_array [0] = 0
26389
26390   ;
26391   return 0;
26392 }
26393 _ACEOF
26394 rm -f conftest.$ac_objext
26395 if { (ac_try="$ac_compile"
26396 case "(($ac_try" in
26397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398   *) ac_try_echo=$ac_try;;
26399 esac
26400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26401 $as_echo "$ac_try_echo") >&5
26402   (eval "$ac_compile") 2>conftest.er1
26403   ac_status=$?
26404   grep -v '^ *+' conftest.er1 >conftest.err
26405   rm -f conftest.er1
26406   cat conftest.err >&5
26407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408   (exit $ac_status); } && {
26409          test -z "$ac_c_werror_flag" ||
26410          test ! -s conftest.err
26411        } && test -s conftest.$ac_objext; then
26412   ac_lo=0 ac_mid=0
26413   while :; do
26414     cat >conftest.$ac_ext <<_ACEOF
26415 /* confdefs.h.  */
26416 _ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h.  */
26420 $ac_includes_default
26421 #ifndef offsetof
26422 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26423 #endif
26424 typedef struct { char x; short y; } ac__type_alignof_;
26425 int
26426 main ()
26427 {
26428 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26429 test_array [0] = 0
26430
26431   ;
26432   return 0;
26433 }
26434 _ACEOF
26435 rm -f conftest.$ac_objext
26436 if { (ac_try="$ac_compile"
26437 case "(($ac_try" in
26438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26439   *) ac_try_echo=$ac_try;;
26440 esac
26441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26442 $as_echo "$ac_try_echo") >&5
26443   (eval "$ac_compile") 2>conftest.er1
26444   ac_status=$?
26445   grep -v '^ *+' conftest.er1 >conftest.err
26446   rm -f conftest.er1
26447   cat conftest.err >&5
26448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449   (exit $ac_status); } && {
26450          test -z "$ac_c_werror_flag" ||
26451          test ! -s conftest.err
26452        } && test -s conftest.$ac_objext; then
26453   ac_hi=$ac_mid; break
26454 else
26455   $as_echo "$as_me: failed program was:" >&5
26456 sed 's/^/| /' conftest.$ac_ext >&5
26457
26458         ac_lo=`expr $ac_mid + 1`
26459                         if test $ac_lo -le $ac_mid; then
26460                           ac_lo= ac_hi=
26461                           break
26462                         fi
26463                         ac_mid=`expr 2 '*' $ac_mid + 1`
26464 fi
26465
26466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26467   done
26468 else
26469   $as_echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26471
26472         cat >conftest.$ac_ext <<_ACEOF
26473 /* confdefs.h.  */
26474 _ACEOF
26475 cat confdefs.h >>conftest.$ac_ext
26476 cat >>conftest.$ac_ext <<_ACEOF
26477 /* end confdefs.h.  */
26478 $ac_includes_default
26479 #ifndef offsetof
26480 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26481 #endif
26482 typedef struct { char x; short y; } ac__type_alignof_;
26483 int
26484 main ()
26485 {
26486 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26487 test_array [0] = 0
26488
26489   ;
26490   return 0;
26491 }
26492 _ACEOF
26493 rm -f conftest.$ac_objext
26494 if { (ac_try="$ac_compile"
26495 case "(($ac_try" in
26496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497   *) ac_try_echo=$ac_try;;
26498 esac
26499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26500 $as_echo "$ac_try_echo") >&5
26501   (eval "$ac_compile") 2>conftest.er1
26502   ac_status=$?
26503   grep -v '^ *+' conftest.er1 >conftest.err
26504   rm -f conftest.er1
26505   cat conftest.err >&5
26506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507   (exit $ac_status); } && {
26508          test -z "$ac_c_werror_flag" ||
26509          test ! -s conftest.err
26510        } && test -s conftest.$ac_objext; then
26511   ac_hi=-1 ac_mid=-1
26512   while :; do
26513     cat >conftest.$ac_ext <<_ACEOF
26514 /* confdefs.h.  */
26515 _ACEOF
26516 cat confdefs.h >>conftest.$ac_ext
26517 cat >>conftest.$ac_ext <<_ACEOF
26518 /* end confdefs.h.  */
26519 $ac_includes_default
26520 #ifndef offsetof
26521 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26522 #endif
26523 typedef struct { char x; short y; } ac__type_alignof_;
26524 int
26525 main ()
26526 {
26527 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26528 test_array [0] = 0
26529
26530   ;
26531   return 0;
26532 }
26533 _ACEOF
26534 rm -f conftest.$ac_objext
26535 if { (ac_try="$ac_compile"
26536 case "(($ac_try" in
26537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26538   *) ac_try_echo=$ac_try;;
26539 esac
26540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26541 $as_echo "$ac_try_echo") >&5
26542   (eval "$ac_compile") 2>conftest.er1
26543   ac_status=$?
26544   grep -v '^ *+' conftest.er1 >conftest.err
26545   rm -f conftest.er1
26546   cat conftest.err >&5
26547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548   (exit $ac_status); } && {
26549          test -z "$ac_c_werror_flag" ||
26550          test ! -s conftest.err
26551        } && test -s conftest.$ac_objext; then
26552   ac_lo=$ac_mid; break
26553 else
26554   $as_echo "$as_me: failed program was:" >&5
26555 sed 's/^/| /' conftest.$ac_ext >&5
26556
26557         ac_hi=`expr '(' $ac_mid ')' - 1`
26558                         if test $ac_mid -le $ac_hi; then
26559                           ac_lo= ac_hi=
26560                           break
26561                         fi
26562                         ac_mid=`expr 2 '*' $ac_mid`
26563 fi
26564
26565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26566   done
26567 else
26568   $as_echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26570
26571         ac_lo= ac_hi=
26572 fi
26573
26574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26575 fi
26576
26577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26578 # Binary search between lo and hi bounds.
26579 while test "x$ac_lo" != "x$ac_hi"; do
26580   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26581   cat >conftest.$ac_ext <<_ACEOF
26582 /* confdefs.h.  */
26583 _ACEOF
26584 cat confdefs.h >>conftest.$ac_ext
26585 cat >>conftest.$ac_ext <<_ACEOF
26586 /* end confdefs.h.  */
26587 $ac_includes_default
26588 #ifndef offsetof
26589 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26590 #endif
26591 typedef struct { char x; short y; } ac__type_alignof_;
26592 int
26593 main ()
26594 {
26595 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26596 test_array [0] = 0
26597
26598   ;
26599   return 0;
26600 }
26601 _ACEOF
26602 rm -f conftest.$ac_objext
26603 if { (ac_try="$ac_compile"
26604 case "(($ac_try" in
26605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26606   *) ac_try_echo=$ac_try;;
26607 esac
26608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26609 $as_echo "$ac_try_echo") >&5
26610   (eval "$ac_compile") 2>conftest.er1
26611   ac_status=$?
26612   grep -v '^ *+' conftest.er1 >conftest.err
26613   rm -f conftest.er1
26614   cat conftest.err >&5
26615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616   (exit $ac_status); } && {
26617          test -z "$ac_c_werror_flag" ||
26618          test ! -s conftest.err
26619        } && test -s conftest.$ac_objext; then
26620   ac_hi=$ac_mid
26621 else
26622   $as_echo "$as_me: failed program was:" >&5
26623 sed 's/^/| /' conftest.$ac_ext >&5
26624
26625         ac_lo=`expr '(' $ac_mid ')' + 1`
26626 fi
26627
26628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26629 done
26630 case $ac_lo in
26631 ?*) ac_cv_alignof_short=$ac_lo;;
26632 '') if test "$ac_cv_type_short" = yes; then
26633      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26635 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26636 See \`config.log' for more details." >&5
26637 $as_echo "$as_me: error: cannot compute alignment of short
26638 See \`config.log' for more details." >&2;}
26639    { (exit 77); exit 77; }; }; }
26640    else
26641      ac_cv_alignof_short=0
26642    fi ;;
26643 esac
26644 else
26645   cat >conftest.$ac_ext <<_ACEOF
26646 /* confdefs.h.  */
26647 _ACEOF
26648 cat confdefs.h >>conftest.$ac_ext
26649 cat >>conftest.$ac_ext <<_ACEOF
26650 /* end confdefs.h.  */
26651 $ac_includes_default
26652 #ifndef offsetof
26653 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26654 #endif
26655 typedef struct { char x; short y; } ac__type_alignof_;
26656 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26657 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26658 #include <stdio.h>
26659 #include <stdlib.h>
26660 int
26661 main ()
26662 {
26663
26664   FILE *f = fopen ("conftest.val", "w");
26665   if (! f)
26666     return 1;
26667   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26668     {
26669       long int i = longval ();
26670       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26671         return 1;
26672       fprintf (f, "%ld", i);
26673     }
26674   else
26675     {
26676       unsigned long int i = ulongval ();
26677       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26678         return 1;
26679       fprintf (f, "%lu", i);
26680     }
26681   /* Do not output a trailing newline, as this causes \r\n confusion
26682      on some platforms.  */
26683   return ferror (f) || fclose (f) != 0;
26684
26685   ;
26686   return 0;
26687 }
26688 _ACEOF
26689 rm -f conftest$ac_exeext
26690 if { (ac_try="$ac_link"
26691 case "(($ac_try" in
26692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693   *) ac_try_echo=$ac_try;;
26694 esac
26695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26696 $as_echo "$ac_try_echo") >&5
26697   (eval "$ac_link") 2>&5
26698   ac_status=$?
26699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26701   { (case "(($ac_try" in
26702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703   *) ac_try_echo=$ac_try;;
26704 esac
26705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26706 $as_echo "$ac_try_echo") >&5
26707   (eval "$ac_try") 2>&5
26708   ac_status=$?
26709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710   (exit $ac_status); }; }; then
26711   ac_cv_alignof_short=`cat conftest.val`
26712 else
26713   $as_echo "$as_me: program exited with status $ac_status" >&5
26714 $as_echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26716
26717 ( exit $ac_status )
26718 if test "$ac_cv_type_short" = yes; then
26719      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26721 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26722 See \`config.log' for more details." >&5
26723 $as_echo "$as_me: error: cannot compute alignment of short
26724 See \`config.log' for more details." >&2;}
26725    { (exit 77); exit 77; }; }; }
26726    else
26727      ac_cv_alignof_short=0
26728    fi
26729 fi
26730 rm -rf conftest.dSYM
26731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26732 fi
26733 rm -f conftest.val
26734 fi
26735 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26736 $as_echo "$ac_cv_alignof_short" >&6; }
26737
26738
26739
26740 cat >>confdefs.h <<_ACEOF
26741 #define ALIGNOF_SHORT $ac_cv_alignof_short
26742 _ACEOF
26743
26744
26745 # The cast to long int works around a bug in the HP C Compiler,
26746 # see AC_CHECK_SIZEOF for more information.
26747 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26748 $as_echo_n "checking alignment of int... " >&6; }
26749 if test "${ac_cv_alignof_int+set}" = set; then
26750   $as_echo_n "(cached) " >&6
26751 else
26752   if test "$cross_compiling" = yes; then
26753   # Depending upon the size, compute the lo and hi bounds.
26754 cat >conftest.$ac_ext <<_ACEOF
26755 /* confdefs.h.  */
26756 _ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h.  */
26760 $ac_includes_default
26761 #ifndef offsetof
26762 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26763 #endif
26764 typedef struct { char x; int y; } ac__type_alignof_;
26765 int
26766 main ()
26767 {
26768 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26769 test_array [0] = 0
26770
26771   ;
26772   return 0;
26773 }
26774 _ACEOF
26775 rm -f conftest.$ac_objext
26776 if { (ac_try="$ac_compile"
26777 case "(($ac_try" in
26778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26779   *) ac_try_echo=$ac_try;;
26780 esac
26781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26782 $as_echo "$ac_try_echo") >&5
26783   (eval "$ac_compile") 2>conftest.er1
26784   ac_status=$?
26785   grep -v '^ *+' conftest.er1 >conftest.err
26786   rm -f conftest.er1
26787   cat conftest.err >&5
26788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789   (exit $ac_status); } && {
26790          test -z "$ac_c_werror_flag" ||
26791          test ! -s conftest.err
26792        } && test -s conftest.$ac_objext; then
26793   ac_lo=0 ac_mid=0
26794   while :; do
26795     cat >conftest.$ac_ext <<_ACEOF
26796 /* confdefs.h.  */
26797 _ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h.  */
26801 $ac_includes_default
26802 #ifndef offsetof
26803 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26804 #endif
26805 typedef struct { char x; int y; } ac__type_alignof_;
26806 int
26807 main ()
26808 {
26809 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26810 test_array [0] = 0
26811
26812   ;
26813   return 0;
26814 }
26815 _ACEOF
26816 rm -f conftest.$ac_objext
26817 if { (ac_try="$ac_compile"
26818 case "(($ac_try" in
26819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820   *) ac_try_echo=$ac_try;;
26821 esac
26822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26823 $as_echo "$ac_try_echo") >&5
26824   (eval "$ac_compile") 2>conftest.er1
26825   ac_status=$?
26826   grep -v '^ *+' conftest.er1 >conftest.err
26827   rm -f conftest.er1
26828   cat conftest.err >&5
26829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830   (exit $ac_status); } && {
26831          test -z "$ac_c_werror_flag" ||
26832          test ! -s conftest.err
26833        } && test -s conftest.$ac_objext; then
26834   ac_hi=$ac_mid; break
26835 else
26836   $as_echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26838
26839         ac_lo=`expr $ac_mid + 1`
26840                         if test $ac_lo -le $ac_mid; then
26841                           ac_lo= ac_hi=
26842                           break
26843                         fi
26844                         ac_mid=`expr 2 '*' $ac_mid + 1`
26845 fi
26846
26847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26848   done
26849 else
26850   $as_echo "$as_me: failed program was:" >&5
26851 sed 's/^/| /' conftest.$ac_ext >&5
26852
26853         cat >conftest.$ac_ext <<_ACEOF
26854 /* confdefs.h.  */
26855 _ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h.  */
26859 $ac_includes_default
26860 #ifndef offsetof
26861 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26862 #endif
26863 typedef struct { char x; int y; } ac__type_alignof_;
26864 int
26865 main ()
26866 {
26867 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26868 test_array [0] = 0
26869
26870   ;
26871   return 0;
26872 }
26873 _ACEOF
26874 rm -f conftest.$ac_objext
26875 if { (ac_try="$ac_compile"
26876 case "(($ac_try" in
26877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26878   *) ac_try_echo=$ac_try;;
26879 esac
26880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26881 $as_echo "$ac_try_echo") >&5
26882   (eval "$ac_compile") 2>conftest.er1
26883   ac_status=$?
26884   grep -v '^ *+' conftest.er1 >conftest.err
26885   rm -f conftest.er1
26886   cat conftest.err >&5
26887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888   (exit $ac_status); } && {
26889          test -z "$ac_c_werror_flag" ||
26890          test ! -s conftest.err
26891        } && test -s conftest.$ac_objext; then
26892   ac_hi=-1 ac_mid=-1
26893   while :; do
26894     cat >conftest.$ac_ext <<_ACEOF
26895 /* confdefs.h.  */
26896 _ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h.  */
26900 $ac_includes_default
26901 #ifndef offsetof
26902 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26903 #endif
26904 typedef struct { char x; int y; } ac__type_alignof_;
26905 int
26906 main ()
26907 {
26908 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26909 test_array [0] = 0
26910
26911   ;
26912   return 0;
26913 }
26914 _ACEOF
26915 rm -f conftest.$ac_objext
26916 if { (ac_try="$ac_compile"
26917 case "(($ac_try" in
26918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919   *) ac_try_echo=$ac_try;;
26920 esac
26921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26922 $as_echo "$ac_try_echo") >&5
26923   (eval "$ac_compile") 2>conftest.er1
26924   ac_status=$?
26925   grep -v '^ *+' conftest.er1 >conftest.err
26926   rm -f conftest.er1
26927   cat conftest.err >&5
26928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929   (exit $ac_status); } && {
26930          test -z "$ac_c_werror_flag" ||
26931          test ! -s conftest.err
26932        } && test -s conftest.$ac_objext; then
26933   ac_lo=$ac_mid; break
26934 else
26935   $as_echo "$as_me: failed program was:" >&5
26936 sed 's/^/| /' conftest.$ac_ext >&5
26937
26938         ac_hi=`expr '(' $ac_mid ')' - 1`
26939                         if test $ac_mid -le $ac_hi; then
26940                           ac_lo= ac_hi=
26941                           break
26942                         fi
26943                         ac_mid=`expr 2 '*' $ac_mid`
26944 fi
26945
26946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26947   done
26948 else
26949   $as_echo "$as_me: failed program was:" >&5
26950 sed 's/^/| /' conftest.$ac_ext >&5
26951
26952         ac_lo= ac_hi=
26953 fi
26954
26955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26956 fi
26957
26958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26959 # Binary search between lo and hi bounds.
26960 while test "x$ac_lo" != "x$ac_hi"; do
26961   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26962   cat >conftest.$ac_ext <<_ACEOF
26963 /* confdefs.h.  */
26964 _ACEOF
26965 cat confdefs.h >>conftest.$ac_ext
26966 cat >>conftest.$ac_ext <<_ACEOF
26967 /* end confdefs.h.  */
26968 $ac_includes_default
26969 #ifndef offsetof
26970 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26971 #endif
26972 typedef struct { char x; int y; } ac__type_alignof_;
26973 int
26974 main ()
26975 {
26976 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26977 test_array [0] = 0
26978
26979   ;
26980   return 0;
26981 }
26982 _ACEOF
26983 rm -f conftest.$ac_objext
26984 if { (ac_try="$ac_compile"
26985 case "(($ac_try" in
26986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987   *) ac_try_echo=$ac_try;;
26988 esac
26989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26990 $as_echo "$ac_try_echo") >&5
26991   (eval "$ac_compile") 2>conftest.er1
26992   ac_status=$?
26993   grep -v '^ *+' conftest.er1 >conftest.err
26994   rm -f conftest.er1
26995   cat conftest.err >&5
26996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997   (exit $ac_status); } && {
26998          test -z "$ac_c_werror_flag" ||
26999          test ! -s conftest.err
27000        } && test -s conftest.$ac_objext; then
27001   ac_hi=$ac_mid
27002 else
27003   $as_echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27005
27006         ac_lo=`expr '(' $ac_mid ')' + 1`
27007 fi
27008
27009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27010 done
27011 case $ac_lo in
27012 ?*) ac_cv_alignof_int=$ac_lo;;
27013 '') if test "$ac_cv_type_int" = yes; then
27014      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27016 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
27017 See \`config.log' for more details." >&5
27018 $as_echo "$as_me: error: cannot compute alignment of int
27019 See \`config.log' for more details." >&2;}
27020    { (exit 77); exit 77; }; }; }
27021    else
27022      ac_cv_alignof_int=0
27023    fi ;;
27024 esac
27025 else
27026   cat >conftest.$ac_ext <<_ACEOF
27027 /* confdefs.h.  */
27028 _ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h.  */
27032 $ac_includes_default
27033 #ifndef offsetof
27034 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27035 #endif
27036 typedef struct { char x; int y; } ac__type_alignof_;
27037 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27038 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27039 #include <stdio.h>
27040 #include <stdlib.h>
27041 int
27042 main ()
27043 {
27044
27045   FILE *f = fopen ("conftest.val", "w");
27046   if (! f)
27047     return 1;
27048   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27049     {
27050       long int i = longval ();
27051       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27052         return 1;
27053       fprintf (f, "%ld", i);
27054     }
27055   else
27056     {
27057       unsigned long int i = ulongval ();
27058       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27059         return 1;
27060       fprintf (f, "%lu", i);
27061     }
27062   /* Do not output a trailing newline, as this causes \r\n confusion
27063      on some platforms.  */
27064   return ferror (f) || fclose (f) != 0;
27065
27066   ;
27067   return 0;
27068 }
27069 _ACEOF
27070 rm -f conftest$ac_exeext
27071 if { (ac_try="$ac_link"
27072 case "(($ac_try" in
27073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27074   *) ac_try_echo=$ac_try;;
27075 esac
27076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27077 $as_echo "$ac_try_echo") >&5
27078   (eval "$ac_link") 2>&5
27079   ac_status=$?
27080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27082   { (case "(($ac_try" in
27083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084   *) ac_try_echo=$ac_try;;
27085 esac
27086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27087 $as_echo "$ac_try_echo") >&5
27088   (eval "$ac_try") 2>&5
27089   ac_status=$?
27090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); }; }; then
27092   ac_cv_alignof_int=`cat conftest.val`
27093 else
27094   $as_echo "$as_me: program exited with status $ac_status" >&5
27095 $as_echo "$as_me: failed program was:" >&5
27096 sed 's/^/| /' conftest.$ac_ext >&5
27097
27098 ( exit $ac_status )
27099 if test "$ac_cv_type_int" = yes; then
27100      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27102 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
27103 See \`config.log' for more details." >&5
27104 $as_echo "$as_me: error: cannot compute alignment of int
27105 See \`config.log' for more details." >&2;}
27106    { (exit 77); exit 77; }; }; }
27107    else
27108      ac_cv_alignof_int=0
27109    fi
27110 fi
27111 rm -rf conftest.dSYM
27112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27113 fi
27114 rm -f conftest.val
27115 fi
27116 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
27117 $as_echo "$ac_cv_alignof_int" >&6; }
27118
27119
27120
27121 cat >>confdefs.h <<_ACEOF
27122 #define ALIGNOF_INT $ac_cv_alignof_int
27123 _ACEOF
27124
27125
27126 # The cast to long int works around a bug in the HP C Compiler,
27127 # see AC_CHECK_SIZEOF for more information.
27128 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
27129 $as_echo_n "checking alignment of long... " >&6; }
27130 if test "${ac_cv_alignof_long+set}" = set; then
27131   $as_echo_n "(cached) " >&6
27132 else
27133   if test "$cross_compiling" = yes; then
27134   # Depending upon the size, compute the lo and hi bounds.
27135 cat >conftest.$ac_ext <<_ACEOF
27136 /* confdefs.h.  */
27137 _ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h.  */
27141 $ac_includes_default
27142 #ifndef offsetof
27143 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27144 #endif
27145 typedef struct { char x; long y; } ac__type_alignof_;
27146 int
27147 main ()
27148 {
27149 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27150 test_array [0] = 0
27151
27152   ;
27153   return 0;
27154 }
27155 _ACEOF
27156 rm -f conftest.$ac_objext
27157 if { (ac_try="$ac_compile"
27158 case "(($ac_try" in
27159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160   *) ac_try_echo=$ac_try;;
27161 esac
27162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27163 $as_echo "$ac_try_echo") >&5
27164   (eval "$ac_compile") 2>conftest.er1
27165   ac_status=$?
27166   grep -v '^ *+' conftest.er1 >conftest.err
27167   rm -f conftest.er1
27168   cat conftest.err >&5
27169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); } && {
27171          test -z "$ac_c_werror_flag" ||
27172          test ! -s conftest.err
27173        } && test -s conftest.$ac_objext; then
27174   ac_lo=0 ac_mid=0
27175   while :; do
27176     cat >conftest.$ac_ext <<_ACEOF
27177 /* confdefs.h.  */
27178 _ACEOF
27179 cat confdefs.h >>conftest.$ac_ext
27180 cat >>conftest.$ac_ext <<_ACEOF
27181 /* end confdefs.h.  */
27182 $ac_includes_default
27183 #ifndef offsetof
27184 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27185 #endif
27186 typedef struct { char x; long y; } ac__type_alignof_;
27187 int
27188 main ()
27189 {
27190 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27191 test_array [0] = 0
27192
27193   ;
27194   return 0;
27195 }
27196 _ACEOF
27197 rm -f conftest.$ac_objext
27198 if { (ac_try="$ac_compile"
27199 case "(($ac_try" in
27200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201   *) ac_try_echo=$ac_try;;
27202 esac
27203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27204 $as_echo "$ac_try_echo") >&5
27205   (eval "$ac_compile") 2>conftest.er1
27206   ac_status=$?
27207   grep -v '^ *+' conftest.er1 >conftest.err
27208   rm -f conftest.er1
27209   cat conftest.err >&5
27210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); } && {
27212          test -z "$ac_c_werror_flag" ||
27213          test ! -s conftest.err
27214        } && test -s conftest.$ac_objext; then
27215   ac_hi=$ac_mid; break
27216 else
27217   $as_echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27219
27220         ac_lo=`expr $ac_mid + 1`
27221                         if test $ac_lo -le $ac_mid; then
27222                           ac_lo= ac_hi=
27223                           break
27224                         fi
27225                         ac_mid=`expr 2 '*' $ac_mid + 1`
27226 fi
27227
27228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27229   done
27230 else
27231   $as_echo "$as_me: failed program was:" >&5
27232 sed 's/^/| /' conftest.$ac_ext >&5
27233
27234         cat >conftest.$ac_ext <<_ACEOF
27235 /* confdefs.h.  */
27236 _ACEOF
27237 cat confdefs.h >>conftest.$ac_ext
27238 cat >>conftest.$ac_ext <<_ACEOF
27239 /* end confdefs.h.  */
27240 $ac_includes_default
27241 #ifndef offsetof
27242 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27243 #endif
27244 typedef struct { char x; long y; } ac__type_alignof_;
27245 int
27246 main ()
27247 {
27248 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27249 test_array [0] = 0
27250
27251   ;
27252   return 0;
27253 }
27254 _ACEOF
27255 rm -f conftest.$ac_objext
27256 if { (ac_try="$ac_compile"
27257 case "(($ac_try" in
27258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27259   *) ac_try_echo=$ac_try;;
27260 esac
27261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27262 $as_echo "$ac_try_echo") >&5
27263   (eval "$ac_compile") 2>conftest.er1
27264   ac_status=$?
27265   grep -v '^ *+' conftest.er1 >conftest.err
27266   rm -f conftest.er1
27267   cat conftest.err >&5
27268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269   (exit $ac_status); } && {
27270          test -z "$ac_c_werror_flag" ||
27271          test ! -s conftest.err
27272        } && test -s conftest.$ac_objext; then
27273   ac_hi=-1 ac_mid=-1
27274   while :; do
27275     cat >conftest.$ac_ext <<_ACEOF
27276 /* confdefs.h.  */
27277 _ACEOF
27278 cat confdefs.h >>conftest.$ac_ext
27279 cat >>conftest.$ac_ext <<_ACEOF
27280 /* end confdefs.h.  */
27281 $ac_includes_default
27282 #ifndef offsetof
27283 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27284 #endif
27285 typedef struct { char x; long y; } ac__type_alignof_;
27286 int
27287 main ()
27288 {
27289 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27290 test_array [0] = 0
27291
27292   ;
27293   return 0;
27294 }
27295 _ACEOF
27296 rm -f conftest.$ac_objext
27297 if { (ac_try="$ac_compile"
27298 case "(($ac_try" in
27299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300   *) ac_try_echo=$ac_try;;
27301 esac
27302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27303 $as_echo "$ac_try_echo") >&5
27304   (eval "$ac_compile") 2>conftest.er1
27305   ac_status=$?
27306   grep -v '^ *+' conftest.er1 >conftest.err
27307   rm -f conftest.er1
27308   cat conftest.err >&5
27309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310   (exit $ac_status); } && {
27311          test -z "$ac_c_werror_flag" ||
27312          test ! -s conftest.err
27313        } && test -s conftest.$ac_objext; then
27314   ac_lo=$ac_mid; break
27315 else
27316   $as_echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27318
27319         ac_hi=`expr '(' $ac_mid ')' - 1`
27320                         if test $ac_mid -le $ac_hi; then
27321                           ac_lo= ac_hi=
27322                           break
27323                         fi
27324                         ac_mid=`expr 2 '*' $ac_mid`
27325 fi
27326
27327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27328   done
27329 else
27330   $as_echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27332
27333         ac_lo= ac_hi=
27334 fi
27335
27336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27337 fi
27338
27339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27340 # Binary search between lo and hi bounds.
27341 while test "x$ac_lo" != "x$ac_hi"; do
27342   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27343   cat >conftest.$ac_ext <<_ACEOF
27344 /* confdefs.h.  */
27345 _ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h.  */
27349 $ac_includes_default
27350 #ifndef offsetof
27351 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27352 #endif
27353 typedef struct { char x; long y; } ac__type_alignof_;
27354 int
27355 main ()
27356 {
27357 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27358 test_array [0] = 0
27359
27360   ;
27361   return 0;
27362 }
27363 _ACEOF
27364 rm -f conftest.$ac_objext
27365 if { (ac_try="$ac_compile"
27366 case "(($ac_try" in
27367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368   *) ac_try_echo=$ac_try;;
27369 esac
27370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27371 $as_echo "$ac_try_echo") >&5
27372   (eval "$ac_compile") 2>conftest.er1
27373   ac_status=$?
27374   grep -v '^ *+' conftest.er1 >conftest.err
27375   rm -f conftest.er1
27376   cat conftest.err >&5
27377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378   (exit $ac_status); } && {
27379          test -z "$ac_c_werror_flag" ||
27380          test ! -s conftest.err
27381        } && test -s conftest.$ac_objext; then
27382   ac_hi=$ac_mid
27383 else
27384   $as_echo "$as_me: failed program was:" >&5
27385 sed 's/^/| /' conftest.$ac_ext >&5
27386
27387         ac_lo=`expr '(' $ac_mid ')' + 1`
27388 fi
27389
27390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27391 done
27392 case $ac_lo in
27393 ?*) ac_cv_alignof_long=$ac_lo;;
27394 '') if test "$ac_cv_type_long" = yes; then
27395      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27397 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27398 See \`config.log' for more details." >&5
27399 $as_echo "$as_me: error: cannot compute alignment of long
27400 See \`config.log' for more details." >&2;}
27401    { (exit 77); exit 77; }; }; }
27402    else
27403      ac_cv_alignof_long=0
27404    fi ;;
27405 esac
27406 else
27407   cat >conftest.$ac_ext <<_ACEOF
27408 /* confdefs.h.  */
27409 _ACEOF
27410 cat confdefs.h >>conftest.$ac_ext
27411 cat >>conftest.$ac_ext <<_ACEOF
27412 /* end confdefs.h.  */
27413 $ac_includes_default
27414 #ifndef offsetof
27415 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27416 #endif
27417 typedef struct { char x; long y; } ac__type_alignof_;
27418 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27419 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27420 #include <stdio.h>
27421 #include <stdlib.h>
27422 int
27423 main ()
27424 {
27425
27426   FILE *f = fopen ("conftest.val", "w");
27427   if (! f)
27428     return 1;
27429   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27430     {
27431       long int i = longval ();
27432       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27433         return 1;
27434       fprintf (f, "%ld", i);
27435     }
27436   else
27437     {
27438       unsigned long int i = ulongval ();
27439       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27440         return 1;
27441       fprintf (f, "%lu", i);
27442     }
27443   /* Do not output a trailing newline, as this causes \r\n confusion
27444      on some platforms.  */
27445   return ferror (f) || fclose (f) != 0;
27446
27447   ;
27448   return 0;
27449 }
27450 _ACEOF
27451 rm -f conftest$ac_exeext
27452 if { (ac_try="$ac_link"
27453 case "(($ac_try" in
27454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455   *) ac_try_echo=$ac_try;;
27456 esac
27457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27458 $as_echo "$ac_try_echo") >&5
27459   (eval "$ac_link") 2>&5
27460   ac_status=$?
27461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27463   { (case "(($ac_try" in
27464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465   *) ac_try_echo=$ac_try;;
27466 esac
27467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27468 $as_echo "$ac_try_echo") >&5
27469   (eval "$ac_try") 2>&5
27470   ac_status=$?
27471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); }; }; then
27473   ac_cv_alignof_long=`cat conftest.val`
27474 else
27475   $as_echo "$as_me: program exited with status $ac_status" >&5
27476 $as_echo "$as_me: failed program was:" >&5
27477 sed 's/^/| /' conftest.$ac_ext >&5
27478
27479 ( exit $ac_status )
27480 if test "$ac_cv_type_long" = yes; then
27481      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27483 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27484 See \`config.log' for more details." >&5
27485 $as_echo "$as_me: error: cannot compute alignment of long
27486 See \`config.log' for more details." >&2;}
27487    { (exit 77); exit 77; }; }; }
27488    else
27489      ac_cv_alignof_long=0
27490    fi
27491 fi
27492 rm -rf conftest.dSYM
27493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27494 fi
27495 rm -f conftest.val
27496 fi
27497 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
27498 $as_echo "$ac_cv_alignof_long" >&6; }
27499
27500
27501
27502 cat >>confdefs.h <<_ACEOF
27503 #define ALIGNOF_LONG $ac_cv_alignof_long
27504 _ACEOF
27505
27506
27507 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
27508   # The cast to long int works around a bug in the HP C Compiler,
27509 # see AC_CHECK_SIZEOF for more information.
27510 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
27511 $as_echo_n "checking alignment of long long int... " >&6; }
27512 if test "${ac_cv_alignof_long_long_int+set}" = set; then
27513   $as_echo_n "(cached) " >&6
27514 else
27515   if test "$cross_compiling" = yes; then
27516   # Depending upon the size, compute the lo and hi bounds.
27517 cat >conftest.$ac_ext <<_ACEOF
27518 /* confdefs.h.  */
27519 _ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h.  */
27523 $ac_includes_default
27524 #ifndef offsetof
27525 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27526 #endif
27527 typedef struct { char x; long long int y; } ac__type_alignof_;
27528 int
27529 main ()
27530 {
27531 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27532 test_array [0] = 0
27533
27534   ;
27535   return 0;
27536 }
27537 _ACEOF
27538 rm -f conftest.$ac_objext
27539 if { (ac_try="$ac_compile"
27540 case "(($ac_try" in
27541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542   *) ac_try_echo=$ac_try;;
27543 esac
27544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27545 $as_echo "$ac_try_echo") >&5
27546   (eval "$ac_compile") 2>conftest.er1
27547   ac_status=$?
27548   grep -v '^ *+' conftest.er1 >conftest.err
27549   rm -f conftest.er1
27550   cat conftest.err >&5
27551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552   (exit $ac_status); } && {
27553          test -z "$ac_c_werror_flag" ||
27554          test ! -s conftest.err
27555        } && test -s conftest.$ac_objext; then
27556   ac_lo=0 ac_mid=0
27557   while :; do
27558     cat >conftest.$ac_ext <<_ACEOF
27559 /* confdefs.h.  */
27560 _ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h.  */
27564 $ac_includes_default
27565 #ifndef offsetof
27566 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27567 #endif
27568 typedef struct { char x; long long int y; } ac__type_alignof_;
27569 int
27570 main ()
27571 {
27572 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27573 test_array [0] = 0
27574
27575   ;
27576   return 0;
27577 }
27578 _ACEOF
27579 rm -f conftest.$ac_objext
27580 if { (ac_try="$ac_compile"
27581 case "(($ac_try" in
27582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583   *) ac_try_echo=$ac_try;;
27584 esac
27585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27586 $as_echo "$ac_try_echo") >&5
27587   (eval "$ac_compile") 2>conftest.er1
27588   ac_status=$?
27589   grep -v '^ *+' conftest.er1 >conftest.err
27590   rm -f conftest.er1
27591   cat conftest.err >&5
27592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593   (exit $ac_status); } && {
27594          test -z "$ac_c_werror_flag" ||
27595          test ! -s conftest.err
27596        } && test -s conftest.$ac_objext; then
27597   ac_hi=$ac_mid; break
27598 else
27599   $as_echo "$as_me: failed program was:" >&5
27600 sed 's/^/| /' conftest.$ac_ext >&5
27601
27602         ac_lo=`expr $ac_mid + 1`
27603                         if test $ac_lo -le $ac_mid; then
27604                           ac_lo= ac_hi=
27605                           break
27606                         fi
27607                         ac_mid=`expr 2 '*' $ac_mid + 1`
27608 fi
27609
27610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27611   done
27612 else
27613   $as_echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27615
27616         cat >conftest.$ac_ext <<_ACEOF
27617 /* confdefs.h.  */
27618 _ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h.  */
27622 $ac_includes_default
27623 #ifndef offsetof
27624 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27625 #endif
27626 typedef struct { char x; long long int y; } ac__type_alignof_;
27627 int
27628 main ()
27629 {
27630 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27631 test_array [0] = 0
27632
27633   ;
27634   return 0;
27635 }
27636 _ACEOF
27637 rm -f conftest.$ac_objext
27638 if { (ac_try="$ac_compile"
27639 case "(($ac_try" in
27640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27641   *) ac_try_echo=$ac_try;;
27642 esac
27643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27644 $as_echo "$ac_try_echo") >&5
27645   (eval "$ac_compile") 2>conftest.er1
27646   ac_status=$?
27647   grep -v '^ *+' conftest.er1 >conftest.err
27648   rm -f conftest.er1
27649   cat conftest.err >&5
27650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651   (exit $ac_status); } && {
27652          test -z "$ac_c_werror_flag" ||
27653          test ! -s conftest.err
27654        } && test -s conftest.$ac_objext; then
27655   ac_hi=-1 ac_mid=-1
27656   while :; do
27657     cat >conftest.$ac_ext <<_ACEOF
27658 /* confdefs.h.  */
27659 _ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h.  */
27663 $ac_includes_default
27664 #ifndef offsetof
27665 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27666 #endif
27667 typedef struct { char x; long long int y; } ac__type_alignof_;
27668 int
27669 main ()
27670 {
27671 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27672 test_array [0] = 0
27673
27674   ;
27675   return 0;
27676 }
27677 _ACEOF
27678 rm -f conftest.$ac_objext
27679 if { (ac_try="$ac_compile"
27680 case "(($ac_try" in
27681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27682   *) ac_try_echo=$ac_try;;
27683 esac
27684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27685 $as_echo "$ac_try_echo") >&5
27686   (eval "$ac_compile") 2>conftest.er1
27687   ac_status=$?
27688   grep -v '^ *+' conftest.er1 >conftest.err
27689   rm -f conftest.er1
27690   cat conftest.err >&5
27691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692   (exit $ac_status); } && {
27693          test -z "$ac_c_werror_flag" ||
27694          test ! -s conftest.err
27695        } && test -s conftest.$ac_objext; then
27696   ac_lo=$ac_mid; break
27697 else
27698   $as_echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27700
27701         ac_hi=`expr '(' $ac_mid ')' - 1`
27702                         if test $ac_mid -le $ac_hi; then
27703                           ac_lo= ac_hi=
27704                           break
27705                         fi
27706                         ac_mid=`expr 2 '*' $ac_mid`
27707 fi
27708
27709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27710   done
27711 else
27712   $as_echo "$as_me: failed program was:" >&5
27713 sed 's/^/| /' conftest.$ac_ext >&5
27714
27715         ac_lo= ac_hi=
27716 fi
27717
27718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27719 fi
27720
27721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27722 # Binary search between lo and hi bounds.
27723 while test "x$ac_lo" != "x$ac_hi"; do
27724   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27725   cat >conftest.$ac_ext <<_ACEOF
27726 /* confdefs.h.  */
27727 _ACEOF
27728 cat confdefs.h >>conftest.$ac_ext
27729 cat >>conftest.$ac_ext <<_ACEOF
27730 /* end confdefs.h.  */
27731 $ac_includes_default
27732 #ifndef offsetof
27733 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27734 #endif
27735 typedef struct { char x; long long int y; } ac__type_alignof_;
27736 int
27737 main ()
27738 {
27739 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27740 test_array [0] = 0
27741
27742   ;
27743   return 0;
27744 }
27745 _ACEOF
27746 rm -f conftest.$ac_objext
27747 if { (ac_try="$ac_compile"
27748 case "(($ac_try" in
27749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27750   *) ac_try_echo=$ac_try;;
27751 esac
27752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27753 $as_echo "$ac_try_echo") >&5
27754   (eval "$ac_compile") 2>conftest.er1
27755   ac_status=$?
27756   grep -v '^ *+' conftest.er1 >conftest.err
27757   rm -f conftest.er1
27758   cat conftest.err >&5
27759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760   (exit $ac_status); } && {
27761          test -z "$ac_c_werror_flag" ||
27762          test ! -s conftest.err
27763        } && test -s conftest.$ac_objext; then
27764   ac_hi=$ac_mid
27765 else
27766   $as_echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27768
27769         ac_lo=`expr '(' $ac_mid ')' + 1`
27770 fi
27771
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27773 done
27774 case $ac_lo in
27775 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27776 '') if test "$ac_cv_type_long_long_int" = yes; then
27777      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27779 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27780 See \`config.log' for more details." >&5
27781 $as_echo "$as_me: error: cannot compute alignment of long long int
27782 See \`config.log' for more details." >&2;}
27783    { (exit 77); exit 77; }; }; }
27784    else
27785      ac_cv_alignof_long_long_int=0
27786    fi ;;
27787 esac
27788 else
27789   cat >conftest.$ac_ext <<_ACEOF
27790 /* confdefs.h.  */
27791 _ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h.  */
27795 $ac_includes_default
27796 #ifndef offsetof
27797 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27798 #endif
27799 typedef struct { char x; long long int y; } ac__type_alignof_;
27800 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27801 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27802 #include <stdio.h>
27803 #include <stdlib.h>
27804 int
27805 main ()
27806 {
27807
27808   FILE *f = fopen ("conftest.val", "w");
27809   if (! f)
27810     return 1;
27811   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27812     {
27813       long int i = longval ();
27814       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27815         return 1;
27816       fprintf (f, "%ld", i);
27817     }
27818   else
27819     {
27820       unsigned long int i = ulongval ();
27821       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27822         return 1;
27823       fprintf (f, "%lu", i);
27824     }
27825   /* Do not output a trailing newline, as this causes \r\n confusion
27826      on some platforms.  */
27827   return ferror (f) || fclose (f) != 0;
27828
27829   ;
27830   return 0;
27831 }
27832 _ACEOF
27833 rm -f conftest$ac_exeext
27834 if { (ac_try="$ac_link"
27835 case "(($ac_try" in
27836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837   *) ac_try_echo=$ac_try;;
27838 esac
27839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27840 $as_echo "$ac_try_echo") >&5
27841   (eval "$ac_link") 2>&5
27842   ac_status=$?
27843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27845   { (case "(($ac_try" in
27846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27847   *) ac_try_echo=$ac_try;;
27848 esac
27849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27850 $as_echo "$ac_try_echo") >&5
27851   (eval "$ac_try") 2>&5
27852   ac_status=$?
27853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); }; }; then
27855   ac_cv_alignof_long_long_int=`cat conftest.val`
27856 else
27857   $as_echo "$as_me: program exited with status $ac_status" >&5
27858 $as_echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27860
27861 ( exit $ac_status )
27862 if test "$ac_cv_type_long_long_int" = yes; then
27863      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27865 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27866 See \`config.log' for more details." >&5
27867 $as_echo "$as_me: error: cannot compute alignment of long long int
27868 See \`config.log' for more details." >&2;}
27869    { (exit 77); exit 77; }; }; }
27870    else
27871      ac_cv_alignof_long_long_int=0
27872    fi
27873 fi
27874 rm -rf conftest.dSYM
27875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27876 fi
27877 rm -f conftest.val
27878 fi
27879 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27880 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27881
27882
27883
27884 cat >>confdefs.h <<_ACEOF
27885 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27886 _ACEOF
27887
27888
27889 fi
27890 # The cast to long int works around a bug in the HP C Compiler,
27891 # see AC_CHECK_SIZEOF for more information.
27892 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27893 $as_echo_n "checking alignment of double... " >&6; }
27894 if test "${ac_cv_alignof_double+set}" = set; then
27895   $as_echo_n "(cached) " >&6
27896 else
27897   if test "$cross_compiling" = yes; then
27898   # Depending upon the size, compute the lo and hi bounds.
27899 cat >conftest.$ac_ext <<_ACEOF
27900 /* confdefs.h.  */
27901 _ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h.  */
27905 $ac_includes_default
27906 #ifndef offsetof
27907 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27908 #endif
27909 typedef struct { char x; double y; } ac__type_alignof_;
27910 int
27911 main ()
27912 {
27913 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27914 test_array [0] = 0
27915
27916   ;
27917   return 0;
27918 }
27919 _ACEOF
27920 rm -f conftest.$ac_objext
27921 if { (ac_try="$ac_compile"
27922 case "(($ac_try" in
27923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27924   *) ac_try_echo=$ac_try;;
27925 esac
27926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27927 $as_echo "$ac_try_echo") >&5
27928   (eval "$ac_compile") 2>conftest.er1
27929   ac_status=$?
27930   grep -v '^ *+' conftest.er1 >conftest.err
27931   rm -f conftest.er1
27932   cat conftest.err >&5
27933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934   (exit $ac_status); } && {
27935          test -z "$ac_c_werror_flag" ||
27936          test ! -s conftest.err
27937        } && test -s conftest.$ac_objext; then
27938   ac_lo=0 ac_mid=0
27939   while :; do
27940     cat >conftest.$ac_ext <<_ACEOF
27941 /* confdefs.h.  */
27942 _ACEOF
27943 cat confdefs.h >>conftest.$ac_ext
27944 cat >>conftest.$ac_ext <<_ACEOF
27945 /* end confdefs.h.  */
27946 $ac_includes_default
27947 #ifndef offsetof
27948 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27949 #endif
27950 typedef struct { char x; double y; } ac__type_alignof_;
27951 int
27952 main ()
27953 {
27954 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27955 test_array [0] = 0
27956
27957   ;
27958   return 0;
27959 }
27960 _ACEOF
27961 rm -f conftest.$ac_objext
27962 if { (ac_try="$ac_compile"
27963 case "(($ac_try" in
27964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27965   *) ac_try_echo=$ac_try;;
27966 esac
27967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27968 $as_echo "$ac_try_echo") >&5
27969   (eval "$ac_compile") 2>conftest.er1
27970   ac_status=$?
27971   grep -v '^ *+' conftest.er1 >conftest.err
27972   rm -f conftest.er1
27973   cat conftest.err >&5
27974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975   (exit $ac_status); } && {
27976          test -z "$ac_c_werror_flag" ||
27977          test ! -s conftest.err
27978        } && test -s conftest.$ac_objext; then
27979   ac_hi=$ac_mid; break
27980 else
27981   $as_echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27983
27984         ac_lo=`expr $ac_mid + 1`
27985                         if test $ac_lo -le $ac_mid; then
27986                           ac_lo= ac_hi=
27987                           break
27988                         fi
27989                         ac_mid=`expr 2 '*' $ac_mid + 1`
27990 fi
27991
27992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27993   done
27994 else
27995   $as_echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27997
27998         cat >conftest.$ac_ext <<_ACEOF
27999 /* confdefs.h.  */
28000 _ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h.  */
28004 $ac_includes_default
28005 #ifndef offsetof
28006 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28007 #endif
28008 typedef struct { char x; double y; } ac__type_alignof_;
28009 int
28010 main ()
28011 {
28012 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
28013 test_array [0] = 0
28014
28015   ;
28016   return 0;
28017 }
28018 _ACEOF
28019 rm -f conftest.$ac_objext
28020 if { (ac_try="$ac_compile"
28021 case "(($ac_try" in
28022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023   *) ac_try_echo=$ac_try;;
28024 esac
28025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28026 $as_echo "$ac_try_echo") >&5
28027   (eval "$ac_compile") 2>conftest.er1
28028   ac_status=$?
28029   grep -v '^ *+' conftest.er1 >conftest.err
28030   rm -f conftest.er1
28031   cat conftest.err >&5
28032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033   (exit $ac_status); } && {
28034          test -z "$ac_c_werror_flag" ||
28035          test ! -s conftest.err
28036        } && test -s conftest.$ac_objext; then
28037   ac_hi=-1 ac_mid=-1
28038   while :; do
28039     cat >conftest.$ac_ext <<_ACEOF
28040 /* confdefs.h.  */
28041 _ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h.  */
28045 $ac_includes_default
28046 #ifndef offsetof
28047 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28048 #endif
28049 typedef struct { char x; double y; } ac__type_alignof_;
28050 int
28051 main ()
28052 {
28053 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
28054 test_array [0] = 0
28055
28056   ;
28057   return 0;
28058 }
28059 _ACEOF
28060 rm -f conftest.$ac_objext
28061 if { (ac_try="$ac_compile"
28062 case "(($ac_try" in
28063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064   *) ac_try_echo=$ac_try;;
28065 esac
28066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28067 $as_echo "$ac_try_echo") >&5
28068   (eval "$ac_compile") 2>conftest.er1
28069   ac_status=$?
28070   grep -v '^ *+' conftest.er1 >conftest.err
28071   rm -f conftest.er1
28072   cat conftest.err >&5
28073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074   (exit $ac_status); } && {
28075          test -z "$ac_c_werror_flag" ||
28076          test ! -s conftest.err
28077        } && test -s conftest.$ac_objext; then
28078   ac_lo=$ac_mid; break
28079 else
28080   $as_echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28082
28083         ac_hi=`expr '(' $ac_mid ')' - 1`
28084                         if test $ac_mid -le $ac_hi; then
28085                           ac_lo= ac_hi=
28086                           break
28087                         fi
28088                         ac_mid=`expr 2 '*' $ac_mid`
28089 fi
28090
28091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28092   done
28093 else
28094   $as_echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28096
28097         ac_lo= ac_hi=
28098 fi
28099
28100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28101 fi
28102
28103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28104 # Binary search between lo and hi bounds.
28105 while test "x$ac_lo" != "x$ac_hi"; do
28106   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28107   cat >conftest.$ac_ext <<_ACEOF
28108 /* confdefs.h.  */
28109 _ACEOF
28110 cat confdefs.h >>conftest.$ac_ext
28111 cat >>conftest.$ac_ext <<_ACEOF
28112 /* end confdefs.h.  */
28113 $ac_includes_default
28114 #ifndef offsetof
28115 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28116 #endif
28117 typedef struct { char x; double y; } ac__type_alignof_;
28118 int
28119 main ()
28120 {
28121 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
28122 test_array [0] = 0
28123
28124   ;
28125   return 0;
28126 }
28127 _ACEOF
28128 rm -f conftest.$ac_objext
28129 if { (ac_try="$ac_compile"
28130 case "(($ac_try" in
28131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28132   *) ac_try_echo=$ac_try;;
28133 esac
28134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28135 $as_echo "$ac_try_echo") >&5
28136   (eval "$ac_compile") 2>conftest.er1
28137   ac_status=$?
28138   grep -v '^ *+' conftest.er1 >conftest.err
28139   rm -f conftest.er1
28140   cat conftest.err >&5
28141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); } && {
28143          test -z "$ac_c_werror_flag" ||
28144          test ! -s conftest.err
28145        } && test -s conftest.$ac_objext; then
28146   ac_hi=$ac_mid
28147 else
28148   $as_echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28150
28151         ac_lo=`expr '(' $ac_mid ')' + 1`
28152 fi
28153
28154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28155 done
28156 case $ac_lo in
28157 ?*) ac_cv_alignof_double=$ac_lo;;
28158 '') if test "$ac_cv_type_double" = yes; then
28159      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28161 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
28162 See \`config.log' for more details." >&5
28163 $as_echo "$as_me: error: cannot compute alignment of double
28164 See \`config.log' for more details." >&2;}
28165    { (exit 77); exit 77; }; }; }
28166    else
28167      ac_cv_alignof_double=0
28168    fi ;;
28169 esac
28170 else
28171   cat >conftest.$ac_ext <<_ACEOF
28172 /* confdefs.h.  */
28173 _ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h.  */
28177 $ac_includes_default
28178 #ifndef offsetof
28179 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28180 #endif
28181 typedef struct { char x; double y; } ac__type_alignof_;
28182 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
28183 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
28184 #include <stdio.h>
28185 #include <stdlib.h>
28186 int
28187 main ()
28188 {
28189
28190   FILE *f = fopen ("conftest.val", "w");
28191   if (! f)
28192     return 1;
28193   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
28194     {
28195       long int i = longval ();
28196       if (i != ((long int) offsetof (ac__type_alignof_, y)))
28197         return 1;
28198       fprintf (f, "%ld", i);
28199     }
28200   else
28201     {
28202       unsigned long int i = ulongval ();
28203       if (i != ((long int) offsetof (ac__type_alignof_, y)))
28204         return 1;
28205       fprintf (f, "%lu", i);
28206     }
28207   /* Do not output a trailing newline, as this causes \r\n confusion
28208      on some platforms.  */
28209   return ferror (f) || fclose (f) != 0;
28210
28211   ;
28212   return 0;
28213 }
28214 _ACEOF
28215 rm -f conftest$ac_exeext
28216 if { (ac_try="$ac_link"
28217 case "(($ac_try" in
28218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28219   *) ac_try_echo=$ac_try;;
28220 esac
28221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28222 $as_echo "$ac_try_echo") >&5
28223   (eval "$ac_link") 2>&5
28224   ac_status=$?
28225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28227   { (case "(($ac_try" in
28228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229   *) ac_try_echo=$ac_try;;
28230 esac
28231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28232 $as_echo "$ac_try_echo") >&5
28233   (eval "$ac_try") 2>&5
28234   ac_status=$?
28235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236   (exit $ac_status); }; }; then
28237   ac_cv_alignof_double=`cat conftest.val`
28238 else
28239   $as_echo "$as_me: program exited with status $ac_status" >&5
28240 $as_echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28242
28243 ( exit $ac_status )
28244 if test "$ac_cv_type_double" = yes; then
28245      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28247 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
28248 See \`config.log' for more details." >&5
28249 $as_echo "$as_me: error: cannot compute alignment of double
28250 See \`config.log' for more details." >&2;}
28251    { (exit 77); exit 77; }; }; }
28252    else
28253      ac_cv_alignof_double=0
28254    fi
28255 fi
28256 rm -rf conftest.dSYM
28257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28258 fi
28259 rm -f conftest.val
28260 fi
28261 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
28262 $as_echo "$ac_cv_alignof_double" >&6; }
28263
28264
28265
28266 cat >>confdefs.h <<_ACEOF
28267 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
28268 _ACEOF
28269
28270
28271
28272 # Compute maximum alignment of any basic type.
28273 # We assume long's alignment is at least as strong as char, short, or int;
28274 # but we must check long long (if it exists) and double.
28275
28276 MAX_ALIGNOF=$ac_cv_alignof_long
28277 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
28278   MAX_ALIGNOF=$ac_cv_alignof_double
28279 fi
28280 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
28281   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
28282 fi
28283
28284 cat >>confdefs.h <<_ACEOF
28285 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
28286 _ACEOF
28287
28288
28289
28290 # Some platforms predefine the types int8, int16, etc.  Only check
28291 # a (hopefully) representative subset.
28292 { $as_echo "$as_me:$LINENO: checking for int8" >&5
28293 $as_echo_n "checking for int8... " >&6; }
28294 if test "${ac_cv_type_int8+set}" = set; then
28295   $as_echo_n "(cached) " >&6
28296 else
28297   ac_cv_type_int8=no
28298 cat >conftest.$ac_ext <<_ACEOF
28299 /* confdefs.h.  */
28300 _ACEOF
28301 cat confdefs.h >>conftest.$ac_ext
28302 cat >>conftest.$ac_ext <<_ACEOF
28303 /* end confdefs.h.  */
28304 #include <stdio.h>
28305
28306 int
28307 main ()
28308 {
28309 if (sizeof (int8))
28310        return 0;
28311   ;
28312   return 0;
28313 }
28314 _ACEOF
28315 rm -f conftest.$ac_objext
28316 if { (ac_try="$ac_compile"
28317 case "(($ac_try" in
28318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28319   *) ac_try_echo=$ac_try;;
28320 esac
28321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28322 $as_echo "$ac_try_echo") >&5
28323   (eval "$ac_compile") 2>conftest.er1
28324   ac_status=$?
28325   grep -v '^ *+' conftest.er1 >conftest.err
28326   rm -f conftest.er1
28327   cat conftest.err >&5
28328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); } && {
28330          test -z "$ac_c_werror_flag" ||
28331          test ! -s conftest.err
28332        } && test -s conftest.$ac_objext; then
28333   cat >conftest.$ac_ext <<_ACEOF
28334 /* confdefs.h.  */
28335 _ACEOF
28336 cat confdefs.h >>conftest.$ac_ext
28337 cat >>conftest.$ac_ext <<_ACEOF
28338 /* end confdefs.h.  */
28339 #include <stdio.h>
28340
28341 int
28342 main ()
28343 {
28344 if (sizeof ((int8)))
28345           return 0;
28346   ;
28347   return 0;
28348 }
28349 _ACEOF
28350 rm -f conftest.$ac_objext
28351 if { (ac_try="$ac_compile"
28352 case "(($ac_try" in
28353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354   *) ac_try_echo=$ac_try;;
28355 esac
28356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28357 $as_echo "$ac_try_echo") >&5
28358   (eval "$ac_compile") 2>conftest.er1
28359   ac_status=$?
28360   grep -v '^ *+' conftest.er1 >conftest.err
28361   rm -f conftest.er1
28362   cat conftest.err >&5
28363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); } && {
28365          test -z "$ac_c_werror_flag" ||
28366          test ! -s conftest.err
28367        } && test -s conftest.$ac_objext; then
28368   :
28369 else
28370   $as_echo "$as_me: failed program was:" >&5
28371 sed 's/^/| /' conftest.$ac_ext >&5
28372
28373         ac_cv_type_int8=yes
28374 fi
28375
28376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28377 else
28378   $as_echo "$as_me: failed program was:" >&5
28379 sed 's/^/| /' conftest.$ac_ext >&5
28380
28381
28382 fi
28383
28384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28385 fi
28386 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
28387 $as_echo "$ac_cv_type_int8" >&6; }
28388 if test "x$ac_cv_type_int8" = x""yes; then
28389
28390 cat >>confdefs.h <<_ACEOF
28391 #define HAVE_INT8 1
28392 _ACEOF
28393
28394
28395 fi
28396 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
28397 $as_echo_n "checking for uint8... " >&6; }
28398 if test "${ac_cv_type_uint8+set}" = set; then
28399   $as_echo_n "(cached) " >&6
28400 else
28401   ac_cv_type_uint8=no
28402 cat >conftest.$ac_ext <<_ACEOF
28403 /* confdefs.h.  */
28404 _ACEOF
28405 cat confdefs.h >>conftest.$ac_ext
28406 cat >>conftest.$ac_ext <<_ACEOF
28407 /* end confdefs.h.  */
28408 #include <stdio.h>
28409
28410 int
28411 main ()
28412 {
28413 if (sizeof (uint8))
28414        return 0;
28415   ;
28416   return 0;
28417 }
28418 _ACEOF
28419 rm -f conftest.$ac_objext
28420 if { (ac_try="$ac_compile"
28421 case "(($ac_try" in
28422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423   *) ac_try_echo=$ac_try;;
28424 esac
28425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28426 $as_echo "$ac_try_echo") >&5
28427   (eval "$ac_compile") 2>conftest.er1
28428   ac_status=$?
28429   grep -v '^ *+' conftest.er1 >conftest.err
28430   rm -f conftest.er1
28431   cat conftest.err >&5
28432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433   (exit $ac_status); } && {
28434          test -z "$ac_c_werror_flag" ||
28435          test ! -s conftest.err
28436        } && test -s conftest.$ac_objext; then
28437   cat >conftest.$ac_ext <<_ACEOF
28438 /* confdefs.h.  */
28439 _ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h.  */
28443 #include <stdio.h>
28444
28445 int
28446 main ()
28447 {
28448 if (sizeof ((uint8)))
28449           return 0;
28450   ;
28451   return 0;
28452 }
28453 _ACEOF
28454 rm -f conftest.$ac_objext
28455 if { (ac_try="$ac_compile"
28456 case "(($ac_try" in
28457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28458   *) ac_try_echo=$ac_try;;
28459 esac
28460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28461 $as_echo "$ac_try_echo") >&5
28462   (eval "$ac_compile") 2>conftest.er1
28463   ac_status=$?
28464   grep -v '^ *+' conftest.er1 >conftest.err
28465   rm -f conftest.er1
28466   cat conftest.err >&5
28467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468   (exit $ac_status); } && {
28469          test -z "$ac_c_werror_flag" ||
28470          test ! -s conftest.err
28471        } && test -s conftest.$ac_objext; then
28472   :
28473 else
28474   $as_echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28476
28477         ac_cv_type_uint8=yes
28478 fi
28479
28480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28481 else
28482   $as_echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28484
28485
28486 fi
28487
28488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28489 fi
28490 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
28491 $as_echo "$ac_cv_type_uint8" >&6; }
28492 if test "x$ac_cv_type_uint8" = x""yes; then
28493
28494 cat >>confdefs.h <<_ACEOF
28495 #define HAVE_UINT8 1
28496 _ACEOF
28497
28498
28499 fi
28500 { $as_echo "$as_me:$LINENO: checking for int64" >&5
28501 $as_echo_n "checking for int64... " >&6; }
28502 if test "${ac_cv_type_int64+set}" = set; then
28503   $as_echo_n "(cached) " >&6
28504 else
28505   ac_cv_type_int64=no
28506 cat >conftest.$ac_ext <<_ACEOF
28507 /* confdefs.h.  */
28508 _ACEOF
28509 cat confdefs.h >>conftest.$ac_ext
28510 cat >>conftest.$ac_ext <<_ACEOF
28511 /* end confdefs.h.  */
28512 #include <stdio.h>
28513
28514 int
28515 main ()
28516 {
28517 if (sizeof (int64))
28518        return 0;
28519   ;
28520   return 0;
28521 }
28522 _ACEOF
28523 rm -f conftest.$ac_objext
28524 if { (ac_try="$ac_compile"
28525 case "(($ac_try" in
28526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527   *) ac_try_echo=$ac_try;;
28528 esac
28529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28530 $as_echo "$ac_try_echo") >&5
28531   (eval "$ac_compile") 2>conftest.er1
28532   ac_status=$?
28533   grep -v '^ *+' conftest.er1 >conftest.err
28534   rm -f conftest.er1
28535   cat conftest.err >&5
28536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537   (exit $ac_status); } && {
28538          test -z "$ac_c_werror_flag" ||
28539          test ! -s conftest.err
28540        } && test -s conftest.$ac_objext; then
28541   cat >conftest.$ac_ext <<_ACEOF
28542 /* confdefs.h.  */
28543 _ACEOF
28544 cat confdefs.h >>conftest.$ac_ext
28545 cat >>conftest.$ac_ext <<_ACEOF
28546 /* end confdefs.h.  */
28547 #include <stdio.h>
28548
28549 int
28550 main ()
28551 {
28552 if (sizeof ((int64)))
28553           return 0;
28554   ;
28555   return 0;
28556 }
28557 _ACEOF
28558 rm -f conftest.$ac_objext
28559 if { (ac_try="$ac_compile"
28560 case "(($ac_try" in
28561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562   *) ac_try_echo=$ac_try;;
28563 esac
28564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28565 $as_echo "$ac_try_echo") >&5
28566   (eval "$ac_compile") 2>conftest.er1
28567   ac_status=$?
28568   grep -v '^ *+' conftest.er1 >conftest.err
28569   rm -f conftest.er1
28570   cat conftest.err >&5
28571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); } && {
28573          test -z "$ac_c_werror_flag" ||
28574          test ! -s conftest.err
28575        } && test -s conftest.$ac_objext; then
28576   :
28577 else
28578   $as_echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28580
28581         ac_cv_type_int64=yes
28582 fi
28583
28584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28585 else
28586   $as_echo "$as_me: failed program was:" >&5
28587 sed 's/^/| /' conftest.$ac_ext >&5
28588
28589
28590 fi
28591
28592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28593 fi
28594 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28595 $as_echo "$ac_cv_type_int64" >&6; }
28596 if test "x$ac_cv_type_int64" = x""yes; then
28597
28598 cat >>confdefs.h <<_ACEOF
28599 #define HAVE_INT64 1
28600 _ACEOF
28601
28602
28603 fi
28604 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28605 $as_echo_n "checking for uint64... " >&6; }
28606 if test "${ac_cv_type_uint64+set}" = set; then
28607   $as_echo_n "(cached) " >&6
28608 else
28609   ac_cv_type_uint64=no
28610 cat >conftest.$ac_ext <<_ACEOF
28611 /* confdefs.h.  */
28612 _ACEOF
28613 cat confdefs.h >>conftest.$ac_ext
28614 cat >>conftest.$ac_ext <<_ACEOF
28615 /* end confdefs.h.  */
28616 #include <stdio.h>
28617
28618 int
28619 main ()
28620 {
28621 if (sizeof (uint64))
28622        return 0;
28623   ;
28624   return 0;
28625 }
28626 _ACEOF
28627 rm -f conftest.$ac_objext
28628 if { (ac_try="$ac_compile"
28629 case "(($ac_try" in
28630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28631   *) ac_try_echo=$ac_try;;
28632 esac
28633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28634 $as_echo "$ac_try_echo") >&5
28635   (eval "$ac_compile") 2>conftest.er1
28636   ac_status=$?
28637   grep -v '^ *+' conftest.er1 >conftest.err
28638   rm -f conftest.er1
28639   cat conftest.err >&5
28640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641   (exit $ac_status); } && {
28642          test -z "$ac_c_werror_flag" ||
28643          test ! -s conftest.err
28644        } && test -s conftest.$ac_objext; then
28645   cat >conftest.$ac_ext <<_ACEOF
28646 /* confdefs.h.  */
28647 _ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h.  */
28651 #include <stdio.h>
28652
28653 int
28654 main ()
28655 {
28656 if (sizeof ((uint64)))
28657           return 0;
28658   ;
28659   return 0;
28660 }
28661 _ACEOF
28662 rm -f conftest.$ac_objext
28663 if { (ac_try="$ac_compile"
28664 case "(($ac_try" in
28665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666   *) ac_try_echo=$ac_try;;
28667 esac
28668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28669 $as_echo "$ac_try_echo") >&5
28670   (eval "$ac_compile") 2>conftest.er1
28671   ac_status=$?
28672   grep -v '^ *+' conftest.er1 >conftest.err
28673   rm -f conftest.er1
28674   cat conftest.err >&5
28675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676   (exit $ac_status); } && {
28677          test -z "$ac_c_werror_flag" ||
28678          test ! -s conftest.err
28679        } && test -s conftest.$ac_objext; then
28680   :
28681 else
28682   $as_echo "$as_me: failed program was:" >&5
28683 sed 's/^/| /' conftest.$ac_ext >&5
28684
28685         ac_cv_type_uint64=yes
28686 fi
28687
28688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28689 else
28690   $as_echo "$as_me: failed program was:" >&5
28691 sed 's/^/| /' conftest.$ac_ext >&5
28692
28693
28694 fi
28695
28696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28697 fi
28698 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28699 $as_echo "$ac_cv_type_uint64" >&6; }
28700 if test "x$ac_cv_type_uint64" = x""yes; then
28701
28702 cat >>confdefs.h <<_ACEOF
28703 #define HAVE_UINT64 1
28704 _ACEOF
28705
28706
28707 fi
28708
28709
28710 # We also check for sig_atomic_t, which *should* be defined per ANSI
28711 # C, but is missing on some old platforms.
28712 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28713 $as_echo_n "checking for sig_atomic_t... " >&6; }
28714 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28715   $as_echo_n "(cached) " >&6
28716 else
28717   ac_cv_type_sig_atomic_t=no
28718 cat >conftest.$ac_ext <<_ACEOF
28719 /* confdefs.h.  */
28720 _ACEOF
28721 cat confdefs.h >>conftest.$ac_ext
28722 cat >>conftest.$ac_ext <<_ACEOF
28723 /* end confdefs.h.  */
28724 #include <signal.h>
28725
28726 int
28727 main ()
28728 {
28729 if (sizeof (sig_atomic_t))
28730        return 0;
28731   ;
28732   return 0;
28733 }
28734 _ACEOF
28735 rm -f conftest.$ac_objext
28736 if { (ac_try="$ac_compile"
28737 case "(($ac_try" in
28738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739   *) ac_try_echo=$ac_try;;
28740 esac
28741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28742 $as_echo "$ac_try_echo") >&5
28743   (eval "$ac_compile") 2>conftest.er1
28744   ac_status=$?
28745   grep -v '^ *+' conftest.er1 >conftest.err
28746   rm -f conftest.er1
28747   cat conftest.err >&5
28748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749   (exit $ac_status); } && {
28750          test -z "$ac_c_werror_flag" ||
28751          test ! -s conftest.err
28752        } && test -s conftest.$ac_objext; then
28753   cat >conftest.$ac_ext <<_ACEOF
28754 /* confdefs.h.  */
28755 _ACEOF
28756 cat confdefs.h >>conftest.$ac_ext
28757 cat >>conftest.$ac_ext <<_ACEOF
28758 /* end confdefs.h.  */
28759 #include <signal.h>
28760
28761 int
28762 main ()
28763 {
28764 if (sizeof ((sig_atomic_t)))
28765           return 0;
28766   ;
28767   return 0;
28768 }
28769 _ACEOF
28770 rm -f conftest.$ac_objext
28771 if { (ac_try="$ac_compile"
28772 case "(($ac_try" in
28773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28774   *) ac_try_echo=$ac_try;;
28775 esac
28776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28777 $as_echo "$ac_try_echo") >&5
28778   (eval "$ac_compile") 2>conftest.er1
28779   ac_status=$?
28780   grep -v '^ *+' conftest.er1 >conftest.err
28781   rm -f conftest.er1
28782   cat conftest.err >&5
28783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); } && {
28785          test -z "$ac_c_werror_flag" ||
28786          test ! -s conftest.err
28787        } && test -s conftest.$ac_objext; then
28788   :
28789 else
28790   $as_echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28792
28793         ac_cv_type_sig_atomic_t=yes
28794 fi
28795
28796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28797 else
28798   $as_echo "$as_me: failed program was:" >&5
28799 sed 's/^/| /' conftest.$ac_ext >&5
28800
28801
28802 fi
28803
28804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28805 fi
28806 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28807 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28808 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28809
28810 cat >>confdefs.h <<_ACEOF
28811 #define HAVE_SIG_ATOMIC_T 1
28812 _ACEOF
28813
28814
28815 fi
28816
28817
28818
28819 if test "$PORTNAME" != "win32"
28820 then
28821 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28822 $as_echo_n "checking for POSIX signal interface... " >&6; }
28823 if test "${pgac_cv_func_posix_signals+set}" = set; then
28824   $as_echo_n "(cached) " >&6
28825 else
28826   cat >conftest.$ac_ext <<_ACEOF
28827 /* confdefs.h.  */
28828 _ACEOF
28829 cat confdefs.h >>conftest.$ac_ext
28830 cat >>conftest.$ac_ext <<_ACEOF
28831 /* end confdefs.h.  */
28832 #include <signal.h>
28833
28834 int
28835 main ()
28836 {
28837 struct sigaction act, oact;
28838 sigemptyset(&act.sa_mask);
28839 act.sa_flags = SA_RESTART;
28840 sigaction(0, &act, &oact);
28841   ;
28842   return 0;
28843 }
28844 _ACEOF
28845 rm -f conftest.$ac_objext conftest$ac_exeext
28846 if { (ac_try="$ac_link"
28847 case "(($ac_try" in
28848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849   *) ac_try_echo=$ac_try;;
28850 esac
28851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28852 $as_echo "$ac_try_echo") >&5
28853   (eval "$ac_link") 2>conftest.er1
28854   ac_status=$?
28855   grep -v '^ *+' conftest.er1 >conftest.err
28856   rm -f conftest.er1
28857   cat conftest.err >&5
28858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859   (exit $ac_status); } && {
28860          test -z "$ac_c_werror_flag" ||
28861          test ! -s conftest.err
28862        } && test -s conftest$ac_exeext && {
28863          test "$cross_compiling" = yes ||
28864          $as_test_x conftest$ac_exeext
28865        }; then
28866   pgac_cv_func_posix_signals=yes
28867 else
28868   $as_echo "$as_me: failed program was:" >&5
28869 sed 's/^/| /' conftest.$ac_ext >&5
28870
28871         pgac_cv_func_posix_signals=no
28872 fi
28873
28874 rm -rf conftest.dSYM
28875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28876       conftest$ac_exeext conftest.$ac_ext
28877 fi
28878 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28879 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28880 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28881
28882 cat >>confdefs.h <<\_ACEOF
28883 #define HAVE_POSIX_SIGNALS 1
28884 _ACEOF
28885
28886 fi
28887 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28888
28889 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28890   { { $as_echo "$as_me:$LINENO: error:
28891 Thread-safety requires POSIX signals, which are not supported by this
28892 operating system;  use --disable-thread-safety to disable thread safety." >&5
28893 $as_echo "$as_me: error:
28894 Thread-safety requires POSIX signals, which are not supported by this
28895 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28896    { (exit 1); exit 1; }; }
28897 fi
28898 fi
28899
28900 # SunOS doesn't handle negative byte comparisons properly with +/- return
28901 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28902 $as_echo_n "checking for working memcmp... " >&6; }
28903 if test "${ac_cv_func_memcmp_working+set}" = set; then
28904   $as_echo_n "(cached) " >&6
28905 else
28906   if test "$cross_compiling" = yes; then
28907   ac_cv_func_memcmp_working=no
28908 else
28909   cat >conftest.$ac_ext <<_ACEOF
28910 /* confdefs.h.  */
28911 _ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h.  */
28915 $ac_includes_default
28916 int
28917 main ()
28918 {
28919
28920   /* Some versions of memcmp are not 8-bit clean.  */
28921   char c0 = '\100', c1 = '\200', c2 = '\201';
28922   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28923     return 1;
28924
28925   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28926      or more and with at least one buffer not starting on a 4-byte boundary.
28927      William Lewis provided this test program.   */
28928   {
28929     char foo[21];
28930     char bar[21];
28931     int i;
28932     for (i = 0; i < 4; i++)
28933       {
28934         char *a = foo + i;
28935         char *b = bar + i;
28936         strcpy (a, "--------01111111");
28937         strcpy (b, "--------10000000");
28938         if (memcmp (a, b, 16) >= 0)
28939           return 1;
28940       }
28941     return 0;
28942   }
28943
28944   ;
28945   return 0;
28946 }
28947 _ACEOF
28948 rm -f conftest$ac_exeext
28949 if { (ac_try="$ac_link"
28950 case "(($ac_try" in
28951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952   *) ac_try_echo=$ac_try;;
28953 esac
28954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28955 $as_echo "$ac_try_echo") >&5
28956   (eval "$ac_link") 2>&5
28957   ac_status=$?
28958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28960   { (case "(($ac_try" in
28961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28962   *) ac_try_echo=$ac_try;;
28963 esac
28964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28965 $as_echo "$ac_try_echo") >&5
28966   (eval "$ac_try") 2>&5
28967   ac_status=$?
28968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); }; }; then
28970   ac_cv_func_memcmp_working=yes
28971 else
28972   $as_echo "$as_me: program exited with status $ac_status" >&5
28973 $as_echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28975
28976 ( exit $ac_status )
28977 ac_cv_func_memcmp_working=no
28978 fi
28979 rm -rf conftest.dSYM
28980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28981 fi
28982
28983
28984 fi
28985 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28986 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28987 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28988   *" memcmp.$ac_objext "* ) ;;
28989   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28990  ;;
28991 esac
28992
28993
28994
28995
28996 # Select semaphore implementation type.
28997 if test "$PORTNAME" != "win32"; then
28998   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28999
29000 cat >>confdefs.h <<\_ACEOF
29001 #define USE_NAMED_POSIX_SEMAPHORES 1
29002 _ACEOF
29003
29004     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
29005   else
29006     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
29007
29008 cat >>confdefs.h <<\_ACEOF
29009 #define USE_UNNAMED_POSIX_SEMAPHORES 1
29010 _ACEOF
29011
29012       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
29013     else
29014
29015 cat >>confdefs.h <<\_ACEOF
29016 #define USE_SYSV_SEMAPHORES 1
29017 _ACEOF
29018
29019       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
29020     fi
29021   fi
29022 else
29023
29024 cat >>confdefs.h <<\_ACEOF
29025 #define USE_WIN32_SEMAPHORES 1
29026 _ACEOF
29027
29028   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
29029 fi
29030
29031
29032 # Select shared-memory implementation type.
29033 if test "$PORTNAME" != "win32"; then
29034
29035 cat >>confdefs.h <<\_ACEOF
29036 #define USE_SYSV_SHARED_MEMORY 1
29037 _ACEOF
29038
29039   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
29040 else
29041
29042 cat >>confdefs.h <<\_ACEOF
29043 #define USE_WIN32_SHARED_MEMORY 1
29044 _ACEOF
29045
29046   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
29047 fi
29048
29049 # Select latch implementation type.
29050 if test "$PORTNAME" != "win32"; then
29051   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
29052 else
29053   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
29054 fi
29055
29056 # If not set in template file, set bytes to use libc memset()
29057 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
29058   MEMSET_LOOP_LIMIT=1024
29059 fi
29060
29061 cat >>confdefs.h <<_ACEOF
29062 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
29063 _ACEOF
29064
29065
29066
29067 if test "$enable_nls" = yes ; then
29068
29069   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
29070 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
29071 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
29072   $as_echo_n "(cached) " >&6
29073 else
29074   ac_func_search_save_LIBS=$LIBS
29075 cat >conftest.$ac_ext <<_ACEOF
29076 /* confdefs.h.  */
29077 _ACEOF
29078 cat confdefs.h >>conftest.$ac_ext
29079 cat >>conftest.$ac_ext <<_ACEOF
29080 /* end confdefs.h.  */
29081
29082 /* Override any GCC internal prototype to avoid an error.
29083    Use char because int might match the return type of a GCC
29084    builtin and then its argument prototype would still apply.  */
29085 #ifdef __cplusplus
29086 extern "C"
29087 #endif
29088 char bind_textdomain_codeset ();
29089 int
29090 main ()
29091 {
29092 return bind_textdomain_codeset ();
29093   ;
29094   return 0;
29095 }
29096 _ACEOF
29097 for ac_lib in '' intl; do
29098   if test -z "$ac_lib"; then
29099     ac_res="none required"
29100   else
29101     ac_res=-l$ac_lib
29102     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29103   fi
29104   rm -f conftest.$ac_objext conftest$ac_exeext
29105 if { (ac_try="$ac_link"
29106 case "(($ac_try" in
29107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29108   *) ac_try_echo=$ac_try;;
29109 esac
29110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29111 $as_echo "$ac_try_echo") >&5
29112   (eval "$ac_link") 2>conftest.er1
29113   ac_status=$?
29114   grep -v '^ *+' conftest.er1 >conftest.err
29115   rm -f conftest.er1
29116   cat conftest.err >&5
29117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); } && {
29119          test -z "$ac_c_werror_flag" ||
29120          test ! -s conftest.err
29121        } && test -s conftest$ac_exeext && {
29122          test "$cross_compiling" = yes ||
29123          $as_test_x conftest$ac_exeext
29124        }; then
29125   ac_cv_search_bind_textdomain_codeset=$ac_res
29126 else
29127   $as_echo "$as_me: failed program was:" >&5
29128 sed 's/^/| /' conftest.$ac_ext >&5
29129
29130
29131 fi
29132
29133 rm -rf conftest.dSYM
29134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29135       conftest$ac_exeext
29136   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
29137   break
29138 fi
29139 done
29140 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
29141   :
29142 else
29143   ac_cv_search_bind_textdomain_codeset=no
29144 fi
29145 rm conftest.$ac_ext
29146 LIBS=$ac_func_search_save_LIBS
29147 fi
29148 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
29149 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
29150 ac_res=$ac_cv_search_bind_textdomain_codeset
29151 if test "$ac_res" != no; then
29152   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29153
29154 else
29155   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
29156 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
29157    { (exit 1); exit 1; }; }
29158 fi
29159
29160   if test "${ac_cv_header_libintl_h+set}" = set; then
29161   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
29162 $as_echo_n "checking for libintl.h... " >&6; }
29163 if test "${ac_cv_header_libintl_h+set}" = set; then
29164   $as_echo_n "(cached) " >&6
29165 fi
29166 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
29167 $as_echo "$ac_cv_header_libintl_h" >&6; }
29168 else
29169   # Is the header compilable?
29170 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
29171 $as_echo_n "checking libintl.h usability... " >&6; }
29172 cat >conftest.$ac_ext <<_ACEOF
29173 /* confdefs.h.  */
29174 _ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h.  */
29178 $ac_includes_default
29179 #include <libintl.h>
29180 _ACEOF
29181 rm -f conftest.$ac_objext
29182 if { (ac_try="$ac_compile"
29183 case "(($ac_try" in
29184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29185   *) ac_try_echo=$ac_try;;
29186 esac
29187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29188 $as_echo "$ac_try_echo") >&5
29189   (eval "$ac_compile") 2>conftest.er1
29190   ac_status=$?
29191   grep -v '^ *+' conftest.er1 >conftest.err
29192   rm -f conftest.er1
29193   cat conftest.err >&5
29194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195   (exit $ac_status); } && {
29196          test -z "$ac_c_werror_flag" ||
29197          test ! -s conftest.err
29198        } && test -s conftest.$ac_objext; then
29199   ac_header_compiler=yes
29200 else
29201   $as_echo "$as_me: failed program was:" >&5
29202 sed 's/^/| /' conftest.$ac_ext >&5
29203
29204         ac_header_compiler=no
29205 fi
29206
29207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29208 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29209 $as_echo "$ac_header_compiler" >&6; }
29210
29211 # Is the header present?
29212 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
29213 $as_echo_n "checking libintl.h presence... " >&6; }
29214 cat >conftest.$ac_ext <<_ACEOF
29215 /* confdefs.h.  */
29216 _ACEOF
29217 cat confdefs.h >>conftest.$ac_ext
29218 cat >>conftest.$ac_ext <<_ACEOF
29219 /* end confdefs.h.  */
29220 #include <libintl.h>
29221 _ACEOF
29222 if { (ac_try="$ac_cpp conftest.$ac_ext"
29223 case "(($ac_try" in
29224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29225   *) ac_try_echo=$ac_try;;
29226 esac
29227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29228 $as_echo "$ac_try_echo") >&5
29229   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29230   ac_status=$?
29231   grep -v '^ *+' conftest.er1 >conftest.err
29232   rm -f conftest.er1
29233   cat conftest.err >&5
29234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); } >/dev/null && {
29236          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29237          test ! -s conftest.err
29238        }; then
29239   ac_header_preproc=yes
29240 else
29241   $as_echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29243
29244   ac_header_preproc=no
29245 fi
29246
29247 rm -f conftest.err conftest.$ac_ext
29248 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29249 $as_echo "$ac_header_preproc" >&6; }
29250
29251 # So?  What about this header?
29252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29253   yes:no: )
29254     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29255 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29256     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
29257 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
29258     ac_header_preproc=yes
29259     ;;
29260   no:yes:* )
29261     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
29262 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
29263     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
29264 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
29265     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
29266 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
29267     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
29268 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29269     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
29270 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
29271     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
29272 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
29273     ( cat <<\_ASBOX
29274 ## ---------------------------------------- ##
29275 ## Report this to pgsql-bugs@postgresql.org ##
29276 ## ---------------------------------------- ##
29277 _ASBOX
29278      ) | sed "s/^/$as_me: WARNING:     /" >&2
29279     ;;
29280 esac
29281 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
29282 $as_echo_n "checking for libintl.h... " >&6; }
29283 if test "${ac_cv_header_libintl_h+set}" = set; then
29284   $as_echo_n "(cached) " >&6
29285 else
29286   ac_cv_header_libintl_h=$ac_header_preproc
29287 fi
29288 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
29289 $as_echo "$ac_cv_header_libintl_h" >&6; }
29290
29291 fi
29292 if test "x$ac_cv_header_libintl_h" = x""yes; then
29293   :
29294 else
29295   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
29296 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
29297    { (exit 1); exit 1; }; }
29298 fi
29299
29300
29301   for ac_prog in msgfmt
29302 do
29303   # Extract the first word of "$ac_prog", so it can be a program name with args.
29304 set dummy $ac_prog; ac_word=$2
29305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29306 $as_echo_n "checking for $ac_word... " >&6; }
29307 if test "${ac_cv_prog_MSGFMT+set}" = set; then
29308   $as_echo_n "(cached) " >&6
29309 else
29310   if test -n "$MSGFMT"; then
29311   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
29312 else
29313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29314 for as_dir in $PATH
29315 do
29316   IFS=$as_save_IFS
29317   test -z "$as_dir" && as_dir=.
29318   for ac_exec_ext in '' $ac_executable_extensions; do
29319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29320     ac_cv_prog_MSGFMT="$ac_prog"
29321     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29322     break 2
29323   fi
29324 done
29325 done
29326 IFS=$as_save_IFS
29327
29328 fi
29329 fi
29330 MSGFMT=$ac_cv_prog_MSGFMT
29331 if test -n "$MSGFMT"; then
29332   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
29333 $as_echo "$MSGFMT" >&6; }
29334 else
29335   { $as_echo "$as_me:$LINENO: result: no" >&5
29336 $as_echo "no" >&6; }
29337 fi
29338
29339
29340   test -n "$MSGFMT" && break
29341 done
29342
29343   if test -z "$MSGFMT"; then
29344     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
29345 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
29346    { (exit 1); exit 1; }; }
29347   fi
29348   { $as_echo "$as_me:$LINENO: checking for msgfmt flags" >&5
29349 $as_echo_n "checking for msgfmt flags... " >&6; }
29350 if test "${pgac_cv_msgfmt_flags+set}" = set; then
29351   $as_echo_n "(cached) " >&6
29352 else
29353   if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
29354     pgac_cv_msgfmt_flags=-c
29355 fi
29356 fi
29357 { $as_echo "$as_me:$LINENO: result: $pgac_cv_msgfmt_flags" >&5
29358 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
29359   MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
29360
29361   for ac_prog in msgmerge
29362 do
29363   # Extract the first word of "$ac_prog", so it can be a program name with args.
29364 set dummy $ac_prog; ac_word=$2
29365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29366 $as_echo_n "checking for $ac_word... " >&6; }
29367 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
29368   $as_echo_n "(cached) " >&6
29369 else
29370   if test -n "$MSGMERGE"; then
29371   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
29372 else
29373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29374 for as_dir in $PATH
29375 do
29376   IFS=$as_save_IFS
29377   test -z "$as_dir" && as_dir=.
29378   for ac_exec_ext in '' $ac_executable_extensions; do
29379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29380     ac_cv_prog_MSGMERGE="$ac_prog"
29381     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29382     break 2
29383   fi
29384 done
29385 done
29386 IFS=$as_save_IFS
29387
29388 fi
29389 fi
29390 MSGMERGE=$ac_cv_prog_MSGMERGE
29391 if test -n "$MSGMERGE"; then
29392   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
29393 $as_echo "$MSGMERGE" >&6; }
29394 else
29395   { $as_echo "$as_me:$LINENO: result: no" >&5
29396 $as_echo "no" >&6; }
29397 fi
29398
29399
29400   test -n "$MSGMERGE" && break
29401 done
29402
29403   for ac_prog in xgettext
29404 do
29405   # Extract the first word of "$ac_prog", so it can be a program name with args.
29406 set dummy $ac_prog; ac_word=$2
29407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29408 $as_echo_n "checking for $ac_word... " >&6; }
29409 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
29410   $as_echo_n "(cached) " >&6
29411 else
29412   if test -n "$XGETTEXT"; then
29413   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
29414 else
29415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29416 for as_dir in $PATH
29417 do
29418   IFS=$as_save_IFS
29419   test -z "$as_dir" && as_dir=.
29420   for ac_exec_ext in '' $ac_executable_extensions; do
29421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29422     ac_cv_prog_XGETTEXT="$ac_prog"
29423     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29424     break 2
29425   fi
29426 done
29427 done
29428 IFS=$as_save_IFS
29429
29430 fi
29431 fi
29432 XGETTEXT=$ac_cv_prog_XGETTEXT
29433 if test -n "$XGETTEXT"; then
29434   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
29435 $as_echo "$XGETTEXT" >&6; }
29436 else
29437   { $as_echo "$as_me:$LINENO: result: no" >&5
29438 $as_echo "no" >&6; }
29439 fi
29440
29441
29442   test -n "$XGETTEXT" && break
29443 done
29444
29445
29446 fi
29447
29448 # Check for Tcl configuration script tclConfig.sh
29449 if test "$with_tcl" = yes; then
29450     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
29451 do
29452   # Extract the first word of "$ac_prog", so it can be a program name with args.
29453 set dummy $ac_prog; ac_word=$2
29454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29455 $as_echo_n "checking for $ac_word... " >&6; }
29456 if test "${ac_cv_path_TCLSH+set}" = set; then
29457   $as_echo_n "(cached) " >&6
29458 else
29459   case $TCLSH in
29460   [\\/]* | ?:[\\/]*)
29461   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
29462   ;;
29463   *)
29464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29465 for as_dir in $PATH
29466 do
29467   IFS=$as_save_IFS
29468   test -z "$as_dir" && as_dir=.
29469   for ac_exec_ext in '' $ac_executable_extensions; do
29470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29471     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
29472     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29473     break 2
29474   fi
29475 done
29476 done
29477 IFS=$as_save_IFS
29478
29479   ;;
29480 esac
29481 fi
29482 TCLSH=$ac_cv_path_TCLSH
29483 if test -n "$TCLSH"; then
29484   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
29485 $as_echo "$TCLSH" >&6; }
29486 else
29487   { $as_echo "$as_me:$LINENO: result: no" >&5
29488 $as_echo "no" >&6; }
29489 fi
29490
29491
29492   test -n "$TCLSH" && break
29493 done
29494
29495 if test x"$TCLSH" = x""; then
29496   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
29497 $as_echo "$as_me: error: Tcl shell not found" >&2;}
29498    { (exit 1); exit 1; }; }
29499 fi
29500
29501 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
29502 $as_echo_n "checking for tclConfig.sh... " >&6; }
29503 # Let user override test
29504 if test -z "$TCL_CONFIG_SH"; then
29505     pgac_test_dirs="$with_tclconfig"
29506
29507     set X $pgac_test_dirs; shift
29508     if test $# -eq 0; then
29509         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
29510 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
29511    { (exit 1); exit 1; }; }
29512         set X `echo 'puts $auto_path' | $TCLSH`; shift
29513     fi
29514
29515     for pgac_dir do
29516         if test -r "$pgac_dir/tclConfig.sh"; then
29517             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
29518             break
29519         fi
29520     done
29521 fi
29522
29523 if test -z "$TCL_CONFIG_SH"; then
29524     { $as_echo "$as_me:$LINENO: result: no" >&5
29525 $as_echo "no" >&6; }
29526     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
29527 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
29528    { (exit 1); exit 1; }; }
29529 else
29530     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
29531 $as_echo "$TCL_CONFIG_SH" >&6; }
29532 fi
29533
29534
29535
29536     . "$TCL_CONFIG_SH"
29537 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
29538 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
29539 eval TCL_LIBS=\"$TCL_LIBS\"
29540 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
29541 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
29542
29543         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
29544     ac_save_CPPFLAGS=$CPPFLAGS
29545     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
29546     if test "${ac_cv_header_tcl_h+set}" = set; then
29547   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29548 $as_echo_n "checking for tcl.h... " >&6; }
29549 if test "${ac_cv_header_tcl_h+set}" = set; then
29550   $as_echo_n "(cached) " >&6
29551 fi
29552 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29553 $as_echo "$ac_cv_header_tcl_h" >&6; }
29554 else
29555   # Is the header compilable?
29556 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
29557 $as_echo_n "checking tcl.h usability... " >&6; }
29558 cat >conftest.$ac_ext <<_ACEOF
29559 /* confdefs.h.  */
29560 _ACEOF
29561 cat confdefs.h >>conftest.$ac_ext
29562 cat >>conftest.$ac_ext <<_ACEOF
29563 /* end confdefs.h.  */
29564 $ac_includes_default
29565 #include <tcl.h>
29566 _ACEOF
29567 rm -f conftest.$ac_objext
29568 if { (ac_try="$ac_compile"
29569 case "(($ac_try" in
29570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571   *) ac_try_echo=$ac_try;;
29572 esac
29573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29574 $as_echo "$ac_try_echo") >&5
29575   (eval "$ac_compile") 2>conftest.er1
29576   ac_status=$?
29577   grep -v '^ *+' conftest.er1 >conftest.err
29578   rm -f conftest.er1
29579   cat conftest.err >&5
29580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581   (exit $ac_status); } && {
29582          test -z "$ac_c_werror_flag" ||
29583          test ! -s conftest.err
29584        } && test -s conftest.$ac_objext; then
29585   ac_header_compiler=yes
29586 else
29587   $as_echo "$as_me: failed program was:" >&5
29588 sed 's/^/| /' conftest.$ac_ext >&5
29589
29590         ac_header_compiler=no
29591 fi
29592
29593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29594 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29595 $as_echo "$ac_header_compiler" >&6; }
29596
29597 # Is the header present?
29598 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29599 $as_echo_n "checking tcl.h presence... " >&6; }
29600 cat >conftest.$ac_ext <<_ACEOF
29601 /* confdefs.h.  */
29602 _ACEOF
29603 cat confdefs.h >>conftest.$ac_ext
29604 cat >>conftest.$ac_ext <<_ACEOF
29605 /* end confdefs.h.  */
29606 #include <tcl.h>
29607 _ACEOF
29608 if { (ac_try="$ac_cpp conftest.$ac_ext"
29609 case "(($ac_try" in
29610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29611   *) ac_try_echo=$ac_try;;
29612 esac
29613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29614 $as_echo "$ac_try_echo") >&5
29615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29616   ac_status=$?
29617   grep -v '^ *+' conftest.er1 >conftest.err
29618   rm -f conftest.er1
29619   cat conftest.err >&5
29620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621   (exit $ac_status); } >/dev/null && {
29622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29623          test ! -s conftest.err
29624        }; then
29625   ac_header_preproc=yes
29626 else
29627   $as_echo "$as_me: failed program was:" >&5
29628 sed 's/^/| /' conftest.$ac_ext >&5
29629
29630   ac_header_preproc=no
29631 fi
29632
29633 rm -f conftest.err conftest.$ac_ext
29634 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29635 $as_echo "$ac_header_preproc" >&6; }
29636
29637 # So?  What about this header?
29638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29639   yes:no: )
29640     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29641 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29642     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29643 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29644     ac_header_preproc=yes
29645     ;;
29646   no:yes:* )
29647     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29648 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29649     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
29650 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
29651     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29652 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29653     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
29654 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29655     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29656 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29657     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29658 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29659     ( cat <<\_ASBOX
29660 ## ---------------------------------------- ##
29661 ## Report this to pgsql-bugs@postgresql.org ##
29662 ## ---------------------------------------- ##
29663 _ASBOX
29664      ) | sed "s/^/$as_me: WARNING:     /" >&2
29665     ;;
29666 esac
29667 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29668 $as_echo_n "checking for tcl.h... " >&6; }
29669 if test "${ac_cv_header_tcl_h+set}" = set; then
29670   $as_echo_n "(cached) " >&6
29671 else
29672   ac_cv_header_tcl_h=$ac_header_preproc
29673 fi
29674 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29675 $as_echo "$ac_cv_header_tcl_h" >&6; }
29676
29677 fi
29678 if test "x$ac_cv_header_tcl_h" = x""yes; then
29679   :
29680 else
29681   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29682 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29683    { (exit 1); exit 1; }; }
29684 fi
29685
29686
29687     CPPFLAGS=$ac_save_CPPFLAGS
29688 fi
29689
29690 # check for <perl.h>
29691 if test "$with_perl" = yes; then
29692   ac_save_CPPFLAGS=$CPPFLAGS
29693   CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
29694   { $as_echo "$as_me:$LINENO: checking for perl.h" >&5
29695 $as_echo_n "checking for perl.h... " >&6; }
29696 if test "${ac_cv_header_perl_h+set}" = set; then
29697   $as_echo_n "(cached) " >&6
29698 else
29699   cat >conftest.$ac_ext <<_ACEOF
29700 /* confdefs.h.  */
29701 _ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h.  */
29705 #include <EXTERN.h>
29706
29707 #include <perl.h>
29708 _ACEOF
29709 rm -f conftest.$ac_objext
29710 if { (ac_try="$ac_compile"
29711 case "(($ac_try" in
29712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713   *) ac_try_echo=$ac_try;;
29714 esac
29715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29716 $as_echo "$ac_try_echo") >&5
29717   (eval "$ac_compile") 2>conftest.er1
29718   ac_status=$?
29719   grep -v '^ *+' conftest.er1 >conftest.err
29720   rm -f conftest.er1
29721   cat conftest.err >&5
29722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723   (exit $ac_status); } && {
29724          test -z "$ac_c_werror_flag" ||
29725          test ! -s conftest.err
29726        } && test -s conftest.$ac_objext; then
29727   ac_cv_header_perl_h=yes
29728 else
29729   $as_echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29731
29732         ac_cv_header_perl_h=no
29733 fi
29734
29735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29736 fi
29737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perl_h" >&5
29738 $as_echo "$ac_cv_header_perl_h" >&6; }
29739 if test "x$ac_cv_header_perl_h" = x""yes; then
29740   :
29741 else
29742   { { $as_echo "$as_me:$LINENO: error: header file <perl.h> is required for Perl" >&5
29743 $as_echo "$as_me: error: header file <perl.h> is required for Perl" >&2;}
29744    { (exit 1); exit 1; }; }
29745 fi
29746
29747
29748   # While we're at it, check that we can link to libperl.
29749   # On most platforms, if perl.h is there then libperl.so will be too, but at
29750   # this writing Debian packages them separately.  There is no known reason to
29751   # waste cycles on separate probes for the Tcl or Python libraries, though.
29752   pgac_save_LIBS=$LIBS
29753   LIBS="$perl_embed_ldflags"
29754   { $as_echo "$as_me:$LINENO: checking for libperl" >&5
29755 $as_echo_n "checking for libperl... " >&6; }
29756   cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h.  */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h.  */
29762
29763 #include <EXTERN.h>
29764 #include <perl.h>
29765
29766 int
29767 main ()
29768 {
29769 perl_alloc();
29770   ;
29771   return 0;
29772 }
29773 _ACEOF
29774 rm -f conftest.$ac_objext conftest$ac_exeext
29775 if { (ac_try="$ac_link"
29776 case "(($ac_try" in
29777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29778   *) ac_try_echo=$ac_try;;
29779 esac
29780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29781 $as_echo "$ac_try_echo") >&5
29782   (eval "$ac_link") 2>conftest.er1
29783   ac_status=$?
29784   grep -v '^ *+' conftest.er1 >conftest.err
29785   rm -f conftest.er1
29786   cat conftest.err >&5
29787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788   (exit $ac_status); } && {
29789          test -z "$ac_c_werror_flag" ||
29790          test ! -s conftest.err
29791        } && test -s conftest$ac_exeext && {
29792          test "$cross_compiling" = yes ||
29793          $as_test_x conftest$ac_exeext
29794        }; then
29795   { $as_echo "$as_me:$LINENO: result: yes" >&5
29796 $as_echo "yes" >&6; }
29797 else
29798   $as_echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29800
29801         { $as_echo "$as_me:$LINENO: result: no" >&5
29802 $as_echo "no" >&6; }
29803      { { $as_echo "$as_me:$LINENO: error: libperl library is required for Perl" >&5
29804 $as_echo "$as_me: error: libperl library is required for Perl" >&2;}
29805    { (exit 1); exit 1; }; }
29806 fi
29807
29808 rm -rf conftest.dSYM
29809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29810       conftest$ac_exeext conftest.$ac_ext
29811   LIBS=$pgac_save_LIBS
29812   CPPFLAGS=$ac_save_CPPFLAGS
29813 fi
29814
29815 # check for <Python.h>
29816 if test "$with_python" = yes; then
29817   ac_save_CPPFLAGS=$CPPFLAGS
29818   CPPFLAGS="$python_includespec $CPPFLAGS"
29819   if test "${ac_cv_header_Python_h+set}" = set; then
29820   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29821 $as_echo_n "checking for Python.h... " >&6; }
29822 if test "${ac_cv_header_Python_h+set}" = set; then
29823   $as_echo_n "(cached) " >&6
29824 fi
29825 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29826 $as_echo "$ac_cv_header_Python_h" >&6; }
29827 else
29828   # Is the header compilable?
29829 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29830 $as_echo_n "checking Python.h usability... " >&6; }
29831 cat >conftest.$ac_ext <<_ACEOF
29832 /* confdefs.h.  */
29833 _ACEOF
29834 cat confdefs.h >>conftest.$ac_ext
29835 cat >>conftest.$ac_ext <<_ACEOF
29836 /* end confdefs.h.  */
29837 $ac_includes_default
29838 #include <Python.h>
29839 _ACEOF
29840 rm -f conftest.$ac_objext
29841 if { (ac_try="$ac_compile"
29842 case "(($ac_try" in
29843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29844   *) ac_try_echo=$ac_try;;
29845 esac
29846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29847 $as_echo "$ac_try_echo") >&5
29848   (eval "$ac_compile") 2>conftest.er1
29849   ac_status=$?
29850   grep -v '^ *+' conftest.er1 >conftest.err
29851   rm -f conftest.er1
29852   cat conftest.err >&5
29853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854   (exit $ac_status); } && {
29855          test -z "$ac_c_werror_flag" ||
29856          test ! -s conftest.err
29857        } && test -s conftest.$ac_objext; then
29858   ac_header_compiler=yes
29859 else
29860   $as_echo "$as_me: failed program was:" >&5
29861 sed 's/^/| /' conftest.$ac_ext >&5
29862
29863         ac_header_compiler=no
29864 fi
29865
29866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29868 $as_echo "$ac_header_compiler" >&6; }
29869
29870 # Is the header present?
29871 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29872 $as_echo_n "checking Python.h presence... " >&6; }
29873 cat >conftest.$ac_ext <<_ACEOF
29874 /* confdefs.h.  */
29875 _ACEOF
29876 cat confdefs.h >>conftest.$ac_ext
29877 cat >>conftest.$ac_ext <<_ACEOF
29878 /* end confdefs.h.  */
29879 #include <Python.h>
29880 _ACEOF
29881 if { (ac_try="$ac_cpp conftest.$ac_ext"
29882 case "(($ac_try" in
29883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884   *) ac_try_echo=$ac_try;;
29885 esac
29886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29887 $as_echo "$ac_try_echo") >&5
29888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29889   ac_status=$?
29890   grep -v '^ *+' conftest.er1 >conftest.err
29891   rm -f conftest.er1
29892   cat conftest.err >&5
29893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894   (exit $ac_status); } >/dev/null && {
29895          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29896          test ! -s conftest.err
29897        }; then
29898   ac_header_preproc=yes
29899 else
29900   $as_echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29902
29903   ac_header_preproc=no
29904 fi
29905
29906 rm -f conftest.err conftest.$ac_ext
29907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29908 $as_echo "$ac_header_preproc" >&6; }
29909
29910 # So?  What about this header?
29911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29912   yes:no: )
29913     { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29914 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29915     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29916 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29917     ac_header_preproc=yes
29918     ;;
29919   no:yes:* )
29920     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29921 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29922     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29923 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29924     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29925 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29926     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29927 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29928     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29929 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29930     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29931 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29932     ( cat <<\_ASBOX
29933 ## ---------------------------------------- ##
29934 ## Report this to pgsql-bugs@postgresql.org ##
29935 ## ---------------------------------------- ##
29936 _ASBOX
29937      ) | sed "s/^/$as_me: WARNING:     /" >&2
29938     ;;
29939 esac
29940 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29941 $as_echo_n "checking for Python.h... " >&6; }
29942 if test "${ac_cv_header_Python_h+set}" = set; then
29943   $as_echo_n "(cached) " >&6
29944 else
29945   ac_cv_header_Python_h=$ac_header_preproc
29946 fi
29947 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29948 $as_echo "$ac_cv_header_Python_h" >&6; }
29949
29950 fi
29951 if test "x$ac_cv_header_Python_h" = x""yes; then
29952   :
29953 else
29954   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29955 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29956    { (exit 1); exit 1; }; }
29957 fi
29958
29959
29960   CPPFLAGS=$ac_save_CPPFLAGS
29961 fi
29962
29963 #
29964 # Check for DocBook and tools
29965 #
29966 for ac_prog in onsgmls nsgmls
29967 do
29968   # Extract the first word of "$ac_prog", so it can be a program name with args.
29969 set dummy $ac_prog; ac_word=$2
29970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29971 $as_echo_n "checking for $ac_word... " >&6; }
29972 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29973   $as_echo_n "(cached) " >&6
29974 else
29975   if test -n "$NSGMLS"; then
29976   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29977 else
29978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29979 for as_dir in $PATH
29980 do
29981   IFS=$as_save_IFS
29982   test -z "$as_dir" && as_dir=.
29983   for ac_exec_ext in '' $ac_executable_extensions; do
29984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29985     ac_cv_prog_NSGMLS="$ac_prog"
29986     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29987     break 2
29988   fi
29989 done
29990 done
29991 IFS=$as_save_IFS
29992
29993 fi
29994 fi
29995 NSGMLS=$ac_cv_prog_NSGMLS
29996 if test -n "$NSGMLS"; then
29997   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29998 $as_echo "$NSGMLS" >&6; }
29999 else
30000   { $as_echo "$as_me:$LINENO: result: no" >&5
30001 $as_echo "no" >&6; }
30002 fi
30003
30004
30005   test -n "$NSGMLS" && break
30006 done
30007
30008 for ac_prog in openjade jade
30009 do
30010   # Extract the first word of "$ac_prog", so it can be a program name with args.
30011 set dummy $ac_prog; ac_word=$2
30012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30013 $as_echo_n "checking for $ac_word... " >&6; }
30014 if test "${ac_cv_prog_JADE+set}" = set; then
30015   $as_echo_n "(cached) " >&6
30016 else
30017   if test -n "$JADE"; then
30018   ac_cv_prog_JADE="$JADE" # Let the user override the test.
30019 else
30020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30021 for as_dir in $PATH
30022 do
30023   IFS=$as_save_IFS
30024   test -z "$as_dir" && as_dir=.
30025   for ac_exec_ext in '' $ac_executable_extensions; do
30026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30027     ac_cv_prog_JADE="$ac_prog"
30028     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30029     break 2
30030   fi
30031 done
30032 done
30033 IFS=$as_save_IFS
30034
30035 fi
30036 fi
30037 JADE=$ac_cv_prog_JADE
30038 if test -n "$JADE"; then
30039   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
30040 $as_echo "$JADE" >&6; }
30041 else
30042   { $as_echo "$as_me:$LINENO: result: no" >&5
30043 $as_echo "no" >&6; }
30044 fi
30045
30046
30047   test -n "$JADE" && break
30048 done
30049
30050
30051 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
30052 $as_echo_n "checking for DocBook V4.2... " >&6; }
30053 if test "${pgac_cv_check_docbook+set}" = set; then
30054   $as_echo_n "(cached) " >&6
30055 else
30056   cat >conftest.sgml <<EOF
30057 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
30058 <book>
30059  <title>test</title>
30060  <chapter>
30061   <title>random</title>
30062    <sect1>
30063     <title>testsect</title>
30064     <para>text</para>
30065   </sect1>
30066  </chapter>
30067 </book>
30068 EOF
30069
30070 pgac_cv_check_docbook=no
30071
30072 if test -n "$NSGMLS"; then
30073   $NSGMLS -s conftest.sgml 1>&5 2>&1
30074   if test $? -eq 0; then
30075     pgac_cv_check_docbook=yes
30076   fi
30077 fi
30078 rm -f conftest.sgml
30079 fi
30080 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
30081 $as_echo "$pgac_cv_check_docbook" >&6; }
30082
30083 have_docbook=$pgac_cv_check_docbook
30084
30085
30086 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
30087 $as_echo_n "checking for DocBook stylesheets... " >&6; }
30088 if test "${pgac_cv_path_stylesheets+set}" = set; then
30089   $as_echo_n "(cached) " >&6
30090 else
30091   if test -n "$DOCBOOKSTYLE"; then
30092   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
30093 else
30094   for pgac_prefix in /usr /usr/local /opt /sw; do
30095     for pgac_infix in share lib; do
30096       for pgac_postfix in \
30097         sgml/stylesheets/nwalsh-modular \
30098         sgml/stylesheets/docbook \
30099         sgml/stylesheets/dsssl/docbook \
30100         sgml/docbook-dsssl \
30101         sgml/docbook/dsssl/modular \
30102         sgml/docbook/stylesheet/dsssl/modular \
30103         sgml/docbook/dsssl-stylesheets \
30104         sgml/dsssl/docbook-dsssl-nwalsh
30105       do
30106         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
30107         if test -r "$pgac_candidate/html/docbook.dsl" \
30108            && test -r "$pgac_candidate/print/docbook.dsl"
30109         then
30110           pgac_cv_path_stylesheets=$pgac_candidate
30111           break 3
30112         fi
30113       done
30114     done
30115   done
30116 fi
30117 fi
30118
30119 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
30120
30121 if test -n "$DOCBOOKSTYLE"; then
30122   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
30123 $as_echo "$DOCBOOKSTYLE" >&6; }
30124 else
30125   { $as_echo "$as_me:$LINENO: result: no" >&5
30126 $as_echo "no" >&6; }
30127 fi
30128 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
30129   COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
30130
30131 else
30132   # Extract the first word of "collateindex.pl", so it can be a program name with args.
30133 set dummy collateindex.pl; ac_word=$2
30134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30135 $as_echo_n "checking for $ac_word... " >&6; }
30136 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
30137   $as_echo_n "(cached) " >&6
30138 else
30139   case $COLLATEINDEX in
30140   [\\/]* | ?:[\\/]*)
30141   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
30142   ;;
30143   *)
30144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30145 for as_dir in $PATH
30146 do
30147   IFS=$as_save_IFS
30148   test -z "$as_dir" && as_dir=.
30149   for ac_exec_ext in '' $ac_executable_extensions; do
30150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30151     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
30152     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30153     break 2
30154   fi
30155 done
30156 done
30157 IFS=$as_save_IFS
30158
30159   ;;
30160 esac
30161 fi
30162 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
30163 if test -n "$COLLATEINDEX"; then
30164   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
30165 $as_echo "$COLLATEINDEX" >&6; }
30166 else
30167   { $as_echo "$as_me:$LINENO: result: no" >&5
30168 $as_echo "no" >&6; }
30169 fi
30170
30171
30172 fi
30173 for ac_prog in xsltproc
30174 do
30175   # Extract the first word of "$ac_prog", so it can be a program name with args.
30176 set dummy $ac_prog; ac_word=$2
30177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30178 $as_echo_n "checking for $ac_word... " >&6; }
30179 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
30180   $as_echo_n "(cached) " >&6
30181 else
30182   if test -n "$XSLTPROC"; then
30183   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
30184 else
30185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30186 for as_dir in $PATH
30187 do
30188   IFS=$as_save_IFS
30189   test -z "$as_dir" && as_dir=.
30190   for ac_exec_ext in '' $ac_executable_extensions; do
30191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30192     ac_cv_prog_XSLTPROC="$ac_prog"
30193     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30194     break 2
30195   fi
30196 done
30197 done
30198 IFS=$as_save_IFS
30199
30200 fi
30201 fi
30202 XSLTPROC=$ac_cv_prog_XSLTPROC
30203 if test -n "$XSLTPROC"; then
30204   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
30205 $as_echo "$XSLTPROC" >&6; }
30206 else
30207   { $as_echo "$as_me:$LINENO: result: no" >&5
30208 $as_echo "no" >&6; }
30209 fi
30210
30211
30212   test -n "$XSLTPROC" && break
30213 done
30214
30215 for ac_prog in osx sgml2xml sx
30216 do
30217   # Extract the first word of "$ac_prog", so it can be a program name with args.
30218 set dummy $ac_prog; ac_word=$2
30219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30220 $as_echo_n "checking for $ac_word... " >&6; }
30221 if test "${ac_cv_prog_OSX+set}" = set; then
30222   $as_echo_n "(cached) " >&6
30223 else
30224   if test -n "$OSX"; then
30225   ac_cv_prog_OSX="$OSX" # Let the user override the test.
30226 else
30227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30228 for as_dir in $PATH
30229 do
30230   IFS=$as_save_IFS
30231   test -z "$as_dir" && as_dir=.
30232   for ac_exec_ext in '' $ac_executable_extensions; do
30233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30234     ac_cv_prog_OSX="$ac_prog"
30235     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30236     break 2
30237   fi
30238 done
30239 done
30240 IFS=$as_save_IFS
30241
30242 fi
30243 fi
30244 OSX=$ac_cv_prog_OSX
30245 if test -n "$OSX"; then
30246   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
30247 $as_echo "$OSX" >&6; }
30248 else
30249   { $as_echo "$as_me:$LINENO: result: no" >&5
30250 $as_echo "no" >&6; }
30251 fi
30252
30253
30254   test -n "$OSX" && break
30255 done
30256
30257
30258 # Thread testing
30259
30260 # We have to run the thread test near the end so we have all our symbols
30261 # defined.  Cross compiling throws a warning.
30262 #
30263 if test "$enable_thread_safety" = yes; then
30264 if test "$PORTNAME" != "win32"
30265 then
30266 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
30267 $as_echo_n "checking thread safety of required library functions... " >&6; }
30268
30269 _CFLAGS="$CFLAGS"
30270 _LIBS="$LIBS"
30271 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
30272 LIBS="$LIBS $PTHREAD_LIBS"
30273 if test "$cross_compiling" = yes; then
30274   { $as_echo "$as_me:$LINENO: result: maybe" >&5
30275 $as_echo "maybe" >&6; }
30276   { $as_echo "$as_me:$LINENO: WARNING:
30277 *** Skipping thread test program because of cross-compile build.
30278 *** Run the program in src/test/thread on the target machine.
30279 " >&5
30280 $as_echo "$as_me: WARNING:
30281 *** Skipping thread test program because of cross-compile build.
30282 *** Run the program in src/test/thread on the target machine.
30283 " >&2;}
30284 else
30285   cat >conftest.$ac_ext <<_ACEOF
30286 /* confdefs.h.  */
30287 _ACEOF
30288 cat confdefs.h >>conftest.$ac_ext
30289 cat >>conftest.$ac_ext <<_ACEOF
30290 /* end confdefs.h.  */
30291 #include "$srcdir/src/test/thread/thread_test.c"
30292 _ACEOF
30293 rm -f conftest$ac_exeext
30294 if { (ac_try="$ac_link"
30295 case "(($ac_try" in
30296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30297   *) ac_try_echo=$ac_try;;
30298 esac
30299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30300 $as_echo "$ac_try_echo") >&5
30301   (eval "$ac_link") 2>&5
30302   ac_status=$?
30303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30305   { (case "(($ac_try" in
30306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307   *) ac_try_echo=$ac_try;;
30308 esac
30309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30310 $as_echo "$ac_try_echo") >&5
30311   (eval "$ac_try") 2>&5
30312   ac_status=$?
30313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); }; }; then
30315   { $as_echo "$as_me:$LINENO: result: yes" >&5
30316 $as_echo "yes" >&6; }
30317 else
30318   $as_echo "$as_me: program exited with status $ac_status" >&5
30319 $as_echo "$as_me: failed program was:" >&5
30320 sed 's/^/| /' conftest.$ac_ext >&5
30321
30322 ( exit $ac_status )
30323 { $as_echo "$as_me:$LINENO: result: no" >&5
30324 $as_echo "no" >&6; }
30325   { { $as_echo "$as_me:$LINENO: error: thread test program failed
30326 This platform is not thread-safe.  Check the file 'config.log' or compile
30327 and run src/test/thread/thread_test for the exact reason.
30328 Use --disable-thread-safety to disable thread safety." >&5
30329 $as_echo "$as_me: error: thread test program failed
30330 This platform is not thread-safe.  Check the file 'config.log' or compile
30331 and run src/test/thread/thread_test for the exact reason.
30332 Use --disable-thread-safety to disable thread safety." >&2;}
30333    { (exit 1); exit 1; }; }
30334 fi
30335 rm -rf conftest.dSYM
30336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30337 fi
30338
30339
30340 CFLAGS="$_CFLAGS"
30341 LIBS="$_LIBS"
30342 else
30343 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
30344 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
30345 fi
30346 fi
30347
30348 # If compiler will take -Wl,--as-needed (or various platform-specific
30349 # spellings thereof) then add that to LDFLAGS.  This is much easier than
30350 # trying to filter LIBS to the minimum for each executable.
30351 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
30352 # libreadline; therefore we postpone testing it until we know what library
30353 # dependencies readline has.  The test code will try to link with $LIBS.
30354 if test "$with_readline" = yes; then
30355   link_test_func=readline
30356 else
30357   link_test_func=exit
30358 fi
30359
30360 if test "$PORTNAME" = "darwin"; then
30361   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
30362 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
30363 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
30364   $as_echo_n "(cached) " >&6
30365 else
30366   pgac_save_LDFLAGS=$LDFLAGS
30367 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
30368 if test "$cross_compiling" = yes; then
30369   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
30370 else
30371   cat >conftest.$ac_ext <<_ACEOF
30372 /* confdefs.h.  */
30373 _ACEOF
30374 cat confdefs.h >>conftest.$ac_ext
30375 cat >>conftest.$ac_ext <<_ACEOF
30376 /* end confdefs.h.  */
30377 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30378 int
30379 main ()
30380 {
30381
30382   ;
30383   return 0;
30384 }
30385 _ACEOF
30386 rm -f conftest$ac_exeext
30387 if { (ac_try="$ac_link"
30388 case "(($ac_try" in
30389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30390   *) ac_try_echo=$ac_try;;
30391 esac
30392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30393 $as_echo "$ac_try_echo") >&5
30394   (eval "$ac_link") 2>&5
30395   ac_status=$?
30396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30398   { (case "(($ac_try" in
30399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30400   *) ac_try_echo=$ac_try;;
30401 esac
30402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30403 $as_echo "$ac_try_echo") >&5
30404   (eval "$ac_try") 2>&5
30405   ac_status=$?
30406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407   (exit $ac_status); }; }; then
30408   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
30409 else
30410   $as_echo "$as_me: program exited with status $ac_status" >&5
30411 $as_echo "$as_me: failed program was:" >&5
30412 sed 's/^/| /' conftest.$ac_ext >&5
30413
30414 ( exit $ac_status )
30415 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
30416 fi
30417 rm -rf conftest.dSYM
30418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30419 fi
30420
30421
30422 LDFLAGS="$pgac_save_LDFLAGS"
30423 fi
30424 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
30425 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
30426 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
30427   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
30428 fi
30429
30430 elif test "$PORTNAME" = "openbsd"; then
30431   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
30432 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
30433 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
30434   $as_echo_n "(cached) " >&6
30435 else
30436   pgac_save_LDFLAGS=$LDFLAGS
30437 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
30438 if test "$cross_compiling" = yes; then
30439   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
30440 else
30441   cat >conftest.$ac_ext <<_ACEOF
30442 /* confdefs.h.  */
30443 _ACEOF
30444 cat confdefs.h >>conftest.$ac_ext
30445 cat >>conftest.$ac_ext <<_ACEOF
30446 /* end confdefs.h.  */
30447 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30448 int
30449 main ()
30450 {
30451
30452   ;
30453   return 0;
30454 }
30455 _ACEOF
30456 rm -f conftest$ac_exeext
30457 if { (ac_try="$ac_link"
30458 case "(($ac_try" in
30459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460   *) ac_try_echo=$ac_try;;
30461 esac
30462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30463 $as_echo "$ac_try_echo") >&5
30464   (eval "$ac_link") 2>&5
30465   ac_status=$?
30466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30468   { (case "(($ac_try" in
30469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470   *) ac_try_echo=$ac_try;;
30471 esac
30472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30473 $as_echo "$ac_try_echo") >&5
30474   (eval "$ac_try") 2>&5
30475   ac_status=$?
30476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477   (exit $ac_status); }; }; then
30478   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
30479 else
30480   $as_echo "$as_me: program exited with status $ac_status" >&5
30481 $as_echo "$as_me: failed program was:" >&5
30482 sed 's/^/| /' conftest.$ac_ext >&5
30483
30484 ( exit $ac_status )
30485 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
30486 fi
30487 rm -rf conftest.dSYM
30488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30489 fi
30490
30491
30492 LDFLAGS="$pgac_save_LDFLAGS"
30493 fi
30494 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
30495 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
30496 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
30497   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
30498 fi
30499
30500 else
30501   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
30502 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
30503 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
30504   $as_echo_n "(cached) " >&6
30505 else
30506   pgac_save_LDFLAGS=$LDFLAGS
30507 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
30508 if test "$cross_compiling" = yes; then
30509   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
30510 else
30511   cat >conftest.$ac_ext <<_ACEOF
30512 /* confdefs.h.  */
30513 _ACEOF
30514 cat confdefs.h >>conftest.$ac_ext
30515 cat >>conftest.$ac_ext <<_ACEOF
30516 /* end confdefs.h.  */
30517 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30518 int
30519 main ()
30520 {
30521
30522   ;
30523   return 0;
30524 }
30525 _ACEOF
30526 rm -f conftest$ac_exeext
30527 if { (ac_try="$ac_link"
30528 case "(($ac_try" in
30529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30530   *) ac_try_echo=$ac_try;;
30531 esac
30532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30533 $as_echo "$ac_try_echo") >&5
30534   (eval "$ac_link") 2>&5
30535   ac_status=$?
30536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30538   { (case "(($ac_try" in
30539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540   *) ac_try_echo=$ac_try;;
30541 esac
30542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30543 $as_echo "$ac_try_echo") >&5
30544   (eval "$ac_try") 2>&5
30545   ac_status=$?
30546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547   (exit $ac_status); }; }; then
30548   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
30549 else
30550   $as_echo "$as_me: program exited with status $ac_status" >&5
30551 $as_echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30553
30554 ( exit $ac_status )
30555 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
30556 fi
30557 rm -rf conftest.dSYM
30558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30559 fi
30560
30561
30562 LDFLAGS="$pgac_save_LDFLAGS"
30563 fi
30564 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
30565 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
30566 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
30567   LDFLAGS="$LDFLAGS -Wl,--as-needed"
30568 fi
30569
30570 fi
30571
30572 # Create compiler version string
30573 if test x"$GCC" = x"yes" ; then
30574   cc_string=`${CC} --version | sed q`
30575   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
30576 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
30577   cc_string=`${CC} -V 2>&1 | sed q`
30578 else
30579   cc_string=$CC
30580 fi
30581
30582
30583 cat >>confdefs.h <<_ACEOF
30584 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
30585 _ACEOF
30586
30587
30588 # Supply a numeric version string for use by 3rd party add-ons
30589 # awk -F is a regex on some platforms, and not on others, so make "." a tab
30590 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
30591 tr '.' '        ' |
30592 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
30593
30594 cat >>confdefs.h <<_ACEOF
30595 #define PG_VERSION_NUM $PG_VERSION_NUM
30596 _ACEOF
30597
30598
30599
30600 # Begin output steps
30601
30602 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
30603 $as_echo "$as_me: using compiler=$cc_string" >&6;}
30604 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
30605 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
30606 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
30607 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
30608 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
30609 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
30610
30611 # prepare build tree if outside source tree
30612 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
30613 # Note 2: /bin/pwd might be better than shell's built-in at getting
30614 #         a symlink-free name.
30615 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
30616   vpath_build=no
30617 else
30618   vpath_build=yes
30619   if test "$no_create" != yes; then
30620     $as_echo_n "preparing build tree... " >&6
30621     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
30622     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
30623       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
30624 $as_echo "$as_me: error: failed" >&2;}
30625    { (exit 1); exit 1; }; }
30626     { $as_echo "$as_me:$LINENO: result: done" >&5
30627 $as_echo "done" >&6; }
30628   fi
30629 fi
30630
30631
30632
30633 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
30634
30635
30636 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}"
30637
30638
30639 if test "$PORTNAME" = "win32"; then
30640 ac_config_commands="$ac_config_commands check_win32_symlinks"
30641
30642 fi
30643
30644 ac_config_headers="$ac_config_headers src/include/pg_config.h"
30645
30646
30647 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
30648
30649
30650 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
30651
30652
30653 cat >confcache <<\_ACEOF
30654 # This file is a shell script that caches the results of configure
30655 # tests run on this system so they can be shared between configure
30656 # scripts and configure runs, see configure's option --config-cache.
30657 # It is not useful on other systems.  If it contains results you don't
30658 # want to keep, you may remove or edit it.
30659 #
30660 # config.status only pays attention to the cache file if you give it
30661 # the --recheck option to rerun configure.
30662 #
30663 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30664 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30665 # following values.
30666
30667 _ACEOF
30668
30669 # The following way of writing the cache mishandles newlines in values,
30670 # but we know of no workaround that is simple, portable, and efficient.
30671 # So, we kill variables containing newlines.
30672 # Ultrix sh set writes to stderr and can't be redirected directly,
30673 # and sets the high bit in the cache file unless we assign to the vars.
30674 (
30675   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30676     eval ac_val=\$$ac_var
30677     case $ac_val in #(
30678     *${as_nl}*)
30679       case $ac_var in #(
30680       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30681 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30682       esac
30683       case $ac_var in #(
30684       _ | IFS | as_nl) ;; #(
30685       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30686       *) $as_unset $ac_var ;;
30687       esac ;;
30688     esac
30689   done
30690
30691   (set) 2>&1 |
30692     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30693     *${as_nl}ac_space=\ *)
30694       # `set' does not quote correctly, so add quotes (double-quote
30695       # substitution turns \\\\ into \\, and sed turns \\ into \).
30696       sed -n \
30697         "s/'/'\\\\''/g;
30698           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30699       ;; #(
30700     *)
30701       # `set' quotes correctly as required by POSIX, so do not add quotes.
30702       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30703       ;;
30704     esac |
30705     sort
30706 ) |
30707   sed '
30708      /^ac_cv_env_/b end
30709      t clear
30710      :clear
30711      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30712      t end
30713      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30714      :end' >>confcache
30715 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30716   if test -w "$cache_file"; then
30717     test "x$cache_file" != "x/dev/null" &&
30718       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30719 $as_echo "$as_me: updating cache $cache_file" >&6;}
30720     cat confcache >$cache_file
30721   else
30722     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30723 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30724   fi
30725 fi
30726 rm -f confcache
30727
30728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30729 # Let make expand exec_prefix.
30730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30731
30732 DEFS=-DHAVE_CONFIG_H
30733
30734 ac_libobjs=
30735 ac_ltlibobjs=
30736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30737   # 1. Remove the extension, and $U if already installed.
30738   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30739   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30740   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30741   #    will be set to the directory where LIBOBJS objects are built.
30742   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30743   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30744 done
30745 LIBOBJS=$ac_libobjs
30746
30747 LTLIBOBJS=$ac_ltlibobjs
30748
30749
30750
30751
30752 : ${CONFIG_STATUS=./config.status}
30753 ac_write_fail=0
30754 ac_clean_files_save=$ac_clean_files
30755 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30756 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30757 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30758 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30759 #! $SHELL
30760 # Generated by $as_me.
30761 # Run this file to recreate the current configuration.
30762 # Compiler output produced by configure, useful for debugging
30763 # configure, is in config.log if it exists.
30764
30765 debug=false
30766 ac_cs_recheck=false
30767 ac_cs_silent=false
30768 SHELL=\${CONFIG_SHELL-$SHELL}
30769 _ACEOF
30770
30771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30772 ## --------------------- ##
30773 ## M4sh Initialization.  ##
30774 ## --------------------- ##
30775
30776 # Be more Bourne compatible
30777 DUALCASE=1; export DUALCASE # for MKS sh
30778 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30779   emulate sh
30780   NULLCMD=:
30781   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30782   # is contrary to our usage.  Disable this feature.
30783   alias -g '${1+"$@"}'='"$@"'
30784   setopt NO_GLOB_SUBST
30785 else
30786   case `(set -o) 2>/dev/null` in
30787   *posix*) set -o posix ;;
30788 esac
30789
30790 fi
30791
30792
30793
30794
30795 # PATH needs CR
30796 # Avoid depending upon Character Ranges.
30797 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30798 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30799 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30800 as_cr_digits='0123456789'
30801 as_cr_alnum=$as_cr_Letters$as_cr_digits
30802
30803 as_nl='
30804 '
30805 export as_nl
30806 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30807 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30808 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30809 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30810 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30811   as_echo='printf %s\n'
30812   as_echo_n='printf %s'
30813 else
30814   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30815     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30816     as_echo_n='/usr/ucb/echo -n'
30817   else
30818     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30819     as_echo_n_body='eval
30820       arg=$1;
30821       case $arg in
30822       *"$as_nl"*)
30823         expr "X$arg" : "X\\(.*\\)$as_nl";
30824         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30825       esac;
30826       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30827     '
30828     export as_echo_n_body
30829     as_echo_n='sh -c $as_echo_n_body as_echo'
30830   fi
30831   export as_echo_body
30832   as_echo='sh -c $as_echo_body as_echo'
30833 fi
30834
30835 # The user is always right.
30836 if test "${PATH_SEPARATOR+set}" != set; then
30837   PATH_SEPARATOR=:
30838   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30839     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30840       PATH_SEPARATOR=';'
30841   }
30842 fi
30843
30844 # Support unset when possible.
30845 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30846   as_unset=unset
30847 else
30848   as_unset=false
30849 fi
30850
30851
30852 # IFS
30853 # We need space, tab and new line, in precisely that order.  Quoting is
30854 # there to prevent editors from complaining about space-tab.
30855 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30856 # splitting by setting IFS to empty value.)
30857 IFS=" ""        $as_nl"
30858
30859 # Find who we are.  Look in the path if we contain no directory separator.
30860 case $0 in
30861   *[\\/]* ) as_myself=$0 ;;
30862   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30863 for as_dir in $PATH
30864 do
30865   IFS=$as_save_IFS
30866   test -z "$as_dir" && as_dir=.
30867   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30868 done
30869 IFS=$as_save_IFS
30870
30871      ;;
30872 esac
30873 # We did not find ourselves, most probably we were run as `sh COMMAND'
30874 # in which case we are not to be found in the path.
30875 if test "x$as_myself" = x; then
30876   as_myself=$0
30877 fi
30878 if test ! -f "$as_myself"; then
30879   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30880   { (exit 1); exit 1; }
30881 fi
30882
30883 # Work around bugs in pre-3.0 UWIN ksh.
30884 for as_var in ENV MAIL MAILPATH
30885 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30886 done
30887 PS1='$ '
30888 PS2='> '
30889 PS4='+ '
30890
30891 # NLS nuisances.
30892 LC_ALL=C
30893 export LC_ALL
30894 LANGUAGE=C
30895 export LANGUAGE
30896
30897 # Required to use basename.
30898 if expr a : '\(a\)' >/dev/null 2>&1 &&
30899    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30900   as_expr=expr
30901 else
30902   as_expr=false
30903 fi
30904
30905 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30906   as_basename=basename
30907 else
30908   as_basename=false
30909 fi
30910
30911
30912 # Name of the executable.
30913 as_me=`$as_basename -- "$0" ||
30914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30915          X"$0" : 'X\(//\)$' \| \
30916          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30917 $as_echo X/"$0" |
30918     sed '/^.*\/\([^/][^/]*\)\/*$/{
30919             s//\1/
30920             q
30921           }
30922           /^X\/\(\/\/\)$/{
30923             s//\1/
30924             q
30925           }
30926           /^X\/\(\/\).*/{
30927             s//\1/
30928             q
30929           }
30930           s/.*/./; q'`
30931
30932 # CDPATH.
30933 $as_unset CDPATH
30934
30935
30936
30937   as_lineno_1=$LINENO
30938   as_lineno_2=$LINENO
30939   test "x$as_lineno_1" != "x$as_lineno_2" &&
30940   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30941
30942   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30943   # uniformly replaced by the line number.  The first 'sed' inserts a
30944   # line-number line after each line using $LINENO; the second 'sed'
30945   # does the real work.  The second script uses 'N' to pair each
30946   # line-number line with the line containing $LINENO, and appends
30947   # trailing '-' during substitution so that $LINENO is not a special
30948   # case at line end.
30949   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30950   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30951   # E. McMahon (1931-1989) for sed's syntax.  :-)
30952   sed -n '
30953     p
30954     /[$]LINENO/=
30955   ' <$as_myself |
30956     sed '
30957       s/[$]LINENO.*/&-/
30958       t lineno
30959       b
30960       :lineno
30961       N
30962       :loop
30963       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30964       t loop
30965       s/-\n.*//
30966     ' >$as_me.lineno &&
30967   chmod +x "$as_me.lineno" ||
30968     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30969    { (exit 1); exit 1; }; }
30970
30971   # Don't try to exec as it changes $[0], causing all sort of problems
30972   # (the dirname of $[0] is not the place where we might find the
30973   # original and so on.  Autoconf is especially sensitive to this).
30974   . "./$as_me.lineno"
30975   # Exit status is that of the last command.
30976   exit
30977 }
30978
30979
30980 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30981   as_dirname=dirname
30982 else
30983   as_dirname=false
30984 fi
30985
30986 ECHO_C= ECHO_N= ECHO_T=
30987 case `echo -n x` in
30988 -n*)
30989   case `echo 'x\c'` in
30990   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30991   *)   ECHO_C='\c';;
30992   esac;;
30993 *)
30994   ECHO_N='-n';;
30995 esac
30996 if expr a : '\(a\)' >/dev/null 2>&1 &&
30997    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30998   as_expr=expr
30999 else
31000   as_expr=false
31001 fi
31002
31003 rm -f conf$$ conf$$.exe conf$$.file
31004 if test -d conf$$.dir; then
31005   rm -f conf$$.dir/conf$$.file
31006 else
31007   rm -f conf$$.dir
31008   mkdir conf$$.dir 2>/dev/null
31009 fi
31010 if (echo >conf$$.file) 2>/dev/null; then
31011   if ln -s conf$$.file conf$$ 2>/dev/null; then
31012     as_ln_s='ln -s'
31013     # ... but there are two gotchas:
31014     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31015     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31016     # In both cases, we have to default to `cp -p'.
31017     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31018       as_ln_s='cp -p'
31019   elif ln conf$$.file conf$$ 2>/dev/null; then
31020     as_ln_s=ln
31021   else
31022     as_ln_s='cp -p'
31023   fi
31024 else
31025   as_ln_s='cp -p'
31026 fi
31027 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31028 rmdir conf$$.dir 2>/dev/null
31029
31030 if mkdir -p . 2>/dev/null; then
31031   as_mkdir_p=:
31032 else
31033   test -d ./-p && rmdir ./-p
31034   as_mkdir_p=false
31035 fi
31036
31037 if test -x / >/dev/null 2>&1; then
31038   as_test_x='test -x'
31039 else
31040   if ls -dL / >/dev/null 2>&1; then
31041     as_ls_L_option=L
31042   else
31043     as_ls_L_option=
31044   fi
31045   as_test_x='
31046     eval sh -c '\''
31047       if test -d "$1"; then
31048         test -d "$1/.";
31049       else
31050         case $1 in
31051         -*)set "./$1";;
31052         esac;
31053         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31054         ???[sx]*):;;*)false;;esac;fi
31055     '\'' sh
31056   '
31057 fi
31058 as_executable_p=$as_test_x
31059
31060 # Sed expression to map a string onto a valid CPP name.
31061 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31062
31063 # Sed expression to map a string onto a valid variable name.
31064 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31065
31066
31067 exec 6>&1
31068
31069 # Save the log message, to keep $[0] and so on meaningful, and to
31070 # report actual input values of CONFIG_FILES etc. instead of their
31071 # values after options handling.
31072 ac_log="
31073 This file was extended by PostgreSQL $as_me 9.4devel, which was
31074 generated by GNU Autoconf 2.63.  Invocation command line was
31075
31076   CONFIG_FILES    = $CONFIG_FILES
31077   CONFIG_HEADERS  = $CONFIG_HEADERS
31078   CONFIG_LINKS    = $CONFIG_LINKS
31079   CONFIG_COMMANDS = $CONFIG_COMMANDS
31080   $ $0 $@
31081
31082 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31083 "
31084
31085 _ACEOF
31086
31087 case $ac_config_files in *"
31088 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31089 esac
31090
31091 case $ac_config_headers in *"
31092 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31093 esac
31094
31095
31096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31097 # Files that config.status was made for.
31098 config_files="$ac_config_files"
31099 config_headers="$ac_config_headers"
31100 config_links="$ac_config_links"
31101 config_commands="$ac_config_commands"
31102
31103 _ACEOF
31104
31105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31106 ac_cs_usage="\
31107 \`$as_me' instantiates files from templates according to the
31108 current configuration.
31109
31110 Usage: $0 [OPTION]... [FILE]...
31111
31112   -h, --help       print this help, then exit
31113   -V, --version    print version number and configuration settings, then exit
31114   -q, --quiet, --silent
31115                    do not print progress messages
31116   -d, --debug      don't remove temporary files
31117       --recheck    update $as_me by reconfiguring in the same conditions
31118       --file=FILE[:TEMPLATE]
31119                    instantiate the configuration file FILE
31120       --header=FILE[:TEMPLATE]
31121                    instantiate the configuration header FILE
31122
31123 Configuration files:
31124 $config_files
31125
31126 Configuration headers:
31127 $config_headers
31128
31129 Configuration links:
31130 $config_links
31131
31132 Configuration commands:
31133 $config_commands
31134
31135 Report bugs to <bug-autoconf@gnu.org>."
31136
31137 _ACEOF
31138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31139 ac_cs_version="\\
31140 PostgreSQL config.status 9.4devel
31141 configured by $0, generated by GNU Autoconf 2.63,
31142   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31143
31144 Copyright (C) 2008 Free Software Foundation, Inc.
31145 This config.status script is free software; the Free Software Foundation
31146 gives unlimited permission to copy, distribute and modify it."
31147
31148 ac_pwd='$ac_pwd'
31149 srcdir='$srcdir'
31150 INSTALL='$INSTALL'
31151 MKDIR_P='$MKDIR_P'
31152 AWK='$AWK'
31153 test -n "\$AWK" || AWK=awk
31154 _ACEOF
31155
31156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31157 # The default lists apply if the user does not specify any file.
31158 ac_need_defaults=:
31159 while test $# != 0
31160 do
31161   case $1 in
31162   --*=*)
31163     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31164     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31165     ac_shift=:
31166     ;;
31167   *)
31168     ac_option=$1
31169     ac_optarg=$2
31170     ac_shift=shift
31171     ;;
31172   esac
31173
31174   case $ac_option in
31175   # Handling of the options.
31176   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31177     ac_cs_recheck=: ;;
31178   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31179     $as_echo "$ac_cs_version"; exit ;;
31180   --debug | --debu | --deb | --de | --d | -d )
31181     debug=: ;;
31182   --file | --fil | --fi | --f )
31183     $ac_shift
31184     case $ac_optarg in
31185     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31186     esac
31187     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
31188     ac_need_defaults=false;;
31189   --header | --heade | --head | --hea )
31190     $ac_shift
31191     case $ac_optarg in
31192     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31193     esac
31194     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
31195     ac_need_defaults=false;;
31196   --he | --h)
31197     # Conflict between --help and --header
31198     { $as_echo "$as_me: error: ambiguous option: $1
31199 Try \`$0 --help' for more information." >&2
31200    { (exit 1); exit 1; }; };;
31201   --help | --hel | -h )
31202     $as_echo "$ac_cs_usage"; exit ;;
31203   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31204   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31205     ac_cs_silent=: ;;
31206
31207   # This is an error.
31208   -*) { $as_echo "$as_me: error: unrecognized option: $1
31209 Try \`$0 --help' for more information." >&2
31210    { (exit 1); exit 1; }; } ;;
31211
31212   *) ac_config_targets="$ac_config_targets $1"
31213      ac_need_defaults=false ;;
31214
31215   esac
31216   shift
31217 done
31218
31219 ac_configure_extra_args=
31220
31221 if $ac_cs_silent; then
31222   exec 6>/dev/null
31223   ac_configure_extra_args="$ac_configure_extra_args --silent"
31224 fi
31225
31226 _ACEOF
31227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31228 if \$ac_cs_recheck; then
31229   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31230   shift
31231   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31232   CONFIG_SHELL='$SHELL'
31233   export CONFIG_SHELL
31234   exec "\$@"
31235 fi
31236
31237 _ACEOF
31238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31239 exec 5>>config.log
31240 {
31241   echo
31242   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31243 ## Running $as_me. ##
31244 _ASBOX
31245   $as_echo "$ac_log"
31246 } >&5
31247
31248 _ACEOF
31249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31250 _ACEOF
31251
31252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31253
31254 # Handling of arguments.
31255 for ac_config_target in $ac_config_targets
31256 do
31257   case $ac_config_target in
31258     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
31259     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
31260     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
31261     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
31262     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
31263     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
31264     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
31265     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
31266     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
31267     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
31268     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
31269     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
31270     "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
31271     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
31272
31273   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31274 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31275    { (exit 1); exit 1; }; };;
31276   esac
31277 done
31278
31279
31280 # If the user did not use the arguments to specify the items to instantiate,
31281 # then the envvar interface is used.  Set only those that are not.
31282 # We use the long form for the default assignment because of an extremely
31283 # bizarre bug on SunOS 4.1.3.
31284 if $ac_need_defaults; then
31285   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31286   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31287   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31288   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31289 fi
31290
31291 # Have a temporary directory for convenience.  Make it in the build tree
31292 # simply because there is no reason against having it here, and in addition,
31293 # creating and moving files from /tmp can sometimes cause problems.
31294 # Hook for its removal unless debugging.
31295 # Note that there is a small window in which the directory will not be cleaned:
31296 # after its creation but before its name has been assigned to `$tmp'.
31297 $debug ||
31298 {
31299   tmp=
31300   trap 'exit_status=$?
31301   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31302 ' 0
31303   trap '{ (exit 1); exit 1; }' 1 2 13 15
31304 }
31305 # Create a (secure) tmp directory for tmp files.
31306
31307 {
31308   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31309   test -n "$tmp" && test -d "$tmp"
31310 }  ||
31311 {
31312   tmp=./conf$$-$RANDOM
31313   (umask 077 && mkdir "$tmp")
31314 } ||
31315 {
31316    $as_echo "$as_me: cannot create a temporary directory in ." >&2
31317    { (exit 1); exit 1; }
31318 }
31319
31320 # Set up the scripts for CONFIG_FILES section.
31321 # No need to generate them if there are no CONFIG_FILES.
31322 # This happens for instance with `./config.status config.h'.
31323 if test -n "$CONFIG_FILES"; then
31324
31325
31326 ac_cr='\r'
31327 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31328 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31329   ac_cs_awk_cr='\\r'
31330 else
31331   ac_cs_awk_cr=$ac_cr
31332 fi
31333
31334 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31335 _ACEOF
31336
31337
31338 {
31339   echo "cat >conf$$subs.awk <<_ACEOF" &&
31340   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31341   echo "_ACEOF"
31342 } >conf$$subs.sh ||
31343   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31344 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31345    { (exit 1); exit 1; }; }
31346 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31347 ac_delim='%!_!# '
31348 for ac_last_try in false false false false false :; do
31349   . ./conf$$subs.sh ||
31350     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31351 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31352    { (exit 1); exit 1; }; }
31353
31354   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31355   if test $ac_delim_n = $ac_delim_num; then
31356     break
31357   elif $ac_last_try; then
31358     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31359 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31360    { (exit 1); exit 1; }; }
31361   else
31362     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31363   fi
31364 done
31365 rm -f conf$$subs.sh
31366
31367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31368 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31369 _ACEOF
31370 sed -n '
31371 h
31372 s/^/S["/; s/!.*/"]=/
31373 p
31374 g
31375 s/^[^!]*!//
31376 :repl
31377 t repl
31378 s/'"$ac_delim"'$//
31379 t delim
31380 :nl
31381 h
31382 s/\(.\{148\}\).*/\1/
31383 t more1
31384 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31385 p
31386 n
31387 b repl
31388 :more1
31389 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31390 p
31391 g
31392 s/.\{148\}//
31393 t nl
31394 :delim
31395 h
31396 s/\(.\{148\}\).*/\1/
31397 t more2
31398 s/["\\]/\\&/g; s/^/"/; s/$/"/
31399 p
31400 b
31401 :more2
31402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31403 p
31404 g
31405 s/.\{148\}//
31406 t delim
31407 ' <conf$$subs.awk | sed '
31408 /^[^""]/{
31409   N
31410   s/\n//
31411 }
31412 ' >>$CONFIG_STATUS || ac_write_fail=1
31413 rm -f conf$$subs.awk
31414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31415 _ACAWK
31416 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31417   for (key in S) S_is_set[key] = 1
31418   FS = "\a"
31419
31420 }
31421 {
31422   line = $ 0
31423   nfields = split(line, field, "@")
31424   substed = 0
31425   len = length(field[1])
31426   for (i = 2; i < nfields; i++) {
31427     key = field[i]
31428     keylen = length(key)
31429     if (S_is_set[key]) {
31430       value = S[key]
31431       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31432       len += length(value) + length(field[++i])
31433       substed = 1
31434     } else
31435       len += 1 + keylen
31436   }
31437
31438   print line
31439 }
31440
31441 _ACAWK
31442 _ACEOF
31443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31444 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31445   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31446 else
31447   cat
31448 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31449   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31450 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
31451    { (exit 1); exit 1; }; }
31452 _ACEOF
31453
31454 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31455 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31456 # trailing colons and then remove the whole line if VPATH becomes empty
31457 # (actually we leave an empty line to preserve line numbers).
31458 if test "x$srcdir" = x.; then
31459   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31460 s/:*\$(srcdir):*/:/
31461 s/:*\${srcdir}:*/:/
31462 s/:*@srcdir@:*/:/
31463 s/^\([^=]*=[     ]*\):*/\1/
31464 s/:*$//
31465 s/^[^=]*=[       ]*$//
31466 }'
31467 fi
31468
31469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31470 fi # test -n "$CONFIG_FILES"
31471
31472 # Set up the scripts for CONFIG_HEADERS section.
31473 # No need to generate them if there are no CONFIG_HEADERS.
31474 # This happens for instance with `./config.status Makefile'.
31475 if test -n "$CONFIG_HEADERS"; then
31476 cat >"$tmp/defines.awk" <<\_ACAWK ||
31477 BEGIN {
31478 _ACEOF
31479
31480 # Transform confdefs.h into an awk script `defines.awk', embedded as
31481 # here-document in config.status, that substitutes the proper values into
31482 # config.h.in to produce config.h.
31483
31484 # Create a delimiter string that does not exist in confdefs.h, to ease
31485 # handling of long lines.
31486 ac_delim='%!_!# '
31487 for ac_last_try in false false :; do
31488   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31489   if test -z "$ac_t"; then
31490     break
31491   elif $ac_last_try; then
31492     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31493 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31494    { (exit 1); exit 1; }; }
31495   else
31496     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31497   fi
31498 done
31499
31500 # For the awk script, D is an array of macro values keyed by name,
31501 # likewise P contains macro parameters if any.  Preserve backslash
31502 # newline sequences.
31503
31504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31505 sed -n '
31506 s/.\{148\}/&'"$ac_delim"'/g
31507 t rset
31508 :rset
31509 s/^[     ]*#[    ]*define[       ][      ]*/ /
31510 t def
31511 d
31512 :def
31513 s/\\$//
31514 t bsnl
31515 s/["\\]/\\&/g
31516 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31517 D["\1"]=" \3"/p
31518 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31519 d
31520 :bsnl
31521 s/["\\]/\\&/g
31522 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31523 D["\1"]=" \3\\\\\\n"\\/p
31524 t cont
31525 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31526 t cont
31527 d
31528 :cont
31529 n
31530 s/.\{148\}/&'"$ac_delim"'/g
31531 t clear
31532 :clear
31533 s/\\$//
31534 t bsnlc
31535 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31536 d
31537 :bsnlc
31538 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31539 b cont
31540 ' <confdefs.h | sed '
31541 s/'"$ac_delim"'/"\\\
31542 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31543
31544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31545   for (key in D) D_is_set[key] = 1
31546   FS = "\a"
31547 }
31548 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31549   line = \$ 0
31550   split(line, arg, " ")
31551   if (arg[1] == "#") {
31552     defundef = arg[2]
31553     mac1 = arg[3]
31554   } else {
31555     defundef = substr(arg[1], 2)
31556     mac1 = arg[2]
31557   }
31558   split(mac1, mac2, "(") #)
31559   macro = mac2[1]
31560   prefix = substr(line, 1, index(line, defundef) - 1)
31561   if (D_is_set[macro]) {
31562     # Preserve the white space surrounding the "#".
31563     print prefix "define", macro P[macro] D[macro]
31564     next
31565   } else {
31566     # Replace #undef with comments.  This is necessary, for example,
31567     # in the case of _POSIX_SOURCE, which is predefined and required
31568     # on some systems where configure will not decide to define it.
31569     if (defundef == "undef") {
31570       print "/*", prefix defundef, macro, "*/"
31571       next
31572     }
31573   }
31574 }
31575 { print }
31576 _ACAWK
31577 _ACEOF
31578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31579   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31580 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31581    { (exit 1); exit 1; }; }
31582 fi # test -n "$CONFIG_HEADERS"
31583
31584
31585 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31586 shift
31587 for ac_tag
31588 do
31589   case $ac_tag in
31590   :[FHLC]) ac_mode=$ac_tag; continue;;
31591   esac
31592   case $ac_mode$ac_tag in
31593   :[FHL]*:*);;
31594   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31595 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31596    { (exit 1); exit 1; }; };;
31597   :[FH]-) ac_tag=-:-;;
31598   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31599   esac
31600   ac_save_IFS=$IFS
31601   IFS=:
31602   set x $ac_tag
31603   IFS=$ac_save_IFS
31604   shift
31605   ac_file=$1
31606   shift
31607
31608   case $ac_mode in
31609   :L) ac_source=$1;;
31610   :[FH])
31611     ac_file_inputs=
31612     for ac_f
31613     do
31614       case $ac_f in
31615       -) ac_f="$tmp/stdin";;
31616       *) # Look for the file first in the build tree, then in the source tree
31617          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31618          # because $ac_f cannot contain `:'.
31619          test -f "$ac_f" ||
31620            case $ac_f in
31621            [\\/$]*) false;;
31622            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31623            esac ||
31624            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31625 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31626    { (exit 1); exit 1; }; };;
31627       esac
31628       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31629       ac_file_inputs="$ac_file_inputs '$ac_f'"
31630     done
31631
31632     # Let's still pretend it is `configure' which instantiates (i.e., don't
31633     # use $as_me), people would be surprised to read:
31634     #    /* config.h.  Generated by config.status.  */
31635     configure_input='Generated from '`
31636           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31637         `' by configure.'
31638     if test x"$ac_file" != x-; then
31639       configure_input="$ac_file.  $configure_input"
31640       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31641 $as_echo "$as_me: creating $ac_file" >&6;}
31642     fi
31643     # Neutralize special characters interpreted by sed in replacement strings.
31644     case $configure_input in #(
31645     *\&* | *\|* | *\\* )
31646        ac_sed_conf_input=`$as_echo "$configure_input" |
31647        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31648     *) ac_sed_conf_input=$configure_input;;
31649     esac
31650
31651     case $ac_tag in
31652     *:-:* | *:-) cat >"$tmp/stdin" \
31653       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31654 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31655    { (exit 1); exit 1; }; } ;;
31656     esac
31657     ;;
31658   esac
31659
31660   ac_dir=`$as_dirname -- "$ac_file" ||
31661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31662          X"$ac_file" : 'X\(//\)[^/]' \| \
31663          X"$ac_file" : 'X\(//\)$' \| \
31664          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31665 $as_echo X"$ac_file" |
31666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31667             s//\1/
31668             q
31669           }
31670           /^X\(\/\/\)[^/].*/{
31671             s//\1/
31672             q
31673           }
31674           /^X\(\/\/\)$/{
31675             s//\1/
31676             q
31677           }
31678           /^X\(\/\).*/{
31679             s//\1/
31680             q
31681           }
31682           s/.*/./; q'`
31683   { as_dir="$ac_dir"
31684   case $as_dir in #(
31685   -*) as_dir=./$as_dir;;
31686   esac
31687   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31688     as_dirs=
31689     while :; do
31690       case $as_dir in #(
31691       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31692       *) as_qdir=$as_dir;;
31693       esac
31694       as_dirs="'$as_qdir' $as_dirs"
31695       as_dir=`$as_dirname -- "$as_dir" ||
31696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31697          X"$as_dir" : 'X\(//\)[^/]' \| \
31698          X"$as_dir" : 'X\(//\)$' \| \
31699          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31700 $as_echo X"$as_dir" |
31701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31702             s//\1/
31703             q
31704           }
31705           /^X\(\/\/\)[^/].*/{
31706             s//\1/
31707             q
31708           }
31709           /^X\(\/\/\)$/{
31710             s//\1/
31711             q
31712           }
31713           /^X\(\/\).*/{
31714             s//\1/
31715             q
31716           }
31717           s/.*/./; q'`
31718       test -d "$as_dir" && break
31719     done
31720     test -z "$as_dirs" || eval "mkdir $as_dirs"
31721   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31722 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31723    { (exit 1); exit 1; }; }; }
31724   ac_builddir=.
31725
31726 case "$ac_dir" in
31727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31728 *)
31729   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31730   # A ".." for each directory in $ac_dir_suffix.
31731   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31732   case $ac_top_builddir_sub in
31733   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31734   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31735   esac ;;
31736 esac
31737 ac_abs_top_builddir=$ac_pwd
31738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31739 # for backward compatibility:
31740 ac_top_builddir=$ac_top_build_prefix
31741
31742 case $srcdir in
31743   .)  # We are building in place.
31744     ac_srcdir=.
31745     ac_top_srcdir=$ac_top_builddir_sub
31746     ac_abs_top_srcdir=$ac_pwd ;;
31747   [\\/]* | ?:[\\/]* )  # Absolute name.
31748     ac_srcdir=$srcdir$ac_dir_suffix;
31749     ac_top_srcdir=$srcdir
31750     ac_abs_top_srcdir=$srcdir ;;
31751   *) # Relative name.
31752     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31753     ac_top_srcdir=$ac_top_build_prefix$srcdir
31754     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31755 esac
31756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31757
31758
31759   case $ac_mode in
31760   :F)
31761   #
31762   # CONFIG_FILE
31763   #
31764
31765   case $INSTALL in
31766   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31767   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31768   esac
31769   ac_MKDIR_P=$MKDIR_P
31770   case $MKDIR_P in
31771   [\\/$]* | ?:[\\/]* ) ;;
31772   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31773   esac
31774 _ACEOF
31775
31776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31777 # If the template does not know about datarootdir, expand it.
31778 # FIXME: This hack should be removed a few years after 2.60.
31779 ac_datarootdir_hack=; ac_datarootdir_seen=
31780
31781 ac_sed_dataroot='
31782 /datarootdir/ {
31783   p
31784   q
31785 }
31786 /@datadir@/p
31787 /@docdir@/p
31788 /@infodir@/p
31789 /@localedir@/p
31790 /@mandir@/p
31791 '
31792 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31793 *datarootdir*) ac_datarootdir_seen=yes;;
31794 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31795   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31796 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31797 _ACEOF
31798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31799   ac_datarootdir_hack='
31800   s&@datadir@&$datadir&g
31801   s&@docdir@&$docdir&g
31802   s&@infodir@&$infodir&g
31803   s&@localedir@&$localedir&g
31804   s&@mandir@&$mandir&g
31805     s&\\\${datarootdir}&$datarootdir&g' ;;
31806 esac
31807 _ACEOF
31808
31809 # Neutralize VPATH when `$srcdir' = `.'.
31810 # Shell code in configure.ac might set extrasub.
31811 # FIXME: do we really want to maintain this feature?
31812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31813 ac_sed_extra="$ac_vpsub
31814 $extrasub
31815 _ACEOF
31816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31817 :t
31818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31819 s|@configure_input@|$ac_sed_conf_input|;t t
31820 s&@top_builddir@&$ac_top_builddir_sub&;t t
31821 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31822 s&@srcdir@&$ac_srcdir&;t t
31823 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31824 s&@top_srcdir@&$ac_top_srcdir&;t t
31825 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31826 s&@builddir@&$ac_builddir&;t t
31827 s&@abs_builddir@&$ac_abs_builddir&;t t
31828 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31829 s&@INSTALL@&$ac_INSTALL&;t t
31830 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31831 $ac_datarootdir_hack
31832 "
31833 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31834   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31835 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31836    { (exit 1); exit 1; }; }
31837
31838 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31839   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31840   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31841   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31842 which seems to be undefined.  Please make sure it is defined." >&5
31843 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31844 which seems to be undefined.  Please make sure it is defined." >&2;}
31845
31846   rm -f "$tmp/stdin"
31847   case $ac_file in
31848   -) cat "$tmp/out" && rm -f "$tmp/out";;
31849   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31850   esac \
31851   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31852 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31853    { (exit 1); exit 1; }; }
31854  ;;
31855   :H)
31856   #
31857   # CONFIG_HEADER
31858   #
31859   if test x"$ac_file" != x-; then
31860     {
31861       $as_echo "/* $configure_input  */" \
31862       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31863     } >"$tmp/config.h" \
31864       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31865 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31866    { (exit 1); exit 1; }; }
31867     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31868       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31869 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31870     else
31871       rm -f "$ac_file"
31872       mv "$tmp/config.h" "$ac_file" \
31873         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31874 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31875    { (exit 1); exit 1; }; }
31876     fi
31877   else
31878     $as_echo "/* $configure_input  */" \
31879       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31880       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31881 $as_echo "$as_me: error: could not create -" >&2;}
31882    { (exit 1); exit 1; }; }
31883   fi
31884  ;;
31885   :L)
31886   #
31887   # CONFIG_LINK
31888   #
31889
31890   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31891     :
31892   else
31893     # Prefer the file from the source tree if names are identical.
31894     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31895       ac_source=$srcdir/$ac_source
31896     fi
31897
31898     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31899 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31900
31901     if test ! -r "$ac_source"; then
31902       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31903 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31904    { (exit 1); exit 1; }; }
31905     fi
31906     rm -f "$ac_file"
31907
31908     # Try a relative symlink, then a hard link, then a copy.
31909     case $srcdir in
31910     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31911         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31912     esac
31913     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31914       ln "$ac_source" "$ac_file" 2>/dev/null ||
31915       cp -p "$ac_source" "$ac_file" ||
31916       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31917 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31918    { (exit 1); exit 1; }; }
31919   fi
31920  ;;
31921   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31922 $as_echo "$as_me: executing $ac_file commands" >&6;}
31923  ;;
31924   esac
31925
31926
31927   case $ac_file$ac_mode in
31928     "check_win32_symlinks":C)
31929 # Links sometimes fail undetected on Mingw -
31930 # so here we detect it and warn the user
31931 for FILE in $CONFIG_LINKS
31932  do
31933         # test -e works for symlinks in the MinGW console
31934         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31935 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31936  done
31937  ;;
31938     "src/include/pg_config.h":H)
31939 # Update timestamp for pg_config.h (see Makefile.global)
31940 echo >src/include/stamp-h
31941  ;;
31942     "src/include/pg_config_ext.h":H)
31943 # Update timestamp for pg_config_ext.h (see Makefile.global)
31944 echo >src/include/stamp-ext-h
31945  ;;
31946     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31947
31948   esac
31949 done # for ac_tag
31950
31951
31952 { (exit 0); exit 0; }
31953 _ACEOF
31954 chmod +x $CONFIG_STATUS
31955 ac_clean_files=$ac_clean_files_save
31956
31957 test $ac_write_fail = 0 ||
31958   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31959 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31960    { (exit 1); exit 1; }; }
31961
31962
31963 # configure is writing to config.log, and then calls config.status.
31964 # config.status does its own redirection, appending to config.log.
31965 # Unfortunately, on DOS this fails, as config.log is still kept open
31966 # by configure, so config.status won't be able to write to it; its
31967 # output is simply discarded.  So we exec the FD to /dev/null,
31968 # effectively closing config.log, so it can be properly (re)opened and
31969 # appended to by config.status.  When coming back to configure, we
31970 # need to make the FD available again.
31971 if test "$no_create" != yes; then
31972   ac_cs_success=:
31973   ac_config_status_args=
31974   test "$silent" = yes &&
31975     ac_config_status_args="$ac_config_status_args --quiet"
31976   exec 5>/dev/null
31977   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31978   exec 5>>config.log
31979   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31980   # would make configure fail if this is the last instruction.
31981   $ac_cs_success || { (exit 1); exit 1; }
31982 fi
31983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31984   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31986 fi
31987