]> granicus.if.org Git - postgresql/blob - configure
Install a workaround for a longstanding gcc bug that allows SIGFPE traps
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 8.5devel.
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-2009, 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='8.5devel'
602 PACKAGE_STRING='PostgreSQL 8.5devel'
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 LIBOBJS
671 HAVE_IPV6
672 OSSP_UUID_LIBS
673 ZIC
674 python_additional_libs
675 python_libspec
676 python_libdir
677 python_includespec
678 python_configdir
679 python_version
680 PYTHON
681 perl_embed_ldflags
682 perl_useshrplib
683 perl_privlibexp
684 perl_archlibexp
685 PERL
686 FLEXFLAGS
687 FLEX
688 BISONFLAGS
689 BISON
690 MKDIR_P
691 AWK
692 LN_S
693 TAR
694 WINDRES
695 DLLWRAP
696 DLLTOOL
697 AR
698 STRIP_SHARED_LIB
699 STRIP_STATIC_LIB
700 STRIP
701 RANLIB
702 ld_R_works
703 with_gnu_ld
704 LD
705 LDFLAGS_SL
706 ELF_SYS
707 EGREP
708 GREP
709 with_zlib
710 with_system_tzdata
711 with_libxslt
712 with_libxml
713 XML2_CONFIG
714 with_ossp_uuid
715 with_openssl
716 with_bonjour
717 with_ldap
718 with_pam
719 krb_srvtab
720 with_krb5
721 with_gssapi
722 with_python
723 with_perl
724 with_tcl
725 enable_thread_safety
726 INCLUDES
727 autodepend
728 TAS
729 GCC
730 CPP
731 SUN_STUDIO_CC
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
738 CC
739 enable_dtrace
740 DTRACEFLAGS
741 DTRACE
742 enable_coverage
743 GENHTML
744 LCOV
745 GCOV
746 enable_profiling
747 enable_debug
748 enable_rpath
749 enable_shared
750 default_port
751 WANTED_LANGUAGES
752 enable_nls
753 PORTNAME
754 host_os
755 host_vendor
756 host_cpu
757 host
758 build_os
759 build_vendor
760 build_cpu
761 build
762 PG_MAJORVERSION
763 configure_args
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 with_template
805 with_includes
806 with_libraries
807 with_libs
808 enable_integer_datetimes
809 enable_nls
810 with_pgport
811 enable_shared
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 enable_thread_safety_force
827 with_tcl
828 with_tclconfig
829 with_perl
830 with_python
831 with_gssapi
832 with_krb5
833 with_krb_srvnam
834 with_pam
835 with_ldap
836 with_bonjour
837 with_openssl
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_float4_byval
847 enable_float8_byval
848 enable_largefile
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_SL
860 DOCBOOKSTYLE'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915   # If the previous option needs an argument, assign it.
916   if test -n "$ac_prev"; then
917     eval $ac_prev=\$ac_option
918     ac_prev=
919     continue
920   fi
921
922   case $ac_option in
923   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924   *)    ac_optarg=yes ;;
925   esac
926
927   # Accept the important Cygnus configure options, so we can diagnose typos.
928
929   case $ac_dashdash$ac_option in
930   --)
931     ac_dashdash=yes ;;
932
933   -bindir | --bindir | --bindi | --bind | --bin | --bi)
934     ac_prev=bindir ;;
935   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936     bindir=$ac_optarg ;;
937
938   -build | --build | --buil | --bui | --bu)
939     ac_prev=build_alias ;;
940   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941     build_alias=$ac_optarg ;;
942
943   -cache-file | --cache-file | --cache-fil | --cache-fi \
944   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945     ac_prev=cache_file ;;
946   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948     cache_file=$ac_optarg ;;
949
950   --config-cache | -C)
951     cache_file=config.cache ;;
952
953   -datadir | --datadir | --datadi | --datad)
954     ac_prev=datadir ;;
955   -datadir=* | --datadir=* | --datadi=* | --datad=*)
956     datadir=$ac_optarg ;;
957
958   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959   | --dataroo | --dataro | --datar)
960     ac_prev=datarootdir ;;
961   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963     datarootdir=$ac_optarg ;;
964
965   -disable-* | --disable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970    { (exit 1); exit 1; }; }
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=no ;;
981
982   -docdir | --docdir | --docdi | --doc | --do)
983     ac_prev=docdir ;;
984   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985     docdir=$ac_optarg ;;
986
987   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988     ac_prev=dvidir ;;
989   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990     dvidir=$ac_optarg ;;
991
992   -enable-* | --enable-*)
993     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997    { (exit 1); exit 1; }; }
998     ac_useropt_orig=$ac_useropt
999     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000     case $ac_user_opts in
1001       *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005          ac_unrecognized_sep=', ';;
1006     esac
1007     eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011   | --exec | --exe | --ex)
1012     ac_prev=exec_prefix ;;
1013   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015   | --exec=* | --exe=* | --ex=*)
1016     exec_prefix=$ac_optarg ;;
1017
1018   -gas | --gas | --ga | --g)
1019     # Obsolete; use --with-gas.
1020     with_gas=yes ;;
1021
1022   -help | --help | --hel | --he | -h)
1023     ac_init_help=long ;;
1024   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025     ac_init_help=recursive ;;
1026   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027     ac_init_help=short ;;
1028
1029   -host | --host | --hos | --ho)
1030     ac_prev=host_alias ;;
1031   -host=* | --host=* | --hos=* | --ho=*)
1032     host_alias=$ac_optarg ;;
1033
1034   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035     ac_prev=htmldir ;;
1036   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037   | --ht=*)
1038     htmldir=$ac_optarg ;;
1039
1040   -includedir | --includedir | --includedi | --included | --include \
1041   | --includ | --inclu | --incl | --inc)
1042     ac_prev=includedir ;;
1043   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044   | --includ=* | --inclu=* | --incl=* | --inc=*)
1045     includedir=$ac_optarg ;;
1046
1047   -infodir | --infodir | --infodi | --infod | --info | --inf)
1048     ac_prev=infodir ;;
1049   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050     infodir=$ac_optarg ;;
1051
1052   -libdir | --libdir | --libdi | --libd)
1053     ac_prev=libdir ;;
1054   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055     libdir=$ac_optarg ;;
1056
1057   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058   | --libexe | --libex | --libe)
1059     ac_prev=libexecdir ;;
1060   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061   | --libexe=* | --libex=* | --libe=*)
1062     libexecdir=$ac_optarg ;;
1063
1064   -localedir | --localedir | --localedi | --localed | --locale)
1065     ac_prev=localedir ;;
1066   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067     localedir=$ac_optarg ;;
1068
1069   -localstatedir | --localstatedir | --localstatedi | --localstated \
1070   | --localstate | --localstat | --localsta | --localst | --locals)
1071     ac_prev=localstatedir ;;
1072   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074     localstatedir=$ac_optarg ;;
1075
1076   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077     ac_prev=mandir ;;
1078   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079     mandir=$ac_optarg ;;
1080
1081   -nfp | --nfp | --nf)
1082     # Obsolete; use --without-fp.
1083     with_fp=no ;;
1084
1085   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086   | --no-cr | --no-c | -n)
1087     no_create=yes ;;
1088
1089   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091     no_recursion=yes ;;
1092
1093   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095   | --oldin | --oldi | --old | --ol | --o)
1096     ac_prev=oldincludedir ;;
1097   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100     oldincludedir=$ac_optarg ;;
1101
1102   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103     ac_prev=prefix ;;
1104   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105     prefix=$ac_optarg ;;
1106
1107   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108   | --program-pre | --program-pr | --program-p)
1109     ac_prev=program_prefix ;;
1110   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112     program_prefix=$ac_optarg ;;
1113
1114   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115   | --program-suf | --program-su | --program-s)
1116     ac_prev=program_suffix ;;
1117   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119     program_suffix=$ac_optarg ;;
1120
1121   -program-transform-name | --program-transform-name \
1122   | --program-transform-nam | --program-transform-na \
1123   | --program-transform-n | --program-transform- \
1124   | --program-transform | --program-transfor \
1125   | --program-transfo | --program-transf \
1126   | --program-trans | --program-tran \
1127   | --progr-tra | --program-tr | --program-t)
1128     ac_prev=program_transform_name ;;
1129   -program-transform-name=* | --program-transform-name=* \
1130   | --program-transform-nam=* | --program-transform-na=* \
1131   | --program-transform-n=* | --program-transform-=* \
1132   | --program-transform=* | --program-transfor=* \
1133   | --program-transfo=* | --program-transf=* \
1134   | --program-trans=* | --program-tran=* \
1135   | --progr-tra=* | --program-tr=* | --program-t=*)
1136     program_transform_name=$ac_optarg ;;
1137
1138   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139     ac_prev=pdfdir ;;
1140   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141     pdfdir=$ac_optarg ;;
1142
1143   -psdir | --psdir | --psdi | --psd | --ps)
1144     ac_prev=psdir ;;
1145   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146     psdir=$ac_optarg ;;
1147
1148   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149   | -silent | --silent | --silen | --sile | --sil)
1150     silent=yes ;;
1151
1152   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153     ac_prev=sbindir ;;
1154   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155   | --sbi=* | --sb=*)
1156     sbindir=$ac_optarg ;;
1157
1158   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160   | --sharedst | --shareds | --shared | --share | --shar \
1161   | --sha | --sh)
1162     ac_prev=sharedstatedir ;;
1163   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166   | --sha=* | --sh=*)
1167     sharedstatedir=$ac_optarg ;;
1168
1169   -site | --site | --sit)
1170     ac_prev=site ;;
1171   -site=* | --site=* | --sit=*)
1172     site=$ac_optarg ;;
1173
1174   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175     ac_prev=srcdir ;;
1176   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177     srcdir=$ac_optarg ;;
1178
1179   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180   | --syscon | --sysco | --sysc | --sys | --sy)
1181     ac_prev=sysconfdir ;;
1182   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184     sysconfdir=$ac_optarg ;;
1185
1186   -target | --target | --targe | --targ | --tar | --ta | --t)
1187     ac_prev=target_alias ;;
1188   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189     target_alias=$ac_optarg ;;
1190
1191   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192     verbose=yes ;;
1193
1194   -version | --version | --versio | --versi | --vers | -V)
1195     ac_init_version=: ;;
1196
1197   -with-* | --with-*)
1198     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199     # Reject names that are not valid shell variable names.
1200     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202    { (exit 1); exit 1; }; }
1203     ac_useropt_orig=$ac_useropt
1204     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205     case $ac_user_opts in
1206       *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210          ac_unrecognized_sep=', ';;
1211     esac
1212     eval with_$ac_useropt=\$ac_optarg ;;
1213
1214   -without-* | --without-*)
1215     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216     # Reject names that are not valid shell variable names.
1217     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219    { (exit 1); exit 1; }; }
1220     ac_useropt_orig=$ac_useropt
1221     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222     case $ac_user_opts in
1223       *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227          ac_unrecognized_sep=', ';;
1228     esac
1229     eval with_$ac_useropt=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251    { (exit 1); exit 1; }; }
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259    { (exit 1); exit 1; }; }
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1277    { (exit 1); exit 1; }; }
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281   case $enable_option_checking in
1282     no) ;;
1283     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284    { (exit 1); exit 1; }; } ;;
1285     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286   esac
1287 fi
1288
1289 # Check all directory arguments for consistency.
1290 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291                 datadir sysconfdir sharedstatedir localstatedir includedir \
1292                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293                 libdir localedir mandir
1294 do
1295   eval ac_val=\$$ac_var
1296   # Remove trailing slashes.
1297   case $ac_val in
1298     */ )
1299       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300       eval $ac_var=\$ac_val;;
1301   esac
1302   # Be sure to have absolute directory names.
1303   case $ac_val in
1304     [\\/$]* | ?:[\\/]* )  continue;;
1305     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306   esac
1307   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308    { (exit 1); exit 1; }; }
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320   if test "x$build_alias" = x; then
1321     cross_compiling=maybe
1322     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323     If a cross compiler is detected then cross compile mode will be used." >&2
1324   elif test "x$build_alias" != "x$host_alias"; then
1325     cross_compiling=yes
1326   fi
1327 fi
1328
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332 test "$silent" = yes && exec 6>/dev/null
1333
1334
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339    { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342    { (exit 1); exit 1; }; }
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347   ac_srcdir_defaulted=yes
1348   # Try the directory containing this script, then the parent directory.
1349   ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351          X"$as_myself" : 'X\(//\)[^/]' \| \
1352          X"$as_myself" : 'X\(//\)$' \| \
1353          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\/\)[^/].*/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)$/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\).*/{
1368             s//\1/
1369             q
1370           }
1371           s/.*/./; q'`
1372   srcdir=$ac_confdir
1373   if test ! -r "$srcdir/$ac_unique_file"; then
1374     srcdir=..
1375   fi
1376 else
1377   ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382    { (exit 1); exit 1; }; }
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1387    { (exit 1); exit 1; }; }
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures PostgreSQL 8.5devel to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR            user executables [EPREFIX/bin]
1448   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR        program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453   --libdir=DIR            object code libraries [EPREFIX/lib]
1454   --includedir=DIR        C header files [PREFIX/include]
1455   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1456   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1457   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1458   --infodir=DIR           info documentation [DATAROOTDIR/info]
1459   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1460   --mandir=DIR            man documentation [DATAROOTDIR/man]
1461   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1462   --htmldir=DIR           html documentation [DOCDIR]
1463   --dvidir=DIR            dvi documentation [DOCDIR]
1464   --pdfdir=DIR            pdf documentation [DOCDIR]
1465   --psdir=DIR             ps documentation [DOCDIR]
1466 _ACEOF
1467
1468   cat <<\_ACEOF
1469
1470 System types:
1471   --build=BUILD     configure for building on BUILD [guessed]
1472   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477   case $ac_init_help in
1478      short | recursive ) echo "Configuration of PostgreSQL 8.5devel:";;
1479    esac
1480   cat <<\_ACEOF
1481
1482 Optional Features:
1483   --disable-option-checking  ignore unrecognized --enable/--with options
1484   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486   --disable-integer-datetimes
1487                           disable 64-bit integer date/time support
1488   --enable-nls[=LANGUAGES]
1489                           enable Native Language Support
1490   --disable-shared        do not build shared libraries
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   --enable-thread-safety  make client libraries thread-safe
1501   --enable-thread-safety-force
1502                           force thread-safety despite thread test failure
1503   --disable-float4-byval  disable float4 passed by value
1504   --disable-float8-byval  disable float8 passed by value
1505   --disable-largefile     omit support for large files
1506
1507 Optional Packages:
1508   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1509   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1510   --with-template=NAME    override operating system template
1511   --with-includes=DIRS    look for additional header files in DIRS
1512   --with-libraries=DIRS   look for additional libraries in DIRS
1513   --with-libs=DIRS        alternative spelling of --with-libraries
1514   --with-pgport=PORTNUM   set default port number [5432]
1515   --with-blocksize=BLOCKSIZE
1516                           set table block size in kB [8]
1517   --with-segsize=SEGSIZE  set table segment size in GB [1]
1518   --with-wal-blocksize=BLOCKSIZE
1519                           set WAL block size in kB [8]
1520   --with-wal-segsize=SEGSIZE
1521                           set WAL segment size in MB [16]
1522   --with-CC=CMD           set compiler (deprecated)
1523   --with-tcl              build Tcl modules (PL/Tcl)
1524   --with-tclconfig=DIR    tclConfig.sh is in DIR
1525   --with-perl             build Perl modules (PL/Perl)
1526   --with-python           build Python modules (PL/Python)
1527   --with-gssapi           build with GSSAPI support
1528   --with-krb5             build with Kerberos 5 support
1529   --with-krb-srvnam=NAME  default service principal name in Kerberos
1530                           [postgres]
1531   --with-pam              build with PAM support
1532   --with-ldap             build with LDAP support
1533   --with-bonjour          build with Bonjour support
1534   --with-openssl          build with OpenSSL support
1535   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1536   --with-libedit-preferred
1537                           prefer BSD Libedit over GNU Readline
1538   --with-ossp-uuid        use OSSP UUID library when building
1539                           contrib/uuid-ossp
1540   --with-libxml           build with XML support
1541   --with-libxslt          use XSLT support when building contrib/xml2
1542   --with-system-tzdata=DIR
1543                           use system time zone data in DIR
1544   --without-zlib          do not use Zlib
1545   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1546
1547 Some influential environment variables:
1548   CC          C compiler command
1549   CFLAGS      C compiler flags
1550   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551               nonstandard directory <lib dir>
1552   LIBS        libraries to pass to the linker, e.g. -l<library>
1553   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554               you have headers in a nonstandard directory <include dir>
1555   CPP         C preprocessor
1556   LDFLAGS_SL  linker flags for shared library linking
1557   DOCBOOKSTYLE
1558               location of DocBook stylesheets
1559
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 Report bugs to <pgsql-bugs@postgresql.org>.
1564 _ACEOF
1565 ac_status=$?
1566 fi
1567
1568 if test "$ac_init_help" = "recursive"; then
1569   # If there are subdirs, report their specific --help.
1570   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571     test -d "$ac_dir" ||
1572       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573       continue
1574     ac_builddir=.
1575
1576 case "$ac_dir" in
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *)
1579   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580   # A ".." for each directory in $ac_dir_suffix.
1581   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582   case $ac_top_builddir_sub in
1583   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585   esac ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1591
1592 case $srcdir in
1593   .)  # We are building in place.
1594     ac_srcdir=.
1595     ac_top_srcdir=$ac_top_builddir_sub
1596     ac_abs_top_srcdir=$ac_pwd ;;
1597   [\\/]* | ?:[\\/]* )  # Absolute name.
1598     ac_srcdir=$srcdir$ac_dir_suffix;
1599     ac_top_srcdir=$srcdir
1600     ac_abs_top_srcdir=$srcdir ;;
1601   *) # Relative name.
1602     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603     ac_top_srcdir=$ac_top_build_prefix$srcdir
1604     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 esac
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608     cd "$ac_dir" || { ac_status=$?; continue; }
1609     # Check for guested configure.
1610     if test -f "$ac_srcdir/configure.gnu"; then
1611       echo &&
1612       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613     elif test -f "$ac_srcdir/configure"; then
1614       echo &&
1615       $SHELL "$ac_srcdir/configure" --help=recursive
1616     else
1617       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618     fi || ac_status=$?
1619     cd "$ac_pwd" || { ac_status=$?; break; }
1620   done
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625   cat <<\_ACEOF
1626 PostgreSQL configure 8.5devel
1627 generated by GNU Autoconf 2.63
1628
1629 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1633
1634 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1635 _ACEOF
1636   exit
1637 fi
1638 cat >config.log <<_ACEOF
1639 This file contains any messages produced by compilers while
1640 running configure, to aid debugging if configure makes a mistake.
1641
1642 It was created by PostgreSQL $as_me 8.5devel, which was
1643 generated by GNU Autoconf 2.63.  Invocation command line was
1644
1645   $ $0 $@
1646
1647 _ACEOF
1648 exec 5>>config.log
1649 {
1650 cat <<_ASUNAME
1651 ## --------- ##
1652 ## Platform. ##
1653 ## --------- ##
1654
1655 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1656 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1657 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1658 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1659 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1660
1661 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1662 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1663
1664 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1665 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1666 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1667 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1668 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1669 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1670 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1671
1672 _ASUNAME
1673
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1676 do
1677   IFS=$as_save_IFS
1678   test -z "$as_dir" && as_dir=.
1679   $as_echo "PATH: $as_dir"
1680 done
1681 IFS=$as_save_IFS
1682
1683 } >&5
1684
1685 cat >&5 <<_ACEOF
1686
1687
1688 ## ----------- ##
1689 ## Core tests. ##
1690 ## ----------- ##
1691
1692 _ACEOF
1693
1694
1695 # Keep a trace of the command line.
1696 # Strip out --no-create and --no-recursion so they do not pile up.
1697 # Strip out --silent because we don't want to record it for future runs.
1698 # Also quote any args containing shell meta-characters.
1699 # Make two passes to allow for proper duplicate-argument suppression.
1700 ac_configure_args=
1701 ac_configure_args0=
1702 ac_configure_args1=
1703 ac_must_keep_next=false
1704 for ac_pass in 1 2
1705 do
1706   for ac_arg
1707   do
1708     case $ac_arg in
1709     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1710     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1711     | -silent | --silent | --silen | --sile | --sil)
1712       continue ;;
1713     *\'*)
1714       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715     esac
1716     case $ac_pass in
1717     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1718     2)
1719       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1720       if test $ac_must_keep_next = true; then
1721         ac_must_keep_next=false # Got value, back to normal.
1722       else
1723         case $ac_arg in
1724           *=* | --config-cache | -C | -disable-* | --disable-* \
1725           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1726           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1727           | -with-* | --with-* | -without-* | --without-* | --x)
1728             case "$ac_configure_args0 " in
1729               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1730             esac
1731             ;;
1732           -* ) ac_must_keep_next=true ;;
1733         esac
1734       fi
1735       ac_configure_args="$ac_configure_args '$ac_arg'"
1736       ;;
1737     esac
1738   done
1739 done
1740 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1741 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1742
1743 # When interrupted or exit'd, cleanup temporary files, and complete
1744 # config.log.  We remove comments because anyway the quotes in there
1745 # would cause problems or look ugly.
1746 # WARNING: Use '\'' to represent an apostrophe within the trap.
1747 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1748 trap 'exit_status=$?
1749   # Save into config.log some information that might help in debugging.
1750   {
1751     echo
1752
1753     cat <<\_ASBOX
1754 ## ---------------- ##
1755 ## Cache variables. ##
1756 ## ---------------- ##
1757 _ASBOX
1758     echo
1759     # The following way of writing the cache mishandles newlines in values,
1760 (
1761   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1762     eval ac_val=\$$ac_var
1763     case $ac_val in #(
1764     *${as_nl}*)
1765       case $ac_var in #(
1766       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1767 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1768       esac
1769       case $ac_var in #(
1770       _ | IFS | as_nl) ;; #(
1771       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1772       *) $as_unset $ac_var ;;
1773       esac ;;
1774     esac
1775   done
1776   (set) 2>&1 |
1777     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1778     *${as_nl}ac_space=\ *)
1779       sed -n \
1780         "s/'\''/'\''\\\\'\'''\''/g;
1781           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1782       ;; #(
1783     *)
1784       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1785       ;;
1786     esac |
1787     sort
1788 )
1789     echo
1790
1791     cat <<\_ASBOX
1792 ## ----------------- ##
1793 ## Output variables. ##
1794 ## ----------------- ##
1795 _ASBOX
1796     echo
1797     for ac_var in $ac_subst_vars
1798     do
1799       eval ac_val=\$$ac_var
1800       case $ac_val in
1801       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802       esac
1803       $as_echo "$ac_var='\''$ac_val'\''"
1804     done | sort
1805     echo
1806
1807     if test -n "$ac_subst_files"; then
1808       cat <<\_ASBOX
1809 ## ------------------- ##
1810 ## File substitutions. ##
1811 ## ------------------- ##
1812 _ASBOX
1813       echo
1814       for ac_var in $ac_subst_files
1815       do
1816         eval ac_val=\$$ac_var
1817         case $ac_val in
1818         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819         esac
1820         $as_echo "$ac_var='\''$ac_val'\''"
1821       done | sort
1822       echo
1823     fi
1824
1825     if test -s confdefs.h; then
1826       cat <<\_ASBOX
1827 ## ----------- ##
1828 ## confdefs.h. ##
1829 ## ----------- ##
1830 _ASBOX
1831       echo
1832       cat confdefs.h
1833       echo
1834     fi
1835     test "$ac_signal" != 0 &&
1836       $as_echo "$as_me: caught signal $ac_signal"
1837     $as_echo "$as_me: exit $exit_status"
1838   } >&5
1839   rm -f core *.core core.conftest.* &&
1840     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1841     exit $exit_status
1842 ' 0
1843 for ac_signal in 1 2 13 15; do
1844   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1845 done
1846 ac_signal=0
1847
1848 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1849 rm -f -r conftest* confdefs.h
1850
1851 # Predefined preprocessor variables.
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_NAME "$PACKAGE_NAME"
1855 _ACEOF
1856
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_STRING "$PACKAGE_STRING"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1875 _ACEOF
1876
1877
1878 # Let the site file select an alternate cache file if it wants to.
1879 # Prefer an explicitly selected file to automatically selected ones.
1880 ac_site_file1=NONE
1881 ac_site_file2=NONE
1882 if test -n "$CONFIG_SITE"; then
1883   ac_site_file1=$CONFIG_SITE
1884 elif test "x$prefix" != xNONE; then
1885   ac_site_file1=$prefix/share/config.site
1886   ac_site_file2=$prefix/etc/config.site
1887 else
1888   ac_site_file1=$ac_default_prefix/share/config.site
1889   ac_site_file2=$ac_default_prefix/etc/config.site
1890 fi
1891 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1892 do
1893   test "x$ac_site_file" = xNONE && continue
1894   if test -r "$ac_site_file"; then
1895     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1897     sed 's/^/| /' "$ac_site_file" >&5
1898     . "$ac_site_file"
1899   fi
1900 done
1901
1902 if test -r "$cache_file"; then
1903   # Some versions of bash will fail to source /dev/null (special
1904   # files actually), so we avoid doing that.
1905   if test -f "$cache_file"; then
1906     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907 $as_echo "$as_me: loading cache $cache_file" >&6;}
1908     case $cache_file in
1909       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910       *)                      . "./$cache_file";;
1911     esac
1912   fi
1913 else
1914   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915 $as_echo "$as_me: creating cache $cache_file" >&6;}
1916   >$cache_file
1917 fi
1918
1919 # Check that the precious variables saved in the cache have kept the same
1920 # value.
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924   eval ac_new_set=\$ac_env_${ac_var}_set
1925   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926   eval ac_new_val=\$ac_env_${ac_var}_value
1927   case $ac_old_set,$ac_new_set in
1928     set,)
1929       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931       ac_cache_corrupted=: ;;
1932     ,set)
1933       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935       ac_cache_corrupted=: ;;
1936     ,);;
1937     *)
1938       if test "x$ac_old_val" != "x$ac_new_val"; then
1939         # differences in whitespace do not lead to failure.
1940         ac_old_val_w=`echo x $ac_old_val`
1941         ac_new_val_w=`echo x $ac_new_val`
1942         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1943           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1944 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1945           ac_cache_corrupted=:
1946         else
1947           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1948 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1949           eval $ac_var=\$ac_old_val
1950         fi
1951         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1952 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1953         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1954 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1955       fi;;
1956   esac
1957   # Pass precious variables to config.status.
1958   if test "$ac_new_set" = set; then
1959     case $ac_new_val in
1960     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1961     *) ac_arg=$ac_var=$ac_new_val ;;
1962     esac
1963     case " $ac_configure_args " in
1964       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1965       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1966     esac
1967   fi
1968 done
1969 if $ac_cache_corrupted; then
1970   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1972   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1973 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1974   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1975 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1976    { (exit 1); exit 1; }; }
1977 fi
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
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008
2009
2010
2011
2012
2013
2014 ac_aux_dir=
2015 for ac_dir in config "$srcdir"/config; do
2016   if test -f "$ac_dir/install-sh"; then
2017     ac_aux_dir=$ac_dir
2018     ac_install_sh="$ac_aux_dir/install-sh -c"
2019     break
2020   elif test -f "$ac_dir/install.sh"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/install.sh -c"
2023     break
2024   elif test -f "$ac_dir/shtool"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/shtool install -c"
2027     break
2028   fi
2029 done
2030 if test -z "$ac_aux_dir"; then
2031   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2032 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2033    { (exit 1); exit 1; }; }
2034 fi
2035
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2043
2044
2045
2046 configure_args=$ac_configure_args
2047
2048
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PG_VERSION "$PACKAGE_VERSION"
2052 _ACEOF
2053
2054 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2055
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2059 _ACEOF
2060
2061
2062 # Make sure we can run config.sub.
2063 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2064   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066    { (exit 1); exit 1; }; }
2067
2068 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2069 $as_echo_n "checking build system type... " >&6; }
2070 if test "${ac_cv_build+set}" = set; then
2071   $as_echo_n "(cached) " >&6
2072 else
2073   ac_build_alias=$build_alias
2074 test "x$ac_build_alias" = x &&
2075   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076 test "x$ac_build_alias" = x &&
2077   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079    { (exit 1); exit 1; }; }
2080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2081   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083    { (exit 1); exit 1; }; }
2084
2085 fi
2086 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 $as_echo "$ac_cv_build" >&6; }
2088 case $ac_cv_build in
2089 *-*-*) ;;
2090 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2092    { (exit 1); exit 1; }; };;
2093 esac
2094 build=$ac_cv_build
2095 ac_save_IFS=$IFS; IFS='-'
2096 set x $ac_cv_build
2097 shift
2098 build_cpu=$1
2099 build_vendor=$2
2100 shift; shift
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2103 build_os=$*
2104 IFS=$ac_save_IFS
2105 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2106
2107
2108 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2109 $as_echo_n "checking host system type... " >&6; }
2110 if test "${ac_cv_host+set}" = set; then
2111   $as_echo_n "(cached) " >&6
2112 else
2113   if test "x$host_alias" = x; then
2114   ac_cv_host=$ac_cv_build
2115 else
2116   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2117     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119    { (exit 1); exit 1; }; }
2120 fi
2121
2122 fi
2123 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124 $as_echo "$ac_cv_host" >&6; }
2125 case $ac_cv_host in
2126 *-*-*) ;;
2127 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2129    { (exit 1); exit 1; }; };;
2130 esac
2131 host=$ac_cv_host
2132 ac_save_IFS=$IFS; IFS='-'
2133 set x $ac_cv_host
2134 shift
2135 host_cpu=$1
2136 host_vendor=$2
2137 shift; shift
2138 # Remember, the first character of IFS is used to create $*,
2139 # except with old shells:
2140 host_os=$*
2141 IFS=$ac_save_IFS
2142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2143
2144
2145
2146 template=
2147 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2148 $as_echo_n "checking which template to use... " >&6; }
2149
2150
2151
2152
2153 # Check whether --with-template was given.
2154 if test "${with_template+set}" = set; then
2155   withval=$with_template;
2156   case $withval in
2157     yes)
2158       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2159 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2160    { (exit 1); exit 1; }; }
2161       ;;
2162     no)
2163       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2164 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2165    { (exit 1); exit 1; }; }
2166       ;;
2167     *)
2168
2169   case $withval in
2170     list)   echo; ls "$srcdir/src/template"; exit;;
2171     *)      if test -f "$srcdir/src/template/$with_template" ; then
2172               template=$withval
2173             else
2174               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2175 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2176    { (exit 1); exit 1; }; }
2177             fi;;
2178   esac
2179
2180       ;;
2181   esac
2182
2183 else
2184
2185 # --with-template not given
2186
2187 case $host_os in
2188      aix*) template=aix ;;
2189     bsdi*) template=bsdi ;;
2190   cygwin*) template=cygwin ;;
2191   darwin*) template=darwin ;;
2192     dgux*) template=dgux ;;
2193  freebsd*) template=freebsd ;;
2194     hpux*) template=hpux ;;
2195     irix*) template=irix ;;
2196  linux*|gnu*|k*bsd*-gnu)
2197            template=linux ;;
2198    mingw*) template=win32 ;;
2199   netbsd*) template=netbsd ;;
2200 nextstep*) template=nextstep ;;
2201  openbsd*) template=openbsd ;;
2202      osf*) template=osf ;;
2203      sco*) template=sco ;;
2204  solaris*) template=solaris ;;
2205    sunos*) template=sunos4 ;;
2206  sysv4.2*)
2207         case $host_vendor in
2208           univel) template=univel ;;
2209         esac ;;
2210    sysv4*) template=svr4 ;;
2211    sysv5*) template=unixware ;;
2212   ultrix*) template=ultrix4 ;;
2213 esac
2214
2215   if test x"$template" = x"" ; then
2216     { { $as_echo "$as_me:$LINENO: error:
2217 *******************************************************************
2218 PostgreSQL has apparently not been ported to your platform yet.
2219 To try a manual configuration, look into the src/template directory
2220 for a similar platform and use the '--with-template=' option.
2221
2222 Please also contact <pgsql-bugs@postgresql.org> to see about
2223 rectifying this.  Include the above 'checking host system type...'
2224 line.
2225 *******************************************************************
2226 " >&5
2227 $as_echo "$as_me: error:
2228 *******************************************************************
2229 PostgreSQL has apparently not been ported to your platform yet.
2230 To try a manual configuration, look into the src/template directory
2231 for a similar platform and use the '--with-template=' option.
2232
2233 Please also contact <pgsql-bugs@postgresql.org> to see about
2234 rectifying this.  Include the above 'checking host system type...'
2235 line.
2236 *******************************************************************
2237 " >&2;}
2238    { (exit 1); exit 1; }; }
2239   fi
2240
2241
2242 fi
2243
2244
2245
2246 { $as_echo "$as_me:$LINENO: result: $template" >&5
2247 $as_echo "$template" >&6; }
2248
2249 PORTNAME=$template
2250
2251
2252 # Initialize default assumption that we do not need separate assembly code
2253 # for TAS (test-and-set).  This can be overridden by the template file
2254 # when it's executed.
2255 need_tas=no
2256 tas_file=dummy.s
2257
2258
2259
2260 ##
2261 ## Command line options
2262 ##
2263
2264 #
2265 # Add non-standard directories to the include path
2266 #
2267
2268
2269
2270 # Check whether --with-includes was given.
2271 if test "${with_includes+set}" = set; then
2272   withval=$with_includes;
2273   case $withval in
2274     yes)
2275       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2276 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2277    { (exit 1); exit 1; }; }
2278       ;;
2279     no)
2280       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2281 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2282    { (exit 1); exit 1; }; }
2283       ;;
2284     *)
2285
2286       ;;
2287   esac
2288
2289 fi
2290
2291
2292
2293
2294 #
2295 # Add non-standard directories to the library search path
2296 #
2297
2298
2299
2300 # Check whether --with-libraries was given.
2301 if test "${with_libraries+set}" = set; then
2302   withval=$with_libraries;
2303   case $withval in
2304     yes)
2305       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2306 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2307    { (exit 1); exit 1; }; }
2308       ;;
2309     no)
2310       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2311 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2312    { (exit 1); exit 1; }; }
2313       ;;
2314     *)
2315       LIBRARY_DIRS=$withval
2316       ;;
2317   esac
2318
2319 fi
2320
2321
2322
2323
2324
2325
2326 # Check whether --with-libs was given.
2327 if test "${with_libs+set}" = set; then
2328   withval=$with_libs;
2329   case $withval in
2330     yes)
2331       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2332 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2333    { (exit 1); exit 1; }; }
2334       ;;
2335     no)
2336       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2337 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2338    { (exit 1); exit 1; }; }
2339       ;;
2340     *)
2341       LIBRARY_DIRS=$withval
2342       ;;
2343   esac
2344
2345 fi
2346
2347
2348
2349
2350 #
2351 # 64-bit integer date/time storage: enabled by default.
2352 #
2353 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2354 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2355
2356
2357 # Check whether --enable-integer-datetimes was given.
2358 if test "${enable_integer_datetimes+set}" = set; then
2359   enableval=$enable_integer_datetimes;
2360   case $enableval in
2361     yes)
2362
2363 cat >>confdefs.h <<\_ACEOF
2364 #define USE_INTEGER_DATETIMES 1
2365 _ACEOF
2366
2367       ;;
2368     no)
2369       :
2370       ;;
2371     *)
2372       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2373 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2374    { (exit 1); exit 1; }; }
2375       ;;
2376   esac
2377
2378 else
2379   enable_integer_datetimes=yes
2380
2381 cat >>confdefs.h <<\_ACEOF
2382 #define USE_INTEGER_DATETIMES 1
2383 _ACEOF
2384
2385 fi
2386
2387
2388 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2389 $as_echo "$enable_integer_datetimes" >&6; }
2390
2391
2392 #
2393 # NLS
2394 #
2395 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2396 $as_echo_n "checking whether NLS is wanted... " >&6; }
2397
2398
2399 # Check whether --enable-nls was given.
2400 if test "${enable_nls+set}" = set; then
2401   enableval=$enable_nls;
2402   case $enableval in
2403     yes)
2404       :
2405       ;;
2406     no)
2407       :
2408       ;;
2409     *)
2410       enable_nls=yes
2411 WANTED_LANGUAGES=$enableval
2412       ;;
2413   esac
2414
2415 else
2416   enable_nls=no
2417 fi
2418
2419
2420
2421 if test "$enable_nls" = yes; then
2422
2423 cat >>confdefs.h <<\_ACEOF
2424 #define ENABLE_NLS 1
2425 _ACEOF
2426
2427 fi
2428
2429 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2430 $as_echo "$enable_nls" >&6; }
2431
2432
2433
2434 #
2435 # Default port number (--with-pgport), default 5432
2436 #
2437 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2438 $as_echo_n "checking for default port number... " >&6; }
2439
2440
2441
2442 # Check whether --with-pgport was given.
2443 if test "${with_pgport+set}" = set; then
2444   withval=$with_pgport;
2445   case $withval in
2446     yes)
2447       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2448 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2449    { (exit 1); exit 1; }; }
2450       ;;
2451     no)
2452       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2453 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2454    { (exit 1); exit 1; }; }
2455       ;;
2456     *)
2457       default_port=$withval
2458       ;;
2459   esac
2460
2461 else
2462   default_port=5432
2463 fi
2464
2465
2466 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2467 $as_echo "$default_port" >&6; }
2468 # Need both of these because some places want an integer and some a string
2469
2470 cat >>confdefs.h <<_ACEOF
2471 #define DEF_PGPORT ${default_port}
2472 _ACEOF
2473
2474
2475 cat >>confdefs.h <<_ACEOF
2476 #define DEF_PGPORT_STR "${default_port}"
2477 _ACEOF
2478
2479
2480
2481 #
2482 # Option to disable shared libraries
2483 #
2484
2485
2486 # Check whether --enable-shared was given.
2487 if test "${enable_shared+set}" = set; then
2488   enableval=$enable_shared;
2489   case $enableval in
2490     yes)
2491       :
2492       ;;
2493     no)
2494       :
2495       ;;
2496     *)
2497       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2498 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2499    { (exit 1); exit 1; }; }
2500       ;;
2501   esac
2502
2503 else
2504   enable_shared=yes
2505
2506 fi
2507
2508
2509
2510
2511 #
2512 # '-rpath'-like feature can be disabled
2513 #
2514
2515
2516 # Check whether --enable-rpath was given.
2517 if test "${enable_rpath+set}" = set; then
2518   enableval=$enable_rpath;
2519   case $enableval in
2520     yes)
2521       :
2522       ;;
2523     no)
2524       :
2525       ;;
2526     *)
2527       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2528 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2529    { (exit 1); exit 1; }; }
2530       ;;
2531   esac
2532
2533 else
2534   enable_rpath=yes
2535
2536 fi
2537
2538
2539
2540
2541 #
2542 # Spinlocks
2543 #
2544
2545
2546 # Check whether --enable-spinlocks was given.
2547 if test "${enable_spinlocks+set}" = set; then
2548   enableval=$enable_spinlocks;
2549   case $enableval in
2550     yes)
2551       :
2552       ;;
2553     no)
2554       :
2555       ;;
2556     *)
2557       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2558 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2559    { (exit 1); exit 1; }; }
2560       ;;
2561   esac
2562
2563 else
2564   enable_spinlocks=yes
2565
2566 fi
2567
2568
2569
2570 #
2571 # --enable-debug adds -g to compiler flags
2572 #
2573
2574
2575 # Check whether --enable-debug was given.
2576 if test "${enable_debug+set}" = set; then
2577   enableval=$enable_debug;
2578   case $enableval in
2579     yes)
2580       :
2581       ;;
2582     no)
2583       :
2584       ;;
2585     *)
2586       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2587 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2588    { (exit 1); exit 1; }; }
2589       ;;
2590   esac
2591
2592 else
2593   enable_debug=no
2594
2595 fi
2596
2597
2598
2599
2600 #
2601 # --enable-profiling enables gcc profiling
2602 #
2603
2604
2605 # Check whether --enable-profiling was given.
2606 if test "${enable_profiling+set}" = set; then
2607   enableval=$enable_profiling;
2608   case $enableval in
2609     yes)
2610       :
2611       ;;
2612     no)
2613       :
2614       ;;
2615     *)
2616       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2617 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2618    { (exit 1); exit 1; }; }
2619       ;;
2620   esac
2621
2622 else
2623   enable_profiling=no
2624
2625 fi
2626
2627
2628
2629
2630 #
2631 # --enable-coverage enables generation of code coverage metrics with gcov
2632 #
2633
2634
2635 # Check whether --enable-coverage was given.
2636 if test "${enable_coverage+set}" = set; then
2637   enableval=$enable_coverage;
2638   case $enableval in
2639     yes)
2640       for ac_prog in gcov
2641 do
2642   # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_GCOV+set}" = set; then
2647   $as_echo_n "(cached) " >&6
2648 else
2649   if test -n "$GCOV"; then
2650   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655   IFS=$as_save_IFS
2656   test -z "$as_dir" && as_dir=.
2657   for ac_exec_ext in '' $ac_executable_extensions; do
2658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659     ac_cv_prog_GCOV="$ac_prog"
2660     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661     break 2
2662   fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 fi
2668 fi
2669 GCOV=$ac_cv_prog_GCOV
2670 if test -n "$GCOV"; then
2671   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2672 $as_echo "$GCOV" >&6; }
2673 else
2674   { $as_echo "$as_me:$LINENO: result: no" >&5
2675 $as_echo "no" >&6; }
2676 fi
2677
2678
2679   test -n "$GCOV" && break
2680 done
2681
2682 if test -z "$GCOV"; then
2683   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2684 $as_echo "$as_me: error: gcov not found" >&2;}
2685    { (exit 1); exit 1; }; }
2686 fi
2687 for ac_prog in lcov
2688 do
2689   # Extract the first word of "$ac_prog", so it can be a program name with args.
2690 set dummy $ac_prog; ac_word=$2
2691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if test "${ac_cv_prog_LCOV+set}" = set; then
2694   $as_echo_n "(cached) " >&6
2695 else
2696   if test -n "$LCOV"; then
2697   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702   IFS=$as_save_IFS
2703   test -z "$as_dir" && as_dir=.
2704   for ac_exec_ext in '' $ac_executable_extensions; do
2705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706     ac_cv_prog_LCOV="$ac_prog"
2707     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708     break 2
2709   fi
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714 fi
2715 fi
2716 LCOV=$ac_cv_prog_LCOV
2717 if test -n "$LCOV"; then
2718   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2719 $as_echo "$LCOV" >&6; }
2720 else
2721   { $as_echo "$as_me:$LINENO: result: no" >&5
2722 $as_echo "no" >&6; }
2723 fi
2724
2725
2726   test -n "$LCOV" && break
2727 done
2728
2729 if test -z "$LCOV"; then
2730   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2731 $as_echo "$as_me: error: lcov not found" >&2;}
2732    { (exit 1); exit 1; }; }
2733 fi
2734 for ac_prog in genhtml
2735 do
2736   # Extract the first word of "$ac_prog", so it can be a program name with args.
2737 set dummy $ac_prog; ac_word=$2
2738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if test "${ac_cv_prog_GENHTML+set}" = set; then
2741   $as_echo_n "(cached) " >&6
2742 else
2743   if test -n "$GENHTML"; then
2744   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749   IFS=$as_save_IFS
2750   test -z "$as_dir" && as_dir=.
2751   for ac_exec_ext in '' $ac_executable_extensions; do
2752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753     ac_cv_prog_GENHTML="$ac_prog"
2754     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755     break 2
2756   fi
2757 done
2758 done
2759 IFS=$as_save_IFS
2760
2761 fi
2762 fi
2763 GENHTML=$ac_cv_prog_GENHTML
2764 if test -n "$GENHTML"; then
2765   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2766 $as_echo "$GENHTML" >&6; }
2767 else
2768   { $as_echo "$as_me:$LINENO: result: no" >&5
2769 $as_echo "no" >&6; }
2770 fi
2771
2772
2773   test -n "$GENHTML" && break
2774 done
2775
2776 if test -z "$GENHTML"; then
2777   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2778 $as_echo "$as_me: error: genhtml not found" >&2;}
2779    { (exit 1); exit 1; }; }
2780 fi
2781       ;;
2782     no)
2783       :
2784       ;;
2785     *)
2786       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2787 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2788    { (exit 1); exit 1; }; }
2789       ;;
2790   esac
2791
2792 else
2793   enable_coverage=no
2794
2795 fi
2796
2797
2798
2799
2800 #
2801 # DTrace
2802 #
2803
2804
2805 # Check whether --enable-dtrace was given.
2806 if test "${enable_dtrace+set}" = set; then
2807   enableval=$enable_dtrace;
2808   case $enableval in
2809     yes)
2810
2811 cat >>confdefs.h <<\_ACEOF
2812 #define ENABLE_DTRACE 1
2813 _ACEOF
2814
2815 for ac_prog in dtrace
2816 do
2817   # Extract the first word of "$ac_prog", so it can be a program name with args.
2818 set dummy $ac_prog; ac_word=$2
2819 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if test "${ac_cv_prog_DTRACE+set}" = set; then
2822   $as_echo_n "(cached) " >&6
2823 else
2824   if test -n "$DTRACE"; then
2825   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830   IFS=$as_save_IFS
2831   test -z "$as_dir" && as_dir=.
2832   for ac_exec_ext in '' $ac_executable_extensions; do
2833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834     ac_cv_prog_DTRACE="$ac_prog"
2835     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836     break 2
2837   fi
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 DTRACE=$ac_cv_prog_DTRACE
2845 if test -n "$DTRACE"; then
2846   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2847 $as_echo "$DTRACE" >&6; }
2848 else
2849   { $as_echo "$as_me:$LINENO: result: no" >&5
2850 $as_echo "no" >&6; }
2851 fi
2852
2853
2854   test -n "$DTRACE" && break
2855 done
2856
2857 if test -z "$DTRACE"; then
2858   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2859 $as_echo "$as_me: error: dtrace not found" >&2;}
2860    { (exit 1); exit 1; }; }
2861 fi
2862
2863       ;;
2864     no)
2865       :
2866       ;;
2867     *)
2868       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2869 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2870    { (exit 1); exit 1; }; }
2871       ;;
2872   esac
2873
2874 else
2875   enable_dtrace=no
2876
2877 fi
2878
2879
2880
2881
2882 #
2883 # Block size
2884 #
2885 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2886 $as_echo_n "checking for block size... " >&6; }
2887
2888
2889
2890 # Check whether --with-blocksize was given.
2891 if test "${with_blocksize+set}" = set; then
2892   withval=$with_blocksize;
2893   case $withval in
2894     yes)
2895       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2896 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2897    { (exit 1); exit 1; }; }
2898       ;;
2899     no)
2900       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2901 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2902    { (exit 1); exit 1; }; }
2903       ;;
2904     *)
2905       blocksize=$withval
2906       ;;
2907   esac
2908
2909 else
2910   blocksize=8
2911 fi
2912
2913
2914 case ${blocksize} in
2915   1) BLCKSZ=1024;;
2916   2) BLCKSZ=2048;;
2917   4) BLCKSZ=4096;;
2918   8) BLCKSZ=8192;;
2919  16) BLCKSZ=16384;;
2920  32) BLCKSZ=32768;;
2921   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2922 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2923    { (exit 1); exit 1; }; }
2924 esac
2925 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2926 $as_echo "${blocksize}kB" >&6; }
2927
2928
2929 cat >>confdefs.h <<_ACEOF
2930 #define BLCKSZ ${BLCKSZ}
2931 _ACEOF
2932
2933
2934 #
2935 # Relation segment size
2936 #
2937 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2938 $as_echo_n "checking for segment size... " >&6; }
2939
2940
2941
2942 # Check whether --with-segsize was given.
2943 if test "${with_segsize+set}" = set; then
2944   withval=$with_segsize;
2945   case $withval in
2946     yes)
2947       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2948 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2949    { (exit 1); exit 1; }; }
2950       ;;
2951     no)
2952       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2954    { (exit 1); exit 1; }; }
2955       ;;
2956     *)
2957       segsize=$withval
2958       ;;
2959   esac
2960
2961 else
2962   segsize=1
2963 fi
2964
2965
2966 # this expression is set up to avoid unnecessary integer overflow
2967 # blocksize is already guaranteed to be a factor of 1024
2968 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2969 test $? -eq 0 || exit 1
2970 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2971 $as_echo "${segsize}GB" >&6; }
2972
2973
2974 cat >>confdefs.h <<_ACEOF
2975 #define RELSEG_SIZE ${RELSEG_SIZE}
2976 _ACEOF
2977
2978
2979 #
2980 # WAL block size
2981 #
2982 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2983 $as_echo_n "checking for WAL block size... " >&6; }
2984
2985
2986
2987 # Check whether --with-wal-blocksize was given.
2988 if test "${with_wal_blocksize+set}" = set; then
2989   withval=$with_wal_blocksize;
2990   case $withval in
2991     yes)
2992       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2993 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2994    { (exit 1); exit 1; }; }
2995       ;;
2996     no)
2997       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2998 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2999    { (exit 1); exit 1; }; }
3000       ;;
3001     *)
3002       wal_blocksize=$withval
3003       ;;
3004   esac
3005
3006 else
3007   wal_blocksize=8
3008 fi
3009
3010
3011 case ${wal_blocksize} in
3012   1) XLOG_BLCKSZ=1024;;
3013   2) XLOG_BLCKSZ=2048;;
3014   4) XLOG_BLCKSZ=4096;;
3015   8) XLOG_BLCKSZ=8192;;
3016  16) XLOG_BLCKSZ=16384;;
3017  32) XLOG_BLCKSZ=32768;;
3018  64) XLOG_BLCKSZ=65536;;
3019   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3020 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3021    { (exit 1); exit 1; }; }
3022 esac
3023 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3024 $as_echo "${wal_blocksize}kB" >&6; }
3025
3026
3027 cat >>confdefs.h <<_ACEOF
3028 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3029 _ACEOF
3030
3031
3032 #
3033 # WAL segment size
3034 #
3035 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3036 $as_echo_n "checking for WAL segment size... " >&6; }
3037
3038
3039
3040 # Check whether --with-wal-segsize was given.
3041 if test "${with_wal_segsize+set}" = set; then
3042   withval=$with_wal_segsize;
3043   case $withval in
3044     yes)
3045       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3046 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3047    { (exit 1); exit 1; }; }
3048       ;;
3049     no)
3050       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3051 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3052    { (exit 1); exit 1; }; }
3053       ;;
3054     *)
3055       wal_segsize=$withval
3056       ;;
3057   esac
3058
3059 else
3060   wal_segsize=16
3061 fi
3062
3063
3064 case ${wal_segsize} in
3065   1) ;;
3066   2) ;;
3067   4) ;;
3068   8) ;;
3069  16) ;;
3070  32) ;;
3071  64) ;;
3072   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3073 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3074    { (exit 1); exit 1; }; }
3075 esac
3076 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3077 $as_echo "${wal_segsize}MB" >&6; }
3078
3079
3080 cat >>confdefs.h <<_ACEOF
3081 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3082 _ACEOF
3083
3084
3085 #
3086 # C compiler
3087 #
3088
3089 # For historical reasons you can also use --with-CC to specify the C compiler
3090 # to use, although the standard way to do this is to set the CC environment
3091 # variable.
3092
3093
3094
3095 # Check whether --with-CC was given.
3096 if test "${with_CC+set}" = set; then
3097   withval=$with_CC;
3098   case $withval in
3099     yes)
3100       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3101 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3102    { (exit 1); exit 1; }; }
3103       ;;
3104     no)
3105       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3106 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3107    { (exit 1); exit 1; }; }
3108       ;;
3109     *)
3110       CC=$with_CC
3111       ;;
3112   esac
3113
3114 fi
3115
3116
3117
3118 case $template in
3119   aix) pgac_cc_list="gcc xlc";;
3120  irix) pgac_cc_list="cc";; # no gcc
3121     *) pgac_cc_list="gcc cc";;
3122 esac
3123
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129 if test -n "$ac_tool_prefix"; then
3130   for ac_prog in $pgac_cc_list
3131   do
3132     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if test "${ac_cv_prog_CC+set}" = set; then
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test -n "$CC"; then
3140   ac_cv_prog_CC="$CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147   for ac_exec_ext in '' $ac_executable_extensions; do
3148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3150     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3163 else
3164   { $as_echo "$as_me:$LINENO: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169     test -n "$CC" && break
3170   done
3171 fi
3172 if test -z "$CC"; then
3173   ac_ct_CC=$CC
3174   for ac_prog in $pgac_cc_list
3175 do
3176   # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy $ac_prog; ac_word=$2
3178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3181   $as_echo_n "(cached) " >&6
3182 else
3183   if test -n "$ac_ct_CC"; then
3184   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189   IFS=$as_save_IFS
3190   test -z "$as_dir" && as_dir=.
3191   for ac_exec_ext in '' $ac_executable_extensions; do
3192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193     ac_cv_prog_ac_ct_CC="$ac_prog"
3194     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3195     break 2
3196   fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204 if test -n "$ac_ct_CC"; then
3205   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3206 $as_echo "$ac_ct_CC" >&6; }
3207 else
3208   { $as_echo "$as_me:$LINENO: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213   test -n "$ac_ct_CC" && break
3214 done
3215
3216   if test "x$ac_ct_CC" = x; then
3217     CC=""
3218   else
3219     case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225     CC=$ac_ct_CC
3226   fi
3227 fi
3228
3229
3230 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3233 See \`config.log' for more details." >&5
3234 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details." >&2;}
3236    { (exit 1); exit 1; }; }; }
3237
3238 # Provide some information about the compiler.
3239 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3240 set X $ac_compile
3241 ac_compiler=$2
3242 { (ac_try="$ac_compiler --version >&5"
3243 case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3248 $as_echo "$ac_try_echo") >&5
3249   (eval "$ac_compiler --version >&5") 2>&5
3250   ac_status=$?
3251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); }
3253 { (ac_try="$ac_compiler -v >&5"
3254 case "(($ac_try" in
3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256   *) ac_try_echo=$ac_try;;
3257 esac
3258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3259 $as_echo "$ac_try_echo") >&5
3260   (eval "$ac_compiler -v >&5") 2>&5
3261   ac_status=$?
3262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); }
3264 { (ac_try="$ac_compiler -V >&5"
3265 case "(($ac_try" in
3266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267   *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3270 $as_echo "$ac_try_echo") >&5
3271   (eval "$ac_compiler -V >&5") 2>&5
3272   ac_status=$?
3273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); }
3275
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282
3283 int
3284 main ()
3285 {
3286
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 ac_clean_files_save=$ac_clean_files
3292 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3293 # Try to create an executable without -o first, disregard a.out.
3294 # It will help us diagnose broken compilers, and finding out an intuition
3295 # of exeext.
3296 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3297 $as_echo_n "checking for C compiler default output file name... " >&6; }
3298 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3299
3300 # The possible output files:
3301 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3302
3303 ac_rmfiles=
3304 for ac_file in $ac_files
3305 do
3306   case $ac_file in
3307     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3308     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3309   esac
3310 done
3311 rm -f $ac_rmfiles
3312
3313 if { (ac_try="$ac_link_default"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3319 $as_echo "$ac_try_echo") >&5
3320   (eval "$ac_link_default") 2>&5
3321   ac_status=$?
3322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); }; then
3324   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3325 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3326 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3327 # so that the user can short-circuit this test for compilers unknown to
3328 # Autoconf.
3329 for ac_file in $ac_files ''
3330 do
3331   test -f "$ac_file" || continue
3332   case $ac_file in
3333     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3334         ;;
3335     [ab].out )
3336         # We found the default executable, but exeext='' is most
3337         # certainly right.
3338         break;;
3339     *.* )
3340         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3341         then :; else
3342            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343         fi
3344         # We set ac_cv_exeext here because the later test for it is not
3345         # safe: cross compilers may not add the suffix if given an `-o'
3346         # argument, so we may need to know it at that point already.
3347         # Even if this section looks crufty: it has the advantage of
3348         # actually working.
3349         break;;
3350     * )
3351         break;;
3352   esac
3353 done
3354 test "$ac_cv_exeext" = no && ac_cv_exeext=
3355
3356 else
3357   ac_file=''
3358 fi
3359
3360 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3361 $as_echo "$ac_file" >&6; }
3362 if test -z "$ac_file"; then
3363   $as_echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3369 See \`config.log' for more details." >&5
3370 $as_echo "$as_me: error: C compiler cannot create executables
3371 See \`config.log' for more details." >&2;}
3372    { (exit 77); exit 77; }; }; }
3373 fi
3374
3375 ac_exeext=$ac_cv_exeext
3376
3377 # Check that the compiler produces executables we can run.  If not, either
3378 # the compiler is broken, or we cross compile.
3379 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3380 $as_echo_n "checking whether the C compiler works... " >&6; }
3381 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3382 # If not cross compiling, check that we can run a simple program.
3383 if test "$cross_compiling" != yes; then
3384   if { ac_try='./$ac_file'
3385   { (case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3390 $as_echo "$ac_try_echo") >&5
3391   (eval "$ac_try") 2>&5
3392   ac_status=$?
3393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }; }; then
3395     cross_compiling=no
3396   else
3397     if test "$cross_compiling" = maybe; then
3398         cross_compiling=yes
3399     else
3400         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details." >&5
3405 $as_echo "$as_me: error: cannot run C compiled programs.
3406 If you meant to cross compile, use \`--host'.
3407 See \`config.log' for more details." >&2;}
3408    { (exit 1); exit 1; }; }; }
3409     fi
3410   fi
3411 fi
3412 { $as_echo "$as_me:$LINENO: result: yes" >&5
3413 $as_echo "yes" >&6; }
3414
3415 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3416 ac_clean_files=$ac_clean_files_save
3417 # Check that the compiler produces executables we can run.  If not, either
3418 # the compiler is broken, or we cross compile.
3419 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3420 $as_echo_n "checking whether we are cross compiling... " >&6; }
3421 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3422 $as_echo "$cross_compiling" >&6; }
3423
3424 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { (ac_try="$ac_link"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3432 $as_echo "$ac_try_echo") >&5
3433   (eval "$ac_link") 2>&5
3434   ac_status=$?
3435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); }; then
3437   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3440 # `rm'.
3441 for ac_file in conftest.exe conftest conftest.*; do
3442   test -f "$ac_file" || continue
3443   case $ac_file in
3444     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446           break;;
3447     * ) break;;
3448   esac
3449 done
3450 else
3451   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details." >&5
3455 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3456 See \`config.log' for more details." >&2;}
3457    { (exit 1); exit 1; }; }; }
3458 fi
3459
3460 rm -f conftest$ac_cv_exeext
3461 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3462 $as_echo "$ac_cv_exeext" >&6; }
3463
3464 rm -f conftest.$ac_ext
3465 EXEEXT=$ac_cv_exeext
3466 ac_exeext=$EXEEXT
3467 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3468 $as_echo_n "checking for suffix of object files... " >&6; }
3469 if test "${ac_cv_objext+set}" = set; then
3470   $as_echo_n "(cached) " >&6
3471 else
3472   cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h.  */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h.  */
3478
3479 int
3480 main ()
3481 {
3482
3483   ;
3484   return 0;
3485 }
3486 _ACEOF
3487 rm -f conftest.o conftest.obj
3488 if { (ac_try="$ac_compile"
3489 case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3494 $as_echo "$ac_try_echo") >&5
3495   (eval "$ac_compile") 2>&5
3496   ac_status=$?
3497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); }; then
3499   for ac_file in conftest.o conftest.obj conftest.*; do
3500   test -f "$ac_file" || continue;
3501   case $ac_file in
3502     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3503     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3504        break;;
3505   esac
3506 done
3507 else
3508   $as_echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3510
3511 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3514 See \`config.log' for more details." >&5
3515 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3516 See \`config.log' for more details." >&2;}
3517    { (exit 1); exit 1; }; }; }
3518 fi
3519
3520 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3521 fi
3522 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3523 $as_echo "$ac_cv_objext" >&6; }
3524 OBJEXT=$ac_cv_objext
3525 ac_objext=$OBJEXT
3526 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3527 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3528 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3529   $as_echo_n "(cached) " >&6
3530 else
3531   cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h.  */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541 #ifndef __GNUC__
3542        choke me
3543 #endif
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 rm -f conftest.$ac_objext
3550 if { (ac_try="$ac_compile"
3551 case "(($ac_try" in
3552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553   *) ac_try_echo=$ac_try;;
3554 esac
3555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3556 $as_echo "$ac_try_echo") >&5
3557   (eval "$ac_compile") 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } && {
3564          test -z "$ac_c_werror_flag" ||
3565          test ! -s conftest.err
3566        } && test -s conftest.$ac_objext; then
3567   ac_compiler_gnu=yes
3568 else
3569   $as_echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572         ac_compiler_gnu=no
3573 fi
3574
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3577
3578 fi
3579 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3580 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3581 if test $ac_compiler_gnu = yes; then
3582   GCC=yes
3583 else
3584   GCC=
3585 fi
3586 ac_test_CFLAGS=${CFLAGS+set}
3587 ac_save_CFLAGS=$CFLAGS
3588 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3589 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3590 if test "${ac_cv_prog_cc_g+set}" = set; then
3591   $as_echo_n "(cached) " >&6
3592 else
3593   ac_save_c_werror_flag=$ac_c_werror_flag
3594    ac_c_werror_flag=yes
3595    ac_cv_prog_cc_g=no
3596    CFLAGS="-g"
3597    cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h.  */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h.  */
3603
3604 int
3605 main ()
3606 {
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3619 $as_echo "$ac_try_echo") >&5
3620   (eval "$ac_compile") 2>conftest.er1
3621   ac_status=$?
3622   grep -v '^ *+' conftest.er1 >conftest.err
3623   rm -f conftest.er1
3624   cat conftest.err >&5
3625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); } && {
3627          test -z "$ac_c_werror_flag" ||
3628          test ! -s conftest.err
3629        } && test -s conftest.$ac_objext; then
3630   ac_cv_prog_cc_g=yes
3631 else
3632   $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635         CFLAGS=""
3636       cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h.  */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h.  */
3642
3643 int
3644 main ()
3645 {
3646
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 rm -f conftest.$ac_objext
3652 if { (ac_try="$ac_compile"
3653 case "(($ac_try" in
3654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655   *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3658 $as_echo "$ac_try_echo") >&5
3659   (eval "$ac_compile") 2>conftest.er1
3660   ac_status=$?
3661   grep -v '^ *+' conftest.er1 >conftest.err
3662   rm -f conftest.er1
3663   cat conftest.err >&5
3664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); } && {
3666          test -z "$ac_c_werror_flag" ||
3667          test ! -s conftest.err
3668        } && test -s conftest.$ac_objext; then
3669   :
3670 else
3671   $as_echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3673
3674         ac_c_werror_flag=$ac_save_c_werror_flag
3675          CFLAGS="-g"
3676          cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h.  */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h.  */
3682
3683 int
3684 main ()
3685 {
3686
3687   ;
3688   return 0;
3689 }
3690 _ACEOF
3691 rm -f conftest.$ac_objext
3692 if { (ac_try="$ac_compile"
3693 case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3698 $as_echo "$ac_try_echo") >&5
3699   (eval "$ac_compile") 2>conftest.er1
3700   ac_status=$?
3701   grep -v '^ *+' conftest.er1 >conftest.err
3702   rm -f conftest.er1
3703   cat conftest.err >&5
3704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); } && {
3706          test -z "$ac_c_werror_flag" ||
3707          test ! -s conftest.err
3708        } && test -s conftest.$ac_objext; then
3709   ac_cv_prog_cc_g=yes
3710 else
3711   $as_echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714
3715 fi
3716
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 fi
3719
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 fi
3722
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724    ac_c_werror_flag=$ac_save_c_werror_flag
3725 fi
3726 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3727 $as_echo "$ac_cv_prog_cc_g" >&6; }
3728 if test "$ac_test_CFLAGS" = set; then
3729   CFLAGS=$ac_save_CFLAGS
3730 elif test $ac_cv_prog_cc_g = yes; then
3731   if test "$GCC" = yes; then
3732     CFLAGS="-g -O2"
3733   else
3734     CFLAGS="-g"
3735   fi
3736 else
3737   if test "$GCC" = yes; then
3738     CFLAGS="-O2"
3739   else
3740     CFLAGS=
3741   fi
3742 fi
3743 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3744 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3745 if test "${ac_cv_prog_cc_c89+set}" = set; then
3746   $as_echo_n "(cached) " >&6
3747 else
3748   ac_cv_prog_cc_c89=no
3749 ac_save_CC=$CC
3750 cat >conftest.$ac_ext <<_ACEOF
3751 /* confdefs.h.  */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h.  */
3756 #include <stdarg.h>
3757 #include <stdio.h>
3758 #include <sys/types.h>
3759 #include <sys/stat.h>
3760 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3761 struct buf { int x; };
3762 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3763 static char *e (p, i)
3764      char **p;
3765      int i;
3766 {
3767   return p[i];
3768 }
3769 static char *f (char * (*g) (char **, int), char **p, ...)
3770 {
3771   char *s;
3772   va_list v;
3773   va_start (v,p);
3774   s = g (p, va_arg (v,int));
3775   va_end (v);
3776   return s;
3777 }
3778
3779 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3780    function prototypes and stuff, but not '\xHH' hex character constants.
3781    These don't provoke an error unfortunately, instead are silently treated
3782    as 'x'.  The following induces an error, until -std is added to get
3783    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3784    array size at least.  It's necessary to write '\x00'==0 to get something
3785    that's true only with -std.  */
3786 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3787
3788 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3789    inside strings and character constants.  */
3790 #define FOO(x) 'x'
3791 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3792
3793 int test (int i, double x);
3794 struct s1 {int (*f) (int a);};
3795 struct s2 {int (*f) (double a);};
3796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3797 int argc;
3798 char **argv;
3799 int
3800 main ()
3801 {
3802 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3803   ;
3804   return 0;
3805 }
3806 _ACEOF
3807 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3808         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3809 do
3810   CC="$ac_save_CC $ac_arg"
3811   rm -f conftest.$ac_objext
3812 if { (ac_try="$ac_compile"
3813 case "(($ac_try" in
3814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815   *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3818 $as_echo "$ac_try_echo") >&5
3819   (eval "$ac_compile") 2>conftest.er1
3820   ac_status=$?
3821   grep -v '^ *+' conftest.er1 >conftest.err
3822   rm -f conftest.er1
3823   cat conftest.err >&5
3824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); } && {
3826          test -z "$ac_c_werror_flag" ||
3827          test ! -s conftest.err
3828        } && test -s conftest.$ac_objext; then
3829   ac_cv_prog_cc_c89=$ac_arg
3830 else
3831   $as_echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834
3835 fi
3836
3837 rm -f core conftest.err conftest.$ac_objext
3838   test "x$ac_cv_prog_cc_c89" != "xno" && break
3839 done
3840 rm -f conftest.$ac_ext
3841 CC=$ac_save_CC
3842
3843 fi
3844 # AC_CACHE_VAL
3845 case "x$ac_cv_prog_cc_c89" in
3846   x)
3847     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3848 $as_echo "none needed" >&6; } ;;
3849   xno)
3850     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3851 $as_echo "unsupported" >&6; } ;;
3852   *)
3853     CC="$CC $ac_cv_prog_cc_c89"
3854     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3855 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3856 esac
3857
3858
3859 ac_ext=c
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864
3865
3866 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3867 # but has idiosyncrasies of its own.  We assume icc will define
3868 # __INTEL_COMPILER regardless of CFLAGS.
3869
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h.  */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h.  */
3876
3877 int
3878 main ()
3879 {
3880 #ifndef __INTEL_COMPILER
3881 choke me
3882 #endif
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 rm -f conftest.$ac_objext
3888 if { (ac_try="$ac_compile"
3889 case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3894 $as_echo "$ac_try_echo") >&5
3895   (eval "$ac_compile") 2>conftest.er1
3896   ac_status=$?
3897   grep -v '^ *+' conftest.er1 >conftest.err
3898   rm -f conftest.er1
3899   cat conftest.err >&5
3900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); } && {
3902          test -z "$ac_c_werror_flag" ||
3903          test ! -s conftest.err
3904        } && test -s conftest.$ac_objext; then
3905   ICC=yes
3906 else
3907   $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3909
3910         ICC=no
3911 fi
3912
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914
3915 # Check if it's Sun Studio compiler. We assume that
3916 # __SUNPRO_C will be defined for Sun Studio compilers
3917 cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h.  */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h.  */
3923
3924 int
3925 main ()
3926 {
3927 #ifndef __SUNPRO_C
3928 choke me
3929 #endif
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3936 case "(($ac_try" in
3937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938   *) ac_try_echo=$ac_try;;
3939 esac
3940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3941 $as_echo "$ac_try_echo") >&5
3942   (eval "$ac_compile") 2>conftest.er1
3943   ac_status=$?
3944   grep -v '^ *+' conftest.er1 >conftest.err
3945   rm -f conftest.er1
3946   cat conftest.err >&5
3947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); } && {
3949          test -z "$ac_c_werror_flag" ||
3950          test ! -s conftest.err
3951        } && test -s conftest.$ac_objext; then
3952   SUN_STUDIO_CC=yes
3953 else
3954   $as_echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3956
3957         SUN_STUDIO_CC=no
3958 fi
3959
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961
3962
3963
3964 unset CFLAGS
3965
3966 #
3967 # Read the template
3968 #
3969 . "$srcdir/src/template/$template" || exit
3970
3971 # CFLAGS are selected so:
3972 # If the user specifies something in the environment, that is used.
3973 # else:  If the template file set something, that is used.
3974 # else:  If coverage was enabled, don't set anything.
3975 # else:  If the compiler is GCC, then we use -O2.
3976 # else:  If the compiler is something else, then we use -O, unless debugging.
3977
3978 if test "$ac_env_CFLAGS_set" = set; then
3979   CFLAGS=$ac_env_CFLAGS_value
3980 elif test "${CFLAGS+set}" = set; then
3981   : # (keep what template set)
3982 elif test "$enable_coverage" = yes; then
3983   : # no optimization by default
3984 elif test "$GCC" = yes; then
3985   CFLAGS="-O2"
3986 else
3987   # if the user selected debug mode, don't use -O
3988   if test "$enable_debug" != yes; then
3989     CFLAGS="-O"
3990   fi
3991 fi
3992
3993 # Some versions of GCC support some additional useful warning flags.
3994 # Check whether they are supported, and add them to CFLAGS if so.
3995 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3996 # but has its own.  Also check other compiler-specific flags here.
3997
3998 if test "$GCC" = yes -a "$ICC" = no; then
3999   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4000   # These work in some but not all gcc versions
4001   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4002 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4003 pgac_save_CFLAGS=$CFLAGS
4004 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h.  */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h.  */
4011
4012 int
4013 main ()
4014 {
4015
4016   ;
4017   return 0;
4018 }
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (ac_try="$ac_compile"
4022 case "(($ac_try" in
4023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024   *) ac_try_echo=$ac_try;;
4025 esac
4026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4027 $as_echo "$ac_try_echo") >&5
4028   (eval "$ac_compile") 2>conftest.er1
4029   ac_status=$?
4030   grep -v '^ *+' conftest.er1 >conftest.err
4031   rm -f conftest.er1
4032   cat conftest.err >&5
4033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); } && {
4035          test -z "$ac_c_werror_flag" ||
4036          test ! -s conftest.err
4037        } && test -s conftest.$ac_objext; then
4038   { $as_echo "$as_me:$LINENO: result: yes" >&5
4039 $as_echo "yes" >&6; }
4040 else
4041   $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044         CFLAGS="$pgac_save_CFLAGS"
4045                     { $as_echo "$as_me:$LINENO: result: no" >&5
4046 $as_echo "no" >&6; }
4047 fi
4048
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050
4051   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4052 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4053 pgac_save_CFLAGS=$CFLAGS
4054 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h.  */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h.  */
4061
4062 int
4063 main ()
4064 {
4065
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 rm -f conftest.$ac_objext
4071 if { (ac_try="$ac_compile"
4072 case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4077 $as_echo "$ac_try_echo") >&5
4078   (eval "$ac_compile") 2>conftest.er1
4079   ac_status=$?
4080   grep -v '^ *+' conftest.er1 >conftest.err
4081   rm -f conftest.er1
4082   cat conftest.err >&5
4083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084   (exit $ac_status); } && {
4085          test -z "$ac_c_werror_flag" ||
4086          test ! -s conftest.err
4087        } && test -s conftest.$ac_objext; then
4088   { $as_echo "$as_me:$LINENO: result: yes" >&5
4089 $as_echo "yes" >&6; }
4090 else
4091   $as_echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094         CFLAGS="$pgac_save_CFLAGS"
4095                     { $as_echo "$as_me:$LINENO: result: no" >&5
4096 $as_echo "no" >&6; }
4097 fi
4098
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100
4101   # Disable strict-aliasing rules; needed for gcc 3.3+
4102   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4103 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4104 pgac_save_CFLAGS=$CFLAGS
4105 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h.  */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h.  */
4112
4113 int
4114 main ()
4115 {
4116
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4123 case "(($ac_try" in
4124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125   *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4128 $as_echo "$ac_try_echo") >&5
4129   (eval "$ac_compile") 2>conftest.er1
4130   ac_status=$?
4131   grep -v '^ *+' conftest.er1 >conftest.err
4132   rm -f conftest.er1
4133   cat conftest.err >&5
4134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); } && {
4136          test -z "$ac_c_werror_flag" ||
4137          test ! -s conftest.err
4138        } && test -s conftest.$ac_objext; then
4139   { $as_echo "$as_me:$LINENO: result: yes" >&5
4140 $as_echo "yes" >&6; }
4141 else
4142   $as_echo "$as_me: failed program was:" >&5
4143 sed 's/^/| /' conftest.$ac_ext >&5
4144
4145         CFLAGS="$pgac_save_CFLAGS"
4146                     { $as_echo "$as_me:$LINENO: result: no" >&5
4147 $as_echo "no" >&6; }
4148 fi
4149
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151
4152   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4153   { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4154 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4155 pgac_save_CFLAGS=$CFLAGS
4156 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4157 cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h.  */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h.  */
4163
4164 int
4165 main ()
4166 {
4167
4168   ;
4169   return 0;
4170 }
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4174 case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4179 $as_echo "$ac_try_echo") >&5
4180   (eval "$ac_compile") 2>conftest.er1
4181   ac_status=$?
4182   grep -v '^ *+' conftest.er1 >conftest.err
4183   rm -f conftest.er1
4184   cat conftest.err >&5
4185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); } && {
4187          test -z "$ac_c_werror_flag" ||
4188          test ! -s conftest.err
4189        } && test -s conftest.$ac_objext; then
4190   { $as_echo "$as_me:$LINENO: result: yes" >&5
4191 $as_echo "yes" >&6; }
4192 else
4193   $as_echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196         CFLAGS="$pgac_save_CFLAGS"
4197                     { $as_echo "$as_me:$LINENO: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4200
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202
4203 elif test "$ICC" = yes; then
4204   # Intel's compiler has a bug/misoptimization in checking for
4205   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4206   { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4207 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4208 pgac_save_CFLAGS=$CFLAGS
4209 CFLAGS="$pgac_save_CFLAGS -mp1"
4210 cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h.  */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h.  */
4216
4217 int
4218 main ()
4219 {
4220
4221   ;
4222   return 0;
4223 }
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (ac_try="$ac_compile"
4227 case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4232 $as_echo "$ac_try_echo") >&5
4233   (eval "$ac_compile") 2>conftest.er1
4234   ac_status=$?
4235   grep -v '^ *+' conftest.er1 >conftest.err
4236   rm -f conftest.er1
4237   cat conftest.err >&5
4238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); } && {
4240          test -z "$ac_c_werror_flag" ||
4241          test ! -s conftest.err
4242        } && test -s conftest.$ac_objext; then
4243   { $as_echo "$as_me:$LINENO: result: yes" >&5
4244 $as_echo "yes" >&6; }
4245 else
4246   $as_echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249         CFLAGS="$pgac_save_CFLAGS"
4250                     { $as_echo "$as_me:$LINENO: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255
4256   # Make sure strict aliasing is off (though this is said to be the default)
4257   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4258 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4259 pgac_save_CFLAGS=$CFLAGS
4260 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h.  */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h.  */
4267
4268 int
4269 main ()
4270 {
4271
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 rm -f conftest.$ac_objext
4277 if { (ac_try="$ac_compile"
4278 case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4283 $as_echo "$ac_try_echo") >&5
4284   (eval "$ac_compile") 2>conftest.er1
4285   ac_status=$?
4286   grep -v '^ *+' conftest.er1 >conftest.err
4287   rm -f conftest.er1
4288   cat conftest.err >&5
4289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); } && {
4291          test -z "$ac_c_werror_flag" ||
4292          test ! -s conftest.err
4293        } && test -s conftest.$ac_objext; then
4294   { $as_echo "$as_me:$LINENO: result: yes" >&5
4295 $as_echo "yes" >&6; }
4296 else
4297   $as_echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300         CFLAGS="$pgac_save_CFLAGS"
4301                     { $as_echo "$as_me:$LINENO: result: no" >&5
4302 $as_echo "no" >&6; }
4303 fi
4304
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306
4307 elif test "$PORTNAME" = "aix"; then
4308   # AIX's xlc has to have strict aliasing turned off too
4309   { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4310 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4311 pgac_save_CFLAGS=$CFLAGS
4312 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h.  */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h.  */
4319
4320 int
4321 main ()
4322 {
4323
4324   ;
4325   return 0;
4326 }
4327 _ACEOF
4328 rm -f conftest.$ac_objext
4329 if { (ac_try="$ac_compile"
4330 case "(($ac_try" in
4331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332   *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4335 $as_echo "$ac_try_echo") >&5
4336   (eval "$ac_compile") 2>conftest.er1
4337   ac_status=$?
4338   grep -v '^ *+' conftest.er1 >conftest.err
4339   rm -f conftest.er1
4340   cat conftest.err >&5
4341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); } && {
4343          test -z "$ac_c_werror_flag" ||
4344          test ! -s conftest.err
4345        } && test -s conftest.$ac_objext; then
4346   { $as_echo "$as_me:$LINENO: result: yes" >&5
4347 $as_echo "yes" >&6; }
4348 else
4349   $as_echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352         CFLAGS="$pgac_save_CFLAGS"
4353                     { $as_echo "$as_me:$LINENO: result: no" >&5
4354 $as_echo "no" >&6; }
4355 fi
4356
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358
4359 fi
4360
4361 # supply -g if --enable-debug
4362 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4363   CFLAGS="$CFLAGS -g"
4364 fi
4365
4366 # enable code coverage if --enable-coverage
4367 if test "$enable_coverage" = yes; then
4368   if test "$GCC" = yes; then
4369     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4370   else
4371     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4372 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4373    { (exit 1); exit 1; }; }
4374   fi
4375 fi
4376
4377 # enable profiling if --enable-profiling
4378 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4379   if test "$GCC" = yes; then
4380
4381 cat >>confdefs.h <<\_ACEOF
4382 #define PROFILE_PID_DIR 1
4383 _ACEOF
4384
4385     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4386   else
4387     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4388 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4389    { (exit 1); exit 1; }; }
4390   fi
4391 fi
4392
4393 # We already have this in Makefile.win32, but configure needs it too
4394 if test "$PORTNAME" = "win32"; then
4395   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4396 fi
4397
4398 # Check if the compiler still works with the template settings
4399 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4400 $as_echo_n "checking whether the C compiler still works... " >&6; }
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h.  */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h.  */
4407
4408 int
4409 main ()
4410 {
4411 return 0;
4412   ;
4413   return 0;
4414 }
4415 _ACEOF
4416 rm -f conftest.$ac_objext conftest$ac_exeext
4417 if { (ac_try="$ac_link"
4418 case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4423 $as_echo "$ac_try_echo") >&5
4424   (eval "$ac_link") 2>conftest.er1
4425   ac_status=$?
4426   grep -v '^ *+' conftest.er1 >conftest.err
4427   rm -f conftest.er1
4428   cat conftest.err >&5
4429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); } && {
4431          test -z "$ac_c_werror_flag" ||
4432          test ! -s conftest.err
4433        } && test -s conftest$ac_exeext && {
4434          test "$cross_compiling" = yes ||
4435          $as_test_x conftest$ac_exeext
4436        }; then
4437   { $as_echo "$as_me:$LINENO: result: yes" >&5
4438 $as_echo "yes" >&6; }
4439 else
4440   $as_echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443         { $as_echo "$as_me:$LINENO: result: no" >&5
4444 $as_echo "no" >&6; }
4445    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4446 $as_echo "$as_me: error: cannot proceed" >&2;}
4447    { (exit 1); exit 1; }; }
4448 fi
4449
4450 rm -rf conftest.dSYM
4451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4452       conftest$ac_exeext conftest.$ac_ext
4453
4454 # Defend against gcc -ffast-math
4455 if test "$GCC" = yes; then
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462
4463 int
4464 main ()
4465 {
4466 #ifdef __FAST_MATH__
4467 choke me
4468 #endif
4469   ;
4470   return 0;
4471 }
4472 _ACEOF
4473 rm -f conftest.$ac_objext
4474 if { (ac_try="$ac_compile"
4475 case "(($ac_try" in
4476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477   *) ac_try_echo=$ac_try;;
4478 esac
4479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4480 $as_echo "$ac_try_echo") >&5
4481   (eval "$ac_compile") 2>conftest.er1
4482   ac_status=$?
4483   grep -v '^ *+' conftest.er1 >conftest.err
4484   rm -f conftest.er1
4485   cat conftest.err >&5
4486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); } && {
4488          test -z "$ac_c_werror_flag" ||
4489          test ! -s conftest.err
4490        } && test -s conftest.$ac_objext; then
4491   :
4492 else
4493   $as_echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4497 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4498    { (exit 1); exit 1; }; }
4499 fi
4500
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 fi
4503
4504 ac_ext=c
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4510 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4511 # On Suns, sometimes $CPP names a directory.
4512 if test -n "$CPP" && test -d "$CPP"; then
4513   CPP=
4514 fi
4515 if test -z "$CPP"; then
4516   if test "${ac_cv_prog_CPP+set}" = set; then
4517   $as_echo_n "(cached) " >&6
4518 else
4519       # Double quotes because CPP needs to be expanded
4520     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4521     do
4522       ac_preproc_ok=false
4523 for ac_c_preproc_warn_flag in '' yes
4524 do
4525   # Use a header file that comes with gcc, so configuring glibc
4526   # with a fresh cross-compiler works.
4527   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4528   # <limits.h> exists even on freestanding compilers.
4529   # On the NeXT, cc -E runs the code through the compiler's parser,
4530   # not just through cpp. "Syntax error" is here to catch this case.
4531   cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537 #ifdef __STDC__
4538 # include <limits.h>
4539 #else
4540 # include <assert.h>
4541 #endif
4542                      Syntax error
4543 _ACEOF
4544 if { (ac_try="$ac_cpp conftest.$ac_ext"
4545 case "(($ac_try" in
4546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547   *) ac_try_echo=$ac_try;;
4548 esac
4549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4550 $as_echo "$ac_try_echo") >&5
4551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4552   ac_status=$?
4553   grep -v '^ *+' conftest.er1 >conftest.err
4554   rm -f conftest.er1
4555   cat conftest.err >&5
4556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); } >/dev/null && {
4558          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4559          test ! -s conftest.err
4560        }; then
4561   :
4562 else
4563   $as_echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4565
4566   # Broken: fails on valid input.
4567 continue
4568 fi
4569
4570 rm -f conftest.err conftest.$ac_ext
4571
4572   # OK, works on sane cases.  Now check whether nonexistent headers
4573   # can be detected and how.
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 #include <ac_nonexistent.h>
4581 _ACEOF
4582 if { (ac_try="$ac_cpp conftest.$ac_ext"
4583 case "(($ac_try" in
4584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585   *) ac_try_echo=$ac_try;;
4586 esac
4587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4588 $as_echo "$ac_try_echo") >&5
4589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4590   ac_status=$?
4591   grep -v '^ *+' conftest.er1 >conftest.err
4592   rm -f conftest.er1
4593   cat conftest.err >&5
4594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); } >/dev/null && {
4596          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4597          test ! -s conftest.err
4598        }; then
4599   # Broken: success on invalid input.
4600 continue
4601 else
4602   $as_echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605   # Passes both tests.
4606 ac_preproc_ok=:
4607 break
4608 fi
4609
4610 rm -f conftest.err conftest.$ac_ext
4611
4612 done
4613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4614 rm -f conftest.err conftest.$ac_ext
4615 if $ac_preproc_ok; then
4616   break
4617 fi
4618
4619     done
4620     ac_cv_prog_CPP=$CPP
4621
4622 fi
4623   CPP=$ac_cv_prog_CPP
4624 else
4625   ac_cv_prog_CPP=$CPP
4626 fi
4627 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4628 $as_echo "$CPP" >&6; }
4629 ac_preproc_ok=false
4630 for ac_c_preproc_warn_flag in '' yes
4631 do
4632   # Use a header file that comes with gcc, so configuring glibc
4633   # with a fresh cross-compiler works.
4634   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4635   # <limits.h> exists even on freestanding compilers.
4636   # On the NeXT, cc -E runs the code through the compiler's parser,
4637   # not just through cpp. "Syntax error" is here to catch this case.
4638   cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h.  */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h.  */
4644 #ifdef __STDC__
4645 # include <limits.h>
4646 #else
4647 # include <assert.h>
4648 #endif
4649                      Syntax error
4650 _ACEOF
4651 if { (ac_try="$ac_cpp conftest.$ac_ext"
4652 case "(($ac_try" in
4653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654   *) ac_try_echo=$ac_try;;
4655 esac
4656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4657 $as_echo "$ac_try_echo") >&5
4658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4659   ac_status=$?
4660   grep -v '^ *+' conftest.er1 >conftest.err
4661   rm -f conftest.er1
4662   cat conftest.err >&5
4663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } >/dev/null && {
4665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4666          test ! -s conftest.err
4667        }; then
4668   :
4669 else
4670   $as_echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673   # Broken: fails on valid input.
4674 continue
4675 fi
4676
4677 rm -f conftest.err conftest.$ac_ext
4678
4679   # OK, works on sane cases.  Now check whether nonexistent headers
4680   # can be detected and how.
4681   cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h.  */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h.  */
4687 #include <ac_nonexistent.h>
4688 _ACEOF
4689 if { (ac_try="$ac_cpp conftest.$ac_ext"
4690 case "(($ac_try" in
4691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692   *) ac_try_echo=$ac_try;;
4693 esac
4694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4695 $as_echo "$ac_try_echo") >&5
4696   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4697   ac_status=$?
4698   grep -v '^ *+' conftest.er1 >conftest.err
4699   rm -f conftest.er1
4700   cat conftest.err >&5
4701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); } >/dev/null && {
4703          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4704          test ! -s conftest.err
4705        }; then
4706   # Broken: success on invalid input.
4707 continue
4708 else
4709   $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712   # Passes both tests.
4713 ac_preproc_ok=:
4714 break
4715 fi
4716
4717 rm -f conftest.err conftest.$ac_ext
4718
4719 done
4720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4721 rm -f conftest.err conftest.$ac_ext
4722 if $ac_preproc_ok; then
4723   :
4724 else
4725   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4727 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4728 See \`config.log' for more details." >&5
4729 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4730 See \`config.log' for more details." >&2;}
4731    { (exit 1); exit 1; }; }; }
4732 fi
4733
4734 ac_ext=c
4735 ac_cpp='$CPP $CPPFLAGS'
4736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739
4740
4741
4742
4743 #
4744 # Set up TAS assembly code if needed; the template file has now had its
4745 # chance to request this.
4746 #
4747 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4748
4749
4750 if test "$need_tas" = yes ; then
4751   TAS=tas.o
4752 else
4753   TAS=""
4754 fi
4755
4756
4757
4758 #
4759 # Automatic dependency tracking
4760 #
4761
4762
4763 # Check whether --enable-depend was given.
4764 if test "${enable_depend+set}" = set; then
4765   enableval=$enable_depend;
4766   case $enableval in
4767     yes)
4768       autodepend=yes
4769       ;;
4770     no)
4771       :
4772       ;;
4773     *)
4774       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4775 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4776    { (exit 1); exit 1; }; }
4777       ;;
4778   esac
4779
4780 else
4781   enable_depend=no
4782
4783 fi
4784
4785
4786
4787
4788
4789 #
4790 # Enable assert checks
4791 #
4792
4793
4794 # Check whether --enable-cassert was given.
4795 if test "${enable_cassert+set}" = set; then
4796   enableval=$enable_cassert;
4797   case $enableval in
4798     yes)
4799
4800 cat >>confdefs.h <<\_ACEOF
4801 #define USE_ASSERT_CHECKING 1
4802 _ACEOF
4803
4804       ;;
4805     no)
4806       :
4807       ;;
4808     *)
4809       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4810 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4811    { (exit 1); exit 1; }; }
4812       ;;
4813   esac
4814
4815 else
4816   enable_cassert=no
4817
4818 fi
4819
4820
4821
4822
4823 #
4824 # Include directories
4825 #
4826 ac_save_IFS=$IFS
4827 IFS="${IFS}${PATH_SEPARATOR}"
4828 # SRCH_INC comes from the template file
4829 for dir in $with_includes $SRCH_INC; do
4830   if test -d "$dir"; then
4831     INCLUDES="$INCLUDES -I$dir"
4832   else
4833     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4834 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4835   fi
4836 done
4837 IFS=$ac_save_IFS
4838
4839
4840
4841 #
4842 # Library directories
4843 #
4844 ac_save_IFS=$IFS
4845 IFS="${IFS}${PATH_SEPARATOR}"
4846 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4847 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4848   if test -d "$dir"; then
4849     LIBDIRS="$LIBDIRS -L$dir"
4850   else
4851     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4852 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4853   fi
4854 done
4855 IFS=$ac_save_IFS
4856
4857 #
4858 # Enable thread-safe client libraries
4859 #
4860 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4861 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4862 if test "$PORTNAME" != "win32"; then
4863
4864
4865 # Check whether --enable-thread-safety was given.
4866 if test "${enable_thread_safety+set}" = set; then
4867   enableval=$enable_thread_safety;
4868   case $enableval in
4869     yes)
4870       :
4871       ;;
4872     no)
4873       :
4874       ;;
4875     *)
4876       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4877 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4878    { (exit 1); exit 1; }; }
4879       ;;
4880   esac
4881
4882 else
4883   enable_thread_safety=no
4884
4885 fi
4886
4887
4888 else
4889 # Win32 should always use threads
4890
4891
4892 # Check whether --enable-thread-safety was given.
4893 if test "${enable_thread_safety+set}" = set; then
4894   enableval=$enable_thread_safety;
4895   case $enableval in
4896     yes)
4897       :
4898       ;;
4899     no)
4900       :
4901       ;;
4902     *)
4903       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4904 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4905    { (exit 1); exit 1; }; }
4906       ;;
4907   esac
4908
4909 else
4910   enable_thread_safety=yes
4911
4912 fi
4913
4914
4915 fi
4916
4917
4918
4919 # Check whether --enable-thread-safety-force was given.
4920 if test "${enable_thread_safety_force+set}" = set; then
4921   enableval=$enable_thread_safety_force;
4922   case $enableval in
4923     yes)
4924       :
4925       ;;
4926     no)
4927       :
4928       ;;
4929     *)
4930       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4931 $as_echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4932    { (exit 1); exit 1; }; }
4933       ;;
4934   esac
4935
4936 else
4937   enable_thread_safety_force=no
4938
4939 fi
4940
4941
4942 if test "$enable_thread_safety" = yes -o \
4943         "$enable_thread_safety_force" = yes; then
4944   enable_thread_safety="yes"    # for 'force'
4945
4946 cat >>confdefs.h <<\_ACEOF
4947 #define ENABLE_THREAD_SAFETY 1
4948 _ACEOF
4949
4950 fi
4951 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4952 $as_echo "$enable_thread_safety" >&6; }
4953
4954
4955 #
4956 # Optionally build Tcl modules (PL/Tcl)
4957 #
4958 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4959 $as_echo_n "checking whether to build with Tcl... " >&6; }
4960
4961
4962
4963 # Check whether --with-tcl was given.
4964 if test "${with_tcl+set}" = set; then
4965   withval=$with_tcl;
4966   case $withval in
4967     yes)
4968       :
4969       ;;
4970     no)
4971       :
4972       ;;
4973     *)
4974       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4975 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4976    { (exit 1); exit 1; }; }
4977       ;;
4978   esac
4979
4980 else
4981   with_tcl=no
4982
4983 fi
4984
4985
4986 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4987 $as_echo "$with_tcl" >&6; }
4988
4989
4990 # We see if the path to the Tcl/Tk configuration scripts is specified.
4991 # This will override the use of tclsh to find the paths to search.
4992
4993
4994
4995
4996 # Check whether --with-tclconfig was given.
4997 if test "${with_tclconfig+set}" = set; then
4998   withval=$with_tclconfig;
4999   case $withval in
5000     yes)
5001       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5002 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5003    { (exit 1); exit 1; }; }
5004       ;;
5005     no)
5006       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5007 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5008    { (exit 1); exit 1; }; }
5009       ;;
5010     *)
5011
5012       ;;
5013   esac
5014
5015 fi
5016
5017
5018
5019 #
5020 # Optionally build Perl modules (PL/Perl)
5021 #
5022 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5023 $as_echo_n "checking whether to build Perl modules... " >&6; }
5024
5025
5026
5027 # Check whether --with-perl was given.
5028 if test "${with_perl+set}" = set; then
5029   withval=$with_perl;
5030   case $withval in
5031     yes)
5032       :
5033       ;;
5034     no)
5035       :
5036       ;;
5037     *)
5038       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5039 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5040    { (exit 1); exit 1; }; }
5041       ;;
5042   esac
5043
5044 else
5045   with_perl=no
5046
5047 fi
5048
5049
5050 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5051 $as_echo "$with_perl" >&6; }
5052
5053
5054 #
5055 # Optionally build Python modules (PL/Python)
5056 #
5057 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5058 $as_echo_n "checking whether to build Python modules... " >&6; }
5059
5060
5061
5062 # Check whether --with-python was given.
5063 if test "${with_python+set}" = set; then
5064   withval=$with_python;
5065   case $withval in
5066     yes)
5067       :
5068       ;;
5069     no)
5070       :
5071       ;;
5072     *)
5073       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5074 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5075    { (exit 1); exit 1; }; }
5076       ;;
5077   esac
5078
5079 else
5080   with_python=no
5081
5082 fi
5083
5084
5085 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5086 $as_echo "$with_python" >&6; }
5087
5088
5089 #
5090 # GSSAPI
5091 #
5092 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5093 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5094
5095
5096
5097 # Check whether --with-gssapi was given.
5098 if test "${with_gssapi+set}" = set; then
5099   withval=$with_gssapi;
5100   case $withval in
5101     yes)
5102
5103
5104 cat >>confdefs.h <<\_ACEOF
5105 #define ENABLE_GSS 1
5106 _ACEOF
5107
5108   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5109
5110       ;;
5111     no)
5112       :
5113       ;;
5114     *)
5115       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5116 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5117    { (exit 1); exit 1; }; }
5118       ;;
5119   esac
5120
5121 else
5122   with_gssapi=no
5123
5124 fi
5125
5126
5127 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5128 $as_echo "$with_gssapi" >&6; }
5129
5130
5131 #
5132 # Kerberos 5
5133 #
5134 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5135 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5136
5137
5138
5139 # Check whether --with-krb5 was given.
5140 if test "${with_krb5+set}" = set; then
5141   withval=$with_krb5;
5142   case $withval in
5143     yes)
5144
5145
5146 cat >>confdefs.h <<\_ACEOF
5147 #define KRB5 1
5148 _ACEOF
5149
5150   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5151
5152       ;;
5153     no)
5154       :
5155       ;;
5156     *)
5157       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5158 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5159    { (exit 1); exit 1; }; }
5160       ;;
5161   esac
5162
5163 else
5164   with_krb5=no
5165
5166 fi
5167
5168
5169 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5170 $as_echo "$with_krb5" >&6; }
5171
5172
5173
5174
5175
5176
5177 #
5178 # Kerberos configuration parameters
5179 #
5180
5181
5182
5183 # Check whether --with-krb-srvnam was given.
5184 if test "${with_krb_srvnam+set}" = set; then
5185   withval=$with_krb_srvnam;
5186   case $withval in
5187     yes)
5188       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5189 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5190    { (exit 1); exit 1; }; }
5191       ;;
5192     no)
5193       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5194 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5195    { (exit 1); exit 1; }; }
5196       ;;
5197     *)
5198
5199       ;;
5200   esac
5201
5202 else
5203   with_krb_srvnam="postgres"
5204 fi
5205
5206
5207
5208 cat >>confdefs.h <<_ACEOF
5209 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5210 _ACEOF
5211
5212
5213
5214 #
5215 # PAM
5216 #
5217 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5218 $as_echo_n "checking whether to build with PAM support... " >&6; }
5219
5220
5221
5222 # Check whether --with-pam was given.
5223 if test "${with_pam+set}" = set; then
5224   withval=$with_pam;
5225   case $withval in
5226     yes)
5227
5228 cat >>confdefs.h <<\_ACEOF
5229 #define USE_PAM 1
5230 _ACEOF
5231
5232       ;;
5233     no)
5234       :
5235       ;;
5236     *)
5237       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5238 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5239    { (exit 1); exit 1; }; }
5240       ;;
5241   esac
5242
5243 else
5244   with_pam=no
5245
5246 fi
5247
5248
5249 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5250 $as_echo "$with_pam" >&6; }
5251
5252
5253
5254 #
5255 # LDAP
5256 #
5257 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5258 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5259
5260
5261
5262 # Check whether --with-ldap was given.
5263 if test "${with_ldap+set}" = set; then
5264   withval=$with_ldap;
5265   case $withval in
5266     yes)
5267
5268 cat >>confdefs.h <<\_ACEOF
5269 #define USE_LDAP 1
5270 _ACEOF
5271
5272       ;;
5273     no)
5274       :
5275       ;;
5276     *)
5277       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5278 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5279    { (exit 1); exit 1; }; }
5280       ;;
5281   esac
5282
5283 else
5284   with_ldap=no
5285
5286 fi
5287
5288
5289 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5290 $as_echo "$with_ldap" >&6; }
5291
5292
5293
5294 #
5295 # Bonjour
5296 #
5297 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5298 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5299
5300
5301
5302 # Check whether --with-bonjour was given.
5303 if test "${with_bonjour+set}" = set; then
5304   withval=$with_bonjour;
5305   case $withval in
5306     yes)
5307
5308 cat >>confdefs.h <<\_ACEOF
5309 #define USE_BONJOUR 1
5310 _ACEOF
5311
5312       ;;
5313     no)
5314       :
5315       ;;
5316     *)
5317       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5318 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5319    { (exit 1); exit 1; }; }
5320       ;;
5321   esac
5322
5323 else
5324   with_bonjour=no
5325
5326 fi
5327
5328
5329 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5330 $as_echo "$with_bonjour" >&6; }
5331
5332
5333
5334 #
5335 # OpenSSL
5336 #
5337 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5338 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5339
5340
5341
5342 # Check whether --with-openssl was given.
5343 if test "${with_openssl+set}" = set; then
5344   withval=$with_openssl;
5345   case $withval in
5346     yes)
5347
5348 cat >>confdefs.h <<\_ACEOF
5349 #define USE_SSL 1
5350 _ACEOF
5351
5352       ;;
5353     no)
5354       :
5355       ;;
5356     *)
5357       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5358 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5359    { (exit 1); exit 1; }; }
5360       ;;
5361   esac
5362
5363 else
5364   with_openssl=no
5365
5366 fi
5367
5368
5369 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5370 $as_echo "$with_openssl" >&6; }
5371
5372
5373
5374 #
5375 # Readline
5376 #
5377
5378
5379
5380 # Check whether --with-readline was given.
5381 if test "${with_readline+set}" = set; then
5382   withval=$with_readline;
5383   case $withval in
5384     yes)
5385       :
5386       ;;
5387     no)
5388       :
5389       ;;
5390     *)
5391       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5392 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5393    { (exit 1); exit 1; }; }
5394       ;;
5395   esac
5396
5397 else
5398   with_readline=yes
5399
5400 fi
5401
5402
5403 # readline on MinGW has problems with backslashes in psql and other bugs.
5404 # This is particularly a problem with non-US code pages.
5405 # Therefore disable its use until we understand the cause. 2004-07-20
5406 if test "$PORTNAME" = "win32"; then
5407   if test "$with_readline" = yes; then
5408     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5409 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5410     with_readline=no
5411   fi
5412 fi
5413
5414
5415 #
5416 # Prefer libedit
5417 #
5418
5419
5420
5421 # Check whether --with-libedit-preferred was given.
5422 if test "${with_libedit_preferred+set}" = set; then
5423   withval=$with_libedit_preferred;
5424   case $withval in
5425     yes)
5426       :
5427       ;;
5428     no)
5429       :
5430       ;;
5431     *)
5432       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5433 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5434    { (exit 1); exit 1; }; }
5435       ;;
5436   esac
5437
5438 else
5439   with_libedit_preferred=no
5440
5441 fi
5442
5443
5444
5445
5446 #
5447 # OSSP UUID library
5448 #
5449
5450
5451
5452 # Check whether --with-ossp-uuid was given.
5453 if test "${with_ossp_uuid+set}" = set; then
5454   withval=$with_ossp_uuid;
5455   case $withval in
5456     yes)
5457       :
5458       ;;
5459     no)
5460       :
5461       ;;
5462     *)
5463       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5464 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5465    { (exit 1); exit 1; }; }
5466       ;;
5467   esac
5468
5469 else
5470   with_ossp_uuid=no
5471
5472 fi
5473
5474
5475
5476
5477
5478 #
5479 # XML
5480 #
5481
5482
5483
5484 # Check whether --with-libxml was given.
5485 if test "${with_libxml+set}" = set; then
5486   withval=$with_libxml;
5487   case $withval in
5488     yes)
5489
5490 cat >>confdefs.h <<\_ACEOF
5491 #define USE_LIBXML 1
5492 _ACEOF
5493
5494       ;;
5495     no)
5496       :
5497       ;;
5498     *)
5499       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5500 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5501    { (exit 1); exit 1; }; }
5502       ;;
5503   esac
5504
5505 else
5506   with_libxml=no
5507
5508 fi
5509
5510
5511
5512 if test "$with_libxml" = yes ; then
5513   for ac_prog in xml2-config
5514 do
5515   # Extract the first word of "$ac_prog", so it can be a program name with args.
5516 set dummy $ac_prog; ac_word=$2
5517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5520   $as_echo_n "(cached) " >&6
5521 else
5522   if test -n "$XML2_CONFIG"; then
5523   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528   IFS=$as_save_IFS
5529   test -z "$as_dir" && as_dir=.
5530   for ac_exec_ext in '' $ac_executable_extensions; do
5531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532     ac_cv_prog_XML2_CONFIG="$ac_prog"
5533     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534     break 2
5535   fi
5536 done
5537 done
5538 IFS=$as_save_IFS
5539
5540 fi
5541 fi
5542 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5543 if test -n "$XML2_CONFIG"; then
5544   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5545 $as_echo "$XML2_CONFIG" >&6; }
5546 else
5547   { $as_echo "$as_me:$LINENO: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551
5552   test -n "$XML2_CONFIG" && break
5553 done
5554
5555   if test -n "$XML2_CONFIG"; then
5556     for pgac_option in `$XML2_CONFIG --cflags`; do
5557       case $pgac_option in
5558         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5559       esac
5560     done
5561     for pgac_option in `$XML2_CONFIG --libs`; do
5562       case $pgac_option in
5563         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5564       esac
5565     done
5566   fi
5567 fi
5568
5569
5570
5571 #
5572 # XSLT
5573 #
5574
5575
5576
5577 # Check whether --with-libxslt was given.
5578 if test "${with_libxslt+set}" = set; then
5579   withval=$with_libxslt;
5580   case $withval in
5581     yes)
5582
5583 cat >>confdefs.h <<\_ACEOF
5584 #define USE_LIBXSLT 1
5585 _ACEOF
5586
5587       ;;
5588     no)
5589       :
5590       ;;
5591     *)
5592       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5593 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5594    { (exit 1); exit 1; }; }
5595       ;;
5596   esac
5597
5598 else
5599   with_libxslt=no
5600
5601 fi
5602
5603
5604
5605
5606
5607
5608 #
5609 # tzdata
5610 #
5611
5612
5613
5614 # Check whether --with-system-tzdata was given.
5615 if test "${with_system_tzdata+set}" = set; then
5616   withval=$with_system_tzdata;
5617   case $withval in
5618     yes)
5619       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5620 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5621    { (exit 1); exit 1; }; }
5622       ;;
5623     no)
5624       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5625 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5626    { (exit 1); exit 1; }; }
5627       ;;
5628     *)
5629
5630       ;;
5631   esac
5632
5633 fi
5634
5635
5636
5637
5638 #
5639 # Zlib
5640 #
5641
5642
5643
5644 # Check whether --with-zlib was given.
5645 if test "${with_zlib+set}" = set; then
5646   withval=$with_zlib;
5647   case $withval in
5648     yes)
5649       :
5650       ;;
5651     no)
5652       :
5653       ;;
5654     *)
5655       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5656 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5657    { (exit 1); exit 1; }; }
5658       ;;
5659   esac
5660
5661 else
5662   with_zlib=yes
5663
5664 fi
5665
5666
5667
5668
5669 #
5670 # Elf
5671 #
5672
5673 # Assume system is ELF if it predefines __ELF__ as 1,
5674 # otherwise believe host_os based default.
5675 case $host_os in
5676     freebsd1*|freebsd2*) elf=no;;
5677     freebsd3*|freebsd4*) elf=yes;;
5678 esac
5679
5680
5681 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5682 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5683 if test "${ac_cv_path_GREP+set}" = set; then
5684   $as_echo_n "(cached) " >&6
5685 else
5686   if test -z "$GREP"; then
5687   ac_path_GREP_found=false
5688   # Loop through the user's path and test for each of PROGNAME-LIST
5689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5691 do
5692   IFS=$as_save_IFS
5693   test -z "$as_dir" && as_dir=.
5694   for ac_prog in grep ggrep; do
5695     for ac_exec_ext in '' $ac_executable_extensions; do
5696       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5697       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5698 # Check for GNU ac_path_GREP and select it if it is found.
5699   # Check for GNU $ac_path_GREP
5700 case `"$ac_path_GREP" --version 2>&1` in
5701 *GNU*)
5702   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5703 *)
5704   ac_count=0
5705   $as_echo_n 0123456789 >"conftest.in"
5706   while :
5707   do
5708     cat "conftest.in" "conftest.in" >"conftest.tmp"
5709     mv "conftest.tmp" "conftest.in"
5710     cp "conftest.in" "conftest.nl"
5711     $as_echo 'GREP' >> "conftest.nl"
5712     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5713     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5714     ac_count=`expr $ac_count + 1`
5715     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5716       # Best one so far, save it but keep looking for a better one
5717       ac_cv_path_GREP="$ac_path_GREP"
5718       ac_path_GREP_max=$ac_count
5719     fi
5720     # 10*(2^10) chars as input seems more than enough
5721     test $ac_count -gt 10 && break
5722   done
5723   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5724 esac
5725
5726       $ac_path_GREP_found && break 3
5727     done
5728   done
5729 done
5730 IFS=$as_save_IFS
5731   if test -z "$ac_cv_path_GREP"; then
5732     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5733 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5734    { (exit 1); exit 1; }; }
5735   fi
5736 else
5737   ac_cv_path_GREP=$GREP
5738 fi
5739
5740 fi
5741 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5742 $as_echo "$ac_cv_path_GREP" >&6; }
5743  GREP="$ac_cv_path_GREP"
5744
5745
5746 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5747 $as_echo_n "checking for egrep... " >&6; }
5748 if test "${ac_cv_path_EGREP+set}" = set; then
5749   $as_echo_n "(cached) " >&6
5750 else
5751   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5752    then ac_cv_path_EGREP="$GREP -E"
5753    else
5754      if test -z "$EGREP"; then
5755   ac_path_EGREP_found=false
5756   # Loop through the user's path and test for each of PROGNAME-LIST
5757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5759 do
5760   IFS=$as_save_IFS
5761   test -z "$as_dir" && as_dir=.
5762   for ac_prog in egrep; do
5763     for ac_exec_ext in '' $ac_executable_extensions; do
5764       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5765       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5766 # Check for GNU ac_path_EGREP and select it if it is found.
5767   # Check for GNU $ac_path_EGREP
5768 case `"$ac_path_EGREP" --version 2>&1` in
5769 *GNU*)
5770   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5771 *)
5772   ac_count=0
5773   $as_echo_n 0123456789 >"conftest.in"
5774   while :
5775   do
5776     cat "conftest.in" "conftest.in" >"conftest.tmp"
5777     mv "conftest.tmp" "conftest.in"
5778     cp "conftest.in" "conftest.nl"
5779     $as_echo 'EGREP' >> "conftest.nl"
5780     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5781     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5782     ac_count=`expr $ac_count + 1`
5783     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5784       # Best one so far, save it but keep looking for a better one
5785       ac_cv_path_EGREP="$ac_path_EGREP"
5786       ac_path_EGREP_max=$ac_count
5787     fi
5788     # 10*(2^10) chars as input seems more than enough
5789     test $ac_count -gt 10 && break
5790   done
5791   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5792 esac
5793
5794       $ac_path_EGREP_found && break 3
5795     done
5796   done
5797 done
5798 IFS=$as_save_IFS
5799   if test -z "$ac_cv_path_EGREP"; then
5800     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5801 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5802    { (exit 1); exit 1; }; }
5803   fi
5804 else
5805   ac_cv_path_EGREP=$EGREP
5806 fi
5807
5808    fi
5809 fi
5810 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5811 $as_echo "$ac_cv_path_EGREP" >&6; }
5812  EGREP="$ac_cv_path_EGREP"
5813
5814
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h.  */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h.  */
5821 #if __ELF__
5822   yes
5823 #endif
5824
5825 _ACEOF
5826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5827   $EGREP "yes" >/dev/null 2>&1; then
5828   ELF_SYS=true
5829 else
5830   if test "X$elf" = "Xyes" ; then
5831   ELF_SYS=true
5832 else
5833   ELF_SYS=
5834 fi
5835 fi
5836 rm -f conftest*
5837
5838
5839
5840 #
5841 # Assignments
5842 #
5843
5844 CPPFLAGS="$CPPFLAGS $INCLUDES"
5845 LDFLAGS="$LDFLAGS $LIBDIRS"
5846
5847
5848
5849
5850 # Check whether --with-gnu-ld was given.
5851 if test "${with_gnu_ld+set}" = set; then
5852   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5853 else
5854   with_gnu_ld=no
5855 fi
5856
5857 ac_prog=ld
5858 if test "$GCC" = yes; then
5859   # Check if gcc -print-prog-name=ld gives a path.
5860   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5861 $as_echo_n "checking for ld used by GCC... " >&6; }
5862   case $host in
5863   *-*-mingw*)
5864     # gcc leaves a trailing carriage return which upsets mingw
5865     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5866   *)
5867     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5868   esac
5869   case "$ac_prog" in
5870     # Accept absolute paths.
5871     [\\/]* | [A-Za-z]:[\\/]*)
5872       re_direlt='/[^/][^/]*/\.\./'
5873       # Canonicalize the path of ld
5874       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5875       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5876         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5877       done
5878       test -z "$LD" && LD="$ac_prog"
5879       ;;
5880   "")
5881     # If it fails, then pretend we aren't using GCC.
5882     ac_prog=ld
5883     ;;
5884   *)
5885     # If it is relative, then search for the first ld in PATH.
5886     with_gnu_ld=unknown
5887     ;;
5888   esac
5889 elif test "$with_gnu_ld" = yes; then
5890   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5891 $as_echo_n "checking for GNU ld... " >&6; }
5892 else
5893   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5894 $as_echo_n "checking for non-GNU ld... " >&6; }
5895 fi
5896 if test "${ac_cv_path_LD+set}" = set; then
5897   $as_echo_n "(cached) " >&6
5898 else
5899   if test -z "$LD"; then
5900   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5901   for ac_dir in $PATH; do
5902     test -z "$ac_dir" && ac_dir=.
5903     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5904       ac_cv_path_LD="$ac_dir/$ac_prog"
5905       # Check to see if the program is GNU ld.  I'd rather use --version,
5906       # but apparently some GNU ld's only accept -v.
5907       # Break only if it was the GNU/non-GNU ld that we prefer.
5908       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5909         test "$with_gnu_ld" != no && break
5910       else
5911         test "$with_gnu_ld" != yes && break
5912       fi
5913     fi
5914   done
5915   IFS="$ac_save_ifs"
5916 else
5917   ac_cv_path_LD="$LD" # Let the user override the test with a path.
5918 fi
5919 fi
5920
5921 LD="$ac_cv_path_LD"
5922 if test -n "$LD"; then
5923   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5924 $as_echo "$LD" >&6; }
5925 else
5926   { $as_echo "$as_me:$LINENO: result: no" >&5
5927 $as_echo "no" >&6; }
5928 fi
5929 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5930 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5931    { (exit 1); exit 1; }; }
5932 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5933 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5934 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5935   $as_echo_n "(cached) " >&6
5936 else
5937   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5938 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5939   ac_cv_prog_gnu_ld=yes
5940 else
5941   ac_cv_prog_gnu_ld=no
5942 fi
5943 fi
5944 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5945 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5946 with_gnu_ld=$ac_cv_prog_gnu_ld
5947
5948
5949
5950
5951 case $host_os in sysv5*)
5952   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5953 $as_echo_n "checking whether ld -R works... " >&6; }
5954 if test "${pgac_cv_prog_ld_R+set}" = set; then
5955   $as_echo_n "(cached) " >&6
5956 else
5957
5958     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5959     cat >conftest.$ac_ext <<_ACEOF
5960 /* confdefs.h.  */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h.  */
5965
5966 int
5967 main ()
5968 {
5969
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5976 case "(($ac_try" in
5977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978   *) ac_try_echo=$ac_try;;
5979 esac
5980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982   (eval "$ac_link") 2>conftest.er1
5983   ac_status=$?
5984   grep -v '^ *+' conftest.er1 >conftest.err
5985   rm -f conftest.er1
5986   cat conftest.err >&5
5987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); } && {
5989          test -z "$ac_c_werror_flag" ||
5990          test ! -s conftest.err
5991        } && test -s conftest$ac_exeext && {
5992          test "$cross_compiling" = yes ||
5993          $as_test_x conftest$ac_exeext
5994        }; then
5995   pgac_cv_prog_ld_R=yes
5996 else
5997   $as_echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
5999
6000         pgac_cv_prog_ld_R=no
6001 fi
6002
6003 rm -rf conftest.dSYM
6004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6005       conftest$ac_exeext conftest.$ac_ext
6006     LDFLAGS=$pgac_save_LDFLAGS
6007
6008 fi
6009 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6010 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6011   ld_R_works=$pgac_cv_prog_ld_R
6012
6013 esac
6014 if test -n "$ac_tool_prefix"; then
6015   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6017 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if test "${ac_cv_prog_RANLIB+set}" = set; then
6020   $as_echo_n "(cached) " >&6
6021 else
6022   if test -n "$RANLIB"; then
6023   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028   IFS=$as_save_IFS
6029   test -z "$as_dir" && as_dir=.
6030   for ac_exec_ext in '' $ac_executable_extensions; do
6031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6033     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034     break 2
6035   fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 RANLIB=$ac_cv_prog_RANLIB
6043 if test -n "$RANLIB"; then
6044   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6045 $as_echo "$RANLIB" >&6; }
6046 else
6047   { $as_echo "$as_me:$LINENO: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050
6051
6052 fi
6053 if test -z "$ac_cv_prog_RANLIB"; then
6054   ac_ct_RANLIB=$RANLIB
6055   # Extract the first word of "ranlib", so it can be a program name with args.
6056 set dummy ranlib; ac_word=$2
6057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6060   $as_echo_n "(cached) " >&6
6061 else
6062   if test -n "$ac_ct_RANLIB"; then
6063   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068   IFS=$as_save_IFS
6069   test -z "$as_dir" && as_dir=.
6070   for ac_exec_ext in '' $ac_executable_extensions; do
6071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072     ac_cv_prog_ac_ct_RANLIB="ranlib"
6073     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074     break 2
6075   fi
6076 done
6077 done
6078 IFS=$as_save_IFS
6079
6080 fi
6081 fi
6082 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6083 if test -n "$ac_ct_RANLIB"; then
6084   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6085 $as_echo "$ac_ct_RANLIB" >&6; }
6086 else
6087   { $as_echo "$as_me:$LINENO: result: no" >&5
6088 $as_echo "no" >&6; }
6089 fi
6090
6091   if test "x$ac_ct_RANLIB" = x; then
6092     RANLIB=":"
6093   else
6094     case $cross_compiling:$ac_tool_warned in
6095 yes:)
6096 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098 ac_tool_warned=yes ;;
6099 esac
6100     RANLIB=$ac_ct_RANLIB
6101   fi
6102 else
6103   RANLIB="$ac_cv_prog_RANLIB"
6104 fi
6105
6106
6107   if test -n "$ac_tool_prefix"; then
6108   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6109 set dummy ${ac_tool_prefix}strip; ac_word=$2
6110 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if test "${ac_cv_prog_STRIP+set}" = set; then
6113   $as_echo_n "(cached) " >&6
6114 else
6115   if test -n "$STRIP"; then
6116   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121   IFS=$as_save_IFS
6122   test -z "$as_dir" && as_dir=.
6123   for ac_exec_ext in '' $ac_executable_extensions; do
6124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6126     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130 done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 STRIP=$ac_cv_prog_STRIP
6136 if test -n "$STRIP"; then
6137   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6138 $as_echo "$STRIP" >&6; }
6139 else
6140   { $as_echo "$as_me:$LINENO: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143
6144
6145 fi
6146 if test -z "$ac_cv_prog_STRIP"; then
6147   ac_ct_STRIP=$STRIP
6148   # Extract the first word of "strip", so it can be a program name with args.
6149 set dummy strip; ac_word=$2
6150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6153   $as_echo_n "(cached) " >&6
6154 else
6155   if test -n "$ac_ct_STRIP"; then
6156   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163   for ac_exec_ext in '' $ac_executable_extensions; do
6164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165     ac_cv_prog_ac_ct_STRIP="strip"
6166     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173 fi
6174 fi
6175 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6176 if test -n "$ac_ct_STRIP"; then
6177   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6178 $as_echo "$ac_ct_STRIP" >&6; }
6179 else
6180   { $as_echo "$as_me:$LINENO: result: no" >&5
6181 $as_echo "no" >&6; }
6182 fi
6183
6184   if test "x$ac_ct_STRIP" = x; then
6185     STRIP=":"
6186   else
6187     case $cross_compiling:$ac_tool_warned in
6188 yes:)
6189 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191 ac_tool_warned=yes ;;
6192 esac
6193     STRIP=$ac_ct_STRIP
6194   fi
6195 else
6196   STRIP="$ac_cv_prog_STRIP"
6197 fi
6198
6199
6200   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6201 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6202   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6203     STRIP_STATIC_LIB="$STRIP -x"
6204     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6205     { $as_echo "$as_me:$LINENO: result: yes" >&5
6206 $as_echo "yes" >&6; }
6207   else
6208     STRIP_STATIC_LIB=:
6209     STRIP_SHARED_LIB=:
6210     { $as_echo "$as_me:$LINENO: result: no" >&5
6211 $as_echo "no" >&6; }
6212   fi
6213
6214
6215
6216 if test -n "$ac_tool_prefix"; then
6217   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6218 set dummy ${ac_tool_prefix}ar; ac_word=$2
6219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if test "${ac_cv_prog_AR+set}" = set; then
6222   $as_echo_n "(cached) " >&6
6223 else
6224   if test -n "$AR"; then
6225   ac_cv_prog_AR="$AR" # Let the user override the test.
6226 else
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6229 do
6230   IFS=$as_save_IFS
6231   test -z "$as_dir" && as_dir=.
6232   for ac_exec_ext in '' $ac_executable_extensions; do
6233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234     ac_cv_prog_AR="${ac_tool_prefix}ar"
6235     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236     break 2
6237   fi
6238 done
6239 done
6240 IFS=$as_save_IFS
6241
6242 fi
6243 fi
6244 AR=$ac_cv_prog_AR
6245 if test -n "$AR"; then
6246   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6247 $as_echo "$AR" >&6; }
6248 else
6249   { $as_echo "$as_me:$LINENO: result: no" >&5
6250 $as_echo "no" >&6; }
6251 fi
6252
6253
6254 fi
6255 if test -z "$ac_cv_prog_AR"; then
6256   ac_ct_AR=$AR
6257   # Extract the first word of "ar", so it can be a program name with args.
6258 set dummy ar; ac_word=$2
6259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6262   $as_echo_n "(cached) " >&6
6263 else
6264   if test -n "$ac_ct_AR"; then
6265   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270   IFS=$as_save_IFS
6271   test -z "$as_dir" && as_dir=.
6272   for ac_exec_ext in '' $ac_executable_extensions; do
6273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274     ac_cv_prog_ac_ct_AR="ar"
6275     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276     break 2
6277   fi
6278 done
6279 done
6280 IFS=$as_save_IFS
6281
6282 fi
6283 fi
6284 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6285 if test -n "$ac_ct_AR"; then
6286   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6287 $as_echo "$ac_ct_AR" >&6; }
6288 else
6289   { $as_echo "$as_me:$LINENO: result: no" >&5
6290 $as_echo "no" >&6; }
6291 fi
6292
6293   if test "x$ac_ct_AR" = x; then
6294     AR="ar"
6295   else
6296     case $cross_compiling:$ac_tool_warned in
6297 yes:)
6298 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300 ac_tool_warned=yes ;;
6301 esac
6302     AR=$ac_ct_AR
6303   fi
6304 else
6305   AR="$ac_cv_prog_AR"
6306 fi
6307
6308 if test "$PORTNAME" = "win32"; then
6309   if test -n "$ac_tool_prefix"; then
6310   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6311 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6315   $as_echo_n "(cached) " >&6
6316 else
6317   if test -n "$DLLTOOL"; then
6318   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325   for ac_exec_ext in '' $ac_executable_extensions; do
6326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6328     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332 done
6333 IFS=$as_save_IFS
6334
6335 fi
6336 fi
6337 DLLTOOL=$ac_cv_prog_DLLTOOL
6338 if test -n "$DLLTOOL"; then
6339   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6340 $as_echo "$DLLTOOL" >&6; }
6341 else
6342   { $as_echo "$as_me:$LINENO: result: no" >&5
6343 $as_echo "no" >&6; }
6344 fi
6345
6346
6347 fi
6348 if test -z "$ac_cv_prog_DLLTOOL"; then
6349   ac_ct_DLLTOOL=$DLLTOOL
6350   # Extract the first word of "dlltool", so it can be a program name with args.
6351 set dummy dlltool; ac_word=$2
6352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6355   $as_echo_n "(cached) " >&6
6356 else
6357   if test -n "$ac_ct_DLLTOOL"; then
6358   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365   for ac_exec_ext in '' $ac_executable_extensions; do
6366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6368     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6378 if test -n "$ac_ct_DLLTOOL"; then
6379   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6380 $as_echo "$ac_ct_DLLTOOL" >&6; }
6381 else
6382   { $as_echo "$as_me:$LINENO: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386   if test "x$ac_ct_DLLTOOL" = x; then
6387     DLLTOOL="dlltool"
6388   else
6389     case $cross_compiling:$ac_tool_warned in
6390 yes:)
6391 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393 ac_tool_warned=yes ;;
6394 esac
6395     DLLTOOL=$ac_ct_DLLTOOL
6396   fi
6397 else
6398   DLLTOOL="$ac_cv_prog_DLLTOOL"
6399 fi
6400
6401   if test -n "$ac_tool_prefix"; then
6402   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6403 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 $as_echo_n "checking for $ac_word... " >&6; }
6406 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6407   $as_echo_n "(cached) " >&6
6408 else
6409   if test -n "$DLLWRAP"; then
6410   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415   IFS=$as_save_IFS
6416   test -z "$as_dir" && as_dir=.
6417   for ac_exec_ext in '' $ac_executable_extensions; do
6418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6420     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421     break 2
6422   fi
6423 done
6424 done
6425 IFS=$as_save_IFS
6426
6427 fi
6428 fi
6429 DLLWRAP=$ac_cv_prog_DLLWRAP
6430 if test -n "$DLLWRAP"; then
6431   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6432 $as_echo "$DLLWRAP" >&6; }
6433 else
6434   { $as_echo "$as_me:$LINENO: result: no" >&5
6435 $as_echo "no" >&6; }
6436 fi
6437
6438
6439 fi
6440 if test -z "$ac_cv_prog_DLLWRAP"; then
6441   ac_ct_DLLWRAP=$DLLWRAP
6442   # Extract the first word of "dllwrap", so it can be a program name with args.
6443 set dummy dllwrap; ac_word=$2
6444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6447   $as_echo_n "(cached) " >&6
6448 else
6449   if test -n "$ac_ct_DLLWRAP"; then
6450   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455   IFS=$as_save_IFS
6456   test -z "$as_dir" && as_dir=.
6457   for ac_exec_ext in '' $ac_executable_extensions; do
6458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6460     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461     break 2
6462   fi
6463 done
6464 done
6465 IFS=$as_save_IFS
6466
6467 fi
6468 fi
6469 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6470 if test -n "$ac_ct_DLLWRAP"; then
6471   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6472 $as_echo "$ac_ct_DLLWRAP" >&6; }
6473 else
6474   { $as_echo "$as_me:$LINENO: result: no" >&5
6475 $as_echo "no" >&6; }
6476 fi
6477
6478   if test "x$ac_ct_DLLWRAP" = x; then
6479     DLLWRAP="dllwrap"
6480   else
6481     case $cross_compiling:$ac_tool_warned in
6482 yes:)
6483 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485 ac_tool_warned=yes ;;
6486 esac
6487     DLLWRAP=$ac_ct_DLLWRAP
6488   fi
6489 else
6490   DLLWRAP="$ac_cv_prog_DLLWRAP"
6491 fi
6492
6493   if test -n "$ac_tool_prefix"; then
6494   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}windres; ac_word=$2
6496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_WINDRES+set}" = set; then
6499   $as_echo_n "(cached) " >&6
6500 else
6501   if test -n "$WINDRES"; then
6502   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509   for ac_exec_ext in '' $ac_executable_extensions; do
6510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6512     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 WINDRES=$ac_cv_prog_WINDRES
6522 if test -n "$WINDRES"; then
6523   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6524 $as_echo "$WINDRES" >&6; }
6525 else
6526   { $as_echo "$as_me:$LINENO: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530
6531 fi
6532 if test -z "$ac_cv_prog_WINDRES"; then
6533   ac_ct_WINDRES=$WINDRES
6534   # Extract the first word of "windres", so it can be a program name with args.
6535 set dummy windres; ac_word=$2
6536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6539   $as_echo_n "(cached) " >&6
6540 else
6541   if test -n "$ac_ct_WINDRES"; then
6542   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547   IFS=$as_save_IFS
6548   test -z "$as_dir" && as_dir=.
6549   for ac_exec_ext in '' $ac_executable_extensions; do
6550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551     ac_cv_prog_ac_ct_WINDRES="windres"
6552     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553     break 2
6554   fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6562 if test -n "$ac_ct_WINDRES"; then
6563   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6564 $as_echo "$ac_ct_WINDRES" >&6; }
6565 else
6566   { $as_echo "$as_me:$LINENO: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570   if test "x$ac_ct_WINDRES" = x; then
6571     WINDRES="windres"
6572   else
6573     case $cross_compiling:$ac_tool_warned in
6574 yes:)
6575 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577 ac_tool_warned=yes ;;
6578 esac
6579     WINDRES=$ac_ct_WINDRES
6580   fi
6581 else
6582   WINDRES="$ac_cv_prog_WINDRES"
6583 fi
6584
6585 fi
6586
6587 # Extract the first word of "tar", so it can be a program name with args.
6588 set dummy tar; ac_word=$2
6589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if test "${ac_cv_path_TAR+set}" = set; then
6592   $as_echo_n "(cached) " >&6
6593 else
6594   case $TAR in
6595   [\\/]* | ?:[\\/]*)
6596   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6597   ;;
6598   *)
6599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602   IFS=$as_save_IFS
6603   test -z "$as_dir" && as_dir=.
6604   for ac_exec_ext in '' $ac_executable_extensions; do
6605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6607     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608     break 2
6609   fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614   ;;
6615 esac
6616 fi
6617 TAR=$ac_cv_path_TAR
6618 if test -n "$TAR"; then
6619   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6620 $as_echo "$TAR" >&6; }
6621 else
6622   { $as_echo "$as_me:$LINENO: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625
6626
6627 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6628 $as_echo_n "checking whether ln -s works... " >&6; }
6629 LN_S=$as_ln_s
6630 if test "$LN_S" = "ln -s"; then
6631   { $as_echo "$as_me:$LINENO: result: yes" >&5
6632 $as_echo "yes" >&6; }
6633 else
6634   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6635 $as_echo "no, using $LN_S" >&6; }
6636 fi
6637
6638 for ac_prog in gawk mawk nawk awk
6639 do
6640   # Extract the first word of "$ac_prog", so it can be a program name with args.
6641 set dummy $ac_prog; ac_word=$2
6642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_AWK+set}" = set; then
6645   $as_echo_n "(cached) " >&6
6646 else
6647   if test -n "$AWK"; then
6648   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655   for ac_exec_ext in '' $ac_executable_extensions; do
6656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657     ac_cv_prog_AWK="$ac_prog"
6658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 AWK=$ac_cv_prog_AWK
6668 if test -n "$AWK"; then
6669   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6670 $as_echo "$AWK" >&6; }
6671 else
6672   { $as_echo "$as_me:$LINENO: result: no" >&5
6673 $as_echo "no" >&6; }
6674 fi
6675
6676
6677   test -n "$AWK" && break
6678 done
6679
6680 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6681 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6682 if test -z "$MKDIR_P"; then
6683   if test "${ac_cv_path_mkdir+set}" = set; then
6684   $as_echo_n "(cached) " >&6
6685 else
6686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691   for ac_prog in mkdir gmkdir; do
6692          for ac_exec_ext in '' $ac_executable_extensions; do
6693            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6694            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6695              'mkdir (GNU coreutils) '* | \
6696              'mkdir (coreutils) '* | \
6697              'mkdir (fileutils) '4.1*)
6698                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6699                break 3;;
6700            esac
6701          done
6702        done
6703 done
6704 IFS=$as_save_IFS
6705
6706 fi
6707
6708   if test "${ac_cv_path_mkdir+set}" = set; then
6709     MKDIR_P="$ac_cv_path_mkdir -p"
6710   else
6711     # As a last resort, use the slow shell script.  Don't cache a
6712     # value for MKDIR_P within a source directory, because that will
6713     # break other packages using the cache if that directory is
6714     # removed, or if the value is a relative name.
6715     test -d ./--version && rmdir ./--version
6716     MKDIR_P="$ac_install_sh -d"
6717   fi
6718 fi
6719 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6720 $as_echo "$MKDIR_P" >&6; }
6721
6722 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6723 # a relative path to it in each makefile where it subsitutes it. This clashes
6724 # with our Makefile.global concept. This workaround helps.
6725 case $MKDIR_P in
6726   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6727 esac
6728
6729 # Let the user override the search
6730 if test -z "$BISON"; then
6731   for ac_prog in bison
6732 do
6733   # Extract the first word of "$ac_prog", so it can be a program name with args.
6734 set dummy $ac_prog; ac_word=$2
6735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_path_BISON+set}" = set; then
6738   $as_echo_n "(cached) " >&6
6739 else
6740   case $BISON in
6741   [\\/]* | ?:[\\/]*)
6742   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6743   ;;
6744   *)
6745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750   for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6753     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760   ;;
6761 esac
6762 fi
6763 BISON=$ac_cv_path_BISON
6764 if test -n "$BISON"; then
6765   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6766 $as_echo "$BISON" >&6; }
6767 else
6768   { $as_echo "$as_me:$LINENO: result: no" >&5
6769 $as_echo "no" >&6; }
6770 fi
6771
6772
6773   test -n "$BISON" && break
6774 done
6775
6776 fi
6777
6778 if test "$BISON"; then
6779   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6780   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6781 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6782   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6783   then
6784     { $as_echo "$as_me:$LINENO: WARNING:
6785 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6786 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6787 $as_echo "$as_me: WARNING:
6788 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6789 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6790     BISON=""
6791   fi
6792 fi
6793
6794 if test -z "$BISON"; then
6795   { $as_echo "$as_me:$LINENO: WARNING:
6796 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6797 *** change any of the parser definition files.  You can obtain Bison from
6798 *** a GNU mirror site.  (If you are using the official distribution of
6799 *** PostgreSQL then you do not need to worry about this, because the Bison
6800 *** output is pre-generated.)" >&5
6801 $as_echo "$as_me: WARNING:
6802 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6803 *** change any of the parser definition files.  You can obtain Bison from
6804 *** a GNU mirror site.  (If you are using the official distribution of
6805 *** PostgreSQL then you do not need to worry about this, because the Bison
6806 *** output is pre-generated.)" >&2;}
6807 fi
6808 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6809
6810
6811 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6812 $as_echo_n "checking for flex... " >&6; }
6813 if test "${pgac_cv_path_flex+set}" = set; then
6814   $as_echo_n "(cached) " >&6
6815 else
6816   # Let the user override the test
6817 if test -n "$FLEX"; then
6818   pgac_cv_path_flex=$FLEX
6819 else
6820   pgac_save_IFS=$IFS
6821   IFS=$PATH_SEPARATOR
6822   for pgac_dir in $PATH; do
6823     IFS=$pgac_save_IFS
6824     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6825       pgac_dir=`pwd`
6826     fi
6827     for pgac_prog in flex lex; do
6828       pgac_candidate="$pgac_dir/$pgac_prog"
6829       if test -f "$pgac_candidate" \
6830         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6831       then
6832         echo '%%'  > conftest.l
6833         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6834           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6835           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6836           then
6837             pgac_cv_path_flex=$pgac_candidate
6838             break 2
6839           else
6840             { $as_echo "$as_me:$LINENO: WARNING:
6841 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6842 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6843 $as_echo "$as_me: WARNING:
6844 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6845 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6846           fi
6847         fi
6848       fi
6849     done
6850   done
6851   rm -f conftest.l lex.yy.c
6852   : ${pgac_cv_path_flex=no}
6853 fi
6854
6855 fi
6856 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6857 $as_echo "$pgac_cv_path_flex" >&6; }
6858 if test x"$pgac_cv_path_flex" = x"no"; then
6859   { $as_echo "$as_me:$LINENO: WARNING:
6860 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6861 *** change any of the scanner definition files.  You can obtain Flex from
6862 *** a GNU mirror site.  (If you are using the official distribution of
6863 *** PostgreSQL then you do not need to worry about this because the Flex
6864 *** output is pre-generated.)" >&5
6865 $as_echo "$as_me: WARNING:
6866 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6867 *** change any of the scanner definition files.  You can obtain Flex from
6868 *** a GNU mirror site.  (If you are using the official distribution of
6869 *** PostgreSQL then you do not need to worry about this because the Flex
6870 *** output is pre-generated.)" >&2;}
6871
6872   FLEX=
6873 else
6874   FLEX=$pgac_cv_path_flex
6875   pgac_flex_version=`$FLEX --version 2>/dev/null`
6876   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6877 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6878 fi
6879
6880
6881
6882
6883
6884 # Extract the first word of "perl", so it can be a program name with args.
6885 set dummy perl; ac_word=$2
6886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if test "${ac_cv_path_PERL+set}" = set; then
6889   $as_echo_n "(cached) " >&6
6890 else
6891   case $PERL in
6892   [\\/]* | ?:[\\/]*)
6893   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6894   ;;
6895   *)
6896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901   for ac_exec_ext in '' $ac_executable_extensions; do
6902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6904     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908 done
6909 IFS=$as_save_IFS
6910
6911   ;;
6912 esac
6913 fi
6914 PERL=$ac_cv_path_PERL
6915 if test -n "$PERL"; then
6916   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6917 $as_echo "$PERL" >&6; }
6918 else
6919   { $as_echo "$as_me:$LINENO: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922
6923
6924 if test "$with_perl" = yes; then
6925
6926 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6927 $as_echo_n "checking for Perl archlibexp... " >&6; }
6928 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6929 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6930 $as_echo "$perl_archlibexp" >&6; }
6931 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6932 $as_echo_n "checking for Perl privlibexp... " >&6; }
6933 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6934 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6935 $as_echo "$perl_privlibexp" >&6; }
6936 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6937 $as_echo_n "checking for Perl useshrplib... " >&6; }
6938 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6939 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6940 $as_echo "$perl_useshrplib" >&6; }
6941
6942 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6943 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6944 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6945 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6946 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6947 if test -z "$perl_embed_ldflags" ; then
6948         { $as_echo "$as_me:$LINENO: result: no" >&5
6949 $as_echo "no" >&6; }
6950         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6951 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6952 installed." >&5
6953 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6954 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6955 installed." >&2;}
6956    { (exit 1); exit 1; }; }
6957 else
6958         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6959 $as_echo "$perl_embed_ldflags" >&6; }
6960 fi
6961
6962 fi
6963
6964 if test "$with_python" = yes; then
6965   # Extract the first word of "python", so it can be a program name with args.
6966 set dummy python; ac_word=$2
6967 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if test "${ac_cv_path_PYTHON+set}" = set; then
6970   $as_echo_n "(cached) " >&6
6971 else
6972   case $PYTHON in
6973   [\\/]* | ?:[\\/]*)
6974   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6975   ;;
6976   *)
6977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980   IFS=$as_save_IFS
6981   test -z "$as_dir" && as_dir=.
6982   for ac_exec_ext in '' $ac_executable_extensions; do
6983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6985     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986     break 2
6987   fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992   ;;
6993 esac
6994 fi
6995 PYTHON=$ac_cv_path_PYTHON
6996 if test -n "$PYTHON"; then
6997   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6998 $as_echo "$PYTHON" >&6; }
6999 else
7000   { $as_echo "$as_me:$LINENO: result: no" >&5
7001 $as_echo "no" >&6; }
7002 fi
7003
7004
7005 if test x"$PYTHON" = x""; then
7006   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7007 $as_echo "$as_me: error: Python not found" >&2;}
7008    { (exit 1); exit 1; }; }
7009 fi
7010
7011
7012 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7013 $as_echo_n "checking for Python distutils module... " >&6; }
7014 if "${PYTHON}" 2>&- -c 'import distutils'
7015 then
7016     { $as_echo "$as_me:$LINENO: result: yes" >&5
7017 $as_echo "yes" >&6; }
7018 else
7019     { $as_echo "$as_me:$LINENO: result: no" >&5
7020 $as_echo "no" >&6; }
7021     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7022 $as_echo "$as_me: error: distutils module not found" >&2;}
7023    { (exit 1); exit 1; }; }
7024 fi
7025 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7026 $as_echo_n "checking Python configuration directory... " >&6; }
7027 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7028 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print(os.path.join(f(plat_specific=1,standard_lib=1),'config'))"`
7029 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7030
7031 # This should be enough of a message.
7032 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7033 $as_echo "$python_configdir" >&6; }
7034
7035
7036 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7037 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7038
7039 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7040 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7041 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7042 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7043
7044 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7045 then
7046         # New way: use the official shared library
7047         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7048         python_libspec="-L${python_libdir} -l${ldlibrary}"
7049 else
7050         # Old way: use libpython from python_configdir
7051         python_libdir="${python_configdir}"
7052         python_libspec="-L${python_libdir} -lpython${python_version}"
7053 fi
7054
7055 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
7056
7057 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7058 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7059
7060
7061 # threaded python is not supported on bsd's
7062 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7063 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7064 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7065 if test "$pythreads" = "1"; then
7066   { $as_echo "$as_me:$LINENO: result: yes" >&5
7067 $as_echo "yes" >&6; }
7068   case $host_os in
7069   openbsd*|freebsd*)
7070     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7071 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7072    { (exit 1); exit 1; }; }
7073     ;;
7074   esac
7075 else
7076   { $as_echo "$as_me:$LINENO: result: no" >&5
7077 $as_echo "no" >&6; }
7078 fi
7079
7080
7081 fi
7082
7083 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7084   # Extract the first word of "zic", so it can be a program name with args.
7085 set dummy zic; ac_word=$2
7086 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if test "${ac_cv_path_ZIC+set}" = set; then
7089   $as_echo_n "(cached) " >&6
7090 else
7091   case $ZIC in
7092   [\\/]* | ?:[\\/]*)
7093   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7094   ;;
7095   *)
7096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099   IFS=$as_save_IFS
7100   test -z "$as_dir" && as_dir=.
7101   for ac_exec_ext in '' $ac_executable_extensions; do
7102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7104     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105     break 2
7106   fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111   ;;
7112 esac
7113 fi
7114 ZIC=$ac_cv_path_ZIC
7115 if test -n "$ZIC"; then
7116   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7117 $as_echo "$ZIC" >&6; }
7118 else
7119   { $as_echo "$as_me:$LINENO: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123
7124   if test -z "$ZIC"; then
7125     { { $as_echo "$as_me:$LINENO: error:
7126 When cross-compiling, either use the option --with-system-tzdata to use
7127 existing time-zone data, or set the environment variable ZIC to a zic
7128 program to use during the build." >&5
7129 $as_echo "$as_me: error:
7130 When cross-compiling, either use the option --with-system-tzdata to use
7131 existing time-zone data, or set the environment variable ZIC to a zic
7132 program to use during the build." >&2;}
7133    { (exit 1); exit 1; }; }
7134   fi
7135 fi
7136
7137
7138 ##
7139 ## Libraries
7140 ##
7141 ## Most libraries are included only if they demonstrably provide a function
7142 ## we need, but libm is an exception: always include it, because there are
7143 ## too many compilers that play cute optimization games that will break
7144 ## probes for standard functions such as pow().
7145 ##
7146
7147
7148 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7149 $as_echo_n "checking for main in -lm... " >&6; }
7150 if test "${ac_cv_lib_m_main+set}" = set; then
7151   $as_echo_n "(cached) " >&6
7152 else
7153   ac_check_lib_save_LIBS=$LIBS
7154 LIBS="-lm  $LIBS"
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161
7162
7163 int
7164 main ()
7165 {
7166 return main ();
7167   ;
7168   return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext conftest$ac_exeext
7172 if { (ac_try="$ac_link"
7173 case "(($ac_try" in
7174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175   *) ac_try_echo=$ac_try;;
7176 esac
7177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7178 $as_echo "$ac_try_echo") >&5
7179   (eval "$ac_link") 2>conftest.er1
7180   ac_status=$?
7181   grep -v '^ *+' conftest.er1 >conftest.err
7182   rm -f conftest.er1
7183   cat conftest.err >&5
7184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); } && {
7186          test -z "$ac_c_werror_flag" ||
7187          test ! -s conftest.err
7188        } && test -s conftest$ac_exeext && {
7189          test "$cross_compiling" = yes ||
7190          $as_test_x conftest$ac_exeext
7191        }; then
7192   ac_cv_lib_m_main=yes
7193 else
7194   $as_echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7196
7197         ac_cv_lib_m_main=no
7198 fi
7199
7200 rm -rf conftest.dSYM
7201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7202       conftest$ac_exeext conftest.$ac_ext
7203 LIBS=$ac_check_lib_save_LIBS
7204 fi
7205 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7206 $as_echo "$ac_cv_lib_m_main" >&6; }
7207 if test "x$ac_cv_lib_m_main" = x""yes; then
7208   cat >>confdefs.h <<_ACEOF
7209 #define HAVE_LIBM 1
7210 _ACEOF
7211
7212   LIBS="-lm $LIBS"
7213
7214 fi
7215
7216 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7217 $as_echo_n "checking for library containing setproctitle... " >&6; }
7218 if test "${ac_cv_search_setproctitle+set}" = set; then
7219   $as_echo_n "(cached) " >&6
7220 else
7221   ac_func_search_save_LIBS=$LIBS
7222 cat >conftest.$ac_ext <<_ACEOF
7223 /* confdefs.h.  */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h.  */
7228
7229 /* Override any GCC internal prototype to avoid an error.
7230    Use char because int might match the return type of a GCC
7231    builtin and then its argument prototype would still apply.  */
7232 #ifdef __cplusplus
7233 extern "C"
7234 #endif
7235 char setproctitle ();
7236 int
7237 main ()
7238 {
7239 return setproctitle ();
7240   ;
7241   return 0;
7242 }
7243 _ACEOF
7244 for ac_lib in '' util; do
7245   if test -z "$ac_lib"; then
7246     ac_res="none required"
7247   else
7248     ac_res=-l$ac_lib
7249     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7250   fi
7251   rm -f conftest.$ac_objext conftest$ac_exeext
7252 if { (ac_try="$ac_link"
7253 case "(($ac_try" in
7254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255   *) ac_try_echo=$ac_try;;
7256 esac
7257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7258 $as_echo "$ac_try_echo") >&5
7259   (eval "$ac_link") 2>conftest.er1
7260   ac_status=$?
7261   grep -v '^ *+' conftest.er1 >conftest.err
7262   rm -f conftest.er1
7263   cat conftest.err >&5
7264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); } && {
7266          test -z "$ac_c_werror_flag" ||
7267          test ! -s conftest.err
7268        } && test -s conftest$ac_exeext && {
7269          test "$cross_compiling" = yes ||
7270          $as_test_x conftest$ac_exeext
7271        }; then
7272   ac_cv_search_setproctitle=$ac_res
7273 else
7274   $as_echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7276
7277
7278 fi
7279
7280 rm -rf conftest.dSYM
7281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7282       conftest$ac_exeext
7283   if test "${ac_cv_search_setproctitle+set}" = set; then
7284   break
7285 fi
7286 done
7287 if test "${ac_cv_search_setproctitle+set}" = set; then
7288   :
7289 else
7290   ac_cv_search_setproctitle=no
7291 fi
7292 rm conftest.$ac_ext
7293 LIBS=$ac_func_search_save_LIBS
7294 fi
7295 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7296 $as_echo "$ac_cv_search_setproctitle" >&6; }
7297 ac_res=$ac_cv_search_setproctitle
7298 if test "$ac_res" != no; then
7299   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7300
7301 fi
7302
7303 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7304 $as_echo_n "checking for library containing dlopen... " >&6; }
7305 if test "${ac_cv_search_dlopen+set}" = set; then
7306   $as_echo_n "(cached) " >&6
7307 else
7308   ac_func_search_save_LIBS=$LIBS
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h.  */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h.  */
7315
7316 /* Override any GCC internal prototype to avoid an error.
7317    Use char because int might match the return type of a GCC
7318    builtin and then its argument prototype would still apply.  */
7319 #ifdef __cplusplus
7320 extern "C"
7321 #endif
7322 char dlopen ();
7323 int
7324 main ()
7325 {
7326 return dlopen ();
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 for ac_lib in '' dl; do
7332   if test -z "$ac_lib"; then
7333     ac_res="none required"
7334   else
7335     ac_res=-l$ac_lib
7336     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7337   fi
7338   rm -f conftest.$ac_objext conftest$ac_exeext
7339 if { (ac_try="$ac_link"
7340 case "(($ac_try" in
7341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342   *) ac_try_echo=$ac_try;;
7343 esac
7344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7345 $as_echo "$ac_try_echo") >&5
7346   (eval "$ac_link") 2>conftest.er1
7347   ac_status=$?
7348   grep -v '^ *+' conftest.er1 >conftest.err
7349   rm -f conftest.er1
7350   cat conftest.err >&5
7351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); } && {
7353          test -z "$ac_c_werror_flag" ||
7354          test ! -s conftest.err
7355        } && test -s conftest$ac_exeext && {
7356          test "$cross_compiling" = yes ||
7357          $as_test_x conftest$ac_exeext
7358        }; then
7359   ac_cv_search_dlopen=$ac_res
7360 else
7361   $as_echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7363
7364
7365 fi
7366
7367 rm -rf conftest.dSYM
7368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7369       conftest$ac_exeext
7370   if test "${ac_cv_search_dlopen+set}" = set; then
7371   break
7372 fi
7373 done
7374 if test "${ac_cv_search_dlopen+set}" = set; then
7375   :
7376 else
7377   ac_cv_search_dlopen=no
7378 fi
7379 rm conftest.$ac_ext
7380 LIBS=$ac_func_search_save_LIBS
7381 fi
7382 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7383 $as_echo "$ac_cv_search_dlopen" >&6; }
7384 ac_res=$ac_cv_search_dlopen
7385 if test "$ac_res" != no; then
7386   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7387
7388 fi
7389
7390 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7391 $as_echo_n "checking for library containing socket... " >&6; }
7392 if test "${ac_cv_search_socket+set}" = set; then
7393   $as_echo_n "(cached) " >&6
7394 else
7395   ac_func_search_save_LIBS=$LIBS
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h.  */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h.  */
7402
7403 /* Override any GCC internal prototype to avoid an error.
7404    Use char because int might match the return type of a GCC
7405    builtin and then its argument prototype would still apply.  */
7406 #ifdef __cplusplus
7407 extern "C"
7408 #endif
7409 char socket ();
7410 int
7411 main ()
7412 {
7413 return socket ();
7414   ;
7415   return 0;
7416 }
7417 _ACEOF
7418 for ac_lib in '' socket wsock32; do
7419   if test -z "$ac_lib"; then
7420     ac_res="none required"
7421   else
7422     ac_res=-l$ac_lib
7423     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7424   fi
7425   rm -f conftest.$ac_objext conftest$ac_exeext
7426 if { (ac_try="$ac_link"
7427 case "(($ac_try" in
7428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429   *) ac_try_echo=$ac_try;;
7430 esac
7431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7432 $as_echo "$ac_try_echo") >&5
7433   (eval "$ac_link") 2>conftest.er1
7434   ac_status=$?
7435   grep -v '^ *+' conftest.er1 >conftest.err
7436   rm -f conftest.er1
7437   cat conftest.err >&5
7438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); } && {
7440          test -z "$ac_c_werror_flag" ||
7441          test ! -s conftest.err
7442        } && test -s conftest$ac_exeext && {
7443          test "$cross_compiling" = yes ||
7444          $as_test_x conftest$ac_exeext
7445        }; then
7446   ac_cv_search_socket=$ac_res
7447 else
7448   $as_echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7450
7451
7452 fi
7453
7454 rm -rf conftest.dSYM
7455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7456       conftest$ac_exeext
7457   if test "${ac_cv_search_socket+set}" = set; then
7458   break
7459 fi
7460 done
7461 if test "${ac_cv_search_socket+set}" = set; then
7462   :
7463 else
7464   ac_cv_search_socket=no
7465 fi
7466 rm conftest.$ac_ext
7467 LIBS=$ac_func_search_save_LIBS
7468 fi
7469 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7470 $as_echo "$ac_cv_search_socket" >&6; }
7471 ac_res=$ac_cv_search_socket
7472 if test "$ac_res" != no; then
7473   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7474
7475 fi
7476
7477 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7478 $as_echo_n "checking for library containing shl_load... " >&6; }
7479 if test "${ac_cv_search_shl_load+set}" = set; then
7480   $as_echo_n "(cached) " >&6
7481 else
7482   ac_func_search_save_LIBS=$LIBS
7483 cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h.  */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h.  */
7489
7490 /* Override any GCC internal prototype to avoid an error.
7491    Use char because int might match the return type of a GCC
7492    builtin and then its argument prototype would still apply.  */
7493 #ifdef __cplusplus
7494 extern "C"
7495 #endif
7496 char shl_load ();
7497 int
7498 main ()
7499 {
7500 return shl_load ();
7501   ;
7502   return 0;
7503 }
7504 _ACEOF
7505 for ac_lib in '' dld; do
7506   if test -z "$ac_lib"; then
7507     ac_res="none required"
7508   else
7509     ac_res=-l$ac_lib
7510     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7511   fi
7512   rm -f conftest.$ac_objext conftest$ac_exeext
7513 if { (ac_try="$ac_link"
7514 case "(($ac_try" in
7515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516   *) ac_try_echo=$ac_try;;
7517 esac
7518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7519 $as_echo "$ac_try_echo") >&5
7520   (eval "$ac_link") 2>conftest.er1
7521   ac_status=$?
7522   grep -v '^ *+' conftest.er1 >conftest.err
7523   rm -f conftest.er1
7524   cat conftest.err >&5
7525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); } && {
7527          test -z "$ac_c_werror_flag" ||
7528          test ! -s conftest.err
7529        } && test -s conftest$ac_exeext && {
7530          test "$cross_compiling" = yes ||
7531          $as_test_x conftest$ac_exeext
7532        }; then
7533   ac_cv_search_shl_load=$ac_res
7534 else
7535   $as_echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538
7539 fi
7540
7541 rm -rf conftest.dSYM
7542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7543       conftest$ac_exeext
7544   if test "${ac_cv_search_shl_load+set}" = set; then
7545   break
7546 fi
7547 done
7548 if test "${ac_cv_search_shl_load+set}" = set; then
7549   :
7550 else
7551   ac_cv_search_shl_load=no
7552 fi
7553 rm conftest.$ac_ext
7554 LIBS=$ac_func_search_save_LIBS
7555 fi
7556 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7557 $as_echo "$ac_cv_search_shl_load" >&6; }
7558 ac_res=$ac_cv_search_shl_load
7559 if test "$ac_res" != no; then
7560   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7561
7562 fi
7563
7564 # We only use libld in port/dynloader/aix.c
7565 case $host_os in
7566      aix*)
7567         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7568 $as_echo_n "checking for library containing ldopen... " >&6; }
7569 if test "${ac_cv_search_ldopen+set}" = set; then
7570   $as_echo_n "(cached) " >&6
7571 else
7572   ac_func_search_save_LIBS=$LIBS
7573 cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h.  */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h.  */
7579
7580 /* Override any GCC internal prototype to avoid an error.
7581    Use char because int might match the return type of a GCC
7582    builtin and then its argument prototype would still apply.  */
7583 #ifdef __cplusplus
7584 extern "C"
7585 #endif
7586 char ldopen ();
7587 int
7588 main ()
7589 {
7590 return ldopen ();
7591   ;
7592   return 0;
7593 }
7594 _ACEOF
7595 for ac_lib in '' ld; do
7596   if test -z "$ac_lib"; then
7597     ac_res="none required"
7598   else
7599     ac_res=-l$ac_lib
7600     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7601   fi
7602   rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (ac_try="$ac_link"
7604 case "(($ac_try" in
7605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7606   *) ac_try_echo=$ac_try;;
7607 esac
7608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7609 $as_echo "$ac_try_echo") >&5
7610   (eval "$ac_link") 2>conftest.er1
7611   ac_status=$?
7612   grep -v '^ *+' conftest.er1 >conftest.err
7613   rm -f conftest.er1
7614   cat conftest.err >&5
7615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616   (exit $ac_status); } && {
7617          test -z "$ac_c_werror_flag" ||
7618          test ! -s conftest.err
7619        } && test -s conftest$ac_exeext && {
7620          test "$cross_compiling" = yes ||
7621          $as_test_x conftest$ac_exeext
7622        }; then
7623   ac_cv_search_ldopen=$ac_res
7624 else
7625   $as_echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7627
7628
7629 fi
7630
7631 rm -rf conftest.dSYM
7632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7633       conftest$ac_exeext
7634   if test "${ac_cv_search_ldopen+set}" = set; then
7635   break
7636 fi
7637 done
7638 if test "${ac_cv_search_ldopen+set}" = set; then
7639   :
7640 else
7641   ac_cv_search_ldopen=no
7642 fi
7643 rm conftest.$ac_ext
7644 LIBS=$ac_func_search_save_LIBS
7645 fi
7646 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7647 $as_echo "$ac_cv_search_ldopen" >&6; }
7648 ac_res=$ac_cv_search_ldopen
7649 if test "$ac_res" != no; then
7650   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7651
7652 fi
7653
7654         ;;
7655 esac
7656 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7657 $as_echo_n "checking for library containing getopt_long... " >&6; }
7658 if test "${ac_cv_search_getopt_long+set}" = set; then
7659   $as_echo_n "(cached) " >&6
7660 else
7661   ac_func_search_save_LIBS=$LIBS
7662 cat >conftest.$ac_ext <<_ACEOF
7663 /* confdefs.h.  */
7664 _ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h.  */
7668
7669 /* Override any GCC internal prototype to avoid an error.
7670    Use char because int might match the return type of a GCC
7671    builtin and then its argument prototype would still apply.  */
7672 #ifdef __cplusplus
7673 extern "C"
7674 #endif
7675 char getopt_long ();
7676 int
7677 main ()
7678 {
7679 return getopt_long ();
7680   ;
7681   return 0;
7682 }
7683 _ACEOF
7684 for ac_lib in '' getopt gnugetopt; do
7685   if test -z "$ac_lib"; then
7686     ac_res="none required"
7687   else
7688     ac_res=-l$ac_lib
7689     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7690   fi
7691   rm -f conftest.$ac_objext conftest$ac_exeext
7692 if { (ac_try="$ac_link"
7693 case "(($ac_try" in
7694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695   *) ac_try_echo=$ac_try;;
7696 esac
7697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7698 $as_echo "$ac_try_echo") >&5
7699   (eval "$ac_link") 2>conftest.er1
7700   ac_status=$?
7701   grep -v '^ *+' conftest.er1 >conftest.err
7702   rm -f conftest.er1
7703   cat conftest.err >&5
7704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); } && {
7706          test -z "$ac_c_werror_flag" ||
7707          test ! -s conftest.err
7708        } && test -s conftest$ac_exeext && {
7709          test "$cross_compiling" = yes ||
7710          $as_test_x conftest$ac_exeext
7711        }; then
7712   ac_cv_search_getopt_long=$ac_res
7713 else
7714   $as_echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717
7718 fi
7719
7720 rm -rf conftest.dSYM
7721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7722       conftest$ac_exeext
7723   if test "${ac_cv_search_getopt_long+set}" = set; then
7724   break
7725 fi
7726 done
7727 if test "${ac_cv_search_getopt_long+set}" = set; then
7728   :
7729 else
7730   ac_cv_search_getopt_long=no
7731 fi
7732 rm conftest.$ac_ext
7733 LIBS=$ac_func_search_save_LIBS
7734 fi
7735 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7736 $as_echo "$ac_cv_search_getopt_long" >&6; }
7737 ac_res=$ac_cv_search_getopt_long
7738 if test "$ac_res" != no; then
7739   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7740
7741 fi
7742
7743 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7744 $as_echo_n "checking for library containing crypt... " >&6; }
7745 if test "${ac_cv_search_crypt+set}" = set; then
7746   $as_echo_n "(cached) " >&6
7747 else
7748   ac_func_search_save_LIBS=$LIBS
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h.  */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h.  */
7755
7756 /* Override any GCC internal prototype to avoid an error.
7757    Use char because int might match the return type of a GCC
7758    builtin and then its argument prototype would still apply.  */
7759 #ifdef __cplusplus
7760 extern "C"
7761 #endif
7762 char crypt ();
7763 int
7764 main ()
7765 {
7766 return crypt ();
7767   ;
7768   return 0;
7769 }
7770 _ACEOF
7771 for ac_lib in '' crypt; do
7772   if test -z "$ac_lib"; then
7773     ac_res="none required"
7774   else
7775     ac_res=-l$ac_lib
7776     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7777   fi
7778   rm -f conftest.$ac_objext conftest$ac_exeext
7779 if { (ac_try="$ac_link"
7780 case "(($ac_try" in
7781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782   *) ac_try_echo=$ac_try;;
7783 esac
7784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7785 $as_echo "$ac_try_echo") >&5
7786   (eval "$ac_link") 2>conftest.er1
7787   ac_status=$?
7788   grep -v '^ *+' conftest.er1 >conftest.err
7789   rm -f conftest.er1
7790   cat conftest.err >&5
7791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); } && {
7793          test -z "$ac_c_werror_flag" ||
7794          test ! -s conftest.err
7795        } && test -s conftest$ac_exeext && {
7796          test "$cross_compiling" = yes ||
7797          $as_test_x conftest$ac_exeext
7798        }; then
7799   ac_cv_search_crypt=$ac_res
7800 else
7801   $as_echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804
7805 fi
7806
7807 rm -rf conftest.dSYM
7808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7809       conftest$ac_exeext
7810   if test "${ac_cv_search_crypt+set}" = set; then
7811   break
7812 fi
7813 done
7814 if test "${ac_cv_search_crypt+set}" = set; then
7815   :
7816 else
7817   ac_cv_search_crypt=no
7818 fi
7819 rm conftest.$ac_ext
7820 LIBS=$ac_func_search_save_LIBS
7821 fi
7822 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7823 $as_echo "$ac_cv_search_crypt" >&6; }
7824 ac_res=$ac_cv_search_crypt
7825 if test "$ac_res" != no; then
7826   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7827
7828 fi
7829
7830 # Solaris:
7831 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7832 $as_echo_n "checking for library containing fdatasync... " >&6; }
7833 if test "${ac_cv_search_fdatasync+set}" = set; then
7834   $as_echo_n "(cached) " >&6
7835 else
7836   ac_func_search_save_LIBS=$LIBS
7837 cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843
7844 /* Override any GCC internal prototype to avoid an error.
7845    Use char because int might match the return type of a GCC
7846    builtin and then its argument prototype would still apply.  */
7847 #ifdef __cplusplus
7848 extern "C"
7849 #endif
7850 char fdatasync ();
7851 int
7852 main ()
7853 {
7854 return fdatasync ();
7855   ;
7856   return 0;
7857 }
7858 _ACEOF
7859 for ac_lib in '' rt posix4; do
7860   if test -z "$ac_lib"; then
7861     ac_res="none required"
7862   else
7863     ac_res=-l$ac_lib
7864     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7865   fi
7866   rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (ac_try="$ac_link"
7868 case "(($ac_try" in
7869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870   *) ac_try_echo=$ac_try;;
7871 esac
7872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7873 $as_echo "$ac_try_echo") >&5
7874   (eval "$ac_link") 2>conftest.er1
7875   ac_status=$?
7876   grep -v '^ *+' conftest.er1 >conftest.err
7877   rm -f conftest.er1
7878   cat conftest.err >&5
7879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); } && {
7881          test -z "$ac_c_werror_flag" ||
7882          test ! -s conftest.err
7883        } && test -s conftest$ac_exeext && {
7884          test "$cross_compiling" = yes ||
7885          $as_test_x conftest$ac_exeext
7886        }; then
7887   ac_cv_search_fdatasync=$ac_res
7888 else
7889   $as_echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7891
7892
7893 fi
7894
7895 rm -rf conftest.dSYM
7896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7897       conftest$ac_exeext
7898   if test "${ac_cv_search_fdatasync+set}" = set; then
7899   break
7900 fi
7901 done
7902 if test "${ac_cv_search_fdatasync+set}" = set; then
7903   :
7904 else
7905   ac_cv_search_fdatasync=no
7906 fi
7907 rm conftest.$ac_ext
7908 LIBS=$ac_func_search_save_LIBS
7909 fi
7910 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7911 $as_echo "$ac_cv_search_fdatasync" >&6; }
7912 ac_res=$ac_cv_search_fdatasync
7913 if test "$ac_res" != no; then
7914   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7915
7916 fi
7917
7918 # Required for thread_test.c on Solaris 2.5:
7919 # Other ports use it too (HP-UX) so test unconditionally
7920 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7921 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7922 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7923   $as_echo_n "(cached) " >&6
7924 else
7925   ac_func_search_save_LIBS=$LIBS
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h.  */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h.  */
7932
7933 /* Override any GCC internal prototype to avoid an error.
7934    Use char because int might match the return type of a GCC
7935    builtin and then its argument prototype would still apply.  */
7936 #ifdef __cplusplus
7937 extern "C"
7938 #endif
7939 char gethostbyname_r ();
7940 int
7941 main ()
7942 {
7943 return gethostbyname_r ();
7944   ;
7945   return 0;
7946 }
7947 _ACEOF
7948 for ac_lib in '' nsl; do
7949   if test -z "$ac_lib"; then
7950     ac_res="none required"
7951   else
7952     ac_res=-l$ac_lib
7953     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7954   fi
7955   rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7957 case "(($ac_try" in
7958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959   *) ac_try_echo=$ac_try;;
7960 esac
7961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962 $as_echo "$ac_try_echo") >&5
7963   (eval "$ac_link") 2>conftest.er1
7964   ac_status=$?
7965   grep -v '^ *+' conftest.er1 >conftest.err
7966   rm -f conftest.er1
7967   cat conftest.err >&5
7968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); } && {
7970          test -z "$ac_c_werror_flag" ||
7971          test ! -s conftest.err
7972        } && test -s conftest$ac_exeext && {
7973          test "$cross_compiling" = yes ||
7974          $as_test_x conftest$ac_exeext
7975        }; then
7976   ac_cv_search_gethostbyname_r=$ac_res
7977 else
7978   $as_echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981
7982 fi
7983
7984 rm -rf conftest.dSYM
7985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7986       conftest$ac_exeext
7987   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7988   break
7989 fi
7990 done
7991 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7992   :
7993 else
7994   ac_cv_search_gethostbyname_r=no
7995 fi
7996 rm conftest.$ac_ext
7997 LIBS=$ac_func_search_save_LIBS
7998 fi
7999 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8000 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8001 ac_res=$ac_cv_search_gethostbyname_r
8002 if test "$ac_res" != no; then
8003   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8004
8005 fi
8006
8007 # Cygwin:
8008 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8009 $as_echo_n "checking for library containing shmget... " >&6; }
8010 if test "${ac_cv_search_shmget+set}" = set; then
8011   $as_echo_n "(cached) " >&6
8012 else
8013   ac_func_search_save_LIBS=$LIBS
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h.  */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h.  */
8020
8021 /* Override any GCC internal prototype to avoid an error.
8022    Use char because int might match the return type of a GCC
8023    builtin and then its argument prototype would still apply.  */
8024 #ifdef __cplusplus
8025 extern "C"
8026 #endif
8027 char shmget ();
8028 int
8029 main ()
8030 {
8031 return shmget ();
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 for ac_lib in '' cygipc; do
8037   if test -z "$ac_lib"; then
8038     ac_res="none required"
8039   else
8040     ac_res=-l$ac_lib
8041     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8042   fi
8043   rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (ac_try="$ac_link"
8045 case "(($ac_try" in
8046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047   *) ac_try_echo=$ac_try;;
8048 esac
8049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8050 $as_echo "$ac_try_echo") >&5
8051   (eval "$ac_link") 2>conftest.er1
8052   ac_status=$?
8053   grep -v '^ *+' conftest.er1 >conftest.err
8054   rm -f conftest.er1
8055   cat conftest.err >&5
8056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); } && {
8058          test -z "$ac_c_werror_flag" ||
8059          test ! -s conftest.err
8060        } && test -s conftest$ac_exeext && {
8061          test "$cross_compiling" = yes ||
8062          $as_test_x conftest$ac_exeext
8063        }; then
8064   ac_cv_search_shmget=$ac_res
8065 else
8066   $as_echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8068
8069
8070 fi
8071
8072 rm -rf conftest.dSYM
8073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8074       conftest$ac_exeext
8075   if test "${ac_cv_search_shmget+set}" = set; then
8076   break
8077 fi
8078 done
8079 if test "${ac_cv_search_shmget+set}" = set; then
8080   :
8081 else
8082   ac_cv_search_shmget=no
8083 fi
8084 rm conftest.$ac_ext
8085 LIBS=$ac_func_search_save_LIBS
8086 fi
8087 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8088 $as_echo "$ac_cv_search_shmget" >&6; }
8089 ac_res=$ac_cv_search_shmget
8090 if test "$ac_res" != no; then
8091   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8092
8093 fi
8094
8095
8096 if test "$with_readline" = yes; then
8097
8098
8099 if test "${pgac_cv_check_readline+set}" = set; then
8100   $as_echo_n "(cached) " >&6
8101 else
8102   pgac_cv_check_readline=no
8103 pgac_save_LIBS=$LIBS
8104 if test x"$with_libedit_preferred" != x"yes"
8105 then    READLINE_ORDER="-lreadline -ledit"
8106 else    READLINE_ORDER="-ledit -lreadline"
8107 fi
8108 for pgac_rllib in $READLINE_ORDER ; do
8109   { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8110 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8111   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8112     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8113     cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119
8120 /* Override any GCC internal prototype to avoid an error.
8121    Use char because int might match the return type of a GCC
8122    builtin and then its argument prototype would still apply.  */
8123 #ifdef __cplusplus
8124 extern "C"
8125 #endif
8126 char readline ();
8127 int
8128 main ()
8129 {
8130 return readline ();
8131   ;
8132   return 0;
8133 }
8134 _ACEOF
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (ac_try="$ac_link"
8137 case "(($ac_try" in
8138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139   *) ac_try_echo=$ac_try;;
8140 esac
8141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8142 $as_echo "$ac_try_echo") >&5
8143   (eval "$ac_link") 2>conftest.er1
8144   ac_status=$?
8145   grep -v '^ *+' conftest.er1 >conftest.err
8146   rm -f conftest.er1
8147   cat conftest.err >&5
8148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); } && {
8150          test -z "$ac_c_werror_flag" ||
8151          test ! -s conftest.err
8152        } && test -s conftest$ac_exeext && {
8153          test "$cross_compiling" = yes ||
8154          $as_test_x conftest$ac_exeext
8155        }; then
8156
8157       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8158       # recognize dependent libraries; assume curses is needed if we didn't
8159       # find any dependency.
8160       case $host_os in
8161         netbsd* | openbsd* | irix*)
8162           if test x"$pgac_lib" = x"" ; then
8163             pgac_lib=" -lcurses"
8164           fi ;;
8165       esac
8166
8167       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8168       break
8169
8170 else
8171   $as_echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8173
8174
8175 fi
8176
8177 rm -rf conftest.dSYM
8178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8179       conftest$ac_exeext conftest.$ac_ext
8180   done
8181   if test "$pgac_cv_check_readline" != no ; then
8182     { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8183 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8184     break
8185   else
8186     { $as_echo "$as_me:$LINENO: result: no" >&5
8187 $as_echo "no" >&6; }
8188   fi
8189 done
8190 LIBS=$pgac_save_LIBS
8191
8192 fi
8193
8194 if test "$pgac_cv_check_readline" != no ; then
8195   LIBS="$pgac_cv_check_readline $LIBS"
8196
8197 cat >>confdefs.h <<\_ACEOF
8198 #define HAVE_LIBREADLINE 1
8199 _ACEOF
8200
8201 fi
8202
8203
8204   if test x"$pgac_cv_check_readline" = x"no"; then
8205     { { $as_echo "$as_me:$LINENO: error: readline library not found
8206 If you have readline already installed, see config.log for details on the
8207 failure.  It is possible the compiler isn't looking in the proper directory.
8208 Use --without-readline to disable readline support." >&5
8209 $as_echo "$as_me: error: readline library not found
8210 If you have readline already installed, see config.log for details on the
8211 failure.  It is possible the compiler isn't looking in the proper directory.
8212 Use --without-readline to disable readline support." >&2;}
8213    { (exit 1); exit 1; }; }
8214   fi
8215 fi
8216
8217 if test "$with_zlib" = yes; then
8218
8219 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8220 $as_echo_n "checking for inflate in -lz... " >&6; }
8221 if test "${ac_cv_lib_z_inflate+set}" = set; then
8222   $as_echo_n "(cached) " >&6
8223 else
8224   ac_check_lib_save_LIBS=$LIBS
8225 LIBS="-lz  $LIBS"
8226 cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h.  */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h.  */
8232
8233 /* Override any GCC internal prototype to avoid an error.
8234    Use char because int might match the return type of a GCC
8235    builtin and then its argument prototype would still apply.  */
8236 #ifdef __cplusplus
8237 extern "C"
8238 #endif
8239 char inflate ();
8240 int
8241 main ()
8242 {
8243 return inflate ();
8244   ;
8245   return 0;
8246 }
8247 _ACEOF
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (ac_try="$ac_link"
8250 case "(($ac_try" in
8251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252   *) ac_try_echo=$ac_try;;
8253 esac
8254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8255 $as_echo "$ac_try_echo") >&5
8256   (eval "$ac_link") 2>conftest.er1
8257   ac_status=$?
8258   grep -v '^ *+' conftest.er1 >conftest.err
8259   rm -f conftest.er1
8260   cat conftest.err >&5
8261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); } && {
8263          test -z "$ac_c_werror_flag" ||
8264          test ! -s conftest.err
8265        } && test -s conftest$ac_exeext && {
8266          test "$cross_compiling" = yes ||
8267          $as_test_x conftest$ac_exeext
8268        }; then
8269   ac_cv_lib_z_inflate=yes
8270 else
8271   $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274         ac_cv_lib_z_inflate=no
8275 fi
8276
8277 rm -rf conftest.dSYM
8278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8279       conftest$ac_exeext conftest.$ac_ext
8280 LIBS=$ac_check_lib_save_LIBS
8281 fi
8282 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8283 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8284 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8285   cat >>confdefs.h <<_ACEOF
8286 #define HAVE_LIBZ 1
8287 _ACEOF
8288
8289   LIBS="-lz $LIBS"
8290
8291 else
8292   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8293 If you have zlib already installed, see config.log for details on the
8294 failure.  It is possible the compiler isn't looking in the proper directory.
8295 Use --without-zlib to disable zlib support." >&5
8296 $as_echo "$as_me: error: zlib library not found
8297 If you have zlib already installed, see config.log for details on the
8298 failure.  It is possible the compiler isn't looking in the proper directory.
8299 Use --without-zlib to disable zlib support." >&2;}
8300    { (exit 1); exit 1; }; }
8301 fi
8302
8303 fi
8304
8305 if test "$enable_spinlocks" = yes; then
8306
8307 cat >>confdefs.h <<\_ACEOF
8308 #define HAVE_SPINLOCKS 1
8309 _ACEOF
8310
8311 else
8312   { $as_echo "$as_me:$LINENO: WARNING:
8313 *** Not using spinlocks will cause poor performance." >&5
8314 $as_echo "$as_me: WARNING:
8315 *** Not using spinlocks will cause poor performance." >&2;}
8316 fi
8317
8318 if test "$with_gssapi" = yes ; then
8319   if test "$PORTNAME" != "win32"; then
8320     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8321 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8322 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8323   $as_echo_n "(cached) " >&6
8324 else
8325   ac_func_search_save_LIBS=$LIBS
8326 cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h.  */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h.  */
8332
8333 /* Override any GCC internal prototype to avoid an error.
8334    Use char because int might match the return type of a GCC
8335    builtin and then its argument prototype would still apply.  */
8336 #ifdef __cplusplus
8337 extern "C"
8338 #endif
8339 char gss_init_sec_context ();
8340 int
8341 main ()
8342 {
8343 return gss_init_sec_context ();
8344   ;
8345   return 0;
8346 }
8347 _ACEOF
8348 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8349   if test -z "$ac_lib"; then
8350     ac_res="none required"
8351   else
8352     ac_res=-l$ac_lib
8353     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8354   fi
8355   rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (ac_try="$ac_link"
8357 case "(($ac_try" in
8358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359   *) ac_try_echo=$ac_try;;
8360 esac
8361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8362 $as_echo "$ac_try_echo") >&5
8363   (eval "$ac_link") 2>conftest.er1
8364   ac_status=$?
8365   grep -v '^ *+' conftest.er1 >conftest.err
8366   rm -f conftest.er1
8367   cat conftest.err >&5
8368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); } && {
8370          test -z "$ac_c_werror_flag" ||
8371          test ! -s conftest.err
8372        } && test -s conftest$ac_exeext && {
8373          test "$cross_compiling" = yes ||
8374          $as_test_x conftest$ac_exeext
8375        }; then
8376   ac_cv_search_gss_init_sec_context=$ac_res
8377 else
8378   $as_echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381
8382 fi
8383
8384 rm -rf conftest.dSYM
8385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8386       conftest$ac_exeext
8387   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8388   break
8389 fi
8390 done
8391 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8392   :
8393 else
8394   ac_cv_search_gss_init_sec_context=no
8395 fi
8396 rm conftest.$ac_ext
8397 LIBS=$ac_func_search_save_LIBS
8398 fi
8399 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8400 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8401 ac_res=$ac_cv_search_gss_init_sec_context
8402 if test "$ac_res" != no; then
8403   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8404
8405 else
8406   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8407 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8408    { (exit 1); exit 1; }; }
8409 fi
8410
8411   else
8412     LIBS="$LIBS -lgssapi32"
8413   fi
8414 fi
8415
8416 if test "$with_krb5" = yes ; then
8417   if test "$PORTNAME" != "win32"; then
8418      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8419 $as_echo_n "checking for library containing com_err... " >&6; }
8420 if test "${ac_cv_search_com_err+set}" = set; then
8421   $as_echo_n "(cached) " >&6
8422 else
8423   ac_func_search_save_LIBS=$LIBS
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430
8431 /* Override any GCC internal prototype to avoid an error.
8432    Use char because int might match the return type of a GCC
8433    builtin and then its argument prototype would still apply.  */
8434 #ifdef __cplusplus
8435 extern "C"
8436 #endif
8437 char com_err ();
8438 int
8439 main ()
8440 {
8441 return com_err ();
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8447   if test -z "$ac_lib"; then
8448     ac_res="none required"
8449   else
8450     ac_res=-l$ac_lib
8451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8452   fi
8453   rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (ac_try="$ac_link"
8455 case "(($ac_try" in
8456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457   *) ac_try_echo=$ac_try;;
8458 esac
8459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8460 $as_echo "$ac_try_echo") >&5
8461   (eval "$ac_link") 2>conftest.er1
8462   ac_status=$?
8463   grep -v '^ *+' conftest.er1 >conftest.err
8464   rm -f conftest.er1
8465   cat conftest.err >&5
8466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } && {
8468          test -z "$ac_c_werror_flag" ||
8469          test ! -s conftest.err
8470        } && test -s conftest$ac_exeext && {
8471          test "$cross_compiling" = yes ||
8472          $as_test_x conftest$ac_exeext
8473        }; then
8474   ac_cv_search_com_err=$ac_res
8475 else
8476   $as_echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479
8480 fi
8481
8482 rm -rf conftest.dSYM
8483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8484       conftest$ac_exeext
8485   if test "${ac_cv_search_com_err+set}" = set; then
8486   break
8487 fi
8488 done
8489 if test "${ac_cv_search_com_err+set}" = set; then
8490   :
8491 else
8492   ac_cv_search_com_err=no
8493 fi
8494 rm conftest.$ac_ext
8495 LIBS=$ac_func_search_save_LIBS
8496 fi
8497 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8498 $as_echo "$ac_cv_search_com_err" >&6; }
8499 ac_res=$ac_cv_search_com_err
8500 if test "$ac_res" != no; then
8501   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8502
8503 else
8504   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8505 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8506    { (exit 1); exit 1; }; }
8507 fi
8508
8509      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8510 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8511 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8512   $as_echo_n "(cached) " >&6
8513 else
8514   ac_func_search_save_LIBS=$LIBS
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h.  */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h.  */
8521
8522 /* Override any GCC internal prototype to avoid an error.
8523    Use char because int might match the return type of a GCC
8524    builtin and then its argument prototype would still apply.  */
8525 #ifdef __cplusplus
8526 extern "C"
8527 #endif
8528 char krb5_sendauth ();
8529 int
8530 main ()
8531 {
8532 return krb5_sendauth ();
8533   ;
8534   return 0;
8535 }
8536 _ACEOF
8537 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8538   if test -z "$ac_lib"; then
8539     ac_res="none required"
8540   else
8541     ac_res=-l$ac_lib
8542     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8543   fi
8544   rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (ac_try="$ac_link"
8546 case "(($ac_try" in
8547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548   *) ac_try_echo=$ac_try;;
8549 esac
8550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551 $as_echo "$ac_try_echo") >&5
8552   (eval "$ac_link") 2>conftest.er1
8553   ac_status=$?
8554   grep -v '^ *+' conftest.er1 >conftest.err
8555   rm -f conftest.er1
8556   cat conftest.err >&5
8557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); } && {
8559          test -z "$ac_c_werror_flag" ||
8560          test ! -s conftest.err
8561        } && test -s conftest$ac_exeext && {
8562          test "$cross_compiling" = yes ||
8563          $as_test_x conftest$ac_exeext
8564        }; then
8565   ac_cv_search_krb5_sendauth=$ac_res
8566 else
8567   $as_echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570
8571 fi
8572
8573 rm -rf conftest.dSYM
8574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8575       conftest$ac_exeext
8576   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8577   break
8578 fi
8579 done
8580 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8581   :
8582 else
8583   ac_cv_search_krb5_sendauth=no
8584 fi
8585 rm conftest.$ac_ext
8586 LIBS=$ac_func_search_save_LIBS
8587 fi
8588 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8589 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8590 ac_res=$ac_cv_search_krb5_sendauth
8591 if test "$ac_res" != no; then
8592   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8593
8594 else
8595   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8596 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8597    { (exit 1); exit 1; }; }
8598 fi
8599
8600   else
8601      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8602 $as_echo_n "checking for library containing com_err... " >&6; }
8603 if test "${ac_cv_search_com_err+set}" = set; then
8604   $as_echo_n "(cached) " >&6
8605 else
8606   ac_func_search_save_LIBS=$LIBS
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h.  */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h.  */
8613
8614 /* Override any GCC internal prototype to avoid an error.
8615    Use char because int might match the return type of a GCC
8616    builtin and then its argument prototype would still apply.  */
8617 #ifdef __cplusplus
8618 extern "C"
8619 #endif
8620 char com_err ();
8621 int
8622 main ()
8623 {
8624 return com_err ();
8625   ;
8626   return 0;
8627 }
8628 _ACEOF
8629 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8630   if test -z "$ac_lib"; then
8631     ac_res="none required"
8632   else
8633     ac_res=-l$ac_lib
8634     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8635   fi
8636   rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (ac_try="$ac_link"
8638 case "(($ac_try" in
8639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640   *) ac_try_echo=$ac_try;;
8641 esac
8642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8643 $as_echo "$ac_try_echo") >&5
8644   (eval "$ac_link") 2>conftest.er1
8645   ac_status=$?
8646   grep -v '^ *+' conftest.er1 >conftest.err
8647   rm -f conftest.er1
8648   cat conftest.err >&5
8649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); } && {
8651          test -z "$ac_c_werror_flag" ||
8652          test ! -s conftest.err
8653        } && test -s conftest$ac_exeext && {
8654          test "$cross_compiling" = yes ||
8655          $as_test_x conftest$ac_exeext
8656        }; then
8657   ac_cv_search_com_err=$ac_res
8658 else
8659   $as_echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662
8663 fi
8664
8665 rm -rf conftest.dSYM
8666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8667       conftest$ac_exeext
8668   if test "${ac_cv_search_com_err+set}" = set; then
8669   break
8670 fi
8671 done
8672 if test "${ac_cv_search_com_err+set}" = set; then
8673   :
8674 else
8675   ac_cv_search_com_err=no
8676 fi
8677 rm conftest.$ac_ext
8678 LIBS=$ac_func_search_save_LIBS
8679 fi
8680 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8681 $as_echo "$ac_cv_search_com_err" >&6; }
8682 ac_res=$ac_cv_search_com_err
8683 if test "$ac_res" != no; then
8684   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8685
8686 else
8687   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8688 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8689    { (exit 1); exit 1; }; }
8690 fi
8691
8692   fi
8693 fi
8694
8695 if test "$with_openssl" = yes ; then
8696     if test "$PORTNAME" != "win32"; then
8697
8698 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8699 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8700 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8701   $as_echo_n "(cached) " >&6
8702 else
8703   ac_check_lib_save_LIBS=$LIBS
8704 LIBS="-lcrypto  $LIBS"
8705 cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711
8712 /* Override any GCC internal prototype to avoid an error.
8713    Use char because int might match the return type of a GCC
8714    builtin and then its argument prototype would still apply.  */
8715 #ifdef __cplusplus
8716 extern "C"
8717 #endif
8718 char CRYPTO_new_ex_data ();
8719 int
8720 main ()
8721 {
8722 return CRYPTO_new_ex_data ();
8723   ;
8724   return 0;
8725 }
8726 _ACEOF
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (ac_try="$ac_link"
8729 case "(($ac_try" in
8730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731   *) ac_try_echo=$ac_try;;
8732 esac
8733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8734 $as_echo "$ac_try_echo") >&5
8735   (eval "$ac_link") 2>conftest.er1
8736   ac_status=$?
8737   grep -v '^ *+' conftest.er1 >conftest.err
8738   rm -f conftest.er1
8739   cat conftest.err >&5
8740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); } && {
8742          test -z "$ac_c_werror_flag" ||
8743          test ! -s conftest.err
8744        } && test -s conftest$ac_exeext && {
8745          test "$cross_compiling" = yes ||
8746          $as_test_x conftest$ac_exeext
8747        }; then
8748   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8749 else
8750   $as_echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8752
8753         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8754 fi
8755
8756 rm -rf conftest.dSYM
8757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8758       conftest$ac_exeext conftest.$ac_ext
8759 LIBS=$ac_check_lib_save_LIBS
8760 fi
8761 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8762 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8763 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8764   cat >>confdefs.h <<_ACEOF
8765 #define HAVE_LIBCRYPTO 1
8766 _ACEOF
8767
8768   LIBS="-lcrypto $LIBS"
8769
8770 else
8771   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8772 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8773    { (exit 1); exit 1; }; }
8774 fi
8775
8776
8777 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8778 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8779 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8780   $as_echo_n "(cached) " >&6
8781 else
8782   ac_check_lib_save_LIBS=$LIBS
8783 LIBS="-lssl  $LIBS"
8784 cat >conftest.$ac_ext <<_ACEOF
8785 /* confdefs.h.  */
8786 _ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h.  */
8790
8791 /* Override any GCC internal prototype to avoid an error.
8792    Use char because int might match the return type of a GCC
8793    builtin and then its argument prototype would still apply.  */
8794 #ifdef __cplusplus
8795 extern "C"
8796 #endif
8797 char SSL_library_init ();
8798 int
8799 main ()
8800 {
8801 return SSL_library_init ();
8802   ;
8803   return 0;
8804 }
8805 _ACEOF
8806 rm -f conftest.$ac_objext conftest$ac_exeext
8807 if { (ac_try="$ac_link"
8808 case "(($ac_try" in
8809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810   *) ac_try_echo=$ac_try;;
8811 esac
8812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8813 $as_echo "$ac_try_echo") >&5
8814   (eval "$ac_link") 2>conftest.er1
8815   ac_status=$?
8816   grep -v '^ *+' conftest.er1 >conftest.err
8817   rm -f conftest.er1
8818   cat conftest.err >&5
8819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); } && {
8821          test -z "$ac_c_werror_flag" ||
8822          test ! -s conftest.err
8823        } && test -s conftest$ac_exeext && {
8824          test "$cross_compiling" = yes ||
8825          $as_test_x conftest$ac_exeext
8826        }; then
8827   ac_cv_lib_ssl_SSL_library_init=yes
8828 else
8829   $as_echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8831
8832         ac_cv_lib_ssl_SSL_library_init=no
8833 fi
8834
8835 rm -rf conftest.dSYM
8836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8837       conftest$ac_exeext conftest.$ac_ext
8838 LIBS=$ac_check_lib_save_LIBS
8839 fi
8840 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8841 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8842 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8843   cat >>confdefs.h <<_ACEOF
8844 #define HAVE_LIBSSL 1
8845 _ACEOF
8846
8847   LIBS="-lssl $LIBS"
8848
8849 else
8850   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8851 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8852    { (exit 1); exit 1; }; }
8853 fi
8854
8855   else
8856
8857 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8858 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8859 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8860   $as_echo_n "(cached) " >&6
8861 else
8862   ac_check_lib_save_LIBS=$LIBS
8863 LIBS="-leay32  $LIBS"
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h.  */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h.  */
8870
8871 /* Override any GCC internal prototype to avoid an error.
8872    Use char because int might match the return type of a GCC
8873    builtin and then its argument prototype would still apply.  */
8874 #ifdef __cplusplus
8875 extern "C"
8876 #endif
8877 char CRYPTO_new_ex_data ();
8878 int
8879 main ()
8880 {
8881 return CRYPTO_new_ex_data ();
8882   ;
8883   return 0;
8884 }
8885 _ACEOF
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (ac_try="$ac_link"
8888 case "(($ac_try" in
8889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890   *) ac_try_echo=$ac_try;;
8891 esac
8892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8893 $as_echo "$ac_try_echo") >&5
8894   (eval "$ac_link") 2>conftest.er1
8895   ac_status=$?
8896   grep -v '^ *+' conftest.er1 >conftest.err
8897   rm -f conftest.er1
8898   cat conftest.err >&5
8899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); } && {
8901          test -z "$ac_c_werror_flag" ||
8902          test ! -s conftest.err
8903        } && test -s conftest$ac_exeext && {
8904          test "$cross_compiling" = yes ||
8905          $as_test_x conftest$ac_exeext
8906        }; then
8907   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8908 else
8909   $as_echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8913 fi
8914
8915 rm -rf conftest.dSYM
8916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8917       conftest$ac_exeext conftest.$ac_ext
8918 LIBS=$ac_check_lib_save_LIBS
8919 fi
8920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8921 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8922 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8923   cat >>confdefs.h <<_ACEOF
8924 #define HAVE_LIBEAY32 1
8925 _ACEOF
8926
8927   LIBS="-leay32 $LIBS"
8928
8929 else
8930   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8931 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8932    { (exit 1); exit 1; }; }
8933 fi
8934
8935
8936 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8937 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8938 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8939   $as_echo_n "(cached) " >&6
8940 else
8941   ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-lssleay32  $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h.  */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h.  */
8949
8950 /* Override any GCC internal prototype to avoid an error.
8951    Use char because int might match the return type of a GCC
8952    builtin and then its argument prototype would still apply.  */
8953 #ifdef __cplusplus
8954 extern "C"
8955 #endif
8956 char SSL_library_init ();
8957 int
8958 main ()
8959 {
8960 return SSL_library_init ();
8961   ;
8962   return 0;
8963 }
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (ac_try="$ac_link"
8967 case "(($ac_try" in
8968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969   *) ac_try_echo=$ac_try;;
8970 esac
8971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8972 $as_echo "$ac_try_echo") >&5
8973   (eval "$ac_link") 2>conftest.er1
8974   ac_status=$?
8975   grep -v '^ *+' conftest.er1 >conftest.err
8976   rm -f conftest.er1
8977   cat conftest.err >&5
8978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); } && {
8980          test -z "$ac_c_werror_flag" ||
8981          test ! -s conftest.err
8982        } && test -s conftest$ac_exeext && {
8983          test "$cross_compiling" = yes ||
8984          $as_test_x conftest$ac_exeext
8985        }; then
8986   ac_cv_lib_ssleay32_SSL_library_init=yes
8987 else
8988   $as_echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8990
8991         ac_cv_lib_ssleay32_SSL_library_init=no
8992 fi
8993
8994 rm -rf conftest.dSYM
8995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8996       conftest$ac_exeext conftest.$ac_ext
8997 LIBS=$ac_check_lib_save_LIBS
8998 fi
8999 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9000 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9001 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9002   cat >>confdefs.h <<_ACEOF
9003 #define HAVE_LIBSSLEAY32 1
9004 _ACEOF
9005
9006   LIBS="-lssleay32 $LIBS"
9007
9008 else
9009   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9010 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9011    { (exit 1); exit 1; }; }
9012 fi
9013
9014   fi
9015 fi
9016
9017 if test "$with_pam" = yes ; then
9018
9019 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9020 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9021 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9022   $as_echo_n "(cached) " >&6
9023 else
9024   ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lpam  $LIBS"
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032
9033 /* Override any GCC internal prototype to avoid an error.
9034    Use char because int might match the return type of a GCC
9035    builtin and then its argument prototype would still apply.  */
9036 #ifdef __cplusplus
9037 extern "C"
9038 #endif
9039 char pam_start ();
9040 int
9041 main ()
9042 {
9043 return pam_start ();
9044   ;
9045   return 0;
9046 }
9047 _ACEOF
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (ac_try="$ac_link"
9050 case "(($ac_try" in
9051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052   *) ac_try_echo=$ac_try;;
9053 esac
9054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9055 $as_echo "$ac_try_echo") >&5
9056   (eval "$ac_link") 2>conftest.er1
9057   ac_status=$?
9058   grep -v '^ *+' conftest.er1 >conftest.err
9059   rm -f conftest.er1
9060   cat conftest.err >&5
9061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); } && {
9063          test -z "$ac_c_werror_flag" ||
9064          test ! -s conftest.err
9065        } && test -s conftest$ac_exeext && {
9066          test "$cross_compiling" = yes ||
9067          $as_test_x conftest$ac_exeext
9068        }; then
9069   ac_cv_lib_pam_pam_start=yes
9070 else
9071   $as_echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9073
9074         ac_cv_lib_pam_pam_start=no
9075 fi
9076
9077 rm -rf conftest.dSYM
9078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9079       conftest$ac_exeext conftest.$ac_ext
9080 LIBS=$ac_check_lib_save_LIBS
9081 fi
9082 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9083 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9084 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9085   cat >>confdefs.h <<_ACEOF
9086 #define HAVE_LIBPAM 1
9087 _ACEOF
9088
9089   LIBS="-lpam $LIBS"
9090
9091 else
9092   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9093 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9094    { (exit 1); exit 1; }; }
9095 fi
9096
9097 fi
9098
9099 if test "$with_libxml" = yes ; then
9100
9101 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9102 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9103 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9104   $as_echo_n "(cached) " >&6
9105 else
9106   ac_check_lib_save_LIBS=$LIBS
9107 LIBS="-lxml2  $LIBS"
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114
9115 /* Override any GCC internal prototype to avoid an error.
9116    Use char because int might match the return type of a GCC
9117    builtin and then its argument prototype would still apply.  */
9118 #ifdef __cplusplus
9119 extern "C"
9120 #endif
9121 char xmlSaveToBuffer ();
9122 int
9123 main ()
9124 {
9125 return xmlSaveToBuffer ();
9126   ;
9127   return 0;
9128 }
9129 _ACEOF
9130 rm -f conftest.$ac_objext conftest$ac_exeext
9131 if { (ac_try="$ac_link"
9132 case "(($ac_try" in
9133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134   *) ac_try_echo=$ac_try;;
9135 esac
9136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9137 $as_echo "$ac_try_echo") >&5
9138   (eval "$ac_link") 2>conftest.er1
9139   ac_status=$?
9140   grep -v '^ *+' conftest.er1 >conftest.err
9141   rm -f conftest.er1
9142   cat conftest.err >&5
9143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); } && {
9145          test -z "$ac_c_werror_flag" ||
9146          test ! -s conftest.err
9147        } && test -s conftest$ac_exeext && {
9148          test "$cross_compiling" = yes ||
9149          $as_test_x conftest$ac_exeext
9150        }; then
9151   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9152 else
9153   $as_echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9155
9156         ac_cv_lib_xml2_xmlSaveToBuffer=no
9157 fi
9158
9159 rm -rf conftest.dSYM
9160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9161       conftest$ac_exeext conftest.$ac_ext
9162 LIBS=$ac_check_lib_save_LIBS
9163 fi
9164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9165 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9166 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9167   cat >>confdefs.h <<_ACEOF
9168 #define HAVE_LIBXML2 1
9169 _ACEOF
9170
9171   LIBS="-lxml2 $LIBS"
9172
9173 else
9174   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9175 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9176    { (exit 1); exit 1; }; }
9177 fi
9178
9179 fi
9180
9181 if test "$with_libxslt" = yes ; then
9182
9183 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9184 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9185 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9186   $as_echo_n "(cached) " >&6
9187 else
9188   ac_check_lib_save_LIBS=$LIBS
9189 LIBS="-lxslt  $LIBS"
9190 cat >conftest.$ac_ext <<_ACEOF
9191 /* confdefs.h.  */
9192 _ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h.  */
9196
9197 /* Override any GCC internal prototype to avoid an error.
9198    Use char because int might match the return type of a GCC
9199    builtin and then its argument prototype would still apply.  */
9200 #ifdef __cplusplus
9201 extern "C"
9202 #endif
9203 char xsltCleanupGlobals ();
9204 int
9205 main ()
9206 {
9207 return xsltCleanupGlobals ();
9208   ;
9209   return 0;
9210 }
9211 _ACEOF
9212 rm -f conftest.$ac_objext conftest$ac_exeext
9213 if { (ac_try="$ac_link"
9214 case "(($ac_try" in
9215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216   *) ac_try_echo=$ac_try;;
9217 esac
9218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9219 $as_echo "$ac_try_echo") >&5
9220   (eval "$ac_link") 2>conftest.er1
9221   ac_status=$?
9222   grep -v '^ *+' conftest.er1 >conftest.err
9223   rm -f conftest.er1
9224   cat conftest.err >&5
9225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); } && {
9227          test -z "$ac_c_werror_flag" ||
9228          test ! -s conftest.err
9229        } && test -s conftest$ac_exeext && {
9230          test "$cross_compiling" = yes ||
9231          $as_test_x conftest$ac_exeext
9232        }; then
9233   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9234 else
9235   $as_echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238         ac_cv_lib_xslt_xsltCleanupGlobals=no
9239 fi
9240
9241 rm -rf conftest.dSYM
9242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9243       conftest$ac_exeext conftest.$ac_ext
9244 LIBS=$ac_check_lib_save_LIBS
9245 fi
9246 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9247 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9248 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9249   cat >>confdefs.h <<_ACEOF
9250 #define HAVE_LIBXSLT 1
9251 _ACEOF
9252
9253   LIBS="-lxslt $LIBS"
9254
9255 else
9256   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9257 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9258    { (exit 1); exit 1; }; }
9259 fi
9260
9261 fi
9262
9263 # for contrib/uuid-ossp
9264 if test "$with_ossp_uuid" = yes ; then
9265   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9266 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9267 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9268   $as_echo_n "(cached) " >&6
9269 else
9270   ac_check_lib_save_LIBS=$LIBS
9271 LIBS="-lossp-uuid  $LIBS"
9272 cat >conftest.$ac_ext <<_ACEOF
9273 /* confdefs.h.  */
9274 _ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h.  */
9278
9279 /* Override any GCC internal prototype to avoid an error.
9280    Use char because int might match the return type of a GCC
9281    builtin and then its argument prototype would still apply.  */
9282 #ifdef __cplusplus
9283 extern "C"
9284 #endif
9285 char uuid_export ();
9286 int
9287 main ()
9288 {
9289 return uuid_export ();
9290   ;
9291   return 0;
9292 }
9293 _ACEOF
9294 rm -f conftest.$ac_objext conftest$ac_exeext
9295 if { (ac_try="$ac_link"
9296 case "(($ac_try" in
9297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298   *) ac_try_echo=$ac_try;;
9299 esac
9300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9301 $as_echo "$ac_try_echo") >&5
9302   (eval "$ac_link") 2>conftest.er1
9303   ac_status=$?
9304   grep -v '^ *+' conftest.er1 >conftest.err
9305   rm -f conftest.er1
9306   cat conftest.err >&5
9307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   (exit $ac_status); } && {
9309          test -z "$ac_c_werror_flag" ||
9310          test ! -s conftest.err
9311        } && test -s conftest$ac_exeext && {
9312          test "$cross_compiling" = yes ||
9313          $as_test_x conftest$ac_exeext
9314        }; then
9315   ac_cv_lib_ossp_uuid_uuid_export=yes
9316 else
9317   $as_echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9319
9320         ac_cv_lib_ossp_uuid_uuid_export=no
9321 fi
9322
9323 rm -rf conftest.dSYM
9324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9325       conftest$ac_exeext conftest.$ac_ext
9326 LIBS=$ac_check_lib_save_LIBS
9327 fi
9328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9329 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9330 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9331   OSSP_UUID_LIBS="-lossp-uuid"
9332 else
9333   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9334 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9335 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9336   $as_echo_n "(cached) " >&6
9337 else
9338   ac_check_lib_save_LIBS=$LIBS
9339 LIBS="-luuid  $LIBS"
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h.  */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h.  */
9346
9347 /* Override any GCC internal prototype to avoid an error.
9348    Use char because int might match the return type of a GCC
9349    builtin and then its argument prototype would still apply.  */
9350 #ifdef __cplusplus
9351 extern "C"
9352 #endif
9353 char uuid_export ();
9354 int
9355 main ()
9356 {
9357 return uuid_export ();
9358   ;
9359   return 0;
9360 }
9361 _ACEOF
9362 rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (ac_try="$ac_link"
9364 case "(($ac_try" in
9365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366   *) ac_try_echo=$ac_try;;
9367 esac
9368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9369 $as_echo "$ac_try_echo") >&5
9370   (eval "$ac_link") 2>conftest.er1
9371   ac_status=$?
9372   grep -v '^ *+' conftest.er1 >conftest.err
9373   rm -f conftest.er1
9374   cat conftest.err >&5
9375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); } && {
9377          test -z "$ac_c_werror_flag" ||
9378          test ! -s conftest.err
9379        } && test -s conftest$ac_exeext && {
9380          test "$cross_compiling" = yes ||
9381          $as_test_x conftest$ac_exeext
9382        }; then
9383   ac_cv_lib_uuid_uuid_export=yes
9384 else
9385   $as_echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388         ac_cv_lib_uuid_uuid_export=no
9389 fi
9390
9391 rm -rf conftest.dSYM
9392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9393       conftest$ac_exeext conftest.$ac_ext
9394 LIBS=$ac_check_lib_save_LIBS
9395 fi
9396 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9397 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9398 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9399   OSSP_UUID_LIBS="-luuid"
9400 else
9401   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9402 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9403    { (exit 1); exit 1; }; }
9404 fi
9405
9406 fi
9407
9408 fi
9409
9410
9411
9412 ##
9413 ## Header files
9414 ##
9415
9416 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9417 $as_echo_n "checking for ANSI C header files... " >&6; }
9418 if test "${ac_cv_header_stdc+set}" = set; then
9419   $as_echo_n "(cached) " >&6
9420 else
9421   cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427 #include <stdlib.h>
9428 #include <stdarg.h>
9429 #include <string.h>
9430 #include <float.h>
9431
9432 int
9433 main ()
9434 {
9435
9436   ;
9437   return 0;
9438 }
9439 _ACEOF
9440 rm -f conftest.$ac_objext
9441 if { (ac_try="$ac_compile"
9442 case "(($ac_try" in
9443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444   *) ac_try_echo=$ac_try;;
9445 esac
9446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9447 $as_echo "$ac_try_echo") >&5
9448   (eval "$ac_compile") 2>conftest.er1
9449   ac_status=$?
9450   grep -v '^ *+' conftest.er1 >conftest.err
9451   rm -f conftest.er1
9452   cat conftest.err >&5
9453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); } && {
9455          test -z "$ac_c_werror_flag" ||
9456          test ! -s conftest.err
9457        } && test -s conftest.$ac_objext; then
9458   ac_cv_header_stdc=yes
9459 else
9460   $as_echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9462
9463         ac_cv_header_stdc=no
9464 fi
9465
9466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9467
9468 if test $ac_cv_header_stdc = yes; then
9469   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9470   cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h.  */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h.  */
9476 #include <string.h>
9477
9478 _ACEOF
9479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9480   $EGREP "memchr" >/dev/null 2>&1; then
9481   :
9482 else
9483   ac_cv_header_stdc=no
9484 fi
9485 rm -f conftest*
9486
9487 fi
9488
9489 if test $ac_cv_header_stdc = yes; then
9490   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9491   cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h.  */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h.  */
9497 #include <stdlib.h>
9498
9499 _ACEOF
9500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9501   $EGREP "free" >/dev/null 2>&1; then
9502   :
9503 else
9504   ac_cv_header_stdc=no
9505 fi
9506 rm -f conftest*
9507
9508 fi
9509
9510 if test $ac_cv_header_stdc = yes; then
9511   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9512   if test "$cross_compiling" = yes; then
9513   :
9514 else
9515   cat >conftest.$ac_ext <<_ACEOF
9516 /* confdefs.h.  */
9517 _ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h.  */
9521 #include <ctype.h>
9522 #include <stdlib.h>
9523 #if ((' ' & 0x0FF) == 0x020)
9524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9526 #else
9527 # define ISLOWER(c) \
9528                    (('a' <= (c) && (c) <= 'i') \
9529                      || ('j' <= (c) && (c) <= 'r') \
9530                      || ('s' <= (c) && (c) <= 'z'))
9531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9532 #endif
9533
9534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9535 int
9536 main ()
9537 {
9538   int i;
9539   for (i = 0; i < 256; i++)
9540     if (XOR (islower (i), ISLOWER (i))
9541         || toupper (i) != TOUPPER (i))
9542       return 2;
9543   return 0;
9544 }
9545 _ACEOF
9546 rm -f conftest$ac_exeext
9547 if { (ac_try="$ac_link"
9548 case "(($ac_try" in
9549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550   *) ac_try_echo=$ac_try;;
9551 esac
9552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9553 $as_echo "$ac_try_echo") >&5
9554   (eval "$ac_link") 2>&5
9555   ac_status=$?
9556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9558   { (case "(($ac_try" in
9559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560   *) ac_try_echo=$ac_try;;
9561 esac
9562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9563 $as_echo "$ac_try_echo") >&5
9564   (eval "$ac_try") 2>&5
9565   ac_status=$?
9566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); }; }; then
9568   :
9569 else
9570   $as_echo "$as_me: program exited with status $ac_status" >&5
9571 $as_echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9573
9574 ( exit $ac_status )
9575 ac_cv_header_stdc=no
9576 fi
9577 rm -rf conftest.dSYM
9578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9579 fi
9580
9581
9582 fi
9583 fi
9584 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9585 $as_echo "$ac_cv_header_stdc" >&6; }
9586 if test $ac_cv_header_stdc = yes; then
9587
9588 cat >>confdefs.h <<\_ACEOF
9589 #define STDC_HEADERS 1
9590 _ACEOF
9591
9592 fi
9593
9594 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9605                   inttypes.h stdint.h unistd.h
9606 do
9607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9608 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9609 $as_echo_n "checking for $ac_header... " >&6; }
9610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9611   $as_echo_n "(cached) " >&6
9612 else
9613   cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h.  */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h.  */
9619 $ac_includes_default
9620
9621 #include <$ac_header>
9622 _ACEOF
9623 rm -f conftest.$ac_objext
9624 if { (ac_try="$ac_compile"
9625 case "(($ac_try" in
9626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627   *) ac_try_echo=$ac_try;;
9628 esac
9629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9630 $as_echo "$ac_try_echo") >&5
9631   (eval "$ac_compile") 2>conftest.er1
9632   ac_status=$?
9633   grep -v '^ *+' conftest.er1 >conftest.err
9634   rm -f conftest.er1
9635   cat conftest.err >&5
9636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); } && {
9638          test -z "$ac_c_werror_flag" ||
9639          test ! -s conftest.err
9640        } && test -s conftest.$ac_objext; then
9641   eval "$as_ac_Header=yes"
9642 else
9643   $as_echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9645
9646         eval "$as_ac_Header=no"
9647 fi
9648
9649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9650 fi
9651 ac_res=`eval 'as_val=${'$as_ac_Header'}
9652                  $as_echo "$as_val"'`
9653                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9654 $as_echo "$ac_res" >&6; }
9655 as_val=`eval 'as_val=${'$as_ac_Header'}
9656                  $as_echo "$as_val"'`
9657    if test "x$as_val" = x""yes; then
9658   cat >>confdefs.h <<_ACEOF
9659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9660 _ACEOF
9661
9662 fi
9663
9664 done
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9695 do
9696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9698   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9699 $as_echo_n "checking for $ac_header... " >&6; }
9700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9701   $as_echo_n "(cached) " >&6
9702 fi
9703 ac_res=`eval 'as_val=${'$as_ac_Header'}
9704                  $as_echo "$as_val"'`
9705                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9706 $as_echo "$ac_res" >&6; }
9707 else
9708   # Is the header compilable?
9709 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9710 $as_echo_n "checking $ac_header usability... " >&6; }
9711 cat >conftest.$ac_ext <<_ACEOF
9712 /* confdefs.h.  */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h.  */
9717 $ac_includes_default
9718 #include <$ac_header>
9719 _ACEOF
9720 rm -f conftest.$ac_objext
9721 if { (ac_try="$ac_compile"
9722 case "(($ac_try" in
9723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724   *) ac_try_echo=$ac_try;;
9725 esac
9726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9727 $as_echo "$ac_try_echo") >&5
9728   (eval "$ac_compile") 2>conftest.er1
9729   ac_status=$?
9730   grep -v '^ *+' conftest.er1 >conftest.err
9731   rm -f conftest.er1
9732   cat conftest.err >&5
9733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); } && {
9735          test -z "$ac_c_werror_flag" ||
9736          test ! -s conftest.err
9737        } && test -s conftest.$ac_objext; then
9738   ac_header_compiler=yes
9739 else
9740   $as_echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743         ac_header_compiler=no
9744 fi
9745
9746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9748 $as_echo "$ac_header_compiler" >&6; }
9749
9750 # Is the header present?
9751 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9752 $as_echo_n "checking $ac_header presence... " >&6; }
9753 cat >conftest.$ac_ext <<_ACEOF
9754 /* confdefs.h.  */
9755 _ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h.  */
9759 #include <$ac_header>
9760 _ACEOF
9761 if { (ac_try="$ac_cpp conftest.$ac_ext"
9762 case "(($ac_try" in
9763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764   *) ac_try_echo=$ac_try;;
9765 esac
9766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9767 $as_echo "$ac_try_echo") >&5
9768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } >/dev/null && {
9775          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9776          test ! -s conftest.err
9777        }; then
9778   ac_header_preproc=yes
9779 else
9780   $as_echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783   ac_header_preproc=no
9784 fi
9785
9786 rm -f conftest.err conftest.$ac_ext
9787 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9788 $as_echo "$ac_header_preproc" >&6; }
9789
9790 # So?  What about this header?
9791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9792   yes:no: )
9793     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9794 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9795     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9796 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9797     ac_header_preproc=yes
9798     ;;
9799   no:yes:* )
9800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9801 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9803 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9805 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9807 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9809 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9811 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9812     ( cat <<\_ASBOX
9813 ## ---------------------------------------- ##
9814 ## Report this to pgsql-bugs@postgresql.org ##
9815 ## ---------------------------------------- ##
9816 _ASBOX
9817      ) | sed "s/^/$as_me: WARNING:     /" >&2
9818     ;;
9819 esac
9820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9821 $as_echo_n "checking for $ac_header... " >&6; }
9822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9823   $as_echo_n "(cached) " >&6
9824 else
9825   eval "$as_ac_Header=\$ac_header_preproc"
9826 fi
9827 ac_res=`eval 'as_val=${'$as_ac_Header'}
9828                  $as_echo "$as_val"'`
9829                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9830 $as_echo "$ac_res" >&6; }
9831
9832 fi
9833 as_val=`eval 'as_val=${'$as_ac_Header'}
9834                  $as_echo "$as_val"'`
9835    if test "x$as_val" = x""yes; then
9836   cat >>confdefs.h <<_ACEOF
9837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9838 _ACEOF
9839
9840 fi
9841
9842 done
9843
9844
9845 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9846 # netinet/in.h is included first.
9847
9848 for ac_header in netinet/in.h
9849 do
9850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9852   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9853 $as_echo_n "checking for $ac_header... " >&6; }
9854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9855   $as_echo_n "(cached) " >&6
9856 fi
9857 ac_res=`eval 'as_val=${'$as_ac_Header'}
9858                  $as_echo "$as_val"'`
9859                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9860 $as_echo "$ac_res" >&6; }
9861 else
9862   # Is the header compilable?
9863 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9864 $as_echo_n "checking $ac_header usability... " >&6; }
9865 cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h.  */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h.  */
9871 $ac_includes_default
9872 #include <$ac_header>
9873 _ACEOF
9874 rm -f conftest.$ac_objext
9875 if { (ac_try="$ac_compile"
9876 case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9881 $as_echo "$ac_try_echo") >&5
9882   (eval "$ac_compile") 2>conftest.er1
9883   ac_status=$?
9884   grep -v '^ *+' conftest.er1 >conftest.err
9885   rm -f conftest.er1
9886   cat conftest.err >&5
9887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); } && {
9889          test -z "$ac_c_werror_flag" ||
9890          test ! -s conftest.err
9891        } && test -s conftest.$ac_objext; then
9892   ac_header_compiler=yes
9893 else
9894   $as_echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897         ac_header_compiler=no
9898 fi
9899
9900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9901 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9902 $as_echo "$ac_header_compiler" >&6; }
9903
9904 # Is the header present?
9905 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9906 $as_echo_n "checking $ac_header presence... " >&6; }
9907 cat >conftest.$ac_ext <<_ACEOF
9908 /* confdefs.h.  */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h.  */
9913 #include <$ac_header>
9914 _ACEOF
9915 if { (ac_try="$ac_cpp conftest.$ac_ext"
9916 case "(($ac_try" in
9917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918   *) ac_try_echo=$ac_try;;
9919 esac
9920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9921 $as_echo "$ac_try_echo") >&5
9922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9923   ac_status=$?
9924   grep -v '^ *+' conftest.er1 >conftest.err
9925   rm -f conftest.er1
9926   cat conftest.err >&5
9927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); } >/dev/null && {
9929          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9930          test ! -s conftest.err
9931        }; then
9932   ac_header_preproc=yes
9933 else
9934   $as_echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9936
9937   ac_header_preproc=no
9938 fi
9939
9940 rm -f conftest.err conftest.$ac_ext
9941 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9942 $as_echo "$ac_header_preproc" >&6; }
9943
9944 # So?  What about this header?
9945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9946   yes:no: )
9947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9948 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9950 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9951     ac_header_preproc=yes
9952     ;;
9953   no:yes:* )
9954     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9955 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9956     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9957 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9958     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9959 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9960     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9961 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9962     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9963 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9964     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9965 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9966     ( cat <<\_ASBOX
9967 ## ---------------------------------------- ##
9968 ## Report this to pgsql-bugs@postgresql.org ##
9969 ## ---------------------------------------- ##
9970 _ASBOX
9971      ) | sed "s/^/$as_me: WARNING:     /" >&2
9972     ;;
9973 esac
9974 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9975 $as_echo_n "checking for $ac_header... " >&6; }
9976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9977   $as_echo_n "(cached) " >&6
9978 else
9979   eval "$as_ac_Header=\$ac_header_preproc"
9980 fi
9981 ac_res=`eval 'as_val=${'$as_ac_Header'}
9982                  $as_echo "$as_val"'`
9983                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9984 $as_echo "$ac_res" >&6; }
9985
9986 fi
9987 as_val=`eval 'as_val=${'$as_ac_Header'}
9988                  $as_echo "$as_val"'`
9989    if test "x$as_val" = x""yes; then
9990   cat >>confdefs.h <<_ACEOF
9991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9992 _ACEOF
9993
9994 fi
9995
9996 done
9997
9998
9999 for ac_header in netinet/tcp.h
10000 do
10001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10003 $as_echo_n "checking for $ac_header... " >&6; }
10004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10005   $as_echo_n "(cached) " >&6
10006 else
10007   cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h.  */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h.  */
10013 $ac_includes_default
10014 #ifdef HAVE_NETINET_IN_H
10015 #include <netinet/in.h>
10016 #endif
10017
10018
10019 #include <$ac_header>
10020 _ACEOF
10021 rm -f conftest.$ac_objext
10022 if { (ac_try="$ac_compile"
10023 case "(($ac_try" in
10024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025   *) ac_try_echo=$ac_try;;
10026 esac
10027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10028 $as_echo "$ac_try_echo") >&5
10029   (eval "$ac_compile") 2>conftest.er1
10030   ac_status=$?
10031   grep -v '^ *+' conftest.er1 >conftest.err
10032   rm -f conftest.er1
10033   cat conftest.err >&5
10034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); } && {
10036          test -z "$ac_c_werror_flag" ||
10037          test ! -s conftest.err
10038        } && test -s conftest.$ac_objext; then
10039   eval "$as_ac_Header=yes"
10040 else
10041   $as_echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10043
10044         eval "$as_ac_Header=no"
10045 fi
10046
10047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048 fi
10049 ac_res=`eval 'as_val=${'$as_ac_Header'}
10050                  $as_echo "$as_val"'`
10051                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10052 $as_echo "$ac_res" >&6; }
10053 as_val=`eval 'as_val=${'$as_ac_Header'}
10054                  $as_echo "$as_val"'`
10055    if test "x$as_val" = x""yes; then
10056   cat >>confdefs.h <<_ACEOF
10057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10058 _ACEOF
10059
10060 fi
10061
10062 done
10063
10064
10065 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10066
10067 for ac_header in readline/readline.h
10068 do
10069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10071   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10072 $as_echo_n "checking for $ac_header... " >&6; }
10073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10074   $as_echo_n "(cached) " >&6
10075 fi
10076 ac_res=`eval 'as_val=${'$as_ac_Header'}
10077                  $as_echo "$as_val"'`
10078                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10079 $as_echo "$ac_res" >&6; }
10080 else
10081   # Is the header compilable?
10082 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10083 $as_echo_n "checking $ac_header usability... " >&6; }
10084 cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h.  */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h.  */
10090 $ac_includes_default
10091 #include <$ac_header>
10092 _ACEOF
10093 rm -f conftest.$ac_objext
10094 if { (ac_try="$ac_compile"
10095 case "(($ac_try" in
10096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097   *) ac_try_echo=$ac_try;;
10098 esac
10099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10100 $as_echo "$ac_try_echo") >&5
10101   (eval "$ac_compile") 2>conftest.er1
10102   ac_status=$?
10103   grep -v '^ *+' conftest.er1 >conftest.err
10104   rm -f conftest.er1
10105   cat conftest.err >&5
10106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } && {
10108          test -z "$ac_c_werror_flag" ||
10109          test ! -s conftest.err
10110        } && test -s conftest.$ac_objext; then
10111   ac_header_compiler=yes
10112 else
10113   $as_echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116         ac_header_compiler=no
10117 fi
10118
10119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10120 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10121 $as_echo "$ac_header_compiler" >&6; }
10122
10123 # Is the header present?
10124 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10125 $as_echo_n "checking $ac_header presence... " >&6; }
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132 #include <$ac_header>
10133 _ACEOF
10134 if { (ac_try="$ac_cpp conftest.$ac_ext"
10135 case "(($ac_try" in
10136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137   *) ac_try_echo=$ac_try;;
10138 esac
10139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10140 $as_echo "$ac_try_echo") >&5
10141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10142   ac_status=$?
10143   grep -v '^ *+' conftest.er1 >conftest.err
10144   rm -f conftest.er1
10145   cat conftest.err >&5
10146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); } >/dev/null && {
10148          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10149          test ! -s conftest.err
10150        }; then
10151   ac_header_preproc=yes
10152 else
10153   $as_echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156   ac_header_preproc=no
10157 fi
10158
10159 rm -f conftest.err conftest.$ac_ext
10160 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10161 $as_echo "$ac_header_preproc" >&6; }
10162
10163 # So?  What about this header?
10164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10165   yes:no: )
10166     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10167 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10168     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10169 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10170     ac_header_preproc=yes
10171     ;;
10172   no:yes:* )
10173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10174 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10176 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10178 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10179     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10180 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10181     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10182 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10183     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10184 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10185     ( cat <<\_ASBOX
10186 ## ---------------------------------------- ##
10187 ## Report this to pgsql-bugs@postgresql.org ##
10188 ## ---------------------------------------- ##
10189 _ASBOX
10190      ) | sed "s/^/$as_me: WARNING:     /" >&2
10191     ;;
10192 esac
10193 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10194 $as_echo_n "checking for $ac_header... " >&6; }
10195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10196   $as_echo_n "(cached) " >&6
10197 else
10198   eval "$as_ac_Header=\$ac_header_preproc"
10199 fi
10200 ac_res=`eval 'as_val=${'$as_ac_Header'}
10201                  $as_echo "$as_val"'`
10202                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10203 $as_echo "$ac_res" >&6; }
10204
10205 fi
10206 as_val=`eval 'as_val=${'$as_ac_Header'}
10207                  $as_echo "$as_val"'`
10208    if test "x$as_val" = x""yes; then
10209   cat >>confdefs.h <<_ACEOF
10210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10211 _ACEOF
10212
10213 else
10214
10215 for ac_header in readline.h
10216 do
10217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10219   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10220 $as_echo_n "checking for $ac_header... " >&6; }
10221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10222   $as_echo_n "(cached) " >&6
10223 fi
10224 ac_res=`eval 'as_val=${'$as_ac_Header'}
10225                  $as_echo "$as_val"'`
10226                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10227 $as_echo "$ac_res" >&6; }
10228 else
10229   # Is the header compilable?
10230 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10231 $as_echo_n "checking $ac_header usability... " >&6; }
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238 $ac_includes_default
10239 #include <$ac_header>
10240 _ACEOF
10241 rm -f conftest.$ac_objext
10242 if { (ac_try="$ac_compile"
10243 case "(($ac_try" in
10244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245   *) ac_try_echo=$ac_try;;
10246 esac
10247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10248 $as_echo "$ac_try_echo") >&5
10249   (eval "$ac_compile") 2>conftest.er1
10250   ac_status=$?
10251   grep -v '^ *+' conftest.er1 >conftest.err
10252   rm -f conftest.er1
10253   cat conftest.err >&5
10254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } && {
10256          test -z "$ac_c_werror_flag" ||
10257          test ! -s conftest.err
10258        } && test -s conftest.$ac_objext; then
10259   ac_header_compiler=yes
10260 else
10261   $as_echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10263
10264         ac_header_compiler=no
10265 fi
10266
10267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10268 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10269 $as_echo "$ac_header_compiler" >&6; }
10270
10271 # Is the header present?
10272 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10273 $as_echo_n "checking $ac_header presence... " >&6; }
10274 cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h.  */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h.  */
10280 #include <$ac_header>
10281 _ACEOF
10282 if { (ac_try="$ac_cpp conftest.$ac_ext"
10283 case "(($ac_try" in
10284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285   *) ac_try_echo=$ac_try;;
10286 esac
10287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10288 $as_echo "$ac_try_echo") >&5
10289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10290   ac_status=$?
10291   grep -v '^ *+' conftest.er1 >conftest.err
10292   rm -f conftest.er1
10293   cat conftest.err >&5
10294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); } >/dev/null && {
10296          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10297          test ! -s conftest.err
10298        }; then
10299   ac_header_preproc=yes
10300 else
10301   $as_echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304   ac_header_preproc=no
10305 fi
10306
10307 rm -f conftest.err conftest.$ac_ext
10308 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10309 $as_echo "$ac_header_preproc" >&6; }
10310
10311 # So?  What about this header?
10312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10313   yes:no: )
10314     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10315 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10316     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10318     ac_header_preproc=yes
10319     ;;
10320   no:yes:* )
10321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10322 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10323     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10324 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10325     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10326 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10328 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10330 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10332 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10333     ( cat <<\_ASBOX
10334 ## ---------------------------------------- ##
10335 ## Report this to pgsql-bugs@postgresql.org ##
10336 ## ---------------------------------------- ##
10337 _ASBOX
10338      ) | sed "s/^/$as_me: WARNING:     /" >&2
10339     ;;
10340 esac
10341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10342 $as_echo_n "checking for $ac_header... " >&6; }
10343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10344   $as_echo_n "(cached) " >&6
10345 else
10346   eval "$as_ac_Header=\$ac_header_preproc"
10347 fi
10348 ac_res=`eval 'as_val=${'$as_ac_Header'}
10349                  $as_echo "$as_val"'`
10350                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10351 $as_echo "$ac_res" >&6; }
10352
10353 fi
10354 as_val=`eval 'as_val=${'$as_ac_Header'}
10355                  $as_echo "$as_val"'`
10356    if test "x$as_val" = x""yes; then
10357   cat >>confdefs.h <<_ACEOF
10358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10359 _ACEOF
10360
10361 else
10362   { { $as_echo "$as_me:$LINENO: error: readline header not found
10363 If you have readline already installed, see config.log for details on the
10364 failure.  It is possible the compiler isn't looking in the proper directory.
10365 Use --without-readline to disable readline support." >&5
10366 $as_echo "$as_me: error: readline header not found
10367 If you have readline already installed, see config.log for details on the
10368 failure.  It is possible the compiler isn't looking in the proper directory.
10369 Use --without-readline to disable readline support." >&2;}
10370    { (exit 1); exit 1; }; }
10371 fi
10372
10373 done
10374
10375 fi
10376
10377 done
10378
10379
10380 for ac_header in readline/history.h
10381 do
10382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10384   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10385 $as_echo_n "checking for $ac_header... " >&6; }
10386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10387   $as_echo_n "(cached) " >&6
10388 fi
10389 ac_res=`eval 'as_val=${'$as_ac_Header'}
10390                  $as_echo "$as_val"'`
10391                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10392 $as_echo "$ac_res" >&6; }
10393 else
10394   # Is the header compilable?
10395 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10396 $as_echo_n "checking $ac_header usability... " >&6; }
10397 cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h.  */
10399 _ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h.  */
10403 $ac_includes_default
10404 #include <$ac_header>
10405 _ACEOF
10406 rm -f conftest.$ac_objext
10407 if { (ac_try="$ac_compile"
10408 case "(($ac_try" in
10409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410   *) ac_try_echo=$ac_try;;
10411 esac
10412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10413 $as_echo "$ac_try_echo") >&5
10414   (eval "$ac_compile") 2>conftest.er1
10415   ac_status=$?
10416   grep -v '^ *+' conftest.er1 >conftest.err
10417   rm -f conftest.er1
10418   cat conftest.err >&5
10419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); } && {
10421          test -z "$ac_c_werror_flag" ||
10422          test ! -s conftest.err
10423        } && test -s conftest.$ac_objext; then
10424   ac_header_compiler=yes
10425 else
10426   $as_echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429         ac_header_compiler=no
10430 fi
10431
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10434 $as_echo "$ac_header_compiler" >&6; }
10435
10436 # Is the header present?
10437 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10438 $as_echo_n "checking $ac_header presence... " >&6; }
10439 cat >conftest.$ac_ext <<_ACEOF
10440 /* confdefs.h.  */
10441 _ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h.  */
10445 #include <$ac_header>
10446 _ACEOF
10447 if { (ac_try="$ac_cpp conftest.$ac_ext"
10448 case "(($ac_try" in
10449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450   *) ac_try_echo=$ac_try;;
10451 esac
10452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10453 $as_echo "$ac_try_echo") >&5
10454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10455   ac_status=$?
10456   grep -v '^ *+' conftest.er1 >conftest.err
10457   rm -f conftest.er1
10458   cat conftest.err >&5
10459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460   (exit $ac_status); } >/dev/null && {
10461          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10462          test ! -s conftest.err
10463        }; then
10464   ac_header_preproc=yes
10465 else
10466   $as_echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469   ac_header_preproc=no
10470 fi
10471
10472 rm -f conftest.err conftest.$ac_ext
10473 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10474 $as_echo "$ac_header_preproc" >&6; }
10475
10476 # So?  What about this header?
10477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10478   yes:no: )
10479     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10480 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10481     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10482 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10483     ac_header_preproc=yes
10484     ;;
10485   no:yes:* )
10486     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10487 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10488     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10489 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10490     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10491 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10492     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10493 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10494     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10496     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10497 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10498     ( cat <<\_ASBOX
10499 ## ---------------------------------------- ##
10500 ## Report this to pgsql-bugs@postgresql.org ##
10501 ## ---------------------------------------- ##
10502 _ASBOX
10503      ) | sed "s/^/$as_me: WARNING:     /" >&2
10504     ;;
10505 esac
10506 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10507 $as_echo_n "checking for $ac_header... " >&6; }
10508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10509   $as_echo_n "(cached) " >&6
10510 else
10511   eval "$as_ac_Header=\$ac_header_preproc"
10512 fi
10513 ac_res=`eval 'as_val=${'$as_ac_Header'}
10514                  $as_echo "$as_val"'`
10515                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10516 $as_echo "$ac_res" >&6; }
10517
10518 fi
10519 as_val=`eval 'as_val=${'$as_ac_Header'}
10520                  $as_echo "$as_val"'`
10521    if test "x$as_val" = x""yes; then
10522   cat >>confdefs.h <<_ACEOF
10523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10524 _ACEOF
10525
10526 else
10527
10528 for ac_header in history.h
10529 do
10530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10532   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10533 $as_echo_n "checking for $ac_header... " >&6; }
10534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10535   $as_echo_n "(cached) " >&6
10536 fi
10537 ac_res=`eval 'as_val=${'$as_ac_Header'}
10538                  $as_echo "$as_val"'`
10539                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10540 $as_echo "$ac_res" >&6; }
10541 else
10542   # Is the header compilable?
10543 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10544 $as_echo_n "checking $ac_header usability... " >&6; }
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h.  */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h.  */
10551 $ac_includes_default
10552 #include <$ac_header>
10553 _ACEOF
10554 rm -f conftest.$ac_objext
10555 if { (ac_try="$ac_compile"
10556 case "(($ac_try" in
10557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558   *) ac_try_echo=$ac_try;;
10559 esac
10560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10561 $as_echo "$ac_try_echo") >&5
10562   (eval "$ac_compile") 2>conftest.er1
10563   ac_status=$?
10564   grep -v '^ *+' conftest.er1 >conftest.err
10565   rm -f conftest.er1
10566   cat conftest.err >&5
10567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } && {
10569          test -z "$ac_c_werror_flag" ||
10570          test ! -s conftest.err
10571        } && test -s conftest.$ac_objext; then
10572   ac_header_compiler=yes
10573 else
10574   $as_echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577         ac_header_compiler=no
10578 fi
10579
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10582 $as_echo "$ac_header_compiler" >&6; }
10583
10584 # Is the header present?
10585 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10586 $as_echo_n "checking $ac_header presence... " >&6; }
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h.  */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h.  */
10593 #include <$ac_header>
10594 _ACEOF
10595 if { (ac_try="$ac_cpp conftest.$ac_ext"
10596 case "(($ac_try" in
10597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598   *) ac_try_echo=$ac_try;;
10599 esac
10600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10601 $as_echo "$ac_try_echo") >&5
10602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10603   ac_status=$?
10604   grep -v '^ *+' conftest.er1 >conftest.err
10605   rm -f conftest.er1
10606   cat conftest.err >&5
10607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); } >/dev/null && {
10609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10610          test ! -s conftest.err
10611        }; then
10612   ac_header_preproc=yes
10613 else
10614   $as_echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10616
10617   ac_header_preproc=no
10618 fi
10619
10620 rm -f conftest.err conftest.$ac_ext
10621 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10622 $as_echo "$ac_header_preproc" >&6; }
10623
10624 # So?  What about this header?
10625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10626   yes:no: )
10627     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10628 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10629     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10630 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10631     ac_header_preproc=yes
10632     ;;
10633   no:yes:* )
10634     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10635 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10636     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10637 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10638     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10639 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10640     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10641 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10642     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10643 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10644     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10645 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10646     ( cat <<\_ASBOX
10647 ## ---------------------------------------- ##
10648 ## Report this to pgsql-bugs@postgresql.org ##
10649 ## ---------------------------------------- ##
10650 _ASBOX
10651      ) | sed "s/^/$as_me: WARNING:     /" >&2
10652     ;;
10653 esac
10654 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10655 $as_echo_n "checking for $ac_header... " >&6; }
10656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10657   $as_echo_n "(cached) " >&6
10658 else
10659   eval "$as_ac_Header=\$ac_header_preproc"
10660 fi
10661 ac_res=`eval 'as_val=${'$as_ac_Header'}
10662                  $as_echo "$as_val"'`
10663                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10664 $as_echo "$ac_res" >&6; }
10665
10666 fi
10667 as_val=`eval 'as_val=${'$as_ac_Header'}
10668                  $as_echo "$as_val"'`
10669    if test "x$as_val" = x""yes; then
10670   cat >>confdefs.h <<_ACEOF
10671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10672 _ACEOF
10673
10674 else
10675   { { $as_echo "$as_me:$LINENO: error: history header not found
10676 If you have readline already installed, see config.log for details on the
10677 failure.  It is possible the compiler isn't looking in the proper directory.
10678 Use --without-readline to disable readline support." >&5
10679 $as_echo "$as_me: error: history header not found
10680 If you have readline already installed, see config.log for details on the
10681 failure.  It is possible the compiler isn't looking in the proper directory.
10682 Use --without-readline to disable readline support." >&2;}
10683    { (exit 1); exit 1; }; }
10684 fi
10685
10686 done
10687
10688 fi
10689
10690 done
10691
10692 fi
10693
10694 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10695 # Some installations of libedit usurp /usr/include/readline/, which seems
10696 # bad practice, since in combined installations readline will have its headers
10697 # there.  We might have to resort to AC_EGREP checks to make sure we found
10698 # the proper header...
10699
10700 for ac_header in editline/readline.h
10701 do
10702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10704   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10705 $as_echo_n "checking for $ac_header... " >&6; }
10706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10707   $as_echo_n "(cached) " >&6
10708 fi
10709 ac_res=`eval 'as_val=${'$as_ac_Header'}
10710                  $as_echo "$as_val"'`
10711                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10712 $as_echo "$ac_res" >&6; }
10713 else
10714   # Is the header compilable?
10715 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10716 $as_echo_n "checking $ac_header usability... " >&6; }
10717 cat >conftest.$ac_ext <<_ACEOF
10718 /* confdefs.h.  */
10719 _ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h.  */
10723 $ac_includes_default
10724 #include <$ac_header>
10725 _ACEOF
10726 rm -f conftest.$ac_objext
10727 if { (ac_try="$ac_compile"
10728 case "(($ac_try" in
10729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730   *) ac_try_echo=$ac_try;;
10731 esac
10732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10733 $as_echo "$ac_try_echo") >&5
10734   (eval "$ac_compile") 2>conftest.er1
10735   ac_status=$?
10736   grep -v '^ *+' conftest.er1 >conftest.err
10737   rm -f conftest.er1
10738   cat conftest.err >&5
10739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); } && {
10741          test -z "$ac_c_werror_flag" ||
10742          test ! -s conftest.err
10743        } && test -s conftest.$ac_objext; then
10744   ac_header_compiler=yes
10745 else
10746   $as_echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749         ac_header_compiler=no
10750 fi
10751
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10754 $as_echo "$ac_header_compiler" >&6; }
10755
10756 # Is the header present?
10757 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10758 $as_echo_n "checking $ac_header presence... " >&6; }
10759 cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h.  */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h.  */
10765 #include <$ac_header>
10766 _ACEOF
10767 if { (ac_try="$ac_cpp conftest.$ac_ext"
10768 case "(($ac_try" in
10769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770   *) ac_try_echo=$ac_try;;
10771 esac
10772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10773 $as_echo "$ac_try_echo") >&5
10774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10775   ac_status=$?
10776   grep -v '^ *+' conftest.er1 >conftest.err
10777   rm -f conftest.er1
10778   cat conftest.err >&5
10779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); } >/dev/null && {
10781          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10782          test ! -s conftest.err
10783        }; then
10784   ac_header_preproc=yes
10785 else
10786   $as_echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789   ac_header_preproc=no
10790 fi
10791
10792 rm -f conftest.err conftest.$ac_ext
10793 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10794 $as_echo "$ac_header_preproc" >&6; }
10795
10796 # So?  What about this header?
10797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10798   yes:no: )
10799     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10800 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10802 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10803     ac_header_preproc=yes
10804     ;;
10805   no:yes:* )
10806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10807 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10809 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10811 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10812     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10813 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10814     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10815 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10817 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10818     ( cat <<\_ASBOX
10819 ## ---------------------------------------- ##
10820 ## Report this to pgsql-bugs@postgresql.org ##
10821 ## ---------------------------------------- ##
10822 _ASBOX
10823      ) | sed "s/^/$as_me: WARNING:     /" >&2
10824     ;;
10825 esac
10826 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10827 $as_echo_n "checking for $ac_header... " >&6; }
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829   $as_echo_n "(cached) " >&6
10830 else
10831   eval "$as_ac_Header=\$ac_header_preproc"
10832 fi
10833 ac_res=`eval 'as_val=${'$as_ac_Header'}
10834                  $as_echo "$as_val"'`
10835                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10836 $as_echo "$ac_res" >&6; }
10837
10838 fi
10839 as_val=`eval 'as_val=${'$as_ac_Header'}
10840                  $as_echo "$as_val"'`
10841    if test "x$as_val" = x""yes; then
10842   cat >>confdefs.h <<_ACEOF
10843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10844 _ACEOF
10845
10846 else
10847
10848 for ac_header in readline.h
10849 do
10850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10852   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10853 $as_echo_n "checking for $ac_header... " >&6; }
10854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10855   $as_echo_n "(cached) " >&6
10856 fi
10857 ac_res=`eval 'as_val=${'$as_ac_Header'}
10858                  $as_echo "$as_val"'`
10859                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10860 $as_echo "$ac_res" >&6; }
10861 else
10862   # Is the header compilable?
10863 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10864 $as_echo_n "checking $ac_header usability... " >&6; }
10865 cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h.  */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h.  */
10871 $ac_includes_default
10872 #include <$ac_header>
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (ac_try="$ac_compile"
10876 case "(($ac_try" in
10877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878   *) ac_try_echo=$ac_try;;
10879 esac
10880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10881 $as_echo "$ac_try_echo") >&5
10882   (eval "$ac_compile") 2>conftest.er1
10883   ac_status=$?
10884   grep -v '^ *+' conftest.er1 >conftest.err
10885   rm -f conftest.er1
10886   cat conftest.err >&5
10887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); } && {
10889          test -z "$ac_c_werror_flag" ||
10890          test ! -s conftest.err
10891        } && test -s conftest.$ac_objext; then
10892   ac_header_compiler=yes
10893 else
10894   $as_echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897         ac_header_compiler=no
10898 fi
10899
10900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10902 $as_echo "$ac_header_compiler" >&6; }
10903
10904 # Is the header present?
10905 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10906 $as_echo_n "checking $ac_header presence... " >&6; }
10907 cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 #include <$ac_header>
10914 _ACEOF
10915 if { (ac_try="$ac_cpp conftest.$ac_ext"
10916 case "(($ac_try" in
10917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918   *) ac_try_echo=$ac_try;;
10919 esac
10920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10921 $as_echo "$ac_try_echo") >&5
10922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10923   ac_status=$?
10924   grep -v '^ *+' conftest.er1 >conftest.err
10925   rm -f conftest.er1
10926   cat conftest.err >&5
10927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); } >/dev/null && {
10929          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10930          test ! -s conftest.err
10931        }; then
10932   ac_header_preproc=yes
10933 else
10934   $as_echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10936
10937   ac_header_preproc=no
10938 fi
10939
10940 rm -f conftest.err conftest.$ac_ext
10941 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10942 $as_echo "$ac_header_preproc" >&6; }
10943
10944 # So?  What about this header?
10945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10946   yes:no: )
10947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10948 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10950 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10951     ac_header_preproc=yes
10952     ;;
10953   no:yes:* )
10954     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10955 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10956     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10957 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10958     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10959 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10960     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10961 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10962     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10964     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10965 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10966     ( cat <<\_ASBOX
10967 ## ---------------------------------------- ##
10968 ## Report this to pgsql-bugs@postgresql.org ##
10969 ## ---------------------------------------- ##
10970 _ASBOX
10971      ) | sed "s/^/$as_me: WARNING:     /" >&2
10972     ;;
10973 esac
10974 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10975 $as_echo_n "checking for $ac_header... " >&6; }
10976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10977   $as_echo_n "(cached) " >&6
10978 else
10979   eval "$as_ac_Header=\$ac_header_preproc"
10980 fi
10981 ac_res=`eval 'as_val=${'$as_ac_Header'}
10982                  $as_echo "$as_val"'`
10983                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10984 $as_echo "$ac_res" >&6; }
10985
10986 fi
10987 as_val=`eval 'as_val=${'$as_ac_Header'}
10988                  $as_echo "$as_val"'`
10989    if test "x$as_val" = x""yes; then
10990   cat >>confdefs.h <<_ACEOF
10991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10992 _ACEOF
10993
10994 else
10995
10996 for ac_header in readline/readline.h
10997 do
10998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11000   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11001 $as_echo_n "checking for $ac_header... " >&6; }
11002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11003   $as_echo_n "(cached) " >&6
11004 fi
11005 ac_res=`eval 'as_val=${'$as_ac_Header'}
11006                  $as_echo "$as_val"'`
11007                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11008 $as_echo "$ac_res" >&6; }
11009 else
11010   # Is the header compilable?
11011 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11012 $as_echo_n "checking $ac_header usability... " >&6; }
11013 cat >conftest.$ac_ext <<_ACEOF
11014 /* confdefs.h.  */
11015 _ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h.  */
11019 $ac_includes_default
11020 #include <$ac_header>
11021 _ACEOF
11022 rm -f conftest.$ac_objext
11023 if { (ac_try="$ac_compile"
11024 case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11029 $as_echo "$ac_try_echo") >&5
11030   (eval "$ac_compile") 2>conftest.er1
11031   ac_status=$?
11032   grep -v '^ *+' conftest.er1 >conftest.err
11033   rm -f conftest.er1
11034   cat conftest.err >&5
11035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); } && {
11037          test -z "$ac_c_werror_flag" ||
11038          test ! -s conftest.err
11039        } && test -s conftest.$ac_objext; then
11040   ac_header_compiler=yes
11041 else
11042   $as_echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11044
11045         ac_header_compiler=no
11046 fi
11047
11048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11050 $as_echo "$ac_header_compiler" >&6; }
11051
11052 # Is the header present?
11053 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11054 $as_echo_n "checking $ac_header presence... " >&6; }
11055 cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h.  */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h.  */
11061 #include <$ac_header>
11062 _ACEOF
11063 if { (ac_try="$ac_cpp conftest.$ac_ext"
11064 case "(($ac_try" in
11065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066   *) ac_try_echo=$ac_try;;
11067 esac
11068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11069 $as_echo "$ac_try_echo") >&5
11070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11071   ac_status=$?
11072   grep -v '^ *+' conftest.er1 >conftest.err
11073   rm -f conftest.er1
11074   cat conftest.err >&5
11075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); } >/dev/null && {
11077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11078          test ! -s conftest.err
11079        }; then
11080   ac_header_preproc=yes
11081 else
11082   $as_echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085   ac_header_preproc=no
11086 fi
11087
11088 rm -f conftest.err conftest.$ac_ext
11089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11090 $as_echo "$ac_header_preproc" >&6; }
11091
11092 # So?  What about this header?
11093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11094   yes:no: )
11095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11096 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11097     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11099     ac_header_preproc=yes
11100     ;;
11101   no:yes:* )
11102     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11103 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11104     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11105 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11106     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11107 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11108     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11109 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11110     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11112     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11113 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11114     ( cat <<\_ASBOX
11115 ## ---------------------------------------- ##
11116 ## Report this to pgsql-bugs@postgresql.org ##
11117 ## ---------------------------------------- ##
11118 _ASBOX
11119      ) | sed "s/^/$as_me: WARNING:     /" >&2
11120     ;;
11121 esac
11122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11123 $as_echo_n "checking for $ac_header... " >&6; }
11124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11125   $as_echo_n "(cached) " >&6
11126 else
11127   eval "$as_ac_Header=\$ac_header_preproc"
11128 fi
11129 ac_res=`eval 'as_val=${'$as_ac_Header'}
11130                  $as_echo "$as_val"'`
11131                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11132 $as_echo "$ac_res" >&6; }
11133
11134 fi
11135 as_val=`eval 'as_val=${'$as_ac_Header'}
11136                  $as_echo "$as_val"'`
11137    if test "x$as_val" = x""yes; then
11138   cat >>confdefs.h <<_ACEOF
11139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11140 _ACEOF
11141
11142 else
11143   { { $as_echo "$as_me:$LINENO: error: readline header not found
11144 If you have libedit already installed, see config.log for details on the
11145 failure.  It is possible the compiler isn't looking in the proper directory.
11146 Use --without-readline to disable libedit support." >&5
11147 $as_echo "$as_me: error: readline header not found
11148 If you have libedit already installed, see config.log for details on the
11149 failure.  It is possible the compiler isn't looking in the proper directory.
11150 Use --without-readline to disable libedit support." >&2;}
11151    { (exit 1); exit 1; }; }
11152 fi
11153
11154 done
11155
11156 fi
11157
11158 done
11159
11160 fi
11161
11162 done
11163
11164 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11165 # not be there at all.  Hence, don't complain if not found.  We must check
11166 # though, since in yet other versions it is an independent header.
11167
11168 for ac_header in editline/history.h
11169 do
11170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11172   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11173 $as_echo_n "checking for $ac_header... " >&6; }
11174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175   $as_echo_n "(cached) " >&6
11176 fi
11177 ac_res=`eval 'as_val=${'$as_ac_Header'}
11178                  $as_echo "$as_val"'`
11179                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11180 $as_echo "$ac_res" >&6; }
11181 else
11182   # Is the header compilable?
11183 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11184 $as_echo_n "checking $ac_header usability... " >&6; }
11185 cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h.  */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h.  */
11191 $ac_includes_default
11192 #include <$ac_header>
11193 _ACEOF
11194 rm -f conftest.$ac_objext
11195 if { (ac_try="$ac_compile"
11196 case "(($ac_try" in
11197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198   *) ac_try_echo=$ac_try;;
11199 esac
11200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11201 $as_echo "$ac_try_echo") >&5
11202   (eval "$ac_compile") 2>conftest.er1
11203   ac_status=$?
11204   grep -v '^ *+' conftest.er1 >conftest.err
11205   rm -f conftest.er1
11206   cat conftest.err >&5
11207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); } && {
11209          test -z "$ac_c_werror_flag" ||
11210          test ! -s conftest.err
11211        } && test -s conftest.$ac_objext; then
11212   ac_header_compiler=yes
11213 else
11214   $as_echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11216
11217         ac_header_compiler=no
11218 fi
11219
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11222 $as_echo "$ac_header_compiler" >&6; }
11223
11224 # Is the header present?
11225 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11226 $as_echo_n "checking $ac_header presence... " >&6; }
11227 cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h.  */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h.  */
11233 #include <$ac_header>
11234 _ACEOF
11235 if { (ac_try="$ac_cpp conftest.$ac_ext"
11236 case "(($ac_try" in
11237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238   *) ac_try_echo=$ac_try;;
11239 esac
11240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11241 $as_echo "$ac_try_echo") >&5
11242   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11243   ac_status=$?
11244   grep -v '^ *+' conftest.er1 >conftest.err
11245   rm -f conftest.er1
11246   cat conftest.err >&5
11247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); } >/dev/null && {
11249          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11250          test ! -s conftest.err
11251        }; then
11252   ac_header_preproc=yes
11253 else
11254   $as_echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11256
11257   ac_header_preproc=no
11258 fi
11259
11260 rm -f conftest.err conftest.$ac_ext
11261 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262 $as_echo "$ac_header_preproc" >&6; }
11263
11264 # So?  What about this header?
11265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11266   yes:no: )
11267     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11268 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11271     ac_header_preproc=yes
11272     ;;
11273   no:yes:* )
11274     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11277 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11278     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11279 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11280     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11281 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11283 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11284     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11285 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11286     ( cat <<\_ASBOX
11287 ## ---------------------------------------- ##
11288 ## Report this to pgsql-bugs@postgresql.org ##
11289 ## ---------------------------------------- ##
11290 _ASBOX
11291      ) | sed "s/^/$as_me: WARNING:     /" >&2
11292     ;;
11293 esac
11294 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 $as_echo_n "checking for $ac_header... " >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297   $as_echo_n "(cached) " >&6
11298 else
11299   eval "$as_ac_Header=\$ac_header_preproc"
11300 fi
11301 ac_res=`eval 'as_val=${'$as_ac_Header'}
11302                  $as_echo "$as_val"'`
11303                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11304 $as_echo "$ac_res" >&6; }
11305
11306 fi
11307 as_val=`eval 'as_val=${'$as_ac_Header'}
11308                  $as_echo "$as_val"'`
11309    if test "x$as_val" = x""yes; then
11310   cat >>confdefs.h <<_ACEOF
11311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11312 _ACEOF
11313
11314 else
11315
11316 for ac_header in history.h
11317 do
11318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11321 $as_echo_n "checking for $ac_header... " >&6; }
11322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11323   $as_echo_n "(cached) " >&6
11324 fi
11325 ac_res=`eval 'as_val=${'$as_ac_Header'}
11326                  $as_echo "$as_val"'`
11327                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11328 $as_echo "$ac_res" >&6; }
11329 else
11330   # Is the header compilable?
11331 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11332 $as_echo_n "checking $ac_header usability... " >&6; }
11333 cat >conftest.$ac_ext <<_ACEOF
11334 /* confdefs.h.  */
11335 _ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h.  */
11339 $ac_includes_default
11340 #include <$ac_header>
11341 _ACEOF
11342 rm -f conftest.$ac_objext
11343 if { (ac_try="$ac_compile"
11344 case "(($ac_try" in
11345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346   *) ac_try_echo=$ac_try;;
11347 esac
11348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11349 $as_echo "$ac_try_echo") >&5
11350   (eval "$ac_compile") 2>conftest.er1
11351   ac_status=$?
11352   grep -v '^ *+' conftest.er1 >conftest.err
11353   rm -f conftest.er1
11354   cat conftest.err >&5
11355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); } && {
11357          test -z "$ac_c_werror_flag" ||
11358          test ! -s conftest.err
11359        } && test -s conftest.$ac_objext; then
11360   ac_header_compiler=yes
11361 else
11362   $as_echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11364
11365         ac_header_compiler=no
11366 fi
11367
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11370 $as_echo "$ac_header_compiler" >&6; }
11371
11372 # Is the header present?
11373 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11374 $as_echo_n "checking $ac_header presence... " >&6; }
11375 cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h.  */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h.  */
11381 #include <$ac_header>
11382 _ACEOF
11383 if { (ac_try="$ac_cpp conftest.$ac_ext"
11384 case "(($ac_try" in
11385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386   *) ac_try_echo=$ac_try;;
11387 esac
11388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11389 $as_echo "$ac_try_echo") >&5
11390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11391   ac_status=$?
11392   grep -v '^ *+' conftest.er1 >conftest.err
11393   rm -f conftest.er1
11394   cat conftest.err >&5
11395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } >/dev/null && {
11397          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11398          test ! -s conftest.err
11399        }; then
11400   ac_header_preproc=yes
11401 else
11402   $as_echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405   ac_header_preproc=no
11406 fi
11407
11408 rm -f conftest.err conftest.$ac_ext
11409 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11410 $as_echo "$ac_header_preproc" >&6; }
11411
11412 # So?  What about this header?
11413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11414   yes:no: )
11415     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11416 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11417     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11418 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11419     ac_header_preproc=yes
11420     ;;
11421   no:yes:* )
11422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11423 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11424     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11425 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11426     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11427 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11428     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11429 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11430     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11431 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11432     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11433 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11434     ( cat <<\_ASBOX
11435 ## ---------------------------------------- ##
11436 ## Report this to pgsql-bugs@postgresql.org ##
11437 ## ---------------------------------------- ##
11438 _ASBOX
11439      ) | sed "s/^/$as_me: WARNING:     /" >&2
11440     ;;
11441 esac
11442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11443 $as_echo_n "checking for $ac_header... " >&6; }
11444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11445   $as_echo_n "(cached) " >&6
11446 else
11447   eval "$as_ac_Header=\$ac_header_preproc"
11448 fi
11449 ac_res=`eval 'as_val=${'$as_ac_Header'}
11450                  $as_echo "$as_val"'`
11451                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11452 $as_echo "$ac_res" >&6; }
11453
11454 fi
11455 as_val=`eval 'as_val=${'$as_ac_Header'}
11456                  $as_echo "$as_val"'`
11457    if test "x$as_val" = x""yes; then
11458   cat >>confdefs.h <<_ACEOF
11459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11460 _ACEOF
11461
11462 else
11463
11464 for ac_header in readline/history.h
11465 do
11466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11469 $as_echo_n "checking for $ac_header... " >&6; }
11470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11471   $as_echo_n "(cached) " >&6
11472 fi
11473 ac_res=`eval 'as_val=${'$as_ac_Header'}
11474                  $as_echo "$as_val"'`
11475                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11476 $as_echo "$ac_res" >&6; }
11477 else
11478   # Is the header compilable?
11479 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11480 $as_echo_n "checking $ac_header usability... " >&6; }
11481 cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h.  */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h.  */
11487 $ac_includes_default
11488 #include <$ac_header>
11489 _ACEOF
11490 rm -f conftest.$ac_objext
11491 if { (ac_try="$ac_compile"
11492 case "(($ac_try" in
11493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494   *) ac_try_echo=$ac_try;;
11495 esac
11496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11497 $as_echo "$ac_try_echo") >&5
11498   (eval "$ac_compile") 2>conftest.er1
11499   ac_status=$?
11500   grep -v '^ *+' conftest.er1 >conftest.err
11501   rm -f conftest.er1
11502   cat conftest.err >&5
11503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); } && {
11505          test -z "$ac_c_werror_flag" ||
11506          test ! -s conftest.err
11507        } && test -s conftest.$ac_objext; then
11508   ac_header_compiler=yes
11509 else
11510   $as_echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513         ac_header_compiler=no
11514 fi
11515
11516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11517 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11518 $as_echo "$ac_header_compiler" >&6; }
11519
11520 # Is the header present?
11521 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11522 $as_echo_n "checking $ac_header presence... " >&6; }
11523 cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h.  */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h.  */
11529 #include <$ac_header>
11530 _ACEOF
11531 if { (ac_try="$ac_cpp conftest.$ac_ext"
11532 case "(($ac_try" in
11533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534   *) ac_try_echo=$ac_try;;
11535 esac
11536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11537 $as_echo "$ac_try_echo") >&5
11538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11539   ac_status=$?
11540   grep -v '^ *+' conftest.er1 >conftest.err
11541   rm -f conftest.er1
11542   cat conftest.err >&5
11543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); } >/dev/null && {
11545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11546          test ! -s conftest.err
11547        }; then
11548   ac_header_preproc=yes
11549 else
11550   $as_echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11552
11553   ac_header_preproc=no
11554 fi
11555
11556 rm -f conftest.err conftest.$ac_ext
11557 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11558 $as_echo "$ac_header_preproc" >&6; }
11559
11560 # So?  What about this header?
11561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11562   yes:no: )
11563     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11564 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11565     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11566 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11567     ac_header_preproc=yes
11568     ;;
11569   no:yes:* )
11570     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11571 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11572     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11573 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11574     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11575 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11576     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11577 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11578     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11579 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11580     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11581 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11582     ( cat <<\_ASBOX
11583 ## ---------------------------------------- ##
11584 ## Report this to pgsql-bugs@postgresql.org ##
11585 ## ---------------------------------------- ##
11586 _ASBOX
11587      ) | sed "s/^/$as_me: WARNING:     /" >&2
11588     ;;
11589 esac
11590 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11591 $as_echo_n "checking for $ac_header... " >&6; }
11592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11593   $as_echo_n "(cached) " >&6
11594 else
11595   eval "$as_ac_Header=\$ac_header_preproc"
11596 fi
11597 ac_res=`eval 'as_val=${'$as_ac_Header'}
11598                  $as_echo "$as_val"'`
11599                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11600 $as_echo "$ac_res" >&6; }
11601
11602 fi
11603 as_val=`eval 'as_val=${'$as_ac_Header'}
11604                  $as_echo "$as_val"'`
11605    if test "x$as_val" = x""yes; then
11606   cat >>confdefs.h <<_ACEOF
11607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11608 _ACEOF
11609
11610 fi
11611
11612 done
11613
11614 fi
11615
11616 done
11617
11618 fi
11619
11620 done
11621
11622 fi
11623
11624 if test "$with_zlib" = yes; then
11625   if test "${ac_cv_header_zlib_h+set}" = set; then
11626   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11627 $as_echo_n "checking for zlib.h... " >&6; }
11628 if test "${ac_cv_header_zlib_h+set}" = set; then
11629   $as_echo_n "(cached) " >&6
11630 fi
11631 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11632 $as_echo "$ac_cv_header_zlib_h" >&6; }
11633 else
11634   # Is the header compilable?
11635 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11636 $as_echo_n "checking zlib.h usability... " >&6; }
11637 cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h.  */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h.  */
11643 $ac_includes_default
11644 #include <zlib.h>
11645 _ACEOF
11646 rm -f conftest.$ac_objext
11647 if { (ac_try="$ac_compile"
11648 case "(($ac_try" in
11649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650   *) ac_try_echo=$ac_try;;
11651 esac
11652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11653 $as_echo "$ac_try_echo") >&5
11654   (eval "$ac_compile") 2>conftest.er1
11655   ac_status=$?
11656   grep -v '^ *+' conftest.er1 >conftest.err
11657   rm -f conftest.er1
11658   cat conftest.err >&5
11659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); } && {
11661          test -z "$ac_c_werror_flag" ||
11662          test ! -s conftest.err
11663        } && test -s conftest.$ac_objext; then
11664   ac_header_compiler=yes
11665 else
11666   $as_echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11668
11669         ac_header_compiler=no
11670 fi
11671
11672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11674 $as_echo "$ac_header_compiler" >&6; }
11675
11676 # Is the header present?
11677 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11678 $as_echo_n "checking zlib.h presence... " >&6; }
11679 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h.  */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h.  */
11685 #include <zlib.h>
11686 _ACEOF
11687 if { (ac_try="$ac_cpp conftest.$ac_ext"
11688 case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11693 $as_echo "$ac_try_echo") >&5
11694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11695   ac_status=$?
11696   grep -v '^ *+' conftest.er1 >conftest.err
11697   rm -f conftest.er1
11698   cat conftest.err >&5
11699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); } >/dev/null && {
11701          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11702          test ! -s conftest.err
11703        }; then
11704   ac_header_preproc=yes
11705 else
11706   $as_echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709   ac_header_preproc=no
11710 fi
11711
11712 rm -f conftest.err conftest.$ac_ext
11713 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11714 $as_echo "$ac_header_preproc" >&6; }
11715
11716 # So?  What about this header?
11717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11718   yes:no: )
11719     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11720 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11721     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11722 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11723     ac_header_preproc=yes
11724     ;;
11725   no:yes:* )
11726     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11727 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11728     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
11729 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
11730     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11731 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11732     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
11733 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11734     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11735 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11736     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11737 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11738     ( cat <<\_ASBOX
11739 ## ---------------------------------------- ##
11740 ## Report this to pgsql-bugs@postgresql.org ##
11741 ## ---------------------------------------- ##
11742 _ASBOX
11743      ) | sed "s/^/$as_me: WARNING:     /" >&2
11744     ;;
11745 esac
11746 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11747 $as_echo_n "checking for zlib.h... " >&6; }
11748 if test "${ac_cv_header_zlib_h+set}" = set; then
11749   $as_echo_n "(cached) " >&6
11750 else
11751   ac_cv_header_zlib_h=$ac_header_preproc
11752 fi
11753 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11754 $as_echo "$ac_cv_header_zlib_h" >&6; }
11755
11756 fi
11757 if test "x$ac_cv_header_zlib_h" = x""yes; then
11758   :
11759 else
11760   { { $as_echo "$as_me:$LINENO: error: zlib header not found
11761 If you have zlib already installed, see config.log for details on the
11762 failure.  It is possible the compiler isn't looking in the proper directory.
11763 Use --without-zlib to disable zlib support." >&5
11764 $as_echo "$as_me: error: zlib header not found
11765 If you have zlib already installed, see config.log for details on the
11766 failure.  It is possible the compiler isn't looking in the proper directory.
11767 Use --without-zlib to disable zlib support." >&2;}
11768    { (exit 1); exit 1; }; }
11769 fi
11770
11771
11772 fi
11773
11774 if test "$with_gssapi" = yes ; then
11775
11776 for ac_header in gssapi/gssapi.h
11777 do
11778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11780   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11781 $as_echo_n "checking for $ac_header... " >&6; }
11782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11783   $as_echo_n "(cached) " >&6
11784 fi
11785 ac_res=`eval 'as_val=${'$as_ac_Header'}
11786                  $as_echo "$as_val"'`
11787                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11788 $as_echo "$ac_res" >&6; }
11789 else
11790   # Is the header compilable?
11791 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11792 $as_echo_n "checking $ac_header usability... " >&6; }
11793 cat >conftest.$ac_ext <<_ACEOF
11794 /* confdefs.h.  */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h.  */
11799 $ac_includes_default
11800 #include <$ac_header>
11801 _ACEOF
11802 rm -f conftest.$ac_objext
11803 if { (ac_try="$ac_compile"
11804 case "(($ac_try" in
11805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806   *) ac_try_echo=$ac_try;;
11807 esac
11808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11809 $as_echo "$ac_try_echo") >&5
11810   (eval "$ac_compile") 2>conftest.er1
11811   ac_status=$?
11812   grep -v '^ *+' conftest.er1 >conftest.err
11813   rm -f conftest.er1
11814   cat conftest.err >&5
11815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); } && {
11817          test -z "$ac_c_werror_flag" ||
11818          test ! -s conftest.err
11819        } && test -s conftest.$ac_objext; then
11820   ac_header_compiler=yes
11821 else
11822   $as_echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11824
11825         ac_header_compiler=no
11826 fi
11827
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11830 $as_echo "$ac_header_compiler" >&6; }
11831
11832 # Is the header present?
11833 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11834 $as_echo_n "checking $ac_header presence... " >&6; }
11835 cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h.  */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h.  */
11841 #include <$ac_header>
11842 _ACEOF
11843 if { (ac_try="$ac_cpp conftest.$ac_ext"
11844 case "(($ac_try" in
11845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846   *) ac_try_echo=$ac_try;;
11847 esac
11848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11849 $as_echo "$ac_try_echo") >&5
11850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11851   ac_status=$?
11852   grep -v '^ *+' conftest.er1 >conftest.err
11853   rm -f conftest.er1
11854   cat conftest.err >&5
11855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); } >/dev/null && {
11857          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11858          test ! -s conftest.err
11859        }; then
11860   ac_header_preproc=yes
11861 else
11862   $as_echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11864
11865   ac_header_preproc=no
11866 fi
11867
11868 rm -f conftest.err conftest.$ac_ext
11869 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11870 $as_echo "$ac_header_preproc" >&6; }
11871
11872 # So?  What about this header?
11873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11874   yes:no: )
11875     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11876 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11877     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11878 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11879     ac_header_preproc=yes
11880     ;;
11881   no:yes:* )
11882     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11883 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11884     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11885 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11886     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11887 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11888     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11889 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11890     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11891 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11892     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11893 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11894     ( cat <<\_ASBOX
11895 ## ---------------------------------------- ##
11896 ## Report this to pgsql-bugs@postgresql.org ##
11897 ## ---------------------------------------- ##
11898 _ASBOX
11899      ) | sed "s/^/$as_me: WARNING:     /" >&2
11900     ;;
11901 esac
11902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11903 $as_echo_n "checking for $ac_header... " >&6; }
11904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905   $as_echo_n "(cached) " >&6
11906 else
11907   eval "$as_ac_Header=\$ac_header_preproc"
11908 fi
11909 ac_res=`eval 'as_val=${'$as_ac_Header'}
11910                  $as_echo "$as_val"'`
11911                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11912 $as_echo "$ac_res" >&6; }
11913
11914 fi
11915 as_val=`eval 'as_val=${'$as_ac_Header'}
11916                  $as_echo "$as_val"'`
11917    if test "x$as_val" = x""yes; then
11918   cat >>confdefs.h <<_ACEOF
11919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11920 _ACEOF
11921
11922 else
11923
11924 for ac_header in gssapi.h
11925 do
11926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11928   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11929 $as_echo_n "checking for $ac_header... " >&6; }
11930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11931   $as_echo_n "(cached) " >&6
11932 fi
11933 ac_res=`eval 'as_val=${'$as_ac_Header'}
11934                  $as_echo "$as_val"'`
11935                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11936 $as_echo "$ac_res" >&6; }
11937 else
11938   # Is the header compilable?
11939 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11940 $as_echo_n "checking $ac_header usability... " >&6; }
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h.  */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h.  */
11947 $ac_includes_default
11948 #include <$ac_header>
11949 _ACEOF
11950 rm -f conftest.$ac_objext
11951 if { (ac_try="$ac_compile"
11952 case "(($ac_try" in
11953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954   *) ac_try_echo=$ac_try;;
11955 esac
11956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11957 $as_echo "$ac_try_echo") >&5
11958   (eval "$ac_compile") 2>conftest.er1
11959   ac_status=$?
11960   grep -v '^ *+' conftest.er1 >conftest.err
11961   rm -f conftest.er1
11962   cat conftest.err >&5
11963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); } && {
11965          test -z "$ac_c_werror_flag" ||
11966          test ! -s conftest.err
11967        } && test -s conftest.$ac_objext; then
11968   ac_header_compiler=yes
11969 else
11970   $as_echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973         ac_header_compiler=no
11974 fi
11975
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11978 $as_echo "$ac_header_compiler" >&6; }
11979
11980 # Is the header present?
11981 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11982 $as_echo_n "checking $ac_header presence... " >&6; }
11983 cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h.  */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h.  */
11989 #include <$ac_header>
11990 _ACEOF
11991 if { (ac_try="$ac_cpp conftest.$ac_ext"
11992 case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11997 $as_echo "$ac_try_echo") >&5
11998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11999   ac_status=$?
12000   grep -v '^ *+' conftest.er1 >conftest.err
12001   rm -f conftest.er1
12002   cat conftest.err >&5
12003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); } >/dev/null && {
12005          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12006          test ! -s conftest.err
12007        }; then
12008   ac_header_preproc=yes
12009 else
12010   $as_echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013   ac_header_preproc=no
12014 fi
12015
12016 rm -f conftest.err conftest.$ac_ext
12017 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12018 $as_echo "$ac_header_preproc" >&6; }
12019
12020 # So?  What about this header?
12021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12022   yes:no: )
12023     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12024 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12025     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12026 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12027     ac_header_preproc=yes
12028     ;;
12029   no:yes:* )
12030     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12031 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12032     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12033 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12034     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12035 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12036     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12037 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12038     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12040     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12041 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12042     ( cat <<\_ASBOX
12043 ## ---------------------------------------- ##
12044 ## Report this to pgsql-bugs@postgresql.org ##
12045 ## ---------------------------------------- ##
12046 _ASBOX
12047      ) | sed "s/^/$as_me: WARNING:     /" >&2
12048     ;;
12049 esac
12050 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12051 $as_echo_n "checking for $ac_header... " >&6; }
12052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12053   $as_echo_n "(cached) " >&6
12054 else
12055   eval "$as_ac_Header=\$ac_header_preproc"
12056 fi
12057 ac_res=`eval 'as_val=${'$as_ac_Header'}
12058                  $as_echo "$as_val"'`
12059                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12060 $as_echo "$ac_res" >&6; }
12061
12062 fi
12063 as_val=`eval 'as_val=${'$as_ac_Header'}
12064                  $as_echo "$as_val"'`
12065    if test "x$as_val" = x""yes; then
12066   cat >>confdefs.h <<_ACEOF
12067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12068 _ACEOF
12069
12070 else
12071   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12072 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12073    { (exit 1); exit 1; }; }
12074 fi
12075
12076 done
12077
12078 fi
12079
12080 done
12081
12082 fi
12083
12084 if test "$with_krb5" = yes ; then
12085   if test "${ac_cv_header_krb5_h+set}" = set; then
12086   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12087 $as_echo_n "checking for krb5.h... " >&6; }
12088 if test "${ac_cv_header_krb5_h+set}" = set; then
12089   $as_echo_n "(cached) " >&6
12090 fi
12091 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12092 $as_echo "$ac_cv_header_krb5_h" >&6; }
12093 else
12094   # Is the header compilable?
12095 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12096 $as_echo_n "checking krb5.h usability... " >&6; }
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h.  */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h.  */
12103 $ac_includes_default
12104 #include <krb5.h>
12105 _ACEOF
12106 rm -f conftest.$ac_objext
12107 if { (ac_try="$ac_compile"
12108 case "(($ac_try" in
12109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110   *) ac_try_echo=$ac_try;;
12111 esac
12112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12113 $as_echo "$ac_try_echo") >&5
12114   (eval "$ac_compile") 2>conftest.er1
12115   ac_status=$?
12116   grep -v '^ *+' conftest.er1 >conftest.err
12117   rm -f conftest.er1
12118   cat conftest.err >&5
12119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); } && {
12121          test -z "$ac_c_werror_flag" ||
12122          test ! -s conftest.err
12123        } && test -s conftest.$ac_objext; then
12124   ac_header_compiler=yes
12125 else
12126   $as_echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129         ac_header_compiler=no
12130 fi
12131
12132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12133 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12134 $as_echo "$ac_header_compiler" >&6; }
12135
12136 # Is the header present?
12137 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12138 $as_echo_n "checking krb5.h presence... " >&6; }
12139 cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h.  */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h.  */
12145 #include <krb5.h>
12146 _ACEOF
12147 if { (ac_try="$ac_cpp conftest.$ac_ext"
12148 case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12153 $as_echo "$ac_try_echo") >&5
12154   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12155   ac_status=$?
12156   grep -v '^ *+' conftest.er1 >conftest.err
12157   rm -f conftest.er1
12158   cat conftest.err >&5
12159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); } >/dev/null && {
12161          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12162          test ! -s conftest.err
12163        }; then
12164   ac_header_preproc=yes
12165 else
12166   $as_echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12168
12169   ac_header_preproc=no
12170 fi
12171
12172 rm -f conftest.err conftest.$ac_ext
12173 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12174 $as_echo "$ac_header_preproc" >&6; }
12175
12176 # So?  What about this header?
12177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12178   yes:no: )
12179     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12180 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12181     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12182 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12183     ac_header_preproc=yes
12184     ;;
12185   no:yes:* )
12186     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12187 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12188     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12189 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12190     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12191 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12192     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12193 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12194     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12195 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12196     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12197 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12198     ( cat <<\_ASBOX
12199 ## ---------------------------------------- ##
12200 ## Report this to pgsql-bugs@postgresql.org ##
12201 ## ---------------------------------------- ##
12202 _ASBOX
12203      ) | sed "s/^/$as_me: WARNING:     /" >&2
12204     ;;
12205 esac
12206 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12207 $as_echo_n "checking for krb5.h... " >&6; }
12208 if test "${ac_cv_header_krb5_h+set}" = set; then
12209   $as_echo_n "(cached) " >&6
12210 else
12211   ac_cv_header_krb5_h=$ac_header_preproc
12212 fi
12213 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12214 $as_echo "$ac_cv_header_krb5_h" >&6; }
12215
12216 fi
12217 if test "x$ac_cv_header_krb5_h" = x""yes; then
12218   :
12219 else
12220   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12221 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12222    { (exit 1); exit 1; }; }
12223 fi
12224
12225
12226 fi
12227
12228 if test "$with_openssl" = yes ; then
12229   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12230   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12231 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12232 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12233   $as_echo_n "(cached) " >&6
12234 fi
12235 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12236 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12237 else
12238   # Is the header compilable?
12239 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12240 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h.  */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h.  */
12247 $ac_includes_default
12248 #include <openssl/ssl.h>
12249 _ACEOF
12250 rm -f conftest.$ac_objext
12251 if { (ac_try="$ac_compile"
12252 case "(($ac_try" in
12253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254   *) ac_try_echo=$ac_try;;
12255 esac
12256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12257 $as_echo "$ac_try_echo") >&5
12258   (eval "$ac_compile") 2>conftest.er1
12259   ac_status=$?
12260   grep -v '^ *+' conftest.er1 >conftest.err
12261   rm -f conftest.er1
12262   cat conftest.err >&5
12263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); } && {
12265          test -z "$ac_c_werror_flag" ||
12266          test ! -s conftest.err
12267        } && test -s conftest.$ac_objext; then
12268   ac_header_compiler=yes
12269 else
12270   $as_echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12272
12273         ac_header_compiler=no
12274 fi
12275
12276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12277 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12278 $as_echo "$ac_header_compiler" >&6; }
12279
12280 # Is the header present?
12281 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12282 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12283 cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h.  */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h.  */
12289 #include <openssl/ssl.h>
12290 _ACEOF
12291 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
12305          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12306          test ! -s conftest.err
12307        }; then
12308   ac_header_preproc=yes
12309 else
12310   $as_echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313   ac_header_preproc=no
12314 fi
12315
12316 rm -f conftest.err conftest.$ac_ext
12317 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12318 $as_echo "$ac_header_preproc" >&6; }
12319
12320 # So?  What about this header?
12321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12322   yes:no: )
12323     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12324 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12325     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12326 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12327     ac_header_preproc=yes
12328     ;;
12329   no:yes:* )
12330     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12331 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12332     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12333 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12334     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12335 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12336     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12337 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12338     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12339 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12340     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12341 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12342     ( cat <<\_ASBOX
12343 ## ---------------------------------------- ##
12344 ## Report this to pgsql-bugs@postgresql.org ##
12345 ## ---------------------------------------- ##
12346 _ASBOX
12347      ) | sed "s/^/$as_me: WARNING:     /" >&2
12348     ;;
12349 esac
12350 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12351 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12352 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12353   $as_echo_n "(cached) " >&6
12354 else
12355   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12356 fi
12357 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12358 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12359
12360 fi
12361 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12362   :
12363 else
12364   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12365 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12366    { (exit 1); exit 1; }; }
12367 fi
12368
12369
12370   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12371   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12372 $as_echo_n "checking for openssl/err.h... " >&6; }
12373 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12374   $as_echo_n "(cached) " >&6
12375 fi
12376 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12377 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12378 else
12379   # Is the header compilable?
12380 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12381 $as_echo_n "checking openssl/err.h usability... " >&6; }
12382 cat >conftest.$ac_ext <<_ACEOF
12383 /* confdefs.h.  */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h.  */
12388 $ac_includes_default
12389 #include <openssl/err.h>
12390 _ACEOF
12391 rm -f conftest.$ac_objext
12392 if { (ac_try="$ac_compile"
12393 case "(($ac_try" in
12394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395   *) ac_try_echo=$ac_try;;
12396 esac
12397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12398 $as_echo "$ac_try_echo") >&5
12399   (eval "$ac_compile") 2>conftest.er1
12400   ac_status=$?
12401   grep -v '^ *+' conftest.er1 >conftest.err
12402   rm -f conftest.er1
12403   cat conftest.err >&5
12404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); } && {
12406          test -z "$ac_c_werror_flag" ||
12407          test ! -s conftest.err
12408        } && test -s conftest.$ac_objext; then
12409   ac_header_compiler=yes
12410 else
12411   $as_echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414         ac_header_compiler=no
12415 fi
12416
12417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12419 $as_echo "$ac_header_compiler" >&6; }
12420
12421 # Is the header present?
12422 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12423 $as_echo_n "checking openssl/err.h presence... " >&6; }
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 #include <openssl/err.h>
12431 _ACEOF
12432 if { (ac_try="$ac_cpp conftest.$ac_ext"
12433 case "(($ac_try" in
12434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435   *) ac_try_echo=$ac_try;;
12436 esac
12437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12438 $as_echo "$ac_try_echo") >&5
12439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12440   ac_status=$?
12441   grep -v '^ *+' conftest.er1 >conftest.err
12442   rm -f conftest.er1
12443   cat conftest.err >&5
12444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); } >/dev/null && {
12446          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12447          test ! -s conftest.err
12448        }; then
12449   ac_header_preproc=yes
12450 else
12451   $as_echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12453
12454   ac_header_preproc=no
12455 fi
12456
12457 rm -f conftest.err conftest.$ac_ext
12458 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12459 $as_echo "$ac_header_preproc" >&6; }
12460
12461 # So?  What about this header?
12462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12463   yes:no: )
12464     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12465 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12466     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12467 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12468     ac_header_preproc=yes
12469     ;;
12470   no:yes:* )
12471     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12472 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12473     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12474 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12475     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12476 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12477     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12478 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12479     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12480 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12481     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12482 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12483     ( cat <<\_ASBOX
12484 ## ---------------------------------------- ##
12485 ## Report this to pgsql-bugs@postgresql.org ##
12486 ## ---------------------------------------- ##
12487 _ASBOX
12488      ) | sed "s/^/$as_me: WARNING:     /" >&2
12489     ;;
12490 esac
12491 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12492 $as_echo_n "checking for openssl/err.h... " >&6; }
12493 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12494   $as_echo_n "(cached) " >&6
12495 else
12496   ac_cv_header_openssl_err_h=$ac_header_preproc
12497 fi
12498 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12499 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12500
12501 fi
12502 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12503   :
12504 else
12505   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12506 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12507    { (exit 1); exit 1; }; }
12508 fi
12509
12510
12511
12512 for ac_func in ERR_set_mark
12513 do
12514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12516 $as_echo_n "checking for $ac_func... " >&6; }
12517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12518   $as_echo_n "(cached) " >&6
12519 else
12520   cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12528 #define $ac_func innocuous_$ac_func
12529
12530 /* System header to define __stub macros and hopefully few prototypes,
12531     which can conflict with char $ac_func (); below.
12532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12533     <limits.h> exists even on freestanding compilers.  */
12534
12535 #ifdef __STDC__
12536 # include <limits.h>
12537 #else
12538 # include <assert.h>
12539 #endif
12540
12541 #undef $ac_func
12542
12543 /* Override any GCC internal prototype to avoid an error.
12544    Use char because int might match the return type of a GCC
12545    builtin and then its argument prototype would still apply.  */
12546 #ifdef __cplusplus
12547 extern "C"
12548 #endif
12549 char $ac_func ();
12550 /* The GNU C library defines this for functions which it implements
12551     to always fail with ENOSYS.  Some functions are actually named
12552     something starting with __ and the normal name is an alias.  */
12553 #if defined __stub_$ac_func || defined __stub___$ac_func
12554 choke me
12555 #endif
12556
12557 int
12558 main ()
12559 {
12560 return $ac_func ();
12561   ;
12562   return 0;
12563 }
12564 _ACEOF
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (ac_try="$ac_link"
12567 case "(($ac_try" in
12568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569   *) ac_try_echo=$ac_try;;
12570 esac
12571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12572 $as_echo "$ac_try_echo") >&5
12573   (eval "$ac_link") 2>conftest.er1
12574   ac_status=$?
12575   grep -v '^ *+' conftest.er1 >conftest.err
12576   rm -f conftest.er1
12577   cat conftest.err >&5
12578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); } && {
12580          test -z "$ac_c_werror_flag" ||
12581          test ! -s conftest.err
12582        } && test -s conftest$ac_exeext && {
12583          test "$cross_compiling" = yes ||
12584          $as_test_x conftest$ac_exeext
12585        }; then
12586   eval "$as_ac_var=yes"
12587 else
12588   $as_echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12590
12591         eval "$as_ac_var=no"
12592 fi
12593
12594 rm -rf conftest.dSYM
12595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12596       conftest$ac_exeext conftest.$ac_ext
12597 fi
12598 ac_res=`eval 'as_val=${'$as_ac_var'}
12599                  $as_echo "$as_val"'`
12600                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12601 $as_echo "$ac_res" >&6; }
12602 as_val=`eval 'as_val=${'$as_ac_var'}
12603                  $as_echo "$as_val"'`
12604    if test "x$as_val" = x""yes; then
12605   cat >>confdefs.h <<_ACEOF
12606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12607 _ACEOF
12608
12609 fi
12610 done
12611
12612 fi
12613
12614 if test "$with_pam" = yes ; then
12615
12616 for ac_header in security/pam_appl.h
12617 do
12618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12620   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12621 $as_echo_n "checking for $ac_header... " >&6; }
12622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12623   $as_echo_n "(cached) " >&6
12624 fi
12625 ac_res=`eval 'as_val=${'$as_ac_Header'}
12626                  $as_echo "$as_val"'`
12627                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12628 $as_echo "$ac_res" >&6; }
12629 else
12630   # Is the header compilable?
12631 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12632 $as_echo_n "checking $ac_header usability... " >&6; }
12633 cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h.  */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h.  */
12639 $ac_includes_default
12640 #include <$ac_header>
12641 _ACEOF
12642 rm -f conftest.$ac_objext
12643 if { (ac_try="$ac_compile"
12644 case "(($ac_try" in
12645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646   *) ac_try_echo=$ac_try;;
12647 esac
12648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12649 $as_echo "$ac_try_echo") >&5
12650   (eval "$ac_compile") 2>conftest.er1
12651   ac_status=$?
12652   grep -v '^ *+' conftest.er1 >conftest.err
12653   rm -f conftest.er1
12654   cat conftest.err >&5
12655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); } && {
12657          test -z "$ac_c_werror_flag" ||
12658          test ! -s conftest.err
12659        } && test -s conftest.$ac_objext; then
12660   ac_header_compiler=yes
12661 else
12662   $as_echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665         ac_header_compiler=no
12666 fi
12667
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12670 $as_echo "$ac_header_compiler" >&6; }
12671
12672 # Is the header present?
12673 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12674 $as_echo_n "checking $ac_header presence... " >&6; }
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h.  */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h.  */
12681 #include <$ac_header>
12682 _ACEOF
12683 if { (ac_try="$ac_cpp conftest.$ac_ext"
12684 case "(($ac_try" in
12685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686   *) ac_try_echo=$ac_try;;
12687 esac
12688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12689 $as_echo "$ac_try_echo") >&5
12690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12691   ac_status=$?
12692   grep -v '^ *+' conftest.er1 >conftest.err
12693   rm -f conftest.er1
12694   cat conftest.err >&5
12695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); } >/dev/null && {
12697          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12698          test ! -s conftest.err
12699        }; then
12700   ac_header_preproc=yes
12701 else
12702   $as_echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12704
12705   ac_header_preproc=no
12706 fi
12707
12708 rm -f conftest.err conftest.$ac_ext
12709 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12710 $as_echo "$ac_header_preproc" >&6; }
12711
12712 # So?  What about this header?
12713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12714   yes:no: )
12715     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12716 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12717     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12718 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12719     ac_header_preproc=yes
12720     ;;
12721   no:yes:* )
12722     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12723 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12724     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12725 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12726     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12727 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12728     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12729 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12730     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12732     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12733 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12734     ( cat <<\_ASBOX
12735 ## ---------------------------------------- ##
12736 ## Report this to pgsql-bugs@postgresql.org ##
12737 ## ---------------------------------------- ##
12738 _ASBOX
12739      ) | sed "s/^/$as_me: WARNING:     /" >&2
12740     ;;
12741 esac
12742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12743 $as_echo_n "checking for $ac_header... " >&6; }
12744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12745   $as_echo_n "(cached) " >&6
12746 else
12747   eval "$as_ac_Header=\$ac_header_preproc"
12748 fi
12749 ac_res=`eval 'as_val=${'$as_ac_Header'}
12750                  $as_echo "$as_val"'`
12751                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12752 $as_echo "$ac_res" >&6; }
12753
12754 fi
12755 as_val=`eval 'as_val=${'$as_ac_Header'}
12756                  $as_echo "$as_val"'`
12757    if test "x$as_val" = x""yes; then
12758   cat >>confdefs.h <<_ACEOF
12759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12760 _ACEOF
12761
12762 else
12763
12764 for ac_header in pam/pam_appl.h
12765 do
12766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12768   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12769 $as_echo_n "checking for $ac_header... " >&6; }
12770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12771   $as_echo_n "(cached) " >&6
12772 fi
12773 ac_res=`eval 'as_val=${'$as_ac_Header'}
12774                  $as_echo "$as_val"'`
12775                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12776 $as_echo "$ac_res" >&6; }
12777 else
12778   # Is the header compilable?
12779 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12780 $as_echo_n "checking $ac_header usability... " >&6; }
12781 cat >conftest.$ac_ext <<_ACEOF
12782 /* confdefs.h.  */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h.  */
12787 $ac_includes_default
12788 #include <$ac_header>
12789 _ACEOF
12790 rm -f conftest.$ac_objext
12791 if { (ac_try="$ac_compile"
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_compile") 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); } && {
12805          test -z "$ac_c_werror_flag" ||
12806          test ! -s conftest.err
12807        } && test -s conftest.$ac_objext; then
12808   ac_header_compiler=yes
12809 else
12810   $as_echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813         ac_header_compiler=no
12814 fi
12815
12816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12818 $as_echo "$ac_header_compiler" >&6; }
12819
12820 # Is the header present?
12821 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12822 $as_echo_n "checking $ac_header presence... " >&6; }
12823 cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h.  */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h.  */
12829 #include <$ac_header>
12830 _ACEOF
12831 if { (ac_try="$ac_cpp conftest.$ac_ext"
12832 case "(($ac_try" in
12833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834   *) ac_try_echo=$ac_try;;
12835 esac
12836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12837 $as_echo "$ac_try_echo") >&5
12838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12839   ac_status=$?
12840   grep -v '^ *+' conftest.er1 >conftest.err
12841   rm -f conftest.er1
12842   cat conftest.err >&5
12843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); } >/dev/null && {
12845          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12846          test ! -s conftest.err
12847        }; then
12848   ac_header_preproc=yes
12849 else
12850   $as_echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853   ac_header_preproc=no
12854 fi
12855
12856 rm -f conftest.err conftest.$ac_ext
12857 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12858 $as_echo "$ac_header_preproc" >&6; }
12859
12860 # So?  What about this header?
12861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12862   yes:no: )
12863     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12864 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12865     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12866 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12867     ac_header_preproc=yes
12868     ;;
12869   no:yes:* )
12870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12871 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12872     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12873 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12874     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12875 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12876     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12877 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12878     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12879 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12880     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12881 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12882     ( cat <<\_ASBOX
12883 ## ---------------------------------------- ##
12884 ## Report this to pgsql-bugs@postgresql.org ##
12885 ## ---------------------------------------- ##
12886 _ASBOX
12887      ) | sed "s/^/$as_me: WARNING:     /" >&2
12888     ;;
12889 esac
12890 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12891 $as_echo_n "checking for $ac_header... " >&6; }
12892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12893   $as_echo_n "(cached) " >&6
12894 else
12895   eval "$as_ac_Header=\$ac_header_preproc"
12896 fi
12897 ac_res=`eval 'as_val=${'$as_ac_Header'}
12898                  $as_echo "$as_val"'`
12899                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12900 $as_echo "$ac_res" >&6; }
12901
12902 fi
12903 as_val=`eval 'as_val=${'$as_ac_Header'}
12904                  $as_echo "$as_val"'`
12905    if test "x$as_val" = x""yes; then
12906   cat >>confdefs.h <<_ACEOF
12907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12908 _ACEOF
12909
12910 else
12911   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12912 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12913    { (exit 1); exit 1; }; }
12914 fi
12915
12916 done
12917
12918 fi
12919
12920 done
12921
12922 fi
12923
12924 if test "$with_libxml" = yes ; then
12925   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12926   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12927 $as_echo_n "checking for libxml/parser.h... " >&6; }
12928 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12929   $as_echo_n "(cached) " >&6
12930 fi
12931 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12932 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12933 else
12934   # Is the header compilable?
12935 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12936 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12937 cat >conftest.$ac_ext <<_ACEOF
12938 /* confdefs.h.  */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h.  */
12943 $ac_includes_default
12944 #include <libxml/parser.h>
12945 _ACEOF
12946 rm -f conftest.$ac_objext
12947 if { (ac_try="$ac_compile"
12948 case "(($ac_try" in
12949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950   *) ac_try_echo=$ac_try;;
12951 esac
12952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12953 $as_echo "$ac_try_echo") >&5
12954   (eval "$ac_compile") 2>conftest.er1
12955   ac_status=$?
12956   grep -v '^ *+' conftest.er1 >conftest.err
12957   rm -f conftest.er1
12958   cat conftest.err >&5
12959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); } && {
12961          test -z "$ac_c_werror_flag" ||
12962          test ! -s conftest.err
12963        } && test -s conftest.$ac_objext; then
12964   ac_header_compiler=yes
12965 else
12966   $as_echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12968
12969         ac_header_compiler=no
12970 fi
12971
12972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12974 $as_echo "$ac_header_compiler" >&6; }
12975
12976 # Is the header present?
12977 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12978 $as_echo_n "checking libxml/parser.h presence... " >&6; }
12979 cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h.  */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h.  */
12985 #include <libxml/parser.h>
12986 _ACEOF
12987 if { (ac_try="$ac_cpp conftest.$ac_ext"
12988 case "(($ac_try" in
12989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990   *) ac_try_echo=$ac_try;;
12991 esac
12992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12993 $as_echo "$ac_try_echo") >&5
12994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12995   ac_status=$?
12996   grep -v '^ *+' conftest.er1 >conftest.err
12997   rm -f conftest.er1
12998   cat conftest.err >&5
12999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); } >/dev/null && {
13001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13002          test ! -s conftest.err
13003        }; then
13004   ac_header_preproc=yes
13005 else
13006   $as_echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13008
13009   ac_header_preproc=no
13010 fi
13011
13012 rm -f conftest.err conftest.$ac_ext
13013 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13014 $as_echo "$ac_header_preproc" >&6; }
13015
13016 # So?  What about this header?
13017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13018   yes:no: )
13019     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13020 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13021     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13022 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13023     ac_header_preproc=yes
13024     ;;
13025   no:yes:* )
13026     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13027 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13028     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13029 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13030     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13031 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13032     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13033 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13034     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13035 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13036     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13037 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13038     ( cat <<\_ASBOX
13039 ## ---------------------------------------- ##
13040 ## Report this to pgsql-bugs@postgresql.org ##
13041 ## ---------------------------------------- ##
13042 _ASBOX
13043      ) | sed "s/^/$as_me: WARNING:     /" >&2
13044     ;;
13045 esac
13046 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13047 $as_echo_n "checking for libxml/parser.h... " >&6; }
13048 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13049   $as_echo_n "(cached) " >&6
13050 else
13051   ac_cv_header_libxml_parser_h=$ac_header_preproc
13052 fi
13053 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13054 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13055
13056 fi
13057 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13058   :
13059 else
13060   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13061 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13062    { (exit 1); exit 1; }; }
13063 fi
13064
13065
13066 fi
13067
13068 if test "$with_libxslt" = yes ; then
13069   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13070   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13071 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13072 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13073   $as_echo_n "(cached) " >&6
13074 fi
13075 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13076 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13077 else
13078   # Is the header compilable?
13079 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13080 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13081 cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087 $ac_includes_default
13088 #include <libxslt/xslt.h>
13089 _ACEOF
13090 rm -f conftest.$ac_objext
13091 if { (ac_try="$ac_compile"
13092 case "(($ac_try" in
13093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094   *) ac_try_echo=$ac_try;;
13095 esac
13096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13097 $as_echo "$ac_try_echo") >&5
13098   (eval "$ac_compile") 2>conftest.er1
13099   ac_status=$?
13100   grep -v '^ *+' conftest.er1 >conftest.err
13101   rm -f conftest.er1
13102   cat conftest.err >&5
13103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); } && {
13105          test -z "$ac_c_werror_flag" ||
13106          test ! -s conftest.err
13107        } && test -s conftest.$ac_objext; then
13108   ac_header_compiler=yes
13109 else
13110   $as_echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13112
13113         ac_header_compiler=no
13114 fi
13115
13116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13118 $as_echo "$ac_header_compiler" >&6; }
13119
13120 # Is the header present?
13121 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13122 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13123 cat >conftest.$ac_ext <<_ACEOF
13124 /* confdefs.h.  */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h.  */
13129 #include <libxslt/xslt.h>
13130 _ACEOF
13131 if { (ac_try="$ac_cpp conftest.$ac_ext"
13132 case "(($ac_try" in
13133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134   *) ac_try_echo=$ac_try;;
13135 esac
13136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13137 $as_echo "$ac_try_echo") >&5
13138   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13139   ac_status=$?
13140   grep -v '^ *+' conftest.er1 >conftest.err
13141   rm -f conftest.er1
13142   cat conftest.err >&5
13143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); } >/dev/null && {
13145          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13146          test ! -s conftest.err
13147        }; then
13148   ac_header_preproc=yes
13149 else
13150   $as_echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13152
13153   ac_header_preproc=no
13154 fi
13155
13156 rm -f conftest.err conftest.$ac_ext
13157 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13158 $as_echo "$ac_header_preproc" >&6; }
13159
13160 # So?  What about this header?
13161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13162   yes:no: )
13163     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13164 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13165     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13166 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13167     ac_header_preproc=yes
13168     ;;
13169   no:yes:* )
13170     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13171 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13172     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13173 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13174     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13175 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13176     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13177 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13178     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13179 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13180     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13181 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13182     ( cat <<\_ASBOX
13183 ## ---------------------------------------- ##
13184 ## Report this to pgsql-bugs@postgresql.org ##
13185 ## ---------------------------------------- ##
13186 _ASBOX
13187      ) | sed "s/^/$as_me: WARNING:     /" >&2
13188     ;;
13189 esac
13190 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13191 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13192 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13193   $as_echo_n "(cached) " >&6
13194 else
13195   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13196 fi
13197 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13198 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13199
13200 fi
13201 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13202   :
13203 else
13204   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13205 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13206    { (exit 1); exit 1; }; }
13207 fi
13208
13209
13210 fi
13211
13212 if test "$with_ldap" = yes ; then
13213   if test "$PORTNAME" != "win32"; then
13214
13215 for ac_header in ldap.h
13216 do
13217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13219   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13220 $as_echo_n "checking for $ac_header... " >&6; }
13221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13222   $as_echo_n "(cached) " >&6
13223 fi
13224 ac_res=`eval 'as_val=${'$as_ac_Header'}
13225                  $as_echo "$as_val"'`
13226                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13227 $as_echo "$ac_res" >&6; }
13228 else
13229   # Is the header compilable?
13230 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13231 $as_echo_n "checking $ac_header usability... " >&6; }
13232 cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h.  */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h.  */
13238 $ac_includes_default
13239 #include <$ac_header>
13240 _ACEOF
13241 rm -f conftest.$ac_objext
13242 if { (ac_try="$ac_compile"
13243 case "(($ac_try" in
13244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245   *) ac_try_echo=$ac_try;;
13246 esac
13247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13248 $as_echo "$ac_try_echo") >&5
13249   (eval "$ac_compile") 2>conftest.er1
13250   ac_status=$?
13251   grep -v '^ *+' conftest.er1 >conftest.err
13252   rm -f conftest.er1
13253   cat conftest.err >&5
13254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); } && {
13256          test -z "$ac_c_werror_flag" ||
13257          test ! -s conftest.err
13258        } && test -s conftest.$ac_objext; then
13259   ac_header_compiler=yes
13260 else
13261   $as_echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264         ac_header_compiler=no
13265 fi
13266
13267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13269 $as_echo "$ac_header_compiler" >&6; }
13270
13271 # Is the header present?
13272 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13273 $as_echo_n "checking $ac_header presence... " >&6; }
13274 cat >conftest.$ac_ext <<_ACEOF
13275 /* confdefs.h.  */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h.  */
13280 #include <$ac_header>
13281 _ACEOF
13282 if { (ac_try="$ac_cpp conftest.$ac_ext"
13283 case "(($ac_try" in
13284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285   *) ac_try_echo=$ac_try;;
13286 esac
13287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13288 $as_echo "$ac_try_echo") >&5
13289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13290   ac_status=$?
13291   grep -v '^ *+' conftest.er1 >conftest.err
13292   rm -f conftest.er1
13293   cat conftest.err >&5
13294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); } >/dev/null && {
13296          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13297          test ! -s conftest.err
13298        }; then
13299   ac_header_preproc=yes
13300 else
13301   $as_echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13303
13304   ac_header_preproc=no
13305 fi
13306
13307 rm -f conftest.err conftest.$ac_ext
13308 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13309 $as_echo "$ac_header_preproc" >&6; }
13310
13311 # So?  What about this header?
13312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13313   yes:no: )
13314     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13315 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13316     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13318     ac_header_preproc=yes
13319     ;;
13320   no:yes:* )
13321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13322 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13323     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13324 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13325     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13326 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13328 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13330 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13332 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13333     ( cat <<\_ASBOX
13334 ## ---------------------------------------- ##
13335 ## Report this to pgsql-bugs@postgresql.org ##
13336 ## ---------------------------------------- ##
13337 _ASBOX
13338      ) | sed "s/^/$as_me: WARNING:     /" >&2
13339     ;;
13340 esac
13341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13342 $as_echo_n "checking for $ac_header... " >&6; }
13343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13344   $as_echo_n "(cached) " >&6
13345 else
13346   eval "$as_ac_Header=\$ac_header_preproc"
13347 fi
13348 ac_res=`eval 'as_val=${'$as_ac_Header'}
13349                  $as_echo "$as_val"'`
13350                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13351 $as_echo "$ac_res" >&6; }
13352
13353 fi
13354 as_val=`eval 'as_val=${'$as_ac_Header'}
13355                  $as_echo "$as_val"'`
13356    if test "x$as_val" = x""yes; then
13357   cat >>confdefs.h <<_ACEOF
13358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13359 _ACEOF
13360
13361 else
13362   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13363 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13364    { (exit 1); exit 1; }; }
13365 fi
13366
13367 done
13368
13369   else
13370
13371 for ac_header in winldap.h
13372 do
13373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13374 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13375 $as_echo_n "checking for $ac_header... " >&6; }
13376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13377   $as_echo_n "(cached) " >&6
13378 else
13379   cat >conftest.$ac_ext <<_ACEOF
13380 /* confdefs.h.  */
13381 _ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h.  */
13385 $ac_includes_default
13386 #include <windows.h>
13387
13388
13389 #include <$ac_header>
13390 _ACEOF
13391 rm -f conftest.$ac_objext
13392 if { (ac_try="$ac_compile"
13393 case "(($ac_try" in
13394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395   *) ac_try_echo=$ac_try;;
13396 esac
13397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13398 $as_echo "$ac_try_echo") >&5
13399   (eval "$ac_compile") 2>conftest.er1
13400   ac_status=$?
13401   grep -v '^ *+' conftest.er1 >conftest.err
13402   rm -f conftest.er1
13403   cat conftest.err >&5
13404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); } && {
13406          test -z "$ac_c_werror_flag" ||
13407          test ! -s conftest.err
13408        } && test -s conftest.$ac_objext; then
13409   eval "$as_ac_Header=yes"
13410 else
13411   $as_echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13413
13414         eval "$as_ac_Header=no"
13415 fi
13416
13417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13418 fi
13419 ac_res=`eval 'as_val=${'$as_ac_Header'}
13420                  $as_echo "$as_val"'`
13421                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13422 $as_echo "$ac_res" >&6; }
13423 as_val=`eval 'as_val=${'$as_ac_Header'}
13424                  $as_echo "$as_val"'`
13425    if test "x$as_val" = x""yes; then
13426   cat >>confdefs.h <<_ACEOF
13427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13428 _ACEOF
13429
13430 else
13431   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13432 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13433    { (exit 1); exit 1; }; }
13434 fi
13435
13436 done
13437
13438   fi
13439 fi
13440
13441 if test "$with_bonjour" = yes ; then
13442   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13443   { $as_echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13444 $as_echo_n "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... " >&6; }
13445 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13446   $as_echo_n "(cached) " >&6
13447 fi
13448 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13449 $as_echo "$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13450 else
13451   # Is the header compilable?
13452 { $as_echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
13453 $as_echo_n "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... " >&6; }
13454 cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h.  */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h.  */
13460 $ac_includes_default
13461 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13462 _ACEOF
13463 rm -f conftest.$ac_objext
13464 if { (ac_try="$ac_compile"
13465 case "(($ac_try" in
13466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467   *) ac_try_echo=$ac_try;;
13468 esac
13469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13470 $as_echo "$ac_try_echo") >&5
13471   (eval "$ac_compile") 2>conftest.er1
13472   ac_status=$?
13473   grep -v '^ *+' conftest.er1 >conftest.err
13474   rm -f conftest.er1
13475   cat conftest.err >&5
13476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } && {
13478          test -z "$ac_c_werror_flag" ||
13479          test ! -s conftest.err
13480        } && test -s conftest.$ac_objext; then
13481   ac_header_compiler=yes
13482 else
13483   $as_echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486         ac_header_compiler=no
13487 fi
13488
13489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13491 $as_echo "$ac_header_compiler" >&6; }
13492
13493 # Is the header present?
13494 { $as_echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13495 $as_echo_n "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... " >&6; }
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h.  */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h.  */
13502 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13503 _ACEOF
13504 if { (ac_try="$ac_cpp conftest.$ac_ext"
13505 case "(($ac_try" in
13506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507   *) ac_try_echo=$ac_try;;
13508 esac
13509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13510 $as_echo "$ac_try_echo") >&5
13511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13512   ac_status=$?
13513   grep -v '^ *+' conftest.er1 >conftest.err
13514   rm -f conftest.er1
13515   cat conftest.err >&5
13516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } >/dev/null && {
13518          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13519          test ! -s conftest.err
13520        }; then
13521   ac_header_preproc=yes
13522 else
13523   $as_echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13525
13526   ac_header_preproc=no
13527 fi
13528
13529 rm -f conftest.err conftest.$ac_ext
13530 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13531 $as_echo "$ac_header_preproc" >&6; }
13532
13533 # So?  What about this header?
13534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13535   yes:no: )
13536     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13537 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13538     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13539 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13540     ac_header_preproc=yes
13541     ;;
13542   no:yes:* )
13543     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13544 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13545     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
13546 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
13547     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13548 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13549     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
13550 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13551     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13552 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13553     { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13554 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13555     ( cat <<\_ASBOX
13556 ## ---------------------------------------- ##
13557 ## Report this to pgsql-bugs@postgresql.org ##
13558 ## ---------------------------------------- ##
13559 _ASBOX
13560      ) | sed "s/^/$as_me: WARNING:     /" >&2
13561     ;;
13562 esac
13563 { $as_echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13564 $as_echo_n "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... " >&6; }
13565 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13566   $as_echo_n "(cached) " >&6
13567 else
13568   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13569 fi
13570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13571 $as_echo "$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13572
13573 fi
13574 if test "x$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" = x""yes; then
13575   :
13576 else
13577   { { $as_echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13578 $as_echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13579    { (exit 1); exit 1; }; }
13580 fi
13581
13582
13583 fi
13584
13585 # for contrib/uuid-ossp
13586 if test "$with_ossp_uuid" = yes ; then
13587
13588 for ac_header in ossp/uuid.h
13589 do
13590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13592   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13593 $as_echo_n "checking for $ac_header... " >&6; }
13594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13595   $as_echo_n "(cached) " >&6
13596 fi
13597 ac_res=`eval 'as_val=${'$as_ac_Header'}
13598                  $as_echo "$as_val"'`
13599                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13600 $as_echo "$ac_res" >&6; }
13601 else
13602   # Is the header compilable?
13603 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13604 $as_echo_n "checking $ac_header usability... " >&6; }
13605 cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h.  */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h.  */
13611 $ac_includes_default
13612 #include <$ac_header>
13613 _ACEOF
13614 rm -f conftest.$ac_objext
13615 if { (ac_try="$ac_compile"
13616 case "(($ac_try" in
13617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618   *) ac_try_echo=$ac_try;;
13619 esac
13620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13621 $as_echo "$ac_try_echo") >&5
13622   (eval "$ac_compile") 2>conftest.er1
13623   ac_status=$?
13624   grep -v '^ *+' conftest.er1 >conftest.err
13625   rm -f conftest.er1
13626   cat conftest.err >&5
13627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); } && {
13629          test -z "$ac_c_werror_flag" ||
13630          test ! -s conftest.err
13631        } && test -s conftest.$ac_objext; then
13632   ac_header_compiler=yes
13633 else
13634   $as_echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637         ac_header_compiler=no
13638 fi
13639
13640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13641 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13642 $as_echo "$ac_header_compiler" >&6; }
13643
13644 # Is the header present?
13645 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13646 $as_echo_n "checking $ac_header presence... " >&6; }
13647 cat >conftest.$ac_ext <<_ACEOF
13648 /* confdefs.h.  */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h.  */
13653 #include <$ac_header>
13654 _ACEOF
13655 if { (ac_try="$ac_cpp conftest.$ac_ext"
13656 case "(($ac_try" in
13657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658   *) ac_try_echo=$ac_try;;
13659 esac
13660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13661 $as_echo "$ac_try_echo") >&5
13662   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13663   ac_status=$?
13664   grep -v '^ *+' conftest.er1 >conftest.err
13665   rm -f conftest.er1
13666   cat conftest.err >&5
13667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); } >/dev/null && {
13669          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13670          test ! -s conftest.err
13671        }; then
13672   ac_header_preproc=yes
13673 else
13674   $as_echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13676
13677   ac_header_preproc=no
13678 fi
13679
13680 rm -f conftest.err conftest.$ac_ext
13681 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13682 $as_echo "$ac_header_preproc" >&6; }
13683
13684 # So?  What about this header?
13685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13686   yes:no: )
13687     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13688 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13689     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13691     ac_header_preproc=yes
13692     ;;
13693   no:yes:* )
13694     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13695 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13696     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13697 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13698     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13699 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13700     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13701 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13702     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13703 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13704     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13705 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13706     ( cat <<\_ASBOX
13707 ## ---------------------------------------- ##
13708 ## Report this to pgsql-bugs@postgresql.org ##
13709 ## ---------------------------------------- ##
13710 _ASBOX
13711      ) | sed "s/^/$as_me: WARNING:     /" >&2
13712     ;;
13713 esac
13714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13715 $as_echo_n "checking for $ac_header... " >&6; }
13716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13717   $as_echo_n "(cached) " >&6
13718 else
13719   eval "$as_ac_Header=\$ac_header_preproc"
13720 fi
13721 ac_res=`eval 'as_val=${'$as_ac_Header'}
13722                  $as_echo "$as_val"'`
13723                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13724 $as_echo "$ac_res" >&6; }
13725
13726 fi
13727 as_val=`eval 'as_val=${'$as_ac_Header'}
13728                  $as_echo "$as_val"'`
13729    if test "x$as_val" = x""yes; then
13730   cat >>confdefs.h <<_ACEOF
13731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13732 _ACEOF
13733
13734 else
13735
13736
13737 for ac_header in uuid.h
13738 do
13739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13741   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13742 $as_echo_n "checking for $ac_header... " >&6; }
13743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13744   $as_echo_n "(cached) " >&6
13745 fi
13746 ac_res=`eval 'as_val=${'$as_ac_Header'}
13747                  $as_echo "$as_val"'`
13748                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13749 $as_echo "$ac_res" >&6; }
13750 else
13751   # Is the header compilable?
13752 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13753 $as_echo_n "checking $ac_header usability... " >&6; }
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h.  */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h.  */
13760 $ac_includes_default
13761 #include <$ac_header>
13762 _ACEOF
13763 rm -f conftest.$ac_objext
13764 if { (ac_try="$ac_compile"
13765 case "(($ac_try" in
13766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767   *) ac_try_echo=$ac_try;;
13768 esac
13769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13770 $as_echo "$ac_try_echo") >&5
13771   (eval "$ac_compile") 2>conftest.er1
13772   ac_status=$?
13773   grep -v '^ *+' conftest.er1 >conftest.err
13774   rm -f conftest.er1
13775   cat conftest.err >&5
13776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); } && {
13778          test -z "$ac_c_werror_flag" ||
13779          test ! -s conftest.err
13780        } && test -s conftest.$ac_objext; then
13781   ac_header_compiler=yes
13782 else
13783   $as_echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13785
13786         ac_header_compiler=no
13787 fi
13788
13789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13790 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13791 $as_echo "$ac_header_compiler" >&6; }
13792
13793 # Is the header present?
13794 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13795 $as_echo_n "checking $ac_header presence... " >&6; }
13796 cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h.  */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h.  */
13802 #include <$ac_header>
13803 _ACEOF
13804 if { (ac_try="$ac_cpp conftest.$ac_ext"
13805 case "(($ac_try" in
13806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807   *) ac_try_echo=$ac_try;;
13808 esac
13809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13810 $as_echo "$ac_try_echo") >&5
13811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13812   ac_status=$?
13813   grep -v '^ *+' conftest.er1 >conftest.err
13814   rm -f conftest.er1
13815   cat conftest.err >&5
13816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); } >/dev/null && {
13818          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13819          test ! -s conftest.err
13820        }; then
13821   ac_header_preproc=yes
13822 else
13823   $as_echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13825
13826   ac_header_preproc=no
13827 fi
13828
13829 rm -f conftest.err conftest.$ac_ext
13830 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13831 $as_echo "$ac_header_preproc" >&6; }
13832
13833 # So?  What about this header?
13834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13835   yes:no: )
13836     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13837 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13838     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13839 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13840     ac_header_preproc=yes
13841     ;;
13842   no:yes:* )
13843     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13844 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13845     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13846 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13847     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13848 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13849     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13850 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13851     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13853     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13854 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13855     ( cat <<\_ASBOX
13856 ## ---------------------------------------- ##
13857 ## Report this to pgsql-bugs@postgresql.org ##
13858 ## ---------------------------------------- ##
13859 _ASBOX
13860      ) | sed "s/^/$as_me: WARNING:     /" >&2
13861     ;;
13862 esac
13863 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13864 $as_echo_n "checking for $ac_header... " >&6; }
13865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13866   $as_echo_n "(cached) " >&6
13867 else
13868   eval "$as_ac_Header=\$ac_header_preproc"
13869 fi
13870 ac_res=`eval 'as_val=${'$as_ac_Header'}
13871                  $as_echo "$as_val"'`
13872                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13873 $as_echo "$ac_res" >&6; }
13874
13875 fi
13876 as_val=`eval 'as_val=${'$as_ac_Header'}
13877                  $as_echo "$as_val"'`
13878    if test "x$as_val" = x""yes; then
13879   cat >>confdefs.h <<_ACEOF
13880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13881 _ACEOF
13882
13883 else
13884   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13885 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13886    { (exit 1); exit 1; }; }
13887 fi
13888
13889 done
13890
13891 fi
13892
13893 done
13894
13895 fi
13896
13897
13898 ##
13899 ## Types, structures, compiler characteristics
13900 ##
13901
13902
13903  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13904 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13905 if test "${ac_cv_c_bigendian+set}" = set; then
13906   $as_echo_n "(cached) " >&6
13907 else
13908   ac_cv_c_bigendian=unknown
13909     # See if we're dealing with a universal compiler.
13910     cat >conftest.$ac_ext <<_ACEOF
13911 /* confdefs.h.  */
13912 _ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h.  */
13916 #ifndef __APPLE_CC__
13917                not a universal capable compiler
13918              #endif
13919              typedef int dummy;
13920
13921 _ACEOF
13922 rm -f conftest.$ac_objext
13923 if { (ac_try="$ac_compile"
13924 case "(($ac_try" in
13925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926   *) ac_try_echo=$ac_try;;
13927 esac
13928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13929 $as_echo "$ac_try_echo") >&5
13930   (eval "$ac_compile") 2>conftest.er1
13931   ac_status=$?
13932   grep -v '^ *+' conftest.er1 >conftest.err
13933   rm -f conftest.er1
13934   cat conftest.err >&5
13935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } && {
13937          test -z "$ac_c_werror_flag" ||
13938          test ! -s conftest.err
13939        } && test -s conftest.$ac_objext; then
13940
13941         # Check for potential -arch flags.  It is not universal unless
13942         # there are some -arch flags.  Note that *ppc* also matches
13943         # ppc64.  This check is also rather less than ideal.
13944         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13945           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13946         esac
13947 else
13948   $as_echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13950
13951
13952 fi
13953
13954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13955     if test $ac_cv_c_bigendian = unknown; then
13956       # See if sys/param.h defines the BYTE_ORDER macro.
13957       cat >conftest.$ac_ext <<_ACEOF
13958 /* confdefs.h.  */
13959 _ACEOF
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h.  */
13963 #include <sys/types.h>
13964              #include <sys/param.h>
13965
13966 int
13967 main ()
13968 {
13969 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13970                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13971                      && LITTLE_ENDIAN)
13972               bogus endian macros
13973              #endif
13974
13975   ;
13976   return 0;
13977 }
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983   *) ac_try_echo=$ac_try;;
13984 esac
13985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13986 $as_echo "$ac_try_echo") >&5
13987   (eval "$ac_compile") 2>conftest.er1
13988   ac_status=$?
13989   grep -v '^ *+' conftest.er1 >conftest.err
13990   rm -f conftest.er1
13991   cat conftest.err >&5
13992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } && {
13994          test -z "$ac_c_werror_flag" ||
13995          test ! -s conftest.err
13996        } && test -s conftest.$ac_objext; then
13997   # It does; now see whether it defined to BIG_ENDIAN or not.
13998          cat >conftest.$ac_ext <<_ACEOF
13999 /* confdefs.h.  */
14000 _ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h.  */
14004 #include <sys/types.h>
14005                 #include <sys/param.h>
14006
14007 int
14008 main ()
14009 {
14010 #if BYTE_ORDER != BIG_ENDIAN
14011                  not big endian
14012                 #endif
14013
14014   ;
14015   return 0;
14016 }
14017 _ACEOF
14018 rm -f conftest.$ac_objext
14019 if { (ac_try="$ac_compile"
14020 case "(($ac_try" in
14021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022   *) ac_try_echo=$ac_try;;
14023 esac
14024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14025 $as_echo "$ac_try_echo") >&5
14026   (eval "$ac_compile") 2>conftest.er1
14027   ac_status=$?
14028   grep -v '^ *+' conftest.er1 >conftest.err
14029   rm -f conftest.er1
14030   cat conftest.err >&5
14031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); } && {
14033          test -z "$ac_c_werror_flag" ||
14034          test ! -s conftest.err
14035        } && test -s conftest.$ac_objext; then
14036   ac_cv_c_bigendian=yes
14037 else
14038   $as_echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041         ac_cv_c_bigendian=no
14042 fi
14043
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14045 else
14046   $as_echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049
14050 fi
14051
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053     fi
14054     if test $ac_cv_c_bigendian = unknown; then
14055       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14056       cat >conftest.$ac_ext <<_ACEOF
14057 /* confdefs.h.  */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h.  */
14062 #include <limits.h>
14063
14064 int
14065 main ()
14066 {
14067 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14068               bogus endian macros
14069              #endif
14070
14071   ;
14072   return 0;
14073 }
14074 _ACEOF
14075 rm -f conftest.$ac_objext
14076 if { (ac_try="$ac_compile"
14077 case "(($ac_try" in
14078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079   *) ac_try_echo=$ac_try;;
14080 esac
14081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14082 $as_echo "$ac_try_echo") >&5
14083   (eval "$ac_compile") 2>conftest.er1
14084   ac_status=$?
14085   grep -v '^ *+' conftest.er1 >conftest.err
14086   rm -f conftest.er1
14087   cat conftest.err >&5
14088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); } && {
14090          test -z "$ac_c_werror_flag" ||
14091          test ! -s conftest.err
14092        } && test -s conftest.$ac_objext; then
14093   # It does; now see whether it defined to _BIG_ENDIAN or not.
14094          cat >conftest.$ac_ext <<_ACEOF
14095 /* confdefs.h.  */
14096 _ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h.  */
14100 #include <limits.h>
14101
14102 int
14103 main ()
14104 {
14105 #ifndef _BIG_ENDIAN
14106                  not big endian
14107                 #endif
14108
14109   ;
14110   return 0;
14111 }
14112 _ACEOF
14113 rm -f conftest.$ac_objext
14114 if { (ac_try="$ac_compile"
14115 case "(($ac_try" in
14116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117   *) ac_try_echo=$ac_try;;
14118 esac
14119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14120 $as_echo "$ac_try_echo") >&5
14121   (eval "$ac_compile") 2>conftest.er1
14122   ac_status=$?
14123   grep -v '^ *+' conftest.er1 >conftest.err
14124   rm -f conftest.er1
14125   cat conftest.err >&5
14126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127   (exit $ac_status); } && {
14128          test -z "$ac_c_werror_flag" ||
14129          test ! -s conftest.err
14130        } && test -s conftest.$ac_objext; then
14131   ac_cv_c_bigendian=yes
14132 else
14133   $as_echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14135
14136         ac_cv_c_bigendian=no
14137 fi
14138
14139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14140 else
14141   $as_echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14143
14144
14145 fi
14146
14147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14148     fi
14149     if test $ac_cv_c_bigendian = unknown; then
14150       # Compile a test program.
14151       if test "$cross_compiling" = yes; then
14152   # Try to guess by grepping values from an object file.
14153          cat >conftest.$ac_ext <<_ACEOF
14154 /* confdefs.h.  */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h.  */
14159 short int ascii_mm[] =
14160                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14161                 short int ascii_ii[] =
14162                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14163                 int use_ascii (int i) {
14164                   return ascii_mm[i] + ascii_ii[i];
14165                 }
14166                 short int ebcdic_ii[] =
14167                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14168                 short int ebcdic_mm[] =
14169                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14170                 int use_ebcdic (int i) {
14171                   return ebcdic_mm[i] + ebcdic_ii[i];
14172                 }
14173                 extern int foo;
14174
14175 int
14176 main ()
14177 {
14178 return use_ascii (foo) == use_ebcdic (foo);
14179   ;
14180   return 0;
14181 }
14182 _ACEOF
14183 rm -f conftest.$ac_objext
14184 if { (ac_try="$ac_compile"
14185 case "(($ac_try" in
14186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187   *) ac_try_echo=$ac_try;;
14188 esac
14189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14190 $as_echo "$ac_try_echo") >&5
14191   (eval "$ac_compile") 2>conftest.er1
14192   ac_status=$?
14193   grep -v '^ *+' conftest.er1 >conftest.err
14194   rm -f conftest.er1
14195   cat conftest.err >&5
14196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); } && {
14198          test -z "$ac_c_werror_flag" ||
14199          test ! -s conftest.err
14200        } && test -s conftest.$ac_objext; then
14201   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14202               ac_cv_c_bigendian=yes
14203             fi
14204             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14205               if test "$ac_cv_c_bigendian" = unknown; then
14206                 ac_cv_c_bigendian=no
14207               else
14208                 # finding both strings is unlikely to happen, but who knows?
14209                 ac_cv_c_bigendian=unknown
14210               fi
14211             fi
14212 else
14213   $as_echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14215
14216
14217 fi
14218
14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 else
14221   cat >conftest.$ac_ext <<_ACEOF
14222 /* confdefs.h.  */
14223 _ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h.  */
14227 $ac_includes_default
14228 int
14229 main ()
14230 {
14231
14232              /* Are we little or big endian?  From Harbison&Steele.  */
14233              union
14234              {
14235                long int l;
14236                char c[sizeof (long int)];
14237              } u;
14238              u.l = 1;
14239              return u.c[sizeof (long int) - 1] == 1;
14240
14241   ;
14242   return 0;
14243 }
14244 _ACEOF
14245 rm -f conftest$ac_exeext
14246 if { (ac_try="$ac_link"
14247 case "(($ac_try" in
14248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249   *) ac_try_echo=$ac_try;;
14250 esac
14251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14252 $as_echo "$ac_try_echo") >&5
14253   (eval "$ac_link") 2>&5
14254   ac_status=$?
14255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14257   { (case "(($ac_try" in
14258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259   *) ac_try_echo=$ac_try;;
14260 esac
14261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14262 $as_echo "$ac_try_echo") >&5
14263   (eval "$ac_try") 2>&5
14264   ac_status=$?
14265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); }; }; then
14267   ac_cv_c_bigendian=no
14268 else
14269   $as_echo "$as_me: program exited with status $ac_status" >&5
14270 $as_echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273 ( exit $ac_status )
14274 ac_cv_c_bigendian=yes
14275 fi
14276 rm -rf conftest.dSYM
14277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14278 fi
14279
14280
14281     fi
14282 fi
14283 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14284 $as_echo "$ac_cv_c_bigendian" >&6; }
14285  case $ac_cv_c_bigendian in #(
14286    yes)
14287      cat >>confdefs.h <<\_ACEOF
14288 #define WORDS_BIGENDIAN 1
14289 _ACEOF
14290 ;; #(
14291    no)
14292       ;; #(
14293    universal)
14294
14295 cat >>confdefs.h <<\_ACEOF
14296 #define AC_APPLE_UNIVERSAL_BUILD 1
14297 _ACEOF
14298
14299      ;; #(
14300    *)
14301      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14302  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14303 $as_echo "$as_me: error: unknown endianness
14304  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14305    { (exit 1); exit 1; }; } ;;
14306  esac
14307
14308 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14309 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14310 if test "${ac_cv_c_const+set}" = set; then
14311   $as_echo_n "(cached) " >&6
14312 else
14313   cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h.  */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h.  */
14319
14320 int
14321 main ()
14322 {
14323 /* FIXME: Include the comments suggested by Paul. */
14324 #ifndef __cplusplus
14325   /* Ultrix mips cc rejects this.  */
14326   typedef int charset[2];
14327   const charset cs;
14328   /* SunOS 4.1.1 cc rejects this.  */
14329   char const *const *pcpcc;
14330   char **ppc;
14331   /* NEC SVR4.0.2 mips cc rejects this.  */
14332   struct point {int x, y;};
14333   static struct point const zero = {0,0};
14334   /* AIX XL C 1.02.0.0 rejects this.
14335      It does not let you subtract one const X* pointer from another in
14336      an arm of an if-expression whose if-part is not a constant
14337      expression */
14338   const char *g = "string";
14339   pcpcc = &g + (g ? g-g : 0);
14340   /* HPUX 7.0 cc rejects these. */
14341   ++pcpcc;
14342   ppc = (char**) pcpcc;
14343   pcpcc = (char const *const *) ppc;
14344   { /* SCO 3.2v4 cc rejects this.  */
14345     char *t;
14346     char const *s = 0 ? (char *) 0 : (char const *) 0;
14347
14348     *t++ = 0;
14349     if (s) return 0;
14350   }
14351   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14352     int x[] = {25, 17};
14353     const int *foo = &x[0];
14354     ++foo;
14355   }
14356   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14357     typedef const int *iptr;
14358     iptr p = 0;
14359     ++p;
14360   }
14361   { /* AIX XL C 1.02.0.0 rejects this saying
14362        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14363     struct s { int j; const int *ap[3]; };
14364     struct s *b; b->j = 5;
14365   }
14366   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14367     const int foo = 10;
14368     if (!foo) return 0;
14369   }
14370   return !cs[0] && !zero.x;
14371 #endif
14372
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 rm -f conftest.$ac_objext
14378 if { (ac_try="$ac_compile"
14379 case "(($ac_try" in
14380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381   *) ac_try_echo=$ac_try;;
14382 esac
14383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14384 $as_echo "$ac_try_echo") >&5
14385   (eval "$ac_compile") 2>conftest.er1
14386   ac_status=$?
14387   grep -v '^ *+' conftest.er1 >conftest.err
14388   rm -f conftest.er1
14389   cat conftest.err >&5
14390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); } && {
14392          test -z "$ac_c_werror_flag" ||
14393          test ! -s conftest.err
14394        } && test -s conftest.$ac_objext; then
14395   ac_cv_c_const=yes
14396 else
14397   $as_echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400         ac_cv_c_const=no
14401 fi
14402
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 fi
14405 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14406 $as_echo "$ac_cv_c_const" >&6; }
14407 if test $ac_cv_c_const = no; then
14408
14409 cat >>confdefs.h <<\_ACEOF
14410 #define const /**/
14411 _ACEOF
14412
14413 fi
14414
14415 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14416 $as_echo_n "checking for inline... " >&6; }
14417 if test "${ac_cv_c_inline+set}" = set; then
14418   $as_echo_n "(cached) " >&6
14419 else
14420   ac_cv_c_inline=no
14421 for ac_kw in inline __inline__ __inline; do
14422   cat >conftest.$ac_ext <<_ACEOF
14423 /* confdefs.h.  */
14424 _ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h.  */
14428 #ifndef __cplusplus
14429 typedef int foo_t;
14430 static $ac_kw foo_t static_foo () {return 0; }
14431 $ac_kw foo_t foo () {return 0; }
14432 #endif
14433
14434 _ACEOF
14435 rm -f conftest.$ac_objext
14436 if { (ac_try="$ac_compile"
14437 case "(($ac_try" in
14438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439   *) ac_try_echo=$ac_try;;
14440 esac
14441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14442 $as_echo "$ac_try_echo") >&5
14443   (eval "$ac_compile") 2>conftest.er1
14444   ac_status=$?
14445   grep -v '^ *+' conftest.er1 >conftest.err
14446   rm -f conftest.er1
14447   cat conftest.err >&5
14448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); } && {
14450          test -z "$ac_c_werror_flag" ||
14451          test ! -s conftest.err
14452        } && test -s conftest.$ac_objext; then
14453   ac_cv_c_inline=$ac_kw
14454 else
14455   $as_echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458
14459 fi
14460
14461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462   test "$ac_cv_c_inline" != no && break
14463 done
14464
14465 fi
14466 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14467 $as_echo "$ac_cv_c_inline" >&6; }
14468
14469
14470 case $ac_cv_c_inline in
14471   inline | yes) ;;
14472   *)
14473     case $ac_cv_c_inline in
14474       no) ac_val=;;
14475       *) ac_val=$ac_cv_c_inline;;
14476     esac
14477     cat >>confdefs.h <<_ACEOF
14478 #ifndef __cplusplus
14479 #define inline $ac_val
14480 #endif
14481 _ACEOF
14482     ;;
14483 esac
14484
14485 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14486 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14487 if test "${ac_cv_c_stringize+set}" = set; then
14488   $as_echo_n "(cached) " >&6
14489 else
14490   cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h.  */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h.  */
14496 #define x(y) #y
14497
14498 char *s = x(teststring);
14499 _ACEOF
14500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14501   $EGREP "#teststring" >/dev/null 2>&1; then
14502   ac_cv_c_stringize=no
14503 else
14504   ac_cv_c_stringize=yes
14505 fi
14506 rm -f conftest*
14507
14508 fi
14509 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14510 $as_echo "$ac_cv_c_stringize" >&6; }
14511 if test $ac_cv_c_stringize = yes; then
14512
14513 cat >>confdefs.h <<\_ACEOF
14514 #define HAVE_STRINGIZE 1
14515 _ACEOF
14516
14517 fi
14518
14519 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14520 $as_echo_n "checking for signed types... " >&6; }
14521 if test "${pgac_cv_c_signed+set}" = set; then
14522   $as_echo_n "(cached) " >&6
14523 else
14524   cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h.  */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h.  */
14530
14531 int
14532 main ()
14533 {
14534 signed char c; signed short s; signed int i;
14535   ;
14536   return 0;
14537 }
14538 _ACEOF
14539 rm -f conftest.$ac_objext
14540 if { (ac_try="$ac_compile"
14541 case "(($ac_try" in
14542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543   *) ac_try_echo=$ac_try;;
14544 esac
14545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14546 $as_echo "$ac_try_echo") >&5
14547   (eval "$ac_compile") 2>conftest.er1
14548   ac_status=$?
14549   grep -v '^ *+' conftest.er1 >conftest.err
14550   rm -f conftest.er1
14551   cat conftest.err >&5
14552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); } && {
14554          test -z "$ac_c_werror_flag" ||
14555          test ! -s conftest.err
14556        } && test -s conftest.$ac_objext; then
14557   pgac_cv_c_signed=yes
14558 else
14559   $as_echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14561
14562         pgac_cv_c_signed=no
14563 fi
14564
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 fi
14567 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14568 $as_echo "$pgac_cv_c_signed" >&6; }
14569 if test x"$pgac_cv_c_signed" = xno ; then
14570
14571 cat >>confdefs.h <<\_ACEOF
14572 #define signed /**/
14573 _ACEOF
14574
14575 fi
14576 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14577 $as_echo_n "checking for working volatile... " >&6; }
14578 if test "${ac_cv_c_volatile+set}" = set; then
14579   $as_echo_n "(cached) " >&6
14580 else
14581   cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h.  */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h.  */
14587
14588 int
14589 main ()
14590 {
14591
14592 volatile int x;
14593 int * volatile y = (int *) 0;
14594 return !x && !y;
14595   ;
14596   return 0;
14597 }
14598 _ACEOF
14599 rm -f conftest.$ac_objext
14600 if { (ac_try="$ac_compile"
14601 case "(($ac_try" in
14602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603   *) ac_try_echo=$ac_try;;
14604 esac
14605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14606 $as_echo "$ac_try_echo") >&5
14607   (eval "$ac_compile") 2>conftest.er1
14608   ac_status=$?
14609   grep -v '^ *+' conftest.er1 >conftest.err
14610   rm -f conftest.er1
14611   cat conftest.err >&5
14612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); } && {
14614          test -z "$ac_c_werror_flag" ||
14615          test ! -s conftest.err
14616        } && test -s conftest.$ac_objext; then
14617   ac_cv_c_volatile=yes
14618 else
14619   $as_echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14621
14622         ac_cv_c_volatile=no
14623 fi
14624
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626 fi
14627 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14628 $as_echo "$ac_cv_c_volatile" >&6; }
14629 if test $ac_cv_c_volatile = no; then
14630
14631 cat >>confdefs.h <<\_ACEOF
14632 #define volatile /**/
14633 _ACEOF
14634
14635 fi
14636
14637 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14638 $as_echo_n "checking for __func__... " >&6; }
14639 if test "${pgac_cv_funcname_func_support+set}" = set; then
14640   $as_echo_n "(cached) " >&6
14641 else
14642   cat >conftest.$ac_ext <<_ACEOF
14643 /* confdefs.h.  */
14644 _ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h.  */
14648 #include <stdio.h>
14649 int
14650 main ()
14651 {
14652 printf("%s\n", __func__);
14653   ;
14654   return 0;
14655 }
14656 _ACEOF
14657 rm -f conftest.$ac_objext
14658 if { (ac_try="$ac_compile"
14659 case "(($ac_try" in
14660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661   *) ac_try_echo=$ac_try;;
14662 esac
14663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14664 $as_echo "$ac_try_echo") >&5
14665   (eval "$ac_compile") 2>conftest.er1
14666   ac_status=$?
14667   grep -v '^ *+' conftest.er1 >conftest.err
14668   rm -f conftest.er1
14669   cat conftest.err >&5
14670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); } && {
14672          test -z "$ac_c_werror_flag" ||
14673          test ! -s conftest.err
14674        } && test -s conftest.$ac_objext; then
14675   pgac_cv_funcname_func_support=yes
14676 else
14677   $as_echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14679
14680         pgac_cv_funcname_func_support=no
14681 fi
14682
14683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 fi
14685 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14686 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14687 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14688
14689 cat >>confdefs.h <<\_ACEOF
14690 #define HAVE_FUNCNAME__FUNC 1
14691 _ACEOF
14692
14693 else
14694 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14695 $as_echo_n "checking for __FUNCTION__... " >&6; }
14696 if test "${pgac_cv_funcname_function_support+set}" = set; then
14697   $as_echo_n "(cached) " >&6
14698 else
14699   cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h.  */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h.  */
14705 #include <stdio.h>
14706 int
14707 main ()
14708 {
14709 printf("%s\n", __FUNCTION__);
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   pgac_cv_funcname_function_support=yes
14733 else
14734   $as_echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737         pgac_cv_funcname_function_support=no
14738 fi
14739
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 fi
14742 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14743 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14744 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14745
14746 cat >>confdefs.h <<\_ACEOF
14747 #define HAVE_FUNCNAME__FUNCTION 1
14748 _ACEOF
14749
14750 fi
14751 fi
14752 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14753 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14754 if test "${ac_cv_struct_tm+set}" = set; then
14755   $as_echo_n "(cached) " >&6
14756 else
14757   cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h.  */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h.  */
14763 #include <sys/types.h>
14764 #include <time.h>
14765
14766 int
14767 main ()
14768 {
14769 struct tm tm;
14770                                      int *p = &tm.tm_sec;
14771                                      return !p;
14772   ;
14773   return 0;
14774 }
14775 _ACEOF
14776 rm -f conftest.$ac_objext
14777 if { (ac_try="$ac_compile"
14778 case "(($ac_try" in
14779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780   *) ac_try_echo=$ac_try;;
14781 esac
14782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14783 $as_echo "$ac_try_echo") >&5
14784   (eval "$ac_compile") 2>conftest.er1
14785   ac_status=$?
14786   grep -v '^ *+' conftest.er1 >conftest.err
14787   rm -f conftest.er1
14788   cat conftest.err >&5
14789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); } && {
14791          test -z "$ac_c_werror_flag" ||
14792          test ! -s conftest.err
14793        } && test -s conftest.$ac_objext; then
14794   ac_cv_struct_tm=time.h
14795 else
14796   $as_echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799         ac_cv_struct_tm=sys/time.h
14800 fi
14801
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803 fi
14804 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14805 $as_echo "$ac_cv_struct_tm" >&6; }
14806 if test $ac_cv_struct_tm = sys/time.h; then
14807
14808 cat >>confdefs.h <<\_ACEOF
14809 #define TM_IN_SYS_TIME 1
14810 _ACEOF
14811
14812 fi
14813
14814 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14815 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14816 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14817   $as_echo_n "(cached) " >&6
14818 else
14819   cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h.  */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h.  */
14825 #include <sys/types.h>
14826 #include <$ac_cv_struct_tm>
14827
14828
14829 int
14830 main ()
14831 {
14832 static struct tm ac_aggr;
14833 if (ac_aggr.tm_zone)
14834 return 0;
14835   ;
14836   return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext
14840 if { (ac_try="$ac_compile"
14841 case "(($ac_try" in
14842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843   *) ac_try_echo=$ac_try;;
14844 esac
14845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14846 $as_echo "$ac_try_echo") >&5
14847   (eval "$ac_compile") 2>conftest.er1
14848   ac_status=$?
14849   grep -v '^ *+' conftest.er1 >conftest.err
14850   rm -f conftest.er1
14851   cat conftest.err >&5
14852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } && {
14854          test -z "$ac_c_werror_flag" ||
14855          test ! -s conftest.err
14856        } && test -s conftest.$ac_objext; then
14857   ac_cv_member_struct_tm_tm_zone=yes
14858 else
14859   $as_echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14861
14862         cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h.  */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h.  */
14868 #include <sys/types.h>
14869 #include <$ac_cv_struct_tm>
14870
14871
14872 int
14873 main ()
14874 {
14875 static struct tm ac_aggr;
14876 if (sizeof ac_aggr.tm_zone)
14877 return 0;
14878   ;
14879   return 0;
14880 }
14881 _ACEOF
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886   *) ac_try_echo=$ac_try;;
14887 esac
14888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14889 $as_echo "$ac_try_echo") >&5
14890   (eval "$ac_compile") 2>conftest.er1
14891   ac_status=$?
14892   grep -v '^ *+' conftest.er1 >conftest.err
14893   rm -f conftest.er1
14894   cat conftest.err >&5
14895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); } && {
14897          test -z "$ac_c_werror_flag" ||
14898          test ! -s conftest.err
14899        } && test -s conftest.$ac_objext; then
14900   ac_cv_member_struct_tm_tm_zone=yes
14901 else
14902   $as_echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14904
14905         ac_cv_member_struct_tm_tm_zone=no
14906 fi
14907
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 fi
14910
14911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912 fi
14913 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14914 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
14915 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
14916
14917 cat >>confdefs.h <<_ACEOF
14918 #define HAVE_STRUCT_TM_TM_ZONE 1
14919 _ACEOF
14920
14921
14922 fi
14923
14924 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14925
14926 cat >>confdefs.h <<\_ACEOF
14927 #define HAVE_TM_ZONE 1
14928 _ACEOF
14929
14930 fi
14931 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
14932 $as_echo_n "checking for tzname... " >&6; }
14933 if test "${ac_cv_var_tzname+set}" = set; then
14934   $as_echo_n "(cached) " >&6
14935 else
14936   cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h.  */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h.  */
14942 #include <time.h>
14943 #ifndef tzname /* For SGI.  */
14944 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
14945 #endif
14946
14947 int
14948 main ()
14949 {
14950 atoi(*tzname);
14951   ;
14952   return 0;
14953 }
14954 _ACEOF
14955 rm -f conftest.$ac_objext conftest$ac_exeext
14956 if { (ac_try="$ac_link"
14957 case "(($ac_try" in
14958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959   *) ac_try_echo=$ac_try;;
14960 esac
14961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14962 $as_echo "$ac_try_echo") >&5
14963   (eval "$ac_link") 2>conftest.er1
14964   ac_status=$?
14965   grep -v '^ *+' conftest.er1 >conftest.err
14966   rm -f conftest.er1
14967   cat conftest.err >&5
14968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969   (exit $ac_status); } && {
14970          test -z "$ac_c_werror_flag" ||
14971          test ! -s conftest.err
14972        } && test -s conftest$ac_exeext && {
14973          test "$cross_compiling" = yes ||
14974          $as_test_x conftest$ac_exeext
14975        }; then
14976   ac_cv_var_tzname=yes
14977 else
14978   $as_echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14980
14981         ac_cv_var_tzname=no
14982 fi
14983
14984 rm -rf conftest.dSYM
14985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14986       conftest$ac_exeext conftest.$ac_ext
14987 fi
14988 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14989 $as_echo "$ac_cv_var_tzname" >&6; }
14990 if test $ac_cv_var_tzname = yes; then
14991
14992 cat >>confdefs.h <<\_ACEOF
14993 #define HAVE_TZNAME 1
14994 _ACEOF
14995
14996 fi
14997
14998 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
14999 $as_echo_n "checking for union semun... " >&6; }
15000 if test "${ac_cv_type_union_semun+set}" = set; then
15001   $as_echo_n "(cached) " >&6
15002 else
15003   ac_cv_type_union_semun=no
15004 cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h.  */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h.  */
15010 #include <sys/types.h>
15011 #include <sys/ipc.h>
15012 #include <sys/sem.h>
15013
15014 int
15015 main ()
15016 {
15017 if (sizeof (union semun))
15018        return 0;
15019   ;
15020   return 0;
15021 }
15022 _ACEOF
15023 rm -f conftest.$ac_objext
15024 if { (ac_try="$ac_compile"
15025 case "(($ac_try" in
15026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027   *) ac_try_echo=$ac_try;;
15028 esac
15029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15030 $as_echo "$ac_try_echo") >&5
15031   (eval "$ac_compile") 2>conftest.er1
15032   ac_status=$?
15033   grep -v '^ *+' conftest.er1 >conftest.err
15034   rm -f conftest.er1
15035   cat conftest.err >&5
15036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); } && {
15038          test -z "$ac_c_werror_flag" ||
15039          test ! -s conftest.err
15040        } && test -s conftest.$ac_objext; then
15041   cat >conftest.$ac_ext <<_ACEOF
15042 /* confdefs.h.  */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h.  */
15047 #include <sys/types.h>
15048 #include <sys/ipc.h>
15049 #include <sys/sem.h>
15050
15051 int
15052 main ()
15053 {
15054 if (sizeof ((union semun)))
15055           return 0;
15056   ;
15057   return 0;
15058 }
15059 _ACEOF
15060 rm -f conftest.$ac_objext
15061 if { (ac_try="$ac_compile"
15062 case "(($ac_try" in
15063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064   *) ac_try_echo=$ac_try;;
15065 esac
15066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15067 $as_echo "$ac_try_echo") >&5
15068   (eval "$ac_compile") 2>conftest.er1
15069   ac_status=$?
15070   grep -v '^ *+' conftest.er1 >conftest.err
15071   rm -f conftest.er1
15072   cat conftest.err >&5
15073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); } && {
15075          test -z "$ac_c_werror_flag" ||
15076          test ! -s conftest.err
15077        } && test -s conftest.$ac_objext; then
15078   :
15079 else
15080   $as_echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15082
15083         ac_cv_type_union_semun=yes
15084 fi
15085
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15087 else
15088   $as_echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091
15092 fi
15093
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 fi
15096 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15097 $as_echo "$ac_cv_type_union_semun" >&6; }
15098 if test "x$ac_cv_type_union_semun" = x""yes; then
15099
15100 cat >>confdefs.h <<_ACEOF
15101 #define HAVE_UNION_SEMUN 1
15102 _ACEOF
15103
15104
15105 fi
15106
15107 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15108 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15109 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15110   $as_echo_n "(cached) " >&6
15111 else
15112   ac_cv_type_struct_sockaddr_un=no
15113 cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h.  */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h.  */
15119 #include <sys/types.h>
15120 #ifdef HAVE_SYS_UN_H
15121 #include <sys/un.h>
15122 #endif
15123
15124
15125 int
15126 main ()
15127 {
15128 if (sizeof (struct sockaddr_un))
15129        return 0;
15130   ;
15131   return 0;
15132 }
15133 _ACEOF
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138   *) ac_try_echo=$ac_try;;
15139 esac
15140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15141 $as_echo "$ac_try_echo") >&5
15142   (eval "$ac_compile") 2>conftest.er1
15143   ac_status=$?
15144   grep -v '^ *+' conftest.er1 >conftest.err
15145   rm -f conftest.er1
15146   cat conftest.err >&5
15147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); } && {
15149          test -z "$ac_c_werror_flag" ||
15150          test ! -s conftest.err
15151        } && test -s conftest.$ac_objext; then
15152   cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h.  */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h.  */
15158 #include <sys/types.h>
15159 #ifdef HAVE_SYS_UN_H
15160 #include <sys/un.h>
15161 #endif
15162
15163
15164 int
15165 main ()
15166 {
15167 if (sizeof ((struct sockaddr_un)))
15168           return 0;
15169   ;
15170   return 0;
15171 }
15172 _ACEOF
15173 rm -f conftest.$ac_objext
15174 if { (ac_try="$ac_compile"
15175 case "(($ac_try" in
15176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177   *) ac_try_echo=$ac_try;;
15178 esac
15179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15180 $as_echo "$ac_try_echo") >&5
15181   (eval "$ac_compile") 2>conftest.er1
15182   ac_status=$?
15183   grep -v '^ *+' conftest.er1 >conftest.err
15184   rm -f conftest.er1
15185   cat conftest.err >&5
15186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); } && {
15188          test -z "$ac_c_werror_flag" ||
15189          test ! -s conftest.err
15190        } && test -s conftest.$ac_objext; then
15191   :
15192 else
15193   $as_echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15195
15196         ac_cv_type_struct_sockaddr_un=yes
15197 fi
15198
15199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15200 else
15201   $as_echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15203
15204
15205 fi
15206
15207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15208 fi
15209 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15210 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15211 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15212
15213 cat >>confdefs.h <<_ACEOF
15214 #define HAVE_STRUCT_SOCKADDR_UN 1
15215 _ACEOF
15216
15217
15218 cat >>confdefs.h <<\_ACEOF
15219 #define HAVE_UNIX_SOCKETS 1
15220 _ACEOF
15221
15222 fi
15223
15224 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15225 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15226 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15227   $as_echo_n "(cached) " >&6
15228 else
15229   ac_cv_type_struct_sockaddr_storage=no
15230 cat >conftest.$ac_ext <<_ACEOF
15231 /* confdefs.h.  */
15232 _ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h.  */
15236 #include <sys/types.h>
15237 #ifdef HAVE_SYS_SOCKET_H
15238 #include <sys/socket.h>
15239 #endif
15240
15241
15242 int
15243 main ()
15244 {
15245 if (sizeof (struct sockaddr_storage))
15246        return 0;
15247   ;
15248   return 0;
15249 }
15250 _ACEOF
15251 rm -f conftest.$ac_objext
15252 if { (ac_try="$ac_compile"
15253 case "(($ac_try" in
15254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255   *) ac_try_echo=$ac_try;;
15256 esac
15257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15258 $as_echo "$ac_try_echo") >&5
15259   (eval "$ac_compile") 2>conftest.er1
15260   ac_status=$?
15261   grep -v '^ *+' conftest.er1 >conftest.err
15262   rm -f conftest.er1
15263   cat conftest.err >&5
15264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); } && {
15266          test -z "$ac_c_werror_flag" ||
15267          test ! -s conftest.err
15268        } && test -s conftest.$ac_objext; then
15269   cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h.  */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h.  */
15275 #include <sys/types.h>
15276 #ifdef HAVE_SYS_SOCKET_H
15277 #include <sys/socket.h>
15278 #endif
15279
15280
15281 int
15282 main ()
15283 {
15284 if (sizeof ((struct sockaddr_storage)))
15285           return 0;
15286   ;
15287   return 0;
15288 }
15289 _ACEOF
15290 rm -f conftest.$ac_objext
15291 if { (ac_try="$ac_compile"
15292 case "(($ac_try" in
15293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294   *) ac_try_echo=$ac_try;;
15295 esac
15296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15297 $as_echo "$ac_try_echo") >&5
15298   (eval "$ac_compile") 2>conftest.er1
15299   ac_status=$?
15300   grep -v '^ *+' conftest.er1 >conftest.err
15301   rm -f conftest.er1
15302   cat conftest.err >&5
15303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); } && {
15305          test -z "$ac_c_werror_flag" ||
15306          test ! -s conftest.err
15307        } && test -s conftest.$ac_objext; then
15308   :
15309 else
15310   $as_echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313         ac_cv_type_struct_sockaddr_storage=yes
15314 fi
15315
15316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15317 else
15318   $as_echo "$as_me: failed program was:" >&5
15319 sed 's/^/| /' conftest.$ac_ext >&5
15320
15321
15322 fi
15323
15324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15325 fi
15326 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15327 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15328 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15329
15330 cat >>confdefs.h <<_ACEOF
15331 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15332 _ACEOF
15333
15334
15335 fi
15336
15337 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15338 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15339 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15340   $as_echo_n "(cached) " >&6
15341 else
15342   cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h.  */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h.  */
15348 #include <sys/types.h>
15349 #ifdef HAVE_SYS_SOCKET_H
15350 #include <sys/socket.h>
15351 #endif
15352
15353
15354 int
15355 main ()
15356 {
15357 static struct sockaddr_storage ac_aggr;
15358 if (ac_aggr.ss_family)
15359 return 0;
15360   ;
15361   return 0;
15362 }
15363 _ACEOF
15364 rm -f conftest.$ac_objext
15365 if { (ac_try="$ac_compile"
15366 case "(($ac_try" in
15367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368   *) ac_try_echo=$ac_try;;
15369 esac
15370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15371 $as_echo "$ac_try_echo") >&5
15372   (eval "$ac_compile") 2>conftest.er1
15373   ac_status=$?
15374   grep -v '^ *+' conftest.er1 >conftest.err
15375   rm -f conftest.er1
15376   cat conftest.err >&5
15377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); } && {
15379          test -z "$ac_c_werror_flag" ||
15380          test ! -s conftest.err
15381        } && test -s conftest.$ac_objext; then
15382   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15383 else
15384   $as_echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15386
15387         cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h.  */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h.  */
15393 #include <sys/types.h>
15394 #ifdef HAVE_SYS_SOCKET_H
15395 #include <sys/socket.h>
15396 #endif
15397
15398
15399 int
15400 main ()
15401 {
15402 static struct sockaddr_storage ac_aggr;
15403 if (sizeof ac_aggr.ss_family)
15404 return 0;
15405   ;
15406   return 0;
15407 }
15408 _ACEOF
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413   *) ac_try_echo=$ac_try;;
15414 esac
15415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15416 $as_echo "$ac_try_echo") >&5
15417   (eval "$ac_compile") 2>conftest.er1
15418   ac_status=$?
15419   grep -v '^ *+' conftest.er1 >conftest.err
15420   rm -f conftest.er1
15421   cat conftest.err >&5
15422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); } && {
15424          test -z "$ac_c_werror_flag" ||
15425          test ! -s conftest.err
15426        } && test -s conftest.$ac_objext; then
15427   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15428 else
15429   $as_echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15431
15432         ac_cv_member_struct_sockaddr_storage_ss_family=no
15433 fi
15434
15435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15436 fi
15437
15438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15439 fi
15440 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15441 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15442 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15443
15444 cat >>confdefs.h <<_ACEOF
15445 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15446 _ACEOF
15447
15448
15449 fi
15450 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15451 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15452 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15453   $as_echo_n "(cached) " >&6
15454 else
15455   cat >conftest.$ac_ext <<_ACEOF
15456 /* confdefs.h.  */
15457 _ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h.  */
15461 #include <sys/types.h>
15462 #ifdef HAVE_SYS_SOCKET_H
15463 #include <sys/socket.h>
15464 #endif
15465
15466
15467 int
15468 main ()
15469 {
15470 static struct sockaddr_storage ac_aggr;
15471 if (ac_aggr.__ss_family)
15472 return 0;
15473   ;
15474   return 0;
15475 }
15476 _ACEOF
15477 rm -f conftest.$ac_objext
15478 if { (ac_try="$ac_compile"
15479 case "(($ac_try" in
15480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481   *) ac_try_echo=$ac_try;;
15482 esac
15483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15484 $as_echo "$ac_try_echo") >&5
15485   (eval "$ac_compile") 2>conftest.er1
15486   ac_status=$?
15487   grep -v '^ *+' conftest.er1 >conftest.err
15488   rm -f conftest.er1
15489   cat conftest.err >&5
15490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); } && {
15492          test -z "$ac_c_werror_flag" ||
15493          test ! -s conftest.err
15494        } && test -s conftest.$ac_objext; then
15495   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15496 else
15497   $as_echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15499
15500         cat >conftest.$ac_ext <<_ACEOF
15501 /* confdefs.h.  */
15502 _ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h.  */
15506 #include <sys/types.h>
15507 #ifdef HAVE_SYS_SOCKET_H
15508 #include <sys/socket.h>
15509 #endif
15510
15511
15512 int
15513 main ()
15514 {
15515 static struct sockaddr_storage ac_aggr;
15516 if (sizeof ac_aggr.__ss_family)
15517 return 0;
15518   ;
15519   return 0;
15520 }
15521 _ACEOF
15522 rm -f conftest.$ac_objext
15523 if { (ac_try="$ac_compile"
15524 case "(($ac_try" in
15525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526   *) ac_try_echo=$ac_try;;
15527 esac
15528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15529 $as_echo "$ac_try_echo") >&5
15530   (eval "$ac_compile") 2>conftest.er1
15531   ac_status=$?
15532   grep -v '^ *+' conftest.er1 >conftest.err
15533   rm -f conftest.er1
15534   cat conftest.err >&5
15535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); } && {
15537          test -z "$ac_c_werror_flag" ||
15538          test ! -s conftest.err
15539        } && test -s conftest.$ac_objext; then
15540   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15541 else
15542   $as_echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15544
15545         ac_cv_member_struct_sockaddr_storage___ss_family=no
15546 fi
15547
15548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 fi
15550
15551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15552 fi
15553 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15554 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15555 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15556
15557 cat >>confdefs.h <<_ACEOF
15558 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15559 _ACEOF
15560
15561
15562 fi
15563 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15564 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15565 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15566   $as_echo_n "(cached) " >&6
15567 else
15568   cat >conftest.$ac_ext <<_ACEOF
15569 /* confdefs.h.  */
15570 _ACEOF
15571 cat confdefs.h >>conftest.$ac_ext
15572 cat >>conftest.$ac_ext <<_ACEOF
15573 /* end confdefs.h.  */
15574 #include <sys/types.h>
15575 #ifdef HAVE_SYS_SOCKET_H
15576 #include <sys/socket.h>
15577 #endif
15578
15579
15580 int
15581 main ()
15582 {
15583 static struct sockaddr_storage ac_aggr;
15584 if (ac_aggr.ss_len)
15585 return 0;
15586   ;
15587   return 0;
15588 }
15589 _ACEOF
15590 rm -f conftest.$ac_objext
15591 if { (ac_try="$ac_compile"
15592 case "(($ac_try" in
15593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594   *) ac_try_echo=$ac_try;;
15595 esac
15596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15597 $as_echo "$ac_try_echo") >&5
15598   (eval "$ac_compile") 2>conftest.er1
15599   ac_status=$?
15600   grep -v '^ *+' conftest.er1 >conftest.err
15601   rm -f conftest.er1
15602   cat conftest.err >&5
15603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); } && {
15605          test -z "$ac_c_werror_flag" ||
15606          test ! -s conftest.err
15607        } && test -s conftest.$ac_objext; then
15608   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15609 else
15610   $as_echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613         cat >conftest.$ac_ext <<_ACEOF
15614 /* confdefs.h.  */
15615 _ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h.  */
15619 #include <sys/types.h>
15620 #ifdef HAVE_SYS_SOCKET_H
15621 #include <sys/socket.h>
15622 #endif
15623
15624
15625 int
15626 main ()
15627 {
15628 static struct sockaddr_storage ac_aggr;
15629 if (sizeof ac_aggr.ss_len)
15630 return 0;
15631   ;
15632   return 0;
15633 }
15634 _ACEOF
15635 rm -f conftest.$ac_objext
15636 if { (ac_try="$ac_compile"
15637 case "(($ac_try" in
15638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639   *) ac_try_echo=$ac_try;;
15640 esac
15641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15642 $as_echo "$ac_try_echo") >&5
15643   (eval "$ac_compile") 2>conftest.er1
15644   ac_status=$?
15645   grep -v '^ *+' conftest.er1 >conftest.err
15646   rm -f conftest.er1
15647   cat conftest.err >&5
15648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); } && {
15650          test -z "$ac_c_werror_flag" ||
15651          test ! -s conftest.err
15652        } && test -s conftest.$ac_objext; then
15653   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15654 else
15655   $as_echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15657
15658         ac_cv_member_struct_sockaddr_storage_ss_len=no
15659 fi
15660
15661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15662 fi
15663
15664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15665 fi
15666 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15667 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15668 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15669
15670 cat >>confdefs.h <<_ACEOF
15671 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15672 _ACEOF
15673
15674
15675 fi
15676 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15677 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15678 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15679   $as_echo_n "(cached) " >&6
15680 else
15681   cat >conftest.$ac_ext <<_ACEOF
15682 /* confdefs.h.  */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h.  */
15687 #include <sys/types.h>
15688 #ifdef HAVE_SYS_SOCKET_H
15689 #include <sys/socket.h>
15690 #endif
15691
15692
15693 int
15694 main ()
15695 {
15696 static struct sockaddr_storage ac_aggr;
15697 if (ac_aggr.__ss_len)
15698 return 0;
15699   ;
15700   return 0;
15701 }
15702 _ACEOF
15703 rm -f conftest.$ac_objext
15704 if { (ac_try="$ac_compile"
15705 case "(($ac_try" in
15706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707   *) ac_try_echo=$ac_try;;
15708 esac
15709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15710 $as_echo "$ac_try_echo") >&5
15711   (eval "$ac_compile") 2>conftest.er1
15712   ac_status=$?
15713   grep -v '^ *+' conftest.er1 >conftest.err
15714   rm -f conftest.er1
15715   cat conftest.err >&5
15716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); } && {
15718          test -z "$ac_c_werror_flag" ||
15719          test ! -s conftest.err
15720        } && test -s conftest.$ac_objext; then
15721   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15722 else
15723   $as_echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15725
15726         cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h.  */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h.  */
15732 #include <sys/types.h>
15733 #ifdef HAVE_SYS_SOCKET_H
15734 #include <sys/socket.h>
15735 #endif
15736
15737
15738 int
15739 main ()
15740 {
15741 static struct sockaddr_storage ac_aggr;
15742 if (sizeof ac_aggr.__ss_len)
15743 return 0;
15744   ;
15745   return 0;
15746 }
15747 _ACEOF
15748 rm -f conftest.$ac_objext
15749 if { (ac_try="$ac_compile"
15750 case "(($ac_try" in
15751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752   *) ac_try_echo=$ac_try;;
15753 esac
15754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15755 $as_echo "$ac_try_echo") >&5
15756   (eval "$ac_compile") 2>conftest.er1
15757   ac_status=$?
15758   grep -v '^ *+' conftest.er1 >conftest.err
15759   rm -f conftest.er1
15760   cat conftest.err >&5
15761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); } && {
15763          test -z "$ac_c_werror_flag" ||
15764          test ! -s conftest.err
15765        } && test -s conftest.$ac_objext; then
15766   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15767 else
15768   $as_echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15770
15771         ac_cv_member_struct_sockaddr_storage___ss_len=no
15772 fi
15773
15774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 fi
15776
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778 fi
15779 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15780 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15781 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15782
15783 cat >>confdefs.h <<_ACEOF
15784 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15785 _ACEOF
15786
15787
15788 fi
15789 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15790 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15791 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15792   $as_echo_n "(cached) " >&6
15793 else
15794   cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h.  */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h.  */
15800 #include <sys/types.h>
15801 #ifdef HAVE_SYS_SOCKET_H
15802 #include <sys/socket.h>
15803 #endif
15804
15805
15806 int
15807 main ()
15808 {
15809 static struct sockaddr ac_aggr;
15810 if (ac_aggr.sa_len)
15811 return 0;
15812   ;
15813   return 0;
15814 }
15815 _ACEOF
15816 rm -f conftest.$ac_objext
15817 if { (ac_try="$ac_compile"
15818 case "(($ac_try" in
15819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820   *) ac_try_echo=$ac_try;;
15821 esac
15822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15823 $as_echo "$ac_try_echo") >&5
15824   (eval "$ac_compile") 2>conftest.er1
15825   ac_status=$?
15826   grep -v '^ *+' conftest.er1 >conftest.err
15827   rm -f conftest.er1
15828   cat conftest.err >&5
15829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); } && {
15831          test -z "$ac_c_werror_flag" ||
15832          test ! -s conftest.err
15833        } && test -s conftest.$ac_objext; then
15834   ac_cv_member_struct_sockaddr_sa_len=yes
15835 else
15836   $as_echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15838
15839         cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h.  */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h.  */
15845 #include <sys/types.h>
15846 #ifdef HAVE_SYS_SOCKET_H
15847 #include <sys/socket.h>
15848 #endif
15849
15850
15851 int
15852 main ()
15853 {
15854 static struct sockaddr ac_aggr;
15855 if (sizeof ac_aggr.sa_len)
15856 return 0;
15857   ;
15858   return 0;
15859 }
15860 _ACEOF
15861 rm -f conftest.$ac_objext
15862 if { (ac_try="$ac_compile"
15863 case "(($ac_try" in
15864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865   *) ac_try_echo=$ac_try;;
15866 esac
15867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15868 $as_echo "$ac_try_echo") >&5
15869   (eval "$ac_compile") 2>conftest.er1
15870   ac_status=$?
15871   grep -v '^ *+' conftest.er1 >conftest.err
15872   rm -f conftest.er1
15873   cat conftest.err >&5
15874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); } && {
15876          test -z "$ac_c_werror_flag" ||
15877          test ! -s conftest.err
15878        } && test -s conftest.$ac_objext; then
15879   ac_cv_member_struct_sockaddr_sa_len=yes
15880 else
15881   $as_echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15883
15884         ac_cv_member_struct_sockaddr_sa_len=no
15885 fi
15886
15887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15888 fi
15889
15890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891 fi
15892 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15893 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15894 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
15895
15896 cat >>confdefs.h <<_ACEOF
15897 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15898 _ACEOF
15899
15900
15901 fi
15902
15903 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15904 $as_echo_n "checking for struct addrinfo... " >&6; }
15905 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15906   $as_echo_n "(cached) " >&6
15907 else
15908   ac_cv_type_struct_addrinfo=no
15909 cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h.  */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h.  */
15915 #include <sys/types.h>
15916 #include <sys/socket.h>
15917 #include <netdb.h>
15918
15919
15920 int
15921 main ()
15922 {
15923 if (sizeof (struct addrinfo))
15924        return 0;
15925   ;
15926   return 0;
15927 }
15928 _ACEOF
15929 rm -f conftest.$ac_objext
15930 if { (ac_try="$ac_compile"
15931 case "(($ac_try" in
15932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933   *) ac_try_echo=$ac_try;;
15934 esac
15935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15936 $as_echo "$ac_try_echo") >&5
15937   (eval "$ac_compile") 2>conftest.er1
15938   ac_status=$?
15939   grep -v '^ *+' conftest.er1 >conftest.err
15940   rm -f conftest.er1
15941   cat conftest.err >&5
15942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } && {
15944          test -z "$ac_c_werror_flag" ||
15945          test ! -s conftest.err
15946        } && test -s conftest.$ac_objext; then
15947   cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h.  */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h.  */
15953 #include <sys/types.h>
15954 #include <sys/socket.h>
15955 #include <netdb.h>
15956
15957
15958 int
15959 main ()
15960 {
15961 if (sizeof ((struct addrinfo)))
15962           return 0;
15963   ;
15964   return 0;
15965 }
15966 _ACEOF
15967 rm -f conftest.$ac_objext
15968 if { (ac_try="$ac_compile"
15969 case "(($ac_try" in
15970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971   *) ac_try_echo=$ac_try;;
15972 esac
15973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15974 $as_echo "$ac_try_echo") >&5
15975   (eval "$ac_compile") 2>conftest.er1
15976   ac_status=$?
15977   grep -v '^ *+' conftest.er1 >conftest.err
15978   rm -f conftest.er1
15979   cat conftest.err >&5
15980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981   (exit $ac_status); } && {
15982          test -z "$ac_c_werror_flag" ||
15983          test ! -s conftest.err
15984        } && test -s conftest.$ac_objext; then
15985   :
15986 else
15987   $as_echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15989
15990         ac_cv_type_struct_addrinfo=yes
15991 fi
15992
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 else
15995   $as_echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15997
15998
15999 fi
16000
16001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16002 fi
16003 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16004 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16005 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16006
16007 cat >>confdefs.h <<_ACEOF
16008 #define HAVE_STRUCT_ADDRINFO 1
16009 _ACEOF
16010
16011
16012 fi
16013
16014
16015 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16016 $as_echo_n "checking for struct cmsgcred... " >&6; }
16017 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16018   $as_echo_n "(cached) " >&6
16019 else
16020   ac_cv_type_struct_cmsgcred=no
16021 cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h.  */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h.  */
16027 #include <sys/param.h>
16028 #include <sys/types.h>
16029 #include <sys/socket.h>
16030 #include <sys/ucred.h>
16031
16032 int
16033 main ()
16034 {
16035 if (sizeof (struct cmsgcred))
16036        return 0;
16037   ;
16038   return 0;
16039 }
16040 _ACEOF
16041 rm -f conftest.$ac_objext
16042 if { (ac_try="$ac_compile"
16043 case "(($ac_try" in
16044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045   *) ac_try_echo=$ac_try;;
16046 esac
16047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16048 $as_echo "$ac_try_echo") >&5
16049   (eval "$ac_compile") 2>conftest.er1
16050   ac_status=$?
16051   grep -v '^ *+' conftest.er1 >conftest.err
16052   rm -f conftest.er1
16053   cat conftest.err >&5
16054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   (exit $ac_status); } && {
16056          test -z "$ac_c_werror_flag" ||
16057          test ! -s conftest.err
16058        } && test -s conftest.$ac_objext; then
16059   cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h.  */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h.  */
16065 #include <sys/param.h>
16066 #include <sys/types.h>
16067 #include <sys/socket.h>
16068 #include <sys/ucred.h>
16069
16070 int
16071 main ()
16072 {
16073 if (sizeof ((struct cmsgcred)))
16074           return 0;
16075   ;
16076   return 0;
16077 }
16078 _ACEOF
16079 rm -f conftest.$ac_objext
16080 if { (ac_try="$ac_compile"
16081 case "(($ac_try" in
16082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083   *) ac_try_echo=$ac_try;;
16084 esac
16085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16086 $as_echo "$ac_try_echo") >&5
16087   (eval "$ac_compile") 2>conftest.er1
16088   ac_status=$?
16089   grep -v '^ *+' conftest.er1 >conftest.err
16090   rm -f conftest.er1
16091   cat conftest.err >&5
16092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); } && {
16094          test -z "$ac_c_werror_flag" ||
16095          test ! -s conftest.err
16096        } && test -s conftest.$ac_objext; then
16097   :
16098 else
16099   $as_echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16101
16102         ac_cv_type_struct_cmsgcred=yes
16103 fi
16104
16105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16106 else
16107   $as_echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16109
16110
16111 fi
16112
16113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16114 fi
16115 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16116 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16117 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16118
16119 cat >>confdefs.h <<_ACEOF
16120 #define HAVE_STRUCT_CMSGCRED 1
16121 _ACEOF
16122
16123
16124 fi
16125 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16126 $as_echo_n "checking for struct fcred... " >&6; }
16127 if test "${ac_cv_type_struct_fcred+set}" = set; then
16128   $as_echo_n "(cached) " >&6
16129 else
16130   ac_cv_type_struct_fcred=no
16131 cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h.  */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h.  */
16137 #include <sys/param.h>
16138 #include <sys/types.h>
16139 #include <sys/socket.h>
16140 #include <sys/ucred.h>
16141
16142 int
16143 main ()
16144 {
16145 if (sizeof (struct fcred))
16146        return 0;
16147   ;
16148   return 0;
16149 }
16150 _ACEOF
16151 rm -f conftest.$ac_objext
16152 if { (ac_try="$ac_compile"
16153 case "(($ac_try" in
16154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155   *) ac_try_echo=$ac_try;;
16156 esac
16157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16158 $as_echo "$ac_try_echo") >&5
16159   (eval "$ac_compile") 2>conftest.er1
16160   ac_status=$?
16161   grep -v '^ *+' conftest.er1 >conftest.err
16162   rm -f conftest.er1
16163   cat conftest.err >&5
16164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); } && {
16166          test -z "$ac_c_werror_flag" ||
16167          test ! -s conftest.err
16168        } && test -s conftest.$ac_objext; then
16169   cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h.  */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h.  */
16175 #include <sys/param.h>
16176 #include <sys/types.h>
16177 #include <sys/socket.h>
16178 #include <sys/ucred.h>
16179
16180 int
16181 main ()
16182 {
16183 if (sizeof ((struct fcred)))
16184           return 0;
16185   ;
16186   return 0;
16187 }
16188 _ACEOF
16189 rm -f conftest.$ac_objext
16190 if { (ac_try="$ac_compile"
16191 case "(($ac_try" in
16192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193   *) ac_try_echo=$ac_try;;
16194 esac
16195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16196 $as_echo "$ac_try_echo") >&5
16197   (eval "$ac_compile") 2>conftest.er1
16198   ac_status=$?
16199   grep -v '^ *+' conftest.er1 >conftest.err
16200   rm -f conftest.er1
16201   cat conftest.err >&5
16202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); } && {
16204          test -z "$ac_c_werror_flag" ||
16205          test ! -s conftest.err
16206        } && test -s conftest.$ac_objext; then
16207   :
16208 else
16209   $as_echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16211
16212         ac_cv_type_struct_fcred=yes
16213 fi
16214
16215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16216 else
16217   $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220
16221 fi
16222
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 fi
16225 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16226 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16227 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16228
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_STRUCT_FCRED 1
16231 _ACEOF
16232
16233
16234 fi
16235 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16236 $as_echo_n "checking for struct sockcred... " >&6; }
16237 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16238   $as_echo_n "(cached) " >&6
16239 else
16240   ac_cv_type_struct_sockcred=no
16241 cat >conftest.$ac_ext <<_ACEOF
16242 /* confdefs.h.  */
16243 _ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h.  */
16247 #include <sys/param.h>
16248 #include <sys/types.h>
16249 #include <sys/socket.h>
16250 #include <sys/ucred.h>
16251
16252 int
16253 main ()
16254 {
16255 if (sizeof (struct sockcred))
16256        return 0;
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 rm -f conftest.$ac_objext
16262 if { (ac_try="$ac_compile"
16263 case "(($ac_try" in
16264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16265   *) ac_try_echo=$ac_try;;
16266 esac
16267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16268 $as_echo "$ac_try_echo") >&5
16269   (eval "$ac_compile") 2>conftest.er1
16270   ac_status=$?
16271   grep -v '^ *+' conftest.er1 >conftest.err
16272   rm -f conftest.er1
16273   cat conftest.err >&5
16274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275   (exit $ac_status); } && {
16276          test -z "$ac_c_werror_flag" ||
16277          test ! -s conftest.err
16278        } && test -s conftest.$ac_objext; then
16279   cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h.  */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h.  */
16285 #include <sys/param.h>
16286 #include <sys/types.h>
16287 #include <sys/socket.h>
16288 #include <sys/ucred.h>
16289
16290 int
16291 main ()
16292 {
16293 if (sizeof ((struct sockcred)))
16294           return 0;
16295   ;
16296   return 0;
16297 }
16298 _ACEOF
16299 rm -f conftest.$ac_objext
16300 if { (ac_try="$ac_compile"
16301 case "(($ac_try" in
16302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303   *) ac_try_echo=$ac_try;;
16304 esac
16305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16306 $as_echo "$ac_try_echo") >&5
16307   (eval "$ac_compile") 2>conftest.er1
16308   ac_status=$?
16309   grep -v '^ *+' conftest.er1 >conftest.err
16310   rm -f conftest.er1
16311   cat conftest.err >&5
16312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); } && {
16314          test -z "$ac_c_werror_flag" ||
16315          test ! -s conftest.err
16316        } && test -s conftest.$ac_objext; then
16317   :
16318 else
16319   $as_echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16321
16322         ac_cv_type_struct_sockcred=yes
16323 fi
16324
16325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16326 else
16327   $as_echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16329
16330
16331 fi
16332
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334 fi
16335 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16336 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16337 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16338
16339 cat >>confdefs.h <<_ACEOF
16340 #define HAVE_STRUCT_SOCKCRED 1
16341 _ACEOF
16342
16343
16344 fi
16345
16346
16347 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16348 $as_echo_n "checking for struct option... " >&6; }
16349 if test "${ac_cv_type_struct_option+set}" = set; then
16350   $as_echo_n "(cached) " >&6
16351 else
16352   ac_cv_type_struct_option=no
16353 cat >conftest.$ac_ext <<_ACEOF
16354 /* confdefs.h.  */
16355 _ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h.  */
16359 #ifdef HAVE_GETOPT_H
16360 #include <getopt.h>
16361 #endif
16362
16363 int
16364 main ()
16365 {
16366 if (sizeof (struct option))
16367        return 0;
16368   ;
16369   return 0;
16370 }
16371 _ACEOF
16372 rm -f conftest.$ac_objext
16373 if { (ac_try="$ac_compile"
16374 case "(($ac_try" in
16375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376   *) ac_try_echo=$ac_try;;
16377 esac
16378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16379 $as_echo "$ac_try_echo") >&5
16380   (eval "$ac_compile") 2>conftest.er1
16381   ac_status=$?
16382   grep -v '^ *+' conftest.er1 >conftest.err
16383   rm -f conftest.er1
16384   cat conftest.err >&5
16385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); } && {
16387          test -z "$ac_c_werror_flag" ||
16388          test ! -s conftest.err
16389        } && test -s conftest.$ac_objext; then
16390   cat >conftest.$ac_ext <<_ACEOF
16391 /* confdefs.h.  */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h.  */
16396 #ifdef HAVE_GETOPT_H
16397 #include <getopt.h>
16398 #endif
16399
16400 int
16401 main ()
16402 {
16403 if (sizeof ((struct option)))
16404           return 0;
16405   ;
16406   return 0;
16407 }
16408 _ACEOF
16409 rm -f conftest.$ac_objext
16410 if { (ac_try="$ac_compile"
16411 case "(($ac_try" in
16412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413   *) ac_try_echo=$ac_try;;
16414 esac
16415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16416 $as_echo "$ac_try_echo") >&5
16417   (eval "$ac_compile") 2>conftest.er1
16418   ac_status=$?
16419   grep -v '^ *+' conftest.er1 >conftest.err
16420   rm -f conftest.er1
16421   cat conftest.err >&5
16422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); } && {
16424          test -z "$ac_c_werror_flag" ||
16425          test ! -s conftest.err
16426        } && test -s conftest.$ac_objext; then
16427   :
16428 else
16429   $as_echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16431
16432         ac_cv_type_struct_option=yes
16433 fi
16434
16435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16436 else
16437   $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16439
16440
16441 fi
16442
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444 fi
16445 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
16446 $as_echo "$ac_cv_type_struct_option" >&6; }
16447 if test "x$ac_cv_type_struct_option" = x""yes; then
16448
16449 cat >>confdefs.h <<_ACEOF
16450 #define HAVE_STRUCT_OPTION 1
16451 _ACEOF
16452
16453
16454 fi
16455
16456
16457 if test "$with_zlib" = yes; then
16458   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
16459   # did not).  While we could work around the lack of z_streamp, it
16460   # seems unwise to encourage people to use such old zlib versions...
16461   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
16462 $as_echo_n "checking for z_streamp... " >&6; }
16463 if test "${ac_cv_type_z_streamp+set}" = set; then
16464   $as_echo_n "(cached) " >&6
16465 else
16466   ac_cv_type_z_streamp=no
16467 cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h.  */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h.  */
16473 #include <zlib.h>
16474
16475 int
16476 main ()
16477 {
16478 if (sizeof (z_streamp))
16479        return 0;
16480   ;
16481   return 0;
16482 }
16483 _ACEOF
16484 rm -f conftest.$ac_objext
16485 if { (ac_try="$ac_compile"
16486 case "(($ac_try" in
16487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488   *) ac_try_echo=$ac_try;;
16489 esac
16490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16491 $as_echo "$ac_try_echo") >&5
16492   (eval "$ac_compile") 2>conftest.er1
16493   ac_status=$?
16494   grep -v '^ *+' conftest.er1 >conftest.err
16495   rm -f conftest.er1
16496   cat conftest.err >&5
16497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } && {
16499          test -z "$ac_c_werror_flag" ||
16500          test ! -s conftest.err
16501        } && test -s conftest.$ac_objext; then
16502   cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h.  */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h.  */
16508 #include <zlib.h>
16509
16510 int
16511 main ()
16512 {
16513 if (sizeof ((z_streamp)))
16514           return 0;
16515   ;
16516   return 0;
16517 }
16518 _ACEOF
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16526 $as_echo "$ac_try_echo") >&5
16527   (eval "$ac_compile") 2>conftest.er1
16528   ac_status=$?
16529   grep -v '^ *+' conftest.er1 >conftest.err
16530   rm -f conftest.er1
16531   cat conftest.err >&5
16532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); } && {
16534          test -z "$ac_c_werror_flag" ||
16535          test ! -s conftest.err
16536        } && test -s conftest.$ac_objext; then
16537   :
16538 else
16539   $as_echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542         ac_cv_type_z_streamp=yes
16543 fi
16544
16545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546 else
16547   $as_echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16549
16550
16551 fi
16552
16553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16554 fi
16555 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
16556 $as_echo "$ac_cv_type_z_streamp" >&6; }
16557 if test "x$ac_cv_type_z_streamp" = x""yes; then
16558   :
16559 else
16560   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
16561 Use --without-zlib to disable zlib support." >&5
16562 $as_echo "$as_me: error: zlib version is too old
16563 Use --without-zlib to disable zlib support." >&2;}
16564    { (exit 1); exit 1; }; }
16565 fi
16566
16567 fi
16568
16569 if test "$with_krb5" = yes; then
16570 # Check for differences between MIT and Heimdal (KTH) releases
16571   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
16572 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
16573 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
16574   $as_echo_n "(cached) " >&6
16575 else
16576   cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h.  */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h.  */
16582 #include <krb5.h>
16583
16584 int
16585 main ()
16586 {
16587 static krb5_ticket ac_aggr;
16588 if (ac_aggr.enc_part2)
16589 return 0;
16590   ;
16591   return 0;
16592 }
16593 _ACEOF
16594 rm -f conftest.$ac_objext
16595 if { (ac_try="$ac_compile"
16596 case "(($ac_try" in
16597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598   *) ac_try_echo=$ac_try;;
16599 esac
16600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16601 $as_echo "$ac_try_echo") >&5
16602   (eval "$ac_compile") 2>conftest.er1
16603   ac_status=$?
16604   grep -v '^ *+' conftest.er1 >conftest.err
16605   rm -f conftest.er1
16606   cat conftest.err >&5
16607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); } && {
16609          test -z "$ac_c_werror_flag" ||
16610          test ! -s conftest.err
16611        } && test -s conftest.$ac_objext; then
16612   ac_cv_member_krb5_ticket_enc_part2=yes
16613 else
16614   $as_echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16616
16617         cat >conftest.$ac_ext <<_ACEOF
16618 /* confdefs.h.  */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h.  */
16623 #include <krb5.h>
16624
16625 int
16626 main ()
16627 {
16628 static krb5_ticket ac_aggr;
16629 if (sizeof ac_aggr.enc_part2)
16630 return 0;
16631   ;
16632   return 0;
16633 }
16634 _ACEOF
16635 rm -f conftest.$ac_objext
16636 if { (ac_try="$ac_compile"
16637 case "(($ac_try" in
16638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639   *) ac_try_echo=$ac_try;;
16640 esac
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643   (eval "$ac_compile") 2>conftest.er1
16644   ac_status=$?
16645   grep -v '^ *+' conftest.er1 >conftest.err
16646   rm -f conftest.er1
16647   cat conftest.err >&5
16648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } && {
16650          test -z "$ac_c_werror_flag" ||
16651          test ! -s conftest.err
16652        } && test -s conftest.$ac_objext; then
16653   ac_cv_member_krb5_ticket_enc_part2=yes
16654 else
16655   $as_echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658         ac_cv_member_krb5_ticket_enc_part2=no
16659 fi
16660
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662 fi
16663
16664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16665 fi
16666 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
16667 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
16668 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
16669
16670 cat >>confdefs.h <<_ACEOF
16671 #define HAVE_KRB5_TICKET_ENC_PART2 1
16672 _ACEOF
16673
16674
16675 else
16676   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
16677 $as_echo_n "checking for krb5_ticket.client... " >&6; }
16678 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
16679   $as_echo_n "(cached) " >&6
16680 else
16681   cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h.  */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h.  */
16687 #include <krb5.h>
16688
16689 int
16690 main ()
16691 {
16692 static krb5_ticket ac_aggr;
16693 if (ac_aggr.client)
16694 return 0;
16695   ;
16696   return 0;
16697 }
16698 _ACEOF
16699 rm -f conftest.$ac_objext
16700 if { (ac_try="$ac_compile"
16701 case "(($ac_try" in
16702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703   *) ac_try_echo=$ac_try;;
16704 esac
16705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16706 $as_echo "$ac_try_echo") >&5
16707   (eval "$ac_compile") 2>conftest.er1
16708   ac_status=$?
16709   grep -v '^ *+' conftest.er1 >conftest.err
16710   rm -f conftest.er1
16711   cat conftest.err >&5
16712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); } && {
16714          test -z "$ac_c_werror_flag" ||
16715          test ! -s conftest.err
16716        } && test -s conftest.$ac_objext; then
16717   ac_cv_member_krb5_ticket_client=yes
16718 else
16719   $as_echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16721
16722         cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h.  */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h.  */
16728 #include <krb5.h>
16729
16730 int
16731 main ()
16732 {
16733 static krb5_ticket ac_aggr;
16734 if (sizeof ac_aggr.client)
16735 return 0;
16736   ;
16737   return 0;
16738 }
16739 _ACEOF
16740 rm -f conftest.$ac_objext
16741 if { (ac_try="$ac_compile"
16742 case "(($ac_try" in
16743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744   *) ac_try_echo=$ac_try;;
16745 esac
16746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16747 $as_echo "$ac_try_echo") >&5
16748   (eval "$ac_compile") 2>conftest.er1
16749   ac_status=$?
16750   grep -v '^ *+' conftest.er1 >conftest.err
16751   rm -f conftest.er1
16752   cat conftest.err >&5
16753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); } && {
16755          test -z "$ac_c_werror_flag" ||
16756          test ! -s conftest.err
16757        } && test -s conftest.$ac_objext; then
16758   ac_cv_member_krb5_ticket_client=yes
16759 else
16760   $as_echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16762
16763         ac_cv_member_krb5_ticket_client=no
16764 fi
16765
16766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16767 fi
16768
16769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16770 fi
16771 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
16772 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
16773 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
16774
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_KRB5_TICKET_CLIENT 1
16777 _ACEOF
16778
16779
16780 else
16781   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
16782 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
16783    { (exit 1); exit 1; }; }
16784 fi
16785
16786 fi
16787
16788   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
16789 $as_echo_n "checking for krb5_error.text.data... " >&6; }
16790 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
16791   $as_echo_n "(cached) " >&6
16792 else
16793   cat >conftest.$ac_ext <<_ACEOF
16794 /* confdefs.h.  */
16795 _ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h.  */
16799 #include <krb5.h>
16800
16801 int
16802 main ()
16803 {
16804 static krb5_error ac_aggr;
16805 if (ac_aggr.text.data)
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_krb5_error_text_data=yes
16830 else
16831   $as_echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834         cat >conftest.$ac_ext <<_ACEOF
16835 /* confdefs.h.  */
16836 _ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h.  */
16840 #include <krb5.h>
16841
16842 int
16843 main ()
16844 {
16845 static krb5_error ac_aggr;
16846 if (sizeof ac_aggr.text.data)
16847 return 0;
16848   ;
16849   return 0;
16850 }
16851 _ACEOF
16852 rm -f conftest.$ac_objext
16853 if { (ac_try="$ac_compile"
16854 case "(($ac_try" in
16855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856   *) ac_try_echo=$ac_try;;
16857 esac
16858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16859 $as_echo "$ac_try_echo") >&5
16860   (eval "$ac_compile") 2>conftest.er1
16861   ac_status=$?
16862   grep -v '^ *+' conftest.er1 >conftest.err
16863   rm -f conftest.er1
16864   cat conftest.err >&5
16865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); } && {
16867          test -z "$ac_c_werror_flag" ||
16868          test ! -s conftest.err
16869        } && test -s conftest.$ac_objext; then
16870   ac_cv_member_krb5_error_text_data=yes
16871 else
16872   $as_echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16874
16875         ac_cv_member_krb5_error_text_data=no
16876 fi
16877
16878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879 fi
16880
16881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16882 fi
16883 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
16884 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
16885 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
16886
16887 cat >>confdefs.h <<_ACEOF
16888 #define HAVE_KRB5_ERROR_TEXT_DATA 1
16889 _ACEOF
16890
16891
16892 else
16893   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
16894 $as_echo_n "checking for krb5_error.e_data... " >&6; }
16895 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
16896   $as_echo_n "(cached) " >&6
16897 else
16898   cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h.  */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h.  */
16904 #include <krb5.h>
16905
16906 int
16907 main ()
16908 {
16909 static krb5_error ac_aggr;
16910 if (ac_aggr.e_data)
16911 return 0;
16912   ;
16913   return 0;
16914 }
16915 _ACEOF
16916 rm -f conftest.$ac_objext
16917 if { (ac_try="$ac_compile"
16918 case "(($ac_try" in
16919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920   *) ac_try_echo=$ac_try;;
16921 esac
16922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16923 $as_echo "$ac_try_echo") >&5
16924   (eval "$ac_compile") 2>conftest.er1
16925   ac_status=$?
16926   grep -v '^ *+' conftest.er1 >conftest.err
16927   rm -f conftest.er1
16928   cat conftest.err >&5
16929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); } && {
16931          test -z "$ac_c_werror_flag" ||
16932          test ! -s conftest.err
16933        } && test -s conftest.$ac_objext; then
16934   ac_cv_member_krb5_error_e_data=yes
16935 else
16936   $as_echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939         cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h.  */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h.  */
16945 #include <krb5.h>
16946
16947 int
16948 main ()
16949 {
16950 static krb5_error ac_aggr;
16951 if (sizeof ac_aggr.e_data)
16952 return 0;
16953   ;
16954   return 0;
16955 }
16956 _ACEOF
16957 rm -f conftest.$ac_objext
16958 if { (ac_try="$ac_compile"
16959 case "(($ac_try" in
16960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961   *) ac_try_echo=$ac_try;;
16962 esac
16963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16964 $as_echo "$ac_try_echo") >&5
16965   (eval "$ac_compile") 2>conftest.er1
16966   ac_status=$?
16967   grep -v '^ *+' conftest.er1 >conftest.err
16968   rm -f conftest.er1
16969   cat conftest.err >&5
16970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); } && {
16972          test -z "$ac_c_werror_flag" ||
16973          test ! -s conftest.err
16974        } && test -s conftest.$ac_objext; then
16975   ac_cv_member_krb5_error_e_data=yes
16976 else
16977   $as_echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16979
16980         ac_cv_member_krb5_error_e_data=no
16981 fi
16982
16983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984 fi
16985
16986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987 fi
16988 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
16989 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
16990 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
16991
16992 cat >>confdefs.h <<_ACEOF
16993 #define HAVE_KRB5_ERROR_E_DATA 1
16994 _ACEOF
16995
16996
16997 else
16998   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
16999 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17000    { (exit 1); exit 1; }; }
17001 fi
17002
17003 fi
17004
17005
17006 # Win32 requires headers to be loaded for __stdcall, so can't use
17007 # AC_CHECK_FUNCS here.
17008   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17009 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17010   cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h.  */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h.  */
17016 #include <krb5.h>
17017 int
17018 main ()
17019 {
17020 krb5_free_unparsed_name(NULL,NULL);
17021   ;
17022   return 0;
17023 }
17024 _ACEOF
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (ac_try="$ac_link"
17027 case "(($ac_try" in
17028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029   *) ac_try_echo=$ac_try;;
17030 esac
17031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17032 $as_echo "$ac_try_echo") >&5
17033   (eval "$ac_link") 2>conftest.er1
17034   ac_status=$?
17035   grep -v '^ *+' conftest.er1 >conftest.err
17036   rm -f conftest.er1
17037   cat conftest.err >&5
17038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); } && {
17040          test -z "$ac_c_werror_flag" ||
17041          test ! -s conftest.err
17042        } && test -s conftest$ac_exeext && {
17043          test "$cross_compiling" = yes ||
17044          $as_test_x conftest$ac_exeext
17045        }; then
17046
17047 cat >>confdefs.h <<\_ACEOF
17048 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17049 _ACEOF
17050
17051 { $as_echo "$as_me:$LINENO: result: yes" >&5
17052 $as_echo "yes" >&6; }
17053 else
17054   $as_echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17056
17057         { $as_echo "$as_me:$LINENO: result: no" >&5
17058 $as_echo "no" >&6; }
17059 fi
17060
17061 rm -rf conftest.dSYM
17062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17063       conftest$ac_exeext conftest.$ac_ext
17064 fi
17065
17066
17067 ##
17068 ## Functions, global variables
17069 ##
17070
17071 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
17072 $as_echo_n "checking for int timezone... " >&6; }
17073 if test "${pgac_cv_var_int_timezone+set}" = set; then
17074   $as_echo_n "(cached) " >&6
17075 else
17076   cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h.  */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h.  */
17082 #include <time.h>
17083 int res;
17084 int
17085 main ()
17086 {
17087 #ifndef __CYGWIN__
17088 res = timezone / 60;
17089 #else
17090 res = _timezone / 60;
17091 #endif
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100   *) ac_try_echo=$ac_try;;
17101 esac
17102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17103 $as_echo "$ac_try_echo") >&5
17104   (eval "$ac_link") 2>conftest.er1
17105   ac_status=$?
17106   grep -v '^ *+' conftest.er1 >conftest.err
17107   rm -f conftest.er1
17108   cat conftest.err >&5
17109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); } && {
17111          test -z "$ac_c_werror_flag" ||
17112          test ! -s conftest.err
17113        } && test -s conftest$ac_exeext && {
17114          test "$cross_compiling" = yes ||
17115          $as_test_x conftest$ac_exeext
17116        }; then
17117   pgac_cv_var_int_timezone=yes
17118 else
17119   $as_echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17121
17122         pgac_cv_var_int_timezone=no
17123 fi
17124
17125 rm -rf conftest.dSYM
17126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17127       conftest$ac_exeext conftest.$ac_ext
17128 fi
17129 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
17130 $as_echo "$pgac_cv_var_int_timezone" >&6; }
17131 if test x"$pgac_cv_var_int_timezone" = xyes ; then
17132
17133 cat >>confdefs.h <<\_ACEOF
17134 #define HAVE_INT_TIMEZONE /**/
17135 _ACEOF
17136
17137 fi
17138 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
17139 $as_echo_n "checking types of arguments for accept()... " >&6; }
17140  if test "${ac_cv_func_accept_return+set}" = set; then
17141   $as_echo_n "(cached) " >&6
17142 else
17143    if test "${ac_cv_func_accept_arg1+set}" = set; then
17144   $as_echo_n "(cached) " >&6
17145 else
17146     if test "${ac_cv_func_accept_arg2+set}" = set; then
17147   $as_echo_n "(cached) " >&6
17148 else
17149      if test "${ac_cv_func_accept_arg3+set}" = set; then
17150   $as_echo_n "(cached) " >&6
17151 else
17152       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
17153       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
17154        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
17155         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
17156          cat >conftest.$ac_ext <<_ACEOF
17157 /* confdefs.h.  */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h.  */
17162 #ifdef HAVE_SYS_TYPES_H
17163 #include <sys/types.h>
17164 #endif
17165 #ifdef HAVE_SYS_SOCKET_H
17166 #include <sys/socket.h>
17167 #endif
17168 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
17169 int
17170 main ()
17171 {
17172
17173   ;
17174   return 0;
17175 }
17176 _ACEOF
17177 rm -f conftest.$ac_objext
17178 if { (ac_try="$ac_compile"
17179 case "(($ac_try" in
17180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181   *) ac_try_echo=$ac_try;;
17182 esac
17183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17184 $as_echo "$ac_try_echo") >&5
17185   (eval "$ac_compile") 2>conftest.er1
17186   ac_status=$?
17187   grep -v '^ *+' conftest.er1 >conftest.err
17188   rm -f conftest.er1
17189   cat conftest.err >&5
17190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); } && {
17192          test -z "$ac_c_werror_flag" ||
17193          test ! -s conftest.err
17194        } && test -s conftest.$ac_objext; then
17195   ac_not_found=no; break 4
17196 else
17197   $as_echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200         ac_not_found=yes
17201 fi
17202
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204        done
17205       done
17206      done
17207     done
17208     if test "$ac_not_found" = yes; then
17209       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
17210 $as_echo "$as_me: error: could not determine argument types" >&2;}
17211    { (exit 1); exit 1; }; }
17212     fi
17213     if test "$ac_cv_func_accept_arg3" = "void"; then
17214       ac_cv_func_accept_arg3=int
17215     fi
17216
17217 fi
17218
17219 fi
17220
17221 fi
17222
17223 fi
17224  { $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
17225 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
17226
17227 cat >>confdefs.h <<_ACEOF
17228 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
17229 _ACEOF
17230
17231
17232 cat >>confdefs.h <<_ACEOF
17233 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
17234 _ACEOF
17235
17236
17237 cat >>confdefs.h <<_ACEOF
17238 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
17239 _ACEOF
17240
17241
17242 cat >>confdefs.h <<_ACEOF
17243 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
17244 _ACEOF
17245
17246
17247 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
17248 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
17249 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
17250   $as_echo_n "(cached) " >&6
17251 else
17252   cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h.  */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h.  */
17258 #include <sys/time.h>
17259 int
17260 main ()
17261 {
17262 struct timeval *tp;
17263 struct timezone *tzp;
17264 gettimeofday(tp,tzp);
17265   ;
17266   return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273   *) ac_try_echo=$ac_try;;
17274 esac
17275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17276 $as_echo "$ac_try_echo") >&5
17277   (eval "$ac_compile") 2>conftest.er1
17278   ac_status=$?
17279   grep -v '^ *+' conftest.er1 >conftest.err
17280   rm -f conftest.er1
17281   cat conftest.err >&5
17282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); } && {
17284          test -z "$ac_c_werror_flag" ||
17285          test ! -s conftest.err
17286        } && test -s conftest.$ac_objext; then
17287   pgac_cv_func_gettimeofday_1arg=no
17288 else
17289   $as_echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17291
17292         pgac_cv_func_gettimeofday_1arg=yes
17293 fi
17294
17295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17296 fi
17297 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
17298 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
17299 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
17300
17301 cat >>confdefs.h <<\_ACEOF
17302 #define GETTIMEOFDAY_1ARG /**/
17303 _ACEOF
17304
17305 fi
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
17331 do
17332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17333 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17334 $as_echo_n "checking for $ac_func... " >&6; }
17335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17336   $as_echo_n "(cached) " >&6
17337 else
17338   cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h.  */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h.  */
17344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17346 #define $ac_func innocuous_$ac_func
17347
17348 /* System header to define __stub macros and hopefully few prototypes,
17349     which can conflict with char $ac_func (); below.
17350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17351     <limits.h> exists even on freestanding compilers.  */
17352
17353 #ifdef __STDC__
17354 # include <limits.h>
17355 #else
17356 # include <assert.h>
17357 #endif
17358
17359 #undef $ac_func
17360
17361 /* Override any GCC internal prototype to avoid an error.
17362    Use char because int might match the return type of a GCC
17363    builtin and then its argument prototype would still apply.  */
17364 #ifdef __cplusplus
17365 extern "C"
17366 #endif
17367 char $ac_func ();
17368 /* The GNU C library defines this for functions which it implements
17369     to always fail with ENOSYS.  Some functions are actually named
17370     something starting with __ and the normal name is an alias.  */
17371 #if defined __stub_$ac_func || defined __stub___$ac_func
17372 choke me
17373 #endif
17374
17375 int
17376 main ()
17377 {
17378 return $ac_func ();
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387   *) ac_try_echo=$ac_try;;
17388 esac
17389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17390 $as_echo "$ac_try_echo") >&5
17391   (eval "$ac_link") 2>conftest.er1
17392   ac_status=$?
17393   grep -v '^ *+' conftest.er1 >conftest.err
17394   rm -f conftest.er1
17395   cat conftest.err >&5
17396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); } && {
17398          test -z "$ac_c_werror_flag" ||
17399          test ! -s conftest.err
17400        } && test -s conftest$ac_exeext && {
17401          test "$cross_compiling" = yes ||
17402          $as_test_x conftest$ac_exeext
17403        }; then
17404   eval "$as_ac_var=yes"
17405 else
17406   $as_echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17408
17409         eval "$as_ac_var=no"
17410 fi
17411
17412 rm -rf conftest.dSYM
17413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17414       conftest$ac_exeext conftest.$ac_ext
17415 fi
17416 ac_res=`eval 'as_val=${'$as_ac_var'}
17417                  $as_echo "$as_val"'`
17418                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17419 $as_echo "$ac_res" >&6; }
17420 as_val=`eval 'as_val=${'$as_ac_var'}
17421                  $as_echo "$as_val"'`
17422    if test "x$as_val" = x""yes; then
17423   cat >>confdefs.h <<_ACEOF
17424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17425 _ACEOF
17426
17427 fi
17428 done
17429
17430
17431 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
17432 # by calling it, 2009-04-02
17433 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
17434 if test "$PORTNAME" != "solaris"; then
17435
17436 for ac_func in posix_fadvise
17437 do
17438 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17439 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17440 $as_echo_n "checking for $ac_func... " >&6; }
17441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17442   $as_echo_n "(cached) " >&6
17443 else
17444   cat >conftest.$ac_ext <<_ACEOF
17445 /* confdefs.h.  */
17446 _ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h.  */
17450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17452 #define $ac_func innocuous_$ac_func
17453
17454 /* System header to define __stub macros and hopefully few prototypes,
17455     which can conflict with char $ac_func (); below.
17456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17457     <limits.h> exists even on freestanding compilers.  */
17458
17459 #ifdef __STDC__
17460 # include <limits.h>
17461 #else
17462 # include <assert.h>
17463 #endif
17464
17465 #undef $ac_func
17466
17467 /* Override any GCC internal prototype to avoid an error.
17468    Use char because int might match the return type of a GCC
17469    builtin and then its argument prototype would still apply.  */
17470 #ifdef __cplusplus
17471 extern "C"
17472 #endif
17473 char $ac_func ();
17474 /* The GNU C library defines this for functions which it implements
17475     to always fail with ENOSYS.  Some functions are actually named
17476     something starting with __ and the normal name is an alias.  */
17477 #if defined __stub_$ac_func || defined __stub___$ac_func
17478 choke me
17479 #endif
17480
17481 int
17482 main ()
17483 {
17484 return $ac_func ();
17485   ;
17486   return 0;
17487 }
17488 _ACEOF
17489 rm -f conftest.$ac_objext conftest$ac_exeext
17490 if { (ac_try="$ac_link"
17491 case "(($ac_try" in
17492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493   *) ac_try_echo=$ac_try;;
17494 esac
17495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17496 $as_echo "$ac_try_echo") >&5
17497   (eval "$ac_link") 2>conftest.er1
17498   ac_status=$?
17499   grep -v '^ *+' conftest.er1 >conftest.err
17500   rm -f conftest.er1
17501   cat conftest.err >&5
17502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); } && {
17504          test -z "$ac_c_werror_flag" ||
17505          test ! -s conftest.err
17506        } && test -s conftest$ac_exeext && {
17507          test "$cross_compiling" = yes ||
17508          $as_test_x conftest$ac_exeext
17509        }; then
17510   eval "$as_ac_var=yes"
17511 else
17512   $as_echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17514
17515         eval "$as_ac_var=no"
17516 fi
17517
17518 rm -rf conftest.dSYM
17519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17520       conftest$ac_exeext conftest.$ac_ext
17521 fi
17522 ac_res=`eval 'as_val=${'$as_ac_var'}
17523                  $as_echo "$as_val"'`
17524                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17525 $as_echo "$ac_res" >&6; }
17526 as_val=`eval 'as_val=${'$as_ac_var'}
17527                  $as_echo "$as_val"'`
17528    if test "x$as_val" = x""yes; then
17529   cat >>confdefs.h <<_ACEOF
17530 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17531 _ACEOF
17532
17533 fi
17534 done
17535
17536 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
17537 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
17538 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
17539   $as_echo_n "(cached) " >&6
17540 else
17541   cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h.  */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h.  */
17547 #include <fcntl.h>
17548
17549 int
17550 main ()
17551 {
17552 #ifndef posix_fadvise
17553   (void) posix_fadvise;
17554 #endif
17555
17556   ;
17557   return 0;
17558 }
17559 _ACEOF
17560 rm -f conftest.$ac_objext
17561 if { (ac_try="$ac_compile"
17562 case "(($ac_try" in
17563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564   *) ac_try_echo=$ac_try;;
17565 esac
17566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17567 $as_echo "$ac_try_echo") >&5
17568   (eval "$ac_compile") 2>conftest.er1
17569   ac_status=$?
17570   grep -v '^ *+' conftest.er1 >conftest.err
17571   rm -f conftest.er1
17572   cat conftest.err >&5
17573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); } && {
17575          test -z "$ac_c_werror_flag" ||
17576          test ! -s conftest.err
17577        } && test -s conftest.$ac_objext; then
17578   ac_cv_have_decl_posix_fadvise=yes
17579 else
17580   $as_echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17582
17583         ac_cv_have_decl_posix_fadvise=no
17584 fi
17585
17586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17587 fi
17588 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
17589 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
17590 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
17591
17592 cat >>confdefs.h <<_ACEOF
17593 #define HAVE_DECL_POSIX_FADVISE 1
17594 _ACEOF
17595
17596
17597 else
17598   cat >>confdefs.h <<_ACEOF
17599 #define HAVE_DECL_POSIX_FADVISE 0
17600 _ACEOF
17601
17602
17603 fi
17604
17605
17606 fi
17607
17608 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
17609 $as_echo_n "checking whether fdatasync is declared... " >&6; }
17610 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
17611   $as_echo_n "(cached) " >&6
17612 else
17613   cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h.  */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h.  */
17619 #include <unistd.h>
17620
17621 int
17622 main ()
17623 {
17624 #ifndef fdatasync
17625   (void) fdatasync;
17626 #endif
17627
17628   ;
17629   return 0;
17630 }
17631 _ACEOF
17632 rm -f conftest.$ac_objext
17633 if { (ac_try="$ac_compile"
17634 case "(($ac_try" in
17635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636   *) ac_try_echo=$ac_try;;
17637 esac
17638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17639 $as_echo "$ac_try_echo") >&5
17640   (eval "$ac_compile") 2>conftest.er1
17641   ac_status=$?
17642   grep -v '^ *+' conftest.er1 >conftest.err
17643   rm -f conftest.er1
17644   cat conftest.err >&5
17645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); } && {
17647          test -z "$ac_c_werror_flag" ||
17648          test ! -s conftest.err
17649        } && test -s conftest.$ac_objext; then
17650   ac_cv_have_decl_fdatasync=yes
17651 else
17652   $as_echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17654
17655         ac_cv_have_decl_fdatasync=no
17656 fi
17657
17658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17659 fi
17660 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
17661 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
17662 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
17663
17664 cat >>confdefs.h <<_ACEOF
17665 #define HAVE_DECL_FDATASYNC 1
17666 _ACEOF
17667
17668
17669 else
17670   cat >>confdefs.h <<_ACEOF
17671 #define HAVE_DECL_FDATASYNC 0
17672 _ACEOF
17673
17674
17675 fi
17676
17677
17678 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
17679 $as_echo_n "checking whether strlcat is declared... " >&6; }
17680 if test "${ac_cv_have_decl_strlcat+set}" = set; then
17681   $as_echo_n "(cached) " >&6
17682 else
17683   cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h.  */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h.  */
17689 $ac_includes_default
17690 int
17691 main ()
17692 {
17693 #ifndef strlcat
17694   (void) strlcat;
17695 #endif
17696
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17708 $as_echo "$ac_try_echo") >&5
17709   (eval "$ac_compile") 2>conftest.er1
17710   ac_status=$?
17711   grep -v '^ *+' conftest.er1 >conftest.err
17712   rm -f conftest.er1
17713   cat conftest.err >&5
17714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); } && {
17716          test -z "$ac_c_werror_flag" ||
17717          test ! -s conftest.err
17718        } && test -s conftest.$ac_objext; then
17719   ac_cv_have_decl_strlcat=yes
17720 else
17721   $as_echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17723
17724         ac_cv_have_decl_strlcat=no
17725 fi
17726
17727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728 fi
17729 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
17730 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
17731 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
17732
17733 cat >>confdefs.h <<_ACEOF
17734 #define HAVE_DECL_STRLCAT 1
17735 _ACEOF
17736
17737
17738 else
17739   cat >>confdefs.h <<_ACEOF
17740 #define HAVE_DECL_STRLCAT 0
17741 _ACEOF
17742
17743
17744 fi
17745 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
17746 $as_echo_n "checking whether strlcpy is declared... " >&6; }
17747 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
17748   $as_echo_n "(cached) " >&6
17749 else
17750   cat >conftest.$ac_ext <<_ACEOF
17751 /* confdefs.h.  */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h.  */
17756 $ac_includes_default
17757 int
17758 main ()
17759 {
17760 #ifndef strlcpy
17761   (void) strlcpy;
17762 #endif
17763
17764   ;
17765   return 0;
17766 }
17767 _ACEOF
17768 rm -f conftest.$ac_objext
17769 if { (ac_try="$ac_compile"
17770 case "(($ac_try" in
17771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772   *) ac_try_echo=$ac_try;;
17773 esac
17774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17775 $as_echo "$ac_try_echo") >&5
17776   (eval "$ac_compile") 2>conftest.er1
17777   ac_status=$?
17778   grep -v '^ *+' conftest.er1 >conftest.err
17779   rm -f conftest.er1
17780   cat conftest.err >&5
17781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); } && {
17783          test -z "$ac_c_werror_flag" ||
17784          test ! -s conftest.err
17785        } && test -s conftest.$ac_objext; then
17786   ac_cv_have_decl_strlcpy=yes
17787 else
17788   $as_echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791         ac_cv_have_decl_strlcpy=no
17792 fi
17793
17794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17795 fi
17796 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
17797 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
17798 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
17799
17800 cat >>confdefs.h <<_ACEOF
17801 #define HAVE_DECL_STRLCPY 1
17802 _ACEOF
17803
17804
17805 else
17806   cat >>confdefs.h <<_ACEOF
17807 #define HAVE_DECL_STRLCPY 0
17808 _ACEOF
17809
17810
17811 fi
17812
17813
17814 # This is probably only present on Darwin, but may as well check always
17815 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
17816 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
17817 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
17818   $as_echo_n "(cached) " >&6
17819 else
17820   cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826 #include <fcntl.h>
17827
17828 int
17829 main ()
17830 {
17831 #ifndef F_FULLFSYNC
17832   (void) F_FULLFSYNC;
17833 #endif
17834
17835   ;
17836   return 0;
17837 }
17838 _ACEOF
17839 rm -f conftest.$ac_objext
17840 if { (ac_try="$ac_compile"
17841 case "(($ac_try" in
17842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843   *) ac_try_echo=$ac_try;;
17844 esac
17845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17846 $as_echo "$ac_try_echo") >&5
17847   (eval "$ac_compile") 2>conftest.er1
17848   ac_status=$?
17849   grep -v '^ *+' conftest.er1 >conftest.err
17850   rm -f conftest.er1
17851   cat conftest.err >&5
17852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); } && {
17854          test -z "$ac_c_werror_flag" ||
17855          test ! -s conftest.err
17856        } && test -s conftest.$ac_objext; then
17857   ac_cv_have_decl_F_FULLFSYNC=yes
17858 else
17859   $as_echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17861
17862         ac_cv_have_decl_F_FULLFSYNC=no
17863 fi
17864
17865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17866 fi
17867 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
17868 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
17869 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
17870
17871 cat >>confdefs.h <<_ACEOF
17872 #define HAVE_DECL_F_FULLFSYNC 1
17873 _ACEOF
17874
17875
17876 else
17877   cat >>confdefs.h <<_ACEOF
17878 #define HAVE_DECL_F_FULLFSYNC 0
17879 _ACEOF
17880
17881
17882 fi
17883
17884
17885
17886 HAVE_IPV6=no
17887 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
17888 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
17889 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
17890   $as_echo_n "(cached) " >&6
17891 else
17892   ac_cv_type_struct_sockaddr_in6=no
17893 cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h.  */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h.  */
17899 $ac_includes_default
17900 #include <netinet/in.h>
17901
17902 int
17903 main ()
17904 {
17905 if (sizeof (struct sockaddr_in6))
17906        return 0;
17907   ;
17908   return 0;
17909 }
17910 _ACEOF
17911 rm -f conftest.$ac_objext
17912 if { (ac_try="$ac_compile"
17913 case "(($ac_try" in
17914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915   *) ac_try_echo=$ac_try;;
17916 esac
17917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17918 $as_echo "$ac_try_echo") >&5
17919   (eval "$ac_compile") 2>conftest.er1
17920   ac_status=$?
17921   grep -v '^ *+' conftest.er1 >conftest.err
17922   rm -f conftest.er1
17923   cat conftest.err >&5
17924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); } && {
17926          test -z "$ac_c_werror_flag" ||
17927          test ! -s conftest.err
17928        } && test -s conftest.$ac_objext; then
17929   cat >conftest.$ac_ext <<_ACEOF
17930 /* confdefs.h.  */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h.  */
17935 $ac_includes_default
17936 #include <netinet/in.h>
17937
17938 int
17939 main ()
17940 {
17941 if (sizeof ((struct sockaddr_in6)))
17942           return 0;
17943   ;
17944   return 0;
17945 }
17946 _ACEOF
17947 rm -f conftest.$ac_objext
17948 if { (ac_try="$ac_compile"
17949 case "(($ac_try" in
17950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951   *) ac_try_echo=$ac_try;;
17952 esac
17953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17954 $as_echo "$ac_try_echo") >&5
17955   (eval "$ac_compile") 2>conftest.er1
17956   ac_status=$?
17957   grep -v '^ *+' conftest.er1 >conftest.err
17958   rm -f conftest.er1
17959   cat conftest.err >&5
17960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); } && {
17962          test -z "$ac_c_werror_flag" ||
17963          test ! -s conftest.err
17964        } && test -s conftest.$ac_objext; then
17965   :
17966 else
17967   $as_echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17969
17970         ac_cv_type_struct_sockaddr_in6=yes
17971 fi
17972
17973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17974 else
17975   $as_echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17977
17978
17979 fi
17980
17981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17982 fi
17983 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
17984 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
17985 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
17986
17987 cat >>confdefs.h <<\_ACEOF
17988 #define HAVE_IPV6 1
17989 _ACEOF
17990
17991          HAVE_IPV6=yes
17992 fi
17993
17994
17995
17996 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
17997 $as_echo_n "checking for PS_STRINGS... " >&6; }
17998 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
17999   $as_echo_n "(cached) " >&6
18000 else
18001   cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h.  */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h.  */
18007 #include <machine/vmparam.h>
18008 #include <sys/exec.h>
18009
18010 int
18011 main ()
18012 {
18013 PS_STRINGS->ps_nargvstr = 1;
18014 PS_STRINGS->ps_argvstr = "foo";
18015   ;
18016   return 0;
18017 }
18018 _ACEOF
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (ac_try="$ac_link"
18021 case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18026 $as_echo "$ac_try_echo") >&5
18027   (eval "$ac_link") 2>conftest.er1
18028   ac_status=$?
18029   grep -v '^ *+' conftest.er1 >conftest.err
18030   rm -f conftest.er1
18031   cat conftest.err >&5
18032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033   (exit $ac_status); } && {
18034          test -z "$ac_c_werror_flag" ||
18035          test ! -s conftest.err
18036        } && test -s conftest$ac_exeext && {
18037          test "$cross_compiling" = yes ||
18038          $as_test_x conftest$ac_exeext
18039        }; then
18040   pgac_cv_var_PS_STRINGS=yes
18041 else
18042   $as_echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18044
18045         pgac_cv_var_PS_STRINGS=no
18046 fi
18047
18048 rm -rf conftest.dSYM
18049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18050       conftest$ac_exeext conftest.$ac_ext
18051 fi
18052 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
18053 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
18054 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
18055
18056 cat >>confdefs.h <<\_ACEOF
18057 #define HAVE_PS_STRINGS /**/
18058 _ACEOF
18059
18060 fi
18061
18062
18063 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
18064 # is missing.  Yes, there are machines that have only one.  We may
18065 # also decide to use snprintf.c if snprintf() is present but does not
18066 # have all the features we need --- see below.
18067
18068 if test "$PORTNAME" = "win32"; then
18069   # Win32 gets snprintf.c built unconditionally.
18070   #
18071   # To properly translate all NLS languages strings, we must support the
18072   # *printf() %$ format, which allows *printf() arguments to be selected
18073   # by position in the translated string.
18074   #
18075   # libintl versions < 0.13 use the native *printf() functions, and Win32
18076   # *printf() doesn't understand %$, so we must use our /port versions,
18077   # which do understand %$. libintl versions >= 0.13 include their own
18078   # *printf versions on Win32.  The libintl 0.13 release note text is:
18079   #
18080   #   C format strings with positions, as they arise when a translator
18081   #   needs to reorder a sentence, are now supported on all platforms.
18082   #   On those few platforms (NetBSD and Woe32) for which the native
18083   #   printf()/fprintf()/... functions don't support such format
18084   #   strings, replacements are provided through <libintl.h>.
18085   #
18086   # We could use libintl >= 0.13's *printf() if we were sure that we had
18087   # a litint >= 0.13 at runtime, but seeing that there is no clean way
18088   # to guarantee that, it is best to just use our own, so we are sure to
18089   # get %$ support. In include/port.h we disable the *printf() macros
18090   # that might have been defined by libintl.
18091   #
18092   # We do this unconditionally whether NLS is used or not so we are sure
18093   # that all Win32 libraries and binaries behave the same.
18094   pgac_need_repl_snprintf=yes
18095 else
18096   pgac_need_repl_snprintf=no
18097
18098 for ac_func in snprintf
18099 do
18100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18102 $as_echo_n "checking for $ac_func... " >&6; }
18103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18104   $as_echo_n "(cached) " >&6
18105 else
18106   cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h.  */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h.  */
18112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18114 #define $ac_func innocuous_$ac_func
18115
18116 /* System header to define __stub macros and hopefully few prototypes,
18117     which can conflict with char $ac_func (); below.
18118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18119     <limits.h> exists even on freestanding compilers.  */
18120
18121 #ifdef __STDC__
18122 # include <limits.h>
18123 #else
18124 # include <assert.h>
18125 #endif
18126
18127 #undef $ac_func
18128
18129 /* Override any GCC internal prototype to avoid an error.
18130    Use char because int might match the return type of a GCC
18131    builtin and then its argument prototype would still apply.  */
18132 #ifdef __cplusplus
18133 extern "C"
18134 #endif
18135 char $ac_func ();
18136 /* The GNU C library defines this for functions which it implements
18137     to always fail with ENOSYS.  Some functions are actually named
18138     something starting with __ and the normal name is an alias.  */
18139 #if defined __stub_$ac_func || defined __stub___$ac_func
18140 choke me
18141 #endif
18142
18143 int
18144 main ()
18145 {
18146 return $ac_func ();
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (ac_try="$ac_link"
18153 case "(($ac_try" in
18154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155   *) ac_try_echo=$ac_try;;
18156 esac
18157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18158 $as_echo "$ac_try_echo") >&5
18159   (eval "$ac_link") 2>conftest.er1
18160   ac_status=$?
18161   grep -v '^ *+' conftest.er1 >conftest.err
18162   rm -f conftest.er1
18163   cat conftest.err >&5
18164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); } && {
18166          test -z "$ac_c_werror_flag" ||
18167          test ! -s conftest.err
18168        } && test -s conftest$ac_exeext && {
18169          test "$cross_compiling" = yes ||
18170          $as_test_x conftest$ac_exeext
18171        }; then
18172   eval "$as_ac_var=yes"
18173 else
18174   $as_echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18176
18177         eval "$as_ac_var=no"
18178 fi
18179
18180 rm -rf conftest.dSYM
18181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18182       conftest$ac_exeext conftest.$ac_ext
18183 fi
18184 ac_res=`eval 'as_val=${'$as_ac_var'}
18185                  $as_echo "$as_val"'`
18186                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18187 $as_echo "$ac_res" >&6; }
18188 as_val=`eval 'as_val=${'$as_ac_var'}
18189                  $as_echo "$as_val"'`
18190    if test "x$as_val" = x""yes; then
18191   cat >>confdefs.h <<_ACEOF
18192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18193 _ACEOF
18194
18195 else
18196   pgac_need_repl_snprintf=yes
18197 fi
18198 done
18199
18200
18201 for ac_func in vsnprintf
18202 do
18203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18204 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18205 $as_echo_n "checking for $ac_func... " >&6; }
18206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18207   $as_echo_n "(cached) " >&6
18208 else
18209   cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h.  */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h.  */
18215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18217 #define $ac_func innocuous_$ac_func
18218
18219 /* System header to define __stub macros and hopefully few prototypes,
18220     which can conflict with char $ac_func (); below.
18221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18222     <limits.h> exists even on freestanding compilers.  */
18223
18224 #ifdef __STDC__
18225 # include <limits.h>
18226 #else
18227 # include <assert.h>
18228 #endif
18229
18230 #undef $ac_func
18231
18232 /* Override any GCC internal prototype to avoid an error.
18233    Use char because int might match the return type of a GCC
18234    builtin and then its argument prototype would still apply.  */
18235 #ifdef __cplusplus
18236 extern "C"
18237 #endif
18238 char $ac_func ();
18239 /* The GNU C library defines this for functions which it implements
18240     to always fail with ENOSYS.  Some functions are actually named
18241     something starting with __ and the normal name is an alias.  */
18242 #if defined __stub_$ac_func || defined __stub___$ac_func
18243 choke me
18244 #endif
18245
18246 int
18247 main ()
18248 {
18249 return $ac_func ();
18250   ;
18251   return 0;
18252 }
18253 _ACEOF
18254 rm -f conftest.$ac_objext conftest$ac_exeext
18255 if { (ac_try="$ac_link"
18256 case "(($ac_try" in
18257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258   *) ac_try_echo=$ac_try;;
18259 esac
18260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18261 $as_echo "$ac_try_echo") >&5
18262   (eval "$ac_link") 2>conftest.er1
18263   ac_status=$?
18264   grep -v '^ *+' conftest.er1 >conftest.err
18265   rm -f conftest.er1
18266   cat conftest.err >&5
18267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); } && {
18269          test -z "$ac_c_werror_flag" ||
18270          test ! -s conftest.err
18271        } && test -s conftest$ac_exeext && {
18272          test "$cross_compiling" = yes ||
18273          $as_test_x conftest$ac_exeext
18274        }; then
18275   eval "$as_ac_var=yes"
18276 else
18277   $as_echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18279
18280         eval "$as_ac_var=no"
18281 fi
18282
18283 rm -rf conftest.dSYM
18284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18285       conftest$ac_exeext conftest.$ac_ext
18286 fi
18287 ac_res=`eval 'as_val=${'$as_ac_var'}
18288                  $as_echo "$as_val"'`
18289                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18290 $as_echo "$ac_res" >&6; }
18291 as_val=`eval 'as_val=${'$as_ac_var'}
18292                  $as_echo "$as_val"'`
18293    if test "x$as_val" = x""yes; then
18294   cat >>confdefs.h <<_ACEOF
18295 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18296 _ACEOF
18297
18298 else
18299   pgac_need_repl_snprintf=yes
18300 fi
18301 done
18302
18303 fi
18304
18305
18306 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
18307 # include/c.h will provide declarations.  Note this is a separate test
18308 # from whether the functions exist in the C library --- there are
18309 # systems that have the functions but don't bother to declare them :-(
18310
18311 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18312 $as_echo_n "checking whether snprintf is declared... " >&6; }
18313 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18314   $as_echo_n "(cached) " >&6
18315 else
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 $ac_includes_default
18323 int
18324 main ()
18325 {
18326 #ifndef snprintf
18327   (void) snprintf;
18328 #endif
18329
18330   ;
18331   return 0;
18332 }
18333 _ACEOF
18334 rm -f conftest.$ac_objext
18335 if { (ac_try="$ac_compile"
18336 case "(($ac_try" in
18337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338   *) ac_try_echo=$ac_try;;
18339 esac
18340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18341 $as_echo "$ac_try_echo") >&5
18342   (eval "$ac_compile") 2>conftest.er1
18343   ac_status=$?
18344   grep -v '^ *+' conftest.er1 >conftest.err
18345   rm -f conftest.er1
18346   cat conftest.err >&5
18347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); } && {
18349          test -z "$ac_c_werror_flag" ||
18350          test ! -s conftest.err
18351        } && test -s conftest.$ac_objext; then
18352   ac_cv_have_decl_snprintf=yes
18353 else
18354   $as_echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357         ac_cv_have_decl_snprintf=no
18358 fi
18359
18360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18361 fi
18362 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18363 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
18364 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
18365
18366 cat >>confdefs.h <<_ACEOF
18367 #define HAVE_DECL_SNPRINTF 1
18368 _ACEOF
18369
18370
18371 else
18372   cat >>confdefs.h <<_ACEOF
18373 #define HAVE_DECL_SNPRINTF 0
18374 _ACEOF
18375
18376
18377 fi
18378 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18379 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
18380 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18381   $as_echo_n "(cached) " >&6
18382 else
18383   cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h.  */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h.  */
18389 $ac_includes_default
18390 int
18391 main ()
18392 {
18393 #ifndef vsnprintf
18394   (void) vsnprintf;
18395 #endif
18396
18397   ;
18398   return 0;
18399 }
18400 _ACEOF
18401 rm -f conftest.$ac_objext
18402 if { (ac_try="$ac_compile"
18403 case "(($ac_try" in
18404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405   *) ac_try_echo=$ac_try;;
18406 esac
18407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18408 $as_echo "$ac_try_echo") >&5
18409   (eval "$ac_compile") 2>conftest.er1
18410   ac_status=$?
18411   grep -v '^ *+' conftest.er1 >conftest.err
18412   rm -f conftest.er1
18413   cat conftest.err >&5
18414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); } && {
18416          test -z "$ac_c_werror_flag" ||
18417          test ! -s conftest.err
18418        } && test -s conftest.$ac_objext; then
18419   ac_cv_have_decl_vsnprintf=yes
18420 else
18421   $as_echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18423
18424         ac_cv_have_decl_vsnprintf=no
18425 fi
18426
18427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18428 fi
18429 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18430 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
18431 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
18432
18433 cat >>confdefs.h <<_ACEOF
18434 #define HAVE_DECL_VSNPRINTF 1
18435 _ACEOF
18436
18437
18438 else
18439   cat >>confdefs.h <<_ACEOF
18440 #define HAVE_DECL_VSNPRINTF 0
18441 _ACEOF
18442
18443
18444 fi
18445
18446
18447
18448
18449 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
18450 $as_echo_n "checking for isinf... " >&6; }
18451 if test "${ac_cv_func_isinf+set}" = set; then
18452   $as_echo_n "(cached) " >&6
18453 else
18454   cat >conftest.$ac_ext <<_ACEOF
18455 /* confdefs.h.  */
18456 _ACEOF
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h.  */
18460
18461 #include <math.h>
18462 double glob_double;
18463
18464 int
18465 main ()
18466 {
18467 return isinf(glob_double) ? 0 : 1;
18468   ;
18469   return 0;
18470 }
18471 _ACEOF
18472 rm -f conftest.$ac_objext conftest$ac_exeext
18473 if { (ac_try="$ac_link"
18474 case "(($ac_try" in
18475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476   *) ac_try_echo=$ac_try;;
18477 esac
18478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18479 $as_echo "$ac_try_echo") >&5
18480   (eval "$ac_link") 2>conftest.er1
18481   ac_status=$?
18482   grep -v '^ *+' conftest.er1 >conftest.err
18483   rm -f conftest.er1
18484   cat conftest.err >&5
18485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486   (exit $ac_status); } && {
18487          test -z "$ac_c_werror_flag" ||
18488          test ! -s conftest.err
18489        } && test -s conftest$ac_exeext && {
18490          test "$cross_compiling" = yes ||
18491          $as_test_x conftest$ac_exeext
18492        }; then
18493   ac_cv_func_isinf=yes
18494 else
18495   $as_echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18497
18498         ac_cv_func_isinf=no
18499 fi
18500
18501 rm -rf conftest.dSYM
18502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18503       conftest$ac_exeext conftest.$ac_ext
18504 fi
18505 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
18506 $as_echo "$ac_cv_func_isinf" >&6; }
18507
18508 if test $ac_cv_func_isinf = yes ; then
18509
18510 cat >>confdefs.h <<\_ACEOF
18511 #define HAVE_ISINF 1
18512 _ACEOF
18513
18514 else
18515   case " $LIBOBJS " in
18516   *" isinf.$ac_objext "* ) ;;
18517   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
18518  ;;
18519 esac
18520
18521   # Look for a way to implement a substitute for isinf()
18522
18523
18524
18525
18526 for ac_func in fpclass fp_class fp_class_d class
18527 do
18528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18529 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18530 $as_echo_n "checking for $ac_func... " >&6; }
18531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18532   $as_echo_n "(cached) " >&6
18533 else
18534   cat >conftest.$ac_ext <<_ACEOF
18535 /* confdefs.h.  */
18536 _ACEOF
18537 cat confdefs.h >>conftest.$ac_ext
18538 cat >>conftest.$ac_ext <<_ACEOF
18539 /* end confdefs.h.  */
18540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18542 #define $ac_func innocuous_$ac_func
18543
18544 /* System header to define __stub macros and hopefully few prototypes,
18545     which can conflict with char $ac_func (); below.
18546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18547     <limits.h> exists even on freestanding compilers.  */
18548
18549 #ifdef __STDC__
18550 # include <limits.h>
18551 #else
18552 # include <assert.h>
18553 #endif
18554
18555 #undef $ac_func
18556
18557 /* Override any GCC internal prototype to avoid an error.
18558    Use char because int might match the return type of a GCC
18559    builtin and then its argument prototype would still apply.  */
18560 #ifdef __cplusplus
18561 extern "C"
18562 #endif
18563 char $ac_func ();
18564 /* The GNU C library defines this for functions which it implements
18565     to always fail with ENOSYS.  Some functions are actually named
18566     something starting with __ and the normal name is an alias.  */
18567 #if defined __stub_$ac_func || defined __stub___$ac_func
18568 choke me
18569 #endif
18570
18571 int
18572 main ()
18573 {
18574 return $ac_func ();
18575   ;
18576   return 0;
18577 }
18578 _ACEOF
18579 rm -f conftest.$ac_objext conftest$ac_exeext
18580 if { (ac_try="$ac_link"
18581 case "(($ac_try" in
18582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583   *) ac_try_echo=$ac_try;;
18584 esac
18585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18586 $as_echo "$ac_try_echo") >&5
18587   (eval "$ac_link") 2>conftest.er1
18588   ac_status=$?
18589   grep -v '^ *+' conftest.er1 >conftest.err
18590   rm -f conftest.er1
18591   cat conftest.err >&5
18592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); } && {
18594          test -z "$ac_c_werror_flag" ||
18595          test ! -s conftest.err
18596        } && test -s conftest$ac_exeext && {
18597          test "$cross_compiling" = yes ||
18598          $as_test_x conftest$ac_exeext
18599        }; then
18600   eval "$as_ac_var=yes"
18601 else
18602   $as_echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18604
18605         eval "$as_ac_var=no"
18606 fi
18607
18608 rm -rf conftest.dSYM
18609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18610       conftest$ac_exeext conftest.$ac_ext
18611 fi
18612 ac_res=`eval 'as_val=${'$as_ac_var'}
18613                  $as_echo "$as_val"'`
18614                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18615 $as_echo "$ac_res" >&6; }
18616 as_val=`eval 'as_val=${'$as_ac_var'}
18617                  $as_echo "$as_val"'`
18618    if test "x$as_val" = x""yes; then
18619   cat >>confdefs.h <<_ACEOF
18620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18621 _ACEOF
18622  break
18623 fi
18624 done
18625
18626 fi
18627
18628 # Some versions of libedit contain strlcpy(); so disregard that library while
18629 # checking for these standard libc functions.
18630 pgac_save_LIBS="$LIBS"
18631 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
18648 do
18649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18650 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18651 $as_echo_n "checking for $ac_func... " >&6; }
18652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18653   $as_echo_n "(cached) " >&6
18654 else
18655   cat >conftest.$ac_ext <<_ACEOF
18656 /* confdefs.h.  */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h.  */
18661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18663 #define $ac_func innocuous_$ac_func
18664
18665 /* System header to define __stub macros and hopefully few prototypes,
18666     which can conflict with char $ac_func (); below.
18667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18668     <limits.h> exists even on freestanding compilers.  */
18669
18670 #ifdef __STDC__
18671 # include <limits.h>
18672 #else
18673 # include <assert.h>
18674 #endif
18675
18676 #undef $ac_func
18677
18678 /* Override any GCC internal prototype to avoid an error.
18679    Use char because int might match the return type of a GCC
18680    builtin and then its argument prototype would still apply.  */
18681 #ifdef __cplusplus
18682 extern "C"
18683 #endif
18684 char $ac_func ();
18685 /* The GNU C library defines this for functions which it implements
18686     to always fail with ENOSYS.  Some functions are actually named
18687     something starting with __ and the normal name is an alias.  */
18688 #if defined __stub_$ac_func || defined __stub___$ac_func
18689 choke me
18690 #endif
18691
18692 int
18693 main ()
18694 {
18695 return $ac_func ();
18696   ;
18697   return 0;
18698 }
18699 _ACEOF
18700 rm -f conftest.$ac_objext conftest$ac_exeext
18701 if { (ac_try="$ac_link"
18702 case "(($ac_try" in
18703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704   *) ac_try_echo=$ac_try;;
18705 esac
18706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18707 $as_echo "$ac_try_echo") >&5
18708   (eval "$ac_link") 2>conftest.er1
18709   ac_status=$?
18710   grep -v '^ *+' conftest.er1 >conftest.err
18711   rm -f conftest.er1
18712   cat conftest.err >&5
18713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); } && {
18715          test -z "$ac_c_werror_flag" ||
18716          test ! -s conftest.err
18717        } && test -s conftest$ac_exeext && {
18718          test "$cross_compiling" = yes ||
18719          $as_test_x conftest$ac_exeext
18720        }; then
18721   eval "$as_ac_var=yes"
18722 else
18723   $as_echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18725
18726         eval "$as_ac_var=no"
18727 fi
18728
18729 rm -rf conftest.dSYM
18730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18731       conftest$ac_exeext conftest.$ac_ext
18732 fi
18733 ac_res=`eval 'as_val=${'$as_ac_var'}
18734                  $as_echo "$as_val"'`
18735                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18736 $as_echo "$ac_res" >&6; }
18737 as_val=`eval 'as_val=${'$as_ac_var'}
18738                  $as_echo "$as_val"'`
18739    if test "x$as_val" = x""yes; then
18740   cat >>confdefs.h <<_ACEOF
18741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18742 _ACEOF
18743
18744 else
18745   case " $LIBOBJS " in
18746   *" $ac_func.$ac_objext "* ) ;;
18747   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18748  ;;
18749 esac
18750
18751 fi
18752 done
18753
18754
18755
18756 case $host_os in
18757
18758         # Windows uses a specialised env handler
18759         mingw*)
18760
18761 cat >>confdefs.h <<\_ACEOF
18762 #define HAVE_UNSETENV 1
18763 _ACEOF
18764
18765                 ac_cv_func_unsetenv=yes;;
18766         *)
18767
18768 for ac_func in unsetenv
18769 do
18770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18771 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18772 $as_echo_n "checking for $ac_func... " >&6; }
18773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18774   $as_echo_n "(cached) " >&6
18775 else
18776   cat >conftest.$ac_ext <<_ACEOF
18777 /* confdefs.h.  */
18778 _ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h.  */
18782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18784 #define $ac_func innocuous_$ac_func
18785
18786 /* System header to define __stub macros and hopefully few prototypes,
18787     which can conflict with char $ac_func (); below.
18788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18789     <limits.h> exists even on freestanding compilers.  */
18790
18791 #ifdef __STDC__
18792 # include <limits.h>
18793 #else
18794 # include <assert.h>
18795 #endif
18796
18797 #undef $ac_func
18798
18799 /* Override any GCC internal prototype to avoid an error.
18800    Use char because int might match the return type of a GCC
18801    builtin and then its argument prototype would still apply.  */
18802 #ifdef __cplusplus
18803 extern "C"
18804 #endif
18805 char $ac_func ();
18806 /* The GNU C library defines this for functions which it implements
18807     to always fail with ENOSYS.  Some functions are actually named
18808     something starting with __ and the normal name is an alias.  */
18809 #if defined __stub_$ac_func || defined __stub___$ac_func
18810 choke me
18811 #endif
18812
18813 int
18814 main ()
18815 {
18816 return $ac_func ();
18817   ;
18818   return 0;
18819 }
18820 _ACEOF
18821 rm -f conftest.$ac_objext conftest$ac_exeext
18822 if { (ac_try="$ac_link"
18823 case "(($ac_try" in
18824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825   *) ac_try_echo=$ac_try;;
18826 esac
18827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18828 $as_echo "$ac_try_echo") >&5
18829   (eval "$ac_link") 2>conftest.er1
18830   ac_status=$?
18831   grep -v '^ *+' conftest.er1 >conftest.err
18832   rm -f conftest.er1
18833   cat conftest.err >&5
18834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); } && {
18836          test -z "$ac_c_werror_flag" ||
18837          test ! -s conftest.err
18838        } && test -s conftest$ac_exeext && {
18839          test "$cross_compiling" = yes ||
18840          $as_test_x conftest$ac_exeext
18841        }; then
18842   eval "$as_ac_var=yes"
18843 else
18844   $as_echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18846
18847         eval "$as_ac_var=no"
18848 fi
18849
18850 rm -rf conftest.dSYM
18851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18852       conftest$ac_exeext conftest.$ac_ext
18853 fi
18854 ac_res=`eval 'as_val=${'$as_ac_var'}
18855                  $as_echo "$as_val"'`
18856                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18857 $as_echo "$ac_res" >&6; }
18858 as_val=`eval 'as_val=${'$as_ac_var'}
18859                  $as_echo "$as_val"'`
18860    if test "x$as_val" = x""yes; then
18861   cat >>confdefs.h <<_ACEOF
18862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18863 _ACEOF
18864
18865 else
18866   case " $LIBOBJS " in
18867   *" $ac_func.$ac_objext "* ) ;;
18868   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18869  ;;
18870 esac
18871
18872 fi
18873 done
18874
18875
18876                 ;;
18877 esac
18878
18879
18880 LIBS="$pgac_save_LIBS"
18881
18882 # System's version of getaddrinfo(), if any, may be used only if we found
18883 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
18884 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
18885 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
18886 # because we want to use our own getaddrinfo.c on Windows anyway.)
18887 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
18888
18889 for ac_func in getaddrinfo
18890 do
18891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18893 $as_echo_n "checking for $ac_func... " >&6; }
18894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18895   $as_echo_n "(cached) " >&6
18896 else
18897   cat >conftest.$ac_ext <<_ACEOF
18898 /* confdefs.h.  */
18899 _ACEOF
18900 cat confdefs.h >>conftest.$ac_ext
18901 cat >>conftest.$ac_ext <<_ACEOF
18902 /* end confdefs.h.  */
18903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18905 #define $ac_func innocuous_$ac_func
18906
18907 /* System header to define __stub macros and hopefully few prototypes,
18908     which can conflict with char $ac_func (); below.
18909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18910     <limits.h> exists even on freestanding compilers.  */
18911
18912 #ifdef __STDC__
18913 # include <limits.h>
18914 #else
18915 # include <assert.h>
18916 #endif
18917
18918 #undef $ac_func
18919
18920 /* Override any GCC internal prototype to avoid an error.
18921    Use char because int might match the return type of a GCC
18922    builtin and then its argument prototype would still apply.  */
18923 #ifdef __cplusplus
18924 extern "C"
18925 #endif
18926 char $ac_func ();
18927 /* The GNU C library defines this for functions which it implements
18928     to always fail with ENOSYS.  Some functions are actually named
18929     something starting with __ and the normal name is an alias.  */
18930 #if defined __stub_$ac_func || defined __stub___$ac_func
18931 choke me
18932 #endif
18933
18934 int
18935 main ()
18936 {
18937 return $ac_func ();
18938   ;
18939   return 0;
18940 }
18941 _ACEOF
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (ac_try="$ac_link"
18944 case "(($ac_try" in
18945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946   *) ac_try_echo=$ac_try;;
18947 esac
18948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18949 $as_echo "$ac_try_echo") >&5
18950   (eval "$ac_link") 2>conftest.er1
18951   ac_status=$?
18952   grep -v '^ *+' conftest.er1 >conftest.err
18953   rm -f conftest.er1
18954   cat conftest.err >&5
18955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); } && {
18957          test -z "$ac_c_werror_flag" ||
18958          test ! -s conftest.err
18959        } && test -s conftest$ac_exeext && {
18960          test "$cross_compiling" = yes ||
18961          $as_test_x conftest$ac_exeext
18962        }; then
18963   eval "$as_ac_var=yes"
18964 else
18965   $as_echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968         eval "$as_ac_var=no"
18969 fi
18970
18971 rm -rf conftest.dSYM
18972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18973       conftest$ac_exeext conftest.$ac_ext
18974 fi
18975 ac_res=`eval 'as_val=${'$as_ac_var'}
18976                  $as_echo "$as_val"'`
18977                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18978 $as_echo "$ac_res" >&6; }
18979 as_val=`eval 'as_val=${'$as_ac_var'}
18980                  $as_echo "$as_val"'`
18981    if test "x$as_val" = x""yes; then
18982   cat >>confdefs.h <<_ACEOF
18983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18984 _ACEOF
18985
18986 else
18987   case " $LIBOBJS " in
18988   *" $ac_func.$ac_objext "* ) ;;
18989   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18990  ;;
18991 esac
18992
18993 fi
18994 done
18995
18996
18997 else
18998   case " $LIBOBJS " in
18999   *" getaddrinfo.$ac_objext "* ) ;;
19000   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
19001  ;;
19002 esac
19003
19004 fi
19005
19006 # Similarly, use system's getopt_long() only if system provides struct option.
19007 if test x"$ac_cv_type_struct_option" = xyes ; then
19008
19009 for ac_func in getopt_long
19010 do
19011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19012 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19013 $as_echo_n "checking for $ac_func... " >&6; }
19014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19015   $as_echo_n "(cached) " >&6
19016 else
19017   cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19025 #define $ac_func innocuous_$ac_func
19026
19027 /* System header to define __stub macros and hopefully few prototypes,
19028     which can conflict with char $ac_func (); below.
19029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19030     <limits.h> exists even on freestanding compilers.  */
19031
19032 #ifdef __STDC__
19033 # include <limits.h>
19034 #else
19035 # include <assert.h>
19036 #endif
19037
19038 #undef $ac_func
19039
19040 /* Override any GCC internal prototype to avoid an error.
19041    Use char because int might match the return type of a GCC
19042    builtin and then its argument prototype would still apply.  */
19043 #ifdef __cplusplus
19044 extern "C"
19045 #endif
19046 char $ac_func ();
19047 /* The GNU C library defines this for functions which it implements
19048     to always fail with ENOSYS.  Some functions are actually named
19049     something starting with __ and the normal name is an alias.  */
19050 #if defined __stub_$ac_func || defined __stub___$ac_func
19051 choke me
19052 #endif
19053
19054 int
19055 main ()
19056 {
19057 return $ac_func ();
19058   ;
19059   return 0;
19060 }
19061 _ACEOF
19062 rm -f conftest.$ac_objext conftest$ac_exeext
19063 if { (ac_try="$ac_link"
19064 case "(($ac_try" in
19065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066   *) ac_try_echo=$ac_try;;
19067 esac
19068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19069 $as_echo "$ac_try_echo") >&5
19070   (eval "$ac_link") 2>conftest.er1
19071   ac_status=$?
19072   grep -v '^ *+' conftest.er1 >conftest.err
19073   rm -f conftest.er1
19074   cat conftest.err >&5
19075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076   (exit $ac_status); } && {
19077          test -z "$ac_c_werror_flag" ||
19078          test ! -s conftest.err
19079        } && test -s conftest$ac_exeext && {
19080          test "$cross_compiling" = yes ||
19081          $as_test_x conftest$ac_exeext
19082        }; then
19083   eval "$as_ac_var=yes"
19084 else
19085   $as_echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19087
19088         eval "$as_ac_var=no"
19089 fi
19090
19091 rm -rf conftest.dSYM
19092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19093       conftest$ac_exeext conftest.$ac_ext
19094 fi
19095 ac_res=`eval 'as_val=${'$as_ac_var'}
19096                  $as_echo "$as_val"'`
19097                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19098 $as_echo "$ac_res" >&6; }
19099 as_val=`eval 'as_val=${'$as_ac_var'}
19100                  $as_echo "$as_val"'`
19101    if test "x$as_val" = x""yes; then
19102   cat >>confdefs.h <<_ACEOF
19103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19104 _ACEOF
19105
19106 else
19107   case " $LIBOBJS " in
19108   *" $ac_func.$ac_objext "* ) ;;
19109   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19110  ;;
19111 esac
19112
19113 fi
19114 done
19115
19116
19117 else
19118   case " $LIBOBJS " in
19119   *" getopt_long.$ac_objext "* ) ;;
19120   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
19121  ;;
19122 esac
19123
19124 fi
19125
19126 # Solaris' getopt() doesn't do what we want for long options, so always use
19127 # our version on that platform.
19128 if test "$PORTNAME" = "solaris"; then
19129   case " $LIBOBJS " in
19130   *" getopt.$ac_objext "* ) ;;
19131   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
19132  ;;
19133 esac
19134
19135 fi
19136
19137 # Cygwin's erand48() is broken (always returns zero) in some releases,
19138 # so force use of ours.
19139 if test "$PORTNAME" = "cygwin"; then
19140   case " $LIBOBJS " in
19141   *" erand48.$ac_objext "* ) ;;
19142   *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
19143  ;;
19144 esac
19145
19146 fi
19147
19148 # Win32 support
19149 if test "$PORTNAME" = "win32"; then
19150
19151 for ac_func in gettimeofday
19152 do
19153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19154 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19155 $as_echo_n "checking for $ac_func... " >&6; }
19156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19157   $as_echo_n "(cached) " >&6
19158 else
19159   cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h.  */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h.  */
19165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19167 #define $ac_func innocuous_$ac_func
19168
19169 /* System header to define __stub macros and hopefully few prototypes,
19170     which can conflict with char $ac_func (); below.
19171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19172     <limits.h> exists even on freestanding compilers.  */
19173
19174 #ifdef __STDC__
19175 # include <limits.h>
19176 #else
19177 # include <assert.h>
19178 #endif
19179
19180 #undef $ac_func
19181
19182 /* Override any GCC internal prototype to avoid an error.
19183    Use char because int might match the return type of a GCC
19184    builtin and then its argument prototype would still apply.  */
19185 #ifdef __cplusplus
19186 extern "C"
19187 #endif
19188 char $ac_func ();
19189 /* The GNU C library defines this for functions which it implements
19190     to always fail with ENOSYS.  Some functions are actually named
19191     something starting with __ and the normal name is an alias.  */
19192 #if defined __stub_$ac_func || defined __stub___$ac_func
19193 choke me
19194 #endif
19195
19196 int
19197 main ()
19198 {
19199 return $ac_func ();
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (ac_try="$ac_link"
19206 case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19211 $as_echo "$ac_try_echo") >&5
19212   (eval "$ac_link") 2>conftest.er1
19213   ac_status=$?
19214   grep -v '^ *+' conftest.er1 >conftest.err
19215   rm -f conftest.er1
19216   cat conftest.err >&5
19217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); } && {
19219          test -z "$ac_c_werror_flag" ||
19220          test ! -s conftest.err
19221        } && test -s conftest$ac_exeext && {
19222          test "$cross_compiling" = yes ||
19223          $as_test_x conftest$ac_exeext
19224        }; then
19225   eval "$as_ac_var=yes"
19226 else
19227   $as_echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230         eval "$as_ac_var=no"
19231 fi
19232
19233 rm -rf conftest.dSYM
19234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19235       conftest$ac_exeext conftest.$ac_ext
19236 fi
19237 ac_res=`eval 'as_val=${'$as_ac_var'}
19238                  $as_echo "$as_val"'`
19239                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19240 $as_echo "$ac_res" >&6; }
19241 as_val=`eval 'as_val=${'$as_ac_var'}
19242                  $as_echo "$as_val"'`
19243    if test "x$as_val" = x""yes; then
19244   cat >>confdefs.h <<_ACEOF
19245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19246 _ACEOF
19247
19248 else
19249   case " $LIBOBJS " in
19250   *" $ac_func.$ac_objext "* ) ;;
19251   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19252  ;;
19253 esac
19254
19255 fi
19256 done
19257
19258
19259 case " $LIBOBJS " in
19260   *" kill.$ac_objext "* ) ;;
19261   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
19262  ;;
19263 esac
19264
19265 case " $LIBOBJS " in
19266   *" open.$ac_objext "* ) ;;
19267   *) LIBOBJS="$LIBOBJS open.$ac_objext"
19268  ;;
19269 esac
19270
19271 case " $LIBOBJS " in
19272   *" win32env.$ac_objext "* ) ;;
19273   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
19274  ;;
19275 esac
19276
19277 case " $LIBOBJS " in
19278   *" win32error.$ac_objext "* ) ;;
19279   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
19280  ;;
19281 esac
19282
19283
19284 cat >>confdefs.h <<\_ACEOF
19285 #define HAVE_SYMLINK 1
19286 _ACEOF
19287
19288 fi
19289
19290 if test "$with_readline" = yes; then
19291   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
19292 $as_echo_n "checking for rl_completion_append_character... " >&6; }
19293 cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h.  */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h.  */
19299 #include <stdio.h>
19300 #ifdef HAVE_READLINE_READLINE_H
19301 # include <readline/readline.h>
19302 #elif defined(HAVE_READLINE_H)
19303 # include <readline.h>
19304 #endif
19305
19306 int
19307 main ()
19308 {
19309 rl_completion_append_character = 'x';
19310   ;
19311   return 0;
19312 }
19313 _ACEOF
19314 rm -f conftest.$ac_objext conftest$ac_exeext
19315 if { (ac_try="$ac_link"
19316 case "(($ac_try" in
19317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318   *) ac_try_echo=$ac_try;;
19319 esac
19320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19321 $as_echo "$ac_try_echo") >&5
19322   (eval "$ac_link") 2>conftest.er1
19323   ac_status=$?
19324   grep -v '^ *+' conftest.er1 >conftest.err
19325   rm -f conftest.er1
19326   cat conftest.err >&5
19327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } && {
19329          test -z "$ac_c_werror_flag" ||
19330          test ! -s conftest.err
19331        } && test -s conftest$ac_exeext && {
19332          test "$cross_compiling" = yes ||
19333          $as_test_x conftest$ac_exeext
19334        }; then
19335   { $as_echo "$as_me:$LINENO: result: yes" >&5
19336 $as_echo "yes" >&6; }
19337
19338 cat >>confdefs.h <<\_ACEOF
19339 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
19340 _ACEOF
19341
19342 else
19343   $as_echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19345
19346         { $as_echo "$as_me:$LINENO: result: no" >&5
19347 $as_echo "no" >&6; }
19348 fi
19349
19350 rm -rf conftest.dSYM
19351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19352       conftest$ac_exeext conftest.$ac_ext
19353
19354
19355 for ac_func in rl_completion_matches rl_filename_completion_function
19356 do
19357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19359 $as_echo_n "checking for $ac_func... " >&6; }
19360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19361   $as_echo_n "(cached) " >&6
19362 else
19363   cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19371 #define $ac_func innocuous_$ac_func
19372
19373 /* System header to define __stub macros and hopefully few prototypes,
19374     which can conflict with char $ac_func (); below.
19375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19376     <limits.h> exists even on freestanding compilers.  */
19377
19378 #ifdef __STDC__
19379 # include <limits.h>
19380 #else
19381 # include <assert.h>
19382 #endif
19383
19384 #undef $ac_func
19385
19386 /* Override any GCC internal prototype to avoid an error.
19387    Use char because int might match the return type of a GCC
19388    builtin and then its argument prototype would still apply.  */
19389 #ifdef __cplusplus
19390 extern "C"
19391 #endif
19392 char $ac_func ();
19393 /* The GNU C library defines this for functions which it implements
19394     to always fail with ENOSYS.  Some functions are actually named
19395     something starting with __ and the normal name is an alias.  */
19396 #if defined __stub_$ac_func || defined __stub___$ac_func
19397 choke me
19398 #endif
19399
19400 int
19401 main ()
19402 {
19403 return $ac_func ();
19404   ;
19405   return 0;
19406 }
19407 _ACEOF
19408 rm -f conftest.$ac_objext conftest$ac_exeext
19409 if { (ac_try="$ac_link"
19410 case "(($ac_try" in
19411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412   *) ac_try_echo=$ac_try;;
19413 esac
19414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19415 $as_echo "$ac_try_echo") >&5
19416   (eval "$ac_link") 2>conftest.er1
19417   ac_status=$?
19418   grep -v '^ *+' conftest.er1 >conftest.err
19419   rm -f conftest.er1
19420   cat conftest.err >&5
19421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); } && {
19423          test -z "$ac_c_werror_flag" ||
19424          test ! -s conftest.err
19425        } && test -s conftest$ac_exeext && {
19426          test "$cross_compiling" = yes ||
19427          $as_test_x conftest$ac_exeext
19428        }; then
19429   eval "$as_ac_var=yes"
19430 else
19431   $as_echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434         eval "$as_ac_var=no"
19435 fi
19436
19437 rm -rf conftest.dSYM
19438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19439       conftest$ac_exeext conftest.$ac_ext
19440 fi
19441 ac_res=`eval 'as_val=${'$as_ac_var'}
19442                  $as_echo "$as_val"'`
19443                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19444 $as_echo "$ac_res" >&6; }
19445 as_val=`eval 'as_val=${'$as_ac_var'}
19446                  $as_echo "$as_val"'`
19447    if test "x$as_val" = x""yes; then
19448   cat >>confdefs.h <<_ACEOF
19449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19450 _ACEOF
19451
19452 fi
19453 done
19454
19455
19456 for ac_func in replace_history_entry
19457 do
19458 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19459 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19460 $as_echo_n "checking for $ac_func... " >&6; }
19461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19462   $as_echo_n "(cached) " >&6
19463 else
19464   cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19472 #define $ac_func innocuous_$ac_func
19473
19474 /* System header to define __stub macros and hopefully few prototypes,
19475     which can conflict with char $ac_func (); below.
19476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19477     <limits.h> exists even on freestanding compilers.  */
19478
19479 #ifdef __STDC__
19480 # include <limits.h>
19481 #else
19482 # include <assert.h>
19483 #endif
19484
19485 #undef $ac_func
19486
19487 /* Override any GCC internal prototype to avoid an error.
19488    Use char because int might match the return type of a GCC
19489    builtin and then its argument prototype would still apply.  */
19490 #ifdef __cplusplus
19491 extern "C"
19492 #endif
19493 char $ac_func ();
19494 /* The GNU C library defines this for functions which it implements
19495     to always fail with ENOSYS.  Some functions are actually named
19496     something starting with __ and the normal name is an alias.  */
19497 #if defined __stub_$ac_func || defined __stub___$ac_func
19498 choke me
19499 #endif
19500
19501 int
19502 main ()
19503 {
19504 return $ac_func ();
19505   ;
19506   return 0;
19507 }
19508 _ACEOF
19509 rm -f conftest.$ac_objext conftest$ac_exeext
19510 if { (ac_try="$ac_link"
19511 case "(($ac_try" in
19512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513   *) ac_try_echo=$ac_try;;
19514 esac
19515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19516 $as_echo "$ac_try_echo") >&5
19517   (eval "$ac_link") 2>conftest.er1
19518   ac_status=$?
19519   grep -v '^ *+' conftest.er1 >conftest.err
19520   rm -f conftest.er1
19521   cat conftest.err >&5
19522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); } && {
19524          test -z "$ac_c_werror_flag" ||
19525          test ! -s conftest.err
19526        } && test -s conftest$ac_exeext && {
19527          test "$cross_compiling" = yes ||
19528          $as_test_x conftest$ac_exeext
19529        }; then
19530   eval "$as_ac_var=yes"
19531 else
19532   $as_echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19534
19535         eval "$as_ac_var=no"
19536 fi
19537
19538 rm -rf conftest.dSYM
19539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19540       conftest$ac_exeext conftest.$ac_ext
19541 fi
19542 ac_res=`eval 'as_val=${'$as_ac_var'}
19543                  $as_echo "$as_val"'`
19544                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19545 $as_echo "$ac_res" >&6; }
19546 as_val=`eval 'as_val=${'$as_ac_var'}
19547                  $as_echo "$as_val"'`
19548    if test "x$as_val" = x""yes; then
19549   cat >>confdefs.h <<_ACEOF
19550 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19551 _ACEOF
19552
19553 fi
19554 done
19555
19556 fi
19557
19558
19559 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19560 $as_echo_n "checking for sigsetjmp... " >&6; }
19561 cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h.  */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h.  */
19567 #include <setjmp.h>
19568 int
19569 main ()
19570 {
19571 sigjmp_buf x; sigsetjmp(x, 1);
19572   ;
19573   return 0;
19574 }
19575 _ACEOF
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (ac_try="$ac_link"
19578 case "(($ac_try" in
19579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580   *) ac_try_echo=$ac_try;;
19581 esac
19582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19583 $as_echo "$ac_try_echo") >&5
19584   (eval "$ac_link") 2>conftest.er1
19585   ac_status=$?
19586   grep -v '^ *+' conftest.er1 >conftest.err
19587   rm -f conftest.er1
19588   cat conftest.err >&5
19589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); } && {
19591          test -z "$ac_c_werror_flag" ||
19592          test ! -s conftest.err
19593        } && test -s conftest$ac_exeext && {
19594          test "$cross_compiling" = yes ||
19595          $as_test_x conftest$ac_exeext
19596        }; then
19597
19598 cat >>confdefs.h <<\_ACEOF
19599 #define HAVE_SIGSETJMP 1
19600 _ACEOF
19601
19602 { $as_echo "$as_me:$LINENO: result: yes" >&5
19603 $as_echo "yes" >&6; }
19604 else
19605   $as_echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19607
19608         { $as_echo "$as_me:$LINENO: result: no" >&5
19609 $as_echo "no" >&6; }
19610 fi
19611
19612 rm -rf conftest.dSYM
19613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19614       conftest$ac_exeext conftest.$ac_ext
19615
19616 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19617 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19618 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19619   $as_echo_n "(cached) " >&6
19620 else
19621   cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h.  */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h.  */
19627 #include <signal.h>
19628 /* NetBSD declares sys_siglist in unistd.h.  */
19629 #ifdef HAVE_UNISTD_H
19630 # include <unistd.h>
19631 #endif
19632
19633
19634 int
19635 main ()
19636 {
19637 #ifndef sys_siglist
19638   (void) sys_siglist;
19639 #endif
19640
19641   ;
19642   return 0;
19643 }
19644 _ACEOF
19645 rm -f conftest.$ac_objext
19646 if { (ac_try="$ac_compile"
19647 case "(($ac_try" in
19648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649   *) ac_try_echo=$ac_try;;
19650 esac
19651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19652 $as_echo "$ac_try_echo") >&5
19653   (eval "$ac_compile") 2>conftest.er1
19654   ac_status=$?
19655   grep -v '^ *+' conftest.er1 >conftest.err
19656   rm -f conftest.er1
19657   cat conftest.err >&5
19658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); } && {
19660          test -z "$ac_c_werror_flag" ||
19661          test ! -s conftest.err
19662        } && test -s conftest.$ac_objext; then
19663   ac_cv_have_decl_sys_siglist=yes
19664 else
19665   $as_echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19667
19668         ac_cv_have_decl_sys_siglist=no
19669 fi
19670
19671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19672 fi
19673 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19674 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19675 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
19676
19677 cat >>confdefs.h <<_ACEOF
19678 #define HAVE_DECL_SYS_SIGLIST 1
19679 _ACEOF
19680
19681
19682 else
19683   cat >>confdefs.h <<_ACEOF
19684 #define HAVE_DECL_SYS_SIGLIST 0
19685 _ACEOF
19686
19687
19688 fi
19689
19690
19691
19692
19693 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
19694 $as_echo_n "checking for syslog... " >&6; }
19695 if test "${ac_cv_func_syslog+set}" = set; then
19696   $as_echo_n "(cached) " >&6
19697 else
19698   cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h.  */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h.  */
19704 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19706 #define syslog innocuous_syslog
19707
19708 /* System header to define __stub macros and hopefully few prototypes,
19709     which can conflict with char syslog (); below.
19710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19711     <limits.h> exists even on freestanding compilers.  */
19712
19713 #ifdef __STDC__
19714 # include <limits.h>
19715 #else
19716 # include <assert.h>
19717 #endif
19718
19719 #undef syslog
19720
19721 /* Override any GCC internal prototype to avoid an error.
19722    Use char because int might match the return type of a GCC
19723    builtin and then its argument prototype would still apply.  */
19724 #ifdef __cplusplus
19725 extern "C"
19726 #endif
19727 char syslog ();
19728 /* The GNU C library defines this for functions which it implements
19729     to always fail with ENOSYS.  Some functions are actually named
19730     something starting with __ and the normal name is an alias.  */
19731 #if defined __stub_syslog || defined __stub___syslog
19732 choke me
19733 #endif
19734
19735 int
19736 main ()
19737 {
19738 return syslog ();
19739   ;
19740   return 0;
19741 }
19742 _ACEOF
19743 rm -f conftest.$ac_objext conftest$ac_exeext
19744 if { (ac_try="$ac_link"
19745 case "(($ac_try" in
19746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747   *) ac_try_echo=$ac_try;;
19748 esac
19749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19750 $as_echo "$ac_try_echo") >&5
19751   (eval "$ac_link") 2>conftest.er1
19752   ac_status=$?
19753   grep -v '^ *+' conftest.er1 >conftest.err
19754   rm -f conftest.er1
19755   cat conftest.err >&5
19756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } && {
19758          test -z "$ac_c_werror_flag" ||
19759          test ! -s conftest.err
19760        } && test -s conftest$ac_exeext && {
19761          test "$cross_compiling" = yes ||
19762          $as_test_x conftest$ac_exeext
19763        }; then
19764   ac_cv_func_syslog=yes
19765 else
19766   $as_echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19768
19769         ac_cv_func_syslog=no
19770 fi
19771
19772 rm -rf conftest.dSYM
19773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19774       conftest$ac_exeext conftest.$ac_ext
19775 fi
19776 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19777 $as_echo "$ac_cv_func_syslog" >&6; }
19778 if test "x$ac_cv_func_syslog" = x""yes; then
19779   if test "${ac_cv_header_syslog_h+set}" = set; then
19780   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
19781 $as_echo_n "checking for syslog.h... " >&6; }
19782 if test "${ac_cv_header_syslog_h+set}" = set; then
19783   $as_echo_n "(cached) " >&6
19784 fi
19785 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
19786 $as_echo "$ac_cv_header_syslog_h" >&6; }
19787 else
19788   # Is the header compilable?
19789 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
19790 $as_echo_n "checking syslog.h usability... " >&6; }
19791 cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h.  */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h.  */
19797 $ac_includes_default
19798 #include <syslog.h>
19799 _ACEOF
19800 rm -f conftest.$ac_objext
19801 if { (ac_try="$ac_compile"
19802 case "(($ac_try" in
19803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804   *) ac_try_echo=$ac_try;;
19805 esac
19806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19807 $as_echo "$ac_try_echo") >&5
19808   (eval "$ac_compile") 2>conftest.er1
19809   ac_status=$?
19810   grep -v '^ *+' conftest.er1 >conftest.err
19811   rm -f conftest.er1
19812   cat conftest.err >&5
19813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); } && {
19815          test -z "$ac_c_werror_flag" ||
19816          test ! -s conftest.err
19817        } && test -s conftest.$ac_objext; then
19818   ac_header_compiler=yes
19819 else
19820   $as_echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19822
19823         ac_header_compiler=no
19824 fi
19825
19826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19827 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19828 $as_echo "$ac_header_compiler" >&6; }
19829
19830 # Is the header present?
19831 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
19832 $as_echo_n "checking syslog.h presence... " >&6; }
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h.  */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h.  */
19839 #include <syslog.h>
19840 _ACEOF
19841 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
19855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19856          test ! -s conftest.err
19857        }; then
19858   ac_header_preproc=yes
19859 else
19860   $as_echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19862
19863   ac_header_preproc=no
19864 fi
19865
19866 rm -f conftest.err conftest.$ac_ext
19867 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19868 $as_echo "$ac_header_preproc" >&6; }
19869
19870 # So?  What about this header?
19871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19872   yes:no: )
19873     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
19874 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19875     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
19876 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
19877     ac_header_preproc=yes
19878     ;;
19879   no:yes:* )
19880     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
19881 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
19882     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
19883 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
19884     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
19885 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
19886     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
19887 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19888     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
19889 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
19890     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
19891 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
19892     ( cat <<\_ASBOX
19893 ## ---------------------------------------- ##
19894 ## Report this to pgsql-bugs@postgresql.org ##
19895 ## ---------------------------------------- ##
19896 _ASBOX
19897      ) | sed "s/^/$as_me: WARNING:     /" >&2
19898     ;;
19899 esac
19900 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
19901 $as_echo_n "checking for syslog.h... " >&6; }
19902 if test "${ac_cv_header_syslog_h+set}" = set; then
19903   $as_echo_n "(cached) " >&6
19904 else
19905   ac_cv_header_syslog_h=$ac_header_preproc
19906 fi
19907 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
19908 $as_echo "$ac_cv_header_syslog_h" >&6; }
19909
19910 fi
19911 if test "x$ac_cv_header_syslog_h" = x""yes; then
19912
19913 cat >>confdefs.h <<\_ACEOF
19914 #define HAVE_SYSLOG 1
19915 _ACEOF
19916
19917 fi
19918
19919
19920 fi
19921
19922
19923 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
19924 $as_echo_n "checking for opterr... " >&6; }
19925 if test "${pgac_cv_var_int_opterr+set}" = set; then
19926   $as_echo_n "(cached) " >&6
19927 else
19928   cat >conftest.$ac_ext <<_ACEOF
19929 /* confdefs.h.  */
19930 _ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h.  */
19934 #include <unistd.h>
19935 int
19936 main ()
19937 {
19938 extern int opterr; opterr = 1;
19939   ;
19940   return 0;
19941 }
19942 _ACEOF
19943 rm -f conftest.$ac_objext conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947   *) ac_try_echo=$ac_try;;
19948 esac
19949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951   (eval "$ac_link") 2>conftest.er1
19952   ac_status=$?
19953   grep -v '^ *+' conftest.er1 >conftest.err
19954   rm -f conftest.er1
19955   cat conftest.err >&5
19956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); } && {
19958          test -z "$ac_c_werror_flag" ||
19959          test ! -s conftest.err
19960        } && test -s conftest$ac_exeext && {
19961          test "$cross_compiling" = yes ||
19962          $as_test_x conftest$ac_exeext
19963        }; then
19964   pgac_cv_var_int_opterr=yes
19965 else
19966   $as_echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19968
19969         pgac_cv_var_int_opterr=no
19970 fi
19971
19972 rm -rf conftest.dSYM
19973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19974       conftest$ac_exeext conftest.$ac_ext
19975 fi
19976 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
19977 $as_echo "$pgac_cv_var_int_opterr" >&6; }
19978 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
19979
19980 cat >>confdefs.h <<\_ACEOF
19981 #define HAVE_INT_OPTERR 1
19982 _ACEOF
19983
19984 fi
19985
19986 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
19987 $as_echo_n "checking for optreset... " >&6; }
19988 if test "${pgac_cv_var_int_optreset+set}" = set; then
19989   $as_echo_n "(cached) " >&6
19990 else
19991   cat >conftest.$ac_ext <<_ACEOF
19992 /* confdefs.h.  */
19993 _ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h.  */
19997 #include <unistd.h>
19998 int
19999 main ()
20000 {
20001 extern int optreset; optreset = 1;
20002   ;
20003   return 0;
20004 }
20005 _ACEOF
20006 rm -f conftest.$ac_objext conftest$ac_exeext
20007 if { (ac_try="$ac_link"
20008 case "(($ac_try" in
20009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010   *) ac_try_echo=$ac_try;;
20011 esac
20012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20013 $as_echo "$ac_try_echo") >&5
20014   (eval "$ac_link") 2>conftest.er1
20015   ac_status=$?
20016   grep -v '^ *+' conftest.er1 >conftest.err
20017   rm -f conftest.er1
20018   cat conftest.err >&5
20019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); } && {
20021          test -z "$ac_c_werror_flag" ||
20022          test ! -s conftest.err
20023        } && test -s conftest$ac_exeext && {
20024          test "$cross_compiling" = yes ||
20025          $as_test_x conftest$ac_exeext
20026        }; then
20027   pgac_cv_var_int_optreset=yes
20028 else
20029   $as_echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20031
20032         pgac_cv_var_int_optreset=no
20033 fi
20034
20035 rm -rf conftest.dSYM
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037       conftest$ac_exeext conftest.$ac_ext
20038 fi
20039 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
20040 $as_echo "$pgac_cv_var_int_optreset" >&6; }
20041 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
20042
20043 cat >>confdefs.h <<\_ACEOF
20044 #define HAVE_INT_OPTRESET 1
20045 _ACEOF
20046
20047 fi
20048
20049
20050
20051 for ac_func in strtoll strtoq
20052 do
20053 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20054 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20055 $as_echo_n "checking for $ac_func... " >&6; }
20056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20057   $as_echo_n "(cached) " >&6
20058 else
20059   cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h.  */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h.  */
20065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20067 #define $ac_func innocuous_$ac_func
20068
20069 /* System header to define __stub macros and hopefully few prototypes,
20070     which can conflict with char $ac_func (); below.
20071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20072     <limits.h> exists even on freestanding compilers.  */
20073
20074 #ifdef __STDC__
20075 # include <limits.h>
20076 #else
20077 # include <assert.h>
20078 #endif
20079
20080 #undef $ac_func
20081
20082 /* Override any GCC internal prototype to avoid an error.
20083    Use char because int might match the return type of a GCC
20084    builtin and then its argument prototype would still apply.  */
20085 #ifdef __cplusplus
20086 extern "C"
20087 #endif
20088 char $ac_func ();
20089 /* The GNU C library defines this for functions which it implements
20090     to always fail with ENOSYS.  Some functions are actually named
20091     something starting with __ and the normal name is an alias.  */
20092 #if defined __stub_$ac_func || defined __stub___$ac_func
20093 choke me
20094 #endif
20095
20096 int
20097 main ()
20098 {
20099 return $ac_func ();
20100   ;
20101   return 0;
20102 }
20103 _ACEOF
20104 rm -f conftest.$ac_objext conftest$ac_exeext
20105 if { (ac_try="$ac_link"
20106 case "(($ac_try" in
20107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108   *) ac_try_echo=$ac_try;;
20109 esac
20110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20111 $as_echo "$ac_try_echo") >&5
20112   (eval "$ac_link") 2>conftest.er1
20113   ac_status=$?
20114   grep -v '^ *+' conftest.er1 >conftest.err
20115   rm -f conftest.er1
20116   cat conftest.err >&5
20117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); } && {
20119          test -z "$ac_c_werror_flag" ||
20120          test ! -s conftest.err
20121        } && test -s conftest$ac_exeext && {
20122          test "$cross_compiling" = yes ||
20123          $as_test_x conftest$ac_exeext
20124        }; then
20125   eval "$as_ac_var=yes"
20126 else
20127   $as_echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20129
20130         eval "$as_ac_var=no"
20131 fi
20132
20133 rm -rf conftest.dSYM
20134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20135       conftest$ac_exeext conftest.$ac_ext
20136 fi
20137 ac_res=`eval 'as_val=${'$as_ac_var'}
20138                  $as_echo "$as_val"'`
20139                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20140 $as_echo "$ac_res" >&6; }
20141 as_val=`eval 'as_val=${'$as_ac_var'}
20142                  $as_echo "$as_val"'`
20143    if test "x$as_val" = x""yes; then
20144   cat >>confdefs.h <<_ACEOF
20145 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20146 _ACEOF
20147  break
20148 fi
20149 done
20150
20151
20152
20153 for ac_func in strtoull strtouq
20154 do
20155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20156 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20157 $as_echo_n "checking for $ac_func... " >&6; }
20158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20159   $as_echo_n "(cached) " >&6
20160 else
20161   cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h.  */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h.  */
20167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20169 #define $ac_func innocuous_$ac_func
20170
20171 /* System header to define __stub macros and hopefully few prototypes,
20172     which can conflict with char $ac_func (); below.
20173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20174     <limits.h> exists even on freestanding compilers.  */
20175
20176 #ifdef __STDC__
20177 # include <limits.h>
20178 #else
20179 # include <assert.h>
20180 #endif
20181
20182 #undef $ac_func
20183
20184 /* Override any GCC internal prototype to avoid an error.
20185    Use char because int might match the return type of a GCC
20186    builtin and then its argument prototype would still apply.  */
20187 #ifdef __cplusplus
20188 extern "C"
20189 #endif
20190 char $ac_func ();
20191 /* The GNU C library defines this for functions which it implements
20192     to always fail with ENOSYS.  Some functions are actually named
20193     something starting with __ and the normal name is an alias.  */
20194 #if defined __stub_$ac_func || defined __stub___$ac_func
20195 choke me
20196 #endif
20197
20198 int
20199 main ()
20200 {
20201 return $ac_func ();
20202   ;
20203   return 0;
20204 }
20205 _ACEOF
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (ac_try="$ac_link"
20208 case "(($ac_try" in
20209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210   *) ac_try_echo=$ac_try;;
20211 esac
20212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20213 $as_echo "$ac_try_echo") >&5
20214   (eval "$ac_link") 2>conftest.er1
20215   ac_status=$?
20216   grep -v '^ *+' conftest.er1 >conftest.err
20217   rm -f conftest.er1
20218   cat conftest.err >&5
20219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); } && {
20221          test -z "$ac_c_werror_flag" ||
20222          test ! -s conftest.err
20223        } && test -s conftest$ac_exeext && {
20224          test "$cross_compiling" = yes ||
20225          $as_test_x conftest$ac_exeext
20226        }; then
20227   eval "$as_ac_var=yes"
20228 else
20229   $as_echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232         eval "$as_ac_var=no"
20233 fi
20234
20235 rm -rf conftest.dSYM
20236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20237       conftest$ac_exeext conftest.$ac_ext
20238 fi
20239 ac_res=`eval 'as_val=${'$as_ac_var'}
20240                  $as_echo "$as_val"'`
20241                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20242 $as_echo "$ac_res" >&6; }
20243 as_val=`eval 'as_val=${'$as_ac_var'}
20244                  $as_echo "$as_val"'`
20245    if test "x$as_val" = x""yes; then
20246   cat >>confdefs.h <<_ACEOF
20247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20248 _ACEOF
20249  break
20250 fi
20251 done
20252
20253
20254 # Check for one of atexit() or on_exit()
20255
20256 for ac_func in atexit
20257 do
20258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20259 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20260 $as_echo_n "checking for $ac_func... " >&6; }
20261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20262   $as_echo_n "(cached) " >&6
20263 else
20264   cat >conftest.$ac_ext <<_ACEOF
20265 /* confdefs.h.  */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h.  */
20270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20272 #define $ac_func innocuous_$ac_func
20273
20274 /* System header to define __stub macros and hopefully few prototypes,
20275     which can conflict with char $ac_func (); below.
20276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20277     <limits.h> exists even on freestanding compilers.  */
20278
20279 #ifdef __STDC__
20280 # include <limits.h>
20281 #else
20282 # include <assert.h>
20283 #endif
20284
20285 #undef $ac_func
20286
20287 /* Override any GCC internal prototype to avoid an error.
20288    Use char because int might match the return type of a GCC
20289    builtin and then its argument prototype would still apply.  */
20290 #ifdef __cplusplus
20291 extern "C"
20292 #endif
20293 char $ac_func ();
20294 /* The GNU C library defines this for functions which it implements
20295     to always fail with ENOSYS.  Some functions are actually named
20296     something starting with __ and the normal name is an alias.  */
20297 #if defined __stub_$ac_func || defined __stub___$ac_func
20298 choke me
20299 #endif
20300
20301 int
20302 main ()
20303 {
20304 return $ac_func ();
20305   ;
20306   return 0;
20307 }
20308 _ACEOF
20309 rm -f conftest.$ac_objext conftest$ac_exeext
20310 if { (ac_try="$ac_link"
20311 case "(($ac_try" in
20312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313   *) ac_try_echo=$ac_try;;
20314 esac
20315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20316 $as_echo "$ac_try_echo") >&5
20317   (eval "$ac_link") 2>conftest.er1
20318   ac_status=$?
20319   grep -v '^ *+' conftest.er1 >conftest.err
20320   rm -f conftest.er1
20321   cat conftest.err >&5
20322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323   (exit $ac_status); } && {
20324          test -z "$ac_c_werror_flag" ||
20325          test ! -s conftest.err
20326        } && test -s conftest$ac_exeext && {
20327          test "$cross_compiling" = yes ||
20328          $as_test_x conftest$ac_exeext
20329        }; then
20330   eval "$as_ac_var=yes"
20331 else
20332   $as_echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20334
20335         eval "$as_ac_var=no"
20336 fi
20337
20338 rm -rf conftest.dSYM
20339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20340       conftest$ac_exeext conftest.$ac_ext
20341 fi
20342 ac_res=`eval 'as_val=${'$as_ac_var'}
20343                  $as_echo "$as_val"'`
20344                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20345 $as_echo "$ac_res" >&6; }
20346 as_val=`eval 'as_val=${'$as_ac_var'}
20347                  $as_echo "$as_val"'`
20348    if test "x$as_val" = x""yes; then
20349   cat >>confdefs.h <<_ACEOF
20350 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20351 _ACEOF
20352
20353 else
20354
20355 for ac_func in on_exit
20356 do
20357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20359 $as_echo_n "checking for $ac_func... " >&6; }
20360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20361   $as_echo_n "(cached) " >&6
20362 else
20363   cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h.  */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h.  */
20369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20371 #define $ac_func innocuous_$ac_func
20372
20373 /* System header to define __stub macros and hopefully few prototypes,
20374     which can conflict with char $ac_func (); below.
20375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20376     <limits.h> exists even on freestanding compilers.  */
20377
20378 #ifdef __STDC__
20379 # include <limits.h>
20380 #else
20381 # include <assert.h>
20382 #endif
20383
20384 #undef $ac_func
20385
20386 /* Override any GCC internal prototype to avoid an error.
20387    Use char because int might match the return type of a GCC
20388    builtin and then its argument prototype would still apply.  */
20389 #ifdef __cplusplus
20390 extern "C"
20391 #endif
20392 char $ac_func ();
20393 /* The GNU C library defines this for functions which it implements
20394     to always fail with ENOSYS.  Some functions are actually named
20395     something starting with __ and the normal name is an alias.  */
20396 #if defined __stub_$ac_func || defined __stub___$ac_func
20397 choke me
20398 #endif
20399
20400 int
20401 main ()
20402 {
20403 return $ac_func ();
20404   ;
20405   return 0;
20406 }
20407 _ACEOF
20408 rm -f conftest.$ac_objext conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20415 $as_echo "$ac_try_echo") >&5
20416   (eval "$ac_link") 2>conftest.er1
20417   ac_status=$?
20418   grep -v '^ *+' conftest.er1 >conftest.err
20419   rm -f conftest.er1
20420   cat conftest.err >&5
20421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); } && {
20423          test -z "$ac_c_werror_flag" ||
20424          test ! -s conftest.err
20425        } && test -s conftest$ac_exeext && {
20426          test "$cross_compiling" = yes ||
20427          $as_test_x conftest$ac_exeext
20428        }; then
20429   eval "$as_ac_var=yes"
20430 else
20431   $as_echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434         eval "$as_ac_var=no"
20435 fi
20436
20437 rm -rf conftest.dSYM
20438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20439       conftest$ac_exeext conftest.$ac_ext
20440 fi
20441 ac_res=`eval 'as_val=${'$as_ac_var'}
20442                  $as_echo "$as_val"'`
20443                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20444 $as_echo "$ac_res" >&6; }
20445 as_val=`eval 'as_val=${'$as_ac_var'}
20446                  $as_echo "$as_val"'`
20447    if test "x$as_val" = x""yes; then
20448   cat >>confdefs.h <<_ACEOF
20449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20450 _ACEOF
20451
20452 else
20453   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
20454 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
20455    { (exit 1); exit 1; }; }
20456 fi
20457 done
20458
20459 fi
20460 done
20461
20462
20463
20464 for ac_func in fseeko
20465 do
20466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20467 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20468 $as_echo_n "checking for $ac_func... " >&6; }
20469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20470   $as_echo_n "(cached) " >&6
20471 else
20472   cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h.  */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h.  */
20478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20480 #define $ac_func innocuous_$ac_func
20481
20482 /* System header to define __stub macros and hopefully few prototypes,
20483     which can conflict with char $ac_func (); below.
20484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20485     <limits.h> exists even on freestanding compilers.  */
20486
20487 #ifdef __STDC__
20488 # include <limits.h>
20489 #else
20490 # include <assert.h>
20491 #endif
20492
20493 #undef $ac_func
20494
20495 /* Override any GCC internal prototype to avoid an error.
20496    Use char because int might match the return type of a GCC
20497    builtin and then its argument prototype would still apply.  */
20498 #ifdef __cplusplus
20499 extern "C"
20500 #endif
20501 char $ac_func ();
20502 /* The GNU C library defines this for functions which it implements
20503     to always fail with ENOSYS.  Some functions are actually named
20504     something starting with __ and the normal name is an alias.  */
20505 #if defined __stub_$ac_func || defined __stub___$ac_func
20506 choke me
20507 #endif
20508
20509 int
20510 main ()
20511 {
20512 return $ac_func ();
20513   ;
20514   return 0;
20515 }
20516 _ACEOF
20517 rm -f conftest.$ac_objext conftest$ac_exeext
20518 if { (ac_try="$ac_link"
20519 case "(($ac_try" in
20520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521   *) ac_try_echo=$ac_try;;
20522 esac
20523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20524 $as_echo "$ac_try_echo") >&5
20525   (eval "$ac_link") 2>conftest.er1
20526   ac_status=$?
20527   grep -v '^ *+' conftest.er1 >conftest.err
20528   rm -f conftest.er1
20529   cat conftest.err >&5
20530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); } && {
20532          test -z "$ac_c_werror_flag" ||
20533          test ! -s conftest.err
20534        } && test -s conftest$ac_exeext && {
20535          test "$cross_compiling" = yes ||
20536          $as_test_x conftest$ac_exeext
20537        }; then
20538   eval "$as_ac_var=yes"
20539 else
20540   $as_echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20542
20543         eval "$as_ac_var=no"
20544 fi
20545
20546 rm -rf conftest.dSYM
20547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20548       conftest$ac_exeext conftest.$ac_ext
20549 fi
20550 ac_res=`eval 'as_val=${'$as_ac_var'}
20551                  $as_echo "$as_val"'`
20552                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20553 $as_echo "$ac_res" >&6; }
20554 as_val=`eval 'as_val=${'$as_ac_var'}
20555                  $as_echo "$as_val"'`
20556    if test "x$as_val" = x""yes; then
20557   cat >>confdefs.h <<_ACEOF
20558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20559 _ACEOF
20560
20561 else
20562   case " $LIBOBJS " in
20563   *" $ac_func.$ac_objext "* ) ;;
20564   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20565  ;;
20566 esac
20567
20568 fi
20569 done
20570
20571
20572 case $host_os in
20573         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
20574         # Mingw uses macros to access Win32 API calls
20575         bsdi*|netbsd*|mingw*)
20576
20577 cat >>confdefs.h <<\_ACEOF
20578 #define HAVE_FSEEKO 1
20579 _ACEOF
20580
20581                 ac_cv_func_fseeko=yes;;
20582         *)
20583                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20584 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20585 if test "${ac_cv_sys_largefile_source+set}" = set; then
20586   $as_echo_n "(cached) " >&6
20587 else
20588   while :; do
20589   cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h.  */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h.  */
20595 #include <sys/types.h> /* for off_t */
20596      #include <stdio.h>
20597 int
20598 main ()
20599 {
20600 int (*fp) (FILE *, off_t, int) = fseeko;
20601      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20602   ;
20603   return 0;
20604 }
20605 _ACEOF
20606 rm -f conftest.$ac_objext conftest$ac_exeext
20607 if { (ac_try="$ac_link"
20608 case "(($ac_try" in
20609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610   *) ac_try_echo=$ac_try;;
20611 esac
20612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20613 $as_echo "$ac_try_echo") >&5
20614   (eval "$ac_link") 2>conftest.er1
20615   ac_status=$?
20616   grep -v '^ *+' conftest.er1 >conftest.err
20617   rm -f conftest.er1
20618   cat conftest.err >&5
20619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620   (exit $ac_status); } && {
20621          test -z "$ac_c_werror_flag" ||
20622          test ! -s conftest.err
20623        } && test -s conftest$ac_exeext && {
20624          test "$cross_compiling" = yes ||
20625          $as_test_x conftest$ac_exeext
20626        }; then
20627   ac_cv_sys_largefile_source=no; break
20628 else
20629   $as_echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20631
20632
20633 fi
20634
20635 rm -rf conftest.dSYM
20636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20637       conftest$ac_exeext conftest.$ac_ext
20638   cat >conftest.$ac_ext <<_ACEOF
20639 /* confdefs.h.  */
20640 _ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h.  */
20644 #define _LARGEFILE_SOURCE 1
20645 #include <sys/types.h> /* for off_t */
20646      #include <stdio.h>
20647 int
20648 main ()
20649 {
20650 int (*fp) (FILE *, off_t, int) = fseeko;
20651      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20652   ;
20653   return 0;
20654 }
20655 _ACEOF
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660   *) ac_try_echo=$ac_try;;
20661 esac
20662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20663 $as_echo "$ac_try_echo") >&5
20664   (eval "$ac_link") 2>conftest.er1
20665   ac_status=$?
20666   grep -v '^ *+' conftest.er1 >conftest.err
20667   rm -f conftest.er1
20668   cat conftest.err >&5
20669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); } && {
20671          test -z "$ac_c_werror_flag" ||
20672          test ! -s conftest.err
20673        } && test -s conftest$ac_exeext && {
20674          test "$cross_compiling" = yes ||
20675          $as_test_x conftest$ac_exeext
20676        }; then
20677   ac_cv_sys_largefile_source=1; break
20678 else
20679   $as_echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682
20683 fi
20684
20685 rm -rf conftest.dSYM
20686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20687       conftest$ac_exeext conftest.$ac_ext
20688   ac_cv_sys_largefile_source=unknown
20689   break
20690 done
20691 fi
20692 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20693 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20694 case $ac_cv_sys_largefile_source in #(
20695   no | unknown) ;;
20696   *)
20697 cat >>confdefs.h <<_ACEOF
20698 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20699 _ACEOF
20700 ;;
20701 esac
20702 rm -rf conftest*
20703
20704 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20705 # in glibc 2.1.3, but that breaks too many other things.
20706 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20707 if test $ac_cv_sys_largefile_source != unknown; then
20708
20709 cat >>confdefs.h <<\_ACEOF
20710 #define HAVE_FSEEKO 1
20711 _ACEOF
20712
20713 fi
20714 ;;
20715 esac
20716
20717
20718 #
20719 # Pthreads
20720 #
20721 # For each platform, we need to know about any special compile and link
20722 # libraries, and whether the normal C function names are thread-safe.
20723 # See the comment at the top of src/port/thread.c for more information.
20724 # WIN32 doesn't need the pthread tests;  it always uses threads
20725 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
20726
20727
20728
20729 ac_ext=c
20730 ac_cpp='$CPP $CPPFLAGS'
20731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20734
20735 acx_pthread_ok=no
20736
20737 # We used to check for pthread.h first, but this fails if pthread.h
20738 # requires special compiler flags (e.g. on True64 or Sequent).
20739 # It gets checked for in the link test anyway.
20740
20741 # First of all, check if the user has set any of the PTHREAD_LIBS,
20742 # etcetera environment variables, and if threads linking works using
20743 # them:
20744 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20745         save_CFLAGS="$CFLAGS"
20746         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20747         save_LIBS="$LIBS"
20748         LIBS="$PTHREAD_LIBS $LIBS"
20749         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20750 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20751         cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h.  */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h.  */
20757
20758 /* Override any GCC internal prototype to avoid an error.
20759    Use char because int might match the return type of a GCC
20760    builtin and then its argument prototype would still apply.  */
20761 #ifdef __cplusplus
20762 extern "C"
20763 #endif
20764 char pthread_join ();
20765 int
20766 main ()
20767 {
20768 return pthread_join ();
20769   ;
20770   return 0;
20771 }
20772 _ACEOF
20773 rm -f conftest.$ac_objext conftest$ac_exeext
20774 if { (ac_try="$ac_link"
20775 case "(($ac_try" in
20776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777   *) ac_try_echo=$ac_try;;
20778 esac
20779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20780 $as_echo "$ac_try_echo") >&5
20781   (eval "$ac_link") 2>conftest.er1
20782   ac_status=$?
20783   grep -v '^ *+' conftest.er1 >conftest.err
20784   rm -f conftest.er1
20785   cat conftest.err >&5
20786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); } && {
20788          test -z "$ac_c_werror_flag" ||
20789          test ! -s conftest.err
20790        } && test -s conftest$ac_exeext && {
20791          test "$cross_compiling" = yes ||
20792          $as_test_x conftest$ac_exeext
20793        }; then
20794   acx_pthread_ok=yes
20795 else
20796   $as_echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799
20800 fi
20801
20802 rm -rf conftest.dSYM
20803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20804       conftest$ac_exeext conftest.$ac_ext
20805         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20806 $as_echo "$acx_pthread_ok" >&6; }
20807         if test x"$acx_pthread_ok" = xno; then
20808                 PTHREAD_LIBS=""
20809                 PTHREAD_CFLAGS=""
20810         fi
20811         LIBS="$save_LIBS"
20812         CFLAGS="$save_CFLAGS"
20813 fi
20814
20815 # We must check for the threads library under a number of different
20816 # names; the ordering is very important because some systems
20817 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20818 # libraries is broken (non-POSIX).
20819
20820 # Create a list of thread flags to try.  Items starting with a "-" are
20821 # C compiler flags, and other items are library names, except for "none"
20822 # which indicates that we try without any flags at all, and "pthread-config"
20823 # which is a program returning the flags for the Pth emulation library.
20824
20825 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
20826
20827 # The ordering *is* (sometimes) important.  Some notes on the
20828 # individual items follow:
20829
20830 # pthreads: AIX (must check this before -lpthread)
20831 # none: in case threads are in libc; should be tried before -Kthread and
20832 #       other compiler flags to prevent continual compiler warnings
20833 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20834 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20835 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20836 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20837 # -pthreads: Solaris/gcc
20838 # -mthreads: Mingw32/gcc, Lynx/gcc
20839 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20840 #      doesn't hurt to check since this sometimes defines pthreads too;
20841 #      also defines -D_REENTRANT)
20842 # pthread: Linux, etcetera
20843 # --thread-safe: KAI C++
20844 # pthread-config: use pthread-config program (for GNU Pth library)
20845
20846 case "${host_cpu}-${host_os}" in
20847         *solaris*)
20848
20849         # On Solaris (at least, for some versions), libc contains stubbed
20850         # (non-functional) versions of the pthreads routines, so link-based
20851         # tests will erroneously succeed.  (We need to link with -pthread or
20852         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
20853         # a function called by this macro, so we could check for that, but
20854         # who knows whether they'll stub that too in a future libc.)  So,
20855         # we'll just look for -pthreads and -lpthread first:
20856
20857         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
20858         ;;
20859 esac
20860
20861 if test x"$acx_pthread_ok" = xno; then
20862 for flag in $acx_pthread_flags; do
20863
20864         tryPTHREAD_CFLAGS=""
20865         tryPTHREAD_LIBS=""
20866         case $flag in
20867                 none)
20868                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
20869 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20870                 ;;
20871
20872                 -*)
20873                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
20874 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20875                 tryPTHREAD_CFLAGS="$flag"
20876                 ;;
20877
20878                 pthread-config)
20879                 # skip this if we already have flags defined, for PostgreSQL
20880                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
20881                 # Extract the first word of "pthread-config", so it can be a program name with args.
20882 set dummy pthread-config; ac_word=$2
20883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20884 $as_echo_n "checking for $ac_word... " >&6; }
20885 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
20886   $as_echo_n "(cached) " >&6
20887 else
20888   if test -n "$acx_pthread_config"; then
20889   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20890 else
20891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20892 for as_dir in $PATH
20893 do
20894   IFS=$as_save_IFS
20895   test -z "$as_dir" && as_dir=.
20896   for ac_exec_ext in '' $ac_executable_extensions; do
20897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20898     ac_cv_prog_acx_pthread_config="yes"
20899     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20900     break 2
20901   fi
20902 done
20903 done
20904 IFS=$as_save_IFS
20905
20906   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20907 fi
20908 fi
20909 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20910 if test -n "$acx_pthread_config"; then
20911   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
20912 $as_echo "$acx_pthread_config" >&6; }
20913 else
20914   { $as_echo "$as_me:$LINENO: result: no" >&5
20915 $as_echo "no" >&6; }
20916 fi
20917
20918
20919                 if test x"$acx_pthread_config" = xno; then continue; fi
20920                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
20921                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20922                 ;;
20923
20924                 *)
20925                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
20926 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20927                 tryPTHREAD_LIBS="-l$flag"
20928                 ;;
20929         esac
20930
20931         save_LIBS="$LIBS"
20932         save_CFLAGS="$CFLAGS"
20933         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
20934         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
20935
20936         # Check for various functions.  We must include pthread.h,
20937         # since some functions may be macros.  (On the Sequent, we
20938         # need a special flag -Kthread to make this header compile.)
20939         # We check for pthread_join because it is in -lpthread on IRIX
20940         # while pthread_create is in libc.  We check for pthread_attr_init
20941         # due to DEC craziness with -lpthreads.  We check for
20942         # pthread_cleanup_push because it is one of the few pthread
20943         # functions on Solaris that doesn't have a non-functional libc stub.
20944         # We try pthread_create on general principles.
20945         cat >conftest.$ac_ext <<_ACEOF
20946 /* confdefs.h.  */
20947 _ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h.  */
20951 #include <pthread.h>
20952 int
20953 main ()
20954 {
20955 pthread_t th; pthread_join(th, 0);
20956                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
20957                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20958   ;
20959   return 0;
20960 }
20961 _ACEOF
20962 rm -f conftest.$ac_objext conftest$ac_exeext
20963 if { (ac_try="$ac_link"
20964 case "(($ac_try" in
20965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966   *) ac_try_echo=$ac_try;;
20967 esac
20968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20969 $as_echo "$ac_try_echo") >&5
20970   (eval "$ac_link") 2>conftest.er1
20971   ac_status=$?
20972   grep -v '^ *+' conftest.er1 >conftest.err
20973   rm -f conftest.er1
20974   cat conftest.err >&5
20975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } && {
20977          test -z "$ac_c_werror_flag" ||
20978          test ! -s conftest.err
20979        } && test -s conftest$ac_exeext && {
20980          test "$cross_compiling" = yes ||
20981          $as_test_x conftest$ac_exeext
20982        }; then
20983   acx_pthread_ok=yes
20984 else
20985   $as_echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20987
20988         acx_pthread_ok=no
20989 fi
20990
20991 rm -rf conftest.dSYM
20992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20993       conftest$ac_exeext conftest.$ac_ext
20994
20995         if test "x$acx_pthread_ok" = xyes; then
20996             # Don't use options that are ignored by the compiler.
20997             # We find them by checking stderror.
20998             cat >conftest.$ac_ext <<_ACEOF
20999 int
21000 main (int argc, char **argv)
21001 {
21002   (void) argc;
21003   (void) argv;
21004   return 0;
21005 }
21006 _ACEOF
21007             rm -f conftest.$ac_objext conftest$ac_exeext
21008             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
21009                 # we continue with more flags because Linux needs -lpthread
21010                 # for libpq builds on PostgreSQL.  The test above only
21011                 # tests for building binaries, not shared libraries.
21012                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
21013                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
21014             else   acx_pthread_ok=no
21015             fi
21016         fi
21017
21018         LIBS="$save_LIBS"
21019         CFLAGS="$save_CFLAGS"
21020
21021         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21022 $as_echo "$acx_pthread_ok" >&6; }
21023 done
21024 fi
21025
21026 # Various other checks:
21027 if test "x$acx_pthread_ok" = xyes; then
21028         save_LIBS="$LIBS"
21029         LIBS="$PTHREAD_LIBS $LIBS"
21030         save_CFLAGS="$CFLAGS"
21031         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21032
21033         # Detect AIX lossage: threads are created detached by default
21034         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
21035         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
21036 $as_echo_n "checking for joinable pthread attribute... " >&6; }
21037         cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h.  */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h.  */
21043 #include <pthread.h>
21044 int
21045 main ()
21046 {
21047 int attr=PTHREAD_CREATE_JOINABLE;
21048   ;
21049   return 0;
21050 }
21051 _ACEOF
21052 rm -f conftest.$ac_objext conftest$ac_exeext
21053 if { (ac_try="$ac_link"
21054 case "(($ac_try" in
21055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056   *) ac_try_echo=$ac_try;;
21057 esac
21058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21059 $as_echo "$ac_try_echo") >&5
21060   (eval "$ac_link") 2>conftest.er1
21061   ac_status=$?
21062   grep -v '^ *+' conftest.er1 >conftest.err
21063   rm -f conftest.er1
21064   cat conftest.err >&5
21065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066   (exit $ac_status); } && {
21067          test -z "$ac_c_werror_flag" ||
21068          test ! -s conftest.err
21069        } && test -s conftest$ac_exeext && {
21070          test "$cross_compiling" = yes ||
21071          $as_test_x conftest$ac_exeext
21072        }; then
21073   ok=PTHREAD_CREATE_JOINABLE
21074 else
21075   $as_echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21077
21078         ok=unknown
21079 fi
21080
21081 rm -rf conftest.dSYM
21082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21083       conftest$ac_exeext conftest.$ac_ext
21084         if test x"$ok" = xunknown; then
21085                 cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h.  */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h.  */
21091 #include <pthread.h>
21092 int
21093 main ()
21094 {
21095 int attr=PTHREAD_CREATE_UNDETACHED;
21096   ;
21097   return 0;
21098 }
21099 _ACEOF
21100 rm -f conftest.$ac_objext conftest$ac_exeext
21101 if { (ac_try="$ac_link"
21102 case "(($ac_try" in
21103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104   *) ac_try_echo=$ac_try;;
21105 esac
21106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21107 $as_echo "$ac_try_echo") >&5
21108   (eval "$ac_link") 2>conftest.er1
21109   ac_status=$?
21110   grep -v '^ *+' conftest.er1 >conftest.err
21111   rm -f conftest.er1
21112   cat conftest.err >&5
21113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } && {
21115          test -z "$ac_c_werror_flag" ||
21116          test ! -s conftest.err
21117        } && test -s conftest$ac_exeext && {
21118          test "$cross_compiling" = yes ||
21119          $as_test_x conftest$ac_exeext
21120        }; then
21121   ok=PTHREAD_CREATE_UNDETACHED
21122 else
21123   $as_echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21125
21126         ok=unknown
21127 fi
21128
21129 rm -rf conftest.dSYM
21130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21131       conftest$ac_exeext conftest.$ac_ext
21132         fi
21133         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
21134
21135 cat >>confdefs.h <<\_ACEOF
21136 #define PTHREAD_CREATE_JOINABLE $ok
21137 _ACEOF
21138
21139         fi
21140         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
21141 $as_echo "${ok}" >&6; }
21142         if test x"$ok" = xunknown; then
21143                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
21144 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
21145         fi
21146
21147         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
21148 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21149         flag=no
21150 # We always add these in PostgreSQL
21151 #       case "${host_cpu}-${host_os}" in
21152 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21153 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21154 #       esac
21155         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
21156 $as_echo "${flag}" >&6; }
21157         if test "x$flag" != xno; then
21158                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21159         fi
21160
21161         LIBS="$save_LIBS"
21162         CFLAGS="$save_CFLAGS"
21163
21164 # Supporting cc_r would require a special CC in all places that
21165 # use libpq, and that is ugly, so we don't do it.  Users can still
21166 # define their compiler as cc_r to do thread builds of everything.
21167         # More AIX lossage: must compile with cc_r
21168         # Extract the first word of "cc_r", so it can be a program name with args.
21169 set dummy cc_r; ac_word=$2
21170 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21171 $as_echo_n "checking for $ac_word... " >&6; }
21172 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21173   $as_echo_n "(cached) " >&6
21174 else
21175   if test -n "$PTHREAD_CC"; then
21176   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21177 else
21178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21179 for as_dir in $PATH
21180 do
21181   IFS=$as_save_IFS
21182   test -z "$as_dir" && as_dir=.
21183   for ac_exec_ext in '' $ac_executable_extensions; do
21184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21185     ac_cv_prog_PTHREAD_CC="cc_r"
21186     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21187     break 2
21188   fi
21189 done
21190 done
21191 IFS=$as_save_IFS
21192
21193   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
21194 fi
21195 fi
21196 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21197 if test -n "$PTHREAD_CC"; then
21198   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21199 $as_echo "$PTHREAD_CC" >&6; }
21200 else
21201   { $as_echo "$as_me:$LINENO: result: no" >&5
21202 $as_echo "no" >&6; }
21203 fi
21204
21205
21206 else
21207         PTHREAD_CC="$CC"
21208 fi
21209
21210
21211
21212
21213
21214 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21215 if test x"$acx_pthread_ok" = xyes; then
21216
21217 cat >>confdefs.h <<\_ACEOF
21218 #define HAVE_PTHREAD 1
21219 _ACEOF
21220
21221         :
21222 else
21223         acx_pthread_ok=no
21224
21225 fi
21226 ac_ext=c
21227 ac_cpp='$CPP $CPPFLAGS'
21228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21231
21232         # set thread flags
21233
21234 # Some platforms use these, so just define them.  They can't hurt if they
21235 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
21236 # enables 5-arg getpwuid_r, among other things.
21237 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
21238
21239
21240 # At this point, we don't want to muck with the compiler name for threading.
21241 # Let's see who fails, perhaps AIX.  2004-04-23
21242 if test "$PTHREAD_CC" != "$CC"; then
21243 { { $as_echo "$as_me:$LINENO: error:
21244 PostgreSQL does not support platforms that require a special compiler
21245 for thread safety." >&5
21246 $as_echo "$as_me: error:
21247 PostgreSQL does not support platforms that require a special compiler
21248 for thread safety." >&2;}
21249    { (exit 1); exit 1; }; }
21250 fi
21251
21252 if test "$THREAD_SUPPORT" = no; then
21253 { { $as_echo "$as_me:$LINENO: error: cannot enable threads on this platform
21254 This platform is known to not support thread-safe programs.  For details,
21255 compile and run src/bin/pg_thread_test." >&5
21256 $as_echo "$as_me: error: cannot enable threads on this platform
21257 This platform is known to not support thread-safe programs.  For details,
21258 compile and run src/bin/pg_thread_test." >&2;}
21259    { (exit 1); exit 1; }; }
21260 fi
21261
21262 # Check for *_r functions
21263 _CFLAGS="$CFLAGS"
21264 _LIBS="$LIBS"
21265 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21266 LIBS="$LIBS $PTHREAD_LIBS"
21267
21268 if test "$PORTNAME" != "win32"; then
21269 if test "${ac_cv_header_pthread_h+set}" = set; then
21270   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21271 $as_echo_n "checking for pthread.h... " >&6; }
21272 if test "${ac_cv_header_pthread_h+set}" = set; then
21273   $as_echo_n "(cached) " >&6
21274 fi
21275 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21276 $as_echo "$ac_cv_header_pthread_h" >&6; }
21277 else
21278   # Is the header compilable?
21279 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
21280 $as_echo_n "checking pthread.h usability... " >&6; }
21281 cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h.  */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h.  */
21287 $ac_includes_default
21288 #include <pthread.h>
21289 _ACEOF
21290 rm -f conftest.$ac_objext
21291 if { (ac_try="$ac_compile"
21292 case "(($ac_try" in
21293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294   *) ac_try_echo=$ac_try;;
21295 esac
21296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21297 $as_echo "$ac_try_echo") >&5
21298   (eval "$ac_compile") 2>conftest.er1
21299   ac_status=$?
21300   grep -v '^ *+' conftest.er1 >conftest.err
21301   rm -f conftest.er1
21302   cat conftest.err >&5
21303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); } && {
21305          test -z "$ac_c_werror_flag" ||
21306          test ! -s conftest.err
21307        } && test -s conftest.$ac_objext; then
21308   ac_header_compiler=yes
21309 else
21310   $as_echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21312
21313         ac_header_compiler=no
21314 fi
21315
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21318 $as_echo "$ac_header_compiler" >&6; }
21319
21320 # Is the header present?
21321 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
21322 $as_echo_n "checking pthread.h presence... " >&6; }
21323 cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h.  */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h.  */
21329 #include <pthread.h>
21330 _ACEOF
21331 if { (ac_try="$ac_cpp conftest.$ac_ext"
21332 case "(($ac_try" in
21333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334   *) ac_try_echo=$ac_try;;
21335 esac
21336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21337 $as_echo "$ac_try_echo") >&5
21338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21339   ac_status=$?
21340   grep -v '^ *+' conftest.er1 >conftest.err
21341   rm -f conftest.er1
21342   cat conftest.err >&5
21343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344   (exit $ac_status); } >/dev/null && {
21345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21346          test ! -s conftest.err
21347        }; then
21348   ac_header_preproc=yes
21349 else
21350   $as_echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21352
21353   ac_header_preproc=no
21354 fi
21355
21356 rm -f conftest.err conftest.$ac_ext
21357 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21358 $as_echo "$ac_header_preproc" >&6; }
21359
21360 # So?  What about this header?
21361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21362   yes:no: )
21363     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21364 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21365     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21366 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21367     ac_header_preproc=yes
21368     ;;
21369   no:yes:* )
21370     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21371 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21372     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
21373 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
21374     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21375 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21376     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
21377 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21378     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21379 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21380     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21381 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21382     ( cat <<\_ASBOX
21383 ## ---------------------------------------- ##
21384 ## Report this to pgsql-bugs@postgresql.org ##
21385 ## ---------------------------------------- ##
21386 _ASBOX
21387      ) | sed "s/^/$as_me: WARNING:     /" >&2
21388     ;;
21389 esac
21390 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21391 $as_echo_n "checking for pthread.h... " >&6; }
21392 if test "${ac_cv_header_pthread_h+set}" = set; then
21393   $as_echo_n "(cached) " >&6
21394 else
21395   ac_cv_header_pthread_h=$ac_header_preproc
21396 fi
21397 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21398 $as_echo "$ac_cv_header_pthread_h" >&6; }
21399
21400 fi
21401 if test "x$ac_cv_header_pthread_h" = x""yes; then
21402   :
21403 else
21404   { { $as_echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
21405 $as_echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
21406    { (exit 1); exit 1; }; }
21407 fi
21408
21409
21410 fi
21411
21412
21413
21414
21415 for ac_func in strerror_r getpwuid_r gethostbyname_r
21416 do
21417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21418 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21419 $as_echo_n "checking for $ac_func... " >&6; }
21420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21421   $as_echo_n "(cached) " >&6
21422 else
21423   cat >conftest.$ac_ext <<_ACEOF
21424 /* confdefs.h.  */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h.  */
21429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21431 #define $ac_func innocuous_$ac_func
21432
21433 /* System header to define __stub macros and hopefully few prototypes,
21434     which can conflict with char $ac_func (); below.
21435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21436     <limits.h> exists even on freestanding compilers.  */
21437
21438 #ifdef __STDC__
21439 # include <limits.h>
21440 #else
21441 # include <assert.h>
21442 #endif
21443
21444 #undef $ac_func
21445
21446 /* Override any GCC internal prototype to avoid an error.
21447    Use char because int might match the return type of a GCC
21448    builtin and then its argument prototype would still apply.  */
21449 #ifdef __cplusplus
21450 extern "C"
21451 #endif
21452 char $ac_func ();
21453 /* The GNU C library defines this for functions which it implements
21454     to always fail with ENOSYS.  Some functions are actually named
21455     something starting with __ and the normal name is an alias.  */
21456 #if defined __stub_$ac_func || defined __stub___$ac_func
21457 choke me
21458 #endif
21459
21460 int
21461 main ()
21462 {
21463 return $ac_func ();
21464   ;
21465   return 0;
21466 }
21467 _ACEOF
21468 rm -f conftest.$ac_objext conftest$ac_exeext
21469 if { (ac_try="$ac_link"
21470 case "(($ac_try" in
21471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472   *) ac_try_echo=$ac_try;;
21473 esac
21474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21475 $as_echo "$ac_try_echo") >&5
21476   (eval "$ac_link") 2>conftest.er1
21477   ac_status=$?
21478   grep -v '^ *+' conftest.er1 >conftest.err
21479   rm -f conftest.er1
21480   cat conftest.err >&5
21481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482   (exit $ac_status); } && {
21483          test -z "$ac_c_werror_flag" ||
21484          test ! -s conftest.err
21485        } && test -s conftest$ac_exeext && {
21486          test "$cross_compiling" = yes ||
21487          $as_test_x conftest$ac_exeext
21488        }; then
21489   eval "$as_ac_var=yes"
21490 else
21491   $as_echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21493
21494         eval "$as_ac_var=no"
21495 fi
21496
21497 rm -rf conftest.dSYM
21498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21499       conftest$ac_exeext conftest.$ac_ext
21500 fi
21501 ac_res=`eval 'as_val=${'$as_ac_var'}
21502                  $as_echo "$as_val"'`
21503                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21504 $as_echo "$ac_res" >&6; }
21505 as_val=`eval 'as_val=${'$as_ac_var'}
21506                  $as_echo "$as_val"'`
21507    if test "x$as_val" = x""yes; then
21508   cat >>confdefs.h <<_ACEOF
21509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21510 _ACEOF
21511
21512 fi
21513 done
21514
21515
21516 # Do test here with the proper thread flags
21517 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
21518 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
21519 if test "${pgac_cv_func_getpwuid_r_5arg+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 #include <sys/types.h>
21529 #include <pwd.h>
21530 int
21531 main ()
21532 {
21533 uid_t uid;
21534 struct passwd *space;
21535 char *buf;
21536 size_t bufsize;
21537 struct passwd **result;
21538 getpwuid_r(uid, space, buf, bufsize, result);
21539   ;
21540   return 0;
21541 }
21542 _ACEOF
21543 rm -f conftest.$ac_objext
21544 if { (ac_try="$ac_compile"
21545 case "(($ac_try" in
21546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547   *) ac_try_echo=$ac_try;;
21548 esac
21549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21550 $as_echo "$ac_try_echo") >&5
21551   (eval "$ac_compile") 2>conftest.er1
21552   ac_status=$?
21553   grep -v '^ *+' conftest.er1 >conftest.err
21554   rm -f conftest.er1
21555   cat conftest.err >&5
21556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557   (exit $ac_status); } && {
21558          test -z "$ac_c_werror_flag" ||
21559          test ! -s conftest.err
21560        } && test -s conftest.$ac_objext; then
21561   pgac_cv_func_getpwuid_r_5arg=yes
21562 else
21563   $as_echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21565
21566         pgac_cv_func_getpwuid_r_5arg=no
21567 fi
21568
21569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21570 fi
21571 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
21572 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
21573 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
21574
21575 cat >>confdefs.h <<\_ACEOF
21576 #define GETPWUID_R_5ARG /**/
21577 _ACEOF
21578
21579 fi
21580
21581 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
21582 $as_echo_n "checking whether strerror_r returns int... " >&6; }
21583 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
21584   $as_echo_n "(cached) " >&6
21585 else
21586   cat >conftest.$ac_ext <<_ACEOF
21587 /* confdefs.h.  */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h.  */
21592 #include <string.h>
21593 int
21594 main ()
21595 {
21596 #ifndef _AIX
21597 int strerror_r(int, char *, size_t);
21598 #else
21599 /* Older AIX has 'int' for the third argument so we don't test the args. */
21600 int strerror_r();
21601 #endif
21602   ;
21603   return 0;
21604 }
21605 _ACEOF
21606 rm -f conftest.$ac_objext
21607 if { (ac_try="$ac_compile"
21608 case "(($ac_try" in
21609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610   *) ac_try_echo=$ac_try;;
21611 esac
21612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21613 $as_echo "$ac_try_echo") >&5
21614   (eval "$ac_compile") 2>conftest.er1
21615   ac_status=$?
21616   grep -v '^ *+' conftest.er1 >conftest.err
21617   rm -f conftest.er1
21618   cat conftest.err >&5
21619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620   (exit $ac_status); } && {
21621          test -z "$ac_c_werror_flag" ||
21622          test ! -s conftest.err
21623        } && test -s conftest.$ac_objext; then
21624   pgac_cv_func_strerror_r_int=yes
21625 else
21626   $as_echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629         pgac_cv_func_strerror_r_int=no
21630 fi
21631
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633 fi
21634 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
21635 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
21636 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
21637
21638 cat >>confdefs.h <<\_ACEOF
21639 #define STRERROR_R_INT /**/
21640 _ACEOF
21641
21642 fi
21643
21644
21645 CFLAGS="$_CFLAGS"
21646 LIBS="$_LIBS"
21647
21648 else
21649 # do not use values from template file
21650 PTHREAD_CFLAGS=
21651 PTHREAD_LIBS=
21652 fi
21653
21654
21655
21656
21657
21658 # We can test for libldap_r only after we know PTHREAD_LIBS
21659 if test "$with_ldap" = yes ; then
21660   _LIBS="$LIBS"
21661   if test "$PORTNAME" != "win32"; then
21662
21663 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
21664 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
21665 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
21666   $as_echo_n "(cached) " >&6
21667 else
21668   ac_check_lib_save_LIBS=$LIBS
21669 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h.  */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h.  */
21676
21677 /* Override any GCC internal prototype to avoid an error.
21678    Use char because int might match the return type of a GCC
21679    builtin and then its argument prototype would still apply.  */
21680 #ifdef __cplusplus
21681 extern "C"
21682 #endif
21683 char ldap_bind ();
21684 int
21685 main ()
21686 {
21687 return ldap_bind ();
21688   ;
21689   return 0;
21690 }
21691 _ACEOF
21692 rm -f conftest.$ac_objext conftest$ac_exeext
21693 if { (ac_try="$ac_link"
21694 case "(($ac_try" in
21695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696   *) ac_try_echo=$ac_try;;
21697 esac
21698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21699 $as_echo "$ac_try_echo") >&5
21700   (eval "$ac_link") 2>conftest.er1
21701   ac_status=$?
21702   grep -v '^ *+' conftest.er1 >conftest.err
21703   rm -f conftest.er1
21704   cat conftest.err >&5
21705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706   (exit $ac_status); } && {
21707          test -z "$ac_c_werror_flag" ||
21708          test ! -s conftest.err
21709        } && test -s conftest$ac_exeext && {
21710          test "$cross_compiling" = yes ||
21711          $as_test_x conftest$ac_exeext
21712        }; then
21713   ac_cv_lib_ldap_ldap_bind=yes
21714 else
21715   $as_echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21717
21718         ac_cv_lib_ldap_ldap_bind=no
21719 fi
21720
21721 rm -rf conftest.dSYM
21722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21723       conftest$ac_exeext conftest.$ac_ext
21724 LIBS=$ac_check_lib_save_LIBS
21725 fi
21726 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
21727 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
21728 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
21729   cat >>confdefs.h <<_ACEOF
21730 #define HAVE_LIBLDAP 1
21731 _ACEOF
21732
21733   LIBS="-lldap $LIBS"
21734
21735 else
21736   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
21737 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
21738    { (exit 1); exit 1; }; }
21739 fi
21740
21741     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
21742     if test "$enable_thread_safety" = yes; then
21743       # on some platforms ldap_r fails to link without PTHREAD_LIBS
21744
21745 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
21746 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
21747 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
21748   $as_echo_n "(cached) " >&6
21749 else
21750   ac_check_lib_save_LIBS=$LIBS
21751 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
21752 cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h.  */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h.  */
21758
21759 /* Override any GCC internal prototype to avoid an error.
21760    Use char because int might match the return type of a GCC
21761    builtin and then its argument prototype would still apply.  */
21762 #ifdef __cplusplus
21763 extern "C"
21764 #endif
21765 char ldap_simple_bind ();
21766 int
21767 main ()
21768 {
21769 return ldap_simple_bind ();
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 rm -f conftest.$ac_objext conftest$ac_exeext
21775 if { (ac_try="$ac_link"
21776 case "(($ac_try" in
21777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778   *) ac_try_echo=$ac_try;;
21779 esac
21780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21781 $as_echo "$ac_try_echo") >&5
21782   (eval "$ac_link") 2>conftest.er1
21783   ac_status=$?
21784   grep -v '^ *+' conftest.er1 >conftest.err
21785   rm -f conftest.er1
21786   cat conftest.err >&5
21787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); } && {
21789          test -z "$ac_c_werror_flag" ||
21790          test ! -s conftest.err
21791        } && test -s conftest$ac_exeext && {
21792          test "$cross_compiling" = yes ||
21793          $as_test_x conftest$ac_exeext
21794        }; then
21795   ac_cv_lib_ldap_r_ldap_simple_bind=yes
21796 else
21797   $as_echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800         ac_cv_lib_ldap_r_ldap_simple_bind=no
21801 fi
21802
21803 rm -rf conftest.dSYM
21804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21805       conftest$ac_exeext conftest.$ac_ext
21806 LIBS=$ac_check_lib_save_LIBS
21807 fi
21808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
21809 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
21810 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
21811   cat >>confdefs.h <<_ACEOF
21812 #define HAVE_LIBLDAP_R 1
21813 _ACEOF
21814
21815   LIBS="-lldap_r $LIBS"
21816
21817 else
21818   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
21819 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
21820    { (exit 1); exit 1; }; }
21821 fi
21822
21823       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
21824     else
21825       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
21826     fi
21827   else
21828
21829 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
21830 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
21831 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
21832   $as_echo_n "(cached) " >&6
21833 else
21834   ac_check_lib_save_LIBS=$LIBS
21835 LIBS="-lwldap32  $LIBS"
21836 cat >conftest.$ac_ext <<_ACEOF
21837 /* confdefs.h.  */
21838 _ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h.  */
21842
21843 /* Override any GCC internal prototype to avoid an error.
21844    Use char because int might match the return type of a GCC
21845    builtin and then its argument prototype would still apply.  */
21846 #ifdef __cplusplus
21847 extern "C"
21848 #endif
21849 char ldap_bind ();
21850 int
21851 main ()
21852 {
21853 return ldap_bind ();
21854   ;
21855   return 0;
21856 }
21857 _ACEOF
21858 rm -f conftest.$ac_objext conftest$ac_exeext
21859 if { (ac_try="$ac_link"
21860 case "(($ac_try" in
21861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862   *) ac_try_echo=$ac_try;;
21863 esac
21864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21865 $as_echo "$ac_try_echo") >&5
21866   (eval "$ac_link") 2>conftest.er1
21867   ac_status=$?
21868   grep -v '^ *+' conftest.er1 >conftest.err
21869   rm -f conftest.er1
21870   cat conftest.err >&5
21871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872   (exit $ac_status); } && {
21873          test -z "$ac_c_werror_flag" ||
21874          test ! -s conftest.err
21875        } && test -s conftest$ac_exeext && {
21876          test "$cross_compiling" = yes ||
21877          $as_test_x conftest$ac_exeext
21878        }; then
21879   ac_cv_lib_wldap32_ldap_bind=yes
21880 else
21881   $as_echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21883
21884         ac_cv_lib_wldap32_ldap_bind=no
21885 fi
21886
21887 rm -rf conftest.dSYM
21888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21889       conftest$ac_exeext conftest.$ac_ext
21890 LIBS=$ac_check_lib_save_LIBS
21891 fi
21892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
21893 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
21894 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
21895   cat >>confdefs.h <<_ACEOF
21896 #define HAVE_LIBWLDAP32 1
21897 _ACEOF
21898
21899   LIBS="-lwldap32 $LIBS"
21900
21901 else
21902   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
21903 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
21904    { (exit 1); exit 1; }; }
21905 fi
21906
21907     LDAP_LIBS_FE="-lwldap32"
21908     LDAP_LIBS_BE="-lwldap32"
21909   fi
21910   LIBS="$_LIBS"
21911 fi
21912
21913
21914
21915
21916 # This test makes sure that run tests work at all.  Sometimes a shared
21917 # library is found by the linker, but the runtime linker can't find it.
21918 # This check should come after all modifications of compiler or linker
21919 # variables, and before any other run tests.
21920 { $as_echo "$as_me:$LINENO: checking test program" >&5
21921 $as_echo_n "checking test program... " >&6; }
21922 if test "$cross_compiling" = yes; then
21923   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
21924 $as_echo "cross-compiling" >&6; }
21925 else
21926   cat >conftest.$ac_ext <<_ACEOF
21927 /* confdefs.h.  */
21928 _ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h.  */
21932 int main() { return 0; }
21933 _ACEOF
21934 rm -f conftest$ac_exeext
21935 if { (ac_try="$ac_link"
21936 case "(($ac_try" in
21937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938   *) ac_try_echo=$ac_try;;
21939 esac
21940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21941 $as_echo "$ac_try_echo") >&5
21942   (eval "$ac_link") 2>&5
21943   ac_status=$?
21944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21946   { (case "(($ac_try" in
21947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948   *) ac_try_echo=$ac_try;;
21949 esac
21950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21951 $as_echo "$ac_try_echo") >&5
21952   (eval "$ac_try") 2>&5
21953   ac_status=$?
21954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955   (exit $ac_status); }; }; then
21956   { $as_echo "$as_me:$LINENO: result: ok" >&5
21957 $as_echo "ok" >&6; }
21958 else
21959   $as_echo "$as_me: program exited with status $ac_status" >&5
21960 $as_echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21962
21963 ( exit $ac_status )
21964 { $as_echo "$as_me:$LINENO: result: failed" >&5
21965 $as_echo "failed" >&6; }
21966 { { $as_echo "$as_me:$LINENO: error:
21967 Could not execute a simple test program.  This may be a problem
21968 related to locating shared libraries.  Check the file 'config.log'
21969 for the exact reason." >&5
21970 $as_echo "$as_me: error:
21971 Could not execute a simple test program.  This may be a problem
21972 related to locating shared libraries.  Check the file 'config.log'
21973 for the exact reason." >&2;}
21974    { (exit 1); exit 1; }; }
21975 fi
21976 rm -rf conftest.dSYM
21977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21978 fi
21979
21980
21981
21982 # --------------------
21983 # Run tests below here
21984 # --------------------
21985
21986 # Force use of our snprintf if system's doesn't do arg control
21987 # See comment above at snprintf test for details.
21988 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
21989   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
21990 $as_echo_n "checking whether printf supports argument control... " >&6; }
21991 if test "${pgac_cv_printf_arg_control+set}" = set; then
21992   $as_echo_n "(cached) " >&6
21993 else
21994   if test "$cross_compiling" = yes; then
21995   pgac_cv_printf_arg_control=cross
21996 else
21997   cat >conftest.$ac_ext <<_ACEOF
21998 /* confdefs.h.  */
21999 _ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h.  */
22003 #include <stdio.h>
22004 #include <string.h>
22005
22006 int main()
22007 {
22008   char buf[100];
22009
22010   /* can it swap arguments? */
22011   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
22012   if (strcmp(buf, "4 3") != 0)
22013     return 1;
22014   return 0;
22015 }
22016 _ACEOF
22017 rm -f conftest$ac_exeext
22018 if { (ac_try="$ac_link"
22019 case "(($ac_try" in
22020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021   *) ac_try_echo=$ac_try;;
22022 esac
22023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22024 $as_echo "$ac_try_echo") >&5
22025   (eval "$ac_link") 2>&5
22026   ac_status=$?
22027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22029   { (case "(($ac_try" in
22030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031   *) ac_try_echo=$ac_try;;
22032 esac
22033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22034 $as_echo "$ac_try_echo") >&5
22035   (eval "$ac_try") 2>&5
22036   ac_status=$?
22037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038   (exit $ac_status); }; }; then
22039   pgac_cv_printf_arg_control=yes
22040 else
22041   $as_echo "$as_me: program exited with status $ac_status" >&5
22042 $as_echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22044
22045 ( exit $ac_status )
22046 pgac_cv_printf_arg_control=no
22047 fi
22048 rm -rf conftest.dSYM
22049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22050 fi
22051
22052
22053
22054 fi
22055 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
22056 $as_echo "$pgac_cv_printf_arg_control" >&6; }
22057
22058   if test $pgac_cv_printf_arg_control != yes ; then
22059     pgac_need_repl_snprintf=yes
22060   fi
22061 fi
22062
22063
22064
22065 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
22066 $as_echo_n "checking whether long int is 64 bits... " >&6; }
22067 if test "${pgac_cv_type_long_int_64+set}" = set; then
22068   $as_echo_n "(cached) " >&6
22069 else
22070   if test "$cross_compiling" = yes; then
22071   # If cross-compiling, check the size reported by the compiler and
22072 # trust that the arithmetic works.
22073 cat >conftest.$ac_ext <<_ACEOF
22074 /* confdefs.h.  */
22075 _ACEOF
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h.  */
22079
22080 int
22081 main ()
22082 {
22083 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
22084 test_array [0] = 0
22085
22086   ;
22087   return 0;
22088 }
22089 _ACEOF
22090 rm -f conftest.$ac_objext
22091 if { (ac_try="$ac_compile"
22092 case "(($ac_try" in
22093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094   *) ac_try_echo=$ac_try;;
22095 esac
22096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22097 $as_echo "$ac_try_echo") >&5
22098   (eval "$ac_compile") 2>conftest.er1
22099   ac_status=$?
22100   grep -v '^ *+' conftest.er1 >conftest.err
22101   rm -f conftest.er1
22102   cat conftest.err >&5
22103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); } && {
22105          test -z "$ac_c_werror_flag" ||
22106          test ! -s conftest.err
22107        } && test -s conftest.$ac_objext; then
22108   pgac_cv_type_long_int_64=yes
22109 else
22110   $as_echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113         pgac_cv_type_long_int_64=no
22114 fi
22115
22116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22117 else
22118   cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h.  */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h.  */
22124 typedef long int ac_int64;
22125
22126 /*
22127  * These are globals to discourage the compiler from folding all the
22128  * arithmetic tests down to compile-time constants.
22129  */
22130 ac_int64 a = 20000001;
22131 ac_int64 b = 40000005;
22132
22133 int does_int64_work()
22134 {
22135   ac_int64 c,d;
22136
22137   if (sizeof(ac_int64) != 8)
22138     return 0;                   /* definitely not the right size */
22139
22140   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22141   c = a * b;
22142   d = (c + b) / b;
22143   if (d != a+1)
22144     return 0;
22145   return 1;
22146 }
22147 main() {
22148   exit(! does_int64_work());
22149 }
22150 _ACEOF
22151 rm -f conftest$ac_exeext
22152 if { (ac_try="$ac_link"
22153 case "(($ac_try" in
22154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155   *) ac_try_echo=$ac_try;;
22156 esac
22157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22158 $as_echo "$ac_try_echo") >&5
22159   (eval "$ac_link") 2>&5
22160   ac_status=$?
22161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22163   { (case "(($ac_try" in
22164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165   *) ac_try_echo=$ac_try;;
22166 esac
22167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22168 $as_echo "$ac_try_echo") >&5
22169   (eval "$ac_try") 2>&5
22170   ac_status=$?
22171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); }; }; then
22173   pgac_cv_type_long_int_64=yes
22174 else
22175   $as_echo "$as_me: program exited with status $ac_status" >&5
22176 $as_echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22178
22179 ( exit $ac_status )
22180 pgac_cv_type_long_int_64=no
22181 fi
22182 rm -rf conftest.dSYM
22183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22184 fi
22185
22186
22187 fi
22188 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
22189 $as_echo "$pgac_cv_type_long_int_64" >&6; }
22190
22191 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
22192 if test x"$pgac_cv_type_long_int_64" = xyes ; then
22193
22194 cat >>confdefs.h <<\_ACEOF
22195 #define HAVE_LONG_INT_64 1
22196 _ACEOF
22197
22198 fi
22199
22200
22201 if test x"$HAVE_LONG_INT_64" = x"no" ; then
22202   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
22203 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
22204 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
22205   $as_echo_n "(cached) " >&6
22206 else
22207   if test "$cross_compiling" = yes; then
22208   # If cross-compiling, check the size reported by the compiler and
22209 # trust that the arithmetic works.
22210 cat >conftest.$ac_ext <<_ACEOF
22211 /* confdefs.h.  */
22212 _ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h.  */
22216
22217 int
22218 main ()
22219 {
22220 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
22221 test_array [0] = 0
22222
22223   ;
22224   return 0;
22225 }
22226 _ACEOF
22227 rm -f conftest.$ac_objext
22228 if { (ac_try="$ac_compile"
22229 case "(($ac_try" in
22230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231   *) ac_try_echo=$ac_try;;
22232 esac
22233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22234 $as_echo "$ac_try_echo") >&5
22235   (eval "$ac_compile") 2>conftest.er1
22236   ac_status=$?
22237   grep -v '^ *+' conftest.er1 >conftest.err
22238   rm -f conftest.er1
22239   cat conftest.err >&5
22240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241   (exit $ac_status); } && {
22242          test -z "$ac_c_werror_flag" ||
22243          test ! -s conftest.err
22244        } && test -s conftest.$ac_objext; then
22245   pgac_cv_type_long_long_int_64=yes
22246 else
22247   $as_echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22249
22250         pgac_cv_type_long_long_int_64=no
22251 fi
22252
22253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254 else
22255   cat >conftest.$ac_ext <<_ACEOF
22256 /* confdefs.h.  */
22257 _ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h.  */
22261 typedef long long int ac_int64;
22262
22263 /*
22264  * These are globals to discourage the compiler from folding all the
22265  * arithmetic tests down to compile-time constants.
22266  */
22267 ac_int64 a = 20000001;
22268 ac_int64 b = 40000005;
22269
22270 int does_int64_work()
22271 {
22272   ac_int64 c,d;
22273
22274   if (sizeof(ac_int64) != 8)
22275     return 0;                   /* definitely not the right size */
22276
22277   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22278   c = a * b;
22279   d = (c + b) / b;
22280   if (d != a+1)
22281     return 0;
22282   return 1;
22283 }
22284 main() {
22285   exit(! does_int64_work());
22286 }
22287 _ACEOF
22288 rm -f conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292   *) ac_try_echo=$ac_try;;
22293 esac
22294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22295 $as_echo "$ac_try_echo") >&5
22296   (eval "$ac_link") 2>&5
22297   ac_status=$?
22298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22300   { (case "(($ac_try" in
22301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302   *) ac_try_echo=$ac_try;;
22303 esac
22304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22305 $as_echo "$ac_try_echo") >&5
22306   (eval "$ac_try") 2>&5
22307   ac_status=$?
22308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309   (exit $ac_status); }; }; then
22310   pgac_cv_type_long_long_int_64=yes
22311 else
22312   $as_echo "$as_me: program exited with status $ac_status" >&5
22313 $as_echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22315
22316 ( exit $ac_status )
22317 pgac_cv_type_long_long_int_64=no
22318 fi
22319 rm -rf conftest.dSYM
22320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22321 fi
22322
22323
22324 fi
22325 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
22326 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
22327
22328 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
22329 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
22330
22331 cat >>confdefs.h <<\_ACEOF
22332 #define HAVE_LONG_LONG_INT_64 1
22333 _ACEOF
22334
22335 fi
22336
22337 fi
22338
22339
22340
22341 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
22342   cat >conftest.$ac_ext <<_ACEOF
22343 /* confdefs.h.  */
22344 _ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h.  */
22348
22349 #define INT64CONST(x)  x##LL
22350 long long int foo = INT64CONST(0x1234567890123456);
22351
22352 int
22353 main ()
22354 {
22355
22356   ;
22357   return 0;
22358 }
22359 _ACEOF
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364   *) ac_try_echo=$ac_try;;
22365 esac
22366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22367 $as_echo "$ac_try_echo") >&5
22368   (eval "$ac_compile") 2>conftest.er1
22369   ac_status=$?
22370   grep -v '^ *+' conftest.er1 >conftest.err
22371   rm -f conftest.er1
22372   cat conftest.err >&5
22373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); } && {
22375          test -z "$ac_c_werror_flag" ||
22376          test ! -s conftest.err
22377        } && test -s conftest.$ac_objext; then
22378
22379 cat >>confdefs.h <<\_ACEOF
22380 #define HAVE_LL_CONSTANTS 1
22381 _ACEOF
22382
22383 else
22384   $as_echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387
22388 fi
22389
22390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22391 fi
22392
22393
22394 # If we found "long int" is 64 bits, assume snprintf handles it.  If
22395 # we found we need to use "long long int", better check.  We cope with
22396 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
22397 # work, fall back to our own snprintf emulation (which we know uses %lld).
22398
22399 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
22400   if test $pgac_need_repl_snprintf = no; then
22401     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
22402 $as_echo_n "checking snprintf format for long long int... " >&6; }
22403 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
22404   $as_echo_n "(cached) " >&6
22405 else
22406   for pgac_format in '%lld' '%qd' '%I64d'; do
22407 if test "$cross_compiling" = yes; then
22408   pgac_cv_snprintf_long_long_int_format=cross; break
22409 else
22410   cat >conftest.$ac_ext <<_ACEOF
22411 /* confdefs.h.  */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h.  */
22416 #include <stdio.h>
22417 typedef long long int ac_int64;
22418 #define INT64_FORMAT "$pgac_format"
22419
22420 ac_int64 a = 20000001;
22421 ac_int64 b = 40000005;
22422
22423 int does_int64_snprintf_work()
22424 {
22425   ac_int64 c;
22426   char buf[100];
22427
22428   if (sizeof(ac_int64) != 8)
22429     return 0;                   /* doesn't look like the right size */
22430
22431   c = a * b;
22432   snprintf(buf, 100, INT64_FORMAT, c);
22433   if (strcmp(buf, "800000140000005") != 0)
22434     return 0;                   /* either multiply or snprintf is busted */
22435   return 1;
22436 }
22437 main() {
22438   exit(! does_int64_snprintf_work());
22439 }
22440 _ACEOF
22441 rm -f conftest$ac_exeext
22442 if { (ac_try="$ac_link"
22443 case "(($ac_try" in
22444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445   *) ac_try_echo=$ac_try;;
22446 esac
22447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22448 $as_echo "$ac_try_echo") >&5
22449   (eval "$ac_link") 2>&5
22450   ac_status=$?
22451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22453   { (case "(($ac_try" in
22454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455   *) ac_try_echo=$ac_try;;
22456 esac
22457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22458 $as_echo "$ac_try_echo") >&5
22459   (eval "$ac_try") 2>&5
22460   ac_status=$?
22461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); }; }; then
22463   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
22464 else
22465   $as_echo "$as_me: program exited with status $ac_status" >&5
22466 $as_echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22468
22469 fi
22470 rm -rf conftest.dSYM
22471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22472 fi
22473
22474
22475 done
22476 fi
22477
22478 LONG_LONG_INT_FORMAT=''
22479
22480 case $pgac_cv_snprintf_long_long_int_format in
22481   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
22482 $as_echo "cannot test (not on host machine)" >&6; };;
22483   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
22484 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
22485          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
22486   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
22487 $as_echo "none" >&6; };;
22488 esac
22489     if test "$LONG_LONG_INT_FORMAT" = ""; then
22490       # Force usage of our own snprintf, since system snprintf is broken
22491       pgac_need_repl_snprintf=yes
22492       LONG_LONG_INT_FORMAT='%lld'
22493     fi
22494   else
22495     # Here if we previously decided we needed to use our own snprintf
22496     LONG_LONG_INT_FORMAT='%lld'
22497   fi
22498   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
22499   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
22500   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
22501 else
22502   # Here if we are not using 'long long int' at all
22503   INT64_FORMAT='"%ld"'
22504   UINT64_FORMAT='"%lu"'
22505 fi
22506
22507
22508 cat >>confdefs.h <<_ACEOF
22509 #define INT64_FORMAT $INT64_FORMAT
22510 _ACEOF
22511
22512
22513
22514 cat >>confdefs.h <<_ACEOF
22515 #define UINT64_FORMAT $UINT64_FORMAT
22516 _ACEOF
22517
22518
22519 # Now we have checked all the reasons to replace snprintf
22520 if test $pgac_need_repl_snprintf = yes; then
22521
22522 cat >>confdefs.h <<\_ACEOF
22523 #define USE_REPL_SNPRINTF 1
22524 _ACEOF
22525
22526   case " $LIBOBJS " in
22527   *" snprintf.$ac_objext "* ) ;;
22528   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22529  ;;
22530 esac
22531
22532 fi
22533
22534 # Need a #define for the size of Datum (unsigned long)
22535 # The cast to long int works around a bug in the HP C Compiler
22536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22538 # This bug is HP SR number 8606223364.
22539 { $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
22540 $as_echo_n "checking size of unsigned long... " >&6; }
22541 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
22542   $as_echo_n "(cached) " >&6
22543 else
22544   if test "$cross_compiling" = yes; then
22545   # Depending upon the size, compute the lo and hi bounds.
22546 cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h.  */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h.  */
22552 $ac_includes_default
22553 int
22554 main ()
22555 {
22556 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
22557 test_array [0] = 0
22558
22559   ;
22560   return 0;
22561 }
22562 _ACEOF
22563 rm -f conftest.$ac_objext
22564 if { (ac_try="$ac_compile"
22565 case "(($ac_try" in
22566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567   *) ac_try_echo=$ac_try;;
22568 esac
22569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22570 $as_echo "$ac_try_echo") >&5
22571   (eval "$ac_compile") 2>conftest.er1
22572   ac_status=$?
22573   grep -v '^ *+' conftest.er1 >conftest.err
22574   rm -f conftest.er1
22575   cat conftest.err >&5
22576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); } && {
22578          test -z "$ac_c_werror_flag" ||
22579          test ! -s conftest.err
22580        } && test -s conftest.$ac_objext; then
22581   ac_lo=0 ac_mid=0
22582   while :; do
22583     cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589 $ac_includes_default
22590 int
22591 main ()
22592 {
22593 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
22594 test_array [0] = 0
22595
22596   ;
22597   return 0;
22598 }
22599 _ACEOF
22600 rm -f conftest.$ac_objext
22601 if { (ac_try="$ac_compile"
22602 case "(($ac_try" in
22603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604   *) ac_try_echo=$ac_try;;
22605 esac
22606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22607 $as_echo "$ac_try_echo") >&5
22608   (eval "$ac_compile") 2>conftest.er1
22609   ac_status=$?
22610   grep -v '^ *+' conftest.er1 >conftest.err
22611   rm -f conftest.er1
22612   cat conftest.err >&5
22613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614   (exit $ac_status); } && {
22615          test -z "$ac_c_werror_flag" ||
22616          test ! -s conftest.err
22617        } && test -s conftest.$ac_objext; then
22618   ac_hi=$ac_mid; break
22619 else
22620   $as_echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22622
22623         ac_lo=`expr $ac_mid + 1`
22624                         if test $ac_lo -le $ac_mid; then
22625                           ac_lo= ac_hi=
22626                           break
22627                         fi
22628                         ac_mid=`expr 2 '*' $ac_mid + 1`
22629 fi
22630
22631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22632   done
22633 else
22634   $as_echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22636
22637         cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h.  */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h.  */
22643 $ac_includes_default
22644 int
22645 main ()
22646 {
22647 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
22648 test_array [0] = 0
22649
22650   ;
22651   return 0;
22652 }
22653 _ACEOF
22654 rm -f conftest.$ac_objext
22655 if { (ac_try="$ac_compile"
22656 case "(($ac_try" in
22657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658   *) ac_try_echo=$ac_try;;
22659 esac
22660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22661 $as_echo "$ac_try_echo") >&5
22662   (eval "$ac_compile") 2>conftest.er1
22663   ac_status=$?
22664   grep -v '^ *+' conftest.er1 >conftest.err
22665   rm -f conftest.er1
22666   cat conftest.err >&5
22667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668   (exit $ac_status); } && {
22669          test -z "$ac_c_werror_flag" ||
22670          test ! -s conftest.err
22671        } && test -s conftest.$ac_objext; then
22672   ac_hi=-1 ac_mid=-1
22673   while :; do
22674     cat >conftest.$ac_ext <<_ACEOF
22675 /* confdefs.h.  */
22676 _ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h.  */
22680 $ac_includes_default
22681 int
22682 main ()
22683 {
22684 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
22685 test_array [0] = 0
22686
22687   ;
22688   return 0;
22689 }
22690 _ACEOF
22691 rm -f conftest.$ac_objext
22692 if { (ac_try="$ac_compile"
22693 case "(($ac_try" in
22694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22695   *) ac_try_echo=$ac_try;;
22696 esac
22697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22698 $as_echo "$ac_try_echo") >&5
22699   (eval "$ac_compile") 2>conftest.er1
22700   ac_status=$?
22701   grep -v '^ *+' conftest.er1 >conftest.err
22702   rm -f conftest.er1
22703   cat conftest.err >&5
22704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705   (exit $ac_status); } && {
22706          test -z "$ac_c_werror_flag" ||
22707          test ! -s conftest.err
22708        } && test -s conftest.$ac_objext; then
22709   ac_lo=$ac_mid; break
22710 else
22711   $as_echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22713
22714         ac_hi=`expr '(' $ac_mid ')' - 1`
22715                         if test $ac_mid -le $ac_hi; then
22716                           ac_lo= ac_hi=
22717                           break
22718                         fi
22719                         ac_mid=`expr 2 '*' $ac_mid`
22720 fi
22721
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22723   done
22724 else
22725   $as_echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22727
22728         ac_lo= ac_hi=
22729 fi
22730
22731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22732 fi
22733
22734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 # Binary search between lo and hi bounds.
22736 while test "x$ac_lo" != "x$ac_hi"; do
22737   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22738   cat >conftest.$ac_ext <<_ACEOF
22739 /* confdefs.h.  */
22740 _ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h.  */
22744 $ac_includes_default
22745 int
22746 main ()
22747 {
22748 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
22749 test_array [0] = 0
22750
22751   ;
22752   return 0;
22753 }
22754 _ACEOF
22755 rm -f conftest.$ac_objext
22756 if { (ac_try="$ac_compile"
22757 case "(($ac_try" in
22758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759   *) ac_try_echo=$ac_try;;
22760 esac
22761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22762 $as_echo "$ac_try_echo") >&5
22763   (eval "$ac_compile") 2>conftest.er1
22764   ac_status=$?
22765   grep -v '^ *+' conftest.er1 >conftest.err
22766   rm -f conftest.er1
22767   cat conftest.err >&5
22768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); } && {
22770          test -z "$ac_c_werror_flag" ||
22771          test ! -s conftest.err
22772        } && test -s conftest.$ac_objext; then
22773   ac_hi=$ac_mid
22774 else
22775   $as_echo "$as_me: failed program was:" >&5
22776 sed 's/^/| /' conftest.$ac_ext >&5
22777
22778         ac_lo=`expr '(' $ac_mid ')' + 1`
22779 fi
22780
22781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22782 done
22783 case $ac_lo in
22784 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
22785 '') if test "$ac_cv_type_unsigned_long" = yes; then
22786      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22788 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22789 See \`config.log' for more details." >&5
22790 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
22791 See \`config.log' for more details." >&2;}
22792    { (exit 77); exit 77; }; }; }
22793    else
22794      ac_cv_sizeof_unsigned_long=0
22795    fi ;;
22796 esac
22797 else
22798   cat >conftest.$ac_ext <<_ACEOF
22799 /* confdefs.h.  */
22800 _ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h.  */
22804 $ac_includes_default
22805 static long int longval () { return (long int) (sizeof (unsigned long)); }
22806 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
22807 #include <stdio.h>
22808 #include <stdlib.h>
22809 int
22810 main ()
22811 {
22812
22813   FILE *f = fopen ("conftest.val", "w");
22814   if (! f)
22815     return 1;
22816   if (((long int) (sizeof (unsigned long))) < 0)
22817     {
22818       long int i = longval ();
22819       if (i != ((long int) (sizeof (unsigned long))))
22820         return 1;
22821       fprintf (f, "%ld", i);
22822     }
22823   else
22824     {
22825       unsigned long int i = ulongval ();
22826       if (i != ((long int) (sizeof (unsigned long))))
22827         return 1;
22828       fprintf (f, "%lu", i);
22829     }
22830   /* Do not output a trailing newline, as this causes \r\n confusion
22831      on some platforms.  */
22832   return ferror (f) || fclose (f) != 0;
22833
22834   ;
22835   return 0;
22836 }
22837 _ACEOF
22838 rm -f conftest$ac_exeext
22839 if { (ac_try="$ac_link"
22840 case "(($ac_try" in
22841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842   *) ac_try_echo=$ac_try;;
22843 esac
22844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22845 $as_echo "$ac_try_echo") >&5
22846   (eval "$ac_link") 2>&5
22847   ac_status=$?
22848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22850   { (case "(($ac_try" in
22851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852   *) ac_try_echo=$ac_try;;
22853 esac
22854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22855 $as_echo "$ac_try_echo") >&5
22856   (eval "$ac_try") 2>&5
22857   ac_status=$?
22858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); }; }; then
22860   ac_cv_sizeof_unsigned_long=`cat conftest.val`
22861 else
22862   $as_echo "$as_me: program exited with status $ac_status" >&5
22863 $as_echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22865
22866 ( exit $ac_status )
22867 if test "$ac_cv_type_unsigned_long" = yes; then
22868      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22870 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22871 See \`config.log' for more details." >&5
22872 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
22873 See \`config.log' for more details." >&2;}
22874    { (exit 77); exit 77; }; }; }
22875    else
22876      ac_cv_sizeof_unsigned_long=0
22877    fi
22878 fi
22879 rm -rf conftest.dSYM
22880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22881 fi
22882 rm -f conftest.val
22883 fi
22884 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
22885 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22886
22887
22888
22889 cat >>confdefs.h <<_ACEOF
22890 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22891 _ACEOF
22892
22893
22894
22895 # And check size of void *, size_t (enables tweaks for > 32bit address space)
22896 # The cast to long int works around a bug in the HP C Compiler
22897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22899 # This bug is HP SR number 8606223364.
22900 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
22901 $as_echo_n "checking size of void *... " >&6; }
22902 if test "${ac_cv_sizeof_void_p+set}" = set; then
22903   $as_echo_n "(cached) " >&6
22904 else
22905   if test "$cross_compiling" = yes; then
22906   # Depending upon the size, compute the lo and hi bounds.
22907 cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h.  */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h.  */
22913 $ac_includes_default
22914 int
22915 main ()
22916 {
22917 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
22918 test_array [0] = 0
22919
22920   ;
22921   return 0;
22922 }
22923 _ACEOF
22924 rm -f conftest.$ac_objext
22925 if { (ac_try="$ac_compile"
22926 case "(($ac_try" in
22927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928   *) ac_try_echo=$ac_try;;
22929 esac
22930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22931 $as_echo "$ac_try_echo") >&5
22932   (eval "$ac_compile") 2>conftest.er1
22933   ac_status=$?
22934   grep -v '^ *+' conftest.er1 >conftest.err
22935   rm -f conftest.er1
22936   cat conftest.err >&5
22937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); } && {
22939          test -z "$ac_c_werror_flag" ||
22940          test ! -s conftest.err
22941        } && test -s conftest.$ac_objext; then
22942   ac_lo=0 ac_mid=0
22943   while :; do
22944     cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h.  */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h.  */
22950 $ac_includes_default
22951 int
22952 main ()
22953 {
22954 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
22955 test_array [0] = 0
22956
22957   ;
22958   return 0;
22959 }
22960 _ACEOF
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965   *) ac_try_echo=$ac_try;;
22966 esac
22967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22968 $as_echo "$ac_try_echo") >&5
22969   (eval "$ac_compile") 2>conftest.er1
22970   ac_status=$?
22971   grep -v '^ *+' conftest.er1 >conftest.err
22972   rm -f conftest.er1
22973   cat conftest.err >&5
22974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); } && {
22976          test -z "$ac_c_werror_flag" ||
22977          test ! -s conftest.err
22978        } && test -s conftest.$ac_objext; then
22979   ac_hi=$ac_mid; break
22980 else
22981   $as_echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22983
22984         ac_lo=`expr $ac_mid + 1`
22985                         if test $ac_lo -le $ac_mid; then
22986                           ac_lo= ac_hi=
22987                           break
22988                         fi
22989                         ac_mid=`expr 2 '*' $ac_mid + 1`
22990 fi
22991
22992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22993   done
22994 else
22995   $as_echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22997
22998         cat >conftest.$ac_ext <<_ACEOF
22999 /* confdefs.h.  */
23000 _ACEOF
23001 cat confdefs.h >>conftest.$ac_ext
23002 cat >>conftest.$ac_ext <<_ACEOF
23003 /* end confdefs.h.  */
23004 $ac_includes_default
23005 int
23006 main ()
23007 {
23008 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
23009 test_array [0] = 0
23010
23011   ;
23012   return 0;
23013 }
23014 _ACEOF
23015 rm -f conftest.$ac_objext
23016 if { (ac_try="$ac_compile"
23017 case "(($ac_try" in
23018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019   *) ac_try_echo=$ac_try;;
23020 esac
23021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23022 $as_echo "$ac_try_echo") >&5
23023   (eval "$ac_compile") 2>conftest.er1
23024   ac_status=$?
23025   grep -v '^ *+' conftest.er1 >conftest.err
23026   rm -f conftest.er1
23027   cat conftest.err >&5
23028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); } && {
23030          test -z "$ac_c_werror_flag" ||
23031          test ! -s conftest.err
23032        } && test -s conftest.$ac_objext; then
23033   ac_hi=-1 ac_mid=-1
23034   while :; do
23035     cat >conftest.$ac_ext <<_ACEOF
23036 /* confdefs.h.  */
23037 _ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h.  */
23041 $ac_includes_default
23042 int
23043 main ()
23044 {
23045 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
23046 test_array [0] = 0
23047
23048   ;
23049   return 0;
23050 }
23051 _ACEOF
23052 rm -f conftest.$ac_objext
23053 if { (ac_try="$ac_compile"
23054 case "(($ac_try" in
23055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056   *) ac_try_echo=$ac_try;;
23057 esac
23058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23059 $as_echo "$ac_try_echo") >&5
23060   (eval "$ac_compile") 2>conftest.er1
23061   ac_status=$?
23062   grep -v '^ *+' conftest.er1 >conftest.err
23063   rm -f conftest.er1
23064   cat conftest.err >&5
23065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); } && {
23067          test -z "$ac_c_werror_flag" ||
23068          test ! -s conftest.err
23069        } && test -s conftest.$ac_objext; then
23070   ac_lo=$ac_mid; break
23071 else
23072   $as_echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23074
23075         ac_hi=`expr '(' $ac_mid ')' - 1`
23076                         if test $ac_mid -le $ac_hi; then
23077                           ac_lo= ac_hi=
23078                           break
23079                         fi
23080                         ac_mid=`expr 2 '*' $ac_mid`
23081 fi
23082
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084   done
23085 else
23086   $as_echo "$as_me: failed program was:" >&5
23087 sed 's/^/| /' conftest.$ac_ext >&5
23088
23089         ac_lo= ac_hi=
23090 fi
23091
23092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23093 fi
23094
23095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23096 # Binary search between lo and hi bounds.
23097 while test "x$ac_lo" != "x$ac_hi"; do
23098   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23099   cat >conftest.$ac_ext <<_ACEOF
23100 /* confdefs.h.  */
23101 _ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h.  */
23105 $ac_includes_default
23106 int
23107 main ()
23108 {
23109 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23110 test_array [0] = 0
23111
23112   ;
23113   return 0;
23114 }
23115 _ACEOF
23116 rm -f conftest.$ac_objext
23117 if { (ac_try="$ac_compile"
23118 case "(($ac_try" in
23119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23120   *) ac_try_echo=$ac_try;;
23121 esac
23122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23123 $as_echo "$ac_try_echo") >&5
23124   (eval "$ac_compile") 2>conftest.er1
23125   ac_status=$?
23126   grep -v '^ *+' conftest.er1 >conftest.err
23127   rm -f conftest.er1
23128   cat conftest.err >&5
23129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); } && {
23131          test -z "$ac_c_werror_flag" ||
23132          test ! -s conftest.err
23133        } && test -s conftest.$ac_objext; then
23134   ac_hi=$ac_mid
23135 else
23136   $as_echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23138
23139         ac_lo=`expr '(' $ac_mid ')' + 1`
23140 fi
23141
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143 done
23144 case $ac_lo in
23145 ?*) ac_cv_sizeof_void_p=$ac_lo;;
23146 '') if test "$ac_cv_type_void_p" = yes; then
23147      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23149 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23150 See \`config.log' for more details." >&5
23151 $as_echo "$as_me: error: cannot compute sizeof (void *)
23152 See \`config.log' for more details." >&2;}
23153    { (exit 77); exit 77; }; }; }
23154    else
23155      ac_cv_sizeof_void_p=0
23156    fi ;;
23157 esac
23158 else
23159   cat >conftest.$ac_ext <<_ACEOF
23160 /* confdefs.h.  */
23161 _ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h.  */
23165 $ac_includes_default
23166 static long int longval () { return (long int) (sizeof (void *)); }
23167 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
23168 #include <stdio.h>
23169 #include <stdlib.h>
23170 int
23171 main ()
23172 {
23173
23174   FILE *f = fopen ("conftest.val", "w");
23175   if (! f)
23176     return 1;
23177   if (((long int) (sizeof (void *))) < 0)
23178     {
23179       long int i = longval ();
23180       if (i != ((long int) (sizeof (void *))))
23181         return 1;
23182       fprintf (f, "%ld", i);
23183     }
23184   else
23185     {
23186       unsigned long int i = ulongval ();
23187       if (i != ((long int) (sizeof (void *))))
23188         return 1;
23189       fprintf (f, "%lu", i);
23190     }
23191   /* Do not output a trailing newline, as this causes \r\n confusion
23192      on some platforms.  */
23193   return ferror (f) || fclose (f) != 0;
23194
23195   ;
23196   return 0;
23197 }
23198 _ACEOF
23199 rm -f conftest$ac_exeext
23200 if { (ac_try="$ac_link"
23201 case "(($ac_try" in
23202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203   *) ac_try_echo=$ac_try;;
23204 esac
23205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23206 $as_echo "$ac_try_echo") >&5
23207   (eval "$ac_link") 2>&5
23208   ac_status=$?
23209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23211   { (case "(($ac_try" in
23212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213   *) ac_try_echo=$ac_try;;
23214 esac
23215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23216 $as_echo "$ac_try_echo") >&5
23217   (eval "$ac_try") 2>&5
23218   ac_status=$?
23219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); }; }; then
23221   ac_cv_sizeof_void_p=`cat conftest.val`
23222 else
23223   $as_echo "$as_me: program exited with status $ac_status" >&5
23224 $as_echo "$as_me: failed program was:" >&5
23225 sed 's/^/| /' conftest.$ac_ext >&5
23226
23227 ( exit $ac_status )
23228 if test "$ac_cv_type_void_p" = yes; then
23229      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23231 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23232 See \`config.log' for more details." >&5
23233 $as_echo "$as_me: error: cannot compute sizeof (void *)
23234 See \`config.log' for more details." >&2;}
23235    { (exit 77); exit 77; }; }; }
23236    else
23237      ac_cv_sizeof_void_p=0
23238    fi
23239 fi
23240 rm -rf conftest.dSYM
23241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23242 fi
23243 rm -f conftest.val
23244 fi
23245 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23246 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23247
23248
23249
23250 cat >>confdefs.h <<_ACEOF
23251 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23252 _ACEOF
23253
23254
23255 # The cast to long int works around a bug in the HP C Compiler
23256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23258 # This bug is HP SR number 8606223364.
23259 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
23260 $as_echo_n "checking size of size_t... " >&6; }
23261 if test "${ac_cv_sizeof_size_t+set}" = set; then
23262   $as_echo_n "(cached) " >&6
23263 else
23264   if test "$cross_compiling" = yes; then
23265   # Depending upon the size, compute the lo and hi bounds.
23266 cat >conftest.$ac_ext <<_ACEOF
23267 /* confdefs.h.  */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h.  */
23272 $ac_includes_default
23273 int
23274 main ()
23275 {
23276 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
23277 test_array [0] = 0
23278
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287   *) ac_try_echo=$ac_try;;
23288 esac
23289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23290 $as_echo "$ac_try_echo") >&5
23291   (eval "$ac_compile") 2>conftest.er1
23292   ac_status=$?
23293   grep -v '^ *+' conftest.er1 >conftest.err
23294   rm -f conftest.er1
23295   cat conftest.err >&5
23296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297   (exit $ac_status); } && {
23298          test -z "$ac_c_werror_flag" ||
23299          test ! -s conftest.err
23300        } && test -s conftest.$ac_objext; then
23301   ac_lo=0 ac_mid=0
23302   while :; do
23303     cat >conftest.$ac_ext <<_ACEOF
23304 /* confdefs.h.  */
23305 _ACEOF
23306 cat confdefs.h >>conftest.$ac_ext
23307 cat >>conftest.$ac_ext <<_ACEOF
23308 /* end confdefs.h.  */
23309 $ac_includes_default
23310 int
23311 main ()
23312 {
23313 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23314 test_array [0] = 0
23315
23316   ;
23317   return 0;
23318 }
23319 _ACEOF
23320 rm -f conftest.$ac_objext
23321 if { (ac_try="$ac_compile"
23322 case "(($ac_try" in
23323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324   *) ac_try_echo=$ac_try;;
23325 esac
23326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23327 $as_echo "$ac_try_echo") >&5
23328   (eval "$ac_compile") 2>conftest.er1
23329   ac_status=$?
23330   grep -v '^ *+' conftest.er1 >conftest.err
23331   rm -f conftest.er1
23332   cat conftest.err >&5
23333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334   (exit $ac_status); } && {
23335          test -z "$ac_c_werror_flag" ||
23336          test ! -s conftest.err
23337        } && test -s conftest.$ac_objext; then
23338   ac_hi=$ac_mid; break
23339 else
23340   $as_echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23342
23343         ac_lo=`expr $ac_mid + 1`
23344                         if test $ac_lo -le $ac_mid; then
23345                           ac_lo= ac_hi=
23346                           break
23347                         fi
23348                         ac_mid=`expr 2 '*' $ac_mid + 1`
23349 fi
23350
23351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352   done
23353 else
23354   $as_echo "$as_me: failed program was:" >&5
23355 sed 's/^/| /' conftest.$ac_ext >&5
23356
23357         cat >conftest.$ac_ext <<_ACEOF
23358 /* confdefs.h.  */
23359 _ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h.  */
23363 $ac_includes_default
23364 int
23365 main ()
23366 {
23367 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
23368 test_array [0] = 0
23369
23370   ;
23371   return 0;
23372 }
23373 _ACEOF
23374 rm -f conftest.$ac_objext
23375 if { (ac_try="$ac_compile"
23376 case "(($ac_try" in
23377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378   *) ac_try_echo=$ac_try;;
23379 esac
23380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23381 $as_echo "$ac_try_echo") >&5
23382   (eval "$ac_compile") 2>conftest.er1
23383   ac_status=$?
23384   grep -v '^ *+' conftest.er1 >conftest.err
23385   rm -f conftest.er1
23386   cat conftest.err >&5
23387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388   (exit $ac_status); } && {
23389          test -z "$ac_c_werror_flag" ||
23390          test ! -s conftest.err
23391        } && test -s conftest.$ac_objext; then
23392   ac_hi=-1 ac_mid=-1
23393   while :; do
23394     cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h.  */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h.  */
23400 $ac_includes_default
23401 int
23402 main ()
23403 {
23404 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
23405 test_array [0] = 0
23406
23407   ;
23408   return 0;
23409 }
23410 _ACEOF
23411 rm -f conftest.$ac_objext
23412 if { (ac_try="$ac_compile"
23413 case "(($ac_try" in
23414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415   *) ac_try_echo=$ac_try;;
23416 esac
23417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23418 $as_echo "$ac_try_echo") >&5
23419   (eval "$ac_compile") 2>conftest.er1
23420   ac_status=$?
23421   grep -v '^ *+' conftest.er1 >conftest.err
23422   rm -f conftest.er1
23423   cat conftest.err >&5
23424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); } && {
23426          test -z "$ac_c_werror_flag" ||
23427          test ! -s conftest.err
23428        } && test -s conftest.$ac_objext; then
23429   ac_lo=$ac_mid; break
23430 else
23431   $as_echo "$as_me: failed program was:" >&5
23432 sed 's/^/| /' conftest.$ac_ext >&5
23433
23434         ac_hi=`expr '(' $ac_mid ')' - 1`
23435                         if test $ac_mid -le $ac_hi; then
23436                           ac_lo= ac_hi=
23437                           break
23438                         fi
23439                         ac_mid=`expr 2 '*' $ac_mid`
23440 fi
23441
23442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443   done
23444 else
23445   $as_echo "$as_me: failed program was:" >&5
23446 sed 's/^/| /' conftest.$ac_ext >&5
23447
23448         ac_lo= ac_hi=
23449 fi
23450
23451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23452 fi
23453
23454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23455 # Binary search between lo and hi bounds.
23456 while test "x$ac_lo" != "x$ac_hi"; do
23457   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23458   cat >conftest.$ac_ext <<_ACEOF
23459 /* confdefs.h.  */
23460 _ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h.  */
23464 $ac_includes_default
23465 int
23466 main ()
23467 {
23468 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23469 test_array [0] = 0
23470
23471   ;
23472   return 0;
23473 }
23474 _ACEOF
23475 rm -f conftest.$ac_objext
23476 if { (ac_try="$ac_compile"
23477 case "(($ac_try" in
23478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479   *) ac_try_echo=$ac_try;;
23480 esac
23481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23482 $as_echo "$ac_try_echo") >&5
23483   (eval "$ac_compile") 2>conftest.er1
23484   ac_status=$?
23485   grep -v '^ *+' conftest.er1 >conftest.err
23486   rm -f conftest.er1
23487   cat conftest.err >&5
23488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489   (exit $ac_status); } && {
23490          test -z "$ac_c_werror_flag" ||
23491          test ! -s conftest.err
23492        } && test -s conftest.$ac_objext; then
23493   ac_hi=$ac_mid
23494 else
23495   $as_echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23497
23498         ac_lo=`expr '(' $ac_mid ')' + 1`
23499 fi
23500
23501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23502 done
23503 case $ac_lo in
23504 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23505 '') if test "$ac_cv_type_size_t" = yes; then
23506      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23508 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23509 See \`config.log' for more details." >&5
23510 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23511 See \`config.log' for more details." >&2;}
23512    { (exit 77); exit 77; }; }; }
23513    else
23514      ac_cv_sizeof_size_t=0
23515    fi ;;
23516 esac
23517 else
23518   cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h.  */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h.  */
23524 $ac_includes_default
23525 static long int longval () { return (long int) (sizeof (size_t)); }
23526 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
23527 #include <stdio.h>
23528 #include <stdlib.h>
23529 int
23530 main ()
23531 {
23532
23533   FILE *f = fopen ("conftest.val", "w");
23534   if (! f)
23535     return 1;
23536   if (((long int) (sizeof (size_t))) < 0)
23537     {
23538       long int i = longval ();
23539       if (i != ((long int) (sizeof (size_t))))
23540         return 1;
23541       fprintf (f, "%ld", i);
23542     }
23543   else
23544     {
23545       unsigned long int i = ulongval ();
23546       if (i != ((long int) (sizeof (size_t))))
23547         return 1;
23548       fprintf (f, "%lu", i);
23549     }
23550   /* Do not output a trailing newline, as this causes \r\n confusion
23551      on some platforms.  */
23552   return ferror (f) || fclose (f) != 0;
23553
23554   ;
23555   return 0;
23556 }
23557 _ACEOF
23558 rm -f conftest$ac_exeext
23559 if { (ac_try="$ac_link"
23560 case "(($ac_try" in
23561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562   *) ac_try_echo=$ac_try;;
23563 esac
23564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23565 $as_echo "$ac_try_echo") >&5
23566   (eval "$ac_link") 2>&5
23567   ac_status=$?
23568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23570   { (case "(($ac_try" in
23571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23572   *) ac_try_echo=$ac_try;;
23573 esac
23574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23575 $as_echo "$ac_try_echo") >&5
23576   (eval "$ac_try") 2>&5
23577   ac_status=$?
23578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579   (exit $ac_status); }; }; then
23580   ac_cv_sizeof_size_t=`cat conftest.val`
23581 else
23582   $as_echo "$as_me: program exited with status $ac_status" >&5
23583 $as_echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23585
23586 ( exit $ac_status )
23587 if test "$ac_cv_type_size_t" = yes; then
23588      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23590 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23591 See \`config.log' for more details." >&5
23592 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23593 See \`config.log' for more details." >&2;}
23594    { (exit 77); exit 77; }; }; }
23595    else
23596      ac_cv_sizeof_size_t=0
23597    fi
23598 fi
23599 rm -rf conftest.dSYM
23600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23601 fi
23602 rm -f conftest.val
23603 fi
23604 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23605 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23606
23607
23608
23609 cat >>confdefs.h <<_ACEOF
23610 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23611 _ACEOF
23612
23613
23614
23615 # Decide whether float4 is passed by value: user-selectable, enabled by default
23616 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
23617 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
23618
23619
23620 # Check whether --enable-float4-byval was given.
23621 if test "${enable_float4_byval+set}" = set; then
23622   enableval=$enable_float4_byval;
23623   case $enableval in
23624     yes)
23625
23626 cat >>confdefs.h <<\_ACEOF
23627 #define USE_FLOAT4_BYVAL 1
23628 _ACEOF
23629
23630                float4passbyval=true
23631       ;;
23632     no)
23633       float4passbyval=false
23634       ;;
23635     *)
23636       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
23637 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
23638    { (exit 1); exit 1; }; }
23639       ;;
23640   esac
23641
23642 else
23643   enable_float4_byval=yes
23644
23645 cat >>confdefs.h <<\_ACEOF
23646 #define USE_FLOAT4_BYVAL 1
23647 _ACEOF
23648
23649                float4passbyval=true
23650 fi
23651
23652
23653 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
23654 $as_echo "$enable_float4_byval" >&6; }
23655
23656 cat >>confdefs.h <<_ACEOF
23657 #define FLOAT4PASSBYVAL $float4passbyval
23658 _ACEOF
23659
23660
23661 # Decide whether float8 is passed by value.
23662 # Note: this setting also controls int8 and related types such as timestamp.
23663 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
23664 # If not, trying to select it is an error.
23665 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
23666 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
23667 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
23668
23669
23670 # Check whether --enable-float8-byval was given.
23671 if test "${enable_float8_byval+set}" = set; then
23672   enableval=$enable_float8_byval;
23673   case $enableval in
23674     yes)
23675       :
23676       ;;
23677     no)
23678       :
23679       ;;
23680     *)
23681       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
23682 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
23683    { (exit 1); exit 1; }; }
23684       ;;
23685   esac
23686
23687 else
23688   enable_float8_byval=yes
23689
23690 fi
23691
23692
23693 else
23694
23695
23696 # Check whether --enable-float8-byval was given.
23697 if test "${enable_float8_byval+set}" = set; then
23698   enableval=$enable_float8_byval;
23699   case $enableval in
23700     yes)
23701       :
23702       ;;
23703     no)
23704       :
23705       ;;
23706     *)
23707       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
23708 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
23709    { (exit 1); exit 1; }; }
23710       ;;
23711   esac
23712
23713 else
23714   enable_float8_byval=no
23715
23716 fi
23717
23718
23719   if test "$enable_float8_byval" = yes ; then
23720     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
23721 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
23722    { (exit 1); exit 1; }; }
23723   fi
23724 fi
23725 if test "$enable_float8_byval" = yes ; then
23726
23727 cat >>confdefs.h <<\_ACEOF
23728 #define USE_FLOAT8_BYVAL 1
23729 _ACEOF
23730
23731   float8passbyval=true
23732 else
23733   float8passbyval=false
23734 fi
23735 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
23736 $as_echo "$enable_float8_byval" >&6; }
23737
23738 cat >>confdefs.h <<_ACEOF
23739 #define FLOAT8PASSBYVAL $float8passbyval
23740 _ACEOF
23741
23742
23743 # Determine memory alignment requirements for the basic C data types.
23744
23745 # The cast to long int works around a bug in the HP C Compiler,
23746 # see AC_CHECK_SIZEOF for more information.
23747 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
23748 $as_echo_n "checking alignment of short... " >&6; }
23749 if test "${ac_cv_alignof_short+set}" = set; then
23750   $as_echo_n "(cached) " >&6
23751 else
23752   if test "$cross_compiling" = yes; then
23753   # Depending upon the size, compute the lo and hi bounds.
23754 cat >conftest.$ac_ext <<_ACEOF
23755 /* confdefs.h.  */
23756 _ACEOF
23757 cat confdefs.h >>conftest.$ac_ext
23758 cat >>conftest.$ac_ext <<_ACEOF
23759 /* end confdefs.h.  */
23760 $ac_includes_default
23761 #ifndef offsetof
23762 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23763 #endif
23764 typedef struct { char x; short y; } ac__type_alignof_;
23765 int
23766 main ()
23767 {
23768 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23769 test_array [0] = 0
23770
23771   ;
23772   return 0;
23773 }
23774 _ACEOF
23775 rm -f conftest.$ac_objext
23776 if { (ac_try="$ac_compile"
23777 case "(($ac_try" in
23778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779   *) ac_try_echo=$ac_try;;
23780 esac
23781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23782 $as_echo "$ac_try_echo") >&5
23783   (eval "$ac_compile") 2>conftest.er1
23784   ac_status=$?
23785   grep -v '^ *+' conftest.er1 >conftest.err
23786   rm -f conftest.er1
23787   cat conftest.err >&5
23788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789   (exit $ac_status); } && {
23790          test -z "$ac_c_werror_flag" ||
23791          test ! -s conftest.err
23792        } && test -s conftest.$ac_objext; then
23793   ac_lo=0 ac_mid=0
23794   while :; do
23795     cat >conftest.$ac_ext <<_ACEOF
23796 /* confdefs.h.  */
23797 _ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h.  */
23801 $ac_includes_default
23802 #ifndef offsetof
23803 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23804 #endif
23805 typedef struct { char x; short y; } ac__type_alignof_;
23806 int
23807 main ()
23808 {
23809 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23810 test_array [0] = 0
23811
23812   ;
23813   return 0;
23814 }
23815 _ACEOF
23816 rm -f conftest.$ac_objext
23817 if { (ac_try="$ac_compile"
23818 case "(($ac_try" in
23819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820   *) ac_try_echo=$ac_try;;
23821 esac
23822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23823 $as_echo "$ac_try_echo") >&5
23824   (eval "$ac_compile") 2>conftest.er1
23825   ac_status=$?
23826   grep -v '^ *+' conftest.er1 >conftest.err
23827   rm -f conftest.er1
23828   cat conftest.err >&5
23829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); } && {
23831          test -z "$ac_c_werror_flag" ||
23832          test ! -s conftest.err
23833        } && test -s conftest.$ac_objext; then
23834   ac_hi=$ac_mid; break
23835 else
23836   $as_echo "$as_me: failed program was:" >&5
23837 sed 's/^/| /' conftest.$ac_ext >&5
23838
23839         ac_lo=`expr $ac_mid + 1`
23840                         if test $ac_lo -le $ac_mid; then
23841                           ac_lo= ac_hi=
23842                           break
23843                         fi
23844                         ac_mid=`expr 2 '*' $ac_mid + 1`
23845 fi
23846
23847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23848   done
23849 else
23850   $as_echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23852
23853         cat >conftest.$ac_ext <<_ACEOF
23854 /* confdefs.h.  */
23855 _ACEOF
23856 cat confdefs.h >>conftest.$ac_ext
23857 cat >>conftest.$ac_ext <<_ACEOF
23858 /* end confdefs.h.  */
23859 $ac_includes_default
23860 #ifndef offsetof
23861 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23862 #endif
23863 typedef struct { char x; short y; } ac__type_alignof_;
23864 int
23865 main ()
23866 {
23867 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23868 test_array [0] = 0
23869
23870   ;
23871   return 0;
23872 }
23873 _ACEOF
23874 rm -f conftest.$ac_objext
23875 if { (ac_try="$ac_compile"
23876 case "(($ac_try" in
23877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878   *) ac_try_echo=$ac_try;;
23879 esac
23880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23881 $as_echo "$ac_try_echo") >&5
23882   (eval "$ac_compile") 2>conftest.er1
23883   ac_status=$?
23884   grep -v '^ *+' conftest.er1 >conftest.err
23885   rm -f conftest.er1
23886   cat conftest.err >&5
23887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888   (exit $ac_status); } && {
23889          test -z "$ac_c_werror_flag" ||
23890          test ! -s conftest.err
23891        } && test -s conftest.$ac_objext; then
23892   ac_hi=-1 ac_mid=-1
23893   while :; do
23894     cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h.  */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h.  */
23900 $ac_includes_default
23901 #ifndef offsetof
23902 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23903 #endif
23904 typedef struct { char x; short y; } ac__type_alignof_;
23905 int
23906 main ()
23907 {
23908 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23909 test_array [0] = 0
23910
23911   ;
23912   return 0;
23913 }
23914 _ACEOF
23915 rm -f conftest.$ac_objext
23916 if { (ac_try="$ac_compile"
23917 case "(($ac_try" in
23918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919   *) ac_try_echo=$ac_try;;
23920 esac
23921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23922 $as_echo "$ac_try_echo") >&5
23923   (eval "$ac_compile") 2>conftest.er1
23924   ac_status=$?
23925   grep -v '^ *+' conftest.er1 >conftest.err
23926   rm -f conftest.er1
23927   cat conftest.err >&5
23928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929   (exit $ac_status); } && {
23930          test -z "$ac_c_werror_flag" ||
23931          test ! -s conftest.err
23932        } && test -s conftest.$ac_objext; then
23933   ac_lo=$ac_mid; break
23934 else
23935   $as_echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23937
23938         ac_hi=`expr '(' $ac_mid ')' - 1`
23939                         if test $ac_mid -le $ac_hi; then
23940                           ac_lo= ac_hi=
23941                           break
23942                         fi
23943                         ac_mid=`expr 2 '*' $ac_mid`
23944 fi
23945
23946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23947   done
23948 else
23949   $as_echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23951
23952         ac_lo= ac_hi=
23953 fi
23954
23955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23956 fi
23957
23958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23959 # Binary search between lo and hi bounds.
23960 while test "x$ac_lo" != "x$ac_hi"; do
23961   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23962   cat >conftest.$ac_ext <<_ACEOF
23963 /* confdefs.h.  */
23964 _ACEOF
23965 cat confdefs.h >>conftest.$ac_ext
23966 cat >>conftest.$ac_ext <<_ACEOF
23967 /* end confdefs.h.  */
23968 $ac_includes_default
23969 #ifndef offsetof
23970 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23971 #endif
23972 typedef struct { char x; short y; } ac__type_alignof_;
23973 int
23974 main ()
23975 {
23976 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23977 test_array [0] = 0
23978
23979   ;
23980   return 0;
23981 }
23982 _ACEOF
23983 rm -f conftest.$ac_objext
23984 if { (ac_try="$ac_compile"
23985 case "(($ac_try" in
23986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23987   *) ac_try_echo=$ac_try;;
23988 esac
23989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23990 $as_echo "$ac_try_echo") >&5
23991   (eval "$ac_compile") 2>conftest.er1
23992   ac_status=$?
23993   grep -v '^ *+' conftest.er1 >conftest.err
23994   rm -f conftest.er1
23995   cat conftest.err >&5
23996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997   (exit $ac_status); } && {
23998          test -z "$ac_c_werror_flag" ||
23999          test ! -s conftest.err
24000        } && test -s conftest.$ac_objext; then
24001   ac_hi=$ac_mid
24002 else
24003   $as_echo "$as_me: failed program was:" >&5
24004 sed 's/^/| /' conftest.$ac_ext >&5
24005
24006         ac_lo=`expr '(' $ac_mid ')' + 1`
24007 fi
24008
24009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24010 done
24011 case $ac_lo in
24012 ?*) ac_cv_alignof_short=$ac_lo;;
24013 '') if test "$ac_cv_type_short" = yes; then
24014      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24016 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24017 See \`config.log' for more details." >&5
24018 $as_echo "$as_me: error: cannot compute alignment of short
24019 See \`config.log' for more details." >&2;}
24020    { (exit 77); exit 77; }; }; }
24021    else
24022      ac_cv_alignof_short=0
24023    fi ;;
24024 esac
24025 else
24026   cat >conftest.$ac_ext <<_ACEOF
24027 /* confdefs.h.  */
24028 _ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h.  */
24032 $ac_includes_default
24033 #ifndef offsetof
24034 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24035 #endif
24036 typedef struct { char x; short y; } ac__type_alignof_;
24037 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24038 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24039 #include <stdio.h>
24040 #include <stdlib.h>
24041 int
24042 main ()
24043 {
24044
24045   FILE *f = fopen ("conftest.val", "w");
24046   if (! f)
24047     return 1;
24048   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24049     {
24050       long int i = longval ();
24051       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24052         return 1;
24053       fprintf (f, "%ld", i);
24054     }
24055   else
24056     {
24057       unsigned long int i = ulongval ();
24058       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24059         return 1;
24060       fprintf (f, "%lu", i);
24061     }
24062   /* Do not output a trailing newline, as this causes \r\n confusion
24063      on some platforms.  */
24064   return ferror (f) || fclose (f) != 0;
24065
24066   ;
24067   return 0;
24068 }
24069 _ACEOF
24070 rm -f conftest$ac_exeext
24071 if { (ac_try="$ac_link"
24072 case "(($ac_try" in
24073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074   *) ac_try_echo=$ac_try;;
24075 esac
24076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24077 $as_echo "$ac_try_echo") >&5
24078   (eval "$ac_link") 2>&5
24079   ac_status=$?
24080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24082   { (case "(($ac_try" in
24083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24084   *) ac_try_echo=$ac_try;;
24085 esac
24086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24087 $as_echo "$ac_try_echo") >&5
24088   (eval "$ac_try") 2>&5
24089   ac_status=$?
24090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091   (exit $ac_status); }; }; then
24092   ac_cv_alignof_short=`cat conftest.val`
24093 else
24094   $as_echo "$as_me: program exited with status $ac_status" >&5
24095 $as_echo "$as_me: failed program was:" >&5
24096 sed 's/^/| /' conftest.$ac_ext >&5
24097
24098 ( exit $ac_status )
24099 if test "$ac_cv_type_short" = yes; then
24100      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24102 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24103 See \`config.log' for more details." >&5
24104 $as_echo "$as_me: error: cannot compute alignment of short
24105 See \`config.log' for more details." >&2;}
24106    { (exit 77); exit 77; }; }; }
24107    else
24108      ac_cv_alignof_short=0
24109    fi
24110 fi
24111 rm -rf conftest.dSYM
24112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24113 fi
24114 rm -f conftest.val
24115 fi
24116 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
24117 $as_echo "$ac_cv_alignof_short" >&6; }
24118
24119
24120
24121 cat >>confdefs.h <<_ACEOF
24122 #define ALIGNOF_SHORT $ac_cv_alignof_short
24123 _ACEOF
24124
24125
24126 # The cast to long int works around a bug in the HP C Compiler,
24127 # see AC_CHECK_SIZEOF for more information.
24128 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
24129 $as_echo_n "checking alignment of int... " >&6; }
24130 if test "${ac_cv_alignof_int+set}" = set; then
24131   $as_echo_n "(cached) " >&6
24132 else
24133   if test "$cross_compiling" = yes; then
24134   # Depending upon the size, compute the lo and hi bounds.
24135 cat >conftest.$ac_ext <<_ACEOF
24136 /* confdefs.h.  */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h.  */
24141 $ac_includes_default
24142 #ifndef offsetof
24143 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24144 #endif
24145 typedef struct { char x; int y; } ac__type_alignof_;
24146 int
24147 main ()
24148 {
24149 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24150 test_array [0] = 0
24151
24152   ;
24153   return 0;
24154 }
24155 _ACEOF
24156 rm -f conftest.$ac_objext
24157 if { (ac_try="$ac_compile"
24158 case "(($ac_try" in
24159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24160   *) ac_try_echo=$ac_try;;
24161 esac
24162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24163 $as_echo "$ac_try_echo") >&5
24164   (eval "$ac_compile") 2>conftest.er1
24165   ac_status=$?
24166   grep -v '^ *+' conftest.er1 >conftest.err
24167   rm -f conftest.er1
24168   cat conftest.err >&5
24169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170   (exit $ac_status); } && {
24171          test -z "$ac_c_werror_flag" ||
24172          test ! -s conftest.err
24173        } && test -s conftest.$ac_objext; then
24174   ac_lo=0 ac_mid=0
24175   while :; do
24176     cat >conftest.$ac_ext <<_ACEOF
24177 /* confdefs.h.  */
24178 _ACEOF
24179 cat confdefs.h >>conftest.$ac_ext
24180 cat >>conftest.$ac_ext <<_ACEOF
24181 /* end confdefs.h.  */
24182 $ac_includes_default
24183 #ifndef offsetof
24184 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24185 #endif
24186 typedef struct { char x; int y; } ac__type_alignof_;
24187 int
24188 main ()
24189 {
24190 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24191 test_array [0] = 0
24192
24193   ;
24194   return 0;
24195 }
24196 _ACEOF
24197 rm -f conftest.$ac_objext
24198 if { (ac_try="$ac_compile"
24199 case "(($ac_try" in
24200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24201   *) ac_try_echo=$ac_try;;
24202 esac
24203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24204 $as_echo "$ac_try_echo") >&5
24205   (eval "$ac_compile") 2>conftest.er1
24206   ac_status=$?
24207   grep -v '^ *+' conftest.er1 >conftest.err
24208   rm -f conftest.er1
24209   cat conftest.err >&5
24210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211   (exit $ac_status); } && {
24212          test -z "$ac_c_werror_flag" ||
24213          test ! -s conftest.err
24214        } && test -s conftest.$ac_objext; then
24215   ac_hi=$ac_mid; break
24216 else
24217   $as_echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24219
24220         ac_lo=`expr $ac_mid + 1`
24221                         if test $ac_lo -le $ac_mid; then
24222                           ac_lo= ac_hi=
24223                           break
24224                         fi
24225                         ac_mid=`expr 2 '*' $ac_mid + 1`
24226 fi
24227
24228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24229   done
24230 else
24231   $as_echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24233
24234         cat >conftest.$ac_ext <<_ACEOF
24235 /* confdefs.h.  */
24236 _ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h.  */
24240 $ac_includes_default
24241 #ifndef offsetof
24242 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24243 #endif
24244 typedef struct { char x; int y; } ac__type_alignof_;
24245 int
24246 main ()
24247 {
24248 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24249 test_array [0] = 0
24250
24251   ;
24252   return 0;
24253 }
24254 _ACEOF
24255 rm -f conftest.$ac_objext
24256 if { (ac_try="$ac_compile"
24257 case "(($ac_try" in
24258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24259   *) ac_try_echo=$ac_try;;
24260 esac
24261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24262 $as_echo "$ac_try_echo") >&5
24263   (eval "$ac_compile") 2>conftest.er1
24264   ac_status=$?
24265   grep -v '^ *+' conftest.er1 >conftest.err
24266   rm -f conftest.er1
24267   cat conftest.err >&5
24268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269   (exit $ac_status); } && {
24270          test -z "$ac_c_werror_flag" ||
24271          test ! -s conftest.err
24272        } && test -s conftest.$ac_objext; then
24273   ac_hi=-1 ac_mid=-1
24274   while :; do
24275     cat >conftest.$ac_ext <<_ACEOF
24276 /* confdefs.h.  */
24277 _ACEOF
24278 cat confdefs.h >>conftest.$ac_ext
24279 cat >>conftest.$ac_ext <<_ACEOF
24280 /* end confdefs.h.  */
24281 $ac_includes_default
24282 #ifndef offsetof
24283 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24284 #endif
24285 typedef struct { char x; int y; } ac__type_alignof_;
24286 int
24287 main ()
24288 {
24289 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24290 test_array [0] = 0
24291
24292   ;
24293   return 0;
24294 }
24295 _ACEOF
24296 rm -f conftest.$ac_objext
24297 if { (ac_try="$ac_compile"
24298 case "(($ac_try" in
24299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24300   *) ac_try_echo=$ac_try;;
24301 esac
24302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24303 $as_echo "$ac_try_echo") >&5
24304   (eval "$ac_compile") 2>conftest.er1
24305   ac_status=$?
24306   grep -v '^ *+' conftest.er1 >conftest.err
24307   rm -f conftest.er1
24308   cat conftest.err >&5
24309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310   (exit $ac_status); } && {
24311          test -z "$ac_c_werror_flag" ||
24312          test ! -s conftest.err
24313        } && test -s conftest.$ac_objext; then
24314   ac_lo=$ac_mid; break
24315 else
24316   $as_echo "$as_me: failed program was:" >&5
24317 sed 's/^/| /' conftest.$ac_ext >&5
24318
24319         ac_hi=`expr '(' $ac_mid ')' - 1`
24320                         if test $ac_mid -le $ac_hi; then
24321                           ac_lo= ac_hi=
24322                           break
24323                         fi
24324                         ac_mid=`expr 2 '*' $ac_mid`
24325 fi
24326
24327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24328   done
24329 else
24330   $as_echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24332
24333         ac_lo= ac_hi=
24334 fi
24335
24336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24337 fi
24338
24339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24340 # Binary search between lo and hi bounds.
24341 while test "x$ac_lo" != "x$ac_hi"; do
24342   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24343   cat >conftest.$ac_ext <<_ACEOF
24344 /* confdefs.h.  */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h.  */
24349 $ac_includes_default
24350 #ifndef offsetof
24351 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24352 #endif
24353 typedef struct { char x; int y; } ac__type_alignof_;
24354 int
24355 main ()
24356 {
24357 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24358 test_array [0] = 0
24359
24360   ;
24361   return 0;
24362 }
24363 _ACEOF
24364 rm -f conftest.$ac_objext
24365 if { (ac_try="$ac_compile"
24366 case "(($ac_try" in
24367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368   *) ac_try_echo=$ac_try;;
24369 esac
24370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24371 $as_echo "$ac_try_echo") >&5
24372   (eval "$ac_compile") 2>conftest.er1
24373   ac_status=$?
24374   grep -v '^ *+' conftest.er1 >conftest.err
24375   rm -f conftest.er1
24376   cat conftest.err >&5
24377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378   (exit $ac_status); } && {
24379          test -z "$ac_c_werror_flag" ||
24380          test ! -s conftest.err
24381        } && test -s conftest.$ac_objext; then
24382   ac_hi=$ac_mid
24383 else
24384   $as_echo "$as_me: failed program was:" >&5
24385 sed 's/^/| /' conftest.$ac_ext >&5
24386
24387         ac_lo=`expr '(' $ac_mid ')' + 1`
24388 fi
24389
24390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24391 done
24392 case $ac_lo in
24393 ?*) ac_cv_alignof_int=$ac_lo;;
24394 '') if test "$ac_cv_type_int" = yes; then
24395      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24397 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24398 See \`config.log' for more details." >&5
24399 $as_echo "$as_me: error: cannot compute alignment of int
24400 See \`config.log' for more details." >&2;}
24401    { (exit 77); exit 77; }; }; }
24402    else
24403      ac_cv_alignof_int=0
24404    fi ;;
24405 esac
24406 else
24407   cat >conftest.$ac_ext <<_ACEOF
24408 /* confdefs.h.  */
24409 _ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h.  */
24413 $ac_includes_default
24414 #ifndef offsetof
24415 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24416 #endif
24417 typedef struct { char x; int y; } ac__type_alignof_;
24418 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24419 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24420 #include <stdio.h>
24421 #include <stdlib.h>
24422 int
24423 main ()
24424 {
24425
24426   FILE *f = fopen ("conftest.val", "w");
24427   if (! f)
24428     return 1;
24429   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24430     {
24431       long int i = longval ();
24432       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24433         return 1;
24434       fprintf (f, "%ld", i);
24435     }
24436   else
24437     {
24438       unsigned long int i = ulongval ();
24439       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24440         return 1;
24441       fprintf (f, "%lu", i);
24442     }
24443   /* Do not output a trailing newline, as this causes \r\n confusion
24444      on some platforms.  */
24445   return ferror (f) || fclose (f) != 0;
24446
24447   ;
24448   return 0;
24449 }
24450 _ACEOF
24451 rm -f conftest$ac_exeext
24452 if { (ac_try="$ac_link"
24453 case "(($ac_try" in
24454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24455   *) ac_try_echo=$ac_try;;
24456 esac
24457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24458 $as_echo "$ac_try_echo") >&5
24459   (eval "$ac_link") 2>&5
24460   ac_status=$?
24461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24463   { (case "(($ac_try" in
24464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465   *) ac_try_echo=$ac_try;;
24466 esac
24467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24468 $as_echo "$ac_try_echo") >&5
24469   (eval "$ac_try") 2>&5
24470   ac_status=$?
24471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472   (exit $ac_status); }; }; then
24473   ac_cv_alignof_int=`cat conftest.val`
24474 else
24475   $as_echo "$as_me: program exited with status $ac_status" >&5
24476 $as_echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24478
24479 ( exit $ac_status )
24480 if test "$ac_cv_type_int" = yes; then
24481      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24483 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24484 See \`config.log' for more details." >&5
24485 $as_echo "$as_me: error: cannot compute alignment of int
24486 See \`config.log' for more details." >&2;}
24487    { (exit 77); exit 77; }; }; }
24488    else
24489      ac_cv_alignof_int=0
24490    fi
24491 fi
24492 rm -rf conftest.dSYM
24493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24494 fi
24495 rm -f conftest.val
24496 fi
24497 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
24498 $as_echo "$ac_cv_alignof_int" >&6; }
24499
24500
24501
24502 cat >>confdefs.h <<_ACEOF
24503 #define ALIGNOF_INT $ac_cv_alignof_int
24504 _ACEOF
24505
24506
24507 # The cast to long int works around a bug in the HP C Compiler,
24508 # see AC_CHECK_SIZEOF for more information.
24509 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
24510 $as_echo_n "checking alignment of long... " >&6; }
24511 if test "${ac_cv_alignof_long+set}" = set; then
24512   $as_echo_n "(cached) " >&6
24513 else
24514   if test "$cross_compiling" = yes; then
24515   # Depending upon the size, compute the lo and hi bounds.
24516 cat >conftest.$ac_ext <<_ACEOF
24517 /* confdefs.h.  */
24518 _ACEOF
24519 cat confdefs.h >>conftest.$ac_ext
24520 cat >>conftest.$ac_ext <<_ACEOF
24521 /* end confdefs.h.  */
24522 $ac_includes_default
24523 #ifndef offsetof
24524 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24525 #endif
24526 typedef struct { char x; long y; } ac__type_alignof_;
24527 int
24528 main ()
24529 {
24530 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24531 test_array [0] = 0
24532
24533   ;
24534   return 0;
24535 }
24536 _ACEOF
24537 rm -f conftest.$ac_objext
24538 if { (ac_try="$ac_compile"
24539 case "(($ac_try" in
24540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541   *) ac_try_echo=$ac_try;;
24542 esac
24543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24544 $as_echo "$ac_try_echo") >&5
24545   (eval "$ac_compile") 2>conftest.er1
24546   ac_status=$?
24547   grep -v '^ *+' conftest.er1 >conftest.err
24548   rm -f conftest.er1
24549   cat conftest.err >&5
24550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551   (exit $ac_status); } && {
24552          test -z "$ac_c_werror_flag" ||
24553          test ! -s conftest.err
24554        } && test -s conftest.$ac_objext; then
24555   ac_lo=0 ac_mid=0
24556   while :; do
24557     cat >conftest.$ac_ext <<_ACEOF
24558 /* confdefs.h.  */
24559 _ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h.  */
24563 $ac_includes_default
24564 #ifndef offsetof
24565 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24566 #endif
24567 typedef struct { char x; long y; } ac__type_alignof_;
24568 int
24569 main ()
24570 {
24571 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24572 test_array [0] = 0
24573
24574   ;
24575   return 0;
24576 }
24577 _ACEOF
24578 rm -f conftest.$ac_objext
24579 if { (ac_try="$ac_compile"
24580 case "(($ac_try" in
24581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24582   *) ac_try_echo=$ac_try;;
24583 esac
24584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24585 $as_echo "$ac_try_echo") >&5
24586   (eval "$ac_compile") 2>conftest.er1
24587   ac_status=$?
24588   grep -v '^ *+' conftest.er1 >conftest.err
24589   rm -f conftest.er1
24590   cat conftest.err >&5
24591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592   (exit $ac_status); } && {
24593          test -z "$ac_c_werror_flag" ||
24594          test ! -s conftest.err
24595        } && test -s conftest.$ac_objext; then
24596   ac_hi=$ac_mid; break
24597 else
24598   $as_echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24600
24601         ac_lo=`expr $ac_mid + 1`
24602                         if test $ac_lo -le $ac_mid; then
24603                           ac_lo= ac_hi=
24604                           break
24605                         fi
24606                         ac_mid=`expr 2 '*' $ac_mid + 1`
24607 fi
24608
24609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24610   done
24611 else
24612   $as_echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24614
24615         cat >conftest.$ac_ext <<_ACEOF
24616 /* confdefs.h.  */
24617 _ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h.  */
24621 $ac_includes_default
24622 #ifndef offsetof
24623 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24624 #endif
24625 typedef struct { char x; long y; } ac__type_alignof_;
24626 int
24627 main ()
24628 {
24629 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24630 test_array [0] = 0
24631
24632   ;
24633   return 0;
24634 }
24635 _ACEOF
24636 rm -f conftest.$ac_objext
24637 if { (ac_try="$ac_compile"
24638 case "(($ac_try" in
24639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24640   *) ac_try_echo=$ac_try;;
24641 esac
24642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24643 $as_echo "$ac_try_echo") >&5
24644   (eval "$ac_compile") 2>conftest.er1
24645   ac_status=$?
24646   grep -v '^ *+' conftest.er1 >conftest.err
24647   rm -f conftest.er1
24648   cat conftest.err >&5
24649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650   (exit $ac_status); } && {
24651          test -z "$ac_c_werror_flag" ||
24652          test ! -s conftest.err
24653        } && test -s conftest.$ac_objext; then
24654   ac_hi=-1 ac_mid=-1
24655   while :; do
24656     cat >conftest.$ac_ext <<_ACEOF
24657 /* confdefs.h.  */
24658 _ACEOF
24659 cat confdefs.h >>conftest.$ac_ext
24660 cat >>conftest.$ac_ext <<_ACEOF
24661 /* end confdefs.h.  */
24662 $ac_includes_default
24663 #ifndef offsetof
24664 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24665 #endif
24666 typedef struct { char x; long y; } ac__type_alignof_;
24667 int
24668 main ()
24669 {
24670 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
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=$ac_mid; break
24696 else
24697   $as_echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.$ac_ext >&5
24699
24700         ac_hi=`expr '(' $ac_mid ')' - 1`
24701                         if test $ac_mid -le $ac_hi; then
24702                           ac_lo= ac_hi=
24703                           break
24704                         fi
24705                         ac_mid=`expr 2 '*' $ac_mid`
24706 fi
24707
24708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24709   done
24710 else
24711   $as_echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24713
24714         ac_lo= ac_hi=
24715 fi
24716
24717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24718 fi
24719
24720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24721 # Binary search between lo and hi bounds.
24722 while test "x$ac_lo" != "x$ac_hi"; do
24723   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24724   cat >conftest.$ac_ext <<_ACEOF
24725 /* confdefs.h.  */
24726 _ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h.  */
24730 $ac_includes_default
24731 #ifndef offsetof
24732 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24733 #endif
24734 typedef struct { char x; long y; } ac__type_alignof_;
24735 int
24736 main ()
24737 {
24738 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24739 test_array [0] = 0
24740
24741   ;
24742   return 0;
24743 }
24744 _ACEOF
24745 rm -f conftest.$ac_objext
24746 if { (ac_try="$ac_compile"
24747 case "(($ac_try" in
24748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24749   *) ac_try_echo=$ac_try;;
24750 esac
24751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24752 $as_echo "$ac_try_echo") >&5
24753   (eval "$ac_compile") 2>conftest.er1
24754   ac_status=$?
24755   grep -v '^ *+' conftest.er1 >conftest.err
24756   rm -f conftest.er1
24757   cat conftest.err >&5
24758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759   (exit $ac_status); } && {
24760          test -z "$ac_c_werror_flag" ||
24761          test ! -s conftest.err
24762        } && test -s conftest.$ac_objext; then
24763   ac_hi=$ac_mid
24764 else
24765   $as_echo "$as_me: failed program was:" >&5
24766 sed 's/^/| /' conftest.$ac_ext >&5
24767
24768         ac_lo=`expr '(' $ac_mid ')' + 1`
24769 fi
24770
24771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24772 done
24773 case $ac_lo in
24774 ?*) ac_cv_alignof_long=$ac_lo;;
24775 '') if test "$ac_cv_type_long" = yes; then
24776      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24778 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
24779 See \`config.log' for more details." >&5
24780 $as_echo "$as_me: error: cannot compute alignment of long
24781 See \`config.log' for more details." >&2;}
24782    { (exit 77); exit 77; }; }; }
24783    else
24784      ac_cv_alignof_long=0
24785    fi ;;
24786 esac
24787 else
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 #ifndef offsetof
24796 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24797 #endif
24798 typedef struct { char x; long y; } ac__type_alignof_;
24799 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24800 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24801 #include <stdio.h>
24802 #include <stdlib.h>
24803 int
24804 main ()
24805 {
24806
24807   FILE *f = fopen ("conftest.val", "w");
24808   if (! f)
24809     return 1;
24810   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24811     {
24812       long int i = longval ();
24813       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24814         return 1;
24815       fprintf (f, "%ld", i);
24816     }
24817   else
24818     {
24819       unsigned long int i = ulongval ();
24820       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24821         return 1;
24822       fprintf (f, "%lu", i);
24823     }
24824   /* Do not output a trailing newline, as this causes \r\n confusion
24825      on some platforms.  */
24826   return ferror (f) || fclose (f) != 0;
24827
24828   ;
24829   return 0;
24830 }
24831 _ACEOF
24832 rm -f conftest$ac_exeext
24833 if { (ac_try="$ac_link"
24834 case "(($ac_try" in
24835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24836   *) ac_try_echo=$ac_try;;
24837 esac
24838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24839 $as_echo "$ac_try_echo") >&5
24840   (eval "$ac_link") 2>&5
24841   ac_status=$?
24842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24844   { (case "(($ac_try" in
24845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24846   *) ac_try_echo=$ac_try;;
24847 esac
24848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24849 $as_echo "$ac_try_echo") >&5
24850   (eval "$ac_try") 2>&5
24851   ac_status=$?
24852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853   (exit $ac_status); }; }; then
24854   ac_cv_alignof_long=`cat conftest.val`
24855 else
24856   $as_echo "$as_me: program exited with status $ac_status" >&5
24857 $as_echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24859
24860 ( exit $ac_status )
24861 if test "$ac_cv_type_long" = yes; then
24862      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24864 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
24865 See \`config.log' for more details." >&5
24866 $as_echo "$as_me: error: cannot compute alignment of long
24867 See \`config.log' for more details." >&2;}
24868    { (exit 77); exit 77; }; }; }
24869    else
24870      ac_cv_alignof_long=0
24871    fi
24872 fi
24873 rm -rf conftest.dSYM
24874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24875 fi
24876 rm -f conftest.val
24877 fi
24878 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
24879 $as_echo "$ac_cv_alignof_long" >&6; }
24880
24881
24882
24883 cat >>confdefs.h <<_ACEOF
24884 #define ALIGNOF_LONG $ac_cv_alignof_long
24885 _ACEOF
24886
24887
24888 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24889   # The cast to long int works around a bug in the HP C Compiler,
24890 # see AC_CHECK_SIZEOF for more information.
24891 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
24892 $as_echo_n "checking alignment of long long int... " >&6; }
24893 if test "${ac_cv_alignof_long_long_int+set}" = set; then
24894   $as_echo_n "(cached) " >&6
24895 else
24896   if test "$cross_compiling" = yes; then
24897   # Depending upon the size, compute the lo and hi bounds.
24898 cat >conftest.$ac_ext <<_ACEOF
24899 /* confdefs.h.  */
24900 _ACEOF
24901 cat confdefs.h >>conftest.$ac_ext
24902 cat >>conftest.$ac_ext <<_ACEOF
24903 /* end confdefs.h.  */
24904 $ac_includes_default
24905 #ifndef offsetof
24906 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24907 #endif
24908 typedef struct { char x; long long int y; } ac__type_alignof_;
24909 int
24910 main ()
24911 {
24912 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24913 test_array [0] = 0
24914
24915   ;
24916   return 0;
24917 }
24918 _ACEOF
24919 rm -f conftest.$ac_objext
24920 if { (ac_try="$ac_compile"
24921 case "(($ac_try" in
24922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923   *) ac_try_echo=$ac_try;;
24924 esac
24925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24926 $as_echo "$ac_try_echo") >&5
24927   (eval "$ac_compile") 2>conftest.er1
24928   ac_status=$?
24929   grep -v '^ *+' conftest.er1 >conftest.err
24930   rm -f conftest.er1
24931   cat conftest.err >&5
24932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); } && {
24934          test -z "$ac_c_werror_flag" ||
24935          test ! -s conftest.err
24936        } && test -s conftest.$ac_objext; then
24937   ac_lo=0 ac_mid=0
24938   while :; do
24939     cat >conftest.$ac_ext <<_ACEOF
24940 /* confdefs.h.  */
24941 _ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h.  */
24945 $ac_includes_default
24946 #ifndef offsetof
24947 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24948 #endif
24949 typedef struct { char x; long long int y; } ac__type_alignof_;
24950 int
24951 main ()
24952 {
24953 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24954 test_array [0] = 0
24955
24956   ;
24957   return 0;
24958 }
24959 _ACEOF
24960 rm -f conftest.$ac_objext
24961 if { (ac_try="$ac_compile"
24962 case "(($ac_try" in
24963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964   *) ac_try_echo=$ac_try;;
24965 esac
24966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24967 $as_echo "$ac_try_echo") >&5
24968   (eval "$ac_compile") 2>conftest.er1
24969   ac_status=$?
24970   grep -v '^ *+' conftest.er1 >conftest.err
24971   rm -f conftest.er1
24972   cat conftest.err >&5
24973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974   (exit $ac_status); } && {
24975          test -z "$ac_c_werror_flag" ||
24976          test ! -s conftest.err
24977        } && test -s conftest.$ac_objext; then
24978   ac_hi=$ac_mid; break
24979 else
24980   $as_echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24982
24983         ac_lo=`expr $ac_mid + 1`
24984                         if test $ac_lo -le $ac_mid; then
24985                           ac_lo= ac_hi=
24986                           break
24987                         fi
24988                         ac_mid=`expr 2 '*' $ac_mid + 1`
24989 fi
24990
24991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24992   done
24993 else
24994   $as_echo "$as_me: failed program was:" >&5
24995 sed 's/^/| /' conftest.$ac_ext >&5
24996
24997         cat >conftest.$ac_ext <<_ACEOF
24998 /* confdefs.h.  */
24999 _ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h.  */
25003 $ac_includes_default
25004 #ifndef offsetof
25005 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25006 #endif
25007 typedef struct { char x; long long int y; } ac__type_alignof_;
25008 int
25009 main ()
25010 {
25011 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25012 test_array [0] = 0
25013
25014   ;
25015   return 0;
25016 }
25017 _ACEOF
25018 rm -f conftest.$ac_objext
25019 if { (ac_try="$ac_compile"
25020 case "(($ac_try" in
25021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022   *) ac_try_echo=$ac_try;;
25023 esac
25024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25025 $as_echo "$ac_try_echo") >&5
25026   (eval "$ac_compile") 2>conftest.er1
25027   ac_status=$?
25028   grep -v '^ *+' conftest.er1 >conftest.err
25029   rm -f conftest.er1
25030   cat conftest.err >&5
25031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032   (exit $ac_status); } && {
25033          test -z "$ac_c_werror_flag" ||
25034          test ! -s conftest.err
25035        } && test -s conftest.$ac_objext; then
25036   ac_hi=-1 ac_mid=-1
25037   while :; do
25038     cat >conftest.$ac_ext <<_ACEOF
25039 /* confdefs.h.  */
25040 _ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h.  */
25044 $ac_includes_default
25045 #ifndef offsetof
25046 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25047 #endif
25048 typedef struct { char x; long long int y; } ac__type_alignof_;
25049 int
25050 main ()
25051 {
25052 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25053 test_array [0] = 0
25054
25055   ;
25056   return 0;
25057 }
25058 _ACEOF
25059 rm -f conftest.$ac_objext
25060 if { (ac_try="$ac_compile"
25061 case "(($ac_try" in
25062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063   *) ac_try_echo=$ac_try;;
25064 esac
25065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25066 $as_echo "$ac_try_echo") >&5
25067   (eval "$ac_compile") 2>conftest.er1
25068   ac_status=$?
25069   grep -v '^ *+' conftest.er1 >conftest.err
25070   rm -f conftest.er1
25071   cat conftest.err >&5
25072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073   (exit $ac_status); } && {
25074          test -z "$ac_c_werror_flag" ||
25075          test ! -s conftest.err
25076        } && test -s conftest.$ac_objext; then
25077   ac_lo=$ac_mid; break
25078 else
25079   $as_echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25081
25082         ac_hi=`expr '(' $ac_mid ')' - 1`
25083                         if test $ac_mid -le $ac_hi; then
25084                           ac_lo= ac_hi=
25085                           break
25086                         fi
25087                         ac_mid=`expr 2 '*' $ac_mid`
25088 fi
25089
25090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25091   done
25092 else
25093   $as_echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25095
25096         ac_lo= ac_hi=
25097 fi
25098
25099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 fi
25101
25102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25103 # Binary search between lo and hi bounds.
25104 while test "x$ac_lo" != "x$ac_hi"; do
25105   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25106   cat >conftest.$ac_ext <<_ACEOF
25107 /* confdefs.h.  */
25108 _ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h.  */
25112 $ac_includes_default
25113 #ifndef offsetof
25114 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25115 #endif
25116 typedef struct { char x; long long int y; } ac__type_alignof_;
25117 int
25118 main ()
25119 {
25120 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
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=$ac_mid
25146 else
25147   $as_echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25149
25150         ac_lo=`expr '(' $ac_mid ')' + 1`
25151 fi
25152
25153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25154 done
25155 case $ac_lo in
25156 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
25157 '') if test "$ac_cv_type_long_long_int" = yes; then
25158      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25160 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25161 See \`config.log' for more details." >&5
25162 $as_echo "$as_me: error: cannot compute alignment of long long int
25163 See \`config.log' for more details." >&2;}
25164    { (exit 77); exit 77; }; }; }
25165    else
25166      ac_cv_alignof_long_long_int=0
25167    fi ;;
25168 esac
25169 else
25170   cat >conftest.$ac_ext <<_ACEOF
25171 /* confdefs.h.  */
25172 _ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h.  */
25176 $ac_includes_default
25177 #ifndef offsetof
25178 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25179 #endif
25180 typedef struct { char x; long long int y; } ac__type_alignof_;
25181 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25182 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25183 #include <stdio.h>
25184 #include <stdlib.h>
25185 int
25186 main ()
25187 {
25188
25189   FILE *f = fopen ("conftest.val", "w");
25190   if (! f)
25191     return 1;
25192   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25193     {
25194       long int i = longval ();
25195       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25196         return 1;
25197       fprintf (f, "%ld", i);
25198     }
25199   else
25200     {
25201       unsigned long int i = ulongval ();
25202       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25203         return 1;
25204       fprintf (f, "%lu", i);
25205     }
25206   /* Do not output a trailing newline, as this causes \r\n confusion
25207      on some platforms.  */
25208   return ferror (f) || fclose (f) != 0;
25209
25210   ;
25211   return 0;
25212 }
25213 _ACEOF
25214 rm -f conftest$ac_exeext
25215 if { (ac_try="$ac_link"
25216 case "(($ac_try" in
25217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218   *) ac_try_echo=$ac_try;;
25219 esac
25220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25221 $as_echo "$ac_try_echo") >&5
25222   (eval "$ac_link") 2>&5
25223   ac_status=$?
25224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25226   { (case "(($ac_try" in
25227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25228   *) ac_try_echo=$ac_try;;
25229 esac
25230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25231 $as_echo "$ac_try_echo") >&5
25232   (eval "$ac_try") 2>&5
25233   ac_status=$?
25234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235   (exit $ac_status); }; }; then
25236   ac_cv_alignof_long_long_int=`cat conftest.val`
25237 else
25238   $as_echo "$as_me: program exited with status $ac_status" >&5
25239 $as_echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25241
25242 ( exit $ac_status )
25243 if test "$ac_cv_type_long_long_int" = yes; then
25244      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25246 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25247 See \`config.log' for more details." >&5
25248 $as_echo "$as_me: error: cannot compute alignment of long long int
25249 See \`config.log' for more details." >&2;}
25250    { (exit 77); exit 77; }; }; }
25251    else
25252      ac_cv_alignof_long_long_int=0
25253    fi
25254 fi
25255 rm -rf conftest.dSYM
25256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25257 fi
25258 rm -f conftest.val
25259 fi
25260 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
25261 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
25262
25263
25264
25265 cat >>confdefs.h <<_ACEOF
25266 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
25267 _ACEOF
25268
25269
25270 fi
25271 # The cast to long int works around a bug in the HP C Compiler,
25272 # see AC_CHECK_SIZEOF for more information.
25273 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
25274 $as_echo_n "checking alignment of double... " >&6; }
25275 if test "${ac_cv_alignof_double+set}" = set; then
25276   $as_echo_n "(cached) " >&6
25277 else
25278   if test "$cross_compiling" = yes; then
25279   # Depending upon the size, compute the lo and hi bounds.
25280 cat >conftest.$ac_ext <<_ACEOF
25281 /* confdefs.h.  */
25282 _ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h.  */
25286 $ac_includes_default
25287 #ifndef offsetof
25288 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25289 #endif
25290 typedef struct { char x; double y; } ac__type_alignof_;
25291 int
25292 main ()
25293 {
25294 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25295 test_array [0] = 0
25296
25297   ;
25298   return 0;
25299 }
25300 _ACEOF
25301 rm -f conftest.$ac_objext
25302 if { (ac_try="$ac_compile"
25303 case "(($ac_try" in
25304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305   *) ac_try_echo=$ac_try;;
25306 esac
25307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25308 $as_echo "$ac_try_echo") >&5
25309   (eval "$ac_compile") 2>conftest.er1
25310   ac_status=$?
25311   grep -v '^ *+' conftest.er1 >conftest.err
25312   rm -f conftest.er1
25313   cat conftest.err >&5
25314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315   (exit $ac_status); } && {
25316          test -z "$ac_c_werror_flag" ||
25317          test ! -s conftest.err
25318        } && test -s conftest.$ac_objext; then
25319   ac_lo=0 ac_mid=0
25320   while :; do
25321     cat >conftest.$ac_ext <<_ACEOF
25322 /* confdefs.h.  */
25323 _ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h.  */
25327 $ac_includes_default
25328 #ifndef offsetof
25329 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25330 #endif
25331 typedef struct { char x; double y; } ac__type_alignof_;
25332 int
25333 main ()
25334 {
25335 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25336 test_array [0] = 0
25337
25338   ;
25339   return 0;
25340 }
25341 _ACEOF
25342 rm -f conftest.$ac_objext
25343 if { (ac_try="$ac_compile"
25344 case "(($ac_try" in
25345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25346   *) ac_try_echo=$ac_try;;
25347 esac
25348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25349 $as_echo "$ac_try_echo") >&5
25350   (eval "$ac_compile") 2>conftest.er1
25351   ac_status=$?
25352   grep -v '^ *+' conftest.er1 >conftest.err
25353   rm -f conftest.er1
25354   cat conftest.err >&5
25355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356   (exit $ac_status); } && {
25357          test -z "$ac_c_werror_flag" ||
25358          test ! -s conftest.err
25359        } && test -s conftest.$ac_objext; then
25360   ac_hi=$ac_mid; break
25361 else
25362   $as_echo "$as_me: failed program was:" >&5
25363 sed 's/^/| /' conftest.$ac_ext >&5
25364
25365         ac_lo=`expr $ac_mid + 1`
25366                         if test $ac_lo -le $ac_mid; then
25367                           ac_lo= ac_hi=
25368                           break
25369                         fi
25370                         ac_mid=`expr 2 '*' $ac_mid + 1`
25371 fi
25372
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25374   done
25375 else
25376   $as_echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25378
25379         cat >conftest.$ac_ext <<_ACEOF
25380 /* confdefs.h.  */
25381 _ACEOF
25382 cat confdefs.h >>conftest.$ac_ext
25383 cat >>conftest.$ac_ext <<_ACEOF
25384 /* end confdefs.h.  */
25385 $ac_includes_default
25386 #ifndef offsetof
25387 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25388 #endif
25389 typedef struct { char x; double y; } ac__type_alignof_;
25390 int
25391 main ()
25392 {
25393 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25394 test_array [0] = 0
25395
25396   ;
25397   return 0;
25398 }
25399 _ACEOF
25400 rm -f conftest.$ac_objext
25401 if { (ac_try="$ac_compile"
25402 case "(($ac_try" in
25403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404   *) ac_try_echo=$ac_try;;
25405 esac
25406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25407 $as_echo "$ac_try_echo") >&5
25408   (eval "$ac_compile") 2>conftest.er1
25409   ac_status=$?
25410   grep -v '^ *+' conftest.er1 >conftest.err
25411   rm -f conftest.er1
25412   cat conftest.err >&5
25413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414   (exit $ac_status); } && {
25415          test -z "$ac_c_werror_flag" ||
25416          test ! -s conftest.err
25417        } && test -s conftest.$ac_objext; then
25418   ac_hi=-1 ac_mid=-1
25419   while :; do
25420     cat >conftest.$ac_ext <<_ACEOF
25421 /* confdefs.h.  */
25422 _ACEOF
25423 cat confdefs.h >>conftest.$ac_ext
25424 cat >>conftest.$ac_ext <<_ACEOF
25425 /* end confdefs.h.  */
25426 $ac_includes_default
25427 #ifndef offsetof
25428 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25429 #endif
25430 typedef struct { char x; double y; } ac__type_alignof_;
25431 int
25432 main ()
25433 {
25434 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25435 test_array [0] = 0
25436
25437   ;
25438   return 0;
25439 }
25440 _ACEOF
25441 rm -f conftest.$ac_objext
25442 if { (ac_try="$ac_compile"
25443 case "(($ac_try" in
25444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445   *) ac_try_echo=$ac_try;;
25446 esac
25447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25448 $as_echo "$ac_try_echo") >&5
25449   (eval "$ac_compile") 2>conftest.er1
25450   ac_status=$?
25451   grep -v '^ *+' conftest.er1 >conftest.err
25452   rm -f conftest.er1
25453   cat conftest.err >&5
25454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455   (exit $ac_status); } && {
25456          test -z "$ac_c_werror_flag" ||
25457          test ! -s conftest.err
25458        } && test -s conftest.$ac_objext; then
25459   ac_lo=$ac_mid; break
25460 else
25461   $as_echo "$as_me: failed program was:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25463
25464         ac_hi=`expr '(' $ac_mid ')' - 1`
25465                         if test $ac_mid -le $ac_hi; then
25466                           ac_lo= ac_hi=
25467                           break
25468                         fi
25469                         ac_mid=`expr 2 '*' $ac_mid`
25470 fi
25471
25472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25473   done
25474 else
25475   $as_echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25477
25478         ac_lo= ac_hi=
25479 fi
25480
25481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25482 fi
25483
25484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25485 # Binary search between lo and hi bounds.
25486 while test "x$ac_lo" != "x$ac_hi"; do
25487   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25488   cat >conftest.$ac_ext <<_ACEOF
25489 /* confdefs.h.  */
25490 _ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h.  */
25494 $ac_includes_default
25495 #ifndef offsetof
25496 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25497 #endif
25498 typedef struct { char x; double y; } ac__type_alignof_;
25499 int
25500 main ()
25501 {
25502 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25503 test_array [0] = 0
25504
25505   ;
25506   return 0;
25507 }
25508 _ACEOF
25509 rm -f conftest.$ac_objext
25510 if { (ac_try="$ac_compile"
25511 case "(($ac_try" in
25512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25513   *) ac_try_echo=$ac_try;;
25514 esac
25515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25516 $as_echo "$ac_try_echo") >&5
25517   (eval "$ac_compile") 2>conftest.er1
25518   ac_status=$?
25519   grep -v '^ *+' conftest.er1 >conftest.err
25520   rm -f conftest.er1
25521   cat conftest.err >&5
25522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); } && {
25524          test -z "$ac_c_werror_flag" ||
25525          test ! -s conftest.err
25526        } && test -s conftest.$ac_objext; then
25527   ac_hi=$ac_mid
25528 else
25529   $as_echo "$as_me: failed program was:" >&5
25530 sed 's/^/| /' conftest.$ac_ext >&5
25531
25532         ac_lo=`expr '(' $ac_mid ')' + 1`
25533 fi
25534
25535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25536 done
25537 case $ac_lo in
25538 ?*) ac_cv_alignof_double=$ac_lo;;
25539 '') if test "$ac_cv_type_double" = yes; then
25540      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25542 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25543 See \`config.log' for more details." >&5
25544 $as_echo "$as_me: error: cannot compute alignment of double
25545 See \`config.log' for more details." >&2;}
25546    { (exit 77); exit 77; }; }; }
25547    else
25548      ac_cv_alignof_double=0
25549    fi ;;
25550 esac
25551 else
25552   cat >conftest.$ac_ext <<_ACEOF
25553 /* confdefs.h.  */
25554 _ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h.  */
25558 $ac_includes_default
25559 #ifndef offsetof
25560 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25561 #endif
25562 typedef struct { char x; double y; } ac__type_alignof_;
25563 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25564 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25565 #include <stdio.h>
25566 #include <stdlib.h>
25567 int
25568 main ()
25569 {
25570
25571   FILE *f = fopen ("conftest.val", "w");
25572   if (! f)
25573     return 1;
25574   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25575     {
25576       long int i = longval ();
25577       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25578         return 1;
25579       fprintf (f, "%ld", i);
25580     }
25581   else
25582     {
25583       unsigned long int i = ulongval ();
25584       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25585         return 1;
25586       fprintf (f, "%lu", i);
25587     }
25588   /* Do not output a trailing newline, as this causes \r\n confusion
25589      on some platforms.  */
25590   return ferror (f) || fclose (f) != 0;
25591
25592   ;
25593   return 0;
25594 }
25595 _ACEOF
25596 rm -f conftest$ac_exeext
25597 if { (ac_try="$ac_link"
25598 case "(($ac_try" in
25599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600   *) ac_try_echo=$ac_try;;
25601 esac
25602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25603 $as_echo "$ac_try_echo") >&5
25604   (eval "$ac_link") 2>&5
25605   ac_status=$?
25606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25608   { (case "(($ac_try" in
25609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25610   *) ac_try_echo=$ac_try;;
25611 esac
25612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25613 $as_echo "$ac_try_echo") >&5
25614   (eval "$ac_try") 2>&5
25615   ac_status=$?
25616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617   (exit $ac_status); }; }; then
25618   ac_cv_alignof_double=`cat conftest.val`
25619 else
25620   $as_echo "$as_me: program exited with status $ac_status" >&5
25621 $as_echo "$as_me: failed program was:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25623
25624 ( exit $ac_status )
25625 if test "$ac_cv_type_double" = yes; then
25626      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25628 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25629 See \`config.log' for more details." >&5
25630 $as_echo "$as_me: error: cannot compute alignment of double
25631 See \`config.log' for more details." >&2;}
25632    { (exit 77); exit 77; }; }; }
25633    else
25634      ac_cv_alignof_double=0
25635    fi
25636 fi
25637 rm -rf conftest.dSYM
25638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25639 fi
25640 rm -f conftest.val
25641 fi
25642 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
25643 $as_echo "$ac_cv_alignof_double" >&6; }
25644
25645
25646
25647 cat >>confdefs.h <<_ACEOF
25648 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
25649 _ACEOF
25650
25651
25652
25653 # Compute maximum alignment of any basic type.
25654 # We assume long's alignment is at least as strong as char, short, or int;
25655 # but we must check long long (if it exists) and double.
25656
25657 MAX_ALIGNOF=$ac_cv_alignof_long
25658 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
25659   MAX_ALIGNOF=$ac_cv_alignof_double
25660 fi
25661 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
25662   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
25663 fi
25664
25665 cat >>confdefs.h <<_ACEOF
25666 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
25667 _ACEOF
25668
25669
25670
25671 # Some platforms predefine the types int8, int16, etc.  Only check
25672 # a (hopefully) representative subset.
25673 { $as_echo "$as_me:$LINENO: checking for int8" >&5
25674 $as_echo_n "checking for int8... " >&6; }
25675 if test "${ac_cv_type_int8+set}" = set; then
25676   $as_echo_n "(cached) " >&6
25677 else
25678   ac_cv_type_int8=no
25679 cat >conftest.$ac_ext <<_ACEOF
25680 /* confdefs.h.  */
25681 _ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h.  */
25685 #include <stdio.h>
25686 #ifdef HAVE_SUPPORTDEFS_H
25687 #include <SupportDefs.h>
25688 #endif
25689
25690 int
25691 main ()
25692 {
25693 if (sizeof (int8))
25694        return 0;
25695   ;
25696   return 0;
25697 }
25698 _ACEOF
25699 rm -f conftest.$ac_objext
25700 if { (ac_try="$ac_compile"
25701 case "(($ac_try" in
25702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25703   *) ac_try_echo=$ac_try;;
25704 esac
25705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25706 $as_echo "$ac_try_echo") >&5
25707   (eval "$ac_compile") 2>conftest.er1
25708   ac_status=$?
25709   grep -v '^ *+' conftest.er1 >conftest.err
25710   rm -f conftest.er1
25711   cat conftest.err >&5
25712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713   (exit $ac_status); } && {
25714          test -z "$ac_c_werror_flag" ||
25715          test ! -s conftest.err
25716        } && test -s conftest.$ac_objext; then
25717   cat >conftest.$ac_ext <<_ACEOF
25718 /* confdefs.h.  */
25719 _ACEOF
25720 cat confdefs.h >>conftest.$ac_ext
25721 cat >>conftest.$ac_ext <<_ACEOF
25722 /* end confdefs.h.  */
25723 #include <stdio.h>
25724 #ifdef HAVE_SUPPORTDEFS_H
25725 #include <SupportDefs.h>
25726 #endif
25727
25728 int
25729 main ()
25730 {
25731 if (sizeof ((int8)))
25732           return 0;
25733   ;
25734   return 0;
25735 }
25736 _ACEOF
25737 rm -f conftest.$ac_objext
25738 if { (ac_try="$ac_compile"
25739 case "(($ac_try" in
25740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25741   *) ac_try_echo=$ac_try;;
25742 esac
25743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25744 $as_echo "$ac_try_echo") >&5
25745   (eval "$ac_compile") 2>conftest.er1
25746   ac_status=$?
25747   grep -v '^ *+' conftest.er1 >conftest.err
25748   rm -f conftest.er1
25749   cat conftest.err >&5
25750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751   (exit $ac_status); } && {
25752          test -z "$ac_c_werror_flag" ||
25753          test ! -s conftest.err
25754        } && test -s conftest.$ac_objext; then
25755   :
25756 else
25757   $as_echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25759
25760         ac_cv_type_int8=yes
25761 fi
25762
25763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25764 else
25765   $as_echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25767
25768
25769 fi
25770
25771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25772 fi
25773 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
25774 $as_echo "$ac_cv_type_int8" >&6; }
25775 if test "x$ac_cv_type_int8" = x""yes; then
25776
25777 cat >>confdefs.h <<_ACEOF
25778 #define HAVE_INT8 1
25779 _ACEOF
25780
25781
25782 fi
25783 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
25784 $as_echo_n "checking for uint8... " >&6; }
25785 if test "${ac_cv_type_uint8+set}" = set; then
25786   $as_echo_n "(cached) " >&6
25787 else
25788   ac_cv_type_uint8=no
25789 cat >conftest.$ac_ext <<_ACEOF
25790 /* confdefs.h.  */
25791 _ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h.  */
25795 #include <stdio.h>
25796 #ifdef HAVE_SUPPORTDEFS_H
25797 #include <SupportDefs.h>
25798 #endif
25799
25800 int
25801 main ()
25802 {
25803 if (sizeof (uint8))
25804        return 0;
25805   ;
25806   return 0;
25807 }
25808 _ACEOF
25809 rm -f conftest.$ac_objext
25810 if { (ac_try="$ac_compile"
25811 case "(($ac_try" in
25812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813   *) ac_try_echo=$ac_try;;
25814 esac
25815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25816 $as_echo "$ac_try_echo") >&5
25817   (eval "$ac_compile") 2>conftest.er1
25818   ac_status=$?
25819   grep -v '^ *+' conftest.er1 >conftest.err
25820   rm -f conftest.er1
25821   cat conftest.err >&5
25822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823   (exit $ac_status); } && {
25824          test -z "$ac_c_werror_flag" ||
25825          test ! -s conftest.err
25826        } && test -s conftest.$ac_objext; then
25827   cat >conftest.$ac_ext <<_ACEOF
25828 /* confdefs.h.  */
25829 _ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h.  */
25833 #include <stdio.h>
25834 #ifdef HAVE_SUPPORTDEFS_H
25835 #include <SupportDefs.h>
25836 #endif
25837
25838 int
25839 main ()
25840 {
25841 if (sizeof ((uint8)))
25842           return 0;
25843   ;
25844   return 0;
25845 }
25846 _ACEOF
25847 rm -f conftest.$ac_objext
25848 if { (ac_try="$ac_compile"
25849 case "(($ac_try" in
25850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25851   *) ac_try_echo=$ac_try;;
25852 esac
25853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25854 $as_echo "$ac_try_echo") >&5
25855   (eval "$ac_compile") 2>conftest.er1
25856   ac_status=$?
25857   grep -v '^ *+' conftest.er1 >conftest.err
25858   rm -f conftest.er1
25859   cat conftest.err >&5
25860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861   (exit $ac_status); } && {
25862          test -z "$ac_c_werror_flag" ||
25863          test ! -s conftest.err
25864        } && test -s conftest.$ac_objext; then
25865   :
25866 else
25867   $as_echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25869
25870         ac_cv_type_uint8=yes
25871 fi
25872
25873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25874 else
25875   $as_echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25877
25878
25879 fi
25880
25881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25882 fi
25883 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
25884 $as_echo "$ac_cv_type_uint8" >&6; }
25885 if test "x$ac_cv_type_uint8" = x""yes; then
25886
25887 cat >>confdefs.h <<_ACEOF
25888 #define HAVE_UINT8 1
25889 _ACEOF
25890
25891
25892 fi
25893 { $as_echo "$as_me:$LINENO: checking for int64" >&5
25894 $as_echo_n "checking for int64... " >&6; }
25895 if test "${ac_cv_type_int64+set}" = set; then
25896   $as_echo_n "(cached) " >&6
25897 else
25898   ac_cv_type_int64=no
25899 cat >conftest.$ac_ext <<_ACEOF
25900 /* confdefs.h.  */
25901 _ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h.  */
25905 #include <stdio.h>
25906 #ifdef HAVE_SUPPORTDEFS_H
25907 #include <SupportDefs.h>
25908 #endif
25909
25910 int
25911 main ()
25912 {
25913 if (sizeof (int64))
25914        return 0;
25915   ;
25916   return 0;
25917 }
25918 _ACEOF
25919 rm -f conftest.$ac_objext
25920 if { (ac_try="$ac_compile"
25921 case "(($ac_try" in
25922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25923   *) ac_try_echo=$ac_try;;
25924 esac
25925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25926 $as_echo "$ac_try_echo") >&5
25927   (eval "$ac_compile") 2>conftest.er1
25928   ac_status=$?
25929   grep -v '^ *+' conftest.er1 >conftest.err
25930   rm -f conftest.er1
25931   cat conftest.err >&5
25932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933   (exit $ac_status); } && {
25934          test -z "$ac_c_werror_flag" ||
25935          test ! -s conftest.err
25936        } && test -s conftest.$ac_objext; then
25937   cat >conftest.$ac_ext <<_ACEOF
25938 /* confdefs.h.  */
25939 _ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h.  */
25943 #include <stdio.h>
25944 #ifdef HAVE_SUPPORTDEFS_H
25945 #include <SupportDefs.h>
25946 #endif
25947
25948 int
25949 main ()
25950 {
25951 if (sizeof ((int64)))
25952           return 0;
25953   ;
25954   return 0;
25955 }
25956 _ACEOF
25957 rm -f conftest.$ac_objext
25958 if { (ac_try="$ac_compile"
25959 case "(($ac_try" in
25960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25961   *) ac_try_echo=$ac_try;;
25962 esac
25963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25964 $as_echo "$ac_try_echo") >&5
25965   (eval "$ac_compile") 2>conftest.er1
25966   ac_status=$?
25967   grep -v '^ *+' conftest.er1 >conftest.err
25968   rm -f conftest.er1
25969   cat conftest.err >&5
25970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); } && {
25972          test -z "$ac_c_werror_flag" ||
25973          test ! -s conftest.err
25974        } && test -s conftest.$ac_objext; then
25975   :
25976 else
25977   $as_echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25979
25980         ac_cv_type_int64=yes
25981 fi
25982
25983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25984 else
25985   $as_echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25987
25988
25989 fi
25990
25991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25992 fi
25993 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
25994 $as_echo "$ac_cv_type_int64" >&6; }
25995 if test "x$ac_cv_type_int64" = x""yes; then
25996
25997 cat >>confdefs.h <<_ACEOF
25998 #define HAVE_INT64 1
25999 _ACEOF
26000
26001
26002 fi
26003 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
26004 $as_echo_n "checking for uint64... " >&6; }
26005 if test "${ac_cv_type_uint64+set}" = set; then
26006   $as_echo_n "(cached) " >&6
26007 else
26008   ac_cv_type_uint64=no
26009 cat >conftest.$ac_ext <<_ACEOF
26010 /* confdefs.h.  */
26011 _ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h.  */
26015 #include <stdio.h>
26016 #ifdef HAVE_SUPPORTDEFS_H
26017 #include <SupportDefs.h>
26018 #endif
26019
26020 int
26021 main ()
26022 {
26023 if (sizeof (uint64))
26024        return 0;
26025   ;
26026   return 0;
26027 }
26028 _ACEOF
26029 rm -f conftest.$ac_objext
26030 if { (ac_try="$ac_compile"
26031 case "(($ac_try" in
26032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26033   *) ac_try_echo=$ac_try;;
26034 esac
26035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26036 $as_echo "$ac_try_echo") >&5
26037   (eval "$ac_compile") 2>conftest.er1
26038   ac_status=$?
26039   grep -v '^ *+' conftest.er1 >conftest.err
26040   rm -f conftest.er1
26041   cat conftest.err >&5
26042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); } && {
26044          test -z "$ac_c_werror_flag" ||
26045          test ! -s conftest.err
26046        } && test -s conftest.$ac_objext; then
26047   cat >conftest.$ac_ext <<_ACEOF
26048 /* confdefs.h.  */
26049 _ACEOF
26050 cat confdefs.h >>conftest.$ac_ext
26051 cat >>conftest.$ac_ext <<_ACEOF
26052 /* end confdefs.h.  */
26053 #include <stdio.h>
26054 #ifdef HAVE_SUPPORTDEFS_H
26055 #include <SupportDefs.h>
26056 #endif
26057
26058 int
26059 main ()
26060 {
26061 if (sizeof ((uint64)))
26062           return 0;
26063   ;
26064   return 0;
26065 }
26066 _ACEOF
26067 rm -f conftest.$ac_objext
26068 if { (ac_try="$ac_compile"
26069 case "(($ac_try" in
26070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071   *) ac_try_echo=$ac_try;;
26072 esac
26073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26074 $as_echo "$ac_try_echo") >&5
26075   (eval "$ac_compile") 2>conftest.er1
26076   ac_status=$?
26077   grep -v '^ *+' conftest.er1 >conftest.err
26078   rm -f conftest.er1
26079   cat conftest.err >&5
26080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081   (exit $ac_status); } && {
26082          test -z "$ac_c_werror_flag" ||
26083          test ! -s conftest.err
26084        } && test -s conftest.$ac_objext; then
26085   :
26086 else
26087   $as_echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26089
26090         ac_cv_type_uint64=yes
26091 fi
26092
26093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26094 else
26095   $as_echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26097
26098
26099 fi
26100
26101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26102 fi
26103 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
26104 $as_echo "$ac_cv_type_uint64" >&6; }
26105 if test "x$ac_cv_type_uint64" = x""yes; then
26106
26107 cat >>confdefs.h <<_ACEOF
26108 #define HAVE_UINT64 1
26109 _ACEOF
26110
26111
26112 fi
26113
26114
26115 # We also check for sig_atomic_t, which *should* be defined per ANSI
26116 # C, but is missing on some old platforms.
26117 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
26118 $as_echo_n "checking for sig_atomic_t... " >&6; }
26119 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
26120   $as_echo_n "(cached) " >&6
26121 else
26122   ac_cv_type_sig_atomic_t=no
26123 cat >conftest.$ac_ext <<_ACEOF
26124 /* confdefs.h.  */
26125 _ACEOF
26126 cat confdefs.h >>conftest.$ac_ext
26127 cat >>conftest.$ac_ext <<_ACEOF
26128 /* end confdefs.h.  */
26129 #include <signal.h>
26130
26131 int
26132 main ()
26133 {
26134 if (sizeof (sig_atomic_t))
26135        return 0;
26136   ;
26137   return 0;
26138 }
26139 _ACEOF
26140 rm -f conftest.$ac_objext
26141 if { (ac_try="$ac_compile"
26142 case "(($ac_try" in
26143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26144   *) ac_try_echo=$ac_try;;
26145 esac
26146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26147 $as_echo "$ac_try_echo") >&5
26148   (eval "$ac_compile") 2>conftest.er1
26149   ac_status=$?
26150   grep -v '^ *+' conftest.er1 >conftest.err
26151   rm -f conftest.er1
26152   cat conftest.err >&5
26153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154   (exit $ac_status); } && {
26155          test -z "$ac_c_werror_flag" ||
26156          test ! -s conftest.err
26157        } && test -s conftest.$ac_objext; then
26158   cat >conftest.$ac_ext <<_ACEOF
26159 /* confdefs.h.  */
26160 _ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h.  */
26164 #include <signal.h>
26165
26166 int
26167 main ()
26168 {
26169 if (sizeof ((sig_atomic_t)))
26170           return 0;
26171   ;
26172   return 0;
26173 }
26174 _ACEOF
26175 rm -f conftest.$ac_objext
26176 if { (ac_try="$ac_compile"
26177 case "(($ac_try" in
26178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26179   *) ac_try_echo=$ac_try;;
26180 esac
26181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26182 $as_echo "$ac_try_echo") >&5
26183   (eval "$ac_compile") 2>conftest.er1
26184   ac_status=$?
26185   grep -v '^ *+' conftest.er1 >conftest.err
26186   rm -f conftest.er1
26187   cat conftest.err >&5
26188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); } && {
26190          test -z "$ac_c_werror_flag" ||
26191          test ! -s conftest.err
26192        } && test -s conftest.$ac_objext; then
26193   :
26194 else
26195   $as_echo "$as_me: failed program was:" >&5
26196 sed 's/^/| /' conftest.$ac_ext >&5
26197
26198         ac_cv_type_sig_atomic_t=yes
26199 fi
26200
26201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26202 else
26203   $as_echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26205
26206
26207 fi
26208
26209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26210 fi
26211 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
26212 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
26213 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
26214
26215 cat >>confdefs.h <<_ACEOF
26216 #define HAVE_SIG_ATOMIC_T 1
26217 _ACEOF
26218
26219
26220 fi
26221
26222
26223
26224 # If the user did not disable integer datetimes, check that
26225 # there is a working 64-bit integral type to use.
26226 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
26227    test x"$HAVE_LONG_INT_64" = x"no" &&
26228    test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
26229    test x"$HAVE_INT64" = x"no" ; then
26230   { { $as_echo "$as_me:$LINENO: error:
26231 Integer-based datetime support requires a 64-bit integer type,
26232 but no such type could be found. The --disable-integer-datetimes
26233 configure option can be used to disable integer-based storage
26234 of datetime values." >&5
26235 $as_echo "$as_me: error:
26236 Integer-based datetime support requires a 64-bit integer type,
26237 but no such type could be found. The --disable-integer-datetimes
26238 configure option can be used to disable integer-based storage
26239 of datetime values." >&2;}
26240    { (exit 1); exit 1; }; }
26241 fi
26242
26243
26244 if test "$PORTNAME" != "win32"
26245 then
26246 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
26247 $as_echo_n "checking for POSIX signal interface... " >&6; }
26248 if test "${pgac_cv_func_posix_signals+set}" = set; then
26249   $as_echo_n "(cached) " >&6
26250 else
26251   cat >conftest.$ac_ext <<_ACEOF
26252 /* confdefs.h.  */
26253 _ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h.  */
26257 #include <signal.h>
26258
26259 int
26260 main ()
26261 {
26262 struct sigaction act, oact;
26263 sigemptyset(&act.sa_mask);
26264 act.sa_flags = SA_RESTART;
26265 sigaction(0, &act, &oact);
26266   ;
26267   return 0;
26268 }
26269 _ACEOF
26270 rm -f conftest.$ac_objext conftest$ac_exeext
26271 if { (ac_try="$ac_link"
26272 case "(($ac_try" in
26273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26274   *) ac_try_echo=$ac_try;;
26275 esac
26276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26277 $as_echo "$ac_try_echo") >&5
26278   (eval "$ac_link") 2>conftest.er1
26279   ac_status=$?
26280   grep -v '^ *+' conftest.er1 >conftest.err
26281   rm -f conftest.er1
26282   cat conftest.err >&5
26283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284   (exit $ac_status); } && {
26285          test -z "$ac_c_werror_flag" ||
26286          test ! -s conftest.err
26287        } && test -s conftest$ac_exeext && {
26288          test "$cross_compiling" = yes ||
26289          $as_test_x conftest$ac_exeext
26290        }; then
26291   pgac_cv_func_posix_signals=yes
26292 else
26293   $as_echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26295
26296         pgac_cv_func_posix_signals=no
26297 fi
26298
26299 rm -rf conftest.dSYM
26300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26301       conftest$ac_exeext conftest.$ac_ext
26302 fi
26303 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
26304 $as_echo "$pgac_cv_func_posix_signals" >&6; }
26305 if test x"$pgac_cv_func_posix_signals" = xyes ; then
26306
26307 cat >>confdefs.h <<\_ACEOF
26308 #define HAVE_POSIX_SIGNALS /**/
26309 _ACEOF
26310
26311 fi
26312 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
26313
26314 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
26315   { { $as_echo "$as_me:$LINENO: error:
26316 Thread-safety requires POSIX signals, which are not supported by this
26317 operating system." >&5
26318 $as_echo "$as_me: error:
26319 Thread-safety requires POSIX signals, which are not supported by this
26320 operating system." >&2;}
26321    { (exit 1); exit 1; }; }
26322 fi
26323 fi
26324
26325 if test $ac_cv_func_fseeko = yes; then
26326 # Check whether --enable-largefile was given.
26327 if test "${enable_largefile+set}" = set; then
26328   enableval=$enable_largefile;
26329 fi
26330
26331 if test "$enable_largefile" != no; then
26332
26333   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
26334 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
26335 if test "${ac_cv_sys_largefile_CC+set}" = set; then
26336   $as_echo_n "(cached) " >&6
26337 else
26338   ac_cv_sys_largefile_CC=no
26339      if test "$GCC" != yes; then
26340        ac_save_CC=$CC
26341        while :; do
26342          # IRIX 6.2 and later do not support large files by default,
26343          # so use the C compiler's -n32 option if that helps.
26344          cat >conftest.$ac_ext <<_ACEOF
26345 /* confdefs.h.  */
26346 _ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h.  */
26350 #include <sys/types.h>
26351  /* Check that off_t can represent 2**63 - 1 correctly.
26352     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26353     since some C++ compilers masquerading as C compilers
26354     incorrectly reject 9223372036854775807.  */
26355 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26356   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26357                        && LARGE_OFF_T % 2147483647 == 1)
26358                       ? 1 : -1];
26359 int
26360 main ()
26361 {
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   break
26386 else
26387   $as_echo "$as_me: failed program was:" >&5
26388 sed 's/^/| /' conftest.$ac_ext >&5
26389
26390
26391 fi
26392
26393 rm -f core conftest.err conftest.$ac_objext
26394          CC="$CC -n32"
26395          rm -f conftest.$ac_objext
26396 if { (ac_try="$ac_compile"
26397 case "(($ac_try" in
26398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399   *) ac_try_echo=$ac_try;;
26400 esac
26401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26402 $as_echo "$ac_try_echo") >&5
26403   (eval "$ac_compile") 2>conftest.er1
26404   ac_status=$?
26405   grep -v '^ *+' conftest.er1 >conftest.err
26406   rm -f conftest.er1
26407   cat conftest.err >&5
26408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409   (exit $ac_status); } && {
26410          test -z "$ac_c_werror_flag" ||
26411          test ! -s conftest.err
26412        } && test -s conftest.$ac_objext; then
26413   ac_cv_sys_largefile_CC=' -n32'; break
26414 else
26415   $as_echo "$as_me: failed program was:" >&5
26416 sed 's/^/| /' conftest.$ac_ext >&5
26417
26418
26419 fi
26420
26421 rm -f core conftest.err conftest.$ac_objext
26422          break
26423        done
26424        CC=$ac_save_CC
26425        rm -f conftest.$ac_ext
26426     fi
26427 fi
26428 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
26429 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
26430   if test "$ac_cv_sys_largefile_CC" != no; then
26431     CC=$CC$ac_cv_sys_largefile_CC
26432   fi
26433
26434   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26435 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
26436 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26437   $as_echo_n "(cached) " >&6
26438 else
26439   while :; do
26440   cat >conftest.$ac_ext <<_ACEOF
26441 /* confdefs.h.  */
26442 _ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h.  */
26446 #include <sys/types.h>
26447  /* Check that off_t can represent 2**63 - 1 correctly.
26448     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26449     since some C++ compilers masquerading as C compilers
26450     incorrectly reject 9223372036854775807.  */
26451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26452   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26453                        && LARGE_OFF_T % 2147483647 == 1)
26454                       ? 1 : -1];
26455 int
26456 main ()
26457 {
26458
26459   ;
26460   return 0;
26461 }
26462 _ACEOF
26463 rm -f conftest.$ac_objext
26464 if { (ac_try="$ac_compile"
26465 case "(($ac_try" in
26466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26467   *) ac_try_echo=$ac_try;;
26468 esac
26469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26470 $as_echo "$ac_try_echo") >&5
26471   (eval "$ac_compile") 2>conftest.er1
26472   ac_status=$?
26473   grep -v '^ *+' conftest.er1 >conftest.err
26474   rm -f conftest.er1
26475   cat conftest.err >&5
26476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477   (exit $ac_status); } && {
26478          test -z "$ac_c_werror_flag" ||
26479          test ! -s conftest.err
26480        } && test -s conftest.$ac_objext; then
26481   ac_cv_sys_file_offset_bits=no; break
26482 else
26483   $as_echo "$as_me: failed program was:" >&5
26484 sed 's/^/| /' conftest.$ac_ext >&5
26485
26486
26487 fi
26488
26489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26490   cat >conftest.$ac_ext <<_ACEOF
26491 /* confdefs.h.  */
26492 _ACEOF
26493 cat confdefs.h >>conftest.$ac_ext
26494 cat >>conftest.$ac_ext <<_ACEOF
26495 /* end confdefs.h.  */
26496 #define _FILE_OFFSET_BITS 64
26497 #include <sys/types.h>
26498  /* Check that off_t can represent 2**63 - 1 correctly.
26499     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26500     since some C++ compilers masquerading as C compilers
26501     incorrectly reject 9223372036854775807.  */
26502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26503   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26504                        && LARGE_OFF_T % 2147483647 == 1)
26505                       ? 1 : -1];
26506 int
26507 main ()
26508 {
26509
26510   ;
26511   return 0;
26512 }
26513 _ACEOF
26514 rm -f conftest.$ac_objext
26515 if { (ac_try="$ac_compile"
26516 case "(($ac_try" in
26517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518   *) ac_try_echo=$ac_try;;
26519 esac
26520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26521 $as_echo "$ac_try_echo") >&5
26522   (eval "$ac_compile") 2>conftest.er1
26523   ac_status=$?
26524   grep -v '^ *+' conftest.er1 >conftest.err
26525   rm -f conftest.er1
26526   cat conftest.err >&5
26527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528   (exit $ac_status); } && {
26529          test -z "$ac_c_werror_flag" ||
26530          test ! -s conftest.err
26531        } && test -s conftest.$ac_objext; then
26532   ac_cv_sys_file_offset_bits=64; break
26533 else
26534   $as_echo "$as_me: failed program was:" >&5
26535 sed 's/^/| /' conftest.$ac_ext >&5
26536
26537
26538 fi
26539
26540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26541   ac_cv_sys_file_offset_bits=unknown
26542   break
26543 done
26544 fi
26545 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26546 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
26547 case $ac_cv_sys_file_offset_bits in #(
26548   no | unknown) ;;
26549   *)
26550 cat >>confdefs.h <<_ACEOF
26551 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26552 _ACEOF
26553 ;;
26554 esac
26555 rm -rf conftest*
26556   if test $ac_cv_sys_file_offset_bits = unknown; then
26557     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26558 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
26559 if test "${ac_cv_sys_large_files+set}" = set; then
26560   $as_echo_n "(cached) " >&6
26561 else
26562   while :; do
26563   cat >conftest.$ac_ext <<_ACEOF
26564 /* confdefs.h.  */
26565 _ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h.  */
26569 #include <sys/types.h>
26570  /* Check that off_t can represent 2**63 - 1 correctly.
26571     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26572     since some C++ compilers masquerading as C compilers
26573     incorrectly reject 9223372036854775807.  */
26574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26575   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26576                        && LARGE_OFF_T % 2147483647 == 1)
26577                       ? 1 : -1];
26578 int
26579 main ()
26580 {
26581
26582   ;
26583   return 0;
26584 }
26585 _ACEOF
26586 rm -f conftest.$ac_objext
26587 if { (ac_try="$ac_compile"
26588 case "(($ac_try" in
26589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26590   *) ac_try_echo=$ac_try;;
26591 esac
26592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26593 $as_echo "$ac_try_echo") >&5
26594   (eval "$ac_compile") 2>conftest.er1
26595   ac_status=$?
26596   grep -v '^ *+' conftest.er1 >conftest.err
26597   rm -f conftest.er1
26598   cat conftest.err >&5
26599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600   (exit $ac_status); } && {
26601          test -z "$ac_c_werror_flag" ||
26602          test ! -s conftest.err
26603        } && test -s conftest.$ac_objext; then
26604   ac_cv_sys_large_files=no; break
26605 else
26606   $as_echo "$as_me: failed program was:" >&5
26607 sed 's/^/| /' conftest.$ac_ext >&5
26608
26609
26610 fi
26611
26612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26613   cat >conftest.$ac_ext <<_ACEOF
26614 /* confdefs.h.  */
26615 _ACEOF
26616 cat confdefs.h >>conftest.$ac_ext
26617 cat >>conftest.$ac_ext <<_ACEOF
26618 /* end confdefs.h.  */
26619 #define _LARGE_FILES 1
26620 #include <sys/types.h>
26621  /* Check that off_t can represent 2**63 - 1 correctly.
26622     We can't simply define LARGE_OFF_T to be 9223372036854775807,
26623     since some C++ compilers masquerading as C compilers
26624     incorrectly reject 9223372036854775807.  */
26625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26626   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26627                        && LARGE_OFF_T % 2147483647 == 1)
26628                       ? 1 : -1];
26629 int
26630 main ()
26631 {
26632
26633   ;
26634   return 0;
26635 }
26636 _ACEOF
26637 rm -f conftest.$ac_objext
26638 if { (ac_try="$ac_compile"
26639 case "(($ac_try" in
26640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641   *) ac_try_echo=$ac_try;;
26642 esac
26643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26644 $as_echo "$ac_try_echo") >&5
26645   (eval "$ac_compile") 2>conftest.er1
26646   ac_status=$?
26647   grep -v '^ *+' conftest.er1 >conftest.err
26648   rm -f conftest.er1
26649   cat conftest.err >&5
26650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651   (exit $ac_status); } && {
26652          test -z "$ac_c_werror_flag" ||
26653          test ! -s conftest.err
26654        } && test -s conftest.$ac_objext; then
26655   ac_cv_sys_large_files=1; break
26656 else
26657   $as_echo "$as_me: failed program was:" >&5
26658 sed 's/^/| /' conftest.$ac_ext >&5
26659
26660
26661 fi
26662
26663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26664   ac_cv_sys_large_files=unknown
26665   break
26666 done
26667 fi
26668 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26669 $as_echo "$ac_cv_sys_large_files" >&6; }
26670 case $ac_cv_sys_large_files in #(
26671   no | unknown) ;;
26672   *)
26673 cat >>confdefs.h <<_ACEOF
26674 #define _LARGE_FILES $ac_cv_sys_large_files
26675 _ACEOF
26676 ;;
26677 esac
26678 rm -rf conftest*
26679   fi
26680 fi
26681
26682 fi
26683
26684 # Check for largefile support (must be after AC_SYS_LARGEFILE)
26685 # The cast to long int works around a bug in the HP C Compiler
26686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26688 # This bug is HP SR number 8606223364.
26689 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
26690 $as_echo_n "checking size of off_t... " >&6; }
26691 if test "${ac_cv_sizeof_off_t+set}" = set; then
26692   $as_echo_n "(cached) " >&6
26693 else
26694   if test "$cross_compiling" = yes; then
26695   # Depending upon the size, compute the lo and hi bounds.
26696 cat >conftest.$ac_ext <<_ACEOF
26697 /* confdefs.h.  */
26698 _ACEOF
26699 cat confdefs.h >>conftest.$ac_ext
26700 cat >>conftest.$ac_ext <<_ACEOF
26701 /* end confdefs.h.  */
26702 $ac_includes_default
26703 int
26704 main ()
26705 {
26706 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
26707 test_array [0] = 0
26708
26709   ;
26710   return 0;
26711 }
26712 _ACEOF
26713 rm -f conftest.$ac_objext
26714 if { (ac_try="$ac_compile"
26715 case "(($ac_try" in
26716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26717   *) ac_try_echo=$ac_try;;
26718 esac
26719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26720 $as_echo "$ac_try_echo") >&5
26721   (eval "$ac_compile") 2>conftest.er1
26722   ac_status=$?
26723   grep -v '^ *+' conftest.er1 >conftest.err
26724   rm -f conftest.er1
26725   cat conftest.err >&5
26726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727   (exit $ac_status); } && {
26728          test -z "$ac_c_werror_flag" ||
26729          test ! -s conftest.err
26730        } && test -s conftest.$ac_objext; then
26731   ac_lo=0 ac_mid=0
26732   while :; do
26733     cat >conftest.$ac_ext <<_ACEOF
26734 /* confdefs.h.  */
26735 _ACEOF
26736 cat confdefs.h >>conftest.$ac_ext
26737 cat >>conftest.$ac_ext <<_ACEOF
26738 /* end confdefs.h.  */
26739 $ac_includes_default
26740 int
26741 main ()
26742 {
26743 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26744 test_array [0] = 0
26745
26746   ;
26747   return 0;
26748 }
26749 _ACEOF
26750 rm -f conftest.$ac_objext
26751 if { (ac_try="$ac_compile"
26752 case "(($ac_try" in
26753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26754   *) ac_try_echo=$ac_try;;
26755 esac
26756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26757 $as_echo "$ac_try_echo") >&5
26758   (eval "$ac_compile") 2>conftest.er1
26759   ac_status=$?
26760   grep -v '^ *+' conftest.er1 >conftest.err
26761   rm -f conftest.er1
26762   cat conftest.err >&5
26763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764   (exit $ac_status); } && {
26765          test -z "$ac_c_werror_flag" ||
26766          test ! -s conftest.err
26767        } && test -s conftest.$ac_objext; then
26768   ac_hi=$ac_mid; break
26769 else
26770   $as_echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26772
26773         ac_lo=`expr $ac_mid + 1`
26774                         if test $ac_lo -le $ac_mid; then
26775                           ac_lo= ac_hi=
26776                           break
26777                         fi
26778                         ac_mid=`expr 2 '*' $ac_mid + 1`
26779 fi
26780
26781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26782   done
26783 else
26784   $as_echo "$as_me: failed program was:" >&5
26785 sed 's/^/| /' conftest.$ac_ext >&5
26786
26787         cat >conftest.$ac_ext <<_ACEOF
26788 /* confdefs.h.  */
26789 _ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h.  */
26793 $ac_includes_default
26794 int
26795 main ()
26796 {
26797 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
26798 test_array [0] = 0
26799
26800   ;
26801   return 0;
26802 }
26803 _ACEOF
26804 rm -f conftest.$ac_objext
26805 if { (ac_try="$ac_compile"
26806 case "(($ac_try" in
26807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26808   *) ac_try_echo=$ac_try;;
26809 esac
26810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26811 $as_echo "$ac_try_echo") >&5
26812   (eval "$ac_compile") 2>conftest.er1
26813   ac_status=$?
26814   grep -v '^ *+' conftest.er1 >conftest.err
26815   rm -f conftest.er1
26816   cat conftest.err >&5
26817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818   (exit $ac_status); } && {
26819          test -z "$ac_c_werror_flag" ||
26820          test ! -s conftest.err
26821        } && test -s conftest.$ac_objext; then
26822   ac_hi=-1 ac_mid=-1
26823   while :; do
26824     cat >conftest.$ac_ext <<_ACEOF
26825 /* confdefs.h.  */
26826 _ACEOF
26827 cat confdefs.h >>conftest.$ac_ext
26828 cat >>conftest.$ac_ext <<_ACEOF
26829 /* end confdefs.h.  */
26830 $ac_includes_default
26831 int
26832 main ()
26833 {
26834 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
26835 test_array [0] = 0
26836
26837   ;
26838   return 0;
26839 }
26840 _ACEOF
26841 rm -f conftest.$ac_objext
26842 if { (ac_try="$ac_compile"
26843 case "(($ac_try" in
26844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845   *) ac_try_echo=$ac_try;;
26846 esac
26847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26848 $as_echo "$ac_try_echo") >&5
26849   (eval "$ac_compile") 2>conftest.er1
26850   ac_status=$?
26851   grep -v '^ *+' conftest.er1 >conftest.err
26852   rm -f conftest.er1
26853   cat conftest.err >&5
26854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855   (exit $ac_status); } && {
26856          test -z "$ac_c_werror_flag" ||
26857          test ! -s conftest.err
26858        } && test -s conftest.$ac_objext; then
26859   ac_lo=$ac_mid; break
26860 else
26861   $as_echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26863
26864         ac_hi=`expr '(' $ac_mid ')' - 1`
26865                         if test $ac_mid -le $ac_hi; then
26866                           ac_lo= ac_hi=
26867                           break
26868                         fi
26869                         ac_mid=`expr 2 '*' $ac_mid`
26870 fi
26871
26872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26873   done
26874 else
26875   $as_echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.$ac_ext >&5
26877
26878         ac_lo= ac_hi=
26879 fi
26880
26881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26882 fi
26883
26884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26885 # Binary search between lo and hi bounds.
26886 while test "x$ac_lo" != "x$ac_hi"; do
26887   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26888   cat >conftest.$ac_ext <<_ACEOF
26889 /* confdefs.h.  */
26890 _ACEOF
26891 cat confdefs.h >>conftest.$ac_ext
26892 cat >>conftest.$ac_ext <<_ACEOF
26893 /* end confdefs.h.  */
26894 $ac_includes_default
26895 int
26896 main ()
26897 {
26898 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26899 test_array [0] = 0
26900
26901   ;
26902   return 0;
26903 }
26904 _ACEOF
26905 rm -f conftest.$ac_objext
26906 if { (ac_try="$ac_compile"
26907 case "(($ac_try" in
26908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26909   *) ac_try_echo=$ac_try;;
26910 esac
26911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26912 $as_echo "$ac_try_echo") >&5
26913   (eval "$ac_compile") 2>conftest.er1
26914   ac_status=$?
26915   grep -v '^ *+' conftest.er1 >conftest.err
26916   rm -f conftest.er1
26917   cat conftest.err >&5
26918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); } && {
26920          test -z "$ac_c_werror_flag" ||
26921          test ! -s conftest.err
26922        } && test -s conftest.$ac_objext; then
26923   ac_hi=$ac_mid
26924 else
26925   $as_echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26927
26928         ac_lo=`expr '(' $ac_mid ')' + 1`
26929 fi
26930
26931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26932 done
26933 case $ac_lo in
26934 ?*) ac_cv_sizeof_off_t=$ac_lo;;
26935 '') if test "$ac_cv_type_off_t" = yes; then
26936      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26938 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
26939 See \`config.log' for more details." >&5
26940 $as_echo "$as_me: error: cannot compute sizeof (off_t)
26941 See \`config.log' for more details." >&2;}
26942    { (exit 77); exit 77; }; }; }
26943    else
26944      ac_cv_sizeof_off_t=0
26945    fi ;;
26946 esac
26947 else
26948   cat >conftest.$ac_ext <<_ACEOF
26949 /* confdefs.h.  */
26950 _ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h.  */
26954 $ac_includes_default
26955 static long int longval () { return (long int) (sizeof (off_t)); }
26956 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
26957 #include <stdio.h>
26958 #include <stdlib.h>
26959 int
26960 main ()
26961 {
26962
26963   FILE *f = fopen ("conftest.val", "w");
26964   if (! f)
26965     return 1;
26966   if (((long int) (sizeof (off_t))) < 0)
26967     {
26968       long int i = longval ();
26969       if (i != ((long int) (sizeof (off_t))))
26970         return 1;
26971       fprintf (f, "%ld", i);
26972     }
26973   else
26974     {
26975       unsigned long int i = ulongval ();
26976       if (i != ((long int) (sizeof (off_t))))
26977         return 1;
26978       fprintf (f, "%lu", i);
26979     }
26980   /* Do not output a trailing newline, as this causes \r\n confusion
26981      on some platforms.  */
26982   return ferror (f) || fclose (f) != 0;
26983
26984   ;
26985   return 0;
26986 }
26987 _ACEOF
26988 rm -f conftest$ac_exeext
26989 if { (ac_try="$ac_link"
26990 case "(($ac_try" in
26991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992   *) ac_try_echo=$ac_try;;
26993 esac
26994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26995 $as_echo "$ac_try_echo") >&5
26996   (eval "$ac_link") 2>&5
26997   ac_status=$?
26998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27000   { (case "(($ac_try" in
27001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27002   *) ac_try_echo=$ac_try;;
27003 esac
27004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27005 $as_echo "$ac_try_echo") >&5
27006   (eval "$ac_try") 2>&5
27007   ac_status=$?
27008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009   (exit $ac_status); }; }; then
27010   ac_cv_sizeof_off_t=`cat conftest.val`
27011 else
27012   $as_echo "$as_me: program exited with status $ac_status" >&5
27013 $as_echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27015
27016 ( exit $ac_status )
27017 if test "$ac_cv_type_off_t" = yes; then
27018      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27020 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27021 See \`config.log' for more details." >&5
27022 $as_echo "$as_me: error: cannot compute sizeof (off_t)
27023 See \`config.log' for more details." >&2;}
27024    { (exit 77); exit 77; }; }; }
27025    else
27026      ac_cv_sizeof_off_t=0
27027    fi
27028 fi
27029 rm -rf conftest.dSYM
27030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27031 fi
27032 rm -f conftest.val
27033 fi
27034 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
27035 $as_echo "$ac_cv_sizeof_off_t" >&6; }
27036
27037
27038
27039 cat >>confdefs.h <<_ACEOF
27040 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27041 _ACEOF
27042
27043
27044
27045 # If we don't have largefile support, can't handle segsize >= 2GB.
27046 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
27047    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
27048 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
27049    { (exit 1); exit 1; }; }
27050 fi
27051
27052 # SunOS doesn't handle negative byte comparisons properly with +/- return
27053 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27054 $as_echo_n "checking for working memcmp... " >&6; }
27055 if test "${ac_cv_func_memcmp_working+set}" = set; then
27056   $as_echo_n "(cached) " >&6
27057 else
27058   if test "$cross_compiling" = yes; then
27059   ac_cv_func_memcmp_working=no
27060 else
27061   cat >conftest.$ac_ext <<_ACEOF
27062 /* confdefs.h.  */
27063 _ACEOF
27064 cat confdefs.h >>conftest.$ac_ext
27065 cat >>conftest.$ac_ext <<_ACEOF
27066 /* end confdefs.h.  */
27067 $ac_includes_default
27068 int
27069 main ()
27070 {
27071
27072   /* Some versions of memcmp are not 8-bit clean.  */
27073   char c0 = '\100', c1 = '\200', c2 = '\201';
27074   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27075     return 1;
27076
27077   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27078      or more and with at least one buffer not starting on a 4-byte boundary.
27079      William Lewis provided this test program.   */
27080   {
27081     char foo[21];
27082     char bar[21];
27083     int i;
27084     for (i = 0; i < 4; i++)
27085       {
27086         char *a = foo + i;
27087         char *b = bar + i;
27088         strcpy (a, "--------01111111");
27089         strcpy (b, "--------10000000");
27090         if (memcmp (a, b, 16) >= 0)
27091           return 1;
27092       }
27093     return 0;
27094   }
27095
27096   ;
27097   return 0;
27098 }
27099 _ACEOF
27100 rm -f conftest$ac_exeext
27101 if { (ac_try="$ac_link"
27102 case "(($ac_try" in
27103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104   *) ac_try_echo=$ac_try;;
27105 esac
27106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27107 $as_echo "$ac_try_echo") >&5
27108   (eval "$ac_link") 2>&5
27109   ac_status=$?
27110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27112   { (case "(($ac_try" in
27113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27114   *) ac_try_echo=$ac_try;;
27115 esac
27116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27117 $as_echo "$ac_try_echo") >&5
27118   (eval "$ac_try") 2>&5
27119   ac_status=$?
27120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121   (exit $ac_status); }; }; then
27122   ac_cv_func_memcmp_working=yes
27123 else
27124   $as_echo "$as_me: program exited with status $ac_status" >&5
27125 $as_echo "$as_me: failed program was:" >&5
27126 sed 's/^/| /' conftest.$ac_ext >&5
27127
27128 ( exit $ac_status )
27129 ac_cv_func_memcmp_working=no
27130 fi
27131 rm -rf conftest.dSYM
27132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27133 fi
27134
27135
27136 fi
27137 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27138 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27139 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27140   *" memcmp.$ac_objext "* ) ;;
27141   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27142  ;;
27143 esac
27144
27145
27146
27147
27148 # Select semaphore implementation type.
27149 if test "$PORTNAME" != "win32"; then
27150   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27151
27152 cat >>confdefs.h <<\_ACEOF
27153 #define USE_NAMED_POSIX_SEMAPHORES 1
27154 _ACEOF
27155
27156     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27157   else
27158     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27159
27160 cat >>confdefs.h <<\_ACEOF
27161 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27162 _ACEOF
27163
27164       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27165     else
27166
27167 cat >>confdefs.h <<\_ACEOF
27168 #define USE_SYSV_SEMAPHORES 1
27169 _ACEOF
27170
27171       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27172     fi
27173   fi
27174 else
27175
27176 cat >>confdefs.h <<\_ACEOF
27177 #define USE_WIN32_SEMAPHORES 1
27178 _ACEOF
27179
27180   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27181 fi
27182
27183
27184 # Select shared-memory implementation type.
27185 if test "$PORTNAME" != "win32"; then
27186
27187 cat >>confdefs.h <<\_ACEOF
27188 #define USE_SYSV_SHARED_MEMORY 1
27189 _ACEOF
27190
27191   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27192 else
27193
27194 cat >>confdefs.h <<\_ACEOF
27195 #define USE_WIN32_SHARED_MEMORY 1
27196 _ACEOF
27197
27198   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27199 fi
27200
27201 # If not set in template file, set bytes to use libc memset()
27202 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27203   MEMSET_LOOP_LIMIT=1024
27204 fi
27205
27206 cat >>confdefs.h <<_ACEOF
27207 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27208 _ACEOF
27209
27210
27211
27212 if test "$enable_nls" = yes ; then
27213
27214   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27215 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27216 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27217   $as_echo_n "(cached) " >&6
27218 else
27219   ac_func_search_save_LIBS=$LIBS
27220 cat >conftest.$ac_ext <<_ACEOF
27221 /* confdefs.h.  */
27222 _ACEOF
27223 cat confdefs.h >>conftest.$ac_ext
27224 cat >>conftest.$ac_ext <<_ACEOF
27225 /* end confdefs.h.  */
27226
27227 /* Override any GCC internal prototype to avoid an error.
27228    Use char because int might match the return type of a GCC
27229    builtin and then its argument prototype would still apply.  */
27230 #ifdef __cplusplus
27231 extern "C"
27232 #endif
27233 char bind_textdomain_codeset ();
27234 int
27235 main ()
27236 {
27237 return bind_textdomain_codeset ();
27238   ;
27239   return 0;
27240 }
27241 _ACEOF
27242 for ac_lib in '' intl; do
27243   if test -z "$ac_lib"; then
27244     ac_res="none required"
27245   else
27246     ac_res=-l$ac_lib
27247     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27248   fi
27249   rm -f conftest.$ac_objext conftest$ac_exeext
27250 if { (ac_try="$ac_link"
27251 case "(($ac_try" in
27252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27253   *) ac_try_echo=$ac_try;;
27254 esac
27255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27256 $as_echo "$ac_try_echo") >&5
27257   (eval "$ac_link") 2>conftest.er1
27258   ac_status=$?
27259   grep -v '^ *+' conftest.er1 >conftest.err
27260   rm -f conftest.er1
27261   cat conftest.err >&5
27262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263   (exit $ac_status); } && {
27264          test -z "$ac_c_werror_flag" ||
27265          test ! -s conftest.err
27266        } && test -s conftest$ac_exeext && {
27267          test "$cross_compiling" = yes ||
27268          $as_test_x conftest$ac_exeext
27269        }; then
27270   ac_cv_search_bind_textdomain_codeset=$ac_res
27271 else
27272   $as_echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27274
27275
27276 fi
27277
27278 rm -rf conftest.dSYM
27279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27280       conftest$ac_exeext
27281   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27282   break
27283 fi
27284 done
27285 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27286   :
27287 else
27288   ac_cv_search_bind_textdomain_codeset=no
27289 fi
27290 rm conftest.$ac_ext
27291 LIBS=$ac_func_search_save_LIBS
27292 fi
27293 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27294 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27295 ac_res=$ac_cv_search_bind_textdomain_codeset
27296 if test "$ac_res" != no; then
27297   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27298
27299 else
27300   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27301 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27302    { (exit 1); exit 1; }; }
27303 fi
27304
27305   if test "${ac_cv_header_libintl_h+set}" = set; then
27306   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27307 $as_echo_n "checking for libintl.h... " >&6; }
27308 if test "${ac_cv_header_libintl_h+set}" = set; then
27309   $as_echo_n "(cached) " >&6
27310 fi
27311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27312 $as_echo "$ac_cv_header_libintl_h" >&6; }
27313 else
27314   # Is the header compilable?
27315 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27316 $as_echo_n "checking libintl.h usability... " >&6; }
27317 cat >conftest.$ac_ext <<_ACEOF
27318 /* confdefs.h.  */
27319 _ACEOF
27320 cat confdefs.h >>conftest.$ac_ext
27321 cat >>conftest.$ac_ext <<_ACEOF
27322 /* end confdefs.h.  */
27323 $ac_includes_default
27324 #include <libintl.h>
27325 _ACEOF
27326 rm -f conftest.$ac_objext
27327 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27335   ac_status=$?
27336   grep -v '^ *+' conftest.er1 >conftest.err
27337   rm -f conftest.er1
27338   cat conftest.err >&5
27339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340   (exit $ac_status); } && {
27341          test -z "$ac_c_werror_flag" ||
27342          test ! -s conftest.err
27343        } && test -s conftest.$ac_objext; then
27344   ac_header_compiler=yes
27345 else
27346   $as_echo "$as_me: failed program was:" >&5
27347 sed 's/^/| /' conftest.$ac_ext >&5
27348
27349         ac_header_compiler=no
27350 fi
27351
27352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27353 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27354 $as_echo "$ac_header_compiler" >&6; }
27355
27356 # Is the header present?
27357 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27358 $as_echo_n "checking libintl.h presence... " >&6; }
27359 cat >conftest.$ac_ext <<_ACEOF
27360 /* confdefs.h.  */
27361 _ACEOF
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h.  */
27365 #include <libintl.h>
27366 _ACEOF
27367 if { (ac_try="$ac_cpp conftest.$ac_ext"
27368 case "(($ac_try" in
27369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370   *) ac_try_echo=$ac_try;;
27371 esac
27372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27373 $as_echo "$ac_try_echo") >&5
27374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27375   ac_status=$?
27376   grep -v '^ *+' conftest.er1 >conftest.err
27377   rm -f conftest.er1
27378   cat conftest.err >&5
27379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380   (exit $ac_status); } >/dev/null && {
27381          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27382          test ! -s conftest.err
27383        }; then
27384   ac_header_preproc=yes
27385 else
27386   $as_echo "$as_me: failed program was:" >&5
27387 sed 's/^/| /' conftest.$ac_ext >&5
27388
27389   ac_header_preproc=no
27390 fi
27391
27392 rm -f conftest.err conftest.$ac_ext
27393 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27394 $as_echo "$ac_header_preproc" >&6; }
27395
27396 # So?  What about this header?
27397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27398   yes:no: )
27399     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27400 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27401     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27402 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27403     ac_header_preproc=yes
27404     ;;
27405   no:yes:* )
27406     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27407 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27408     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
27409 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
27410     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27411 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27412     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
27413 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27414     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27415 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27416     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27417 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27418     ( cat <<\_ASBOX
27419 ## ---------------------------------------- ##
27420 ## Report this to pgsql-bugs@postgresql.org ##
27421 ## ---------------------------------------- ##
27422 _ASBOX
27423      ) | sed "s/^/$as_me: WARNING:     /" >&2
27424     ;;
27425 esac
27426 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27427 $as_echo_n "checking for libintl.h... " >&6; }
27428 if test "${ac_cv_header_libintl_h+set}" = set; then
27429   $as_echo_n "(cached) " >&6
27430 else
27431   ac_cv_header_libintl_h=$ac_header_preproc
27432 fi
27433 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27434 $as_echo "$ac_cv_header_libintl_h" >&6; }
27435
27436 fi
27437 if test "x$ac_cv_header_libintl_h" = x""yes; then
27438   :
27439 else
27440   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
27441 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
27442    { (exit 1); exit 1; }; }
27443 fi
27444
27445
27446   for ac_prog in msgfmt
27447 do
27448   # Extract the first word of "$ac_prog", so it can be a program name with args.
27449 set dummy $ac_prog; ac_word=$2
27450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27451 $as_echo_n "checking for $ac_word... " >&6; }
27452 if test "${ac_cv_prog_MSGFMT+set}" = set; then
27453   $as_echo_n "(cached) " >&6
27454 else
27455   if test -n "$MSGFMT"; then
27456   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
27457 else
27458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27459 for as_dir in $PATH
27460 do
27461   IFS=$as_save_IFS
27462   test -z "$as_dir" && as_dir=.
27463   for ac_exec_ext in '' $ac_executable_extensions; do
27464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27465     ac_cv_prog_MSGFMT="$ac_prog"
27466     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27467     break 2
27468   fi
27469 done
27470 done
27471 IFS=$as_save_IFS
27472
27473 fi
27474 fi
27475 MSGFMT=$ac_cv_prog_MSGFMT
27476 if test -n "$MSGFMT"; then
27477   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27478 $as_echo "$MSGFMT" >&6; }
27479 else
27480   { $as_echo "$as_me:$LINENO: result: no" >&5
27481 $as_echo "no" >&6; }
27482 fi
27483
27484
27485   test -n "$MSGFMT" && break
27486 done
27487
27488   if test -z "$MSGFMT"; then
27489     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
27490 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
27491    { (exit 1); exit 1; }; }
27492   fi
27493   for ac_prog in msgmerge
27494 do
27495   # Extract the first word of "$ac_prog", so it can be a program name with args.
27496 set dummy $ac_prog; ac_word=$2
27497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27498 $as_echo_n "checking for $ac_word... " >&6; }
27499 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
27500   $as_echo_n "(cached) " >&6
27501 else
27502   if test -n "$MSGMERGE"; then
27503   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
27504 else
27505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27506 for as_dir in $PATH
27507 do
27508   IFS=$as_save_IFS
27509   test -z "$as_dir" && as_dir=.
27510   for ac_exec_ext in '' $ac_executable_extensions; do
27511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27512     ac_cv_prog_MSGMERGE="$ac_prog"
27513     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27514     break 2
27515   fi
27516 done
27517 done
27518 IFS=$as_save_IFS
27519
27520 fi
27521 fi
27522 MSGMERGE=$ac_cv_prog_MSGMERGE
27523 if test -n "$MSGMERGE"; then
27524   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27525 $as_echo "$MSGMERGE" >&6; }
27526 else
27527   { $as_echo "$as_me:$LINENO: result: no" >&5
27528 $as_echo "no" >&6; }
27529 fi
27530
27531
27532   test -n "$MSGMERGE" && break
27533 done
27534
27535   for ac_prog in xgettext
27536 do
27537   # Extract the first word of "$ac_prog", so it can be a program name with args.
27538 set dummy $ac_prog; ac_word=$2
27539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27540 $as_echo_n "checking for $ac_word... " >&6; }
27541 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
27542   $as_echo_n "(cached) " >&6
27543 else
27544   if test -n "$XGETTEXT"; then
27545   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
27546 else
27547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27548 for as_dir in $PATH
27549 do
27550   IFS=$as_save_IFS
27551   test -z "$as_dir" && as_dir=.
27552   for ac_exec_ext in '' $ac_executable_extensions; do
27553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27554     ac_cv_prog_XGETTEXT="$ac_prog"
27555     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27556     break 2
27557   fi
27558 done
27559 done
27560 IFS=$as_save_IFS
27561
27562 fi
27563 fi
27564 XGETTEXT=$ac_cv_prog_XGETTEXT
27565 if test -n "$XGETTEXT"; then
27566   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27567 $as_echo "$XGETTEXT" >&6; }
27568 else
27569   { $as_echo "$as_me:$LINENO: result: no" >&5
27570 $as_echo "no" >&6; }
27571 fi
27572
27573
27574   test -n "$XGETTEXT" && break
27575 done
27576
27577
27578 fi
27579
27580 # Check for Tcl configuration script tclConfig.sh
27581 if test "$with_tcl" = yes; then
27582     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
27583 do
27584   # Extract the first word of "$ac_prog", so it can be a program name with args.
27585 set dummy $ac_prog; ac_word=$2
27586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27587 $as_echo_n "checking for $ac_word... " >&6; }
27588 if test "${ac_cv_path_TCLSH+set}" = set; then
27589   $as_echo_n "(cached) " >&6
27590 else
27591   case $TCLSH in
27592   [\\/]* | ?:[\\/]*)
27593   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
27594   ;;
27595   *)
27596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27597 for as_dir in $PATH
27598 do
27599   IFS=$as_save_IFS
27600   test -z "$as_dir" && as_dir=.
27601   for ac_exec_ext in '' $ac_executable_extensions; do
27602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27603     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
27604     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27605     break 2
27606   fi
27607 done
27608 done
27609 IFS=$as_save_IFS
27610
27611   ;;
27612 esac
27613 fi
27614 TCLSH=$ac_cv_path_TCLSH
27615 if test -n "$TCLSH"; then
27616   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
27617 $as_echo "$TCLSH" >&6; }
27618 else
27619   { $as_echo "$as_me:$LINENO: result: no" >&5
27620 $as_echo "no" >&6; }
27621 fi
27622
27623
27624   test -n "$TCLSH" && break
27625 done
27626
27627 if test x"$TCLSH" = x""; then
27628   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
27629 $as_echo "$as_me: error: Tcl shell not found" >&2;}
27630    { (exit 1); exit 1; }; }
27631 fi
27632
27633 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
27634 $as_echo_n "checking for tclConfig.sh... " >&6; }
27635 # Let user override test
27636 if test -z "$TCL_CONFIG_SH"; then
27637     pgac_test_dirs="$with_tclconfig"
27638
27639     set X $pgac_test_dirs; shift
27640     if test $# -eq 0; then
27641         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
27642 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
27643    { (exit 1); exit 1; }; }
27644         set X `echo 'puts $auto_path' | $TCLSH`; shift
27645     fi
27646
27647     for pgac_dir do
27648         if test -r "$pgac_dir/tclConfig.sh"; then
27649             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
27650             break
27651         fi
27652     done
27653 fi
27654
27655 if test -z "$TCL_CONFIG_SH"; then
27656     { $as_echo "$as_me:$LINENO: result: no" >&5
27657 $as_echo "no" >&6; }
27658     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
27659 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
27660    { (exit 1); exit 1; }; }
27661 else
27662     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
27663 $as_echo "$TCL_CONFIG_SH" >&6; }
27664 fi
27665
27666
27667
27668     . "$TCL_CONFIG_SH"
27669 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
27670 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
27671 eval TCL_LIBS=\"$TCL_LIBS\"
27672 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
27673 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
27674
27675         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
27676     ac_save_CPPFLAGS=$CPPFLAGS
27677     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
27678     if test "${ac_cv_header_tcl_h+set}" = set; then
27679   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27680 $as_echo_n "checking for tcl.h... " >&6; }
27681 if test "${ac_cv_header_tcl_h+set}" = set; then
27682   $as_echo_n "(cached) " >&6
27683 fi
27684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27685 $as_echo "$ac_cv_header_tcl_h" >&6; }
27686 else
27687   # Is the header compilable?
27688 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
27689 $as_echo_n "checking tcl.h usability... " >&6; }
27690 cat >conftest.$ac_ext <<_ACEOF
27691 /* confdefs.h.  */
27692 _ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h.  */
27696 $ac_includes_default
27697 #include <tcl.h>
27698 _ACEOF
27699 rm -f conftest.$ac_objext
27700 if { (ac_try="$ac_compile"
27701 case "(($ac_try" in
27702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703   *) ac_try_echo=$ac_try;;
27704 esac
27705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27706 $as_echo "$ac_try_echo") >&5
27707   (eval "$ac_compile") 2>conftest.er1
27708   ac_status=$?
27709   grep -v '^ *+' conftest.er1 >conftest.err
27710   rm -f conftest.er1
27711   cat conftest.err >&5
27712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713   (exit $ac_status); } && {
27714          test -z "$ac_c_werror_flag" ||
27715          test ! -s conftest.err
27716        } && test -s conftest.$ac_objext; then
27717   ac_header_compiler=yes
27718 else
27719   $as_echo "$as_me: failed program was:" >&5
27720 sed 's/^/| /' conftest.$ac_ext >&5
27721
27722         ac_header_compiler=no
27723 fi
27724
27725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27727 $as_echo "$ac_header_compiler" >&6; }
27728
27729 # Is the header present?
27730 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
27731 $as_echo_n "checking tcl.h presence... " >&6; }
27732 cat >conftest.$ac_ext <<_ACEOF
27733 /* confdefs.h.  */
27734 _ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h.  */
27738 #include <tcl.h>
27739 _ACEOF
27740 if { (ac_try="$ac_cpp conftest.$ac_ext"
27741 case "(($ac_try" in
27742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743   *) ac_try_echo=$ac_try;;
27744 esac
27745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27746 $as_echo "$ac_try_echo") >&5
27747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27748   ac_status=$?
27749   grep -v '^ *+' conftest.er1 >conftest.err
27750   rm -f conftest.er1
27751   cat conftest.err >&5
27752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); } >/dev/null && {
27754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27755          test ! -s conftest.err
27756        }; then
27757   ac_header_preproc=yes
27758 else
27759   $as_echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.$ac_ext >&5
27761
27762   ac_header_preproc=no
27763 fi
27764
27765 rm -f conftest.err conftest.$ac_ext
27766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27767 $as_echo "$ac_header_preproc" >&6; }
27768
27769 # So?  What about this header?
27770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27771   yes:no: )
27772     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27773 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27774     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
27775 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
27776     ac_header_preproc=yes
27777     ;;
27778   no:yes:* )
27779     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
27780 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
27781     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
27782 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
27783     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
27784 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
27785     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
27786 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27787     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
27788 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
27789     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
27790 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
27791     ( cat <<\_ASBOX
27792 ## ---------------------------------------- ##
27793 ## Report this to pgsql-bugs@postgresql.org ##
27794 ## ---------------------------------------- ##
27795 _ASBOX
27796      ) | sed "s/^/$as_me: WARNING:     /" >&2
27797     ;;
27798 esac
27799 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27800 $as_echo_n "checking for tcl.h... " >&6; }
27801 if test "${ac_cv_header_tcl_h+set}" = set; then
27802   $as_echo_n "(cached) " >&6
27803 else
27804   ac_cv_header_tcl_h=$ac_header_preproc
27805 fi
27806 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27807 $as_echo "$ac_cv_header_tcl_h" >&6; }
27808
27809 fi
27810 if test "x$ac_cv_header_tcl_h" = x""yes; then
27811   :
27812 else
27813   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
27814 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
27815    { (exit 1); exit 1; }; }
27816 fi
27817
27818
27819     CPPFLAGS=$ac_save_CPPFLAGS
27820 fi
27821
27822 #
27823 # Check for DocBook and tools
27824 #
27825 for ac_prog in onsgmls nsgmls
27826 do
27827   # Extract the first word of "$ac_prog", so it can be a program name with args.
27828 set dummy $ac_prog; ac_word=$2
27829 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27830 $as_echo_n "checking for $ac_word... " >&6; }
27831 if test "${ac_cv_prog_NSGMLS+set}" = set; then
27832   $as_echo_n "(cached) " >&6
27833 else
27834   if test -n "$NSGMLS"; then
27835   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
27836 else
27837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27838 for as_dir in $PATH
27839 do
27840   IFS=$as_save_IFS
27841   test -z "$as_dir" && as_dir=.
27842   for ac_exec_ext in '' $ac_executable_extensions; do
27843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27844     ac_cv_prog_NSGMLS="$ac_prog"
27845     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27846     break 2
27847   fi
27848 done
27849 done
27850 IFS=$as_save_IFS
27851
27852 fi
27853 fi
27854 NSGMLS=$ac_cv_prog_NSGMLS
27855 if test -n "$NSGMLS"; then
27856   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
27857 $as_echo "$NSGMLS" >&6; }
27858 else
27859   { $as_echo "$as_me:$LINENO: result: no" >&5
27860 $as_echo "no" >&6; }
27861 fi
27862
27863
27864   test -n "$NSGMLS" && break
27865 done
27866
27867 for ac_prog in openjade jade
27868 do
27869   # Extract the first word of "$ac_prog", so it can be a program name with args.
27870 set dummy $ac_prog; ac_word=$2
27871 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27872 $as_echo_n "checking for $ac_word... " >&6; }
27873 if test "${ac_cv_prog_JADE+set}" = set; then
27874   $as_echo_n "(cached) " >&6
27875 else
27876   if test -n "$JADE"; then
27877   ac_cv_prog_JADE="$JADE" # Let the user override the test.
27878 else
27879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27880 for as_dir in $PATH
27881 do
27882   IFS=$as_save_IFS
27883   test -z "$as_dir" && as_dir=.
27884   for ac_exec_ext in '' $ac_executable_extensions; do
27885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27886     ac_cv_prog_JADE="$ac_prog"
27887     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27888     break 2
27889   fi
27890 done
27891 done
27892 IFS=$as_save_IFS
27893
27894 fi
27895 fi
27896 JADE=$ac_cv_prog_JADE
27897 if test -n "$JADE"; then
27898   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
27899 $as_echo "$JADE" >&6; }
27900 else
27901   { $as_echo "$as_me:$LINENO: result: no" >&5
27902 $as_echo "no" >&6; }
27903 fi
27904
27905
27906   test -n "$JADE" && break
27907 done
27908
27909
27910 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
27911 $as_echo_n "checking for DocBook V4.2... " >&6; }
27912 if test "${pgac_cv_check_docbook+set}" = set; then
27913   $as_echo_n "(cached) " >&6
27914 else
27915   cat >conftest.sgml <<EOF
27916 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
27917 <book>
27918  <title>test</title>
27919  <chapter>
27920   <title>random</title>
27921    <sect1>
27922     <title>testsect</title>
27923     <para>text</para>
27924   </sect1>
27925  </chapter>
27926 </book>
27927 EOF
27928
27929 pgac_cv_check_docbook=no
27930
27931 if test -n "$NSGMLS"; then
27932   $NSGMLS -s conftest.sgml 1>&5 2>&1
27933   if test $? -eq 0; then
27934     pgac_cv_check_docbook=yes
27935   fi
27936 fi
27937 rm -f conftest.sgml
27938 fi
27939 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
27940 $as_echo "$pgac_cv_check_docbook" >&6; }
27941
27942 have_docbook=$pgac_cv_check_docbook
27943
27944
27945 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
27946 $as_echo_n "checking for DocBook stylesheets... " >&6; }
27947 if test "${pgac_cv_path_stylesheets+set}" = set; then
27948   $as_echo_n "(cached) " >&6
27949 else
27950   if test -n "$DOCBOOKSTYLE"; then
27951   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
27952 else
27953   for pgac_prefix in /usr /usr/local /opt /sw; do
27954     for pgac_infix in share lib; do
27955       for pgac_postfix in \
27956         sgml/stylesheets/nwalsh-modular \
27957         sgml/stylesheets/docbook \
27958         sgml/stylesheets/dsssl/docbook \
27959         sgml/docbook-dsssl \
27960         sgml/docbook/dsssl/modular \
27961         sgml/docbook/stylesheet/dsssl/modular \
27962         sgml/docbook/dsssl-stylesheets \
27963         sgml/dsssl/docbook-dsssl-nwalsh
27964       do
27965         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
27966         if test -r "$pgac_candidate/html/docbook.dsl" \
27967            && test -r "$pgac_candidate/print/docbook.dsl"
27968         then
27969           pgac_cv_path_stylesheets=$pgac_candidate
27970           break 3
27971         fi
27972       done
27973     done
27974   done
27975 fi
27976 fi
27977
27978 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
27979
27980 if test -n "$DOCBOOKSTYLE"; then
27981   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
27982 $as_echo "$DOCBOOKSTYLE" >&6; }
27983 else
27984   { $as_echo "$as_me:$LINENO: result: no" >&5
27985 $as_echo "no" >&6; }
27986 fi
27987 if test -n "$DOCBOOKSTYLE"; then
27988   for ac_prog in collateindex.pl
27989 do
27990   # Extract the first word of "$ac_prog", so it can be a program name with args.
27991 set dummy $ac_prog; ac_word=$2
27992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27993 $as_echo_n "checking for $ac_word... " >&6; }
27994 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
27995   $as_echo_n "(cached) " >&6
27996 else
27997   case $COLLATEINDEX in
27998   [\\/]* | ?:[\\/]*)
27999   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28000   ;;
28001   *)
28002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28003 for as_dir in $DOCBOOKSTYLE/bin $PATH
28004 do
28005   IFS=$as_save_IFS
28006   test -z "$as_dir" && as_dir=.
28007   for ac_exec_ext in '' $ac_executable_extensions; do
28008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28009     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28010     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28011     break 2
28012   fi
28013 done
28014 done
28015 IFS=$as_save_IFS
28016
28017   ;;
28018 esac
28019 fi
28020 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28021 if test -n "$COLLATEINDEX"; then
28022   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28023 $as_echo "$COLLATEINDEX" >&6; }
28024 else
28025   { $as_echo "$as_me:$LINENO: result: no" >&5
28026 $as_echo "no" >&6; }
28027 fi
28028
28029
28030   test -n "$COLLATEINDEX" && break
28031 done
28032
28033 else
28034   for ac_prog in collateindex.pl
28035 do
28036   # Extract the first word of "$ac_prog", so it can be a program name with args.
28037 set dummy $ac_prog; ac_word=$2
28038 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28039 $as_echo_n "checking for $ac_word... " >&6; }
28040 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28041   $as_echo_n "(cached) " >&6
28042 else
28043   case $COLLATEINDEX in
28044   [\\/]* | ?:[\\/]*)
28045   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28046   ;;
28047   *)
28048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28049 for as_dir in $PATH
28050 do
28051   IFS=$as_save_IFS
28052   test -z "$as_dir" && as_dir=.
28053   for ac_exec_ext in '' $ac_executable_extensions; do
28054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28055     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28056     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28057     break 2
28058   fi
28059 done
28060 done
28061 IFS=$as_save_IFS
28062
28063   ;;
28064 esac
28065 fi
28066 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28067 if test -n "$COLLATEINDEX"; then
28068   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28069 $as_echo "$COLLATEINDEX" >&6; }
28070 else
28071   { $as_echo "$as_me:$LINENO: result: no" >&5
28072 $as_echo "no" >&6; }
28073 fi
28074
28075
28076   test -n "$COLLATEINDEX" && break
28077 done
28078
28079 fi
28080 for ac_prog in xsltproc
28081 do
28082   # Extract the first word of "$ac_prog", so it can be a program name with args.
28083 set dummy $ac_prog; ac_word=$2
28084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28085 $as_echo_n "checking for $ac_word... " >&6; }
28086 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28087   $as_echo_n "(cached) " >&6
28088 else
28089   if test -n "$XSLTPROC"; then
28090   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28091 else
28092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28093 for as_dir in $PATH
28094 do
28095   IFS=$as_save_IFS
28096   test -z "$as_dir" && as_dir=.
28097   for ac_exec_ext in '' $ac_executable_extensions; do
28098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28099     ac_cv_prog_XSLTPROC="$ac_prog"
28100     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28101     break 2
28102   fi
28103 done
28104 done
28105 IFS=$as_save_IFS
28106
28107 fi
28108 fi
28109 XSLTPROC=$ac_cv_prog_XSLTPROC
28110 if test -n "$XSLTPROC"; then
28111   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28112 $as_echo "$XSLTPROC" >&6; }
28113 else
28114   { $as_echo "$as_me:$LINENO: result: no" >&5
28115 $as_echo "no" >&6; }
28116 fi
28117
28118
28119   test -n "$XSLTPROC" && break
28120 done
28121
28122 for ac_prog in osx sgml2xml sx
28123 do
28124   # Extract the first word of "$ac_prog", so it can be a program name with args.
28125 set dummy $ac_prog; ac_word=$2
28126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28127 $as_echo_n "checking for $ac_word... " >&6; }
28128 if test "${ac_cv_prog_OSX+set}" = set; then
28129   $as_echo_n "(cached) " >&6
28130 else
28131   if test -n "$OSX"; then
28132   ac_cv_prog_OSX="$OSX" # Let the user override the test.
28133 else
28134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28135 for as_dir in $PATH
28136 do
28137   IFS=$as_save_IFS
28138   test -z "$as_dir" && as_dir=.
28139   for ac_exec_ext in '' $ac_executable_extensions; do
28140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28141     ac_cv_prog_OSX="$ac_prog"
28142     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28143     break 2
28144   fi
28145 done
28146 done
28147 IFS=$as_save_IFS
28148
28149 fi
28150 fi
28151 OSX=$ac_cv_prog_OSX
28152 if test -n "$OSX"; then
28153   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28154 $as_echo "$OSX" >&6; }
28155 else
28156   { $as_echo "$as_me:$LINENO: result: no" >&5
28157 $as_echo "no" >&6; }
28158 fi
28159
28160
28161   test -n "$OSX" && break
28162 done
28163
28164
28165 # Thread testing
28166
28167 # We have to run the thread test near the end so we have all our symbols
28168 # defined.  Cross compiling throws a warning.
28169 #
28170 if test "$enable_thread_safety_force" = yes; then
28171 if test "$PORTNAME" != "win32"
28172 then
28173   { $as_echo "$as_me:$LINENO: WARNING:
28174 *** Skipping thread test program.  --enable-thread-safety-force was used.
28175 *** Run the program in src/test/thread on the your machine and add proper
28176 *** locking function calls to your applications to guarantee thread safety.
28177 " >&5
28178 $as_echo "$as_me: WARNING:
28179 *** Skipping thread test program.  --enable-thread-safety-force was used.
28180 *** Run the program in src/test/thread on the your machine and add proper
28181 *** locking function calls to your applications to guarantee thread safety.
28182 " >&2;}
28183 else
28184 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28185 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28186 fi
28187 elif test "$enable_thread_safety" = yes; then
28188 if test "$PORTNAME" != "win32"
28189 then
28190 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28191 $as_echo_n "checking thread safety of required library functions... " >&6; }
28192
28193 _CFLAGS="$CFLAGS"
28194 _LIBS="$LIBS"
28195 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28196 LIBS="$LIBS $PTHREAD_LIBS"
28197 if test "$cross_compiling" = yes; then
28198   { $as_echo "$as_me:$LINENO: result: maybe" >&5
28199 $as_echo "maybe" >&6; }
28200   { $as_echo "$as_me:$LINENO: WARNING:
28201 *** Skipping thread test program because of cross-compile build.
28202 *** Run the program in src/test/thread on the target machine.
28203 " >&5
28204 $as_echo "$as_me: WARNING:
28205 *** Skipping thread test program because of cross-compile build.
28206 *** Run the program in src/test/thread on the target machine.
28207 " >&2;}
28208 else
28209   cat >conftest.$ac_ext <<_ACEOF
28210 /* confdefs.h.  */
28211 _ACEOF
28212 cat confdefs.h >>conftest.$ac_ext
28213 cat >>conftest.$ac_ext <<_ACEOF
28214 /* end confdefs.h.  */
28215 #include "$srcdir/src/test/thread/thread_test.c"
28216 _ACEOF
28217 rm -f conftest$ac_exeext
28218 if { (ac_try="$ac_link"
28219 case "(($ac_try" in
28220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28221   *) ac_try_echo=$ac_try;;
28222 esac
28223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28224 $as_echo "$ac_try_echo") >&5
28225   (eval "$ac_link") 2>&5
28226   ac_status=$?
28227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28229   { (case "(($ac_try" in
28230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231   *) ac_try_echo=$ac_try;;
28232 esac
28233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28234 $as_echo "$ac_try_echo") >&5
28235   (eval "$ac_try") 2>&5
28236   ac_status=$?
28237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); }; }; then
28239   { $as_echo "$as_me:$LINENO: result: yes" >&5
28240 $as_echo "yes" >&6; }
28241 else
28242   $as_echo "$as_me: program exited with status $ac_status" >&5
28243 $as_echo "$as_me: failed program was:" >&5
28244 sed 's/^/| /' conftest.$ac_ext >&5
28245
28246 ( exit $ac_status )
28247 { $as_echo "$as_me:$LINENO: result: no" >&5
28248 $as_echo "no" >&6; }
28249   { { $as_echo "$as_me:$LINENO: error: thread test program failed
28250 This platform is not thread-safe.  Check the file 'config.log' for the
28251 exact reason.
28252
28253 You can use the configure option --enable-thread-safety-force to force
28254 threads to be enabled.  But you must then run the program in
28255 src/test/thread and add locking function calls to your applications to
28256 guarantee thread safety." >&5
28257 $as_echo "$as_me: error: thread test program failed
28258 This platform is not thread-safe.  Check the file 'config.log' for the
28259 exact reason.
28260
28261 You can use the configure option --enable-thread-safety-force to force
28262 threads to be enabled.  But you must then run the program in
28263 src/test/thread and add locking function calls to your applications to
28264 guarantee thread safety." >&2;}
28265    { (exit 1); exit 1; }; }
28266 fi
28267 rm -rf conftest.dSYM
28268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28269 fi
28270
28271
28272 CFLAGS="$_CFLAGS"
28273 LIBS="$_LIBS"
28274 else
28275 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28276 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28277 fi
28278 fi
28279
28280 # If compiler will take -Wl,--as-needed (or various platform-specific
28281 # spellings thereof) then add that to LDFLAGS.  This is much easier than
28282 # trying to filter LIBS to the minimum for each executable.
28283 # (Note that shared library links won't use this switch, though.)
28284 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28285 # libreadline; therefore we postpone testing it until we know what library
28286 # dependencies readline has.  The test code will try to link with $LIBS.
28287 if test "$with_readline" = yes; then
28288   link_test_func=readline
28289 else
28290   link_test_func=exit
28291 fi
28292
28293 if test "$PORTNAME" = "darwin"; then
28294   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28295 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28296 pgac_save_LDFLAGS=$LDFLAGS
28297 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28298 if test "$cross_compiling" = yes; then
28299   LDFLAGS="$pgac_save_LDFLAGS"
28300                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28301 $as_echo "assuming no" >&6; }
28302 else
28303   cat >conftest.$ac_ext <<_ACEOF
28304 /* confdefs.h.  */
28305 _ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h.  */
28309 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28310 int
28311 main ()
28312 {
28313
28314   ;
28315   return 0;
28316 }
28317 _ACEOF
28318 rm -f conftest$ac_exeext
28319 if { (ac_try="$ac_link"
28320 case "(($ac_try" in
28321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322   *) ac_try_echo=$ac_try;;
28323 esac
28324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28325 $as_echo "$ac_try_echo") >&5
28326   (eval "$ac_link") 2>&5
28327   ac_status=$?
28328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28330   { (case "(($ac_try" in
28331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28332   *) ac_try_echo=$ac_try;;
28333 esac
28334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28335 $as_echo "$ac_try_echo") >&5
28336   (eval "$ac_try") 2>&5
28337   ac_status=$?
28338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339   (exit $ac_status); }; }; then
28340   { $as_echo "$as_me:$LINENO: result: yes" >&5
28341 $as_echo "yes" >&6; }
28342 else
28343   $as_echo "$as_me: program exited with status $ac_status" >&5
28344 $as_echo "$as_me: failed program was:" >&5
28345 sed 's/^/| /' conftest.$ac_ext >&5
28346
28347 ( exit $ac_status )
28348 LDFLAGS="$pgac_save_LDFLAGS"
28349                { $as_echo "$as_me:$LINENO: result: no" >&5
28350 $as_echo "no" >&6; }
28351 fi
28352 rm -rf conftest.dSYM
28353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28354 fi
28355
28356
28357
28358 elif test "$PORTNAME" = "openbsd"; then
28359   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28360 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28361 pgac_save_LDFLAGS=$LDFLAGS
28362 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28363 if test "$cross_compiling" = yes; then
28364   LDFLAGS="$pgac_save_LDFLAGS"
28365                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28366 $as_echo "assuming no" >&6; }
28367 else
28368   cat >conftest.$ac_ext <<_ACEOF
28369 /* confdefs.h.  */
28370 _ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h.  */
28374 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28375 int
28376 main ()
28377 {
28378
28379   ;
28380   return 0;
28381 }
28382 _ACEOF
28383 rm -f conftest$ac_exeext
28384 if { (ac_try="$ac_link"
28385 case "(($ac_try" in
28386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28387   *) ac_try_echo=$ac_try;;
28388 esac
28389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28390 $as_echo "$ac_try_echo") >&5
28391   (eval "$ac_link") 2>&5
28392   ac_status=$?
28393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28395   { (case "(($ac_try" in
28396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28397   *) ac_try_echo=$ac_try;;
28398 esac
28399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28400 $as_echo "$ac_try_echo") >&5
28401   (eval "$ac_try") 2>&5
28402   ac_status=$?
28403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404   (exit $ac_status); }; }; then
28405   { $as_echo "$as_me:$LINENO: result: yes" >&5
28406 $as_echo "yes" >&6; }
28407 else
28408   $as_echo "$as_me: program exited with status $ac_status" >&5
28409 $as_echo "$as_me: failed program was:" >&5
28410 sed 's/^/| /' conftest.$ac_ext >&5
28411
28412 ( exit $ac_status )
28413 LDFLAGS="$pgac_save_LDFLAGS"
28414                { $as_echo "$as_me:$LINENO: result: no" >&5
28415 $as_echo "no" >&6; }
28416 fi
28417 rm -rf conftest.dSYM
28418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28419 fi
28420
28421
28422
28423 else
28424   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28425 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28426 pgac_save_LDFLAGS=$LDFLAGS
28427 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28428 if test "$cross_compiling" = yes; then
28429   LDFLAGS="$pgac_save_LDFLAGS"
28430                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28431 $as_echo "assuming no" >&6; }
28432 else
28433   cat >conftest.$ac_ext <<_ACEOF
28434 /* confdefs.h.  */
28435 _ACEOF
28436 cat confdefs.h >>conftest.$ac_ext
28437 cat >>conftest.$ac_ext <<_ACEOF
28438 /* end confdefs.h.  */
28439 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28440 int
28441 main ()
28442 {
28443
28444   ;
28445   return 0;
28446 }
28447 _ACEOF
28448 rm -f conftest$ac_exeext
28449 if { (ac_try="$ac_link"
28450 case "(($ac_try" in
28451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452   *) ac_try_echo=$ac_try;;
28453 esac
28454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28455 $as_echo "$ac_try_echo") >&5
28456   (eval "$ac_link") 2>&5
28457   ac_status=$?
28458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28460   { (case "(($ac_try" in
28461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28462   *) ac_try_echo=$ac_try;;
28463 esac
28464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28465 $as_echo "$ac_try_echo") >&5
28466   (eval "$ac_try") 2>&5
28467   ac_status=$?
28468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469   (exit $ac_status); }; }; then
28470   { $as_echo "$as_me:$LINENO: result: yes" >&5
28471 $as_echo "yes" >&6; }
28472 else
28473   $as_echo "$as_me: program exited with status $ac_status" >&5
28474 $as_echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28476
28477 ( exit $ac_status )
28478 LDFLAGS="$pgac_save_LDFLAGS"
28479                { $as_echo "$as_me:$LINENO: result: no" >&5
28480 $as_echo "no" >&6; }
28481 fi
28482 rm -rf conftest.dSYM
28483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28484 fi
28485
28486
28487
28488 fi
28489
28490
28491 # Begin output steps
28492
28493 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
28494 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
28495 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
28496 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
28497 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
28498 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
28499
28500 # Create compiler version string
28501 if test x"$GCC" = x"yes" ; then
28502   cc_string="GCC `${CC} --version | sed q`"
28503 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
28504   cc_string=`${CC} -V 2>&1 | sed q`
28505 else
28506   cc_string=$CC
28507 fi
28508
28509
28510 cat >>confdefs.h <<_ACEOF
28511 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
28512 _ACEOF
28513
28514
28515 # Supply a numeric version string for use by 3rd party add-ons
28516 # awk -F is a regex on some platforms, and not on others, so make "." a tab
28517 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
28518 tr '.' '        ' |
28519 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
28520
28521 cat >>confdefs.h <<_ACEOF
28522 #define PG_VERSION_NUM $PG_VERSION_NUM
28523 _ACEOF
28524
28525
28526
28527 # prepare build tree if outside source tree
28528 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
28529 # Note 2: /bin/pwd might be better than shell's built-in at getting
28530 #         a symlink-free name.
28531 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
28532   vpath_build=no
28533 else
28534   vpath_build=yes
28535   if test "$no_create" != yes; then
28536     $as_echo_n "preparing build tree... " >&6
28537     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
28538     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
28539       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
28540 $as_echo "$as_me: error: failed" >&2;}
28541    { (exit 1); exit 1; }; }
28542     { $as_echo "$as_me:$LINENO: result: done" >&5
28543 $as_echo "done" >&6; }
28544   fi
28545 fi
28546
28547
28548
28549 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
28550
28551
28552 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/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}"
28553
28554
28555 if test "$PORTNAME" = "win32"; then
28556 ac_config_commands="$ac_config_commands check_win32_symlinks"
28557
28558 fi
28559
28560 ac_config_headers="$ac_config_headers src/include/pg_config.h"
28561
28562
28563 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
28564
28565
28566 cat >confcache <<\_ACEOF
28567 # This file is a shell script that caches the results of configure
28568 # tests run on this system so they can be shared between configure
28569 # scripts and configure runs, see configure's option --config-cache.
28570 # It is not useful on other systems.  If it contains results you don't
28571 # want to keep, you may remove or edit it.
28572 #
28573 # config.status only pays attention to the cache file if you give it
28574 # the --recheck option to rerun configure.
28575 #
28576 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28577 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28578 # following values.
28579
28580 _ACEOF
28581
28582 # The following way of writing the cache mishandles newlines in values,
28583 # but we know of no workaround that is simple, portable, and efficient.
28584 # So, we kill variables containing newlines.
28585 # Ultrix sh set writes to stderr and can't be redirected directly,
28586 # and sets the high bit in the cache file unless we assign to the vars.
28587 (
28588   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28589     eval ac_val=\$$ac_var
28590     case $ac_val in #(
28591     *${as_nl}*)
28592       case $ac_var in #(
28593       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
28594 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28595       esac
28596       case $ac_var in #(
28597       _ | IFS | as_nl) ;; #(
28598       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28599       *) $as_unset $ac_var ;;
28600       esac ;;
28601     esac
28602   done
28603
28604   (set) 2>&1 |
28605     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28606     *${as_nl}ac_space=\ *)
28607       # `set' does not quote correctly, so add quotes (double-quote
28608       # substitution turns \\\\ into \\, and sed turns \\ into \).
28609       sed -n \
28610         "s/'/'\\\\''/g;
28611           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28612       ;; #(
28613     *)
28614       # `set' quotes correctly as required by POSIX, so do not add quotes.
28615       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28616       ;;
28617     esac |
28618     sort
28619 ) |
28620   sed '
28621      /^ac_cv_env_/b end
28622      t clear
28623      :clear
28624      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28625      t end
28626      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28627      :end' >>confcache
28628 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28629   if test -w "$cache_file"; then
28630     test "x$cache_file" != "x/dev/null" &&
28631       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
28632 $as_echo "$as_me: updating cache $cache_file" >&6;}
28633     cat confcache >$cache_file
28634   else
28635     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28636 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28637   fi
28638 fi
28639 rm -f confcache
28640
28641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28642 # Let make expand exec_prefix.
28643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28644
28645 DEFS=-DHAVE_CONFIG_H
28646
28647 ac_libobjs=
28648 ac_ltlibobjs=
28649 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28650   # 1. Remove the extension, and $U if already installed.
28651   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28652   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28653   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28654   #    will be set to the directory where LIBOBJS objects are built.
28655   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28656   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28657 done
28658 LIBOBJS=$ac_libobjs
28659
28660 LTLIBOBJS=$ac_ltlibobjs
28661
28662
28663
28664
28665 : ${CONFIG_STATUS=./config.status}
28666 ac_write_fail=0
28667 ac_clean_files_save=$ac_clean_files
28668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28669 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28670 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28671 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28672 #! $SHELL
28673 # Generated by $as_me.
28674 # Run this file to recreate the current configuration.
28675 # Compiler output produced by configure, useful for debugging
28676 # configure, is in config.log if it exists.
28677
28678 debug=false
28679 ac_cs_recheck=false
28680 ac_cs_silent=false
28681 SHELL=\${CONFIG_SHELL-$SHELL}
28682 _ACEOF
28683
28684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28685 ## --------------------- ##
28686 ## M4sh Initialization.  ##
28687 ## --------------------- ##
28688
28689 # Be more Bourne compatible
28690 DUALCASE=1; export DUALCASE # for MKS sh
28691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28692   emulate sh
28693   NULLCMD=:
28694   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28695   # is contrary to our usage.  Disable this feature.
28696   alias -g '${1+"$@"}'='"$@"'
28697   setopt NO_GLOB_SUBST
28698 else
28699   case `(set -o) 2>/dev/null` in
28700   *posix*) set -o posix ;;
28701 esac
28702
28703 fi
28704
28705
28706
28707
28708 # PATH needs CR
28709 # Avoid depending upon Character Ranges.
28710 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28711 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28712 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28713 as_cr_digits='0123456789'
28714 as_cr_alnum=$as_cr_Letters$as_cr_digits
28715
28716 as_nl='
28717 '
28718 export as_nl
28719 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28720 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28721 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28722 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28723 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28724   as_echo='printf %s\n'
28725   as_echo_n='printf %s'
28726 else
28727   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28728     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28729     as_echo_n='/usr/ucb/echo -n'
28730   else
28731     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28732     as_echo_n_body='eval
28733       arg=$1;
28734       case $arg in
28735       *"$as_nl"*)
28736         expr "X$arg" : "X\\(.*\\)$as_nl";
28737         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28738       esac;
28739       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28740     '
28741     export as_echo_n_body
28742     as_echo_n='sh -c $as_echo_n_body as_echo'
28743   fi
28744   export as_echo_body
28745   as_echo='sh -c $as_echo_body as_echo'
28746 fi
28747
28748 # The user is always right.
28749 if test "${PATH_SEPARATOR+set}" != set; then
28750   PATH_SEPARATOR=:
28751   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28752     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28753       PATH_SEPARATOR=';'
28754   }
28755 fi
28756
28757 # Support unset when possible.
28758 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28759   as_unset=unset
28760 else
28761   as_unset=false
28762 fi
28763
28764
28765 # IFS
28766 # We need space, tab and new line, in precisely that order.  Quoting is
28767 # there to prevent editors from complaining about space-tab.
28768 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28769 # splitting by setting IFS to empty value.)
28770 IFS=" ""        $as_nl"
28771
28772 # Find who we are.  Look in the path if we contain no directory separator.
28773 case $0 in
28774   *[\\/]* ) as_myself=$0 ;;
28775   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28776 for as_dir in $PATH
28777 do
28778   IFS=$as_save_IFS
28779   test -z "$as_dir" && as_dir=.
28780   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28781 done
28782 IFS=$as_save_IFS
28783
28784      ;;
28785 esac
28786 # We did not find ourselves, most probably we were run as `sh COMMAND'
28787 # in which case we are not to be found in the path.
28788 if test "x$as_myself" = x; then
28789   as_myself=$0
28790 fi
28791 if test ! -f "$as_myself"; then
28792   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28793   { (exit 1); exit 1; }
28794 fi
28795
28796 # Work around bugs in pre-3.0 UWIN ksh.
28797 for as_var in ENV MAIL MAILPATH
28798 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28799 done
28800 PS1='$ '
28801 PS2='> '
28802 PS4='+ '
28803
28804 # NLS nuisances.
28805 LC_ALL=C
28806 export LC_ALL
28807 LANGUAGE=C
28808 export LANGUAGE
28809
28810 # Required to use basename.
28811 if expr a : '\(a\)' >/dev/null 2>&1 &&
28812    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28813   as_expr=expr
28814 else
28815   as_expr=false
28816 fi
28817
28818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28819   as_basename=basename
28820 else
28821   as_basename=false
28822 fi
28823
28824
28825 # Name of the executable.
28826 as_me=`$as_basename -- "$0" ||
28827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28828          X"$0" : 'X\(//\)$' \| \
28829          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28830 $as_echo X/"$0" |
28831     sed '/^.*\/\([^/][^/]*\)\/*$/{
28832             s//\1/
28833             q
28834           }
28835           /^X\/\(\/\/\)$/{
28836             s//\1/
28837             q
28838           }
28839           /^X\/\(\/\).*/{
28840             s//\1/
28841             q
28842           }
28843           s/.*/./; q'`
28844
28845 # CDPATH.
28846 $as_unset CDPATH
28847
28848
28849
28850   as_lineno_1=$LINENO
28851   as_lineno_2=$LINENO
28852   test "x$as_lineno_1" != "x$as_lineno_2" &&
28853   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28854
28855   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28856   # uniformly replaced by the line number.  The first 'sed' inserts a
28857   # line-number line after each line using $LINENO; the second 'sed'
28858   # does the real work.  The second script uses 'N' to pair each
28859   # line-number line with the line containing $LINENO, and appends
28860   # trailing '-' during substitution so that $LINENO is not a special
28861   # case at line end.
28862   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28863   # scripts with optimization help from Paolo Bonzini.  Blame Lee
28864   # E. McMahon (1931-1989) for sed's syntax.  :-)
28865   sed -n '
28866     p
28867     /[$]LINENO/=
28868   ' <$as_myself |
28869     sed '
28870       s/[$]LINENO.*/&-/
28871       t lineno
28872       b
28873       :lineno
28874       N
28875       :loop
28876       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28877       t loop
28878       s/-\n.*//
28879     ' >$as_me.lineno &&
28880   chmod +x "$as_me.lineno" ||
28881     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28882    { (exit 1); exit 1; }; }
28883
28884   # Don't try to exec as it changes $[0], causing all sort of problems
28885   # (the dirname of $[0] is not the place where we might find the
28886   # original and so on.  Autoconf is especially sensitive to this).
28887   . "./$as_me.lineno"
28888   # Exit status is that of the last command.
28889   exit
28890 }
28891
28892
28893 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28894   as_dirname=dirname
28895 else
28896   as_dirname=false
28897 fi
28898
28899 ECHO_C= ECHO_N= ECHO_T=
28900 case `echo -n x` in
28901 -n*)
28902   case `echo 'x\c'` in
28903   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28904   *)   ECHO_C='\c';;
28905   esac;;
28906 *)
28907   ECHO_N='-n';;
28908 esac
28909 if expr a : '\(a\)' >/dev/null 2>&1 &&
28910    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28911   as_expr=expr
28912 else
28913   as_expr=false
28914 fi
28915
28916 rm -f conf$$ conf$$.exe conf$$.file
28917 if test -d conf$$.dir; then
28918   rm -f conf$$.dir/conf$$.file
28919 else
28920   rm -f conf$$.dir
28921   mkdir conf$$.dir 2>/dev/null
28922 fi
28923 if (echo >conf$$.file) 2>/dev/null; then
28924   if ln -s conf$$.file conf$$ 2>/dev/null; then
28925     as_ln_s='ln -s'
28926     # ... but there are two gotchas:
28927     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28928     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28929     # In both cases, we have to default to `cp -p'.
28930     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28931       as_ln_s='cp -p'
28932   elif ln conf$$.file conf$$ 2>/dev/null; then
28933     as_ln_s=ln
28934   else
28935     as_ln_s='cp -p'
28936   fi
28937 else
28938   as_ln_s='cp -p'
28939 fi
28940 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28941 rmdir conf$$.dir 2>/dev/null
28942
28943 if mkdir -p . 2>/dev/null; then
28944   as_mkdir_p=:
28945 else
28946   test -d ./-p && rmdir ./-p
28947   as_mkdir_p=false
28948 fi
28949
28950 if test -x / >/dev/null 2>&1; then
28951   as_test_x='test -x'
28952 else
28953   if ls -dL / >/dev/null 2>&1; then
28954     as_ls_L_option=L
28955   else
28956     as_ls_L_option=
28957   fi
28958   as_test_x='
28959     eval sh -c '\''
28960       if test -d "$1"; then
28961         test -d "$1/.";
28962       else
28963         case $1 in
28964         -*)set "./$1";;
28965         esac;
28966         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28967         ???[sx]*):;;*)false;;esac;fi
28968     '\'' sh
28969   '
28970 fi
28971 as_executable_p=$as_test_x
28972
28973 # Sed expression to map a string onto a valid CPP name.
28974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28975
28976 # Sed expression to map a string onto a valid variable name.
28977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28978
28979
28980 exec 6>&1
28981
28982 # Save the log message, to keep $[0] and so on meaningful, and to
28983 # report actual input values of CONFIG_FILES etc. instead of their
28984 # values after options handling.
28985 ac_log="
28986 This file was extended by PostgreSQL $as_me 8.5devel, which was
28987 generated by GNU Autoconf 2.63.  Invocation command line was
28988
28989   CONFIG_FILES    = $CONFIG_FILES
28990   CONFIG_HEADERS  = $CONFIG_HEADERS
28991   CONFIG_LINKS    = $CONFIG_LINKS
28992   CONFIG_COMMANDS = $CONFIG_COMMANDS
28993   $ $0 $@
28994
28995 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28996 "
28997
28998 _ACEOF
28999
29000 case $ac_config_files in *"
29001 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29002 esac
29003
29004 case $ac_config_headers in *"
29005 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29006 esac
29007
29008
29009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29010 # Files that config.status was made for.
29011 config_files="$ac_config_files"
29012 config_headers="$ac_config_headers"
29013 config_links="$ac_config_links"
29014 config_commands="$ac_config_commands"
29015
29016 _ACEOF
29017
29018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29019 ac_cs_usage="\
29020 \`$as_me' instantiates files from templates according to the
29021 current configuration.
29022
29023 Usage: $0 [OPTION]... [FILE]...
29024
29025   -h, --help       print this help, then exit
29026   -V, --version    print version number and configuration settings, then exit
29027   -q, --quiet, --silent
29028                    do not print progress messages
29029   -d, --debug      don't remove temporary files
29030       --recheck    update $as_me by reconfiguring in the same conditions
29031       --file=FILE[:TEMPLATE]
29032                    instantiate the configuration file FILE
29033       --header=FILE[:TEMPLATE]
29034                    instantiate the configuration header FILE
29035
29036 Configuration files:
29037 $config_files
29038
29039 Configuration headers:
29040 $config_headers
29041
29042 Configuration links:
29043 $config_links
29044
29045 Configuration commands:
29046 $config_commands
29047
29048 Report bugs to <bug-autoconf@gnu.org>."
29049
29050 _ACEOF
29051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29052 ac_cs_version="\\
29053 PostgreSQL config.status 8.5devel
29054 configured by $0, generated by GNU Autoconf 2.63,
29055   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29056
29057 Copyright (C) 2008 Free Software Foundation, Inc.
29058 This config.status script is free software; the Free Software Foundation
29059 gives unlimited permission to copy, distribute and modify it."
29060
29061 ac_pwd='$ac_pwd'
29062 srcdir='$srcdir'
29063 MKDIR_P='$MKDIR_P'
29064 AWK='$AWK'
29065 test -n "\$AWK" || AWK=awk
29066 _ACEOF
29067
29068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29069 # The default lists apply if the user does not specify any file.
29070 ac_need_defaults=:
29071 while test $# != 0
29072 do
29073   case $1 in
29074   --*=*)
29075     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29076     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29077     ac_shift=:
29078     ;;
29079   *)
29080     ac_option=$1
29081     ac_optarg=$2
29082     ac_shift=shift
29083     ;;
29084   esac
29085
29086   case $ac_option in
29087   # Handling of the options.
29088   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29089     ac_cs_recheck=: ;;
29090   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29091     $as_echo "$ac_cs_version"; exit ;;
29092   --debug | --debu | --deb | --de | --d | -d )
29093     debug=: ;;
29094   --file | --fil | --fi | --f )
29095     $ac_shift
29096     case $ac_optarg in
29097     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29098     esac
29099     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29100     ac_need_defaults=false;;
29101   --header | --heade | --head | --hea )
29102     $ac_shift
29103     case $ac_optarg in
29104     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29105     esac
29106     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29107     ac_need_defaults=false;;
29108   --he | --h)
29109     # Conflict between --help and --header
29110     { $as_echo "$as_me: error: ambiguous option: $1
29111 Try \`$0 --help' for more information." >&2
29112    { (exit 1); exit 1; }; };;
29113   --help | --hel | -h )
29114     $as_echo "$ac_cs_usage"; exit ;;
29115   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29116   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29117     ac_cs_silent=: ;;
29118
29119   # This is an error.
29120   -*) { $as_echo "$as_me: error: unrecognized option: $1
29121 Try \`$0 --help' for more information." >&2
29122    { (exit 1); exit 1; }; } ;;
29123
29124   *) ac_config_targets="$ac_config_targets $1"
29125      ac_need_defaults=false ;;
29126
29127   esac
29128   shift
29129 done
29130
29131 ac_configure_extra_args=
29132
29133 if $ac_cs_silent; then
29134   exec 6>/dev/null
29135   ac_configure_extra_args="$ac_configure_extra_args --silent"
29136 fi
29137
29138 _ACEOF
29139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29140 if \$ac_cs_recheck; then
29141   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29142   shift
29143   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29144   CONFIG_SHELL='$SHELL'
29145   export CONFIG_SHELL
29146   exec "\$@"
29147 fi
29148
29149 _ACEOF
29150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29151 exec 5>>config.log
29152 {
29153   echo
29154   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29155 ## Running $as_me. ##
29156 _ASBOX
29157   $as_echo "$ac_log"
29158 } >&5
29159
29160 _ACEOF
29161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29162 _ACEOF
29163
29164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29165
29166 # Handling of arguments.
29167 for ac_config_target in $ac_config_targets
29168 do
29169   case $ac_config_target in
29170     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29171     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29172     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29173     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29174     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29175     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29176     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29177     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29178     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29179     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29180     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29181     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29182
29183   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29184 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29185    { (exit 1); exit 1; }; };;
29186   esac
29187 done
29188
29189
29190 # If the user did not use the arguments to specify the items to instantiate,
29191 # then the envvar interface is used.  Set only those that are not.
29192 # We use the long form for the default assignment because of an extremely
29193 # bizarre bug on SunOS 4.1.3.
29194 if $ac_need_defaults; then
29195   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29196   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29197   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29198   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29199 fi
29200
29201 # Have a temporary directory for convenience.  Make it in the build tree
29202 # simply because there is no reason against having it here, and in addition,
29203 # creating and moving files from /tmp can sometimes cause problems.
29204 # Hook for its removal unless debugging.
29205 # Note that there is a small window in which the directory will not be cleaned:
29206 # after its creation but before its name has been assigned to `$tmp'.
29207 $debug ||
29208 {
29209   tmp=
29210   trap 'exit_status=$?
29211   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29212 ' 0
29213   trap '{ (exit 1); exit 1; }' 1 2 13 15
29214 }
29215 # Create a (secure) tmp directory for tmp files.
29216
29217 {
29218   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29219   test -n "$tmp" && test -d "$tmp"
29220 }  ||
29221 {
29222   tmp=./conf$$-$RANDOM
29223   (umask 077 && mkdir "$tmp")
29224 } ||
29225 {
29226    $as_echo "$as_me: cannot create a temporary directory in ." >&2
29227    { (exit 1); exit 1; }
29228 }
29229
29230 # Set up the scripts for CONFIG_FILES section.
29231 # No need to generate them if there are no CONFIG_FILES.
29232 # This happens for instance with `./config.status config.h'.
29233 if test -n "$CONFIG_FILES"; then
29234
29235
29236 ac_cr='\r'
29237 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29238 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29239   ac_cs_awk_cr='\\r'
29240 else
29241   ac_cs_awk_cr=$ac_cr
29242 fi
29243
29244 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29245 _ACEOF
29246
29247
29248 {
29249   echo "cat >conf$$subs.awk <<_ACEOF" &&
29250   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29251   echo "_ACEOF"
29252 } >conf$$subs.sh ||
29253   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29254 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29255    { (exit 1); exit 1; }; }
29256 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29257 ac_delim='%!_!# '
29258 for ac_last_try in false false false false false :; do
29259   . ./conf$$subs.sh ||
29260     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29261 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29262    { (exit 1); exit 1; }; }
29263
29264   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29265   if test $ac_delim_n = $ac_delim_num; then
29266     break
29267   elif $ac_last_try; then
29268     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29269 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29270    { (exit 1); exit 1; }; }
29271   else
29272     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29273   fi
29274 done
29275 rm -f conf$$subs.sh
29276
29277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29278 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29279 _ACEOF
29280 sed -n '
29281 h
29282 s/^/S["/; s/!.*/"]=/
29283 p
29284 g
29285 s/^[^!]*!//
29286 :repl
29287 t repl
29288 s/'"$ac_delim"'$//
29289 t delim
29290 :nl
29291 h
29292 s/\(.\{148\}\).*/\1/
29293 t more1
29294 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29295 p
29296 n
29297 b repl
29298 :more1
29299 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29300 p
29301 g
29302 s/.\{148\}//
29303 t nl
29304 :delim
29305 h
29306 s/\(.\{148\}\).*/\1/
29307 t more2
29308 s/["\\]/\\&/g; s/^/"/; s/$/"/
29309 p
29310 b
29311 :more2
29312 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29313 p
29314 g
29315 s/.\{148\}//
29316 t delim
29317 ' <conf$$subs.awk | sed '
29318 /^[^""]/{
29319   N
29320   s/\n//
29321 }
29322 ' >>$CONFIG_STATUS || ac_write_fail=1
29323 rm -f conf$$subs.awk
29324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29325 _ACAWK
29326 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29327   for (key in S) S_is_set[key] = 1
29328   FS = "\a"
29329
29330 }
29331 {
29332   line = $ 0
29333   nfields = split(line, field, "@")
29334   substed = 0
29335   len = length(field[1])
29336   for (i = 2; i < nfields; i++) {
29337     key = field[i]
29338     keylen = length(key)
29339     if (S_is_set[key]) {
29340       value = S[key]
29341       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29342       len += length(value) + length(field[++i])
29343       substed = 1
29344     } else
29345       len += 1 + keylen
29346   }
29347
29348   print line
29349 }
29350
29351 _ACAWK
29352 _ACEOF
29353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29354 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29355   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29356 else
29357   cat
29358 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29359   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29360 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29361    { (exit 1); exit 1; }; }
29362 _ACEOF
29363
29364 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29365 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29366 # trailing colons and then remove the whole line if VPATH becomes empty
29367 # (actually we leave an empty line to preserve line numbers).
29368 if test "x$srcdir" = x.; then
29369   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29370 s/:*\$(srcdir):*/:/
29371 s/:*\${srcdir}:*/:/
29372 s/:*@srcdir@:*/:/
29373 s/^\([^=]*=[     ]*\):*/\1/
29374 s/:*$//
29375 s/^[^=]*=[       ]*$//
29376 }'
29377 fi
29378
29379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29380 fi # test -n "$CONFIG_FILES"
29381
29382 # Set up the scripts for CONFIG_HEADERS section.
29383 # No need to generate them if there are no CONFIG_HEADERS.
29384 # This happens for instance with `./config.status Makefile'.
29385 if test -n "$CONFIG_HEADERS"; then
29386 cat >"$tmp/defines.awk" <<\_ACAWK ||
29387 BEGIN {
29388 _ACEOF
29389
29390 # Transform confdefs.h into an awk script `defines.awk', embedded as
29391 # here-document in config.status, that substitutes the proper values into
29392 # config.h.in to produce config.h.
29393
29394 # Create a delimiter string that does not exist in confdefs.h, to ease
29395 # handling of long lines.
29396 ac_delim='%!_!# '
29397 for ac_last_try in false false :; do
29398   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29399   if test -z "$ac_t"; then
29400     break
29401   elif $ac_last_try; then
29402     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29403 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29404    { (exit 1); exit 1; }; }
29405   else
29406     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29407   fi
29408 done
29409
29410 # For the awk script, D is an array of macro values keyed by name,
29411 # likewise P contains macro parameters if any.  Preserve backslash
29412 # newline sequences.
29413
29414 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29415 sed -n '
29416 s/.\{148\}/&'"$ac_delim"'/g
29417 t rset
29418 :rset
29419 s/^[     ]*#[    ]*define[       ][      ]*/ /
29420 t def
29421 d
29422 :def
29423 s/\\$//
29424 t bsnl
29425 s/["\\]/\\&/g
29426 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29427 D["\1"]=" \3"/p
29428 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29429 d
29430 :bsnl
29431 s/["\\]/\\&/g
29432 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29433 D["\1"]=" \3\\\\\\n"\\/p
29434 t cont
29435 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29436 t cont
29437 d
29438 :cont
29439 n
29440 s/.\{148\}/&'"$ac_delim"'/g
29441 t clear
29442 :clear
29443 s/\\$//
29444 t bsnlc
29445 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29446 d
29447 :bsnlc
29448 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29449 b cont
29450 ' <confdefs.h | sed '
29451 s/'"$ac_delim"'/"\\\
29452 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29453
29454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29455   for (key in D) D_is_set[key] = 1
29456   FS = "\a"
29457 }
29458 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29459   line = \$ 0
29460   split(line, arg, " ")
29461   if (arg[1] == "#") {
29462     defundef = arg[2]
29463     mac1 = arg[3]
29464   } else {
29465     defundef = substr(arg[1], 2)
29466     mac1 = arg[2]
29467   }
29468   split(mac1, mac2, "(") #)
29469   macro = mac2[1]
29470   prefix = substr(line, 1, index(line, defundef) - 1)
29471   if (D_is_set[macro]) {
29472     # Preserve the white space surrounding the "#".
29473     print prefix "define", macro P[macro] D[macro]
29474     next
29475   } else {
29476     # Replace #undef with comments.  This is necessary, for example,
29477     # in the case of _POSIX_SOURCE, which is predefined and required
29478     # on some systems where configure will not decide to define it.
29479     if (defundef == "undef") {
29480       print "/*", prefix defundef, macro, "*/"
29481       next
29482     }
29483   }
29484 }
29485 { print }
29486 _ACAWK
29487 _ACEOF
29488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29489   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29490 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29491    { (exit 1); exit 1; }; }
29492 fi # test -n "$CONFIG_HEADERS"
29493
29494
29495 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
29496 shift
29497 for ac_tag
29498 do
29499   case $ac_tag in
29500   :[FHLC]) ac_mode=$ac_tag; continue;;
29501   esac
29502   case $ac_mode$ac_tag in
29503   :[FHL]*:*);;
29504   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29505 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29506    { (exit 1); exit 1; }; };;
29507   :[FH]-) ac_tag=-:-;;
29508   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29509   esac
29510   ac_save_IFS=$IFS
29511   IFS=:
29512   set x $ac_tag
29513   IFS=$ac_save_IFS
29514   shift
29515   ac_file=$1
29516   shift
29517
29518   case $ac_mode in
29519   :L) ac_source=$1;;
29520   :[FH])
29521     ac_file_inputs=
29522     for ac_f
29523     do
29524       case $ac_f in
29525       -) ac_f="$tmp/stdin";;
29526       *) # Look for the file first in the build tree, then in the source tree
29527          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29528          # because $ac_f cannot contain `:'.
29529          test -f "$ac_f" ||
29530            case $ac_f in
29531            [\\/$]*) false;;
29532            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29533            esac ||
29534            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29535 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29536    { (exit 1); exit 1; }; };;
29537       esac
29538       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29539       ac_file_inputs="$ac_file_inputs '$ac_f'"
29540     done
29541
29542     # Let's still pretend it is `configure' which instantiates (i.e., don't
29543     # use $as_me), people would be surprised to read:
29544     #    /* config.h.  Generated by config.status.  */
29545     configure_input='Generated from '`
29546           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29547         `' by configure.'
29548     if test x"$ac_file" != x-; then
29549       configure_input="$ac_file.  $configure_input"
29550       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29551 $as_echo "$as_me: creating $ac_file" >&6;}
29552     fi
29553     # Neutralize special characters interpreted by sed in replacement strings.
29554     case $configure_input in #(
29555     *\&* | *\|* | *\\* )
29556        ac_sed_conf_input=`$as_echo "$configure_input" |
29557        sed 's/[\\\\&|]/\\\\&/g'`;; #(
29558     *) ac_sed_conf_input=$configure_input;;
29559     esac
29560
29561     case $ac_tag in
29562     *:-:* | *:-) cat >"$tmp/stdin" \
29563       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29564 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29565    { (exit 1); exit 1; }; } ;;
29566     esac
29567     ;;
29568   esac
29569
29570   ac_dir=`$as_dirname -- "$ac_file" ||
29571 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29572          X"$ac_file" : 'X\(//\)[^/]' \| \
29573          X"$ac_file" : 'X\(//\)$' \| \
29574          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29575 $as_echo X"$ac_file" |
29576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29577             s//\1/
29578             q
29579           }
29580           /^X\(\/\/\)[^/].*/{
29581             s//\1/
29582             q
29583           }
29584           /^X\(\/\/\)$/{
29585             s//\1/
29586             q
29587           }
29588           /^X\(\/\).*/{
29589             s//\1/
29590             q
29591           }
29592           s/.*/./; q'`
29593   { as_dir="$ac_dir"
29594   case $as_dir in #(
29595   -*) as_dir=./$as_dir;;
29596   esac
29597   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29598     as_dirs=
29599     while :; do
29600       case $as_dir in #(
29601       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29602       *) as_qdir=$as_dir;;
29603       esac
29604       as_dirs="'$as_qdir' $as_dirs"
29605       as_dir=`$as_dirname -- "$as_dir" ||
29606 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29607          X"$as_dir" : 'X\(//\)[^/]' \| \
29608          X"$as_dir" : 'X\(//\)$' \| \
29609          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29610 $as_echo X"$as_dir" |
29611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29612             s//\1/
29613             q
29614           }
29615           /^X\(\/\/\)[^/].*/{
29616             s//\1/
29617             q
29618           }
29619           /^X\(\/\/\)$/{
29620             s//\1/
29621             q
29622           }
29623           /^X\(\/\).*/{
29624             s//\1/
29625             q
29626           }
29627           s/.*/./; q'`
29628       test -d "$as_dir" && break
29629     done
29630     test -z "$as_dirs" || eval "mkdir $as_dirs"
29631   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29632 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29633    { (exit 1); exit 1; }; }; }
29634   ac_builddir=.
29635
29636 case "$ac_dir" in
29637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29638 *)
29639   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29640   # A ".." for each directory in $ac_dir_suffix.
29641   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29642   case $ac_top_builddir_sub in
29643   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29644   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29645   esac ;;
29646 esac
29647 ac_abs_top_builddir=$ac_pwd
29648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29649 # for backward compatibility:
29650 ac_top_builddir=$ac_top_build_prefix
29651
29652 case $srcdir in
29653   .)  # We are building in place.
29654     ac_srcdir=.
29655     ac_top_srcdir=$ac_top_builddir_sub
29656     ac_abs_top_srcdir=$ac_pwd ;;
29657   [\\/]* | ?:[\\/]* )  # Absolute name.
29658     ac_srcdir=$srcdir$ac_dir_suffix;
29659     ac_top_srcdir=$srcdir
29660     ac_abs_top_srcdir=$srcdir ;;
29661   *) # Relative name.
29662     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29663     ac_top_srcdir=$ac_top_build_prefix$srcdir
29664     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29665 esac
29666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29667
29668
29669   case $ac_mode in
29670   :F)
29671   #
29672   # CONFIG_FILE
29673   #
29674
29675   ac_MKDIR_P=$MKDIR_P
29676   case $MKDIR_P in
29677   [\\/$]* | ?:[\\/]* ) ;;
29678   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29679   esac
29680 _ACEOF
29681
29682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29683 # If the template does not know about datarootdir, expand it.
29684 # FIXME: This hack should be removed a few years after 2.60.
29685 ac_datarootdir_hack=; ac_datarootdir_seen=
29686
29687 ac_sed_dataroot='
29688 /datarootdir/ {
29689   p
29690   q
29691 }
29692 /@datadir@/p
29693 /@docdir@/p
29694 /@infodir@/p
29695 /@localedir@/p
29696 /@mandir@/p
29697 '
29698 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29699 *datarootdir*) ac_datarootdir_seen=yes;;
29700 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29701   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29702 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29703 _ACEOF
29704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29705   ac_datarootdir_hack='
29706   s&@datadir@&$datadir&g
29707   s&@docdir@&$docdir&g
29708   s&@infodir@&$infodir&g
29709   s&@localedir@&$localedir&g
29710   s&@mandir@&$mandir&g
29711     s&\\\${datarootdir}&$datarootdir&g' ;;
29712 esac
29713 _ACEOF
29714
29715 # Neutralize VPATH when `$srcdir' = `.'.
29716 # Shell code in configure.ac might set extrasub.
29717 # FIXME: do we really want to maintain this feature?
29718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29719 ac_sed_extra="$ac_vpsub
29720 $extrasub
29721 _ACEOF
29722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29723 :t
29724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29725 s|@configure_input@|$ac_sed_conf_input|;t t
29726 s&@top_builddir@&$ac_top_builddir_sub&;t t
29727 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29728 s&@srcdir@&$ac_srcdir&;t t
29729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29730 s&@top_srcdir@&$ac_top_srcdir&;t t
29731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29732 s&@builddir@&$ac_builddir&;t t
29733 s&@abs_builddir@&$ac_abs_builddir&;t t
29734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29735 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29736 $ac_datarootdir_hack
29737 "
29738 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
29739   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29740 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29741    { (exit 1); exit 1; }; }
29742
29743 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29744   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29745   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29746   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29747 which seems to be undefined.  Please make sure it is defined." >&5
29748 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29749 which seems to be undefined.  Please make sure it is defined." >&2;}
29750
29751   rm -f "$tmp/stdin"
29752   case $ac_file in
29753   -) cat "$tmp/out" && rm -f "$tmp/out";;
29754   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29755   esac \
29756   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29757 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29758    { (exit 1); exit 1; }; }
29759  ;;
29760   :H)
29761   #
29762   # CONFIG_HEADER
29763   #
29764   if test x"$ac_file" != x-; then
29765     {
29766       $as_echo "/* $configure_input  */" \
29767       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29768     } >"$tmp/config.h" \
29769       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29770 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29771    { (exit 1); exit 1; }; }
29772     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29773       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29774 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29775     else
29776       rm -f "$ac_file"
29777       mv "$tmp/config.h" "$ac_file" \
29778         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29779 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29780    { (exit 1); exit 1; }; }
29781     fi
29782   else
29783     $as_echo "/* $configure_input  */" \
29784       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29785       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
29786 $as_echo "$as_me: error: could not create -" >&2;}
29787    { (exit 1); exit 1; }; }
29788   fi
29789  ;;
29790   :L)
29791   #
29792   # CONFIG_LINK
29793   #
29794
29795   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29796     :
29797   else
29798     # Prefer the file from the source tree if names are identical.
29799     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29800       ac_source=$srcdir/$ac_source
29801     fi
29802
29803     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
29804 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29805
29806     if test ! -r "$ac_source"; then
29807       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
29808 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
29809    { (exit 1); exit 1; }; }
29810     fi
29811     rm -f "$ac_file"
29812
29813     # Try a relative symlink, then a hard link, then a copy.
29814     case $srcdir in
29815     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29816         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29817     esac
29818     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29819       ln "$ac_source" "$ac_file" 2>/dev/null ||
29820       cp -p "$ac_source" "$ac_file" ||
29821       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
29822 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
29823    { (exit 1); exit 1; }; }
29824   fi
29825  ;;
29826   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29827 $as_echo "$as_me: executing $ac_file commands" >&6;}
29828  ;;
29829   esac
29830
29831
29832   case $ac_file$ac_mode in
29833     "check_win32_symlinks":C)
29834 # Links sometimes fail undetected on Mingw -
29835 # so here we detect it and warn the user
29836 for FILE in $CONFIG_LINKS
29837  do
29838         # test -e works for symlinks in the MinGW console
29839         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
29840 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
29841  done
29842  ;;
29843     "src/include/pg_config.h":H)
29844 # Update timestamp for pg_config.h (see Makefile.global)
29845 echo >src/include/stamp-h
29846  ;;
29847     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
29848
29849   esac
29850 done # for ac_tag
29851
29852
29853 { (exit 0); exit 0; }
29854 _ACEOF
29855 chmod +x $CONFIG_STATUS
29856 ac_clean_files=$ac_clean_files_save
29857
29858 test $ac_write_fail = 0 ||
29859   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
29860 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
29861    { (exit 1); exit 1; }; }
29862
29863
29864 # configure is writing to config.log, and then calls config.status.
29865 # config.status does its own redirection, appending to config.log.
29866 # Unfortunately, on DOS this fails, as config.log is still kept open
29867 # by configure, so config.status won't be able to write to it; its
29868 # output is simply discarded.  So we exec the FD to /dev/null,
29869 # effectively closing config.log, so it can be properly (re)opened and
29870 # appended to by config.status.  When coming back to configure, we
29871 # need to make the FD available again.
29872 if test "$no_create" != yes; then
29873   ac_cs_success=:
29874   ac_config_status_args=
29875   test "$silent" = yes &&
29876     ac_config_status_args="$ac_config_status_args --quiet"
29877   exec 5>/dev/null
29878   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29879   exec 5>>config.log
29880   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29881   # would make configure fail if this is the last instruction.
29882   $ac_cs_success || { (exit 1); exit 1; }
29883 fi
29884 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29885   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29886 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29887 fi
29888