]> granicus.if.org Git - postgresql/blob - configure
Add -Wlogical-op to standard compiler flags, if supported
[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.3devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 1996-2012, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 as_nl='
45 '
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87   as_unset=unset
88 else
89   as_unset=false
90 fi
91
92
93 # IFS
94 # We need space, tab and new line, in precisely that order.  Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" ""        $as_nl"
99
100 # Find who we are.  Look in the path if we contain no directory separator.
101 case $0 in
102   *[\\/]* ) as_myself=$0 ;;
103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106   IFS=$as_save_IFS
107   test -z "$as_dir" && as_dir=.
108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112      ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117   as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121   { (exit 1); exit 1; }
122 fi
123
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
141   as_expr=expr
142 else
143   as_expr=false
144 fi
145
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147   as_basename=basename
148 else
149   as_basename=false
150 fi
151
152
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156          X"$0" : 'X\(//\)$' \| \
157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 $as_echo X/"$0" |
159     sed '/^.*\/\([^/][^/]*\)\/*$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\/\)$/{
164             s//\1/
165             q
166           }
167           /^X\/\(\/\).*/{
168             s//\1/
169             q
170           }
171           s/.*/./; q'`
172
173 # CDPATH.
174 $as_unset CDPATH
175
176
177 if test "x$CONFIG_SHELL" = x; then
178   if (eval ":") 2>/dev/null; then
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183
184   if test $as_have_required = yes &&     (eval ":
185 (as_func_return () {
186   (exit \$1)
187 }
188 as_func_success () {
189   as_func_return 0
190 }
191 as_func_failure () {
192   as_func_return 1
193 }
194 as_func_ret_success () {
195   return 0
196 }
197 as_func_ret_failure () {
198   return 1
199 }
200
201 exitcode=0
202 if as_func_success; then
203   :
204 else
205   exitcode=1
206   echo as_func_success failed.
207 fi
208
209 if as_func_failure; then
210   exitcode=1
211   echo as_func_failure succeeded.
212 fi
213
214 if as_func_ret_success; then
215   :
216 else
217   exitcode=1
218   echo as_func_ret_success failed.
219 fi
220
221 if as_func_ret_failure; then
222   exitcode=1
223   echo as_func_ret_failure succeeded.
224 fi
225
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227   :
228 else
229   exitcode=1
230   echo positional parameters were not saved.
231 fi
232
233 test \$exitcode = 0) || { (exit 1); exit 1; }
234
235 (
236   as_lineno_1=\$LINENO
237   as_lineno_2=\$LINENO
238   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
241   :
242 else
243   as_candidate_shells=
244     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 do
247   IFS=$as_save_IFS
248   test -z "$as_dir" && as_dir=.
249   case $as_dir in
250          /*)
251            for as_base in sh bash ksh sh5; do
252              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253            done;;
254        esac
255 done
256 IFS=$as_save_IFS
257
258
259       for as_shell in $as_candidate_shells $SHELL; do
260          # Try only shells that exist, to save several forks.
261          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262                 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 _ASEOF
280 }; then
281   CONFIG_SHELL=$as_shell
282                as_have_required=yes
283                if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285   emulate sh
286   NULLCMD=:
287   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288   # is contrary to our usage.  Disable this feature.
289   alias -g '${1+"$@"}'='"$@"'
290   setopt NO_GLOB_SUBST
291 else
292   case `(set -o) 2>/dev/null` in
293   *posix*) set -o posix ;;
294 esac
295
296 fi
297
298
299 :
300 (as_func_return () {
301   (exit $1)
302 }
303 as_func_success () {
304   as_func_return 0
305 }
306 as_func_failure () {
307   as_func_return 1
308 }
309 as_func_ret_success () {
310   return 0
311 }
312 as_func_ret_failure () {
313   return 1
314 }
315
316 exitcode=0
317 if as_func_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_success failed.
322 fi
323
324 if as_func_failure; then
325   exitcode=1
326   echo as_func_failure succeeded.
327 fi
328
329 if as_func_ret_success; then
330   :
331 else
332   exitcode=1
333   echo as_func_ret_success failed.
334 fi
335
336 if as_func_ret_failure; then
337   exitcode=1
338   echo as_func_ret_failure succeeded.
339 fi
340
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
342   :
343 else
344   exitcode=1
345   echo positional parameters were not saved.
346 fi
347
348 test $exitcode = 0) || { (exit 1); exit 1; }
349
350 (
351   as_lineno_1=$LINENO
352   as_lineno_2=$LINENO
353   test "x$as_lineno_1" != "x$as_lineno_2" &&
354   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356 _ASEOF
357 }; then
358   break
359 fi
360
361 fi
362
363       done
364
365       if test "x$CONFIG_SHELL" != x; then
366   for as_var in BASH_ENV ENV
367         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368         done
369         export CONFIG_SHELL
370         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371 fi
372
373
374     if test $as_have_required = no; then
375   echo This script requires a shell more modern than all the
376       echo shells that I found on your system.  Please install a
377       echo modern shell, or manually run the script under such a
378       echo shell if you do have one.
379       { (exit 1); exit 1; }
380 fi
381
382
383 fi
384
385 fi
386
387
388
389 (eval "as_func_return () {
390   (exit \$1)
391 }
392 as_func_success () {
393   as_func_return 0
394 }
395 as_func_failure () {
396   as_func_return 1
397 }
398 as_func_ret_success () {
399   return 0
400 }
401 as_func_ret_failure () {
402   return 1
403 }
404
405 exitcode=0
406 if as_func_success; then
407   :
408 else
409   exitcode=1
410   echo as_func_success failed.
411 fi
412
413 if as_func_failure; then
414   exitcode=1
415   echo as_func_failure succeeded.
416 fi
417
418 if as_func_ret_success; then
419   :
420 else
421   exitcode=1
422   echo as_func_ret_success failed.
423 fi
424
425 if as_func_ret_failure; then
426   exitcode=1
427   echo as_func_ret_failure succeeded.
428 fi
429
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431   :
432 else
433   exitcode=1
434   echo positional parameters were not saved.
435 fi
436
437 test \$exitcode = 0") || {
438   echo No shell found that supports shell functions.
439   echo Please tell bug-autoconf@gnu.org about your system,
440   echo including any error possibly output before this message.
441   echo This can help us improve future autoconf versions.
442   echo Configuration will now proceed without shell functions.
443 }
444
445
446
447   as_lineno_1=$LINENO
448   as_lineno_2=$LINENO
449   test "x$as_lineno_1" != "x$as_lineno_2" &&
450   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453   # uniformly replaced by the line number.  The first 'sed' inserts a
454   # line-number line after each line using $LINENO; the second 'sed'
455   # does the real work.  The second script uses 'N' to pair each
456   # line-number line with the line containing $LINENO, and appends
457   # trailing '-' during substitution so that $LINENO is not a special
458   # case at line end.
459   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460   # scripts with optimization help from Paolo Bonzini.  Blame Lee
461   # E. McMahon (1931-1989) for sed's syntax.  :-)
462   sed -n '
463     p
464     /[$]LINENO/=
465   ' <$as_myself |
466     sed '
467       s/[$]LINENO.*/&-/
468       t lineno
469       b
470       :lineno
471       N
472       :loop
473       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474       t loop
475       s/-\n.*//
476     ' >$as_me.lineno &&
477   chmod +x "$as_me.lineno" ||
478     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479    { (exit 1); exit 1; }; }
480
481   # Don't try to exec as it changes $[0], causing all sort of problems
482   # (the dirname of $[0] is not the place where we might find the
483   # original and so on.  Autoconf is especially sensitive to this).
484   . "./$as_me.lineno"
485   # Exit status is that of the last command.
486   exit
487 }
488
489
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491   as_dirname=dirname
492 else
493   as_dirname=false
494 fi
495
496 ECHO_C= ECHO_N= ECHO_T=
497 case `echo -n x` in
498 -n*)
499   case `echo 'x\c'` in
500   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
501   *)   ECHO_C='\c';;
502   esac;;
503 *)
504   ECHO_N='-n';;
505 esac
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507    test "X`expr 00001 : '.*\(...\)'`" = X001; then
508   as_expr=expr
509 else
510   as_expr=false
511 fi
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -p'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -p'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -p'
533   fi
534 else
535   as_ln_s='cp -p'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p=:
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 if test -x / >/dev/null 2>&1; then
548   as_test_x='test -x'
549 else
550   if ls -dL / >/dev/null 2>&1; then
551     as_ls_L_option=L
552   else
553     as_ls_L_option=
554   fi
555   as_test_x='
556     eval sh -c '\''
557       if test -d "$1"; then
558         test -d "$1/.";
559       else
560         case $1 in
561         -*)set "./$1";;
562         esac;
563         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564         ???[sx]*):;;*)false;;esac;fi
565     '\'' sh
566   '
567 fi
568 as_executable_p=$as_test_x
569
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
578 exec 7<&0 </dev/null 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596 SHELL=${CONFIG_SHELL-/bin/sh}
597
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.3devel'
602 PACKAGE_STRING='PostgreSQL 9.3devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
604
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 #  include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #  include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_subst_vars='LTLIBOBJS
644 vpath_build
645 OSX
646 XSLTPROC
647 COLLATEINDEX
648 DOCBOOKSTYLE
649 have_docbook
650 JADE
651 NSGMLS
652 TCL_SHLIB_LD_LIBS
653 TCL_SHARED_BUILD
654 TCL_LIB_SPEC
655 TCL_LIBS
656 TCL_LIB_FILE
657 TCL_INCLUDE_SPEC
658 TCL_CONFIG_SH
659 TCLSH
660 XGETTEXT
661 MSGMERGE
662 MSGFMT
663 HAVE_POSIX_SIGNALS
664 LDAP_LIBS_BE
665 LDAP_LIBS_FE
666 PTHREAD_CFLAGS
667 PTHREAD_LIBS
668 PTHREAD_CC
669 acx_pthread_config
670 have_win32_dbghelp
671 HAVE_IPV6
672 LIBOBJS
673 OSSP_UUID_LIBS
674 ZIC
675 python_additional_libs
676 python_libspec
677 python_libdir
678 python_includespec
679 python_configdir
680 python_version
681 python_majorversion
682 PYTHON
683 perl_embed_ldflags
684 perl_useshrplib
685 perl_privlibexp
686 perl_archlibexp
687 PERL
688 FLEXFLAGS
689 FLEX
690 BISONFLAGS
691 BISON
692 MKDIR_P
693 AWK
694 LN_S
695 TAR
696 install_bin
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 WINDRES
701 DLLWRAP
702 DLLTOOL
703 AR
704 STRIP_SHARED_LIB
705 STRIP_STATIC_LIB
706 STRIP
707 RANLIB
708 ld_R_works
709 with_gnu_ld
710 LD
711 LDFLAGS_SL
712 LDFLAGS_EX
713 ELF_SYS
714 EGREP
715 GREP
716 with_zlib
717 with_system_tzdata
718 with_libxslt
719 with_libxml
720 XML2_CONFIG
721 with_ossp_uuid
722 with_selinux
723 with_openssl
724 krb_srvtab
725 with_python
726 with_perl
727 with_tcl
728 enable_thread_safety
729 INCLUDES
730 autodepend
731 TAS
732 GCC
733 CPP
734 SUN_STUDIO_CC
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 enable_dtrace
743 DTRACEFLAGS
744 DTRACE
745 enable_coverage
746 GENHTML
747 LCOV
748 GCOV
749 enable_debug
750 enable_rpath
751 default_port
752 WANTED_LANGUAGES
753 enable_nls
754 PORTNAME
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 PG_MAJORVERSION
764 configure_args
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 with_template
806 with_includes
807 with_libraries
808 with_libs
809 enable_integer_datetimes
810 enable_nls
811 with_pgport
812 enable_rpath
813 enable_spinlocks
814 enable_debug
815 enable_profiling
816 enable_coverage
817 enable_dtrace
818 with_blocksize
819 with_segsize
820 with_wal_blocksize
821 with_wal_segsize
822 with_CC
823 enable_depend
824 enable_cassert
825 enable_thread_safety
826 with_tcl
827 with_tclconfig
828 with_perl
829 with_python
830 with_gssapi
831 with_krb5
832 with_krb_srvnam
833 with_pam
834 with_ldap
835 with_bonjour
836 with_openssl
837 with_selinux
838 with_readline
839 with_libedit_preferred
840 with_ossp_uuid
841 with_libxml
842 with_libxslt
843 with_system_tzdata
844 with_zlib
845 with_gnu_ld
846 enable_largefile
847 enable_float4_byval
848 enable_float8_byval
849 '
850       ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CPP
859 LDFLAGS_EX
860 LDFLAGS_SL
861 DOCBOOKSTYLE'
862
863
864 # Initialize some variables set by options.
865 ac_init_help=
866 ac_init_version=false
867 ac_unrecognized_opts=
868 ac_unrecognized_sep=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
871 cache_file=/dev/null
872 exec_prefix=NONE
873 no_create=
874 no_recursion=
875 prefix=NONE
876 program_prefix=NONE
877 program_suffix=NONE
878 program_transform_name=s,x,x,
879 silent=
880 site=
881 srcdir=
882 verbose=
883 x_includes=NONE
884 x_libraries=NONE
885
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
911
912 ac_prev=
913 ac_dashdash=
914 for ac_option
915 do
916   # If the previous option needs an argument, assign it.
917   if test -n "$ac_prev"; then
918     eval $ac_prev=\$ac_option
919     ac_prev=
920     continue
921   fi
922
923   case $ac_option in
924   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925   *)    ac_optarg=yes ;;
926   esac
927
928   # Accept the important Cygnus configure options, so we can diagnose typos.
929
930   case $ac_dashdash$ac_option in
931   --)
932     ac_dashdash=yes ;;
933
934   -bindir | --bindir | --bindi | --bind | --bin | --bi)
935     ac_prev=bindir ;;
936   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937     bindir=$ac_optarg ;;
938
939   -build | --build | --buil | --bui | --bu)
940     ac_prev=build_alias ;;
941   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942     build_alias=$ac_optarg ;;
943
944   -cache-file | --cache-file | --cache-fil | --cache-fi \
945   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946     ac_prev=cache_file ;;
947   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949     cache_file=$ac_optarg ;;
950
951   --config-cache | -C)
952     cache_file=config.cache ;;
953
954   -datadir | --datadir | --datadi | --datad)
955     ac_prev=datadir ;;
956   -datadir=* | --datadir=* | --datadi=* | --datad=*)
957     datadir=$ac_optarg ;;
958
959   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960   | --dataroo | --dataro | --datar)
961     ac_prev=datarootdir ;;
962   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964     datarootdir=$ac_optarg ;;
965
966   -disable-* | --disable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
971    { (exit 1); exit 1; }; }
972     ac_useropt_orig=$ac_useropt
973     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974     case $ac_user_opts in
975       *"
976 "enable_$ac_useropt"
977 "*) ;;
978       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979          ac_unrecognized_sep=', ';;
980     esac
981     eval enable_$ac_useropt=no ;;
982
983   -docdir | --docdir | --docdi | --doc | --do)
984     ac_prev=docdir ;;
985   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986     docdir=$ac_optarg ;;
987
988   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989     ac_prev=dvidir ;;
990   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991     dvidir=$ac_optarg ;;
992
993   -enable-* | --enable-*)
994     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995     # Reject names that are not valid shell variable names.
996     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998    { (exit 1); exit 1; }; }
999     ac_useropt_orig=$ac_useropt
1000     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001     case $ac_user_opts in
1002       *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006          ac_unrecognized_sep=', ';;
1007     esac
1008     eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012   | --exec | --exe | --ex)
1013     ac_prev=exec_prefix ;;
1014   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016   | --exec=* | --exe=* | --ex=*)
1017     exec_prefix=$ac_optarg ;;
1018
1019   -gas | --gas | --ga | --g)
1020     # Obsolete; use --with-gas.
1021     with_gas=yes ;;
1022
1023   -help | --help | --hel | --he | -h)
1024     ac_init_help=long ;;
1025   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026     ac_init_help=recursive ;;
1027   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028     ac_init_help=short ;;
1029
1030   -host | --host | --hos | --ho)
1031     ac_prev=host_alias ;;
1032   -host=* | --host=* | --hos=* | --ho=*)
1033     host_alias=$ac_optarg ;;
1034
1035   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036     ac_prev=htmldir ;;
1037   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038   | --ht=*)
1039     htmldir=$ac_optarg ;;
1040
1041   -includedir | --includedir | --includedi | --included | --include \
1042   | --includ | --inclu | --incl | --inc)
1043     ac_prev=includedir ;;
1044   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045   | --includ=* | --inclu=* | --incl=* | --inc=*)
1046     includedir=$ac_optarg ;;
1047
1048   -infodir | --infodir | --infodi | --infod | --info | --inf)
1049     ac_prev=infodir ;;
1050   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051     infodir=$ac_optarg ;;
1052
1053   -libdir | --libdir | --libdi | --libd)
1054     ac_prev=libdir ;;
1055   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056     libdir=$ac_optarg ;;
1057
1058   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059   | --libexe | --libex | --libe)
1060     ac_prev=libexecdir ;;
1061   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062   | --libexe=* | --libex=* | --libe=*)
1063     libexecdir=$ac_optarg ;;
1064
1065   -localedir | --localedir | --localedi | --localed | --locale)
1066     ac_prev=localedir ;;
1067   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068     localedir=$ac_optarg ;;
1069
1070   -localstatedir | --localstatedir | --localstatedi | --localstated \
1071   | --localstate | --localstat | --localsta | --localst | --locals)
1072     ac_prev=localstatedir ;;
1073   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075     localstatedir=$ac_optarg ;;
1076
1077   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078     ac_prev=mandir ;;
1079   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080     mandir=$ac_optarg ;;
1081
1082   -nfp | --nfp | --nf)
1083     # Obsolete; use --without-fp.
1084     with_fp=no ;;
1085
1086   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087   | --no-cr | --no-c | -n)
1088     no_create=yes ;;
1089
1090   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092     no_recursion=yes ;;
1093
1094   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096   | --oldin | --oldi | --old | --ol | --o)
1097     ac_prev=oldincludedir ;;
1098   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101     oldincludedir=$ac_optarg ;;
1102
1103   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104     ac_prev=prefix ;;
1105   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106     prefix=$ac_optarg ;;
1107
1108   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109   | --program-pre | --program-pr | --program-p)
1110     ac_prev=program_prefix ;;
1111   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113     program_prefix=$ac_optarg ;;
1114
1115   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116   | --program-suf | --program-su | --program-s)
1117     ac_prev=program_suffix ;;
1118   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120     program_suffix=$ac_optarg ;;
1121
1122   -program-transform-name | --program-transform-name \
1123   | --program-transform-nam | --program-transform-na \
1124   | --program-transform-n | --program-transform- \
1125   | --program-transform | --program-transfor \
1126   | --program-transfo | --program-transf \
1127   | --program-trans | --program-tran \
1128   | --progr-tra | --program-tr | --program-t)
1129     ac_prev=program_transform_name ;;
1130   -program-transform-name=* | --program-transform-name=* \
1131   | --program-transform-nam=* | --program-transform-na=* \
1132   | --program-transform-n=* | --program-transform-=* \
1133   | --program-transform=* | --program-transfor=* \
1134   | --program-transfo=* | --program-transf=* \
1135   | --program-trans=* | --program-tran=* \
1136   | --progr-tra=* | --program-tr=* | --program-t=*)
1137     program_transform_name=$ac_optarg ;;
1138
1139   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140     ac_prev=pdfdir ;;
1141   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142     pdfdir=$ac_optarg ;;
1143
1144   -psdir | --psdir | --psdi | --psd | --ps)
1145     ac_prev=psdir ;;
1146   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147     psdir=$ac_optarg ;;
1148
1149   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150   | -silent | --silent | --silen | --sile | --sil)
1151     silent=yes ;;
1152
1153   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154     ac_prev=sbindir ;;
1155   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156   | --sbi=* | --sb=*)
1157     sbindir=$ac_optarg ;;
1158
1159   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161   | --sharedst | --shareds | --shared | --share | --shar \
1162   | --sha | --sh)
1163     ac_prev=sharedstatedir ;;
1164   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167   | --sha=* | --sh=*)
1168     sharedstatedir=$ac_optarg ;;
1169
1170   -site | --site | --sit)
1171     ac_prev=site ;;
1172   -site=* | --site=* | --sit=*)
1173     site=$ac_optarg ;;
1174
1175   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176     ac_prev=srcdir ;;
1177   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178     srcdir=$ac_optarg ;;
1179
1180   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181   | --syscon | --sysco | --sysc | --sys | --sy)
1182     ac_prev=sysconfdir ;;
1183   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185     sysconfdir=$ac_optarg ;;
1186
1187   -target | --target | --targe | --targ | --tar | --ta | --t)
1188     ac_prev=target_alias ;;
1189   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190     target_alias=$ac_optarg ;;
1191
1192   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193     verbose=yes ;;
1194
1195   -version | --version | --versio | --versi | --vers | -V)
1196     ac_init_version=: ;;
1197
1198   -with-* | --with-*)
1199     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203    { (exit 1); exit 1; }; }
1204     ac_useropt_orig=$ac_useropt
1205     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206     case $ac_user_opts in
1207       *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211          ac_unrecognized_sep=', ';;
1212     esac
1213     eval with_$ac_useropt=\$ac_optarg ;;
1214
1215   -without-* | --without-*)
1216     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217     # Reject names that are not valid shell variable names.
1218     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1220    { (exit 1); exit 1; }; }
1221     ac_useropt_orig=$ac_useropt
1222     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223     case $ac_user_opts in
1224       *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228          ac_unrecognized_sep=', ';;
1229     esac
1230     eval with_$ac_useropt=no ;;
1231
1232   --x)
1233     # Obsolete; use --with-x.
1234     with_x=yes ;;
1235
1236   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237   | --x-incl | --x-inc | --x-in | --x-i)
1238     ac_prev=x_includes ;;
1239   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241     x_includes=$ac_optarg ;;
1242
1243   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245     ac_prev=x_libraries ;;
1246   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248     x_libraries=$ac_optarg ;;
1249
1250   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252    { (exit 1); exit 1; }; }
1253     ;;
1254
1255   *=*)
1256     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260    { (exit 1); exit 1; }; }
1261     eval $ac_envvar=\$ac_optarg
1262     export $ac_envvar ;;
1263
1264   *)
1265     # FIXME: should be removed in autoconf 3.0.
1266     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270     ;;
1271
1272   esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1278    { (exit 1); exit 1; }; }
1279 fi
1280
1281 if test -n "$ac_unrecognized_opts"; then
1282   case $enable_option_checking in
1283     no) ;;
1284     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1285    { (exit 1); exit 1; }; } ;;
1286     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287   esac
1288 fi
1289
1290 # Check all directory arguments for consistency.
1291 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292                 datadir sysconfdir sharedstatedir localstatedir includedir \
1293                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294                 libdir localedir mandir
1295 do
1296   eval ac_val=\$$ac_var
1297   # Remove trailing slashes.
1298   case $ac_val in
1299     */ )
1300       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301       eval $ac_var=\$ac_val;;
1302   esac
1303   # Be sure to have absolute directory names.
1304   case $ac_val in
1305     [\\/$]* | ?:[\\/]* )  continue;;
1306     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307   esac
1308   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309    { (exit 1); exit 1; }; }
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321   if test "x$build_alias" = x; then
1322     cross_compiling=maybe
1323     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324     If a cross compiler is detected then cross compile mode will be used." >&2
1325   elif test "x$build_alias" != "x$host_alias"; then
1326     cross_compiling=yes
1327   fi
1328 fi
1329
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333 test "$silent" = yes && exec 6>/dev/null
1334
1335
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1340    { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1343    { (exit 1); exit 1; }; }
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348   ac_srcdir_defaulted=yes
1349   # Try the directory containing this script, then the parent directory.
1350   ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352          X"$as_myself" : 'X\(//\)[^/]' \| \
1353          X"$as_myself" : 'X\(//\)$' \| \
1354          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)[^/].*/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\).*/{
1369             s//\1/
1370             q
1371           }
1372           s/.*/./; q'`
1373   srcdir=$ac_confdir
1374   if test ! -r "$srcdir/$ac_unique_file"; then
1375     srcdir=..
1376   fi
1377 else
1378   ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383    { (exit 1); exit 1; }; }
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1388    { (exit 1); exit 1; }; }
1389         pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392   srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_env_${ac_var}_value=\$${ac_var}
1403   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411   # Omit some internal or obsolete options to make the list less imposing.
1412   # This message is too long to be a string in the A/UX 3.1 sh.
1413   cat <<_ACEOF
1414 \`configure' configures PostgreSQL 9.3devel to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE.  See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424   -h, --help              display this help and exit
1425       --help=short        display options specific to this package
1426       --help=recursive    display the short help of all the included packages
1427   -V, --version           display version information and exit
1428   -q, --quiet, --silent   do not print \`checking...' messages
1429       --cache-file=FILE   cache test results in FILE [disabled]
1430   -C, --config-cache      alias for \`--cache-file=config.cache'
1431   -n, --no-create         do not create output files
1432       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435   --prefix=PREFIX         install architecture-independent files in PREFIX
1436                           [$ac_default_prefix]
1437   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1438                           [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448   --bindir=DIR            user executables [EPREFIX/bin]
1449   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1450   --libexecdir=DIR        program executables [EPREFIX/libexec]
1451   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1452   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1453   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1454   --libdir=DIR            object code libraries [EPREFIX/lib]
1455   --includedir=DIR        C header files [PREFIX/include]
1456   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1457   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1458   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1459   --infodir=DIR           info documentation [DATAROOTDIR/info]
1460   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1461   --mandir=DIR            man documentation [DATAROOTDIR/man]
1462   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1463   --htmldir=DIR           html documentation [DOCDIR]
1464   --dvidir=DIR            dvi documentation [DOCDIR]
1465   --pdfdir=DIR            pdf documentation [DOCDIR]
1466   --psdir=DIR             ps documentation [DOCDIR]
1467 _ACEOF
1468
1469   cat <<\_ACEOF
1470
1471 System types:
1472   --build=BUILD     configure for building on BUILD [guessed]
1473   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478   case $ac_init_help in
1479      short | recursive ) echo "Configuration of PostgreSQL 9.3devel:";;
1480    esac
1481   cat <<\_ACEOF
1482
1483 Optional Features:
1484   --disable-option-checking  ignore unrecognized --enable/--with options
1485   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487   --disable-integer-datetimes
1488                           disable 64-bit integer date/time support
1489   --enable-nls[=LANGUAGES]
1490                           enable Native Language Support
1491   --disable-rpath         do not embed shared library search path in
1492                           executables
1493   --disable-spinlocks     do not use spinlocks
1494   --enable-debug          build with debugging symbols (-g)
1495   --enable-profiling      build with profiling enabled
1496   --enable-coverage       build with coverage testing instrumentation
1497   --enable-dtrace         build with DTrace support
1498   --enable-depend         turn on automatic dependency tracking
1499   --enable-cassert        enable assertion checks (for debugging)
1500   --disable-thread-safety disable thread-safety in client libraries
1501   --disable-largefile     omit support for large files
1502   --disable-float4-byval  disable float4 passed by value
1503   --disable-float8-byval  disable float8 passed by value
1504
1505 Optional Packages:
1506   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1507   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1508   --with-template=NAME    override operating system template
1509   --with-includes=DIRS    look for additional header files in DIRS
1510   --with-libraries=DIRS   look for additional libraries in DIRS
1511   --with-libs=DIRS        alternative spelling of --with-libraries
1512   --with-pgport=PORTNUM   set default port number [5432]
1513   --with-blocksize=BLOCKSIZE
1514                           set table block size in kB [8]
1515   --with-segsize=SEGSIZE  set table segment size in GB [1]
1516   --with-wal-blocksize=BLOCKSIZE
1517                           set WAL block size in kB [8]
1518   --with-wal-segsize=SEGSIZE
1519                           set WAL segment size in MB [16]
1520   --with-CC=CMD           set compiler (deprecated)
1521   --with-tcl              build Tcl modules (PL/Tcl)
1522   --with-tclconfig=DIR    tclConfig.sh is in DIR
1523   --with-perl             build Perl modules (PL/Perl)
1524   --with-python           build Python modules (PL/Python)
1525   --with-gssapi           build with GSSAPI support
1526   --with-krb5             build with Kerberos 5 support
1527   --with-krb-srvnam=NAME  default service principal name in Kerberos
1528                           [postgres]
1529   --with-pam              build with PAM support
1530   --with-ldap             build with LDAP support
1531   --with-bonjour          build with Bonjour support
1532   --with-openssl          build with OpenSSL support
1533   --with-selinux          build with SELinux support
1534   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1535   --with-libedit-preferred
1536                           prefer BSD Libedit over GNU Readline
1537   --with-ossp-uuid        build contrib/uuid-ossp, requires OSSP UUID library
1538   --with-libxml           build with XML support
1539   --with-libxslt          use XSLT support when building contrib/xml2
1540   --with-system-tzdata=DIR
1541                           use system time zone data in DIR
1542   --without-zlib          do not use Zlib
1543   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1544
1545 Some influential environment variables:
1546   CC          C compiler command
1547   CFLAGS      C compiler flags
1548   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549               nonstandard directory <lib dir>
1550   LIBS        libraries to pass to the linker, e.g. -l<library>
1551   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552               you have headers in a nonstandard directory <include dir>
1553   CPP         C preprocessor
1554   LDFLAGS_EX  extra linker flags for linking executables only
1555   LDFLAGS_SL  extra linker flags for linking shared libraries only
1556   DOCBOOKSTYLE
1557               location of DocBook stylesheets
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to <pgsql-bugs@postgresql.org>.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568   # If there are subdirs, report their specific --help.
1569   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570     test -d "$ac_dir" ||
1571       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572       continue
1573     ac_builddir=.
1574
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *)
1578   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579   # A ".." for each directory in $ac_dir_suffix.
1580   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581   case $ac_top_builddir_sub in
1582   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584   esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1590
1591 case $srcdir in
1592   .)  # We are building in place.
1593     ac_srcdir=.
1594     ac_top_srcdir=$ac_top_builddir_sub
1595     ac_abs_top_srcdir=$ac_pwd ;;
1596   [\\/]* | ?:[\\/]* )  # Absolute name.
1597     ac_srcdir=$srcdir$ac_dir_suffix;
1598     ac_top_srcdir=$srcdir
1599     ac_abs_top_srcdir=$srcdir ;;
1600   *) # Relative name.
1601     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602     ac_top_srcdir=$ac_top_build_prefix$srcdir
1603     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607     cd "$ac_dir" || { ac_status=$?; continue; }
1608     # Check for guested configure.
1609     if test -f "$ac_srcdir/configure.gnu"; then
1610       echo &&
1611       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612     elif test -f "$ac_srcdir/configure"; then
1613       echo &&
1614       $SHELL "$ac_srcdir/configure" --help=recursive
1615     else
1616       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617     fi || ac_status=$?
1618     cd "$ac_pwd" || { ac_status=$?; break; }
1619   done
1620 fi
1621
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1624   cat <<\_ACEOF
1625 PostgreSQL configure 9.3devel
1626 generated by GNU Autoconf 2.63
1627
1628 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1629 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1632
1633 Copyright (c) 1996-2012, PostgreSQL Global Development Group
1634 _ACEOF
1635   exit
1636 fi
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1640
1641 It was created by PostgreSQL $as_me 9.3devel, which was
1642 generated by GNU Autoconf 2.63.  Invocation command line was
1643
1644   $ $0 $@
1645
1646 _ACEOF
1647 exec 5>>config.log
1648 {
1649 cat <<_ASUNAME
1650 ## --------- ##
1651 ## Platform. ##
1652 ## --------- ##
1653
1654 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1655 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1656 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1657 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1658 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1659
1660 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1661 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1662
1663 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1664 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1665 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1666 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1667 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1668 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1669 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1670
1671 _ASUNAME
1672
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   $as_echo "PATH: $as_dir"
1679 done
1680 IFS=$as_save_IFS
1681
1682 } >&5
1683
1684 cat >&5 <<_ACEOF
1685
1686
1687 ## ----------- ##
1688 ## Core tests. ##
1689 ## ----------- ##
1690
1691 _ACEOF
1692
1693
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1699 ac_configure_args=
1700 ac_configure_args0=
1701 ac_configure_args1=
1702 ac_must_keep_next=false
1703 for ac_pass in 1 2
1704 do
1705   for ac_arg
1706   do
1707     case $ac_arg in
1708     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710     | -silent | --silent | --silen | --sile | --sil)
1711       continue ;;
1712     *\'*)
1713       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1714     esac
1715     case $ac_pass in
1716     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1717     2)
1718       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719       if test $ac_must_keep_next = true; then
1720         ac_must_keep_next=false # Got value, back to normal.
1721       else
1722         case $ac_arg in
1723           *=* | --config-cache | -C | -disable-* | --disable-* \
1724           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726           | -with-* | --with-* | -without-* | --without-* | --x)
1727             case "$ac_configure_args0 " in
1728               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1729             esac
1730             ;;
1731           -* ) ac_must_keep_next=true ;;
1732         esac
1733       fi
1734       ac_configure_args="$ac_configure_args '$ac_arg'"
1735       ;;
1736     esac
1737   done
1738 done
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1741
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log.  We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748   # Save into config.log some information that might help in debugging.
1749   {
1750     echo
1751
1752     cat <<\_ASBOX
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1756 _ASBOX
1757     echo
1758     # The following way of writing the cache mishandles newlines in values,
1759 (
1760   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761     eval ac_val=\$$ac_var
1762     case $ac_val in #(
1763     *${as_nl}*)
1764       case $ac_var in #(
1765       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1767       esac
1768       case $ac_var in #(
1769       _ | IFS | as_nl) ;; #(
1770       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771       *) $as_unset $ac_var ;;
1772       esac ;;
1773     esac
1774   done
1775   (set) 2>&1 |
1776     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777     *${as_nl}ac_space=\ *)
1778       sed -n \
1779         "s/'\''/'\''\\\\'\'''\''/g;
1780           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1781       ;; #(
1782     *)
1783       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1784       ;;
1785     esac |
1786     sort
1787 )
1788     echo
1789
1790     cat <<\_ASBOX
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1794 _ASBOX
1795     echo
1796     for ac_var in $ac_subst_vars
1797     do
1798       eval ac_val=\$$ac_var
1799       case $ac_val in
1800       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801       esac
1802       $as_echo "$ac_var='\''$ac_val'\''"
1803     done | sort
1804     echo
1805
1806     if test -n "$ac_subst_files"; then
1807       cat <<\_ASBOX
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1811 _ASBOX
1812       echo
1813       for ac_var in $ac_subst_files
1814       do
1815         eval ac_val=\$$ac_var
1816         case $ac_val in
1817         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818         esac
1819         $as_echo "$ac_var='\''$ac_val'\''"
1820       done | sort
1821       echo
1822     fi
1823
1824     if test -s confdefs.h; then
1825       cat <<\_ASBOX
1826 ## ----------- ##
1827 ## confdefs.h. ##
1828 ## ----------- ##
1829 _ASBOX
1830       echo
1831       cat confdefs.h
1832       echo
1833     fi
1834     test "$ac_signal" != 0 &&
1835       $as_echo "$as_me: caught signal $ac_signal"
1836     $as_echo "$as_me: exit $exit_status"
1837   } >&5
1838   rm -f core *.core core.conftest.* &&
1839     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1840     exit $exit_status
1841 ' 0
1842 for ac_signal in 1 2 13 15; do
1843   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1844 done
1845 ac_signal=0
1846
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1849
1850 # Predefined preprocessor variables.
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1874 _ACEOF
1875
1876
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1879 ac_site_file1=NONE
1880 ac_site_file2=NONE
1881 if test -n "$CONFIG_SITE"; then
1882   ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884   ac_site_file1=$prefix/share/config.site
1885   ac_site_file2=$prefix/etc/config.site
1886 else
1887   ac_site_file1=$ac_default_prefix/share/config.site
1888   ac_site_file2=$ac_default_prefix/etc/config.site
1889 fi
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1891 do
1892   test "x$ac_site_file" = xNONE && continue
1893   if test -r "$ac_site_file"; then
1894     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896     sed 's/^/| /' "$ac_site_file" >&5
1897     . "$ac_site_file"
1898   fi
1899 done
1900
1901 if test -r "$cache_file"; then
1902   # Some versions of bash will fail to source /dev/null (special
1903   # files actually), so we avoid doing that.
1904   if test -f "$cache_file"; then
1905     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1907     case $cache_file in
1908       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909       *)                      . "./$cache_file";;
1910     esac
1911   fi
1912 else
1913   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1915   >$cache_file
1916 fi
1917
1918 # Check that the precious variables saved in the cache have kept the same
1919 # value.
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923   eval ac_new_set=\$ac_env_${ac_var}_set
1924   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925   eval ac_new_val=\$ac_env_${ac_var}_value
1926   case $ac_old_set,$ac_new_set in
1927     set,)
1928       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930       ac_cache_corrupted=: ;;
1931     ,set)
1932       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934       ac_cache_corrupted=: ;;
1935     ,);;
1936     *)
1937       if test "x$ac_old_val" != "x$ac_new_val"; then
1938         # differences in whitespace do not lead to failure.
1939         ac_old_val_w=`echo x $ac_old_val`
1940         ac_new_val_w=`echo x $ac_new_val`
1941         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944           ac_cache_corrupted=:
1945         else
1946           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948           eval $ac_var=\$ac_old_val
1949         fi
1950         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1951 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1952         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1954       fi;;
1955   esac
1956   # Pass precious variables to config.status.
1957   if test "$ac_new_set" = set; then
1958     case $ac_new_val in
1959     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960     *) ac_arg=$ac_var=$ac_new_val ;;
1961     esac
1962     case " $ac_configure_args " in
1963       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1964       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965     esac
1966   fi
1967 done
1968 if $ac_cache_corrupted; then
1969   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1971   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975    { (exit 1); exit 1; }; }
1976 fi
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002 ac_ext=c
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007
2008
2009
2010
2011
2012
2013 ac_aux_dir=
2014 for ac_dir in config "$srcdir"/config; do
2015   if test -f "$ac_dir/install-sh"; then
2016     ac_aux_dir=$ac_dir
2017     ac_install_sh="$ac_aux_dir/install-sh -c"
2018     break
2019   elif test -f "$ac_dir/install.sh"; then
2020     ac_aux_dir=$ac_dir
2021     ac_install_sh="$ac_aux_dir/install.sh -c"
2022     break
2023   elif test -f "$ac_dir/shtool"; then
2024     ac_aux_dir=$ac_dir
2025     ac_install_sh="$ac_aux_dir/shtool install -c"
2026     break
2027   fi
2028 done
2029 if test -z "$ac_aux_dir"; then
2030   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2031 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2032    { (exit 1); exit 1; }; }
2033 fi
2034
2035 # These three variables are undocumented and unsupported,
2036 # and are intended to be withdrawn in a future Autoconf release.
2037 # They can cause serious problems if a builder's source tree is in a directory
2038 # whose full name contains unusual characters.
2039 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2040 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2041 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2042
2043
2044
2045 configure_args=$ac_configure_args
2046
2047
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PG_VERSION "$PACKAGE_VERSION"
2051 _ACEOF
2052
2053 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2054
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2058 _ACEOF
2059
2060
2061 # Make sure we can run config.sub.
2062 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2063   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2064 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2065    { (exit 1); exit 1; }; }
2066
2067 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2068 $as_echo_n "checking build system type... " >&6; }
2069 if test "${ac_cv_build+set}" = set; then
2070   $as_echo_n "(cached) " >&6
2071 else
2072   ac_build_alias=$build_alias
2073 test "x$ac_build_alias" = x &&
2074   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2075 test "x$ac_build_alias" = x &&
2076   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2077 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2078    { (exit 1); exit 1; }; }
2079 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2080   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2081 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2082    { (exit 1); exit 1; }; }
2083
2084 fi
2085 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2086 $as_echo "$ac_cv_build" >&6; }
2087 case $ac_cv_build in
2088 *-*-*) ;;
2089 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2090 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2091    { (exit 1); exit 1; }; };;
2092 esac
2093 build=$ac_cv_build
2094 ac_save_IFS=$IFS; IFS='-'
2095 set x $ac_cv_build
2096 shift
2097 build_cpu=$1
2098 build_vendor=$2
2099 shift; shift
2100 # Remember, the first character of IFS is used to create $*,
2101 # except with old shells:
2102 build_os=$*
2103 IFS=$ac_save_IFS
2104 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2105
2106
2107 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2108 $as_echo_n "checking host system type... " >&6; }
2109 if test "${ac_cv_host+set}" = set; then
2110   $as_echo_n "(cached) " >&6
2111 else
2112   if test "x$host_alias" = x; then
2113   ac_cv_host=$ac_cv_build
2114 else
2115   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2116     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2117 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2118    { (exit 1); exit 1; }; }
2119 fi
2120
2121 fi
2122 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2123 $as_echo "$ac_cv_host" >&6; }
2124 case $ac_cv_host in
2125 *-*-*) ;;
2126 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2127 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2128    { (exit 1); exit 1; }; };;
2129 esac
2130 host=$ac_cv_host
2131 ac_save_IFS=$IFS; IFS='-'
2132 set x $ac_cv_host
2133 shift
2134 host_cpu=$1
2135 host_vendor=$2
2136 shift; shift
2137 # Remember, the first character of IFS is used to create $*,
2138 # except with old shells:
2139 host_os=$*
2140 IFS=$ac_save_IFS
2141 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2142
2143
2144
2145 template=
2146 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2147 $as_echo_n "checking which template to use... " >&6; }
2148
2149
2150
2151
2152 # Check whether --with-template was given.
2153 if test "${with_template+set}" = set; then
2154   withval=$with_template;
2155   case $withval in
2156     yes)
2157       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2158 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2159    { (exit 1); exit 1; }; }
2160       ;;
2161     no)
2162       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2163 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2164    { (exit 1); exit 1; }; }
2165       ;;
2166     *)
2167
2168   case $withval in
2169     list)   echo; ls "$srcdir/src/template"; exit;;
2170     *)      if test -f "$srcdir/src/template/$with_template" ; then
2171               template=$withval
2172             else
2173               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2174 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2175    { (exit 1); exit 1; }; }
2176             fi;;
2177   esac
2178
2179       ;;
2180   esac
2181
2182 else
2183
2184 # --with-template not given
2185
2186 case $host_os in
2187      aix*) template=aix ;;
2188   cygwin*) template=cygwin ;;
2189   darwin*) template=darwin ;;
2190 dragonfly*) template=netbsd ;;
2191  freebsd*) template=freebsd ;;
2192     hpux*) template=hpux ;;
2193     irix*) template=irix ;;
2194  linux*|gnu*|k*bsd*-gnu)
2195            template=linux ;;
2196    mingw*) template=win32 ;;
2197   netbsd*) template=netbsd ;;
2198  openbsd*) template=openbsd ;;
2199      osf*) template=osf ;;
2200      sco*) template=sco ;;
2201  solaris*) template=solaris ;;
2202    sysv5*) template=unixware ;;
2203 esac
2204
2205   if test x"$template" = x"" ; then
2206     { { $as_echo "$as_me:$LINENO: error:
2207 *******************************************************************
2208 PostgreSQL has apparently not been ported to your platform yet.
2209 To try a manual configuration, look into the src/template directory
2210 for a similar platform and use the '--with-template=' option.
2211
2212 Please also contact <pgsql-bugs@postgresql.org> to see about
2213 rectifying this.  Include the above 'checking host system type...'
2214 line.
2215 *******************************************************************
2216 " >&5
2217 $as_echo "$as_me: error:
2218 *******************************************************************
2219 PostgreSQL has apparently not been ported to your platform yet.
2220 To try a manual configuration, look into the src/template directory
2221 for a similar platform and use the '--with-template=' option.
2222
2223 Please also contact <pgsql-bugs@postgresql.org> to see about
2224 rectifying this.  Include the above 'checking host system type...'
2225 line.
2226 *******************************************************************
2227 " >&2;}
2228    { (exit 1); exit 1; }; }
2229   fi
2230
2231
2232 fi
2233
2234
2235
2236 { $as_echo "$as_me:$LINENO: result: $template" >&5
2237 $as_echo "$template" >&6; }
2238
2239 PORTNAME=$template
2240
2241
2242 # Initialize default assumption that we do not need separate assembly code
2243 # for TAS (test-and-set).  This can be overridden by the template file
2244 # when it's executed.
2245 need_tas=no
2246 tas_file=dummy.s
2247
2248
2249
2250 ##
2251 ## Command line options
2252 ##
2253
2254 #
2255 # Add non-standard directories to the include path
2256 #
2257
2258
2259
2260 # Check whether --with-includes was given.
2261 if test "${with_includes+set}" = set; then
2262   withval=$with_includes;
2263   case $withval in
2264     yes)
2265       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2266 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2267    { (exit 1); exit 1; }; }
2268       ;;
2269     no)
2270       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2271 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2272    { (exit 1); exit 1; }; }
2273       ;;
2274     *)
2275
2276       ;;
2277   esac
2278
2279 fi
2280
2281
2282
2283
2284 #
2285 # Add non-standard directories to the library search path
2286 #
2287
2288
2289
2290 # Check whether --with-libraries was given.
2291 if test "${with_libraries+set}" = set; then
2292   withval=$with_libraries;
2293   case $withval in
2294     yes)
2295       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2296 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2297    { (exit 1); exit 1; }; }
2298       ;;
2299     no)
2300       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2301 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2302    { (exit 1); exit 1; }; }
2303       ;;
2304     *)
2305       LIBRARY_DIRS=$withval
2306       ;;
2307   esac
2308
2309 fi
2310
2311
2312
2313
2314
2315
2316 # Check whether --with-libs was given.
2317 if test "${with_libs+set}" = set; then
2318   withval=$with_libs;
2319   case $withval in
2320     yes)
2321       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2322 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2323    { (exit 1); exit 1; }; }
2324       ;;
2325     no)
2326       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2327 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2328    { (exit 1); exit 1; }; }
2329       ;;
2330     *)
2331       LIBRARY_DIRS=$withval
2332       ;;
2333   esac
2334
2335 fi
2336
2337
2338
2339
2340 #
2341 # 64-bit integer date/time storage: enabled by default.
2342 #
2343 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2344 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2345
2346
2347 # Check whether --enable-integer-datetimes was given.
2348 if test "${enable_integer_datetimes+set}" = set; then
2349   enableval=$enable_integer_datetimes;
2350   case $enableval in
2351     yes)
2352
2353 cat >>confdefs.h <<\_ACEOF
2354 #define USE_INTEGER_DATETIMES 1
2355 _ACEOF
2356
2357       ;;
2358     no)
2359       :
2360       ;;
2361     *)
2362       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2363 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2364    { (exit 1); exit 1; }; }
2365       ;;
2366   esac
2367
2368 else
2369   enable_integer_datetimes=yes
2370
2371 cat >>confdefs.h <<\_ACEOF
2372 #define USE_INTEGER_DATETIMES 1
2373 _ACEOF
2374
2375 fi
2376
2377
2378 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2379 $as_echo "$enable_integer_datetimes" >&6; }
2380
2381
2382 #
2383 # NLS
2384 #
2385 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2386 $as_echo_n "checking whether NLS is wanted... " >&6; }
2387
2388
2389 # Check whether --enable-nls was given.
2390 if test "${enable_nls+set}" = set; then
2391   enableval=$enable_nls;
2392   case $enableval in
2393     yes)
2394       :
2395       ;;
2396     no)
2397       :
2398       ;;
2399     *)
2400       enable_nls=yes
2401 WANTED_LANGUAGES=$enableval
2402       ;;
2403   esac
2404
2405 else
2406   enable_nls=no
2407 fi
2408
2409
2410
2411 if test "$enable_nls" = yes; then
2412
2413 cat >>confdefs.h <<\_ACEOF
2414 #define ENABLE_NLS 1
2415 _ACEOF
2416
2417 fi
2418
2419 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2420 $as_echo "$enable_nls" >&6; }
2421
2422
2423
2424 #
2425 # Default port number (--with-pgport), default 5432
2426 #
2427 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2428 $as_echo_n "checking for default port number... " >&6; }
2429
2430
2431
2432 # Check whether --with-pgport was given.
2433 if test "${with_pgport+set}" = set; then
2434   withval=$with_pgport;
2435   case $withval in
2436     yes)
2437       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2438 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2439    { (exit 1); exit 1; }; }
2440       ;;
2441     no)
2442       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2443 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2444    { (exit 1); exit 1; }; }
2445       ;;
2446     *)
2447       default_port=$withval
2448       ;;
2449   esac
2450
2451 else
2452   default_port=5432
2453 fi
2454
2455
2456 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2457 $as_echo "$default_port" >&6; }
2458 # Need both of these because some places want an integer and some a string
2459
2460 cat >>confdefs.h <<_ACEOF
2461 #define DEF_PGPORT ${default_port}
2462 _ACEOF
2463
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define DEF_PGPORT_STR "${default_port}"
2467 _ACEOF
2468
2469
2470
2471 #
2472 # '-rpath'-like feature can be disabled
2473 #
2474
2475
2476 # Check whether --enable-rpath was given.
2477 if test "${enable_rpath+set}" = set; then
2478   enableval=$enable_rpath;
2479   case $enableval in
2480     yes)
2481       :
2482       ;;
2483     no)
2484       :
2485       ;;
2486     *)
2487       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2488 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2489    { (exit 1); exit 1; }; }
2490       ;;
2491   esac
2492
2493 else
2494   enable_rpath=yes
2495
2496 fi
2497
2498
2499
2500
2501 #
2502 # Spinlocks
2503 #
2504
2505
2506 # Check whether --enable-spinlocks was given.
2507 if test "${enable_spinlocks+set}" = set; then
2508   enableval=$enable_spinlocks;
2509   case $enableval in
2510     yes)
2511       :
2512       ;;
2513     no)
2514       :
2515       ;;
2516     *)
2517       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2518 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2519    { (exit 1); exit 1; }; }
2520       ;;
2521   esac
2522
2523 else
2524   enable_spinlocks=yes
2525
2526 fi
2527
2528
2529
2530 #
2531 # --enable-debug adds -g to compiler flags
2532 #
2533
2534
2535 # Check whether --enable-debug was given.
2536 if test "${enable_debug+set}" = set; then
2537   enableval=$enable_debug;
2538   case $enableval in
2539     yes)
2540       :
2541       ;;
2542     no)
2543       :
2544       ;;
2545     *)
2546       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2547 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2548    { (exit 1); exit 1; }; }
2549       ;;
2550   esac
2551
2552 else
2553   enable_debug=no
2554
2555 fi
2556
2557
2558
2559
2560 #
2561 # --enable-profiling enables gcc profiling
2562 #
2563
2564
2565 # Check whether --enable-profiling was given.
2566 if test "${enable_profiling+set}" = set; then
2567   enableval=$enable_profiling;
2568   case $enableval in
2569     yes)
2570       :
2571       ;;
2572     no)
2573       :
2574       ;;
2575     *)
2576       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2577 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2578    { (exit 1); exit 1; }; }
2579       ;;
2580   esac
2581
2582 else
2583   enable_profiling=no
2584
2585 fi
2586
2587
2588
2589 #
2590 # --enable-coverage enables generation of code coverage metrics with gcov
2591 #
2592
2593
2594 # Check whether --enable-coverage was given.
2595 if test "${enable_coverage+set}" = set; then
2596   enableval=$enable_coverage;
2597   case $enableval in
2598     yes)
2599       for ac_prog in gcov
2600 do
2601   # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_GCOV+set}" = set; then
2606   $as_echo_n "(cached) " >&6
2607 else
2608   if test -n "$GCOV"; then
2609   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618     ac_cv_prog_GCOV="$ac_prog"
2619     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620     break 2
2621   fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 GCOV=$ac_cv_prog_GCOV
2629 if test -n "$GCOV"; then
2630   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2631 $as_echo "$GCOV" >&6; }
2632 else
2633   { $as_echo "$as_me:$LINENO: result: no" >&5
2634 $as_echo "no" >&6; }
2635 fi
2636
2637
2638   test -n "$GCOV" && break
2639 done
2640
2641 if test -z "$GCOV"; then
2642   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2643 $as_echo "$as_me: error: gcov not found" >&2;}
2644    { (exit 1); exit 1; }; }
2645 fi
2646 for ac_prog in lcov
2647 do
2648   # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_LCOV+set}" = set; then
2653   $as_echo_n "(cached) " >&6
2654 else
2655   if test -n "$LCOV"; then
2656   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663   for ac_exec_ext in '' $ac_executable_extensions; do
2664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665     ac_cv_prog_LCOV="$ac_prog"
2666     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668   fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 LCOV=$ac_cv_prog_LCOV
2676 if test -n "$LCOV"; then
2677   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2678 $as_echo "$LCOV" >&6; }
2679 else
2680   { $as_echo "$as_me:$LINENO: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685   test -n "$LCOV" && break
2686 done
2687
2688 if test -z "$LCOV"; then
2689   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2690 $as_echo "$as_me: error: lcov not found" >&2;}
2691    { (exit 1); exit 1; }; }
2692 fi
2693 for ac_prog in genhtml
2694 do
2695   # Extract the first word of "$ac_prog", so it can be a program name with args.
2696 set dummy $ac_prog; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_GENHTML+set}" = set; then
2700   $as_echo_n "(cached) " >&6
2701 else
2702   if test -n "$GENHTML"; then
2703   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708   IFS=$as_save_IFS
2709   test -z "$as_dir" && as_dir=.
2710   for ac_exec_ext in '' $ac_executable_extensions; do
2711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712     ac_cv_prog_GENHTML="$ac_prog"
2713     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714     break 2
2715   fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 GENHTML=$ac_cv_prog_GENHTML
2723 if test -n "$GENHTML"; then
2724   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2725 $as_echo "$GENHTML" >&6; }
2726 else
2727   { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731
2732   test -n "$GENHTML" && break
2733 done
2734
2735 if test -z "$GENHTML"; then
2736   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2737 $as_echo "$as_me: error: genhtml not found" >&2;}
2738    { (exit 1); exit 1; }; }
2739 fi
2740       ;;
2741     no)
2742       :
2743       ;;
2744     *)
2745       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2746 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2747    { (exit 1); exit 1; }; }
2748       ;;
2749   esac
2750
2751 else
2752   enable_coverage=no
2753
2754 fi
2755
2756
2757
2758
2759 #
2760 # DTrace
2761 #
2762
2763
2764 # Check whether --enable-dtrace was given.
2765 if test "${enable_dtrace+set}" = set; then
2766   enableval=$enable_dtrace;
2767   case $enableval in
2768     yes)
2769       for ac_prog in dtrace
2770 do
2771   # Extract the first word of "$ac_prog", so it can be a program name with args.
2772 set dummy $ac_prog; ac_word=$2
2773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_DTRACE+set}" = set; then
2776   $as_echo_n "(cached) " >&6
2777 else
2778   if test -n "$DTRACE"; then
2779   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786   for ac_exec_ext in '' $ac_executable_extensions; do
2787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788     ac_cv_prog_DTRACE="$ac_prog"
2789     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790     break 2
2791   fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 DTRACE=$ac_cv_prog_DTRACE
2799 if test -n "$DTRACE"; then
2800   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2801 $as_echo "$DTRACE" >&6; }
2802 else
2803   { $as_echo "$as_me:$LINENO: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808   test -n "$DTRACE" && break
2809 done
2810
2811 if test -z "$DTRACE"; then
2812   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2813 $as_echo "$as_me: error: dtrace not found" >&2;}
2814    { (exit 1); exit 1; }; }
2815 fi
2816
2817       ;;
2818     no)
2819       :
2820       ;;
2821     *)
2822       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2823 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2824    { (exit 1); exit 1; }; }
2825       ;;
2826   esac
2827
2828 else
2829   enable_dtrace=no
2830
2831 fi
2832
2833
2834
2835
2836 #
2837 # Block size
2838 #
2839 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2840 $as_echo_n "checking for block size... " >&6; }
2841
2842
2843
2844 # Check whether --with-blocksize was given.
2845 if test "${with_blocksize+set}" = set; then
2846   withval=$with_blocksize;
2847   case $withval in
2848     yes)
2849       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2850 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2851    { (exit 1); exit 1; }; }
2852       ;;
2853     no)
2854       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2855 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2856    { (exit 1); exit 1; }; }
2857       ;;
2858     *)
2859       blocksize=$withval
2860       ;;
2861   esac
2862
2863 else
2864   blocksize=8
2865 fi
2866
2867
2868 case ${blocksize} in
2869   1) BLCKSZ=1024;;
2870   2) BLCKSZ=2048;;
2871   4) BLCKSZ=4096;;
2872   8) BLCKSZ=8192;;
2873  16) BLCKSZ=16384;;
2874  32) BLCKSZ=32768;;
2875   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2876 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2877    { (exit 1); exit 1; }; }
2878 esac
2879 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2880 $as_echo "${blocksize}kB" >&6; }
2881
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define BLCKSZ ${BLCKSZ}
2885 _ACEOF
2886
2887
2888 #
2889 # Relation segment size
2890 #
2891 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2892 $as_echo_n "checking for segment size... " >&6; }
2893
2894
2895
2896 # Check whether --with-segsize was given.
2897 if test "${with_segsize+set}" = set; then
2898   withval=$with_segsize;
2899   case $withval in
2900     yes)
2901       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2903    { (exit 1); exit 1; }; }
2904       ;;
2905     no)
2906       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2907 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2908    { (exit 1); exit 1; }; }
2909       ;;
2910     *)
2911       segsize=$withval
2912       ;;
2913   esac
2914
2915 else
2916   segsize=1
2917 fi
2918
2919
2920 # this expression is set up to avoid unnecessary integer overflow
2921 # blocksize is already guaranteed to be a factor of 1024
2922 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2923 test $? -eq 0 || exit 1
2924 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2925 $as_echo "${segsize}GB" >&6; }
2926
2927
2928 cat >>confdefs.h <<_ACEOF
2929 #define RELSEG_SIZE ${RELSEG_SIZE}
2930 _ACEOF
2931
2932
2933 #
2934 # WAL block size
2935 #
2936 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2937 $as_echo_n "checking for WAL block size... " >&6; }
2938
2939
2940
2941 # Check whether --with-wal-blocksize was given.
2942 if test "${with_wal_blocksize+set}" = set; then
2943   withval=$with_wal_blocksize;
2944   case $withval in
2945     yes)
2946       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2947 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2948    { (exit 1); exit 1; }; }
2949       ;;
2950     no)
2951       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2952 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2953    { (exit 1); exit 1; }; }
2954       ;;
2955     *)
2956       wal_blocksize=$withval
2957       ;;
2958   esac
2959
2960 else
2961   wal_blocksize=8
2962 fi
2963
2964
2965 case ${wal_blocksize} in
2966   1) XLOG_BLCKSZ=1024;;
2967   2) XLOG_BLCKSZ=2048;;
2968   4) XLOG_BLCKSZ=4096;;
2969   8) XLOG_BLCKSZ=8192;;
2970  16) XLOG_BLCKSZ=16384;;
2971  32) XLOG_BLCKSZ=32768;;
2972  64) XLOG_BLCKSZ=65536;;
2973   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2974 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2975    { (exit 1); exit 1; }; }
2976 esac
2977 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2978 $as_echo "${wal_blocksize}kB" >&6; }
2979
2980
2981 cat >>confdefs.h <<_ACEOF
2982 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2983 _ACEOF
2984
2985
2986 #
2987 # WAL segment size
2988 #
2989 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
2990 $as_echo_n "checking for WAL segment size... " >&6; }
2991
2992
2993
2994 # Check whether --with-wal-segsize was given.
2995 if test "${with_wal_segsize+set}" = set; then
2996   withval=$with_wal_segsize;
2997   case $withval in
2998     yes)
2999       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3000 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3001    { (exit 1); exit 1; }; }
3002       ;;
3003     no)
3004       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3005 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3006    { (exit 1); exit 1; }; }
3007       ;;
3008     *)
3009       wal_segsize=$withval
3010       ;;
3011   esac
3012
3013 else
3014   wal_segsize=16
3015 fi
3016
3017
3018 case ${wal_segsize} in
3019   1) ;;
3020   2) ;;
3021   4) ;;
3022   8) ;;
3023  16) ;;
3024  32) ;;
3025  64) ;;
3026   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3027 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3028    { (exit 1); exit 1; }; }
3029 esac
3030 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3031 $as_echo "${wal_segsize}MB" >&6; }
3032
3033
3034 cat >>confdefs.h <<_ACEOF
3035 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3036 _ACEOF
3037
3038
3039 #
3040 # C compiler
3041 #
3042
3043 # For historical reasons you can also use --with-CC to specify the C compiler
3044 # to use, although the standard way to do this is to set the CC environment
3045 # variable.
3046
3047
3048
3049 # Check whether --with-CC was given.
3050 if test "${with_CC+set}" = set; then
3051   withval=$with_CC;
3052   case $withval in
3053     yes)
3054       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3055 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3056    { (exit 1); exit 1; }; }
3057       ;;
3058     no)
3059       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3060 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3061    { (exit 1); exit 1; }; }
3062       ;;
3063     *)
3064       CC=$with_CC
3065       ;;
3066   esac
3067
3068 fi
3069
3070
3071
3072 case $template in
3073   aix) pgac_cc_list="gcc xlc";;
3074  irix) pgac_cc_list="cc";; # no gcc
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 # Some versions of GCC support some additional useful warning flags.
3948 # Check whether they are supported, and add them to CFLAGS if so.
3949 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3950 # but has its own.  Also check other compiler-specific flags here.
3951
3952 if test "$GCC" = yes -a "$ICC" = no; then
3953   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3954   # These work in some but not all gcc versions
3955   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3956 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3957 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3958   $as_echo_n "(cached) " >&6
3959 else
3960   pgac_save_CFLAGS=$CFLAGS
3961 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3962 ac_save_c_werror_flag=$ac_c_werror_flag
3963 ac_c_werror_flag=yes
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h.  */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h.  */
3970
3971 int
3972 main ()
3973 {
3974
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (ac_try="$ac_compile"
3981 case "(($ac_try" in
3982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983   *) ac_try_echo=$ac_try;;
3984 esac
3985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3986 $as_echo "$ac_try_echo") >&5
3987   (eval "$ac_compile") 2>conftest.er1
3988   ac_status=$?
3989   grep -v '^ *+' conftest.er1 >conftest.err
3990   rm -f conftest.er1
3991   cat conftest.err >&5
3992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); } && {
3994          test -z "$ac_c_werror_flag" ||
3995          test ! -s conftest.err
3996        } && test -s conftest.$ac_objext; then
3997   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
3998 else
3999   $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4003 fi
4004
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_c_werror_flag=$ac_save_c_werror_flag
4007 CFLAGS="$pgac_save_CFLAGS"
4008 fi
4009 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4010 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4011 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4012   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4013 fi
4014
4015   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4016 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4017 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4018   $as_echo_n "(cached) " >&6
4019 else
4020   pgac_save_CFLAGS=$CFLAGS
4021 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4022 ac_save_c_werror_flag=$ac_c_werror_flag
4023 ac_c_werror_flag=yes
4024 cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h.  */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h.  */
4030
4031 int
4032 main ()
4033 {
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4041 case "(($ac_try" in
4042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043   *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4046 $as_echo "$ac_try_echo") >&5
4047   (eval "$ac_compile") 2>conftest.er1
4048   ac_status=$?
4049   grep -v '^ *+' conftest.er1 >conftest.err
4050   rm -f conftest.er1
4051   cat conftest.err >&5
4052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); } && {
4054          test -z "$ac_c_werror_flag" ||
4055          test ! -s conftest.err
4056        } && test -s conftest.$ac_objext; then
4057   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4058 else
4059   $as_echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062         pgac_cv_prog_cc_cflags__Wendif_labels=no
4063 fi
4064
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_c_werror_flag=$ac_save_c_werror_flag
4067 CFLAGS="$pgac_save_CFLAGS"
4068 fi
4069 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4070 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4071 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4072   CFLAGS="$CFLAGS -Wendif-labels"
4073 fi
4074
4075   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wlogical-op" >&5
4076 $as_echo_n "checking whether $CC supports -Wlogical-op... " >&6; }
4077 if test "${pgac_cv_prog_cc_cflags__Wlogical_op+set}" = set; then
4078   $as_echo_n "(cached) " >&6
4079 else
4080   pgac_save_CFLAGS=$CFLAGS
4081 CFLAGS="$pgac_save_CFLAGS -Wlogical-op"
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h.  */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4101 case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4106 $as_echo "$ac_try_echo") >&5
4107   (eval "$ac_compile") 2>conftest.er1
4108   ac_status=$?
4109   grep -v '^ *+' conftest.er1 >conftest.err
4110   rm -f conftest.er1
4111   cat conftest.err >&5
4112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); } && {
4114          test -z "$ac_c_werror_flag" ||
4115          test ! -s conftest.err
4116        } && test -s conftest.$ac_objext; then
4117   pgac_cv_prog_cc_cflags__Wlogical_op=yes
4118 else
4119   $as_echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122         pgac_cv_prog_cc_cflags__Wlogical_op=no
4123 fi
4124
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_c_werror_flag=$ac_save_c_werror_flag
4127 CFLAGS="$pgac_save_CFLAGS"
4128 fi
4129 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wlogical_op" >&5
4130 $as_echo "$pgac_cv_prog_cc_cflags__Wlogical_op" >&6; }
4131 if test x"$pgac_cv_prog_cc_cflags__Wlogical_op" = x"yes"; then
4132   CFLAGS="$CFLAGS -Wlogical-op"
4133 fi
4134
4135   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4136 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4137 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4138   $as_echo_n "(cached) " >&6
4139 else
4140   pgac_save_CFLAGS=$CFLAGS
4141 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4142 ac_save_c_werror_flag=$ac_c_werror_flag
4143 ac_c_werror_flag=yes
4144 cat >conftest.$ac_ext <<_ACEOF
4145 /* confdefs.h.  */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h.  */
4150
4151 int
4152 main ()
4153 {
4154
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4161 case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166 $as_echo "$ac_try_echo") >&5
4167   (eval "$ac_compile") 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } && {
4174          test -z "$ac_c_werror_flag" ||
4175          test ! -s conftest.err
4176        } && test -s conftest.$ac_objext; then
4177   pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4178 else
4179   $as_echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182         pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4183 fi
4184
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 ac_c_werror_flag=$ac_save_c_werror_flag
4187 CFLAGS="$pgac_save_CFLAGS"
4188 fi
4189 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4190 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4191 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4192   CFLAGS="$CFLAGS -Wmissing-format-attribute"
4193 fi
4194
4195   # This was included in -Wall/-Wformat in older GCC versions
4196   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4197 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4198 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4199   $as_echo_n "(cached) " >&6
4200 else
4201   pgac_save_CFLAGS=$CFLAGS
4202 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4203 ac_save_c_werror_flag=$ac_c_werror_flag
4204 ac_c_werror_flag=yes
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211
4212 int
4213 main ()
4214 {
4215
4216   ;
4217   return 0;
4218 }
4219 _ACEOF
4220 rm -f conftest.$ac_objext
4221 if { (ac_try="$ac_compile"
4222 case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4227 $as_echo "$ac_try_echo") >&5
4228   (eval "$ac_compile") 2>conftest.er1
4229   ac_status=$?
4230   grep -v '^ *+' conftest.er1 >conftest.err
4231   rm -f conftest.er1
4232   cat conftest.err >&5
4233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } && {
4235          test -z "$ac_c_werror_flag" ||
4236          test ! -s conftest.err
4237        } && test -s conftest.$ac_objext; then
4238   pgac_cv_prog_cc_cflags__Wformat_security=yes
4239 else
4240   $as_echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243         pgac_cv_prog_cc_cflags__Wformat_security=no
4244 fi
4245
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 ac_c_werror_flag=$ac_save_c_werror_flag
4248 CFLAGS="$pgac_save_CFLAGS"
4249 fi
4250 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4251 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4252 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4253   CFLAGS="$CFLAGS -Wformat-security"
4254 fi
4255
4256   # Disable strict-aliasing rules; needed for gcc 3.3+
4257   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4258 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4259 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4260   $as_echo_n "(cached) " >&6
4261 else
4262   pgac_save_CFLAGS=$CFLAGS
4263 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4264 ac_save_c_werror_flag=$ac_c_werror_flag
4265 ac_c_werror_flag=yes
4266 cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h.  */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h.  */
4272
4273 int
4274 main ()
4275 {
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (ac_try="$ac_compile"
4283 case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4288 $as_echo "$ac_try_echo") >&5
4289   (eval "$ac_compile") 2>conftest.er1
4290   ac_status=$?
4291   grep -v '^ *+' conftest.er1 >conftest.err
4292   rm -f conftest.er1
4293   cat conftest.err >&5
4294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); } && {
4296          test -z "$ac_c_werror_flag" ||
4297          test ! -s conftest.err
4298        } && test -s conftest.$ac_objext; then
4299   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4300 else
4301   $as_echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4305 fi
4306
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 ac_c_werror_flag=$ac_save_c_werror_flag
4309 CFLAGS="$pgac_save_CFLAGS"
4310 fi
4311 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4312 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4313 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4314   CFLAGS="$CFLAGS -fno-strict-aliasing"
4315 fi
4316
4317   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4318   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4319 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4320 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4321   $as_echo_n "(cached) " >&6
4322 else
4323   pgac_save_CFLAGS=$CFLAGS
4324 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4325 ac_save_c_werror_flag=$ac_c_werror_flag
4326 ac_c_werror_flag=yes
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333
4334 int
4335 main ()
4336 {
4337
4338   ;
4339   return 0;
4340 }
4341 _ACEOF
4342 rm -f conftest.$ac_objext
4343 if { (ac_try="$ac_compile"
4344 case "(($ac_try" in
4345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346   *) ac_try_echo=$ac_try;;
4347 esac
4348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4349 $as_echo "$ac_try_echo") >&5
4350   (eval "$ac_compile") 2>conftest.er1
4351   ac_status=$?
4352   grep -v '^ *+' conftest.er1 >conftest.err
4353   rm -f conftest.er1
4354   cat conftest.err >&5
4355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); } && {
4357          test -z "$ac_c_werror_flag" ||
4358          test ! -s conftest.err
4359        } && test -s conftest.$ac_objext; then
4360   pgac_cv_prog_cc_cflags__fwrapv=yes
4361 else
4362   $as_echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365         pgac_cv_prog_cc_cflags__fwrapv=no
4366 fi
4367
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4370 CFLAGS="$pgac_save_CFLAGS"
4371 fi
4372 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4373 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4374 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4375   CFLAGS="$CFLAGS -fwrapv"
4376 fi
4377
4378   # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4379   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4380 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4381 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4382   $as_echo_n "(cached) " >&6
4383 else
4384   pgac_save_CFLAGS=$CFLAGS
4385 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4386 ac_save_c_werror_flag=$ac_c_werror_flag
4387 ac_c_werror_flag=yes
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h.  */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h.  */
4394
4395 int
4396 main ()
4397 {
4398
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.$ac_objext
4404 if { (ac_try="$ac_compile"
4405 case "(($ac_try" in
4406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407   *) ac_try_echo=$ac_try;;
4408 esac
4409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4410 $as_echo "$ac_try_echo") >&5
4411   (eval "$ac_compile") 2>conftest.er1
4412   ac_status=$?
4413   grep -v '^ *+' conftest.er1 >conftest.err
4414   rm -f conftest.er1
4415   cat conftest.err >&5
4416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); } && {
4418          test -z "$ac_c_werror_flag" ||
4419          test ! -s conftest.err
4420        } && test -s conftest.$ac_objext; then
4421   pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4422 else
4423   $as_echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4425
4426         pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4427 fi
4428
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 ac_c_werror_flag=$ac_save_c_werror_flag
4431 CFLAGS="$pgac_save_CFLAGS"
4432 fi
4433 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4434 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4435 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4436   CFLAGS="$CFLAGS -fexcess-precision=standard"
4437 fi
4438
4439 elif test "$ICC" = yes; then
4440   # Intel's compiler has a bug/misoptimization in checking for
4441   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4442   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4443 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4444 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4445   $as_echo_n "(cached) " >&6
4446 else
4447   pgac_save_CFLAGS=$CFLAGS
4448 CFLAGS="$pgac_save_CFLAGS -mp1"
4449 ac_save_c_werror_flag=$ac_c_werror_flag
4450 ac_c_werror_flag=yes
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h.  */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h.  */
4457
4458 int
4459 main ()
4460 {
4461
4462   ;
4463   return 0;
4464 }
4465 _ACEOF
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4468 case "(($ac_try" in
4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470   *) ac_try_echo=$ac_try;;
4471 esac
4472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4473 $as_echo "$ac_try_echo") >&5
4474   (eval "$ac_compile") 2>conftest.er1
4475   ac_status=$?
4476   grep -v '^ *+' conftest.er1 >conftest.err
4477   rm -f conftest.er1
4478   cat conftest.err >&5
4479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); } && {
4481          test -z "$ac_c_werror_flag" ||
4482          test ! -s conftest.err
4483        } && test -s conftest.$ac_objext; then
4484   pgac_cv_prog_cc_cflags__mp1=yes
4485 else
4486   $as_echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489         pgac_cv_prog_cc_cflags__mp1=no
4490 fi
4491
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 ac_c_werror_flag=$ac_save_c_werror_flag
4494 CFLAGS="$pgac_save_CFLAGS"
4495 fi
4496 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4497 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4498 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4499   CFLAGS="$CFLAGS -mp1"
4500 fi
4501
4502   # Make sure strict aliasing is off (though this is said to be the default)
4503   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4504 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4505 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4506   $as_echo_n "(cached) " >&6
4507 else
4508   pgac_save_CFLAGS=$CFLAGS
4509 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4510 ac_save_c_werror_flag=$ac_c_werror_flag
4511 ac_c_werror_flag=yes
4512 cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h.  */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h.  */
4518
4519 int
4520 main ()
4521 {
4522
4523   ;
4524   return 0;
4525 }
4526 _ACEOF
4527 rm -f conftest.$ac_objext
4528 if { (ac_try="$ac_compile"
4529 case "(($ac_try" in
4530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531   *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4534 $as_echo "$ac_try_echo") >&5
4535   (eval "$ac_compile") 2>conftest.er1
4536   ac_status=$?
4537   grep -v '^ *+' conftest.er1 >conftest.err
4538   rm -f conftest.er1
4539   cat conftest.err >&5
4540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); } && {
4542          test -z "$ac_c_werror_flag" ||
4543          test ! -s conftest.err
4544        } && test -s conftest.$ac_objext; then
4545   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4546 else
4547   $as_echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4549
4550         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4551 fi
4552
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 ac_c_werror_flag=$ac_save_c_werror_flag
4555 CFLAGS="$pgac_save_CFLAGS"
4556 fi
4557 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4558 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4559 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4560   CFLAGS="$CFLAGS -fno-strict-aliasing"
4561 fi
4562
4563 elif test "$PORTNAME" = "aix"; then
4564   # AIX's xlc has to have strict aliasing turned off too
4565   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4566 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4567 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4568   $as_echo_n "(cached) " >&6
4569 else
4570   pgac_save_CFLAGS=$CFLAGS
4571 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4572 ac_save_c_werror_flag=$ac_c_werror_flag
4573 ac_c_werror_flag=yes
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580
4581 int
4582 main ()
4583 {
4584
4585   ;
4586   return 0;
4587 }
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (ac_try="$ac_compile"
4591 case "(($ac_try" in
4592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593   *) ac_try_echo=$ac_try;;
4594 esac
4595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4596 $as_echo "$ac_try_echo") >&5
4597   (eval "$ac_compile") 2>conftest.er1
4598   ac_status=$?
4599   grep -v '^ *+' conftest.er1 >conftest.err
4600   rm -f conftest.er1
4601   cat conftest.err >&5
4602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } && {
4604          test -z "$ac_c_werror_flag" ||
4605          test ! -s conftest.err
4606        } && test -s conftest.$ac_objext; then
4607   pgac_cv_prog_cc_cflags__qnoansialias=yes
4608 else
4609   $as_echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612         pgac_cv_prog_cc_cflags__qnoansialias=no
4613 fi
4614
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_c_werror_flag=$ac_save_c_werror_flag
4617 CFLAGS="$pgac_save_CFLAGS"
4618 fi
4619 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4620 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4621 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4622   CFLAGS="$CFLAGS -qnoansialias"
4623 fi
4624
4625 elif test "$PORTNAME" = "hpux"; then
4626   # On some versions of HP-UX, libm functions do not set errno by default.
4627   # Fix that by using +Olibmerrno if the compiler recognizes it.
4628   { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4629 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4630 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4631   $as_echo_n "(cached) " >&6
4632 else
4633   pgac_save_CFLAGS=$CFLAGS
4634 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4635 ac_save_c_werror_flag=$ac_c_werror_flag
4636 ac_c_werror_flag=yes
4637 cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643
4644 int
4645 main ()
4646 {
4647
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4654 case "(($ac_try" in
4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656   *) ac_try_echo=$ac_try;;
4657 esac
4658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4659 $as_echo "$ac_try_echo") >&5
4660   (eval "$ac_compile") 2>conftest.er1
4661   ac_status=$?
4662   grep -v '^ *+' conftest.er1 >conftest.err
4663   rm -f conftest.er1
4664   cat conftest.err >&5
4665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); } && {
4667          test -z "$ac_c_werror_flag" ||
4668          test ! -s conftest.err
4669        } && test -s conftest.$ac_objext; then
4670   pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4671 else
4672   $as_echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675         pgac_cv_prog_cc_cflags_pOlibmerrno=no
4676 fi
4677
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ac_c_werror_flag=$ac_save_c_werror_flag
4680 CFLAGS="$pgac_save_CFLAGS"
4681 fi
4682 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4683 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4684 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4685   CFLAGS="$CFLAGS +Olibmerrno"
4686 fi
4687
4688 fi
4689
4690 # supply -g if --enable-debug
4691 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4692   CFLAGS="$CFLAGS -g"
4693 fi
4694
4695 # enable code coverage if --enable-coverage
4696 if test "$enable_coverage" = yes; then
4697   if test "$GCC" = yes; then
4698     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4699   else
4700     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4701 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4702    { (exit 1); exit 1; }; }
4703   fi
4704 fi
4705
4706 # enable profiling if --enable-profiling
4707 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4708   if test "$GCC" = yes; then
4709
4710 cat >>confdefs.h <<\_ACEOF
4711 #define PROFILE_PID_DIR 1
4712 _ACEOF
4713
4714     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4715   else
4716     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4717 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4718    { (exit 1); exit 1; }; }
4719   fi
4720 fi
4721
4722 # We already have this in Makefile.win32, but configure needs it too
4723 if test "$PORTNAME" = "win32"; then
4724   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4725 fi
4726
4727 # Check if the compiler still works with the template settings
4728 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4729 $as_echo_n "checking whether the C compiler still works... " >&6; }
4730 cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h.  */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h.  */
4736
4737 int
4738 main ()
4739 {
4740 return 0;
4741   ;
4742   return 0;
4743 }
4744 _ACEOF
4745 rm -f conftest.$ac_objext conftest$ac_exeext
4746 if { (ac_try="$ac_link"
4747 case "(($ac_try" in
4748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749   *) ac_try_echo=$ac_try;;
4750 esac
4751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4752 $as_echo "$ac_try_echo") >&5
4753   (eval "$ac_link") 2>conftest.er1
4754   ac_status=$?
4755   grep -v '^ *+' conftest.er1 >conftest.err
4756   rm -f conftest.er1
4757   cat conftest.err >&5
4758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } && {
4760          test -z "$ac_c_werror_flag" ||
4761          test ! -s conftest.err
4762        } && test -s conftest$ac_exeext && {
4763          test "$cross_compiling" = yes ||
4764          $as_test_x conftest$ac_exeext
4765        }; then
4766   { $as_echo "$as_me:$LINENO: result: yes" >&5
4767 $as_echo "yes" >&6; }
4768 else
4769   $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772         { $as_echo "$as_me:$LINENO: result: no" >&5
4773 $as_echo "no" >&6; }
4774    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4775 $as_echo "$as_me: error: cannot proceed" >&2;}
4776    { (exit 1); exit 1; }; }
4777 fi
4778
4779 rm -rf conftest.dSYM
4780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4781       conftest$ac_exeext conftest.$ac_ext
4782
4783 # Defend against gcc -ffast-math
4784 if test "$GCC" = yes; then
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h.  */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h.  */
4791
4792 int
4793 main ()
4794 {
4795 #ifdef __FAST_MATH__
4796 choke me
4797 #endif
4798   ;
4799   return 0;
4800 }
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (ac_try="$ac_compile"
4804 case "(($ac_try" in
4805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806   *) ac_try_echo=$ac_try;;
4807 esac
4808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4809 $as_echo "$ac_try_echo") >&5
4810   (eval "$ac_compile") 2>conftest.er1
4811   ac_status=$?
4812   grep -v '^ *+' conftest.er1 >conftest.err
4813   rm -f conftest.er1
4814   cat conftest.err >&5
4815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); } && {
4817          test -z "$ac_c_werror_flag" ||
4818          test ! -s conftest.err
4819        } && test -s conftest.$ac_objext; then
4820   :
4821 else
4822   $as_echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4824
4825         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4826 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4827    { (exit 1); exit 1; }; }
4828 fi
4829
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 fi
4832
4833 ac_ext=c
4834 ac_cpp='$CPP $CPPFLAGS'
4835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4839 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4840 # On Suns, sometimes $CPP names a directory.
4841 if test -n "$CPP" && test -d "$CPP"; then
4842   CPP=
4843 fi
4844 if test -z "$CPP"; then
4845   if test "${ac_cv_prog_CPP+set}" = set; then
4846   $as_echo_n "(cached) " >&6
4847 else
4848       # Double quotes because CPP needs to be expanded
4849     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4850     do
4851       ac_preproc_ok=false
4852 for ac_c_preproc_warn_flag in '' yes
4853 do
4854   # Use a header file that comes with gcc, so configuring glibc
4855   # with a fresh cross-compiler works.
4856   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4857   # <limits.h> exists even on freestanding compilers.
4858   # On the NeXT, cc -E runs the code through the compiler's parser,
4859   # not just through cpp. "Syntax error" is here to catch this case.
4860   cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h.  */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h.  */
4866 #ifdef __STDC__
4867 # include <limits.h>
4868 #else
4869 # include <assert.h>
4870 #endif
4871                      Syntax error
4872 _ACEOF
4873 if { (ac_try="$ac_cpp conftest.$ac_ext"
4874 case "(($ac_try" in
4875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876   *) ac_try_echo=$ac_try;;
4877 esac
4878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4879 $as_echo "$ac_try_echo") >&5
4880   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4881   ac_status=$?
4882   grep -v '^ *+' conftest.er1 >conftest.err
4883   rm -f conftest.er1
4884   cat conftest.err >&5
4885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); } >/dev/null && {
4887          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4888          test ! -s conftest.err
4889        }; then
4890   :
4891 else
4892   $as_echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895   # Broken: fails on valid input.
4896 continue
4897 fi
4898
4899 rm -f conftest.err conftest.$ac_ext
4900
4901   # OK, works on sane cases.  Now check whether nonexistent headers
4902   # can be detected and how.
4903   cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h.  */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h.  */
4909 #include <ac_nonexistent.h>
4910 _ACEOF
4911 if { (ac_try="$ac_cpp conftest.$ac_ext"
4912 case "(($ac_try" in
4913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914   *) ac_try_echo=$ac_try;;
4915 esac
4916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4917 $as_echo "$ac_try_echo") >&5
4918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4919   ac_status=$?
4920   grep -v '^ *+' conftest.er1 >conftest.err
4921   rm -f conftest.er1
4922   cat conftest.err >&5
4923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); } >/dev/null && {
4925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4926          test ! -s conftest.err
4927        }; then
4928   # Broken: success on invalid input.
4929 continue
4930 else
4931   $as_echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934   # Passes both tests.
4935 ac_preproc_ok=:
4936 break
4937 fi
4938
4939 rm -f conftest.err conftest.$ac_ext
4940
4941 done
4942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4943 rm -f conftest.err conftest.$ac_ext
4944 if $ac_preproc_ok; then
4945   break
4946 fi
4947
4948     done
4949     ac_cv_prog_CPP=$CPP
4950
4951 fi
4952   CPP=$ac_cv_prog_CPP
4953 else
4954   ac_cv_prog_CPP=$CPP
4955 fi
4956 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4957 $as_echo "$CPP" >&6; }
4958 ac_preproc_ok=false
4959 for ac_c_preproc_warn_flag in '' yes
4960 do
4961   # Use a header file that comes with gcc, so configuring glibc
4962   # with a fresh cross-compiler works.
4963   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964   # <limits.h> exists even on freestanding compilers.
4965   # On the NeXT, cc -E runs the code through the compiler's parser,
4966   # not just through cpp. "Syntax error" is here to catch this case.
4967   cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h.  */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h.  */
4973 #ifdef __STDC__
4974 # include <limits.h>
4975 #else
4976 # include <assert.h>
4977 #endif
4978                      Syntax error
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   :
4998 else
4999   $as_echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002   # Broken: fails on valid input.
5003 continue
5004 fi
5005
5006 rm -f conftest.err conftest.$ac_ext
5007
5008   # OK, works on sane cases.  Now check whether nonexistent headers
5009   # can be detected and how.
5010   cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016 #include <ac_nonexistent.h>
5017 _ACEOF
5018 if { (ac_try="$ac_cpp conftest.$ac_ext"
5019 case "(($ac_try" in
5020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021   *) ac_try_echo=$ac_try;;
5022 esac
5023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5024 $as_echo "$ac_try_echo") >&5
5025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5026   ac_status=$?
5027   grep -v '^ *+' conftest.er1 >conftest.err
5028   rm -f conftest.er1
5029   cat conftest.err >&5
5030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); } >/dev/null && {
5032          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5033          test ! -s conftest.err
5034        }; then
5035   # Broken: success on invalid input.
5036 continue
5037 else
5038   $as_echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041   # Passes both tests.
5042 ac_preproc_ok=:
5043 break
5044 fi
5045
5046 rm -f conftest.err conftest.$ac_ext
5047
5048 done
5049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050 rm -f conftest.err conftest.$ac_ext
5051 if $ac_preproc_ok; then
5052   :
5053 else
5054   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5056 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5057 See \`config.log' for more details." >&5
5058 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5059 See \`config.log' for more details." >&2;}
5060    { (exit 1); exit 1; }; }; }
5061 fi
5062
5063 ac_ext=c
5064 ac_cpp='$CPP $CPPFLAGS'
5065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5068
5069
5070
5071
5072 #
5073 # Set up TAS assembly code if needed; the template file has now had its
5074 # chance to request this.
5075 #
5076 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5077
5078
5079 if test "$need_tas" = yes ; then
5080   TAS=tas.o
5081 else
5082   TAS=""
5083 fi
5084
5085
5086
5087 #
5088 # Automatic dependency tracking
5089 #
5090
5091
5092 # Check whether --enable-depend was given.
5093 if test "${enable_depend+set}" = set; then
5094   enableval=$enable_depend;
5095   case $enableval in
5096     yes)
5097       autodepend=yes
5098       ;;
5099     no)
5100       :
5101       ;;
5102     *)
5103       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5104 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5105    { (exit 1); exit 1; }; }
5106       ;;
5107   esac
5108
5109 else
5110   enable_depend=no
5111
5112 fi
5113
5114
5115
5116
5117
5118 #
5119 # Enable assert checks
5120 #
5121
5122
5123 # Check whether --enable-cassert was given.
5124 if test "${enable_cassert+set}" = set; then
5125   enableval=$enable_cassert;
5126   case $enableval in
5127     yes)
5128
5129 cat >>confdefs.h <<\_ACEOF
5130 #define USE_ASSERT_CHECKING 1
5131 _ACEOF
5132
5133       ;;
5134     no)
5135       :
5136       ;;
5137     *)
5138       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5139 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5140    { (exit 1); exit 1; }; }
5141       ;;
5142   esac
5143
5144 else
5145   enable_cassert=no
5146
5147 fi
5148
5149
5150
5151
5152 #
5153 # Include directories
5154 #
5155 ac_save_IFS=$IFS
5156 IFS="${IFS}${PATH_SEPARATOR}"
5157 # SRCH_INC comes from the template file
5158 for dir in $with_includes $SRCH_INC; do
5159   if test -d "$dir"; then
5160     INCLUDES="$INCLUDES -I$dir"
5161   else
5162     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5163 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5164   fi
5165 done
5166 IFS=$ac_save_IFS
5167
5168
5169
5170 #
5171 # Library directories
5172 #
5173 ac_save_IFS=$IFS
5174 IFS="${IFS}${PATH_SEPARATOR}"
5175 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5176 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5177   if test -d "$dir"; then
5178     LIBDIRS="$LIBDIRS -L$dir"
5179   else
5180     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5181 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5182   fi
5183 done
5184 IFS=$ac_save_IFS
5185
5186 #
5187 # Enable thread-safe client libraries
5188 #
5189 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5190 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5191
5192
5193 # Check whether --enable-thread-safety was given.
5194 if test "${enable_thread_safety+set}" = set; then
5195   enableval=$enable_thread_safety;
5196   case $enableval in
5197     yes)
5198       :
5199       ;;
5200     no)
5201       :
5202       ;;
5203     *)
5204       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5205 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5206    { (exit 1); exit 1; }; }
5207       ;;
5208   esac
5209
5210 else
5211   enable_thread_safety=yes
5212
5213 fi
5214
5215
5216 if test "$enable_thread_safety" = yes; then
5217
5218 cat >>confdefs.h <<\_ACEOF
5219 #define ENABLE_THREAD_SAFETY 1
5220 _ACEOF
5221
5222 fi
5223 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5224 $as_echo "$enable_thread_safety" >&6; }
5225
5226
5227 #
5228 # Optionally build Tcl modules (PL/Tcl)
5229 #
5230 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5231 $as_echo_n "checking whether to build with Tcl... " >&6; }
5232
5233
5234
5235 # Check whether --with-tcl was given.
5236 if test "${with_tcl+set}" = set; then
5237   withval=$with_tcl;
5238   case $withval in
5239     yes)
5240       :
5241       ;;
5242     no)
5243       :
5244       ;;
5245     *)
5246       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5247 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5248    { (exit 1); exit 1; }; }
5249       ;;
5250   esac
5251
5252 else
5253   with_tcl=no
5254
5255 fi
5256
5257
5258 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5259 $as_echo "$with_tcl" >&6; }
5260
5261
5262 # We see if the path to the Tcl/Tk configuration scripts is specified.
5263 # This will override the use of tclsh to find the paths to search.
5264
5265
5266
5267
5268 # Check whether --with-tclconfig was given.
5269 if test "${with_tclconfig+set}" = set; then
5270   withval=$with_tclconfig;
5271   case $withval in
5272     yes)
5273       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5274 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5275    { (exit 1); exit 1; }; }
5276       ;;
5277     no)
5278       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5279 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5280    { (exit 1); exit 1; }; }
5281       ;;
5282     *)
5283
5284       ;;
5285   esac
5286
5287 fi
5288
5289
5290
5291 #
5292 # Optionally build Perl modules (PL/Perl)
5293 #
5294 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5295 $as_echo_n "checking whether to build Perl modules... " >&6; }
5296
5297
5298
5299 # Check whether --with-perl was given.
5300 if test "${with_perl+set}" = set; then
5301   withval=$with_perl;
5302   case $withval in
5303     yes)
5304       :
5305       ;;
5306     no)
5307       :
5308       ;;
5309     *)
5310       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5311 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5312    { (exit 1); exit 1; }; }
5313       ;;
5314   esac
5315
5316 else
5317   with_perl=no
5318
5319 fi
5320
5321
5322 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5323 $as_echo "$with_perl" >&6; }
5324
5325
5326 #
5327 # Optionally build Python modules (PL/Python)
5328 #
5329 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5330 $as_echo_n "checking whether to build Python modules... " >&6; }
5331
5332
5333
5334 # Check whether --with-python was given.
5335 if test "${with_python+set}" = set; then
5336   withval=$with_python;
5337   case $withval in
5338     yes)
5339       :
5340       ;;
5341     no)
5342       :
5343       ;;
5344     *)
5345       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5346 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5347    { (exit 1); exit 1; }; }
5348       ;;
5349   esac
5350
5351 else
5352   with_python=no
5353
5354 fi
5355
5356
5357 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5358 $as_echo "$with_python" >&6; }
5359
5360
5361 #
5362 # GSSAPI
5363 #
5364 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5365 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5366
5367
5368
5369 # Check whether --with-gssapi was given.
5370 if test "${with_gssapi+set}" = set; then
5371   withval=$with_gssapi;
5372   case $withval in
5373     yes)
5374
5375
5376 cat >>confdefs.h <<\_ACEOF
5377 #define ENABLE_GSS 1
5378 _ACEOF
5379
5380   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5381
5382       ;;
5383     no)
5384       :
5385       ;;
5386     *)
5387       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5388 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5389    { (exit 1); exit 1; }; }
5390       ;;
5391   esac
5392
5393 else
5394   with_gssapi=no
5395
5396 fi
5397
5398
5399 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5400 $as_echo "$with_gssapi" >&6; }
5401
5402 #
5403 # Kerberos 5
5404 #
5405 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5406 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5407
5408
5409
5410 # Check whether --with-krb5 was given.
5411 if test "${with_krb5+set}" = set; then
5412   withval=$with_krb5;
5413   case $withval in
5414     yes)
5415
5416
5417 cat >>confdefs.h <<\_ACEOF
5418 #define KRB5 1
5419 _ACEOF
5420
5421   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5422
5423       ;;
5424     no)
5425       :
5426       ;;
5427     *)
5428       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5429 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5430    { (exit 1); exit 1; }; }
5431       ;;
5432   esac
5433
5434 else
5435   with_krb5=no
5436
5437 fi
5438
5439
5440 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5441 $as_echo "$with_krb5" >&6; }
5442
5443
5444
5445
5446
5447 #
5448 # Kerberos configuration parameters
5449 #
5450
5451
5452
5453 # Check whether --with-krb-srvnam was given.
5454 if test "${with_krb_srvnam+set}" = set; then
5455   withval=$with_krb_srvnam;
5456   case $withval in
5457     yes)
5458       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5459 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5460    { (exit 1); exit 1; }; }
5461       ;;
5462     no)
5463       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5464 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5465    { (exit 1); exit 1; }; }
5466       ;;
5467     *)
5468
5469       ;;
5470   esac
5471
5472 else
5473   with_krb_srvnam="postgres"
5474 fi
5475
5476
5477
5478 cat >>confdefs.h <<_ACEOF
5479 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5480 _ACEOF
5481
5482
5483
5484 #
5485 # PAM
5486 #
5487 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5488 $as_echo_n "checking whether to build with PAM support... " >&6; }
5489
5490
5491
5492 # Check whether --with-pam was given.
5493 if test "${with_pam+set}" = set; then
5494   withval=$with_pam;
5495   case $withval in
5496     yes)
5497
5498 cat >>confdefs.h <<\_ACEOF
5499 #define USE_PAM 1
5500 _ACEOF
5501
5502       ;;
5503     no)
5504       :
5505       ;;
5506     *)
5507       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5508 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5509    { (exit 1); exit 1; }; }
5510       ;;
5511   esac
5512
5513 else
5514   with_pam=no
5515
5516 fi
5517
5518
5519 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5520 $as_echo "$with_pam" >&6; }
5521
5522
5523 #
5524 # LDAP
5525 #
5526 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5527 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5528
5529
5530
5531 # Check whether --with-ldap was given.
5532 if test "${with_ldap+set}" = set; then
5533   withval=$with_ldap;
5534   case $withval in
5535     yes)
5536
5537 cat >>confdefs.h <<\_ACEOF
5538 #define USE_LDAP 1
5539 _ACEOF
5540
5541       ;;
5542     no)
5543       :
5544       ;;
5545     *)
5546       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5547 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5548    { (exit 1); exit 1; }; }
5549       ;;
5550   esac
5551
5552 else
5553   with_ldap=no
5554
5555 fi
5556
5557
5558 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5559 $as_echo "$with_ldap" >&6; }
5560
5561
5562 #
5563 # Bonjour
5564 #
5565 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5566 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5567
5568
5569
5570 # Check whether --with-bonjour was given.
5571 if test "${with_bonjour+set}" = set; then
5572   withval=$with_bonjour;
5573   case $withval in
5574     yes)
5575
5576 cat >>confdefs.h <<\_ACEOF
5577 #define USE_BONJOUR 1
5578 _ACEOF
5579
5580       ;;
5581     no)
5582       :
5583       ;;
5584     *)
5585       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5586 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5587    { (exit 1); exit 1; }; }
5588       ;;
5589   esac
5590
5591 else
5592   with_bonjour=no
5593
5594 fi
5595
5596
5597 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5598 $as_echo "$with_bonjour" >&6; }
5599
5600
5601 #
5602 # OpenSSL
5603 #
5604 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5605 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5606
5607
5608
5609 # Check whether --with-openssl was given.
5610 if test "${with_openssl+set}" = set; then
5611   withval=$with_openssl;
5612   case $withval in
5613     yes)
5614
5615 cat >>confdefs.h <<\_ACEOF
5616 #define USE_SSL 1
5617 _ACEOF
5618
5619       ;;
5620     no)
5621       :
5622       ;;
5623     *)
5624       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5625 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5626    { (exit 1); exit 1; }; }
5627       ;;
5628   esac
5629
5630 else
5631   with_openssl=no
5632
5633 fi
5634
5635
5636 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5637 $as_echo "$with_openssl" >&6; }
5638
5639
5640 #
5641 # SELinux
5642 #
5643 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5644 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5645
5646
5647
5648 # Check whether --with-selinux was given.
5649 if test "${with_selinux+set}" = set; then
5650   withval=$with_selinux;
5651   case $withval in
5652     yes)
5653       :
5654       ;;
5655     no)
5656       :
5657       ;;
5658     *)
5659       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5660 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5661    { (exit 1); exit 1; }; }
5662       ;;
5663   esac
5664
5665 else
5666   with_selinux=no
5667
5668 fi
5669
5670
5671
5672 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5673 $as_echo "$with_selinux" >&6; }
5674
5675 #
5676 # Readline
5677 #
5678
5679
5680
5681 # Check whether --with-readline was given.
5682 if test "${with_readline+set}" = set; then
5683   withval=$with_readline;
5684   case $withval in
5685     yes)
5686       :
5687       ;;
5688     no)
5689       :
5690       ;;
5691     *)
5692       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5693 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5694    { (exit 1); exit 1; }; }
5695       ;;
5696   esac
5697
5698 else
5699   with_readline=yes
5700
5701 fi
5702
5703
5704 # readline on MinGW has problems with backslashes in psql and other bugs.
5705 # This is particularly a problem with non-US code pages.
5706 # Therefore disable its use until we understand the cause. 2004-07-20
5707 if test "$PORTNAME" = "win32"; then
5708   if test "$with_readline" = yes; then
5709     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5710 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5711     with_readline=no
5712   fi
5713 fi
5714
5715
5716 #
5717 # Prefer libedit
5718 #
5719
5720
5721
5722 # Check whether --with-libedit-preferred was given.
5723 if test "${with_libedit_preferred+set}" = set; then
5724   withval=$with_libedit_preferred;
5725   case $withval in
5726     yes)
5727       :
5728       ;;
5729     no)
5730       :
5731       ;;
5732     *)
5733       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5734 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5735    { (exit 1); exit 1; }; }
5736       ;;
5737   esac
5738
5739 else
5740   with_libedit_preferred=no
5741
5742 fi
5743
5744
5745
5746
5747 #
5748 # OSSP UUID library
5749 #
5750
5751
5752
5753 # Check whether --with-ossp-uuid was given.
5754 if test "${with_ossp_uuid+set}" = set; then
5755   withval=$with_ossp_uuid;
5756   case $withval in
5757     yes)
5758       :
5759       ;;
5760     no)
5761       :
5762       ;;
5763     *)
5764       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5765 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5766    { (exit 1); exit 1; }; }
5767       ;;
5768   esac
5769
5770 else
5771   with_ossp_uuid=no
5772
5773 fi
5774
5775
5776
5777
5778
5779 #
5780 # XML
5781 #
5782
5783
5784
5785 # Check whether --with-libxml was given.
5786 if test "${with_libxml+set}" = set; then
5787   withval=$with_libxml;
5788   case $withval in
5789     yes)
5790
5791 cat >>confdefs.h <<\_ACEOF
5792 #define USE_LIBXML 1
5793 _ACEOF
5794
5795       ;;
5796     no)
5797       :
5798       ;;
5799     *)
5800       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5801 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5802    { (exit 1); exit 1; }; }
5803       ;;
5804   esac
5805
5806 else
5807   with_libxml=no
5808
5809 fi
5810
5811
5812
5813 if test "$with_libxml" = yes ; then
5814   for ac_prog in xml2-config
5815 do
5816   # Extract the first word of "$ac_prog", so it can be a program name with args.
5817 set dummy $ac_prog; ac_word=$2
5818 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5821   $as_echo_n "(cached) " >&6
5822 else
5823   if test -n "$XML2_CONFIG"; then
5824   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5828 do
5829   IFS=$as_save_IFS
5830   test -z "$as_dir" && as_dir=.
5831   for ac_exec_ext in '' $ac_executable_extensions; do
5832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833     ac_cv_prog_XML2_CONFIG="$ac_prog"
5834     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835     break 2
5836   fi
5837 done
5838 done
5839 IFS=$as_save_IFS
5840
5841 fi
5842 fi
5843 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5844 if test -n "$XML2_CONFIG"; then
5845   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5846 $as_echo "$XML2_CONFIG" >&6; }
5847 else
5848   { $as_echo "$as_me:$LINENO: result: no" >&5
5849 $as_echo "no" >&6; }
5850 fi
5851
5852
5853   test -n "$XML2_CONFIG" && break
5854 done
5855
5856   if test -n "$XML2_CONFIG"; then
5857     for pgac_option in `$XML2_CONFIG --cflags`; do
5858       case $pgac_option in
5859         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5860       esac
5861     done
5862     for pgac_option in `$XML2_CONFIG --libs`; do
5863       case $pgac_option in
5864         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5865       esac
5866     done
5867   fi
5868 fi
5869
5870
5871
5872 #
5873 # XSLT
5874 #
5875
5876
5877
5878 # Check whether --with-libxslt was given.
5879 if test "${with_libxslt+set}" = set; then
5880   withval=$with_libxslt;
5881   case $withval in
5882     yes)
5883
5884 cat >>confdefs.h <<\_ACEOF
5885 #define USE_LIBXSLT 1
5886 _ACEOF
5887
5888       ;;
5889     no)
5890       :
5891       ;;
5892     *)
5893       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5894 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5895    { (exit 1); exit 1; }; }
5896       ;;
5897   esac
5898
5899 else
5900   with_libxslt=no
5901
5902 fi
5903
5904
5905
5906
5907
5908
5909 #
5910 # tzdata
5911 #
5912
5913
5914
5915 # Check whether --with-system-tzdata was given.
5916 if test "${with_system_tzdata+set}" = set; then
5917   withval=$with_system_tzdata;
5918   case $withval in
5919     yes)
5920       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5921 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5922    { (exit 1); exit 1; }; }
5923       ;;
5924     no)
5925       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5926 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5927    { (exit 1); exit 1; }; }
5928       ;;
5929     *)
5930
5931       ;;
5932   esac
5933
5934 fi
5935
5936
5937
5938
5939 #
5940 # Zlib
5941 #
5942
5943
5944
5945 # Check whether --with-zlib was given.
5946 if test "${with_zlib+set}" = set; then
5947   withval=$with_zlib;
5948   case $withval in
5949     yes)
5950       :
5951       ;;
5952     no)
5953       :
5954       ;;
5955     *)
5956       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5957 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5958    { (exit 1); exit 1; }; }
5959       ;;
5960   esac
5961
5962 else
5963   with_zlib=yes
5964
5965 fi
5966
5967
5968
5969
5970 #
5971 # Elf
5972 #
5973
5974 # Assume system is ELF if it predefines __ELF__ as 1,
5975 # otherwise believe host_os based default.
5976 case $host_os in
5977     freebsd1*|freebsd2*) elf=no;;
5978     freebsd3*|freebsd4*) elf=yes;;
5979 esac
5980
5981
5982 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5983 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5984 if test "${ac_cv_path_GREP+set}" = set; then
5985   $as_echo_n "(cached) " >&6
5986 else
5987   if test -z "$GREP"; then
5988   ac_path_GREP_found=false
5989   # Loop through the user's path and test for each of PROGNAME-LIST
5990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995   for ac_prog in grep ggrep; do
5996     for ac_exec_ext in '' $ac_executable_extensions; do
5997       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5998       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5999 # Check for GNU ac_path_GREP and select it if it is found.
6000   # Check for GNU $ac_path_GREP
6001 case `"$ac_path_GREP" --version 2>&1` in
6002 *GNU*)
6003   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6004 *)
6005   ac_count=0
6006   $as_echo_n 0123456789 >"conftest.in"
6007   while :
6008   do
6009     cat "conftest.in" "conftest.in" >"conftest.tmp"
6010     mv "conftest.tmp" "conftest.in"
6011     cp "conftest.in" "conftest.nl"
6012     $as_echo 'GREP' >> "conftest.nl"
6013     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6014     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6015     ac_count=`expr $ac_count + 1`
6016     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6017       # Best one so far, save it but keep looking for a better one
6018       ac_cv_path_GREP="$ac_path_GREP"
6019       ac_path_GREP_max=$ac_count
6020     fi
6021     # 10*(2^10) chars as input seems more than enough
6022     test $ac_count -gt 10 && break
6023   done
6024   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6025 esac
6026
6027       $ac_path_GREP_found && break 3
6028     done
6029   done
6030 done
6031 IFS=$as_save_IFS
6032   if test -z "$ac_cv_path_GREP"; then
6033     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6034 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6035    { (exit 1); exit 1; }; }
6036   fi
6037 else
6038   ac_cv_path_GREP=$GREP
6039 fi
6040
6041 fi
6042 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6043 $as_echo "$ac_cv_path_GREP" >&6; }
6044  GREP="$ac_cv_path_GREP"
6045
6046
6047 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6048 $as_echo_n "checking for egrep... " >&6; }
6049 if test "${ac_cv_path_EGREP+set}" = set; then
6050   $as_echo_n "(cached) " >&6
6051 else
6052   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6053    then ac_cv_path_EGREP="$GREP -E"
6054    else
6055      if test -z "$EGREP"; then
6056   ac_path_EGREP_found=false
6057   # Loop through the user's path and test for each of PROGNAME-LIST
6058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063   for ac_prog in egrep; do
6064     for ac_exec_ext in '' $ac_executable_extensions; do
6065       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6066       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6067 # Check for GNU ac_path_EGREP and select it if it is found.
6068   # Check for GNU $ac_path_EGREP
6069 case `"$ac_path_EGREP" --version 2>&1` in
6070 *GNU*)
6071   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6072 *)
6073   ac_count=0
6074   $as_echo_n 0123456789 >"conftest.in"
6075   while :
6076   do
6077     cat "conftest.in" "conftest.in" >"conftest.tmp"
6078     mv "conftest.tmp" "conftest.in"
6079     cp "conftest.in" "conftest.nl"
6080     $as_echo 'EGREP' >> "conftest.nl"
6081     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6082     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6083     ac_count=`expr $ac_count + 1`
6084     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6085       # Best one so far, save it but keep looking for a better one
6086       ac_cv_path_EGREP="$ac_path_EGREP"
6087       ac_path_EGREP_max=$ac_count
6088     fi
6089     # 10*(2^10) chars as input seems more than enough
6090     test $ac_count -gt 10 && break
6091   done
6092   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6093 esac
6094
6095       $ac_path_EGREP_found && break 3
6096     done
6097   done
6098 done
6099 IFS=$as_save_IFS
6100   if test -z "$ac_cv_path_EGREP"; then
6101     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6102 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6103    { (exit 1); exit 1; }; }
6104   fi
6105 else
6106   ac_cv_path_EGREP=$EGREP
6107 fi
6108
6109    fi
6110 fi
6111 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6112 $as_echo "$ac_cv_path_EGREP" >&6; }
6113  EGREP="$ac_cv_path_EGREP"
6114
6115
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h.  */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h.  */
6122 #if __ELF__
6123   yes
6124 #endif
6125
6126 _ACEOF
6127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6128   $EGREP "yes" >/dev/null 2>&1; then
6129   ELF_SYS=true
6130 else
6131   if test "X$elf" = "Xyes" ; then
6132   ELF_SYS=true
6133 else
6134   ELF_SYS=
6135 fi
6136 fi
6137 rm -f conftest*
6138
6139
6140
6141 #
6142 # Assignments
6143 #
6144
6145 CPPFLAGS="$CPPFLAGS $INCLUDES"
6146 LDFLAGS="$LDFLAGS $LIBDIRS"
6147
6148
6149
6150
6151
6152 # Check whether --with-gnu-ld was given.
6153 if test "${with_gnu_ld+set}" = set; then
6154   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6155 else
6156   with_gnu_ld=no
6157 fi
6158
6159 ac_prog=ld
6160 if test "$GCC" = yes; then
6161   # Check if gcc -print-prog-name=ld gives a path.
6162   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6163 $as_echo_n "checking for ld used by GCC... " >&6; }
6164   case $host in
6165   *-*-mingw*)
6166     # gcc leaves a trailing carriage return which upsets mingw
6167     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6168   *)
6169     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6170   esac
6171   case "$ac_prog" in
6172     # Accept absolute paths.
6173     [\\/]* | [A-Za-z]:[\\/]*)
6174       re_direlt='/[^/][^/]*/\.\./'
6175       # Canonicalize the path of ld
6176       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6177       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6178         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6179       done
6180       test -z "$LD" && LD="$ac_prog"
6181       ;;
6182   "")
6183     # If it fails, then pretend we aren't using GCC.
6184     ac_prog=ld
6185     ;;
6186   *)
6187     # If it is relative, then search for the first ld in PATH.
6188     with_gnu_ld=unknown
6189     ;;
6190   esac
6191 elif test "$with_gnu_ld" = yes; then
6192   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6193 $as_echo_n "checking for GNU ld... " >&6; }
6194 else
6195   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6196 $as_echo_n "checking for non-GNU ld... " >&6; }
6197 fi
6198 if test "${ac_cv_path_LD+set}" = set; then
6199   $as_echo_n "(cached) " >&6
6200 else
6201   if test -z "$LD"; then
6202   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6203   for ac_dir in $PATH; do
6204     test -z "$ac_dir" && ac_dir=.
6205     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6206       ac_cv_path_LD="$ac_dir/$ac_prog"
6207       # Check to see if the program is GNU ld.  I'd rather use --version,
6208       # but apparently some GNU ld's only accept -v.
6209       # Break only if it was the GNU/non-GNU ld that we prefer.
6210       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6211         test "$with_gnu_ld" != no && break
6212       else
6213         test "$with_gnu_ld" != yes && break
6214       fi
6215     fi
6216   done
6217   IFS="$ac_save_ifs"
6218 else
6219   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6220 fi
6221 fi
6222
6223 LD="$ac_cv_path_LD"
6224 if test -n "$LD"; then
6225   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6226 $as_echo "$LD" >&6; }
6227 else
6228   { $as_echo "$as_me:$LINENO: result: no" >&5
6229 $as_echo "no" >&6; }
6230 fi
6231 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6232 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6233    { (exit 1); exit 1; }; }
6234 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6235 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6236 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6237   $as_echo_n "(cached) " >&6
6238 else
6239   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6240 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6241   ac_cv_prog_gnu_ld=yes
6242 else
6243   ac_cv_prog_gnu_ld=no
6244 fi
6245 fi
6246 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6247 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6248 with_gnu_ld=$ac_cv_prog_gnu_ld
6249
6250
6251
6252
6253 case $host_os in sysv5*)
6254   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6255 $as_echo_n "checking whether ld -R works... " >&6; }
6256 if test "${pgac_cv_prog_ld_R+set}" = set; then
6257   $as_echo_n "(cached) " >&6
6258 else
6259
6260     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6261     cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h.  */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h.  */
6267
6268 int
6269 main ()
6270 {
6271
6272   ;
6273   return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6278 case "(($ac_try" in
6279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280   *) ac_try_echo=$ac_try;;
6281 esac
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284   (eval "$ac_link") 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } && {
6291          test -z "$ac_c_werror_flag" ||
6292          test ! -s conftest.err
6293        } && test -s conftest$ac_exeext && {
6294          test "$cross_compiling" = yes ||
6295          $as_test_x conftest$ac_exeext
6296        }; then
6297   pgac_cv_prog_ld_R=yes
6298 else
6299   $as_echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302         pgac_cv_prog_ld_R=no
6303 fi
6304
6305 rm -rf conftest.dSYM
6306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6307       conftest$ac_exeext conftest.$ac_ext
6308     LDFLAGS=$pgac_save_LDFLAGS
6309
6310 fi
6311 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6312 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6313   ld_R_works=$pgac_cv_prog_ld_R
6314
6315 esac
6316 if test -n "$ac_tool_prefix"; then
6317   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6318 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if test "${ac_cv_prog_RANLIB+set}" = set; then
6322   $as_echo_n "(cached) " >&6
6323 else
6324   if test -n "$RANLIB"; then
6325   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330   IFS=$as_save_IFS
6331   test -z "$as_dir" && as_dir=.
6332   for ac_exec_ext in '' $ac_executable_extensions; do
6333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6335     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336     break 2
6337   fi
6338 done
6339 done
6340 IFS=$as_save_IFS
6341
6342 fi
6343 fi
6344 RANLIB=$ac_cv_prog_RANLIB
6345 if test -n "$RANLIB"; then
6346   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6347 $as_echo "$RANLIB" >&6; }
6348 else
6349   { $as_echo "$as_me:$LINENO: result: no" >&5
6350 $as_echo "no" >&6; }
6351 fi
6352
6353
6354 fi
6355 if test -z "$ac_cv_prog_RANLIB"; then
6356   ac_ct_RANLIB=$RANLIB
6357   # Extract the first word of "ranlib", so it can be a program name with args.
6358 set dummy ranlib; ac_word=$2
6359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6362   $as_echo_n "(cached) " >&6
6363 else
6364   if test -n "$ac_ct_RANLIB"; then
6365   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370   IFS=$as_save_IFS
6371   test -z "$as_dir" && as_dir=.
6372   for ac_exec_ext in '' $ac_executable_extensions; do
6373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374     ac_cv_prog_ac_ct_RANLIB="ranlib"
6375     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376     break 2
6377   fi
6378 done
6379 done
6380 IFS=$as_save_IFS
6381
6382 fi
6383 fi
6384 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6385 if test -n "$ac_ct_RANLIB"; then
6386   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6387 $as_echo "$ac_ct_RANLIB" >&6; }
6388 else
6389   { $as_echo "$as_me:$LINENO: result: no" >&5
6390 $as_echo "no" >&6; }
6391 fi
6392
6393   if test "x$ac_ct_RANLIB" = x; then
6394     RANLIB=":"
6395   else
6396     case $cross_compiling:$ac_tool_warned in
6397 yes:)
6398 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6400 ac_tool_warned=yes ;;
6401 esac
6402     RANLIB=$ac_ct_RANLIB
6403   fi
6404 else
6405   RANLIB="$ac_cv_prog_RANLIB"
6406 fi
6407
6408
6409   if test -n "$ac_tool_prefix"; then
6410   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6411 set dummy ${ac_tool_prefix}strip; ac_word=$2
6412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if test "${ac_cv_prog_STRIP+set}" = set; then
6415   $as_echo_n "(cached) " >&6
6416 else
6417   if test -n "$STRIP"; then
6418   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423   IFS=$as_save_IFS
6424   test -z "$as_dir" && as_dir=.
6425   for ac_exec_ext in '' $ac_executable_extensions; do
6426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6427     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6428     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429     break 2
6430   fi
6431 done
6432 done
6433 IFS=$as_save_IFS
6434
6435 fi
6436 fi
6437 STRIP=$ac_cv_prog_STRIP
6438 if test -n "$STRIP"; then
6439   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6440 $as_echo "$STRIP" >&6; }
6441 else
6442   { $as_echo "$as_me:$LINENO: result: no" >&5
6443 $as_echo "no" >&6; }
6444 fi
6445
6446
6447 fi
6448 if test -z "$ac_cv_prog_STRIP"; then
6449   ac_ct_STRIP=$STRIP
6450   # Extract the first word of "strip", so it can be a program name with args.
6451 set dummy strip; ac_word=$2
6452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6455   $as_echo_n "(cached) " >&6
6456 else
6457   if test -n "$ac_ct_STRIP"; then
6458   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6459 else
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
6463   IFS=$as_save_IFS
6464   test -z "$as_dir" && as_dir=.
6465   for ac_exec_ext in '' $ac_executable_extensions; do
6466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6467     ac_cv_prog_ac_ct_STRIP="strip"
6468     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469     break 2
6470   fi
6471 done
6472 done
6473 IFS=$as_save_IFS
6474
6475 fi
6476 fi
6477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6478 if test -n "$ac_ct_STRIP"; then
6479   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6480 $as_echo "$ac_ct_STRIP" >&6; }
6481 else
6482   { $as_echo "$as_me:$LINENO: result: no" >&5
6483 $as_echo "no" >&6; }
6484 fi
6485
6486   if test "x$ac_ct_STRIP" = x; then
6487     STRIP=":"
6488   else
6489     case $cross_compiling:$ac_tool_warned in
6490 yes:)
6491 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6493 ac_tool_warned=yes ;;
6494 esac
6495     STRIP=$ac_ct_STRIP
6496   fi
6497 else
6498   STRIP="$ac_cv_prog_STRIP"
6499 fi
6500
6501
6502   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6503 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6504   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6505     STRIP_STATIC_LIB="$STRIP -x"
6506     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6507     { $as_echo "$as_me:$LINENO: result: yes" >&5
6508 $as_echo "yes" >&6; }
6509   else
6510     case $host_os in
6511       darwin*)
6512         STRIP="$STRIP -x"
6513         STRIP_STATIC_LIB=$STRIP
6514         STRIP_SHARED_LIB=$STRIP
6515         { $as_echo "$as_me:$LINENO: result: yes" >&5
6516 $as_echo "yes" >&6; }
6517         ;;
6518       *)
6519         STRIP_STATIC_LIB=:
6520         STRIP_SHARED_LIB=:
6521         { $as_echo "$as_me:$LINENO: result: no" >&5
6522 $as_echo "no" >&6; }
6523         ;;
6524     esac
6525   fi
6526
6527
6528
6529 if test -n "$ac_tool_prefix"; then
6530   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}ar; ac_word=$2
6532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_AR+set}" = set; then
6535   $as_echo_n "(cached) " >&6
6536 else
6537   if test -n "$AR"; then
6538   ac_cv_prog_AR="$AR" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545   for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_prog_AR="${ac_tool_prefix}ar"
6548     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 AR=$ac_cv_prog_AR
6558 if test -n "$AR"; then
6559   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6560 $as_echo "$AR" >&6; }
6561 else
6562   { $as_echo "$as_me:$LINENO: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_AR"; then
6569   ac_ct_AR=$AR
6570   # Extract the first word of "ar", so it can be a program name with args.
6571 set dummy ar; ac_word=$2
6572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6575   $as_echo_n "(cached) " >&6
6576 else
6577   if test -n "$ac_ct_AR"; then
6578   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585   for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_AR="ar"
6588     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6598 if test -n "$ac_ct_AR"; then
6599   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6600 $as_echo "$ac_ct_AR" >&6; }
6601 else
6602   { $as_echo "$as_me:$LINENO: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606   if test "x$ac_ct_AR" = x; then
6607     AR="ar"
6608   else
6609     case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615     AR=$ac_ct_AR
6616   fi
6617 else
6618   AR="$ac_cv_prog_AR"
6619 fi
6620
6621 if test "$PORTNAME" = "win32"; then
6622   if test -n "$ac_tool_prefix"; then
6623   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6628   $as_echo_n "(cached) " >&6
6629 else
6630   if test -n "$DLLTOOL"; then
6631   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636   IFS=$as_save_IFS
6637   test -z "$as_dir" && as_dir=.
6638   for ac_exec_ext in '' $ac_executable_extensions; do
6639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6641     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642     break 2
6643   fi
6644 done
6645 done
6646 IFS=$as_save_IFS
6647
6648 fi
6649 fi
6650 DLLTOOL=$ac_cv_prog_DLLTOOL
6651 if test -n "$DLLTOOL"; then
6652   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6653 $as_echo "$DLLTOOL" >&6; }
6654 else
6655   { $as_echo "$as_me:$LINENO: result: no" >&5
6656 $as_echo "no" >&6; }
6657 fi
6658
6659
6660 fi
6661 if test -z "$ac_cv_prog_DLLTOOL"; then
6662   ac_ct_DLLTOOL=$DLLTOOL
6663   # Extract the first word of "dlltool", so it can be a program name with args.
6664 set dummy dlltool; ac_word=$2
6665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6668   $as_echo_n "(cached) " >&6
6669 else
6670   if test -n "$ac_ct_DLLTOOL"; then
6671   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678   for ac_exec_ext in '' $ac_executable_extensions; do
6679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6681     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6691 if test -n "$ac_ct_DLLTOOL"; then
6692   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6693 $as_echo "$ac_ct_DLLTOOL" >&6; }
6694 else
6695   { $as_echo "$as_me:$LINENO: result: no" >&5
6696 $as_echo "no" >&6; }
6697 fi
6698
6699   if test "x$ac_ct_DLLTOOL" = x; then
6700     DLLTOOL="dlltool"
6701   else
6702     case $cross_compiling:$ac_tool_warned in
6703 yes:)
6704 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706 ac_tool_warned=yes ;;
6707 esac
6708     DLLTOOL=$ac_ct_DLLTOOL
6709   fi
6710 else
6711   DLLTOOL="$ac_cv_prog_DLLTOOL"
6712 fi
6713
6714   if test -n "$ac_tool_prefix"; then
6715   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6716 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6717 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6720   $as_echo_n "(cached) " >&6
6721 else
6722   if test -n "$DLLWRAP"; then
6723   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   test -z "$as_dir" && as_dir=.
6730   for ac_exec_ext in '' $ac_executable_extensions; do
6731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6733     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 DLLWRAP=$ac_cv_prog_DLLWRAP
6743 if test -n "$DLLWRAP"; then
6744   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6745 $as_echo "$DLLWRAP" >&6; }
6746 else
6747   { $as_echo "$as_me:$LINENO: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750
6751
6752 fi
6753 if test -z "$ac_cv_prog_DLLWRAP"; then
6754   ac_ct_DLLWRAP=$DLLWRAP
6755   # Extract the first word of "dllwrap", so it can be a program name with args.
6756 set dummy dllwrap; ac_word=$2
6757 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6760   $as_echo_n "(cached) " >&6
6761 else
6762   if test -n "$ac_ct_DLLWRAP"; then
6763   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768   IFS=$as_save_IFS
6769   test -z "$as_dir" && as_dir=.
6770   for ac_exec_ext in '' $ac_executable_extensions; do
6771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6773     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774     break 2
6775   fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6783 if test -n "$ac_ct_DLLWRAP"; then
6784   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6785 $as_echo "$ac_ct_DLLWRAP" >&6; }
6786 else
6787   { $as_echo "$as_me:$LINENO: result: no" >&5
6788 $as_echo "no" >&6; }
6789 fi
6790
6791   if test "x$ac_ct_DLLWRAP" = x; then
6792     DLLWRAP="dllwrap"
6793   else
6794     case $cross_compiling:$ac_tool_warned in
6795 yes:)
6796 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798 ac_tool_warned=yes ;;
6799 esac
6800     DLLWRAP=$ac_ct_DLLWRAP
6801   fi
6802 else
6803   DLLWRAP="$ac_cv_prog_DLLWRAP"
6804 fi
6805
6806   if test -n "$ac_tool_prefix"; then
6807   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}windres; ac_word=$2
6809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if test "${ac_cv_prog_WINDRES+set}" = set; then
6812   $as_echo_n "(cached) " >&6
6813 else
6814   if test -n "$WINDRES"; then
6815   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822   for ac_exec_ext in '' $ac_executable_extensions; do
6823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6825     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826     break 2
6827   fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 WINDRES=$ac_cv_prog_WINDRES
6835 if test -n "$WINDRES"; then
6836   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6837 $as_echo "$WINDRES" >&6; }
6838 else
6839   { $as_echo "$as_me:$LINENO: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843
6844 fi
6845 if test -z "$ac_cv_prog_WINDRES"; then
6846   ac_ct_WINDRES=$WINDRES
6847   # Extract the first word of "windres", so it can be a program name with args.
6848 set dummy windres; ac_word=$2
6849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6852   $as_echo_n "(cached) " >&6
6853 else
6854   if test -n "$ac_ct_WINDRES"; then
6855   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860   IFS=$as_save_IFS
6861   test -z "$as_dir" && as_dir=.
6862   for ac_exec_ext in '' $ac_executable_extensions; do
6863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864     ac_cv_prog_ac_ct_WINDRES="windres"
6865     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866     break 2
6867   fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6875 if test -n "$ac_ct_WINDRES"; then
6876   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6877 $as_echo "$ac_ct_WINDRES" >&6; }
6878 else
6879   { $as_echo "$as_me:$LINENO: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883   if test "x$ac_ct_WINDRES" = x; then
6884     WINDRES="windres"
6885   else
6886     case $cross_compiling:$ac_tool_warned in
6887 yes:)
6888 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6891 esac
6892     WINDRES=$ac_ct_WINDRES
6893   fi
6894 else
6895   WINDRES="$ac_cv_prog_WINDRES"
6896 fi
6897
6898 fi
6899
6900 # Find a good install program.  We prefer a C program (faster),
6901 # so one script is as good as another.  But avoid the broken or
6902 # incompatible versions:
6903 # SysV /etc/install, /usr/sbin/install
6904 # SunOS /usr/etc/install
6905 # IRIX /sbin/install
6906 # AIX /bin/install
6907 # AmigaOS /C/install, which installs bootblocks on floppy discs
6908 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6909 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6910 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6911 # OS/2's system install, which has a completely different semantic
6912 # ./install, which can be erroneously created by make from ./install.sh.
6913 # Reject install programs that cannot install multiple files.
6914 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6915 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6916 if test -z "$INSTALL"; then
6917 if test "${ac_cv_path_install+set}" = set; then
6918   $as_echo_n "(cached) " >&6
6919 else
6920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923   IFS=$as_save_IFS
6924   test -z "$as_dir" && as_dir=.
6925   # Account for people who put trailing slashes in PATH elements.
6926 case $as_dir/ in
6927   ./ | .// | /cC/* | \
6928   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6929   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6930   /usr/ucb/* ) ;;
6931   *)
6932     # OSF1 and SCO ODT 3.0 have their own names for install.
6933     # Don't use installbsd from OSF since it installs stuff as root
6934     # by default.
6935     for ac_prog in ginstall scoinst install; do
6936       for ac_exec_ext in '' $ac_executable_extensions; do
6937         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6938           if test $ac_prog = install &&
6939             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6940             # AIX install.  It has an incompatible calling convention.
6941             :
6942           elif test $ac_prog = install &&
6943             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6944             # program-specific install script used by HP pwplus--don't use.
6945             :
6946           else
6947             rm -rf conftest.one conftest.two conftest.dir
6948             echo one > conftest.one
6949             echo two > conftest.two
6950             mkdir conftest.dir
6951             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6952               test -s conftest.one && test -s conftest.two &&
6953               test -s conftest.dir/conftest.one &&
6954               test -s conftest.dir/conftest.two
6955             then
6956               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6957               break 3
6958             fi
6959           fi
6960         fi
6961       done
6962     done
6963     ;;
6964 esac
6965
6966 done
6967 IFS=$as_save_IFS
6968
6969 rm -rf conftest.one conftest.two conftest.dir
6970
6971 fi
6972   if test "${ac_cv_path_install+set}" = set; then
6973     INSTALL=$ac_cv_path_install
6974   else
6975     # As a last resort, use the slow shell script.  Don't cache a
6976     # value for INSTALL within a source directory, because that will
6977     # break other packages using the cache if that directory is
6978     # removed, or if the value is a relative name.
6979     INSTALL=$ac_install_sh
6980   fi
6981 fi
6982 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6983 $as_echo "$INSTALL" >&6; }
6984
6985 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6986 # It thinks the first close brace ends the variable substitution.
6987 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6988
6989 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6990
6991 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6992
6993 # When Autoconf chooses install-sh as install program it tries to generate
6994 # a relative path to it in each makefile where it subsitutes it. This clashes
6995 # with our Makefile.global concept. This workaround helps.
6996 case $INSTALL in
6997   *install-sh*) install_bin='';;
6998   *) install_bin=$INSTALL;;
6999 esac
7000
7001
7002 # Extract the first word of "tar", so it can be a program name with args.
7003 set dummy tar; ac_word=$2
7004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if test "${ac_cv_path_TAR+set}" = set; then
7007   $as_echo_n "(cached) " >&6
7008 else
7009   case $TAR in
7010   [\\/]* | ?:[\\/]*)
7011   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7012   ;;
7013   *)
7014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019   for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7022     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029   ;;
7030 esac
7031 fi
7032 TAR=$ac_cv_path_TAR
7033 if test -n "$TAR"; then
7034   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
7035 $as_echo "$TAR" >&6; }
7036 else
7037   { $as_echo "$as_me:$LINENO: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7043 $as_echo_n "checking whether ln -s works... " >&6; }
7044 LN_S=$as_ln_s
7045 if test "$LN_S" = "ln -s"; then
7046   { $as_echo "$as_me:$LINENO: result: yes" >&5
7047 $as_echo "yes" >&6; }
7048 else
7049   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7050 $as_echo "no, using $LN_S" >&6; }
7051 fi
7052
7053 for ac_prog in gawk mawk nawk awk
7054 do
7055   # Extract the first word of "$ac_prog", so it can be a program name with args.
7056 set dummy $ac_prog; ac_word=$2
7057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if test "${ac_cv_prog_AWK+set}" = set; then
7060   $as_echo_n "(cached) " >&6
7061 else
7062   if test -n "$AWK"; then
7063   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068   IFS=$as_save_IFS
7069   test -z "$as_dir" && as_dir=.
7070   for ac_exec_ext in '' $ac_executable_extensions; do
7071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7072     ac_cv_prog_AWK="$ac_prog"
7073     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075   fi
7076 done
7077 done
7078 IFS=$as_save_IFS
7079
7080 fi
7081 fi
7082 AWK=$ac_cv_prog_AWK
7083 if test -n "$AWK"; then
7084   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7085 $as_echo "$AWK" >&6; }
7086 else
7087   { $as_echo "$as_me:$LINENO: result: no" >&5
7088 $as_echo "no" >&6; }
7089 fi
7090
7091
7092   test -n "$AWK" && break
7093 done
7094
7095 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7096 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7097 if test -z "$MKDIR_P"; then
7098   if test "${ac_cv_path_mkdir+set}" = set; then
7099   $as_echo_n "(cached) " >&6
7100 else
7101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7103 do
7104   IFS=$as_save_IFS
7105   test -z "$as_dir" && as_dir=.
7106   for ac_prog in mkdir gmkdir; do
7107          for ac_exec_ext in '' $ac_executable_extensions; do
7108            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7109            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7110              'mkdir (GNU coreutils) '* | \
7111              'mkdir (coreutils) '* | \
7112              'mkdir (fileutils) '4.1*)
7113                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7114                break 3;;
7115            esac
7116          done
7117        done
7118 done
7119 IFS=$as_save_IFS
7120
7121 fi
7122
7123   if test "${ac_cv_path_mkdir+set}" = set; then
7124     MKDIR_P="$ac_cv_path_mkdir -p"
7125   else
7126     # As a last resort, use the slow shell script.  Don't cache a
7127     # value for MKDIR_P within a source directory, because that will
7128     # break other packages using the cache if that directory is
7129     # removed, or if the value is a relative name.
7130     test -d ./--version && rmdir ./--version
7131     MKDIR_P="$ac_install_sh -d"
7132   fi
7133 fi
7134 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7135 $as_echo "$MKDIR_P" >&6; }
7136
7137 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7138 # a relative path to it in each makefile where it subsitutes it. This clashes
7139 # with our Makefile.global concept. This workaround helps.
7140 case $MKDIR_P in
7141   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7142 esac
7143
7144 # Let the user override the search
7145 if test -z "$BISON"; then
7146   for ac_prog in bison
7147 do
7148   # Extract the first word of "$ac_prog", so it can be a program name with args.
7149 set dummy $ac_prog; ac_word=$2
7150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_path_BISON+set}" = set; then
7153   $as_echo_n "(cached) " >&6
7154 else
7155   case $BISON in
7156   [\\/]* | ?:[\\/]*)
7157   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7158   ;;
7159   *)
7160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165   for ac_exec_ext in '' $ac_executable_extensions; do
7166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7168     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175   ;;
7176 esac
7177 fi
7178 BISON=$ac_cv_path_BISON
7179 if test -n "$BISON"; then
7180   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7181 $as_echo "$BISON" >&6; }
7182 else
7183   { $as_echo "$as_me:$LINENO: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187
7188   test -n "$BISON" && break
7189 done
7190
7191 fi
7192
7193 if test "$BISON"; then
7194   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7195   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7196 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7197   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7198   then
7199     { $as_echo "$as_me:$LINENO: WARNING:
7200 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7201 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7202 $as_echo "$as_me: WARNING:
7203 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7204 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7205     BISON=""
7206   fi
7207 fi
7208
7209 if test -z "$BISON"; then
7210   { $as_echo "$as_me:$LINENO: WARNING:
7211 *** Without Bison you will not be able to build PostgreSQL from Git nor
7212 *** change any of the parser definition files.  You can obtain Bison from
7213 *** a GNU mirror site.  (If you are using the official distribution of
7214 *** PostgreSQL then you do not need to worry about this, because the Bison
7215 *** output is pre-generated.)" >&5
7216 $as_echo "$as_me: WARNING:
7217 *** Without Bison you will not be able to build PostgreSQL from Git nor
7218 *** change any of the parser definition files.  You can obtain Bison from
7219 *** a GNU mirror site.  (If you are using the official distribution of
7220 *** PostgreSQL then you do not need to worry about this, because the Bison
7221 *** output is pre-generated.)" >&2;}
7222 fi
7223 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7224
7225
7226 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7227 $as_echo_n "checking for flex... " >&6; }
7228 if test "${pgac_cv_path_flex+set}" = set; then
7229   $as_echo_n "(cached) " >&6
7230 else
7231   # Let the user override the test
7232 if test -n "$FLEX"; then
7233   pgac_cv_path_flex=$FLEX
7234 else
7235   pgac_save_IFS=$IFS
7236   IFS=$PATH_SEPARATOR
7237   for pgac_dir in $PATH; do
7238     IFS=$pgac_save_IFS
7239     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7240       pgac_dir=`pwd`
7241     fi
7242     for pgac_prog in flex lex; do
7243       pgac_candidate="$pgac_dir/$pgac_prog"
7244       if test -f "$pgac_candidate" \
7245         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7246       then
7247         echo '%%'  > conftest.l
7248         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7249           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7250           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7251           then
7252             pgac_cv_path_flex=$pgac_candidate
7253             break 2
7254           else
7255             { $as_echo "$as_me:$LINENO: WARNING:
7256 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7257 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7258 $as_echo "$as_me: WARNING:
7259 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7260 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7261           fi
7262         fi
7263       fi
7264     done
7265   done
7266   rm -f conftest.l lex.yy.c
7267   : ${pgac_cv_path_flex=no}
7268 fi
7269
7270 fi
7271 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7272 $as_echo "$pgac_cv_path_flex" >&6; }
7273 if test x"$pgac_cv_path_flex" = x"no"; then
7274   { $as_echo "$as_me:$LINENO: WARNING:
7275 *** Without Flex you will not be able to build PostgreSQL from Git nor
7276 *** change any of the scanner definition files.  You can obtain Flex from
7277 *** a GNU mirror site.  (If you are using the official distribution of
7278 *** PostgreSQL then you do not need to worry about this because the Flex
7279 *** output is pre-generated.)" >&5
7280 $as_echo "$as_me: WARNING:
7281 *** Without Flex you will not be able to build PostgreSQL from Git nor
7282 *** change any of the scanner definition files.  You can obtain Flex from
7283 *** a GNU mirror site.  (If you are using the official distribution of
7284 *** PostgreSQL then you do not need to worry about this because the Flex
7285 *** output is pre-generated.)" >&2;}
7286
7287   FLEX=
7288 else
7289   FLEX=$pgac_cv_path_flex
7290   pgac_flex_version=`$FLEX --version 2>/dev/null`
7291   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7292 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7293 fi
7294
7295
7296
7297
7298
7299 # Let the user override the search
7300 if test -z "$PERL"; then
7301   # Extract the first word of "perl", so it can be a program name with args.
7302 set dummy perl; ac_word=$2
7303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_path_PERL+set}" = set; then
7306   $as_echo_n "(cached) " >&6
7307 else
7308   case $PERL in
7309   [\\/]* | ?:[\\/]*)
7310   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7311   ;;
7312   *)
7313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7321     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328   ;;
7329 esac
7330 fi
7331 PERL=$ac_cv_path_PERL
7332 if test -n "$PERL"; then
7333   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7334 $as_echo "$PERL" >&6; }
7335 else
7336   { $as_echo "$as_me:$LINENO: result: no" >&5
7337 $as_echo "no" >&6; }
7338 fi
7339
7340
7341 fi
7342
7343 if test "$PERL"; then
7344   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'`
7345   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7346 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7347   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7348     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7349   then
7350     { $as_echo "$as_me:$LINENO: WARNING:
7351 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7352 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7353 $as_echo "$as_me: WARNING:
7354 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7355 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7356     PERL=""
7357   fi
7358 fi
7359
7360 if test -z "$PERL"; then
7361   { $as_echo "$as_me:$LINENO: WARNING:
7362 *** Without Perl you will not be able to build PostgreSQL from Git.
7363 *** You can obtain Perl from any CPAN mirror site.
7364 *** (If you are using the official distribution of PostgreSQL then you do not
7365 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7366 $as_echo "$as_me: WARNING:
7367 *** Without Perl you will not be able to build PostgreSQL from Git.
7368 *** You can obtain Perl from any CPAN mirror site.
7369 *** (If you are using the official distribution of PostgreSQL then you do not
7370 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7371 fi
7372
7373 if test "$with_perl" = yes; then
7374   if test -z "$PERL"; then
7375     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7376 $as_echo "$as_me: error: Perl not found" >&2;}
7377    { (exit 1); exit 1; }; }
7378   fi
7379
7380 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7381 $as_echo_n "checking for Perl archlibexp... " >&6; }
7382 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7383 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7384 $as_echo "$perl_archlibexp" >&6; }
7385 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7386 $as_echo_n "checking for Perl privlibexp... " >&6; }
7387 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7388 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7389 $as_echo "$perl_privlibexp" >&6; }
7390 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7391 $as_echo_n "checking for Perl useshrplib... " >&6; }
7392 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7393 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7394 $as_echo "$perl_useshrplib" >&6; }
7395
7396 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7397 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7398 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7399 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7400 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7401 if test -z "$perl_embed_ldflags" ; then
7402         { $as_echo "$as_me:$LINENO: result: no" >&5
7403 $as_echo "no" >&6; }
7404         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7405 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7406 installed." >&5
7407 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7408 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7409 installed." >&2;}
7410    { (exit 1); exit 1; }; }
7411 else
7412         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7413 $as_echo "$perl_embed_ldflags" >&6; }
7414 fi
7415
7416 fi
7417
7418 if test "$with_python" = yes; then
7419   # Extract the first word of "python", so it can be a program name with args.
7420 set dummy python; ac_word=$2
7421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if test "${ac_cv_path_PYTHON+set}" = set; then
7424   $as_echo_n "(cached) " >&6
7425 else
7426   case $PYTHON in
7427   [\\/]* | ?:[\\/]*)
7428   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7429   ;;
7430   *)
7431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434   IFS=$as_save_IFS
7435   test -z "$as_dir" && as_dir=.
7436   for ac_exec_ext in '' $ac_executable_extensions; do
7437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7439     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440     break 2
7441   fi
7442 done
7443 done
7444 IFS=$as_save_IFS
7445
7446   ;;
7447 esac
7448 fi
7449 PYTHON=$ac_cv_path_PYTHON
7450 if test -n "$PYTHON"; then
7451   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7452 $as_echo "$PYTHON" >&6; }
7453 else
7454   { $as_echo "$as_me:$LINENO: result: no" >&5
7455 $as_echo "no" >&6; }
7456 fi
7457
7458
7459 if test x"$PYTHON" = x""; then
7460   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7461 $as_echo "$as_me: error: Python not found" >&2;}
7462    { (exit 1); exit 1; }; }
7463 fi
7464
7465
7466 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7467 $as_echo_n "checking for Python distutils module... " >&6; }
7468 if "${PYTHON}" -c 'import distutils' 2>&5
7469 then
7470     { $as_echo "$as_me:$LINENO: result: yes" >&5
7471 $as_echo "yes" >&6; }
7472 else
7473     { $as_echo "$as_me:$LINENO: result: no" >&5
7474 $as_echo "no" >&6; }
7475     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7476 $as_echo "$as_me: error: distutils module not found" >&2;}
7477    { (exit 1); exit 1; }; }
7478 fi
7479 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7480 $as_echo_n "checking Python configuration directory... " >&6; }
7481 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7482 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7483 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7484 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7485 $as_echo "$python_configdir" >&6; }
7486
7487 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7488 $as_echo_n "checking Python include directories... " >&6; }
7489 python_includespec=`${PYTHON} -c "
7490 import distutils.sysconfig
7491 a = '-I' + distutils.sysconfig.get_python_inc(False)
7492 b = '-I' + distutils.sysconfig.get_python_inc(True)
7493 if a == b:
7494     print(a)
7495 else:
7496     print(a + ' ' + b)"`
7497 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7498 $as_echo "$python_includespec" >&6; }
7499
7500
7501
7502 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7503 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7504
7505 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7506 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7507 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7508 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7509
7510 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7511 then
7512         # New way: use the official shared library
7513         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7514         python_libspec="-L${python_libdir} -l${ldlibrary}"
7515 else
7516         # Old way: use libpython from python_configdir
7517         python_libdir="${python_configdir}"
7518         # LDVERSION was introduced in Python 3.2.
7519         python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7520         if test x"${python_ldversion}" = x""; then
7521                 python_ldversion=$python_version
7522         fi
7523         python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7524 fi
7525
7526 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7527
7528 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7529 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7530
7531
7532 # threaded python is not supported on OpenBSD
7533 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7534 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7535 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7536 if test "$pythreads" = "1"; then
7537   { $as_echo "$as_me:$LINENO: result: yes" >&5
7538 $as_echo "yes" >&6; }
7539   case $host_os in
7540   openbsd*)
7541     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7542 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7543    { (exit 1); exit 1; }; }
7544     ;;
7545   esac
7546 else
7547   { $as_echo "$as_me:$LINENO: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551
7552 fi
7553
7554 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7555   # Extract the first word of "zic", so it can be a program name with args.
7556 set dummy zic; ac_word=$2
7557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if test "${ac_cv_path_ZIC+set}" = set; then
7560   $as_echo_n "(cached) " >&6
7561 else
7562   case $ZIC in
7563   [\\/]* | ?:[\\/]*)
7564   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7565   ;;
7566   *)
7567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570   IFS=$as_save_IFS
7571   test -z "$as_dir" && as_dir=.
7572   for ac_exec_ext in '' $ac_executable_extensions; do
7573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7574     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7575     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576     break 2
7577   fi
7578 done
7579 done
7580 IFS=$as_save_IFS
7581
7582   ;;
7583 esac
7584 fi
7585 ZIC=$ac_cv_path_ZIC
7586 if test -n "$ZIC"; then
7587   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7588 $as_echo "$ZIC" >&6; }
7589 else
7590   { $as_echo "$as_me:$LINENO: result: no" >&5
7591 $as_echo "no" >&6; }
7592 fi
7593
7594
7595   if test -z "$ZIC"; then
7596     { { $as_echo "$as_me:$LINENO: error:
7597 When cross-compiling, either use the option --with-system-tzdata to use
7598 existing time-zone data, or set the environment variable ZIC to a zic
7599 program to use during the build." >&5
7600 $as_echo "$as_me: error:
7601 When cross-compiling, either use the option --with-system-tzdata to use
7602 existing time-zone data, or set the environment variable ZIC to a zic
7603 program to use during the build." >&2;}
7604    { (exit 1); exit 1; }; }
7605   fi
7606 fi
7607
7608
7609 ##
7610 ## Libraries
7611 ##
7612 ## Most libraries are included only if they demonstrably provide a function
7613 ## we need, but libm is an exception: always include it, because there are
7614 ## too many compilers that play cute optimization games that will break
7615 ## probes for standard functions such as pow().
7616 ##
7617
7618
7619 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7620 $as_echo_n "checking for main in -lm... " >&6; }
7621 if test "${ac_cv_lib_m_main+set}" = set; then
7622   $as_echo_n "(cached) " >&6
7623 else
7624   ac_check_lib_save_LIBS=$LIBS
7625 LIBS="-lm  $LIBS"
7626 cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h.  */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h.  */
7632
7633
7634 int
7635 main ()
7636 {
7637 return main ();
7638   ;
7639   return 0;
7640 }
7641 _ACEOF
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7644 case "(($ac_try" in
7645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646   *) ac_try_echo=$ac_try;;
7647 esac
7648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649 $as_echo "$ac_try_echo") >&5
7650   (eval "$ac_link") 2>conftest.er1
7651   ac_status=$?
7652   grep -v '^ *+' conftest.er1 >conftest.err
7653   rm -f conftest.er1
7654   cat conftest.err >&5
7655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); } && {
7657          test -z "$ac_c_werror_flag" ||
7658          test ! -s conftest.err
7659        } && test -s conftest$ac_exeext && {
7660          test "$cross_compiling" = yes ||
7661          $as_test_x conftest$ac_exeext
7662        }; then
7663   ac_cv_lib_m_main=yes
7664 else
7665   $as_echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7667
7668         ac_cv_lib_m_main=no
7669 fi
7670
7671 rm -rf conftest.dSYM
7672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7673       conftest$ac_exeext conftest.$ac_ext
7674 LIBS=$ac_check_lib_save_LIBS
7675 fi
7676 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7677 $as_echo "$ac_cv_lib_m_main" >&6; }
7678 if test "x$ac_cv_lib_m_main" = x""yes; then
7679   cat >>confdefs.h <<_ACEOF
7680 #define HAVE_LIBM 1
7681 _ACEOF
7682
7683   LIBS="-lm $LIBS"
7684
7685 fi
7686
7687 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7688 $as_echo_n "checking for library containing setproctitle... " >&6; }
7689 if test "${ac_cv_search_setproctitle+set}" = set; then
7690   $as_echo_n "(cached) " >&6
7691 else
7692   ac_func_search_save_LIBS=$LIBS
7693 cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h.  */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h.  */
7699
7700 /* Override any GCC internal prototype to avoid an error.
7701    Use char because int might match the return type of a GCC
7702    builtin and then its argument prototype would still apply.  */
7703 #ifdef __cplusplus
7704 extern "C"
7705 #endif
7706 char setproctitle ();
7707 int
7708 main ()
7709 {
7710 return setproctitle ();
7711   ;
7712   return 0;
7713 }
7714 _ACEOF
7715 for ac_lib in '' util; do
7716   if test -z "$ac_lib"; then
7717     ac_res="none required"
7718   else
7719     ac_res=-l$ac_lib
7720     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7721   fi
7722   rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (ac_try="$ac_link"
7724 case "(($ac_try" in
7725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726   *) ac_try_echo=$ac_try;;
7727 esac
7728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7729 $as_echo "$ac_try_echo") >&5
7730   (eval "$ac_link") 2>conftest.er1
7731   ac_status=$?
7732   grep -v '^ *+' conftest.er1 >conftest.err
7733   rm -f conftest.er1
7734   cat conftest.err >&5
7735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); } && {
7737          test -z "$ac_c_werror_flag" ||
7738          test ! -s conftest.err
7739        } && test -s conftest$ac_exeext && {
7740          test "$cross_compiling" = yes ||
7741          $as_test_x conftest$ac_exeext
7742        }; then
7743   ac_cv_search_setproctitle=$ac_res
7744 else
7745   $as_echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7747
7748
7749 fi
7750
7751 rm -rf conftest.dSYM
7752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7753       conftest$ac_exeext
7754   if test "${ac_cv_search_setproctitle+set}" = set; then
7755   break
7756 fi
7757 done
7758 if test "${ac_cv_search_setproctitle+set}" = set; then
7759   :
7760 else
7761   ac_cv_search_setproctitle=no
7762 fi
7763 rm conftest.$ac_ext
7764 LIBS=$ac_func_search_save_LIBS
7765 fi
7766 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7767 $as_echo "$ac_cv_search_setproctitle" >&6; }
7768 ac_res=$ac_cv_search_setproctitle
7769 if test "$ac_res" != no; then
7770   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7771
7772 fi
7773
7774 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7775 $as_echo_n "checking for library containing dlopen... " >&6; }
7776 if test "${ac_cv_search_dlopen+set}" = set; then
7777   $as_echo_n "(cached) " >&6
7778 else
7779   ac_func_search_save_LIBS=$LIBS
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h.  */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h.  */
7786
7787 /* Override any GCC internal prototype to avoid an error.
7788    Use char because int might match the return type of a GCC
7789    builtin and then its argument prototype would still apply.  */
7790 #ifdef __cplusplus
7791 extern "C"
7792 #endif
7793 char dlopen ();
7794 int
7795 main ()
7796 {
7797 return dlopen ();
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 for ac_lib in '' dl; do
7803   if test -z "$ac_lib"; then
7804     ac_res="none required"
7805   else
7806     ac_res=-l$ac_lib
7807     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7808   fi
7809   rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (ac_try="$ac_link"
7811 case "(($ac_try" in
7812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813   *) ac_try_echo=$ac_try;;
7814 esac
7815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7816 $as_echo "$ac_try_echo") >&5
7817   (eval "$ac_link") 2>conftest.er1
7818   ac_status=$?
7819   grep -v '^ *+' conftest.er1 >conftest.err
7820   rm -f conftest.er1
7821   cat conftest.err >&5
7822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); } && {
7824          test -z "$ac_c_werror_flag" ||
7825          test ! -s conftest.err
7826        } && test -s conftest$ac_exeext && {
7827          test "$cross_compiling" = yes ||
7828          $as_test_x conftest$ac_exeext
7829        }; then
7830   ac_cv_search_dlopen=$ac_res
7831 else
7832   $as_echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835
7836 fi
7837
7838 rm -rf conftest.dSYM
7839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7840       conftest$ac_exeext
7841   if test "${ac_cv_search_dlopen+set}" = set; then
7842   break
7843 fi
7844 done
7845 if test "${ac_cv_search_dlopen+set}" = set; then
7846   :
7847 else
7848   ac_cv_search_dlopen=no
7849 fi
7850 rm conftest.$ac_ext
7851 LIBS=$ac_func_search_save_LIBS
7852 fi
7853 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7854 $as_echo "$ac_cv_search_dlopen" >&6; }
7855 ac_res=$ac_cv_search_dlopen
7856 if test "$ac_res" != no; then
7857   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7858
7859 fi
7860
7861 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7862 $as_echo_n "checking for library containing socket... " >&6; }
7863 if test "${ac_cv_search_socket+set}" = set; then
7864   $as_echo_n "(cached) " >&6
7865 else
7866   ac_func_search_save_LIBS=$LIBS
7867 cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h.  */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h.  */
7873
7874 /* Override any GCC internal prototype to avoid an error.
7875    Use char because int might match the return type of a GCC
7876    builtin and then its argument prototype would still apply.  */
7877 #ifdef __cplusplus
7878 extern "C"
7879 #endif
7880 char socket ();
7881 int
7882 main ()
7883 {
7884 return socket ();
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 for ac_lib in '' socket wsock32; do
7890   if test -z "$ac_lib"; then
7891     ac_res="none required"
7892   else
7893     ac_res=-l$ac_lib
7894     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7895   fi
7896   rm -f conftest.$ac_objext conftest$ac_exeext
7897 if { (ac_try="$ac_link"
7898 case "(($ac_try" in
7899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900   *) ac_try_echo=$ac_try;;
7901 esac
7902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7903 $as_echo "$ac_try_echo") >&5
7904   (eval "$ac_link") 2>conftest.er1
7905   ac_status=$?
7906   grep -v '^ *+' conftest.er1 >conftest.err
7907   rm -f conftest.er1
7908   cat conftest.err >&5
7909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } && {
7911          test -z "$ac_c_werror_flag" ||
7912          test ! -s conftest.err
7913        } && test -s conftest$ac_exeext && {
7914          test "$cross_compiling" = yes ||
7915          $as_test_x conftest$ac_exeext
7916        }; then
7917   ac_cv_search_socket=$ac_res
7918 else
7919   $as_echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7921
7922
7923 fi
7924
7925 rm -rf conftest.dSYM
7926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7927       conftest$ac_exeext
7928   if test "${ac_cv_search_socket+set}" = set; then
7929   break
7930 fi
7931 done
7932 if test "${ac_cv_search_socket+set}" = set; then
7933   :
7934 else
7935   ac_cv_search_socket=no
7936 fi
7937 rm conftest.$ac_ext
7938 LIBS=$ac_func_search_save_LIBS
7939 fi
7940 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7941 $as_echo "$ac_cv_search_socket" >&6; }
7942 ac_res=$ac_cv_search_socket
7943 if test "$ac_res" != no; then
7944   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7945
7946 fi
7947
7948 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7949 $as_echo_n "checking for library containing shl_load... " >&6; }
7950 if test "${ac_cv_search_shl_load+set}" = set; then
7951   $as_echo_n "(cached) " >&6
7952 else
7953   ac_func_search_save_LIBS=$LIBS
7954 cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960
7961 /* Override any GCC internal prototype to avoid an error.
7962    Use char because int might match the return type of a GCC
7963    builtin and then its argument prototype would still apply.  */
7964 #ifdef __cplusplus
7965 extern "C"
7966 #endif
7967 char shl_load ();
7968 int
7969 main ()
7970 {
7971 return shl_load ();
7972   ;
7973   return 0;
7974 }
7975 _ACEOF
7976 for ac_lib in '' dld; do
7977   if test -z "$ac_lib"; then
7978     ac_res="none required"
7979   else
7980     ac_res=-l$ac_lib
7981     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7982   fi
7983   rm -f conftest.$ac_objext conftest$ac_exeext
7984 if { (ac_try="$ac_link"
7985 case "(($ac_try" in
7986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987   *) ac_try_echo=$ac_try;;
7988 esac
7989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7990 $as_echo "$ac_try_echo") >&5
7991   (eval "$ac_link") 2>conftest.er1
7992   ac_status=$?
7993   grep -v '^ *+' conftest.er1 >conftest.err
7994   rm -f conftest.er1
7995   cat conftest.err >&5
7996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); } && {
7998          test -z "$ac_c_werror_flag" ||
7999          test ! -s conftest.err
8000        } && test -s conftest$ac_exeext && {
8001          test "$cross_compiling" = yes ||
8002          $as_test_x conftest$ac_exeext
8003        }; then
8004   ac_cv_search_shl_load=$ac_res
8005 else
8006   $as_echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009
8010 fi
8011
8012 rm -rf conftest.dSYM
8013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8014       conftest$ac_exeext
8015   if test "${ac_cv_search_shl_load+set}" = set; then
8016   break
8017 fi
8018 done
8019 if test "${ac_cv_search_shl_load+set}" = set; then
8020   :
8021 else
8022   ac_cv_search_shl_load=no
8023 fi
8024 rm conftest.$ac_ext
8025 LIBS=$ac_func_search_save_LIBS
8026 fi
8027 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
8028 $as_echo "$ac_cv_search_shl_load" >&6; }
8029 ac_res=$ac_cv_search_shl_load
8030 if test "$ac_res" != no; then
8031   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8032
8033 fi
8034
8035 # We only use libld in port/dynloader/aix.c
8036 case $host_os in
8037      aix*)
8038         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
8039 $as_echo_n "checking for library containing ldopen... " >&6; }
8040 if test "${ac_cv_search_ldopen+set}" = set; then
8041   $as_echo_n "(cached) " >&6
8042 else
8043   ac_func_search_save_LIBS=$LIBS
8044 cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h.  */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h.  */
8050
8051 /* Override any GCC internal prototype to avoid an error.
8052    Use char because int might match the return type of a GCC
8053    builtin and then its argument prototype would still apply.  */
8054 #ifdef __cplusplus
8055 extern "C"
8056 #endif
8057 char ldopen ();
8058 int
8059 main ()
8060 {
8061 return ldopen ();
8062   ;
8063   return 0;
8064 }
8065 _ACEOF
8066 for ac_lib in '' ld; do
8067   if test -z "$ac_lib"; then
8068     ac_res="none required"
8069   else
8070     ac_res=-l$ac_lib
8071     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8072   fi
8073   rm -f conftest.$ac_objext conftest$ac_exeext
8074 if { (ac_try="$ac_link"
8075 case "(($ac_try" in
8076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077   *) ac_try_echo=$ac_try;;
8078 esac
8079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8080 $as_echo "$ac_try_echo") >&5
8081   (eval "$ac_link") 2>conftest.er1
8082   ac_status=$?
8083   grep -v '^ *+' conftest.er1 >conftest.err
8084   rm -f conftest.er1
8085   cat conftest.err >&5
8086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } && {
8088          test -z "$ac_c_werror_flag" ||
8089          test ! -s conftest.err
8090        } && test -s conftest$ac_exeext && {
8091          test "$cross_compiling" = yes ||
8092          $as_test_x conftest$ac_exeext
8093        }; then
8094   ac_cv_search_ldopen=$ac_res
8095 else
8096   $as_echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8098
8099
8100 fi
8101
8102 rm -rf conftest.dSYM
8103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8104       conftest$ac_exeext
8105   if test "${ac_cv_search_ldopen+set}" = set; then
8106   break
8107 fi
8108 done
8109 if test "${ac_cv_search_ldopen+set}" = set; then
8110   :
8111 else
8112   ac_cv_search_ldopen=no
8113 fi
8114 rm conftest.$ac_ext
8115 LIBS=$ac_func_search_save_LIBS
8116 fi
8117 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8118 $as_echo "$ac_cv_search_ldopen" >&6; }
8119 ac_res=$ac_cv_search_ldopen
8120 if test "$ac_res" != no; then
8121   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8122
8123 fi
8124
8125         ;;
8126 esac
8127 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8128 $as_echo_n "checking for library containing getopt_long... " >&6; }
8129 if test "${ac_cv_search_getopt_long+set}" = set; then
8130   $as_echo_n "(cached) " >&6
8131 else
8132   ac_func_search_save_LIBS=$LIBS
8133 cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h.  */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h.  */
8139
8140 /* Override any GCC internal prototype to avoid an error.
8141    Use char because int might match the return type of a GCC
8142    builtin and then its argument prototype would still apply.  */
8143 #ifdef __cplusplus
8144 extern "C"
8145 #endif
8146 char getopt_long ();
8147 int
8148 main ()
8149 {
8150 return getopt_long ();
8151   ;
8152   return 0;
8153 }
8154 _ACEOF
8155 for ac_lib in '' getopt gnugetopt; do
8156   if test -z "$ac_lib"; then
8157     ac_res="none required"
8158   else
8159     ac_res=-l$ac_lib
8160     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8161   fi
8162   rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (ac_try="$ac_link"
8164 case "(($ac_try" in
8165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166   *) ac_try_echo=$ac_try;;
8167 esac
8168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8169 $as_echo "$ac_try_echo") >&5
8170   (eval "$ac_link") 2>conftest.er1
8171   ac_status=$?
8172   grep -v '^ *+' conftest.er1 >conftest.err
8173   rm -f conftest.er1
8174   cat conftest.err >&5
8175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } && {
8177          test -z "$ac_c_werror_flag" ||
8178          test ! -s conftest.err
8179        } && test -s conftest$ac_exeext && {
8180          test "$cross_compiling" = yes ||
8181          $as_test_x conftest$ac_exeext
8182        }; then
8183   ac_cv_search_getopt_long=$ac_res
8184 else
8185   $as_echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188
8189 fi
8190
8191 rm -rf conftest.dSYM
8192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8193       conftest$ac_exeext
8194   if test "${ac_cv_search_getopt_long+set}" = set; then
8195   break
8196 fi
8197 done
8198 if test "${ac_cv_search_getopt_long+set}" = set; then
8199   :
8200 else
8201   ac_cv_search_getopt_long=no
8202 fi
8203 rm conftest.$ac_ext
8204 LIBS=$ac_func_search_save_LIBS
8205 fi
8206 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8207 $as_echo "$ac_cv_search_getopt_long" >&6; }
8208 ac_res=$ac_cv_search_getopt_long
8209 if test "$ac_res" != no; then
8210   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8211
8212 fi
8213
8214 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8215 $as_echo_n "checking for library containing crypt... " >&6; }
8216 if test "${ac_cv_search_crypt+set}" = set; then
8217   $as_echo_n "(cached) " >&6
8218 else
8219   ac_func_search_save_LIBS=$LIBS
8220 cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h.  */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h.  */
8226
8227 /* Override any GCC internal prototype to avoid an error.
8228    Use char because int might match the return type of a GCC
8229    builtin and then its argument prototype would still apply.  */
8230 #ifdef __cplusplus
8231 extern "C"
8232 #endif
8233 char crypt ();
8234 int
8235 main ()
8236 {
8237 return crypt ();
8238   ;
8239   return 0;
8240 }
8241 _ACEOF
8242 for ac_lib in '' crypt; do
8243   if test -z "$ac_lib"; then
8244     ac_res="none required"
8245   else
8246     ac_res=-l$ac_lib
8247     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8248   fi
8249   rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (ac_try="$ac_link"
8251 case "(($ac_try" in
8252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253   *) ac_try_echo=$ac_try;;
8254 esac
8255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8256 $as_echo "$ac_try_echo") >&5
8257   (eval "$ac_link") 2>conftest.er1
8258   ac_status=$?
8259   grep -v '^ *+' conftest.er1 >conftest.err
8260   rm -f conftest.er1
8261   cat conftest.err >&5
8262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); } && {
8264          test -z "$ac_c_werror_flag" ||
8265          test ! -s conftest.err
8266        } && test -s conftest$ac_exeext && {
8267          test "$cross_compiling" = yes ||
8268          $as_test_x conftest$ac_exeext
8269        }; then
8270   ac_cv_search_crypt=$ac_res
8271 else
8272   $as_echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8274
8275
8276 fi
8277
8278 rm -rf conftest.dSYM
8279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8280       conftest$ac_exeext
8281   if test "${ac_cv_search_crypt+set}" = set; then
8282   break
8283 fi
8284 done
8285 if test "${ac_cv_search_crypt+set}" = set; then
8286   :
8287 else
8288   ac_cv_search_crypt=no
8289 fi
8290 rm conftest.$ac_ext
8291 LIBS=$ac_func_search_save_LIBS
8292 fi
8293 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8294 $as_echo "$ac_cv_search_crypt" >&6; }
8295 ac_res=$ac_cv_search_crypt
8296 if test "$ac_res" != no; then
8297   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8298
8299 fi
8300
8301 # Solaris:
8302 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8303 $as_echo_n "checking for library containing fdatasync... " >&6; }
8304 if test "${ac_cv_search_fdatasync+set}" = set; then
8305   $as_echo_n "(cached) " >&6
8306 else
8307   ac_func_search_save_LIBS=$LIBS
8308 cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314
8315 /* Override any GCC internal prototype to avoid an error.
8316    Use char because int might match the return type of a GCC
8317    builtin and then its argument prototype would still apply.  */
8318 #ifdef __cplusplus
8319 extern "C"
8320 #endif
8321 char fdatasync ();
8322 int
8323 main ()
8324 {
8325 return fdatasync ();
8326   ;
8327   return 0;
8328 }
8329 _ACEOF
8330 for ac_lib in '' rt posix4; do
8331   if test -z "$ac_lib"; then
8332     ac_res="none required"
8333   else
8334     ac_res=-l$ac_lib
8335     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8336   fi
8337   rm -f conftest.$ac_objext conftest$ac_exeext
8338 if { (ac_try="$ac_link"
8339 case "(($ac_try" in
8340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8341   *) ac_try_echo=$ac_try;;
8342 esac
8343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8344 $as_echo "$ac_try_echo") >&5
8345   (eval "$ac_link") 2>conftest.er1
8346   ac_status=$?
8347   grep -v '^ *+' conftest.er1 >conftest.err
8348   rm -f conftest.er1
8349   cat conftest.err >&5
8350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } && {
8352          test -z "$ac_c_werror_flag" ||
8353          test ! -s conftest.err
8354        } && test -s conftest$ac_exeext && {
8355          test "$cross_compiling" = yes ||
8356          $as_test_x conftest$ac_exeext
8357        }; then
8358   ac_cv_search_fdatasync=$ac_res
8359 else
8360   $as_echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8362
8363
8364 fi
8365
8366 rm -rf conftest.dSYM
8367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8368       conftest$ac_exeext
8369   if test "${ac_cv_search_fdatasync+set}" = set; then
8370   break
8371 fi
8372 done
8373 if test "${ac_cv_search_fdatasync+set}" = set; then
8374   :
8375 else
8376   ac_cv_search_fdatasync=no
8377 fi
8378 rm conftest.$ac_ext
8379 LIBS=$ac_func_search_save_LIBS
8380 fi
8381 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8382 $as_echo "$ac_cv_search_fdatasync" >&6; }
8383 ac_res=$ac_cv_search_fdatasync
8384 if test "$ac_res" != no; then
8385   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8386
8387 fi
8388
8389 # Required for thread_test.c on Solaris 2.5:
8390 # Other ports use it too (HP-UX) so test unconditionally
8391 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8392 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8393 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8394   $as_echo_n "(cached) " >&6
8395 else
8396   ac_func_search_save_LIBS=$LIBS
8397 cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403
8404 /* Override any GCC internal prototype to avoid an error.
8405    Use char because int might match the return type of a GCC
8406    builtin and then its argument prototype would still apply.  */
8407 #ifdef __cplusplus
8408 extern "C"
8409 #endif
8410 char gethostbyname_r ();
8411 int
8412 main ()
8413 {
8414 return gethostbyname_r ();
8415   ;
8416   return 0;
8417 }
8418 _ACEOF
8419 for ac_lib in '' nsl; do
8420   if test -z "$ac_lib"; then
8421     ac_res="none required"
8422   else
8423     ac_res=-l$ac_lib
8424     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8425   fi
8426   rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (ac_try="$ac_link"
8428 case "(($ac_try" in
8429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430   *) ac_try_echo=$ac_try;;
8431 esac
8432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433 $as_echo "$ac_try_echo") >&5
8434   (eval "$ac_link") 2>conftest.er1
8435   ac_status=$?
8436   grep -v '^ *+' conftest.er1 >conftest.err
8437   rm -f conftest.er1
8438   cat conftest.err >&5
8439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } && {
8441          test -z "$ac_c_werror_flag" ||
8442          test ! -s conftest.err
8443        } && test -s conftest$ac_exeext && {
8444          test "$cross_compiling" = yes ||
8445          $as_test_x conftest$ac_exeext
8446        }; then
8447   ac_cv_search_gethostbyname_r=$ac_res
8448 else
8449   $as_echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452
8453 fi
8454
8455 rm -rf conftest.dSYM
8456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8457       conftest$ac_exeext
8458   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8459   break
8460 fi
8461 done
8462 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8463   :
8464 else
8465   ac_cv_search_gethostbyname_r=no
8466 fi
8467 rm conftest.$ac_ext
8468 LIBS=$ac_func_search_save_LIBS
8469 fi
8470 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8471 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8472 ac_res=$ac_cv_search_gethostbyname_r
8473 if test "$ac_res" != no; then
8474   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8475
8476 fi
8477
8478 # Cygwin:
8479 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8480 $as_echo_n "checking for library containing shmget... " >&6; }
8481 if test "${ac_cv_search_shmget+set}" = set; then
8482   $as_echo_n "(cached) " >&6
8483 else
8484   ac_func_search_save_LIBS=$LIBS
8485 cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h.  */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h.  */
8491
8492 /* Override any GCC internal prototype to avoid an error.
8493    Use char because int might match the return type of a GCC
8494    builtin and then its argument prototype would still apply.  */
8495 #ifdef __cplusplus
8496 extern "C"
8497 #endif
8498 char shmget ();
8499 int
8500 main ()
8501 {
8502 return shmget ();
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 for ac_lib in '' cygipc; do
8508   if test -z "$ac_lib"; then
8509     ac_res="none required"
8510   else
8511     ac_res=-l$ac_lib
8512     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8513   fi
8514   rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (ac_try="$ac_link"
8516 case "(($ac_try" in
8517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518   *) ac_try_echo=$ac_try;;
8519 esac
8520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8521 $as_echo "$ac_try_echo") >&5
8522   (eval "$ac_link") 2>conftest.er1
8523   ac_status=$?
8524   grep -v '^ *+' conftest.er1 >conftest.err
8525   rm -f conftest.er1
8526   cat conftest.err >&5
8527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); } && {
8529          test -z "$ac_c_werror_flag" ||
8530          test ! -s conftest.err
8531        } && test -s conftest$ac_exeext && {
8532          test "$cross_compiling" = yes ||
8533          $as_test_x conftest$ac_exeext
8534        }; then
8535   ac_cv_search_shmget=$ac_res
8536 else
8537   $as_echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540
8541 fi
8542
8543 rm -rf conftest.dSYM
8544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8545       conftest$ac_exeext
8546   if test "${ac_cv_search_shmget+set}" = set; then
8547   break
8548 fi
8549 done
8550 if test "${ac_cv_search_shmget+set}" = set; then
8551   :
8552 else
8553   ac_cv_search_shmget=no
8554 fi
8555 rm conftest.$ac_ext
8556 LIBS=$ac_func_search_save_LIBS
8557 fi
8558 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8559 $as_echo "$ac_cv_search_shmget" >&6; }
8560 ac_res=$ac_cv_search_shmget
8561 if test "$ac_res" != no; then
8562   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8563
8564 fi
8565
8566
8567 if test "$with_readline" = yes; then
8568
8569
8570 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8571 $as_echo_n "checking for library containing readline... " >&6; }
8572 if test "${pgac_cv_check_readline+set}" = set; then
8573   $as_echo_n "(cached) " >&6
8574 else
8575   pgac_cv_check_readline=no
8576 pgac_save_LIBS=$LIBS
8577 if test x"$with_libedit_preferred" != x"yes"
8578 then    READLINE_ORDER="-lreadline -ledit"
8579 else    READLINE_ORDER="-ledit -lreadline"
8580 fi
8581 for pgac_rllib in $READLINE_ORDER ; do
8582   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8583     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8584     cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590
8591 /* Override any GCC internal prototype to avoid an error.
8592    Use char because int might match the return type of a GCC
8593    builtin and then its argument prototype would still apply.  */
8594 #ifdef __cplusplus
8595 extern "C"
8596 #endif
8597 char readline ();
8598 int
8599 main ()
8600 {
8601 return readline ();
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (ac_try="$ac_link"
8608 case "(($ac_try" in
8609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610   *) ac_try_echo=$ac_try;;
8611 esac
8612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8613 $as_echo "$ac_try_echo") >&5
8614   (eval "$ac_link") 2>conftest.er1
8615   ac_status=$?
8616   grep -v '^ *+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } && {
8621          test -z "$ac_c_werror_flag" ||
8622          test ! -s conftest.err
8623        } && test -s conftest$ac_exeext && {
8624          test "$cross_compiling" = yes ||
8625          $as_test_x conftest$ac_exeext
8626        }; then
8627
8628       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8629       # recognize dependent libraries; assume curses is needed if we didn't
8630       # find any dependency.
8631       case $host_os in
8632         netbsd* | openbsd* | irix*)
8633           if test x"$pgac_lib" = x"" ; then
8634             pgac_lib=" -lcurses"
8635           fi ;;
8636       esac
8637
8638       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8639       break
8640
8641 else
8642   $as_echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645
8646 fi
8647
8648 rm -rf conftest.dSYM
8649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8650       conftest$ac_exeext conftest.$ac_ext
8651   done
8652   if test "$pgac_cv_check_readline" != no ; then
8653     break
8654   fi
8655 done
8656 LIBS=$pgac_save_LIBS
8657
8658 fi
8659 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8660 $as_echo "$pgac_cv_check_readline" >&6; }
8661 if test "$pgac_cv_check_readline" != no ; then
8662   LIBS="$pgac_cv_check_readline $LIBS"
8663
8664 cat >>confdefs.h <<\_ACEOF
8665 #define HAVE_LIBREADLINE 1
8666 _ACEOF
8667
8668 fi
8669
8670
8671   if test x"$pgac_cv_check_readline" = x"no"; then
8672     { { $as_echo "$as_me:$LINENO: error: readline library not found
8673 If you have readline already installed, see config.log for details on the
8674 failure.  It is possible the compiler isn't looking in the proper directory.
8675 Use --without-readline to disable readline support." >&5
8676 $as_echo "$as_me: error: readline library not found
8677 If you have readline already installed, see config.log for details on the
8678 failure.  It is possible the compiler isn't looking in the proper directory.
8679 Use --without-readline to disable readline support." >&2;}
8680    { (exit 1); exit 1; }; }
8681   fi
8682 fi
8683
8684 if test "$with_zlib" = yes; then
8685
8686 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8687 $as_echo_n "checking for inflate in -lz... " >&6; }
8688 if test "${ac_cv_lib_z_inflate+set}" = set; then
8689   $as_echo_n "(cached) " >&6
8690 else
8691   ac_check_lib_save_LIBS=$LIBS
8692 LIBS="-lz  $LIBS"
8693 cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h.  */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h.  */
8699
8700 /* Override any GCC internal prototype to avoid an error.
8701    Use char because int might match the return type of a GCC
8702    builtin and then its argument prototype would still apply.  */
8703 #ifdef __cplusplus
8704 extern "C"
8705 #endif
8706 char inflate ();
8707 int
8708 main ()
8709 {
8710 return inflate ();
8711   ;
8712   return 0;
8713 }
8714 _ACEOF
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (ac_try="$ac_link"
8717 case "(($ac_try" in
8718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719   *) ac_try_echo=$ac_try;;
8720 esac
8721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8722 $as_echo "$ac_try_echo") >&5
8723   (eval "$ac_link") 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } && {
8730          test -z "$ac_c_werror_flag" ||
8731          test ! -s conftest.err
8732        } && test -s conftest$ac_exeext && {
8733          test "$cross_compiling" = yes ||
8734          $as_test_x conftest$ac_exeext
8735        }; then
8736   ac_cv_lib_z_inflate=yes
8737 else
8738   $as_echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8740
8741         ac_cv_lib_z_inflate=no
8742 fi
8743
8744 rm -rf conftest.dSYM
8745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8746       conftest$ac_exeext conftest.$ac_ext
8747 LIBS=$ac_check_lib_save_LIBS
8748 fi
8749 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8750 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8751 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8752   cat >>confdefs.h <<_ACEOF
8753 #define HAVE_LIBZ 1
8754 _ACEOF
8755
8756   LIBS="-lz $LIBS"
8757
8758 else
8759   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8760 If you have zlib already installed, see config.log for details on the
8761 failure.  It is possible the compiler isn't looking in the proper directory.
8762 Use --without-zlib to disable zlib support." >&5
8763 $as_echo "$as_me: error: zlib library not found
8764 If you have zlib already installed, see config.log for details on the
8765 failure.  It is possible the compiler isn't looking in the proper directory.
8766 Use --without-zlib to disable zlib support." >&2;}
8767    { (exit 1); exit 1; }; }
8768 fi
8769
8770 fi
8771
8772 if test "$enable_spinlocks" = yes; then
8773
8774 cat >>confdefs.h <<\_ACEOF
8775 #define HAVE_SPINLOCKS 1
8776 _ACEOF
8777
8778 else
8779   { $as_echo "$as_me:$LINENO: WARNING:
8780 *** Not using spinlocks will cause poor performance." >&5
8781 $as_echo "$as_me: WARNING:
8782 *** Not using spinlocks will cause poor performance." >&2;}
8783 fi
8784
8785 if test "$with_gssapi" = yes ; then
8786   if test "$PORTNAME" != "win32"; then
8787     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8788 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8789 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8790   $as_echo_n "(cached) " >&6
8791 else
8792   ac_func_search_save_LIBS=$LIBS
8793 cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h.  */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h.  */
8799
8800 /* Override any GCC internal prototype to avoid an error.
8801    Use char because int might match the return type of a GCC
8802    builtin and then its argument prototype would still apply.  */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 char gss_init_sec_context ();
8807 int
8808 main ()
8809 {
8810 return gss_init_sec_context ();
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8816   if test -z "$ac_lib"; then
8817     ac_res="none required"
8818   else
8819     ac_res=-l$ac_lib
8820     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8821   fi
8822   rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (ac_try="$ac_link"
8824 case "(($ac_try" in
8825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826   *) ac_try_echo=$ac_try;;
8827 esac
8828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8829 $as_echo "$ac_try_echo") >&5
8830   (eval "$ac_link") 2>conftest.er1
8831   ac_status=$?
8832   grep -v '^ *+' conftest.er1 >conftest.err
8833   rm -f conftest.er1
8834   cat conftest.err >&5
8835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); } && {
8837          test -z "$ac_c_werror_flag" ||
8838          test ! -s conftest.err
8839        } && test -s conftest$ac_exeext && {
8840          test "$cross_compiling" = yes ||
8841          $as_test_x conftest$ac_exeext
8842        }; then
8843   ac_cv_search_gss_init_sec_context=$ac_res
8844 else
8845   $as_echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848
8849 fi
8850
8851 rm -rf conftest.dSYM
8852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8853       conftest$ac_exeext
8854   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8855   break
8856 fi
8857 done
8858 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8859   :
8860 else
8861   ac_cv_search_gss_init_sec_context=no
8862 fi
8863 rm conftest.$ac_ext
8864 LIBS=$ac_func_search_save_LIBS
8865 fi
8866 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8867 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8868 ac_res=$ac_cv_search_gss_init_sec_context
8869 if test "$ac_res" != no; then
8870   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8871
8872 else
8873   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8874 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8875    { (exit 1); exit 1; }; }
8876 fi
8877
8878   else
8879     LIBS="$LIBS -lgssapi32"
8880   fi
8881 fi
8882
8883 if test "$with_krb5" = yes ; then
8884   if test "$PORTNAME" != "win32"; then
8885      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8886 $as_echo_n "checking for library containing com_err... " >&6; }
8887 if test "${ac_cv_search_com_err+set}" = set; then
8888   $as_echo_n "(cached) " >&6
8889 else
8890   ac_func_search_save_LIBS=$LIBS
8891 cat >conftest.$ac_ext <<_ACEOF
8892 /* confdefs.h.  */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h.  */
8897
8898 /* Override any GCC internal prototype to avoid an error.
8899    Use char because int might match the return type of a GCC
8900    builtin and then its argument prototype would still apply.  */
8901 #ifdef __cplusplus
8902 extern "C"
8903 #endif
8904 char com_err ();
8905 int
8906 main ()
8907 {
8908 return com_err ();
8909   ;
8910   return 0;
8911 }
8912 _ACEOF
8913 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8914   if test -z "$ac_lib"; then
8915     ac_res="none required"
8916   else
8917     ac_res=-l$ac_lib
8918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8919   fi
8920   rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (ac_try="$ac_link"
8922 case "(($ac_try" in
8923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924   *) ac_try_echo=$ac_try;;
8925 esac
8926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8927 $as_echo "$ac_try_echo") >&5
8928   (eval "$ac_link") 2>conftest.er1
8929   ac_status=$?
8930   grep -v '^ *+' conftest.er1 >conftest.err
8931   rm -f conftest.er1
8932   cat conftest.err >&5
8933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); } && {
8935          test -z "$ac_c_werror_flag" ||
8936          test ! -s conftest.err
8937        } && test -s conftest$ac_exeext && {
8938          test "$cross_compiling" = yes ||
8939          $as_test_x conftest$ac_exeext
8940        }; then
8941   ac_cv_search_com_err=$ac_res
8942 else
8943   $as_echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8945
8946
8947 fi
8948
8949 rm -rf conftest.dSYM
8950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8951       conftest$ac_exeext
8952   if test "${ac_cv_search_com_err+set}" = set; then
8953   break
8954 fi
8955 done
8956 if test "${ac_cv_search_com_err+set}" = set; then
8957   :
8958 else
8959   ac_cv_search_com_err=no
8960 fi
8961 rm conftest.$ac_ext
8962 LIBS=$ac_func_search_save_LIBS
8963 fi
8964 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8965 $as_echo "$ac_cv_search_com_err" >&6; }
8966 ac_res=$ac_cv_search_com_err
8967 if test "$ac_res" != no; then
8968   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8969
8970 else
8971   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8972 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8973    { (exit 1); exit 1; }; }
8974 fi
8975
8976      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8977 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8978 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8979   $as_echo_n "(cached) " >&6
8980 else
8981   ac_func_search_save_LIBS=$LIBS
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988
8989 /* Override any GCC internal prototype to avoid an error.
8990    Use char because int might match the return type of a GCC
8991    builtin and then its argument prototype would still apply.  */
8992 #ifdef __cplusplus
8993 extern "C"
8994 #endif
8995 char krb5_sendauth ();
8996 int
8997 main ()
8998 {
8999 return krb5_sendauth ();
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
9005   if test -z "$ac_lib"; then
9006     ac_res="none required"
9007   else
9008     ac_res=-l$ac_lib
9009     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9010   fi
9011   rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9013 case "(($ac_try" in
9014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015   *) ac_try_echo=$ac_try;;
9016 esac
9017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9018 $as_echo "$ac_try_echo") >&5
9019   (eval "$ac_link") 2>conftest.er1
9020   ac_status=$?
9021   grep -v '^ *+' conftest.er1 >conftest.err
9022   rm -f conftest.er1
9023   cat conftest.err >&5
9024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); } && {
9026          test -z "$ac_c_werror_flag" ||
9027          test ! -s conftest.err
9028        } && test -s conftest$ac_exeext && {
9029          test "$cross_compiling" = yes ||
9030          $as_test_x conftest$ac_exeext
9031        }; then
9032   ac_cv_search_krb5_sendauth=$ac_res
9033 else
9034   $as_echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9036
9037
9038 fi
9039
9040 rm -rf conftest.dSYM
9041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9042       conftest$ac_exeext
9043   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9044   break
9045 fi
9046 done
9047 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9048   :
9049 else
9050   ac_cv_search_krb5_sendauth=no
9051 fi
9052 rm conftest.$ac_ext
9053 LIBS=$ac_func_search_save_LIBS
9054 fi
9055 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
9056 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9057 ac_res=$ac_cv_search_krb5_sendauth
9058 if test "$ac_res" != no; then
9059   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9060
9061 else
9062   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9063 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9064    { (exit 1); exit 1; }; }
9065 fi
9066
9067   else
9068      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9069 $as_echo_n "checking for library containing com_err... " >&6; }
9070 if test "${ac_cv_search_com_err+set}" = set; then
9071   $as_echo_n "(cached) " >&6
9072 else
9073   ac_func_search_save_LIBS=$LIBS
9074 cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h.  */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h.  */
9080
9081 /* Override any GCC internal prototype to avoid an error.
9082    Use char because int might match the return type of a GCC
9083    builtin and then its argument prototype would still apply.  */
9084 #ifdef __cplusplus
9085 extern "C"
9086 #endif
9087 char com_err ();
9088 int
9089 main ()
9090 {
9091 return com_err ();
9092   ;
9093   return 0;
9094 }
9095 _ACEOF
9096 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9097   if test -z "$ac_lib"; then
9098     ac_res="none required"
9099   else
9100     ac_res=-l$ac_lib
9101     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9102   fi
9103   rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (ac_try="$ac_link"
9105 case "(($ac_try" in
9106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107   *) ac_try_echo=$ac_try;;
9108 esac
9109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9110 $as_echo "$ac_try_echo") >&5
9111   (eval "$ac_link") 2>conftest.er1
9112   ac_status=$?
9113   grep -v '^ *+' conftest.er1 >conftest.err
9114   rm -f conftest.er1
9115   cat conftest.err >&5
9116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   (exit $ac_status); } && {
9118          test -z "$ac_c_werror_flag" ||
9119          test ! -s conftest.err
9120        } && test -s conftest$ac_exeext && {
9121          test "$cross_compiling" = yes ||
9122          $as_test_x conftest$ac_exeext
9123        }; then
9124   ac_cv_search_com_err=$ac_res
9125 else
9126   $as_echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9128
9129
9130 fi
9131
9132 rm -rf conftest.dSYM
9133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9134       conftest$ac_exeext
9135   if test "${ac_cv_search_com_err+set}" = set; then
9136   break
9137 fi
9138 done
9139 if test "${ac_cv_search_com_err+set}" = set; then
9140   :
9141 else
9142   ac_cv_search_com_err=no
9143 fi
9144 rm conftest.$ac_ext
9145 LIBS=$ac_func_search_save_LIBS
9146 fi
9147 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9148 $as_echo "$ac_cv_search_com_err" >&6; }
9149 ac_res=$ac_cv_search_com_err
9150 if test "$ac_res" != no; then
9151   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9152
9153 else
9154   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9155 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9156    { (exit 1); exit 1; }; }
9157 fi
9158
9159   fi
9160 fi
9161
9162 if test "$with_openssl" = yes ; then
9163     if test "$PORTNAME" != "win32"; then
9164
9165 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9166 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9167 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9168   $as_echo_n "(cached) " >&6
9169 else
9170   ac_check_lib_save_LIBS=$LIBS
9171 LIBS="-lcrypto  $LIBS"
9172 cat >conftest.$ac_ext <<_ACEOF
9173 /* confdefs.h.  */
9174 _ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h.  */
9178
9179 /* Override any GCC internal prototype to avoid an error.
9180    Use char because int might match the return type of a GCC
9181    builtin and then its argument prototype would still apply.  */
9182 #ifdef __cplusplus
9183 extern "C"
9184 #endif
9185 char CRYPTO_new_ex_data ();
9186 int
9187 main ()
9188 {
9189 return CRYPTO_new_ex_data ();
9190   ;
9191   return 0;
9192 }
9193 _ACEOF
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (ac_try="$ac_link"
9196 case "(($ac_try" in
9197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198   *) ac_try_echo=$ac_try;;
9199 esac
9200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9201 $as_echo "$ac_try_echo") >&5
9202   (eval "$ac_link") 2>conftest.er1
9203   ac_status=$?
9204   grep -v '^ *+' conftest.er1 >conftest.err
9205   rm -f conftest.er1
9206   cat conftest.err >&5
9207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); } && {
9209          test -z "$ac_c_werror_flag" ||
9210          test ! -s conftest.err
9211        } && test -s conftest$ac_exeext && {
9212          test "$cross_compiling" = yes ||
9213          $as_test_x conftest$ac_exeext
9214        }; then
9215   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9216 else
9217   $as_echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9221 fi
9222
9223 rm -rf conftest.dSYM
9224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9225       conftest$ac_exeext conftest.$ac_ext
9226 LIBS=$ac_check_lib_save_LIBS
9227 fi
9228 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9229 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9230 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9231   cat >>confdefs.h <<_ACEOF
9232 #define HAVE_LIBCRYPTO 1
9233 _ACEOF
9234
9235   LIBS="-lcrypto $LIBS"
9236
9237 else
9238   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9239 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9240    { (exit 1); exit 1; }; }
9241 fi
9242
9243
9244 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9245 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9246 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9247   $as_echo_n "(cached) " >&6
9248 else
9249   ac_check_lib_save_LIBS=$LIBS
9250 LIBS="-lssl  $LIBS"
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h.  */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h.  */
9257
9258 /* Override any GCC internal prototype to avoid an error.
9259    Use char because int might match the return type of a GCC
9260    builtin and then its argument prototype would still apply.  */
9261 #ifdef __cplusplus
9262 extern "C"
9263 #endif
9264 char SSL_library_init ();
9265 int
9266 main ()
9267 {
9268 return SSL_library_init ();
9269   ;
9270   return 0;
9271 }
9272 _ACEOF
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (ac_try="$ac_link"
9275 case "(($ac_try" in
9276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9277   *) ac_try_echo=$ac_try;;
9278 esac
9279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9280 $as_echo "$ac_try_echo") >&5
9281   (eval "$ac_link") 2>conftest.er1
9282   ac_status=$?
9283   grep -v '^ *+' conftest.er1 >conftest.err
9284   rm -f conftest.er1
9285   cat conftest.err >&5
9286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); } && {
9288          test -z "$ac_c_werror_flag" ||
9289          test ! -s conftest.err
9290        } && test -s conftest$ac_exeext && {
9291          test "$cross_compiling" = yes ||
9292          $as_test_x conftest$ac_exeext
9293        }; then
9294   ac_cv_lib_ssl_SSL_library_init=yes
9295 else
9296   $as_echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9298
9299         ac_cv_lib_ssl_SSL_library_init=no
9300 fi
9301
9302 rm -rf conftest.dSYM
9303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9304       conftest$ac_exeext conftest.$ac_ext
9305 LIBS=$ac_check_lib_save_LIBS
9306 fi
9307 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9308 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9309 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9310   cat >>confdefs.h <<_ACEOF
9311 #define HAVE_LIBSSL 1
9312 _ACEOF
9313
9314   LIBS="-lssl $LIBS"
9315
9316 else
9317   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9318 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9319    { (exit 1); exit 1; }; }
9320 fi
9321
9322   else
9323      { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9324 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9325 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9326   $as_echo_n "(cached) " >&6
9327 else
9328   ac_func_search_save_LIBS=$LIBS
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h.  */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h.  */
9335
9336 /* Override any GCC internal prototype to avoid an error.
9337    Use char because int might match the return type of a GCC
9338    builtin and then its argument prototype would still apply.  */
9339 #ifdef __cplusplus
9340 extern "C"
9341 #endif
9342 char CRYPTO_new_ex_data ();
9343 int
9344 main ()
9345 {
9346 return CRYPTO_new_ex_data ();
9347   ;
9348   return 0;
9349 }
9350 _ACEOF
9351 for ac_lib in '' eay32 crypto; do
9352   if test -z "$ac_lib"; then
9353     ac_res="none required"
9354   else
9355     ac_res=-l$ac_lib
9356     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9357   fi
9358   rm -f conftest.$ac_objext conftest$ac_exeext
9359 if { (ac_try="$ac_link"
9360 case "(($ac_try" in
9361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362   *) ac_try_echo=$ac_try;;
9363 esac
9364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9365 $as_echo "$ac_try_echo") >&5
9366   (eval "$ac_link") 2>conftest.er1
9367   ac_status=$?
9368   grep -v '^ *+' conftest.er1 >conftest.err
9369   rm -f conftest.er1
9370   cat conftest.err >&5
9371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); } && {
9373          test -z "$ac_c_werror_flag" ||
9374          test ! -s conftest.err
9375        } && test -s conftest$ac_exeext && {
9376          test "$cross_compiling" = yes ||
9377          $as_test_x conftest$ac_exeext
9378        }; then
9379   ac_cv_search_CRYPTO_new_ex_data=$ac_res
9380 else
9381   $as_echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9383
9384
9385 fi
9386
9387 rm -rf conftest.dSYM
9388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9389       conftest$ac_exeext
9390   if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9391   break
9392 fi
9393 done
9394 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9395   :
9396 else
9397   ac_cv_search_CRYPTO_new_ex_data=no
9398 fi
9399 rm conftest.$ac_ext
9400 LIBS=$ac_func_search_save_LIBS
9401 fi
9402 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9403 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9404 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9405 if test "$ac_res" != no; then
9406   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9407
9408 else
9409   { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9410 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9411    { (exit 1); exit 1; }; }
9412 fi
9413
9414      { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9415 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9416 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9417   $as_echo_n "(cached) " >&6
9418 else
9419   ac_func_search_save_LIBS=$LIBS
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h.  */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h.  */
9426
9427 /* Override any GCC internal prototype to avoid an error.
9428    Use char because int might match the return type of a GCC
9429    builtin and then its argument prototype would still apply.  */
9430 #ifdef __cplusplus
9431 extern "C"
9432 #endif
9433 char SSL_library_init ();
9434 int
9435 main ()
9436 {
9437 return SSL_library_init ();
9438   ;
9439   return 0;
9440 }
9441 _ACEOF
9442 for ac_lib in '' ssleay32 ssl; do
9443   if test -z "$ac_lib"; then
9444     ac_res="none required"
9445   else
9446     ac_res=-l$ac_lib
9447     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9448   fi
9449   rm -f conftest.$ac_objext conftest$ac_exeext
9450 if { (ac_try="$ac_link"
9451 case "(($ac_try" in
9452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453   *) ac_try_echo=$ac_try;;
9454 esac
9455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9456 $as_echo "$ac_try_echo") >&5
9457   (eval "$ac_link") 2>conftest.er1
9458   ac_status=$?
9459   grep -v '^ *+' conftest.er1 >conftest.err
9460   rm -f conftest.er1
9461   cat conftest.err >&5
9462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); } && {
9464          test -z "$ac_c_werror_flag" ||
9465          test ! -s conftest.err
9466        } && test -s conftest$ac_exeext && {
9467          test "$cross_compiling" = yes ||
9468          $as_test_x conftest$ac_exeext
9469        }; then
9470   ac_cv_search_SSL_library_init=$ac_res
9471 else
9472   $as_echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9474
9475
9476 fi
9477
9478 rm -rf conftest.dSYM
9479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9480       conftest$ac_exeext
9481   if test "${ac_cv_search_SSL_library_init+set}" = set; then
9482   break
9483 fi
9484 done
9485 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9486   :
9487 else
9488   ac_cv_search_SSL_library_init=no
9489 fi
9490 rm conftest.$ac_ext
9491 LIBS=$ac_func_search_save_LIBS
9492 fi
9493 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9494 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9495 ac_res=$ac_cv_search_SSL_library_init
9496 if test "$ac_res" != no; then
9497   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9498
9499 else
9500   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9501 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9502    { (exit 1); exit 1; }; }
9503 fi
9504
9505   fi
9506 fi
9507
9508 if test "$with_pam" = yes ; then
9509
9510 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9511 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9512 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9513   $as_echo_n "(cached) " >&6
9514 else
9515   ac_check_lib_save_LIBS=$LIBS
9516 LIBS="-lpam  $LIBS"
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h.  */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h.  */
9523
9524 /* Override any GCC internal prototype to avoid an error.
9525    Use char because int might match the return type of a GCC
9526    builtin and then its argument prototype would still apply.  */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 char pam_start ();
9531 int
9532 main ()
9533 {
9534 return pam_start ();
9535   ;
9536   return 0;
9537 }
9538 _ACEOF
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (ac_try="$ac_link"
9541 case "(($ac_try" in
9542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543   *) ac_try_echo=$ac_try;;
9544 esac
9545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9546 $as_echo "$ac_try_echo") >&5
9547   (eval "$ac_link") 2>conftest.er1
9548   ac_status=$?
9549   grep -v '^ *+' conftest.er1 >conftest.err
9550   rm -f conftest.er1
9551   cat conftest.err >&5
9552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); } && {
9554          test -z "$ac_c_werror_flag" ||
9555          test ! -s conftest.err
9556        } && test -s conftest$ac_exeext && {
9557          test "$cross_compiling" = yes ||
9558          $as_test_x conftest$ac_exeext
9559        }; then
9560   ac_cv_lib_pam_pam_start=yes
9561 else
9562   $as_echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565         ac_cv_lib_pam_pam_start=no
9566 fi
9567
9568 rm -rf conftest.dSYM
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570       conftest$ac_exeext conftest.$ac_ext
9571 LIBS=$ac_check_lib_save_LIBS
9572 fi
9573 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9574 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9575 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9576   cat >>confdefs.h <<_ACEOF
9577 #define HAVE_LIBPAM 1
9578 _ACEOF
9579
9580   LIBS="-lpam $LIBS"
9581
9582 else
9583   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9584 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9585    { (exit 1); exit 1; }; }
9586 fi
9587
9588 fi
9589
9590 if test "$with_libxml" = yes ; then
9591
9592 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9593 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9594 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9595   $as_echo_n "(cached) " >&6
9596 else
9597   ac_check_lib_save_LIBS=$LIBS
9598 LIBS="-lxml2  $LIBS"
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605
9606 /* Override any GCC internal prototype to avoid an error.
9607    Use char because int might match the return type of a GCC
9608    builtin and then its argument prototype would still apply.  */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 char xmlSaveToBuffer ();
9613 int
9614 main ()
9615 {
9616 return xmlSaveToBuffer ();
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (ac_try="$ac_link"
9623 case "(($ac_try" in
9624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625   *) ac_try_echo=$ac_try;;
9626 esac
9627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9628 $as_echo "$ac_try_echo") >&5
9629   (eval "$ac_link") 2>conftest.er1
9630   ac_status=$?
9631   grep -v '^ *+' conftest.er1 >conftest.err
9632   rm -f conftest.er1
9633   cat conftest.err >&5
9634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } && {
9636          test -z "$ac_c_werror_flag" ||
9637          test ! -s conftest.err
9638        } && test -s conftest$ac_exeext && {
9639          test "$cross_compiling" = yes ||
9640          $as_test_x conftest$ac_exeext
9641        }; then
9642   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9643 else
9644   $as_echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9646
9647         ac_cv_lib_xml2_xmlSaveToBuffer=no
9648 fi
9649
9650 rm -rf conftest.dSYM
9651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9652       conftest$ac_exeext conftest.$ac_ext
9653 LIBS=$ac_check_lib_save_LIBS
9654 fi
9655 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9656 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9657 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9658   cat >>confdefs.h <<_ACEOF
9659 #define HAVE_LIBXML2 1
9660 _ACEOF
9661
9662   LIBS="-lxml2 $LIBS"
9663
9664 else
9665   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9666 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9667    { (exit 1); exit 1; }; }
9668 fi
9669
9670 fi
9671
9672 if test "$with_libxslt" = yes ; then
9673
9674 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9675 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9676 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9677   $as_echo_n "(cached) " >&6
9678 else
9679   ac_check_lib_save_LIBS=$LIBS
9680 LIBS="-lxslt  $LIBS"
9681 cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h.  */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h.  */
9687
9688 /* Override any GCC internal prototype to avoid an error.
9689    Use char because int might match the return type of a GCC
9690    builtin and then its argument prototype would still apply.  */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 char xsltCleanupGlobals ();
9695 int
9696 main ()
9697 {
9698 return xsltCleanupGlobals ();
9699   ;
9700   return 0;
9701 }
9702 _ACEOF
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (ac_try="$ac_link"
9705 case "(($ac_try" in
9706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707   *) ac_try_echo=$ac_try;;
9708 esac
9709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9710 $as_echo "$ac_try_echo") >&5
9711   (eval "$ac_link") 2>conftest.er1
9712   ac_status=$?
9713   grep -v '^ *+' conftest.er1 >conftest.err
9714   rm -f conftest.er1
9715   cat conftest.err >&5
9716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); } && {
9718          test -z "$ac_c_werror_flag" ||
9719          test ! -s conftest.err
9720        } && test -s conftest$ac_exeext && {
9721          test "$cross_compiling" = yes ||
9722          $as_test_x conftest$ac_exeext
9723        }; then
9724   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9725 else
9726   $as_echo "$as_me: failed program was:" >&5
9727 sed 's/^/| /' conftest.$ac_ext >&5
9728
9729         ac_cv_lib_xslt_xsltCleanupGlobals=no
9730 fi
9731
9732 rm -rf conftest.dSYM
9733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9734       conftest$ac_exeext conftest.$ac_ext
9735 LIBS=$ac_check_lib_save_LIBS
9736 fi
9737 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9738 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9739 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9740   cat >>confdefs.h <<_ACEOF
9741 #define HAVE_LIBXSLT 1
9742 _ACEOF
9743
9744   LIBS="-lxslt $LIBS"
9745
9746 else
9747   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9748 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9749    { (exit 1); exit 1; }; }
9750 fi
9751
9752 fi
9753
9754 # for contrib/sepgsql
9755 if test "$with_selinux" = yes; then
9756
9757 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9758 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9759 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9760   $as_echo_n "(cached) " >&6
9761 else
9762   ac_check_lib_save_LIBS=$LIBS
9763 LIBS="-lselinux  $LIBS"
9764 cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h.  */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h.  */
9770
9771 /* Override any GCC internal prototype to avoid an error.
9772    Use char because int might match the return type of a GCC
9773    builtin and then its argument prototype would still apply.  */
9774 #ifdef __cplusplus
9775 extern "C"
9776 #endif
9777 char selinux_status_open ();
9778 int
9779 main ()
9780 {
9781 return selinux_status_open ();
9782   ;
9783   return 0;
9784 }
9785 _ACEOF
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9788 case "(($ac_try" in
9789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790   *) ac_try_echo=$ac_try;;
9791 esac
9792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9793 $as_echo "$ac_try_echo") >&5
9794   (eval "$ac_link") 2>conftest.er1
9795   ac_status=$?
9796   grep -v '^ *+' conftest.er1 >conftest.err
9797   rm -f conftest.er1
9798   cat conftest.err >&5
9799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); } && {
9801          test -z "$ac_c_werror_flag" ||
9802          test ! -s conftest.err
9803        } && test -s conftest$ac_exeext && {
9804          test "$cross_compiling" = yes ||
9805          $as_test_x conftest$ac_exeext
9806        }; then
9807   ac_cv_lib_selinux_selinux_status_open=yes
9808 else
9809   $as_echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9811
9812         ac_cv_lib_selinux_selinux_status_open=no
9813 fi
9814
9815 rm -rf conftest.dSYM
9816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9817       conftest$ac_exeext conftest.$ac_ext
9818 LIBS=$ac_check_lib_save_LIBS
9819 fi
9820 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9821 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9822 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9823   cat >>confdefs.h <<_ACEOF
9824 #define HAVE_LIBSELINUX 1
9825 _ACEOF
9826
9827   LIBS="-lselinux $LIBS"
9828
9829 else
9830   { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9831 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9832    { (exit 1); exit 1; }; }
9833 fi
9834
9835 fi
9836
9837 # for contrib/uuid-ossp
9838 if test "$with_ossp_uuid" = yes ; then
9839   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9840 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9841 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9842   $as_echo_n "(cached) " >&6
9843 else
9844   ac_check_lib_save_LIBS=$LIBS
9845 LIBS="-lossp-uuid  $LIBS"
9846 cat >conftest.$ac_ext <<_ACEOF
9847 /* confdefs.h.  */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h.  */
9852
9853 /* Override any GCC internal prototype to avoid an error.
9854    Use char because int might match the return type of a GCC
9855    builtin and then its argument prototype would still apply.  */
9856 #ifdef __cplusplus
9857 extern "C"
9858 #endif
9859 char uuid_export ();
9860 int
9861 main ()
9862 {
9863 return uuid_export ();
9864   ;
9865   return 0;
9866 }
9867 _ACEOF
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (ac_try="$ac_link"
9870 case "(($ac_try" in
9871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872   *) ac_try_echo=$ac_try;;
9873 esac
9874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9875 $as_echo "$ac_try_echo") >&5
9876   (eval "$ac_link") 2>conftest.er1
9877   ac_status=$?
9878   grep -v '^ *+' conftest.er1 >conftest.err
9879   rm -f conftest.er1
9880   cat conftest.err >&5
9881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); } && {
9883          test -z "$ac_c_werror_flag" ||
9884          test ! -s conftest.err
9885        } && test -s conftest$ac_exeext && {
9886          test "$cross_compiling" = yes ||
9887          $as_test_x conftest$ac_exeext
9888        }; then
9889   ac_cv_lib_ossp_uuid_uuid_export=yes
9890 else
9891   $as_echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9893
9894         ac_cv_lib_ossp_uuid_uuid_export=no
9895 fi
9896
9897 rm -rf conftest.dSYM
9898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9899       conftest$ac_exeext conftest.$ac_ext
9900 LIBS=$ac_check_lib_save_LIBS
9901 fi
9902 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9903 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9904 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9905   OSSP_UUID_LIBS="-lossp-uuid"
9906 else
9907   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9908 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9909 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9910   $as_echo_n "(cached) " >&6
9911 else
9912   ac_check_lib_save_LIBS=$LIBS
9913 LIBS="-luuid  $LIBS"
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h.  */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h.  */
9920
9921 /* Override any GCC internal prototype to avoid an error.
9922    Use char because int might match the return type of a GCC
9923    builtin and then its argument prototype would still apply.  */
9924 #ifdef __cplusplus
9925 extern "C"
9926 #endif
9927 char uuid_export ();
9928 int
9929 main ()
9930 {
9931 return uuid_export ();
9932   ;
9933   return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (ac_try="$ac_link"
9938 case "(($ac_try" in
9939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940   *) ac_try_echo=$ac_try;;
9941 esac
9942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9943 $as_echo "$ac_try_echo") >&5
9944   (eval "$ac_link") 2>conftest.er1
9945   ac_status=$?
9946   grep -v '^ *+' conftest.er1 >conftest.err
9947   rm -f conftest.er1
9948   cat conftest.err >&5
9949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } && {
9951          test -z "$ac_c_werror_flag" ||
9952          test ! -s conftest.err
9953        } && test -s conftest$ac_exeext && {
9954          test "$cross_compiling" = yes ||
9955          $as_test_x conftest$ac_exeext
9956        }; then
9957   ac_cv_lib_uuid_uuid_export=yes
9958 else
9959   $as_echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9961
9962         ac_cv_lib_uuid_uuid_export=no
9963 fi
9964
9965 rm -rf conftest.dSYM
9966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9967       conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9969 fi
9970 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9971 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9972 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9973   OSSP_UUID_LIBS="-luuid"
9974 else
9975   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9976 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9977    { (exit 1); exit 1; }; }
9978 fi
9979
9980 fi
9981
9982 fi
9983
9984
9985
9986 ##
9987 ## Header files
9988 ##
9989
9990 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9991 $as_echo_n "checking for ANSI C header files... " >&6; }
9992 if test "${ac_cv_header_stdc+set}" = set; then
9993   $as_echo_n "(cached) " >&6
9994 else
9995   cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001 #include <stdlib.h>
10002 #include <stdarg.h>
10003 #include <string.h>
10004 #include <float.h>
10005
10006 int
10007 main ()
10008 {
10009
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext
10015 if { (ac_try="$ac_compile"
10016 case "(($ac_try" in
10017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018   *) ac_try_echo=$ac_try;;
10019 esac
10020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10021 $as_echo "$ac_try_echo") >&5
10022   (eval "$ac_compile") 2>conftest.er1
10023   ac_status=$?
10024   grep -v '^ *+' conftest.er1 >conftest.err
10025   rm -f conftest.er1
10026   cat conftest.err >&5
10027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028   (exit $ac_status); } && {
10029          test -z "$ac_c_werror_flag" ||
10030          test ! -s conftest.err
10031        } && test -s conftest.$ac_objext; then
10032   ac_cv_header_stdc=yes
10033 else
10034   $as_echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037         ac_cv_header_stdc=no
10038 fi
10039
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041
10042 if test $ac_cv_header_stdc = yes; then
10043   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10044   cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h.  */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h.  */
10050 #include <string.h>
10051
10052 _ACEOF
10053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10054   $EGREP "memchr" >/dev/null 2>&1; then
10055   :
10056 else
10057   ac_cv_header_stdc=no
10058 fi
10059 rm -f conftest*
10060
10061 fi
10062
10063 if test $ac_cv_header_stdc = yes; then
10064   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10065   cat >conftest.$ac_ext <<_ACEOF
10066 /* confdefs.h.  */
10067 _ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h.  */
10071 #include <stdlib.h>
10072
10073 _ACEOF
10074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10075   $EGREP "free" >/dev/null 2>&1; then
10076   :
10077 else
10078   ac_cv_header_stdc=no
10079 fi
10080 rm -f conftest*
10081
10082 fi
10083
10084 if test $ac_cv_header_stdc = yes; then
10085   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10086   if test "$cross_compiling" = yes; then
10087   :
10088 else
10089   cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h.  */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h.  */
10095 #include <ctype.h>
10096 #include <stdlib.h>
10097 #if ((' ' & 0x0FF) == 0x020)
10098 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10099 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10100 #else
10101 # define ISLOWER(c) \
10102                    (('a' <= (c) && (c) <= 'i') \
10103                      || ('j' <= (c) && (c) <= 'r') \
10104                      || ('s' <= (c) && (c) <= 'z'))
10105 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10106 #endif
10107
10108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10109 int
10110 main ()
10111 {
10112   int i;
10113   for (i = 0; i < 256; i++)
10114     if (XOR (islower (i), ISLOWER (i))
10115         || toupper (i) != TOUPPER (i))
10116       return 2;
10117   return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest$ac_exeext
10121 if { (ac_try="$ac_link"
10122 case "(($ac_try" in
10123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124   *) ac_try_echo=$ac_try;;
10125 esac
10126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10127 $as_echo "$ac_try_echo") >&5
10128   (eval "$ac_link") 2>&5
10129   ac_status=$?
10130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10132   { (case "(($ac_try" in
10133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134   *) ac_try_echo=$ac_try;;
10135 esac
10136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10137 $as_echo "$ac_try_echo") >&5
10138   (eval "$ac_try") 2>&5
10139   ac_status=$?
10140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); }; }; then
10142   :
10143 else
10144   $as_echo "$as_me: program exited with status $ac_status" >&5
10145 $as_echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148 ( exit $ac_status )
10149 ac_cv_header_stdc=no
10150 fi
10151 rm -rf conftest.dSYM
10152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10153 fi
10154
10155
10156 fi
10157 fi
10158 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10159 $as_echo "$ac_cv_header_stdc" >&6; }
10160 if test $ac_cv_header_stdc = yes; then
10161
10162 cat >>confdefs.h <<\_ACEOF
10163 #define STDC_HEADERS 1
10164 _ACEOF
10165
10166 fi
10167
10168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10179                   inttypes.h stdint.h unistd.h
10180 do
10181 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10182 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10183 $as_echo_n "checking for $ac_header... " >&6; }
10184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10185   $as_echo_n "(cached) " >&6
10186 else
10187   cat >conftest.$ac_ext <<_ACEOF
10188 /* confdefs.h.  */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h.  */
10193 $ac_includes_default
10194
10195 #include <$ac_header>
10196 _ACEOF
10197 rm -f conftest.$ac_objext
10198 if { (ac_try="$ac_compile"
10199 case "(($ac_try" in
10200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201   *) ac_try_echo=$ac_try;;
10202 esac
10203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10204 $as_echo "$ac_try_echo") >&5
10205   (eval "$ac_compile") 2>conftest.er1
10206   ac_status=$?
10207   grep -v '^ *+' conftest.er1 >conftest.err
10208   rm -f conftest.er1
10209   cat conftest.err >&5
10210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } && {
10212          test -z "$ac_c_werror_flag" ||
10213          test ! -s conftest.err
10214        } && test -s conftest.$ac_objext; then
10215   eval "$as_ac_Header=yes"
10216 else
10217   $as_echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10219
10220         eval "$as_ac_Header=no"
10221 fi
10222
10223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10224 fi
10225 ac_res=`eval 'as_val=${'$as_ac_Header'}
10226                  $as_echo "$as_val"'`
10227                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10228 $as_echo "$ac_res" >&6; }
10229 as_val=`eval 'as_val=${'$as_ac_Header'}
10230                  $as_echo "$as_val"'`
10231    if test "x$as_val" = x""yes; then
10232   cat >>confdefs.h <<_ACEOF
10233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10234 _ACEOF
10235
10236 fi
10237
10238 done
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10270 do
10271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10273   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10274 $as_echo_n "checking for $ac_header... " >&6; }
10275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10276   $as_echo_n "(cached) " >&6
10277 fi
10278 ac_res=`eval 'as_val=${'$as_ac_Header'}
10279                  $as_echo "$as_val"'`
10280                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10281 $as_echo "$ac_res" >&6; }
10282 else
10283   # Is the header compilable?
10284 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10285 $as_echo_n "checking $ac_header usability... " >&6; }
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h.  */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h.  */
10292 $ac_includes_default
10293 #include <$ac_header>
10294 _ACEOF
10295 rm -f conftest.$ac_objext
10296 if { (ac_try="$ac_compile"
10297 case "(($ac_try" in
10298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299   *) ac_try_echo=$ac_try;;
10300 esac
10301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10302 $as_echo "$ac_try_echo") >&5
10303   (eval "$ac_compile") 2>conftest.er1
10304   ac_status=$?
10305   grep -v '^ *+' conftest.er1 >conftest.err
10306   rm -f conftest.er1
10307   cat conftest.err >&5
10308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); } && {
10310          test -z "$ac_c_werror_flag" ||
10311          test ! -s conftest.err
10312        } && test -s conftest.$ac_objext; then
10313   ac_header_compiler=yes
10314 else
10315   $as_echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10317
10318         ac_header_compiler=no
10319 fi
10320
10321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10322 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10323 $as_echo "$ac_header_compiler" >&6; }
10324
10325 # Is the header present?
10326 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10327 $as_echo_n "checking $ac_header presence... " >&6; }
10328 cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h.  */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h.  */
10334 #include <$ac_header>
10335 _ACEOF
10336 if { (ac_try="$ac_cpp conftest.$ac_ext"
10337 case "(($ac_try" in
10338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339   *) ac_try_echo=$ac_try;;
10340 esac
10341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10342 $as_echo "$ac_try_echo") >&5
10343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10344   ac_status=$?
10345   grep -v '^ *+' conftest.er1 >conftest.err
10346   rm -f conftest.er1
10347   cat conftest.err >&5
10348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); } >/dev/null && {
10350          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10351          test ! -s conftest.err
10352        }; then
10353   ac_header_preproc=yes
10354 else
10355   $as_echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10357
10358   ac_header_preproc=no
10359 fi
10360
10361 rm -f conftest.err conftest.$ac_ext
10362 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10363 $as_echo "$ac_header_preproc" >&6; }
10364
10365 # So?  What about this header?
10366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10367   yes:no: )
10368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10369 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10371 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10372     ac_header_preproc=yes
10373     ;;
10374   no:yes:* )
10375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10376 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10378 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10380 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10382 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10386 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10387     ( cat <<\_ASBOX
10388 ## ---------------------------------------- ##
10389 ## Report this to pgsql-bugs@postgresql.org ##
10390 ## ---------------------------------------- ##
10391 _ASBOX
10392      ) | sed "s/^/$as_me: WARNING:     /" >&2
10393     ;;
10394 esac
10395 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10396 $as_echo_n "checking for $ac_header... " >&6; }
10397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10398   $as_echo_n "(cached) " >&6
10399 else
10400   eval "$as_ac_Header=\$ac_header_preproc"
10401 fi
10402 ac_res=`eval 'as_val=${'$as_ac_Header'}
10403                  $as_echo "$as_val"'`
10404                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10405 $as_echo "$ac_res" >&6; }
10406
10407 fi
10408 as_val=`eval 'as_val=${'$as_ac_Header'}
10409                  $as_echo "$as_val"'`
10410    if test "x$as_val" = x""yes; then
10411   cat >>confdefs.h <<_ACEOF
10412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10413 _ACEOF
10414
10415 fi
10416
10417 done
10418
10419
10420 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10421 # is included first.
10422
10423 for ac_header in net/if.h
10424 do
10425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10427 $as_echo_n "checking for $ac_header... " >&6; }
10428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10429   $as_echo_n "(cached) " >&6
10430 else
10431   cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h.  */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h.  */
10437 $ac_includes_default
10438 #ifdef HAVE_SYS_SOCKET_H
10439 #include <sys/socket.h>
10440 #endif
10441
10442
10443 #include <$ac_header>
10444 _ACEOF
10445 rm -f conftest.$ac_objext
10446 if { (ac_try="$ac_compile"
10447 case "(($ac_try" in
10448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449   *) ac_try_echo=$ac_try;;
10450 esac
10451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10452 $as_echo "$ac_try_echo") >&5
10453   (eval "$ac_compile") 2>conftest.er1
10454   ac_status=$?
10455   grep -v '^ *+' conftest.er1 >conftest.err
10456   rm -f conftest.er1
10457   cat conftest.err >&5
10458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); } && {
10460          test -z "$ac_c_werror_flag" ||
10461          test ! -s conftest.err
10462        } && test -s conftest.$ac_objext; then
10463   eval "$as_ac_Header=yes"
10464 else
10465   $as_echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468         eval "$as_ac_Header=no"
10469 fi
10470
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472 fi
10473 ac_res=`eval 'as_val=${'$as_ac_Header'}
10474                  $as_echo "$as_val"'`
10475                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10476 $as_echo "$ac_res" >&6; }
10477 as_val=`eval 'as_val=${'$as_ac_Header'}
10478                  $as_echo "$as_val"'`
10479    if test "x$as_val" = x""yes; then
10480   cat >>confdefs.h <<_ACEOF
10481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10482 _ACEOF
10483
10484 fi
10485
10486 done
10487
10488
10489 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10490 # netinet/in.h is included first.
10491
10492 for ac_header in netinet/in.h
10493 do
10494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10496   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10497 $as_echo_n "checking for $ac_header... " >&6; }
10498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10499   $as_echo_n "(cached) " >&6
10500 fi
10501 ac_res=`eval 'as_val=${'$as_ac_Header'}
10502                  $as_echo "$as_val"'`
10503                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10504 $as_echo "$ac_res" >&6; }
10505 else
10506   # Is the header compilable?
10507 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10508 $as_echo_n "checking $ac_header usability... " >&6; }
10509 cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515 $ac_includes_default
10516 #include <$ac_header>
10517 _ACEOF
10518 rm -f conftest.$ac_objext
10519 if { (ac_try="$ac_compile"
10520 case "(($ac_try" in
10521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522   *) ac_try_echo=$ac_try;;
10523 esac
10524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10525 $as_echo "$ac_try_echo") >&5
10526   (eval "$ac_compile") 2>conftest.er1
10527   ac_status=$?
10528   grep -v '^ *+' conftest.er1 >conftest.err
10529   rm -f conftest.er1
10530   cat conftest.err >&5
10531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); } && {
10533          test -z "$ac_c_werror_flag" ||
10534          test ! -s conftest.err
10535        } && test -s conftest.$ac_objext; then
10536   ac_header_compiler=yes
10537 else
10538   $as_echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541         ac_header_compiler=no
10542 fi
10543
10544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10545 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10546 $as_echo "$ac_header_compiler" >&6; }
10547
10548 # Is the header present?
10549 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10550 $as_echo_n "checking $ac_header presence... " >&6; }
10551 cat >conftest.$ac_ext <<_ACEOF
10552 /* confdefs.h.  */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h.  */
10557 #include <$ac_header>
10558 _ACEOF
10559 if { (ac_try="$ac_cpp conftest.$ac_ext"
10560 case "(($ac_try" in
10561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562   *) ac_try_echo=$ac_try;;
10563 esac
10564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10565 $as_echo "$ac_try_echo") >&5
10566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10567   ac_status=$?
10568   grep -v '^ *+' conftest.er1 >conftest.err
10569   rm -f conftest.er1
10570   cat conftest.err >&5
10571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); } >/dev/null && {
10573          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10574          test ! -s conftest.err
10575        }; then
10576   ac_header_preproc=yes
10577 else
10578   $as_echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10580
10581   ac_header_preproc=no
10582 fi
10583
10584 rm -f conftest.err conftest.$ac_ext
10585 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10586 $as_echo "$ac_header_preproc" >&6; }
10587
10588 # So?  What about this header?
10589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10590   yes:no: )
10591     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10592 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10593     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10594 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10595     ac_header_preproc=yes
10596     ;;
10597   no:yes:* )
10598     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10599 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10601 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10603 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10605 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10609 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10610     ( cat <<\_ASBOX
10611 ## ---------------------------------------- ##
10612 ## Report this to pgsql-bugs@postgresql.org ##
10613 ## ---------------------------------------- ##
10614 _ASBOX
10615      ) | sed "s/^/$as_me: WARNING:     /" >&2
10616     ;;
10617 esac
10618 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10619 $as_echo_n "checking for $ac_header... " >&6; }
10620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10621   $as_echo_n "(cached) " >&6
10622 else
10623   eval "$as_ac_Header=\$ac_header_preproc"
10624 fi
10625 ac_res=`eval 'as_val=${'$as_ac_Header'}
10626                  $as_echo "$as_val"'`
10627                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10628 $as_echo "$ac_res" >&6; }
10629
10630 fi
10631 as_val=`eval 'as_val=${'$as_ac_Header'}
10632                  $as_echo "$as_val"'`
10633    if test "x$as_val" = x""yes; then
10634   cat >>confdefs.h <<_ACEOF
10635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10636 _ACEOF
10637
10638 fi
10639
10640 done
10641
10642
10643 for ac_header in netinet/tcp.h
10644 do
10645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10646 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10647 $as_echo_n "checking for $ac_header... " >&6; }
10648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10649   $as_echo_n "(cached) " >&6
10650 else
10651   cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h.  */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h.  */
10657 $ac_includes_default
10658 #ifdef HAVE_NETINET_IN_H
10659 #include <netinet/in.h>
10660 #endif
10661
10662
10663 #include <$ac_header>
10664 _ACEOF
10665 rm -f conftest.$ac_objext
10666 if { (ac_try="$ac_compile"
10667 case "(($ac_try" in
10668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669   *) ac_try_echo=$ac_try;;
10670 esac
10671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10672 $as_echo "$ac_try_echo") >&5
10673   (eval "$ac_compile") 2>conftest.er1
10674   ac_status=$?
10675   grep -v '^ *+' conftest.er1 >conftest.err
10676   rm -f conftest.er1
10677   cat conftest.err >&5
10678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); } && {
10680          test -z "$ac_c_werror_flag" ||
10681          test ! -s conftest.err
10682        } && test -s conftest.$ac_objext; then
10683   eval "$as_ac_Header=yes"
10684 else
10685   $as_echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688         eval "$as_ac_Header=no"
10689 fi
10690
10691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692 fi
10693 ac_res=`eval 'as_val=${'$as_ac_Header'}
10694                  $as_echo "$as_val"'`
10695                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10696 $as_echo "$ac_res" >&6; }
10697 as_val=`eval 'as_val=${'$as_ac_Header'}
10698                  $as_echo "$as_val"'`
10699    if test "x$as_val" = x""yes; then
10700   cat >>confdefs.h <<_ACEOF
10701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10702 _ACEOF
10703
10704 fi
10705
10706 done
10707
10708
10709 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10710
10711 for ac_header in readline/readline.h
10712 do
10713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10715   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10716 $as_echo_n "checking for $ac_header... " >&6; }
10717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10718   $as_echo_n "(cached) " >&6
10719 fi
10720 ac_res=`eval 'as_val=${'$as_ac_Header'}
10721                  $as_echo "$as_val"'`
10722                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10723 $as_echo "$ac_res" >&6; }
10724 else
10725   # Is the header compilable?
10726 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10727 $as_echo_n "checking $ac_header usability... " >&6; }
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h.  */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h.  */
10734 $ac_includes_default
10735 #include <$ac_header>
10736 _ACEOF
10737 rm -f conftest.$ac_objext
10738 if { (ac_try="$ac_compile"
10739 case "(($ac_try" in
10740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741   *) ac_try_echo=$ac_try;;
10742 esac
10743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10744 $as_echo "$ac_try_echo") >&5
10745   (eval "$ac_compile") 2>conftest.er1
10746   ac_status=$?
10747   grep -v '^ *+' conftest.er1 >conftest.err
10748   rm -f conftest.er1
10749   cat conftest.err >&5
10750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } && {
10752          test -z "$ac_c_werror_flag" ||
10753          test ! -s conftest.err
10754        } && test -s conftest.$ac_objext; then
10755   ac_header_compiler=yes
10756 else
10757   $as_echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760         ac_header_compiler=no
10761 fi
10762
10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765 $as_echo "$ac_header_compiler" >&6; }
10766
10767 # Is the header present?
10768 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769 $as_echo_n "checking $ac_header presence... " >&6; }
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h.  */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h.  */
10776 #include <$ac_header>
10777 _ACEOF
10778 if { (ac_try="$ac_cpp conftest.$ac_ext"
10779 case "(($ac_try" in
10780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781   *) ac_try_echo=$ac_try;;
10782 esac
10783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10784 $as_echo "$ac_try_echo") >&5
10785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10786   ac_status=$?
10787   grep -v '^ *+' conftest.er1 >conftest.err
10788   rm -f conftest.er1
10789   cat conftest.err >&5
10790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); } >/dev/null && {
10792          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10793          test ! -s conftest.err
10794        }; then
10795   ac_header_preproc=yes
10796 else
10797   $as_echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800   ac_header_preproc=no
10801 fi
10802
10803 rm -f conftest.err conftest.$ac_ext
10804 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10805 $as_echo "$ac_header_preproc" >&6; }
10806
10807 # So?  What about this header?
10808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10809   yes:no: )
10810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10811 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10812     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10813 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10814     ac_header_preproc=yes
10815     ;;
10816   no:yes:* )
10817     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10818 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10819     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10820 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10821     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10822 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10824 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10825     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10826 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10827     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10828 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10829     ( cat <<\_ASBOX
10830 ## ---------------------------------------- ##
10831 ## Report this to pgsql-bugs@postgresql.org ##
10832 ## ---------------------------------------- ##
10833 _ASBOX
10834      ) | sed "s/^/$as_me: WARNING:     /" >&2
10835     ;;
10836 esac
10837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10838 $as_echo_n "checking for $ac_header... " >&6; }
10839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10840   $as_echo_n "(cached) " >&6
10841 else
10842   eval "$as_ac_Header=\$ac_header_preproc"
10843 fi
10844 ac_res=`eval 'as_val=${'$as_ac_Header'}
10845                  $as_echo "$as_val"'`
10846                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10847 $as_echo "$ac_res" >&6; }
10848
10849 fi
10850 as_val=`eval 'as_val=${'$as_ac_Header'}
10851                  $as_echo "$as_val"'`
10852    if test "x$as_val" = x""yes; then
10853   cat >>confdefs.h <<_ACEOF
10854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10855 _ACEOF
10856
10857 else
10858
10859 for ac_header in readline.h
10860 do
10861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10863   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10864 $as_echo_n "checking for $ac_header... " >&6; }
10865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10866   $as_echo_n "(cached) " >&6
10867 fi
10868 ac_res=`eval 'as_val=${'$as_ac_Header'}
10869                  $as_echo "$as_val"'`
10870                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10871 $as_echo "$ac_res" >&6; }
10872 else
10873   # Is the header compilable?
10874 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10875 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
10883 #include <$ac_header>
10884 _ACEOF
10885 rm -f conftest.$ac_objext
10886 if { (ac_try="$ac_compile"
10887 case "(($ac_try" in
10888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889   *) ac_try_echo=$ac_try;;
10890 esac
10891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10892 $as_echo "$ac_try_echo") >&5
10893   (eval "$ac_compile") 2>conftest.er1
10894   ac_status=$?
10895   grep -v '^ *+' conftest.er1 >conftest.err
10896   rm -f conftest.er1
10897   cat conftest.err >&5
10898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); } && {
10900          test -z "$ac_c_werror_flag" ||
10901          test ! -s conftest.err
10902        } && test -s conftest.$ac_objext; then
10903   ac_header_compiler=yes
10904 else
10905   $as_echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10907
10908         ac_header_compiler=no
10909 fi
10910
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10913 $as_echo "$ac_header_compiler" >&6; }
10914
10915 # Is the header present?
10916 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10917 $as_echo_n "checking $ac_header presence... " >&6; }
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h.  */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h.  */
10924 #include <$ac_header>
10925 _ACEOF
10926 if { (ac_try="$ac_cpp conftest.$ac_ext"
10927 case "(($ac_try" in
10928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929   *) ac_try_echo=$ac_try;;
10930 esac
10931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10932 $as_echo "$ac_try_echo") >&5
10933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10934   ac_status=$?
10935   grep -v '^ *+' conftest.er1 >conftest.err
10936   rm -f conftest.er1
10937   cat conftest.err >&5
10938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); } >/dev/null && {
10940          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10941          test ! -s conftest.err
10942        }; then
10943   ac_header_preproc=yes
10944 else
10945   $as_echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948   ac_header_preproc=no
10949 fi
10950
10951 rm -f conftest.err conftest.$ac_ext
10952 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10953 $as_echo "$ac_header_preproc" >&6; }
10954
10955 # So?  What about this header?
10956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10957   yes:no: )
10958     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10959 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10960     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10961 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10962     ac_header_preproc=yes
10963     ;;
10964   no:yes:* )
10965     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10966 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10967     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10968 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10969     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10970 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10971     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10972 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10973     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10974 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10975     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10976 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10977     ( cat <<\_ASBOX
10978 ## ---------------------------------------- ##
10979 ## Report this to pgsql-bugs@postgresql.org ##
10980 ## ---------------------------------------- ##
10981 _ASBOX
10982      ) | sed "s/^/$as_me: WARNING:     /" >&2
10983     ;;
10984 esac
10985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10986 $as_echo_n "checking for $ac_header... " >&6; }
10987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10988   $as_echo_n "(cached) " >&6
10989 else
10990   eval "$as_ac_Header=\$ac_header_preproc"
10991 fi
10992 ac_res=`eval 'as_val=${'$as_ac_Header'}
10993                  $as_echo "$as_val"'`
10994                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10995 $as_echo "$ac_res" >&6; }
10996
10997 fi
10998 as_val=`eval 'as_val=${'$as_ac_Header'}
10999                  $as_echo "$as_val"'`
11000    if test "x$as_val" = x""yes; then
11001   cat >>confdefs.h <<_ACEOF
11002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11003 _ACEOF
11004
11005 else
11006   { { $as_echo "$as_me:$LINENO: error: readline header not found
11007 If you have readline already installed, see config.log for details on the
11008 failure.  It is possible the compiler isn't looking in the proper directory.
11009 Use --without-readline to disable readline support." >&5
11010 $as_echo "$as_me: error: readline header not found
11011 If you have readline already installed, see config.log for details on the
11012 failure.  It is possible the compiler isn't looking in the proper directory.
11013 Use --without-readline to disable readline support." >&2;}
11014    { (exit 1); exit 1; }; }
11015 fi
11016
11017 done
11018
11019 fi
11020
11021 done
11022
11023
11024 for ac_header in readline/history.h
11025 do
11026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11028   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11029 $as_echo_n "checking for $ac_header... " >&6; }
11030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11031   $as_echo_n "(cached) " >&6
11032 fi
11033 ac_res=`eval 'as_val=${'$as_ac_Header'}
11034                  $as_echo "$as_val"'`
11035                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11036 $as_echo "$ac_res" >&6; }
11037 else
11038   # Is the header compilable?
11039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11040 $as_echo_n "checking $ac_header usability... " >&6; }
11041 cat >conftest.$ac_ext <<_ACEOF
11042 /* confdefs.h.  */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h.  */
11047 $ac_includes_default
11048 #include <$ac_header>
11049 _ACEOF
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054   *) ac_try_echo=$ac_try;;
11055 esac
11056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11057 $as_echo "$ac_try_echo") >&5
11058   (eval "$ac_compile") 2>conftest.er1
11059   ac_status=$?
11060   grep -v '^ *+' conftest.er1 >conftest.err
11061   rm -f conftest.er1
11062   cat conftest.err >&5
11063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); } && {
11065          test -z "$ac_c_werror_flag" ||
11066          test ! -s conftest.err
11067        } && test -s conftest.$ac_objext; then
11068   ac_header_compiler=yes
11069 else
11070   $as_echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11072
11073         ac_header_compiler=no
11074 fi
11075
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11078 $as_echo "$ac_header_compiler" >&6; }
11079
11080 # Is the header present?
11081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11082 $as_echo_n "checking $ac_header presence... " >&6; }
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h.  */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h.  */
11089 #include <$ac_header>
11090 _ACEOF
11091 if { (ac_try="$ac_cpp conftest.$ac_ext"
11092 case "(($ac_try" in
11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094   *) ac_try_echo=$ac_try;;
11095 esac
11096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11097 $as_echo "$ac_try_echo") >&5
11098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11099   ac_status=$?
11100   grep -v '^ *+' conftest.er1 >conftest.err
11101   rm -f conftest.er1
11102   cat conftest.err >&5
11103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } >/dev/null && {
11105          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11106          test ! -s conftest.err
11107        }; then
11108   ac_header_preproc=yes
11109 else
11110   $as_echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113   ac_header_preproc=no
11114 fi
11115
11116 rm -f conftest.err conftest.$ac_ext
11117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11118 $as_echo "$ac_header_preproc" >&6; }
11119
11120 # So?  What about this header?
11121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11122   yes:no: )
11123     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11125     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11127     ac_header_preproc=yes
11128     ;;
11129   no:yes:* )
11130     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11132     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11133 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11136     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11137 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11138     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11140     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11142     ( cat <<\_ASBOX
11143 ## ---------------------------------------- ##
11144 ## Report this to pgsql-bugs@postgresql.org ##
11145 ## ---------------------------------------- ##
11146 _ASBOX
11147      ) | sed "s/^/$as_me: WARNING:     /" >&2
11148     ;;
11149 esac
11150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 $as_echo_n "checking for $ac_header... " >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153   $as_echo_n "(cached) " >&6
11154 else
11155   eval "$as_ac_Header=\$ac_header_preproc"
11156 fi
11157 ac_res=`eval 'as_val=${'$as_ac_Header'}
11158                  $as_echo "$as_val"'`
11159                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11160 $as_echo "$ac_res" >&6; }
11161
11162 fi
11163 as_val=`eval 'as_val=${'$as_ac_Header'}
11164                  $as_echo "$as_val"'`
11165    if test "x$as_val" = x""yes; then
11166   cat >>confdefs.h <<_ACEOF
11167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11168 _ACEOF
11169
11170 else
11171
11172 for ac_header in history.h
11173 do
11174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11176   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11177 $as_echo_n "checking for $ac_header... " >&6; }
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179   $as_echo_n "(cached) " >&6
11180 fi
11181 ac_res=`eval 'as_val=${'$as_ac_Header'}
11182                  $as_echo "$as_val"'`
11183                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11184 $as_echo "$ac_res" >&6; }
11185 else
11186   # Is the header compilable?
11187 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11188 $as_echo_n "checking $ac_header usability... " >&6; }
11189 cat >conftest.$ac_ext <<_ACEOF
11190 /* confdefs.h.  */
11191 _ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h.  */
11195 $ac_includes_default
11196 #include <$ac_header>
11197 _ACEOF
11198 rm -f conftest.$ac_objext
11199 if { (ac_try="$ac_compile"
11200 case "(($ac_try" in
11201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202   *) ac_try_echo=$ac_try;;
11203 esac
11204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11205 $as_echo "$ac_try_echo") >&5
11206   (eval "$ac_compile") 2>conftest.er1
11207   ac_status=$?
11208   grep -v '^ *+' conftest.er1 >conftest.err
11209   rm -f conftest.er1
11210   cat conftest.err >&5
11211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); } && {
11213          test -z "$ac_c_werror_flag" ||
11214          test ! -s conftest.err
11215        } && test -s conftest.$ac_objext; then
11216   ac_header_compiler=yes
11217 else
11218   $as_echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11220
11221         ac_header_compiler=no
11222 fi
11223
11224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11226 $as_echo "$ac_header_compiler" >&6; }
11227
11228 # Is the header present?
11229 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11230 $as_echo_n "checking $ac_header presence... " >&6; }
11231 cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h.  */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h.  */
11237 #include <$ac_header>
11238 _ACEOF
11239 if { (ac_try="$ac_cpp conftest.$ac_ext"
11240 case "(($ac_try" in
11241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242   *) ac_try_echo=$ac_try;;
11243 esac
11244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11245 $as_echo "$ac_try_echo") >&5
11246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11247   ac_status=$?
11248   grep -v '^ *+' conftest.er1 >conftest.err
11249   rm -f conftest.er1
11250   cat conftest.err >&5
11251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); } >/dev/null && {
11253          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11254          test ! -s conftest.err
11255        }; then
11256   ac_header_preproc=yes
11257 else
11258   $as_echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11260
11261   ac_header_preproc=no
11262 fi
11263
11264 rm -f conftest.err conftest.$ac_ext
11265 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11266 $as_echo "$ac_header_preproc" >&6; }
11267
11268 # So?  What about this header?
11269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11270   yes:no: )
11271     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11272 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11273     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11274 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11275     ac_header_preproc=yes
11276     ;;
11277   no:yes:* )
11278     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11279 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11280     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11281 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11283 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11284     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11285 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11286     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11287 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11288     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11289 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11290     ( cat <<\_ASBOX
11291 ## ---------------------------------------- ##
11292 ## Report this to pgsql-bugs@postgresql.org ##
11293 ## ---------------------------------------- ##
11294 _ASBOX
11295      ) | sed "s/^/$as_me: WARNING:     /" >&2
11296     ;;
11297 esac
11298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 $as_echo_n "checking for $ac_header... " >&6; }
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301   $as_echo_n "(cached) " >&6
11302 else
11303   eval "$as_ac_Header=\$ac_header_preproc"
11304 fi
11305 ac_res=`eval 'as_val=${'$as_ac_Header'}
11306                  $as_echo "$as_val"'`
11307                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11308 $as_echo "$ac_res" >&6; }
11309
11310 fi
11311 as_val=`eval 'as_val=${'$as_ac_Header'}
11312                  $as_echo "$as_val"'`
11313    if test "x$as_val" = x""yes; then
11314   cat >>confdefs.h <<_ACEOF
11315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11316 _ACEOF
11317
11318 else
11319   { { $as_echo "$as_me:$LINENO: error: history header not found
11320 If you have readline already installed, see config.log for details on the
11321 failure.  It is possible the compiler isn't looking in the proper directory.
11322 Use --without-readline to disable readline support." >&5
11323 $as_echo "$as_me: error: history header not found
11324 If you have readline already installed, see config.log for details on the
11325 failure.  It is possible the compiler isn't looking in the proper directory.
11326 Use --without-readline to disable readline support." >&2;}
11327    { (exit 1); exit 1; }; }
11328 fi
11329
11330 done
11331
11332 fi
11333
11334 done
11335
11336 fi
11337
11338 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11339 # Some installations of libedit usurp /usr/include/readline/, which seems
11340 # bad practice, since in combined installations readline will have its headers
11341 # there.  We might have to resort to AC_EGREP checks to make sure we found
11342 # the proper header...
11343
11344 for ac_header in editline/readline.h
11345 do
11346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11348   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11349 $as_echo_n "checking for $ac_header... " >&6; }
11350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11351   $as_echo_n "(cached) " >&6
11352 fi
11353 ac_res=`eval 'as_val=${'$as_ac_Header'}
11354                  $as_echo "$as_val"'`
11355                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11356 $as_echo "$ac_res" >&6; }
11357 else
11358   # Is the header compilable?
11359 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11360 $as_echo_n "checking $ac_header usability... " >&6; }
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h.  */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h.  */
11367 $ac_includes_default
11368 #include <$ac_header>
11369 _ACEOF
11370 rm -f conftest.$ac_objext
11371 if { (ac_try="$ac_compile"
11372 case "(($ac_try" in
11373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374   *) ac_try_echo=$ac_try;;
11375 esac
11376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11377 $as_echo "$ac_try_echo") >&5
11378   (eval "$ac_compile") 2>conftest.er1
11379   ac_status=$?
11380   grep -v '^ *+' conftest.er1 >conftest.err
11381   rm -f conftest.er1
11382   cat conftest.err >&5
11383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); } && {
11385          test -z "$ac_c_werror_flag" ||
11386          test ! -s conftest.err
11387        } && test -s conftest.$ac_objext; then
11388   ac_header_compiler=yes
11389 else
11390   $as_echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11392
11393         ac_header_compiler=no
11394 fi
11395
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11398 $as_echo "$ac_header_compiler" >&6; }
11399
11400 # Is the header present?
11401 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11402 $as_echo_n "checking $ac_header presence... " >&6; }
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h.  */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h.  */
11409 #include <$ac_header>
11410 _ACEOF
11411 if { (ac_try="$ac_cpp conftest.$ac_ext"
11412 case "(($ac_try" in
11413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414   *) ac_try_echo=$ac_try;;
11415 esac
11416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11417 $as_echo "$ac_try_echo") >&5
11418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11419   ac_status=$?
11420   grep -v '^ *+' conftest.er1 >conftest.err
11421   rm -f conftest.er1
11422   cat conftest.err >&5
11423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } >/dev/null && {
11425          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11426          test ! -s conftest.err
11427        }; then
11428   ac_header_preproc=yes
11429 else
11430   $as_echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433   ac_header_preproc=no
11434 fi
11435
11436 rm -f conftest.err conftest.$ac_ext
11437 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11438 $as_echo "$ac_header_preproc" >&6; }
11439
11440 # So?  What about this header?
11441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442   yes:no: )
11443     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11444 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11445     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11446 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11447     ac_header_preproc=yes
11448     ;;
11449   no:yes:* )
11450     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11451 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11452     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11453 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11454     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11455 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11456     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11457 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11458     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11459 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11460     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11461 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11462     ( cat <<\_ASBOX
11463 ## ---------------------------------------- ##
11464 ## Report this to pgsql-bugs@postgresql.org ##
11465 ## ---------------------------------------- ##
11466 _ASBOX
11467      ) | sed "s/^/$as_me: WARNING:     /" >&2
11468     ;;
11469 esac
11470 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11471 $as_echo_n "checking for $ac_header... " >&6; }
11472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473   $as_echo_n "(cached) " >&6
11474 else
11475   eval "$as_ac_Header=\$ac_header_preproc"
11476 fi
11477 ac_res=`eval 'as_val=${'$as_ac_Header'}
11478                  $as_echo "$as_val"'`
11479                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11480 $as_echo "$ac_res" >&6; }
11481
11482 fi
11483 as_val=`eval 'as_val=${'$as_ac_Header'}
11484                  $as_echo "$as_val"'`
11485    if test "x$as_val" = x""yes; then
11486   cat >>confdefs.h <<_ACEOF
11487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11488 _ACEOF
11489
11490 else
11491
11492 for ac_header in readline.h
11493 do
11494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11497 $as_echo_n "checking for $ac_header... " >&6; }
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11499   $as_echo_n "(cached) " >&6
11500 fi
11501 ac_res=`eval 'as_val=${'$as_ac_Header'}
11502                  $as_echo "$as_val"'`
11503                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11504 $as_echo "$ac_res" >&6; }
11505 else
11506   # Is the header compilable?
11507 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508 $as_echo_n "checking $ac_header usability... " >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h.  */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h.  */
11515 $ac_includes_default
11516 #include <$ac_header>
11517 _ACEOF
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522   *) ac_try_echo=$ac_try;;
11523 esac
11524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11525 $as_echo "$ac_try_echo") >&5
11526   (eval "$ac_compile") 2>conftest.er1
11527   ac_status=$?
11528   grep -v '^ *+' conftest.er1 >conftest.err
11529   rm -f conftest.er1
11530   cat conftest.err >&5
11531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); } && {
11533          test -z "$ac_c_werror_flag" ||
11534          test ! -s conftest.err
11535        } && test -s conftest.$ac_objext; then
11536   ac_header_compiler=yes
11537 else
11538   $as_echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11540
11541         ac_header_compiler=no
11542 fi
11543
11544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11546 $as_echo "$ac_header_compiler" >&6; }
11547
11548 # Is the header present?
11549 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11550 $as_echo_n "checking $ac_header presence... " >&6; }
11551 cat >conftest.$ac_ext <<_ACEOF
11552 /* confdefs.h.  */
11553 _ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h.  */
11557 #include <$ac_header>
11558 _ACEOF
11559 if { (ac_try="$ac_cpp conftest.$ac_ext"
11560 case "(($ac_try" in
11561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562   *) ac_try_echo=$ac_try;;
11563 esac
11564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11565 $as_echo "$ac_try_echo") >&5
11566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11567   ac_status=$?
11568   grep -v '^ *+' conftest.er1 >conftest.err
11569   rm -f conftest.er1
11570   cat conftest.err >&5
11571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); } >/dev/null && {
11573          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11574          test ! -s conftest.err
11575        }; then
11576   ac_header_preproc=yes
11577 else
11578   $as_echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581   ac_header_preproc=no
11582 fi
11583
11584 rm -f conftest.err conftest.$ac_ext
11585 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11586 $as_echo "$ac_header_preproc" >&6; }
11587
11588 # So?  What about this header?
11589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11590   yes:no: )
11591     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11592 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11593     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11594 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11595     ac_header_preproc=yes
11596     ;;
11597   no:yes:* )
11598     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11599 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11601 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11603 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11605 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11609 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11610     ( cat <<\_ASBOX
11611 ## ---------------------------------------- ##
11612 ## Report this to pgsql-bugs@postgresql.org ##
11613 ## ---------------------------------------- ##
11614 _ASBOX
11615      ) | sed "s/^/$as_me: WARNING:     /" >&2
11616     ;;
11617 esac
11618 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11619 $as_echo_n "checking for $ac_header... " >&6; }
11620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11621   $as_echo_n "(cached) " >&6
11622 else
11623   eval "$as_ac_Header=\$ac_header_preproc"
11624 fi
11625 ac_res=`eval 'as_val=${'$as_ac_Header'}
11626                  $as_echo "$as_val"'`
11627                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11628 $as_echo "$ac_res" >&6; }
11629
11630 fi
11631 as_val=`eval 'as_val=${'$as_ac_Header'}
11632                  $as_echo "$as_val"'`
11633    if test "x$as_val" = x""yes; then
11634   cat >>confdefs.h <<_ACEOF
11635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11636 _ACEOF
11637
11638 else
11639
11640 for ac_header in readline/readline.h
11641 do
11642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11644   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11645 $as_echo_n "checking for $ac_header... " >&6; }
11646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11647   $as_echo_n "(cached) " >&6
11648 fi
11649 ac_res=`eval 'as_val=${'$as_ac_Header'}
11650                  $as_echo "$as_val"'`
11651                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11652 $as_echo "$ac_res" >&6; }
11653 else
11654   # Is the header compilable?
11655 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11656 $as_echo_n "checking $ac_header usability... " >&6; }
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h.  */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h.  */
11663 $ac_includes_default
11664 #include <$ac_header>
11665 _ACEOF
11666 rm -f conftest.$ac_objext
11667 if { (ac_try="$ac_compile"
11668 case "(($ac_try" in
11669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670   *) ac_try_echo=$ac_try;;
11671 esac
11672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11673 $as_echo "$ac_try_echo") >&5
11674   (eval "$ac_compile") 2>conftest.er1
11675   ac_status=$?
11676   grep -v '^ *+' conftest.er1 >conftest.err
11677   rm -f conftest.er1
11678   cat conftest.err >&5
11679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); } && {
11681          test -z "$ac_c_werror_flag" ||
11682          test ! -s conftest.err
11683        } && test -s conftest.$ac_objext; then
11684   ac_header_compiler=yes
11685 else
11686   $as_echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689         ac_header_compiler=no
11690 fi
11691
11692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11693 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11694 $as_echo "$ac_header_compiler" >&6; }
11695
11696 # Is the header present?
11697 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11698 $as_echo_n "checking $ac_header presence... " >&6; }
11699 cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h.  */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h.  */
11705 #include <$ac_header>
11706 _ACEOF
11707 if { (ac_try="$ac_cpp conftest.$ac_ext"
11708 case "(($ac_try" in
11709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710   *) ac_try_echo=$ac_try;;
11711 esac
11712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11713 $as_echo "$ac_try_echo") >&5
11714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11715   ac_status=$?
11716   grep -v '^ *+' conftest.er1 >conftest.err
11717   rm -f conftest.er1
11718   cat conftest.err >&5
11719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); } >/dev/null && {
11721          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11722          test ! -s conftest.err
11723        }; then
11724   ac_header_preproc=yes
11725 else
11726   $as_echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11728
11729   ac_header_preproc=no
11730 fi
11731
11732 rm -f conftest.err conftest.$ac_ext
11733 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11734 $as_echo "$ac_header_preproc" >&6; }
11735
11736 # So?  What about this header?
11737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11738   yes:no: )
11739     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11740 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11741     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11743     ac_header_preproc=yes
11744     ;;
11745   no:yes:* )
11746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11747 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11748     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11749 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11750     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11751 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11752     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11753 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11754     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11755 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11756     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11757 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11758     ( cat <<\_ASBOX
11759 ## ---------------------------------------- ##
11760 ## Report this to pgsql-bugs@postgresql.org ##
11761 ## ---------------------------------------- ##
11762 _ASBOX
11763      ) | sed "s/^/$as_me: WARNING:     /" >&2
11764     ;;
11765 esac
11766 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11767 $as_echo_n "checking for $ac_header... " >&6; }
11768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11769   $as_echo_n "(cached) " >&6
11770 else
11771   eval "$as_ac_Header=\$ac_header_preproc"
11772 fi
11773 ac_res=`eval 'as_val=${'$as_ac_Header'}
11774                  $as_echo "$as_val"'`
11775                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11776 $as_echo "$ac_res" >&6; }
11777
11778 fi
11779 as_val=`eval 'as_val=${'$as_ac_Header'}
11780                  $as_echo "$as_val"'`
11781    if test "x$as_val" = x""yes; then
11782   cat >>confdefs.h <<_ACEOF
11783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11784 _ACEOF
11785
11786 else
11787   { { $as_echo "$as_me:$LINENO: error: readline header not found
11788 If you have libedit already installed, see config.log for details on the
11789 failure.  It is possible the compiler isn't looking in the proper directory.
11790 Use --without-readline to disable libedit support." >&5
11791 $as_echo "$as_me: error: readline header not found
11792 If you have libedit already installed, see config.log for details on the
11793 failure.  It is possible the compiler isn't looking in the proper directory.
11794 Use --without-readline to disable libedit support." >&2;}
11795    { (exit 1); exit 1; }; }
11796 fi
11797
11798 done
11799
11800 fi
11801
11802 done
11803
11804 fi
11805
11806 done
11807
11808 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11809 # not be there at all.  Hence, don't complain if not found.  We must check
11810 # though, since in yet other versions it is an independent header.
11811
11812 for ac_header in editline/history.h
11813 do
11814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11816   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11817 $as_echo_n "checking for $ac_header... " >&6; }
11818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11819   $as_echo_n "(cached) " >&6
11820 fi
11821 ac_res=`eval 'as_val=${'$as_ac_Header'}
11822                  $as_echo "$as_val"'`
11823                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11824 $as_echo "$ac_res" >&6; }
11825 else
11826   # Is the header compilable?
11827 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11828 $as_echo_n "checking $ac_header usability... " >&6; }
11829 cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 $ac_includes_default
11836 #include <$ac_header>
11837 _ACEOF
11838 rm -f conftest.$ac_objext
11839 if { (ac_try="$ac_compile"
11840 case "(($ac_try" in
11841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842   *) ac_try_echo=$ac_try;;
11843 esac
11844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11845 $as_echo "$ac_try_echo") >&5
11846   (eval "$ac_compile") 2>conftest.er1
11847   ac_status=$?
11848   grep -v '^ *+' conftest.er1 >conftest.err
11849   rm -f conftest.er1
11850   cat conftest.err >&5
11851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); } && {
11853          test -z "$ac_c_werror_flag" ||
11854          test ! -s conftest.err
11855        } && test -s conftest.$ac_objext; then
11856   ac_header_compiler=yes
11857 else
11858   $as_echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11860
11861         ac_header_compiler=no
11862 fi
11863
11864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11866 $as_echo "$ac_header_compiler" >&6; }
11867
11868 # Is the header present?
11869 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11870 $as_echo_n "checking $ac_header presence... " >&6; }
11871 cat >conftest.$ac_ext <<_ACEOF
11872 /* confdefs.h.  */
11873 _ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h.  */
11877 #include <$ac_header>
11878 _ACEOF
11879 if { (ac_try="$ac_cpp conftest.$ac_ext"
11880 case "(($ac_try" in
11881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882   *) ac_try_echo=$ac_try;;
11883 esac
11884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11885 $as_echo "$ac_try_echo") >&5
11886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } >/dev/null && {
11893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11894          test ! -s conftest.err
11895        }; then
11896   ac_header_preproc=yes
11897 else
11898   $as_echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11900
11901   ac_header_preproc=no
11902 fi
11903
11904 rm -f conftest.err conftest.$ac_ext
11905 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11906 $as_echo "$ac_header_preproc" >&6; }
11907
11908 # So?  What about this header?
11909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11910   yes:no: )
11911     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11912 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11913     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11915     ac_header_preproc=yes
11916     ;;
11917   no:yes:* )
11918     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11919 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11920     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11921 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11922     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11923 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11924     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11925 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11926     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11927 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11928     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11929 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11930     ( cat <<\_ASBOX
11931 ## ---------------------------------------- ##
11932 ## Report this to pgsql-bugs@postgresql.org ##
11933 ## ---------------------------------------- ##
11934 _ASBOX
11935      ) | sed "s/^/$as_me: WARNING:     /" >&2
11936     ;;
11937 esac
11938 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11939 $as_echo_n "checking for $ac_header... " >&6; }
11940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11941   $as_echo_n "(cached) " >&6
11942 else
11943   eval "$as_ac_Header=\$ac_header_preproc"
11944 fi
11945 ac_res=`eval 'as_val=${'$as_ac_Header'}
11946                  $as_echo "$as_val"'`
11947                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11948 $as_echo "$ac_res" >&6; }
11949
11950 fi
11951 as_val=`eval 'as_val=${'$as_ac_Header'}
11952                  $as_echo "$as_val"'`
11953    if test "x$as_val" = x""yes; then
11954   cat >>confdefs.h <<_ACEOF
11955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956 _ACEOF
11957
11958 else
11959
11960 for ac_header in history.h
11961 do
11962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11964   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11965 $as_echo_n "checking for $ac_header... " >&6; }
11966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11967   $as_echo_n "(cached) " >&6
11968 fi
11969 ac_res=`eval 'as_val=${'$as_ac_Header'}
11970                  $as_echo "$as_val"'`
11971                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11972 $as_echo "$ac_res" >&6; }
11973 else
11974   # Is the header compilable?
11975 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11976 $as_echo_n "checking $ac_header usability... " >&6; }
11977 cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h.  */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h.  */
11983 $ac_includes_default
11984 #include <$ac_header>
11985 _ACEOF
11986 rm -f conftest.$ac_objext
11987 if { (ac_try="$ac_compile"
11988 case "(($ac_try" in
11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990   *) ac_try_echo=$ac_try;;
11991 esac
11992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11993 $as_echo "$ac_try_echo") >&5
11994   (eval "$ac_compile") 2>conftest.er1
11995   ac_status=$?
11996   grep -v '^ *+' conftest.er1 >conftest.err
11997   rm -f conftest.er1
11998   cat conftest.err >&5
11999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } && {
12001          test -z "$ac_c_werror_flag" ||
12002          test ! -s conftest.err
12003        } && test -s conftest.$ac_objext; then
12004   ac_header_compiler=yes
12005 else
12006   $as_echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009         ac_header_compiler=no
12010 fi
12011
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12014 $as_echo "$ac_header_compiler" >&6; }
12015
12016 # Is the header present?
12017 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12018 $as_echo_n "checking $ac_header presence... " >&6; }
12019 cat >conftest.$ac_ext <<_ACEOF
12020 /* confdefs.h.  */
12021 _ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h.  */
12025 #include <$ac_header>
12026 _ACEOF
12027 if { (ac_try="$ac_cpp conftest.$ac_ext"
12028 case "(($ac_try" in
12029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030   *) ac_try_echo=$ac_try;;
12031 esac
12032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12033 $as_echo "$ac_try_echo") >&5
12034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12035   ac_status=$?
12036   grep -v '^ *+' conftest.er1 >conftest.err
12037   rm -f conftest.er1
12038   cat conftest.err >&5
12039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } >/dev/null && {
12041          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12042          test ! -s conftest.err
12043        }; then
12044   ac_header_preproc=yes
12045 else
12046   $as_echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12048
12049   ac_header_preproc=no
12050 fi
12051
12052 rm -f conftest.err conftest.$ac_ext
12053 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12054 $as_echo "$ac_header_preproc" >&6; }
12055
12056 # So?  What about this header?
12057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12058   yes:no: )
12059     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12060 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12061     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12063     ac_header_preproc=yes
12064     ;;
12065   no:yes:* )
12066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12067 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12068     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12069 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12071 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12073 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12074     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12075 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12076     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12077 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12078     ( cat <<\_ASBOX
12079 ## ---------------------------------------- ##
12080 ## Report this to pgsql-bugs@postgresql.org ##
12081 ## ---------------------------------------- ##
12082 _ASBOX
12083      ) | sed "s/^/$as_me: WARNING:     /" >&2
12084     ;;
12085 esac
12086 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12087 $as_echo_n "checking for $ac_header... " >&6; }
12088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12089   $as_echo_n "(cached) " >&6
12090 else
12091   eval "$as_ac_Header=\$ac_header_preproc"
12092 fi
12093 ac_res=`eval 'as_val=${'$as_ac_Header'}
12094                  $as_echo "$as_val"'`
12095                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12096 $as_echo "$ac_res" >&6; }
12097
12098 fi
12099 as_val=`eval 'as_val=${'$as_ac_Header'}
12100                  $as_echo "$as_val"'`
12101    if test "x$as_val" = x""yes; then
12102   cat >>confdefs.h <<_ACEOF
12103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12104 _ACEOF
12105
12106 else
12107
12108 for ac_header in readline/history.h
12109 do
12110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12112   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12113 $as_echo_n "checking for $ac_header... " >&6; }
12114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12115   $as_echo_n "(cached) " >&6
12116 fi
12117 ac_res=`eval 'as_val=${'$as_ac_Header'}
12118                  $as_echo "$as_val"'`
12119                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12120 $as_echo "$ac_res" >&6; }
12121 else
12122   # Is the header compilable?
12123 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12124 $as_echo_n "checking $ac_header usability... " >&6; }
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h.  */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h.  */
12131 $ac_includes_default
12132 #include <$ac_header>
12133 _ACEOF
12134 rm -f conftest.$ac_objext
12135 if { (ac_try="$ac_compile"
12136 case "(($ac_try" in
12137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138   *) ac_try_echo=$ac_try;;
12139 esac
12140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12141 $as_echo "$ac_try_echo") >&5
12142   (eval "$ac_compile") 2>conftest.er1
12143   ac_status=$?
12144   grep -v '^ *+' conftest.er1 >conftest.err
12145   rm -f conftest.er1
12146   cat conftest.err >&5
12147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } && {
12149          test -z "$ac_c_werror_flag" ||
12150          test ! -s conftest.err
12151        } && test -s conftest.$ac_objext; then
12152   ac_header_compiler=yes
12153 else
12154   $as_echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12156
12157         ac_header_compiler=no
12158 fi
12159
12160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12162 $as_echo "$ac_header_compiler" >&6; }
12163
12164 # Is the header present?
12165 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12166 $as_echo_n "checking $ac_header presence... " >&6; }
12167 cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h.  */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h.  */
12173 #include <$ac_header>
12174 _ACEOF
12175 if { (ac_try="$ac_cpp conftest.$ac_ext"
12176 case "(($ac_try" in
12177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178   *) ac_try_echo=$ac_try;;
12179 esac
12180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12181 $as_echo "$ac_try_echo") >&5
12182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12183   ac_status=$?
12184   grep -v '^ *+' conftest.er1 >conftest.err
12185   rm -f conftest.er1
12186   cat conftest.err >&5
12187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } >/dev/null && {
12189          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12190          test ! -s conftest.err
12191        }; then
12192   ac_header_preproc=yes
12193 else
12194   $as_echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12196
12197   ac_header_preproc=no
12198 fi
12199
12200 rm -f conftest.err conftest.$ac_ext
12201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 $as_echo "$ac_header_preproc" >&6; }
12203
12204 # So?  What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12206   yes:no: )
12207     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12208 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12211     ac_header_preproc=yes
12212     ;;
12213   no:yes:* )
12214     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12215 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12216     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12217 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12219 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12221 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12225 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12226     ( cat <<\_ASBOX
12227 ## ---------------------------------------- ##
12228 ## Report this to pgsql-bugs@postgresql.org ##
12229 ## ---------------------------------------- ##
12230 _ASBOX
12231      ) | sed "s/^/$as_me: WARNING:     /" >&2
12232     ;;
12233 esac
12234 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12235 $as_echo_n "checking for $ac_header... " >&6; }
12236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12237   $as_echo_n "(cached) " >&6
12238 else
12239   eval "$as_ac_Header=\$ac_header_preproc"
12240 fi
12241 ac_res=`eval 'as_val=${'$as_ac_Header'}
12242                  $as_echo "$as_val"'`
12243                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12244 $as_echo "$ac_res" >&6; }
12245
12246 fi
12247 as_val=`eval 'as_val=${'$as_ac_Header'}
12248                  $as_echo "$as_val"'`
12249    if test "x$as_val" = x""yes; then
12250   cat >>confdefs.h <<_ACEOF
12251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12252 _ACEOF
12253
12254 fi
12255
12256 done
12257
12258 fi
12259
12260 done
12261
12262 fi
12263
12264 done
12265
12266 fi
12267
12268 if test "$with_zlib" = yes; then
12269   if test "${ac_cv_header_zlib_h+set}" = set; then
12270   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12271 $as_echo_n "checking for zlib.h... " >&6; }
12272 if test "${ac_cv_header_zlib_h+set}" = set; then
12273   $as_echo_n "(cached) " >&6
12274 fi
12275 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12276 $as_echo "$ac_cv_header_zlib_h" >&6; }
12277 else
12278   # Is the header compilable?
12279 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12280 $as_echo_n "checking zlib.h usability... " >&6; }
12281 cat >conftest.$ac_ext <<_ACEOF
12282 /* confdefs.h.  */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h.  */
12287 $ac_includes_default
12288 #include <zlib.h>
12289 _ACEOF
12290 rm -f conftest.$ac_objext
12291 if { (ac_try="$ac_compile"
12292 case "(($ac_try" in
12293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294   *) ac_try_echo=$ac_try;;
12295 esac
12296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12297 $as_echo "$ac_try_echo") >&5
12298   (eval "$ac_compile") 2>conftest.er1
12299   ac_status=$?
12300   grep -v '^ *+' conftest.er1 >conftest.err
12301   rm -f conftest.er1
12302   cat conftest.err >&5
12303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); } && {
12305          test -z "$ac_c_werror_flag" ||
12306          test ! -s conftest.err
12307        } && test -s conftest.$ac_objext; then
12308   ac_header_compiler=yes
12309 else
12310   $as_echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313         ac_header_compiler=no
12314 fi
12315
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12318 $as_echo "$ac_header_compiler" >&6; }
12319
12320 # Is the header present?
12321 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12322 $as_echo_n "checking zlib.h presence... " >&6; }
12323 cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h.  */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h.  */
12329 #include <zlib.h>
12330 _ACEOF
12331 if { (ac_try="$ac_cpp conftest.$ac_ext"
12332 case "(($ac_try" in
12333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334   *) ac_try_echo=$ac_try;;
12335 esac
12336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12337 $as_echo "$ac_try_echo") >&5
12338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12339   ac_status=$?
12340   grep -v '^ *+' conftest.er1 >conftest.err
12341   rm -f conftest.er1
12342   cat conftest.err >&5
12343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); } >/dev/null && {
12345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12346          test ! -s conftest.err
12347        }; then
12348   ac_header_preproc=yes
12349 else
12350   $as_echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353   ac_header_preproc=no
12354 fi
12355
12356 rm -f conftest.err conftest.$ac_ext
12357 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12358 $as_echo "$ac_header_preproc" >&6; }
12359
12360 # So?  What about this header?
12361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12362   yes:no: )
12363     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12364 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12365     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12366 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12367     ac_header_preproc=yes
12368     ;;
12369   no:yes:* )
12370     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12371 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12372     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12373 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12374     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12375 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12376     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12377 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12378     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12379 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12380     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12381 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12382     ( cat <<\_ASBOX
12383 ## ---------------------------------------- ##
12384 ## Report this to pgsql-bugs@postgresql.org ##
12385 ## ---------------------------------------- ##
12386 _ASBOX
12387      ) | sed "s/^/$as_me: WARNING:     /" >&2
12388     ;;
12389 esac
12390 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12391 $as_echo_n "checking for zlib.h... " >&6; }
12392 if test "${ac_cv_header_zlib_h+set}" = set; then
12393   $as_echo_n "(cached) " >&6
12394 else
12395   ac_cv_header_zlib_h=$ac_header_preproc
12396 fi
12397 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12398 $as_echo "$ac_cv_header_zlib_h" >&6; }
12399
12400 fi
12401 if test "x$ac_cv_header_zlib_h" = x""yes; then
12402   :
12403 else
12404   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12405 If you have zlib already installed, see config.log for details on the
12406 failure.  It is possible the compiler isn't looking in the proper directory.
12407 Use --without-zlib to disable zlib support." >&5
12408 $as_echo "$as_me: error: zlib header not found
12409 If you have zlib already installed, see config.log for details on the
12410 failure.  It is possible the compiler isn't looking in the proper directory.
12411 Use --without-zlib to disable zlib support." >&2;}
12412    { (exit 1); exit 1; }; }
12413 fi
12414
12415
12416 fi
12417
12418 if test "$with_gssapi" = yes ; then
12419
12420 for ac_header in gssapi/gssapi.h
12421 do
12422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12424   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12425 $as_echo_n "checking for $ac_header... " >&6; }
12426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12427   $as_echo_n "(cached) " >&6
12428 fi
12429 ac_res=`eval 'as_val=${'$as_ac_Header'}
12430                  $as_echo "$as_val"'`
12431                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12432 $as_echo "$ac_res" >&6; }
12433 else
12434   # Is the header compilable?
12435 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12436 $as_echo_n "checking $ac_header usability... " >&6; }
12437 cat >conftest.$ac_ext <<_ACEOF
12438 /* confdefs.h.  */
12439 _ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h.  */
12443 $ac_includes_default
12444 #include <$ac_header>
12445 _ACEOF
12446 rm -f conftest.$ac_objext
12447 if { (ac_try="$ac_compile"
12448 case "(($ac_try" in
12449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450   *) ac_try_echo=$ac_try;;
12451 esac
12452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12453 $as_echo "$ac_try_echo") >&5
12454   (eval "$ac_compile") 2>conftest.er1
12455   ac_status=$?
12456   grep -v '^ *+' conftest.er1 >conftest.err
12457   rm -f conftest.er1
12458   cat conftest.err >&5
12459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); } && {
12461          test -z "$ac_c_werror_flag" ||
12462          test ! -s conftest.err
12463        } && test -s conftest.$ac_objext; then
12464   ac_header_compiler=yes
12465 else
12466   $as_echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12468
12469         ac_header_compiler=no
12470 fi
12471
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12474 $as_echo "$ac_header_compiler" >&6; }
12475
12476 # Is the header present?
12477 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12478 $as_echo_n "checking $ac_header presence... " >&6; }
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485 #include <$ac_header>
12486 _ACEOF
12487 if { (ac_try="$ac_cpp conftest.$ac_ext"
12488 case "(($ac_try" in
12489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490   *) ac_try_echo=$ac_try;;
12491 esac
12492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12493 $as_echo "$ac_try_echo") >&5
12494   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12495   ac_status=$?
12496   grep -v '^ *+' conftest.er1 >conftest.err
12497   rm -f conftest.er1
12498   cat conftest.err >&5
12499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } >/dev/null && {
12501          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12502          test ! -s conftest.err
12503        }; then
12504   ac_header_preproc=yes
12505 else
12506   $as_echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509   ac_header_preproc=no
12510 fi
12511
12512 rm -f conftest.err conftest.$ac_ext
12513 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12514 $as_echo "$ac_header_preproc" >&6; }
12515
12516 # So?  What about this header?
12517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12518   yes:no: )
12519     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12520 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12521     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12522 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12523     ac_header_preproc=yes
12524     ;;
12525   no:yes:* )
12526     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12527 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12528     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12529 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12530     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12531 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12532     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12533 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12534     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12535 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12537 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12538     ( cat <<\_ASBOX
12539 ## ---------------------------------------- ##
12540 ## Report this to pgsql-bugs@postgresql.org ##
12541 ## ---------------------------------------- ##
12542 _ASBOX
12543      ) | sed "s/^/$as_me: WARNING:     /" >&2
12544     ;;
12545 esac
12546 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12547 $as_echo_n "checking for $ac_header... " >&6; }
12548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12549   $as_echo_n "(cached) " >&6
12550 else
12551   eval "$as_ac_Header=\$ac_header_preproc"
12552 fi
12553 ac_res=`eval 'as_val=${'$as_ac_Header'}
12554                  $as_echo "$as_val"'`
12555                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12556 $as_echo "$ac_res" >&6; }
12557
12558 fi
12559 as_val=`eval 'as_val=${'$as_ac_Header'}
12560                  $as_echo "$as_val"'`
12561    if test "x$as_val" = x""yes; then
12562   cat >>confdefs.h <<_ACEOF
12563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12564 _ACEOF
12565
12566 else
12567
12568 for ac_header in gssapi.h
12569 do
12570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12572   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12573 $as_echo_n "checking for $ac_header... " >&6; }
12574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12575   $as_echo_n "(cached) " >&6
12576 fi
12577 ac_res=`eval 'as_val=${'$as_ac_Header'}
12578                  $as_echo "$as_val"'`
12579                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12580 $as_echo "$ac_res" >&6; }
12581 else
12582   # Is the header compilable?
12583 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12584 $as_echo_n "checking $ac_header usability... " >&6; }
12585 cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h.  */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h.  */
12591 $ac_includes_default
12592 #include <$ac_header>
12593 _ACEOF
12594 rm -f conftest.$ac_objext
12595 if { (ac_try="$ac_compile"
12596 case "(($ac_try" in
12597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598   *) ac_try_echo=$ac_try;;
12599 esac
12600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12601 $as_echo "$ac_try_echo") >&5
12602   (eval "$ac_compile") 2>conftest.er1
12603   ac_status=$?
12604   grep -v '^ *+' conftest.er1 >conftest.err
12605   rm -f conftest.er1
12606   cat conftest.err >&5
12607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); } && {
12609          test -z "$ac_c_werror_flag" ||
12610          test ! -s conftest.err
12611        } && test -s conftest.$ac_objext; then
12612   ac_header_compiler=yes
12613 else
12614   $as_echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12616
12617         ac_header_compiler=no
12618 fi
12619
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12622 $as_echo "$ac_header_compiler" >&6; }
12623
12624 # Is the header present?
12625 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12626 $as_echo_n "checking $ac_header presence... " >&6; }
12627 cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h.  */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h.  */
12633 #include <$ac_header>
12634 _ACEOF
12635 if { (ac_try="$ac_cpp conftest.$ac_ext"
12636 case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12641 $as_echo "$ac_try_echo") >&5
12642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12643   ac_status=$?
12644   grep -v '^ *+' conftest.er1 >conftest.err
12645   rm -f conftest.er1
12646   cat conftest.err >&5
12647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } >/dev/null && {
12649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12650          test ! -s conftest.err
12651        }; then
12652   ac_header_preproc=yes
12653 else
12654   $as_echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657   ac_header_preproc=no
12658 fi
12659
12660 rm -f conftest.err conftest.$ac_ext
12661 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12662 $as_echo "$ac_header_preproc" >&6; }
12663
12664 # So?  What about this header?
12665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12666   yes:no: )
12667     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12668 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12669     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12671     ac_header_preproc=yes
12672     ;;
12673   no:yes:* )
12674     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12675 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12676     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12677 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12678     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12679 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12680     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12681 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12682     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12684     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12685 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12686     ( cat <<\_ASBOX
12687 ## ---------------------------------------- ##
12688 ## Report this to pgsql-bugs@postgresql.org ##
12689 ## ---------------------------------------- ##
12690 _ASBOX
12691      ) | sed "s/^/$as_me: WARNING:     /" >&2
12692     ;;
12693 esac
12694 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12695 $as_echo_n "checking for $ac_header... " >&6; }
12696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12697   $as_echo_n "(cached) " >&6
12698 else
12699   eval "$as_ac_Header=\$ac_header_preproc"
12700 fi
12701 ac_res=`eval 'as_val=${'$as_ac_Header'}
12702                  $as_echo "$as_val"'`
12703                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12704 $as_echo "$ac_res" >&6; }
12705
12706 fi
12707 as_val=`eval 'as_val=${'$as_ac_Header'}
12708                  $as_echo "$as_val"'`
12709    if test "x$as_val" = x""yes; then
12710   cat >>confdefs.h <<_ACEOF
12711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12712 _ACEOF
12713
12714 else
12715   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12716 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12717    { (exit 1); exit 1; }; }
12718 fi
12719
12720 done
12721
12722 fi
12723
12724 done
12725
12726 fi
12727
12728 if test "$with_krb5" = yes ; then
12729   if test "${ac_cv_header_krb5_h+set}" = set; then
12730   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12731 $as_echo_n "checking for krb5.h... " >&6; }
12732 if test "${ac_cv_header_krb5_h+set}" = set; then
12733   $as_echo_n "(cached) " >&6
12734 fi
12735 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12736 $as_echo "$ac_cv_header_krb5_h" >&6; }
12737 else
12738   # Is the header compilable?
12739 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12740 $as_echo_n "checking krb5.h usability... " >&6; }
12741 cat >conftest.$ac_ext <<_ACEOF
12742 /* confdefs.h.  */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h.  */
12747 $ac_includes_default
12748 #include <krb5.h>
12749 _ACEOF
12750 rm -f conftest.$ac_objext
12751 if { (ac_try="$ac_compile"
12752 case "(($ac_try" in
12753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754   *) ac_try_echo=$ac_try;;
12755 esac
12756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12757 $as_echo "$ac_try_echo") >&5
12758   (eval "$ac_compile") 2>conftest.er1
12759   ac_status=$?
12760   grep -v '^ *+' conftest.er1 >conftest.err
12761   rm -f conftest.er1
12762   cat conftest.err >&5
12763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); } && {
12765          test -z "$ac_c_werror_flag" ||
12766          test ! -s conftest.err
12767        } && test -s conftest.$ac_objext; then
12768   ac_header_compiler=yes
12769 else
12770   $as_echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12772
12773         ac_header_compiler=no
12774 fi
12775
12776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12778 $as_echo "$ac_header_compiler" >&6; }
12779
12780 # Is the header present?
12781 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12782 $as_echo_n "checking krb5.h presence... " >&6; }
12783 cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h.  */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h.  */
12789 #include <krb5.h>
12790 _ACEOF
12791 if { (ac_try="$ac_cpp conftest.$ac_ext"
12792 case "(($ac_try" in
12793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794   *) ac_try_echo=$ac_try;;
12795 esac
12796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12797 $as_echo "$ac_try_echo") >&5
12798   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12799   ac_status=$?
12800   grep -v '^ *+' conftest.er1 >conftest.err
12801   rm -f conftest.er1
12802   cat conftest.err >&5
12803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); } >/dev/null && {
12805          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12806          test ! -s conftest.err
12807        }; then
12808   ac_header_preproc=yes
12809 else
12810   $as_echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813   ac_header_preproc=no
12814 fi
12815
12816 rm -f conftest.err conftest.$ac_ext
12817 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12818 $as_echo "$ac_header_preproc" >&6; }
12819
12820 # So?  What about this header?
12821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12822   yes:no: )
12823     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12824 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12825     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12826 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12827     ac_header_preproc=yes
12828     ;;
12829   no:yes:* )
12830     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12831 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12832     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12833 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12834     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12835 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12836     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12837 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12838     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12839 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12840     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12841 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12842     ( cat <<\_ASBOX
12843 ## ---------------------------------------- ##
12844 ## Report this to pgsql-bugs@postgresql.org ##
12845 ## ---------------------------------------- ##
12846 _ASBOX
12847      ) | sed "s/^/$as_me: WARNING:     /" >&2
12848     ;;
12849 esac
12850 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12851 $as_echo_n "checking for krb5.h... " >&6; }
12852 if test "${ac_cv_header_krb5_h+set}" = set; then
12853   $as_echo_n "(cached) " >&6
12854 else
12855   ac_cv_header_krb5_h=$ac_header_preproc
12856 fi
12857 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12858 $as_echo "$ac_cv_header_krb5_h" >&6; }
12859
12860 fi
12861 if test "x$ac_cv_header_krb5_h" = x""yes; then
12862   :
12863 else
12864   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12865 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12866    { (exit 1); exit 1; }; }
12867 fi
12868
12869
12870 fi
12871
12872 if test "$with_openssl" = yes ; then
12873   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12874   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12875 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12876 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12877   $as_echo_n "(cached) " >&6
12878 fi
12879 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12880 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12881 else
12882   # Is the header compilable?
12883 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12884 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12885 cat >conftest.$ac_ext <<_ACEOF
12886 /* confdefs.h.  */
12887 _ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h.  */
12891 $ac_includes_default
12892 #include <openssl/ssl.h>
12893 _ACEOF
12894 rm -f conftest.$ac_objext
12895 if { (ac_try="$ac_compile"
12896 case "(($ac_try" in
12897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898   *) ac_try_echo=$ac_try;;
12899 esac
12900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12901 $as_echo "$ac_try_echo") >&5
12902   (eval "$ac_compile") 2>conftest.er1
12903   ac_status=$?
12904   grep -v '^ *+' conftest.er1 >conftest.err
12905   rm -f conftest.er1
12906   cat conftest.err >&5
12907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); } && {
12909          test -z "$ac_c_werror_flag" ||
12910          test ! -s conftest.err
12911        } && test -s conftest.$ac_objext; then
12912   ac_header_compiler=yes
12913 else
12914   $as_echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12916
12917         ac_header_compiler=no
12918 fi
12919
12920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12921 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12922 $as_echo "$ac_header_compiler" >&6; }
12923
12924 # Is the header present?
12925 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12926 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12927 cat >conftest.$ac_ext <<_ACEOF
12928 /* confdefs.h.  */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h.  */
12933 #include <openssl/ssl.h>
12934 _ACEOF
12935 if { (ac_try="$ac_cpp conftest.$ac_ext"
12936 case "(($ac_try" in
12937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938   *) ac_try_echo=$ac_try;;
12939 esac
12940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12941 $as_echo "$ac_try_echo") >&5
12942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12943   ac_status=$?
12944   grep -v '^ *+' conftest.er1 >conftest.err
12945   rm -f conftest.er1
12946   cat conftest.err >&5
12947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); } >/dev/null && {
12949          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12950          test ! -s conftest.err
12951        }; then
12952   ac_header_preproc=yes
12953 else
12954   $as_echo "$as_me: failed program was:" >&5
12955 sed 's/^/| /' conftest.$ac_ext >&5
12956
12957   ac_header_preproc=no
12958 fi
12959
12960 rm -f conftest.err conftest.$ac_ext
12961 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12962 $as_echo "$ac_header_preproc" >&6; }
12963
12964 # So?  What about this header?
12965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12966   yes:no: )
12967     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12968 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12969     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12970 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12971     ac_header_preproc=yes
12972     ;;
12973   no:yes:* )
12974     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12975 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12976     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12977 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12978     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12979 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12980     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12981 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12982     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12983 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12984     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12985 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12986     ( cat <<\_ASBOX
12987 ## ---------------------------------------- ##
12988 ## Report this to pgsql-bugs@postgresql.org ##
12989 ## ---------------------------------------- ##
12990 _ASBOX
12991      ) | sed "s/^/$as_me: WARNING:     /" >&2
12992     ;;
12993 esac
12994 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12995 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12996 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12997   $as_echo_n "(cached) " >&6
12998 else
12999   ac_cv_header_openssl_ssl_h=$ac_header_preproc
13000 fi
13001 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13002 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13003
13004 fi
13005 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
13006   :
13007 else
13008   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
13009 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
13010    { (exit 1); exit 1; }; }
13011 fi
13012
13013
13014   if test "${ac_cv_header_openssl_err_h+set}" = set; then
13015   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13016 $as_echo_n "checking for openssl/err.h... " >&6; }
13017 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13018   $as_echo_n "(cached) " >&6
13019 fi
13020 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13021 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13022 else
13023   # Is the header compilable?
13024 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
13025 $as_echo_n "checking openssl/err.h usability... " >&6; }
13026 cat >conftest.$ac_ext <<_ACEOF
13027 /* confdefs.h.  */
13028 _ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h.  */
13032 $ac_includes_default
13033 #include <openssl/err.h>
13034 _ACEOF
13035 rm -f conftest.$ac_objext
13036 if { (ac_try="$ac_compile"
13037 case "(($ac_try" in
13038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039   *) ac_try_echo=$ac_try;;
13040 esac
13041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13042 $as_echo "$ac_try_echo") >&5
13043   (eval "$ac_compile") 2>conftest.er1
13044   ac_status=$?
13045   grep -v '^ *+' conftest.er1 >conftest.err
13046   rm -f conftest.er1
13047   cat conftest.err >&5
13048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); } && {
13050          test -z "$ac_c_werror_flag" ||
13051          test ! -s conftest.err
13052        } && test -s conftest.$ac_objext; then
13053   ac_header_compiler=yes
13054 else
13055   $as_echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13057
13058         ac_header_compiler=no
13059 fi
13060
13061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13062 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13063 $as_echo "$ac_header_compiler" >&6; }
13064
13065 # Is the header present?
13066 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13067 $as_echo_n "checking openssl/err.h presence... " >&6; }
13068 cat >conftest.$ac_ext <<_ACEOF
13069 /* confdefs.h.  */
13070 _ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h.  */
13074 #include <openssl/err.h>
13075 _ACEOF
13076 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
13090          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13091          test ! -s conftest.err
13092        }; then
13093   ac_header_preproc=yes
13094 else
13095   $as_echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13097
13098   ac_header_preproc=no
13099 fi
13100
13101 rm -f conftest.err conftest.$ac_ext
13102 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13103 $as_echo "$ac_header_preproc" >&6; }
13104
13105 # So?  What about this header?
13106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13107   yes:no: )
13108     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13109 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13110     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13111 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13112     ac_header_preproc=yes
13113     ;;
13114   no:yes:* )
13115     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13116 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13117     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
13118 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
13119     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13120 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13121     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
13122 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13123     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13124 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13125     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13126 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13127     ( cat <<\_ASBOX
13128 ## ---------------------------------------- ##
13129 ## Report this to pgsql-bugs@postgresql.org ##
13130 ## ---------------------------------------- ##
13131 _ASBOX
13132      ) | sed "s/^/$as_me: WARNING:     /" >&2
13133     ;;
13134 esac
13135 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13136 $as_echo_n "checking for openssl/err.h... " >&6; }
13137 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13138   $as_echo_n "(cached) " >&6
13139 else
13140   ac_cv_header_openssl_err_h=$ac_header_preproc
13141 fi
13142 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13143 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13144
13145 fi
13146 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13147   :
13148 else
13149   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13150 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13151    { (exit 1); exit 1; }; }
13152 fi
13153
13154
13155 fi
13156
13157 if test "$with_pam" = yes ; then
13158
13159 for ac_header in security/pam_appl.h
13160 do
13161 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13163   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13164 $as_echo_n "checking for $ac_header... " >&6; }
13165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13166   $as_echo_n "(cached) " >&6
13167 fi
13168 ac_res=`eval 'as_val=${'$as_ac_Header'}
13169                  $as_echo "$as_val"'`
13170                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13171 $as_echo "$ac_res" >&6; }
13172 else
13173   # Is the header compilable?
13174 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13175 $as_echo_n "checking $ac_header usability... " >&6; }
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h.  */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h.  */
13182 $ac_includes_default
13183 #include <$ac_header>
13184 _ACEOF
13185 rm -f conftest.$ac_objext
13186 if { (ac_try="$ac_compile"
13187 case "(($ac_try" in
13188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189   *) ac_try_echo=$ac_try;;
13190 esac
13191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13192 $as_echo "$ac_try_echo") >&5
13193   (eval "$ac_compile") 2>conftest.er1
13194   ac_status=$?
13195   grep -v '^ *+' conftest.er1 >conftest.err
13196   rm -f conftest.er1
13197   cat conftest.err >&5
13198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); } && {
13200          test -z "$ac_c_werror_flag" ||
13201          test ! -s conftest.err
13202        } && test -s conftest.$ac_objext; then
13203   ac_header_compiler=yes
13204 else
13205   $as_echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13207
13208         ac_header_compiler=no
13209 fi
13210
13211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13213 $as_echo "$ac_header_compiler" >&6; }
13214
13215 # Is the header present?
13216 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13217 $as_echo_n "checking $ac_header presence... " >&6; }
13218 cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h.  */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h.  */
13224 #include <$ac_header>
13225 _ACEOF
13226 if { (ac_try="$ac_cpp conftest.$ac_ext"
13227 case "(($ac_try" in
13228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229   *) ac_try_echo=$ac_try;;
13230 esac
13231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13232 $as_echo "$ac_try_echo") >&5
13233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13234   ac_status=$?
13235   grep -v '^ *+' conftest.er1 >conftest.err
13236   rm -f conftest.er1
13237   cat conftest.err >&5
13238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); } >/dev/null && {
13240          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13241          test ! -s conftest.err
13242        }; then
13243   ac_header_preproc=yes
13244 else
13245   $as_echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13247
13248   ac_header_preproc=no
13249 fi
13250
13251 rm -f conftest.err conftest.$ac_ext
13252 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13253 $as_echo "$ac_header_preproc" >&6; }
13254
13255 # So?  What about this header?
13256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13257   yes:no: )
13258     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13259 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13260     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13261 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13262     ac_header_preproc=yes
13263     ;;
13264   no:yes:* )
13265     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13266 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13267     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13268 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13269     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13270 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13271     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13272 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13273     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13274 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13275     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13276 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13277     ( cat <<\_ASBOX
13278 ## ---------------------------------------- ##
13279 ## Report this to pgsql-bugs@postgresql.org ##
13280 ## ---------------------------------------- ##
13281 _ASBOX
13282      ) | sed "s/^/$as_me: WARNING:     /" >&2
13283     ;;
13284 esac
13285 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13286 $as_echo_n "checking for $ac_header... " >&6; }
13287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13288   $as_echo_n "(cached) " >&6
13289 else
13290   eval "$as_ac_Header=\$ac_header_preproc"
13291 fi
13292 ac_res=`eval 'as_val=${'$as_ac_Header'}
13293                  $as_echo "$as_val"'`
13294                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13295 $as_echo "$ac_res" >&6; }
13296
13297 fi
13298 as_val=`eval 'as_val=${'$as_ac_Header'}
13299                  $as_echo "$as_val"'`
13300    if test "x$as_val" = x""yes; then
13301   cat >>confdefs.h <<_ACEOF
13302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13303 _ACEOF
13304
13305 else
13306
13307 for ac_header in pam/pam_appl.h
13308 do
13309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13311   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13312 $as_echo_n "checking for $ac_header... " >&6; }
13313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13314   $as_echo_n "(cached) " >&6
13315 fi
13316 ac_res=`eval 'as_val=${'$as_ac_Header'}
13317                  $as_echo "$as_val"'`
13318                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13319 $as_echo "$ac_res" >&6; }
13320 else
13321   # Is the header compilable?
13322 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13323 $as_echo_n "checking $ac_header usability... " >&6; }
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h.  */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h.  */
13330 $ac_includes_default
13331 #include <$ac_header>
13332 _ACEOF
13333 rm -f conftest.$ac_objext
13334 if { (ac_try="$ac_compile"
13335 case "(($ac_try" in
13336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337   *) ac_try_echo=$ac_try;;
13338 esac
13339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13340 $as_echo "$ac_try_echo") >&5
13341   (eval "$ac_compile") 2>conftest.er1
13342   ac_status=$?
13343   grep -v '^ *+' conftest.er1 >conftest.err
13344   rm -f conftest.er1
13345   cat conftest.err >&5
13346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); } && {
13348          test -z "$ac_c_werror_flag" ||
13349          test ! -s conftest.err
13350        } && test -s conftest.$ac_objext; then
13351   ac_header_compiler=yes
13352 else
13353   $as_echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356         ac_header_compiler=no
13357 fi
13358
13359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13360 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13361 $as_echo "$ac_header_compiler" >&6; }
13362
13363 # Is the header present?
13364 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13365 $as_echo_n "checking $ac_header presence... " >&6; }
13366 cat >conftest.$ac_ext <<_ACEOF
13367 /* confdefs.h.  */
13368 _ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h.  */
13372 #include <$ac_header>
13373 _ACEOF
13374 if { (ac_try="$ac_cpp conftest.$ac_ext"
13375 case "(($ac_try" in
13376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377   *) ac_try_echo=$ac_try;;
13378 esac
13379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13380 $as_echo "$ac_try_echo") >&5
13381   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13382   ac_status=$?
13383   grep -v '^ *+' conftest.er1 >conftest.err
13384   rm -f conftest.er1
13385   cat conftest.err >&5
13386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); } >/dev/null && {
13388          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13389          test ! -s conftest.err
13390        }; then
13391   ac_header_preproc=yes
13392 else
13393   $as_echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396   ac_header_preproc=no
13397 fi
13398
13399 rm -f conftest.err conftest.$ac_ext
13400 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13401 $as_echo "$ac_header_preproc" >&6; }
13402
13403 # So?  What about this header?
13404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13405   yes:no: )
13406     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13407 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13408     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13409 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13410     ac_header_preproc=yes
13411     ;;
13412   no:yes:* )
13413     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13414 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13415     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13416 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13417     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13418 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13419     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13420 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13421     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13422 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13423     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13424 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13425     ( cat <<\_ASBOX
13426 ## ---------------------------------------- ##
13427 ## Report this to pgsql-bugs@postgresql.org ##
13428 ## ---------------------------------------- ##
13429 _ASBOX
13430      ) | sed "s/^/$as_me: WARNING:     /" >&2
13431     ;;
13432 esac
13433 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13434 $as_echo_n "checking for $ac_header... " >&6; }
13435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13436   $as_echo_n "(cached) " >&6
13437 else
13438   eval "$as_ac_Header=\$ac_header_preproc"
13439 fi
13440 ac_res=`eval 'as_val=${'$as_ac_Header'}
13441                  $as_echo "$as_val"'`
13442                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13443 $as_echo "$ac_res" >&6; }
13444
13445 fi
13446 as_val=`eval 'as_val=${'$as_ac_Header'}
13447                  $as_echo "$as_val"'`
13448    if test "x$as_val" = x""yes; then
13449   cat >>confdefs.h <<_ACEOF
13450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13451 _ACEOF
13452
13453 else
13454   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13455 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13456    { (exit 1); exit 1; }; }
13457 fi
13458
13459 done
13460
13461 fi
13462
13463 done
13464
13465 fi
13466
13467 if test "$with_libxml" = yes ; then
13468   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13469   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13470 $as_echo_n "checking for libxml/parser.h... " >&6; }
13471 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13472   $as_echo_n "(cached) " >&6
13473 fi
13474 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13475 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13476 else
13477   # Is the header compilable?
13478 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13479 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13480 cat >conftest.$ac_ext <<_ACEOF
13481 /* confdefs.h.  */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h.  */
13486 $ac_includes_default
13487 #include <libxml/parser.h>
13488 _ACEOF
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493   *) ac_try_echo=$ac_try;;
13494 esac
13495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13496 $as_echo "$ac_try_echo") >&5
13497   (eval "$ac_compile") 2>conftest.er1
13498   ac_status=$?
13499   grep -v '^ *+' conftest.er1 >conftest.err
13500   rm -f conftest.er1
13501   cat conftest.err >&5
13502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); } && {
13504          test -z "$ac_c_werror_flag" ||
13505          test ! -s conftest.err
13506        } && test -s conftest.$ac_objext; then
13507   ac_header_compiler=yes
13508 else
13509   $as_echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13511
13512         ac_header_compiler=no
13513 fi
13514
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13516 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13517 $as_echo "$ac_header_compiler" >&6; }
13518
13519 # Is the header present?
13520 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13521 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13522 cat >conftest.$ac_ext <<_ACEOF
13523 /* confdefs.h.  */
13524 _ACEOF
13525 cat confdefs.h >>conftest.$ac_ext
13526 cat >>conftest.$ac_ext <<_ACEOF
13527 /* end confdefs.h.  */
13528 #include <libxml/parser.h>
13529 _ACEOF
13530 if { (ac_try="$ac_cpp conftest.$ac_ext"
13531 case "(($ac_try" in
13532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533   *) ac_try_echo=$ac_try;;
13534 esac
13535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13536 $as_echo "$ac_try_echo") >&5
13537   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13538   ac_status=$?
13539   grep -v '^ *+' conftest.er1 >conftest.err
13540   rm -f conftest.er1
13541   cat conftest.err >&5
13542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); } >/dev/null && {
13544          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13545          test ! -s conftest.err
13546        }; then
13547   ac_header_preproc=yes
13548 else
13549   $as_echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13551
13552   ac_header_preproc=no
13553 fi
13554
13555 rm -f conftest.err conftest.$ac_ext
13556 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13557 $as_echo "$ac_header_preproc" >&6; }
13558
13559 # So?  What about this header?
13560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13561   yes:no: )
13562     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13563 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13564     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13565 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13566     ac_header_preproc=yes
13567     ;;
13568   no:yes:* )
13569     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13570 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13571     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13572 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13573     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13574 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13575     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13576 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13577     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13578 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13579     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13580 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13581     ( cat <<\_ASBOX
13582 ## ---------------------------------------- ##
13583 ## Report this to pgsql-bugs@postgresql.org ##
13584 ## ---------------------------------------- ##
13585 _ASBOX
13586      ) | sed "s/^/$as_me: WARNING:     /" >&2
13587     ;;
13588 esac
13589 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13590 $as_echo_n "checking for libxml/parser.h... " >&6; }
13591 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13592   $as_echo_n "(cached) " >&6
13593 else
13594   ac_cv_header_libxml_parser_h=$ac_header_preproc
13595 fi
13596 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13597 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13598
13599 fi
13600 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13601   :
13602 else
13603   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13604 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13605    { (exit 1); exit 1; }; }
13606 fi
13607
13608
13609 fi
13610
13611 if test "$with_libxslt" = yes ; then
13612   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13613   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13614 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13615 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13616   $as_echo_n "(cached) " >&6
13617 fi
13618 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13619 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13620 else
13621   # Is the header compilable?
13622 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13623 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13624 cat >conftest.$ac_ext <<_ACEOF
13625 /* confdefs.h.  */
13626 _ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h.  */
13630 $ac_includes_default
13631 #include <libxslt/xslt.h>
13632 _ACEOF
13633 rm -f conftest.$ac_objext
13634 if { (ac_try="$ac_compile"
13635 case "(($ac_try" in
13636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637   *) ac_try_echo=$ac_try;;
13638 esac
13639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13640 $as_echo "$ac_try_echo") >&5
13641   (eval "$ac_compile") 2>conftest.er1
13642   ac_status=$?
13643   grep -v '^ *+' conftest.er1 >conftest.err
13644   rm -f conftest.er1
13645   cat conftest.err >&5
13646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); } && {
13648          test -z "$ac_c_werror_flag" ||
13649          test ! -s conftest.err
13650        } && test -s conftest.$ac_objext; then
13651   ac_header_compiler=yes
13652 else
13653   $as_echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13655
13656         ac_header_compiler=no
13657 fi
13658
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13661 $as_echo "$ac_header_compiler" >&6; }
13662
13663 # Is the header present?
13664 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13665 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h.  */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h.  */
13672 #include <libxslt/xslt.h>
13673 _ACEOF
13674 if { (ac_try="$ac_cpp conftest.$ac_ext"
13675 case "(($ac_try" in
13676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677   *) ac_try_echo=$ac_try;;
13678 esac
13679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13680 $as_echo "$ac_try_echo") >&5
13681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13682   ac_status=$?
13683   grep -v '^ *+' conftest.er1 >conftest.err
13684   rm -f conftest.er1
13685   cat conftest.err >&5
13686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); } >/dev/null && {
13688          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13689          test ! -s conftest.err
13690        }; then
13691   ac_header_preproc=yes
13692 else
13693   $as_echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696   ac_header_preproc=no
13697 fi
13698
13699 rm -f conftest.err conftest.$ac_ext
13700 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13701 $as_echo "$ac_header_preproc" >&6; }
13702
13703 # So?  What about this header?
13704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13705   yes:no: )
13706     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13707 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13708     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13709 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13710     ac_header_preproc=yes
13711     ;;
13712   no:yes:* )
13713     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13714 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13715     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13716 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13717     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13718 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13719     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13720 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13721     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13722 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13723     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13724 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13725     ( cat <<\_ASBOX
13726 ## ---------------------------------------- ##
13727 ## Report this to pgsql-bugs@postgresql.org ##
13728 ## ---------------------------------------- ##
13729 _ASBOX
13730      ) | sed "s/^/$as_me: WARNING:     /" >&2
13731     ;;
13732 esac
13733 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13734 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13735 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13736   $as_echo_n "(cached) " >&6
13737 else
13738   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13739 fi
13740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13741 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13742
13743 fi
13744 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13745   :
13746 else
13747   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13748 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13749    { (exit 1); exit 1; }; }
13750 fi
13751
13752
13753 fi
13754
13755 if test "$with_ldap" = yes ; then
13756   if test "$PORTNAME" != "win32"; then
13757
13758 for ac_header in ldap.h
13759 do
13760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13762   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13763 $as_echo_n "checking for $ac_header... " >&6; }
13764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13765   $as_echo_n "(cached) " >&6
13766 fi
13767 ac_res=`eval 'as_val=${'$as_ac_Header'}
13768                  $as_echo "$as_val"'`
13769                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13770 $as_echo "$ac_res" >&6; }
13771 else
13772   # Is the header compilable?
13773 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13774 $as_echo_n "checking $ac_header usability... " >&6; }
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h.  */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h.  */
13781 $ac_includes_default
13782 #include <$ac_header>
13783 _ACEOF
13784 rm -f conftest.$ac_objext
13785 if { (ac_try="$ac_compile"
13786 case "(($ac_try" in
13787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788   *) ac_try_echo=$ac_try;;
13789 esac
13790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13791 $as_echo "$ac_try_echo") >&5
13792   (eval "$ac_compile") 2>conftest.er1
13793   ac_status=$?
13794   grep -v '^ *+' conftest.er1 >conftest.err
13795   rm -f conftest.er1
13796   cat conftest.err >&5
13797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); } && {
13799          test -z "$ac_c_werror_flag" ||
13800          test ! -s conftest.err
13801        } && test -s conftest.$ac_objext; then
13802   ac_header_compiler=yes
13803 else
13804   $as_echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13806
13807         ac_header_compiler=no
13808 fi
13809
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13812 $as_echo "$ac_header_compiler" >&6; }
13813
13814 # Is the header present?
13815 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13816 $as_echo_n "checking $ac_header presence... " >&6; }
13817 cat >conftest.$ac_ext <<_ACEOF
13818 /* confdefs.h.  */
13819 _ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h.  */
13823 #include <$ac_header>
13824 _ACEOF
13825 if { (ac_try="$ac_cpp conftest.$ac_ext"
13826 case "(($ac_try" in
13827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828   *) ac_try_echo=$ac_try;;
13829 esac
13830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13831 $as_echo "$ac_try_echo") >&5
13832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13833   ac_status=$?
13834   grep -v '^ *+' conftest.er1 >conftest.err
13835   rm -f conftest.er1
13836   cat conftest.err >&5
13837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); } >/dev/null && {
13839          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13840          test ! -s conftest.err
13841        }; then
13842   ac_header_preproc=yes
13843 else
13844   $as_echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847   ac_header_preproc=no
13848 fi
13849
13850 rm -f conftest.err conftest.$ac_ext
13851 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13852 $as_echo "$ac_header_preproc" >&6; }
13853
13854 # So?  What about this header?
13855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13856   yes:no: )
13857     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13858 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13859     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13861     ac_header_preproc=yes
13862     ;;
13863   no:yes:* )
13864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13865 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13867 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13869 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13871 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13872     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13873 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13874     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13875 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13876     ( cat <<\_ASBOX
13877 ## ---------------------------------------- ##
13878 ## Report this to pgsql-bugs@postgresql.org ##
13879 ## ---------------------------------------- ##
13880 _ASBOX
13881      ) | sed "s/^/$as_me: WARNING:     /" >&2
13882     ;;
13883 esac
13884 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13885 $as_echo_n "checking for $ac_header... " >&6; }
13886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13887   $as_echo_n "(cached) " >&6
13888 else
13889   eval "$as_ac_Header=\$ac_header_preproc"
13890 fi
13891 ac_res=`eval 'as_val=${'$as_ac_Header'}
13892                  $as_echo "$as_val"'`
13893                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13894 $as_echo "$ac_res" >&6; }
13895
13896 fi
13897 as_val=`eval 'as_val=${'$as_ac_Header'}
13898                  $as_echo "$as_val"'`
13899    if test "x$as_val" = x""yes; then
13900   cat >>confdefs.h <<_ACEOF
13901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13902 _ACEOF
13903
13904 else
13905   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13906 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13907    { (exit 1); exit 1; }; }
13908 fi
13909
13910 done
13911
13912   else
13913
13914 for ac_header in winldap.h
13915 do
13916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13917 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13918 $as_echo_n "checking for $ac_header... " >&6; }
13919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13920   $as_echo_n "(cached) " >&6
13921 else
13922   cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h.  */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h.  */
13928 $ac_includes_default
13929 #include <windows.h>
13930
13931
13932 #include <$ac_header>
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (ac_try="$ac_compile"
13936 case "(($ac_try" in
13937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938   *) ac_try_echo=$ac_try;;
13939 esac
13940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13941 $as_echo "$ac_try_echo") >&5
13942   (eval "$ac_compile") 2>conftest.er1
13943   ac_status=$?
13944   grep -v '^ *+' conftest.er1 >conftest.err
13945   rm -f conftest.er1
13946   cat conftest.err >&5
13947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); } && {
13949          test -z "$ac_c_werror_flag" ||
13950          test ! -s conftest.err
13951        } && test -s conftest.$ac_objext; then
13952   eval "$as_ac_Header=yes"
13953 else
13954   $as_echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13956
13957         eval "$as_ac_Header=no"
13958 fi
13959
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 fi
13962 ac_res=`eval 'as_val=${'$as_ac_Header'}
13963                  $as_echo "$as_val"'`
13964                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13965 $as_echo "$ac_res" >&6; }
13966 as_val=`eval 'as_val=${'$as_ac_Header'}
13967                  $as_echo "$as_val"'`
13968    if test "x$as_val" = x""yes; then
13969   cat >>confdefs.h <<_ACEOF
13970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13971 _ACEOF
13972
13973 else
13974   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13975 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13976    { (exit 1); exit 1; }; }
13977 fi
13978
13979 done
13980
13981   fi
13982 fi
13983
13984 if test "$with_bonjour" = yes ; then
13985   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13986   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13987 $as_echo_n "checking for dns_sd.h... " >&6; }
13988 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13989   $as_echo_n "(cached) " >&6
13990 fi
13991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13992 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13993 else
13994   # Is the header compilable?
13995 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13996 $as_echo_n "checking dns_sd.h usability... " >&6; }
13997 cat >conftest.$ac_ext <<_ACEOF
13998 /* confdefs.h.  */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h.  */
14003 $ac_includes_default
14004 #include <dns_sd.h>
14005 _ACEOF
14006 rm -f conftest.$ac_objext
14007 if { (ac_try="$ac_compile"
14008 case "(($ac_try" in
14009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010   *) ac_try_echo=$ac_try;;
14011 esac
14012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14013 $as_echo "$ac_try_echo") >&5
14014   (eval "$ac_compile") 2>conftest.er1
14015   ac_status=$?
14016   grep -v '^ *+' conftest.er1 >conftest.err
14017   rm -f conftest.er1
14018   cat conftest.err >&5
14019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); } && {
14021          test -z "$ac_c_werror_flag" ||
14022          test ! -s conftest.err
14023        } && test -s conftest.$ac_objext; then
14024   ac_header_compiler=yes
14025 else
14026   $as_echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14028
14029         ac_header_compiler=no
14030 fi
14031
14032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14034 $as_echo "$ac_header_compiler" >&6; }
14035
14036 # Is the header present?
14037 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
14038 $as_echo_n "checking dns_sd.h presence... " >&6; }
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h.  */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h.  */
14045 #include <dns_sd.h>
14046 _ACEOF
14047 if { (ac_try="$ac_cpp conftest.$ac_ext"
14048 case "(($ac_try" in
14049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050   *) ac_try_echo=$ac_try;;
14051 esac
14052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14053 $as_echo "$ac_try_echo") >&5
14054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14055   ac_status=$?
14056   grep -v '^ *+' conftest.er1 >conftest.err
14057   rm -f conftest.er1
14058   cat conftest.err >&5
14059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); } >/dev/null && {
14061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14062          test ! -s conftest.err
14063        }; then
14064   ac_header_preproc=yes
14065 else
14066   $as_echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069   ac_header_preproc=no
14070 fi
14071
14072 rm -f conftest.err conftest.$ac_ext
14073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14074 $as_echo "$ac_header_preproc" >&6; }
14075
14076 # So?  What about this header?
14077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14078   yes:no: )
14079     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14080 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14081     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14082 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14083     ac_header_preproc=yes
14084     ;;
14085   no:yes:* )
14086     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14087 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14088     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
14089 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
14090     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14091 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14092     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
14093 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14094     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14095 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14096     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14097 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14098     ( cat <<\_ASBOX
14099 ## ---------------------------------------- ##
14100 ## Report this to pgsql-bugs@postgresql.org ##
14101 ## ---------------------------------------- ##
14102 _ASBOX
14103      ) | sed "s/^/$as_me: WARNING:     /" >&2
14104     ;;
14105 esac
14106 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14107 $as_echo_n "checking for dns_sd.h... " >&6; }
14108 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14109   $as_echo_n "(cached) " >&6
14110 else
14111   ac_cv_header_dns_sd_h=$ac_header_preproc
14112 fi
14113 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14114 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14115
14116 fi
14117 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14118   :
14119 else
14120   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14121 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14122    { (exit 1); exit 1; }; }
14123 fi
14124
14125
14126 fi
14127
14128 # for contrib/uuid-ossp
14129 if test "$with_ossp_uuid" = yes ; then
14130
14131 for ac_header in ossp/uuid.h
14132 do
14133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14135   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14136 $as_echo_n "checking for $ac_header... " >&6; }
14137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14138   $as_echo_n "(cached) " >&6
14139 fi
14140 ac_res=`eval 'as_val=${'$as_ac_Header'}
14141                  $as_echo "$as_val"'`
14142                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14143 $as_echo "$ac_res" >&6; }
14144 else
14145   # Is the header compilable?
14146 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14147 $as_echo_n "checking $ac_header usability... " >&6; }
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h.  */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h.  */
14154 $ac_includes_default
14155 #include <$ac_header>
14156 _ACEOF
14157 rm -f conftest.$ac_objext
14158 if { (ac_try="$ac_compile"
14159 case "(($ac_try" in
14160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161   *) ac_try_echo=$ac_try;;
14162 esac
14163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14164 $as_echo "$ac_try_echo") >&5
14165   (eval "$ac_compile") 2>conftest.er1
14166   ac_status=$?
14167   grep -v '^ *+' conftest.er1 >conftest.err
14168   rm -f conftest.er1
14169   cat conftest.err >&5
14170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); } && {
14172          test -z "$ac_c_werror_flag" ||
14173          test ! -s conftest.err
14174        } && test -s conftest.$ac_objext; then
14175   ac_header_compiler=yes
14176 else
14177   $as_echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14179
14180         ac_header_compiler=no
14181 fi
14182
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14185 $as_echo "$ac_header_compiler" >&6; }
14186
14187 # Is the header present?
14188 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14189 $as_echo_n "checking $ac_header presence... " >&6; }
14190 cat >conftest.$ac_ext <<_ACEOF
14191 /* confdefs.h.  */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h.  */
14196 #include <$ac_header>
14197 _ACEOF
14198 if { (ac_try="$ac_cpp conftest.$ac_ext"
14199 case "(($ac_try" in
14200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201   *) ac_try_echo=$ac_try;;
14202 esac
14203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14204 $as_echo "$ac_try_echo") >&5
14205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14206   ac_status=$?
14207   grep -v '^ *+' conftest.er1 >conftest.err
14208   rm -f conftest.er1
14209   cat conftest.err >&5
14210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); } >/dev/null && {
14212          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14213          test ! -s conftest.err
14214        }; then
14215   ac_header_preproc=yes
14216 else
14217   $as_echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14219
14220   ac_header_preproc=no
14221 fi
14222
14223 rm -f conftest.err conftest.$ac_ext
14224 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14225 $as_echo "$ac_header_preproc" >&6; }
14226
14227 # So?  What about this header?
14228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14229   yes:no: )
14230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14231 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14233 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14234     ac_header_preproc=yes
14235     ;;
14236   no:yes:* )
14237     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14238 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14239     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14240 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14241     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14242 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14243     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14244 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14245     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14246 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14247     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14248 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14249     ( cat <<\_ASBOX
14250 ## ---------------------------------------- ##
14251 ## Report this to pgsql-bugs@postgresql.org ##
14252 ## ---------------------------------------- ##
14253 _ASBOX
14254      ) | sed "s/^/$as_me: WARNING:     /" >&2
14255     ;;
14256 esac
14257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14258 $as_echo_n "checking for $ac_header... " >&6; }
14259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14260   $as_echo_n "(cached) " >&6
14261 else
14262   eval "$as_ac_Header=\$ac_header_preproc"
14263 fi
14264 ac_res=`eval 'as_val=${'$as_ac_Header'}
14265                  $as_echo "$as_val"'`
14266                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14267 $as_echo "$ac_res" >&6; }
14268
14269 fi
14270 as_val=`eval 'as_val=${'$as_ac_Header'}
14271                  $as_echo "$as_val"'`
14272    if test "x$as_val" = x""yes; then
14273   cat >>confdefs.h <<_ACEOF
14274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14275 _ACEOF
14276
14277 else
14278
14279
14280 for ac_header in uuid.h
14281 do
14282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14284   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14285 $as_echo_n "checking for $ac_header... " >&6; }
14286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14287   $as_echo_n "(cached) " >&6
14288 fi
14289 ac_res=`eval 'as_val=${'$as_ac_Header'}
14290                  $as_echo "$as_val"'`
14291                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14292 $as_echo "$ac_res" >&6; }
14293 else
14294   # Is the header compilable?
14295 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14296 $as_echo_n "checking $ac_header usability... " >&6; }
14297 cat >conftest.$ac_ext <<_ACEOF
14298 /* confdefs.h.  */
14299 _ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h.  */
14303 $ac_includes_default
14304 #include <$ac_header>
14305 _ACEOF
14306 rm -f conftest.$ac_objext
14307 if { (ac_try="$ac_compile"
14308 case "(($ac_try" in
14309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310   *) ac_try_echo=$ac_try;;
14311 esac
14312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14313 $as_echo "$ac_try_echo") >&5
14314   (eval "$ac_compile") 2>conftest.er1
14315   ac_status=$?
14316   grep -v '^ *+' conftest.er1 >conftest.err
14317   rm -f conftest.er1
14318   cat conftest.err >&5
14319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); } && {
14321          test -z "$ac_c_werror_flag" ||
14322          test ! -s conftest.err
14323        } && test -s conftest.$ac_objext; then
14324   ac_header_compiler=yes
14325 else
14326   $as_echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329         ac_header_compiler=no
14330 fi
14331
14332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14334 $as_echo "$ac_header_compiler" >&6; }
14335
14336 # Is the header present?
14337 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14338 $as_echo_n "checking $ac_header presence... " >&6; }
14339 cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h.  */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h.  */
14345 #include <$ac_header>
14346 _ACEOF
14347 if { (ac_try="$ac_cpp conftest.$ac_ext"
14348 case "(($ac_try" in
14349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350   *) ac_try_echo=$ac_try;;
14351 esac
14352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14353 $as_echo "$ac_try_echo") >&5
14354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14355   ac_status=$?
14356   grep -v '^ *+' conftest.er1 >conftest.err
14357   rm -f conftest.er1
14358   cat conftest.err >&5
14359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); } >/dev/null && {
14361          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14362          test ! -s conftest.err
14363        }; then
14364   ac_header_preproc=yes
14365 else
14366   $as_echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369   ac_header_preproc=no
14370 fi
14371
14372 rm -f conftest.err conftest.$ac_ext
14373 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14374 $as_echo "$ac_header_preproc" >&6; }
14375
14376 # So?  What about this header?
14377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14378   yes:no: )
14379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14380 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14383     ac_header_preproc=yes
14384     ;;
14385   no:yes:* )
14386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14387 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14388     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14389 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14390     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14391 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14392     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14393 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14394     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14395 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14396     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14397 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14398     ( cat <<\_ASBOX
14399 ## ---------------------------------------- ##
14400 ## Report this to pgsql-bugs@postgresql.org ##
14401 ## ---------------------------------------- ##
14402 _ASBOX
14403      ) | sed "s/^/$as_me: WARNING:     /" >&2
14404     ;;
14405 esac
14406 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14407 $as_echo_n "checking for $ac_header... " >&6; }
14408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14409   $as_echo_n "(cached) " >&6
14410 else
14411   eval "$as_ac_Header=\$ac_header_preproc"
14412 fi
14413 ac_res=`eval 'as_val=${'$as_ac_Header'}
14414                  $as_echo "$as_val"'`
14415                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14416 $as_echo "$ac_res" >&6; }
14417
14418 fi
14419 as_val=`eval 'as_val=${'$as_ac_Header'}
14420                  $as_echo "$as_val"'`
14421    if test "x$as_val" = x""yes; then
14422   cat >>confdefs.h <<_ACEOF
14423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14424 _ACEOF
14425
14426 else
14427   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14428 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14429    { (exit 1); exit 1; }; }
14430 fi
14431
14432 done
14433
14434 fi
14435
14436 done
14437
14438 fi
14439
14440 if test "$PORTNAME" = "win32" ; then
14441
14442 for ac_header in crtdefs.h
14443 do
14444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14446   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14447 $as_echo_n "checking for $ac_header... " >&6; }
14448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14449   $as_echo_n "(cached) " >&6
14450 fi
14451 ac_res=`eval 'as_val=${'$as_ac_Header'}
14452                  $as_echo "$as_val"'`
14453                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14454 $as_echo "$ac_res" >&6; }
14455 else
14456   # Is the header compilable?
14457 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14458 $as_echo_n "checking $ac_header usability... " >&6; }
14459 cat >conftest.$ac_ext <<_ACEOF
14460 /* confdefs.h.  */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h.  */
14465 $ac_includes_default
14466 #include <$ac_header>
14467 _ACEOF
14468 rm -f conftest.$ac_objext
14469 if { (ac_try="$ac_compile"
14470 case "(($ac_try" in
14471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472   *) ac_try_echo=$ac_try;;
14473 esac
14474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14475 $as_echo "$ac_try_echo") >&5
14476   (eval "$ac_compile") 2>conftest.er1
14477   ac_status=$?
14478   grep -v '^ *+' conftest.er1 >conftest.err
14479   rm -f conftest.er1
14480   cat conftest.err >&5
14481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); } && {
14483          test -z "$ac_c_werror_flag" ||
14484          test ! -s conftest.err
14485        } && test -s conftest.$ac_objext; then
14486   ac_header_compiler=yes
14487 else
14488   $as_echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14490
14491         ac_header_compiler=no
14492 fi
14493
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14496 $as_echo "$ac_header_compiler" >&6; }
14497
14498 # Is the header present?
14499 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14500 $as_echo_n "checking $ac_header presence... " >&6; }
14501 cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h.  */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h.  */
14507 #include <$ac_header>
14508 _ACEOF
14509 if { (ac_try="$ac_cpp conftest.$ac_ext"
14510 case "(($ac_try" in
14511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512   *) ac_try_echo=$ac_try;;
14513 esac
14514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14515 $as_echo "$ac_try_echo") >&5
14516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14517   ac_status=$?
14518   grep -v '^ *+' conftest.er1 >conftest.err
14519   rm -f conftest.er1
14520   cat conftest.err >&5
14521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); } >/dev/null && {
14523          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14524          test ! -s conftest.err
14525        }; then
14526   ac_header_preproc=yes
14527 else
14528   $as_echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14530
14531   ac_header_preproc=no
14532 fi
14533
14534 rm -f conftest.err conftest.$ac_ext
14535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14536 $as_echo "$ac_header_preproc" >&6; }
14537
14538 # So?  What about this header?
14539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14540   yes:no: )
14541     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14542 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14543     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14544 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14545     ac_header_preproc=yes
14546     ;;
14547   no:yes:* )
14548     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14549 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14550     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14551 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14552     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14553 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14554     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14555 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14556     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14557 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14559 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14560     ( cat <<\_ASBOX
14561 ## ---------------------------------------- ##
14562 ## Report this to pgsql-bugs@postgresql.org ##
14563 ## ---------------------------------------- ##
14564 _ASBOX
14565      ) | sed "s/^/$as_me: WARNING:     /" >&2
14566     ;;
14567 esac
14568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14569 $as_echo_n "checking for $ac_header... " >&6; }
14570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14571   $as_echo_n "(cached) " >&6
14572 else
14573   eval "$as_ac_Header=\$ac_header_preproc"
14574 fi
14575 ac_res=`eval 'as_val=${'$as_ac_Header'}
14576                  $as_echo "$as_val"'`
14577                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14578 $as_echo "$ac_res" >&6; }
14579
14580 fi
14581 as_val=`eval 'as_val=${'$as_ac_Header'}
14582                  $as_echo "$as_val"'`
14583    if test "x$as_val" = x""yes; then
14584   cat >>confdefs.h <<_ACEOF
14585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14586 _ACEOF
14587
14588 fi
14589
14590 done
14591
14592 fi
14593
14594 ##
14595 ## Types, structures, compiler characteristics
14596 ##
14597
14598
14599  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14600 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14601 if test "${ac_cv_c_bigendian+set}" = set; then
14602   $as_echo_n "(cached) " >&6
14603 else
14604   ac_cv_c_bigendian=unknown
14605     # See if we're dealing with a universal compiler.
14606     cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h.  */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h.  */
14612 #ifndef __APPLE_CC__
14613                not a universal capable compiler
14614              #endif
14615              typedef int dummy;
14616
14617 _ACEOF
14618 rm -f conftest.$ac_objext
14619 if { (ac_try="$ac_compile"
14620 case "(($ac_try" in
14621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622   *) ac_try_echo=$ac_try;;
14623 esac
14624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14625 $as_echo "$ac_try_echo") >&5
14626   (eval "$ac_compile") 2>conftest.er1
14627   ac_status=$?
14628   grep -v '^ *+' conftest.er1 >conftest.err
14629   rm -f conftest.er1
14630   cat conftest.err >&5
14631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632   (exit $ac_status); } && {
14633          test -z "$ac_c_werror_flag" ||
14634          test ! -s conftest.err
14635        } && test -s conftest.$ac_objext; then
14636
14637         # Check for potential -arch flags.  It is not universal unless
14638         # there are some -arch flags.  Note that *ppc* also matches
14639         # ppc64.  This check is also rather less than ideal.
14640         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14641           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14642         esac
14643 else
14644   $as_echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647
14648 fi
14649
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651     if test $ac_cv_c_bigendian = unknown; then
14652       # See if sys/param.h defines the BYTE_ORDER macro.
14653       cat >conftest.$ac_ext <<_ACEOF
14654 /* confdefs.h.  */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h.  */
14659 #include <sys/types.h>
14660              #include <sys/param.h>
14661
14662 int
14663 main ()
14664 {
14665 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14666                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14667                      && LITTLE_ENDIAN)
14668               bogus endian macros
14669              #endif
14670
14671   ;
14672   return 0;
14673 }
14674 _ACEOF
14675 rm -f conftest.$ac_objext
14676 if { (ac_try="$ac_compile"
14677 case "(($ac_try" in
14678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679   *) ac_try_echo=$ac_try;;
14680 esac
14681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14682 $as_echo "$ac_try_echo") >&5
14683   (eval "$ac_compile") 2>conftest.er1
14684   ac_status=$?
14685   grep -v '^ *+' conftest.er1 >conftest.err
14686   rm -f conftest.er1
14687   cat conftest.err >&5
14688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); } && {
14690          test -z "$ac_c_werror_flag" ||
14691          test ! -s conftest.err
14692        } && test -s conftest.$ac_objext; then
14693   # It does; now see whether it defined to BIG_ENDIAN or not.
14694          cat >conftest.$ac_ext <<_ACEOF
14695 /* confdefs.h.  */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h.  */
14700 #include <sys/types.h>
14701                 #include <sys/param.h>
14702
14703 int
14704 main ()
14705 {
14706 #if BYTE_ORDER != BIG_ENDIAN
14707                  not big endian
14708                 #endif
14709
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (ac_try="$ac_compile"
14716 case "(($ac_try" in
14717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718   *) ac_try_echo=$ac_try;;
14719 esac
14720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14721 $as_echo "$ac_try_echo") >&5
14722   (eval "$ac_compile") 2>conftest.er1
14723   ac_status=$?
14724   grep -v '^ *+' conftest.er1 >conftest.err
14725   rm -f conftest.er1
14726   cat conftest.err >&5
14727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); } && {
14729          test -z "$ac_c_werror_flag" ||
14730          test ! -s conftest.err
14731        } && test -s conftest.$ac_objext; then
14732   ac_cv_c_bigendian=yes
14733 else
14734   $as_echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737         ac_cv_c_bigendian=no
14738 fi
14739
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 else
14742   $as_echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.$ac_ext >&5
14744
14745
14746 fi
14747
14748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749     fi
14750     if test $ac_cv_c_bigendian = unknown; then
14751       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14752       cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h.  */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h.  */
14758 #include <limits.h>
14759
14760 int
14761 main ()
14762 {
14763 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14764               bogus endian macros
14765              #endif
14766
14767   ;
14768   return 0;
14769 }
14770 _ACEOF
14771 rm -f conftest.$ac_objext
14772 if { (ac_try="$ac_compile"
14773 case "(($ac_try" in
14774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775   *) ac_try_echo=$ac_try;;
14776 esac
14777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14778 $as_echo "$ac_try_echo") >&5
14779   (eval "$ac_compile") 2>conftest.er1
14780   ac_status=$?
14781   grep -v '^ *+' conftest.er1 >conftest.err
14782   rm -f conftest.er1
14783   cat conftest.err >&5
14784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); } && {
14786          test -z "$ac_c_werror_flag" ||
14787          test ! -s conftest.err
14788        } && test -s conftest.$ac_objext; then
14789   # It does; now see whether it defined to _BIG_ENDIAN or not.
14790          cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h.  */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h.  */
14796 #include <limits.h>
14797
14798 int
14799 main ()
14800 {
14801 #ifndef _BIG_ENDIAN
14802                  not big endian
14803                 #endif
14804
14805   ;
14806   return 0;
14807 }
14808 _ACEOF
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813   *) ac_try_echo=$ac_try;;
14814 esac
14815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14816 $as_echo "$ac_try_echo") >&5
14817   (eval "$ac_compile") 2>conftest.er1
14818   ac_status=$?
14819   grep -v '^ *+' conftest.er1 >conftest.err
14820   rm -f conftest.er1
14821   cat conftest.err >&5
14822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); } && {
14824          test -z "$ac_c_werror_flag" ||
14825          test ! -s conftest.err
14826        } && test -s conftest.$ac_objext; then
14827   ac_cv_c_bigendian=yes
14828 else
14829   $as_echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14831
14832         ac_cv_c_bigendian=no
14833 fi
14834
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 else
14837   $as_echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14839
14840
14841 fi
14842
14843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14844     fi
14845     if test $ac_cv_c_bigendian = unknown; then
14846       # Compile a test program.
14847       if test "$cross_compiling" = yes; then
14848   # Try to guess by grepping values from an object file.
14849          cat >conftest.$ac_ext <<_ACEOF
14850 /* confdefs.h.  */
14851 _ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h.  */
14855 short int ascii_mm[] =
14856                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14857                 short int ascii_ii[] =
14858                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14859                 int use_ascii (int i) {
14860                   return ascii_mm[i] + ascii_ii[i];
14861                 }
14862                 short int ebcdic_ii[] =
14863                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14864                 short int ebcdic_mm[] =
14865                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14866                 int use_ebcdic (int i) {
14867                   return ebcdic_mm[i] + ebcdic_ii[i];
14868                 }
14869                 extern int foo;
14870
14871 int
14872 main ()
14873 {
14874 return use_ascii (foo) == use_ebcdic (foo);
14875   ;
14876   return 0;
14877 }
14878 _ACEOF
14879 rm -f conftest.$ac_objext
14880 if { (ac_try="$ac_compile"
14881 case "(($ac_try" in
14882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883   *) ac_try_echo=$ac_try;;
14884 esac
14885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14886 $as_echo "$ac_try_echo") >&5
14887   (eval "$ac_compile") 2>conftest.er1
14888   ac_status=$?
14889   grep -v '^ *+' conftest.er1 >conftest.err
14890   rm -f conftest.er1
14891   cat conftest.err >&5
14892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); } && {
14894          test -z "$ac_c_werror_flag" ||
14895          test ! -s conftest.err
14896        } && test -s conftest.$ac_objext; then
14897   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14898               ac_cv_c_bigendian=yes
14899             fi
14900             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14901               if test "$ac_cv_c_bigendian" = unknown; then
14902                 ac_cv_c_bigendian=no
14903               else
14904                 # finding both strings is unlikely to happen, but who knows?
14905                 ac_cv_c_bigendian=unknown
14906               fi
14907             fi
14908 else
14909   $as_echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14911
14912
14913 fi
14914
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14916 else
14917   cat >conftest.$ac_ext <<_ACEOF
14918 /* confdefs.h.  */
14919 _ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h.  */
14923 $ac_includes_default
14924 int
14925 main ()
14926 {
14927
14928              /* Are we little or big endian?  From Harbison&Steele.  */
14929              union
14930              {
14931                long int l;
14932                char c[sizeof (long int)];
14933              } u;
14934              u.l = 1;
14935              return u.c[sizeof (long int) - 1] == 1;
14936
14937   ;
14938   return 0;
14939 }
14940 _ACEOF
14941 rm -f conftest$ac_exeext
14942 if { (ac_try="$ac_link"
14943 case "(($ac_try" in
14944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945   *) ac_try_echo=$ac_try;;
14946 esac
14947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14948 $as_echo "$ac_try_echo") >&5
14949   (eval "$ac_link") 2>&5
14950   ac_status=$?
14951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14953   { (case "(($ac_try" in
14954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955   *) ac_try_echo=$ac_try;;
14956 esac
14957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14958 $as_echo "$ac_try_echo") >&5
14959   (eval "$ac_try") 2>&5
14960   ac_status=$?
14961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962   (exit $ac_status); }; }; then
14963   ac_cv_c_bigendian=no
14964 else
14965   $as_echo "$as_me: program exited with status $ac_status" >&5
14966 $as_echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 ( exit $ac_status )
14970 ac_cv_c_bigendian=yes
14971 fi
14972 rm -rf conftest.dSYM
14973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14974 fi
14975
14976
14977     fi
14978 fi
14979 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14980 $as_echo "$ac_cv_c_bigendian" >&6; }
14981  case $ac_cv_c_bigendian in #(
14982    yes)
14983      cat >>confdefs.h <<\_ACEOF
14984 #define WORDS_BIGENDIAN 1
14985 _ACEOF
14986 ;; #(
14987    no)
14988       ;; #(
14989    universal)
14990
14991 cat >>confdefs.h <<\_ACEOF
14992 #define AC_APPLE_UNIVERSAL_BUILD 1
14993 _ACEOF
14994
14995      ;; #(
14996    *)
14997      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14998  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14999 $as_echo "$as_me: error: unknown endianness
15000  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15001    { (exit 1); exit 1; }; } ;;
15002  esac
15003
15004 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15005 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15006 if test "${ac_cv_c_const+set}" = set; then
15007   $as_echo_n "(cached) " >&6
15008 else
15009   cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h.  */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h.  */
15015
15016 int
15017 main ()
15018 {
15019 /* FIXME: Include the comments suggested by Paul. */
15020 #ifndef __cplusplus
15021   /* Ultrix mips cc rejects this.  */
15022   typedef int charset[2];
15023   const charset cs;
15024   /* SunOS 4.1.1 cc rejects this.  */
15025   char const *const *pcpcc;
15026   char **ppc;
15027   /* NEC SVR4.0.2 mips cc rejects this.  */
15028   struct point {int x, y;};
15029   static struct point const zero = {0,0};
15030   /* AIX XL C 1.02.0.0 rejects this.
15031      It does not let you subtract one const X* pointer from another in
15032      an arm of an if-expression whose if-part is not a constant
15033      expression */
15034   const char *g = "string";
15035   pcpcc = &g + (g ? g-g : 0);
15036   /* HPUX 7.0 cc rejects these. */
15037   ++pcpcc;
15038   ppc = (char**) pcpcc;
15039   pcpcc = (char const *const *) ppc;
15040   { /* SCO 3.2v4 cc rejects this.  */
15041     char *t;
15042     char const *s = 0 ? (char *) 0 : (char const *) 0;
15043
15044     *t++ = 0;
15045     if (s) return 0;
15046   }
15047   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15048     int x[] = {25, 17};
15049     const int *foo = &x[0];
15050     ++foo;
15051   }
15052   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15053     typedef const int *iptr;
15054     iptr p = 0;
15055     ++p;
15056   }
15057   { /* AIX XL C 1.02.0.0 rejects this saying
15058        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15059     struct s { int j; const int *ap[3]; };
15060     struct s *b; b->j = 5;
15061   }
15062   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15063     const int foo = 10;
15064     if (!foo) return 0;
15065   }
15066   return !cs[0] && !zero.x;
15067 #endif
15068
15069   ;
15070   return 0;
15071 }
15072 _ACEOF
15073 rm -f conftest.$ac_objext
15074 if { (ac_try="$ac_compile"
15075 case "(($ac_try" in
15076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077   *) ac_try_echo=$ac_try;;
15078 esac
15079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15080 $as_echo "$ac_try_echo") >&5
15081   (eval "$ac_compile") 2>conftest.er1
15082   ac_status=$?
15083   grep -v '^ *+' conftest.er1 >conftest.err
15084   rm -f conftest.er1
15085   cat conftest.err >&5
15086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087   (exit $ac_status); } && {
15088          test -z "$ac_c_werror_flag" ||
15089          test ! -s conftest.err
15090        } && test -s conftest.$ac_objext; then
15091   ac_cv_c_const=yes
15092 else
15093   $as_echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15095
15096         ac_cv_c_const=no
15097 fi
15098
15099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15100 fi
15101 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15102 $as_echo "$ac_cv_c_const" >&6; }
15103 if test $ac_cv_c_const = no; then
15104
15105 cat >>confdefs.h <<\_ACEOF
15106 #define const /**/
15107 _ACEOF
15108
15109 fi
15110
15111 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15112 $as_echo_n "checking for inline... " >&6; }
15113 if test "${ac_cv_c_inline+set}" = set; then
15114   $as_echo_n "(cached) " >&6
15115 else
15116   ac_cv_c_inline=no
15117 for ac_kw in inline __inline__ __inline; do
15118   cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h.  */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h.  */
15124 #ifndef __cplusplus
15125 typedef int foo_t;
15126 static $ac_kw foo_t static_foo () {return 0; }
15127 $ac_kw foo_t foo () {return 0; }
15128 #endif
15129
15130 _ACEOF
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135   *) ac_try_echo=$ac_try;;
15136 esac
15137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15138 $as_echo "$ac_try_echo") >&5
15139   (eval "$ac_compile") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } && {
15146          test -z "$ac_c_werror_flag" ||
15147          test ! -s conftest.err
15148        } && test -s conftest.$ac_objext; then
15149   ac_cv_c_inline=$ac_kw
15150 else
15151   $as_echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15153
15154
15155 fi
15156
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158   test "$ac_cv_c_inline" != no && break
15159 done
15160
15161 fi
15162 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15163 $as_echo "$ac_cv_c_inline" >&6; }
15164
15165
15166 case $ac_cv_c_inline in
15167   inline | yes) ;;
15168   *)
15169     case $ac_cv_c_inline in
15170       no) ac_val=;;
15171       *) ac_val=$ac_cv_c_inline;;
15172     esac
15173     cat >>confdefs.h <<_ACEOF
15174 #ifndef __cplusplus
15175 #define inline $ac_val
15176 #endif
15177 _ACEOF
15178     ;;
15179 esac
15180
15181 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15182 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15183 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15184   $as_echo_n "(cached) " >&6
15185 else
15186   pgac_cv_c_inline_quietly=no
15187   if test "$ac_cv_c_inline" != no; then
15188     pgac_c_inline_save_werror=$ac_c_werror_flag
15189     ac_c_werror_flag=yes
15190     cat >conftest.$ac_ext <<_ACEOF
15191 /* confdefs.h.  */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h.  */
15196 static inline int fun () {return 0;}
15197 int
15198 main ()
15199 {
15200
15201   ;
15202   return 0;
15203 }
15204 _ACEOF
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209   *) ac_try_echo=$ac_try;;
15210 esac
15211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15212 $as_echo "$ac_try_echo") >&5
15213   (eval "$ac_link") 2>conftest.er1
15214   ac_status=$?
15215   grep -v '^ *+' conftest.er1 >conftest.err
15216   rm -f conftest.er1
15217   cat conftest.err >&5
15218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); } && {
15220          test -z "$ac_c_werror_flag" ||
15221          test ! -s conftest.err
15222        } && test -s conftest$ac_exeext && {
15223          test "$cross_compiling" = yes ||
15224          $as_test_x conftest$ac_exeext
15225        }; then
15226   pgac_cv_c_inline_quietly=yes
15227 else
15228   $as_echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15230
15231
15232 fi
15233
15234 rm -rf conftest.dSYM
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236       conftest$ac_exeext conftest.$ac_ext
15237     ac_c_werror_flag=$pgac_c_inline_save_werror
15238   fi
15239 fi
15240 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15241 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15242 if test "$pgac_cv_c_inline_quietly" != no; then
15243
15244 cat >>confdefs.h <<_ACEOF
15245 #define PG_USE_INLINE 1
15246 _ACEOF
15247
15248 fi
15249
15250 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15251 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15252 if test "${ac_cv_c_stringize+set}" = set; then
15253   $as_echo_n "(cached) " >&6
15254 else
15255   cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h.  */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h.  */
15261 #define x(y) #y
15262
15263 char *s = x(teststring);
15264 _ACEOF
15265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15266   $EGREP "#teststring" >/dev/null 2>&1; then
15267   ac_cv_c_stringize=no
15268 else
15269   ac_cv_c_stringize=yes
15270 fi
15271 rm -f conftest*
15272
15273 fi
15274 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15275 $as_echo "$ac_cv_c_stringize" >&6; }
15276 if test $ac_cv_c_stringize = yes; then
15277
15278 cat >>confdefs.h <<\_ACEOF
15279 #define HAVE_STRINGIZE 1
15280 _ACEOF
15281
15282 fi
15283
15284
15285   { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15286 $as_echo_n "checking for flexible array members... " >&6; }
15287 if test "${ac_cv_c_flexmember+set}" = set; then
15288   $as_echo_n "(cached) " >&6
15289 else
15290   cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296 #include <stdlib.h>
15297             #include <stdio.h>
15298             #include <stddef.h>
15299             struct s { int n; double d[]; };
15300 int
15301 main ()
15302 {
15303 int m = getchar ();
15304             struct s *p = malloc (offsetof (struct s, d)
15305                                   + m * sizeof (double));
15306             p->d[0] = 0.0;
15307             return p->d != (double *) NULL;
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 rm -f conftest.$ac_objext
15313 if { (ac_try="$ac_compile"
15314 case "(($ac_try" in
15315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316   *) ac_try_echo=$ac_try;;
15317 esac
15318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15319 $as_echo "$ac_try_echo") >&5
15320   (eval "$ac_compile") 2>conftest.er1
15321   ac_status=$?
15322   grep -v '^ *+' conftest.er1 >conftest.err
15323   rm -f conftest.er1
15324   cat conftest.err >&5
15325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); } && {
15327          test -z "$ac_c_werror_flag" ||
15328          test ! -s conftest.err
15329        } && test -s conftest.$ac_objext; then
15330   ac_cv_c_flexmember=yes
15331 else
15332   $as_echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335         ac_cv_c_flexmember=no
15336 fi
15337
15338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339 fi
15340 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15341 $as_echo "$ac_cv_c_flexmember" >&6; }
15342   if test $ac_cv_c_flexmember = yes; then
15343
15344 cat >>confdefs.h <<\_ACEOF
15345 #define FLEXIBLE_ARRAY_MEMBER /**/
15346 _ACEOF
15347
15348   else
15349     cat >>confdefs.h <<\_ACEOF
15350 #define FLEXIBLE_ARRAY_MEMBER 1
15351 _ACEOF
15352
15353   fi
15354
15355 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15356 $as_echo_n "checking for signed types... " >&6; }
15357 if test "${pgac_cv_c_signed+set}" = set; then
15358   $as_echo_n "(cached) " >&6
15359 else
15360   cat >conftest.$ac_ext <<_ACEOF
15361 /* confdefs.h.  */
15362 _ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h.  */
15366
15367 int
15368 main ()
15369 {
15370 signed char c; signed short s; signed int i;
15371   ;
15372   return 0;
15373 }
15374 _ACEOF
15375 rm -f conftest.$ac_objext
15376 if { (ac_try="$ac_compile"
15377 case "(($ac_try" in
15378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379   *) ac_try_echo=$ac_try;;
15380 esac
15381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15382 $as_echo "$ac_try_echo") >&5
15383   (eval "$ac_compile") 2>conftest.er1
15384   ac_status=$?
15385   grep -v '^ *+' conftest.er1 >conftest.err
15386   rm -f conftest.er1
15387   cat conftest.err >&5
15388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); } && {
15390          test -z "$ac_c_werror_flag" ||
15391          test ! -s conftest.err
15392        } && test -s conftest.$ac_objext; then
15393   pgac_cv_c_signed=yes
15394 else
15395   $as_echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15397
15398         pgac_cv_c_signed=no
15399 fi
15400
15401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15402 fi
15403 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15404 $as_echo "$pgac_cv_c_signed" >&6; }
15405 if test x"$pgac_cv_c_signed" = xno ; then
15406
15407 cat >>confdefs.h <<\_ACEOF
15408 #define signed /**/
15409 _ACEOF
15410
15411 fi
15412 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15413 $as_echo_n "checking for working volatile... " >&6; }
15414 if test "${ac_cv_c_volatile+set}" = set; then
15415   $as_echo_n "(cached) " >&6
15416 else
15417   cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h.  */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h.  */
15423
15424 int
15425 main ()
15426 {
15427
15428 volatile int x;
15429 int * volatile y = (int *) 0;
15430 return !x && !y;
15431   ;
15432   return 0;
15433 }
15434 _ACEOF
15435 rm -f conftest.$ac_objext
15436 if { (ac_try="$ac_compile"
15437 case "(($ac_try" in
15438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439   *) ac_try_echo=$ac_try;;
15440 esac
15441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15442 $as_echo "$ac_try_echo") >&5
15443   (eval "$ac_compile") 2>conftest.er1
15444   ac_status=$?
15445   grep -v '^ *+' conftest.er1 >conftest.err
15446   rm -f conftest.er1
15447   cat conftest.err >&5
15448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); } && {
15450          test -z "$ac_c_werror_flag" ||
15451          test ! -s conftest.err
15452        } && test -s conftest.$ac_objext; then
15453   ac_cv_c_volatile=yes
15454 else
15455   $as_echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15457
15458         ac_cv_c_volatile=no
15459 fi
15460
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462 fi
15463 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15464 $as_echo "$ac_cv_c_volatile" >&6; }
15465 if test $ac_cv_c_volatile = no; then
15466
15467 cat >>confdefs.h <<\_ACEOF
15468 #define volatile /**/
15469 _ACEOF
15470
15471 fi
15472
15473 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15474 $as_echo_n "checking for __func__... " >&6; }
15475 if test "${pgac_cv_funcname_func_support+set}" = set; then
15476   $as_echo_n "(cached) " >&6
15477 else
15478   cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484 #include <stdio.h>
15485 int
15486 main ()
15487 {
15488 printf("%s\n", __func__);
15489   ;
15490   return 0;
15491 }
15492 _ACEOF
15493 rm -f conftest.$ac_objext
15494 if { (ac_try="$ac_compile"
15495 case "(($ac_try" in
15496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497   *) ac_try_echo=$ac_try;;
15498 esac
15499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15500 $as_echo "$ac_try_echo") >&5
15501   (eval "$ac_compile") 2>conftest.er1
15502   ac_status=$?
15503   grep -v '^ *+' conftest.er1 >conftest.err
15504   rm -f conftest.er1
15505   cat conftest.err >&5
15506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); } && {
15508          test -z "$ac_c_werror_flag" ||
15509          test ! -s conftest.err
15510        } && test -s conftest.$ac_objext; then
15511   pgac_cv_funcname_func_support=yes
15512 else
15513   $as_echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15515
15516         pgac_cv_funcname_func_support=no
15517 fi
15518
15519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15520 fi
15521 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15522 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15523 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15524
15525 cat >>confdefs.h <<\_ACEOF
15526 #define HAVE_FUNCNAME__FUNC 1
15527 _ACEOF
15528
15529 else
15530 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15531 $as_echo_n "checking for __FUNCTION__... " >&6; }
15532 if test "${pgac_cv_funcname_function_support+set}" = set; then
15533   $as_echo_n "(cached) " >&6
15534 else
15535   cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h.  */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h.  */
15541 #include <stdio.h>
15542 int
15543 main ()
15544 {
15545 printf("%s\n", __FUNCTION__);
15546   ;
15547   return 0;
15548 }
15549 _ACEOF
15550 rm -f conftest.$ac_objext
15551 if { (ac_try="$ac_compile"
15552 case "(($ac_try" in
15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554   *) ac_try_echo=$ac_try;;
15555 esac
15556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15557 $as_echo "$ac_try_echo") >&5
15558   (eval "$ac_compile") 2>conftest.er1
15559   ac_status=$?
15560   grep -v '^ *+' conftest.er1 >conftest.err
15561   rm -f conftest.er1
15562   cat conftest.err >&5
15563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); } && {
15565          test -z "$ac_c_werror_flag" ||
15566          test ! -s conftest.err
15567        } && test -s conftest.$ac_objext; then
15568   pgac_cv_funcname_function_support=yes
15569 else
15570   $as_echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573         pgac_cv_funcname_function_support=no
15574 fi
15575
15576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15577 fi
15578 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15579 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15580 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15581
15582 cat >>confdefs.h <<\_ACEOF
15583 #define HAVE_FUNCNAME__FUNCTION 1
15584 _ACEOF
15585
15586 fi
15587 fi
15588 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15589 $as_echo_n "checking for _Static_assert... " >&6; }
15590 if test "${pgac_cv__static_assert+set}" = set; then
15591   $as_echo_n "(cached) " >&6
15592 else
15593   cat >conftest.$ac_ext <<_ACEOF
15594 /* confdefs.h.  */
15595 _ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h.  */
15599
15600 int
15601 main ()
15602 {
15603 ({ _Static_assert(1, "foo"); })
15604   ;
15605   return 0;
15606 }
15607 _ACEOF
15608 rm -f conftest.$ac_objext conftest$ac_exeext
15609 if { (ac_try="$ac_link"
15610 case "(($ac_try" in
15611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612   *) ac_try_echo=$ac_try;;
15613 esac
15614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15615 $as_echo "$ac_try_echo") >&5
15616   (eval "$ac_link") 2>conftest.er1
15617   ac_status=$?
15618   grep -v '^ *+' conftest.er1 >conftest.err
15619   rm -f conftest.er1
15620   cat conftest.err >&5
15621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622   (exit $ac_status); } && {
15623          test -z "$ac_c_werror_flag" ||
15624          test ! -s conftest.err
15625        } && test -s conftest$ac_exeext && {
15626          test "$cross_compiling" = yes ||
15627          $as_test_x conftest$ac_exeext
15628        }; then
15629   pgac_cv__static_assert=yes
15630 else
15631   $as_echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15633
15634         pgac_cv__static_assert=no
15635 fi
15636
15637 rm -rf conftest.dSYM
15638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15639       conftest$ac_exeext conftest.$ac_ext
15640 fi
15641 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15642 $as_echo "$pgac_cv__static_assert" >&6; }
15643 if test x"$pgac_cv__static_assert" = xyes ; then
15644
15645 cat >>confdefs.h <<\_ACEOF
15646 #define HAVE__STATIC_ASSERT 1
15647 _ACEOF
15648
15649 fi
15650 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15651 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15652 if test "${pgac_cv__types_compatible+set}" = set; then
15653   $as_echo_n "(cached) " >&6
15654 else
15655   cat >conftest.$ac_ext <<_ACEOF
15656 /* confdefs.h.  */
15657 _ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h.  */
15661
15662 int
15663 main ()
15664 {
15665  int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15666   ;
15667   return 0;
15668 }
15669 _ACEOF
15670 rm -f conftest.$ac_objext
15671 if { (ac_try="$ac_compile"
15672 case "(($ac_try" in
15673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674   *) ac_try_echo=$ac_try;;
15675 esac
15676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15677 $as_echo "$ac_try_echo") >&5
15678   (eval "$ac_compile") 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } && {
15685          test -z "$ac_c_werror_flag" ||
15686          test ! -s conftest.err
15687        } && test -s conftest.$ac_objext; then
15688   pgac_cv__types_compatible=yes
15689 else
15690   $as_echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693         pgac_cv__types_compatible=no
15694 fi
15695
15696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15697 fi
15698 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
15699 $as_echo "$pgac_cv__types_compatible" >&6; }
15700 if test x"$pgac_cv__types_compatible" = xyes ; then
15701
15702 cat >>confdefs.h <<\_ACEOF
15703 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
15704 _ACEOF
15705
15706 fi
15707 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15708 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15709 if test "${ac_cv_struct_tm+set}" = set; then
15710   $as_echo_n "(cached) " >&6
15711 else
15712   cat >conftest.$ac_ext <<_ACEOF
15713 /* confdefs.h.  */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h.  */
15718 #include <sys/types.h>
15719 #include <time.h>
15720
15721 int
15722 main ()
15723 {
15724 struct tm tm;
15725                                      int *p = &tm.tm_sec;
15726                                      return !p;
15727   ;
15728   return 0;
15729 }
15730 _ACEOF
15731 rm -f conftest.$ac_objext
15732 if { (ac_try="$ac_compile"
15733 case "(($ac_try" in
15734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735   *) ac_try_echo=$ac_try;;
15736 esac
15737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15738 $as_echo "$ac_try_echo") >&5
15739   (eval "$ac_compile") 2>conftest.er1
15740   ac_status=$?
15741   grep -v '^ *+' conftest.er1 >conftest.err
15742   rm -f conftest.er1
15743   cat conftest.err >&5
15744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); } && {
15746          test -z "$ac_c_werror_flag" ||
15747          test ! -s conftest.err
15748        } && test -s conftest.$ac_objext; then
15749   ac_cv_struct_tm=time.h
15750 else
15751   $as_echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15753
15754         ac_cv_struct_tm=sys/time.h
15755 fi
15756
15757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15758 fi
15759 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15760 $as_echo "$ac_cv_struct_tm" >&6; }
15761 if test $ac_cv_struct_tm = sys/time.h; then
15762
15763 cat >>confdefs.h <<\_ACEOF
15764 #define TM_IN_SYS_TIME 1
15765 _ACEOF
15766
15767 fi
15768
15769 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15770 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15771 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15772   $as_echo_n "(cached) " >&6
15773 else
15774   cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h.  */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h.  */
15780 #include <sys/types.h>
15781 #include <$ac_cv_struct_tm>
15782
15783
15784 int
15785 main ()
15786 {
15787 static struct tm ac_aggr;
15788 if (ac_aggr.tm_zone)
15789 return 0;
15790   ;
15791   return 0;
15792 }
15793 _ACEOF
15794 rm -f conftest.$ac_objext
15795 if { (ac_try="$ac_compile"
15796 case "(($ac_try" in
15797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798   *) ac_try_echo=$ac_try;;
15799 esac
15800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15801 $as_echo "$ac_try_echo") >&5
15802   (eval "$ac_compile") 2>conftest.er1
15803   ac_status=$?
15804   grep -v '^ *+' conftest.er1 >conftest.err
15805   rm -f conftest.er1
15806   cat conftest.err >&5
15807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); } && {
15809          test -z "$ac_c_werror_flag" ||
15810          test ! -s conftest.err
15811        } && test -s conftest.$ac_objext; then
15812   ac_cv_member_struct_tm_tm_zone=yes
15813 else
15814   $as_echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15816
15817         cat >conftest.$ac_ext <<_ACEOF
15818 /* confdefs.h.  */
15819 _ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h.  */
15823 #include <sys/types.h>
15824 #include <$ac_cv_struct_tm>
15825
15826
15827 int
15828 main ()
15829 {
15830 static struct tm ac_aggr;
15831 if (sizeof ac_aggr.tm_zone)
15832 return 0;
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext
15838 if { (ac_try="$ac_compile"
15839 case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15844 $as_echo "$ac_try_echo") >&5
15845   (eval "$ac_compile") 2>conftest.er1
15846   ac_status=$?
15847   grep -v '^ *+' conftest.er1 >conftest.err
15848   rm -f conftest.er1
15849   cat conftest.err >&5
15850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); } && {
15852          test -z "$ac_c_werror_flag" ||
15853          test ! -s conftest.err
15854        } && test -s conftest.$ac_objext; then
15855   ac_cv_member_struct_tm_tm_zone=yes
15856 else
15857   $as_echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15859
15860         ac_cv_member_struct_tm_tm_zone=no
15861 fi
15862
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864 fi
15865
15866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15867 fi
15868 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15869 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15870 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15871
15872 cat >>confdefs.h <<_ACEOF
15873 #define HAVE_STRUCT_TM_TM_ZONE 1
15874 _ACEOF
15875
15876
15877 fi
15878
15879 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15880
15881 cat >>confdefs.h <<\_ACEOF
15882 #define HAVE_TM_ZONE 1
15883 _ACEOF
15884
15885 fi
15886 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15887 $as_echo_n "checking for tzname... " >&6; }
15888 if test "${ac_cv_var_tzname+set}" = set; then
15889   $as_echo_n "(cached) " >&6
15890 else
15891   cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h.  */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h.  */
15897 #include <time.h>
15898 #ifndef tzname /* For SGI.  */
15899 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15900 #endif
15901
15902 int
15903 main ()
15904 {
15905 atoi(*tzname);
15906   ;
15907   return 0;
15908 }
15909 _ACEOF
15910 rm -f conftest.$ac_objext conftest$ac_exeext
15911 if { (ac_try="$ac_link"
15912 case "(($ac_try" in
15913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914   *) ac_try_echo=$ac_try;;
15915 esac
15916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15917 $as_echo "$ac_try_echo") >&5
15918   (eval "$ac_link") 2>conftest.er1
15919   ac_status=$?
15920   grep -v '^ *+' conftest.er1 >conftest.err
15921   rm -f conftest.er1
15922   cat conftest.err >&5
15923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); } && {
15925          test -z "$ac_c_werror_flag" ||
15926          test ! -s conftest.err
15927        } && test -s conftest$ac_exeext && {
15928          test "$cross_compiling" = yes ||
15929          $as_test_x conftest$ac_exeext
15930        }; then
15931   ac_cv_var_tzname=yes
15932 else
15933   $as_echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15935
15936         ac_cv_var_tzname=no
15937 fi
15938
15939 rm -rf conftest.dSYM
15940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15941       conftest$ac_exeext conftest.$ac_ext
15942 fi
15943 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15944 $as_echo "$ac_cv_var_tzname" >&6; }
15945 if test $ac_cv_var_tzname = yes; then
15946
15947 cat >>confdefs.h <<\_ACEOF
15948 #define HAVE_TZNAME 1
15949 _ACEOF
15950
15951 fi
15952
15953 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15954 $as_echo_n "checking for union semun... " >&6; }
15955 if test "${ac_cv_type_union_semun+set}" = set; then
15956   $as_echo_n "(cached) " >&6
15957 else
15958   ac_cv_type_union_semun=no
15959 cat >conftest.$ac_ext <<_ACEOF
15960 /* confdefs.h.  */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h.  */
15965 #include <sys/types.h>
15966 #include <sys/ipc.h>
15967 #include <sys/sem.h>
15968
15969 int
15970 main ()
15971 {
15972 if (sizeof (union semun))
15973        return 0;
15974   ;
15975   return 0;
15976 }
15977 _ACEOF
15978 rm -f conftest.$ac_objext
15979 if { (ac_try="$ac_compile"
15980 case "(($ac_try" in
15981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15982   *) ac_try_echo=$ac_try;;
15983 esac
15984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15985 $as_echo "$ac_try_echo") >&5
15986   (eval "$ac_compile") 2>conftest.er1
15987   ac_status=$?
15988   grep -v '^ *+' conftest.er1 >conftest.err
15989   rm -f conftest.er1
15990   cat conftest.err >&5
15991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); } && {
15993          test -z "$ac_c_werror_flag" ||
15994          test ! -s conftest.err
15995        } && test -s conftest.$ac_objext; then
15996   cat >conftest.$ac_ext <<_ACEOF
15997 /* confdefs.h.  */
15998 _ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h.  */
16002 #include <sys/types.h>
16003 #include <sys/ipc.h>
16004 #include <sys/sem.h>
16005
16006 int
16007 main ()
16008 {
16009 if (sizeof ((union semun)))
16010           return 0;
16011   ;
16012   return 0;
16013 }
16014 _ACEOF
16015 rm -f conftest.$ac_objext
16016 if { (ac_try="$ac_compile"
16017 case "(($ac_try" in
16018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019   *) ac_try_echo=$ac_try;;
16020 esac
16021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16022 $as_echo "$ac_try_echo") >&5
16023   (eval "$ac_compile") 2>conftest.er1
16024   ac_status=$?
16025   grep -v '^ *+' conftest.er1 >conftest.err
16026   rm -f conftest.er1
16027   cat conftest.err >&5
16028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029   (exit $ac_status); } && {
16030          test -z "$ac_c_werror_flag" ||
16031          test ! -s conftest.err
16032        } && test -s conftest.$ac_objext; then
16033   :
16034 else
16035   $as_echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16037
16038         ac_cv_type_union_semun=yes
16039 fi
16040
16041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16042 else
16043   $as_echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16045
16046
16047 fi
16048
16049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16050 fi
16051 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
16052 $as_echo "$ac_cv_type_union_semun" >&6; }
16053 if test "x$ac_cv_type_union_semun" = x""yes; then
16054
16055 cat >>confdefs.h <<_ACEOF
16056 #define HAVE_UNION_SEMUN 1
16057 _ACEOF
16058
16059
16060 fi
16061
16062 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16063 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16064 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16065   $as_echo_n "(cached) " >&6
16066 else
16067   ac_cv_type_struct_sockaddr_un=no
16068 cat >conftest.$ac_ext <<_ACEOF
16069 /* confdefs.h.  */
16070 _ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h.  */
16074 #include <sys/types.h>
16075 #ifdef HAVE_SYS_UN_H
16076 #include <sys/un.h>
16077 #endif
16078
16079
16080 int
16081 main ()
16082 {
16083 if (sizeof (struct sockaddr_un))
16084        return 0;
16085   ;
16086   return 0;
16087 }
16088 _ACEOF
16089 rm -f conftest.$ac_objext
16090 if { (ac_try="$ac_compile"
16091 case "(($ac_try" in
16092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093   *) ac_try_echo=$ac_try;;
16094 esac
16095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16096 $as_echo "$ac_try_echo") >&5
16097   (eval "$ac_compile") 2>conftest.er1
16098   ac_status=$?
16099   grep -v '^ *+' conftest.er1 >conftest.err
16100   rm -f conftest.er1
16101   cat conftest.err >&5
16102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103   (exit $ac_status); } && {
16104          test -z "$ac_c_werror_flag" ||
16105          test ! -s conftest.err
16106        } && test -s conftest.$ac_objext; then
16107   cat >conftest.$ac_ext <<_ACEOF
16108 /* confdefs.h.  */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h.  */
16113 #include <sys/types.h>
16114 #ifdef HAVE_SYS_UN_H
16115 #include <sys/un.h>
16116 #endif
16117
16118
16119 int
16120 main ()
16121 {
16122 if (sizeof ((struct sockaddr_un)))
16123           return 0;
16124   ;
16125   return 0;
16126 }
16127 _ACEOF
16128 rm -f conftest.$ac_objext
16129 if { (ac_try="$ac_compile"
16130 case "(($ac_try" in
16131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132   *) ac_try_echo=$ac_try;;
16133 esac
16134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16135 $as_echo "$ac_try_echo") >&5
16136   (eval "$ac_compile") 2>conftest.er1
16137   ac_status=$?
16138   grep -v '^ *+' conftest.er1 >conftest.err
16139   rm -f conftest.er1
16140   cat conftest.err >&5
16141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); } && {
16143          test -z "$ac_c_werror_flag" ||
16144          test ! -s conftest.err
16145        } && test -s conftest.$ac_objext; then
16146   :
16147 else
16148   $as_echo "$as_me: failed program was:" >&5
16149 sed 's/^/| /' conftest.$ac_ext >&5
16150
16151         ac_cv_type_struct_sockaddr_un=yes
16152 fi
16153
16154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16155 else
16156   $as_echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159
16160 fi
16161
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 fi
16164 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16165 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16166 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16167
16168 cat >>confdefs.h <<\_ACEOF
16169 #define HAVE_UNIX_SOCKETS 1
16170 _ACEOF
16171
16172 fi
16173
16174 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16175 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16176 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16177   $as_echo_n "(cached) " >&6
16178 else
16179   ac_cv_type_struct_sockaddr_storage=no
16180 cat >conftest.$ac_ext <<_ACEOF
16181 /* confdefs.h.  */
16182 _ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h.  */
16186 #include <sys/types.h>
16187 #ifdef HAVE_SYS_SOCKET_H
16188 #include <sys/socket.h>
16189 #endif
16190
16191
16192 int
16193 main ()
16194 {
16195 if (sizeof (struct sockaddr_storage))
16196        return 0;
16197   ;
16198   return 0;
16199 }
16200 _ACEOF
16201 rm -f conftest.$ac_objext
16202 if { (ac_try="$ac_compile"
16203 case "(($ac_try" in
16204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205   *) ac_try_echo=$ac_try;;
16206 esac
16207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16208 $as_echo "$ac_try_echo") >&5
16209   (eval "$ac_compile") 2>conftest.er1
16210   ac_status=$?
16211   grep -v '^ *+' conftest.er1 >conftest.err
16212   rm -f conftest.er1
16213   cat conftest.err >&5
16214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } && {
16216          test -z "$ac_c_werror_flag" ||
16217          test ! -s conftest.err
16218        } && test -s conftest.$ac_objext; then
16219   cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225 #include <sys/types.h>
16226 #ifdef HAVE_SYS_SOCKET_H
16227 #include <sys/socket.h>
16228 #endif
16229
16230
16231 int
16232 main ()
16233 {
16234 if (sizeof ((struct sockaddr_storage)))
16235           return 0;
16236   ;
16237   return 0;
16238 }
16239 _ACEOF
16240 rm -f conftest.$ac_objext
16241 if { (ac_try="$ac_compile"
16242 case "(($ac_try" in
16243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244   *) ac_try_echo=$ac_try;;
16245 esac
16246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16247 $as_echo "$ac_try_echo") >&5
16248   (eval "$ac_compile") 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } && {
16255          test -z "$ac_c_werror_flag" ||
16256          test ! -s conftest.err
16257        } && test -s conftest.$ac_objext; then
16258   :
16259 else
16260   $as_echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16262
16263         ac_cv_type_struct_sockaddr_storage=yes
16264 fi
16265
16266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16267 else
16268   $as_echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16270
16271
16272 fi
16273
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16275 fi
16276 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16277 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16278 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16279
16280 cat >>confdefs.h <<_ACEOF
16281 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16282 _ACEOF
16283
16284
16285 fi
16286
16287 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16288 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16289 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16290   $as_echo_n "(cached) " >&6
16291 else
16292   cat >conftest.$ac_ext <<_ACEOF
16293 /* confdefs.h.  */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h.  */
16298 #include <sys/types.h>
16299 #ifdef HAVE_SYS_SOCKET_H
16300 #include <sys/socket.h>
16301 #endif
16302
16303
16304 int
16305 main ()
16306 {
16307 static struct sockaddr_storage ac_aggr;
16308 if (ac_aggr.ss_family)
16309 return 0;
16310   ;
16311   return 0;
16312 }
16313 _ACEOF
16314 rm -f conftest.$ac_objext
16315 if { (ac_try="$ac_compile"
16316 case "(($ac_try" in
16317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318   *) ac_try_echo=$ac_try;;
16319 esac
16320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16321 $as_echo "$ac_try_echo") >&5
16322   (eval "$ac_compile") 2>conftest.er1
16323   ac_status=$?
16324   grep -v '^ *+' conftest.er1 >conftest.err
16325   rm -f conftest.er1
16326   cat conftest.err >&5
16327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } && {
16329          test -z "$ac_c_werror_flag" ||
16330          test ! -s conftest.err
16331        } && test -s conftest.$ac_objext; then
16332   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16333 else
16334   $as_echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16336
16337         cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h.  */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h.  */
16343 #include <sys/types.h>
16344 #ifdef HAVE_SYS_SOCKET_H
16345 #include <sys/socket.h>
16346 #endif
16347
16348
16349 int
16350 main ()
16351 {
16352 static struct sockaddr_storage ac_aggr;
16353 if (sizeof ac_aggr.ss_family)
16354 return 0;
16355   ;
16356   return 0;
16357 }
16358 _ACEOF
16359 rm -f conftest.$ac_objext
16360 if { (ac_try="$ac_compile"
16361 case "(($ac_try" in
16362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363   *) ac_try_echo=$ac_try;;
16364 esac
16365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16366 $as_echo "$ac_try_echo") >&5
16367   (eval "$ac_compile") 2>conftest.er1
16368   ac_status=$?
16369   grep -v '^ *+' conftest.er1 >conftest.err
16370   rm -f conftest.er1
16371   cat conftest.err >&5
16372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); } && {
16374          test -z "$ac_c_werror_flag" ||
16375          test ! -s conftest.err
16376        } && test -s conftest.$ac_objext; then
16377   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16378 else
16379   $as_echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16381
16382         ac_cv_member_struct_sockaddr_storage_ss_family=no
16383 fi
16384
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 fi
16387
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389 fi
16390 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16391 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16392 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16393
16394 cat >>confdefs.h <<_ACEOF
16395 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16396 _ACEOF
16397
16398
16399 fi
16400 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16401 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16402 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16403   $as_echo_n "(cached) " >&6
16404 else
16405   cat >conftest.$ac_ext <<_ACEOF
16406 /* confdefs.h.  */
16407 _ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h.  */
16411 #include <sys/types.h>
16412 #ifdef HAVE_SYS_SOCKET_H
16413 #include <sys/socket.h>
16414 #endif
16415
16416
16417 int
16418 main ()
16419 {
16420 static struct sockaddr_storage ac_aggr;
16421 if (ac_aggr.__ss_family)
16422 return 0;
16423   ;
16424   return 0;
16425 }
16426 _ACEOF
16427 rm -f conftest.$ac_objext
16428 if { (ac_try="$ac_compile"
16429 case "(($ac_try" in
16430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431   *) ac_try_echo=$ac_try;;
16432 esac
16433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16434 $as_echo "$ac_try_echo") >&5
16435   (eval "$ac_compile") 2>conftest.er1
16436   ac_status=$?
16437   grep -v '^ *+' conftest.er1 >conftest.err
16438   rm -f conftest.er1
16439   cat conftest.err >&5
16440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441   (exit $ac_status); } && {
16442          test -z "$ac_c_werror_flag" ||
16443          test ! -s conftest.err
16444        } && test -s conftest.$ac_objext; then
16445   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16446 else
16447   $as_echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16449
16450         cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h.  */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h.  */
16456 #include <sys/types.h>
16457 #ifdef HAVE_SYS_SOCKET_H
16458 #include <sys/socket.h>
16459 #endif
16460
16461
16462 int
16463 main ()
16464 {
16465 static struct sockaddr_storage ac_aggr;
16466 if (sizeof ac_aggr.__ss_family)
16467 return 0;
16468   ;
16469   return 0;
16470 }
16471 _ACEOF
16472 rm -f conftest.$ac_objext
16473 if { (ac_try="$ac_compile"
16474 case "(($ac_try" in
16475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476   *) ac_try_echo=$ac_try;;
16477 esac
16478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16479 $as_echo "$ac_try_echo") >&5
16480   (eval "$ac_compile") 2>conftest.er1
16481   ac_status=$?
16482   grep -v '^ *+' conftest.er1 >conftest.err
16483   rm -f conftest.er1
16484   cat conftest.err >&5
16485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); } && {
16487          test -z "$ac_c_werror_flag" ||
16488          test ! -s conftest.err
16489        } && test -s conftest.$ac_objext; then
16490   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16491 else
16492   $as_echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16494
16495         ac_cv_member_struct_sockaddr_storage___ss_family=no
16496 fi
16497
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499 fi
16500
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502 fi
16503 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16504 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16505 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16506
16507 cat >>confdefs.h <<_ACEOF
16508 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16509 _ACEOF
16510
16511
16512 fi
16513 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16514 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16515 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16516   $as_echo_n "(cached) " >&6
16517 else
16518   cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h.  */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h.  */
16524 #include <sys/types.h>
16525 #ifdef HAVE_SYS_SOCKET_H
16526 #include <sys/socket.h>
16527 #endif
16528
16529
16530 int
16531 main ()
16532 {
16533 static struct sockaddr_storage ac_aggr;
16534 if (ac_aggr.ss_len)
16535 return 0;
16536   ;
16537   return 0;
16538 }
16539 _ACEOF
16540 rm -f conftest.$ac_objext
16541 if { (ac_try="$ac_compile"
16542 case "(($ac_try" in
16543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544   *) ac_try_echo=$ac_try;;
16545 esac
16546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16547 $as_echo "$ac_try_echo") >&5
16548   (eval "$ac_compile") 2>conftest.er1
16549   ac_status=$?
16550   grep -v '^ *+' conftest.er1 >conftest.err
16551   rm -f conftest.er1
16552   cat conftest.err >&5
16553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); } && {
16555          test -z "$ac_c_werror_flag" ||
16556          test ! -s conftest.err
16557        } && test -s conftest.$ac_objext; then
16558   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16559 else
16560   $as_echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16562
16563         cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h.  */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h.  */
16569 #include <sys/types.h>
16570 #ifdef HAVE_SYS_SOCKET_H
16571 #include <sys/socket.h>
16572 #endif
16573
16574
16575 int
16576 main ()
16577 {
16578 static struct sockaddr_storage ac_aggr;
16579 if (sizeof ac_aggr.ss_len)
16580 return 0;
16581   ;
16582   return 0;
16583 }
16584 _ACEOF
16585 rm -f conftest.$ac_objext
16586 if { (ac_try="$ac_compile"
16587 case "(($ac_try" in
16588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589   *) ac_try_echo=$ac_try;;
16590 esac
16591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16592 $as_echo "$ac_try_echo") >&5
16593   (eval "$ac_compile") 2>conftest.er1
16594   ac_status=$?
16595   grep -v '^ *+' conftest.er1 >conftest.err
16596   rm -f conftest.er1
16597   cat conftest.err >&5
16598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); } && {
16600          test -z "$ac_c_werror_flag" ||
16601          test ! -s conftest.err
16602        } && test -s conftest.$ac_objext; then
16603   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16604 else
16605   $as_echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16607
16608         ac_cv_member_struct_sockaddr_storage_ss_len=no
16609 fi
16610
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612 fi
16613
16614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 fi
16616 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16617 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16618 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16619
16620 cat >>confdefs.h <<_ACEOF
16621 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16622 _ACEOF
16623
16624
16625 fi
16626 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16627 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16628 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16629   $as_echo_n "(cached) " >&6
16630 else
16631   cat >conftest.$ac_ext <<_ACEOF
16632 /* confdefs.h.  */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h.  */
16637 #include <sys/types.h>
16638 #ifdef HAVE_SYS_SOCKET_H
16639 #include <sys/socket.h>
16640 #endif
16641
16642
16643 int
16644 main ()
16645 {
16646 static struct sockaddr_storage ac_aggr;
16647 if (ac_aggr.__ss_len)
16648 return 0;
16649   ;
16650   return 0;
16651 }
16652 _ACEOF
16653 rm -f conftest.$ac_objext
16654 if { (ac_try="$ac_compile"
16655 case "(($ac_try" in
16656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657   *) ac_try_echo=$ac_try;;
16658 esac
16659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16660 $as_echo "$ac_try_echo") >&5
16661   (eval "$ac_compile") 2>conftest.er1
16662   ac_status=$?
16663   grep -v '^ *+' conftest.er1 >conftest.err
16664   rm -f conftest.er1
16665   cat conftest.err >&5
16666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); } && {
16668          test -z "$ac_c_werror_flag" ||
16669          test ! -s conftest.err
16670        } && test -s conftest.$ac_objext; then
16671   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16672 else
16673   $as_echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16675
16676         cat >conftest.$ac_ext <<_ACEOF
16677 /* confdefs.h.  */
16678 _ACEOF
16679 cat confdefs.h >>conftest.$ac_ext
16680 cat >>conftest.$ac_ext <<_ACEOF
16681 /* end confdefs.h.  */
16682 #include <sys/types.h>
16683 #ifdef HAVE_SYS_SOCKET_H
16684 #include <sys/socket.h>
16685 #endif
16686
16687
16688 int
16689 main ()
16690 {
16691 static struct sockaddr_storage ac_aggr;
16692 if (sizeof ac_aggr.__ss_len)
16693 return 0;
16694   ;
16695   return 0;
16696 }
16697 _ACEOF
16698 rm -f conftest.$ac_objext
16699 if { (ac_try="$ac_compile"
16700 case "(($ac_try" in
16701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702   *) ac_try_echo=$ac_try;;
16703 esac
16704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16705 $as_echo "$ac_try_echo") >&5
16706   (eval "$ac_compile") 2>conftest.er1
16707   ac_status=$?
16708   grep -v '^ *+' conftest.er1 >conftest.err
16709   rm -f conftest.er1
16710   cat conftest.err >&5
16711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); } && {
16713          test -z "$ac_c_werror_flag" ||
16714          test ! -s conftest.err
16715        } && test -s conftest.$ac_objext; then
16716   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16717 else
16718   $as_echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16720
16721         ac_cv_member_struct_sockaddr_storage___ss_len=no
16722 fi
16723
16724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725 fi
16726
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728 fi
16729 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16730 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16731 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16732
16733 cat >>confdefs.h <<_ACEOF
16734 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16735 _ACEOF
16736
16737
16738 fi
16739 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16740 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16741 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16742   $as_echo_n "(cached) " >&6
16743 else
16744   cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750 #include <sys/types.h>
16751 #ifdef HAVE_SYS_SOCKET_H
16752 #include <sys/socket.h>
16753 #endif
16754
16755
16756 int
16757 main ()
16758 {
16759 static struct sockaddr ac_aggr;
16760 if (ac_aggr.sa_len)
16761 return 0;
16762   ;
16763   return 0;
16764 }
16765 _ACEOF
16766 rm -f conftest.$ac_objext
16767 if { (ac_try="$ac_compile"
16768 case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16773 $as_echo "$ac_try_echo") >&5
16774   (eval "$ac_compile") 2>conftest.er1
16775   ac_status=$?
16776   grep -v '^ *+' conftest.er1 >conftest.err
16777   rm -f conftest.er1
16778   cat conftest.err >&5
16779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); } && {
16781          test -z "$ac_c_werror_flag" ||
16782          test ! -s conftest.err
16783        } && test -s conftest.$ac_objext; then
16784   ac_cv_member_struct_sockaddr_sa_len=yes
16785 else
16786   $as_echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16788
16789         cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h.  */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h.  */
16795 #include <sys/types.h>
16796 #ifdef HAVE_SYS_SOCKET_H
16797 #include <sys/socket.h>
16798 #endif
16799
16800
16801 int
16802 main ()
16803 {
16804 static struct sockaddr ac_aggr;
16805 if (sizeof ac_aggr.sa_len)
16806 return 0;
16807   ;
16808   return 0;
16809 }
16810 _ACEOF
16811 rm -f conftest.$ac_objext
16812 if { (ac_try="$ac_compile"
16813 case "(($ac_try" in
16814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815   *) ac_try_echo=$ac_try;;
16816 esac
16817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16818 $as_echo "$ac_try_echo") >&5
16819   (eval "$ac_compile") 2>conftest.er1
16820   ac_status=$?
16821   grep -v '^ *+' conftest.er1 >conftest.err
16822   rm -f conftest.er1
16823   cat conftest.err >&5
16824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); } && {
16826          test -z "$ac_c_werror_flag" ||
16827          test ! -s conftest.err
16828        } && test -s conftest.$ac_objext; then
16829   ac_cv_member_struct_sockaddr_sa_len=yes
16830 else
16831   $as_echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834         ac_cv_member_struct_sockaddr_sa_len=no
16835 fi
16836
16837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838 fi
16839
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 fi
16842 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16843 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16844 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16845
16846 cat >>confdefs.h <<_ACEOF
16847 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16848 _ACEOF
16849
16850
16851 fi
16852
16853 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16854 $as_echo_n "checking for struct addrinfo... " >&6; }
16855 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16856   $as_echo_n "(cached) " >&6
16857 else
16858   ac_cv_type_struct_addrinfo=no
16859 cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865 #include <sys/types.h>
16866 #include <sys/socket.h>
16867 #include <netdb.h>
16868
16869
16870 int
16871 main ()
16872 {
16873 if (sizeof (struct addrinfo))
16874        return 0;
16875   ;
16876   return 0;
16877 }
16878 _ACEOF
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16886 $as_echo "$ac_try_echo") >&5
16887   (eval "$ac_compile") 2>conftest.er1
16888   ac_status=$?
16889   grep -v '^ *+' conftest.er1 >conftest.err
16890   rm -f conftest.er1
16891   cat conftest.err >&5
16892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893   (exit $ac_status); } && {
16894          test -z "$ac_c_werror_flag" ||
16895          test ! -s conftest.err
16896        } && test -s conftest.$ac_objext; then
16897   cat >conftest.$ac_ext <<_ACEOF
16898 /* confdefs.h.  */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h.  */
16903 #include <sys/types.h>
16904 #include <sys/socket.h>
16905 #include <netdb.h>
16906
16907
16908 int
16909 main ()
16910 {
16911 if (sizeof ((struct addrinfo)))
16912           return 0;
16913   ;
16914   return 0;
16915 }
16916 _ACEOF
16917 rm -f conftest.$ac_objext
16918 if { (ac_try="$ac_compile"
16919 case "(($ac_try" in
16920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921   *) ac_try_echo=$ac_try;;
16922 esac
16923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16924 $as_echo "$ac_try_echo") >&5
16925   (eval "$ac_compile") 2>conftest.er1
16926   ac_status=$?
16927   grep -v '^ *+' conftest.er1 >conftest.err
16928   rm -f conftest.er1
16929   cat conftest.err >&5
16930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); } && {
16932          test -z "$ac_c_werror_flag" ||
16933          test ! -s conftest.err
16934        } && test -s conftest.$ac_objext; then
16935   :
16936 else
16937   $as_echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16939
16940         ac_cv_type_struct_addrinfo=yes
16941 fi
16942
16943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16944 else
16945   $as_echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948
16949 fi
16950
16951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952 fi
16953 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16954 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16955 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16956
16957 cat >>confdefs.h <<_ACEOF
16958 #define HAVE_STRUCT_ADDRINFO 1
16959 _ACEOF
16960
16961
16962 fi
16963
16964
16965   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16966 $as_echo_n "checking for intptr_t... " >&6; }
16967 if test "${ac_cv_type_intptr_t+set}" = set; then
16968   $as_echo_n "(cached) " >&6
16969 else
16970   ac_cv_type_intptr_t=no
16971 cat >conftest.$ac_ext <<_ACEOF
16972 /* confdefs.h.  */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h.  */
16977 $ac_includes_default
16978 int
16979 main ()
16980 {
16981 if (sizeof (intptr_t))
16982        return 0;
16983   ;
16984   return 0;
16985 }
16986 _ACEOF
16987 rm -f conftest.$ac_objext
16988 if { (ac_try="$ac_compile"
16989 case "(($ac_try" in
16990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991   *) ac_try_echo=$ac_try;;
16992 esac
16993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16994 $as_echo "$ac_try_echo") >&5
16995   (eval "$ac_compile") 2>conftest.er1
16996   ac_status=$?
16997   grep -v '^ *+' conftest.er1 >conftest.err
16998   rm -f conftest.er1
16999   cat conftest.err >&5
17000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); } && {
17002          test -z "$ac_c_werror_flag" ||
17003          test ! -s conftest.err
17004        } && test -s conftest.$ac_objext; then
17005   cat >conftest.$ac_ext <<_ACEOF
17006 /* confdefs.h.  */
17007 _ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h.  */
17011 $ac_includes_default
17012 int
17013 main ()
17014 {
17015 if (sizeof ((intptr_t)))
17016           return 0;
17017   ;
17018   return 0;
17019 }
17020 _ACEOF
17021 rm -f conftest.$ac_objext
17022 if { (ac_try="$ac_compile"
17023 case "(($ac_try" in
17024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025   *) ac_try_echo=$ac_try;;
17026 esac
17027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17028 $as_echo "$ac_try_echo") >&5
17029   (eval "$ac_compile") 2>conftest.er1
17030   ac_status=$?
17031   grep -v '^ *+' conftest.er1 >conftest.err
17032   rm -f conftest.er1
17033   cat conftest.err >&5
17034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); } && {
17036          test -z "$ac_c_werror_flag" ||
17037          test ! -s conftest.err
17038        } && test -s conftest.$ac_objext; then
17039   :
17040 else
17041   $as_echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17043
17044         ac_cv_type_intptr_t=yes
17045 fi
17046
17047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17048 else
17049   $as_echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17051
17052
17053 fi
17054
17055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17056 fi
17057 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
17058 $as_echo "$ac_cv_type_intptr_t" >&6; }
17059 if test "x$ac_cv_type_intptr_t" = x""yes; then
17060
17061 cat >>confdefs.h <<\_ACEOF
17062 #define HAVE_INTPTR_T 1
17063 _ACEOF
17064
17065 else
17066   for ac_type in 'int' 'long int' 'long long int'; do
17067        cat >conftest.$ac_ext <<_ACEOF
17068 /* confdefs.h.  */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h.  */
17073 $ac_includes_default
17074 int
17075 main ()
17076 {
17077 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17078 test_array [0] = 0
17079
17080   ;
17081   return 0;
17082 }
17083 _ACEOF
17084 rm -f conftest.$ac_objext
17085 if { (ac_try="$ac_compile"
17086 case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17091 $as_echo "$ac_try_echo") >&5
17092   (eval "$ac_compile") 2>conftest.er1
17093   ac_status=$?
17094   grep -v '^ *+' conftest.er1 >conftest.err
17095   rm -f conftest.er1
17096   cat conftest.err >&5
17097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098   (exit $ac_status); } && {
17099          test -z "$ac_c_werror_flag" ||
17100          test ! -s conftest.err
17101        } && test -s conftest.$ac_objext; then
17102
17103 cat >>confdefs.h <<_ACEOF
17104 #define intptr_t $ac_type
17105 _ACEOF
17106
17107           ac_type=
17108 else
17109   $as_echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112
17113 fi
17114
17115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17116        test -z "$ac_type" && break
17117      done
17118 fi
17119
17120
17121
17122   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17123 $as_echo_n "checking for uintptr_t... " >&6; }
17124 if test "${ac_cv_type_uintptr_t+set}" = set; then
17125   $as_echo_n "(cached) " >&6
17126 else
17127   ac_cv_type_uintptr_t=no
17128 cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h.  */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h.  */
17134 $ac_includes_default
17135 int
17136 main ()
17137 {
17138 if (sizeof (uintptr_t))
17139        return 0;
17140   ;
17141   return 0;
17142 }
17143 _ACEOF
17144 rm -f conftest.$ac_objext
17145 if { (ac_try="$ac_compile"
17146 case "(($ac_try" in
17147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148   *) ac_try_echo=$ac_try;;
17149 esac
17150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17151 $as_echo "$ac_try_echo") >&5
17152   (eval "$ac_compile") 2>conftest.er1
17153   ac_status=$?
17154   grep -v '^ *+' conftest.er1 >conftest.err
17155   rm -f conftest.er1
17156   cat conftest.err >&5
17157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); } && {
17159          test -z "$ac_c_werror_flag" ||
17160          test ! -s conftest.err
17161        } && test -s conftest.$ac_objext; then
17162   cat >conftest.$ac_ext <<_ACEOF
17163 /* confdefs.h.  */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h.  */
17168 $ac_includes_default
17169 int
17170 main ()
17171 {
17172 if (sizeof ((uintptr_t)))
17173           return 0;
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.$ac_objext
17179 if { (ac_try="$ac_compile"
17180 case "(($ac_try" in
17181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182   *) ac_try_echo=$ac_try;;
17183 esac
17184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17185 $as_echo "$ac_try_echo") >&5
17186   (eval "$ac_compile") 2>conftest.er1
17187   ac_status=$?
17188   grep -v '^ *+' conftest.er1 >conftest.err
17189   rm -f conftest.er1
17190   cat conftest.err >&5
17191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192   (exit $ac_status); } && {
17193          test -z "$ac_c_werror_flag" ||
17194          test ! -s conftest.err
17195        } && test -s conftest.$ac_objext; then
17196   :
17197 else
17198   $as_echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201         ac_cv_type_uintptr_t=yes
17202 fi
17203
17204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17205 else
17206   $as_echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17208
17209
17210 fi
17211
17212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17213 fi
17214 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17215 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17216 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17217
17218 cat >>confdefs.h <<\_ACEOF
17219 #define HAVE_UINTPTR_T 1
17220 _ACEOF
17221
17222 else
17223   for ac_type in 'unsigned int' 'unsigned long int' \
17224         'unsigned long long int'; do
17225        cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h.  */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h.  */
17231 $ac_includes_default
17232 int
17233 main ()
17234 {
17235 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17236 test_array [0] = 0
17237
17238   ;
17239   return 0;
17240 }
17241 _ACEOF
17242 rm -f conftest.$ac_objext
17243 if { (ac_try="$ac_compile"
17244 case "(($ac_try" in
17245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246   *) ac_try_echo=$ac_try;;
17247 esac
17248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17249 $as_echo "$ac_try_echo") >&5
17250   (eval "$ac_compile") 2>conftest.er1
17251   ac_status=$?
17252   grep -v '^ *+' conftest.er1 >conftest.err
17253   rm -f conftest.er1
17254   cat conftest.err >&5
17255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256   (exit $ac_status); } && {
17257          test -z "$ac_c_werror_flag" ||
17258          test ! -s conftest.err
17259        } && test -s conftest.$ac_objext; then
17260
17261 cat >>confdefs.h <<_ACEOF
17262 #define uintptr_t $ac_type
17263 _ACEOF
17264
17265           ac_type=
17266 else
17267   $as_echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270
17271 fi
17272
17273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274        test -z "$ac_type" && break
17275      done
17276 fi
17277
17278
17279
17280   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17281 $as_echo_n "checking for long long int... " >&6; }
17282 if test "${ac_cv_type_long_long_int+set}" = set; then
17283   $as_echo_n "(cached) " >&6
17284 else
17285   cat >conftest.$ac_ext <<_ACEOF
17286
17287   /* confdefs.h.  */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h.  */
17292 /* For now, do not test the preprocessor; as of 2007 there are too many
17293          implementations with broken preprocessors.  Perhaps this can
17294          be revisited in 2012.  In the meantime, code should not expect
17295          #if to work with literals wider than 32 bits.  */
17296       /* Test literals.  */
17297       long long int ll = 9223372036854775807ll;
17298       long long int nll = -9223372036854775807LL;
17299       unsigned long long int ull = 18446744073709551615ULL;
17300       /* Test constant expressions.   */
17301       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17302                      ? 1 : -1)];
17303       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17304                      ? 1 : -1)];
17305       int i = 63;
17306 int
17307 main ()
17308 {
17309 /* Test availability of runtime routines for shift and division.  */
17310       long long int llmax = 9223372036854775807ll;
17311       unsigned long long int ullmax = 18446744073709551615ull;
17312       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17313               | (llmax / ll) | (llmax % ll)
17314               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17315               | (ullmax / ull) | (ullmax % ull));
17316   ;
17317   return 0;
17318 }
17319
17320 _ACEOF
17321 rm -f conftest.$ac_objext conftest$ac_exeext
17322 if { (ac_try="$ac_link"
17323 case "(($ac_try" in
17324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325   *) ac_try_echo=$ac_try;;
17326 esac
17327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17328 $as_echo "$ac_try_echo") >&5
17329   (eval "$ac_link") 2>conftest.er1
17330   ac_status=$?
17331   grep -v '^ *+' conftest.er1 >conftest.err
17332   rm -f conftest.er1
17333   cat conftest.err >&5
17334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335   (exit $ac_status); } && {
17336          test -z "$ac_c_werror_flag" ||
17337          test ! -s conftest.err
17338        } && test -s conftest$ac_exeext && {
17339          test "$cross_compiling" = yes ||
17340          $as_test_x conftest$ac_exeext
17341        }; then
17342                         if test "$cross_compiling" = yes; then
17343   ac_cv_type_long_long_int=yes
17344 else
17345   cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h.  */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h.  */
17351 #include <limits.h>
17352                #ifndef LLONG_MAX
17353                # define HALF \
17354                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17355                # define LLONG_MAX (HALF - 1 + HALF)
17356                #endif
17357 int
17358 main ()
17359 {
17360 long long int n = 1;
17361                int i;
17362                for (i = 0; ; i++)
17363                  {
17364                    long long int m = n << i;
17365                    if (m >> i != n)
17366                      return 1;
17367                    if (LLONG_MAX / 2 < m)
17368                      break;
17369                  }
17370                return 0;
17371   ;
17372   return 0;
17373 }
17374 _ACEOF
17375 rm -f conftest$ac_exeext
17376 if { (ac_try="$ac_link"
17377 case "(($ac_try" in
17378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379   *) ac_try_echo=$ac_try;;
17380 esac
17381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17382 $as_echo "$ac_try_echo") >&5
17383   (eval "$ac_link") 2>&5
17384   ac_status=$?
17385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17387   { (case "(($ac_try" in
17388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389   *) ac_try_echo=$ac_try;;
17390 esac
17391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17392 $as_echo "$ac_try_echo") >&5
17393   (eval "$ac_try") 2>&5
17394   ac_status=$?
17395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); }; }; then
17397   ac_cv_type_long_long_int=yes
17398 else
17399   $as_echo "$as_me: program exited with status $ac_status" >&5
17400 $as_echo "$as_me: failed program was:" >&5
17401 sed 's/^/| /' conftest.$ac_ext >&5
17402
17403 ( exit $ac_status )
17404 ac_cv_type_long_long_int=no
17405 fi
17406 rm -rf conftest.dSYM
17407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17408 fi
17409
17410
17411 else
17412   $as_echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415         ac_cv_type_long_long_int=no
17416 fi
17417
17418 rm -rf conftest.dSYM
17419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17420       conftest$ac_exeext conftest.$ac_ext
17421 fi
17422 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17423 $as_echo "$ac_cv_type_long_long_int" >&6; }
17424   if test $ac_cv_type_long_long_int = yes; then
17425
17426 cat >>confdefs.h <<\_ACEOF
17427 #define HAVE_LONG_LONG_INT 1
17428 _ACEOF
17429
17430   fi
17431
17432
17433 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17434 $as_echo_n "checking for locale_t... " >&6; }
17435 if test "${pgac_cv_type_locale_t+set}" = set; then
17436   $as_echo_n "(cached) " >&6
17437 else
17438   cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h.  */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h.  */
17444 #include <locale.h>
17445 locale_t x;
17446 int
17447 main ()
17448 {
17449
17450   ;
17451   return 0;
17452 }
17453 _ACEOF
17454 rm -f conftest.$ac_objext
17455 if { (ac_try="$ac_compile"
17456 case "(($ac_try" in
17457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458   *) ac_try_echo=$ac_try;;
17459 esac
17460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17461 $as_echo "$ac_try_echo") >&5
17462   (eval "$ac_compile") 2>conftest.er1
17463   ac_status=$?
17464   grep -v '^ *+' conftest.er1 >conftest.err
17465   rm -f conftest.er1
17466   cat conftest.err >&5
17467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); } && {
17469          test -z "$ac_c_werror_flag" ||
17470          test ! -s conftest.err
17471        } && test -s conftest.$ac_objext; then
17472   pgac_cv_type_locale_t=yes
17473 else
17474   $as_echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17476
17477         cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483 #include <xlocale.h>
17484 locale_t x;
17485 int
17486 main ()
17487 {
17488
17489   ;
17490   return 0;
17491 }
17492 _ACEOF
17493 rm -f conftest.$ac_objext
17494 if { (ac_try="$ac_compile"
17495 case "(($ac_try" in
17496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497   *) ac_try_echo=$ac_try;;
17498 esac
17499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17500 $as_echo "$ac_try_echo") >&5
17501   (eval "$ac_compile") 2>conftest.er1
17502   ac_status=$?
17503   grep -v '^ *+' conftest.er1 >conftest.err
17504   rm -f conftest.er1
17505   cat conftest.err >&5
17506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507   (exit $ac_status); } && {
17508          test -z "$ac_c_werror_flag" ||
17509          test ! -s conftest.err
17510        } && test -s conftest.$ac_objext; then
17511   pgac_cv_type_locale_t='yes (in xlocale.h)'
17512 else
17513   $as_echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17515
17516         pgac_cv_type_locale_t=no
17517 fi
17518
17519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520 fi
17521
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 fi
17524 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17525 $as_echo "$pgac_cv_type_locale_t" >&6; }
17526 if test "$pgac_cv_type_locale_t" != no; then
17527
17528 cat >>confdefs.h <<\_ACEOF
17529 #define HAVE_LOCALE_T 1
17530 _ACEOF
17531
17532 fi
17533 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17534
17535 cat >>confdefs.h <<\_ACEOF
17536 #define LOCALE_T_IN_XLOCALE 1
17537 _ACEOF
17538
17539 fi
17540
17541 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17542 $as_echo_n "checking for struct cmsgcred... " >&6; }
17543 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17544   $as_echo_n "(cached) " >&6
17545 else
17546   ac_cv_type_struct_cmsgcred=no
17547 cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h.  */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h.  */
17553 #include <sys/socket.h>
17554 #ifdef HAVE_SYS_UCRED_H
17555 #include <sys/ucred.h>
17556 #endif
17557
17558 int
17559 main ()
17560 {
17561 if (sizeof (struct cmsgcred))
17562        return 0;
17563   ;
17564   return 0;
17565 }
17566 _ACEOF
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571   *) ac_try_echo=$ac_try;;
17572 esac
17573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17574 $as_echo "$ac_try_echo") >&5
17575   (eval "$ac_compile") 2>conftest.er1
17576   ac_status=$?
17577   grep -v '^ *+' conftest.er1 >conftest.err
17578   rm -f conftest.er1
17579   cat conftest.err >&5
17580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); } && {
17582          test -z "$ac_c_werror_flag" ||
17583          test ! -s conftest.err
17584        } && test -s conftest.$ac_objext; then
17585   cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591 #include <sys/socket.h>
17592 #ifdef HAVE_SYS_UCRED_H
17593 #include <sys/ucred.h>
17594 #endif
17595
17596 int
17597 main ()
17598 {
17599 if (sizeof ((struct cmsgcred)))
17600           return 0;
17601   ;
17602   return 0;
17603 }
17604 _ACEOF
17605 rm -f conftest.$ac_objext
17606 if { (ac_try="$ac_compile"
17607 case "(($ac_try" in
17608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609   *) ac_try_echo=$ac_try;;
17610 esac
17611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17612 $as_echo "$ac_try_echo") >&5
17613   (eval "$ac_compile") 2>conftest.er1
17614   ac_status=$?
17615   grep -v '^ *+' conftest.er1 >conftest.err
17616   rm -f conftest.er1
17617   cat conftest.err >&5
17618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } && {
17620          test -z "$ac_c_werror_flag" ||
17621          test ! -s conftest.err
17622        } && test -s conftest.$ac_objext; then
17623   :
17624 else
17625   $as_echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17627
17628         ac_cv_type_struct_cmsgcred=yes
17629 fi
17630
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632 else
17633   $as_echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17635
17636
17637 fi
17638
17639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17640 fi
17641 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17642 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17643 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17644
17645 cat >>confdefs.h <<_ACEOF
17646 #define HAVE_STRUCT_CMSGCRED 1
17647 _ACEOF
17648
17649
17650 fi
17651
17652
17653 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17654 $as_echo_n "checking for struct option... " >&6; }
17655 if test "${ac_cv_type_struct_option+set}" = set; then
17656   $as_echo_n "(cached) " >&6
17657 else
17658   ac_cv_type_struct_option=no
17659 cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h.  */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h.  */
17665 #ifdef HAVE_GETOPT_H
17666 #include <getopt.h>
17667 #endif
17668
17669 int
17670 main ()
17671 {
17672 if (sizeof (struct option))
17673        return 0;
17674   ;
17675   return 0;
17676 }
17677 _ACEOF
17678 rm -f conftest.$ac_objext
17679 if { (ac_try="$ac_compile"
17680 case "(($ac_try" in
17681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682   *) ac_try_echo=$ac_try;;
17683 esac
17684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17685 $as_echo "$ac_try_echo") >&5
17686   (eval "$ac_compile") 2>conftest.er1
17687   ac_status=$?
17688   grep -v '^ *+' conftest.er1 >conftest.err
17689   rm -f conftest.er1
17690   cat conftest.err >&5
17691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); } && {
17693          test -z "$ac_c_werror_flag" ||
17694          test ! -s conftest.err
17695        } && test -s conftest.$ac_objext; then
17696   cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h.  */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h.  */
17702 #ifdef HAVE_GETOPT_H
17703 #include <getopt.h>
17704 #endif
17705
17706 int
17707 main ()
17708 {
17709 if (sizeof ((struct option)))
17710           return 0;
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 rm -f conftest.$ac_objext
17716 if { (ac_try="$ac_compile"
17717 case "(($ac_try" in
17718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719   *) ac_try_echo=$ac_try;;
17720 esac
17721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17722 $as_echo "$ac_try_echo") >&5
17723   (eval "$ac_compile") 2>conftest.er1
17724   ac_status=$?
17725   grep -v '^ *+' conftest.er1 >conftest.err
17726   rm -f conftest.er1
17727   cat conftest.err >&5
17728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); } && {
17730          test -z "$ac_c_werror_flag" ||
17731          test ! -s conftest.err
17732        } && test -s conftest.$ac_objext; then
17733   :
17734 else
17735   $as_echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738         ac_cv_type_struct_option=yes
17739 fi
17740
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742 else
17743   $as_echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17745
17746
17747 fi
17748
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750 fi
17751 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17752 $as_echo "$ac_cv_type_struct_option" >&6; }
17753 if test "x$ac_cv_type_struct_option" = x""yes; then
17754
17755 cat >>confdefs.h <<_ACEOF
17756 #define HAVE_STRUCT_OPTION 1
17757 _ACEOF
17758
17759
17760 fi
17761
17762
17763 if test "$with_zlib" = yes; then
17764   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17765   # did not).  While we could work around the lack of z_streamp, it
17766   # seems unwise to encourage people to use such old zlib versions...
17767   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17768 $as_echo_n "checking for z_streamp... " >&6; }
17769 if test "${ac_cv_type_z_streamp+set}" = set; then
17770   $as_echo_n "(cached) " >&6
17771 else
17772   ac_cv_type_z_streamp=no
17773 cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h.  */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h.  */
17779 #include <zlib.h>
17780
17781 int
17782 main ()
17783 {
17784 if (sizeof (z_streamp))
17785        return 0;
17786   ;
17787   return 0;
17788 }
17789 _ACEOF
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794   *) ac_try_echo=$ac_try;;
17795 esac
17796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17797 $as_echo "$ac_try_echo") >&5
17798   (eval "$ac_compile") 2>conftest.er1
17799   ac_status=$?
17800   grep -v '^ *+' conftest.er1 >conftest.err
17801   rm -f conftest.er1
17802   cat conftest.err >&5
17803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); } && {
17805          test -z "$ac_c_werror_flag" ||
17806          test ! -s conftest.err
17807        } && test -s conftest.$ac_objext; then
17808   cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h.  */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h.  */
17814 #include <zlib.h>
17815
17816 int
17817 main ()
17818 {
17819 if (sizeof ((z_streamp)))
17820           return 0;
17821   ;
17822   return 0;
17823 }
17824 _ACEOF
17825 rm -f conftest.$ac_objext
17826 if { (ac_try="$ac_compile"
17827 case "(($ac_try" in
17828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829   *) ac_try_echo=$ac_try;;
17830 esac
17831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17832 $as_echo "$ac_try_echo") >&5
17833   (eval "$ac_compile") 2>conftest.er1
17834   ac_status=$?
17835   grep -v '^ *+' conftest.er1 >conftest.err
17836   rm -f conftest.er1
17837   cat conftest.err >&5
17838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); } && {
17840          test -z "$ac_c_werror_flag" ||
17841          test ! -s conftest.err
17842        } && test -s conftest.$ac_objext; then
17843   :
17844 else
17845   $as_echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17847
17848         ac_cv_type_z_streamp=yes
17849 fi
17850
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 else
17853   $as_echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17855
17856
17857 fi
17858
17859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17860 fi
17861 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17862 $as_echo "$ac_cv_type_z_streamp" >&6; }
17863 if test "x$ac_cv_type_z_streamp" = x""yes; then
17864   :
17865 else
17866   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17867 Use --without-zlib to disable zlib support." >&5
17868 $as_echo "$as_me: error: zlib version is too old
17869 Use --without-zlib to disable zlib support." >&2;}
17870    { (exit 1); exit 1; }; }
17871 fi
17872
17873 fi
17874
17875 if test "$with_krb5" = yes; then
17876 # Check for differences between MIT and Heimdal (KTH) releases
17877   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17878 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17879 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17880   $as_echo_n "(cached) " >&6
17881 else
17882   cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h.  */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h.  */
17888 #include <krb5.h>
17889
17890 int
17891 main ()
17892 {
17893 static krb5_ticket ac_aggr;
17894 if (ac_aggr.enc_part2)
17895 return 0;
17896   ;
17897   return 0;
17898 }
17899 _ACEOF
17900 rm -f conftest.$ac_objext
17901 if { (ac_try="$ac_compile"
17902 case "(($ac_try" in
17903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904   *) ac_try_echo=$ac_try;;
17905 esac
17906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17907 $as_echo "$ac_try_echo") >&5
17908   (eval "$ac_compile") 2>conftest.er1
17909   ac_status=$?
17910   grep -v '^ *+' conftest.er1 >conftest.err
17911   rm -f conftest.er1
17912   cat conftest.err >&5
17913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); } && {
17915          test -z "$ac_c_werror_flag" ||
17916          test ! -s conftest.err
17917        } && test -s conftest.$ac_objext; then
17918   ac_cv_member_krb5_ticket_enc_part2=yes
17919 else
17920   $as_echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17922
17923         cat >conftest.$ac_ext <<_ACEOF
17924 /* confdefs.h.  */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h.  */
17929 #include <krb5.h>
17930
17931 int
17932 main ()
17933 {
17934 static krb5_ticket ac_aggr;
17935 if (sizeof ac_aggr.enc_part2)
17936 return 0;
17937   ;
17938   return 0;
17939 }
17940 _ACEOF
17941 rm -f conftest.$ac_objext
17942 if { (ac_try="$ac_compile"
17943 case "(($ac_try" in
17944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945   *) ac_try_echo=$ac_try;;
17946 esac
17947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17948 $as_echo "$ac_try_echo") >&5
17949   (eval "$ac_compile") 2>conftest.er1
17950   ac_status=$?
17951   grep -v '^ *+' conftest.er1 >conftest.err
17952   rm -f conftest.er1
17953   cat conftest.err >&5
17954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); } && {
17956          test -z "$ac_c_werror_flag" ||
17957          test ! -s conftest.err
17958        } && test -s conftest.$ac_objext; then
17959   ac_cv_member_krb5_ticket_enc_part2=yes
17960 else
17961   $as_echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17963
17964         ac_cv_member_krb5_ticket_enc_part2=no
17965 fi
17966
17967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17968 fi
17969
17970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17971 fi
17972 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17973 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17974 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17975
17976 cat >>confdefs.h <<_ACEOF
17977 #define HAVE_KRB5_TICKET_ENC_PART2 1
17978 _ACEOF
17979
17980
17981 else
17982   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17983 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17984 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17985   $as_echo_n "(cached) " >&6
17986 else
17987   cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h.  */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h.  */
17993 #include <krb5.h>
17994
17995 int
17996 main ()
17997 {
17998 static krb5_ticket ac_aggr;
17999 if (ac_aggr.client)
18000 return 0;
18001   ;
18002   return 0;
18003 }
18004 _ACEOF
18005 rm -f conftest.$ac_objext
18006 if { (ac_try="$ac_compile"
18007 case "(($ac_try" in
18008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009   *) ac_try_echo=$ac_try;;
18010 esac
18011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18012 $as_echo "$ac_try_echo") >&5
18013   (eval "$ac_compile") 2>conftest.er1
18014   ac_status=$?
18015   grep -v '^ *+' conftest.er1 >conftest.err
18016   rm -f conftest.er1
18017   cat conftest.err >&5
18018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } && {
18020          test -z "$ac_c_werror_flag" ||
18021          test ! -s conftest.err
18022        } && test -s conftest.$ac_objext; then
18023   ac_cv_member_krb5_ticket_client=yes
18024 else
18025   $as_echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028         cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h.  */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h.  */
18034 #include <krb5.h>
18035
18036 int
18037 main ()
18038 {
18039 static krb5_ticket ac_aggr;
18040 if (sizeof ac_aggr.client)
18041 return 0;
18042   ;
18043   return 0;
18044 }
18045 _ACEOF
18046 rm -f conftest.$ac_objext
18047 if { (ac_try="$ac_compile"
18048 case "(($ac_try" in
18049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050   *) ac_try_echo=$ac_try;;
18051 esac
18052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18053 $as_echo "$ac_try_echo") >&5
18054   (eval "$ac_compile") 2>conftest.er1
18055   ac_status=$?
18056   grep -v '^ *+' conftest.er1 >conftest.err
18057   rm -f conftest.er1
18058   cat conftest.err >&5
18059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); } && {
18061          test -z "$ac_c_werror_flag" ||
18062          test ! -s conftest.err
18063        } && test -s conftest.$ac_objext; then
18064   ac_cv_member_krb5_ticket_client=yes
18065 else
18066   $as_echo "$as_me: failed program was:" >&5
18067 sed 's/^/| /' conftest.$ac_ext >&5
18068
18069         ac_cv_member_krb5_ticket_client=no
18070 fi
18071
18072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18073 fi
18074
18075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18076 fi
18077 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18078 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18079 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18080
18081 cat >>confdefs.h <<_ACEOF
18082 #define HAVE_KRB5_TICKET_CLIENT 1
18083 _ACEOF
18084
18085
18086 else
18087   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18088 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18089    { (exit 1); exit 1; }; }
18090 fi
18091
18092 fi
18093
18094   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18095 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18096 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18097   $as_echo_n "(cached) " >&6
18098 else
18099   cat >conftest.$ac_ext <<_ACEOF
18100 /* confdefs.h.  */
18101 _ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h.  */
18105 #include <krb5.h>
18106
18107 int
18108 main ()
18109 {
18110 static krb5_error ac_aggr;
18111 if (ac_aggr.text.data)
18112 return 0;
18113   ;
18114   return 0;
18115 }
18116 _ACEOF
18117 rm -f conftest.$ac_objext
18118 if { (ac_try="$ac_compile"
18119 case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18124 $as_echo "$ac_try_echo") >&5
18125   (eval "$ac_compile") 2>conftest.er1
18126   ac_status=$?
18127   grep -v '^ *+' conftest.er1 >conftest.err
18128   rm -f conftest.er1
18129   cat conftest.err >&5
18130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131   (exit $ac_status); } && {
18132          test -z "$ac_c_werror_flag" ||
18133          test ! -s conftest.err
18134        } && test -s conftest.$ac_objext; then
18135   ac_cv_member_krb5_error_text_data=yes
18136 else
18137   $as_echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18139
18140         cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h.  */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h.  */
18146 #include <krb5.h>
18147
18148 int
18149 main ()
18150 {
18151 static krb5_error ac_aggr;
18152 if (sizeof ac_aggr.text.data)
18153 return 0;
18154   ;
18155   return 0;
18156 }
18157 _ACEOF
18158 rm -f conftest.$ac_objext
18159 if { (ac_try="$ac_compile"
18160 case "(($ac_try" in
18161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162   *) ac_try_echo=$ac_try;;
18163 esac
18164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18165 $as_echo "$ac_try_echo") >&5
18166   (eval "$ac_compile") 2>conftest.er1
18167   ac_status=$?
18168   grep -v '^ *+' conftest.er1 >conftest.err
18169   rm -f conftest.er1
18170   cat conftest.err >&5
18171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); } && {
18173          test -z "$ac_c_werror_flag" ||
18174          test ! -s conftest.err
18175        } && test -s conftest.$ac_objext; then
18176   ac_cv_member_krb5_error_text_data=yes
18177 else
18178   $as_echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18180
18181         ac_cv_member_krb5_error_text_data=no
18182 fi
18183
18184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185 fi
18186
18187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18188 fi
18189 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18190 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18191 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18192
18193 cat >>confdefs.h <<_ACEOF
18194 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18195 _ACEOF
18196
18197
18198 else
18199   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18200 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18201 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18202   $as_echo_n "(cached) " >&6
18203 else
18204   cat >conftest.$ac_ext <<_ACEOF
18205 /* confdefs.h.  */
18206 _ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h.  */
18210 #include <krb5.h>
18211
18212 int
18213 main ()
18214 {
18215 static krb5_error ac_aggr;
18216 if (ac_aggr.e_data)
18217 return 0;
18218   ;
18219   return 0;
18220 }
18221 _ACEOF
18222 rm -f conftest.$ac_objext
18223 if { (ac_try="$ac_compile"
18224 case "(($ac_try" in
18225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226   *) ac_try_echo=$ac_try;;
18227 esac
18228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18229 $as_echo "$ac_try_echo") >&5
18230   (eval "$ac_compile") 2>conftest.er1
18231   ac_status=$?
18232   grep -v '^ *+' conftest.er1 >conftest.err
18233   rm -f conftest.er1
18234   cat conftest.err >&5
18235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); } && {
18237          test -z "$ac_c_werror_flag" ||
18238          test ! -s conftest.err
18239        } && test -s conftest.$ac_objext; then
18240   ac_cv_member_krb5_error_e_data=yes
18241 else
18242   $as_echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18244
18245         cat >conftest.$ac_ext <<_ACEOF
18246 /* confdefs.h.  */
18247 _ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h.  */
18251 #include <krb5.h>
18252
18253 int
18254 main ()
18255 {
18256 static krb5_error ac_aggr;
18257 if (sizeof ac_aggr.e_data)
18258 return 0;
18259   ;
18260   return 0;
18261 }
18262 _ACEOF
18263 rm -f conftest.$ac_objext
18264 if { (ac_try="$ac_compile"
18265 case "(($ac_try" in
18266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267   *) ac_try_echo=$ac_try;;
18268 esac
18269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18270 $as_echo "$ac_try_echo") >&5
18271   (eval "$ac_compile") 2>conftest.er1
18272   ac_status=$?
18273   grep -v '^ *+' conftest.er1 >conftest.err
18274   rm -f conftest.er1
18275   cat conftest.err >&5
18276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277   (exit $ac_status); } && {
18278          test -z "$ac_c_werror_flag" ||
18279          test ! -s conftest.err
18280        } && test -s conftest.$ac_objext; then
18281   ac_cv_member_krb5_error_e_data=yes
18282 else
18283   $as_echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18285
18286         ac_cv_member_krb5_error_e_data=no
18287 fi
18288
18289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18290 fi
18291
18292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18293 fi
18294 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18295 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18296 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18297
18298 cat >>confdefs.h <<_ACEOF
18299 #define HAVE_KRB5_ERROR_E_DATA 1
18300 _ACEOF
18301
18302
18303 else
18304   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18305 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18306    { (exit 1); exit 1; }; }
18307 fi
18308
18309 fi
18310
18311
18312 # Win32 requires headers to be loaded for __stdcall, so can't use
18313 # AC_CHECK_FUNCS here.
18314   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18315 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18316   cat >conftest.$ac_ext <<_ACEOF
18317 /* confdefs.h.  */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h.  */
18322 #include <krb5.h>
18323 int
18324 main ()
18325 {
18326 krb5_free_unparsed_name(NULL,NULL);
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (ac_try="$ac_link"
18333 case "(($ac_try" in
18334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335   *) ac_try_echo=$ac_try;;
18336 esac
18337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18338 $as_echo "$ac_try_echo") >&5
18339   (eval "$ac_link") 2>conftest.er1
18340   ac_status=$?
18341   grep -v '^ *+' conftest.er1 >conftest.err
18342   rm -f conftest.er1
18343   cat conftest.err >&5
18344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345   (exit $ac_status); } && {
18346          test -z "$ac_c_werror_flag" ||
18347          test ! -s conftest.err
18348        } && test -s conftest$ac_exeext && {
18349          test "$cross_compiling" = yes ||
18350          $as_test_x conftest$ac_exeext
18351        }; then
18352
18353 cat >>confdefs.h <<\_ACEOF
18354 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18355 _ACEOF
18356
18357 { $as_echo "$as_me:$LINENO: result: yes" >&5
18358 $as_echo "yes" >&6; }
18359 else
18360   $as_echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18362
18363         { $as_echo "$as_me:$LINENO: result: no" >&5
18364 $as_echo "no" >&6; }
18365 fi
18366
18367 rm -rf conftest.dSYM
18368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18369       conftest$ac_exeext conftest.$ac_ext
18370 fi
18371
18372 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18373 case $host_cpu in
18374   ppc*|powerpc*)
18375     { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18376 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18377     cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h.  */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h.  */
18383
18384 int
18385 main ()
18386 {
18387 int a = 0; int *p = &a; int r;
18388          __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18389   ;
18390   return 0;
18391 }
18392 _ACEOF
18393 rm -f conftest.$ac_objext
18394 if { (ac_try="$ac_compile"
18395 case "(($ac_try" in
18396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397   *) ac_try_echo=$ac_try;;
18398 esac
18399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18400 $as_echo "$ac_try_echo") >&5
18401   (eval "$ac_compile") 2>conftest.er1
18402   ac_status=$?
18403   grep -v '^ *+' conftest.er1 >conftest.err
18404   rm -f conftest.er1
18405   cat conftest.err >&5
18406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); } && {
18408          test -z "$ac_c_werror_flag" ||
18409          test ! -s conftest.err
18410        } && test -s conftest.$ac_objext; then
18411   pgac_cv_have_ppc_mutex_hint=yes
18412 else
18413   $as_echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18415
18416         pgac_cv_have_ppc_mutex_hint=no
18417 fi
18418
18419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18420     { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18421 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18422     if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18423
18424 cat >>confdefs.h <<\_ACEOF
18425 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18426 _ACEOF
18427
18428     fi
18429   ;;
18430 esac
18431
18432 # Check largefile support.  You might think this is a system service not a
18433 # compiler characteristic, but you'd be wrong.  We must check this before
18434 # probing existence of related functions such as fseeko, since the largefile
18435 # defines can affect what is generated for that.
18436 if test "$PORTNAME" != "win32"; then
18437    # Check whether --enable-largefile was given.
18438 if test "${enable_largefile+set}" = set; then
18439   enableval=$enable_largefile;
18440 fi
18441
18442 if test "$enable_largefile" != no; then
18443
18444   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18445 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18446 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18447   $as_echo_n "(cached) " >&6
18448 else
18449   ac_cv_sys_largefile_CC=no
18450      if test "$GCC" != yes; then
18451        ac_save_CC=$CC
18452        while :; do
18453          # IRIX 6.2 and later do not support large files by default,
18454          # so use the C compiler's -n32 option if that helps.
18455          cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h.  */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h.  */
18461 #include <sys/types.h>
18462  /* Check that off_t can represent 2**63 - 1 correctly.
18463     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18464     since some C++ compilers masquerading as C compilers
18465     incorrectly reject 9223372036854775807.  */
18466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18467   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18468                        && LARGE_OFF_T % 2147483647 == 1)
18469                       ? 1 : -1];
18470 int
18471 main ()
18472 {
18473
18474   ;
18475   return 0;
18476 }
18477 _ACEOF
18478          rm -f conftest.$ac_objext
18479 if { (ac_try="$ac_compile"
18480 case "(($ac_try" in
18481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482   *) ac_try_echo=$ac_try;;
18483 esac
18484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18485 $as_echo "$ac_try_echo") >&5
18486   (eval "$ac_compile") 2>conftest.er1
18487   ac_status=$?
18488   grep -v '^ *+' conftest.er1 >conftest.err
18489   rm -f conftest.er1
18490   cat conftest.err >&5
18491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492   (exit $ac_status); } && {
18493          test -z "$ac_c_werror_flag" ||
18494          test ! -s conftest.err
18495        } && test -s conftest.$ac_objext; then
18496   break
18497 else
18498   $as_echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18500
18501
18502 fi
18503
18504 rm -f core conftest.err conftest.$ac_objext
18505          CC="$CC -n32"
18506          rm -f conftest.$ac_objext
18507 if { (ac_try="$ac_compile"
18508 case "(($ac_try" in
18509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510   *) ac_try_echo=$ac_try;;
18511 esac
18512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18513 $as_echo "$ac_try_echo") >&5
18514   (eval "$ac_compile") 2>conftest.er1
18515   ac_status=$?
18516   grep -v '^ *+' conftest.er1 >conftest.err
18517   rm -f conftest.er1
18518   cat conftest.err >&5
18519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); } && {
18521          test -z "$ac_c_werror_flag" ||
18522          test ! -s conftest.err
18523        } && test -s conftest.$ac_objext; then
18524   ac_cv_sys_largefile_CC=' -n32'; break
18525 else
18526   $as_echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18528
18529
18530 fi
18531
18532 rm -f core conftest.err conftest.$ac_objext
18533          break
18534        done
18535        CC=$ac_save_CC
18536        rm -f conftest.$ac_ext
18537     fi
18538 fi
18539 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18540 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18541   if test "$ac_cv_sys_largefile_CC" != no; then
18542     CC=$CC$ac_cv_sys_largefile_CC
18543   fi
18544
18545   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18546 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18547 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18548   $as_echo_n "(cached) " >&6
18549 else
18550   while :; do
18551   cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h.  */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h.  */
18557 #include <sys/types.h>
18558  /* Check that off_t can represent 2**63 - 1 correctly.
18559     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18560     since some C++ compilers masquerading as C compilers
18561     incorrectly reject 9223372036854775807.  */
18562 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18563   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18564                        && LARGE_OFF_T % 2147483647 == 1)
18565                       ? 1 : -1];
18566 int
18567 main ()
18568 {
18569
18570   ;
18571   return 0;
18572 }
18573 _ACEOF
18574 rm -f conftest.$ac_objext
18575 if { (ac_try="$ac_compile"
18576 case "(($ac_try" in
18577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578   *) ac_try_echo=$ac_try;;
18579 esac
18580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18581 $as_echo "$ac_try_echo") >&5
18582   (eval "$ac_compile") 2>conftest.er1
18583   ac_status=$?
18584   grep -v '^ *+' conftest.er1 >conftest.err
18585   rm -f conftest.er1
18586   cat conftest.err >&5
18587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); } && {
18589          test -z "$ac_c_werror_flag" ||
18590          test ! -s conftest.err
18591        } && test -s conftest.$ac_objext; then
18592   ac_cv_sys_file_offset_bits=no; break
18593 else
18594   $as_echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18596
18597
18598 fi
18599
18600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18601   cat >conftest.$ac_ext <<_ACEOF
18602 /* confdefs.h.  */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h.  */
18607 #define _FILE_OFFSET_BITS 64
18608 #include <sys/types.h>
18609  /* Check that off_t can represent 2**63 - 1 correctly.
18610     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18611     since some C++ compilers masquerading as C compilers
18612     incorrectly reject 9223372036854775807.  */
18613 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18614   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18615                        && LARGE_OFF_T % 2147483647 == 1)
18616                       ? 1 : -1];
18617 int
18618 main ()
18619 {
18620
18621   ;
18622   return 0;
18623 }
18624 _ACEOF
18625 rm -f conftest.$ac_objext
18626 if { (ac_try="$ac_compile"
18627 case "(($ac_try" in
18628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629   *) ac_try_echo=$ac_try;;
18630 esac
18631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18632 $as_echo "$ac_try_echo") >&5
18633   (eval "$ac_compile") 2>conftest.er1
18634   ac_status=$?
18635   grep -v '^ *+' conftest.er1 >conftest.err
18636   rm -f conftest.er1
18637   cat conftest.err >&5
18638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639   (exit $ac_status); } && {
18640          test -z "$ac_c_werror_flag" ||
18641          test ! -s conftest.err
18642        } && test -s conftest.$ac_objext; then
18643   ac_cv_sys_file_offset_bits=64; break
18644 else
18645   $as_echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18647
18648
18649 fi
18650
18651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18652   ac_cv_sys_file_offset_bits=unknown
18653   break
18654 done
18655 fi
18656 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18657 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18658 case $ac_cv_sys_file_offset_bits in #(
18659   no | unknown) ;;
18660   *)
18661 cat >>confdefs.h <<_ACEOF
18662 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18663 _ACEOF
18664 ;;
18665 esac
18666 rm -rf conftest*
18667   if test $ac_cv_sys_file_offset_bits = unknown; then
18668     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18669 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18670 if test "${ac_cv_sys_large_files+set}" = set; then
18671   $as_echo_n "(cached) " >&6
18672 else
18673   while :; do
18674   cat >conftest.$ac_ext <<_ACEOF
18675 /* confdefs.h.  */
18676 _ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h.  */
18680 #include <sys/types.h>
18681  /* Check that off_t can represent 2**63 - 1 correctly.
18682     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18683     since some C++ compilers masquerading as C compilers
18684     incorrectly reject 9223372036854775807.  */
18685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18686   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18687                        && LARGE_OFF_T % 2147483647 == 1)
18688                       ? 1 : -1];
18689 int
18690 main ()
18691 {
18692
18693   ;
18694   return 0;
18695 }
18696 _ACEOF
18697 rm -f conftest.$ac_objext
18698 if { (ac_try="$ac_compile"
18699 case "(($ac_try" in
18700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701   *) ac_try_echo=$ac_try;;
18702 esac
18703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18704 $as_echo "$ac_try_echo") >&5
18705   (eval "$ac_compile") 2>conftest.er1
18706   ac_status=$?
18707   grep -v '^ *+' conftest.er1 >conftest.err
18708   rm -f conftest.er1
18709   cat conftest.err >&5
18710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); } && {
18712          test -z "$ac_c_werror_flag" ||
18713          test ! -s conftest.err
18714        } && test -s conftest.$ac_objext; then
18715   ac_cv_sys_large_files=no; break
18716 else
18717   $as_echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18719
18720
18721 fi
18722
18723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18724   cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h.  */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h.  */
18730 #define _LARGE_FILES 1
18731 #include <sys/types.h>
18732  /* Check that off_t can represent 2**63 - 1 correctly.
18733     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18734     since some C++ compilers masquerading as C compilers
18735     incorrectly reject 9223372036854775807.  */
18736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18737   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18738                        && LARGE_OFF_T % 2147483647 == 1)
18739                       ? 1 : -1];
18740 int
18741 main ()
18742 {
18743
18744   ;
18745   return 0;
18746 }
18747 _ACEOF
18748 rm -f conftest.$ac_objext
18749 if { (ac_try="$ac_compile"
18750 case "(($ac_try" in
18751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752   *) ac_try_echo=$ac_try;;
18753 esac
18754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18755 $as_echo "$ac_try_echo") >&5
18756   (eval "$ac_compile") 2>conftest.er1
18757   ac_status=$?
18758   grep -v '^ *+' conftest.er1 >conftest.err
18759   rm -f conftest.er1
18760   cat conftest.err >&5
18761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); } && {
18763          test -z "$ac_c_werror_flag" ||
18764          test ! -s conftest.err
18765        } && test -s conftest.$ac_objext; then
18766   ac_cv_sys_large_files=1; break
18767 else
18768   $as_echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18770
18771
18772 fi
18773
18774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18775   ac_cv_sys_large_files=unknown
18776   break
18777 done
18778 fi
18779 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18780 $as_echo "$ac_cv_sys_large_files" >&6; }
18781 case $ac_cv_sys_large_files in #(
18782   no | unknown) ;;
18783   *)
18784 cat >>confdefs.h <<_ACEOF
18785 #define _LARGE_FILES $ac_cv_sys_large_files
18786 _ACEOF
18787 ;;
18788 esac
18789 rm -rf conftest*
18790   fi
18791 fi
18792
18793 fi
18794
18795 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18796 # The cast to long int works around a bug in the HP C Compiler
18797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18799 # This bug is HP SR number 8606223364.
18800 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18801 $as_echo_n "checking size of off_t... " >&6; }
18802 if test "${ac_cv_sizeof_off_t+set}" = set; then
18803   $as_echo_n "(cached) " >&6
18804 else
18805   if test "$cross_compiling" = yes; then
18806   # Depending upon the size, compute the lo and hi bounds.
18807 cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h.  */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h.  */
18813 $ac_includes_default
18814 int
18815 main ()
18816 {
18817 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18818 test_array [0] = 0
18819
18820   ;
18821   return 0;
18822 }
18823 _ACEOF
18824 rm -f conftest.$ac_objext
18825 if { (ac_try="$ac_compile"
18826 case "(($ac_try" in
18827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828   *) ac_try_echo=$ac_try;;
18829 esac
18830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18831 $as_echo "$ac_try_echo") >&5
18832   (eval "$ac_compile") 2>conftest.er1
18833   ac_status=$?
18834   grep -v '^ *+' conftest.er1 >conftest.err
18835   rm -f conftest.er1
18836   cat conftest.err >&5
18837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838   (exit $ac_status); } && {
18839          test -z "$ac_c_werror_flag" ||
18840          test ! -s conftest.err
18841        } && test -s conftest.$ac_objext; then
18842   ac_lo=0 ac_mid=0
18843   while :; do
18844     cat >conftest.$ac_ext <<_ACEOF
18845 /* confdefs.h.  */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h.  */
18850 $ac_includes_default
18851 int
18852 main ()
18853 {
18854 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18855 test_array [0] = 0
18856
18857   ;
18858   return 0;
18859 }
18860 _ACEOF
18861 rm -f conftest.$ac_objext
18862 if { (ac_try="$ac_compile"
18863 case "(($ac_try" in
18864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865   *) ac_try_echo=$ac_try;;
18866 esac
18867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18868 $as_echo "$ac_try_echo") >&5
18869   (eval "$ac_compile") 2>conftest.er1
18870   ac_status=$?
18871   grep -v '^ *+' conftest.er1 >conftest.err
18872   rm -f conftest.er1
18873   cat conftest.err >&5
18874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); } && {
18876          test -z "$ac_c_werror_flag" ||
18877          test ! -s conftest.err
18878        } && test -s conftest.$ac_objext; then
18879   ac_hi=$ac_mid; break
18880 else
18881   $as_echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18883
18884         ac_lo=`expr $ac_mid + 1`
18885                         if test $ac_lo -le $ac_mid; then
18886                           ac_lo= ac_hi=
18887                           break
18888                         fi
18889                         ac_mid=`expr 2 '*' $ac_mid + 1`
18890 fi
18891
18892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18893   done
18894 else
18895   $as_echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18897
18898         cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h.  */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h.  */
18904 $ac_includes_default
18905 int
18906 main ()
18907 {
18908 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18909 test_array [0] = 0
18910
18911   ;
18912   return 0;
18913 }
18914 _ACEOF
18915 rm -f conftest.$ac_objext
18916 if { (ac_try="$ac_compile"
18917 case "(($ac_try" in
18918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919   *) ac_try_echo=$ac_try;;
18920 esac
18921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18922 $as_echo "$ac_try_echo") >&5
18923   (eval "$ac_compile") 2>conftest.er1
18924   ac_status=$?
18925   grep -v '^ *+' conftest.er1 >conftest.err
18926   rm -f conftest.er1
18927   cat conftest.err >&5
18928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); } && {
18930          test -z "$ac_c_werror_flag" ||
18931          test ! -s conftest.err
18932        } && test -s conftest.$ac_objext; then
18933   ac_hi=-1 ac_mid=-1
18934   while :; do
18935     cat >conftest.$ac_ext <<_ACEOF
18936 /* confdefs.h.  */
18937 _ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h.  */
18941 $ac_includes_default
18942 int
18943 main ()
18944 {
18945 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18946 test_array [0] = 0
18947
18948   ;
18949   return 0;
18950 }
18951 _ACEOF
18952 rm -f conftest.$ac_objext
18953 if { (ac_try="$ac_compile"
18954 case "(($ac_try" in
18955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956   *) ac_try_echo=$ac_try;;
18957 esac
18958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18959 $as_echo "$ac_try_echo") >&5
18960   (eval "$ac_compile") 2>conftest.er1
18961   ac_status=$?
18962   grep -v '^ *+' conftest.er1 >conftest.err
18963   rm -f conftest.er1
18964   cat conftest.err >&5
18965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); } && {
18967          test -z "$ac_c_werror_flag" ||
18968          test ! -s conftest.err
18969        } && test -s conftest.$ac_objext; then
18970   ac_lo=$ac_mid; break
18971 else
18972   $as_echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18974
18975         ac_hi=`expr '(' $ac_mid ')' - 1`
18976                         if test $ac_mid -le $ac_hi; then
18977                           ac_lo= ac_hi=
18978                           break
18979                         fi
18980                         ac_mid=`expr 2 '*' $ac_mid`
18981 fi
18982
18983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18984   done
18985 else
18986   $as_echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989         ac_lo= ac_hi=
18990 fi
18991
18992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18993 fi
18994
18995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18996 # Binary search between lo and hi bounds.
18997 while test "x$ac_lo" != "x$ac_hi"; do
18998   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18999   cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h.  */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h.  */
19005 $ac_includes_default
19006 int
19007 main ()
19008 {
19009 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19010 test_array [0] = 0
19011
19012   ;
19013   return 0;
19014 }
19015 _ACEOF
19016 rm -f conftest.$ac_objext
19017 if { (ac_try="$ac_compile"
19018 case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19023 $as_echo "$ac_try_echo") >&5
19024   (eval "$ac_compile") 2>conftest.er1
19025   ac_status=$?
19026   grep -v '^ *+' conftest.er1 >conftest.err
19027   rm -f conftest.er1
19028   cat conftest.err >&5
19029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); } && {
19031          test -z "$ac_c_werror_flag" ||
19032          test ! -s conftest.err
19033        } && test -s conftest.$ac_objext; then
19034   ac_hi=$ac_mid
19035 else
19036   $as_echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19038
19039         ac_lo=`expr '(' $ac_mid ')' + 1`
19040 fi
19041
19042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19043 done
19044 case $ac_lo in
19045 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19046 '') if test "$ac_cv_type_off_t" = yes; then
19047      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19049 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19050 See \`config.log' for more details." >&5
19051 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19052 See \`config.log' for more details." >&2;}
19053    { (exit 77); exit 77; }; }; }
19054    else
19055      ac_cv_sizeof_off_t=0
19056    fi ;;
19057 esac
19058 else
19059   cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19065 $ac_includes_default
19066 static long int longval () { return (long int) (sizeof (off_t)); }
19067 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19068 #include <stdio.h>
19069 #include <stdlib.h>
19070 int
19071 main ()
19072 {
19073
19074   FILE *f = fopen ("conftest.val", "w");
19075   if (! f)
19076     return 1;
19077   if (((long int) (sizeof (off_t))) < 0)
19078     {
19079       long int i = longval ();
19080       if (i != ((long int) (sizeof (off_t))))
19081         return 1;
19082       fprintf (f, "%ld", i);
19083     }
19084   else
19085     {
19086       unsigned long int i = ulongval ();
19087       if (i != ((long int) (sizeof (off_t))))
19088         return 1;
19089       fprintf (f, "%lu", i);
19090     }
19091   /* Do not output a trailing newline, as this causes \r\n confusion
19092      on some platforms.  */
19093   return ferror (f) || fclose (f) != 0;
19094
19095   ;
19096   return 0;
19097 }
19098 _ACEOF
19099 rm -f conftest$ac_exeext
19100 if { (ac_try="$ac_link"
19101 case "(($ac_try" in
19102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103   *) ac_try_echo=$ac_try;;
19104 esac
19105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19106 $as_echo "$ac_try_echo") >&5
19107   (eval "$ac_link") 2>&5
19108   ac_status=$?
19109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19111   { (case "(($ac_try" in
19112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113   *) ac_try_echo=$ac_try;;
19114 esac
19115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19116 $as_echo "$ac_try_echo") >&5
19117   (eval "$ac_try") 2>&5
19118   ac_status=$?
19119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); }; }; then
19121   ac_cv_sizeof_off_t=`cat conftest.val`
19122 else
19123   $as_echo "$as_me: program exited with status $ac_status" >&5
19124 $as_echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19126
19127 ( exit $ac_status )
19128 if test "$ac_cv_type_off_t" = yes; then
19129      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19131 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19132 See \`config.log' for more details." >&5
19133 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19134 See \`config.log' for more details." >&2;}
19135    { (exit 77); exit 77; }; }; }
19136    else
19137      ac_cv_sizeof_off_t=0
19138    fi
19139 fi
19140 rm -rf conftest.dSYM
19141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19142 fi
19143 rm -f conftest.val
19144 fi
19145 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19146 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19147
19148
19149
19150 cat >>confdefs.h <<_ACEOF
19151 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19152 _ACEOF
19153
19154
19155
19156 # If we don't have largefile support, can't handle segsize >= 2GB.
19157 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19158    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19159 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19160    { (exit 1); exit 1; }; }
19161 fi
19162
19163
19164 ##
19165 ## Functions, global variables
19166 ##
19167
19168 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19169 $as_echo_n "checking for int timezone... " >&6; }
19170 if test "${pgac_cv_var_int_timezone+set}" = set; then
19171   $as_echo_n "(cached) " >&6
19172 else
19173   cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h.  */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h.  */
19179 #include <time.h>
19180 int res;
19181 int
19182 main ()
19183 {
19184 #ifndef __CYGWIN__
19185 res = timezone / 60;
19186 #else
19187 res = _timezone / 60;
19188 #endif
19189   ;
19190   return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19200 $as_echo "$ac_try_echo") >&5
19201   (eval "$ac_link") 2>conftest.er1
19202   ac_status=$?
19203   grep -v '^ *+' conftest.er1 >conftest.err
19204   rm -f conftest.er1
19205   cat conftest.err >&5
19206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); } && {
19208          test -z "$ac_c_werror_flag" ||
19209          test ! -s conftest.err
19210        } && test -s conftest$ac_exeext && {
19211          test "$cross_compiling" = yes ||
19212          $as_test_x conftest$ac_exeext
19213        }; then
19214   pgac_cv_var_int_timezone=yes
19215 else
19216   $as_echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219         pgac_cv_var_int_timezone=no
19220 fi
19221
19222 rm -rf conftest.dSYM
19223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19224       conftest$ac_exeext conftest.$ac_ext
19225 fi
19226 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19227 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19228 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19229
19230 cat >>confdefs.h <<\_ACEOF
19231 #define HAVE_INT_TIMEZONE /**/
19232 _ACEOF
19233
19234 fi
19235 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19236 $as_echo_n "checking types of arguments for accept()... " >&6; }
19237  if test "${ac_cv_func_accept_return+set}" = set; then
19238   $as_echo_n "(cached) " >&6
19239 else
19240    if test "${ac_cv_func_accept_arg1+set}" = set; then
19241   $as_echo_n "(cached) " >&6
19242 else
19243     if test "${ac_cv_func_accept_arg2+set}" = set; then
19244   $as_echo_n "(cached) " >&6
19245 else
19246      if test "${ac_cv_func_accept_arg3+set}" = set; then
19247   $as_echo_n "(cached) " >&6
19248 else
19249       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19250       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19251        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19252         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19253          cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h.  */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h.  */
19259 #ifdef HAVE_SYS_TYPES_H
19260 #include <sys/types.h>
19261 #endif
19262 #ifdef HAVE_SYS_SOCKET_H
19263 #include <sys/socket.h>
19264 #endif
19265 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19266 int
19267 main ()
19268 {
19269
19270   ;
19271   return 0;
19272 }
19273 _ACEOF
19274 rm -f conftest.$ac_objext
19275 if { (ac_try="$ac_compile"
19276 case "(($ac_try" in
19277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278   *) ac_try_echo=$ac_try;;
19279 esac
19280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19281 $as_echo "$ac_try_echo") >&5
19282   (eval "$ac_compile") 2>conftest.er1
19283   ac_status=$?
19284   grep -v '^ *+' conftest.er1 >conftest.err
19285   rm -f conftest.er1
19286   cat conftest.err >&5
19287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); } && {
19289          test -z "$ac_c_werror_flag" ||
19290          test ! -s conftest.err
19291        } && test -s conftest.$ac_objext; then
19292   ac_not_found=no; break 4
19293 else
19294   $as_echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19296
19297         ac_not_found=yes
19298 fi
19299
19300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19301        done
19302       done
19303      done
19304     done
19305     if test "$ac_not_found" = yes; then
19306       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19307 $as_echo "$as_me: error: could not determine argument types" >&2;}
19308    { (exit 1); exit 1; }; }
19309     fi
19310     if test "$ac_cv_func_accept_arg3" = "void"; then
19311       ac_cv_func_accept_arg3=int
19312     fi
19313
19314 fi
19315
19316 fi
19317
19318 fi
19319
19320 fi
19321  { $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
19322 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19323
19324 cat >>confdefs.h <<_ACEOF
19325 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19326 _ACEOF
19327
19328
19329 cat >>confdefs.h <<_ACEOF
19330 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19331 _ACEOF
19332
19333
19334 cat >>confdefs.h <<_ACEOF
19335 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19336 _ACEOF
19337
19338
19339 cat >>confdefs.h <<_ACEOF
19340 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19341 _ACEOF
19342
19343
19344 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19345 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19346 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19347   $as_echo_n "(cached) " >&6
19348 else
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 #include <sys/time.h>
19356 int
19357 main ()
19358 {
19359 struct timeval *tp;
19360 struct timezone *tzp;
19361 gettimeofday(tp,tzp);
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   pgac_cv_func_gettimeofday_1arg=no
19385 else
19386   $as_echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19388
19389         pgac_cv_func_gettimeofday_1arg=yes
19390 fi
19391
19392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19393 fi
19394 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19395 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19396 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19397
19398 cat >>confdefs.h <<\_ACEOF
19399 #define GETTIMEOFDAY_1ARG /**/
19400 _ACEOF
19401
19402 fi
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19428 do
19429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19431 $as_echo_n "checking for $ac_func... " >&6; }
19432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19433   $as_echo_n "(cached) " >&6
19434 else
19435   cat >conftest.$ac_ext <<_ACEOF
19436 /* confdefs.h.  */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h.  */
19441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19443 #define $ac_func innocuous_$ac_func
19444
19445 /* System header to define __stub macros and hopefully few prototypes,
19446     which can conflict with char $ac_func (); below.
19447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19448     <limits.h> exists even on freestanding compilers.  */
19449
19450 #ifdef __STDC__
19451 # include <limits.h>
19452 #else
19453 # include <assert.h>
19454 #endif
19455
19456 #undef $ac_func
19457
19458 /* Override any GCC internal prototype to avoid an error.
19459    Use char because int might match the return type of a GCC
19460    builtin and then its argument prototype would still apply.  */
19461 #ifdef __cplusplus
19462 extern "C"
19463 #endif
19464 char $ac_func ();
19465 /* The GNU C library defines this for functions which it implements
19466     to always fail with ENOSYS.  Some functions are actually named
19467     something starting with __ and the normal name is an alias.  */
19468 #if defined __stub_$ac_func || defined __stub___$ac_func
19469 choke me
19470 #endif
19471
19472 int
19473 main ()
19474 {
19475 return $ac_func ();
19476   ;
19477   return 0;
19478 }
19479 _ACEOF
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (ac_try="$ac_link"
19482 case "(($ac_try" in
19483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484   *) ac_try_echo=$ac_try;;
19485 esac
19486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19487 $as_echo "$ac_try_echo") >&5
19488   (eval "$ac_link") 2>conftest.er1
19489   ac_status=$?
19490   grep -v '^ *+' conftest.er1 >conftest.err
19491   rm -f conftest.er1
19492   cat conftest.err >&5
19493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); } && {
19495          test -z "$ac_c_werror_flag" ||
19496          test ! -s conftest.err
19497        } && test -s conftest$ac_exeext && {
19498          test "$cross_compiling" = yes ||
19499          $as_test_x conftest$ac_exeext
19500        }; then
19501   eval "$as_ac_var=yes"
19502 else
19503   $as_echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19505
19506         eval "$as_ac_var=no"
19507 fi
19508
19509 rm -rf conftest.dSYM
19510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19511       conftest$ac_exeext conftest.$ac_ext
19512 fi
19513 ac_res=`eval 'as_val=${'$as_ac_var'}
19514                  $as_echo "$as_val"'`
19515                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19516 $as_echo "$ac_res" >&6; }
19517 as_val=`eval 'as_val=${'$as_ac_var'}
19518                  $as_echo "$as_val"'`
19519    if test "x$as_val" = x""yes; then
19520   cat >>confdefs.h <<_ACEOF
19521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19522 _ACEOF
19523
19524 fi
19525 done
19526
19527
19528
19529 for ac_func in fseeko
19530 do
19531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19532 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19533 $as_echo_n "checking for $ac_func... " >&6; }
19534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19535   $as_echo_n "(cached) " >&6
19536 else
19537   cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h.  */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h.  */
19543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19545 #define $ac_func innocuous_$ac_func
19546
19547 /* System header to define __stub macros and hopefully few prototypes,
19548     which can conflict with char $ac_func (); below.
19549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19550     <limits.h> exists even on freestanding compilers.  */
19551
19552 #ifdef __STDC__
19553 # include <limits.h>
19554 #else
19555 # include <assert.h>
19556 #endif
19557
19558 #undef $ac_func
19559
19560 /* Override any GCC internal prototype to avoid an error.
19561    Use char because int might match the return type of a GCC
19562    builtin and then its argument prototype would still apply.  */
19563 #ifdef __cplusplus
19564 extern "C"
19565 #endif
19566 char $ac_func ();
19567 /* The GNU C library defines this for functions which it implements
19568     to always fail with ENOSYS.  Some functions are actually named
19569     something starting with __ and the normal name is an alias.  */
19570 #if defined __stub_$ac_func || defined __stub___$ac_func
19571 choke me
19572 #endif
19573
19574 int
19575 main ()
19576 {
19577 return $ac_func ();
19578   ;
19579   return 0;
19580 }
19581 _ACEOF
19582 rm -f conftest.$ac_objext conftest$ac_exeext
19583 if { (ac_try="$ac_link"
19584 case "(($ac_try" in
19585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586   *) ac_try_echo=$ac_try;;
19587 esac
19588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19589 $as_echo "$ac_try_echo") >&5
19590   (eval "$ac_link") 2>conftest.er1
19591   ac_status=$?
19592   grep -v '^ *+' conftest.er1 >conftest.err
19593   rm -f conftest.er1
19594   cat conftest.err >&5
19595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); } && {
19597          test -z "$ac_c_werror_flag" ||
19598          test ! -s conftest.err
19599        } && test -s conftest$ac_exeext && {
19600          test "$cross_compiling" = yes ||
19601          $as_test_x conftest$ac_exeext
19602        }; then
19603   eval "$as_ac_var=yes"
19604 else
19605   $as_echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19607
19608         eval "$as_ac_var=no"
19609 fi
19610
19611 rm -rf conftest.dSYM
19612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19613       conftest$ac_exeext conftest.$ac_ext
19614 fi
19615 ac_res=`eval 'as_val=${'$as_ac_var'}
19616                  $as_echo "$as_val"'`
19617                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19618 $as_echo "$ac_res" >&6; }
19619 as_val=`eval 'as_val=${'$as_ac_var'}
19620                  $as_echo "$as_val"'`
19621    if test "x$as_val" = x""yes; then
19622   cat >>confdefs.h <<_ACEOF
19623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19624 _ACEOF
19625
19626 else
19627   case " $LIBOBJS " in
19628   *" $ac_func.$ac_objext "* ) ;;
19629   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19630  ;;
19631 esac
19632
19633 fi
19634 done
19635
19636
19637 case $host_os in
19638         # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19639         # Mingw uses macros to access Win32 API calls
19640         netbsd*|mingw*)
19641
19642 cat >>confdefs.h <<\_ACEOF
19643 #define HAVE_FSEEKO 1
19644 _ACEOF
19645
19646                 ac_cv_func_fseeko=yes;;
19647         *)
19648                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19649 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19650 if test "${ac_cv_sys_largefile_source+set}" = set; then
19651   $as_echo_n "(cached) " >&6
19652 else
19653   while :; do
19654   cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h.  */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h.  */
19660 #include <sys/types.h> /* for off_t */
19661      #include <stdio.h>
19662 int
19663 main ()
19664 {
19665 int (*fp) (FILE *, off_t, int) = fseeko;
19666      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19667   ;
19668   return 0;
19669 }
19670 _ACEOF
19671 rm -f conftest.$ac_objext conftest$ac_exeext
19672 if { (ac_try="$ac_link"
19673 case "(($ac_try" in
19674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675   *) ac_try_echo=$ac_try;;
19676 esac
19677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19678 $as_echo "$ac_try_echo") >&5
19679   (eval "$ac_link") 2>conftest.er1
19680   ac_status=$?
19681   grep -v '^ *+' conftest.er1 >conftest.err
19682   rm -f conftest.er1
19683   cat conftest.err >&5
19684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); } && {
19686          test -z "$ac_c_werror_flag" ||
19687          test ! -s conftest.err
19688        } && test -s conftest$ac_exeext && {
19689          test "$cross_compiling" = yes ||
19690          $as_test_x conftest$ac_exeext
19691        }; then
19692   ac_cv_sys_largefile_source=no; break
19693 else
19694   $as_echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697
19698 fi
19699
19700 rm -rf conftest.dSYM
19701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19702       conftest$ac_exeext conftest.$ac_ext
19703   cat >conftest.$ac_ext <<_ACEOF
19704 /* confdefs.h.  */
19705 _ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h.  */
19709 #define _LARGEFILE_SOURCE 1
19710 #include <sys/types.h> /* for off_t */
19711      #include <stdio.h>
19712 int
19713 main ()
19714 {
19715 int (*fp) (FILE *, off_t, int) = fseeko;
19716      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19717   ;
19718   return 0;
19719 }
19720 _ACEOF
19721 rm -f conftest.$ac_objext conftest$ac_exeext
19722 if { (ac_try="$ac_link"
19723 case "(($ac_try" in
19724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725   *) ac_try_echo=$ac_try;;
19726 esac
19727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19728 $as_echo "$ac_try_echo") >&5
19729   (eval "$ac_link") 2>conftest.er1
19730   ac_status=$?
19731   grep -v '^ *+' conftest.er1 >conftest.err
19732   rm -f conftest.er1
19733   cat conftest.err >&5
19734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); } && {
19736          test -z "$ac_c_werror_flag" ||
19737          test ! -s conftest.err
19738        } && test -s conftest$ac_exeext && {
19739          test "$cross_compiling" = yes ||
19740          $as_test_x conftest$ac_exeext
19741        }; then
19742   ac_cv_sys_largefile_source=1; break
19743 else
19744   $as_echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747
19748 fi
19749
19750 rm -rf conftest.dSYM
19751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19752       conftest$ac_exeext conftest.$ac_ext
19753   ac_cv_sys_largefile_source=unknown
19754   break
19755 done
19756 fi
19757 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19758 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19759 case $ac_cv_sys_largefile_source in #(
19760   no | unknown) ;;
19761   *)
19762 cat >>confdefs.h <<_ACEOF
19763 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19764 _ACEOF
19765 ;;
19766 esac
19767 rm -rf conftest*
19768
19769 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19770 # in glibc 2.1.3, but that breaks too many other things.
19771 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19772 if test $ac_cv_sys_largefile_source != unknown; then
19773
19774 cat >>confdefs.h <<\_ACEOF
19775 #define HAVE_FSEEKO 1
19776 _ACEOF
19777
19778 fi
19779 ;;
19780 esac
19781
19782 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19783 # by calling it, 2009-04-02
19784 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19785 if test "$PORTNAME" != "solaris"; then
19786
19787 for ac_func in posix_fadvise
19788 do
19789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19790 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19791 $as_echo_n "checking for $ac_func... " >&6; }
19792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19793   $as_echo_n "(cached) " >&6
19794 else
19795   cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h.  */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h.  */
19801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19803 #define $ac_func innocuous_$ac_func
19804
19805 /* System header to define __stub macros and hopefully few prototypes,
19806     which can conflict with char $ac_func (); below.
19807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19808     <limits.h> exists even on freestanding compilers.  */
19809
19810 #ifdef __STDC__
19811 # include <limits.h>
19812 #else
19813 # include <assert.h>
19814 #endif
19815
19816 #undef $ac_func
19817
19818 /* Override any GCC internal prototype to avoid an error.
19819    Use char because int might match the return type of a GCC
19820    builtin and then its argument prototype would still apply.  */
19821 #ifdef __cplusplus
19822 extern "C"
19823 #endif
19824 char $ac_func ();
19825 /* The GNU C library defines this for functions which it implements
19826     to always fail with ENOSYS.  Some functions are actually named
19827     something starting with __ and the normal name is an alias.  */
19828 #if defined __stub_$ac_func || defined __stub___$ac_func
19829 choke me
19830 #endif
19831
19832 int
19833 main ()
19834 {
19835 return $ac_func ();
19836   ;
19837   return 0;
19838 }
19839 _ACEOF
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (ac_try="$ac_link"
19842 case "(($ac_try" in
19843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844   *) ac_try_echo=$ac_try;;
19845 esac
19846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19847 $as_echo "$ac_try_echo") >&5
19848   (eval "$ac_link") 2>conftest.er1
19849   ac_status=$?
19850   grep -v '^ *+' conftest.er1 >conftest.err
19851   rm -f conftest.er1
19852   cat conftest.err >&5
19853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); } && {
19855          test -z "$ac_c_werror_flag" ||
19856          test ! -s conftest.err
19857        } && test -s conftest$ac_exeext && {
19858          test "$cross_compiling" = yes ||
19859          $as_test_x conftest$ac_exeext
19860        }; then
19861   eval "$as_ac_var=yes"
19862 else
19863   $as_echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19865
19866         eval "$as_ac_var=no"
19867 fi
19868
19869 rm -rf conftest.dSYM
19870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19871       conftest$ac_exeext conftest.$ac_ext
19872 fi
19873 ac_res=`eval 'as_val=${'$as_ac_var'}
19874                  $as_echo "$as_val"'`
19875                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19876 $as_echo "$ac_res" >&6; }
19877 as_val=`eval 'as_val=${'$as_ac_var'}
19878                  $as_echo "$as_val"'`
19879    if test "x$as_val" = x""yes; then
19880   cat >>confdefs.h <<_ACEOF
19881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19882 _ACEOF
19883
19884 fi
19885 done
19886
19887 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19888 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19889 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19890   $as_echo_n "(cached) " >&6
19891 else
19892   cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h.  */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h.  */
19898 #include <fcntl.h>
19899
19900 int
19901 main ()
19902 {
19903 #ifndef posix_fadvise
19904   (void) posix_fadvise;
19905 #endif
19906
19907   ;
19908   return 0;
19909 }
19910 _ACEOF
19911 rm -f conftest.$ac_objext
19912 if { (ac_try="$ac_compile"
19913 case "(($ac_try" in
19914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915   *) ac_try_echo=$ac_try;;
19916 esac
19917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19918 $as_echo "$ac_try_echo") >&5
19919   (eval "$ac_compile") 2>conftest.er1
19920   ac_status=$?
19921   grep -v '^ *+' conftest.er1 >conftest.err
19922   rm -f conftest.er1
19923   cat conftest.err >&5
19924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); } && {
19926          test -z "$ac_c_werror_flag" ||
19927          test ! -s conftest.err
19928        } && test -s conftest.$ac_objext; then
19929   ac_cv_have_decl_posix_fadvise=yes
19930 else
19931   $as_echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934         ac_cv_have_decl_posix_fadvise=no
19935 fi
19936
19937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19938 fi
19939 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19940 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19941 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19942
19943 cat >>confdefs.h <<_ACEOF
19944 #define HAVE_DECL_POSIX_FADVISE 1
19945 _ACEOF
19946
19947
19948 else
19949   cat >>confdefs.h <<_ACEOF
19950 #define HAVE_DECL_POSIX_FADVISE 0
19951 _ACEOF
19952
19953
19954 fi
19955
19956
19957 fi
19958
19959 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19960 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19961 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19962   $as_echo_n "(cached) " >&6
19963 else
19964   cat >conftest.$ac_ext <<_ACEOF
19965 /* confdefs.h.  */
19966 _ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h.  */
19970 #include <unistd.h>
19971
19972 int
19973 main ()
19974 {
19975 #ifndef fdatasync
19976   (void) fdatasync;
19977 #endif
19978
19979   ;
19980   return 0;
19981 }
19982 _ACEOF
19983 rm -f conftest.$ac_objext
19984 if { (ac_try="$ac_compile"
19985 case "(($ac_try" in
19986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987   *) ac_try_echo=$ac_try;;
19988 esac
19989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19990 $as_echo "$ac_try_echo") >&5
19991   (eval "$ac_compile") 2>conftest.er1
19992   ac_status=$?
19993   grep -v '^ *+' conftest.er1 >conftest.err
19994   rm -f conftest.er1
19995   cat conftest.err >&5
19996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); } && {
19998          test -z "$ac_c_werror_flag" ||
19999          test ! -s conftest.err
20000        } && test -s conftest.$ac_objext; then
20001   ac_cv_have_decl_fdatasync=yes
20002 else
20003   $as_echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006         ac_cv_have_decl_fdatasync=no
20007 fi
20008
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 fi
20011 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
20012 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
20013 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
20014
20015 cat >>confdefs.h <<_ACEOF
20016 #define HAVE_DECL_FDATASYNC 1
20017 _ACEOF
20018
20019
20020 else
20021   cat >>confdefs.h <<_ACEOF
20022 #define HAVE_DECL_FDATASYNC 0
20023 _ACEOF
20024
20025
20026 fi
20027
20028
20029 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
20030 $as_echo_n "checking whether strlcat is declared... " >&6; }
20031 if test "${ac_cv_have_decl_strlcat+set}" = set; then
20032   $as_echo_n "(cached) " >&6
20033 else
20034   cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h.  */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h.  */
20040 $ac_includes_default
20041 int
20042 main ()
20043 {
20044 #ifndef strlcat
20045   (void) strlcat;
20046 #endif
20047
20048   ;
20049   return 0;
20050 }
20051 _ACEOF
20052 rm -f conftest.$ac_objext
20053 if { (ac_try="$ac_compile"
20054 case "(($ac_try" in
20055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056   *) ac_try_echo=$ac_try;;
20057 esac
20058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20059 $as_echo "$ac_try_echo") >&5
20060   (eval "$ac_compile") 2>conftest.er1
20061   ac_status=$?
20062   grep -v '^ *+' conftest.er1 >conftest.err
20063   rm -f conftest.er1
20064   cat conftest.err >&5
20065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); } && {
20067          test -z "$ac_c_werror_flag" ||
20068          test ! -s conftest.err
20069        } && test -s conftest.$ac_objext; then
20070   ac_cv_have_decl_strlcat=yes
20071 else
20072   $as_echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20074
20075         ac_cv_have_decl_strlcat=no
20076 fi
20077
20078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20079 fi
20080 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20081 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20082 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20083
20084 cat >>confdefs.h <<_ACEOF
20085 #define HAVE_DECL_STRLCAT 1
20086 _ACEOF
20087
20088
20089 else
20090   cat >>confdefs.h <<_ACEOF
20091 #define HAVE_DECL_STRLCAT 0
20092 _ACEOF
20093
20094
20095 fi
20096 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20097 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20098 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20099   $as_echo_n "(cached) " >&6
20100 else
20101   cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h.  */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h.  */
20107 $ac_includes_default
20108 int
20109 main ()
20110 {
20111 #ifndef strlcpy
20112   (void) strlcpy;
20113 #endif
20114
20115   ;
20116   return 0;
20117 }
20118 _ACEOF
20119 rm -f conftest.$ac_objext
20120 if { (ac_try="$ac_compile"
20121 case "(($ac_try" in
20122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123   *) ac_try_echo=$ac_try;;
20124 esac
20125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20126 $as_echo "$ac_try_echo") >&5
20127   (eval "$ac_compile") 2>conftest.er1
20128   ac_status=$?
20129   grep -v '^ *+' conftest.er1 >conftest.err
20130   rm -f conftest.er1
20131   cat conftest.err >&5
20132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133   (exit $ac_status); } && {
20134          test -z "$ac_c_werror_flag" ||
20135          test ! -s conftest.err
20136        } && test -s conftest.$ac_objext; then
20137   ac_cv_have_decl_strlcpy=yes
20138 else
20139   $as_echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20141
20142         ac_cv_have_decl_strlcpy=no
20143 fi
20144
20145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146 fi
20147 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20148 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20149 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20150
20151 cat >>confdefs.h <<_ACEOF
20152 #define HAVE_DECL_STRLCPY 1
20153 _ACEOF
20154
20155
20156 else
20157   cat >>confdefs.h <<_ACEOF
20158 #define HAVE_DECL_STRLCPY 0
20159 _ACEOF
20160
20161
20162 fi
20163
20164
20165 # This is probably only present on Darwin, but may as well check always
20166 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20167 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20168 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20169   $as_echo_n "(cached) " >&6
20170 else
20171   cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h.  */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h.  */
20177 #include <fcntl.h>
20178
20179 int
20180 main ()
20181 {
20182 #ifndef F_FULLFSYNC
20183   (void) F_FULLFSYNC;
20184 #endif
20185
20186   ;
20187   return 0;
20188 }
20189 _ACEOF
20190 rm -f conftest.$ac_objext
20191 if { (ac_try="$ac_compile"
20192 case "(($ac_try" in
20193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194   *) ac_try_echo=$ac_try;;
20195 esac
20196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20197 $as_echo "$ac_try_echo") >&5
20198   (eval "$ac_compile") 2>conftest.er1
20199   ac_status=$?
20200   grep -v '^ *+' conftest.er1 >conftest.err
20201   rm -f conftest.er1
20202   cat conftest.err >&5
20203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); } && {
20205          test -z "$ac_c_werror_flag" ||
20206          test ! -s conftest.err
20207        } && test -s conftest.$ac_objext; then
20208   ac_cv_have_decl_F_FULLFSYNC=yes
20209 else
20210   $as_echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213         ac_cv_have_decl_F_FULLFSYNC=no
20214 fi
20215
20216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20217 fi
20218 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20219 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20220 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20221
20222 cat >>confdefs.h <<_ACEOF
20223 #define HAVE_DECL_F_FULLFSYNC 1
20224 _ACEOF
20225
20226
20227 else
20228   cat >>confdefs.h <<_ACEOF
20229 #define HAVE_DECL_F_FULLFSYNC 0
20230 _ACEOF
20231
20232
20233 fi
20234
20235
20236
20237 HAVE_IPV6=no
20238 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20239 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20240 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20241   $as_echo_n "(cached) " >&6
20242 else
20243   ac_cv_type_struct_sockaddr_in6=no
20244 cat >conftest.$ac_ext <<_ACEOF
20245 /* confdefs.h.  */
20246 _ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h.  */
20250 $ac_includes_default
20251 #include <netinet/in.h>
20252
20253 int
20254 main ()
20255 {
20256 if (sizeof (struct sockaddr_in6))
20257        return 0;
20258   ;
20259   return 0;
20260 }
20261 _ACEOF
20262 rm -f conftest.$ac_objext
20263 if { (ac_try="$ac_compile"
20264 case "(($ac_try" in
20265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266   *) ac_try_echo=$ac_try;;
20267 esac
20268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20269 $as_echo "$ac_try_echo") >&5
20270   (eval "$ac_compile") 2>conftest.er1
20271   ac_status=$?
20272   grep -v '^ *+' conftest.er1 >conftest.err
20273   rm -f conftest.er1
20274   cat conftest.err >&5
20275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); } && {
20277          test -z "$ac_c_werror_flag" ||
20278          test ! -s conftest.err
20279        } && test -s conftest.$ac_objext; then
20280   cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h.  */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h.  */
20286 $ac_includes_default
20287 #include <netinet/in.h>
20288
20289 int
20290 main ()
20291 {
20292 if (sizeof ((struct sockaddr_in6)))
20293           return 0;
20294   ;
20295   return 0;
20296 }
20297 _ACEOF
20298 rm -f conftest.$ac_objext
20299 if { (ac_try="$ac_compile"
20300 case "(($ac_try" in
20301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302   *) ac_try_echo=$ac_try;;
20303 esac
20304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20305 $as_echo "$ac_try_echo") >&5
20306   (eval "$ac_compile") 2>conftest.er1
20307   ac_status=$?
20308   grep -v '^ *+' conftest.er1 >conftest.err
20309   rm -f conftest.er1
20310   cat conftest.err >&5
20311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); } && {
20313          test -z "$ac_c_werror_flag" ||
20314          test ! -s conftest.err
20315        } && test -s conftest.$ac_objext; then
20316   :
20317 else
20318   $as_echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20320
20321         ac_cv_type_struct_sockaddr_in6=yes
20322 fi
20323
20324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20325 else
20326   $as_echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20328
20329
20330 fi
20331
20332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333 fi
20334 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20335 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20336 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20337
20338 cat >>confdefs.h <<\_ACEOF
20339 #define HAVE_IPV6 1
20340 _ACEOF
20341
20342          HAVE_IPV6=yes
20343 fi
20344
20345
20346
20347 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20348 $as_echo_n "checking for PS_STRINGS... " >&6; }
20349 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20350   $as_echo_n "(cached) " >&6
20351 else
20352   cat >conftest.$ac_ext <<_ACEOF
20353 /* confdefs.h.  */
20354 _ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h.  */
20358 #include <machine/vmparam.h>
20359 #include <sys/exec.h>
20360
20361 int
20362 main ()
20363 {
20364 PS_STRINGS->ps_nargvstr = 1;
20365 PS_STRINGS->ps_argvstr = "foo";
20366   ;
20367   return 0;
20368 }
20369 _ACEOF
20370 rm -f conftest.$ac_objext conftest$ac_exeext
20371 if { (ac_try="$ac_link"
20372 case "(($ac_try" in
20373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374   *) ac_try_echo=$ac_try;;
20375 esac
20376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20377 $as_echo "$ac_try_echo") >&5
20378   (eval "$ac_link") 2>conftest.er1
20379   ac_status=$?
20380   grep -v '^ *+' conftest.er1 >conftest.err
20381   rm -f conftest.er1
20382   cat conftest.err >&5
20383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); } && {
20385          test -z "$ac_c_werror_flag" ||
20386          test ! -s conftest.err
20387        } && test -s conftest$ac_exeext && {
20388          test "$cross_compiling" = yes ||
20389          $as_test_x conftest$ac_exeext
20390        }; then
20391   pgac_cv_var_PS_STRINGS=yes
20392 else
20393   $as_echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20395
20396         pgac_cv_var_PS_STRINGS=no
20397 fi
20398
20399 rm -rf conftest.dSYM
20400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20401       conftest$ac_exeext conftest.$ac_ext
20402 fi
20403 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20404 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20405 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20406
20407 cat >>confdefs.h <<\_ACEOF
20408 #define HAVE_PS_STRINGS /**/
20409 _ACEOF
20410
20411 fi
20412
20413
20414 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20415 # is missing.  Yes, there are machines that have only one.  We may
20416 # also decide to use snprintf.c if snprintf() is present but does not
20417 # have all the features we need --- see below.
20418
20419 if test "$PORTNAME" = "win32"; then
20420   # Win32 gets snprintf.c built unconditionally.
20421   #
20422   # To properly translate all NLS languages strings, we must support the
20423   # *printf() %$ format, which allows *printf() arguments to be selected
20424   # by position in the translated string.
20425   #
20426   # libintl versions < 0.13 use the native *printf() functions, and Win32
20427   # *printf() doesn't understand %$, so we must use our /port versions,
20428   # which do understand %$. libintl versions >= 0.13 include their own
20429   # *printf versions on Win32.  The libintl 0.13 release note text is:
20430   #
20431   #   C format strings with positions, as they arise when a translator
20432   #   needs to reorder a sentence, are now supported on all platforms.
20433   #   On those few platforms (NetBSD and Woe32) for which the native
20434   #   printf()/fprintf()/... functions don't support such format
20435   #   strings, replacements are provided through <libintl.h>.
20436   #
20437   # We could use libintl >= 0.13's *printf() if we were sure that we had
20438   # a litint >= 0.13 at runtime, but seeing that there is no clean way
20439   # to guarantee that, it is best to just use our own, so we are sure to
20440   # get %$ support. In include/port.h we disable the *printf() macros
20441   # that might have been defined by libintl.
20442   #
20443   # We do this unconditionally whether NLS is used or not so we are sure
20444   # that all Win32 libraries and binaries behave the same.
20445   pgac_need_repl_snprintf=yes
20446 else
20447   pgac_need_repl_snprintf=no
20448
20449 for ac_func in snprintf
20450 do
20451 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20452 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20453 $as_echo_n "checking for $ac_func... " >&6; }
20454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20455   $as_echo_n "(cached) " >&6
20456 else
20457   cat >conftest.$ac_ext <<_ACEOF
20458 /* confdefs.h.  */
20459 _ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h.  */
20463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20465 #define $ac_func innocuous_$ac_func
20466
20467 /* System header to define __stub macros and hopefully few prototypes,
20468     which can conflict with char $ac_func (); below.
20469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20470     <limits.h> exists even on freestanding compilers.  */
20471
20472 #ifdef __STDC__
20473 # include <limits.h>
20474 #else
20475 # include <assert.h>
20476 #endif
20477
20478 #undef $ac_func
20479
20480 /* Override any GCC internal prototype to avoid an error.
20481    Use char because int might match the return type of a GCC
20482    builtin and then its argument prototype would still apply.  */
20483 #ifdef __cplusplus
20484 extern "C"
20485 #endif
20486 char $ac_func ();
20487 /* The GNU C library defines this for functions which it implements
20488     to always fail with ENOSYS.  Some functions are actually named
20489     something starting with __ and the normal name is an alias.  */
20490 #if defined __stub_$ac_func || defined __stub___$ac_func
20491 choke me
20492 #endif
20493
20494 int
20495 main ()
20496 {
20497 return $ac_func ();
20498   ;
20499   return 0;
20500 }
20501 _ACEOF
20502 rm -f conftest.$ac_objext conftest$ac_exeext
20503 if { (ac_try="$ac_link"
20504 case "(($ac_try" in
20505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506   *) ac_try_echo=$ac_try;;
20507 esac
20508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20509 $as_echo "$ac_try_echo") >&5
20510   (eval "$ac_link") 2>conftest.er1
20511   ac_status=$?
20512   grep -v '^ *+' conftest.er1 >conftest.err
20513   rm -f conftest.er1
20514   cat conftest.err >&5
20515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); } && {
20517          test -z "$ac_c_werror_flag" ||
20518          test ! -s conftest.err
20519        } && test -s conftest$ac_exeext && {
20520          test "$cross_compiling" = yes ||
20521          $as_test_x conftest$ac_exeext
20522        }; then
20523   eval "$as_ac_var=yes"
20524 else
20525   $as_echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528         eval "$as_ac_var=no"
20529 fi
20530
20531 rm -rf conftest.dSYM
20532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20533       conftest$ac_exeext conftest.$ac_ext
20534 fi
20535 ac_res=`eval 'as_val=${'$as_ac_var'}
20536                  $as_echo "$as_val"'`
20537                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20538 $as_echo "$ac_res" >&6; }
20539 as_val=`eval 'as_val=${'$as_ac_var'}
20540                  $as_echo "$as_val"'`
20541    if test "x$as_val" = x""yes; then
20542   cat >>confdefs.h <<_ACEOF
20543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20544 _ACEOF
20545
20546 else
20547   pgac_need_repl_snprintf=yes
20548 fi
20549 done
20550
20551
20552 for ac_func in vsnprintf
20553 do
20554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20555 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20556 $as_echo_n "checking for $ac_func... " >&6; }
20557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20558   $as_echo_n "(cached) " >&6
20559 else
20560   cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h.  */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h.  */
20566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20568 #define $ac_func innocuous_$ac_func
20569
20570 /* System header to define __stub macros and hopefully few prototypes,
20571     which can conflict with char $ac_func (); below.
20572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20573     <limits.h> exists even on freestanding compilers.  */
20574
20575 #ifdef __STDC__
20576 # include <limits.h>
20577 #else
20578 # include <assert.h>
20579 #endif
20580
20581 #undef $ac_func
20582
20583 /* Override any GCC internal prototype to avoid an error.
20584    Use char because int might match the return type of a GCC
20585    builtin and then its argument prototype would still apply.  */
20586 #ifdef __cplusplus
20587 extern "C"
20588 #endif
20589 char $ac_func ();
20590 /* The GNU C library defines this for functions which it implements
20591     to always fail with ENOSYS.  Some functions are actually named
20592     something starting with __ and the normal name is an alias.  */
20593 #if defined __stub_$ac_func || defined __stub___$ac_func
20594 choke me
20595 #endif
20596
20597 int
20598 main ()
20599 {
20600 return $ac_func ();
20601   ;
20602   return 0;
20603 }
20604 _ACEOF
20605 rm -f conftest.$ac_objext conftest$ac_exeext
20606 if { (ac_try="$ac_link"
20607 case "(($ac_try" in
20608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609   *) ac_try_echo=$ac_try;;
20610 esac
20611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20612 $as_echo "$ac_try_echo") >&5
20613   (eval "$ac_link") 2>conftest.er1
20614   ac_status=$?
20615   grep -v '^ *+' conftest.er1 >conftest.err
20616   rm -f conftest.er1
20617   cat conftest.err >&5
20618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); } && {
20620          test -z "$ac_c_werror_flag" ||
20621          test ! -s conftest.err
20622        } && test -s conftest$ac_exeext && {
20623          test "$cross_compiling" = yes ||
20624          $as_test_x conftest$ac_exeext
20625        }; then
20626   eval "$as_ac_var=yes"
20627 else
20628   $as_echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20630
20631         eval "$as_ac_var=no"
20632 fi
20633
20634 rm -rf conftest.dSYM
20635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20636       conftest$ac_exeext conftest.$ac_ext
20637 fi
20638 ac_res=`eval 'as_val=${'$as_ac_var'}
20639                  $as_echo "$as_val"'`
20640                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20641 $as_echo "$ac_res" >&6; }
20642 as_val=`eval 'as_val=${'$as_ac_var'}
20643                  $as_echo "$as_val"'`
20644    if test "x$as_val" = x""yes; then
20645   cat >>confdefs.h <<_ACEOF
20646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20647 _ACEOF
20648
20649 else
20650   pgac_need_repl_snprintf=yes
20651 fi
20652 done
20653
20654 fi
20655
20656
20657 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20658 # include/c.h will provide declarations.  Note this is a separate test
20659 # from whether the functions exist in the C library --- there are
20660 # systems that have the functions but don't bother to declare them :-(
20661
20662 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20663 $as_echo_n "checking whether snprintf is declared... " >&6; }
20664 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20665   $as_echo_n "(cached) " >&6
20666 else
20667   cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h.  */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h.  */
20673 $ac_includes_default
20674 int
20675 main ()
20676 {
20677 #ifndef snprintf
20678   (void) snprintf;
20679 #endif
20680
20681   ;
20682   return 0;
20683 }
20684 _ACEOF
20685 rm -f conftest.$ac_objext
20686 if { (ac_try="$ac_compile"
20687 case "(($ac_try" in
20688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689   *) ac_try_echo=$ac_try;;
20690 esac
20691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20692 $as_echo "$ac_try_echo") >&5
20693   (eval "$ac_compile") 2>conftest.er1
20694   ac_status=$?
20695   grep -v '^ *+' conftest.er1 >conftest.err
20696   rm -f conftest.er1
20697   cat conftest.err >&5
20698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); } && {
20700          test -z "$ac_c_werror_flag" ||
20701          test ! -s conftest.err
20702        } && test -s conftest.$ac_objext; then
20703   ac_cv_have_decl_snprintf=yes
20704 else
20705   $as_echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20707
20708         ac_cv_have_decl_snprintf=no
20709 fi
20710
20711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20712 fi
20713 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20714 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20715 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20716
20717 cat >>confdefs.h <<_ACEOF
20718 #define HAVE_DECL_SNPRINTF 1
20719 _ACEOF
20720
20721
20722 else
20723   cat >>confdefs.h <<_ACEOF
20724 #define HAVE_DECL_SNPRINTF 0
20725 _ACEOF
20726
20727
20728 fi
20729 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20730 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20731 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20732   $as_echo_n "(cached) " >&6
20733 else
20734   cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h.  */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h.  */
20740 $ac_includes_default
20741 int
20742 main ()
20743 {
20744 #ifndef vsnprintf
20745   (void) vsnprintf;
20746 #endif
20747
20748   ;
20749   return 0;
20750 }
20751 _ACEOF
20752 rm -f conftest.$ac_objext
20753 if { (ac_try="$ac_compile"
20754 case "(($ac_try" in
20755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756   *) ac_try_echo=$ac_try;;
20757 esac
20758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20759 $as_echo "$ac_try_echo") >&5
20760   (eval "$ac_compile") 2>conftest.er1
20761   ac_status=$?
20762   grep -v '^ *+' conftest.er1 >conftest.err
20763   rm -f conftest.er1
20764   cat conftest.err >&5
20765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); } && {
20767          test -z "$ac_c_werror_flag" ||
20768          test ! -s conftest.err
20769        } && test -s conftest.$ac_objext; then
20770   ac_cv_have_decl_vsnprintf=yes
20771 else
20772   $as_echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20774
20775         ac_cv_have_decl_vsnprintf=no
20776 fi
20777
20778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20779 fi
20780 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20781 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20782 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20783
20784 cat >>confdefs.h <<_ACEOF
20785 #define HAVE_DECL_VSNPRINTF 1
20786 _ACEOF
20787
20788
20789 else
20790   cat >>confdefs.h <<_ACEOF
20791 #define HAVE_DECL_VSNPRINTF 0
20792 _ACEOF
20793
20794
20795 fi
20796
20797
20798
20799
20800 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20801 $as_echo_n "checking for isinf... " >&6; }
20802 if test "${ac_cv_func_isinf+set}" = set; then
20803   $as_echo_n "(cached) " >&6
20804 else
20805   cat >conftest.$ac_ext <<_ACEOF
20806 /* confdefs.h.  */
20807 _ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h.  */
20811
20812 #include <math.h>
20813 double glob_double;
20814
20815 int
20816 main ()
20817 {
20818 return isinf(glob_double) ? 0 : 1;
20819   ;
20820   return 0;
20821 }
20822 _ACEOF
20823 rm -f conftest.$ac_objext conftest$ac_exeext
20824 if { (ac_try="$ac_link"
20825 case "(($ac_try" in
20826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827   *) ac_try_echo=$ac_try;;
20828 esac
20829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20830 $as_echo "$ac_try_echo") >&5
20831   (eval "$ac_link") 2>conftest.er1
20832   ac_status=$?
20833   grep -v '^ *+' conftest.er1 >conftest.err
20834   rm -f conftest.er1
20835   cat conftest.err >&5
20836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); } && {
20838          test -z "$ac_c_werror_flag" ||
20839          test ! -s conftest.err
20840        } && test -s conftest$ac_exeext && {
20841          test "$cross_compiling" = yes ||
20842          $as_test_x conftest$ac_exeext
20843        }; then
20844   ac_cv_func_isinf=yes
20845 else
20846   $as_echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20848
20849         ac_cv_func_isinf=no
20850 fi
20851
20852 rm -rf conftest.dSYM
20853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20854       conftest$ac_exeext conftest.$ac_ext
20855 fi
20856 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20857 $as_echo "$ac_cv_func_isinf" >&6; }
20858
20859 if test $ac_cv_func_isinf = yes ; then
20860
20861 cat >>confdefs.h <<\_ACEOF
20862 #define HAVE_ISINF 1
20863 _ACEOF
20864
20865 else
20866   case " $LIBOBJS " in
20867   *" isinf.$ac_objext "* ) ;;
20868   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20869  ;;
20870 esac
20871
20872   # Look for a way to implement a substitute for isinf()
20873
20874
20875
20876
20877 for ac_func in fpclass fp_class fp_class_d class
20878 do
20879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20880 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20881 $as_echo_n "checking for $ac_func... " >&6; }
20882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20883   $as_echo_n "(cached) " >&6
20884 else
20885   cat >conftest.$ac_ext <<_ACEOF
20886 /* confdefs.h.  */
20887 _ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h.  */
20891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20893 #define $ac_func innocuous_$ac_func
20894
20895 /* System header to define __stub macros and hopefully few prototypes,
20896     which can conflict with char $ac_func (); below.
20897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20898     <limits.h> exists even on freestanding compilers.  */
20899
20900 #ifdef __STDC__
20901 # include <limits.h>
20902 #else
20903 # include <assert.h>
20904 #endif
20905
20906 #undef $ac_func
20907
20908 /* Override any GCC internal prototype to avoid an error.
20909    Use char because int might match the return type of a GCC
20910    builtin and then its argument prototype would still apply.  */
20911 #ifdef __cplusplus
20912 extern "C"
20913 #endif
20914 char $ac_func ();
20915 /* The GNU C library defines this for functions which it implements
20916     to always fail with ENOSYS.  Some functions are actually named
20917     something starting with __ and the normal name is an alias.  */
20918 #if defined __stub_$ac_func || defined __stub___$ac_func
20919 choke me
20920 #endif
20921
20922 int
20923 main ()
20924 {
20925 return $ac_func ();
20926   ;
20927   return 0;
20928 }
20929 _ACEOF
20930 rm -f conftest.$ac_objext conftest$ac_exeext
20931 if { (ac_try="$ac_link"
20932 case "(($ac_try" in
20933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934   *) ac_try_echo=$ac_try;;
20935 esac
20936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20937 $as_echo "$ac_try_echo") >&5
20938   (eval "$ac_link") 2>conftest.er1
20939   ac_status=$?
20940   grep -v '^ *+' conftest.er1 >conftest.err
20941   rm -f conftest.er1
20942   cat conftest.err >&5
20943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944   (exit $ac_status); } && {
20945          test -z "$ac_c_werror_flag" ||
20946          test ! -s conftest.err
20947        } && test -s conftest$ac_exeext && {
20948          test "$cross_compiling" = yes ||
20949          $as_test_x conftest$ac_exeext
20950        }; then
20951   eval "$as_ac_var=yes"
20952 else
20953   $as_echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20955
20956         eval "$as_ac_var=no"
20957 fi
20958
20959 rm -rf conftest.dSYM
20960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20961       conftest$ac_exeext conftest.$ac_ext
20962 fi
20963 ac_res=`eval 'as_val=${'$as_ac_var'}
20964                  $as_echo "$as_val"'`
20965                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20966 $as_echo "$ac_res" >&6; }
20967 as_val=`eval 'as_val=${'$as_ac_var'}
20968                  $as_echo "$as_val"'`
20969    if test "x$as_val" = x""yes; then
20970   cat >>confdefs.h <<_ACEOF
20971 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20972 _ACEOF
20973  break
20974 fi
20975 done
20976
20977 fi
20978
20979 # Some versions of libedit contain strlcpy(); so disregard that library while
20980 # checking for these standard libc functions.
20981 pgac_save_LIBS="$LIBS"
20982 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
20996 do
20997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20998 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20999 $as_echo_n "checking for $ac_func... " >&6; }
21000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21001   $as_echo_n "(cached) " >&6
21002 else
21003   cat >conftest.$ac_ext <<_ACEOF
21004 /* confdefs.h.  */
21005 _ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h.  */
21009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21011 #define $ac_func innocuous_$ac_func
21012
21013 /* System header to define __stub macros and hopefully few prototypes,
21014     which can conflict with char $ac_func (); below.
21015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21016     <limits.h> exists even on freestanding compilers.  */
21017
21018 #ifdef __STDC__
21019 # include <limits.h>
21020 #else
21021 # include <assert.h>
21022 #endif
21023
21024 #undef $ac_func
21025
21026 /* Override any GCC internal prototype to avoid an error.
21027    Use char because int might match the return type of a GCC
21028    builtin and then its argument prototype would still apply.  */
21029 #ifdef __cplusplus
21030 extern "C"
21031 #endif
21032 char $ac_func ();
21033 /* The GNU C library defines this for functions which it implements
21034     to always fail with ENOSYS.  Some functions are actually named
21035     something starting with __ and the normal name is an alias.  */
21036 #if defined __stub_$ac_func || defined __stub___$ac_func
21037 choke me
21038 #endif
21039
21040 int
21041 main ()
21042 {
21043 return $ac_func ();
21044   ;
21045   return 0;
21046 }
21047 _ACEOF
21048 rm -f conftest.$ac_objext conftest$ac_exeext
21049 if { (ac_try="$ac_link"
21050 case "(($ac_try" in
21051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052   *) ac_try_echo=$ac_try;;
21053 esac
21054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21055 $as_echo "$ac_try_echo") >&5
21056   (eval "$ac_link") 2>conftest.er1
21057   ac_status=$?
21058   grep -v '^ *+' conftest.er1 >conftest.err
21059   rm -f conftest.er1
21060   cat conftest.err >&5
21061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062   (exit $ac_status); } && {
21063          test -z "$ac_c_werror_flag" ||
21064          test ! -s conftest.err
21065        } && test -s conftest$ac_exeext && {
21066          test "$cross_compiling" = yes ||
21067          $as_test_x conftest$ac_exeext
21068        }; then
21069   eval "$as_ac_var=yes"
21070 else
21071   $as_echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21073
21074         eval "$as_ac_var=no"
21075 fi
21076
21077 rm -rf conftest.dSYM
21078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21079       conftest$ac_exeext conftest.$ac_ext
21080 fi
21081 ac_res=`eval 'as_val=${'$as_ac_var'}
21082                  $as_echo "$as_val"'`
21083                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21084 $as_echo "$ac_res" >&6; }
21085 as_val=`eval 'as_val=${'$as_ac_var'}
21086                  $as_echo "$as_val"'`
21087    if test "x$as_val" = x""yes; then
21088   cat >>confdefs.h <<_ACEOF
21089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21090 _ACEOF
21091
21092 else
21093   case " $LIBOBJS " in
21094   *" $ac_func.$ac_objext "* ) ;;
21095   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21096  ;;
21097 esac
21098
21099 fi
21100 done
21101
21102
21103
21104 case $host_os in
21105
21106         # Windows uses a specialised env handler
21107         # and doesn't need a replacement getpeereid because it doesn't use
21108         # Unix sockets.
21109         mingw*)
21110
21111 cat >>confdefs.h <<\_ACEOF
21112 #define HAVE_UNSETENV 1
21113 _ACEOF
21114
21115
21116 cat >>confdefs.h <<\_ACEOF
21117 #define HAVE_GETPEEREID 1
21118 _ACEOF
21119
21120                 ac_cv_func_unsetenv=yes
21121                 ac_cv_func_getpeereid=yes;;
21122         *)
21123
21124
21125 for ac_func in unsetenv getpeereid
21126 do
21127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21128 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21129 $as_echo_n "checking for $ac_func... " >&6; }
21130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21131   $as_echo_n "(cached) " >&6
21132 else
21133   cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21141 #define $ac_func innocuous_$ac_func
21142
21143 /* System header to define __stub macros and hopefully few prototypes,
21144     which can conflict with char $ac_func (); below.
21145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21146     <limits.h> exists even on freestanding compilers.  */
21147
21148 #ifdef __STDC__
21149 # include <limits.h>
21150 #else
21151 # include <assert.h>
21152 #endif
21153
21154 #undef $ac_func
21155
21156 /* Override any GCC internal prototype to avoid an error.
21157    Use char because int might match the return type of a GCC
21158    builtin and then its argument prototype would still apply.  */
21159 #ifdef __cplusplus
21160 extern "C"
21161 #endif
21162 char $ac_func ();
21163 /* The GNU C library defines this for functions which it implements
21164     to always fail with ENOSYS.  Some functions are actually named
21165     something starting with __ and the normal name is an alias.  */
21166 #if defined __stub_$ac_func || defined __stub___$ac_func
21167 choke me
21168 #endif
21169
21170 int
21171 main ()
21172 {
21173 return $ac_func ();
21174   ;
21175   return 0;
21176 }
21177 _ACEOF
21178 rm -f conftest.$ac_objext conftest$ac_exeext
21179 if { (ac_try="$ac_link"
21180 case "(($ac_try" in
21181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182   *) ac_try_echo=$ac_try;;
21183 esac
21184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21185 $as_echo "$ac_try_echo") >&5
21186   (eval "$ac_link") 2>conftest.er1
21187   ac_status=$?
21188   grep -v '^ *+' conftest.er1 >conftest.err
21189   rm -f conftest.er1
21190   cat conftest.err >&5
21191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); } && {
21193          test -z "$ac_c_werror_flag" ||
21194          test ! -s conftest.err
21195        } && test -s conftest$ac_exeext && {
21196          test "$cross_compiling" = yes ||
21197          $as_test_x conftest$ac_exeext
21198        }; then
21199   eval "$as_ac_var=yes"
21200 else
21201   $as_echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21203
21204         eval "$as_ac_var=no"
21205 fi
21206
21207 rm -rf conftest.dSYM
21208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21209       conftest$ac_exeext conftest.$ac_ext
21210 fi
21211 ac_res=`eval 'as_val=${'$as_ac_var'}
21212                  $as_echo "$as_val"'`
21213                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21214 $as_echo "$ac_res" >&6; }
21215 as_val=`eval 'as_val=${'$as_ac_var'}
21216                  $as_echo "$as_val"'`
21217    if test "x$as_val" = x""yes; then
21218   cat >>confdefs.h <<_ACEOF
21219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21220 _ACEOF
21221
21222 else
21223   case " $LIBOBJS " in
21224   *" $ac_func.$ac_objext "* ) ;;
21225   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21226  ;;
21227 esac
21228
21229 fi
21230 done
21231
21232
21233                 ;;
21234 esac
21235
21236
21237 LIBS="$pgac_save_LIBS"
21238
21239 # System's version of getaddrinfo(), if any, may be used only if we found
21240 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21241 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21242 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
21243 # because we want to use our own getaddrinfo.c on Windows anyway.)
21244 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21245
21246 for ac_func in getaddrinfo
21247 do
21248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21249 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21250 $as_echo_n "checking for $ac_func... " >&6; }
21251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21252   $as_echo_n "(cached) " >&6
21253 else
21254   cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h.  */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h.  */
21260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21262 #define $ac_func innocuous_$ac_func
21263
21264 /* System header to define __stub macros and hopefully few prototypes,
21265     which can conflict with char $ac_func (); below.
21266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21267     <limits.h> exists even on freestanding compilers.  */
21268
21269 #ifdef __STDC__
21270 # include <limits.h>
21271 #else
21272 # include <assert.h>
21273 #endif
21274
21275 #undef $ac_func
21276
21277 /* Override any GCC internal prototype to avoid an error.
21278    Use char because int might match the return type of a GCC
21279    builtin and then its argument prototype would still apply.  */
21280 #ifdef __cplusplus
21281 extern "C"
21282 #endif
21283 char $ac_func ();
21284 /* The GNU C library defines this for functions which it implements
21285     to always fail with ENOSYS.  Some functions are actually named
21286     something starting with __ and the normal name is an alias.  */
21287 #if defined __stub_$ac_func || defined __stub___$ac_func
21288 choke me
21289 #endif
21290
21291 int
21292 main ()
21293 {
21294 return $ac_func ();
21295   ;
21296   return 0;
21297 }
21298 _ACEOF
21299 rm -f conftest.$ac_objext conftest$ac_exeext
21300 if { (ac_try="$ac_link"
21301 case "(($ac_try" in
21302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303   *) ac_try_echo=$ac_try;;
21304 esac
21305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21306 $as_echo "$ac_try_echo") >&5
21307   (eval "$ac_link") 2>conftest.er1
21308   ac_status=$?
21309   grep -v '^ *+' conftest.er1 >conftest.err
21310   rm -f conftest.er1
21311   cat conftest.err >&5
21312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313   (exit $ac_status); } && {
21314          test -z "$ac_c_werror_flag" ||
21315          test ! -s conftest.err
21316        } && test -s conftest$ac_exeext && {
21317          test "$cross_compiling" = yes ||
21318          $as_test_x conftest$ac_exeext
21319        }; then
21320   eval "$as_ac_var=yes"
21321 else
21322   $as_echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325         eval "$as_ac_var=no"
21326 fi
21327
21328 rm -rf conftest.dSYM
21329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21330       conftest$ac_exeext conftest.$ac_ext
21331 fi
21332 ac_res=`eval 'as_val=${'$as_ac_var'}
21333                  $as_echo "$as_val"'`
21334                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21335 $as_echo "$ac_res" >&6; }
21336 as_val=`eval 'as_val=${'$as_ac_var'}
21337                  $as_echo "$as_val"'`
21338    if test "x$as_val" = x""yes; then
21339   cat >>confdefs.h <<_ACEOF
21340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21341 _ACEOF
21342
21343 else
21344   case " $LIBOBJS " in
21345   *" $ac_func.$ac_objext "* ) ;;
21346   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21347  ;;
21348 esac
21349
21350 fi
21351 done
21352
21353
21354 else
21355   case " $LIBOBJS " in
21356   *" getaddrinfo.$ac_objext "* ) ;;
21357   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21358  ;;
21359 esac
21360
21361 fi
21362
21363 # Similarly, use system's getopt_long() only if system provides struct option.
21364 if test x"$ac_cv_type_struct_option" = xyes ; then
21365
21366 for ac_func in getopt_long
21367 do
21368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21369 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21370 $as_echo_n "checking for $ac_func... " >&6; }
21371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21372   $as_echo_n "(cached) " >&6
21373 else
21374   cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h.  */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h.  */
21380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21382 #define $ac_func innocuous_$ac_func
21383
21384 /* System header to define __stub macros and hopefully few prototypes,
21385     which can conflict with char $ac_func (); below.
21386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21387     <limits.h> exists even on freestanding compilers.  */
21388
21389 #ifdef __STDC__
21390 # include <limits.h>
21391 #else
21392 # include <assert.h>
21393 #endif
21394
21395 #undef $ac_func
21396
21397 /* Override any GCC internal prototype to avoid an error.
21398    Use char because int might match the return type of a GCC
21399    builtin and then its argument prototype would still apply.  */
21400 #ifdef __cplusplus
21401 extern "C"
21402 #endif
21403 char $ac_func ();
21404 /* The GNU C library defines this for functions which it implements
21405     to always fail with ENOSYS.  Some functions are actually named
21406     something starting with __ and the normal name is an alias.  */
21407 #if defined __stub_$ac_func || defined __stub___$ac_func
21408 choke me
21409 #endif
21410
21411 int
21412 main ()
21413 {
21414 return $ac_func ();
21415   ;
21416   return 0;
21417 }
21418 _ACEOF
21419 rm -f conftest.$ac_objext conftest$ac_exeext
21420 if { (ac_try="$ac_link"
21421 case "(($ac_try" in
21422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423   *) ac_try_echo=$ac_try;;
21424 esac
21425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21426 $as_echo "$ac_try_echo") >&5
21427   (eval "$ac_link") 2>conftest.er1
21428   ac_status=$?
21429   grep -v '^ *+' conftest.er1 >conftest.err
21430   rm -f conftest.er1
21431   cat conftest.err >&5
21432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); } && {
21434          test -z "$ac_c_werror_flag" ||
21435          test ! -s conftest.err
21436        } && test -s conftest$ac_exeext && {
21437          test "$cross_compiling" = yes ||
21438          $as_test_x conftest$ac_exeext
21439        }; then
21440   eval "$as_ac_var=yes"
21441 else
21442   $as_echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445         eval "$as_ac_var=no"
21446 fi
21447
21448 rm -rf conftest.dSYM
21449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21450       conftest$ac_exeext conftest.$ac_ext
21451 fi
21452 ac_res=`eval 'as_val=${'$as_ac_var'}
21453                  $as_echo "$as_val"'`
21454                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21455 $as_echo "$ac_res" >&6; }
21456 as_val=`eval 'as_val=${'$as_ac_var'}
21457                  $as_echo "$as_val"'`
21458    if test "x$as_val" = x""yes; then
21459   cat >>confdefs.h <<_ACEOF
21460 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21461 _ACEOF
21462
21463 else
21464   case " $LIBOBJS " in
21465   *" $ac_func.$ac_objext "* ) ;;
21466   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21467  ;;
21468 esac
21469
21470 fi
21471 done
21472
21473
21474 else
21475   case " $LIBOBJS " in
21476   *" getopt_long.$ac_objext "* ) ;;
21477   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21478  ;;
21479 esac
21480
21481 fi
21482
21483 # Solaris' getopt() doesn't do what we want for long options, so always use
21484 # our version on that platform.
21485 if test "$PORTNAME" = "solaris"; then
21486   case " $LIBOBJS " in
21487   *" getopt.$ac_objext "* ) ;;
21488   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21489  ;;
21490 esac
21491
21492 fi
21493
21494 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21495 # so always use our version on Windows.
21496 if test "$PORTNAME" = "win32"; then
21497   case " $LIBOBJS " in
21498   *" getopt.$ac_objext "* ) ;;
21499   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21500  ;;
21501 esac
21502
21503   case " $LIBOBJS " in
21504   *" getopt_long.$ac_objext "* ) ;;
21505   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21506  ;;
21507 esac
21508
21509 fi
21510
21511 # Win32 support
21512 if test "$PORTNAME" = "win32"; then
21513
21514 for ac_func in gettimeofday
21515 do
21516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21518 $as_echo_n "checking for $ac_func... " >&6; }
21519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21520   $as_echo_n "(cached) " >&6
21521 else
21522   cat >conftest.$ac_ext <<_ACEOF
21523 /* confdefs.h.  */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h.  */
21528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21530 #define $ac_func innocuous_$ac_func
21531
21532 /* System header to define __stub macros and hopefully few prototypes,
21533     which can conflict with char $ac_func (); below.
21534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21535     <limits.h> exists even on freestanding compilers.  */
21536
21537 #ifdef __STDC__
21538 # include <limits.h>
21539 #else
21540 # include <assert.h>
21541 #endif
21542
21543 #undef $ac_func
21544
21545 /* Override any GCC internal prototype to avoid an error.
21546    Use char because int might match the return type of a GCC
21547    builtin and then its argument prototype would still apply.  */
21548 #ifdef __cplusplus
21549 extern "C"
21550 #endif
21551 char $ac_func ();
21552 /* The GNU C library defines this for functions which it implements
21553     to always fail with ENOSYS.  Some functions are actually named
21554     something starting with __ and the normal name is an alias.  */
21555 #if defined __stub_$ac_func || defined __stub___$ac_func
21556 choke me
21557 #endif
21558
21559 int
21560 main ()
21561 {
21562 return $ac_func ();
21563   ;
21564   return 0;
21565 }
21566 _ACEOF
21567 rm -f conftest.$ac_objext conftest$ac_exeext
21568 if { (ac_try="$ac_link"
21569 case "(($ac_try" in
21570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571   *) ac_try_echo=$ac_try;;
21572 esac
21573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21574 $as_echo "$ac_try_echo") >&5
21575   (eval "$ac_link") 2>conftest.er1
21576   ac_status=$?
21577   grep -v '^ *+' conftest.er1 >conftest.err
21578   rm -f conftest.er1
21579   cat conftest.err >&5
21580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); } && {
21582          test -z "$ac_c_werror_flag" ||
21583          test ! -s conftest.err
21584        } && test -s conftest$ac_exeext && {
21585          test "$cross_compiling" = yes ||
21586          $as_test_x conftest$ac_exeext
21587        }; then
21588   eval "$as_ac_var=yes"
21589 else
21590   $as_echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21592
21593         eval "$as_ac_var=no"
21594 fi
21595
21596 rm -rf conftest.dSYM
21597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21598       conftest$ac_exeext conftest.$ac_ext
21599 fi
21600 ac_res=`eval 'as_val=${'$as_ac_var'}
21601                  $as_echo "$as_val"'`
21602                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21603 $as_echo "$ac_res" >&6; }
21604 as_val=`eval 'as_val=${'$as_ac_var'}
21605                  $as_echo "$as_val"'`
21606    if test "x$as_val" = x""yes; then
21607   cat >>confdefs.h <<_ACEOF
21608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21609 _ACEOF
21610
21611 else
21612   case " $LIBOBJS " in
21613   *" $ac_func.$ac_objext "* ) ;;
21614   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21615  ;;
21616 esac
21617
21618 fi
21619 done
21620
21621
21622   case " $LIBOBJS " in
21623   *" kill.$ac_objext "* ) ;;
21624   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21625  ;;
21626 esac
21627
21628   case " $LIBOBJS " in
21629   *" open.$ac_objext "* ) ;;
21630   *) LIBOBJS="$LIBOBJS open.$ac_objext"
21631  ;;
21632 esac
21633
21634   case " $LIBOBJS " in
21635   *" win32env.$ac_objext "* ) ;;
21636   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21637  ;;
21638 esac
21639
21640   case " $LIBOBJS " in
21641   *" win32error.$ac_objext "* ) ;;
21642   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21643  ;;
21644 esac
21645
21646   case " $LIBOBJS " in
21647   *" win32setlocale.$ac_objext "* ) ;;
21648   *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21649  ;;
21650 esac
21651
21652
21653 cat >>confdefs.h <<\_ACEOF
21654 #define HAVE_SYMLINK 1
21655 _ACEOF
21656
21657   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21658 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21659 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21660   $as_echo_n "(cached) " >&6
21661 else
21662   ac_cv_type_MINIDUMP_TYPE=no
21663 cat >conftest.$ac_ext <<_ACEOF
21664 /* confdefs.h.  */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h.  */
21669
21670 #define WIN32_LEAN_AND_MEAN
21671 #include <windows.h>
21672 #include <string.h>
21673 #include <dbghelp.h>
21674
21675 int
21676 main ()
21677 {
21678 if (sizeof (MINIDUMP_TYPE))
21679        return 0;
21680   ;
21681   return 0;
21682 }
21683 _ACEOF
21684 rm -f conftest.$ac_objext
21685 if { (ac_try="$ac_compile"
21686 case "(($ac_try" in
21687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688   *) ac_try_echo=$ac_try;;
21689 esac
21690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21691 $as_echo "$ac_try_echo") >&5
21692   (eval "$ac_compile") 2>conftest.er1
21693   ac_status=$?
21694   grep -v '^ *+' conftest.er1 >conftest.err
21695   rm -f conftest.er1
21696   cat conftest.err >&5
21697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); } && {
21699          test -z "$ac_c_werror_flag" ||
21700          test ! -s conftest.err
21701        } && test -s conftest.$ac_objext; then
21702   cat >conftest.$ac_ext <<_ACEOF
21703 /* confdefs.h.  */
21704 _ACEOF
21705 cat confdefs.h >>conftest.$ac_ext
21706 cat >>conftest.$ac_ext <<_ACEOF
21707 /* end confdefs.h.  */
21708
21709 #define WIN32_LEAN_AND_MEAN
21710 #include <windows.h>
21711 #include <string.h>
21712 #include <dbghelp.h>
21713
21714 int
21715 main ()
21716 {
21717 if (sizeof ((MINIDUMP_TYPE)))
21718           return 0;
21719   ;
21720   return 0;
21721 }
21722 _ACEOF
21723 rm -f conftest.$ac_objext
21724 if { (ac_try="$ac_compile"
21725 case "(($ac_try" in
21726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727   *) ac_try_echo=$ac_try;;
21728 esac
21729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21730 $as_echo "$ac_try_echo") >&5
21731   (eval "$ac_compile") 2>conftest.er1
21732   ac_status=$?
21733   grep -v '^ *+' conftest.er1 >conftest.err
21734   rm -f conftest.er1
21735   cat conftest.err >&5
21736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); } && {
21738          test -z "$ac_c_werror_flag" ||
21739          test ! -s conftest.err
21740        } && test -s conftest.$ac_objext; then
21741   :
21742 else
21743   $as_echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21745
21746         ac_cv_type_MINIDUMP_TYPE=yes
21747 fi
21748
21749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21750 else
21751   $as_echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21753
21754
21755 fi
21756
21757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21758 fi
21759 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21760 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21761 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21762
21763 cat >>confdefs.h <<_ACEOF
21764 #define HAVE_MINIDUMP_TYPE 1
21765 _ACEOF
21766
21767 pgac_minidump_type=yes
21768 else
21769   pgac_minidump_type=no
21770 fi
21771
21772 fi
21773 if test x"$pgac_minidump_type" = x"yes" ; then
21774   have_win32_dbghelp=yes
21775
21776 else
21777   have_win32_dbghelp=no
21778
21779 fi
21780
21781 if test "$with_readline" = yes; then
21782   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21783 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21784 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21785   $as_echo_n "(cached) " >&6
21786 else
21787   cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h.  */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h.  */
21793 #include <stdio.h>
21794 #ifdef HAVE_READLINE_READLINE_H
21795 # include <readline/readline.h>
21796 #elif defined(HAVE_READLINE_H)
21797 # include <readline.h>
21798 #endif
21799
21800 int
21801 main ()
21802 {
21803 rl_completion_append_character = 'x';
21804   ;
21805   return 0;
21806 }
21807 _ACEOF
21808 rm -f conftest.$ac_objext conftest$ac_exeext
21809 if { (ac_try="$ac_link"
21810 case "(($ac_try" in
21811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21812   *) ac_try_echo=$ac_try;;
21813 esac
21814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21815 $as_echo "$ac_try_echo") >&5
21816   (eval "$ac_link") 2>conftest.er1
21817   ac_status=$?
21818   grep -v '^ *+' conftest.er1 >conftest.err
21819   rm -f conftest.er1
21820   cat conftest.err >&5
21821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); } && {
21823          test -z "$ac_c_werror_flag" ||
21824          test ! -s conftest.err
21825        } && test -s conftest$ac_exeext && {
21826          test "$cross_compiling" = yes ||
21827          $as_test_x conftest$ac_exeext
21828        }; then
21829   pgac_cv_var_rl_completion_append_character=yes
21830 else
21831   $as_echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21833
21834         pgac_cv_var_rl_completion_append_character=no
21835 fi
21836
21837 rm -rf conftest.dSYM
21838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21839       conftest$ac_exeext conftest.$ac_ext
21840 fi
21841 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21842 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21843 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21844
21845 cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21847 _ACEOF
21848
21849 fi
21850
21851
21852 for ac_func in rl_completion_matches rl_filename_completion_function
21853 do
21854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21855 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21856 $as_echo_n "checking for $ac_func... " >&6; }
21857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21858   $as_echo_n "(cached) " >&6
21859 else
21860   cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h.  */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h.  */
21866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21868 #define $ac_func innocuous_$ac_func
21869
21870 /* System header to define __stub macros and hopefully few prototypes,
21871     which can conflict with char $ac_func (); below.
21872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21873     <limits.h> exists even on freestanding compilers.  */
21874
21875 #ifdef __STDC__
21876 # include <limits.h>
21877 #else
21878 # include <assert.h>
21879 #endif
21880
21881 #undef $ac_func
21882
21883 /* Override any GCC internal prototype to avoid an error.
21884    Use char because int might match the return type of a GCC
21885    builtin and then its argument prototype would still apply.  */
21886 #ifdef __cplusplus
21887 extern "C"
21888 #endif
21889 char $ac_func ();
21890 /* The GNU C library defines this for functions which it implements
21891     to always fail with ENOSYS.  Some functions are actually named
21892     something starting with __ and the normal name is an alias.  */
21893 #if defined __stub_$ac_func || defined __stub___$ac_func
21894 choke me
21895 #endif
21896
21897 int
21898 main ()
21899 {
21900 return $ac_func ();
21901   ;
21902   return 0;
21903 }
21904 _ACEOF
21905 rm -f conftest.$ac_objext conftest$ac_exeext
21906 if { (ac_try="$ac_link"
21907 case "(($ac_try" in
21908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909   *) ac_try_echo=$ac_try;;
21910 esac
21911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21912 $as_echo "$ac_try_echo") >&5
21913   (eval "$ac_link") 2>conftest.er1
21914   ac_status=$?
21915   grep -v '^ *+' conftest.er1 >conftest.err
21916   rm -f conftest.er1
21917   cat conftest.err >&5
21918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); } && {
21920          test -z "$ac_c_werror_flag" ||
21921          test ! -s conftest.err
21922        } && test -s conftest$ac_exeext && {
21923          test "$cross_compiling" = yes ||
21924          $as_test_x conftest$ac_exeext
21925        }; then
21926   eval "$as_ac_var=yes"
21927 else
21928   $as_echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21930
21931         eval "$as_ac_var=no"
21932 fi
21933
21934 rm -rf conftest.dSYM
21935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21936       conftest$ac_exeext conftest.$ac_ext
21937 fi
21938 ac_res=`eval 'as_val=${'$as_ac_var'}
21939                  $as_echo "$as_val"'`
21940                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21941 $as_echo "$ac_res" >&6; }
21942 as_val=`eval 'as_val=${'$as_ac_var'}
21943                  $as_echo "$as_val"'`
21944    if test "x$as_val" = x""yes; then
21945   cat >>confdefs.h <<_ACEOF
21946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21947 _ACEOF
21948
21949 fi
21950 done
21951
21952
21953
21954 for ac_func in append_history history_truncate_file
21955 do
21956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21957 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21958 $as_echo_n "checking for $ac_func... " >&6; }
21959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21960   $as_echo_n "(cached) " >&6
21961 else
21962   cat >conftest.$ac_ext <<_ACEOF
21963 /* confdefs.h.  */
21964 _ACEOF
21965 cat confdefs.h >>conftest.$ac_ext
21966 cat >>conftest.$ac_ext <<_ACEOF
21967 /* end confdefs.h.  */
21968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21970 #define $ac_func innocuous_$ac_func
21971
21972 /* System header to define __stub macros and hopefully few prototypes,
21973     which can conflict with char $ac_func (); below.
21974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21975     <limits.h> exists even on freestanding compilers.  */
21976
21977 #ifdef __STDC__
21978 # include <limits.h>
21979 #else
21980 # include <assert.h>
21981 #endif
21982
21983 #undef $ac_func
21984
21985 /* Override any GCC internal prototype to avoid an error.
21986    Use char because int might match the return type of a GCC
21987    builtin and then its argument prototype would still apply.  */
21988 #ifdef __cplusplus
21989 extern "C"
21990 #endif
21991 char $ac_func ();
21992 /* The GNU C library defines this for functions which it implements
21993     to always fail with ENOSYS.  Some functions are actually named
21994     something starting with __ and the normal name is an alias.  */
21995 #if defined __stub_$ac_func || defined __stub___$ac_func
21996 choke me
21997 #endif
21998
21999 int
22000 main ()
22001 {
22002 return $ac_func ();
22003   ;
22004   return 0;
22005 }
22006 _ACEOF
22007 rm -f conftest.$ac_objext conftest$ac_exeext
22008 if { (ac_try="$ac_link"
22009 case "(($ac_try" in
22010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011   *) ac_try_echo=$ac_try;;
22012 esac
22013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22014 $as_echo "$ac_try_echo") >&5
22015   (eval "$ac_link") 2>conftest.er1
22016   ac_status=$?
22017   grep -v '^ *+' conftest.er1 >conftest.err
22018   rm -f conftest.er1
22019   cat conftest.err >&5
22020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021   (exit $ac_status); } && {
22022          test -z "$ac_c_werror_flag" ||
22023          test ! -s conftest.err
22024        } && test -s conftest$ac_exeext && {
22025          test "$cross_compiling" = yes ||
22026          $as_test_x conftest$ac_exeext
22027        }; then
22028   eval "$as_ac_var=yes"
22029 else
22030   $as_echo "$as_me: failed program was:" >&5
22031 sed 's/^/| /' conftest.$ac_ext >&5
22032
22033         eval "$as_ac_var=no"
22034 fi
22035
22036 rm -rf conftest.dSYM
22037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22038       conftest$ac_exeext conftest.$ac_ext
22039 fi
22040 ac_res=`eval 'as_val=${'$as_ac_var'}
22041                  $as_echo "$as_val"'`
22042                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22043 $as_echo "$ac_res" >&6; }
22044 as_val=`eval 'as_val=${'$as_ac_var'}
22045                  $as_echo "$as_val"'`
22046    if test "x$as_val" = x""yes; then
22047   cat >>confdefs.h <<_ACEOF
22048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22049 _ACEOF
22050
22051 fi
22052 done
22053
22054 fi
22055
22056
22057 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
22058 $as_echo_n "checking for sigsetjmp... " >&6; }
22059 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
22060   $as_echo_n "(cached) " >&6
22061 else
22062   cat >conftest.$ac_ext <<_ACEOF
22063 /* confdefs.h.  */
22064 _ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h.  */
22068 #include <setjmp.h>
22069 int
22070 main ()
22071 {
22072 sigjmp_buf x; sigsetjmp(x, 1);
22073   ;
22074   return 0;
22075 }
22076 _ACEOF
22077 rm -f conftest.$ac_objext conftest$ac_exeext
22078 if { (ac_try="$ac_link"
22079 case "(($ac_try" in
22080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081   *) ac_try_echo=$ac_try;;
22082 esac
22083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22084 $as_echo "$ac_try_echo") >&5
22085   (eval "$ac_link") 2>conftest.er1
22086   ac_status=$?
22087   grep -v '^ *+' conftest.er1 >conftest.err
22088   rm -f conftest.er1
22089   cat conftest.err >&5
22090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); } && {
22092          test -z "$ac_c_werror_flag" ||
22093          test ! -s conftest.err
22094        } && test -s conftest$ac_exeext && {
22095          test "$cross_compiling" = yes ||
22096          $as_test_x conftest$ac_exeext
22097        }; then
22098   pgac_cv_func_sigsetjmp=yes
22099 else
22100   $as_echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103         pgac_cv_func_sigsetjmp=no
22104 fi
22105
22106 rm -rf conftest.dSYM
22107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22108       conftest$ac_exeext conftest.$ac_ext
22109 fi
22110 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
22111 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
22112 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
22113
22114 cat >>confdefs.h <<\_ACEOF
22115 #define HAVE_SIGSETJMP 1
22116 _ACEOF
22117
22118 fi
22119
22120 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22121 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
22122 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22123   $as_echo_n "(cached) " >&6
22124 else
22125   cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h.  */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h.  */
22131 #include <signal.h>
22132 /* NetBSD declares sys_siglist in unistd.h.  */
22133 #ifdef HAVE_UNISTD_H
22134 # include <unistd.h>
22135 #endif
22136
22137
22138 int
22139 main ()
22140 {
22141 #ifndef sys_siglist
22142   (void) sys_siglist;
22143 #endif
22144
22145   ;
22146   return 0;
22147 }
22148 _ACEOF
22149 rm -f conftest.$ac_objext
22150 if { (ac_try="$ac_compile"
22151 case "(($ac_try" in
22152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153   *) ac_try_echo=$ac_try;;
22154 esac
22155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22156 $as_echo "$ac_try_echo") >&5
22157   (eval "$ac_compile") 2>conftest.er1
22158   ac_status=$?
22159   grep -v '^ *+' conftest.er1 >conftest.err
22160   rm -f conftest.er1
22161   cat conftest.err >&5
22162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); } && {
22164          test -z "$ac_c_werror_flag" ||
22165          test ! -s conftest.err
22166        } && test -s conftest.$ac_objext; then
22167   ac_cv_have_decl_sys_siglist=yes
22168 else
22169   $as_echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22171
22172         ac_cv_have_decl_sys_siglist=no
22173 fi
22174
22175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22176 fi
22177 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22178 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22179 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22180
22181 cat >>confdefs.h <<_ACEOF
22182 #define HAVE_DECL_SYS_SIGLIST 1
22183 _ACEOF
22184
22185
22186 else
22187   cat >>confdefs.h <<_ACEOF
22188 #define HAVE_DECL_SYS_SIGLIST 0
22189 _ACEOF
22190
22191
22192 fi
22193
22194
22195
22196
22197 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22198 $as_echo_n "checking for syslog... " >&6; }
22199 if test "${ac_cv_func_syslog+set}" = set; then
22200   $as_echo_n "(cached) " >&6
22201 else
22202   cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h.  */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h.  */
22208 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22210 #define syslog innocuous_syslog
22211
22212 /* System header to define __stub macros and hopefully few prototypes,
22213     which can conflict with char syslog (); below.
22214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22215     <limits.h> exists even on freestanding compilers.  */
22216
22217 #ifdef __STDC__
22218 # include <limits.h>
22219 #else
22220 # include <assert.h>
22221 #endif
22222
22223 #undef syslog
22224
22225 /* Override any GCC internal prototype to avoid an error.
22226    Use char because int might match the return type of a GCC
22227    builtin and then its argument prototype would still apply.  */
22228 #ifdef __cplusplus
22229 extern "C"
22230 #endif
22231 char syslog ();
22232 /* The GNU C library defines this for functions which it implements
22233     to always fail with ENOSYS.  Some functions are actually named
22234     something starting with __ and the normal name is an alias.  */
22235 #if defined __stub_syslog || defined __stub___syslog
22236 choke me
22237 #endif
22238
22239 int
22240 main ()
22241 {
22242 return syslog ();
22243   ;
22244   return 0;
22245 }
22246 _ACEOF
22247 rm -f conftest.$ac_objext conftest$ac_exeext
22248 if { (ac_try="$ac_link"
22249 case "(($ac_try" in
22250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251   *) ac_try_echo=$ac_try;;
22252 esac
22253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22254 $as_echo "$ac_try_echo") >&5
22255   (eval "$ac_link") 2>conftest.er1
22256   ac_status=$?
22257   grep -v '^ *+' conftest.er1 >conftest.err
22258   rm -f conftest.er1
22259   cat conftest.err >&5
22260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); } && {
22262          test -z "$ac_c_werror_flag" ||
22263          test ! -s conftest.err
22264        } && test -s conftest$ac_exeext && {
22265          test "$cross_compiling" = yes ||
22266          $as_test_x conftest$ac_exeext
22267        }; then
22268   ac_cv_func_syslog=yes
22269 else
22270   $as_echo "$as_me: failed program was:" >&5
22271 sed 's/^/| /' conftest.$ac_ext >&5
22272
22273         ac_cv_func_syslog=no
22274 fi
22275
22276 rm -rf conftest.dSYM
22277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22278       conftest$ac_exeext conftest.$ac_ext
22279 fi
22280 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22281 $as_echo "$ac_cv_func_syslog" >&6; }
22282 if test "x$ac_cv_func_syslog" = x""yes; then
22283   if test "${ac_cv_header_syslog_h+set}" = set; then
22284   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22285 $as_echo_n "checking for syslog.h... " >&6; }
22286 if test "${ac_cv_header_syslog_h+set}" = set; then
22287   $as_echo_n "(cached) " >&6
22288 fi
22289 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22290 $as_echo "$ac_cv_header_syslog_h" >&6; }
22291 else
22292   # Is the header compilable?
22293 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22294 $as_echo_n "checking syslog.h usability... " >&6; }
22295 cat >conftest.$ac_ext <<_ACEOF
22296 /* confdefs.h.  */
22297 _ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h.  */
22301 $ac_includes_default
22302 #include <syslog.h>
22303 _ACEOF
22304 rm -f conftest.$ac_objext
22305 if { (ac_try="$ac_compile"
22306 case "(($ac_try" in
22307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308   *) ac_try_echo=$ac_try;;
22309 esac
22310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22311 $as_echo "$ac_try_echo") >&5
22312   (eval "$ac_compile") 2>conftest.er1
22313   ac_status=$?
22314   grep -v '^ *+' conftest.er1 >conftest.err
22315   rm -f conftest.er1
22316   cat conftest.err >&5
22317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318   (exit $ac_status); } && {
22319          test -z "$ac_c_werror_flag" ||
22320          test ! -s conftest.err
22321        } && test -s conftest.$ac_objext; then
22322   ac_header_compiler=yes
22323 else
22324   $as_echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327         ac_header_compiler=no
22328 fi
22329
22330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22331 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22332 $as_echo "$ac_header_compiler" >&6; }
22333
22334 # Is the header present?
22335 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22336 $as_echo_n "checking syslog.h presence... " >&6; }
22337 cat >conftest.$ac_ext <<_ACEOF
22338 /* confdefs.h.  */
22339 _ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h.  */
22343 #include <syslog.h>
22344 _ACEOF
22345 if { (ac_try="$ac_cpp conftest.$ac_ext"
22346 case "(($ac_try" in
22347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348   *) ac_try_echo=$ac_try;;
22349 esac
22350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22351 $as_echo "$ac_try_echo") >&5
22352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22353   ac_status=$?
22354   grep -v '^ *+' conftest.er1 >conftest.err
22355   rm -f conftest.er1
22356   cat conftest.err >&5
22357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); } >/dev/null && {
22359          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22360          test ! -s conftest.err
22361        }; then
22362   ac_header_preproc=yes
22363 else
22364   $as_echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22366
22367   ac_header_preproc=no
22368 fi
22369
22370 rm -f conftest.err conftest.$ac_ext
22371 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22372 $as_echo "$ac_header_preproc" >&6; }
22373
22374 # So?  What about this header?
22375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22376   yes:no: )
22377     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22378 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22379     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22380 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22381     ac_header_preproc=yes
22382     ;;
22383   no:yes:* )
22384     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22385 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22386     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
22387 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
22388     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22389 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22390     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
22391 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22392     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22393 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22394     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22395 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22396     ( cat <<\_ASBOX
22397 ## ---------------------------------------- ##
22398 ## Report this to pgsql-bugs@postgresql.org ##
22399 ## ---------------------------------------- ##
22400 _ASBOX
22401      ) | sed "s/^/$as_me: WARNING:     /" >&2
22402     ;;
22403 esac
22404 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22405 $as_echo_n "checking for syslog.h... " >&6; }
22406 if test "${ac_cv_header_syslog_h+set}" = set; then
22407   $as_echo_n "(cached) " >&6
22408 else
22409   ac_cv_header_syslog_h=$ac_header_preproc
22410 fi
22411 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22412 $as_echo "$ac_cv_header_syslog_h" >&6; }
22413
22414 fi
22415 if test "x$ac_cv_header_syslog_h" = x""yes; then
22416
22417 cat >>confdefs.h <<\_ACEOF
22418 #define HAVE_SYSLOG 1
22419 _ACEOF
22420
22421 fi
22422
22423
22424 fi
22425
22426
22427 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22428 $as_echo_n "checking for opterr... " >&6; }
22429 if test "${pgac_cv_var_int_opterr+set}" = set; then
22430   $as_echo_n "(cached) " >&6
22431 else
22432   cat >conftest.$ac_ext <<_ACEOF
22433 /* confdefs.h.  */
22434 _ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h.  */
22438 #include <unistd.h>
22439 int
22440 main ()
22441 {
22442 extern int opterr; opterr = 1;
22443   ;
22444   return 0;
22445 }
22446 _ACEOF
22447 rm -f conftest.$ac_objext conftest$ac_exeext
22448 if { (ac_try="$ac_link"
22449 case "(($ac_try" in
22450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451   *) ac_try_echo=$ac_try;;
22452 esac
22453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22454 $as_echo "$ac_try_echo") >&5
22455   (eval "$ac_link") 2>conftest.er1
22456   ac_status=$?
22457   grep -v '^ *+' conftest.er1 >conftest.err
22458   rm -f conftest.er1
22459   cat conftest.err >&5
22460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461   (exit $ac_status); } && {
22462          test -z "$ac_c_werror_flag" ||
22463          test ! -s conftest.err
22464        } && test -s conftest$ac_exeext && {
22465          test "$cross_compiling" = yes ||
22466          $as_test_x conftest$ac_exeext
22467        }; then
22468   pgac_cv_var_int_opterr=yes
22469 else
22470   $as_echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22472
22473         pgac_cv_var_int_opterr=no
22474 fi
22475
22476 rm -rf conftest.dSYM
22477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22478       conftest$ac_exeext conftest.$ac_ext
22479 fi
22480 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22481 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22482 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22483
22484 cat >>confdefs.h <<\_ACEOF
22485 #define HAVE_INT_OPTERR 1
22486 _ACEOF
22487
22488 fi
22489
22490 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22491 $as_echo_n "checking for optreset... " >&6; }
22492 if test "${pgac_cv_var_int_optreset+set}" = set; then
22493   $as_echo_n "(cached) " >&6
22494 else
22495   cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h.  */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h.  */
22501 #include <unistd.h>
22502 int
22503 main ()
22504 {
22505 extern int optreset; optreset = 1;
22506   ;
22507   return 0;
22508 }
22509 _ACEOF
22510 rm -f conftest.$ac_objext conftest$ac_exeext
22511 if { (ac_try="$ac_link"
22512 case "(($ac_try" in
22513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514   *) ac_try_echo=$ac_try;;
22515 esac
22516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22517 $as_echo "$ac_try_echo") >&5
22518   (eval "$ac_link") 2>conftest.er1
22519   ac_status=$?
22520   grep -v '^ *+' conftest.er1 >conftest.err
22521   rm -f conftest.er1
22522   cat conftest.err >&5
22523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); } && {
22525          test -z "$ac_c_werror_flag" ||
22526          test ! -s conftest.err
22527        } && test -s conftest$ac_exeext && {
22528          test "$cross_compiling" = yes ||
22529          $as_test_x conftest$ac_exeext
22530        }; then
22531   pgac_cv_var_int_optreset=yes
22532 else
22533   $as_echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22535
22536         pgac_cv_var_int_optreset=no
22537 fi
22538
22539 rm -rf conftest.dSYM
22540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22541       conftest$ac_exeext conftest.$ac_ext
22542 fi
22543 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22544 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22545 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22546
22547 cat >>confdefs.h <<\_ACEOF
22548 #define HAVE_INT_OPTRESET 1
22549 _ACEOF
22550
22551 fi
22552
22553
22554
22555 for ac_func in strtoll strtoq
22556 do
22557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22558 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22559 $as_echo_n "checking for $ac_func... " >&6; }
22560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22561   $as_echo_n "(cached) " >&6
22562 else
22563   cat >conftest.$ac_ext <<_ACEOF
22564 /* confdefs.h.  */
22565 _ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h.  */
22569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22571 #define $ac_func innocuous_$ac_func
22572
22573 /* System header to define __stub macros and hopefully few prototypes,
22574     which can conflict with char $ac_func (); below.
22575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22576     <limits.h> exists even on freestanding compilers.  */
22577
22578 #ifdef __STDC__
22579 # include <limits.h>
22580 #else
22581 # include <assert.h>
22582 #endif
22583
22584 #undef $ac_func
22585
22586 /* Override any GCC internal prototype to avoid an error.
22587    Use char because int might match the return type of a GCC
22588    builtin and then its argument prototype would still apply.  */
22589 #ifdef __cplusplus
22590 extern "C"
22591 #endif
22592 char $ac_func ();
22593 /* The GNU C library defines this for functions which it implements
22594     to always fail with ENOSYS.  Some functions are actually named
22595     something starting with __ and the normal name is an alias.  */
22596 #if defined __stub_$ac_func || defined __stub___$ac_func
22597 choke me
22598 #endif
22599
22600 int
22601 main ()
22602 {
22603 return $ac_func ();
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext conftest$ac_exeext
22609 if { (ac_try="$ac_link"
22610 case "(($ac_try" in
22611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612   *) ac_try_echo=$ac_try;;
22613 esac
22614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22615 $as_echo "$ac_try_echo") >&5
22616   (eval "$ac_link") 2>conftest.er1
22617   ac_status=$?
22618   grep -v '^ *+' conftest.er1 >conftest.err
22619   rm -f conftest.er1
22620   cat conftest.err >&5
22621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622   (exit $ac_status); } && {
22623          test -z "$ac_c_werror_flag" ||
22624          test ! -s conftest.err
22625        } && test -s conftest$ac_exeext && {
22626          test "$cross_compiling" = yes ||
22627          $as_test_x conftest$ac_exeext
22628        }; then
22629   eval "$as_ac_var=yes"
22630 else
22631   $as_echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22633
22634         eval "$as_ac_var=no"
22635 fi
22636
22637 rm -rf conftest.dSYM
22638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22639       conftest$ac_exeext conftest.$ac_ext
22640 fi
22641 ac_res=`eval 'as_val=${'$as_ac_var'}
22642                  $as_echo "$as_val"'`
22643                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22644 $as_echo "$ac_res" >&6; }
22645 as_val=`eval 'as_val=${'$as_ac_var'}
22646                  $as_echo "$as_val"'`
22647    if test "x$as_val" = x""yes; then
22648   cat >>confdefs.h <<_ACEOF
22649 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22650 _ACEOF
22651  break
22652 fi
22653 done
22654
22655
22656
22657 for ac_func in strtoull strtouq
22658 do
22659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22660 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22661 $as_echo_n "checking for $ac_func... " >&6; }
22662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22663   $as_echo_n "(cached) " >&6
22664 else
22665   cat >conftest.$ac_ext <<_ACEOF
22666 /* confdefs.h.  */
22667 _ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h.  */
22671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22672    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22673 #define $ac_func innocuous_$ac_func
22674
22675 /* System header to define __stub macros and hopefully few prototypes,
22676     which can conflict with char $ac_func (); below.
22677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22678     <limits.h> exists even on freestanding compilers.  */
22679
22680 #ifdef __STDC__
22681 # include <limits.h>
22682 #else
22683 # include <assert.h>
22684 #endif
22685
22686 #undef $ac_func
22687
22688 /* Override any GCC internal prototype to avoid an error.
22689    Use char because int might match the return type of a GCC
22690    builtin and then its argument prototype would still apply.  */
22691 #ifdef __cplusplus
22692 extern "C"
22693 #endif
22694 char $ac_func ();
22695 /* The GNU C library defines this for functions which it implements
22696     to always fail with ENOSYS.  Some functions are actually named
22697     something starting with __ and the normal name is an alias.  */
22698 #if defined __stub_$ac_func || defined __stub___$ac_func
22699 choke me
22700 #endif
22701
22702 int
22703 main ()
22704 {
22705 return $ac_func ();
22706   ;
22707   return 0;
22708 }
22709 _ACEOF
22710 rm -f conftest.$ac_objext conftest$ac_exeext
22711 if { (ac_try="$ac_link"
22712 case "(($ac_try" in
22713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714   *) ac_try_echo=$ac_try;;
22715 esac
22716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22717 $as_echo "$ac_try_echo") >&5
22718   (eval "$ac_link") 2>conftest.er1
22719   ac_status=$?
22720   grep -v '^ *+' conftest.er1 >conftest.err
22721   rm -f conftest.er1
22722   cat conftest.err >&5
22723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); } && {
22725          test -z "$ac_c_werror_flag" ||
22726          test ! -s conftest.err
22727        } && test -s conftest$ac_exeext && {
22728          test "$cross_compiling" = yes ||
22729          $as_test_x conftest$ac_exeext
22730        }; then
22731   eval "$as_ac_var=yes"
22732 else
22733   $as_echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22735
22736         eval "$as_ac_var=no"
22737 fi
22738
22739 rm -rf conftest.dSYM
22740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22741       conftest$ac_exeext conftest.$ac_ext
22742 fi
22743 ac_res=`eval 'as_val=${'$as_ac_var'}
22744                  $as_echo "$as_val"'`
22745                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22746 $as_echo "$ac_res" >&6; }
22747 as_val=`eval 'as_val=${'$as_ac_var'}
22748                  $as_echo "$as_val"'`
22749    if test "x$as_val" = x""yes; then
22750   cat >>confdefs.h <<_ACEOF
22751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22752 _ACEOF
22753  break
22754 fi
22755 done
22756
22757
22758 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22759 $as_echo_n "checking for builtin locking functions... " >&6; }
22760 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22761   $as_echo_n "(cached) " >&6
22762 else
22763   cat >conftest.$ac_ext <<_ACEOF
22764 /* confdefs.h.  */
22765 _ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h.  */
22769
22770 int
22771 main ()
22772 {
22773 int lock = 0;
22774    __sync_lock_test_and_set(&lock, 1);
22775    __sync_lock_release(&lock);
22776   ;
22777   return 0;
22778 }
22779 _ACEOF
22780 rm -f conftest.$ac_objext conftest$ac_exeext
22781 if { (ac_try="$ac_link"
22782 case "(($ac_try" in
22783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784   *) ac_try_echo=$ac_try;;
22785 esac
22786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22787 $as_echo "$ac_try_echo") >&5
22788   (eval "$ac_link") 2>conftest.er1
22789   ac_status=$?
22790   grep -v '^ *+' conftest.er1 >conftest.err
22791   rm -f conftest.er1
22792   cat conftest.err >&5
22793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794   (exit $ac_status); } && {
22795          test -z "$ac_c_werror_flag" ||
22796          test ! -s conftest.err
22797        } && test -s conftest$ac_exeext && {
22798          test "$cross_compiling" = yes ||
22799          $as_test_x conftest$ac_exeext
22800        }; then
22801   pgac_cv_gcc_int_atomics="yes"
22802 else
22803   $as_echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22805
22806         pgac_cv_gcc_int_atomics="no"
22807 fi
22808
22809 rm -rf conftest.dSYM
22810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22811       conftest$ac_exeext conftest.$ac_ext
22812 fi
22813 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22814 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22815 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22816
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_GCC_INT_ATOMICS 1
22819 _ACEOF
22820
22821 fi
22822
22823
22824 #
22825 # Pthreads
22826 #
22827 # For each platform, we need to know about any special compile and link
22828 # libraries, and whether the normal C function names are thread-safe.
22829 # See the comment at the top of src/port/thread.c for more information.
22830 # WIN32 doesn't need the pthread tests;  it always uses threads
22831 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22832
22833
22834
22835 ac_ext=c
22836 ac_cpp='$CPP $CPPFLAGS'
22837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22840
22841 acx_pthread_ok=no
22842
22843 # We used to check for pthread.h first, but this fails if pthread.h
22844 # requires special compiler flags (e.g. on True64 or Sequent).
22845 # It gets checked for in the link test anyway.
22846
22847 # First of all, check if the user has set any of the PTHREAD_LIBS,
22848 # etcetera environment variables, and if threads linking works using
22849 # them:
22850 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22851         save_CFLAGS="$CFLAGS"
22852         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22853         save_LIBS="$LIBS"
22854         LIBS="$PTHREAD_LIBS $LIBS"
22855         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22856 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22857         cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h.  */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h.  */
22863
22864 /* Override any GCC internal prototype to avoid an error.
22865    Use char because int might match the return type of a GCC
22866    builtin and then its argument prototype would still apply.  */
22867 #ifdef __cplusplus
22868 extern "C"
22869 #endif
22870 char pthread_join ();
22871 int
22872 main ()
22873 {
22874 return pthread_join ();
22875   ;
22876   return 0;
22877 }
22878 _ACEOF
22879 rm -f conftest.$ac_objext conftest$ac_exeext
22880 if { (ac_try="$ac_link"
22881 case "(($ac_try" in
22882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883   *) ac_try_echo=$ac_try;;
22884 esac
22885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22886 $as_echo "$ac_try_echo") >&5
22887   (eval "$ac_link") 2>conftest.er1
22888   ac_status=$?
22889   grep -v '^ *+' conftest.er1 >conftest.err
22890   rm -f conftest.er1
22891   cat conftest.err >&5
22892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893   (exit $ac_status); } && {
22894          test -z "$ac_c_werror_flag" ||
22895          test ! -s conftest.err
22896        } && test -s conftest$ac_exeext && {
22897          test "$cross_compiling" = yes ||
22898          $as_test_x conftest$ac_exeext
22899        }; then
22900   acx_pthread_ok=yes
22901 else
22902   $as_echo "$as_me: failed program was:" >&5
22903 sed 's/^/| /' conftest.$ac_ext >&5
22904
22905
22906 fi
22907
22908 rm -rf conftest.dSYM
22909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22910       conftest$ac_exeext conftest.$ac_ext
22911         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22912 $as_echo "$acx_pthread_ok" >&6; }
22913         if test x"$acx_pthread_ok" = xno; then
22914                 PTHREAD_LIBS=""
22915                 PTHREAD_CFLAGS=""
22916         fi
22917         LIBS="$save_LIBS"
22918         CFLAGS="$save_CFLAGS"
22919 fi
22920
22921 # We must check for the threads library under a number of different
22922 # names; the ordering is very important because some systems
22923 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22924 # libraries is broken (non-POSIX).
22925
22926 # Create a list of thread flags to try.  Items starting with a "-" are
22927 # C compiler flags, and other items are library names, except for "none"
22928 # which indicates that we try without any flags at all, and "pthread-config"
22929 # which is a program returning the flags for the Pth emulation library.
22930
22931 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22932
22933 # The ordering *is* (sometimes) important.  Some notes on the
22934 # individual items follow:
22935
22936 # pthreads: AIX (must check this before -lpthread)
22937 # none: in case threads are in libc; should be tried before -Kthread and
22938 #       other compiler flags to prevent continual compiler warnings
22939 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22940 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22941 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22942 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22943 # -pthreads: Solaris/gcc
22944 # -mthreads: Mingw32/gcc, Lynx/gcc
22945 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22946 #      doesn't hurt to check since this sometimes defines pthreads too;
22947 #      also defines -D_REENTRANT)
22948 # pthread: Linux, etcetera
22949 # --thread-safe: KAI C++
22950 # pthread-config: use pthread-config program (for GNU Pth library)
22951
22952 case "${host_cpu}-${host_os}" in
22953         *solaris*)
22954
22955         # On Solaris (at least, for some versions), libc contains stubbed
22956         # (non-functional) versions of the pthreads routines, so link-based
22957         # tests will erroneously succeed.  (We need to link with -pthread or
22958         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22959         # a function called by this macro, so we could check for that, but
22960         # who knows whether they'll stub that too in a future libc.)  So,
22961         # we'll just look for -pthreads and -lpthread first:
22962
22963         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22964         ;;
22965 esac
22966
22967 if test x"$acx_pthread_ok" = xno; then
22968 for flag in $acx_pthread_flags; do
22969
22970         tryPTHREAD_CFLAGS=""
22971         tryPTHREAD_LIBS=""
22972         case $flag in
22973                 none)
22974                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22975 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22976                 ;;
22977
22978                 -*)
22979                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22980 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22981                 tryPTHREAD_CFLAGS="$flag"
22982                 ;;
22983
22984                 pthread-config)
22985                 # skip this if we already have flags defined, for PostgreSQL
22986                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22987                 # Extract the first word of "pthread-config", so it can be a program name with args.
22988 set dummy pthread-config; ac_word=$2
22989 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22990 $as_echo_n "checking for $ac_word... " >&6; }
22991 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22992   $as_echo_n "(cached) " >&6
22993 else
22994   if test -n "$acx_pthread_config"; then
22995   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22996 else
22997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22998 for as_dir in $PATH
22999 do
23000   IFS=$as_save_IFS
23001   test -z "$as_dir" && as_dir=.
23002   for ac_exec_ext in '' $ac_executable_extensions; do
23003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23004     ac_cv_prog_acx_pthread_config="yes"
23005     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23006     break 2
23007   fi
23008 done
23009 done
23010 IFS=$as_save_IFS
23011
23012   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23013 fi
23014 fi
23015 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23016 if test -n "$acx_pthread_config"; then
23017   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23018 $as_echo "$acx_pthread_config" >&6; }
23019 else
23020   { $as_echo "$as_me:$LINENO: result: no" >&5
23021 $as_echo "no" >&6; }
23022 fi
23023
23024
23025                 if test x"$acx_pthread_config" = xno; then continue; fi
23026                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
23027                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23028                 ;;
23029
23030                 *)
23031                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23032 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23033                 tryPTHREAD_LIBS="-l$flag"
23034                 ;;
23035         esac
23036
23037         save_LIBS="$LIBS"
23038         save_CFLAGS="$CFLAGS"
23039         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
23040         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23041
23042         # Check for various functions.  We must include pthread.h,
23043         # since some functions may be macros.  (On the Sequent, we
23044         # need a special flag -Kthread to make this header compile.)
23045         # We check for pthread_join because it is in -lpthread on IRIX
23046         # while pthread_create is in libc.  We check for pthread_attr_init
23047         # due to DEC craziness with -lpthreads.  We check for
23048         # pthread_cleanup_push because it is one of the few pthread
23049         # functions on Solaris that doesn't have a non-functional libc stub.
23050         # We try pthread_create on general principles.
23051         cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h.  */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h.  */
23057 #include <pthread.h>
23058 int
23059 main ()
23060 {
23061 pthread_t th; pthread_join(th, 0);
23062                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
23063                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23064   ;
23065   return 0;
23066 }
23067 _ACEOF
23068 rm -f conftest.$ac_objext conftest$ac_exeext
23069 if { (ac_try="$ac_link"
23070 case "(($ac_try" in
23071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072   *) ac_try_echo=$ac_try;;
23073 esac
23074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23075 $as_echo "$ac_try_echo") >&5
23076   (eval "$ac_link") 2>conftest.er1
23077   ac_status=$?
23078   grep -v '^ *+' conftest.er1 >conftest.err
23079   rm -f conftest.er1
23080   cat conftest.err >&5
23081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082   (exit $ac_status); } && {
23083          test -z "$ac_c_werror_flag" ||
23084          test ! -s conftest.err
23085        } && test -s conftest$ac_exeext && {
23086          test "$cross_compiling" = yes ||
23087          $as_test_x conftest$ac_exeext
23088        }; then
23089   acx_pthread_ok=yes
23090 else
23091   $as_echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23093
23094         acx_pthread_ok=no
23095 fi
23096
23097 rm -rf conftest.dSYM
23098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23099       conftest$ac_exeext conftest.$ac_ext
23100
23101         if test "x$acx_pthread_ok" = xyes; then
23102             # Don't use options that are ignored by the compiler.
23103             # We find them by checking stderror.
23104             cat >conftest.$ac_ext <<_ACEOF
23105 int
23106 main (int argc, char **argv)
23107 {
23108   (void) argc;
23109   (void) argv;
23110   return 0;
23111 }
23112 _ACEOF
23113             rm -f conftest.$ac_objext conftest$ac_exeext
23114             # Check both linking and compiling, because they might tolerate different options.
23115             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23116                 # we continue with more flags because Linux needs -lpthread
23117                 # for libpq builds on PostgreSQL.  The test above only
23118                 # tests for building binaries, not shared libraries.
23119                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23120                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23121             else   acx_pthread_ok=no
23122             fi
23123         fi
23124
23125         LIBS="$save_LIBS"
23126         CFLAGS="$save_CFLAGS"
23127
23128         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23129 $as_echo "$acx_pthread_ok" >&6; }
23130 done
23131 fi
23132
23133 # Various other checks:
23134 if test "x$acx_pthread_ok" = xyes; then
23135         save_LIBS="$LIBS"
23136         LIBS="$PTHREAD_LIBS $LIBS"
23137         save_CFLAGS="$CFLAGS"
23138         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23139
23140         # Detect AIX lossage: threads are created detached by default
23141         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23142         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23143 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23144         cat >conftest.$ac_ext <<_ACEOF
23145 /* confdefs.h.  */
23146 _ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h.  */
23150 #include <pthread.h>
23151 int
23152 main ()
23153 {
23154 int attr=PTHREAD_CREATE_JOINABLE;
23155   ;
23156   return 0;
23157 }
23158 _ACEOF
23159 rm -f conftest.$ac_objext conftest$ac_exeext
23160 if { (ac_try="$ac_link"
23161 case "(($ac_try" in
23162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23163   *) ac_try_echo=$ac_try;;
23164 esac
23165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23166 $as_echo "$ac_try_echo") >&5
23167   (eval "$ac_link") 2>conftest.er1
23168   ac_status=$?
23169   grep -v '^ *+' conftest.er1 >conftest.err
23170   rm -f conftest.er1
23171   cat conftest.err >&5
23172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173   (exit $ac_status); } && {
23174          test -z "$ac_c_werror_flag" ||
23175          test ! -s conftest.err
23176        } && test -s conftest$ac_exeext && {
23177          test "$cross_compiling" = yes ||
23178          $as_test_x conftest$ac_exeext
23179        }; then
23180   ok=PTHREAD_CREATE_JOINABLE
23181 else
23182   $as_echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23184
23185         ok=unknown
23186 fi
23187
23188 rm -rf conftest.dSYM
23189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23190       conftest$ac_exeext conftest.$ac_ext
23191         if test x"$ok" = xunknown; then
23192                 cat >conftest.$ac_ext <<_ACEOF
23193 /* confdefs.h.  */
23194 _ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h.  */
23198 #include <pthread.h>
23199 int
23200 main ()
23201 {
23202 int attr=PTHREAD_CREATE_UNDETACHED;
23203   ;
23204   return 0;
23205 }
23206 _ACEOF
23207 rm -f conftest.$ac_objext conftest$ac_exeext
23208 if { (ac_try="$ac_link"
23209 case "(($ac_try" in
23210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211   *) ac_try_echo=$ac_try;;
23212 esac
23213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23214 $as_echo "$ac_try_echo") >&5
23215   (eval "$ac_link") 2>conftest.er1
23216   ac_status=$?
23217   grep -v '^ *+' conftest.er1 >conftest.err
23218   rm -f conftest.er1
23219   cat conftest.err >&5
23220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221   (exit $ac_status); } && {
23222          test -z "$ac_c_werror_flag" ||
23223          test ! -s conftest.err
23224        } && test -s conftest$ac_exeext && {
23225          test "$cross_compiling" = yes ||
23226          $as_test_x conftest$ac_exeext
23227        }; then
23228   ok=PTHREAD_CREATE_UNDETACHED
23229 else
23230   $as_echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23232
23233         ok=unknown
23234 fi
23235
23236 rm -rf conftest.dSYM
23237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23238       conftest$ac_exeext conftest.$ac_ext
23239         fi
23240         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23241
23242 cat >>confdefs.h <<\_ACEOF
23243 #define PTHREAD_CREATE_JOINABLE $ok
23244 _ACEOF
23245
23246         fi
23247         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23248 $as_echo "${ok}" >&6; }
23249         if test x"$ok" = xunknown; then
23250                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23251 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23252         fi
23253
23254         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23255 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23256         flag=no
23257 # We always add these in PostgreSQL
23258 #       case "${host_cpu}-${host_os}" in
23259 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23260 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23261 #       esac
23262         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23263 $as_echo "${flag}" >&6; }
23264         if test "x$flag" != xno; then
23265                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23266         fi
23267
23268         LIBS="$save_LIBS"
23269         CFLAGS="$save_CFLAGS"
23270
23271 # Supporting cc_r would require a special CC in all places that
23272 # use libpq, and that is ugly, so we don't do it.  Users can still
23273 # define their compiler as cc_r to do thread builds of everything.
23274         # More AIX lossage: must compile with cc_r
23275         # Extract the first word of "cc_r", so it can be a program name with args.
23276 set dummy cc_r; ac_word=$2
23277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23278 $as_echo_n "checking for $ac_word... " >&6; }
23279 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23280   $as_echo_n "(cached) " >&6
23281 else
23282   if test -n "$PTHREAD_CC"; then
23283   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23284 else
23285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23286 for as_dir in $PATH
23287 do
23288   IFS=$as_save_IFS
23289   test -z "$as_dir" && as_dir=.
23290   for ac_exec_ext in '' $ac_executable_extensions; do
23291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23292     ac_cv_prog_PTHREAD_CC="cc_r"
23293     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23294     break 2
23295   fi
23296 done
23297 done
23298 IFS=$as_save_IFS
23299
23300   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23301 fi
23302 fi
23303 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23304 if test -n "$PTHREAD_CC"; then
23305   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23306 $as_echo "$PTHREAD_CC" >&6; }
23307 else
23308   { $as_echo "$as_me:$LINENO: result: no" >&5
23309 $as_echo "no" >&6; }
23310 fi
23311
23312
23313 else
23314         PTHREAD_CC="$CC"
23315 fi
23316
23317
23318
23319
23320
23321 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23322 if test x"$acx_pthread_ok" = xyes; then
23323
23324 cat >>confdefs.h <<\_ACEOF
23325 #define HAVE_PTHREAD 1
23326 _ACEOF
23327
23328         :
23329 else
23330         acx_pthread_ok=no
23331
23332 fi
23333 ac_ext=c
23334 ac_cpp='$CPP $CPPFLAGS'
23335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23338
23339         # set thread flags
23340
23341 # Some platforms use these, so just define them.  They can't hurt if they
23342 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23343 # enables 5-arg getpwuid_r, among other things.
23344 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23345
23346
23347 # At this point, we don't want to muck with the compiler name for threading.
23348 # Let's see who fails, perhaps AIX.  2004-04-23
23349 if test "$PTHREAD_CC" != "$CC"; then
23350 { { $as_echo "$as_me:$LINENO: error:
23351 PostgreSQL does not support platforms that require a special compiler
23352 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23353 $as_echo "$as_me: error:
23354 PostgreSQL does not support platforms that require a special compiler
23355 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23356    { (exit 1); exit 1; }; }
23357 fi
23358
23359 # Check for *_r functions
23360 _CFLAGS="$CFLAGS"
23361 _LIBS="$LIBS"
23362 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23363 LIBS="$LIBS $PTHREAD_LIBS"
23364
23365 if test "$PORTNAME" != "win32"; then
23366 if test "${ac_cv_header_pthread_h+set}" = set; then
23367   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23368 $as_echo_n "checking for pthread.h... " >&6; }
23369 if test "${ac_cv_header_pthread_h+set}" = set; then
23370   $as_echo_n "(cached) " >&6
23371 fi
23372 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23373 $as_echo "$ac_cv_header_pthread_h" >&6; }
23374 else
23375   # Is the header compilable?
23376 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23377 $as_echo_n "checking pthread.h usability... " >&6; }
23378 cat >conftest.$ac_ext <<_ACEOF
23379 /* confdefs.h.  */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h.  */
23384 $ac_includes_default
23385 #include <pthread.h>
23386 _ACEOF
23387 rm -f conftest.$ac_objext
23388 if { (ac_try="$ac_compile"
23389 case "(($ac_try" in
23390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391   *) ac_try_echo=$ac_try;;
23392 esac
23393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23394 $as_echo "$ac_try_echo") >&5
23395   (eval "$ac_compile") 2>conftest.er1
23396   ac_status=$?
23397   grep -v '^ *+' conftest.er1 >conftest.err
23398   rm -f conftest.er1
23399   cat conftest.err >&5
23400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); } && {
23402          test -z "$ac_c_werror_flag" ||
23403          test ! -s conftest.err
23404        } && test -s conftest.$ac_objext; then
23405   ac_header_compiler=yes
23406 else
23407   $as_echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23409
23410         ac_header_compiler=no
23411 fi
23412
23413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23415 $as_echo "$ac_header_compiler" >&6; }
23416
23417 # Is the header present?
23418 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23419 $as_echo_n "checking pthread.h presence... " >&6; }
23420 cat >conftest.$ac_ext <<_ACEOF
23421 /* confdefs.h.  */
23422 _ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h.  */
23426 #include <pthread.h>
23427 _ACEOF
23428 if { (ac_try="$ac_cpp conftest.$ac_ext"
23429 case "(($ac_try" in
23430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431   *) ac_try_echo=$ac_try;;
23432 esac
23433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23434 $as_echo "$ac_try_echo") >&5
23435   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23436   ac_status=$?
23437   grep -v '^ *+' conftest.er1 >conftest.err
23438   rm -f conftest.er1
23439   cat conftest.err >&5
23440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441   (exit $ac_status); } >/dev/null && {
23442          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23443          test ! -s conftest.err
23444        }; then
23445   ac_header_preproc=yes
23446 else
23447   $as_echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23449
23450   ac_header_preproc=no
23451 fi
23452
23453 rm -f conftest.err conftest.$ac_ext
23454 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23455 $as_echo "$ac_header_preproc" >&6; }
23456
23457 # So?  What about this header?
23458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23459   yes:no: )
23460     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23461 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23462     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23463 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23464     ac_header_preproc=yes
23465     ;;
23466   no:yes:* )
23467     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23468 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23469     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23470 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23471     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23472 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23473     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23474 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23475     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23476 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23477     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23478 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23479     ( cat <<\_ASBOX
23480 ## ---------------------------------------- ##
23481 ## Report this to pgsql-bugs@postgresql.org ##
23482 ## ---------------------------------------- ##
23483 _ASBOX
23484      ) | sed "s/^/$as_me: WARNING:     /" >&2
23485     ;;
23486 esac
23487 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23488 $as_echo_n "checking for pthread.h... " >&6; }
23489 if test "${ac_cv_header_pthread_h+set}" = set; then
23490   $as_echo_n "(cached) " >&6
23491 else
23492   ac_cv_header_pthread_h=$ac_header_preproc
23493 fi
23494 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23495 $as_echo "$ac_cv_header_pthread_h" >&6; }
23496
23497 fi
23498 if test "x$ac_cv_header_pthread_h" = x""yes; then
23499   :
23500 else
23501   { { $as_echo "$as_me:$LINENO: error:
23502 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
23503 $as_echo "$as_me: error:
23504 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
23505    { (exit 1); exit 1; }; }
23506 fi
23507
23508
23509 fi
23510
23511
23512
23513
23514 for ac_func in strerror_r getpwuid_r gethostbyname_r
23515 do
23516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23518 $as_echo_n "checking for $ac_func... " >&6; }
23519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23520   $as_echo_n "(cached) " >&6
23521 else
23522   cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h.  */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h.  */
23528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23530 #define $ac_func innocuous_$ac_func
23531
23532 /* System header to define __stub macros and hopefully few prototypes,
23533     which can conflict with char $ac_func (); below.
23534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23535     <limits.h> exists even on freestanding compilers.  */
23536
23537 #ifdef __STDC__
23538 # include <limits.h>
23539 #else
23540 # include <assert.h>
23541 #endif
23542
23543 #undef $ac_func
23544
23545 /* Override any GCC internal prototype to avoid an error.
23546    Use char because int might match the return type of a GCC
23547    builtin and then its argument prototype would still apply.  */
23548 #ifdef __cplusplus
23549 extern "C"
23550 #endif
23551 char $ac_func ();
23552 /* The GNU C library defines this for functions which it implements
23553     to always fail with ENOSYS.  Some functions are actually named
23554     something starting with __ and the normal name is an alias.  */
23555 #if defined __stub_$ac_func || defined __stub___$ac_func
23556 choke me
23557 #endif
23558
23559 int
23560 main ()
23561 {
23562 return $ac_func ();
23563   ;
23564   return 0;
23565 }
23566 _ACEOF
23567 rm -f conftest.$ac_objext conftest$ac_exeext
23568 if { (ac_try="$ac_link"
23569 case "(($ac_try" in
23570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571   *) ac_try_echo=$ac_try;;
23572 esac
23573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23574 $as_echo "$ac_try_echo") >&5
23575   (eval "$ac_link") 2>conftest.er1
23576   ac_status=$?
23577   grep -v '^ *+' conftest.er1 >conftest.err
23578   rm -f conftest.er1
23579   cat conftest.err >&5
23580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581   (exit $ac_status); } && {
23582          test -z "$ac_c_werror_flag" ||
23583          test ! -s conftest.err
23584        } && test -s conftest$ac_exeext && {
23585          test "$cross_compiling" = yes ||
23586          $as_test_x conftest$ac_exeext
23587        }; then
23588   eval "$as_ac_var=yes"
23589 else
23590   $as_echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23592
23593         eval "$as_ac_var=no"
23594 fi
23595
23596 rm -rf conftest.dSYM
23597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23598       conftest$ac_exeext conftest.$ac_ext
23599 fi
23600 ac_res=`eval 'as_val=${'$as_ac_var'}
23601                  $as_echo "$as_val"'`
23602                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23603 $as_echo "$ac_res" >&6; }
23604 as_val=`eval 'as_val=${'$as_ac_var'}
23605                  $as_echo "$as_val"'`
23606    if test "x$as_val" = x""yes; then
23607   cat >>confdefs.h <<_ACEOF
23608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23609 _ACEOF
23610
23611 fi
23612 done
23613
23614
23615 # Do test here with the proper thread flags
23616 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23617 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23618 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23619   $as_echo_n "(cached) " >&6
23620 else
23621   cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h.  */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h.  */
23627 #include <sys/types.h>
23628 #include <pwd.h>
23629 int
23630 main ()
23631 {
23632 uid_t uid;
23633 struct passwd *space;
23634 char *buf;
23635 size_t bufsize;
23636 struct passwd **result;
23637 getpwuid_r(uid, space, buf, bufsize, result);
23638   ;
23639   return 0;
23640 }
23641 _ACEOF
23642 rm -f conftest.$ac_objext
23643 if { (ac_try="$ac_compile"
23644 case "(($ac_try" in
23645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646   *) ac_try_echo=$ac_try;;
23647 esac
23648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23649 $as_echo "$ac_try_echo") >&5
23650   (eval "$ac_compile") 2>conftest.er1
23651   ac_status=$?
23652   grep -v '^ *+' conftest.er1 >conftest.err
23653   rm -f conftest.er1
23654   cat conftest.err >&5
23655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); } && {
23657          test -z "$ac_c_werror_flag" ||
23658          test ! -s conftest.err
23659        } && test -s conftest.$ac_objext; then
23660   pgac_cv_func_getpwuid_r_5arg=yes
23661 else
23662   $as_echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23664
23665         pgac_cv_func_getpwuid_r_5arg=no
23666 fi
23667
23668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669 fi
23670 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23671 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23672 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23673
23674 cat >>confdefs.h <<\_ACEOF
23675 #define GETPWUID_R_5ARG /**/
23676 _ACEOF
23677
23678 fi
23679
23680 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23681 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23682 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23683   $as_echo_n "(cached) " >&6
23684 else
23685   cat >conftest.$ac_ext <<_ACEOF
23686 /* confdefs.h.  */
23687 _ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h.  */
23691 #include <string.h>
23692 int
23693 main ()
23694 {
23695 #ifndef _AIX
23696 int strerror_r(int, char *, size_t);
23697 #else
23698 /* Older AIX has 'int' for the third argument so we don't test the args. */
23699 int strerror_r();
23700 #endif
23701   ;
23702   return 0;
23703 }
23704 _ACEOF
23705 rm -f conftest.$ac_objext
23706 if { (ac_try="$ac_compile"
23707 case "(($ac_try" in
23708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709   *) ac_try_echo=$ac_try;;
23710 esac
23711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23712 $as_echo "$ac_try_echo") >&5
23713   (eval "$ac_compile") 2>conftest.er1
23714   ac_status=$?
23715   grep -v '^ *+' conftest.er1 >conftest.err
23716   rm -f conftest.er1
23717   cat conftest.err >&5
23718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719   (exit $ac_status); } && {
23720          test -z "$ac_c_werror_flag" ||
23721          test ! -s conftest.err
23722        } && test -s conftest.$ac_objext; then
23723   pgac_cv_func_strerror_r_int=yes
23724 else
23725   $as_echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728         pgac_cv_func_strerror_r_int=no
23729 fi
23730
23731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23732 fi
23733 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23734 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23735 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23736
23737 cat >>confdefs.h <<\_ACEOF
23738 #define STRERROR_R_INT /**/
23739 _ACEOF
23740
23741 fi
23742
23743
23744 CFLAGS="$_CFLAGS"
23745 LIBS="$_LIBS"
23746
23747 else
23748 # do not use values from template file
23749 PTHREAD_CFLAGS=
23750 PTHREAD_LIBS=
23751 fi
23752
23753
23754
23755
23756
23757 # We can test for libldap_r only after we know PTHREAD_LIBS
23758 if test "$with_ldap" = yes ; then
23759   _LIBS="$LIBS"
23760   if test "$PORTNAME" != "win32"; then
23761
23762 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23763 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23764 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23765   $as_echo_n "(cached) " >&6
23766 else
23767   ac_check_lib_save_LIBS=$LIBS
23768 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23769 cat >conftest.$ac_ext <<_ACEOF
23770 /* confdefs.h.  */
23771 _ACEOF
23772 cat confdefs.h >>conftest.$ac_ext
23773 cat >>conftest.$ac_ext <<_ACEOF
23774 /* end confdefs.h.  */
23775
23776 /* Override any GCC internal prototype to avoid an error.
23777    Use char because int might match the return type of a GCC
23778    builtin and then its argument prototype would still apply.  */
23779 #ifdef __cplusplus
23780 extern "C"
23781 #endif
23782 char ldap_bind ();
23783 int
23784 main ()
23785 {
23786 return ldap_bind ();
23787   ;
23788   return 0;
23789 }
23790 _ACEOF
23791 rm -f conftest.$ac_objext conftest$ac_exeext
23792 if { (ac_try="$ac_link"
23793 case "(($ac_try" in
23794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795   *) ac_try_echo=$ac_try;;
23796 esac
23797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23798 $as_echo "$ac_try_echo") >&5
23799   (eval "$ac_link") 2>conftest.er1
23800   ac_status=$?
23801   grep -v '^ *+' conftest.er1 >conftest.err
23802   rm -f conftest.er1
23803   cat conftest.err >&5
23804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805   (exit $ac_status); } && {
23806          test -z "$ac_c_werror_flag" ||
23807          test ! -s conftest.err
23808        } && test -s conftest$ac_exeext && {
23809          test "$cross_compiling" = yes ||
23810          $as_test_x conftest$ac_exeext
23811        }; then
23812   ac_cv_lib_ldap_ldap_bind=yes
23813 else
23814   $as_echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23816
23817         ac_cv_lib_ldap_ldap_bind=no
23818 fi
23819
23820 rm -rf conftest.dSYM
23821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23822       conftest$ac_exeext conftest.$ac_ext
23823 LIBS=$ac_check_lib_save_LIBS
23824 fi
23825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23826 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23827 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23828   cat >>confdefs.h <<_ACEOF
23829 #define HAVE_LIBLDAP 1
23830 _ACEOF
23831
23832   LIBS="-lldap $LIBS"
23833
23834 else
23835   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23836 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23837    { (exit 1); exit 1; }; }
23838 fi
23839
23840     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23841     if test "$enable_thread_safety" = yes; then
23842       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23843
23844 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23845 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23846 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23847   $as_echo_n "(cached) " >&6
23848 else
23849   ac_check_lib_save_LIBS=$LIBS
23850 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23851 cat >conftest.$ac_ext <<_ACEOF
23852 /* confdefs.h.  */
23853 _ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h.  */
23857
23858 /* Override any GCC internal prototype to avoid an error.
23859    Use char because int might match the return type of a GCC
23860    builtin and then its argument prototype would still apply.  */
23861 #ifdef __cplusplus
23862 extern "C"
23863 #endif
23864 char ldap_simple_bind ();
23865 int
23866 main ()
23867 {
23868 return ldap_simple_bind ();
23869   ;
23870   return 0;
23871 }
23872 _ACEOF
23873 rm -f conftest.$ac_objext conftest$ac_exeext
23874 if { (ac_try="$ac_link"
23875 case "(($ac_try" in
23876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23877   *) ac_try_echo=$ac_try;;
23878 esac
23879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23880 $as_echo "$ac_try_echo") >&5
23881   (eval "$ac_link") 2>conftest.er1
23882   ac_status=$?
23883   grep -v '^ *+' conftest.er1 >conftest.err
23884   rm -f conftest.er1
23885   cat conftest.err >&5
23886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887   (exit $ac_status); } && {
23888          test -z "$ac_c_werror_flag" ||
23889          test ! -s conftest.err
23890        } && test -s conftest$ac_exeext && {
23891          test "$cross_compiling" = yes ||
23892          $as_test_x conftest$ac_exeext
23893        }; then
23894   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23895 else
23896   $as_echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23898
23899         ac_cv_lib_ldap_r_ldap_simple_bind=no
23900 fi
23901
23902 rm -rf conftest.dSYM
23903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23904       conftest$ac_exeext conftest.$ac_ext
23905 LIBS=$ac_check_lib_save_LIBS
23906 fi
23907 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23908 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23909 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23910   cat >>confdefs.h <<_ACEOF
23911 #define HAVE_LIBLDAP_R 1
23912 _ACEOF
23913
23914   LIBS="-lldap_r $LIBS"
23915
23916 else
23917   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23918 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23919    { (exit 1); exit 1; }; }
23920 fi
23921
23922       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23923     else
23924       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23925     fi
23926   else
23927
23928 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23929 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23930 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23931   $as_echo_n "(cached) " >&6
23932 else
23933   ac_check_lib_save_LIBS=$LIBS
23934 LIBS="-lwldap32  $LIBS"
23935 cat >conftest.$ac_ext <<_ACEOF
23936 /* confdefs.h.  */
23937 _ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h.  */
23941
23942 /* Override any GCC internal prototype to avoid an error.
23943    Use char because int might match the return type of a GCC
23944    builtin and then its argument prototype would still apply.  */
23945 #ifdef __cplusplus
23946 extern "C"
23947 #endif
23948 char ldap_bind ();
23949 int
23950 main ()
23951 {
23952 return ldap_bind ();
23953   ;
23954   return 0;
23955 }
23956 _ACEOF
23957 rm -f conftest.$ac_objext conftest$ac_exeext
23958 if { (ac_try="$ac_link"
23959 case "(($ac_try" in
23960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23961   *) ac_try_echo=$ac_try;;
23962 esac
23963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23964 $as_echo "$ac_try_echo") >&5
23965   (eval "$ac_link") 2>conftest.er1
23966   ac_status=$?
23967   grep -v '^ *+' conftest.er1 >conftest.err
23968   rm -f conftest.er1
23969   cat conftest.err >&5
23970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971   (exit $ac_status); } && {
23972          test -z "$ac_c_werror_flag" ||
23973          test ! -s conftest.err
23974        } && test -s conftest$ac_exeext && {
23975          test "$cross_compiling" = yes ||
23976          $as_test_x conftest$ac_exeext
23977        }; then
23978   ac_cv_lib_wldap32_ldap_bind=yes
23979 else
23980   $as_echo "$as_me: failed program was:" >&5
23981 sed 's/^/| /' conftest.$ac_ext >&5
23982
23983         ac_cv_lib_wldap32_ldap_bind=no
23984 fi
23985
23986 rm -rf conftest.dSYM
23987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23988       conftest$ac_exeext conftest.$ac_ext
23989 LIBS=$ac_check_lib_save_LIBS
23990 fi
23991 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23992 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23993 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23994   cat >>confdefs.h <<_ACEOF
23995 #define HAVE_LIBWLDAP32 1
23996 _ACEOF
23997
23998   LIBS="-lwldap32 $LIBS"
23999
24000 else
24001   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
24002 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
24003    { (exit 1); exit 1; }; }
24004 fi
24005
24006     LDAP_LIBS_FE="-lwldap32"
24007     LDAP_LIBS_BE="-lwldap32"
24008   fi
24009   LIBS="$_LIBS"
24010 fi
24011
24012
24013
24014
24015 # This test makes sure that run tests work at all.  Sometimes a shared
24016 # library is found by the linker, but the runtime linker can't find it.
24017 # This check should come after all modifications of compiler or linker
24018 # variables, and before any other run tests.
24019 { $as_echo "$as_me:$LINENO: checking test program" >&5
24020 $as_echo_n "checking test program... " >&6; }
24021 if test "$cross_compiling" = yes; then
24022   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
24023 $as_echo "cross-compiling" >&6; }
24024 else
24025   cat >conftest.$ac_ext <<_ACEOF
24026 /* confdefs.h.  */
24027 _ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h.  */
24031 int main() { return 0; }
24032 _ACEOF
24033 rm -f conftest$ac_exeext
24034 if { (ac_try="$ac_link"
24035 case "(($ac_try" in
24036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037   *) ac_try_echo=$ac_try;;
24038 esac
24039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24040 $as_echo "$ac_try_echo") >&5
24041   (eval "$ac_link") 2>&5
24042   ac_status=$?
24043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24045   { (case "(($ac_try" in
24046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24047   *) ac_try_echo=$ac_try;;
24048 esac
24049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24050 $as_echo "$ac_try_echo") >&5
24051   (eval "$ac_try") 2>&5
24052   ac_status=$?
24053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); }; }; then
24055   { $as_echo "$as_me:$LINENO: result: ok" >&5
24056 $as_echo "ok" >&6; }
24057 else
24058   $as_echo "$as_me: program exited with status $ac_status" >&5
24059 $as_echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24061
24062 ( exit $ac_status )
24063 { $as_echo "$as_me:$LINENO: result: failed" >&5
24064 $as_echo "failed" >&6; }
24065 { { $as_echo "$as_me:$LINENO: error:
24066 Could not execute a simple test program.  This may be a problem
24067 related to locating shared libraries.  Check the file 'config.log'
24068 for the exact reason." >&5
24069 $as_echo "$as_me: error:
24070 Could not execute a simple test program.  This may be a problem
24071 related to locating shared libraries.  Check the file 'config.log'
24072 for the exact reason." >&2;}
24073    { (exit 1); exit 1; }; }
24074 fi
24075 rm -rf conftest.dSYM
24076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24077 fi
24078
24079
24080
24081 # --------------------
24082 # Run tests below here
24083 # --------------------
24084
24085 # Force use of our snprintf if system's doesn't do arg control
24086 # See comment above at snprintf test for details.
24087 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24088   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24089 $as_echo_n "checking whether printf supports argument control... " >&6; }
24090 if test "${pgac_cv_printf_arg_control+set}" = set; then
24091   $as_echo_n "(cached) " >&6
24092 else
24093   if test "$cross_compiling" = yes; then
24094   pgac_cv_printf_arg_control=cross
24095 else
24096   cat >conftest.$ac_ext <<_ACEOF
24097 /* confdefs.h.  */
24098 _ACEOF
24099 cat confdefs.h >>conftest.$ac_ext
24100 cat >>conftest.$ac_ext <<_ACEOF
24101 /* end confdefs.h.  */
24102 #include <stdio.h>
24103 #include <string.h>
24104
24105 int main()
24106 {
24107   char buf[100];
24108
24109   /* can it swap arguments? */
24110   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24111   if (strcmp(buf, "4 3") != 0)
24112     return 1;
24113   return 0;
24114 }
24115 _ACEOF
24116 rm -f conftest$ac_exeext
24117 if { (ac_try="$ac_link"
24118 case "(($ac_try" in
24119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24120   *) ac_try_echo=$ac_try;;
24121 esac
24122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24123 $as_echo "$ac_try_echo") >&5
24124   (eval "$ac_link") 2>&5
24125   ac_status=$?
24126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24128   { (case "(($ac_try" in
24129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130   *) ac_try_echo=$ac_try;;
24131 esac
24132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24133 $as_echo "$ac_try_echo") >&5
24134   (eval "$ac_try") 2>&5
24135   ac_status=$?
24136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137   (exit $ac_status); }; }; then
24138   pgac_cv_printf_arg_control=yes
24139 else
24140   $as_echo "$as_me: program exited with status $ac_status" >&5
24141 $as_echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24143
24144 ( exit $ac_status )
24145 pgac_cv_printf_arg_control=no
24146 fi
24147 rm -rf conftest.dSYM
24148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24149 fi
24150
24151
24152
24153 fi
24154 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24155 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24156
24157   if test $pgac_cv_printf_arg_control != yes ; then
24158     pgac_need_repl_snprintf=yes
24159   fi
24160 fi
24161
24162
24163
24164
24165 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24166 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24167 if test "${pgac_cv_type_long_int_64+set}" = set; then
24168   $as_echo_n "(cached) " >&6
24169 else
24170   if test "$cross_compiling" = yes; then
24171   # If cross-compiling, check the size reported by the compiler and
24172 # trust that the arithmetic works.
24173 cat >conftest.$ac_ext <<_ACEOF
24174 /* confdefs.h.  */
24175 _ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h.  */
24179
24180 int
24181 main ()
24182 {
24183 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24184 test_array [0] = 0
24185
24186   ;
24187   return 0;
24188 }
24189 _ACEOF
24190 rm -f conftest.$ac_objext
24191 if { (ac_try="$ac_compile"
24192 case "(($ac_try" in
24193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194   *) ac_try_echo=$ac_try;;
24195 esac
24196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24197 $as_echo "$ac_try_echo") >&5
24198   (eval "$ac_compile") 2>conftest.er1
24199   ac_status=$?
24200   grep -v '^ *+' conftest.er1 >conftest.err
24201   rm -f conftest.er1
24202   cat conftest.err >&5
24203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204   (exit $ac_status); } && {
24205          test -z "$ac_c_werror_flag" ||
24206          test ! -s conftest.err
24207        } && test -s conftest.$ac_objext; then
24208   pgac_cv_type_long_int_64=yes
24209 else
24210   $as_echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24212
24213         pgac_cv_type_long_int_64=no
24214 fi
24215
24216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24217 else
24218   cat >conftest.$ac_ext <<_ACEOF
24219 /* confdefs.h.  */
24220 _ACEOF
24221 cat confdefs.h >>conftest.$ac_ext
24222 cat >>conftest.$ac_ext <<_ACEOF
24223 /* end confdefs.h.  */
24224 typedef long int ac_int64;
24225
24226 /*
24227  * These are globals to discourage the compiler from folding all the
24228  * arithmetic tests down to compile-time constants.
24229  */
24230 ac_int64 a = 20000001;
24231 ac_int64 b = 40000005;
24232
24233 int does_int64_work()
24234 {
24235   ac_int64 c,d;
24236
24237   if (sizeof(ac_int64) != 8)
24238     return 0;                   /* definitely not the right size */
24239
24240   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24241   c = a * b;
24242   d = (c + b) / b;
24243   if (d != a+1)
24244     return 0;
24245   return 1;
24246 }
24247 main() {
24248   exit(! does_int64_work());
24249 }
24250 _ACEOF
24251 rm -f conftest$ac_exeext
24252 if { (ac_try="$ac_link"
24253 case "(($ac_try" in
24254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24255   *) ac_try_echo=$ac_try;;
24256 esac
24257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24258 $as_echo "$ac_try_echo") >&5
24259   (eval "$ac_link") 2>&5
24260   ac_status=$?
24261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24263   { (case "(($ac_try" in
24264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265   *) ac_try_echo=$ac_try;;
24266 esac
24267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24268 $as_echo "$ac_try_echo") >&5
24269   (eval "$ac_try") 2>&5
24270   ac_status=$?
24271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272   (exit $ac_status); }; }; then
24273   pgac_cv_type_long_int_64=yes
24274 else
24275   $as_echo "$as_me: program exited with status $ac_status" >&5
24276 $as_echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24278
24279 ( exit $ac_status )
24280 pgac_cv_type_long_int_64=no
24281 fi
24282 rm -rf conftest.dSYM
24283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24284 fi
24285
24286
24287 fi
24288 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24289 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24290
24291 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24292 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24293
24294 cat >>confdefs.h <<\_ACEOF
24295 #define HAVE_LONG_INT_64 1
24296 _ACEOF
24297
24298 fi
24299
24300
24301 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24302   pg_int64_type="long int"
24303 else
24304   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24305 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24306 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24307   $as_echo_n "(cached) " >&6
24308 else
24309   if test "$cross_compiling" = yes; then
24310   # If cross-compiling, check the size reported by the compiler and
24311 # trust that the arithmetic works.
24312 cat >conftest.$ac_ext <<_ACEOF
24313 /* confdefs.h.  */
24314 _ACEOF
24315 cat confdefs.h >>conftest.$ac_ext
24316 cat >>conftest.$ac_ext <<_ACEOF
24317 /* end confdefs.h.  */
24318
24319 int
24320 main ()
24321 {
24322 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24323 test_array [0] = 0
24324
24325   ;
24326   return 0;
24327 }
24328 _ACEOF
24329 rm -f conftest.$ac_objext
24330 if { (ac_try="$ac_compile"
24331 case "(($ac_try" in
24332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333   *) ac_try_echo=$ac_try;;
24334 esac
24335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24336 $as_echo "$ac_try_echo") >&5
24337   (eval "$ac_compile") 2>conftest.er1
24338   ac_status=$?
24339   grep -v '^ *+' conftest.er1 >conftest.err
24340   rm -f conftest.er1
24341   cat conftest.err >&5
24342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343   (exit $ac_status); } && {
24344          test -z "$ac_c_werror_flag" ||
24345          test ! -s conftest.err
24346        } && test -s conftest.$ac_objext; then
24347   pgac_cv_type_long_long_int_64=yes
24348 else
24349   $as_echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24351
24352         pgac_cv_type_long_long_int_64=no
24353 fi
24354
24355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24356 else
24357   cat >conftest.$ac_ext <<_ACEOF
24358 /* confdefs.h.  */
24359 _ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h.  */
24363 typedef long long int ac_int64;
24364
24365 /*
24366  * These are globals to discourage the compiler from folding all the
24367  * arithmetic tests down to compile-time constants.
24368  */
24369 ac_int64 a = 20000001;
24370 ac_int64 b = 40000005;
24371
24372 int does_int64_work()
24373 {
24374   ac_int64 c,d;
24375
24376   if (sizeof(ac_int64) != 8)
24377     return 0;                   /* definitely not the right size */
24378
24379   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24380   c = a * b;
24381   d = (c + b) / b;
24382   if (d != a+1)
24383     return 0;
24384   return 1;
24385 }
24386 main() {
24387   exit(! does_int64_work());
24388 }
24389 _ACEOF
24390 rm -f conftest$ac_exeext
24391 if { (ac_try="$ac_link"
24392 case "(($ac_try" in
24393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394   *) ac_try_echo=$ac_try;;
24395 esac
24396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24397 $as_echo "$ac_try_echo") >&5
24398   (eval "$ac_link") 2>&5
24399   ac_status=$?
24400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24402   { (case "(($ac_try" in
24403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404   *) ac_try_echo=$ac_try;;
24405 esac
24406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24407 $as_echo "$ac_try_echo") >&5
24408   (eval "$ac_try") 2>&5
24409   ac_status=$?
24410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411   (exit $ac_status); }; }; then
24412   pgac_cv_type_long_long_int_64=yes
24413 else
24414   $as_echo "$as_me: program exited with status $ac_status" >&5
24415 $as_echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24417
24418 ( exit $ac_status )
24419 pgac_cv_type_long_long_int_64=no
24420 fi
24421 rm -rf conftest.dSYM
24422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24423 fi
24424
24425
24426 fi
24427 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24428 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24429
24430 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24431 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24432
24433 cat >>confdefs.h <<\_ACEOF
24434 #define HAVE_LONG_LONG_INT_64 1
24435 _ACEOF
24436
24437 fi
24438
24439   if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24440     pg_int64_type="long long int"
24441   else
24442     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24443 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24444    { (exit 1); exit 1; }; }
24445   fi
24446 fi
24447
24448
24449 cat >>confdefs.h <<_ACEOF
24450 #define PG_INT64_TYPE $pg_int64_type
24451 _ACEOF
24452
24453
24454
24455 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24456   cat >conftest.$ac_ext <<_ACEOF
24457 /* confdefs.h.  */
24458 _ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h.  */
24462
24463 #define INT64CONST(x)  x##LL
24464 long long int foo = INT64CONST(0x1234567890123456);
24465
24466 int
24467 main ()
24468 {
24469
24470   ;
24471   return 0;
24472 }
24473 _ACEOF
24474 rm -f conftest.$ac_objext
24475 if { (ac_try="$ac_compile"
24476 case "(($ac_try" in
24477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24478   *) ac_try_echo=$ac_try;;
24479 esac
24480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24481 $as_echo "$ac_try_echo") >&5
24482   (eval "$ac_compile") 2>conftest.er1
24483   ac_status=$?
24484   grep -v '^ *+' conftest.er1 >conftest.err
24485   rm -f conftest.er1
24486   cat conftest.err >&5
24487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); } && {
24489          test -z "$ac_c_werror_flag" ||
24490          test ! -s conftest.err
24491        } && test -s conftest.$ac_objext; then
24492
24493 cat >>confdefs.h <<\_ACEOF
24494 #define HAVE_LL_CONSTANTS 1
24495 _ACEOF
24496
24497 else
24498   $as_echo "$as_me: failed program was:" >&5
24499 sed 's/^/| /' conftest.$ac_ext >&5
24500
24501
24502 fi
24503
24504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24505 fi
24506
24507
24508 # If we found "long int" is 64 bits, assume snprintf handles it.  If
24509 # we found we need to use "long long int", better check.  We cope with
24510 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
24511 # work, fall back to our own snprintf emulation (which we know uses %lld).
24512
24513 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24514   if test $pgac_need_repl_snprintf = no; then
24515     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24516 $as_echo_n "checking snprintf format for long long int... " >&6; }
24517 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24518   $as_echo_n "(cached) " >&6
24519 else
24520   for pgac_format in '%lld' '%qd' '%I64d'; do
24521 if test "$cross_compiling" = yes; then
24522   pgac_cv_snprintf_long_long_int_format=cross; break
24523 else
24524   cat >conftest.$ac_ext <<_ACEOF
24525 /* confdefs.h.  */
24526 _ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h.  */
24530 #include <stdio.h>
24531 typedef long long int ac_int64;
24532 #define INT64_FORMAT "$pgac_format"
24533
24534 ac_int64 a = 20000001;
24535 ac_int64 b = 40000005;
24536
24537 int does_int64_snprintf_work()
24538 {
24539   ac_int64 c;
24540   char buf[100];
24541
24542   if (sizeof(ac_int64) != 8)
24543     return 0;                   /* doesn't look like the right size */
24544
24545   c = a * b;
24546   snprintf(buf, 100, INT64_FORMAT, c);
24547   if (strcmp(buf, "800000140000005") != 0)
24548     return 0;                   /* either multiply or snprintf is busted */
24549   return 1;
24550 }
24551 main() {
24552   exit(! does_int64_snprintf_work());
24553 }
24554 _ACEOF
24555 rm -f conftest$ac_exeext
24556 if { (ac_try="$ac_link"
24557 case "(($ac_try" in
24558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559   *) ac_try_echo=$ac_try;;
24560 esac
24561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24562 $as_echo "$ac_try_echo") >&5
24563   (eval "$ac_link") 2>&5
24564   ac_status=$?
24565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24567   { (case "(($ac_try" in
24568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569   *) ac_try_echo=$ac_try;;
24570 esac
24571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24572 $as_echo "$ac_try_echo") >&5
24573   (eval "$ac_try") 2>&5
24574   ac_status=$?
24575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); }; }; then
24577   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24578 else
24579   $as_echo "$as_me: program exited with status $ac_status" >&5
24580 $as_echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24582
24583 fi
24584 rm -rf conftest.dSYM
24585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24586 fi
24587
24588
24589 done
24590 fi
24591
24592 LONG_LONG_INT_FORMAT=''
24593
24594 case $pgac_cv_snprintf_long_long_int_format in
24595   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24596 $as_echo "cannot test (not on host machine)" >&6; };;
24597   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24598 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24599          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24600   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
24601 $as_echo "none" >&6; };;
24602 esac
24603     if test "$LONG_LONG_INT_FORMAT" = ""; then
24604       # Force usage of our own snprintf, since system snprintf is broken
24605       pgac_need_repl_snprintf=yes
24606       LONG_LONG_INT_FORMAT='%lld'
24607     fi
24608   else
24609     # Here if we previously decided we needed to use our own snprintf
24610     LONG_LONG_INT_FORMAT='%lld'
24611   fi
24612   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24613   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24614   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24615 else
24616   # Here if we are not using 'long long int' at all
24617   INT64_FORMAT='"%ld"'
24618   UINT64_FORMAT='"%lu"'
24619 fi
24620
24621
24622 cat >>confdefs.h <<_ACEOF
24623 #define INT64_FORMAT $INT64_FORMAT
24624 _ACEOF
24625
24626
24627
24628 cat >>confdefs.h <<_ACEOF
24629 #define UINT64_FORMAT $UINT64_FORMAT
24630 _ACEOF
24631
24632
24633 # Now we have checked all the reasons to replace snprintf
24634 if test $pgac_need_repl_snprintf = yes; then
24635
24636 cat >>confdefs.h <<\_ACEOF
24637 #define USE_REPL_SNPRINTF 1
24638 _ACEOF
24639
24640   case " $LIBOBJS " in
24641   *" snprintf.$ac_objext "* ) ;;
24642   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24643  ;;
24644 esac
24645
24646 fi
24647
24648 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24649 # The cast to long int works around a bug in the HP C Compiler
24650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24652 # This bug is HP SR number 8606223364.
24653 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24654 $as_echo_n "checking size of void *... " >&6; }
24655 if test "${ac_cv_sizeof_void_p+set}" = set; then
24656   $as_echo_n "(cached) " >&6
24657 else
24658   if test "$cross_compiling" = yes; then
24659   # Depending upon the size, compute the lo and hi bounds.
24660 cat >conftest.$ac_ext <<_ACEOF
24661 /* confdefs.h.  */
24662 _ACEOF
24663 cat confdefs.h >>conftest.$ac_ext
24664 cat >>conftest.$ac_ext <<_ACEOF
24665 /* end confdefs.h.  */
24666 $ac_includes_default
24667 int
24668 main ()
24669 {
24670 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24671 test_array [0] = 0
24672
24673   ;
24674   return 0;
24675 }
24676 _ACEOF
24677 rm -f conftest.$ac_objext
24678 if { (ac_try="$ac_compile"
24679 case "(($ac_try" in
24680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681   *) ac_try_echo=$ac_try;;
24682 esac
24683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24684 $as_echo "$ac_try_echo") >&5
24685   (eval "$ac_compile") 2>conftest.er1
24686   ac_status=$?
24687   grep -v '^ *+' conftest.er1 >conftest.err
24688   rm -f conftest.er1
24689   cat conftest.err >&5
24690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691   (exit $ac_status); } && {
24692          test -z "$ac_c_werror_flag" ||
24693          test ! -s conftest.err
24694        } && test -s conftest.$ac_objext; then
24695   ac_lo=0 ac_mid=0
24696   while :; do
24697     cat >conftest.$ac_ext <<_ACEOF
24698 /* confdefs.h.  */
24699 _ACEOF
24700 cat confdefs.h >>conftest.$ac_ext
24701 cat >>conftest.$ac_ext <<_ACEOF
24702 /* end confdefs.h.  */
24703 $ac_includes_default
24704 int
24705 main ()
24706 {
24707 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24708 test_array [0] = 0
24709
24710   ;
24711   return 0;
24712 }
24713 _ACEOF
24714 rm -f conftest.$ac_objext
24715 if { (ac_try="$ac_compile"
24716 case "(($ac_try" in
24717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24718   *) ac_try_echo=$ac_try;;
24719 esac
24720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24721 $as_echo "$ac_try_echo") >&5
24722   (eval "$ac_compile") 2>conftest.er1
24723   ac_status=$?
24724   grep -v '^ *+' conftest.er1 >conftest.err
24725   rm -f conftest.er1
24726   cat conftest.err >&5
24727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); } && {
24729          test -z "$ac_c_werror_flag" ||
24730          test ! -s conftest.err
24731        } && test -s conftest.$ac_objext; then
24732   ac_hi=$ac_mid; break
24733 else
24734   $as_echo "$as_me: failed program was:" >&5
24735 sed 's/^/| /' conftest.$ac_ext >&5
24736
24737         ac_lo=`expr $ac_mid + 1`
24738                         if test $ac_lo -le $ac_mid; then
24739                           ac_lo= ac_hi=
24740                           break
24741                         fi
24742                         ac_mid=`expr 2 '*' $ac_mid + 1`
24743 fi
24744
24745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24746   done
24747 else
24748   $as_echo "$as_me: failed program was:" >&5
24749 sed 's/^/| /' conftest.$ac_ext >&5
24750
24751         cat >conftest.$ac_ext <<_ACEOF
24752 /* confdefs.h.  */
24753 _ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h.  */
24757 $ac_includes_default
24758 int
24759 main ()
24760 {
24761 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24762 test_array [0] = 0
24763
24764   ;
24765   return 0;
24766 }
24767 _ACEOF
24768 rm -f conftest.$ac_objext
24769 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24777   ac_status=$?
24778   grep -v '^ *+' conftest.er1 >conftest.err
24779   rm -f conftest.er1
24780   cat conftest.err >&5
24781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782   (exit $ac_status); } && {
24783          test -z "$ac_c_werror_flag" ||
24784          test ! -s conftest.err
24785        } && test -s conftest.$ac_objext; then
24786   ac_hi=-1 ac_mid=-1
24787   while :; do
24788     cat >conftest.$ac_ext <<_ACEOF
24789 /* confdefs.h.  */
24790 _ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h.  */
24794 $ac_includes_default
24795 int
24796 main ()
24797 {
24798 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24799 test_array [0] = 0
24800
24801   ;
24802   return 0;
24803 }
24804 _ACEOF
24805 rm -f conftest.$ac_objext
24806 if { (ac_try="$ac_compile"
24807 case "(($ac_try" in
24808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24809   *) ac_try_echo=$ac_try;;
24810 esac
24811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24812 $as_echo "$ac_try_echo") >&5
24813   (eval "$ac_compile") 2>conftest.er1
24814   ac_status=$?
24815   grep -v '^ *+' conftest.er1 >conftest.err
24816   rm -f conftest.er1
24817   cat conftest.err >&5
24818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819   (exit $ac_status); } && {
24820          test -z "$ac_c_werror_flag" ||
24821          test ! -s conftest.err
24822        } && test -s conftest.$ac_objext; then
24823   ac_lo=$ac_mid; break
24824 else
24825   $as_echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24827
24828         ac_hi=`expr '(' $ac_mid ')' - 1`
24829                         if test $ac_mid -le $ac_hi; then
24830                           ac_lo= ac_hi=
24831                           break
24832                         fi
24833                         ac_mid=`expr 2 '*' $ac_mid`
24834 fi
24835
24836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24837   done
24838 else
24839   $as_echo "$as_me: failed program was:" >&5
24840 sed 's/^/| /' conftest.$ac_ext >&5
24841
24842         ac_lo= ac_hi=
24843 fi
24844
24845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24846 fi
24847
24848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24849 # Binary search between lo and hi bounds.
24850 while test "x$ac_lo" != "x$ac_hi"; do
24851   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24852   cat >conftest.$ac_ext <<_ACEOF
24853 /* confdefs.h.  */
24854 _ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h.  */
24858 $ac_includes_default
24859 int
24860 main ()
24861 {
24862 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24863 test_array [0] = 0
24864
24865   ;
24866   return 0;
24867 }
24868 _ACEOF
24869 rm -f conftest.$ac_objext
24870 if { (ac_try="$ac_compile"
24871 case "(($ac_try" in
24872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873   *) ac_try_echo=$ac_try;;
24874 esac
24875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24876 $as_echo "$ac_try_echo") >&5
24877   (eval "$ac_compile") 2>conftest.er1
24878   ac_status=$?
24879   grep -v '^ *+' conftest.er1 >conftest.err
24880   rm -f conftest.er1
24881   cat conftest.err >&5
24882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); } && {
24884          test -z "$ac_c_werror_flag" ||
24885          test ! -s conftest.err
24886        } && test -s conftest.$ac_objext; then
24887   ac_hi=$ac_mid
24888 else
24889   $as_echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24891
24892         ac_lo=`expr '(' $ac_mid ')' + 1`
24893 fi
24894
24895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24896 done
24897 case $ac_lo in
24898 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24899 '') if test "$ac_cv_type_void_p" = yes; then
24900      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24902 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24903 See \`config.log' for more details." >&5
24904 $as_echo "$as_me: error: cannot compute sizeof (void *)
24905 See \`config.log' for more details." >&2;}
24906    { (exit 77); exit 77; }; }; }
24907    else
24908      ac_cv_sizeof_void_p=0
24909    fi ;;
24910 esac
24911 else
24912   cat >conftest.$ac_ext <<_ACEOF
24913 /* confdefs.h.  */
24914 _ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h.  */
24918 $ac_includes_default
24919 static long int longval () { return (long int) (sizeof (void *)); }
24920 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24921 #include <stdio.h>
24922 #include <stdlib.h>
24923 int
24924 main ()
24925 {
24926
24927   FILE *f = fopen ("conftest.val", "w");
24928   if (! f)
24929     return 1;
24930   if (((long int) (sizeof (void *))) < 0)
24931     {
24932       long int i = longval ();
24933       if (i != ((long int) (sizeof (void *))))
24934         return 1;
24935       fprintf (f, "%ld", i);
24936     }
24937   else
24938     {
24939       unsigned long int i = ulongval ();
24940       if (i != ((long int) (sizeof (void *))))
24941         return 1;
24942       fprintf (f, "%lu", i);
24943     }
24944   /* Do not output a trailing newline, as this causes \r\n confusion
24945      on some platforms.  */
24946   return ferror (f) || fclose (f) != 0;
24947
24948   ;
24949   return 0;
24950 }
24951 _ACEOF
24952 rm -f conftest$ac_exeext
24953 if { (ac_try="$ac_link"
24954 case "(($ac_try" in
24955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956   *) ac_try_echo=$ac_try;;
24957 esac
24958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24959 $as_echo "$ac_try_echo") >&5
24960   (eval "$ac_link") 2>&5
24961   ac_status=$?
24962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24964   { (case "(($ac_try" in
24965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966   *) ac_try_echo=$ac_try;;
24967 esac
24968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24969 $as_echo "$ac_try_echo") >&5
24970   (eval "$ac_try") 2>&5
24971   ac_status=$?
24972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973   (exit $ac_status); }; }; then
24974   ac_cv_sizeof_void_p=`cat conftest.val`
24975 else
24976   $as_echo "$as_me: program exited with status $ac_status" >&5
24977 $as_echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24979
24980 ( exit $ac_status )
24981 if test "$ac_cv_type_void_p" = yes; then
24982      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24984 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24985 See \`config.log' for more details." >&5
24986 $as_echo "$as_me: error: cannot compute sizeof (void *)
24987 See \`config.log' for more details." >&2;}
24988    { (exit 77); exit 77; }; }; }
24989    else
24990      ac_cv_sizeof_void_p=0
24991    fi
24992 fi
24993 rm -rf conftest.dSYM
24994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24995 fi
24996 rm -f conftest.val
24997 fi
24998 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24999 $as_echo "$ac_cv_sizeof_void_p" >&6; }
25000
25001
25002
25003 cat >>confdefs.h <<_ACEOF
25004 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25005 _ACEOF
25006
25007
25008 # The cast to long int works around a bug in the HP C Compiler
25009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25011 # This bug is HP SR number 8606223364.
25012 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
25013 $as_echo_n "checking size of size_t... " >&6; }
25014 if test "${ac_cv_sizeof_size_t+set}" = set; then
25015   $as_echo_n "(cached) " >&6
25016 else
25017   if test "$cross_compiling" = yes; then
25018   # Depending upon the size, compute the lo and hi bounds.
25019 cat >conftest.$ac_ext <<_ACEOF
25020 /* confdefs.h.  */
25021 _ACEOF
25022 cat confdefs.h >>conftest.$ac_ext
25023 cat >>conftest.$ac_ext <<_ACEOF
25024 /* end confdefs.h.  */
25025 $ac_includes_default
25026 int
25027 main ()
25028 {
25029 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
25030 test_array [0] = 0
25031
25032   ;
25033   return 0;
25034 }
25035 _ACEOF
25036 rm -f conftest.$ac_objext
25037 if { (ac_try="$ac_compile"
25038 case "(($ac_try" in
25039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040   *) ac_try_echo=$ac_try;;
25041 esac
25042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25043 $as_echo "$ac_try_echo") >&5
25044   (eval "$ac_compile") 2>conftest.er1
25045   ac_status=$?
25046   grep -v '^ *+' conftest.er1 >conftest.err
25047   rm -f conftest.er1
25048   cat conftest.err >&5
25049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050   (exit $ac_status); } && {
25051          test -z "$ac_c_werror_flag" ||
25052          test ! -s conftest.err
25053        } && test -s conftest.$ac_objext; then
25054   ac_lo=0 ac_mid=0
25055   while :; do
25056     cat >conftest.$ac_ext <<_ACEOF
25057 /* confdefs.h.  */
25058 _ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h.  */
25062 $ac_includes_default
25063 int
25064 main ()
25065 {
25066 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25067 test_array [0] = 0
25068
25069   ;
25070   return 0;
25071 }
25072 _ACEOF
25073 rm -f conftest.$ac_objext
25074 if { (ac_try="$ac_compile"
25075 case "(($ac_try" in
25076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077   *) ac_try_echo=$ac_try;;
25078 esac
25079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25080 $as_echo "$ac_try_echo") >&5
25081   (eval "$ac_compile") 2>conftest.er1
25082   ac_status=$?
25083   grep -v '^ *+' conftest.er1 >conftest.err
25084   rm -f conftest.er1
25085   cat conftest.err >&5
25086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087   (exit $ac_status); } && {
25088          test -z "$ac_c_werror_flag" ||
25089          test ! -s conftest.err
25090        } && test -s conftest.$ac_objext; then
25091   ac_hi=$ac_mid; break
25092 else
25093   $as_echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25095
25096         ac_lo=`expr $ac_mid + 1`
25097                         if test $ac_lo -le $ac_mid; then
25098                           ac_lo= ac_hi=
25099                           break
25100                         fi
25101                         ac_mid=`expr 2 '*' $ac_mid + 1`
25102 fi
25103
25104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25105   done
25106 else
25107   $as_echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25109
25110         cat >conftest.$ac_ext <<_ACEOF
25111 /* confdefs.h.  */
25112 _ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h.  */
25116 $ac_includes_default
25117 int
25118 main ()
25119 {
25120 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25121 test_array [0] = 0
25122
25123   ;
25124   return 0;
25125 }
25126 _ACEOF
25127 rm -f conftest.$ac_objext
25128 if { (ac_try="$ac_compile"
25129 case "(($ac_try" in
25130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131   *) ac_try_echo=$ac_try;;
25132 esac
25133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25134 $as_echo "$ac_try_echo") >&5
25135   (eval "$ac_compile") 2>conftest.er1
25136   ac_status=$?
25137   grep -v '^ *+' conftest.er1 >conftest.err
25138   rm -f conftest.er1
25139   cat conftest.err >&5
25140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141   (exit $ac_status); } && {
25142          test -z "$ac_c_werror_flag" ||
25143          test ! -s conftest.err
25144        } && test -s conftest.$ac_objext; then
25145   ac_hi=-1 ac_mid=-1
25146   while :; do
25147     cat >conftest.$ac_ext <<_ACEOF
25148 /* confdefs.h.  */
25149 _ACEOF
25150 cat confdefs.h >>conftest.$ac_ext
25151 cat >>conftest.$ac_ext <<_ACEOF
25152 /* end confdefs.h.  */
25153 $ac_includes_default
25154 int
25155 main ()
25156 {
25157 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25158 test_array [0] = 0
25159
25160   ;
25161   return 0;
25162 }
25163 _ACEOF
25164 rm -f conftest.$ac_objext
25165 if { (ac_try="$ac_compile"
25166 case "(($ac_try" in
25167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25168   *) ac_try_echo=$ac_try;;
25169 esac
25170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25171 $as_echo "$ac_try_echo") >&5
25172   (eval "$ac_compile") 2>conftest.er1
25173   ac_status=$?
25174   grep -v '^ *+' conftest.er1 >conftest.err
25175   rm -f conftest.er1
25176   cat conftest.err >&5
25177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178   (exit $ac_status); } && {
25179          test -z "$ac_c_werror_flag" ||
25180          test ! -s conftest.err
25181        } && test -s conftest.$ac_objext; then
25182   ac_lo=$ac_mid; break
25183 else
25184   $as_echo "$as_me: failed program was:" >&5
25185 sed 's/^/| /' conftest.$ac_ext >&5
25186
25187         ac_hi=`expr '(' $ac_mid ')' - 1`
25188                         if test $ac_mid -le $ac_hi; then
25189                           ac_lo= ac_hi=
25190                           break
25191                         fi
25192                         ac_mid=`expr 2 '*' $ac_mid`
25193 fi
25194
25195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25196   done
25197 else
25198   $as_echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25200
25201         ac_lo= ac_hi=
25202 fi
25203
25204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25205 fi
25206
25207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25208 # Binary search between lo and hi bounds.
25209 while test "x$ac_lo" != "x$ac_hi"; do
25210   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25211   cat >conftest.$ac_ext <<_ACEOF
25212 /* confdefs.h.  */
25213 _ACEOF
25214 cat confdefs.h >>conftest.$ac_ext
25215 cat >>conftest.$ac_ext <<_ACEOF
25216 /* end confdefs.h.  */
25217 $ac_includes_default
25218 int
25219 main ()
25220 {
25221 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25222 test_array [0] = 0
25223
25224   ;
25225   return 0;
25226 }
25227 _ACEOF
25228 rm -f conftest.$ac_objext
25229 if { (ac_try="$ac_compile"
25230 case "(($ac_try" in
25231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232   *) ac_try_echo=$ac_try;;
25233 esac
25234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25235 $as_echo "$ac_try_echo") >&5
25236   (eval "$ac_compile") 2>conftest.er1
25237   ac_status=$?
25238   grep -v '^ *+' conftest.er1 >conftest.err
25239   rm -f conftest.er1
25240   cat conftest.err >&5
25241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242   (exit $ac_status); } && {
25243          test -z "$ac_c_werror_flag" ||
25244          test ! -s conftest.err
25245        } && test -s conftest.$ac_objext; then
25246   ac_hi=$ac_mid
25247 else
25248   $as_echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25250
25251         ac_lo=`expr '(' $ac_mid ')' + 1`
25252 fi
25253
25254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25255 done
25256 case $ac_lo in
25257 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25258 '') if test "$ac_cv_type_size_t" = yes; then
25259      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25261 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25262 See \`config.log' for more details." >&5
25263 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25264 See \`config.log' for more details." >&2;}
25265    { (exit 77); exit 77; }; }; }
25266    else
25267      ac_cv_sizeof_size_t=0
25268    fi ;;
25269 esac
25270 else
25271   cat >conftest.$ac_ext <<_ACEOF
25272 /* confdefs.h.  */
25273 _ACEOF
25274 cat confdefs.h >>conftest.$ac_ext
25275 cat >>conftest.$ac_ext <<_ACEOF
25276 /* end confdefs.h.  */
25277 $ac_includes_default
25278 static long int longval () { return (long int) (sizeof (size_t)); }
25279 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25280 #include <stdio.h>
25281 #include <stdlib.h>
25282 int
25283 main ()
25284 {
25285
25286   FILE *f = fopen ("conftest.val", "w");
25287   if (! f)
25288     return 1;
25289   if (((long int) (sizeof (size_t))) < 0)
25290     {
25291       long int i = longval ();
25292       if (i != ((long int) (sizeof (size_t))))
25293         return 1;
25294       fprintf (f, "%ld", i);
25295     }
25296   else
25297     {
25298       unsigned long int i = ulongval ();
25299       if (i != ((long int) (sizeof (size_t))))
25300         return 1;
25301       fprintf (f, "%lu", i);
25302     }
25303   /* Do not output a trailing newline, as this causes \r\n confusion
25304      on some platforms.  */
25305   return ferror (f) || fclose (f) != 0;
25306
25307   ;
25308   return 0;
25309 }
25310 _ACEOF
25311 rm -f conftest$ac_exeext
25312 if { (ac_try="$ac_link"
25313 case "(($ac_try" in
25314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315   *) ac_try_echo=$ac_try;;
25316 esac
25317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25318 $as_echo "$ac_try_echo") >&5
25319   (eval "$ac_link") 2>&5
25320   ac_status=$?
25321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25323   { (case "(($ac_try" in
25324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25325   *) ac_try_echo=$ac_try;;
25326 esac
25327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25328 $as_echo "$ac_try_echo") >&5
25329   (eval "$ac_try") 2>&5
25330   ac_status=$?
25331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332   (exit $ac_status); }; }; then
25333   ac_cv_sizeof_size_t=`cat conftest.val`
25334 else
25335   $as_echo "$as_me: program exited with status $ac_status" >&5
25336 $as_echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.$ac_ext >&5
25338
25339 ( exit $ac_status )
25340 if test "$ac_cv_type_size_t" = yes; then
25341      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25343 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25344 See \`config.log' for more details." >&5
25345 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25346 See \`config.log' for more details." >&2;}
25347    { (exit 77); exit 77; }; }; }
25348    else
25349      ac_cv_sizeof_size_t=0
25350    fi
25351 fi
25352 rm -rf conftest.dSYM
25353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25354 fi
25355 rm -f conftest.val
25356 fi
25357 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25358 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25359
25360
25361
25362 cat >>confdefs.h <<_ACEOF
25363 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25364 _ACEOF
25365
25366
25367 # The cast to long int works around a bug in the HP C Compiler
25368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25370 # This bug is HP SR number 8606223364.
25371 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25372 $as_echo_n "checking size of long... " >&6; }
25373 if test "${ac_cv_sizeof_long+set}" = set; then
25374   $as_echo_n "(cached) " >&6
25375 else
25376   if test "$cross_compiling" = yes; then
25377   # Depending upon the size, compute the lo and hi bounds.
25378 cat >conftest.$ac_ext <<_ACEOF
25379 /* confdefs.h.  */
25380 _ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h.  */
25384 $ac_includes_default
25385 int
25386 main ()
25387 {
25388 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25389 test_array [0] = 0
25390
25391   ;
25392   return 0;
25393 }
25394 _ACEOF
25395 rm -f conftest.$ac_objext
25396 if { (ac_try="$ac_compile"
25397 case "(($ac_try" in
25398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399   *) ac_try_echo=$ac_try;;
25400 esac
25401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25402 $as_echo "$ac_try_echo") >&5
25403   (eval "$ac_compile") 2>conftest.er1
25404   ac_status=$?
25405   grep -v '^ *+' conftest.er1 >conftest.err
25406   rm -f conftest.er1
25407   cat conftest.err >&5
25408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); } && {
25410          test -z "$ac_c_werror_flag" ||
25411          test ! -s conftest.err
25412        } && test -s conftest.$ac_objext; then
25413   ac_lo=0 ac_mid=0
25414   while :; do
25415     cat >conftest.$ac_ext <<_ACEOF
25416 /* confdefs.h.  */
25417 _ACEOF
25418 cat confdefs.h >>conftest.$ac_ext
25419 cat >>conftest.$ac_ext <<_ACEOF
25420 /* end confdefs.h.  */
25421 $ac_includes_default
25422 int
25423 main ()
25424 {
25425 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25426 test_array [0] = 0
25427
25428   ;
25429   return 0;
25430 }
25431 _ACEOF
25432 rm -f conftest.$ac_objext
25433 if { (ac_try="$ac_compile"
25434 case "(($ac_try" in
25435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436   *) ac_try_echo=$ac_try;;
25437 esac
25438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25439 $as_echo "$ac_try_echo") >&5
25440   (eval "$ac_compile") 2>conftest.er1
25441   ac_status=$?
25442   grep -v '^ *+' conftest.er1 >conftest.err
25443   rm -f conftest.er1
25444   cat conftest.err >&5
25445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446   (exit $ac_status); } && {
25447          test -z "$ac_c_werror_flag" ||
25448          test ! -s conftest.err
25449        } && test -s conftest.$ac_objext; then
25450   ac_hi=$ac_mid; break
25451 else
25452   $as_echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25454
25455         ac_lo=`expr $ac_mid + 1`
25456                         if test $ac_lo -le $ac_mid; then
25457                           ac_lo= ac_hi=
25458                           break
25459                         fi
25460                         ac_mid=`expr 2 '*' $ac_mid + 1`
25461 fi
25462
25463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25464   done
25465 else
25466   $as_echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25468
25469         cat >conftest.$ac_ext <<_ACEOF
25470 /* confdefs.h.  */
25471 _ACEOF
25472 cat confdefs.h >>conftest.$ac_ext
25473 cat >>conftest.$ac_ext <<_ACEOF
25474 /* end confdefs.h.  */
25475 $ac_includes_default
25476 int
25477 main ()
25478 {
25479 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25480 test_array [0] = 0
25481
25482   ;
25483   return 0;
25484 }
25485 _ACEOF
25486 rm -f conftest.$ac_objext
25487 if { (ac_try="$ac_compile"
25488 case "(($ac_try" in
25489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25490   *) ac_try_echo=$ac_try;;
25491 esac
25492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25493 $as_echo "$ac_try_echo") >&5
25494   (eval "$ac_compile") 2>conftest.er1
25495   ac_status=$?
25496   grep -v '^ *+' conftest.er1 >conftest.err
25497   rm -f conftest.er1
25498   cat conftest.err >&5
25499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500   (exit $ac_status); } && {
25501          test -z "$ac_c_werror_flag" ||
25502          test ! -s conftest.err
25503        } && test -s conftest.$ac_objext; then
25504   ac_hi=-1 ac_mid=-1
25505   while :; do
25506     cat >conftest.$ac_ext <<_ACEOF
25507 /* confdefs.h.  */
25508 _ACEOF
25509 cat confdefs.h >>conftest.$ac_ext
25510 cat >>conftest.$ac_ext <<_ACEOF
25511 /* end confdefs.h.  */
25512 $ac_includes_default
25513 int
25514 main ()
25515 {
25516 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25517 test_array [0] = 0
25518
25519   ;
25520   return 0;
25521 }
25522 _ACEOF
25523 rm -f conftest.$ac_objext
25524 if { (ac_try="$ac_compile"
25525 case "(($ac_try" in
25526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25527   *) ac_try_echo=$ac_try;;
25528 esac
25529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25530 $as_echo "$ac_try_echo") >&5
25531   (eval "$ac_compile") 2>conftest.er1
25532   ac_status=$?
25533   grep -v '^ *+' conftest.er1 >conftest.err
25534   rm -f conftest.er1
25535   cat conftest.err >&5
25536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537   (exit $ac_status); } && {
25538          test -z "$ac_c_werror_flag" ||
25539          test ! -s conftest.err
25540        } && test -s conftest.$ac_objext; then
25541   ac_lo=$ac_mid; break
25542 else
25543   $as_echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25545
25546         ac_hi=`expr '(' $ac_mid ')' - 1`
25547                         if test $ac_mid -le $ac_hi; then
25548                           ac_lo= ac_hi=
25549                           break
25550                         fi
25551                         ac_mid=`expr 2 '*' $ac_mid`
25552 fi
25553
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25555   done
25556 else
25557   $as_echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.$ac_ext >&5
25559
25560         ac_lo= ac_hi=
25561 fi
25562
25563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25564 fi
25565
25566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25567 # Binary search between lo and hi bounds.
25568 while test "x$ac_lo" != "x$ac_hi"; do
25569   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25570   cat >conftest.$ac_ext <<_ACEOF
25571 /* confdefs.h.  */
25572 _ACEOF
25573 cat confdefs.h >>conftest.$ac_ext
25574 cat >>conftest.$ac_ext <<_ACEOF
25575 /* end confdefs.h.  */
25576 $ac_includes_default
25577 int
25578 main ()
25579 {
25580 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25581 test_array [0] = 0
25582
25583   ;
25584   return 0;
25585 }
25586 _ACEOF
25587 rm -f conftest.$ac_objext
25588 if { (ac_try="$ac_compile"
25589 case "(($ac_try" in
25590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25591   *) ac_try_echo=$ac_try;;
25592 esac
25593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25594 $as_echo "$ac_try_echo") >&5
25595   (eval "$ac_compile") 2>conftest.er1
25596   ac_status=$?
25597   grep -v '^ *+' conftest.er1 >conftest.err
25598   rm -f conftest.er1
25599   cat conftest.err >&5
25600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601   (exit $ac_status); } && {
25602          test -z "$ac_c_werror_flag" ||
25603          test ! -s conftest.err
25604        } && test -s conftest.$ac_objext; then
25605   ac_hi=$ac_mid
25606 else
25607   $as_echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25609
25610         ac_lo=`expr '(' $ac_mid ')' + 1`
25611 fi
25612
25613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25614 done
25615 case $ac_lo in
25616 ?*) ac_cv_sizeof_long=$ac_lo;;
25617 '') if test "$ac_cv_type_long" = yes; then
25618      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25620 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25621 See \`config.log' for more details." >&5
25622 $as_echo "$as_me: error: cannot compute sizeof (long)
25623 See \`config.log' for more details." >&2;}
25624    { (exit 77); exit 77; }; }; }
25625    else
25626      ac_cv_sizeof_long=0
25627    fi ;;
25628 esac
25629 else
25630   cat >conftest.$ac_ext <<_ACEOF
25631 /* confdefs.h.  */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h.  */
25636 $ac_includes_default
25637 static long int longval () { return (long int) (sizeof (long)); }
25638 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25639 #include <stdio.h>
25640 #include <stdlib.h>
25641 int
25642 main ()
25643 {
25644
25645   FILE *f = fopen ("conftest.val", "w");
25646   if (! f)
25647     return 1;
25648   if (((long int) (sizeof (long))) < 0)
25649     {
25650       long int i = longval ();
25651       if (i != ((long int) (sizeof (long))))
25652         return 1;
25653       fprintf (f, "%ld", i);
25654     }
25655   else
25656     {
25657       unsigned long int i = ulongval ();
25658       if (i != ((long int) (sizeof (long))))
25659         return 1;
25660       fprintf (f, "%lu", i);
25661     }
25662   /* Do not output a trailing newline, as this causes \r\n confusion
25663      on some platforms.  */
25664   return ferror (f) || fclose (f) != 0;
25665
25666   ;
25667   return 0;
25668 }
25669 _ACEOF
25670 rm -f conftest$ac_exeext
25671 if { (ac_try="$ac_link"
25672 case "(($ac_try" in
25673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25674   *) ac_try_echo=$ac_try;;
25675 esac
25676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25677 $as_echo "$ac_try_echo") >&5
25678   (eval "$ac_link") 2>&5
25679   ac_status=$?
25680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25682   { (case "(($ac_try" in
25683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25684   *) ac_try_echo=$ac_try;;
25685 esac
25686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25687 $as_echo "$ac_try_echo") >&5
25688   (eval "$ac_try") 2>&5
25689   ac_status=$?
25690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691   (exit $ac_status); }; }; then
25692   ac_cv_sizeof_long=`cat conftest.val`
25693 else
25694   $as_echo "$as_me: program exited with status $ac_status" >&5
25695 $as_echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25697
25698 ( exit $ac_status )
25699 if test "$ac_cv_type_long" = yes; then
25700      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25702 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25703 See \`config.log' for more details." >&5
25704 $as_echo "$as_me: error: cannot compute sizeof (long)
25705 See \`config.log' for more details." >&2;}
25706    { (exit 77); exit 77; }; }; }
25707    else
25708      ac_cv_sizeof_long=0
25709    fi
25710 fi
25711 rm -rf conftest.dSYM
25712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25713 fi
25714 rm -f conftest.val
25715 fi
25716 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25717 $as_echo "$ac_cv_sizeof_long" >&6; }
25718
25719
25720
25721 cat >>confdefs.h <<_ACEOF
25722 #define SIZEOF_LONG $ac_cv_sizeof_long
25723 _ACEOF
25724
25725
25726
25727 # Decide whether float4 is passed by value: user-selectable, enabled by default
25728 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25729 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25730
25731
25732 # Check whether --enable-float4-byval was given.
25733 if test "${enable_float4_byval+set}" = set; then
25734   enableval=$enable_float4_byval;
25735   case $enableval in
25736     yes)
25737
25738 cat >>confdefs.h <<\_ACEOF
25739 #define USE_FLOAT4_BYVAL 1
25740 _ACEOF
25741
25742                float4passbyval=true
25743       ;;
25744     no)
25745       float4passbyval=false
25746       ;;
25747     *)
25748       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25749 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25750    { (exit 1); exit 1; }; }
25751       ;;
25752   esac
25753
25754 else
25755   enable_float4_byval=yes
25756
25757 cat >>confdefs.h <<\_ACEOF
25758 #define USE_FLOAT4_BYVAL 1
25759 _ACEOF
25760
25761                float4passbyval=true
25762 fi
25763
25764
25765 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25766 $as_echo "$enable_float4_byval" >&6; }
25767
25768 cat >>confdefs.h <<_ACEOF
25769 #define FLOAT4PASSBYVAL $float4passbyval
25770 _ACEOF
25771
25772
25773 # Decide whether float8 is passed by value.
25774 # Note: this setting also controls int8 and related types such as timestamp.
25775 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25776 # If not, trying to select it is an error.
25777 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25778 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25779 if test $ac_cv_sizeof_void_p -ge 8 ; then
25780
25781
25782 # Check whether --enable-float8-byval was given.
25783 if test "${enable_float8_byval+set}" = set; then
25784   enableval=$enable_float8_byval;
25785   case $enableval in
25786     yes)
25787       :
25788       ;;
25789     no)
25790       :
25791       ;;
25792     *)
25793       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25794 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25795    { (exit 1); exit 1; }; }
25796       ;;
25797   esac
25798
25799 else
25800   enable_float8_byval=yes
25801
25802 fi
25803
25804
25805 else
25806
25807
25808 # Check whether --enable-float8-byval was given.
25809 if test "${enable_float8_byval+set}" = set; then
25810   enableval=$enable_float8_byval;
25811   case $enableval in
25812     yes)
25813       :
25814       ;;
25815     no)
25816       :
25817       ;;
25818     *)
25819       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25820 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25821    { (exit 1); exit 1; }; }
25822       ;;
25823   esac
25824
25825 else
25826   enable_float8_byval=no
25827
25828 fi
25829
25830
25831   if test "$enable_float8_byval" = yes ; then
25832     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25833 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25834    { (exit 1); exit 1; }; }
25835   fi
25836 fi
25837 if test "$enable_float8_byval" = yes ; then
25838
25839 cat >>confdefs.h <<\_ACEOF
25840 #define USE_FLOAT8_BYVAL 1
25841 _ACEOF
25842
25843   float8passbyval=true
25844 else
25845   float8passbyval=false
25846 fi
25847 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25848 $as_echo "$enable_float8_byval" >&6; }
25849
25850 cat >>confdefs.h <<_ACEOF
25851 #define FLOAT8PASSBYVAL $float8passbyval
25852 _ACEOF
25853
25854
25855 # Determine memory alignment requirements for the basic C data types.
25856
25857 # The cast to long int works around a bug in the HP C Compiler,
25858 # see AC_CHECK_SIZEOF for more information.
25859 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25860 $as_echo_n "checking alignment of short... " >&6; }
25861 if test "${ac_cv_alignof_short+set}" = set; then
25862   $as_echo_n "(cached) " >&6
25863 else
25864   if test "$cross_compiling" = yes; then
25865   # Depending upon the size, compute the lo and hi bounds.
25866 cat >conftest.$ac_ext <<_ACEOF
25867 /* confdefs.h.  */
25868 _ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h.  */
25872 $ac_includes_default
25873 #ifndef offsetof
25874 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25875 #endif
25876 typedef struct { char x; short y; } ac__type_alignof_;
25877 int
25878 main ()
25879 {
25880 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25881 test_array [0] = 0
25882
25883   ;
25884   return 0;
25885 }
25886 _ACEOF
25887 rm -f conftest.$ac_objext
25888 if { (ac_try="$ac_compile"
25889 case "(($ac_try" in
25890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25891   *) ac_try_echo=$ac_try;;
25892 esac
25893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25894 $as_echo "$ac_try_echo") >&5
25895   (eval "$ac_compile") 2>conftest.er1
25896   ac_status=$?
25897   grep -v '^ *+' conftest.er1 >conftest.err
25898   rm -f conftest.er1
25899   cat conftest.err >&5
25900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); } && {
25902          test -z "$ac_c_werror_flag" ||
25903          test ! -s conftest.err
25904        } && test -s conftest.$ac_objext; then
25905   ac_lo=0 ac_mid=0
25906   while :; do
25907     cat >conftest.$ac_ext <<_ACEOF
25908 /* confdefs.h.  */
25909 _ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h.  */
25913 $ac_includes_default
25914 #ifndef offsetof
25915 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25916 #endif
25917 typedef struct { char x; short y; } ac__type_alignof_;
25918 int
25919 main ()
25920 {
25921 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25922 test_array [0] = 0
25923
25924   ;
25925   return 0;
25926 }
25927 _ACEOF
25928 rm -f conftest.$ac_objext
25929 if { (ac_try="$ac_compile"
25930 case "(($ac_try" in
25931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25932   *) ac_try_echo=$ac_try;;
25933 esac
25934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25935 $as_echo "$ac_try_echo") >&5
25936   (eval "$ac_compile") 2>conftest.er1
25937   ac_status=$?
25938   grep -v '^ *+' conftest.er1 >conftest.err
25939   rm -f conftest.er1
25940   cat conftest.err >&5
25941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942   (exit $ac_status); } && {
25943          test -z "$ac_c_werror_flag" ||
25944          test ! -s conftest.err
25945        } && test -s conftest.$ac_objext; then
25946   ac_hi=$ac_mid; break
25947 else
25948   $as_echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25950
25951         ac_lo=`expr $ac_mid + 1`
25952                         if test $ac_lo -le $ac_mid; then
25953                           ac_lo= ac_hi=
25954                           break
25955                         fi
25956                         ac_mid=`expr 2 '*' $ac_mid + 1`
25957 fi
25958
25959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25960   done
25961 else
25962   $as_echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25964
25965         cat >conftest.$ac_ext <<_ACEOF
25966 /* confdefs.h.  */
25967 _ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h.  */
25971 $ac_includes_default
25972 #ifndef offsetof
25973 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25974 #endif
25975 typedef struct { char x; short y; } ac__type_alignof_;
25976 int
25977 main ()
25978 {
25979 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25980 test_array [0] = 0
25981
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 rm -f conftest.$ac_objext
25987 if { (ac_try="$ac_compile"
25988 case "(($ac_try" in
25989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990   *) ac_try_echo=$ac_try;;
25991 esac
25992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25993 $as_echo "$ac_try_echo") >&5
25994   (eval "$ac_compile") 2>conftest.er1
25995   ac_status=$?
25996   grep -v '^ *+' conftest.er1 >conftest.err
25997   rm -f conftest.er1
25998   cat conftest.err >&5
25999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000   (exit $ac_status); } && {
26001          test -z "$ac_c_werror_flag" ||
26002          test ! -s conftest.err
26003        } && test -s conftest.$ac_objext; then
26004   ac_hi=-1 ac_mid=-1
26005   while :; do
26006     cat >conftest.$ac_ext <<_ACEOF
26007 /* confdefs.h.  */
26008 _ACEOF
26009 cat confdefs.h >>conftest.$ac_ext
26010 cat >>conftest.$ac_ext <<_ACEOF
26011 /* end confdefs.h.  */
26012 $ac_includes_default
26013 #ifndef offsetof
26014 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26015 #endif
26016 typedef struct { char x; short y; } ac__type_alignof_;
26017 int
26018 main ()
26019 {
26020 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26021 test_array [0] = 0
26022
26023   ;
26024   return 0;
26025 }
26026 _ACEOF
26027 rm -f conftest.$ac_objext
26028 if { (ac_try="$ac_compile"
26029 case "(($ac_try" in
26030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031   *) ac_try_echo=$ac_try;;
26032 esac
26033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26034 $as_echo "$ac_try_echo") >&5
26035   (eval "$ac_compile") 2>conftest.er1
26036   ac_status=$?
26037   grep -v '^ *+' conftest.er1 >conftest.err
26038   rm -f conftest.er1
26039   cat conftest.err >&5
26040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041   (exit $ac_status); } && {
26042          test -z "$ac_c_werror_flag" ||
26043          test ! -s conftest.err
26044        } && test -s conftest.$ac_objext; then
26045   ac_lo=$ac_mid; break
26046 else
26047   $as_echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26049
26050         ac_hi=`expr '(' $ac_mid ')' - 1`
26051                         if test $ac_mid -le $ac_hi; then
26052                           ac_lo= ac_hi=
26053                           break
26054                         fi
26055                         ac_mid=`expr 2 '*' $ac_mid`
26056 fi
26057
26058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26059   done
26060 else
26061   $as_echo "$as_me: failed program was:" >&5
26062 sed 's/^/| /' conftest.$ac_ext >&5
26063
26064         ac_lo= ac_hi=
26065 fi
26066
26067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26068 fi
26069
26070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26071 # Binary search between lo and hi bounds.
26072 while test "x$ac_lo" != "x$ac_hi"; do
26073   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26074   cat >conftest.$ac_ext <<_ACEOF
26075 /* confdefs.h.  */
26076 _ACEOF
26077 cat confdefs.h >>conftest.$ac_ext
26078 cat >>conftest.$ac_ext <<_ACEOF
26079 /* end confdefs.h.  */
26080 $ac_includes_default
26081 #ifndef offsetof
26082 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26083 #endif
26084 typedef struct { char x; short y; } ac__type_alignof_;
26085 int
26086 main ()
26087 {
26088 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26089 test_array [0] = 0
26090
26091   ;
26092   return 0;
26093 }
26094 _ACEOF
26095 rm -f conftest.$ac_objext
26096 if { (ac_try="$ac_compile"
26097 case "(($ac_try" in
26098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26099   *) ac_try_echo=$ac_try;;
26100 esac
26101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26102 $as_echo "$ac_try_echo") >&5
26103   (eval "$ac_compile") 2>conftest.er1
26104   ac_status=$?
26105   grep -v '^ *+' conftest.er1 >conftest.err
26106   rm -f conftest.er1
26107   cat conftest.err >&5
26108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109   (exit $ac_status); } && {
26110          test -z "$ac_c_werror_flag" ||
26111          test ! -s conftest.err
26112        } && test -s conftest.$ac_objext; then
26113   ac_hi=$ac_mid
26114 else
26115   $as_echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26117
26118         ac_lo=`expr '(' $ac_mid ')' + 1`
26119 fi
26120
26121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26122 done
26123 case $ac_lo in
26124 ?*) ac_cv_alignof_short=$ac_lo;;
26125 '') if test "$ac_cv_type_short" = yes; then
26126      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26128 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26129 See \`config.log' for more details." >&5
26130 $as_echo "$as_me: error: cannot compute alignment of short
26131 See \`config.log' for more details." >&2;}
26132    { (exit 77); exit 77; }; }; }
26133    else
26134      ac_cv_alignof_short=0
26135    fi ;;
26136 esac
26137 else
26138   cat >conftest.$ac_ext <<_ACEOF
26139 /* confdefs.h.  */
26140 _ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h.  */
26144 $ac_includes_default
26145 #ifndef offsetof
26146 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26147 #endif
26148 typedef struct { char x; short y; } ac__type_alignof_;
26149 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26150 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26151 #include <stdio.h>
26152 #include <stdlib.h>
26153 int
26154 main ()
26155 {
26156
26157   FILE *f = fopen ("conftest.val", "w");
26158   if (! f)
26159     return 1;
26160   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26161     {
26162       long int i = longval ();
26163       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26164         return 1;
26165       fprintf (f, "%ld", i);
26166     }
26167   else
26168     {
26169       unsigned long int i = ulongval ();
26170       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26171         return 1;
26172       fprintf (f, "%lu", i);
26173     }
26174   /* Do not output a trailing newline, as this causes \r\n confusion
26175      on some platforms.  */
26176   return ferror (f) || fclose (f) != 0;
26177
26178   ;
26179   return 0;
26180 }
26181 _ACEOF
26182 rm -f conftest$ac_exeext
26183 if { (ac_try="$ac_link"
26184 case "(($ac_try" in
26185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186   *) ac_try_echo=$ac_try;;
26187 esac
26188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26189 $as_echo "$ac_try_echo") >&5
26190   (eval "$ac_link") 2>&5
26191   ac_status=$?
26192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26194   { (case "(($ac_try" in
26195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26196   *) ac_try_echo=$ac_try;;
26197 esac
26198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26199 $as_echo "$ac_try_echo") >&5
26200   (eval "$ac_try") 2>&5
26201   ac_status=$?
26202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); }; }; then
26204   ac_cv_alignof_short=`cat conftest.val`
26205 else
26206   $as_echo "$as_me: program exited with status $ac_status" >&5
26207 $as_echo "$as_me: failed program was:" >&5
26208 sed 's/^/| /' conftest.$ac_ext >&5
26209
26210 ( exit $ac_status )
26211 if test "$ac_cv_type_short" = yes; then
26212      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26214 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26215 See \`config.log' for more details." >&5
26216 $as_echo "$as_me: error: cannot compute alignment of short
26217 See \`config.log' for more details." >&2;}
26218    { (exit 77); exit 77; }; }; }
26219    else
26220      ac_cv_alignof_short=0
26221    fi
26222 fi
26223 rm -rf conftest.dSYM
26224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26225 fi
26226 rm -f conftest.val
26227 fi
26228 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26229 $as_echo "$ac_cv_alignof_short" >&6; }
26230
26231
26232
26233 cat >>confdefs.h <<_ACEOF
26234 #define ALIGNOF_SHORT $ac_cv_alignof_short
26235 _ACEOF
26236
26237
26238 # The cast to long int works around a bug in the HP C Compiler,
26239 # see AC_CHECK_SIZEOF for more information.
26240 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26241 $as_echo_n "checking alignment of int... " >&6; }
26242 if test "${ac_cv_alignof_int+set}" = set; then
26243   $as_echo_n "(cached) " >&6
26244 else
26245   if test "$cross_compiling" = yes; then
26246   # Depending upon the size, compute the lo and hi bounds.
26247 cat >conftest.$ac_ext <<_ACEOF
26248 /* confdefs.h.  */
26249 _ACEOF
26250 cat confdefs.h >>conftest.$ac_ext
26251 cat >>conftest.$ac_ext <<_ACEOF
26252 /* end confdefs.h.  */
26253 $ac_includes_default
26254 #ifndef offsetof
26255 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26256 #endif
26257 typedef struct { char x; int y; } ac__type_alignof_;
26258 int
26259 main ()
26260 {
26261 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26262 test_array [0] = 0
26263
26264   ;
26265   return 0;
26266 }
26267 _ACEOF
26268 rm -f conftest.$ac_objext
26269 if { (ac_try="$ac_compile"
26270 case "(($ac_try" in
26271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272   *) ac_try_echo=$ac_try;;
26273 esac
26274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26275 $as_echo "$ac_try_echo") >&5
26276   (eval "$ac_compile") 2>conftest.er1
26277   ac_status=$?
26278   grep -v '^ *+' conftest.er1 >conftest.err
26279   rm -f conftest.er1
26280   cat conftest.err >&5
26281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282   (exit $ac_status); } && {
26283          test -z "$ac_c_werror_flag" ||
26284          test ! -s conftest.err
26285        } && test -s conftest.$ac_objext; then
26286   ac_lo=0 ac_mid=0
26287   while :; do
26288     cat >conftest.$ac_ext <<_ACEOF
26289 /* confdefs.h.  */
26290 _ACEOF
26291 cat confdefs.h >>conftest.$ac_ext
26292 cat >>conftest.$ac_ext <<_ACEOF
26293 /* end confdefs.h.  */
26294 $ac_includes_default
26295 #ifndef offsetof
26296 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26297 #endif
26298 typedef struct { char x; int y; } ac__type_alignof_;
26299 int
26300 main ()
26301 {
26302 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26303 test_array [0] = 0
26304
26305   ;
26306   return 0;
26307 }
26308 _ACEOF
26309 rm -f conftest.$ac_objext
26310 if { (ac_try="$ac_compile"
26311 case "(($ac_try" in
26312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26313   *) ac_try_echo=$ac_try;;
26314 esac
26315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26316 $as_echo "$ac_try_echo") >&5
26317   (eval "$ac_compile") 2>conftest.er1
26318   ac_status=$?
26319   grep -v '^ *+' conftest.er1 >conftest.err
26320   rm -f conftest.er1
26321   cat conftest.err >&5
26322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323   (exit $ac_status); } && {
26324          test -z "$ac_c_werror_flag" ||
26325          test ! -s conftest.err
26326        } && test -s conftest.$ac_objext; then
26327   ac_hi=$ac_mid; break
26328 else
26329   $as_echo "$as_me: failed program was:" >&5
26330 sed 's/^/| /' conftest.$ac_ext >&5
26331
26332         ac_lo=`expr $ac_mid + 1`
26333                         if test $ac_lo -le $ac_mid; then
26334                           ac_lo= ac_hi=
26335                           break
26336                         fi
26337                         ac_mid=`expr 2 '*' $ac_mid + 1`
26338 fi
26339
26340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26341   done
26342 else
26343   $as_echo "$as_me: failed program was:" >&5
26344 sed 's/^/| /' conftest.$ac_ext >&5
26345
26346         cat >conftest.$ac_ext <<_ACEOF
26347 /* confdefs.h.  */
26348 _ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h.  */
26352 $ac_includes_default
26353 #ifndef offsetof
26354 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26355 #endif
26356 typedef struct { char x; int y; } ac__type_alignof_;
26357 int
26358 main ()
26359 {
26360 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26361 test_array [0] = 0
26362
26363   ;
26364   return 0;
26365 }
26366 _ACEOF
26367 rm -f conftest.$ac_objext
26368 if { (ac_try="$ac_compile"
26369 case "(($ac_try" in
26370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26371   *) ac_try_echo=$ac_try;;
26372 esac
26373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26374 $as_echo "$ac_try_echo") >&5
26375   (eval "$ac_compile") 2>conftest.er1
26376   ac_status=$?
26377   grep -v '^ *+' conftest.er1 >conftest.err
26378   rm -f conftest.er1
26379   cat conftest.err >&5
26380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381   (exit $ac_status); } && {
26382          test -z "$ac_c_werror_flag" ||
26383          test ! -s conftest.err
26384        } && test -s conftest.$ac_objext; then
26385   ac_hi=-1 ac_mid=-1
26386   while :; do
26387     cat >conftest.$ac_ext <<_ACEOF
26388 /* confdefs.h.  */
26389 _ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h.  */
26393 $ac_includes_default
26394 #ifndef offsetof
26395 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26396 #endif
26397 typedef struct { char x; int y; } ac__type_alignof_;
26398 int
26399 main ()
26400 {
26401 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26402 test_array [0] = 0
26403
26404   ;
26405   return 0;
26406 }
26407 _ACEOF
26408 rm -f conftest.$ac_objext
26409 if { (ac_try="$ac_compile"
26410 case "(($ac_try" in
26411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412   *) ac_try_echo=$ac_try;;
26413 esac
26414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26415 $as_echo "$ac_try_echo") >&5
26416   (eval "$ac_compile") 2>conftest.er1
26417   ac_status=$?
26418   grep -v '^ *+' conftest.er1 >conftest.err
26419   rm -f conftest.er1
26420   cat conftest.err >&5
26421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422   (exit $ac_status); } && {
26423          test -z "$ac_c_werror_flag" ||
26424          test ! -s conftest.err
26425        } && test -s conftest.$ac_objext; then
26426   ac_lo=$ac_mid; break
26427 else
26428   $as_echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26430
26431         ac_hi=`expr '(' $ac_mid ')' - 1`
26432                         if test $ac_mid -le $ac_hi; then
26433                           ac_lo= ac_hi=
26434                           break
26435                         fi
26436                         ac_mid=`expr 2 '*' $ac_mid`
26437 fi
26438
26439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26440   done
26441 else
26442   $as_echo "$as_me: failed program was:" >&5
26443 sed 's/^/| /' conftest.$ac_ext >&5
26444
26445         ac_lo= ac_hi=
26446 fi
26447
26448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26449 fi
26450
26451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26452 # Binary search between lo and hi bounds.
26453 while test "x$ac_lo" != "x$ac_hi"; do
26454   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26455   cat >conftest.$ac_ext <<_ACEOF
26456 /* confdefs.h.  */
26457 _ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h.  */
26461 $ac_includes_default
26462 #ifndef offsetof
26463 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26464 #endif
26465 typedef struct { char x; int y; } ac__type_alignof_;
26466 int
26467 main ()
26468 {
26469 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26470 test_array [0] = 0
26471
26472   ;
26473   return 0;
26474 }
26475 _ACEOF
26476 rm -f conftest.$ac_objext
26477 if { (ac_try="$ac_compile"
26478 case "(($ac_try" in
26479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26480   *) ac_try_echo=$ac_try;;
26481 esac
26482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26483 $as_echo "$ac_try_echo") >&5
26484   (eval "$ac_compile") 2>conftest.er1
26485   ac_status=$?
26486   grep -v '^ *+' conftest.er1 >conftest.err
26487   rm -f conftest.er1
26488   cat conftest.err >&5
26489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490   (exit $ac_status); } && {
26491          test -z "$ac_c_werror_flag" ||
26492          test ! -s conftest.err
26493        } && test -s conftest.$ac_objext; then
26494   ac_hi=$ac_mid
26495 else
26496   $as_echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26498
26499         ac_lo=`expr '(' $ac_mid ')' + 1`
26500 fi
26501
26502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26503 done
26504 case $ac_lo in
26505 ?*) ac_cv_alignof_int=$ac_lo;;
26506 '') if test "$ac_cv_type_int" = yes; then
26507      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26509 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26510 See \`config.log' for more details." >&5
26511 $as_echo "$as_me: error: cannot compute alignment of int
26512 See \`config.log' for more details." >&2;}
26513    { (exit 77); exit 77; }; }; }
26514    else
26515      ac_cv_alignof_int=0
26516    fi ;;
26517 esac
26518 else
26519   cat >conftest.$ac_ext <<_ACEOF
26520 /* confdefs.h.  */
26521 _ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h.  */
26525 $ac_includes_default
26526 #ifndef offsetof
26527 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26528 #endif
26529 typedef struct { char x; int y; } ac__type_alignof_;
26530 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26531 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26532 #include <stdio.h>
26533 #include <stdlib.h>
26534 int
26535 main ()
26536 {
26537
26538   FILE *f = fopen ("conftest.val", "w");
26539   if (! f)
26540     return 1;
26541   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26542     {
26543       long int i = longval ();
26544       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26545         return 1;
26546       fprintf (f, "%ld", i);
26547     }
26548   else
26549     {
26550       unsigned long int i = ulongval ();
26551       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26552         return 1;
26553       fprintf (f, "%lu", i);
26554     }
26555   /* Do not output a trailing newline, as this causes \r\n confusion
26556      on some platforms.  */
26557   return ferror (f) || fclose (f) != 0;
26558
26559   ;
26560   return 0;
26561 }
26562 _ACEOF
26563 rm -f conftest$ac_exeext
26564 if { (ac_try="$ac_link"
26565 case "(($ac_try" in
26566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26567   *) ac_try_echo=$ac_try;;
26568 esac
26569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26570 $as_echo "$ac_try_echo") >&5
26571   (eval "$ac_link") 2>&5
26572   ac_status=$?
26573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26575   { (case "(($ac_try" in
26576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26577   *) ac_try_echo=$ac_try;;
26578 esac
26579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26580 $as_echo "$ac_try_echo") >&5
26581   (eval "$ac_try") 2>&5
26582   ac_status=$?
26583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584   (exit $ac_status); }; }; then
26585   ac_cv_alignof_int=`cat conftest.val`
26586 else
26587   $as_echo "$as_me: program exited with status $ac_status" >&5
26588 $as_echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26590
26591 ( exit $ac_status )
26592 if test "$ac_cv_type_int" = yes; then
26593      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26595 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26596 See \`config.log' for more details." >&5
26597 $as_echo "$as_me: error: cannot compute alignment of int
26598 See \`config.log' for more details." >&2;}
26599    { (exit 77); exit 77; }; }; }
26600    else
26601      ac_cv_alignof_int=0
26602    fi
26603 fi
26604 rm -rf conftest.dSYM
26605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26606 fi
26607 rm -f conftest.val
26608 fi
26609 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26610 $as_echo "$ac_cv_alignof_int" >&6; }
26611
26612
26613
26614 cat >>confdefs.h <<_ACEOF
26615 #define ALIGNOF_INT $ac_cv_alignof_int
26616 _ACEOF
26617
26618
26619 # The cast to long int works around a bug in the HP C Compiler,
26620 # see AC_CHECK_SIZEOF for more information.
26621 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26622 $as_echo_n "checking alignment of long... " >&6; }
26623 if test "${ac_cv_alignof_long+set}" = set; then
26624   $as_echo_n "(cached) " >&6
26625 else
26626   if test "$cross_compiling" = yes; then
26627   # Depending upon the size, compute the lo and hi bounds.
26628 cat >conftest.$ac_ext <<_ACEOF
26629 /* confdefs.h.  */
26630 _ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h.  */
26634 $ac_includes_default
26635 #ifndef offsetof
26636 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26637 #endif
26638 typedef struct { char x; long y; } ac__type_alignof_;
26639 int
26640 main ()
26641 {
26642 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26643 test_array [0] = 0
26644
26645   ;
26646   return 0;
26647 }
26648 _ACEOF
26649 rm -f conftest.$ac_objext
26650 if { (ac_try="$ac_compile"
26651 case "(($ac_try" in
26652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26653   *) ac_try_echo=$ac_try;;
26654 esac
26655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26656 $as_echo "$ac_try_echo") >&5
26657   (eval "$ac_compile") 2>conftest.er1
26658   ac_status=$?
26659   grep -v '^ *+' conftest.er1 >conftest.err
26660   rm -f conftest.er1
26661   cat conftest.err >&5
26662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663   (exit $ac_status); } && {
26664          test -z "$ac_c_werror_flag" ||
26665          test ! -s conftest.err
26666        } && test -s conftest.$ac_objext; then
26667   ac_lo=0 ac_mid=0
26668   while :; do
26669     cat >conftest.$ac_ext <<_ACEOF
26670 /* confdefs.h.  */
26671 _ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h.  */
26675 $ac_includes_default
26676 #ifndef offsetof
26677 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26678 #endif
26679 typedef struct { char x; long y; } ac__type_alignof_;
26680 int
26681 main ()
26682 {
26683 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26684 test_array [0] = 0
26685
26686   ;
26687   return 0;
26688 }
26689 _ACEOF
26690 rm -f conftest.$ac_objext
26691 if { (ac_try="$ac_compile"
26692 case "(($ac_try" in
26693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26694   *) ac_try_echo=$ac_try;;
26695 esac
26696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26697 $as_echo "$ac_try_echo") >&5
26698   (eval "$ac_compile") 2>conftest.er1
26699   ac_status=$?
26700   grep -v '^ *+' conftest.er1 >conftest.err
26701   rm -f conftest.er1
26702   cat conftest.err >&5
26703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704   (exit $ac_status); } && {
26705          test -z "$ac_c_werror_flag" ||
26706          test ! -s conftest.err
26707        } && test -s conftest.$ac_objext; then
26708   ac_hi=$ac_mid; break
26709 else
26710   $as_echo "$as_me: failed program was:" >&5
26711 sed 's/^/| /' conftest.$ac_ext >&5
26712
26713         ac_lo=`expr $ac_mid + 1`
26714                         if test $ac_lo -le $ac_mid; then
26715                           ac_lo= ac_hi=
26716                           break
26717                         fi
26718                         ac_mid=`expr 2 '*' $ac_mid + 1`
26719 fi
26720
26721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26722   done
26723 else
26724   $as_echo "$as_me: failed program was:" >&5
26725 sed 's/^/| /' conftest.$ac_ext >&5
26726
26727         cat >conftest.$ac_ext <<_ACEOF
26728 /* confdefs.h.  */
26729 _ACEOF
26730 cat confdefs.h >>conftest.$ac_ext
26731 cat >>conftest.$ac_ext <<_ACEOF
26732 /* end confdefs.h.  */
26733 $ac_includes_default
26734 #ifndef offsetof
26735 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26736 #endif
26737 typedef struct { char x; long y; } ac__type_alignof_;
26738 int
26739 main ()
26740 {
26741 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26742 test_array [0] = 0
26743
26744   ;
26745   return 0;
26746 }
26747 _ACEOF
26748 rm -f conftest.$ac_objext
26749 if { (ac_try="$ac_compile"
26750 case "(($ac_try" in
26751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26752   *) ac_try_echo=$ac_try;;
26753 esac
26754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26755 $as_echo "$ac_try_echo") >&5
26756   (eval "$ac_compile") 2>conftest.er1
26757   ac_status=$?
26758   grep -v '^ *+' conftest.er1 >conftest.err
26759   rm -f conftest.er1
26760   cat conftest.err >&5
26761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762   (exit $ac_status); } && {
26763          test -z "$ac_c_werror_flag" ||
26764          test ! -s conftest.err
26765        } && test -s conftest.$ac_objext; then
26766   ac_hi=-1 ac_mid=-1
26767   while :; do
26768     cat >conftest.$ac_ext <<_ACEOF
26769 /* confdefs.h.  */
26770 _ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h.  */
26774 $ac_includes_default
26775 #ifndef offsetof
26776 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26777 #endif
26778 typedef struct { char x; long y; } ac__type_alignof_;
26779 int
26780 main ()
26781 {
26782 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26783 test_array [0] = 0
26784
26785   ;
26786   return 0;
26787 }
26788 _ACEOF
26789 rm -f conftest.$ac_objext
26790 if { (ac_try="$ac_compile"
26791 case "(($ac_try" in
26792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26793   *) ac_try_echo=$ac_try;;
26794 esac
26795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26796 $as_echo "$ac_try_echo") >&5
26797   (eval "$ac_compile") 2>conftest.er1
26798   ac_status=$?
26799   grep -v '^ *+' conftest.er1 >conftest.err
26800   rm -f conftest.er1
26801   cat conftest.err >&5
26802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803   (exit $ac_status); } && {
26804          test -z "$ac_c_werror_flag" ||
26805          test ! -s conftest.err
26806        } && test -s conftest.$ac_objext; then
26807   ac_lo=$ac_mid; break
26808 else
26809   $as_echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26811
26812         ac_hi=`expr '(' $ac_mid ')' - 1`
26813                         if test $ac_mid -le $ac_hi; then
26814                           ac_lo= ac_hi=
26815                           break
26816                         fi
26817                         ac_mid=`expr 2 '*' $ac_mid`
26818 fi
26819
26820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26821   done
26822 else
26823   $as_echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26825
26826         ac_lo= ac_hi=
26827 fi
26828
26829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26830 fi
26831
26832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26833 # Binary search between lo and hi bounds.
26834 while test "x$ac_lo" != "x$ac_hi"; do
26835   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26836   cat >conftest.$ac_ext <<_ACEOF
26837 /* confdefs.h.  */
26838 _ACEOF
26839 cat confdefs.h >>conftest.$ac_ext
26840 cat >>conftest.$ac_ext <<_ACEOF
26841 /* end confdefs.h.  */
26842 $ac_includes_default
26843 #ifndef offsetof
26844 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26845 #endif
26846 typedef struct { char x; long y; } ac__type_alignof_;
26847 int
26848 main ()
26849 {
26850 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26851 test_array [0] = 0
26852
26853   ;
26854   return 0;
26855 }
26856 _ACEOF
26857 rm -f conftest.$ac_objext
26858 if { (ac_try="$ac_compile"
26859 case "(($ac_try" in
26860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26861   *) ac_try_echo=$ac_try;;
26862 esac
26863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26864 $as_echo "$ac_try_echo") >&5
26865   (eval "$ac_compile") 2>conftest.er1
26866   ac_status=$?
26867   grep -v '^ *+' conftest.er1 >conftest.err
26868   rm -f conftest.er1
26869   cat conftest.err >&5
26870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871   (exit $ac_status); } && {
26872          test -z "$ac_c_werror_flag" ||
26873          test ! -s conftest.err
26874        } && test -s conftest.$ac_objext; then
26875   ac_hi=$ac_mid
26876 else
26877   $as_echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26879
26880         ac_lo=`expr '(' $ac_mid ')' + 1`
26881 fi
26882
26883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26884 done
26885 case $ac_lo in
26886 ?*) ac_cv_alignof_long=$ac_lo;;
26887 '') if test "$ac_cv_type_long" = yes; then
26888      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26890 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26891 See \`config.log' for more details." >&5
26892 $as_echo "$as_me: error: cannot compute alignment of long
26893 See \`config.log' for more details." >&2;}
26894    { (exit 77); exit 77; }; }; }
26895    else
26896      ac_cv_alignof_long=0
26897    fi ;;
26898 esac
26899 else
26900   cat >conftest.$ac_ext <<_ACEOF
26901 /* confdefs.h.  */
26902 _ACEOF
26903 cat confdefs.h >>conftest.$ac_ext
26904 cat >>conftest.$ac_ext <<_ACEOF
26905 /* end confdefs.h.  */
26906 $ac_includes_default
26907 #ifndef offsetof
26908 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26909 #endif
26910 typedef struct { char x; long y; } ac__type_alignof_;
26911 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26912 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26913 #include <stdio.h>
26914 #include <stdlib.h>
26915 int
26916 main ()
26917 {
26918
26919   FILE *f = fopen ("conftest.val", "w");
26920   if (! f)
26921     return 1;
26922   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26923     {
26924       long int i = longval ();
26925       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26926         return 1;
26927       fprintf (f, "%ld", i);
26928     }
26929   else
26930     {
26931       unsigned long int i = ulongval ();
26932       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26933         return 1;
26934       fprintf (f, "%lu", i);
26935     }
26936   /* Do not output a trailing newline, as this causes \r\n confusion
26937      on some platforms.  */
26938   return ferror (f) || fclose (f) != 0;
26939
26940   ;
26941   return 0;
26942 }
26943 _ACEOF
26944 rm -f conftest$ac_exeext
26945 if { (ac_try="$ac_link"
26946 case "(($ac_try" in
26947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948   *) ac_try_echo=$ac_try;;
26949 esac
26950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26951 $as_echo "$ac_try_echo") >&5
26952   (eval "$ac_link") 2>&5
26953   ac_status=$?
26954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26956   { (case "(($ac_try" in
26957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26958   *) ac_try_echo=$ac_try;;
26959 esac
26960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26961 $as_echo "$ac_try_echo") >&5
26962   (eval "$ac_try") 2>&5
26963   ac_status=$?
26964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965   (exit $ac_status); }; }; then
26966   ac_cv_alignof_long=`cat conftest.val`
26967 else
26968   $as_echo "$as_me: program exited with status $ac_status" >&5
26969 $as_echo "$as_me: failed program was:" >&5
26970 sed 's/^/| /' conftest.$ac_ext >&5
26971
26972 ( exit $ac_status )
26973 if test "$ac_cv_type_long" = yes; then
26974      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26976 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26977 See \`config.log' for more details." >&5
26978 $as_echo "$as_me: error: cannot compute alignment of long
26979 See \`config.log' for more details." >&2;}
26980    { (exit 77); exit 77; }; }; }
26981    else
26982      ac_cv_alignof_long=0
26983    fi
26984 fi
26985 rm -rf conftest.dSYM
26986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26987 fi
26988 rm -f conftest.val
26989 fi
26990 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26991 $as_echo "$ac_cv_alignof_long" >&6; }
26992
26993
26994
26995 cat >>confdefs.h <<_ACEOF
26996 #define ALIGNOF_LONG $ac_cv_alignof_long
26997 _ACEOF
26998
26999
27000 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
27001   # The cast to long int works around a bug in the HP C Compiler,
27002 # see AC_CHECK_SIZEOF for more information.
27003 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
27004 $as_echo_n "checking alignment of long long int... " >&6; }
27005 if test "${ac_cv_alignof_long_long_int+set}" = set; then
27006   $as_echo_n "(cached) " >&6
27007 else
27008   if test "$cross_compiling" = yes; then
27009   # Depending upon the size, compute the lo and hi bounds.
27010 cat >conftest.$ac_ext <<_ACEOF
27011 /* confdefs.h.  */
27012 _ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h.  */
27016 $ac_includes_default
27017 #ifndef offsetof
27018 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27019 #endif
27020 typedef struct { char x; long long int y; } ac__type_alignof_;
27021 int
27022 main ()
27023 {
27024 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27025 test_array [0] = 0
27026
27027   ;
27028   return 0;
27029 }
27030 _ACEOF
27031 rm -f conftest.$ac_objext
27032 if { (ac_try="$ac_compile"
27033 case "(($ac_try" in
27034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035   *) ac_try_echo=$ac_try;;
27036 esac
27037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27038 $as_echo "$ac_try_echo") >&5
27039   (eval "$ac_compile") 2>conftest.er1
27040   ac_status=$?
27041   grep -v '^ *+' conftest.er1 >conftest.err
27042   rm -f conftest.er1
27043   cat conftest.err >&5
27044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045   (exit $ac_status); } && {
27046          test -z "$ac_c_werror_flag" ||
27047          test ! -s conftest.err
27048        } && test -s conftest.$ac_objext; then
27049   ac_lo=0 ac_mid=0
27050   while :; do
27051     cat >conftest.$ac_ext <<_ACEOF
27052 /* confdefs.h.  */
27053 _ACEOF
27054 cat confdefs.h >>conftest.$ac_ext
27055 cat >>conftest.$ac_ext <<_ACEOF
27056 /* end confdefs.h.  */
27057 $ac_includes_default
27058 #ifndef offsetof
27059 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27060 #endif
27061 typedef struct { char x; long long int y; } ac__type_alignof_;
27062 int
27063 main ()
27064 {
27065 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27066 test_array [0] = 0
27067
27068   ;
27069   return 0;
27070 }
27071 _ACEOF
27072 rm -f conftest.$ac_objext
27073 if { (ac_try="$ac_compile"
27074 case "(($ac_try" in
27075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27076   *) ac_try_echo=$ac_try;;
27077 esac
27078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27079 $as_echo "$ac_try_echo") >&5
27080   (eval "$ac_compile") 2>conftest.er1
27081   ac_status=$?
27082   grep -v '^ *+' conftest.er1 >conftest.err
27083   rm -f conftest.er1
27084   cat conftest.err >&5
27085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086   (exit $ac_status); } && {
27087          test -z "$ac_c_werror_flag" ||
27088          test ! -s conftest.err
27089        } && test -s conftest.$ac_objext; then
27090   ac_hi=$ac_mid; break
27091 else
27092   $as_echo "$as_me: failed program was:" >&5
27093 sed 's/^/| /' conftest.$ac_ext >&5
27094
27095         ac_lo=`expr $ac_mid + 1`
27096                         if test $ac_lo -le $ac_mid; then
27097                           ac_lo= ac_hi=
27098                           break
27099                         fi
27100                         ac_mid=`expr 2 '*' $ac_mid + 1`
27101 fi
27102
27103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27104   done
27105 else
27106   $as_echo "$as_me: failed program was:" >&5
27107 sed 's/^/| /' conftest.$ac_ext >&5
27108
27109         cat >conftest.$ac_ext <<_ACEOF
27110 /* confdefs.h.  */
27111 _ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h.  */
27115 $ac_includes_default
27116 #ifndef offsetof
27117 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27118 #endif
27119 typedef struct { char x; long long int y; } ac__type_alignof_;
27120 int
27121 main ()
27122 {
27123 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27124 test_array [0] = 0
27125
27126   ;
27127   return 0;
27128 }
27129 _ACEOF
27130 rm -f conftest.$ac_objext
27131 if { (ac_try="$ac_compile"
27132 case "(($ac_try" in
27133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134   *) ac_try_echo=$ac_try;;
27135 esac
27136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27137 $as_echo "$ac_try_echo") >&5
27138   (eval "$ac_compile") 2>conftest.er1
27139   ac_status=$?
27140   grep -v '^ *+' conftest.er1 >conftest.err
27141   rm -f conftest.er1
27142   cat conftest.err >&5
27143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144   (exit $ac_status); } && {
27145          test -z "$ac_c_werror_flag" ||
27146          test ! -s conftest.err
27147        } && test -s conftest.$ac_objext; then
27148   ac_hi=-1 ac_mid=-1
27149   while :; do
27150     cat >conftest.$ac_ext <<_ACEOF
27151 /* confdefs.h.  */
27152 _ACEOF
27153 cat confdefs.h >>conftest.$ac_ext
27154 cat >>conftest.$ac_ext <<_ACEOF
27155 /* end confdefs.h.  */
27156 $ac_includes_default
27157 #ifndef offsetof
27158 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27159 #endif
27160 typedef struct { char x; long long int y; } ac__type_alignof_;
27161 int
27162 main ()
27163 {
27164 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27165 test_array [0] = 0
27166
27167   ;
27168   return 0;
27169 }
27170 _ACEOF
27171 rm -f conftest.$ac_objext
27172 if { (ac_try="$ac_compile"
27173 case "(($ac_try" in
27174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175   *) ac_try_echo=$ac_try;;
27176 esac
27177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27178 $as_echo "$ac_try_echo") >&5
27179   (eval "$ac_compile") 2>conftest.er1
27180   ac_status=$?
27181   grep -v '^ *+' conftest.er1 >conftest.err
27182   rm -f conftest.er1
27183   cat conftest.err >&5
27184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185   (exit $ac_status); } && {
27186          test -z "$ac_c_werror_flag" ||
27187          test ! -s conftest.err
27188        } && test -s conftest.$ac_objext; then
27189   ac_lo=$ac_mid; break
27190 else
27191   $as_echo "$as_me: failed program was:" >&5
27192 sed 's/^/| /' conftest.$ac_ext >&5
27193
27194         ac_hi=`expr '(' $ac_mid ')' - 1`
27195                         if test $ac_mid -le $ac_hi; then
27196                           ac_lo= ac_hi=
27197                           break
27198                         fi
27199                         ac_mid=`expr 2 '*' $ac_mid`
27200 fi
27201
27202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27203   done
27204 else
27205   $as_echo "$as_me: failed program was:" >&5
27206 sed 's/^/| /' conftest.$ac_ext >&5
27207
27208         ac_lo= ac_hi=
27209 fi
27210
27211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27212 fi
27213
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27215 # Binary search between lo and hi bounds.
27216 while test "x$ac_lo" != "x$ac_hi"; do
27217   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27218   cat >conftest.$ac_ext <<_ACEOF
27219 /* confdefs.h.  */
27220 _ACEOF
27221 cat confdefs.h >>conftest.$ac_ext
27222 cat >>conftest.$ac_ext <<_ACEOF
27223 /* end confdefs.h.  */
27224 $ac_includes_default
27225 #ifndef offsetof
27226 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27227 #endif
27228 typedef struct { char x; long long int y; } ac__type_alignof_;
27229 int
27230 main ()
27231 {
27232 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27233 test_array [0] = 0
27234
27235   ;
27236   return 0;
27237 }
27238 _ACEOF
27239 rm -f conftest.$ac_objext
27240 if { (ac_try="$ac_compile"
27241 case "(($ac_try" in
27242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27243   *) ac_try_echo=$ac_try;;
27244 esac
27245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27246 $as_echo "$ac_try_echo") >&5
27247   (eval "$ac_compile") 2>conftest.er1
27248   ac_status=$?
27249   grep -v '^ *+' conftest.er1 >conftest.err
27250   rm -f conftest.er1
27251   cat conftest.err >&5
27252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253   (exit $ac_status); } && {
27254          test -z "$ac_c_werror_flag" ||
27255          test ! -s conftest.err
27256        } && test -s conftest.$ac_objext; then
27257   ac_hi=$ac_mid
27258 else
27259   $as_echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27261
27262         ac_lo=`expr '(' $ac_mid ')' + 1`
27263 fi
27264
27265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27266 done
27267 case $ac_lo in
27268 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27269 '') if test "$ac_cv_type_long_long_int" = yes; then
27270      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27272 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27273 See \`config.log' for more details." >&5
27274 $as_echo "$as_me: error: cannot compute alignment of long long int
27275 See \`config.log' for more details." >&2;}
27276    { (exit 77); exit 77; }; }; }
27277    else
27278      ac_cv_alignof_long_long_int=0
27279    fi ;;
27280 esac
27281 else
27282   cat >conftest.$ac_ext <<_ACEOF
27283 /* confdefs.h.  */
27284 _ACEOF
27285 cat confdefs.h >>conftest.$ac_ext
27286 cat >>conftest.$ac_ext <<_ACEOF
27287 /* end confdefs.h.  */
27288 $ac_includes_default
27289 #ifndef offsetof
27290 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27291 #endif
27292 typedef struct { char x; long long int y; } ac__type_alignof_;
27293 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27294 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27295 #include <stdio.h>
27296 #include <stdlib.h>
27297 int
27298 main ()
27299 {
27300
27301   FILE *f = fopen ("conftest.val", "w");
27302   if (! f)
27303     return 1;
27304   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27305     {
27306       long int i = longval ();
27307       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27308         return 1;
27309       fprintf (f, "%ld", i);
27310     }
27311   else
27312     {
27313       unsigned long int i = ulongval ();
27314       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27315         return 1;
27316       fprintf (f, "%lu", i);
27317     }
27318   /* Do not output a trailing newline, as this causes \r\n confusion
27319      on some platforms.  */
27320   return ferror (f) || fclose (f) != 0;
27321
27322   ;
27323   return 0;
27324 }
27325 _ACEOF
27326 rm -f conftest$ac_exeext
27327 if { (ac_try="$ac_link"
27328 case "(($ac_try" in
27329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27330   *) ac_try_echo=$ac_try;;
27331 esac
27332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27333 $as_echo "$ac_try_echo") >&5
27334   (eval "$ac_link") 2>&5
27335   ac_status=$?
27336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27338   { (case "(($ac_try" in
27339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27340   *) ac_try_echo=$ac_try;;
27341 esac
27342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27343 $as_echo "$ac_try_echo") >&5
27344   (eval "$ac_try") 2>&5
27345   ac_status=$?
27346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347   (exit $ac_status); }; }; then
27348   ac_cv_alignof_long_long_int=`cat conftest.val`
27349 else
27350   $as_echo "$as_me: program exited with status $ac_status" >&5
27351 $as_echo "$as_me: failed program was:" >&5
27352 sed 's/^/| /' conftest.$ac_ext >&5
27353
27354 ( exit $ac_status )
27355 if test "$ac_cv_type_long_long_int" = yes; then
27356      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27358 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27359 See \`config.log' for more details." >&5
27360 $as_echo "$as_me: error: cannot compute alignment of long long int
27361 See \`config.log' for more details." >&2;}
27362    { (exit 77); exit 77; }; }; }
27363    else
27364      ac_cv_alignof_long_long_int=0
27365    fi
27366 fi
27367 rm -rf conftest.dSYM
27368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27369 fi
27370 rm -f conftest.val
27371 fi
27372 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27373 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27374
27375
27376
27377 cat >>confdefs.h <<_ACEOF
27378 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27379 _ACEOF
27380
27381
27382 fi
27383 # The cast to long int works around a bug in the HP C Compiler,
27384 # see AC_CHECK_SIZEOF for more information.
27385 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27386 $as_echo_n "checking alignment of double... " >&6; }
27387 if test "${ac_cv_alignof_double+set}" = set; then
27388   $as_echo_n "(cached) " >&6
27389 else
27390   if test "$cross_compiling" = yes; then
27391   # Depending upon the size, compute the lo and hi bounds.
27392 cat >conftest.$ac_ext <<_ACEOF
27393 /* confdefs.h.  */
27394 _ACEOF
27395 cat confdefs.h >>conftest.$ac_ext
27396 cat >>conftest.$ac_ext <<_ACEOF
27397 /* end confdefs.h.  */
27398 $ac_includes_default
27399 #ifndef offsetof
27400 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27401 #endif
27402 typedef struct { char x; double y; } ac__type_alignof_;
27403 int
27404 main ()
27405 {
27406 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27407 test_array [0] = 0
27408
27409   ;
27410   return 0;
27411 }
27412 _ACEOF
27413 rm -f conftest.$ac_objext
27414 if { (ac_try="$ac_compile"
27415 case "(($ac_try" in
27416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417   *) ac_try_echo=$ac_try;;
27418 esac
27419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27420 $as_echo "$ac_try_echo") >&5
27421   (eval "$ac_compile") 2>conftest.er1
27422   ac_status=$?
27423   grep -v '^ *+' conftest.er1 >conftest.err
27424   rm -f conftest.er1
27425   cat conftest.err >&5
27426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427   (exit $ac_status); } && {
27428          test -z "$ac_c_werror_flag" ||
27429          test ! -s conftest.err
27430        } && test -s conftest.$ac_objext; then
27431   ac_lo=0 ac_mid=0
27432   while :; do
27433     cat >conftest.$ac_ext <<_ACEOF
27434 /* confdefs.h.  */
27435 _ACEOF
27436 cat confdefs.h >>conftest.$ac_ext
27437 cat >>conftest.$ac_ext <<_ACEOF
27438 /* end confdefs.h.  */
27439 $ac_includes_default
27440 #ifndef offsetof
27441 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27442 #endif
27443 typedef struct { char x; double y; } ac__type_alignof_;
27444 int
27445 main ()
27446 {
27447 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27448 test_array [0] = 0
27449
27450   ;
27451   return 0;
27452 }
27453 _ACEOF
27454 rm -f conftest.$ac_objext
27455 if { (ac_try="$ac_compile"
27456 case "(($ac_try" in
27457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27458   *) ac_try_echo=$ac_try;;
27459 esac
27460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27461 $as_echo "$ac_try_echo") >&5
27462   (eval "$ac_compile") 2>conftest.er1
27463   ac_status=$?
27464   grep -v '^ *+' conftest.er1 >conftest.err
27465   rm -f conftest.er1
27466   cat conftest.err >&5
27467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468   (exit $ac_status); } && {
27469          test -z "$ac_c_werror_flag" ||
27470          test ! -s conftest.err
27471        } && test -s conftest.$ac_objext; then
27472   ac_hi=$ac_mid; break
27473 else
27474   $as_echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27476
27477         ac_lo=`expr $ac_mid + 1`
27478                         if test $ac_lo -le $ac_mid; then
27479                           ac_lo= ac_hi=
27480                           break
27481                         fi
27482                         ac_mid=`expr 2 '*' $ac_mid + 1`
27483 fi
27484
27485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27486   done
27487 else
27488   $as_echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27490
27491         cat >conftest.$ac_ext <<_ACEOF
27492 /* confdefs.h.  */
27493 _ACEOF
27494 cat confdefs.h >>conftest.$ac_ext
27495 cat >>conftest.$ac_ext <<_ACEOF
27496 /* end confdefs.h.  */
27497 $ac_includes_default
27498 #ifndef offsetof
27499 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27500 #endif
27501 typedef struct { char x; double y; } ac__type_alignof_;
27502 int
27503 main ()
27504 {
27505 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27506 test_array [0] = 0
27507
27508   ;
27509   return 0;
27510 }
27511 _ACEOF
27512 rm -f conftest.$ac_objext
27513 if { (ac_try="$ac_compile"
27514 case "(($ac_try" in
27515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516   *) ac_try_echo=$ac_try;;
27517 esac
27518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27519 $as_echo "$ac_try_echo") >&5
27520   (eval "$ac_compile") 2>conftest.er1
27521   ac_status=$?
27522   grep -v '^ *+' conftest.er1 >conftest.err
27523   rm -f conftest.er1
27524   cat conftest.err >&5
27525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526   (exit $ac_status); } && {
27527          test -z "$ac_c_werror_flag" ||
27528          test ! -s conftest.err
27529        } && test -s conftest.$ac_objext; then
27530   ac_hi=-1 ac_mid=-1
27531   while :; do
27532     cat >conftest.$ac_ext <<_ACEOF
27533 /* confdefs.h.  */
27534 _ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h.  */
27538 $ac_includes_default
27539 #ifndef offsetof
27540 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27541 #endif
27542 typedef struct { char x; double y; } ac__type_alignof_;
27543 int
27544 main ()
27545 {
27546 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27547 test_array [0] = 0
27548
27549   ;
27550   return 0;
27551 }
27552 _ACEOF
27553 rm -f conftest.$ac_objext
27554 if { (ac_try="$ac_compile"
27555 case "(($ac_try" in
27556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557   *) ac_try_echo=$ac_try;;
27558 esac
27559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27560 $as_echo "$ac_try_echo") >&5
27561   (eval "$ac_compile") 2>conftest.er1
27562   ac_status=$?
27563   grep -v '^ *+' conftest.er1 >conftest.err
27564   rm -f conftest.er1
27565   cat conftest.err >&5
27566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567   (exit $ac_status); } && {
27568          test -z "$ac_c_werror_flag" ||
27569          test ! -s conftest.err
27570        } && test -s conftest.$ac_objext; then
27571   ac_lo=$ac_mid; break
27572 else
27573   $as_echo "$as_me: failed program was:" >&5
27574 sed 's/^/| /' conftest.$ac_ext >&5
27575
27576         ac_hi=`expr '(' $ac_mid ')' - 1`
27577                         if test $ac_mid -le $ac_hi; then
27578                           ac_lo= ac_hi=
27579                           break
27580                         fi
27581                         ac_mid=`expr 2 '*' $ac_mid`
27582 fi
27583
27584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27585   done
27586 else
27587   $as_echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27589
27590         ac_lo= ac_hi=
27591 fi
27592
27593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27594 fi
27595
27596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27597 # Binary search between lo and hi bounds.
27598 while test "x$ac_lo" != "x$ac_hi"; do
27599   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27600   cat >conftest.$ac_ext <<_ACEOF
27601 /* confdefs.h.  */
27602 _ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h.  */
27606 $ac_includes_default
27607 #ifndef offsetof
27608 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27609 #endif
27610 typedef struct { char x; double y; } ac__type_alignof_;
27611 int
27612 main ()
27613 {
27614 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27615 test_array [0] = 0
27616
27617   ;
27618   return 0;
27619 }
27620 _ACEOF
27621 rm -f conftest.$ac_objext
27622 if { (ac_try="$ac_compile"
27623 case "(($ac_try" in
27624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27625   *) ac_try_echo=$ac_try;;
27626 esac
27627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27628 $as_echo "$ac_try_echo") >&5
27629   (eval "$ac_compile") 2>conftest.er1
27630   ac_status=$?
27631   grep -v '^ *+' conftest.er1 >conftest.err
27632   rm -f conftest.er1
27633   cat conftest.err >&5
27634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635   (exit $ac_status); } && {
27636          test -z "$ac_c_werror_flag" ||
27637          test ! -s conftest.err
27638        } && test -s conftest.$ac_objext; then
27639   ac_hi=$ac_mid
27640 else
27641   $as_echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27643
27644         ac_lo=`expr '(' $ac_mid ')' + 1`
27645 fi
27646
27647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27648 done
27649 case $ac_lo in
27650 ?*) ac_cv_alignof_double=$ac_lo;;
27651 '') if test "$ac_cv_type_double" = yes; then
27652      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27654 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27655 See \`config.log' for more details." >&5
27656 $as_echo "$as_me: error: cannot compute alignment of double
27657 See \`config.log' for more details." >&2;}
27658    { (exit 77); exit 77; }; }; }
27659    else
27660      ac_cv_alignof_double=0
27661    fi ;;
27662 esac
27663 else
27664   cat >conftest.$ac_ext <<_ACEOF
27665 /* confdefs.h.  */
27666 _ACEOF
27667 cat confdefs.h >>conftest.$ac_ext
27668 cat >>conftest.$ac_ext <<_ACEOF
27669 /* end confdefs.h.  */
27670 $ac_includes_default
27671 #ifndef offsetof
27672 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27673 #endif
27674 typedef struct { char x; double y; } ac__type_alignof_;
27675 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27676 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27677 #include <stdio.h>
27678 #include <stdlib.h>
27679 int
27680 main ()
27681 {
27682
27683   FILE *f = fopen ("conftest.val", "w");
27684   if (! f)
27685     return 1;
27686   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27687     {
27688       long int i = longval ();
27689       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27690         return 1;
27691       fprintf (f, "%ld", i);
27692     }
27693   else
27694     {
27695       unsigned long int i = ulongval ();
27696       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27697         return 1;
27698       fprintf (f, "%lu", i);
27699     }
27700   /* Do not output a trailing newline, as this causes \r\n confusion
27701      on some platforms.  */
27702   return ferror (f) || fclose (f) != 0;
27703
27704   ;
27705   return 0;
27706 }
27707 _ACEOF
27708 rm -f conftest$ac_exeext
27709 if { (ac_try="$ac_link"
27710 case "(($ac_try" in
27711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27712   *) ac_try_echo=$ac_try;;
27713 esac
27714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27715 $as_echo "$ac_try_echo") >&5
27716   (eval "$ac_link") 2>&5
27717   ac_status=$?
27718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27720   { (case "(($ac_try" in
27721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722   *) ac_try_echo=$ac_try;;
27723 esac
27724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27725 $as_echo "$ac_try_echo") >&5
27726   (eval "$ac_try") 2>&5
27727   ac_status=$?
27728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729   (exit $ac_status); }; }; then
27730   ac_cv_alignof_double=`cat conftest.val`
27731 else
27732   $as_echo "$as_me: program exited with status $ac_status" >&5
27733 $as_echo "$as_me: failed program was:" >&5
27734 sed 's/^/| /' conftest.$ac_ext >&5
27735
27736 ( exit $ac_status )
27737 if test "$ac_cv_type_double" = yes; then
27738      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27740 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27741 See \`config.log' for more details." >&5
27742 $as_echo "$as_me: error: cannot compute alignment of double
27743 See \`config.log' for more details." >&2;}
27744    { (exit 77); exit 77; }; }; }
27745    else
27746      ac_cv_alignof_double=0
27747    fi
27748 fi
27749 rm -rf conftest.dSYM
27750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27751 fi
27752 rm -f conftest.val
27753 fi
27754 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27755 $as_echo "$ac_cv_alignof_double" >&6; }
27756
27757
27758
27759 cat >>confdefs.h <<_ACEOF
27760 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27761 _ACEOF
27762
27763
27764
27765 # Compute maximum alignment of any basic type.
27766 # We assume long's alignment is at least as strong as char, short, or int;
27767 # but we must check long long (if it exists) and double.
27768
27769 MAX_ALIGNOF=$ac_cv_alignof_long
27770 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27771   MAX_ALIGNOF=$ac_cv_alignof_double
27772 fi
27773 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27774   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27775 fi
27776
27777 cat >>confdefs.h <<_ACEOF
27778 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27779 _ACEOF
27780
27781
27782
27783 # Some platforms predefine the types int8, int16, etc.  Only check
27784 # a (hopefully) representative subset.
27785 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27786 $as_echo_n "checking for int8... " >&6; }
27787 if test "${ac_cv_type_int8+set}" = set; then
27788   $as_echo_n "(cached) " >&6
27789 else
27790   ac_cv_type_int8=no
27791 cat >conftest.$ac_ext <<_ACEOF
27792 /* confdefs.h.  */
27793 _ACEOF
27794 cat confdefs.h >>conftest.$ac_ext
27795 cat >>conftest.$ac_ext <<_ACEOF
27796 /* end confdefs.h.  */
27797 #include <stdio.h>
27798
27799 int
27800 main ()
27801 {
27802 if (sizeof (int8))
27803        return 0;
27804   ;
27805   return 0;
27806 }
27807 _ACEOF
27808 rm -f conftest.$ac_objext
27809 if { (ac_try="$ac_compile"
27810 case "(($ac_try" in
27811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812   *) ac_try_echo=$ac_try;;
27813 esac
27814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27815 $as_echo "$ac_try_echo") >&5
27816   (eval "$ac_compile") 2>conftest.er1
27817   ac_status=$?
27818   grep -v '^ *+' conftest.er1 >conftest.err
27819   rm -f conftest.er1
27820   cat conftest.err >&5
27821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822   (exit $ac_status); } && {
27823          test -z "$ac_c_werror_flag" ||
27824          test ! -s conftest.err
27825        } && test -s conftest.$ac_objext; then
27826   cat >conftest.$ac_ext <<_ACEOF
27827 /* confdefs.h.  */
27828 _ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h.  */
27832 #include <stdio.h>
27833
27834 int
27835 main ()
27836 {
27837 if (sizeof ((int8)))
27838           return 0;
27839   ;
27840   return 0;
27841 }
27842 _ACEOF
27843 rm -f conftest.$ac_objext
27844 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27852   ac_status=$?
27853   grep -v '^ *+' conftest.er1 >conftest.err
27854   rm -f conftest.er1
27855   cat conftest.err >&5
27856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); } && {
27858          test -z "$ac_c_werror_flag" ||
27859          test ! -s conftest.err
27860        } && test -s conftest.$ac_objext; then
27861   :
27862 else
27863   $as_echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27865
27866         ac_cv_type_int8=yes
27867 fi
27868
27869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27870 else
27871   $as_echo "$as_me: failed program was:" >&5
27872 sed 's/^/| /' conftest.$ac_ext >&5
27873
27874
27875 fi
27876
27877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27878 fi
27879 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27880 $as_echo "$ac_cv_type_int8" >&6; }
27881 if test "x$ac_cv_type_int8" = x""yes; then
27882
27883 cat >>confdefs.h <<_ACEOF
27884 #define HAVE_INT8 1
27885 _ACEOF
27886
27887
27888 fi
27889 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27890 $as_echo_n "checking for uint8... " >&6; }
27891 if test "${ac_cv_type_uint8+set}" = set; then
27892   $as_echo_n "(cached) " >&6
27893 else
27894   ac_cv_type_uint8=no
27895 cat >conftest.$ac_ext <<_ACEOF
27896 /* confdefs.h.  */
27897 _ACEOF
27898 cat confdefs.h >>conftest.$ac_ext
27899 cat >>conftest.$ac_ext <<_ACEOF
27900 /* end confdefs.h.  */
27901 #include <stdio.h>
27902
27903 int
27904 main ()
27905 {
27906 if (sizeof (uint8))
27907        return 0;
27908   ;
27909   return 0;
27910 }
27911 _ACEOF
27912 rm -f conftest.$ac_objext
27913 if { (ac_try="$ac_compile"
27914 case "(($ac_try" in
27915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916   *) ac_try_echo=$ac_try;;
27917 esac
27918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27919 $as_echo "$ac_try_echo") >&5
27920   (eval "$ac_compile") 2>conftest.er1
27921   ac_status=$?
27922   grep -v '^ *+' conftest.er1 >conftest.err
27923   rm -f conftest.er1
27924   cat conftest.err >&5
27925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926   (exit $ac_status); } && {
27927          test -z "$ac_c_werror_flag" ||
27928          test ! -s conftest.err
27929        } && test -s conftest.$ac_objext; then
27930   cat >conftest.$ac_ext <<_ACEOF
27931 /* confdefs.h.  */
27932 _ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h.  */
27936 #include <stdio.h>
27937
27938 int
27939 main ()
27940 {
27941 if (sizeof ((uint8)))
27942           return 0;
27943   ;
27944   return 0;
27945 }
27946 _ACEOF
27947 rm -f conftest.$ac_objext
27948 if { (ac_try="$ac_compile"
27949 case "(($ac_try" in
27950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951   *) ac_try_echo=$ac_try;;
27952 esac
27953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27954 $as_echo "$ac_try_echo") >&5
27955   (eval "$ac_compile") 2>conftest.er1
27956   ac_status=$?
27957   grep -v '^ *+' conftest.er1 >conftest.err
27958   rm -f conftest.er1
27959   cat conftest.err >&5
27960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961   (exit $ac_status); } && {
27962          test -z "$ac_c_werror_flag" ||
27963          test ! -s conftest.err
27964        } && test -s conftest.$ac_objext; then
27965   :
27966 else
27967   $as_echo "$as_me: failed program was:" >&5
27968 sed 's/^/| /' conftest.$ac_ext >&5
27969
27970         ac_cv_type_uint8=yes
27971 fi
27972
27973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27974 else
27975   $as_echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27977
27978
27979 fi
27980
27981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27982 fi
27983 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27984 $as_echo "$ac_cv_type_uint8" >&6; }
27985 if test "x$ac_cv_type_uint8" = x""yes; then
27986
27987 cat >>confdefs.h <<_ACEOF
27988 #define HAVE_UINT8 1
27989 _ACEOF
27990
27991
27992 fi
27993 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27994 $as_echo_n "checking for int64... " >&6; }
27995 if test "${ac_cv_type_int64+set}" = set; then
27996   $as_echo_n "(cached) " >&6
27997 else
27998   ac_cv_type_int64=no
27999 cat >conftest.$ac_ext <<_ACEOF
28000 /* confdefs.h.  */
28001 _ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h.  */
28005 #include <stdio.h>
28006
28007 int
28008 main ()
28009 {
28010 if (sizeof (int64))
28011        return 0;
28012   ;
28013   return 0;
28014 }
28015 _ACEOF
28016 rm -f conftest.$ac_objext
28017 if { (ac_try="$ac_compile"
28018 case "(($ac_try" in
28019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28020   *) ac_try_echo=$ac_try;;
28021 esac
28022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28023 $as_echo "$ac_try_echo") >&5
28024   (eval "$ac_compile") 2>conftest.er1
28025   ac_status=$?
28026   grep -v '^ *+' conftest.er1 >conftest.err
28027   rm -f conftest.er1
28028   cat conftest.err >&5
28029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030   (exit $ac_status); } && {
28031          test -z "$ac_c_werror_flag" ||
28032          test ! -s conftest.err
28033        } && test -s conftest.$ac_objext; then
28034   cat >conftest.$ac_ext <<_ACEOF
28035 /* confdefs.h.  */
28036 _ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h.  */
28040 #include <stdio.h>
28041
28042 int
28043 main ()
28044 {
28045 if (sizeof ((int64)))
28046           return 0;
28047   ;
28048   return 0;
28049 }
28050 _ACEOF
28051 rm -f conftest.$ac_objext
28052 if { (ac_try="$ac_compile"
28053 case "(($ac_try" in
28054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055   *) ac_try_echo=$ac_try;;
28056 esac
28057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28058 $as_echo "$ac_try_echo") >&5
28059   (eval "$ac_compile") 2>conftest.er1
28060   ac_status=$?
28061   grep -v '^ *+' conftest.er1 >conftest.err
28062   rm -f conftest.er1
28063   cat conftest.err >&5
28064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); } && {
28066          test -z "$ac_c_werror_flag" ||
28067          test ! -s conftest.err
28068        } && test -s conftest.$ac_objext; then
28069   :
28070 else
28071   $as_echo "$as_me: failed program was:" >&5
28072 sed 's/^/| /' conftest.$ac_ext >&5
28073
28074         ac_cv_type_int64=yes
28075 fi
28076
28077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28078 else
28079   $as_echo "$as_me: failed program was:" >&5
28080 sed 's/^/| /' conftest.$ac_ext >&5
28081
28082
28083 fi
28084
28085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28086 fi
28087 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28088 $as_echo "$ac_cv_type_int64" >&6; }
28089 if test "x$ac_cv_type_int64" = x""yes; then
28090
28091 cat >>confdefs.h <<_ACEOF
28092 #define HAVE_INT64 1
28093 _ACEOF
28094
28095
28096 fi
28097 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28098 $as_echo_n "checking for uint64... " >&6; }
28099 if test "${ac_cv_type_uint64+set}" = set; then
28100   $as_echo_n "(cached) " >&6
28101 else
28102   ac_cv_type_uint64=no
28103 cat >conftest.$ac_ext <<_ACEOF
28104 /* confdefs.h.  */
28105 _ACEOF
28106 cat confdefs.h >>conftest.$ac_ext
28107 cat >>conftest.$ac_ext <<_ACEOF
28108 /* end confdefs.h.  */
28109 #include <stdio.h>
28110
28111 int
28112 main ()
28113 {
28114 if (sizeof (uint64))
28115        return 0;
28116   ;
28117   return 0;
28118 }
28119 _ACEOF
28120 rm -f conftest.$ac_objext
28121 if { (ac_try="$ac_compile"
28122 case "(($ac_try" in
28123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28124   *) ac_try_echo=$ac_try;;
28125 esac
28126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28127 $as_echo "$ac_try_echo") >&5
28128   (eval "$ac_compile") 2>conftest.er1
28129   ac_status=$?
28130   grep -v '^ *+' conftest.er1 >conftest.err
28131   rm -f conftest.er1
28132   cat conftest.err >&5
28133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134   (exit $ac_status); } && {
28135          test -z "$ac_c_werror_flag" ||
28136          test ! -s conftest.err
28137        } && test -s conftest.$ac_objext; then
28138   cat >conftest.$ac_ext <<_ACEOF
28139 /* confdefs.h.  */
28140 _ACEOF
28141 cat confdefs.h >>conftest.$ac_ext
28142 cat >>conftest.$ac_ext <<_ACEOF
28143 /* end confdefs.h.  */
28144 #include <stdio.h>
28145
28146 int
28147 main ()
28148 {
28149 if (sizeof ((uint64)))
28150           return 0;
28151   ;
28152   return 0;
28153 }
28154 _ACEOF
28155 rm -f conftest.$ac_objext
28156 if { (ac_try="$ac_compile"
28157 case "(($ac_try" in
28158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28159   *) ac_try_echo=$ac_try;;
28160 esac
28161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28162 $as_echo "$ac_try_echo") >&5
28163   (eval "$ac_compile") 2>conftest.er1
28164   ac_status=$?
28165   grep -v '^ *+' conftest.er1 >conftest.err
28166   rm -f conftest.er1
28167   cat conftest.err >&5
28168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); } && {
28170          test -z "$ac_c_werror_flag" ||
28171          test ! -s conftest.err
28172        } && test -s conftest.$ac_objext; then
28173   :
28174 else
28175   $as_echo "$as_me: failed program was:" >&5
28176 sed 's/^/| /' conftest.$ac_ext >&5
28177
28178         ac_cv_type_uint64=yes
28179 fi
28180
28181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28182 else
28183   $as_echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28185
28186
28187 fi
28188
28189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28190 fi
28191 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28192 $as_echo "$ac_cv_type_uint64" >&6; }
28193 if test "x$ac_cv_type_uint64" = x""yes; then
28194
28195 cat >>confdefs.h <<_ACEOF
28196 #define HAVE_UINT64 1
28197 _ACEOF
28198
28199
28200 fi
28201
28202
28203 # We also check for sig_atomic_t, which *should* be defined per ANSI
28204 # C, but is missing on some old platforms.
28205 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28206 $as_echo_n "checking for sig_atomic_t... " >&6; }
28207 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28208   $as_echo_n "(cached) " >&6
28209 else
28210   ac_cv_type_sig_atomic_t=no
28211 cat >conftest.$ac_ext <<_ACEOF
28212 /* confdefs.h.  */
28213 _ACEOF
28214 cat confdefs.h >>conftest.$ac_ext
28215 cat >>conftest.$ac_ext <<_ACEOF
28216 /* end confdefs.h.  */
28217 #include <signal.h>
28218
28219 int
28220 main ()
28221 {
28222 if (sizeof (sig_atomic_t))
28223        return 0;
28224   ;
28225   return 0;
28226 }
28227 _ACEOF
28228 rm -f conftest.$ac_objext
28229 if { (ac_try="$ac_compile"
28230 case "(($ac_try" in
28231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28232   *) ac_try_echo=$ac_try;;
28233 esac
28234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28235 $as_echo "$ac_try_echo") >&5
28236   (eval "$ac_compile") 2>conftest.er1
28237   ac_status=$?
28238   grep -v '^ *+' conftest.er1 >conftest.err
28239   rm -f conftest.er1
28240   cat conftest.err >&5
28241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242   (exit $ac_status); } && {
28243          test -z "$ac_c_werror_flag" ||
28244          test ! -s conftest.err
28245        } && test -s conftest.$ac_objext; then
28246   cat >conftest.$ac_ext <<_ACEOF
28247 /* confdefs.h.  */
28248 _ACEOF
28249 cat confdefs.h >>conftest.$ac_ext
28250 cat >>conftest.$ac_ext <<_ACEOF
28251 /* end confdefs.h.  */
28252 #include <signal.h>
28253
28254 int
28255 main ()
28256 {
28257 if (sizeof ((sig_atomic_t)))
28258           return 0;
28259   ;
28260   return 0;
28261 }
28262 _ACEOF
28263 rm -f conftest.$ac_objext
28264 if { (ac_try="$ac_compile"
28265 case "(($ac_try" in
28266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267   *) ac_try_echo=$ac_try;;
28268 esac
28269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28270 $as_echo "$ac_try_echo") >&5
28271   (eval "$ac_compile") 2>conftest.er1
28272   ac_status=$?
28273   grep -v '^ *+' conftest.er1 >conftest.err
28274   rm -f conftest.er1
28275   cat conftest.err >&5
28276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277   (exit $ac_status); } && {
28278          test -z "$ac_c_werror_flag" ||
28279          test ! -s conftest.err
28280        } && test -s conftest.$ac_objext; then
28281   :
28282 else
28283   $as_echo "$as_me: failed program was:" >&5
28284 sed 's/^/| /' conftest.$ac_ext >&5
28285
28286         ac_cv_type_sig_atomic_t=yes
28287 fi
28288
28289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28290 else
28291   $as_echo "$as_me: failed program was:" >&5
28292 sed 's/^/| /' conftest.$ac_ext >&5
28293
28294
28295 fi
28296
28297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28298 fi
28299 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28300 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28301 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28302
28303 cat >>confdefs.h <<_ACEOF
28304 #define HAVE_SIG_ATOMIC_T 1
28305 _ACEOF
28306
28307
28308 fi
28309
28310
28311
28312 if test "$PORTNAME" != "win32"
28313 then
28314 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28315 $as_echo_n "checking for POSIX signal interface... " >&6; }
28316 if test "${pgac_cv_func_posix_signals+set}" = set; then
28317   $as_echo_n "(cached) " >&6
28318 else
28319   cat >conftest.$ac_ext <<_ACEOF
28320 /* confdefs.h.  */
28321 _ACEOF
28322 cat confdefs.h >>conftest.$ac_ext
28323 cat >>conftest.$ac_ext <<_ACEOF
28324 /* end confdefs.h.  */
28325 #include <signal.h>
28326
28327 int
28328 main ()
28329 {
28330 struct sigaction act, oact;
28331 sigemptyset(&act.sa_mask);
28332 act.sa_flags = SA_RESTART;
28333 sigaction(0, &act, &oact);
28334   ;
28335   return 0;
28336 }
28337 _ACEOF
28338 rm -f conftest.$ac_objext conftest$ac_exeext
28339 if { (ac_try="$ac_link"
28340 case "(($ac_try" in
28341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342   *) ac_try_echo=$ac_try;;
28343 esac
28344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28345 $as_echo "$ac_try_echo") >&5
28346   (eval "$ac_link") 2>conftest.er1
28347   ac_status=$?
28348   grep -v '^ *+' conftest.er1 >conftest.err
28349   rm -f conftest.er1
28350   cat conftest.err >&5
28351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352   (exit $ac_status); } && {
28353          test -z "$ac_c_werror_flag" ||
28354          test ! -s conftest.err
28355        } && test -s conftest$ac_exeext && {
28356          test "$cross_compiling" = yes ||
28357          $as_test_x conftest$ac_exeext
28358        }; then
28359   pgac_cv_func_posix_signals=yes
28360 else
28361   $as_echo "$as_me: failed program was:" >&5
28362 sed 's/^/| /' conftest.$ac_ext >&5
28363
28364         pgac_cv_func_posix_signals=no
28365 fi
28366
28367 rm -rf conftest.dSYM
28368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28369       conftest$ac_exeext conftest.$ac_ext
28370 fi
28371 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28372 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28373 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28374
28375 cat >>confdefs.h <<\_ACEOF
28376 #define HAVE_POSIX_SIGNALS /**/
28377 _ACEOF
28378
28379 fi
28380 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28381
28382 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28383   { { $as_echo "$as_me:$LINENO: error:
28384 Thread-safety requires POSIX signals, which are not supported by this
28385 operating system;  use --disable-thread-safety to disable thread safety." >&5
28386 $as_echo "$as_me: error:
28387 Thread-safety requires POSIX signals, which are not supported by this
28388 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28389    { (exit 1); exit 1; }; }
28390 fi
28391 fi
28392
28393 # SunOS doesn't handle negative byte comparisons properly with +/- return
28394 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28395 $as_echo_n "checking for working memcmp... " >&6; }
28396 if test "${ac_cv_func_memcmp_working+set}" = set; then
28397   $as_echo_n "(cached) " >&6
28398 else
28399   if test "$cross_compiling" = yes; then
28400   ac_cv_func_memcmp_working=no
28401 else
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 $ac_includes_default
28409 int
28410 main ()
28411 {
28412
28413   /* Some versions of memcmp are not 8-bit clean.  */
28414   char c0 = '\100', c1 = '\200', c2 = '\201';
28415   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28416     return 1;
28417
28418   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28419      or more and with at least one buffer not starting on a 4-byte boundary.
28420      William Lewis provided this test program.   */
28421   {
28422     char foo[21];
28423     char bar[21];
28424     int i;
28425     for (i = 0; i < 4; i++)
28426       {
28427         char *a = foo + i;
28428         char *b = bar + i;
28429         strcpy (a, "--------01111111");
28430         strcpy (b, "--------10000000");
28431         if (memcmp (a, b, 16) >= 0)
28432           return 1;
28433       }
28434     return 0;
28435   }
28436
28437   ;
28438   return 0;
28439 }
28440 _ACEOF
28441 rm -f conftest$ac_exeext
28442 if { (ac_try="$ac_link"
28443 case "(($ac_try" in
28444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445   *) ac_try_echo=$ac_try;;
28446 esac
28447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28448 $as_echo "$ac_try_echo") >&5
28449   (eval "$ac_link") 2>&5
28450   ac_status=$?
28451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28453   { (case "(($ac_try" in
28454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455   *) ac_try_echo=$ac_try;;
28456 esac
28457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28458 $as_echo "$ac_try_echo") >&5
28459   (eval "$ac_try") 2>&5
28460   ac_status=$?
28461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462   (exit $ac_status); }; }; then
28463   ac_cv_func_memcmp_working=yes
28464 else
28465   $as_echo "$as_me: program exited with status $ac_status" >&5
28466 $as_echo "$as_me: failed program was:" >&5
28467 sed 's/^/| /' conftest.$ac_ext >&5
28468
28469 ( exit $ac_status )
28470 ac_cv_func_memcmp_working=no
28471 fi
28472 rm -rf conftest.dSYM
28473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28474 fi
28475
28476
28477 fi
28478 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28479 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28480 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28481   *" memcmp.$ac_objext "* ) ;;
28482   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28483  ;;
28484 esac
28485
28486
28487
28488
28489 # Select semaphore implementation type.
28490 if test "$PORTNAME" != "win32"; then
28491   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28492
28493 cat >>confdefs.h <<\_ACEOF
28494 #define USE_NAMED_POSIX_SEMAPHORES 1
28495 _ACEOF
28496
28497     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28498   else
28499     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28500
28501 cat >>confdefs.h <<\_ACEOF
28502 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28503 _ACEOF
28504
28505       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28506     else
28507
28508 cat >>confdefs.h <<\_ACEOF
28509 #define USE_SYSV_SEMAPHORES 1
28510 _ACEOF
28511
28512       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28513     fi
28514   fi
28515 else
28516
28517 cat >>confdefs.h <<\_ACEOF
28518 #define USE_WIN32_SEMAPHORES 1
28519 _ACEOF
28520
28521   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28522 fi
28523
28524
28525 # Select shared-memory implementation type.
28526 if test "$PORTNAME" != "win32"; then
28527
28528 cat >>confdefs.h <<\_ACEOF
28529 #define USE_SYSV_SHARED_MEMORY 1
28530 _ACEOF
28531
28532   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28533 else
28534
28535 cat >>confdefs.h <<\_ACEOF
28536 #define USE_WIN32_SHARED_MEMORY 1
28537 _ACEOF
28538
28539   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28540 fi
28541
28542 # Select latch implementation type.
28543 if test "$PORTNAME" != "win32"; then
28544   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28545 else
28546   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28547 fi
28548
28549 # If not set in template file, set bytes to use libc memset()
28550 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28551   MEMSET_LOOP_LIMIT=1024
28552 fi
28553
28554 cat >>confdefs.h <<_ACEOF
28555 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28556 _ACEOF
28557
28558
28559
28560 if test "$enable_nls" = yes ; then
28561
28562   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28563 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28564 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28565   $as_echo_n "(cached) " >&6
28566 else
28567   ac_func_search_save_LIBS=$LIBS
28568 cat >conftest.$ac_ext <<_ACEOF
28569 /* confdefs.h.  */
28570 _ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h.  */
28574
28575 /* Override any GCC internal prototype to avoid an error.
28576    Use char because int might match the return type of a GCC
28577    builtin and then its argument prototype would still apply.  */
28578 #ifdef __cplusplus
28579 extern "C"
28580 #endif
28581 char bind_textdomain_codeset ();
28582 int
28583 main ()
28584 {
28585 return bind_textdomain_codeset ();
28586   ;
28587   return 0;
28588 }
28589 _ACEOF
28590 for ac_lib in '' intl; do
28591   if test -z "$ac_lib"; then
28592     ac_res="none required"
28593   else
28594     ac_res=-l$ac_lib
28595     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28596   fi
28597   rm -f conftest.$ac_objext conftest$ac_exeext
28598 if { (ac_try="$ac_link"
28599 case "(($ac_try" in
28600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28601   *) ac_try_echo=$ac_try;;
28602 esac
28603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28604 $as_echo "$ac_try_echo") >&5
28605   (eval "$ac_link") 2>conftest.er1
28606   ac_status=$?
28607   grep -v '^ *+' conftest.er1 >conftest.err
28608   rm -f conftest.er1
28609   cat conftest.err >&5
28610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611   (exit $ac_status); } && {
28612          test -z "$ac_c_werror_flag" ||
28613          test ! -s conftest.err
28614        } && test -s conftest$ac_exeext && {
28615          test "$cross_compiling" = yes ||
28616          $as_test_x conftest$ac_exeext
28617        }; then
28618   ac_cv_search_bind_textdomain_codeset=$ac_res
28619 else
28620   $as_echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28622
28623
28624 fi
28625
28626 rm -rf conftest.dSYM
28627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28628       conftest$ac_exeext
28629   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28630   break
28631 fi
28632 done
28633 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28634   :
28635 else
28636   ac_cv_search_bind_textdomain_codeset=no
28637 fi
28638 rm conftest.$ac_ext
28639 LIBS=$ac_func_search_save_LIBS
28640 fi
28641 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28642 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28643 ac_res=$ac_cv_search_bind_textdomain_codeset
28644 if test "$ac_res" != no; then
28645   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28646
28647 else
28648   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28649 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28650    { (exit 1); exit 1; }; }
28651 fi
28652
28653   if test "${ac_cv_header_libintl_h+set}" = set; then
28654   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28655 $as_echo_n "checking for libintl.h... " >&6; }
28656 if test "${ac_cv_header_libintl_h+set}" = set; then
28657   $as_echo_n "(cached) " >&6
28658 fi
28659 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28660 $as_echo "$ac_cv_header_libintl_h" >&6; }
28661 else
28662   # Is the header compilable?
28663 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28664 $as_echo_n "checking libintl.h usability... " >&6; }
28665 cat >conftest.$ac_ext <<_ACEOF
28666 /* confdefs.h.  */
28667 _ACEOF
28668 cat confdefs.h >>conftest.$ac_ext
28669 cat >>conftest.$ac_ext <<_ACEOF
28670 /* end confdefs.h.  */
28671 $ac_includes_default
28672 #include <libintl.h>
28673 _ACEOF
28674 rm -f conftest.$ac_objext
28675 if { (ac_try="$ac_compile"
28676 case "(($ac_try" in
28677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678   *) ac_try_echo=$ac_try;;
28679 esac
28680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28681 $as_echo "$ac_try_echo") >&5
28682   (eval "$ac_compile") 2>conftest.er1
28683   ac_status=$?
28684   grep -v '^ *+' conftest.er1 >conftest.err
28685   rm -f conftest.er1
28686   cat conftest.err >&5
28687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); } && {
28689          test -z "$ac_c_werror_flag" ||
28690          test ! -s conftest.err
28691        } && test -s conftest.$ac_objext; then
28692   ac_header_compiler=yes
28693 else
28694   $as_echo "$as_me: failed program was:" >&5
28695 sed 's/^/| /' conftest.$ac_ext >&5
28696
28697         ac_header_compiler=no
28698 fi
28699
28700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28701 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28702 $as_echo "$ac_header_compiler" >&6; }
28703
28704 # Is the header present?
28705 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28706 $as_echo_n "checking libintl.h presence... " >&6; }
28707 cat >conftest.$ac_ext <<_ACEOF
28708 /* confdefs.h.  */
28709 _ACEOF
28710 cat confdefs.h >>conftest.$ac_ext
28711 cat >>conftest.$ac_ext <<_ACEOF
28712 /* end confdefs.h.  */
28713 #include <libintl.h>
28714 _ACEOF
28715 if { (ac_try="$ac_cpp conftest.$ac_ext"
28716 case "(($ac_try" in
28717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718   *) ac_try_echo=$ac_try;;
28719 esac
28720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28721 $as_echo "$ac_try_echo") >&5
28722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28723   ac_status=$?
28724   grep -v '^ *+' conftest.er1 >conftest.err
28725   rm -f conftest.er1
28726   cat conftest.err >&5
28727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728   (exit $ac_status); } >/dev/null && {
28729          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28730          test ! -s conftest.err
28731        }; then
28732   ac_header_preproc=yes
28733 else
28734   $as_echo "$as_me: failed program was:" >&5
28735 sed 's/^/| /' conftest.$ac_ext >&5
28736
28737   ac_header_preproc=no
28738 fi
28739
28740 rm -f conftest.err conftest.$ac_ext
28741 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28742 $as_echo "$ac_header_preproc" >&6; }
28743
28744 # So?  What about this header?
28745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28746   yes:no: )
28747     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28748 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28749     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28750 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28751     ac_header_preproc=yes
28752     ;;
28753   no:yes:* )
28754     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28755 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28756     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28757 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28758     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28759 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28760     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28761 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28762     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28763 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28764     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28765 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28766     ( cat <<\_ASBOX
28767 ## ---------------------------------------- ##
28768 ## Report this to pgsql-bugs@postgresql.org ##
28769 ## ---------------------------------------- ##
28770 _ASBOX
28771      ) | sed "s/^/$as_me: WARNING:     /" >&2
28772     ;;
28773 esac
28774 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28775 $as_echo_n "checking for libintl.h... " >&6; }
28776 if test "${ac_cv_header_libintl_h+set}" = set; then
28777   $as_echo_n "(cached) " >&6
28778 else
28779   ac_cv_header_libintl_h=$ac_header_preproc
28780 fi
28781 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28782 $as_echo "$ac_cv_header_libintl_h" >&6; }
28783
28784 fi
28785 if test "x$ac_cv_header_libintl_h" = x""yes; then
28786   :
28787 else
28788   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28789 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28790    { (exit 1); exit 1; }; }
28791 fi
28792
28793
28794   for ac_prog in msgfmt
28795 do
28796   # Extract the first word of "$ac_prog", so it can be a program name with args.
28797 set dummy $ac_prog; ac_word=$2
28798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28799 $as_echo_n "checking for $ac_word... " >&6; }
28800 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28801   $as_echo_n "(cached) " >&6
28802 else
28803   if test -n "$MSGFMT"; then
28804   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28805 else
28806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28807 for as_dir in $PATH
28808 do
28809   IFS=$as_save_IFS
28810   test -z "$as_dir" && as_dir=.
28811   for ac_exec_ext in '' $ac_executable_extensions; do
28812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28813     ac_cv_prog_MSGFMT="$ac_prog"
28814     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28815     break 2
28816   fi
28817 done
28818 done
28819 IFS=$as_save_IFS
28820
28821 fi
28822 fi
28823 MSGFMT=$ac_cv_prog_MSGFMT
28824 if test -n "$MSGFMT"; then
28825   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28826 $as_echo "$MSGFMT" >&6; }
28827 else
28828   { $as_echo "$as_me:$LINENO: result: no" >&5
28829 $as_echo "no" >&6; }
28830 fi
28831
28832
28833   test -n "$MSGFMT" && break
28834 done
28835
28836   if test -z "$MSGFMT"; then
28837     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28838 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28839    { (exit 1); exit 1; }; }
28840   fi
28841   for ac_prog in msgmerge
28842 do
28843   # Extract the first word of "$ac_prog", so it can be a program name with args.
28844 set dummy $ac_prog; ac_word=$2
28845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28846 $as_echo_n "checking for $ac_word... " >&6; }
28847 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28848   $as_echo_n "(cached) " >&6
28849 else
28850   if test -n "$MSGMERGE"; then
28851   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28852 else
28853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28854 for as_dir in $PATH
28855 do
28856   IFS=$as_save_IFS
28857   test -z "$as_dir" && as_dir=.
28858   for ac_exec_ext in '' $ac_executable_extensions; do
28859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28860     ac_cv_prog_MSGMERGE="$ac_prog"
28861     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28862     break 2
28863   fi
28864 done
28865 done
28866 IFS=$as_save_IFS
28867
28868 fi
28869 fi
28870 MSGMERGE=$ac_cv_prog_MSGMERGE
28871 if test -n "$MSGMERGE"; then
28872   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28873 $as_echo "$MSGMERGE" >&6; }
28874 else
28875   { $as_echo "$as_me:$LINENO: result: no" >&5
28876 $as_echo "no" >&6; }
28877 fi
28878
28879
28880   test -n "$MSGMERGE" && break
28881 done
28882
28883   for ac_prog in xgettext
28884 do
28885   # Extract the first word of "$ac_prog", so it can be a program name with args.
28886 set dummy $ac_prog; ac_word=$2
28887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28888 $as_echo_n "checking for $ac_word... " >&6; }
28889 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28890   $as_echo_n "(cached) " >&6
28891 else
28892   if test -n "$XGETTEXT"; then
28893   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28894 else
28895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28896 for as_dir in $PATH
28897 do
28898   IFS=$as_save_IFS
28899   test -z "$as_dir" && as_dir=.
28900   for ac_exec_ext in '' $ac_executable_extensions; do
28901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28902     ac_cv_prog_XGETTEXT="$ac_prog"
28903     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28904     break 2
28905   fi
28906 done
28907 done
28908 IFS=$as_save_IFS
28909
28910 fi
28911 fi
28912 XGETTEXT=$ac_cv_prog_XGETTEXT
28913 if test -n "$XGETTEXT"; then
28914   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28915 $as_echo "$XGETTEXT" >&6; }
28916 else
28917   { $as_echo "$as_me:$LINENO: result: no" >&5
28918 $as_echo "no" >&6; }
28919 fi
28920
28921
28922   test -n "$XGETTEXT" && break
28923 done
28924
28925
28926 fi
28927
28928 # Check for Tcl configuration script tclConfig.sh
28929 if test "$with_tcl" = yes; then
28930     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28931 do
28932   # Extract the first word of "$ac_prog", so it can be a program name with args.
28933 set dummy $ac_prog; ac_word=$2
28934 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28935 $as_echo_n "checking for $ac_word... " >&6; }
28936 if test "${ac_cv_path_TCLSH+set}" = set; then
28937   $as_echo_n "(cached) " >&6
28938 else
28939   case $TCLSH in
28940   [\\/]* | ?:[\\/]*)
28941   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28942   ;;
28943   *)
28944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28945 for as_dir in $PATH
28946 do
28947   IFS=$as_save_IFS
28948   test -z "$as_dir" && as_dir=.
28949   for ac_exec_ext in '' $ac_executable_extensions; do
28950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28951     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28952     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28953     break 2
28954   fi
28955 done
28956 done
28957 IFS=$as_save_IFS
28958
28959   ;;
28960 esac
28961 fi
28962 TCLSH=$ac_cv_path_TCLSH
28963 if test -n "$TCLSH"; then
28964   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28965 $as_echo "$TCLSH" >&6; }
28966 else
28967   { $as_echo "$as_me:$LINENO: result: no" >&5
28968 $as_echo "no" >&6; }
28969 fi
28970
28971
28972   test -n "$TCLSH" && break
28973 done
28974
28975 if test x"$TCLSH" = x""; then
28976   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28977 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28978    { (exit 1); exit 1; }; }
28979 fi
28980
28981 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28982 $as_echo_n "checking for tclConfig.sh... " >&6; }
28983 # Let user override test
28984 if test -z "$TCL_CONFIG_SH"; then
28985     pgac_test_dirs="$with_tclconfig"
28986
28987     set X $pgac_test_dirs; shift
28988     if test $# -eq 0; then
28989         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28990 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28991    { (exit 1); exit 1; }; }
28992         set X `echo 'puts $auto_path' | $TCLSH`; shift
28993     fi
28994
28995     for pgac_dir do
28996         if test -r "$pgac_dir/tclConfig.sh"; then
28997             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28998             break
28999         fi
29000     done
29001 fi
29002
29003 if test -z "$TCL_CONFIG_SH"; then
29004     { $as_echo "$as_me:$LINENO: result: no" >&5
29005 $as_echo "no" >&6; }
29006     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
29007 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
29008    { (exit 1); exit 1; }; }
29009 else
29010     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
29011 $as_echo "$TCL_CONFIG_SH" >&6; }
29012 fi
29013
29014
29015
29016     . "$TCL_CONFIG_SH"
29017 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
29018 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
29019 eval TCL_LIBS=\"$TCL_LIBS\"
29020 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
29021 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
29022
29023         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
29024     ac_save_CPPFLAGS=$CPPFLAGS
29025     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
29026     if test "${ac_cv_header_tcl_h+set}" = set; then
29027   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29028 $as_echo_n "checking for tcl.h... " >&6; }
29029 if test "${ac_cv_header_tcl_h+set}" = set; then
29030   $as_echo_n "(cached) " >&6
29031 fi
29032 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29033 $as_echo "$ac_cv_header_tcl_h" >&6; }
29034 else
29035   # Is the header compilable?
29036 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
29037 $as_echo_n "checking tcl.h usability... " >&6; }
29038 cat >conftest.$ac_ext <<_ACEOF
29039 /* confdefs.h.  */
29040 _ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h.  */
29044 $ac_includes_default
29045 #include <tcl.h>
29046 _ACEOF
29047 rm -f conftest.$ac_objext
29048 if { (ac_try="$ac_compile"
29049 case "(($ac_try" in
29050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051   *) ac_try_echo=$ac_try;;
29052 esac
29053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29054 $as_echo "$ac_try_echo") >&5
29055   (eval "$ac_compile") 2>conftest.er1
29056   ac_status=$?
29057   grep -v '^ *+' conftest.er1 >conftest.err
29058   rm -f conftest.er1
29059   cat conftest.err >&5
29060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061   (exit $ac_status); } && {
29062          test -z "$ac_c_werror_flag" ||
29063          test ! -s conftest.err
29064        } && test -s conftest.$ac_objext; then
29065   ac_header_compiler=yes
29066 else
29067   $as_echo "$as_me: failed program was:" >&5
29068 sed 's/^/| /' conftest.$ac_ext >&5
29069
29070         ac_header_compiler=no
29071 fi
29072
29073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29074 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29075 $as_echo "$ac_header_compiler" >&6; }
29076
29077 # Is the header present?
29078 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29079 $as_echo_n "checking tcl.h presence... " >&6; }
29080 cat >conftest.$ac_ext <<_ACEOF
29081 /* confdefs.h.  */
29082 _ACEOF
29083 cat confdefs.h >>conftest.$ac_ext
29084 cat >>conftest.$ac_ext <<_ACEOF
29085 /* end confdefs.h.  */
29086 #include <tcl.h>
29087 _ACEOF
29088 if { (ac_try="$ac_cpp conftest.$ac_ext"
29089 case "(($ac_try" in
29090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091   *) ac_try_echo=$ac_try;;
29092 esac
29093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29094 $as_echo "$ac_try_echo") >&5
29095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29096   ac_status=$?
29097   grep -v '^ *+' conftest.er1 >conftest.err
29098   rm -f conftest.er1
29099   cat conftest.err >&5
29100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101   (exit $ac_status); } >/dev/null && {
29102          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29103          test ! -s conftest.err
29104        }; then
29105   ac_header_preproc=yes
29106 else
29107   $as_echo "$as_me: failed program was:" >&5
29108 sed 's/^/| /' conftest.$ac_ext >&5
29109
29110   ac_header_preproc=no
29111 fi
29112
29113 rm -f conftest.err conftest.$ac_ext
29114 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29115 $as_echo "$ac_header_preproc" >&6; }
29116
29117 # So?  What about this header?
29118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29119   yes:no: )
29120     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29121 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29122     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29123 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29124     ac_header_preproc=yes
29125     ;;
29126   no:yes:* )
29127     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29128 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29129     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
29130 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
29131     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29132 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29133     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
29134 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29135     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29136 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29137     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29138 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29139     ( cat <<\_ASBOX
29140 ## ---------------------------------------- ##
29141 ## Report this to pgsql-bugs@postgresql.org ##
29142 ## ---------------------------------------- ##
29143 _ASBOX
29144      ) | sed "s/^/$as_me: WARNING:     /" >&2
29145     ;;
29146 esac
29147 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29148 $as_echo_n "checking for tcl.h... " >&6; }
29149 if test "${ac_cv_header_tcl_h+set}" = set; then
29150   $as_echo_n "(cached) " >&6
29151 else
29152   ac_cv_header_tcl_h=$ac_header_preproc
29153 fi
29154 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29155 $as_echo "$ac_cv_header_tcl_h" >&6; }
29156
29157 fi
29158 if test "x$ac_cv_header_tcl_h" = x""yes; then
29159   :
29160 else
29161   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29162 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29163    { (exit 1); exit 1; }; }
29164 fi
29165
29166
29167     CPPFLAGS=$ac_save_CPPFLAGS
29168 fi
29169
29170 # check for <Python.h>
29171 if test "$with_python" = yes; then
29172   ac_save_CPPFLAGS=$CPPFLAGS
29173   CPPFLAGS="$python_includespec $CPPFLAGS"
29174   if test "${ac_cv_header_Python_h+set}" = set; then
29175   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29176 $as_echo_n "checking for Python.h... " >&6; }
29177 if test "${ac_cv_header_Python_h+set}" = set; then
29178   $as_echo_n "(cached) " >&6
29179 fi
29180 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29181 $as_echo "$ac_cv_header_Python_h" >&6; }
29182 else
29183   # Is the header compilable?
29184 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29185 $as_echo_n "checking Python.h usability... " >&6; }
29186 cat >conftest.$ac_ext <<_ACEOF
29187 /* confdefs.h.  */
29188 _ACEOF
29189 cat confdefs.h >>conftest.$ac_ext
29190 cat >>conftest.$ac_ext <<_ACEOF
29191 /* end confdefs.h.  */
29192 $ac_includes_default
29193 #include <Python.h>
29194 _ACEOF
29195 rm -f conftest.$ac_objext
29196 if { (ac_try="$ac_compile"
29197 case "(($ac_try" in
29198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199   *) ac_try_echo=$ac_try;;
29200 esac
29201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29202 $as_echo "$ac_try_echo") >&5
29203   (eval "$ac_compile") 2>conftest.er1
29204   ac_status=$?
29205   grep -v '^ *+' conftest.er1 >conftest.err
29206   rm -f conftest.er1
29207   cat conftest.err >&5
29208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209   (exit $ac_status); } && {
29210          test -z "$ac_c_werror_flag" ||
29211          test ! -s conftest.err
29212        } && test -s conftest.$ac_objext; then
29213   ac_header_compiler=yes
29214 else
29215   $as_echo "$as_me: failed program was:" >&5
29216 sed 's/^/| /' conftest.$ac_ext >&5
29217
29218         ac_header_compiler=no
29219 fi
29220
29221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29223 $as_echo "$ac_header_compiler" >&6; }
29224
29225 # Is the header present?
29226 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29227 $as_echo_n "checking Python.h presence... " >&6; }
29228 cat >conftest.$ac_ext <<_ACEOF
29229 /* confdefs.h.  */
29230 _ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h.  */
29234 #include <Python.h>
29235 _ACEOF
29236 if { (ac_try="$ac_cpp conftest.$ac_ext"
29237 case "(($ac_try" in
29238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239   *) ac_try_echo=$ac_try;;
29240 esac
29241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29242 $as_echo "$ac_try_echo") >&5
29243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29244   ac_status=$?
29245   grep -v '^ *+' conftest.er1 >conftest.err
29246   rm -f conftest.er1
29247   cat conftest.err >&5
29248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249   (exit $ac_status); } >/dev/null && {
29250          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29251          test ! -s conftest.err
29252        }; then
29253   ac_header_preproc=yes
29254 else
29255   $as_echo "$as_me: failed program was:" >&5
29256 sed 's/^/| /' conftest.$ac_ext >&5
29257
29258   ac_header_preproc=no
29259 fi
29260
29261 rm -f conftest.err conftest.$ac_ext
29262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29263 $as_echo "$ac_header_preproc" >&6; }
29264
29265 # So?  What about this header?
29266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29267   yes:no: )
29268     { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29269 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29270     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29271 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29272     ac_header_preproc=yes
29273     ;;
29274   no:yes:* )
29275     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29276 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29277     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29278 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29279     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29280 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29281     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29282 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29283     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29284 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29285     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29286 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29287     ( cat <<\_ASBOX
29288 ## ---------------------------------------- ##
29289 ## Report this to pgsql-bugs@postgresql.org ##
29290 ## ---------------------------------------- ##
29291 _ASBOX
29292      ) | sed "s/^/$as_me: WARNING:     /" >&2
29293     ;;
29294 esac
29295 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29296 $as_echo_n "checking for Python.h... " >&6; }
29297 if test "${ac_cv_header_Python_h+set}" = set; then
29298   $as_echo_n "(cached) " >&6
29299 else
29300   ac_cv_header_Python_h=$ac_header_preproc
29301 fi
29302 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29303 $as_echo "$ac_cv_header_Python_h" >&6; }
29304
29305 fi
29306 if test "x$ac_cv_header_Python_h" = x""yes; then
29307   :
29308 else
29309   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29310 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29311    { (exit 1); exit 1; }; }
29312 fi
29313
29314
29315   CPPFLAGS=$ac_save_CPPFLAGS
29316 fi
29317
29318 #
29319 # Check for DocBook and tools
29320 #
29321 for ac_prog in onsgmls nsgmls
29322 do
29323   # Extract the first word of "$ac_prog", so it can be a program name with args.
29324 set dummy $ac_prog; ac_word=$2
29325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29326 $as_echo_n "checking for $ac_word... " >&6; }
29327 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29328   $as_echo_n "(cached) " >&6
29329 else
29330   if test -n "$NSGMLS"; then
29331   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29332 else
29333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29334 for as_dir in $PATH
29335 do
29336   IFS=$as_save_IFS
29337   test -z "$as_dir" && as_dir=.
29338   for ac_exec_ext in '' $ac_executable_extensions; do
29339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29340     ac_cv_prog_NSGMLS="$ac_prog"
29341     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29342     break 2
29343   fi
29344 done
29345 done
29346 IFS=$as_save_IFS
29347
29348 fi
29349 fi
29350 NSGMLS=$ac_cv_prog_NSGMLS
29351 if test -n "$NSGMLS"; then
29352   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29353 $as_echo "$NSGMLS" >&6; }
29354 else
29355   { $as_echo "$as_me:$LINENO: result: no" >&5
29356 $as_echo "no" >&6; }
29357 fi
29358
29359
29360   test -n "$NSGMLS" && break
29361 done
29362
29363 for ac_prog in openjade jade
29364 do
29365   # Extract the first word of "$ac_prog", so it can be a program name with args.
29366 set dummy $ac_prog; ac_word=$2
29367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29368 $as_echo_n "checking for $ac_word... " >&6; }
29369 if test "${ac_cv_prog_JADE+set}" = set; then
29370   $as_echo_n "(cached) " >&6
29371 else
29372   if test -n "$JADE"; then
29373   ac_cv_prog_JADE="$JADE" # Let the user override the test.
29374 else
29375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29376 for as_dir in $PATH
29377 do
29378   IFS=$as_save_IFS
29379   test -z "$as_dir" && as_dir=.
29380   for ac_exec_ext in '' $ac_executable_extensions; do
29381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29382     ac_cv_prog_JADE="$ac_prog"
29383     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29384     break 2
29385   fi
29386 done
29387 done
29388 IFS=$as_save_IFS
29389
29390 fi
29391 fi
29392 JADE=$ac_cv_prog_JADE
29393 if test -n "$JADE"; then
29394   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29395 $as_echo "$JADE" >&6; }
29396 else
29397   { $as_echo "$as_me:$LINENO: result: no" >&5
29398 $as_echo "no" >&6; }
29399 fi
29400
29401
29402   test -n "$JADE" && break
29403 done
29404
29405
29406 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29407 $as_echo_n "checking for DocBook V4.2... " >&6; }
29408 if test "${pgac_cv_check_docbook+set}" = set; then
29409   $as_echo_n "(cached) " >&6
29410 else
29411   cat >conftest.sgml <<EOF
29412 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29413 <book>
29414  <title>test</title>
29415  <chapter>
29416   <title>random</title>
29417    <sect1>
29418     <title>testsect</title>
29419     <para>text</para>
29420   </sect1>
29421  </chapter>
29422 </book>
29423 EOF
29424
29425 pgac_cv_check_docbook=no
29426
29427 if test -n "$NSGMLS"; then
29428   $NSGMLS -s conftest.sgml 1>&5 2>&1
29429   if test $? -eq 0; then
29430     pgac_cv_check_docbook=yes
29431   fi
29432 fi
29433 rm -f conftest.sgml
29434 fi
29435 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29436 $as_echo "$pgac_cv_check_docbook" >&6; }
29437
29438 have_docbook=$pgac_cv_check_docbook
29439
29440
29441 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29442 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29443 if test "${pgac_cv_path_stylesheets+set}" = set; then
29444   $as_echo_n "(cached) " >&6
29445 else
29446   if test -n "$DOCBOOKSTYLE"; then
29447   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29448 else
29449   for pgac_prefix in /usr /usr/local /opt /sw; do
29450     for pgac_infix in share lib; do
29451       for pgac_postfix in \
29452         sgml/stylesheets/nwalsh-modular \
29453         sgml/stylesheets/docbook \
29454         sgml/stylesheets/dsssl/docbook \
29455         sgml/docbook-dsssl \
29456         sgml/docbook/dsssl/modular \
29457         sgml/docbook/stylesheet/dsssl/modular \
29458         sgml/docbook/dsssl-stylesheets \
29459         sgml/dsssl/docbook-dsssl-nwalsh
29460       do
29461         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29462         if test -r "$pgac_candidate/html/docbook.dsl" \
29463            && test -r "$pgac_candidate/print/docbook.dsl"
29464         then
29465           pgac_cv_path_stylesheets=$pgac_candidate
29466           break 3
29467         fi
29468       done
29469     done
29470   done
29471 fi
29472 fi
29473
29474 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29475
29476 if test -n "$DOCBOOKSTYLE"; then
29477   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29478 $as_echo "$DOCBOOKSTYLE" >&6; }
29479 else
29480   { $as_echo "$as_me:$LINENO: result: no" >&5
29481 $as_echo "no" >&6; }
29482 fi
29483 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29484   COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29485
29486 else
29487   # Extract the first word of "collateindex.pl", so it can be a program name with args.
29488 set dummy collateindex.pl; ac_word=$2
29489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29490 $as_echo_n "checking for $ac_word... " >&6; }
29491 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29492   $as_echo_n "(cached) " >&6
29493 else
29494   case $COLLATEINDEX in
29495   [\\/]* | ?:[\\/]*)
29496   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29497   ;;
29498   *)
29499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29500 for as_dir in $PATH
29501 do
29502   IFS=$as_save_IFS
29503   test -z "$as_dir" && as_dir=.
29504   for ac_exec_ext in '' $ac_executable_extensions; do
29505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29506     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29507     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29508     break 2
29509   fi
29510 done
29511 done
29512 IFS=$as_save_IFS
29513
29514   ;;
29515 esac
29516 fi
29517 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29518 if test -n "$COLLATEINDEX"; then
29519   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29520 $as_echo "$COLLATEINDEX" >&6; }
29521 else
29522   { $as_echo "$as_me:$LINENO: result: no" >&5
29523 $as_echo "no" >&6; }
29524 fi
29525
29526
29527 fi
29528 for ac_prog in xsltproc
29529 do
29530   # Extract the first word of "$ac_prog", so it can be a program name with args.
29531 set dummy $ac_prog; ac_word=$2
29532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29533 $as_echo_n "checking for $ac_word... " >&6; }
29534 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29535   $as_echo_n "(cached) " >&6
29536 else
29537   if test -n "$XSLTPROC"; then
29538   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29539 else
29540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29541 for as_dir in $PATH
29542 do
29543   IFS=$as_save_IFS
29544   test -z "$as_dir" && as_dir=.
29545   for ac_exec_ext in '' $ac_executable_extensions; do
29546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29547     ac_cv_prog_XSLTPROC="$ac_prog"
29548     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29549     break 2
29550   fi
29551 done
29552 done
29553 IFS=$as_save_IFS
29554
29555 fi
29556 fi
29557 XSLTPROC=$ac_cv_prog_XSLTPROC
29558 if test -n "$XSLTPROC"; then
29559   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29560 $as_echo "$XSLTPROC" >&6; }
29561 else
29562   { $as_echo "$as_me:$LINENO: result: no" >&5
29563 $as_echo "no" >&6; }
29564 fi
29565
29566
29567   test -n "$XSLTPROC" && break
29568 done
29569
29570 for ac_prog in osx sgml2xml sx
29571 do
29572   # Extract the first word of "$ac_prog", so it can be a program name with args.
29573 set dummy $ac_prog; ac_word=$2
29574 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29575 $as_echo_n "checking for $ac_word... " >&6; }
29576 if test "${ac_cv_prog_OSX+set}" = set; then
29577   $as_echo_n "(cached) " >&6
29578 else
29579   if test -n "$OSX"; then
29580   ac_cv_prog_OSX="$OSX" # Let the user override the test.
29581 else
29582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29583 for as_dir in $PATH
29584 do
29585   IFS=$as_save_IFS
29586   test -z "$as_dir" && as_dir=.
29587   for ac_exec_ext in '' $ac_executable_extensions; do
29588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29589     ac_cv_prog_OSX="$ac_prog"
29590     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29591     break 2
29592   fi
29593 done
29594 done
29595 IFS=$as_save_IFS
29596
29597 fi
29598 fi
29599 OSX=$ac_cv_prog_OSX
29600 if test -n "$OSX"; then
29601   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29602 $as_echo "$OSX" >&6; }
29603 else
29604   { $as_echo "$as_me:$LINENO: result: no" >&5
29605 $as_echo "no" >&6; }
29606 fi
29607
29608
29609   test -n "$OSX" && break
29610 done
29611
29612
29613 # Thread testing
29614
29615 # We have to run the thread test near the end so we have all our symbols
29616 # defined.  Cross compiling throws a warning.
29617 #
29618 if test "$enable_thread_safety" = yes; then
29619 if test "$PORTNAME" != "win32"
29620 then
29621 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29622 $as_echo_n "checking thread safety of required library functions... " >&6; }
29623
29624 _CFLAGS="$CFLAGS"
29625 _LIBS="$LIBS"
29626 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29627 LIBS="$LIBS $PTHREAD_LIBS"
29628 if test "$cross_compiling" = yes; then
29629   { $as_echo "$as_me:$LINENO: result: maybe" >&5
29630 $as_echo "maybe" >&6; }
29631   { $as_echo "$as_me:$LINENO: WARNING:
29632 *** Skipping thread test program because of cross-compile build.
29633 *** Run the program in src/test/thread on the target machine.
29634 " >&5
29635 $as_echo "$as_me: WARNING:
29636 *** Skipping thread test program because of cross-compile build.
29637 *** Run the program in src/test/thread on the target machine.
29638 " >&2;}
29639 else
29640   cat >conftest.$ac_ext <<_ACEOF
29641 /* confdefs.h.  */
29642 _ACEOF
29643 cat confdefs.h >>conftest.$ac_ext
29644 cat >>conftest.$ac_ext <<_ACEOF
29645 /* end confdefs.h.  */
29646 #include "$srcdir/src/test/thread/thread_test.c"
29647 _ACEOF
29648 rm -f conftest$ac_exeext
29649 if { (ac_try="$ac_link"
29650 case "(($ac_try" in
29651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652   *) ac_try_echo=$ac_try;;
29653 esac
29654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29655 $as_echo "$ac_try_echo") >&5
29656   (eval "$ac_link") 2>&5
29657   ac_status=$?
29658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29660   { (case "(($ac_try" in
29661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29662   *) ac_try_echo=$ac_try;;
29663 esac
29664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29665 $as_echo "$ac_try_echo") >&5
29666   (eval "$ac_try") 2>&5
29667   ac_status=$?
29668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669   (exit $ac_status); }; }; then
29670   { $as_echo "$as_me:$LINENO: result: yes" >&5
29671 $as_echo "yes" >&6; }
29672 else
29673   $as_echo "$as_me: program exited with status $ac_status" >&5
29674 $as_echo "$as_me: failed program was:" >&5
29675 sed 's/^/| /' conftest.$ac_ext >&5
29676
29677 ( exit $ac_status )
29678 { $as_echo "$as_me:$LINENO: result: no" >&5
29679 $as_echo "no" >&6; }
29680   { { $as_echo "$as_me:$LINENO: error: thread test program failed
29681 This platform is not thread-safe.  Check the file 'config.log' or compile
29682 and run src/test/thread/thread_test for the exact reason.
29683 Use --disable-thread-safety to disable thread safety." >&5
29684 $as_echo "$as_me: error: thread test program failed
29685 This platform is not thread-safe.  Check the file 'config.log' or compile
29686 and run src/test/thread/thread_test for the exact reason.
29687 Use --disable-thread-safety to disable thread safety." >&2;}
29688    { (exit 1); exit 1; }; }
29689 fi
29690 rm -rf conftest.dSYM
29691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29692 fi
29693
29694
29695 CFLAGS="$_CFLAGS"
29696 LIBS="$_LIBS"
29697 else
29698 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29699 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29700 fi
29701 fi
29702
29703 # If compiler will take -Wl,--as-needed (or various platform-specific
29704 # spellings thereof) then add that to LDFLAGS.  This is much easier than
29705 # trying to filter LIBS to the minimum for each executable.
29706 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29707 # libreadline; therefore we postpone testing it until we know what library
29708 # dependencies readline has.  The test code will try to link with $LIBS.
29709 if test "$with_readline" = yes; then
29710   link_test_func=readline
29711 else
29712   link_test_func=exit
29713 fi
29714
29715 if test "$PORTNAME" = "darwin"; then
29716   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29717 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29718 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29719   $as_echo_n "(cached) " >&6
29720 else
29721   pgac_save_LDFLAGS=$LDFLAGS
29722 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29723 if test "$cross_compiling" = yes; then
29724   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29725 else
29726   cat >conftest.$ac_ext <<_ACEOF
29727 /* confdefs.h.  */
29728 _ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h.  */
29732 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29733 int
29734 main ()
29735 {
29736
29737   ;
29738   return 0;
29739 }
29740 _ACEOF
29741 rm -f conftest$ac_exeext
29742 if { (ac_try="$ac_link"
29743 case "(($ac_try" in
29744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745   *) ac_try_echo=$ac_try;;
29746 esac
29747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29748 $as_echo "$ac_try_echo") >&5
29749   (eval "$ac_link") 2>&5
29750   ac_status=$?
29751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29753   { (case "(($ac_try" in
29754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755   *) ac_try_echo=$ac_try;;
29756 esac
29757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29758 $as_echo "$ac_try_echo") >&5
29759   (eval "$ac_try") 2>&5
29760   ac_status=$?
29761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762   (exit $ac_status); }; }; then
29763   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29764 else
29765   $as_echo "$as_me: program exited with status $ac_status" >&5
29766 $as_echo "$as_me: failed program was:" >&5
29767 sed 's/^/| /' conftest.$ac_ext >&5
29768
29769 ( exit $ac_status )
29770 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29771 fi
29772 rm -rf conftest.dSYM
29773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29774 fi
29775
29776
29777 LDFLAGS="$pgac_save_LDFLAGS"
29778 fi
29779 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29780 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29781 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29782   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29783 fi
29784
29785 elif test "$PORTNAME" = "openbsd"; then
29786   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29787 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29788 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29789   $as_echo_n "(cached) " >&6
29790 else
29791   pgac_save_LDFLAGS=$LDFLAGS
29792 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29793 if test "$cross_compiling" = yes; then
29794   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29795 else
29796   cat >conftest.$ac_ext <<_ACEOF
29797 /* confdefs.h.  */
29798 _ACEOF
29799 cat confdefs.h >>conftest.$ac_ext
29800 cat >>conftest.$ac_ext <<_ACEOF
29801 /* end confdefs.h.  */
29802 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29803 int
29804 main ()
29805 {
29806
29807   ;
29808   return 0;
29809 }
29810 _ACEOF
29811 rm -f conftest$ac_exeext
29812 if { (ac_try="$ac_link"
29813 case "(($ac_try" in
29814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815   *) ac_try_echo=$ac_try;;
29816 esac
29817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29818 $as_echo "$ac_try_echo") >&5
29819   (eval "$ac_link") 2>&5
29820   ac_status=$?
29821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29823   { (case "(($ac_try" in
29824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825   *) ac_try_echo=$ac_try;;
29826 esac
29827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29828 $as_echo "$ac_try_echo") >&5
29829   (eval "$ac_try") 2>&5
29830   ac_status=$?
29831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832   (exit $ac_status); }; }; then
29833   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29834 else
29835   $as_echo "$as_me: program exited with status $ac_status" >&5
29836 $as_echo "$as_me: failed program was:" >&5
29837 sed 's/^/| /' conftest.$ac_ext >&5
29838
29839 ( exit $ac_status )
29840 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29841 fi
29842 rm -rf conftest.dSYM
29843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29844 fi
29845
29846
29847 LDFLAGS="$pgac_save_LDFLAGS"
29848 fi
29849 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29850 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29851 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29852   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29853 fi
29854
29855 else
29856   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29857 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29858 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29859   $as_echo_n "(cached) " >&6
29860 else
29861   pgac_save_LDFLAGS=$LDFLAGS
29862 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29863 if test "$cross_compiling" = yes; then
29864   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29865 else
29866   cat >conftest.$ac_ext <<_ACEOF
29867 /* confdefs.h.  */
29868 _ACEOF
29869 cat confdefs.h >>conftest.$ac_ext
29870 cat >>conftest.$ac_ext <<_ACEOF
29871 /* end confdefs.h.  */
29872 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29873 int
29874 main ()
29875 {
29876
29877   ;
29878   return 0;
29879 }
29880 _ACEOF
29881 rm -f conftest$ac_exeext
29882 if { (ac_try="$ac_link"
29883 case "(($ac_try" in
29884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29885   *) ac_try_echo=$ac_try;;
29886 esac
29887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29888 $as_echo "$ac_try_echo") >&5
29889   (eval "$ac_link") 2>&5
29890   ac_status=$?
29891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29893   { (case "(($ac_try" in
29894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29895   *) ac_try_echo=$ac_try;;
29896 esac
29897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29898 $as_echo "$ac_try_echo") >&5
29899   (eval "$ac_try") 2>&5
29900   ac_status=$?
29901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902   (exit $ac_status); }; }; then
29903   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29904 else
29905   $as_echo "$as_me: program exited with status $ac_status" >&5
29906 $as_echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29908
29909 ( exit $ac_status )
29910 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29911 fi
29912 rm -rf conftest.dSYM
29913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29914 fi
29915
29916
29917 LDFLAGS="$pgac_save_LDFLAGS"
29918 fi
29919 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29920 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29921 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29922   LDFLAGS="$LDFLAGS -Wl,--as-needed"
29923 fi
29924
29925 fi
29926
29927 # Create compiler version string
29928 if test x"$GCC" = x"yes" ; then
29929   cc_string=`${CC} --version | sed q`
29930   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29931 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29932   cc_string=`${CC} -V 2>&1 | sed q`
29933 else
29934   cc_string=$CC
29935 fi
29936
29937
29938 cat >>confdefs.h <<_ACEOF
29939 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29940 _ACEOF
29941
29942
29943 # Supply a numeric version string for use by 3rd party add-ons
29944 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29945 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29946 tr '.' '        ' |
29947 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29948
29949 cat >>confdefs.h <<_ACEOF
29950 #define PG_VERSION_NUM $PG_VERSION_NUM
29951 _ACEOF
29952
29953
29954
29955 # Begin output steps
29956
29957 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29958 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29959 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29960 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29961 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29962 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29963 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29964 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29965
29966 # prepare build tree if outside source tree
29967 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29968 # Note 2: /bin/pwd might be better than shell's built-in at getting
29969 #         a symlink-free name.
29970 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29971   vpath_build=no
29972 else
29973   vpath_build=yes
29974   if test "$no_create" != yes; then
29975     $as_echo_n "preparing build tree... " >&6
29976     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29977     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29978       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29979 $as_echo "$as_me: error: failed" >&2;}
29980    { (exit 1); exit 1; }; }
29981     { $as_echo "$as_me:$LINENO: result: done" >&5
29982 $as_echo "done" >&6; }
29983   fi
29984 fi
29985
29986
29987
29988 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29989
29990
29991 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}"
29992
29993
29994 if test "$PORTNAME" = "win32"; then
29995 ac_config_commands="$ac_config_commands check_win32_symlinks"
29996
29997 fi
29998
29999 ac_config_headers="$ac_config_headers src/include/pg_config.h"
30000
30001
30002 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
30003
30004
30005 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
30006
30007
30008 cat >confcache <<\_ACEOF
30009 # This file is a shell script that caches the results of configure
30010 # tests run on this system so they can be shared between configure
30011 # scripts and configure runs, see configure's option --config-cache.
30012 # It is not useful on other systems.  If it contains results you don't
30013 # want to keep, you may remove or edit it.
30014 #
30015 # config.status only pays attention to the cache file if you give it
30016 # the --recheck option to rerun configure.
30017 #
30018 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30019 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30020 # following values.
30021
30022 _ACEOF
30023
30024 # The following way of writing the cache mishandles newlines in values,
30025 # but we know of no workaround that is simple, portable, and efficient.
30026 # So, we kill variables containing newlines.
30027 # Ultrix sh set writes to stderr and can't be redirected directly,
30028 # and sets the high bit in the cache file unless we assign to the vars.
30029 (
30030   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30031     eval ac_val=\$$ac_var
30032     case $ac_val in #(
30033     *${as_nl}*)
30034       case $ac_var in #(
30035       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30037       esac
30038       case $ac_var in #(
30039       _ | IFS | as_nl) ;; #(
30040       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30041       *) $as_unset $ac_var ;;
30042       esac ;;
30043     esac
30044   done
30045
30046   (set) 2>&1 |
30047     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30048     *${as_nl}ac_space=\ *)
30049       # `set' does not quote correctly, so add quotes (double-quote
30050       # substitution turns \\\\ into \\, and sed turns \\ into \).
30051       sed -n \
30052         "s/'/'\\\\''/g;
30053           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30054       ;; #(
30055     *)
30056       # `set' quotes correctly as required by POSIX, so do not add quotes.
30057       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30058       ;;
30059     esac |
30060     sort
30061 ) |
30062   sed '
30063      /^ac_cv_env_/b end
30064      t clear
30065      :clear
30066      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30067      t end
30068      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30069      :end' >>confcache
30070 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30071   if test -w "$cache_file"; then
30072     test "x$cache_file" != "x/dev/null" &&
30073       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30074 $as_echo "$as_me: updating cache $cache_file" >&6;}
30075     cat confcache >$cache_file
30076   else
30077     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30078 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30079   fi
30080 fi
30081 rm -f confcache
30082
30083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30084 # Let make expand exec_prefix.
30085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30086
30087 DEFS=-DHAVE_CONFIG_H
30088
30089 ac_libobjs=
30090 ac_ltlibobjs=
30091 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30092   # 1. Remove the extension, and $U if already installed.
30093   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30094   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30095   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30096   #    will be set to the directory where LIBOBJS objects are built.
30097   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30098   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30099 done
30100 LIBOBJS=$ac_libobjs
30101
30102 LTLIBOBJS=$ac_ltlibobjs
30103
30104
30105
30106
30107 : ${CONFIG_STATUS=./config.status}
30108 ac_write_fail=0
30109 ac_clean_files_save=$ac_clean_files
30110 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30111 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30112 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30113 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30114 #! $SHELL
30115 # Generated by $as_me.
30116 # Run this file to recreate the current configuration.
30117 # Compiler output produced by configure, useful for debugging
30118 # configure, is in config.log if it exists.
30119
30120 debug=false
30121 ac_cs_recheck=false
30122 ac_cs_silent=false
30123 SHELL=\${CONFIG_SHELL-$SHELL}
30124 _ACEOF
30125
30126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30127 ## --------------------- ##
30128 ## M4sh Initialization.  ##
30129 ## --------------------- ##
30130
30131 # Be more Bourne compatible
30132 DUALCASE=1; export DUALCASE # for MKS sh
30133 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30134   emulate sh
30135   NULLCMD=:
30136   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30137   # is contrary to our usage.  Disable this feature.
30138   alias -g '${1+"$@"}'='"$@"'
30139   setopt NO_GLOB_SUBST
30140 else
30141   case `(set -o) 2>/dev/null` in
30142   *posix*) set -o posix ;;
30143 esac
30144
30145 fi
30146
30147
30148
30149
30150 # PATH needs CR
30151 # Avoid depending upon Character Ranges.
30152 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30153 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30154 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30155 as_cr_digits='0123456789'
30156 as_cr_alnum=$as_cr_Letters$as_cr_digits
30157
30158 as_nl='
30159 '
30160 export as_nl
30161 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30162 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30163 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30164 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30165 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30166   as_echo='printf %s\n'
30167   as_echo_n='printf %s'
30168 else
30169   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30170     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30171     as_echo_n='/usr/ucb/echo -n'
30172   else
30173     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30174     as_echo_n_body='eval
30175       arg=$1;
30176       case $arg in
30177       *"$as_nl"*)
30178         expr "X$arg" : "X\\(.*\\)$as_nl";
30179         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30180       esac;
30181       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30182     '
30183     export as_echo_n_body
30184     as_echo_n='sh -c $as_echo_n_body as_echo'
30185   fi
30186   export as_echo_body
30187   as_echo='sh -c $as_echo_body as_echo'
30188 fi
30189
30190 # The user is always right.
30191 if test "${PATH_SEPARATOR+set}" != set; then
30192   PATH_SEPARATOR=:
30193   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30194     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30195       PATH_SEPARATOR=';'
30196   }
30197 fi
30198
30199 # Support unset when possible.
30200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30201   as_unset=unset
30202 else
30203   as_unset=false
30204 fi
30205
30206
30207 # IFS
30208 # We need space, tab and new line, in precisely that order.  Quoting is
30209 # there to prevent editors from complaining about space-tab.
30210 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30211 # splitting by setting IFS to empty value.)
30212 IFS=" ""        $as_nl"
30213
30214 # Find who we are.  Look in the path if we contain no directory separator.
30215 case $0 in
30216   *[\\/]* ) as_myself=$0 ;;
30217   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30218 for as_dir in $PATH
30219 do
30220   IFS=$as_save_IFS
30221   test -z "$as_dir" && as_dir=.
30222   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30223 done
30224 IFS=$as_save_IFS
30225
30226      ;;
30227 esac
30228 # We did not find ourselves, most probably we were run as `sh COMMAND'
30229 # in which case we are not to be found in the path.
30230 if test "x$as_myself" = x; then
30231   as_myself=$0
30232 fi
30233 if test ! -f "$as_myself"; then
30234   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30235   { (exit 1); exit 1; }
30236 fi
30237
30238 # Work around bugs in pre-3.0 UWIN ksh.
30239 for as_var in ENV MAIL MAILPATH
30240 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30241 done
30242 PS1='$ '
30243 PS2='> '
30244 PS4='+ '
30245
30246 # NLS nuisances.
30247 LC_ALL=C
30248 export LC_ALL
30249 LANGUAGE=C
30250 export LANGUAGE
30251
30252 # Required to use basename.
30253 if expr a : '\(a\)' >/dev/null 2>&1 &&
30254    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30255   as_expr=expr
30256 else
30257   as_expr=false
30258 fi
30259
30260 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30261   as_basename=basename
30262 else
30263   as_basename=false
30264 fi
30265
30266
30267 # Name of the executable.
30268 as_me=`$as_basename -- "$0" ||
30269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30270          X"$0" : 'X\(//\)$' \| \
30271          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30272 $as_echo X/"$0" |
30273     sed '/^.*\/\([^/][^/]*\)\/*$/{
30274             s//\1/
30275             q
30276           }
30277           /^X\/\(\/\/\)$/{
30278             s//\1/
30279             q
30280           }
30281           /^X\/\(\/\).*/{
30282             s//\1/
30283             q
30284           }
30285           s/.*/./; q'`
30286
30287 # CDPATH.
30288 $as_unset CDPATH
30289
30290
30291
30292   as_lineno_1=$LINENO
30293   as_lineno_2=$LINENO
30294   test "x$as_lineno_1" != "x$as_lineno_2" &&
30295   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30296
30297   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30298   # uniformly replaced by the line number.  The first 'sed' inserts a
30299   # line-number line after each line using $LINENO; the second 'sed'
30300   # does the real work.  The second script uses 'N' to pair each
30301   # line-number line with the line containing $LINENO, and appends
30302   # trailing '-' during substitution so that $LINENO is not a special
30303   # case at line end.
30304   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30305   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30306   # E. McMahon (1931-1989) for sed's syntax.  :-)
30307   sed -n '
30308     p
30309     /[$]LINENO/=
30310   ' <$as_myself |
30311     sed '
30312       s/[$]LINENO.*/&-/
30313       t lineno
30314       b
30315       :lineno
30316       N
30317       :loop
30318       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30319       t loop
30320       s/-\n.*//
30321     ' >$as_me.lineno &&
30322   chmod +x "$as_me.lineno" ||
30323     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30324    { (exit 1); exit 1; }; }
30325
30326   # Don't try to exec as it changes $[0], causing all sort of problems
30327   # (the dirname of $[0] is not the place where we might find the
30328   # original and so on.  Autoconf is especially sensitive to this).
30329   . "./$as_me.lineno"
30330   # Exit status is that of the last command.
30331   exit
30332 }
30333
30334
30335 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30336   as_dirname=dirname
30337 else
30338   as_dirname=false
30339 fi
30340
30341 ECHO_C= ECHO_N= ECHO_T=
30342 case `echo -n x` in
30343 -n*)
30344   case `echo 'x\c'` in
30345   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30346   *)   ECHO_C='\c';;
30347   esac;;
30348 *)
30349   ECHO_N='-n';;
30350 esac
30351 if expr a : '\(a\)' >/dev/null 2>&1 &&
30352    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30353   as_expr=expr
30354 else
30355   as_expr=false
30356 fi
30357
30358 rm -f conf$$ conf$$.exe conf$$.file
30359 if test -d conf$$.dir; then
30360   rm -f conf$$.dir/conf$$.file
30361 else
30362   rm -f conf$$.dir
30363   mkdir conf$$.dir 2>/dev/null
30364 fi
30365 if (echo >conf$$.file) 2>/dev/null; then
30366   if ln -s conf$$.file conf$$ 2>/dev/null; then
30367     as_ln_s='ln -s'
30368     # ... but there are two gotchas:
30369     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30370     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30371     # In both cases, we have to default to `cp -p'.
30372     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30373       as_ln_s='cp -p'
30374   elif ln conf$$.file conf$$ 2>/dev/null; then
30375     as_ln_s=ln
30376   else
30377     as_ln_s='cp -p'
30378   fi
30379 else
30380   as_ln_s='cp -p'
30381 fi
30382 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30383 rmdir conf$$.dir 2>/dev/null
30384
30385 if mkdir -p . 2>/dev/null; then
30386   as_mkdir_p=:
30387 else
30388   test -d ./-p && rmdir ./-p
30389   as_mkdir_p=false
30390 fi
30391
30392 if test -x / >/dev/null 2>&1; then
30393   as_test_x='test -x'
30394 else
30395   if ls -dL / >/dev/null 2>&1; then
30396     as_ls_L_option=L
30397   else
30398     as_ls_L_option=
30399   fi
30400   as_test_x='
30401     eval sh -c '\''
30402       if test -d "$1"; then
30403         test -d "$1/.";
30404       else
30405         case $1 in
30406         -*)set "./$1";;
30407         esac;
30408         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30409         ???[sx]*):;;*)false;;esac;fi
30410     '\'' sh
30411   '
30412 fi
30413 as_executable_p=$as_test_x
30414
30415 # Sed expression to map a string onto a valid CPP name.
30416 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30417
30418 # Sed expression to map a string onto a valid variable name.
30419 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30420
30421
30422 exec 6>&1
30423
30424 # Save the log message, to keep $[0] and so on meaningful, and to
30425 # report actual input values of CONFIG_FILES etc. instead of their
30426 # values after options handling.
30427 ac_log="
30428 This file was extended by PostgreSQL $as_me 9.3devel, which was
30429 generated by GNU Autoconf 2.63.  Invocation command line was
30430
30431   CONFIG_FILES    = $CONFIG_FILES
30432   CONFIG_HEADERS  = $CONFIG_HEADERS
30433   CONFIG_LINKS    = $CONFIG_LINKS
30434   CONFIG_COMMANDS = $CONFIG_COMMANDS
30435   $ $0 $@
30436
30437 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30438 "
30439
30440 _ACEOF
30441
30442 case $ac_config_files in *"
30443 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30444 esac
30445
30446 case $ac_config_headers in *"
30447 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30448 esac
30449
30450
30451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30452 # Files that config.status was made for.
30453 config_files="$ac_config_files"
30454 config_headers="$ac_config_headers"
30455 config_links="$ac_config_links"
30456 config_commands="$ac_config_commands"
30457
30458 _ACEOF
30459
30460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30461 ac_cs_usage="\
30462 \`$as_me' instantiates files from templates according to the
30463 current configuration.
30464
30465 Usage: $0 [OPTION]... [FILE]...
30466
30467   -h, --help       print this help, then exit
30468   -V, --version    print version number and configuration settings, then exit
30469   -q, --quiet, --silent
30470                    do not print progress messages
30471   -d, --debug      don't remove temporary files
30472       --recheck    update $as_me by reconfiguring in the same conditions
30473       --file=FILE[:TEMPLATE]
30474                    instantiate the configuration file FILE
30475       --header=FILE[:TEMPLATE]
30476                    instantiate the configuration header FILE
30477
30478 Configuration files:
30479 $config_files
30480
30481 Configuration headers:
30482 $config_headers
30483
30484 Configuration links:
30485 $config_links
30486
30487 Configuration commands:
30488 $config_commands
30489
30490 Report bugs to <bug-autoconf@gnu.org>."
30491
30492 _ACEOF
30493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30494 ac_cs_version="\\
30495 PostgreSQL config.status 9.3devel
30496 configured by $0, generated by GNU Autoconf 2.63,
30497   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30498
30499 Copyright (C) 2008 Free Software Foundation, Inc.
30500 This config.status script is free software; the Free Software Foundation
30501 gives unlimited permission to copy, distribute and modify it."
30502
30503 ac_pwd='$ac_pwd'
30504 srcdir='$srcdir'
30505 INSTALL='$INSTALL'
30506 MKDIR_P='$MKDIR_P'
30507 AWK='$AWK'
30508 test -n "\$AWK" || AWK=awk
30509 _ACEOF
30510
30511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30512 # The default lists apply if the user does not specify any file.
30513 ac_need_defaults=:
30514 while test $# != 0
30515 do
30516   case $1 in
30517   --*=*)
30518     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30519     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30520     ac_shift=:
30521     ;;
30522   *)
30523     ac_option=$1
30524     ac_optarg=$2
30525     ac_shift=shift
30526     ;;
30527   esac
30528
30529   case $ac_option in
30530   # Handling of the options.
30531   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30532     ac_cs_recheck=: ;;
30533   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30534     $as_echo "$ac_cs_version"; exit ;;
30535   --debug | --debu | --deb | --de | --d | -d )
30536     debug=: ;;
30537   --file | --fil | --fi | --f )
30538     $ac_shift
30539     case $ac_optarg in
30540     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30541     esac
30542     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30543     ac_need_defaults=false;;
30544   --header | --heade | --head | --hea )
30545     $ac_shift
30546     case $ac_optarg in
30547     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30548     esac
30549     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30550     ac_need_defaults=false;;
30551   --he | --h)
30552     # Conflict between --help and --header
30553     { $as_echo "$as_me: error: ambiguous option: $1
30554 Try \`$0 --help' for more information." >&2
30555    { (exit 1); exit 1; }; };;
30556   --help | --hel | -h )
30557     $as_echo "$ac_cs_usage"; exit ;;
30558   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30559   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30560     ac_cs_silent=: ;;
30561
30562   # This is an error.
30563   -*) { $as_echo "$as_me: error: unrecognized option: $1
30564 Try \`$0 --help' for more information." >&2
30565    { (exit 1); exit 1; }; } ;;
30566
30567   *) ac_config_targets="$ac_config_targets $1"
30568      ac_need_defaults=false ;;
30569
30570   esac
30571   shift
30572 done
30573
30574 ac_configure_extra_args=
30575
30576 if $ac_cs_silent; then
30577   exec 6>/dev/null
30578   ac_configure_extra_args="$ac_configure_extra_args --silent"
30579 fi
30580
30581 _ACEOF
30582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30583 if \$ac_cs_recheck; then
30584   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30585   shift
30586   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30587   CONFIG_SHELL='$SHELL'
30588   export CONFIG_SHELL
30589   exec "\$@"
30590 fi
30591
30592 _ACEOF
30593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30594 exec 5>>config.log
30595 {
30596   echo
30597   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30598 ## Running $as_me. ##
30599 _ASBOX
30600   $as_echo "$ac_log"
30601 } >&5
30602
30603 _ACEOF
30604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30605 _ACEOF
30606
30607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30608
30609 # Handling of arguments.
30610 for ac_config_target in $ac_config_targets
30611 do
30612   case $ac_config_target in
30613     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30614     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30615     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30616     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30617     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30618     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30619     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30620     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30621     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30622     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30623     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30624     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30625     "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
30626     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30627
30628   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30629 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30630    { (exit 1); exit 1; }; };;
30631   esac
30632 done
30633
30634
30635 # If the user did not use the arguments to specify the items to instantiate,
30636 # then the envvar interface is used.  Set only those that are not.
30637 # We use the long form for the default assignment because of an extremely
30638 # bizarre bug on SunOS 4.1.3.
30639 if $ac_need_defaults; then
30640   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30641   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30642   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30643   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30644 fi
30645
30646 # Have a temporary directory for convenience.  Make it in the build tree
30647 # simply because there is no reason against having it here, and in addition,
30648 # creating and moving files from /tmp can sometimes cause problems.
30649 # Hook for its removal unless debugging.
30650 # Note that there is a small window in which the directory will not be cleaned:
30651 # after its creation but before its name has been assigned to `$tmp'.
30652 $debug ||
30653 {
30654   tmp=
30655   trap 'exit_status=$?
30656   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30657 ' 0
30658   trap '{ (exit 1); exit 1; }' 1 2 13 15
30659 }
30660 # Create a (secure) tmp directory for tmp files.
30661
30662 {
30663   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30664   test -n "$tmp" && test -d "$tmp"
30665 }  ||
30666 {
30667   tmp=./conf$$-$RANDOM
30668   (umask 077 && mkdir "$tmp")
30669 } ||
30670 {
30671    $as_echo "$as_me: cannot create a temporary directory in ." >&2
30672    { (exit 1); exit 1; }
30673 }
30674
30675 # Set up the scripts for CONFIG_FILES section.
30676 # No need to generate them if there are no CONFIG_FILES.
30677 # This happens for instance with `./config.status config.h'.
30678 if test -n "$CONFIG_FILES"; then
30679
30680
30681 ac_cr='\r'
30682 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30683 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30684   ac_cs_awk_cr='\\r'
30685 else
30686   ac_cs_awk_cr=$ac_cr
30687 fi
30688
30689 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30690 _ACEOF
30691
30692
30693 {
30694   echo "cat >conf$$subs.awk <<_ACEOF" &&
30695   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30696   echo "_ACEOF"
30697 } >conf$$subs.sh ||
30698   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30699 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30700    { (exit 1); exit 1; }; }
30701 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30702 ac_delim='%!_!# '
30703 for ac_last_try in false false false false false :; do
30704   . ./conf$$subs.sh ||
30705     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30706 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30707    { (exit 1); exit 1; }; }
30708
30709   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30710   if test $ac_delim_n = $ac_delim_num; then
30711     break
30712   elif $ac_last_try; then
30713     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30714 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30715    { (exit 1); exit 1; }; }
30716   else
30717     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30718   fi
30719 done
30720 rm -f conf$$subs.sh
30721
30722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30723 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30724 _ACEOF
30725 sed -n '
30726 h
30727 s/^/S["/; s/!.*/"]=/
30728 p
30729 g
30730 s/^[^!]*!//
30731 :repl
30732 t repl
30733 s/'"$ac_delim"'$//
30734 t delim
30735 :nl
30736 h
30737 s/\(.\{148\}\).*/\1/
30738 t more1
30739 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30740 p
30741 n
30742 b repl
30743 :more1
30744 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30745 p
30746 g
30747 s/.\{148\}//
30748 t nl
30749 :delim
30750 h
30751 s/\(.\{148\}\).*/\1/
30752 t more2
30753 s/["\\]/\\&/g; s/^/"/; s/$/"/
30754 p
30755 b
30756 :more2
30757 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30758 p
30759 g
30760 s/.\{148\}//
30761 t delim
30762 ' <conf$$subs.awk | sed '
30763 /^[^""]/{
30764   N
30765   s/\n//
30766 }
30767 ' >>$CONFIG_STATUS || ac_write_fail=1
30768 rm -f conf$$subs.awk
30769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30770 _ACAWK
30771 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30772   for (key in S) S_is_set[key] = 1
30773   FS = "\a"
30774
30775 }
30776 {
30777   line = $ 0
30778   nfields = split(line, field, "@")
30779   substed = 0
30780   len = length(field[1])
30781   for (i = 2; i < nfields; i++) {
30782     key = field[i]
30783     keylen = length(key)
30784     if (S_is_set[key]) {
30785       value = S[key]
30786       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30787       len += length(value) + length(field[++i])
30788       substed = 1
30789     } else
30790       len += 1 + keylen
30791   }
30792
30793   print line
30794 }
30795
30796 _ACAWK
30797 _ACEOF
30798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30799 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30800   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30801 else
30802   cat
30803 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30804   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30805 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30806    { (exit 1); exit 1; }; }
30807 _ACEOF
30808
30809 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30810 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30811 # trailing colons and then remove the whole line if VPATH becomes empty
30812 # (actually we leave an empty line to preserve line numbers).
30813 if test "x$srcdir" = x.; then
30814   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30815 s/:*\$(srcdir):*/:/
30816 s/:*\${srcdir}:*/:/
30817 s/:*@srcdir@:*/:/
30818 s/^\([^=]*=[     ]*\):*/\1/
30819 s/:*$//
30820 s/^[^=]*=[       ]*$//
30821 }'
30822 fi
30823
30824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30825 fi # test -n "$CONFIG_FILES"
30826
30827 # Set up the scripts for CONFIG_HEADERS section.
30828 # No need to generate them if there are no CONFIG_HEADERS.
30829 # This happens for instance with `./config.status Makefile'.
30830 if test -n "$CONFIG_HEADERS"; then
30831 cat >"$tmp/defines.awk" <<\_ACAWK ||
30832 BEGIN {
30833 _ACEOF
30834
30835 # Transform confdefs.h into an awk script `defines.awk', embedded as
30836 # here-document in config.status, that substitutes the proper values into
30837 # config.h.in to produce config.h.
30838
30839 # Create a delimiter string that does not exist in confdefs.h, to ease
30840 # handling of long lines.
30841 ac_delim='%!_!# '
30842 for ac_last_try in false false :; do
30843   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30844   if test -z "$ac_t"; then
30845     break
30846   elif $ac_last_try; then
30847     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30848 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30849    { (exit 1); exit 1; }; }
30850   else
30851     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30852   fi
30853 done
30854
30855 # For the awk script, D is an array of macro values keyed by name,
30856 # likewise P contains macro parameters if any.  Preserve backslash
30857 # newline sequences.
30858
30859 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30860 sed -n '
30861 s/.\{148\}/&'"$ac_delim"'/g
30862 t rset
30863 :rset
30864 s/^[     ]*#[    ]*define[       ][      ]*/ /
30865 t def
30866 d
30867 :def
30868 s/\\$//
30869 t bsnl
30870 s/["\\]/\\&/g
30871 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30872 D["\1"]=" \3"/p
30873 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30874 d
30875 :bsnl
30876 s/["\\]/\\&/g
30877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30878 D["\1"]=" \3\\\\\\n"\\/p
30879 t cont
30880 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30881 t cont
30882 d
30883 :cont
30884 n
30885 s/.\{148\}/&'"$ac_delim"'/g
30886 t clear
30887 :clear
30888 s/\\$//
30889 t bsnlc
30890 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30891 d
30892 :bsnlc
30893 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30894 b cont
30895 ' <confdefs.h | sed '
30896 s/'"$ac_delim"'/"\\\
30897 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30898
30899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30900   for (key in D) D_is_set[key] = 1
30901   FS = "\a"
30902 }
30903 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30904   line = \$ 0
30905   split(line, arg, " ")
30906   if (arg[1] == "#") {
30907     defundef = arg[2]
30908     mac1 = arg[3]
30909   } else {
30910     defundef = substr(arg[1], 2)
30911     mac1 = arg[2]
30912   }
30913   split(mac1, mac2, "(") #)
30914   macro = mac2[1]
30915   prefix = substr(line, 1, index(line, defundef) - 1)
30916   if (D_is_set[macro]) {
30917     # Preserve the white space surrounding the "#".
30918     print prefix "define", macro P[macro] D[macro]
30919     next
30920   } else {
30921     # Replace #undef with comments.  This is necessary, for example,
30922     # in the case of _POSIX_SOURCE, which is predefined and required
30923     # on some systems where configure will not decide to define it.
30924     if (defundef == "undef") {
30925       print "/*", prefix defundef, macro, "*/"
30926       next
30927     }
30928   }
30929 }
30930 { print }
30931 _ACAWK
30932 _ACEOF
30933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30934   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30935 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30936    { (exit 1); exit 1; }; }
30937 fi # test -n "$CONFIG_HEADERS"
30938
30939
30940 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30941 shift
30942 for ac_tag
30943 do
30944   case $ac_tag in
30945   :[FHLC]) ac_mode=$ac_tag; continue;;
30946   esac
30947   case $ac_mode$ac_tag in
30948   :[FHL]*:*);;
30949   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30950 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30951    { (exit 1); exit 1; }; };;
30952   :[FH]-) ac_tag=-:-;;
30953   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30954   esac
30955   ac_save_IFS=$IFS
30956   IFS=:
30957   set x $ac_tag
30958   IFS=$ac_save_IFS
30959   shift
30960   ac_file=$1
30961   shift
30962
30963   case $ac_mode in
30964   :L) ac_source=$1;;
30965   :[FH])
30966     ac_file_inputs=
30967     for ac_f
30968     do
30969       case $ac_f in
30970       -) ac_f="$tmp/stdin";;
30971       *) # Look for the file first in the build tree, then in the source tree
30972          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30973          # because $ac_f cannot contain `:'.
30974          test -f "$ac_f" ||
30975            case $ac_f in
30976            [\\/$]*) false;;
30977            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30978            esac ||
30979            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30980 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30981    { (exit 1); exit 1; }; };;
30982       esac
30983       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30984       ac_file_inputs="$ac_file_inputs '$ac_f'"
30985     done
30986
30987     # Let's still pretend it is `configure' which instantiates (i.e., don't
30988     # use $as_me), people would be surprised to read:
30989     #    /* config.h.  Generated by config.status.  */
30990     configure_input='Generated from '`
30991           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30992         `' by configure.'
30993     if test x"$ac_file" != x-; then
30994       configure_input="$ac_file.  $configure_input"
30995       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30996 $as_echo "$as_me: creating $ac_file" >&6;}
30997     fi
30998     # Neutralize special characters interpreted by sed in replacement strings.
30999     case $configure_input in #(
31000     *\&* | *\|* | *\\* )
31001        ac_sed_conf_input=`$as_echo "$configure_input" |
31002        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31003     *) ac_sed_conf_input=$configure_input;;
31004     esac
31005
31006     case $ac_tag in
31007     *:-:* | *:-) cat >"$tmp/stdin" \
31008       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31009 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31010    { (exit 1); exit 1; }; } ;;
31011     esac
31012     ;;
31013   esac
31014
31015   ac_dir=`$as_dirname -- "$ac_file" ||
31016 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31017          X"$ac_file" : 'X\(//\)[^/]' \| \
31018          X"$ac_file" : 'X\(//\)$' \| \
31019          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31020 $as_echo X"$ac_file" |
31021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31022             s//\1/
31023             q
31024           }
31025           /^X\(\/\/\)[^/].*/{
31026             s//\1/
31027             q
31028           }
31029           /^X\(\/\/\)$/{
31030             s//\1/
31031             q
31032           }
31033           /^X\(\/\).*/{
31034             s//\1/
31035             q
31036           }
31037           s/.*/./; q'`
31038   { as_dir="$ac_dir"
31039   case $as_dir in #(
31040   -*) as_dir=./$as_dir;;
31041   esac
31042   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31043     as_dirs=
31044     while :; do
31045       case $as_dir in #(
31046       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31047       *) as_qdir=$as_dir;;
31048       esac
31049       as_dirs="'$as_qdir' $as_dirs"
31050       as_dir=`$as_dirname -- "$as_dir" ||
31051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31052          X"$as_dir" : 'X\(//\)[^/]' \| \
31053          X"$as_dir" : 'X\(//\)$' \| \
31054          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31055 $as_echo X"$as_dir" |
31056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31057             s//\1/
31058             q
31059           }
31060           /^X\(\/\/\)[^/].*/{
31061             s//\1/
31062             q
31063           }
31064           /^X\(\/\/\)$/{
31065             s//\1/
31066             q
31067           }
31068           /^X\(\/\).*/{
31069             s//\1/
31070             q
31071           }
31072           s/.*/./; q'`
31073       test -d "$as_dir" && break
31074     done
31075     test -z "$as_dirs" || eval "mkdir $as_dirs"
31076   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31077 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31078    { (exit 1); exit 1; }; }; }
31079   ac_builddir=.
31080
31081 case "$ac_dir" in
31082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31083 *)
31084   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31085   # A ".." for each directory in $ac_dir_suffix.
31086   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31087   case $ac_top_builddir_sub in
31088   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31089   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31090   esac ;;
31091 esac
31092 ac_abs_top_builddir=$ac_pwd
31093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31094 # for backward compatibility:
31095 ac_top_builddir=$ac_top_build_prefix
31096
31097 case $srcdir in
31098   .)  # We are building in place.
31099     ac_srcdir=.
31100     ac_top_srcdir=$ac_top_builddir_sub
31101     ac_abs_top_srcdir=$ac_pwd ;;
31102   [\\/]* | ?:[\\/]* )  # Absolute name.
31103     ac_srcdir=$srcdir$ac_dir_suffix;
31104     ac_top_srcdir=$srcdir
31105     ac_abs_top_srcdir=$srcdir ;;
31106   *) # Relative name.
31107     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31108     ac_top_srcdir=$ac_top_build_prefix$srcdir
31109     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31110 esac
31111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31112
31113
31114   case $ac_mode in
31115   :F)
31116   #
31117   # CONFIG_FILE
31118   #
31119
31120   case $INSTALL in
31121   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31122   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31123   esac
31124   ac_MKDIR_P=$MKDIR_P
31125   case $MKDIR_P in
31126   [\\/$]* | ?:[\\/]* ) ;;
31127   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31128   esac
31129 _ACEOF
31130
31131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31132 # If the template does not know about datarootdir, expand it.
31133 # FIXME: This hack should be removed a few years after 2.60.
31134 ac_datarootdir_hack=; ac_datarootdir_seen=
31135
31136 ac_sed_dataroot='
31137 /datarootdir/ {
31138   p
31139   q
31140 }
31141 /@datadir@/p
31142 /@docdir@/p
31143 /@infodir@/p
31144 /@localedir@/p
31145 /@mandir@/p
31146 '
31147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31148 *datarootdir*) ac_datarootdir_seen=yes;;
31149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31150   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31152 _ACEOF
31153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31154   ac_datarootdir_hack='
31155   s&@datadir@&$datadir&g
31156   s&@docdir@&$docdir&g
31157   s&@infodir@&$infodir&g
31158   s&@localedir@&$localedir&g
31159   s&@mandir@&$mandir&g
31160     s&\\\${datarootdir}&$datarootdir&g' ;;
31161 esac
31162 _ACEOF
31163
31164 # Neutralize VPATH when `$srcdir' = `.'.
31165 # Shell code in configure.ac might set extrasub.
31166 # FIXME: do we really want to maintain this feature?
31167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31168 ac_sed_extra="$ac_vpsub
31169 $extrasub
31170 _ACEOF
31171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31172 :t
31173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31174 s|@configure_input@|$ac_sed_conf_input|;t t
31175 s&@top_builddir@&$ac_top_builddir_sub&;t t
31176 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31177 s&@srcdir@&$ac_srcdir&;t t
31178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31179 s&@top_srcdir@&$ac_top_srcdir&;t t
31180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31181 s&@builddir@&$ac_builddir&;t t
31182 s&@abs_builddir@&$ac_abs_builddir&;t t
31183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31184 s&@INSTALL@&$ac_INSTALL&;t t
31185 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31186 $ac_datarootdir_hack
31187 "
31188 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31189   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31190 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31191    { (exit 1); exit 1; }; }
31192
31193 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31194   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31195   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31196   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31197 which seems to be undefined.  Please make sure it is defined." >&5
31198 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31199 which seems to be undefined.  Please make sure it is defined." >&2;}
31200
31201   rm -f "$tmp/stdin"
31202   case $ac_file in
31203   -) cat "$tmp/out" && rm -f "$tmp/out";;
31204   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31205   esac \
31206   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31207 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31208    { (exit 1); exit 1; }; }
31209  ;;
31210   :H)
31211   #
31212   # CONFIG_HEADER
31213   #
31214   if test x"$ac_file" != x-; then
31215     {
31216       $as_echo "/* $configure_input  */" \
31217       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31218     } >"$tmp/config.h" \
31219       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31220 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31221    { (exit 1); exit 1; }; }
31222     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31223       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31224 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31225     else
31226       rm -f "$ac_file"
31227       mv "$tmp/config.h" "$ac_file" \
31228         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31229 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31230    { (exit 1); exit 1; }; }
31231     fi
31232   else
31233     $as_echo "/* $configure_input  */" \
31234       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31235       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31236 $as_echo "$as_me: error: could not create -" >&2;}
31237    { (exit 1); exit 1; }; }
31238   fi
31239  ;;
31240   :L)
31241   #
31242   # CONFIG_LINK
31243   #
31244
31245   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31246     :
31247   else
31248     # Prefer the file from the source tree if names are identical.
31249     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31250       ac_source=$srcdir/$ac_source
31251     fi
31252
31253     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31254 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31255
31256     if test ! -r "$ac_source"; then
31257       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31258 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31259    { (exit 1); exit 1; }; }
31260     fi
31261     rm -f "$ac_file"
31262
31263     # Try a relative symlink, then a hard link, then a copy.
31264     case $srcdir in
31265     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31266         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31267     esac
31268     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31269       ln "$ac_source" "$ac_file" 2>/dev/null ||
31270       cp -p "$ac_source" "$ac_file" ||
31271       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31272 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31273    { (exit 1); exit 1; }; }
31274   fi
31275  ;;
31276   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31277 $as_echo "$as_me: executing $ac_file commands" >&6;}
31278  ;;
31279   esac
31280
31281
31282   case $ac_file$ac_mode in
31283     "check_win32_symlinks":C)
31284 # Links sometimes fail undetected on Mingw -
31285 # so here we detect it and warn the user
31286 for FILE in $CONFIG_LINKS
31287  do
31288         # test -e works for symlinks in the MinGW console
31289         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31290 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31291  done
31292  ;;
31293     "src/include/pg_config.h":H)
31294 # Update timestamp for pg_config.h (see Makefile.global)
31295 echo >src/include/stamp-h
31296  ;;
31297     "src/include/pg_config_ext.h":H)
31298 # Update timestamp for pg_config_ext.h (see Makefile.global)
31299 echo >src/include/stamp-ext-h
31300  ;;
31301     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31302
31303   esac
31304 done # for ac_tag
31305
31306
31307 { (exit 0); exit 0; }
31308 _ACEOF
31309 chmod +x $CONFIG_STATUS
31310 ac_clean_files=$ac_clean_files_save
31311
31312 test $ac_write_fail = 0 ||
31313   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31314 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31315    { (exit 1); exit 1; }; }
31316
31317
31318 # configure is writing to config.log, and then calls config.status.
31319 # config.status does its own redirection, appending to config.log.
31320 # Unfortunately, on DOS this fails, as config.log is still kept open
31321 # by configure, so config.status won't be able to write to it; its
31322 # output is simply discarded.  So we exec the FD to /dev/null,
31323 # effectively closing config.log, so it can be properly (re)opened and
31324 # appended to by config.status.  When coming back to configure, we
31325 # need to make the FD available again.
31326 if test "$no_create" != yes; then
31327   ac_cs_success=:
31328   ac_config_status_args=
31329   test "$silent" = yes &&
31330     ac_config_status_args="$ac_config_status_args --quiet"
31331   exec 5>/dev/null
31332   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31333   exec 5>>config.log
31334   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31335   # would make configure fail if this is the last instruction.
31336   $ac_cs_success || { (exit 1); exit 1; }
31337 fi
31338 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31339   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31340 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31341 fi
31342