]> granicus.if.org Git - postgresql/blob - configure
Try to get pg_test_thread to compile on Windows by using a sleeper
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.2devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 1996-2012, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 as_nl='
45 '
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87   as_unset=unset
88 else
89   as_unset=false
90 fi
91
92
93 # IFS
94 # We need space, tab and new line, in precisely that order.  Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" ""        $as_nl"
99
100 # Find who we are.  Look in the path if we contain no directory separator.
101 case $0 in
102   *[\\/]* ) as_myself=$0 ;;
103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106   IFS=$as_save_IFS
107   test -z "$as_dir" && as_dir=.
108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112      ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117   as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121   { (exit 1); exit 1; }
122 fi
123
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
141   as_expr=expr
142 else
143   as_expr=false
144 fi
145
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147   as_basename=basename
148 else
149   as_basename=false
150 fi
151
152
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156          X"$0" : 'X\(//\)$' \| \
157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 $as_echo X/"$0" |
159     sed '/^.*\/\([^/][^/]*\)\/*$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\/\)$/{
164             s//\1/
165             q
166           }
167           /^X\/\(\/\).*/{
168             s//\1/
169             q
170           }
171           s/.*/./; q'`
172
173 # CDPATH.
174 $as_unset CDPATH
175
176
177 if test "x$CONFIG_SHELL" = x; then
178   if (eval ":") 2>/dev/null; then
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183
184   if test $as_have_required = yes &&     (eval ":
185 (as_func_return () {
186   (exit \$1)
187 }
188 as_func_success () {
189   as_func_return 0
190 }
191 as_func_failure () {
192   as_func_return 1
193 }
194 as_func_ret_success () {
195   return 0
196 }
197 as_func_ret_failure () {
198   return 1
199 }
200
201 exitcode=0
202 if as_func_success; then
203   :
204 else
205   exitcode=1
206   echo as_func_success failed.
207 fi
208
209 if as_func_failure; then
210   exitcode=1
211   echo as_func_failure succeeded.
212 fi
213
214 if as_func_ret_success; then
215   :
216 else
217   exitcode=1
218   echo as_func_ret_success failed.
219 fi
220
221 if as_func_ret_failure; then
222   exitcode=1
223   echo as_func_ret_failure succeeded.
224 fi
225
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227   :
228 else
229   exitcode=1
230   echo positional parameters were not saved.
231 fi
232
233 test \$exitcode = 0) || { (exit 1); exit 1; }
234
235 (
236   as_lineno_1=\$LINENO
237   as_lineno_2=\$LINENO
238   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
241   :
242 else
243   as_candidate_shells=
244     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 do
247   IFS=$as_save_IFS
248   test -z "$as_dir" && as_dir=.
249   case $as_dir in
250          /*)
251            for as_base in sh bash ksh sh5; do
252              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253            done;;
254        esac
255 done
256 IFS=$as_save_IFS
257
258
259       for as_shell in $as_candidate_shells $SHELL; do
260          # Try only shells that exist, to save several forks.
261          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262                 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 _ASEOF
280 }; then
281   CONFIG_SHELL=$as_shell
282                as_have_required=yes
283                if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285   emulate sh
286   NULLCMD=:
287   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288   # is contrary to our usage.  Disable this feature.
289   alias -g '${1+"$@"}'='"$@"'
290   setopt NO_GLOB_SUBST
291 else
292   case `(set -o) 2>/dev/null` in
293   *posix*) set -o posix ;;
294 esac
295
296 fi
297
298
299 :
300 (as_func_return () {
301   (exit $1)
302 }
303 as_func_success () {
304   as_func_return 0
305 }
306 as_func_failure () {
307   as_func_return 1
308 }
309 as_func_ret_success () {
310   return 0
311 }
312 as_func_ret_failure () {
313   return 1
314 }
315
316 exitcode=0
317 if as_func_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_success failed.
322 fi
323
324 if as_func_failure; then
325   exitcode=1
326   echo as_func_failure succeeded.
327 fi
328
329 if as_func_ret_success; then
330   :
331 else
332   exitcode=1
333   echo as_func_ret_success failed.
334 fi
335
336 if as_func_ret_failure; then
337   exitcode=1
338   echo as_func_ret_failure succeeded.
339 fi
340
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
342   :
343 else
344   exitcode=1
345   echo positional parameters were not saved.
346 fi
347
348 test $exitcode = 0) || { (exit 1); exit 1; }
349
350 (
351   as_lineno_1=$LINENO
352   as_lineno_2=$LINENO
353   test "x$as_lineno_1" != "x$as_lineno_2" &&
354   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356 _ASEOF
357 }; then
358   break
359 fi
360
361 fi
362
363       done
364
365       if test "x$CONFIG_SHELL" != x; then
366   for as_var in BASH_ENV ENV
367         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368         done
369         export CONFIG_SHELL
370         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371 fi
372
373
374     if test $as_have_required = no; then
375   echo This script requires a shell more modern than all the
376       echo shells that I found on your system.  Please install a
377       echo modern shell, or manually run the script under such a
378       echo shell if you do have one.
379       { (exit 1); exit 1; }
380 fi
381
382
383 fi
384
385 fi
386
387
388
389 (eval "as_func_return () {
390   (exit \$1)
391 }
392 as_func_success () {
393   as_func_return 0
394 }
395 as_func_failure () {
396   as_func_return 1
397 }
398 as_func_ret_success () {
399   return 0
400 }
401 as_func_ret_failure () {
402   return 1
403 }
404
405 exitcode=0
406 if as_func_success; then
407   :
408 else
409   exitcode=1
410   echo as_func_success failed.
411 fi
412
413 if as_func_failure; then
414   exitcode=1
415   echo as_func_failure succeeded.
416 fi
417
418 if as_func_ret_success; then
419   :
420 else
421   exitcode=1
422   echo as_func_ret_success failed.
423 fi
424
425 if as_func_ret_failure; then
426   exitcode=1
427   echo as_func_ret_failure succeeded.
428 fi
429
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431   :
432 else
433   exitcode=1
434   echo positional parameters were not saved.
435 fi
436
437 test \$exitcode = 0") || {
438   echo No shell found that supports shell functions.
439   echo Please tell bug-autoconf@gnu.org about your system,
440   echo including any error possibly output before this message.
441   echo This can help us improve future autoconf versions.
442   echo Configuration will now proceed without shell functions.
443 }
444
445
446
447   as_lineno_1=$LINENO
448   as_lineno_2=$LINENO
449   test "x$as_lineno_1" != "x$as_lineno_2" &&
450   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453   # uniformly replaced by the line number.  The first 'sed' inserts a
454   # line-number line after each line using $LINENO; the second 'sed'
455   # does the real work.  The second script uses 'N' to pair each
456   # line-number line with the line containing $LINENO, and appends
457   # trailing '-' during substitution so that $LINENO is not a special
458   # case at line end.
459   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460   # scripts with optimization help from Paolo Bonzini.  Blame Lee
461   # E. McMahon (1931-1989) for sed's syntax.  :-)
462   sed -n '
463     p
464     /[$]LINENO/=
465   ' <$as_myself |
466     sed '
467       s/[$]LINENO.*/&-/
468       t lineno
469       b
470       :lineno
471       N
472       :loop
473       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474       t loop
475       s/-\n.*//
476     ' >$as_me.lineno &&
477   chmod +x "$as_me.lineno" ||
478     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479    { (exit 1); exit 1; }; }
480
481   # Don't try to exec as it changes $[0], causing all sort of problems
482   # (the dirname of $[0] is not the place where we might find the
483   # original and so on.  Autoconf is especially sensitive to this).
484   . "./$as_me.lineno"
485   # Exit status is that of the last command.
486   exit
487 }
488
489
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491   as_dirname=dirname
492 else
493   as_dirname=false
494 fi
495
496 ECHO_C= ECHO_N= ECHO_T=
497 case `echo -n x` in
498 -n*)
499   case `echo 'x\c'` in
500   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
501   *)   ECHO_C='\c';;
502   esac;;
503 *)
504   ECHO_N='-n';;
505 esac
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507    test "X`expr 00001 : '.*\(...\)'`" = X001; then
508   as_expr=expr
509 else
510   as_expr=false
511 fi
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -p'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -p'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -p'
533   fi
534 else
535   as_ln_s='cp -p'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p=:
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 if test -x / >/dev/null 2>&1; then
548   as_test_x='test -x'
549 else
550   if ls -dL / >/dev/null 2>&1; then
551     as_ls_L_option=L
552   else
553     as_ls_L_option=
554   fi
555   as_test_x='
556     eval sh -c '\''
557       if test -d "$1"; then
558         test -d "$1/.";
559       else
560         case $1 in
561         -*)set "./$1";;
562         esac;
563         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564         ???[sx]*):;;*)false;;esac;fi
565     '\'' sh
566   '
567 fi
568 as_executable_p=$as_test_x
569
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
578 exec 7<&0 </dev/null 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596 SHELL=${CONFIG_SHELL-/bin/sh}
597
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.2devel'
602 PACKAGE_STRING='PostgreSQL 9.2devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
604
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 #  include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #  include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_subst_vars='LTLIBOBJS
644 vpath_build
645 OSX
646 XSLTPROC
647 COLLATEINDEX
648 DOCBOOKSTYLE
649 have_docbook
650 JADE
651 NSGMLS
652 TCL_SHLIB_LD_LIBS
653 TCL_SHARED_BUILD
654 TCL_LIB_SPEC
655 TCL_LIBS
656 TCL_LIB_FILE
657 TCL_INCLUDE_SPEC
658 TCL_CONFIG_SH
659 TCLSH
660 XGETTEXT
661 MSGMERGE
662 MSGFMT
663 HAVE_POSIX_SIGNALS
664 LDAP_LIBS_BE
665 LDAP_LIBS_FE
666 PTHREAD_CFLAGS
667 PTHREAD_LIBS
668 PTHREAD_CC
669 acx_pthread_config
670 have_win32_dbghelp
671 HAVE_IPV6
672 LIBOBJS
673 OSSP_UUID_LIBS
674 ZIC
675 python_additional_libs
676 python_libspec
677 python_libdir
678 python_includespec
679 python_configdir
680 python_version
681 python_majorversion
682 PYTHON
683 perl_embed_ldflags
684 perl_useshrplib
685 perl_privlibexp
686 perl_archlibexp
687 PERL
688 FLEXFLAGS
689 FLEX
690 BISONFLAGS
691 BISON
692 MKDIR_P
693 AWK
694 LN_S
695 TAR
696 WINDRES
697 DLLWRAP
698 DLLTOOL
699 AR
700 STRIP_SHARED_LIB
701 STRIP_STATIC_LIB
702 STRIP
703 RANLIB
704 ld_R_works
705 with_gnu_ld
706 LD
707 LDFLAGS_SL
708 LDFLAGS_EX
709 ELF_SYS
710 EGREP
711 GREP
712 with_zlib
713 with_system_tzdata
714 with_libxslt
715 with_libxml
716 XML2_CONFIG
717 with_ossp_uuid
718 with_selinux
719 with_openssl
720 with_bonjour
721 with_ldap
722 with_pam
723 krb_srvtab
724 with_krb5
725 with_gssapi
726 with_python
727 with_perl
728 with_tcl
729 enable_thread_safety
730 INCLUDES
731 autodepend
732 TAS
733 GCC
734 CPP
735 SUN_STUDIO_CC
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 enable_dtrace
744 DTRACEFLAGS
745 DTRACE
746 enable_coverage
747 GENHTML
748 LCOV
749 GCOV
750 enable_profiling
751 enable_debug
752 enable_rpath
753 enable_shared
754 default_port
755 WANTED_LANGUAGES
756 enable_nls
757 PORTNAME
758 host_os
759 host_vendor
760 host_cpu
761 host
762 build_os
763 build_vendor
764 build_cpu
765 build
766 PG_MAJORVERSION
767 configure_args
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 with_template
809 with_includes
810 with_libraries
811 with_libs
812 enable_integer_datetimes
813 enable_nls
814 with_pgport
815 enable_shared
816 enable_rpath
817 enable_spinlocks
818 enable_debug
819 enable_profiling
820 enable_coverage
821 enable_dtrace
822 with_blocksize
823 with_segsize
824 with_wal_blocksize
825 with_wal_segsize
826 with_CC
827 enable_depend
828 enable_cassert
829 enable_thread_safety
830 with_tcl
831 with_tclconfig
832 with_perl
833 with_python
834 with_gssapi
835 with_krb5
836 with_krb_srvnam
837 with_pam
838 with_ldap
839 with_bonjour
840 with_openssl
841 with_selinux
842 with_readline
843 with_libedit_preferred
844 with_ossp_uuid
845 with_libxml
846 with_libxslt
847 with_system_tzdata
848 with_zlib
849 with_gnu_ld
850 enable_largefile
851 enable_float4_byval
852 enable_float8_byval
853 '
854       ac_precious_vars='build_alias
855 host_alias
856 target_alias
857 CC
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
862 CPP
863 LDFLAGS_EX
864 LDFLAGS_SL
865 DOCBOOKSTYLE'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
915
916 ac_prev=
917 ac_dashdash=
918 for ac_option
919 do
920   # If the previous option needs an argument, assign it.
921   if test -n "$ac_prev"; then
922     eval $ac_prev=\$ac_option
923     ac_prev=
924     continue
925   fi
926
927   case $ac_option in
928   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929   *)    ac_optarg=yes ;;
930   esac
931
932   # Accept the important Cygnus configure options, so we can diagnose typos.
933
934   case $ac_dashdash$ac_option in
935   --)
936     ac_dashdash=yes ;;
937
938   -bindir | --bindir | --bindi | --bind | --bin | --bi)
939     ac_prev=bindir ;;
940   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941     bindir=$ac_optarg ;;
942
943   -build | --build | --buil | --bui | --bu)
944     ac_prev=build_alias ;;
945   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946     build_alias=$ac_optarg ;;
947
948   -cache-file | --cache-file | --cache-fil | --cache-fi \
949   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950     ac_prev=cache_file ;;
951   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953     cache_file=$ac_optarg ;;
954
955   --config-cache | -C)
956     cache_file=config.cache ;;
957
958   -datadir | --datadir | --datadi | --datad)
959     ac_prev=datadir ;;
960   -datadir=* | --datadir=* | --datadi=* | --datad=*)
961     datadir=$ac_optarg ;;
962
963   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964   | --dataroo | --dataro | --datar)
965     ac_prev=datarootdir ;;
966   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968     datarootdir=$ac_optarg ;;
969
970   -disable-* | --disable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975    { (exit 1); exit 1; }; }
976     ac_useropt_orig=$ac_useropt
977     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978     case $ac_user_opts in
979       *"
980 "enable_$ac_useropt"
981 "*) ;;
982       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983          ac_unrecognized_sep=', ';;
984     esac
985     eval enable_$ac_useropt=no ;;
986
987   -docdir | --docdir | --docdi | --doc | --do)
988     ac_prev=docdir ;;
989   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990     docdir=$ac_optarg ;;
991
992   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993     ac_prev=dvidir ;;
994   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995     dvidir=$ac_optarg ;;
996
997   -enable-* | --enable-*)
998     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_useropt_orig=$ac_useropt
1004     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005     case $ac_user_opts in
1006       *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010          ac_unrecognized_sep=', ';;
1011     esac
1012     eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016   | --exec | --exe | --ex)
1017     ac_prev=exec_prefix ;;
1018   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020   | --exec=* | --exe=* | --ex=*)
1021     exec_prefix=$ac_optarg ;;
1022
1023   -gas | --gas | --ga | --g)
1024     # Obsolete; use --with-gas.
1025     with_gas=yes ;;
1026
1027   -help | --help | --hel | --he | -h)
1028     ac_init_help=long ;;
1029   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030     ac_init_help=recursive ;;
1031   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032     ac_init_help=short ;;
1033
1034   -host | --host | --hos | --ho)
1035     ac_prev=host_alias ;;
1036   -host=* | --host=* | --hos=* | --ho=*)
1037     host_alias=$ac_optarg ;;
1038
1039   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040     ac_prev=htmldir ;;
1041   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042   | --ht=*)
1043     htmldir=$ac_optarg ;;
1044
1045   -includedir | --includedir | --includedi | --included | --include \
1046   | --includ | --inclu | --incl | --inc)
1047     ac_prev=includedir ;;
1048   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049   | --includ=* | --inclu=* | --incl=* | --inc=*)
1050     includedir=$ac_optarg ;;
1051
1052   -infodir | --infodir | --infodi | --infod | --info | --inf)
1053     ac_prev=infodir ;;
1054   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055     infodir=$ac_optarg ;;
1056
1057   -libdir | --libdir | --libdi | --libd)
1058     ac_prev=libdir ;;
1059   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060     libdir=$ac_optarg ;;
1061
1062   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063   | --libexe | --libex | --libe)
1064     ac_prev=libexecdir ;;
1065   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066   | --libexe=* | --libex=* | --libe=*)
1067     libexecdir=$ac_optarg ;;
1068
1069   -localedir | --localedir | --localedi | --localed | --locale)
1070     ac_prev=localedir ;;
1071   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072     localedir=$ac_optarg ;;
1073
1074   -localstatedir | --localstatedir | --localstatedi | --localstated \
1075   | --localstate | --localstat | --localsta | --localst | --locals)
1076     ac_prev=localstatedir ;;
1077   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079     localstatedir=$ac_optarg ;;
1080
1081   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082     ac_prev=mandir ;;
1083   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084     mandir=$ac_optarg ;;
1085
1086   -nfp | --nfp | --nf)
1087     # Obsolete; use --without-fp.
1088     with_fp=no ;;
1089
1090   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091   | --no-cr | --no-c | -n)
1092     no_create=yes ;;
1093
1094   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096     no_recursion=yes ;;
1097
1098   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100   | --oldin | --oldi | --old | --ol | --o)
1101     ac_prev=oldincludedir ;;
1102   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105     oldincludedir=$ac_optarg ;;
1106
1107   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108     ac_prev=prefix ;;
1109   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110     prefix=$ac_optarg ;;
1111
1112   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113   | --program-pre | --program-pr | --program-p)
1114     ac_prev=program_prefix ;;
1115   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117     program_prefix=$ac_optarg ;;
1118
1119   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120   | --program-suf | --program-su | --program-s)
1121     ac_prev=program_suffix ;;
1122   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124     program_suffix=$ac_optarg ;;
1125
1126   -program-transform-name | --program-transform-name \
1127   | --program-transform-nam | --program-transform-na \
1128   | --program-transform-n | --program-transform- \
1129   | --program-transform | --program-transfor \
1130   | --program-transfo | --program-transf \
1131   | --program-trans | --program-tran \
1132   | --progr-tra | --program-tr | --program-t)
1133     ac_prev=program_transform_name ;;
1134   -program-transform-name=* | --program-transform-name=* \
1135   | --program-transform-nam=* | --program-transform-na=* \
1136   | --program-transform-n=* | --program-transform-=* \
1137   | --program-transform=* | --program-transfor=* \
1138   | --program-transfo=* | --program-transf=* \
1139   | --program-trans=* | --program-tran=* \
1140   | --progr-tra=* | --program-tr=* | --program-t=*)
1141     program_transform_name=$ac_optarg ;;
1142
1143   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144     ac_prev=pdfdir ;;
1145   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146     pdfdir=$ac_optarg ;;
1147
1148   -psdir | --psdir | --psdi | --psd | --ps)
1149     ac_prev=psdir ;;
1150   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151     psdir=$ac_optarg ;;
1152
1153   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154   | -silent | --silent | --silen | --sile | --sil)
1155     silent=yes ;;
1156
1157   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158     ac_prev=sbindir ;;
1159   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160   | --sbi=* | --sb=*)
1161     sbindir=$ac_optarg ;;
1162
1163   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165   | --sharedst | --shareds | --shared | --share | --shar \
1166   | --sha | --sh)
1167     ac_prev=sharedstatedir ;;
1168   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171   | --sha=* | --sh=*)
1172     sharedstatedir=$ac_optarg ;;
1173
1174   -site | --site | --sit)
1175     ac_prev=site ;;
1176   -site=* | --site=* | --sit=*)
1177     site=$ac_optarg ;;
1178
1179   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180     ac_prev=srcdir ;;
1181   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182     srcdir=$ac_optarg ;;
1183
1184   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185   | --syscon | --sysco | --sysc | --sys | --sy)
1186     ac_prev=sysconfdir ;;
1187   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189     sysconfdir=$ac_optarg ;;
1190
1191   -target | --target | --targe | --targ | --tar | --ta | --t)
1192     ac_prev=target_alias ;;
1193   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194     target_alias=$ac_optarg ;;
1195
1196   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197     verbose=yes ;;
1198
1199   -version | --version | --versio | --versi | --vers | -V)
1200     ac_init_version=: ;;
1201
1202   -with-* | --with-*)
1203     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1207    { (exit 1); exit 1; }; }
1208     ac_useropt_orig=$ac_useropt
1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210     case $ac_user_opts in
1211       *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215          ac_unrecognized_sep=', ';;
1216     esac
1217     eval with_$ac_useropt=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1224    { (exit 1); exit 1; }; }
1225     ac_useropt_orig=$ac_useropt
1226     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227     case $ac_user_opts in
1228       *"
1229 "with_$ac_useropt"
1230 "*) ;;
1231       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232          ac_unrecognized_sep=', ';;
1233     esac
1234     eval with_$ac_useropt=no ;;
1235
1236   --x)
1237     # Obsolete; use --with-x.
1238     with_x=yes ;;
1239
1240   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241   | --x-incl | --x-inc | --x-in | --x-i)
1242     ac_prev=x_includes ;;
1243   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245     x_includes=$ac_optarg ;;
1246
1247   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249     ac_prev=x_libraries ;;
1250   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252     x_libraries=$ac_optarg ;;
1253
1254   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256    { (exit 1); exit 1; }; }
1257     ;;
1258
1259   *=*)
1260     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264    { (exit 1); exit 1; }; }
1265     eval $ac_envvar=\$ac_optarg
1266     export $ac_envvar ;;
1267
1268   *)
1269     # FIXME: should be removed in autoconf 3.0.
1270     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274     ;;
1275
1276   esac
1277 done
1278
1279 if test -n "$ac_prev"; then
1280   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1282    { (exit 1); exit 1; }; }
1283 fi
1284
1285 if test -n "$ac_unrecognized_opts"; then
1286   case $enable_option_checking in
1287     no) ;;
1288     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1289    { (exit 1); exit 1; }; } ;;
1290     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291   esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296                 datadir sysconfdir sharedstatedir localstatedir includedir \
1297                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298                 libdir localedir mandir
1299 do
1300   eval ac_val=\$$ac_var
1301   # Remove trailing slashes.
1302   case $ac_val in
1303     */ )
1304       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305       eval $ac_var=\$ac_val;;
1306   esac
1307   # Be sure to have absolute directory names.
1308   case $ac_val in
1309     [\\/$]* | ?:[\\/]* )  continue;;
1310     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311   esac
1312   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313    { (exit 1); exit 1; }; }
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325   if test "x$build_alias" = x; then
1326     cross_compiling=maybe
1327     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328     If a cross compiler is detected then cross compile mode will be used." >&2
1329   elif test "x$build_alias" != "x$host_alias"; then
1330     cross_compiling=yes
1331   fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1344    { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1347    { (exit 1); exit 1; }; }
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352   ac_srcdir_defaulted=yes
1353   # Try the directory containing this script, then the parent directory.
1354   ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356          X"$as_myself" : 'X\(//\)[^/]' \| \
1357          X"$as_myself" : 'X\(//\)$' \| \
1358          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)[^/].*/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\/\)$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\).*/{
1373             s//\1/
1374             q
1375           }
1376           s/.*/./; q'`
1377   srcdir=$ac_confdir
1378   if test ! -r "$srcdir/$ac_unique_file"; then
1379     srcdir=..
1380   fi
1381 else
1382   ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387    { (exit 1); exit 1; }; }
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1392    { (exit 1); exit 1; }; }
1393         pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396   srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_env_${ac_var}_value=\$${ac_var}
1407   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1410
1411 #
1412 # Report the --help message.
1413 #
1414 if test "$ac_init_help" = "long"; then
1415   # Omit some internal or obsolete options to make the list less imposing.
1416   # This message is too long to be a string in the A/UX 3.1 sh.
1417   cat <<_ACEOF
1418 \`configure' configures PostgreSQL 9.2devel to adapt to many kinds of systems.
1419
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE.  See below for descriptions of some of the useful variables.
1424
1425 Defaults for the options are specified in brackets.
1426
1427 Configuration:
1428   -h, --help              display this help and exit
1429       --help=short        display options specific to this package
1430       --help=recursive    display the short help of all the included packages
1431   -V, --version           display version information and exit
1432   -q, --quiet, --silent   do not print \`checking...' messages
1433       --cache-file=FILE   cache test results in FILE [disabled]
1434   -C, --config-cache      alias for \`--cache-file=config.cache'
1435   -n, --no-create         do not create output files
1436       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1437
1438 Installation directories:
1439   --prefix=PREFIX         install architecture-independent files in PREFIX
1440                           [$ac_default_prefix]
1441   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1442                           [PREFIX]
1443
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1448
1449 For better control, use the options below.
1450
1451 Fine tuning of the installation directories:
1452   --bindir=DIR            user executables [EPREFIX/bin]
1453   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1454   --libexecdir=DIR        program executables [EPREFIX/libexec]
1455   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1456   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1457   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1458   --libdir=DIR            object code libraries [EPREFIX/lib]
1459   --includedir=DIR        C header files [PREFIX/include]
1460   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1461   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1462   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1463   --infodir=DIR           info documentation [DATAROOTDIR/info]
1464   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1465   --mandir=DIR            man documentation [DATAROOTDIR/man]
1466   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1467   --htmldir=DIR           html documentation [DOCDIR]
1468   --dvidir=DIR            dvi documentation [DOCDIR]
1469   --pdfdir=DIR            pdf documentation [DOCDIR]
1470   --psdir=DIR             ps documentation [DOCDIR]
1471 _ACEOF
1472
1473   cat <<\_ACEOF
1474
1475 System types:
1476   --build=BUILD     configure for building on BUILD [guessed]
1477   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482   case $ac_init_help in
1483      short | recursive ) echo "Configuration of PostgreSQL 9.2devel:";;
1484    esac
1485   cat <<\_ACEOF
1486
1487 Optional Features:
1488   --disable-option-checking  ignore unrecognized --enable/--with options
1489   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1490   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1491   --disable-integer-datetimes
1492                           disable 64-bit integer date/time support
1493   --enable-nls[=LANGUAGES]
1494                           enable Native Language Support
1495   --disable-shared        do not build shared libraries
1496   --disable-rpath         do not embed shared library search path in
1497                           executables
1498   --disable-spinlocks     do not use spinlocks
1499   --enable-debug          build with debugging symbols (-g)
1500   --enable-profiling      build with profiling enabled
1501   --enable-coverage       build with coverage testing instrumentation
1502   --enable-dtrace         build with DTrace support
1503   --enable-depend         turn on automatic dependency tracking
1504   --enable-cassert        enable assertion checks (for debugging)
1505   --disable-thread-safety disable thread-safety in client libraries
1506   --disable-largefile     omit support for large files
1507   --disable-float4-byval  disable float4 passed by value
1508   --disable-float8-byval  disable float8 passed by value
1509
1510 Optional Packages:
1511   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1512   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1513   --with-template=NAME    override operating system template
1514   --with-includes=DIRS    look for additional header files in DIRS
1515   --with-libraries=DIRS   look for additional libraries in DIRS
1516   --with-libs=DIRS        alternative spelling of --with-libraries
1517   --with-pgport=PORTNUM   set default port number [5432]
1518   --with-blocksize=BLOCKSIZE
1519                           set table block size in kB [8]
1520   --with-segsize=SEGSIZE  set table segment size in GB [1]
1521   --with-wal-blocksize=BLOCKSIZE
1522                           set WAL block size in kB [8]
1523   --with-wal-segsize=SEGSIZE
1524                           set WAL segment size in MB [16]
1525   --with-CC=CMD           set compiler (deprecated)
1526   --with-tcl              build Tcl modules (PL/Tcl)
1527   --with-tclconfig=DIR    tclConfig.sh is in DIR
1528   --with-perl             build Perl modules (PL/Perl)
1529   --with-python           build Python modules (PL/Python)
1530   --with-gssapi           build with GSSAPI support
1531   --with-krb5             build with Kerberos 5 support
1532   --with-krb-srvnam=NAME  default service principal name in Kerberos
1533                           [postgres]
1534   --with-pam              build with PAM support
1535   --with-ldap             build with LDAP support
1536   --with-bonjour          build with Bonjour support
1537   --with-openssl          build with OpenSSL support
1538   --with-selinux          build with SELinux support
1539   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1540   --with-libedit-preferred
1541                           prefer BSD Libedit over GNU Readline
1542   --with-ossp-uuid        build contrib/uuid-ossp, requires OSSP UUID library
1543   --with-libxml           build with XML support
1544   --with-libxslt          use XSLT support when building contrib/xml2
1545   --with-system-tzdata=DIR
1546                           use system time zone data in DIR
1547   --without-zlib          do not use Zlib
1548   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1549
1550 Some influential environment variables:
1551   CC          C compiler command
1552   CFLAGS      C compiler flags
1553   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1554               nonstandard directory <lib dir>
1555   LIBS        libraries to pass to the linker, e.g. -l<library>
1556   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557               you have headers in a nonstandard directory <include dir>
1558   CPP         C preprocessor
1559   LDFLAGS_EX  extra linker flags for linking executables only
1560   LDFLAGS_SL  extra linker flags for linking shared libraries only
1561   DOCBOOKSTYLE
1562               location of DocBook stylesheets
1563
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1566
1567 Report bugs to <pgsql-bugs@postgresql.org>.
1568 _ACEOF
1569 ac_status=$?
1570 fi
1571
1572 if test "$ac_init_help" = "recursive"; then
1573   # If there are subdirs, report their specific --help.
1574   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575     test -d "$ac_dir" ||
1576       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577       continue
1578     ac_builddir=.
1579
1580 case "$ac_dir" in
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *)
1583   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584   # A ".." for each directory in $ac_dir_suffix.
1585   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586   case $ac_top_builddir_sub in
1587   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589   esac ;;
1590 esac
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1595
1596 case $srcdir in
1597   .)  # We are building in place.
1598     ac_srcdir=.
1599     ac_top_srcdir=$ac_top_builddir_sub
1600     ac_abs_top_srcdir=$ac_pwd ;;
1601   [\\/]* | ?:[\\/]* )  # Absolute name.
1602     ac_srcdir=$srcdir$ac_dir_suffix;
1603     ac_top_srcdir=$srcdir
1604     ac_abs_top_srcdir=$srcdir ;;
1605   *) # Relative name.
1606     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607     ac_top_srcdir=$ac_top_build_prefix$srcdir
1608     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 esac
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612     cd "$ac_dir" || { ac_status=$?; continue; }
1613     # Check for guested configure.
1614     if test -f "$ac_srcdir/configure.gnu"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617     elif test -f "$ac_srcdir/configure"; then
1618       echo &&
1619       $SHELL "$ac_srcdir/configure" --help=recursive
1620     else
1621       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622     fi || ac_status=$?
1623     cd "$ac_pwd" || { ac_status=$?; break; }
1624   done
1625 fi
1626
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1629   cat <<\_ACEOF
1630 PostgreSQL configure 9.2devel
1631 generated by GNU Autoconf 2.63
1632
1633 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1634 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1637
1638 Copyright (c) 1996-2012, PostgreSQL Global Development Group
1639 _ACEOF
1640   exit
1641 fi
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1645
1646 It was created by PostgreSQL $as_me 9.2devel, which was
1647 generated by GNU Autoconf 2.63.  Invocation command line was
1648
1649   $ $0 $@
1650
1651 _ACEOF
1652 exec 5>>config.log
1653 {
1654 cat <<_ASUNAME
1655 ## --------- ##
1656 ## Platform. ##
1657 ## --------- ##
1658
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1667
1668 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1669 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1672 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1673 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1674 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1675
1676 _ASUNAME
1677
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1680 do
1681   IFS=$as_save_IFS
1682   test -z "$as_dir" && as_dir=.
1683   $as_echo "PATH: $as_dir"
1684 done
1685 IFS=$as_save_IFS
1686
1687 } >&5
1688
1689 cat >&5 <<_ACEOF
1690
1691
1692 ## ----------- ##
1693 ## Core tests. ##
1694 ## ----------- ##
1695
1696 _ACEOF
1697
1698
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1704 ac_configure_args=
1705 ac_configure_args0=
1706 ac_configure_args1=
1707 ac_must_keep_next=false
1708 for ac_pass in 1 2
1709 do
1710   for ac_arg
1711   do
1712     case $ac_arg in
1713     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715     | -silent | --silent | --silen | --sile | --sil)
1716       continue ;;
1717     *\'*)
1718       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719     esac
1720     case $ac_pass in
1721     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722     2)
1723       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724       if test $ac_must_keep_next = true; then
1725         ac_must_keep_next=false # Got value, back to normal.
1726       else
1727         case $ac_arg in
1728           *=* | --config-cache | -C | -disable-* | --disable-* \
1729           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731           | -with-* | --with-* | -without-* | --without-* | --x)
1732             case "$ac_configure_args0 " in
1733               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734             esac
1735             ;;
1736           -* ) ac_must_keep_next=true ;;
1737         esac
1738       fi
1739       ac_configure_args="$ac_configure_args '$ac_arg'"
1740       ;;
1741     esac
1742   done
1743 done
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log.  We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753   # Save into config.log some information that might help in debugging.
1754   {
1755     echo
1756
1757     cat <<\_ASBOX
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1761 _ASBOX
1762     echo
1763     # The following way of writing the cache mishandles newlines in values,
1764 (
1765   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766     eval ac_val=\$$ac_var
1767     case $ac_val in #(
1768     *${as_nl}*)
1769       case $ac_var in #(
1770       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1772       esac
1773       case $ac_var in #(
1774       _ | IFS | as_nl) ;; #(
1775       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1776       *) $as_unset $ac_var ;;
1777       esac ;;
1778     esac
1779   done
1780   (set) 2>&1 |
1781     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782     *${as_nl}ac_space=\ *)
1783       sed -n \
1784         "s/'\''/'\''\\\\'\'''\''/g;
1785           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786       ;; #(
1787     *)
1788       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1789       ;;
1790     esac |
1791     sort
1792 )
1793     echo
1794
1795     cat <<\_ASBOX
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1799 _ASBOX
1800     echo
1801     for ac_var in $ac_subst_vars
1802     do
1803       eval ac_val=\$$ac_var
1804       case $ac_val in
1805       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806       esac
1807       $as_echo "$ac_var='\''$ac_val'\''"
1808     done | sort
1809     echo
1810
1811     if test -n "$ac_subst_files"; then
1812       cat <<\_ASBOX
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1816 _ASBOX
1817       echo
1818       for ac_var in $ac_subst_files
1819       do
1820         eval ac_val=\$$ac_var
1821         case $ac_val in
1822         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823         esac
1824         $as_echo "$ac_var='\''$ac_val'\''"
1825       done | sort
1826       echo
1827     fi
1828
1829     if test -s confdefs.h; then
1830       cat <<\_ASBOX
1831 ## ----------- ##
1832 ## confdefs.h. ##
1833 ## ----------- ##
1834 _ASBOX
1835       echo
1836       cat confdefs.h
1837       echo
1838     fi
1839     test "$ac_signal" != 0 &&
1840       $as_echo "$as_me: caught signal $ac_signal"
1841     $as_echo "$as_me: exit $exit_status"
1842   } >&5
1843   rm -f core *.core core.conftest.* &&
1844     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845     exit $exit_status
1846 ' 0
1847 for ac_signal in 1 2 13 15; do
1848   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 done
1850 ac_signal=0
1851
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1854
1855 # Predefined preprocessor variables.
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 _ACEOF
1880
1881
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer an explicitly selected file to automatically selected ones.
1884 ac_site_file1=NONE
1885 ac_site_file2=NONE
1886 if test -n "$CONFIG_SITE"; then
1887   ac_site_file1=$CONFIG_SITE
1888 elif test "x$prefix" != xNONE; then
1889   ac_site_file1=$prefix/share/config.site
1890   ac_site_file2=$prefix/etc/config.site
1891 else
1892   ac_site_file1=$ac_default_prefix/share/config.site
1893   ac_site_file2=$ac_default_prefix/etc/config.site
1894 fi
1895 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1896 do
1897   test "x$ac_site_file" = xNONE && continue
1898   if test -r "$ac_site_file"; then
1899     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1901     sed 's/^/| /' "$ac_site_file" >&5
1902     . "$ac_site_file"
1903   fi
1904 done
1905
1906 if test -r "$cache_file"; then
1907   # Some versions of bash will fail to source /dev/null (special
1908   # files actually), so we avoid doing that.
1909   if test -f "$cache_file"; then
1910     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 $as_echo "$as_me: loading cache $cache_file" >&6;}
1912     case $cache_file in
1913       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914       *)                      . "./$cache_file";;
1915     esac
1916   fi
1917 else
1918   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 $as_echo "$as_me: creating cache $cache_file" >&6;}
1920   >$cache_file
1921 fi
1922
1923 # Check that the precious variables saved in the cache have kept the same
1924 # value.
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928   eval ac_new_set=\$ac_env_${ac_var}_set
1929   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930   eval ac_new_val=\$ac_env_${ac_var}_value
1931   case $ac_old_set,$ac_new_set in
1932     set,)
1933       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935       ac_cache_corrupted=: ;;
1936     ,set)
1937       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939       ac_cache_corrupted=: ;;
1940     ,);;
1941     *)
1942       if test "x$ac_old_val" != "x$ac_new_val"; then
1943         # differences in whitespace do not lead to failure.
1944         ac_old_val_w=`echo x $ac_old_val`
1945         ac_new_val_w=`echo x $ac_new_val`
1946         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1947           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949           ac_cache_corrupted=:
1950         else
1951           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1952 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1953           eval $ac_var=\$ac_old_val
1954         fi
1955         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1956 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1957         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1958 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1959       fi;;
1960   esac
1961   # Pass precious variables to config.status.
1962   if test "$ac_new_set" = set; then
1963     case $ac_new_val in
1964     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965     *) ac_arg=$ac_var=$ac_new_val ;;
1966     esac
1967     case " $ac_configure_args " in
1968       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1969       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970     esac
1971   fi
1972 done
1973 if $ac_cache_corrupted; then
1974   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1976   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007 ac_ext=c
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
2013
2014
2015
2016
2017
2018 ac_aux_dir=
2019 for ac_dir in config "$srcdir"/config; do
2020   if test -f "$ac_dir/install-sh"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/install-sh -c"
2023     break
2024   elif test -f "$ac_dir/install.sh"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/install.sh -c"
2027     break
2028   elif test -f "$ac_dir/shtool"; then
2029     ac_aux_dir=$ac_dir
2030     ac_install_sh="$ac_aux_dir/shtool install -c"
2031     break
2032   fi
2033 done
2034 if test -z "$ac_aux_dir"; then
2035   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2036 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2037    { (exit 1); exit 1; }; }
2038 fi
2039
2040 # These three variables are undocumented and unsupported,
2041 # and are intended to be withdrawn in a future Autoconf release.
2042 # They can cause serious problems if a builder's source tree is in a directory
2043 # whose full name contains unusual characters.
2044 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2045 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2046 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2047
2048
2049
2050 configure_args=$ac_configure_args
2051
2052
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PG_VERSION "$PACKAGE_VERSION"
2056 _ACEOF
2057
2058 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2059
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2063 _ACEOF
2064
2065
2066 # Make sure we can run config.sub.
2067 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2068   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2069 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2070    { (exit 1); exit 1; }; }
2071
2072 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2073 $as_echo_n "checking build system type... " >&6; }
2074 if test "${ac_cv_build+set}" = set; then
2075   $as_echo_n "(cached) " >&6
2076 else
2077   ac_build_alias=$build_alias
2078 test "x$ac_build_alias" = x &&
2079   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2080 test "x$ac_build_alias" = x &&
2081   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2082 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2083    { (exit 1); exit 1; }; }
2084 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2085   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2086 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2087    { (exit 1); exit 1; }; }
2088
2089 fi
2090 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2091 $as_echo "$ac_cv_build" >&6; }
2092 case $ac_cv_build in
2093 *-*-*) ;;
2094 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2095 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2096    { (exit 1); exit 1; }; };;
2097 esac
2098 build=$ac_cv_build
2099 ac_save_IFS=$IFS; IFS='-'
2100 set x $ac_cv_build
2101 shift
2102 build_cpu=$1
2103 build_vendor=$2
2104 shift; shift
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2107 build_os=$*
2108 IFS=$ac_save_IFS
2109 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2110
2111
2112 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2113 $as_echo_n "checking host system type... " >&6; }
2114 if test "${ac_cv_host+set}" = set; then
2115   $as_echo_n "(cached) " >&6
2116 else
2117   if test "x$host_alias" = x; then
2118   ac_cv_host=$ac_cv_build
2119 else
2120   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2121     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2122 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2123    { (exit 1); exit 1; }; }
2124 fi
2125
2126 fi
2127 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2128 $as_echo "$ac_cv_host" >&6; }
2129 case $ac_cv_host in
2130 *-*-*) ;;
2131 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2132 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2133    { (exit 1); exit 1; }; };;
2134 esac
2135 host=$ac_cv_host
2136 ac_save_IFS=$IFS; IFS='-'
2137 set x $ac_cv_host
2138 shift
2139 host_cpu=$1
2140 host_vendor=$2
2141 shift; shift
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2144 host_os=$*
2145 IFS=$ac_save_IFS
2146 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2147
2148
2149
2150 template=
2151 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2152 $as_echo_n "checking which template to use... " >&6; }
2153
2154
2155
2156
2157 # Check whether --with-template was given.
2158 if test "${with_template+set}" = set; then
2159   withval=$with_template;
2160   case $withval in
2161     yes)
2162       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2163 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2164    { (exit 1); exit 1; }; }
2165       ;;
2166     no)
2167       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2168 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2169    { (exit 1); exit 1; }; }
2170       ;;
2171     *)
2172
2173   case $withval in
2174     list)   echo; ls "$srcdir/src/template"; exit;;
2175     *)      if test -f "$srcdir/src/template/$with_template" ; then
2176               template=$withval
2177             else
2178               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2179 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2180    { (exit 1); exit 1; }; }
2181             fi;;
2182   esac
2183
2184       ;;
2185   esac
2186
2187 else
2188
2189 # --with-template not given
2190
2191 case $host_os in
2192      aix*) template=aix ;;
2193     bsdi*) template=bsdi ;;
2194   cygwin*) template=cygwin ;;
2195   darwin*) template=darwin ;;
2196 dragonfly*) template=netbsd ;;
2197     dgux*) template=dgux ;;
2198  freebsd*) template=freebsd ;;
2199     hpux*) template=hpux ;;
2200     irix*) template=irix ;;
2201  linux*|gnu*|k*bsd*-gnu)
2202            template=linux ;;
2203    mingw*) template=win32 ;;
2204   netbsd*) template=netbsd ;;
2205 nextstep*) template=nextstep ;;
2206  openbsd*) template=openbsd ;;
2207      osf*) template=osf ;;
2208      sco*) template=sco ;;
2209  solaris*) template=solaris ;;
2210    sunos*) template=sunos4 ;;
2211  sysv4.2*)
2212         case $host_vendor in
2213           univel) template=univel ;;
2214         esac ;;
2215    sysv4*) template=svr4 ;;
2216    sysv5*) template=unixware ;;
2217   ultrix*) template=ultrix4 ;;
2218 esac
2219
2220   if test x"$template" = x"" ; then
2221     { { $as_echo "$as_me:$LINENO: error:
2222 *******************************************************************
2223 PostgreSQL has apparently not been ported to your platform yet.
2224 To try a manual configuration, look into the src/template directory
2225 for a similar platform and use the '--with-template=' option.
2226
2227 Please also contact <pgsql-bugs@postgresql.org> to see about
2228 rectifying this.  Include the above 'checking host system type...'
2229 line.
2230 *******************************************************************
2231 " >&5
2232 $as_echo "$as_me: error:
2233 *******************************************************************
2234 PostgreSQL has apparently not been ported to your platform yet.
2235 To try a manual configuration, look into the src/template directory
2236 for a similar platform and use the '--with-template=' option.
2237
2238 Please also contact <pgsql-bugs@postgresql.org> to see about
2239 rectifying this.  Include the above 'checking host system type...'
2240 line.
2241 *******************************************************************
2242 " >&2;}
2243    { (exit 1); exit 1; }; }
2244   fi
2245
2246
2247 fi
2248
2249
2250
2251 { $as_echo "$as_me:$LINENO: result: $template" >&5
2252 $as_echo "$template" >&6; }
2253
2254 PORTNAME=$template
2255
2256
2257 # Initialize default assumption that we do not need separate assembly code
2258 # for TAS (test-and-set).  This can be overridden by the template file
2259 # when it's executed.
2260 need_tas=no
2261 tas_file=dummy.s
2262
2263
2264
2265 ##
2266 ## Command line options
2267 ##
2268
2269 #
2270 # Add non-standard directories to the include path
2271 #
2272
2273
2274
2275 # Check whether --with-includes was given.
2276 if test "${with_includes+set}" = set; then
2277   withval=$with_includes;
2278   case $withval in
2279     yes)
2280       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2281 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2282    { (exit 1); exit 1; }; }
2283       ;;
2284     no)
2285       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2286 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2287    { (exit 1); exit 1; }; }
2288       ;;
2289     *)
2290
2291       ;;
2292   esac
2293
2294 fi
2295
2296
2297
2298
2299 #
2300 # Add non-standard directories to the library search path
2301 #
2302
2303
2304
2305 # Check whether --with-libraries was given.
2306 if test "${with_libraries+set}" = set; then
2307   withval=$with_libraries;
2308   case $withval in
2309     yes)
2310       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2311 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2312    { (exit 1); exit 1; }; }
2313       ;;
2314     no)
2315       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2316 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2317    { (exit 1); exit 1; }; }
2318       ;;
2319     *)
2320       LIBRARY_DIRS=$withval
2321       ;;
2322   esac
2323
2324 fi
2325
2326
2327
2328
2329
2330
2331 # Check whether --with-libs was given.
2332 if test "${with_libs+set}" = set; then
2333   withval=$with_libs;
2334   case $withval in
2335     yes)
2336       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2337 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2338    { (exit 1); exit 1; }; }
2339       ;;
2340     no)
2341       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2342 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2343    { (exit 1); exit 1; }; }
2344       ;;
2345     *)
2346       LIBRARY_DIRS=$withval
2347       ;;
2348   esac
2349
2350 fi
2351
2352
2353
2354
2355 #
2356 # 64-bit integer date/time storage: enabled by default.
2357 #
2358 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2359 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2360
2361
2362 # Check whether --enable-integer-datetimes was given.
2363 if test "${enable_integer_datetimes+set}" = set; then
2364   enableval=$enable_integer_datetimes;
2365   case $enableval in
2366     yes)
2367
2368 cat >>confdefs.h <<\_ACEOF
2369 #define USE_INTEGER_DATETIMES 1
2370 _ACEOF
2371
2372       ;;
2373     no)
2374       :
2375       ;;
2376     *)
2377       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2378 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2379    { (exit 1); exit 1; }; }
2380       ;;
2381   esac
2382
2383 else
2384   enable_integer_datetimes=yes
2385
2386 cat >>confdefs.h <<\_ACEOF
2387 #define USE_INTEGER_DATETIMES 1
2388 _ACEOF
2389
2390 fi
2391
2392
2393 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2394 $as_echo "$enable_integer_datetimes" >&6; }
2395
2396
2397 #
2398 # NLS
2399 #
2400 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2401 $as_echo_n "checking whether NLS is wanted... " >&6; }
2402
2403
2404 # Check whether --enable-nls was given.
2405 if test "${enable_nls+set}" = set; then
2406   enableval=$enable_nls;
2407   case $enableval in
2408     yes)
2409       :
2410       ;;
2411     no)
2412       :
2413       ;;
2414     *)
2415       enable_nls=yes
2416 WANTED_LANGUAGES=$enableval
2417       ;;
2418   esac
2419
2420 else
2421   enable_nls=no
2422 fi
2423
2424
2425
2426 if test "$enable_nls" = yes; then
2427
2428 cat >>confdefs.h <<\_ACEOF
2429 #define ENABLE_NLS 1
2430 _ACEOF
2431
2432 fi
2433
2434 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2435 $as_echo "$enable_nls" >&6; }
2436
2437
2438
2439 #
2440 # Default port number (--with-pgport), default 5432
2441 #
2442 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2443 $as_echo_n "checking for default port number... " >&6; }
2444
2445
2446
2447 # Check whether --with-pgport was given.
2448 if test "${with_pgport+set}" = set; then
2449   withval=$with_pgport;
2450   case $withval in
2451     yes)
2452       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2453 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2454    { (exit 1); exit 1; }; }
2455       ;;
2456     no)
2457       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2458 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2459    { (exit 1); exit 1; }; }
2460       ;;
2461     *)
2462       default_port=$withval
2463       ;;
2464   esac
2465
2466 else
2467   default_port=5432
2468 fi
2469
2470
2471 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2472 $as_echo "$default_port" >&6; }
2473 # Need both of these because some places want an integer and some a string
2474
2475 cat >>confdefs.h <<_ACEOF
2476 #define DEF_PGPORT ${default_port}
2477 _ACEOF
2478
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define DEF_PGPORT_STR "${default_port}"
2482 _ACEOF
2483
2484
2485
2486 #
2487 # Option to disable shared libraries
2488 #
2489
2490
2491 # Check whether --enable-shared was given.
2492 if test "${enable_shared+set}" = set; then
2493   enableval=$enable_shared;
2494   case $enableval in
2495     yes)
2496       :
2497       ;;
2498     no)
2499       :
2500       ;;
2501     *)
2502       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2503 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2504    { (exit 1); exit 1; }; }
2505       ;;
2506   esac
2507
2508 else
2509   enable_shared=yes
2510
2511 fi
2512
2513
2514
2515
2516 #
2517 # '-rpath'-like feature can be disabled
2518 #
2519
2520
2521 # Check whether --enable-rpath was given.
2522 if test "${enable_rpath+set}" = set; then
2523   enableval=$enable_rpath;
2524   case $enableval in
2525     yes)
2526       :
2527       ;;
2528     no)
2529       :
2530       ;;
2531     *)
2532       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2533 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2534    { (exit 1); exit 1; }; }
2535       ;;
2536   esac
2537
2538 else
2539   enable_rpath=yes
2540
2541 fi
2542
2543
2544
2545
2546 #
2547 # Spinlocks
2548 #
2549
2550
2551 # Check whether --enable-spinlocks was given.
2552 if test "${enable_spinlocks+set}" = set; then
2553   enableval=$enable_spinlocks;
2554   case $enableval in
2555     yes)
2556       :
2557       ;;
2558     no)
2559       :
2560       ;;
2561     *)
2562       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2563 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2564    { (exit 1); exit 1; }; }
2565       ;;
2566   esac
2567
2568 else
2569   enable_spinlocks=yes
2570
2571 fi
2572
2573
2574
2575 #
2576 # --enable-debug adds -g to compiler flags
2577 #
2578
2579
2580 # Check whether --enable-debug was given.
2581 if test "${enable_debug+set}" = set; then
2582   enableval=$enable_debug;
2583   case $enableval in
2584     yes)
2585       :
2586       ;;
2587     no)
2588       :
2589       ;;
2590     *)
2591       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2592 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2593    { (exit 1); exit 1; }; }
2594       ;;
2595   esac
2596
2597 else
2598   enable_debug=no
2599
2600 fi
2601
2602
2603
2604
2605 #
2606 # --enable-profiling enables gcc profiling
2607 #
2608
2609
2610 # Check whether --enable-profiling was given.
2611 if test "${enable_profiling+set}" = set; then
2612   enableval=$enable_profiling;
2613   case $enableval in
2614     yes)
2615       :
2616       ;;
2617     no)
2618       :
2619       ;;
2620     *)
2621       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2622 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2623    { (exit 1); exit 1; }; }
2624       ;;
2625   esac
2626
2627 else
2628   enable_profiling=no
2629
2630 fi
2631
2632
2633
2634
2635 #
2636 # --enable-coverage enables generation of code coverage metrics with gcov
2637 #
2638
2639
2640 # Check whether --enable-coverage was given.
2641 if test "${enable_coverage+set}" = set; then
2642   enableval=$enable_coverage;
2643   case $enableval in
2644     yes)
2645       for ac_prog in gcov
2646 do
2647   # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_GCOV+set}" = set; then
2652   $as_echo_n "(cached) " >&6
2653 else
2654   if test -n "$GCOV"; then
2655   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662   for ac_exec_ext in '' $ac_executable_extensions; do
2663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664     ac_cv_prog_GCOV="$ac_prog"
2665     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666     break 2
2667   fi
2668 done
2669 done
2670 IFS=$as_save_IFS
2671
2672 fi
2673 fi
2674 GCOV=$ac_cv_prog_GCOV
2675 if test -n "$GCOV"; then
2676   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2677 $as_echo "$GCOV" >&6; }
2678 else
2679   { $as_echo "$as_me:$LINENO: result: no" >&5
2680 $as_echo "no" >&6; }
2681 fi
2682
2683
2684   test -n "$GCOV" && break
2685 done
2686
2687 if test -z "$GCOV"; then
2688   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2689 $as_echo "$as_me: error: gcov not found" >&2;}
2690    { (exit 1); exit 1; }; }
2691 fi
2692 for ac_prog in lcov
2693 do
2694   # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_prog_LCOV+set}" = set; then
2699   $as_echo_n "(cached) " >&6
2700 else
2701   if test -n "$LCOV"; then
2702   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707   IFS=$as_save_IFS
2708   test -z "$as_dir" && as_dir=.
2709   for ac_exec_ext in '' $ac_executable_extensions; do
2710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711     ac_cv_prog_LCOV="$ac_prog"
2712     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713     break 2
2714   fi
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi
2720 fi
2721 LCOV=$ac_cv_prog_LCOV
2722 if test -n "$LCOV"; then
2723   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2724 $as_echo "$LCOV" >&6; }
2725 else
2726   { $as_echo "$as_me:$LINENO: result: no" >&5
2727 $as_echo "no" >&6; }
2728 fi
2729
2730
2731   test -n "$LCOV" && break
2732 done
2733
2734 if test -z "$LCOV"; then
2735   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2736 $as_echo "$as_me: error: lcov not found" >&2;}
2737    { (exit 1); exit 1; }; }
2738 fi
2739 for ac_prog in genhtml
2740 do
2741   # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_GENHTML+set}" = set; then
2746   $as_echo_n "(cached) " >&6
2747 else
2748   if test -n "$GENHTML"; then
2749   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754   IFS=$as_save_IFS
2755   test -z "$as_dir" && as_dir=.
2756   for ac_exec_ext in '' $ac_executable_extensions; do
2757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758     ac_cv_prog_GENHTML="$ac_prog"
2759     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760     break 2
2761   fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 GENHTML=$ac_cv_prog_GENHTML
2769 if test -n "$GENHTML"; then
2770   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2771 $as_echo "$GENHTML" >&6; }
2772 else
2773   { $as_echo "$as_me:$LINENO: result: no" >&5
2774 $as_echo "no" >&6; }
2775 fi
2776
2777
2778   test -n "$GENHTML" && break
2779 done
2780
2781 if test -z "$GENHTML"; then
2782   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2783 $as_echo "$as_me: error: genhtml not found" >&2;}
2784    { (exit 1); exit 1; }; }
2785 fi
2786       ;;
2787     no)
2788       :
2789       ;;
2790     *)
2791       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2792 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2793    { (exit 1); exit 1; }; }
2794       ;;
2795   esac
2796
2797 else
2798   enable_coverage=no
2799
2800 fi
2801
2802
2803
2804
2805 #
2806 # DTrace
2807 #
2808
2809
2810 # Check whether --enable-dtrace was given.
2811 if test "${enable_dtrace+set}" = set; then
2812   enableval=$enable_dtrace;
2813   case $enableval in
2814     yes)
2815
2816 cat >>confdefs.h <<\_ACEOF
2817 #define ENABLE_DTRACE 1
2818 _ACEOF
2819
2820 for ac_prog in dtrace
2821 do
2822   # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_DTRACE+set}" = set; then
2827   $as_echo_n "(cached) " >&6
2828 else
2829   if test -n "$DTRACE"; then
2830   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837   for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     ac_cv_prog_DTRACE="$ac_prog"
2840     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 DTRACE=$ac_cv_prog_DTRACE
2850 if test -n "$DTRACE"; then
2851   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2852 $as_echo "$DTRACE" >&6; }
2853 else
2854   { $as_echo "$as_me:$LINENO: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858
2859   test -n "$DTRACE" && break
2860 done
2861
2862 if test -z "$DTRACE"; then
2863   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2864 $as_echo "$as_me: error: dtrace not found" >&2;}
2865    { (exit 1); exit 1; }; }
2866 fi
2867
2868       ;;
2869     no)
2870       :
2871       ;;
2872     *)
2873       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2874 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2875    { (exit 1); exit 1; }; }
2876       ;;
2877   esac
2878
2879 else
2880   enable_dtrace=no
2881
2882 fi
2883
2884
2885
2886
2887 #
2888 # Block size
2889 #
2890 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2891 $as_echo_n "checking for block size... " >&6; }
2892
2893
2894
2895 # Check whether --with-blocksize was given.
2896 if test "${with_blocksize+set}" = set; then
2897   withval=$with_blocksize;
2898   case $withval in
2899     yes)
2900       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2901 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2902    { (exit 1); exit 1; }; }
2903       ;;
2904     no)
2905       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2906 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2907    { (exit 1); exit 1; }; }
2908       ;;
2909     *)
2910       blocksize=$withval
2911       ;;
2912   esac
2913
2914 else
2915   blocksize=8
2916 fi
2917
2918
2919 case ${blocksize} in
2920   1) BLCKSZ=1024;;
2921   2) BLCKSZ=2048;;
2922   4) BLCKSZ=4096;;
2923   8) BLCKSZ=8192;;
2924  16) BLCKSZ=16384;;
2925  32) BLCKSZ=32768;;
2926   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2927 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2928    { (exit 1); exit 1; }; }
2929 esac
2930 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2931 $as_echo "${blocksize}kB" >&6; }
2932
2933
2934 cat >>confdefs.h <<_ACEOF
2935 #define BLCKSZ ${BLCKSZ}
2936 _ACEOF
2937
2938
2939 #
2940 # Relation segment size
2941 #
2942 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2943 $as_echo_n "checking for segment size... " >&6; }
2944
2945
2946
2947 # Check whether --with-segsize was given.
2948 if test "${with_segsize+set}" = set; then
2949   withval=$with_segsize;
2950   case $withval in
2951     yes)
2952       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2954    { (exit 1); exit 1; }; }
2955       ;;
2956     no)
2957       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2958 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2959    { (exit 1); exit 1; }; }
2960       ;;
2961     *)
2962       segsize=$withval
2963       ;;
2964   esac
2965
2966 else
2967   segsize=1
2968 fi
2969
2970
2971 # this expression is set up to avoid unnecessary integer overflow
2972 # blocksize is already guaranteed to be a factor of 1024
2973 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2974 test $? -eq 0 || exit 1
2975 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2976 $as_echo "${segsize}GB" >&6; }
2977
2978
2979 cat >>confdefs.h <<_ACEOF
2980 #define RELSEG_SIZE ${RELSEG_SIZE}
2981 _ACEOF
2982
2983
2984 #
2985 # WAL block size
2986 #
2987 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2988 $as_echo_n "checking for WAL block size... " >&6; }
2989
2990
2991
2992 # Check whether --with-wal-blocksize was given.
2993 if test "${with_wal_blocksize+set}" = set; then
2994   withval=$with_wal_blocksize;
2995   case $withval in
2996     yes)
2997       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2998 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2999    { (exit 1); exit 1; }; }
3000       ;;
3001     no)
3002       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
3003 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3004    { (exit 1); exit 1; }; }
3005       ;;
3006     *)
3007       wal_blocksize=$withval
3008       ;;
3009   esac
3010
3011 else
3012   wal_blocksize=8
3013 fi
3014
3015
3016 case ${wal_blocksize} in
3017   1) XLOG_BLCKSZ=1024;;
3018   2) XLOG_BLCKSZ=2048;;
3019   4) XLOG_BLCKSZ=4096;;
3020   8) XLOG_BLCKSZ=8192;;
3021  16) XLOG_BLCKSZ=16384;;
3022  32) XLOG_BLCKSZ=32768;;
3023  64) XLOG_BLCKSZ=65536;;
3024   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3025 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3026    { (exit 1); exit 1; }; }
3027 esac
3028 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3029 $as_echo "${wal_blocksize}kB" >&6; }
3030
3031
3032 cat >>confdefs.h <<_ACEOF
3033 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3034 _ACEOF
3035
3036
3037 #
3038 # WAL segment size
3039 #
3040 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3041 $as_echo_n "checking for WAL segment size... " >&6; }
3042
3043
3044
3045 # Check whether --with-wal-segsize was given.
3046 if test "${with_wal_segsize+set}" = set; then
3047   withval=$with_wal_segsize;
3048   case $withval in
3049     yes)
3050       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3051 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3052    { (exit 1); exit 1; }; }
3053       ;;
3054     no)
3055       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3056 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3057    { (exit 1); exit 1; }; }
3058       ;;
3059     *)
3060       wal_segsize=$withval
3061       ;;
3062   esac
3063
3064 else
3065   wal_segsize=16
3066 fi
3067
3068
3069 case ${wal_segsize} in
3070   1) ;;
3071   2) ;;
3072   4) ;;
3073   8) ;;
3074  16) ;;
3075  32) ;;
3076  64) ;;
3077   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3078 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3079    { (exit 1); exit 1; }; }
3080 esac
3081 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3082 $as_echo "${wal_segsize}MB" >&6; }
3083
3084
3085 cat >>confdefs.h <<_ACEOF
3086 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3087 _ACEOF
3088
3089
3090 #
3091 # C compiler
3092 #
3093
3094 # For historical reasons you can also use --with-CC to specify the C compiler
3095 # to use, although the standard way to do this is to set the CC environment
3096 # variable.
3097
3098
3099
3100 # Check whether --with-CC was given.
3101 if test "${with_CC+set}" = set; then
3102   withval=$with_CC;
3103   case $withval in
3104     yes)
3105       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3106 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3107    { (exit 1); exit 1; }; }
3108       ;;
3109     no)
3110       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3111 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3112    { (exit 1); exit 1; }; }
3113       ;;
3114     *)
3115       CC=$with_CC
3116       ;;
3117   esac
3118
3119 fi
3120
3121
3122
3123 case $template in
3124   aix) pgac_cc_list="gcc xlc";;
3125  irix) pgac_cc_list="cc";; # no gcc
3126     *) pgac_cc_list="gcc cc";;
3127 esac
3128
3129 ac_ext=c
3130 ac_cpp='$CPP $CPPFLAGS'
3131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 if test -n "$ac_tool_prefix"; then
3135   for ac_prog in $pgac_cc_list
3136   do
3137     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142   $as_echo_n "(cached) " >&6
3143 else
3144   if test -n "$CC"; then
3145   ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152   for ac_exec_ext in '' $ac_executable_extensions; do
3153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169   { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174     test -n "$CC" && break
3175   done
3176 fi
3177 if test -z "$CC"; then
3178   ac_ct_CC=$CC
3179   for ac_prog in $pgac_cc_list
3180 do
3181   # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3186   $as_echo_n "(cached) " >&6
3187 else
3188   if test -n "$ac_ct_CC"; then
3189   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194   IFS=$as_save_IFS
3195   test -z "$as_dir" && as_dir=.
3196   for ac_exec_ext in '' $ac_executable_extensions; do
3197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198     ac_cv_prog_ac_ct_CC="$ac_prog"
3199     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200     break 2
3201   fi
3202 done
3203 done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3212 else
3213   { $as_echo "$as_me:$LINENO: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218   test -n "$ac_ct_CC" && break
3219 done
3220
3221   if test "x$ac_ct_CC" = x; then
3222     CC=""
3223   else
3224     case $cross_compiling:$ac_tool_warned in
3225 yes:)
3226 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3229 esac
3230     CC=$ac_ct_CC
3231   fi
3232 fi
3233
3234
3235 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3238 See \`config.log' for more details." >&5
3239 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&2;}
3241    { (exit 1); exit 1; }; }; }
3242
3243 # Provide some information about the compiler.
3244 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3245 set X $ac_compile
3246 ac_compiler=$2
3247 { (ac_try="$ac_compiler --version >&5"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254   (eval "$ac_compiler --version >&5") 2>&5
3255   ac_status=$?
3256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }
3258 { (ac_try="$ac_compiler -v >&5"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265   (eval "$ac_compiler -v >&5") 2>&5
3266   ac_status=$?
3267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }
3269 { (ac_try="$ac_compiler -V >&5"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276   (eval "$ac_compiler -V >&5") 2>&5
3277   ac_status=$?
3278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); }
3280
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287
3288 int
3289 main ()
3290 {
3291
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3300 # of exeext.
3301 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3302 $as_echo_n "checking for C compiler default output file name... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307
3308 ac_rmfiles=
3309 for ac_file in $ac_files
3310 do
3311   case $ac_file in
3312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314   esac
3315 done
3316 rm -f $ac_rmfiles
3317
3318 if { (ac_try="$ac_link_default"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325   (eval "$ac_link_default") 2>&5
3326   ac_status=$?
3327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); }; then
3329   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3333 # Autoconf.
3334 for ac_file in $ac_files ''
3335 do
3336   test -f "$ac_file" || continue
3337   case $ac_file in
3338     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339         ;;
3340     [ab].out )
3341         # We found the default executable, but exeext='' is most
3342         # certainly right.
3343         break;;
3344     *.* )
3345         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346         then :; else
3347            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348         fi
3349         # We set ac_cv_exeext here because the later test for it is not
3350         # safe: cross compilers may not add the suffix if given an `-o'
3351         # argument, so we may need to know it at that point already.
3352         # Even if this section looks crufty: it has the advantage of
3353         # actually working.
3354         break;;
3355     * )
3356         break;;
3357   esac
3358 done
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
3361 else
3362   ac_file=''
3363 fi
3364
3365 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3366 $as_echo "$ac_file" >&6; }
3367 if test -z "$ac_file"; then
3368   $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3374 See \`config.log' for more details." >&5
3375 $as_echo "$as_me: error: C compiler cannot create executables
3376 See \`config.log' for more details." >&2;}
3377    { (exit 77); exit 77; }; }; }
3378 fi
3379
3380 ac_exeext=$ac_cv_exeext
3381
3382 # Check that the compiler produces executables we can run.  If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3387 # If not cross compiling, check that we can run a simple program.
3388 if test "$cross_compiling" != yes; then
3389   if { ac_try='./$ac_file'
3390   { (case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395 $as_echo "$ac_try_echo") >&5
3396   (eval "$ac_try") 2>&5
3397   ac_status=$?
3398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; }; then
3400     cross_compiling=no
3401   else
3402     if test "$cross_compiling" = maybe; then
3403         cross_compiling=yes
3404     else
3405         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details." >&5
3410 $as_echo "$as_me: error: cannot run C compiled programs.
3411 If you meant to cross compile, use \`--host'.
3412 See \`config.log' for more details." >&2;}
3413    { (exit 1); exit 1; }; }; }
3414     fi
3415   fi
3416 fi
3417 { $as_echo "$as_me:$LINENO: result: yes" >&5
3418 $as_echo "yes" >&6; }
3419
3420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3421 ac_clean_files=$ac_clean_files_save
3422 # Check that the compiler produces executables we can run.  If not, either
3423 # the compiler is broken, or we cross compile.
3424 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3425 $as_echo_n "checking whether we are cross compiling... " >&6; }
3426 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3428
3429 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3430 $as_echo_n "checking for suffix of executables... " >&6; }
3431 if { (ac_try="$ac_link"
3432 case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438   (eval "$ac_link") 2>&5
3439   ac_status=$?
3440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); }; then
3442   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3443 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3444 # work properly (i.e., refer to `conftest.exe'), while it won't with
3445 # `rm'.
3446 for ac_file in conftest.exe conftest conftest.*; do
3447   test -f "$ac_file" || continue
3448   case $ac_file in
3449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451           break;;
3452     * ) break;;
3453   esac
3454 done
3455 else
3456   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3459 See \`config.log' for more details." >&5
3460 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3461 See \`config.log' for more details." >&2;}
3462    { (exit 1); exit 1; }; }; }
3463 fi
3464
3465 rm -f conftest$ac_cv_exeext
3466 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3467 $as_echo "$ac_cv_exeext" >&6; }
3468
3469 rm -f conftest.$ac_ext
3470 EXEEXT=$ac_cv_exeext
3471 ac_exeext=$EXEEXT
3472 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3473 $as_echo_n "checking for suffix of object files... " >&6; }
3474 if test "${ac_cv_objext+set}" = set; then
3475   $as_echo_n "(cached) " >&6
3476 else
3477   cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h.  */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h.  */
3483
3484 int
3485 main ()
3486 {
3487
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 rm -f conftest.o conftest.obj
3493 if { (ac_try="$ac_compile"
3494 case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3499 $as_echo "$ac_try_echo") >&5
3500   (eval "$ac_compile") 2>&5
3501   ac_status=$?
3502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); }; then
3504   for ac_file in conftest.o conftest.obj conftest.*; do
3505   test -f "$ac_file" || continue;
3506   case $ac_file in
3507     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3509        break;;
3510   esac
3511 done
3512 else
3513   $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3521 See \`config.log' for more details." >&2;}
3522    { (exit 1); exit 1; }; }; }
3523 fi
3524
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526 fi
3527 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3530 ac_objext=$OBJEXT
3531 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3534   $as_echo_n "(cached) " >&6
3535 else
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546 #ifndef __GNUC__
3547        choke me
3548 #endif
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558   *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5
3562   (eval "$ac_compile") 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } && {
3569          test -z "$ac_c_werror_flag" ||
3570          test ! -s conftest.err
3571        } && test -s conftest.$ac_objext; then
3572   ac_compiler_gnu=yes
3573 else
3574   $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577         ac_compiler_gnu=no
3578 fi
3579
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3582
3583 fi
3584 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3585 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3586 if test $ac_compiler_gnu = yes; then
3587   GCC=yes
3588 else
3589   GCC=
3590 fi
3591 ac_test_CFLAGS=${CFLAGS+set}
3592 ac_save_CFLAGS=$CFLAGS
3593 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3594 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3595 if test "${ac_cv_prog_cc_g+set}" = set; then
3596   $as_echo_n "(cached) " >&6
3597 else
3598   ac_save_c_werror_flag=$ac_c_werror_flag
3599    ac_c_werror_flag=yes
3600    ac_cv_prog_cc_g=no
3601    CFLAGS="-g"
3602    cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h.  */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h.  */
3608
3609 int
3610 main ()
3611 {
3612
3613   ;
3614   return 0;
3615 }
3616 _ACEOF
3617 rm -f conftest.$ac_objext
3618 if { (ac_try="$ac_compile"
3619 case "(($ac_try" in
3620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621   *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625   (eval "$ac_compile") 2>conftest.er1
3626   ac_status=$?
3627   grep -v '^ *+' conftest.er1 >conftest.err
3628   rm -f conftest.er1
3629   cat conftest.err >&5
3630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); } && {
3632          test -z "$ac_c_werror_flag" ||
3633          test ! -s conftest.err
3634        } && test -s conftest.$ac_objext; then
3635   ac_cv_prog_cc_g=yes
3636 else
3637   $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640         CFLAGS=""
3641       cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h.  */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h.  */
3647
3648 int
3649 main ()
3650 {
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3658 case "(($ac_try" in
3659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660   *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664   (eval "$ac_compile") 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } && {
3671          test -z "$ac_c_werror_flag" ||
3672          test ! -s conftest.err
3673        } && test -s conftest.$ac_objext; then
3674   :
3675 else
3676   $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679         ac_c_werror_flag=$ac_save_c_werror_flag
3680          CFLAGS="-g"
3681          cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h.  */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h.  */
3687
3688 int
3689 main ()
3690 {
3691
3692   ;
3693   return 0;
3694 }
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704   (eval "$ac_compile") 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } && {
3711          test -z "$ac_c_werror_flag" ||
3712          test ! -s conftest.err
3713        } && test -s conftest.$ac_objext; then
3714   ac_cv_prog_cc_g=yes
3715 else
3716   $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719
3720 fi
3721
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 fi
3724
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 fi
3727
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729    ac_c_werror_flag=$ac_save_c_werror_flag
3730 fi
3731 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3732 $as_echo "$ac_cv_prog_cc_g" >&6; }
3733 if test "$ac_test_CFLAGS" = set; then
3734   CFLAGS=$ac_save_CFLAGS
3735 elif test $ac_cv_prog_cc_g = yes; then
3736   if test "$GCC" = yes; then
3737     CFLAGS="-g -O2"
3738   else
3739     CFLAGS="-g"
3740   fi
3741 else
3742   if test "$GCC" = yes; then
3743     CFLAGS="-O2"
3744   else
3745     CFLAGS=
3746   fi
3747 fi
3748 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3749 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3750 if test "${ac_cv_prog_cc_c89+set}" = set; then
3751   $as_echo_n "(cached) " >&6
3752 else
3753   ac_cv_prog_cc_c89=no
3754 ac_save_CC=$CC
3755 cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h.  */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h.  */
3761 #include <stdarg.h>
3762 #include <stdio.h>
3763 #include <sys/types.h>
3764 #include <sys/stat.h>
3765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3766 struct buf { int x; };
3767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3768 static char *e (p, i)
3769      char **p;
3770      int i;
3771 {
3772   return p[i];
3773 }
3774 static char *f (char * (*g) (char **, int), char **p, ...)
3775 {
3776   char *s;
3777   va_list v;
3778   va_start (v,p);
3779   s = g (p, va_arg (v,int));
3780   va_end (v);
3781   return s;
3782 }
3783
3784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3785    function prototypes and stuff, but not '\xHH' hex character constants.
3786    These don't provoke an error unfortunately, instead are silently treated
3787    as 'x'.  The following induces an error, until -std is added to get
3788    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3789    array size at least.  It's necessary to write '\x00'==0 to get something
3790    that's true only with -std.  */
3791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3792
3793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3794    inside strings and character constants.  */
3795 #define FOO(x) 'x'
3796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3797
3798 int test (int i, double x);
3799 struct s1 {int (*f) (int a);};
3800 struct s2 {int (*f) (double a);};
3801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3802 int argc;
3803 char **argv;
3804 int
3805 main ()
3806 {
3807 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3808   ;
3809   return 0;
3810 }
3811 _ACEOF
3812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3813         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3814 do
3815   CC="$ac_save_CC $ac_arg"
3816   rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3818 case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824   (eval "$ac_compile") 2>conftest.er1
3825   ac_status=$?
3826   grep -v '^ *+' conftest.er1 >conftest.err
3827   rm -f conftest.er1
3828   cat conftest.err >&5
3829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); } && {
3831          test -z "$ac_c_werror_flag" ||
3832          test ! -s conftest.err
3833        } && test -s conftest.$ac_objext; then
3834   ac_cv_prog_cc_c89=$ac_arg
3835 else
3836   $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839
3840 fi
3841
3842 rm -f core conftest.err conftest.$ac_objext
3843   test "x$ac_cv_prog_cc_c89" != "xno" && break
3844 done
3845 rm -f conftest.$ac_ext
3846 CC=$ac_save_CC
3847
3848 fi
3849 # AC_CACHE_VAL
3850 case "x$ac_cv_prog_cc_c89" in
3851   x)
3852     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3853 $as_echo "none needed" >&6; } ;;
3854   xno)
3855     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3856 $as_echo "unsupported" >&6; } ;;
3857   *)
3858     CC="$CC $ac_cv_prog_cc_c89"
3859     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3861 esac
3862
3863
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869
3870
3871 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3872 # but has idiosyncrasies of its own.  We assume icc will define
3873 # __INTEL_COMPILER regardless of CFLAGS.
3874
3875 cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h.  */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h.  */
3881
3882 int
3883 main ()
3884 {
3885 #ifndef __INTEL_COMPILER
3886 choke me
3887 #endif
3888   ;
3889   return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest.$ac_objext
3893 if { (ac_try="$ac_compile"
3894 case "(($ac_try" in
3895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896   *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3899 $as_echo "$ac_try_echo") >&5
3900   (eval "$ac_compile") 2>conftest.er1
3901   ac_status=$?
3902   grep -v '^ *+' conftest.er1 >conftest.err
3903   rm -f conftest.er1
3904   cat conftest.err >&5
3905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); } && {
3907          test -z "$ac_c_werror_flag" ||
3908          test ! -s conftest.err
3909        } && test -s conftest.$ac_objext; then
3910   ICC=yes
3911 else
3912   $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915         ICC=no
3916 fi
3917
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919
3920 # Check if it's Sun Studio compiler. We assume that
3921 # __SUNPRO_C will be defined for Sun Studio compilers
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928
3929 int
3930 main ()
3931 {
3932 #ifndef __SUNPRO_C
3933 choke me
3934 #endif
3935   ;
3936   return 0;
3937 }
3938 _ACEOF
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3941 case "(($ac_try" in
3942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943   *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3946 $as_echo "$ac_try_echo") >&5
3947   (eval "$ac_compile") 2>conftest.er1
3948   ac_status=$?
3949   grep -v '^ *+' conftest.er1 >conftest.err
3950   rm -f conftest.er1
3951   cat conftest.err >&5
3952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); } && {
3954          test -z "$ac_c_werror_flag" ||
3955          test ! -s conftest.err
3956        } && test -s conftest.$ac_objext; then
3957   SUN_STUDIO_CC=yes
3958 else
3959   $as_echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3961
3962         SUN_STUDIO_CC=no
3963 fi
3964
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966
3967
3968
3969 unset CFLAGS
3970
3971 #
3972 # Read the template
3973 #
3974 . "$srcdir/src/template/$template" || exit
3975
3976 # CFLAGS are selected so:
3977 # If the user specifies something in the environment, that is used.
3978 # else:  If the template file set something, that is used.
3979 # else:  If coverage was enabled, don't set anything.
3980 # else:  If the compiler is GCC, then we use -O2.
3981 # else:  If the compiler is something else, then we use -O, unless debugging.
3982
3983 if test "$ac_env_CFLAGS_set" = set; then
3984   CFLAGS=$ac_env_CFLAGS_value
3985 elif test "${CFLAGS+set}" = set; then
3986   : # (keep what template set)
3987 elif test "$enable_coverage" = yes; then
3988   : # no optimization by default
3989 elif test "$GCC" = yes; then
3990   CFLAGS="-O2"
3991 else
3992   # if the user selected debug mode, don't use -O
3993   if test "$enable_debug" != yes; then
3994     CFLAGS="-O"
3995   fi
3996 fi
3997
3998 # Some versions of GCC support some additional useful warning flags.
3999 # Check whether they are supported, and add them to CFLAGS if so.
4000 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4001 # but has its own.  Also check other compiler-specific flags here.
4002
4003 if test "$GCC" = yes -a "$ICC" = no; then
4004   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4005   # These work in some but not all gcc versions
4006   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
4007 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4008 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
4009   $as_echo_n "(cached) " >&6
4010 else
4011   pgac_save_CFLAGS=$CFLAGS
4012 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4013 ac_save_c_werror_flag=$ac_c_werror_flag
4014 ac_c_werror_flag=yes
4015 cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021
4022 int
4023 main ()
4024 {
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 rm -f conftest.$ac_objext
4031 if { (ac_try="$ac_compile"
4032 case "(($ac_try" in
4033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034   *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4037 $as_echo "$ac_try_echo") >&5
4038   (eval "$ac_compile") 2>conftest.er1
4039   ac_status=$?
4040   grep -v '^ *+' conftest.er1 >conftest.err
4041   rm -f conftest.er1
4042   cat conftest.err >&5
4043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } && {
4045          test -z "$ac_c_werror_flag" ||
4046          test ! -s conftest.err
4047        } && test -s conftest.$ac_objext; then
4048   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4049 else
4050   $as_echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4054 fi
4055
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4058 CFLAGS="$pgac_save_CFLAGS"
4059 fi
4060 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4061 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4062 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4063   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4064 fi
4065
4066   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4067 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4068 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4069   $as_echo_n "(cached) " >&6
4070 else
4071   pgac_save_CFLAGS=$CFLAGS
4072 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081
4082 int
4083 main ()
4084 {
4085
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (ac_try="$ac_compile"
4092 case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098   (eval "$ac_compile") 2>conftest.er1
4099   ac_status=$?
4100   grep -v '^ *+' conftest.er1 >conftest.err
4101   rm -f conftest.er1
4102   cat conftest.err >&5
4103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); } && {
4105          test -z "$ac_c_werror_flag" ||
4106          test ! -s conftest.err
4107        } && test -s conftest.$ac_objext; then
4108   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4109 else
4110   $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113         pgac_cv_prog_cc_cflags__Wendif_labels=no
4114 fi
4115
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="$pgac_save_CFLAGS"
4119 fi
4120 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4121 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4122 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4123   CFLAGS="$CFLAGS -Wendif-labels"
4124 fi
4125
4126   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4127 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4128 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4129   $as_echo_n "(cached) " >&6
4130 else
4131   pgac_save_CFLAGS=$CFLAGS
4132 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4133 ac_save_c_werror_flag=$ac_c_werror_flag
4134 ac_c_werror_flag=yes
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141
4142 int
4143 main ()
4144 {
4145
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4152 case "(($ac_try" in
4153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154   *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4157 $as_echo "$ac_try_echo") >&5
4158   (eval "$ac_compile") 2>conftest.er1
4159   ac_status=$?
4160   grep -v '^ *+' conftest.er1 >conftest.err
4161   rm -f conftest.er1
4162   cat conftest.err >&5
4163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); } && {
4165          test -z "$ac_c_werror_flag" ||
4166          test ! -s conftest.err
4167        } && test -s conftest.$ac_objext; then
4168   pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4169 else
4170   $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173         pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4174 fi
4175
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_c_werror_flag=$ac_save_c_werror_flag
4178 CFLAGS="$pgac_save_CFLAGS"
4179 fi
4180 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4181 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4182 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4183   CFLAGS="$CFLAGS -Wmissing-format-attribute"
4184 fi
4185
4186   # This was included in -Wall/-Wformat in older GCC versions
4187   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4188 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4189 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4190   $as_echo_n "(cached) " >&6
4191 else
4192   pgac_save_CFLAGS=$CFLAGS
4193 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4194 ac_save_c_werror_flag=$ac_c_werror_flag
4195 ac_c_werror_flag=yes
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h.  */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h.  */
4202
4203 int
4204 main ()
4205 {
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4213 case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219   (eval "$ac_compile") 2>conftest.er1
4220   ac_status=$?
4221   grep -v '^ *+' conftest.er1 >conftest.err
4222   rm -f conftest.er1
4223   cat conftest.err >&5
4224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); } && {
4226          test -z "$ac_c_werror_flag" ||
4227          test ! -s conftest.err
4228        } && test -s conftest.$ac_objext; then
4229   pgac_cv_prog_cc_cflags__Wformat_security=yes
4230 else
4231   $as_echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234         pgac_cv_prog_cc_cflags__Wformat_security=no
4235 fi
4236
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 ac_c_werror_flag=$ac_save_c_werror_flag
4239 CFLAGS="$pgac_save_CFLAGS"
4240 fi
4241 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4242 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4243 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4244   CFLAGS="$CFLAGS -Wformat-security"
4245 fi
4246
4247   # Disable strict-aliasing rules; needed for gcc 3.3+
4248   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4249 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4250 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4251   $as_echo_n "(cached) " >&6
4252 else
4253   pgac_save_CFLAGS=$CFLAGS
4254 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4255 ac_save_c_werror_flag=$ac_c_werror_flag
4256 ac_c_werror_flag=yes
4257 cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h.  */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h.  */
4263
4264 int
4265 main ()
4266 {
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4274 case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279 $as_echo "$ac_try_echo") >&5
4280   (eval "$ac_compile") 2>conftest.er1
4281   ac_status=$?
4282   grep -v '^ *+' conftest.er1 >conftest.err
4283   rm -f conftest.er1
4284   cat conftest.err >&5
4285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } && {
4287          test -z "$ac_c_werror_flag" ||
4288          test ! -s conftest.err
4289        } && test -s conftest.$ac_objext; then
4290   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4291 else
4292   $as_echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4300 CFLAGS="$pgac_save_CFLAGS"
4301 fi
4302 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4303 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4304 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4305   CFLAGS="$CFLAGS -fno-strict-aliasing"
4306 fi
4307
4308   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4309   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4310 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4311 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4312   $as_echo_n "(cached) " >&6
4313 else
4314   pgac_save_CFLAGS=$CFLAGS
4315 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4316 ac_save_c_werror_flag=$ac_c_werror_flag
4317 ac_c_werror_flag=yes
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324
4325 int
4326 main ()
4327 {
4328
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 rm -f conftest.$ac_objext
4334 if { (ac_try="$ac_compile"
4335 case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4340 $as_echo "$ac_try_echo") >&5
4341   (eval "$ac_compile") 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } && {
4348          test -z "$ac_c_werror_flag" ||
4349          test ! -s conftest.err
4350        } && test -s conftest.$ac_objext; then
4351   pgac_cv_prog_cc_cflags__fwrapv=yes
4352 else
4353   $as_echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356         pgac_cv_prog_cc_cflags__fwrapv=no
4357 fi
4358
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 ac_c_werror_flag=$ac_save_c_werror_flag
4361 CFLAGS="$pgac_save_CFLAGS"
4362 fi
4363 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4364 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4365 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4366   CFLAGS="$CFLAGS -fwrapv"
4367 fi
4368
4369   # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4370   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4371 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4372 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4373   $as_echo_n "(cached) " >&6
4374 else
4375   pgac_save_CFLAGS=$CFLAGS
4376 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4377 ac_save_c_werror_flag=$ac_c_werror_flag
4378 ac_c_werror_flag=yes
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h.  */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h.  */
4385
4386 int
4387 main ()
4388 {
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4401 $as_echo "$ac_try_echo") >&5
4402   (eval "$ac_compile") 2>conftest.er1
4403   ac_status=$?
4404   grep -v '^ *+' conftest.er1 >conftest.err
4405   rm -f conftest.er1
4406   cat conftest.err >&5
4407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } && {
4409          test -z "$ac_c_werror_flag" ||
4410          test ! -s conftest.err
4411        } && test -s conftest.$ac_objext; then
4412   pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4413 else
4414   $as_echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417         pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4418 fi
4419
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_c_werror_flag=$ac_save_c_werror_flag
4422 CFLAGS="$pgac_save_CFLAGS"
4423 fi
4424 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4425 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4426 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4427   CFLAGS="$CFLAGS -fexcess-precision=standard"
4428 fi
4429
4430 elif test "$ICC" = yes; then
4431   # Intel's compiler has a bug/misoptimization in checking for
4432   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4433   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4434 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4435 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4436   $as_echo_n "(cached) " >&6
4437 else
4438   pgac_save_CFLAGS=$CFLAGS
4439 CFLAGS="$pgac_save_CFLAGS -mp1"
4440 ac_save_c_werror_flag=$ac_c_werror_flag
4441 ac_c_werror_flag=yes
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h.  */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h.  */
4448
4449 int
4450 main ()
4451 {
4452
4453   ;
4454   return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext
4458 if { (ac_try="$ac_compile"
4459 case "(($ac_try" in
4460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461   *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464 $as_echo "$ac_try_echo") >&5
4465   (eval "$ac_compile") 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } && {
4472          test -z "$ac_c_werror_flag" ||
4473          test ! -s conftest.err
4474        } && test -s conftest.$ac_objext; then
4475   pgac_cv_prog_cc_cflags__mp1=yes
4476 else
4477   $as_echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480         pgac_cv_prog_cc_cflags__mp1=no
4481 fi
4482
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_c_werror_flag=$ac_save_c_werror_flag
4485 CFLAGS="$pgac_save_CFLAGS"
4486 fi
4487 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4488 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4489 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4490   CFLAGS="$CFLAGS -mp1"
4491 fi
4492
4493   # Make sure strict aliasing is off (though this is said to be the default)
4494   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4495 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4496 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4497   $as_echo_n "(cached) " >&6
4498 else
4499   pgac_save_CFLAGS=$CFLAGS
4500 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4501 ac_save_c_werror_flag=$ac_c_werror_flag
4502 ac_c_werror_flag=yes
4503 cat >conftest.$ac_ext <<_ACEOF
4504 /* confdefs.h.  */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h.  */
4509
4510 int
4511 main ()
4512 {
4513
4514   ;
4515   return 0;
4516 }
4517 _ACEOF
4518 rm -f conftest.$ac_objext
4519 if { (ac_try="$ac_compile"
4520 case "(($ac_try" in
4521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522   *) ac_try_echo=$ac_try;;
4523 esac
4524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4525 $as_echo "$ac_try_echo") >&5
4526   (eval "$ac_compile") 2>conftest.er1
4527   ac_status=$?
4528   grep -v '^ *+' conftest.er1 >conftest.err
4529   rm -f conftest.er1
4530   cat conftest.err >&5
4531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); } && {
4533          test -z "$ac_c_werror_flag" ||
4534          test ! -s conftest.err
4535        } && test -s conftest.$ac_objext; then
4536   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4537 else
4538   $as_echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4540
4541         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4542 fi
4543
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 ac_c_werror_flag=$ac_save_c_werror_flag
4546 CFLAGS="$pgac_save_CFLAGS"
4547 fi
4548 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4549 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4550 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4551   CFLAGS="$CFLAGS -fno-strict-aliasing"
4552 fi
4553
4554 elif test "$PORTNAME" = "aix"; then
4555   # AIX's xlc has to have strict aliasing turned off too
4556   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4557 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4558 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4559   $as_echo_n "(cached) " >&6
4560 else
4561   pgac_save_CFLAGS=$CFLAGS
4562 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4563 ac_save_c_werror_flag=$ac_c_werror_flag
4564 ac_c_werror_flag=yes
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h.  */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h.  */
4571
4572 int
4573 main ()
4574 {
4575
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4582 case "(($ac_try" in
4583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584   *) ac_try_echo=$ac_try;;
4585 esac
4586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4587 $as_echo "$ac_try_echo") >&5
4588   (eval "$ac_compile") 2>conftest.er1
4589   ac_status=$?
4590   grep -v '^ *+' conftest.er1 >conftest.err
4591   rm -f conftest.er1
4592   cat conftest.err >&5
4593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } && {
4595          test -z "$ac_c_werror_flag" ||
4596          test ! -s conftest.err
4597        } && test -s conftest.$ac_objext; then
4598   pgac_cv_prog_cc_cflags__qnoansialias=yes
4599 else
4600   $as_echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603         pgac_cv_prog_cc_cflags__qnoansialias=no
4604 fi
4605
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_c_werror_flag=$ac_save_c_werror_flag
4608 CFLAGS="$pgac_save_CFLAGS"
4609 fi
4610 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4611 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4612 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4613   CFLAGS="$CFLAGS -qnoansialias"
4614 fi
4615
4616 elif test "$PORTNAME" = "hpux"; then
4617   # On some versions of HP-UX, libm functions do not set errno by default.
4618   # Fix that by using +Olibmerrno if the compiler recognizes it.
4619   { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4620 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4621 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4622   $as_echo_n "(cached) " >&6
4623 else
4624   pgac_save_CFLAGS=$CFLAGS
4625 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4626 ac_save_c_werror_flag=$ac_c_werror_flag
4627 ac_c_werror_flag=yes
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634
4635 int
4636 main ()
4637 {
4638
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.$ac_objext
4644 if { (ac_try="$ac_compile"
4645 case "(($ac_try" in
4646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647   *) ac_try_echo=$ac_try;;
4648 esac
4649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4650 $as_echo "$ac_try_echo") >&5
4651   (eval "$ac_compile") 2>conftest.er1
4652   ac_status=$?
4653   grep -v '^ *+' conftest.er1 >conftest.err
4654   rm -f conftest.er1
4655   cat conftest.err >&5
4656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } && {
4658          test -z "$ac_c_werror_flag" ||
4659          test ! -s conftest.err
4660        } && test -s conftest.$ac_objext; then
4661   pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4662 else
4663   $as_echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666         pgac_cv_prog_cc_cflags_pOlibmerrno=no
4667 fi
4668
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4671 CFLAGS="$pgac_save_CFLAGS"
4672 fi
4673 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4674 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4675 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4676   CFLAGS="$CFLAGS +Olibmerrno"
4677 fi
4678
4679 fi
4680
4681 # supply -g if --enable-debug
4682 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4683   CFLAGS="$CFLAGS -g"
4684 fi
4685
4686 # enable code coverage if --enable-coverage
4687 if test "$enable_coverage" = yes; then
4688   if test "$GCC" = yes; then
4689     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4690   else
4691     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4692 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4693    { (exit 1); exit 1; }; }
4694   fi
4695 fi
4696
4697 # enable profiling if --enable-profiling
4698 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4699   if test "$GCC" = yes; then
4700
4701 cat >>confdefs.h <<\_ACEOF
4702 #define PROFILE_PID_DIR 1
4703 _ACEOF
4704
4705     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4706   else
4707     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4708 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4709    { (exit 1); exit 1; }; }
4710   fi
4711 fi
4712
4713 # We already have this in Makefile.win32, but configure needs it too
4714 if test "$PORTNAME" = "win32"; then
4715   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4716 fi
4717
4718 # Check if the compiler still works with the template settings
4719 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4720 $as_echo_n "checking whether the C compiler still works... " >&6; }
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h.  */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h.  */
4727
4728 int
4729 main ()
4730 {
4731 return 0;
4732   ;
4733   return 0;
4734 }
4735 _ACEOF
4736 rm -f conftest.$ac_objext conftest$ac_exeext
4737 if { (ac_try="$ac_link"
4738 case "(($ac_try" in
4739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740   *) ac_try_echo=$ac_try;;
4741 esac
4742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4743 $as_echo "$ac_try_echo") >&5
4744   (eval "$ac_link") 2>conftest.er1
4745   ac_status=$?
4746   grep -v '^ *+' conftest.er1 >conftest.err
4747   rm -f conftest.er1
4748   cat conftest.err >&5
4749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } && {
4751          test -z "$ac_c_werror_flag" ||
4752          test ! -s conftest.err
4753        } && test -s conftest$ac_exeext && {
4754          test "$cross_compiling" = yes ||
4755          $as_test_x conftest$ac_exeext
4756        }; then
4757   { $as_echo "$as_me:$LINENO: result: yes" >&5
4758 $as_echo "yes" >&6; }
4759 else
4760   $as_echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4762
4763         { $as_echo "$as_me:$LINENO: result: no" >&5
4764 $as_echo "no" >&6; }
4765    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4766 $as_echo "$as_me: error: cannot proceed" >&2;}
4767    { (exit 1); exit 1; }; }
4768 fi
4769
4770 rm -rf conftest.dSYM
4771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4772       conftest$ac_exeext conftest.$ac_ext
4773
4774 # Defend against gcc -ffast-math
4775 if test "$GCC" = yes; then
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h.  */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h.  */
4782
4783 int
4784 main ()
4785 {
4786 #ifdef __FAST_MATH__
4787 choke me
4788 #endif
4789   ;
4790   return 0;
4791 }
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4795 case "(($ac_try" in
4796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797   *) ac_try_echo=$ac_try;;
4798 esac
4799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4800 $as_echo "$ac_try_echo") >&5
4801   (eval "$ac_compile") 2>conftest.er1
4802   ac_status=$?
4803   grep -v '^ *+' conftest.er1 >conftest.err
4804   rm -f conftest.er1
4805   cat conftest.err >&5
4806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); } && {
4808          test -z "$ac_c_werror_flag" ||
4809          test ! -s conftest.err
4810        } && test -s conftest.$ac_objext; then
4811   :
4812 else
4813   $as_echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4817 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4818    { (exit 1); exit 1; }; }
4819 fi
4820
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 fi
4823
4824 ac_ext=c
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4830 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4831 # On Suns, sometimes $CPP names a directory.
4832 if test -n "$CPP" && test -d "$CPP"; then
4833   CPP=
4834 fi
4835 if test -z "$CPP"; then
4836   if test "${ac_cv_prog_CPP+set}" = set; then
4837   $as_echo_n "(cached) " >&6
4838 else
4839       # Double quotes because CPP needs to be expanded
4840     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4841     do
4842       ac_preproc_ok=false
4843 for ac_c_preproc_warn_flag in '' yes
4844 do
4845   # Use a header file that comes with gcc, so configuring glibc
4846   # with a fresh cross-compiler works.
4847   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4848   # <limits.h> exists even on freestanding compilers.
4849   # On the NeXT, cc -E runs the code through the compiler's parser,
4850   # not just through cpp. "Syntax error" is here to catch this case.
4851   cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h.  */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h.  */
4857 #ifdef __STDC__
4858 # include <limits.h>
4859 #else
4860 # include <assert.h>
4861 #endif
4862                      Syntax error
4863 _ACEOF
4864 if { (ac_try="$ac_cpp conftest.$ac_ext"
4865 case "(($ac_try" in
4866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867   *) ac_try_echo=$ac_try;;
4868 esac
4869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4872   ac_status=$?
4873   grep -v '^ *+' conftest.er1 >conftest.err
4874   rm -f conftest.er1
4875   cat conftest.err >&5
4876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); } >/dev/null && {
4878          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4879          test ! -s conftest.err
4880        }; then
4881   :
4882 else
4883   $as_echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886   # Broken: fails on valid input.
4887 continue
4888 fi
4889
4890 rm -f conftest.err conftest.$ac_ext
4891
4892   # OK, works on sane cases.  Now check whether nonexistent headers
4893   # can be detected and how.
4894   cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h.  */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h.  */
4900 #include <ac_nonexistent.h>
4901 _ACEOF
4902 if { (ac_try="$ac_cpp conftest.$ac_ext"
4903 case "(($ac_try" in
4904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905   *) ac_try_echo=$ac_try;;
4906 esac
4907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4908 $as_echo "$ac_try_echo") >&5
4909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4910   ac_status=$?
4911   grep -v '^ *+' conftest.er1 >conftest.err
4912   rm -f conftest.er1
4913   cat conftest.err >&5
4914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } >/dev/null && {
4916          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4917          test ! -s conftest.err
4918        }; then
4919   # Broken: success on invalid input.
4920 continue
4921 else
4922   $as_echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925   # Passes both tests.
4926 ac_preproc_ok=:
4927 break
4928 fi
4929
4930 rm -f conftest.err conftest.$ac_ext
4931
4932 done
4933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4934 rm -f conftest.err conftest.$ac_ext
4935 if $ac_preproc_ok; then
4936   break
4937 fi
4938
4939     done
4940     ac_cv_prog_CPP=$CPP
4941
4942 fi
4943   CPP=$ac_cv_prog_CPP
4944 else
4945   ac_cv_prog_CPP=$CPP
4946 fi
4947 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4948 $as_echo "$CPP" >&6; }
4949 ac_preproc_ok=false
4950 for ac_c_preproc_warn_flag in '' yes
4951 do
4952   # Use a header file that comes with gcc, so configuring glibc
4953   # with a fresh cross-compiler works.
4954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4955   # <limits.h> exists even on freestanding compilers.
4956   # On the NeXT, cc -E runs the code through the compiler's parser,
4957   # not just through cpp. "Syntax error" is here to catch this case.
4958   cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h.  */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h.  */
4964 #ifdef __STDC__
4965 # include <limits.h>
4966 #else
4967 # include <assert.h>
4968 #endif
4969                      Syntax error
4970 _ACEOF
4971 if { (ac_try="$ac_cpp conftest.$ac_ext"
4972 case "(($ac_try" in
4973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974   *) ac_try_echo=$ac_try;;
4975 esac
4976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4977 $as_echo "$ac_try_echo") >&5
4978   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4979   ac_status=$?
4980   grep -v '^ *+' conftest.er1 >conftest.err
4981   rm -f conftest.er1
4982   cat conftest.err >&5
4983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); } >/dev/null && {
4985          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4986          test ! -s conftest.err
4987        }; then
4988   :
4989 else
4990   $as_echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993   # Broken: fails on valid input.
4994 continue
4995 fi
4996
4997 rm -f conftest.err conftest.$ac_ext
4998
4999   # OK, works on sane cases.  Now check whether nonexistent headers
5000   # can be detected and how.
5001   cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h.  */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h.  */
5007 #include <ac_nonexistent.h>
5008 _ACEOF
5009 if { (ac_try="$ac_cpp conftest.$ac_ext"
5010 case "(($ac_try" in
5011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012   *) ac_try_echo=$ac_try;;
5013 esac
5014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5015 $as_echo "$ac_try_echo") >&5
5016   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5017   ac_status=$?
5018   grep -v '^ *+' conftest.er1 >conftest.err
5019   rm -f conftest.er1
5020   cat conftest.err >&5
5021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); } >/dev/null && {
5023          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5024          test ! -s conftest.err
5025        }; then
5026   # Broken: success on invalid input.
5027 continue
5028 else
5029   $as_echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5031
5032   # Passes both tests.
5033 ac_preproc_ok=:
5034 break
5035 fi
5036
5037 rm -f conftest.err conftest.$ac_ext
5038
5039 done
5040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5041 rm -f conftest.err conftest.$ac_ext
5042 if $ac_preproc_ok; then
5043   :
5044 else
5045   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5047 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5048 See \`config.log' for more details." >&5
5049 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5050 See \`config.log' for more details." >&2;}
5051    { (exit 1); exit 1; }; }; }
5052 fi
5053
5054 ac_ext=c
5055 ac_cpp='$CPP $CPPFLAGS'
5056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059
5060
5061
5062
5063 #
5064 # Set up TAS assembly code if needed; the template file has now had its
5065 # chance to request this.
5066 #
5067 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5068
5069
5070 if test "$need_tas" = yes ; then
5071   TAS=tas.o
5072 else
5073   TAS=""
5074 fi
5075
5076
5077
5078 #
5079 # Automatic dependency tracking
5080 #
5081
5082
5083 # Check whether --enable-depend was given.
5084 if test "${enable_depend+set}" = set; then
5085   enableval=$enable_depend;
5086   case $enableval in
5087     yes)
5088       autodepend=yes
5089       ;;
5090     no)
5091       :
5092       ;;
5093     *)
5094       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5095 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5096    { (exit 1); exit 1; }; }
5097       ;;
5098   esac
5099
5100 else
5101   enable_depend=no
5102
5103 fi
5104
5105
5106
5107
5108
5109 #
5110 # Enable assert checks
5111 #
5112
5113
5114 # Check whether --enable-cassert was given.
5115 if test "${enable_cassert+set}" = set; then
5116   enableval=$enable_cassert;
5117   case $enableval in
5118     yes)
5119
5120 cat >>confdefs.h <<\_ACEOF
5121 #define USE_ASSERT_CHECKING 1
5122 _ACEOF
5123
5124       ;;
5125     no)
5126       :
5127       ;;
5128     *)
5129       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5130 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5131    { (exit 1); exit 1; }; }
5132       ;;
5133   esac
5134
5135 else
5136   enable_cassert=no
5137
5138 fi
5139
5140
5141
5142
5143 #
5144 # Include directories
5145 #
5146 ac_save_IFS=$IFS
5147 IFS="${IFS}${PATH_SEPARATOR}"
5148 # SRCH_INC comes from the template file
5149 for dir in $with_includes $SRCH_INC; do
5150   if test -d "$dir"; then
5151     INCLUDES="$INCLUDES -I$dir"
5152   else
5153     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5154 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5155   fi
5156 done
5157 IFS=$ac_save_IFS
5158
5159
5160
5161 #
5162 # Library directories
5163 #
5164 ac_save_IFS=$IFS
5165 IFS="${IFS}${PATH_SEPARATOR}"
5166 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5167 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5168   if test -d "$dir"; then
5169     LIBDIRS="$LIBDIRS -L$dir"
5170   else
5171     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5172 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5173   fi
5174 done
5175 IFS=$ac_save_IFS
5176
5177 #
5178 # Enable thread-safe client libraries
5179 #
5180 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5181 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5182
5183
5184 # Check whether --enable-thread-safety was given.
5185 if test "${enable_thread_safety+set}" = set; then
5186   enableval=$enable_thread_safety;
5187   case $enableval in
5188     yes)
5189       :
5190       ;;
5191     no)
5192       :
5193       ;;
5194     *)
5195       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5196 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5197    { (exit 1); exit 1; }; }
5198       ;;
5199   esac
5200
5201 else
5202   enable_thread_safety=yes
5203
5204 fi
5205
5206
5207 if test "$enable_thread_safety" = yes; then
5208
5209 cat >>confdefs.h <<\_ACEOF
5210 #define ENABLE_THREAD_SAFETY 1
5211 _ACEOF
5212
5213 fi
5214 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5215 $as_echo "$enable_thread_safety" >&6; }
5216
5217
5218 #
5219 # Optionally build Tcl modules (PL/Tcl)
5220 #
5221 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5222 $as_echo_n "checking whether to build with Tcl... " >&6; }
5223
5224
5225
5226 # Check whether --with-tcl was given.
5227 if test "${with_tcl+set}" = set; then
5228   withval=$with_tcl;
5229   case $withval in
5230     yes)
5231       :
5232       ;;
5233     no)
5234       :
5235       ;;
5236     *)
5237       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5238 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5239    { (exit 1); exit 1; }; }
5240       ;;
5241   esac
5242
5243 else
5244   with_tcl=no
5245
5246 fi
5247
5248
5249 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5250 $as_echo "$with_tcl" >&6; }
5251
5252
5253 # We see if the path to the Tcl/Tk configuration scripts is specified.
5254 # This will override the use of tclsh to find the paths to search.
5255
5256
5257
5258
5259 # Check whether --with-tclconfig was given.
5260 if test "${with_tclconfig+set}" = set; then
5261   withval=$with_tclconfig;
5262   case $withval in
5263     yes)
5264       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5265 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5266    { (exit 1); exit 1; }; }
5267       ;;
5268     no)
5269       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5270 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5271    { (exit 1); exit 1; }; }
5272       ;;
5273     *)
5274
5275       ;;
5276   esac
5277
5278 fi
5279
5280
5281
5282 #
5283 # Optionally build Perl modules (PL/Perl)
5284 #
5285 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5286 $as_echo_n "checking whether to build Perl modules... " >&6; }
5287
5288
5289
5290 # Check whether --with-perl was given.
5291 if test "${with_perl+set}" = set; then
5292   withval=$with_perl;
5293   case $withval in
5294     yes)
5295       :
5296       ;;
5297     no)
5298       :
5299       ;;
5300     *)
5301       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5302 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5303    { (exit 1); exit 1; }; }
5304       ;;
5305   esac
5306
5307 else
5308   with_perl=no
5309
5310 fi
5311
5312
5313 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5314 $as_echo "$with_perl" >&6; }
5315
5316
5317 #
5318 # Optionally build Python modules (PL/Python)
5319 #
5320 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5321 $as_echo_n "checking whether to build Python modules... " >&6; }
5322
5323
5324
5325 # Check whether --with-python was given.
5326 if test "${with_python+set}" = set; then
5327   withval=$with_python;
5328   case $withval in
5329     yes)
5330       :
5331       ;;
5332     no)
5333       :
5334       ;;
5335     *)
5336       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5337 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5338    { (exit 1); exit 1; }; }
5339       ;;
5340   esac
5341
5342 else
5343   with_python=no
5344
5345 fi
5346
5347
5348 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5349 $as_echo "$with_python" >&6; }
5350
5351
5352 #
5353 # GSSAPI
5354 #
5355 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5356 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5357
5358
5359
5360 # Check whether --with-gssapi was given.
5361 if test "${with_gssapi+set}" = set; then
5362   withval=$with_gssapi;
5363   case $withval in
5364     yes)
5365
5366
5367 cat >>confdefs.h <<\_ACEOF
5368 #define ENABLE_GSS 1
5369 _ACEOF
5370
5371   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5372
5373       ;;
5374     no)
5375       :
5376       ;;
5377     *)
5378       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5379 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5380    { (exit 1); exit 1; }; }
5381       ;;
5382   esac
5383
5384 else
5385   with_gssapi=no
5386
5387 fi
5388
5389
5390 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5391 $as_echo "$with_gssapi" >&6; }
5392
5393
5394 #
5395 # Kerberos 5
5396 #
5397 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5398 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5399
5400
5401
5402 # Check whether --with-krb5 was given.
5403 if test "${with_krb5+set}" = set; then
5404   withval=$with_krb5;
5405   case $withval in
5406     yes)
5407
5408
5409 cat >>confdefs.h <<\_ACEOF
5410 #define KRB5 1
5411 _ACEOF
5412
5413   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5414
5415       ;;
5416     no)
5417       :
5418       ;;
5419     *)
5420       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5421 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5422    { (exit 1); exit 1; }; }
5423       ;;
5424   esac
5425
5426 else
5427   with_krb5=no
5428
5429 fi
5430
5431
5432 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5433 $as_echo "$with_krb5" >&6; }
5434
5435
5436
5437
5438
5439
5440 #
5441 # Kerberos configuration parameters
5442 #
5443
5444
5445
5446 # Check whether --with-krb-srvnam was given.
5447 if test "${with_krb_srvnam+set}" = set; then
5448   withval=$with_krb_srvnam;
5449   case $withval in
5450     yes)
5451       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5452 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5453    { (exit 1); exit 1; }; }
5454       ;;
5455     no)
5456       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5457 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5458    { (exit 1); exit 1; }; }
5459       ;;
5460     *)
5461
5462       ;;
5463   esac
5464
5465 else
5466   with_krb_srvnam="postgres"
5467 fi
5468
5469
5470
5471 cat >>confdefs.h <<_ACEOF
5472 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5473 _ACEOF
5474
5475
5476
5477 #
5478 # PAM
5479 #
5480 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5481 $as_echo_n "checking whether to build with PAM support... " >&6; }
5482
5483
5484
5485 # Check whether --with-pam was given.
5486 if test "${with_pam+set}" = set; then
5487   withval=$with_pam;
5488   case $withval in
5489     yes)
5490
5491 cat >>confdefs.h <<\_ACEOF
5492 #define USE_PAM 1
5493 _ACEOF
5494
5495       ;;
5496     no)
5497       :
5498       ;;
5499     *)
5500       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5501 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5502    { (exit 1); exit 1; }; }
5503       ;;
5504   esac
5505
5506 else
5507   with_pam=no
5508
5509 fi
5510
5511
5512 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5513 $as_echo "$with_pam" >&6; }
5514
5515
5516
5517 #
5518 # LDAP
5519 #
5520 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5521 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5522
5523
5524
5525 # Check whether --with-ldap was given.
5526 if test "${with_ldap+set}" = set; then
5527   withval=$with_ldap;
5528   case $withval in
5529     yes)
5530
5531 cat >>confdefs.h <<\_ACEOF
5532 #define USE_LDAP 1
5533 _ACEOF
5534
5535       ;;
5536     no)
5537       :
5538       ;;
5539     *)
5540       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5541 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5542    { (exit 1); exit 1; }; }
5543       ;;
5544   esac
5545
5546 else
5547   with_ldap=no
5548
5549 fi
5550
5551
5552 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5553 $as_echo "$with_ldap" >&6; }
5554
5555
5556
5557 #
5558 # Bonjour
5559 #
5560 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5561 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5562
5563
5564
5565 # Check whether --with-bonjour was given.
5566 if test "${with_bonjour+set}" = set; then
5567   withval=$with_bonjour;
5568   case $withval in
5569     yes)
5570
5571 cat >>confdefs.h <<\_ACEOF
5572 #define USE_BONJOUR 1
5573 _ACEOF
5574
5575       ;;
5576     no)
5577       :
5578       ;;
5579     *)
5580       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5581 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5582    { (exit 1); exit 1; }; }
5583       ;;
5584   esac
5585
5586 else
5587   with_bonjour=no
5588
5589 fi
5590
5591
5592 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5593 $as_echo "$with_bonjour" >&6; }
5594
5595
5596
5597 #
5598 # OpenSSL
5599 #
5600 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5601 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5602
5603
5604
5605 # Check whether --with-openssl was given.
5606 if test "${with_openssl+set}" = set; then
5607   withval=$with_openssl;
5608   case $withval in
5609     yes)
5610
5611 cat >>confdefs.h <<\_ACEOF
5612 #define USE_SSL 1
5613 _ACEOF
5614
5615       ;;
5616     no)
5617       :
5618       ;;
5619     *)
5620       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5621 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5622    { (exit 1); exit 1; }; }
5623       ;;
5624   esac
5625
5626 else
5627   with_openssl=no
5628
5629 fi
5630
5631
5632 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5633 $as_echo "$with_openssl" >&6; }
5634
5635
5636 #
5637 # SELinux
5638 #
5639 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5640 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5641
5642
5643
5644 # Check whether --with-selinux was given.
5645 if test "${with_selinux+set}" = set; then
5646   withval=$with_selinux;
5647   case $withval in
5648     yes)
5649       :
5650       ;;
5651     no)
5652       :
5653       ;;
5654     *)
5655       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5656 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5657    { (exit 1); exit 1; }; }
5658       ;;
5659   esac
5660
5661 else
5662   with_selinux=no
5663
5664 fi
5665
5666
5667
5668 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5669 $as_echo "$with_selinux" >&6; }
5670
5671 #
5672 # Readline
5673 #
5674
5675
5676
5677 # Check whether --with-readline was given.
5678 if test "${with_readline+set}" = set; then
5679   withval=$with_readline;
5680   case $withval in
5681     yes)
5682       :
5683       ;;
5684     no)
5685       :
5686       ;;
5687     *)
5688       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5689 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5690    { (exit 1); exit 1; }; }
5691       ;;
5692   esac
5693
5694 else
5695   with_readline=yes
5696
5697 fi
5698
5699
5700 # readline on MinGW has problems with backslashes in psql and other bugs.
5701 # This is particularly a problem with non-US code pages.
5702 # Therefore disable its use until we understand the cause. 2004-07-20
5703 if test "$PORTNAME" = "win32"; then
5704   if test "$with_readline" = yes; then
5705     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5706 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5707     with_readline=no
5708   fi
5709 fi
5710
5711
5712 #
5713 # Prefer libedit
5714 #
5715
5716
5717
5718 # Check whether --with-libedit-preferred was given.
5719 if test "${with_libedit_preferred+set}" = set; then
5720   withval=$with_libedit_preferred;
5721   case $withval in
5722     yes)
5723       :
5724       ;;
5725     no)
5726       :
5727       ;;
5728     *)
5729       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5730 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5731    { (exit 1); exit 1; }; }
5732       ;;
5733   esac
5734
5735 else
5736   with_libedit_preferred=no
5737
5738 fi
5739
5740
5741
5742
5743 #
5744 # OSSP UUID library
5745 #
5746
5747
5748
5749 # Check whether --with-ossp-uuid was given.
5750 if test "${with_ossp_uuid+set}" = set; then
5751   withval=$with_ossp_uuid;
5752   case $withval in
5753     yes)
5754       :
5755       ;;
5756     no)
5757       :
5758       ;;
5759     *)
5760       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5761 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5762    { (exit 1); exit 1; }; }
5763       ;;
5764   esac
5765
5766 else
5767   with_ossp_uuid=no
5768
5769 fi
5770
5771
5772
5773
5774
5775 #
5776 # XML
5777 #
5778
5779
5780
5781 # Check whether --with-libxml was given.
5782 if test "${with_libxml+set}" = set; then
5783   withval=$with_libxml;
5784   case $withval in
5785     yes)
5786
5787 cat >>confdefs.h <<\_ACEOF
5788 #define USE_LIBXML 1
5789 _ACEOF
5790
5791       ;;
5792     no)
5793       :
5794       ;;
5795     *)
5796       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5797 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5798    { (exit 1); exit 1; }; }
5799       ;;
5800   esac
5801
5802 else
5803   with_libxml=no
5804
5805 fi
5806
5807
5808
5809 if test "$with_libxml" = yes ; then
5810   for ac_prog in xml2-config
5811 do
5812   # Extract the first word of "$ac_prog", so it can be a program name with args.
5813 set dummy $ac_prog; ac_word=$2
5814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5817   $as_echo_n "(cached) " >&6
5818 else
5819   if test -n "$XML2_CONFIG"; then
5820   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827   for ac_exec_ext in '' $ac_executable_extensions; do
5828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829     ac_cv_prog_XML2_CONFIG="$ac_prog"
5830     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834 done
5835 IFS=$as_save_IFS
5836
5837 fi
5838 fi
5839 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5840 if test -n "$XML2_CONFIG"; then
5841   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5842 $as_echo "$XML2_CONFIG" >&6; }
5843 else
5844   { $as_echo "$as_me:$LINENO: result: no" >&5
5845 $as_echo "no" >&6; }
5846 fi
5847
5848
5849   test -n "$XML2_CONFIG" && break
5850 done
5851
5852   if test -n "$XML2_CONFIG"; then
5853     for pgac_option in `$XML2_CONFIG --cflags`; do
5854       case $pgac_option in
5855         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5856       esac
5857     done
5858     for pgac_option in `$XML2_CONFIG --libs`; do
5859       case $pgac_option in
5860         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5861       esac
5862     done
5863   fi
5864 fi
5865
5866
5867
5868 #
5869 # XSLT
5870 #
5871
5872
5873
5874 # Check whether --with-libxslt was given.
5875 if test "${with_libxslt+set}" = set; then
5876   withval=$with_libxslt;
5877   case $withval in
5878     yes)
5879
5880 cat >>confdefs.h <<\_ACEOF
5881 #define USE_LIBXSLT 1
5882 _ACEOF
5883
5884       ;;
5885     no)
5886       :
5887       ;;
5888     *)
5889       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5890 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5891    { (exit 1); exit 1; }; }
5892       ;;
5893   esac
5894
5895 else
5896   with_libxslt=no
5897
5898 fi
5899
5900
5901
5902
5903
5904
5905 #
5906 # tzdata
5907 #
5908
5909
5910
5911 # Check whether --with-system-tzdata was given.
5912 if test "${with_system_tzdata+set}" = set; then
5913   withval=$with_system_tzdata;
5914   case $withval in
5915     yes)
5916       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5917 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5918    { (exit 1); exit 1; }; }
5919       ;;
5920     no)
5921       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5922 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5923    { (exit 1); exit 1; }; }
5924       ;;
5925     *)
5926
5927       ;;
5928   esac
5929
5930 fi
5931
5932
5933
5934
5935 #
5936 # Zlib
5937 #
5938
5939
5940
5941 # Check whether --with-zlib was given.
5942 if test "${with_zlib+set}" = set; then
5943   withval=$with_zlib;
5944   case $withval in
5945     yes)
5946       :
5947       ;;
5948     no)
5949       :
5950       ;;
5951     *)
5952       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5953 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5954    { (exit 1); exit 1; }; }
5955       ;;
5956   esac
5957
5958 else
5959   with_zlib=yes
5960
5961 fi
5962
5963
5964
5965
5966 #
5967 # Elf
5968 #
5969
5970 # Assume system is ELF if it predefines __ELF__ as 1,
5971 # otherwise believe host_os based default.
5972 case $host_os in
5973     freebsd1*|freebsd2*) elf=no;;
5974     freebsd3*|freebsd4*) elf=yes;;
5975 esac
5976
5977
5978 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5979 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5980 if test "${ac_cv_path_GREP+set}" = set; then
5981   $as_echo_n "(cached) " >&6
5982 else
5983   if test -z "$GREP"; then
5984   ac_path_GREP_found=false
5985   # Loop through the user's path and test for each of PROGNAME-LIST
5986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5988 do
5989   IFS=$as_save_IFS
5990   test -z "$as_dir" && as_dir=.
5991   for ac_prog in grep ggrep; do
5992     for ac_exec_ext in '' $ac_executable_extensions; do
5993       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5994       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5995 # Check for GNU ac_path_GREP and select it if it is found.
5996   # Check for GNU $ac_path_GREP
5997 case `"$ac_path_GREP" --version 2>&1` in
5998 *GNU*)
5999   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6000 *)
6001   ac_count=0
6002   $as_echo_n 0123456789 >"conftest.in"
6003   while :
6004   do
6005     cat "conftest.in" "conftest.in" >"conftest.tmp"
6006     mv "conftest.tmp" "conftest.in"
6007     cp "conftest.in" "conftest.nl"
6008     $as_echo 'GREP' >> "conftest.nl"
6009     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6010     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6011     ac_count=`expr $ac_count + 1`
6012     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6013       # Best one so far, save it but keep looking for a better one
6014       ac_cv_path_GREP="$ac_path_GREP"
6015       ac_path_GREP_max=$ac_count
6016     fi
6017     # 10*(2^10) chars as input seems more than enough
6018     test $ac_count -gt 10 && break
6019   done
6020   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6021 esac
6022
6023       $ac_path_GREP_found && break 3
6024     done
6025   done
6026 done
6027 IFS=$as_save_IFS
6028   if test -z "$ac_cv_path_GREP"; then
6029     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6030 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6031    { (exit 1); exit 1; }; }
6032   fi
6033 else
6034   ac_cv_path_GREP=$GREP
6035 fi
6036
6037 fi
6038 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6039 $as_echo "$ac_cv_path_GREP" >&6; }
6040  GREP="$ac_cv_path_GREP"
6041
6042
6043 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6044 $as_echo_n "checking for egrep... " >&6; }
6045 if test "${ac_cv_path_EGREP+set}" = set; then
6046   $as_echo_n "(cached) " >&6
6047 else
6048   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6049    then ac_cv_path_EGREP="$GREP -E"
6050    else
6051      if test -z "$EGREP"; then
6052   ac_path_EGREP_found=false
6053   # Loop through the user's path and test for each of PROGNAME-LIST
6054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6056 do
6057   IFS=$as_save_IFS
6058   test -z "$as_dir" && as_dir=.
6059   for ac_prog in egrep; do
6060     for ac_exec_ext in '' $ac_executable_extensions; do
6061       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6062       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6063 # Check for GNU ac_path_EGREP and select it if it is found.
6064   # Check for GNU $ac_path_EGREP
6065 case `"$ac_path_EGREP" --version 2>&1` in
6066 *GNU*)
6067   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6068 *)
6069   ac_count=0
6070   $as_echo_n 0123456789 >"conftest.in"
6071   while :
6072   do
6073     cat "conftest.in" "conftest.in" >"conftest.tmp"
6074     mv "conftest.tmp" "conftest.in"
6075     cp "conftest.in" "conftest.nl"
6076     $as_echo 'EGREP' >> "conftest.nl"
6077     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6078     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6079     ac_count=`expr $ac_count + 1`
6080     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6081       # Best one so far, save it but keep looking for a better one
6082       ac_cv_path_EGREP="$ac_path_EGREP"
6083       ac_path_EGREP_max=$ac_count
6084     fi
6085     # 10*(2^10) chars as input seems more than enough
6086     test $ac_count -gt 10 && break
6087   done
6088   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6089 esac
6090
6091       $ac_path_EGREP_found && break 3
6092     done
6093   done
6094 done
6095 IFS=$as_save_IFS
6096   if test -z "$ac_cv_path_EGREP"; then
6097     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6098 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6099    { (exit 1); exit 1; }; }
6100   fi
6101 else
6102   ac_cv_path_EGREP=$EGREP
6103 fi
6104
6105    fi
6106 fi
6107 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6108 $as_echo "$ac_cv_path_EGREP" >&6; }
6109  EGREP="$ac_cv_path_EGREP"
6110
6111
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h.  */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h.  */
6118 #if __ELF__
6119   yes
6120 #endif
6121
6122 _ACEOF
6123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6124   $EGREP "yes" >/dev/null 2>&1; then
6125   ELF_SYS=true
6126 else
6127   if test "X$elf" = "Xyes" ; then
6128   ELF_SYS=true
6129 else
6130   ELF_SYS=
6131 fi
6132 fi
6133 rm -f conftest*
6134
6135
6136
6137 #
6138 # Assignments
6139 #
6140
6141 CPPFLAGS="$CPPFLAGS $INCLUDES"
6142 LDFLAGS="$LDFLAGS $LIBDIRS"
6143
6144
6145
6146
6147
6148 # Check whether --with-gnu-ld was given.
6149 if test "${with_gnu_ld+set}" = set; then
6150   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6151 else
6152   with_gnu_ld=no
6153 fi
6154
6155 ac_prog=ld
6156 if test "$GCC" = yes; then
6157   # Check if gcc -print-prog-name=ld gives a path.
6158   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6159 $as_echo_n "checking for ld used by GCC... " >&6; }
6160   case $host in
6161   *-*-mingw*)
6162     # gcc leaves a trailing carriage return which upsets mingw
6163     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6164   *)
6165     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6166   esac
6167   case "$ac_prog" in
6168     # Accept absolute paths.
6169     [\\/]* | [A-Za-z]:[\\/]*)
6170       re_direlt='/[^/][^/]*/\.\./'
6171       # Canonicalize the path of ld
6172       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6173       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6174         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6175       done
6176       test -z "$LD" && LD="$ac_prog"
6177       ;;
6178   "")
6179     # If it fails, then pretend we aren't using GCC.
6180     ac_prog=ld
6181     ;;
6182   *)
6183     # If it is relative, then search for the first ld in PATH.
6184     with_gnu_ld=unknown
6185     ;;
6186   esac
6187 elif test "$with_gnu_ld" = yes; then
6188   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6189 $as_echo_n "checking for GNU ld... " >&6; }
6190 else
6191   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6192 $as_echo_n "checking for non-GNU ld... " >&6; }
6193 fi
6194 if test "${ac_cv_path_LD+set}" = set; then
6195   $as_echo_n "(cached) " >&6
6196 else
6197   if test -z "$LD"; then
6198   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6199   for ac_dir in $PATH; do
6200     test -z "$ac_dir" && ac_dir=.
6201     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6202       ac_cv_path_LD="$ac_dir/$ac_prog"
6203       # Check to see if the program is GNU ld.  I'd rather use --version,
6204       # but apparently some GNU ld's only accept -v.
6205       # Break only if it was the GNU/non-GNU ld that we prefer.
6206       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6207         test "$with_gnu_ld" != no && break
6208       else
6209         test "$with_gnu_ld" != yes && break
6210       fi
6211     fi
6212   done
6213   IFS="$ac_save_ifs"
6214 else
6215   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6216 fi
6217 fi
6218
6219 LD="$ac_cv_path_LD"
6220 if test -n "$LD"; then
6221   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6222 $as_echo "$LD" >&6; }
6223 else
6224   { $as_echo "$as_me:$LINENO: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6228 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6229    { (exit 1); exit 1; }; }
6230 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6231 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6232 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6233   $as_echo_n "(cached) " >&6
6234 else
6235   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6236 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6237   ac_cv_prog_gnu_ld=yes
6238 else
6239   ac_cv_prog_gnu_ld=no
6240 fi
6241 fi
6242 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6243 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6244 with_gnu_ld=$ac_cv_prog_gnu_ld
6245
6246
6247
6248
6249 case $host_os in sysv5*)
6250   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6251 $as_echo_n "checking whether ld -R works... " >&6; }
6252 if test "${pgac_cv_prog_ld_R+set}" = set; then
6253   $as_echo_n "(cached) " >&6
6254 else
6255
6256     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6257     cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h.  */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h.  */
6263
6264 int
6265 main ()
6266 {
6267
6268   ;
6269   return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext conftest$ac_exeext
6273 if { (ac_try="$ac_link"
6274 case "(($ac_try" in
6275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276   *) ac_try_echo=$ac_try;;
6277 esac
6278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279 $as_echo "$ac_try_echo") >&5
6280   (eval "$ac_link") 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } && {
6287          test -z "$ac_c_werror_flag" ||
6288          test ! -s conftest.err
6289        } && test -s conftest$ac_exeext && {
6290          test "$cross_compiling" = yes ||
6291          $as_test_x conftest$ac_exeext
6292        }; then
6293   pgac_cv_prog_ld_R=yes
6294 else
6295   $as_echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6297
6298         pgac_cv_prog_ld_R=no
6299 fi
6300
6301 rm -rf conftest.dSYM
6302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6303       conftest$ac_exeext conftest.$ac_ext
6304     LDFLAGS=$pgac_save_LDFLAGS
6305
6306 fi
6307 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6308 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6309   ld_R_works=$pgac_cv_prog_ld_R
6310
6311 esac
6312 if test -n "$ac_tool_prefix"; then
6313   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6314 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if test "${ac_cv_prog_RANLIB+set}" = set; then
6318   $as_echo_n "(cached) " >&6
6319 else
6320   if test -n "$RANLIB"; then
6321   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328   for ac_exec_ext in '' $ac_executable_extensions; do
6329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6331     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 RANLIB=$ac_cv_prog_RANLIB
6341 if test -n "$RANLIB"; then
6342   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6343 $as_echo "$RANLIB" >&6; }
6344 else
6345   { $as_echo "$as_me:$LINENO: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349
6350 fi
6351 if test -z "$ac_cv_prog_RANLIB"; then
6352   ac_ct_RANLIB=$RANLIB
6353   # Extract the first word of "ranlib", so it can be a program name with args.
6354 set dummy ranlib; ac_word=$2
6355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$ac_ct_RANLIB"; then
6361   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368   for ac_exec_ext in '' $ac_executable_extensions; do
6369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370     ac_cv_prog_ac_ct_RANLIB="ranlib"
6371     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6381 if test -n "$ac_ct_RANLIB"; then
6382   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6383 $as_echo "$ac_ct_RANLIB" >&6; }
6384 else
6385   { $as_echo "$as_me:$LINENO: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389   if test "x$ac_ct_RANLIB" = x; then
6390     RANLIB=":"
6391   else
6392     case $cross_compiling:$ac_tool_warned in
6393 yes:)
6394 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6397 esac
6398     RANLIB=$ac_ct_RANLIB
6399   fi
6400 else
6401   RANLIB="$ac_cv_prog_RANLIB"
6402 fi
6403
6404
6405   if test -n "$ac_tool_prefix"; then
6406   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6407 set dummy ${ac_tool_prefix}strip; ac_word=$2
6408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if test "${ac_cv_prog_STRIP+set}" = set; then
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$STRIP"; then
6414   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421   for ac_exec_ext in '' $ac_executable_extensions; do
6422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6424     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428 done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 STRIP=$ac_cv_prog_STRIP
6434 if test -n "$STRIP"; then
6435   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6436 $as_echo "$STRIP" >&6; }
6437 else
6438   { $as_echo "$as_me:$LINENO: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442
6443 fi
6444 if test -z "$ac_cv_prog_STRIP"; then
6445   ac_ct_STRIP=$STRIP
6446   # Extract the first word of "strip", so it can be a program name with args.
6447 set dummy strip; ac_word=$2
6448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6451   $as_echo_n "(cached) " >&6
6452 else
6453   if test -n "$ac_ct_STRIP"; then
6454   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459   IFS=$as_save_IFS
6460   test -z "$as_dir" && as_dir=.
6461   for ac_exec_ext in '' $ac_executable_extensions; do
6462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463     ac_cv_prog_ac_ct_STRIP="strip"
6464     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465     break 2
6466   fi
6467 done
6468 done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6474 if test -n "$ac_ct_STRIP"; then
6475   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6476 $as_echo "$ac_ct_STRIP" >&6; }
6477 else
6478   { $as_echo "$as_me:$LINENO: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482   if test "x$ac_ct_STRIP" = x; then
6483     STRIP=":"
6484   else
6485     case $cross_compiling:$ac_tool_warned in
6486 yes:)
6487 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6490 esac
6491     STRIP=$ac_ct_STRIP
6492   fi
6493 else
6494   STRIP="$ac_cv_prog_STRIP"
6495 fi
6496
6497
6498   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6499 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6500   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6501     STRIP_STATIC_LIB="$STRIP -x"
6502     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6503     { $as_echo "$as_me:$LINENO: result: yes" >&5
6504 $as_echo "yes" >&6; }
6505   else
6506     STRIP_STATIC_LIB=:
6507     STRIP_SHARED_LIB=:
6508     { $as_echo "$as_me:$LINENO: result: no" >&5
6509 $as_echo "no" >&6; }
6510   fi
6511
6512
6513
6514 if test -n "$ac_tool_prefix"; then
6515   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}ar; ac_word=$2
6517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_AR+set}" = set; then
6520   $as_echo_n "(cached) " >&6
6521 else
6522   if test -n "$AR"; then
6523   ac_cv_prog_AR="$AR" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530   for ac_exec_ext in '' $ac_executable_extensions; do
6531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532     ac_cv_prog_AR="${ac_tool_prefix}ar"
6533     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534     break 2
6535   fi
6536 done
6537 done
6538 IFS=$as_save_IFS
6539
6540 fi
6541 fi
6542 AR=$ac_cv_prog_AR
6543 if test -n "$AR"; then
6544   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6545 $as_echo "$AR" >&6; }
6546 else
6547   { $as_echo "$as_me:$LINENO: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550
6551
6552 fi
6553 if test -z "$ac_cv_prog_AR"; then
6554   ac_ct_AR=$AR
6555   # Extract the first word of "ar", so it can be a program name with args.
6556 set dummy ar; ac_word=$2
6557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6560   $as_echo_n "(cached) " >&6
6561 else
6562   if test -n "$ac_ct_AR"; then
6563   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570   for ac_exec_ext in '' $ac_executable_extensions; do
6571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572     ac_cv_prog_ac_ct_AR="ar"
6573     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6583 if test -n "$ac_ct_AR"; then
6584   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6585 $as_echo "$ac_ct_AR" >&6; }
6586 else
6587   { $as_echo "$as_me:$LINENO: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591   if test "x$ac_ct_AR" = x; then
6592     AR="ar"
6593   else
6594     case $cross_compiling:$ac_tool_warned in
6595 yes:)
6596 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600     AR=$ac_ct_AR
6601   fi
6602 else
6603   AR="$ac_cv_prog_AR"
6604 fi
6605
6606 if test "$PORTNAME" = "win32"; then
6607   if test -n "$ac_tool_prefix"; then
6608   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6613   $as_echo_n "(cached) " >&6
6614 else
6615   if test -n "$DLLTOOL"; then
6616   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621   IFS=$as_save_IFS
6622   test -z "$as_dir" && as_dir=.
6623   for ac_exec_ext in '' $ac_executable_extensions; do
6624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6626     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627     break 2
6628   fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 DLLTOOL=$ac_cv_prog_DLLTOOL
6636 if test -n "$DLLTOOL"; then
6637   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6638 $as_echo "$DLLTOOL" >&6; }
6639 else
6640   { $as_echo "$as_me:$LINENO: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643
6644
6645 fi
6646 if test -z "$ac_cv_prog_DLLTOOL"; then
6647   ac_ct_DLLTOOL=$DLLTOOL
6648   # Extract the first word of "dlltool", so it can be a program name with args.
6649 set dummy dlltool; ac_word=$2
6650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6653   $as_echo_n "(cached) " >&6
6654 else
6655   if test -n "$ac_ct_DLLTOOL"; then
6656   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661   IFS=$as_save_IFS
6662   test -z "$as_dir" && as_dir=.
6663   for ac_exec_ext in '' $ac_executable_extensions; do
6664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6666     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667     break 2
6668   fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673 fi
6674 fi
6675 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6676 if test -n "$ac_ct_DLLTOOL"; then
6677   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6678 $as_echo "$ac_ct_DLLTOOL" >&6; }
6679 else
6680   { $as_echo "$as_me:$LINENO: result: no" >&5
6681 $as_echo "no" >&6; }
6682 fi
6683
6684   if test "x$ac_ct_DLLTOOL" = x; then
6685     DLLTOOL="dlltool"
6686   else
6687     case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693     DLLTOOL=$ac_ct_DLLTOOL
6694   fi
6695 else
6696   DLLTOOL="$ac_cv_prog_DLLTOOL"
6697 fi
6698
6699   if test -n "$ac_tool_prefix"; then
6700   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6702 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6705   $as_echo_n "(cached) " >&6
6706 else
6707   if test -n "$DLLWRAP"; then
6708   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713   IFS=$as_save_IFS
6714   test -z "$as_dir" && as_dir=.
6715   for ac_exec_ext in '' $ac_executable_extensions; do
6716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6718     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719     break 2
6720   fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 DLLWRAP=$ac_cv_prog_DLLWRAP
6728 if test -n "$DLLWRAP"; then
6729   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6730 $as_echo "$DLLWRAP" >&6; }
6731 else
6732   { $as_echo "$as_me:$LINENO: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735
6736
6737 fi
6738 if test -z "$ac_cv_prog_DLLWRAP"; then
6739   ac_ct_DLLWRAP=$DLLWRAP
6740   # Extract the first word of "dllwrap", so it can be a program name with args.
6741 set dummy dllwrap; ac_word=$2
6742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6745   $as_echo_n "(cached) " >&6
6746 else
6747   if test -n "$ac_ct_DLLWRAP"; then
6748   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753   IFS=$as_save_IFS
6754   test -z "$as_dir" && as_dir=.
6755   for ac_exec_ext in '' $ac_executable_extensions; do
6756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6758     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759     break 2
6760   fi
6761 done
6762 done
6763 IFS=$as_save_IFS
6764
6765 fi
6766 fi
6767 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6768 if test -n "$ac_ct_DLLWRAP"; then
6769   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6770 $as_echo "$ac_ct_DLLWRAP" >&6; }
6771 else
6772   { $as_echo "$as_me:$LINENO: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775
6776   if test "x$ac_ct_DLLWRAP" = x; then
6777     DLLWRAP="dllwrap"
6778   else
6779     case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6784 esac
6785     DLLWRAP=$ac_ct_DLLWRAP
6786   fi
6787 else
6788   DLLWRAP="$ac_cv_prog_DLLWRAP"
6789 fi
6790
6791   if test -n "$ac_tool_prefix"; then
6792   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}windres; ac_word=$2
6794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if test "${ac_cv_prog_WINDRES+set}" = set; then
6797   $as_echo_n "(cached) " >&6
6798 else
6799   if test -n "$WINDRES"; then
6800   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805   IFS=$as_save_IFS
6806   test -z "$as_dir" && as_dir=.
6807   for ac_exec_ext in '' $ac_executable_extensions; do
6808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6810     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811     break 2
6812   fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 WINDRES=$ac_cv_prog_WINDRES
6820 if test -n "$WINDRES"; then
6821   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6822 $as_echo "$WINDRES" >&6; }
6823 else
6824   { $as_echo "$as_me:$LINENO: result: no" >&5
6825 $as_echo "no" >&6; }
6826 fi
6827
6828
6829 fi
6830 if test -z "$ac_cv_prog_WINDRES"; then
6831   ac_ct_WINDRES=$WINDRES
6832   # Extract the first word of "windres", so it can be a program name with args.
6833 set dummy windres; ac_word=$2
6834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6837   $as_echo_n "(cached) " >&6
6838 else
6839   if test -n "$ac_ct_WINDRES"; then
6840   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845   IFS=$as_save_IFS
6846   test -z "$as_dir" && as_dir=.
6847   for ac_exec_ext in '' $ac_executable_extensions; do
6848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849     ac_cv_prog_ac_ct_WINDRES="windres"
6850     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851     break 2
6852   fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857 fi
6858 fi
6859 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6860 if test -n "$ac_ct_WINDRES"; then
6861   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6862 $as_echo "$ac_ct_WINDRES" >&6; }
6863 else
6864   { $as_echo "$as_me:$LINENO: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868   if test "x$ac_ct_WINDRES" = x; then
6869     WINDRES="windres"
6870   else
6871     case $cross_compiling:$ac_tool_warned in
6872 yes:)
6873 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875 ac_tool_warned=yes ;;
6876 esac
6877     WINDRES=$ac_ct_WINDRES
6878   fi
6879 else
6880   WINDRES="$ac_cv_prog_WINDRES"
6881 fi
6882
6883 fi
6884
6885 # Extract the first word of "tar", so it can be a program name with args.
6886 set dummy tar; ac_word=$2
6887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if test "${ac_cv_path_TAR+set}" = set; then
6890   $as_echo_n "(cached) " >&6
6891 else
6892   case $TAR in
6893   [\\/]* | ?:[\\/]*)
6894   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6895   ;;
6896   *)
6897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900   IFS=$as_save_IFS
6901   test -z "$as_dir" && as_dir=.
6902   for ac_exec_ext in '' $ac_executable_extensions; do
6903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6905     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906     break 2
6907   fi
6908 done
6909 done
6910 IFS=$as_save_IFS
6911
6912   ;;
6913 esac
6914 fi
6915 TAR=$ac_cv_path_TAR
6916 if test -n "$TAR"; then
6917   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6918 $as_echo "$TAR" >&6; }
6919 else
6920   { $as_echo "$as_me:$LINENO: result: no" >&5
6921 $as_echo "no" >&6; }
6922 fi
6923
6924
6925 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6926 $as_echo_n "checking whether ln -s works... " >&6; }
6927 LN_S=$as_ln_s
6928 if test "$LN_S" = "ln -s"; then
6929   { $as_echo "$as_me:$LINENO: result: yes" >&5
6930 $as_echo "yes" >&6; }
6931 else
6932   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6933 $as_echo "no, using $LN_S" >&6; }
6934 fi
6935
6936 for ac_prog in gawk mawk nawk awk
6937 do
6938   # Extract the first word of "$ac_prog", so it can be a program name with args.
6939 set dummy $ac_prog; ac_word=$2
6940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if test "${ac_cv_prog_AWK+set}" = set; then
6943   $as_echo_n "(cached) " >&6
6944 else
6945   if test -n "$AWK"; then
6946   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953   for ac_exec_ext in '' $ac_executable_extensions; do
6954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955     ac_cv_prog_AWK="$ac_prog"
6956     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 AWK=$ac_cv_prog_AWK
6966 if test -n "$AWK"; then
6967   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6968 $as_echo "$AWK" >&6; }
6969 else
6970   { $as_echo "$as_me:$LINENO: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974
6975   test -n "$AWK" && break
6976 done
6977
6978 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6979 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6980 if test -z "$MKDIR_P"; then
6981   if test "${ac_cv_path_mkdir+set}" = set; then
6982   $as_echo_n "(cached) " >&6
6983 else
6984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6986 do
6987   IFS=$as_save_IFS
6988   test -z "$as_dir" && as_dir=.
6989   for ac_prog in mkdir gmkdir; do
6990          for ac_exec_ext in '' $ac_executable_extensions; do
6991            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6992            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6993              'mkdir (GNU coreutils) '* | \
6994              'mkdir (coreutils) '* | \
6995              'mkdir (fileutils) '4.1*)
6996                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6997                break 3;;
6998            esac
6999          done
7000        done
7001 done
7002 IFS=$as_save_IFS
7003
7004 fi
7005
7006   if test "${ac_cv_path_mkdir+set}" = set; then
7007     MKDIR_P="$ac_cv_path_mkdir -p"
7008   else
7009     # As a last resort, use the slow shell script.  Don't cache a
7010     # value for MKDIR_P within a source directory, because that will
7011     # break other packages using the cache if that directory is
7012     # removed, or if the value is a relative name.
7013     test -d ./--version && rmdir ./--version
7014     MKDIR_P="$ac_install_sh -d"
7015   fi
7016 fi
7017 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7018 $as_echo "$MKDIR_P" >&6; }
7019
7020 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7021 # a relative path to it in each makefile where it subsitutes it. This clashes
7022 # with our Makefile.global concept. This workaround helps.
7023 case $MKDIR_P in
7024   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7025 esac
7026
7027 # Let the user override the search
7028 if test -z "$BISON"; then
7029   for ac_prog in bison
7030 do
7031   # Extract the first word of "$ac_prog", so it can be a program name with args.
7032 set dummy $ac_prog; ac_word=$2
7033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if test "${ac_cv_path_BISON+set}" = set; then
7036   $as_echo_n "(cached) " >&6
7037 else
7038   case $BISON in
7039   [\\/]* | ?:[\\/]*)
7040   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7041   ;;
7042   *)
7043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046   IFS=$as_save_IFS
7047   test -z "$as_dir" && as_dir=.
7048   for ac_exec_ext in '' $ac_executable_extensions; do
7049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7051     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052     break 2
7053   fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058   ;;
7059 esac
7060 fi
7061 BISON=$ac_cv_path_BISON
7062 if test -n "$BISON"; then
7063   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7064 $as_echo "$BISON" >&6; }
7065 else
7066   { $as_echo "$as_me:$LINENO: result: no" >&5
7067 $as_echo "no" >&6; }
7068 fi
7069
7070
7071   test -n "$BISON" && break
7072 done
7073
7074 fi
7075
7076 if test "$BISON"; then
7077   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7078   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7079 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7080   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7081   then
7082     { $as_echo "$as_me:$LINENO: WARNING:
7083 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7084 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7085 $as_echo "$as_me: WARNING:
7086 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7087 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7088     BISON=""
7089   fi
7090 fi
7091
7092 if test -z "$BISON"; then
7093   { $as_echo "$as_me:$LINENO: WARNING:
7094 *** Without Bison you will not be able to build PostgreSQL from Git nor
7095 *** change any of the parser definition files.  You can obtain Bison from
7096 *** a GNU mirror site.  (If you are using the official distribution of
7097 *** PostgreSQL then you do not need to worry about this, because the Bison
7098 *** output is pre-generated.)" >&5
7099 $as_echo "$as_me: WARNING:
7100 *** Without Bison you will not be able to build PostgreSQL from Git nor
7101 *** change any of the parser definition files.  You can obtain Bison from
7102 *** a GNU mirror site.  (If you are using the official distribution of
7103 *** PostgreSQL then you do not need to worry about this, because the Bison
7104 *** output is pre-generated.)" >&2;}
7105 fi
7106 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7107
7108
7109 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7110 $as_echo_n "checking for flex... " >&6; }
7111 if test "${pgac_cv_path_flex+set}" = set; then
7112   $as_echo_n "(cached) " >&6
7113 else
7114   # Let the user override the test
7115 if test -n "$FLEX"; then
7116   pgac_cv_path_flex=$FLEX
7117 else
7118   pgac_save_IFS=$IFS
7119   IFS=$PATH_SEPARATOR
7120   for pgac_dir in $PATH; do
7121     IFS=$pgac_save_IFS
7122     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7123       pgac_dir=`pwd`
7124     fi
7125     for pgac_prog in flex lex; do
7126       pgac_candidate="$pgac_dir/$pgac_prog"
7127       if test -f "$pgac_candidate" \
7128         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7129       then
7130         echo '%%'  > conftest.l
7131         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7132           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7133           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7134           then
7135             pgac_cv_path_flex=$pgac_candidate
7136             break 2
7137           else
7138             { $as_echo "$as_me:$LINENO: WARNING:
7139 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7140 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7141 $as_echo "$as_me: WARNING:
7142 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7143 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7144           fi
7145         fi
7146       fi
7147     done
7148   done
7149   rm -f conftest.l lex.yy.c
7150   : ${pgac_cv_path_flex=no}
7151 fi
7152
7153 fi
7154 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7155 $as_echo "$pgac_cv_path_flex" >&6; }
7156 if test x"$pgac_cv_path_flex" = x"no"; then
7157   { $as_echo "$as_me:$LINENO: WARNING:
7158 *** Without Flex you will not be able to build PostgreSQL from Git nor
7159 *** change any of the scanner definition files.  You can obtain Flex from
7160 *** a GNU mirror site.  (If you are using the official distribution of
7161 *** PostgreSQL then you do not need to worry about this because the Flex
7162 *** output is pre-generated.)" >&5
7163 $as_echo "$as_me: WARNING:
7164 *** Without Flex you will not be able to build PostgreSQL from Git nor
7165 *** change any of the scanner definition files.  You can obtain Flex from
7166 *** a GNU mirror site.  (If you are using the official distribution of
7167 *** PostgreSQL then you do not need to worry about this because the Flex
7168 *** output is pre-generated.)" >&2;}
7169
7170   FLEX=
7171 else
7172   FLEX=$pgac_cv_path_flex
7173   pgac_flex_version=`$FLEX --version 2>/dev/null`
7174   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7175 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7176 fi
7177
7178
7179
7180
7181
7182 # Let the user override the search
7183 if test -z "$PERL"; then
7184   # Extract the first word of "perl", so it can be a program name with args.
7185 set dummy perl; ac_word=$2
7186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if test "${ac_cv_path_PERL+set}" = set; then
7189   $as_echo_n "(cached) " >&6
7190 else
7191   case $PERL in
7192   [\\/]* | ?:[\\/]*)
7193   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7194   ;;
7195   *)
7196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201   for ac_exec_ext in '' $ac_executable_extensions; do
7202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7204     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208 done
7209 IFS=$as_save_IFS
7210
7211   ;;
7212 esac
7213 fi
7214 PERL=$ac_cv_path_PERL
7215 if test -n "$PERL"; then
7216   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7217 $as_echo "$PERL" >&6; }
7218 else
7219   { $as_echo "$as_me:$LINENO: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222
7223
7224 fi
7225
7226 if test "$PERL"; then
7227   pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
7228   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7229 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7230   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7231     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7232   then
7233     { $as_echo "$as_me:$LINENO: WARNING:
7234 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7235 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7236 $as_echo "$as_me: WARNING:
7237 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7238 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7239     PERL=""
7240   fi
7241 fi
7242
7243 if test -z "$PERL"; then
7244   { $as_echo "$as_me:$LINENO: WARNING:
7245 *** Without Perl you will not be able to build PostgreSQL from Git.
7246 *** You can obtain Perl from any CPAN mirror site.
7247 *** (If you are using the official distribution of PostgreSQL then you do not
7248 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7249 $as_echo "$as_me: WARNING:
7250 *** Without Perl you will not be able to build PostgreSQL from Git.
7251 *** You can obtain Perl from any CPAN mirror site.
7252 *** (If you are using the official distribution of PostgreSQL then you do not
7253 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7254 fi
7255
7256 if test "$with_perl" = yes; then
7257   if test -z "$PERL"; then
7258     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7259 $as_echo "$as_me: error: Perl not found" >&2;}
7260    { (exit 1); exit 1; }; }
7261   fi
7262
7263 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7264 $as_echo_n "checking for Perl archlibexp... " >&6; }
7265 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7266 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7267 $as_echo "$perl_archlibexp" >&6; }
7268 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7269 $as_echo_n "checking for Perl privlibexp... " >&6; }
7270 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7271 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7272 $as_echo "$perl_privlibexp" >&6; }
7273 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7274 $as_echo_n "checking for Perl useshrplib... " >&6; }
7275 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7276 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7277 $as_echo "$perl_useshrplib" >&6; }
7278
7279 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7280 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7281 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7282 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7283 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7284 if test -z "$perl_embed_ldflags" ; then
7285         { $as_echo "$as_me:$LINENO: result: no" >&5
7286 $as_echo "no" >&6; }
7287         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7288 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7289 installed." >&5
7290 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7291 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7292 installed." >&2;}
7293    { (exit 1); exit 1; }; }
7294 else
7295         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7296 $as_echo "$perl_embed_ldflags" >&6; }
7297 fi
7298
7299 fi
7300
7301 if test "$with_python" = yes; then
7302   # Extract the first word of "python", so it can be a program name with args.
7303 set dummy python; ac_word=$2
7304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_path_PYTHON+set}" = set; then
7307   $as_echo_n "(cached) " >&6
7308 else
7309   case $PYTHON in
7310   [\\/]* | ?:[\\/]*)
7311   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7312   ;;
7313   *)
7314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317   IFS=$as_save_IFS
7318   test -z "$as_dir" && as_dir=.
7319   for ac_exec_ext in '' $ac_executable_extensions; do
7320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7322     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323     break 2
7324   fi
7325 done
7326 done
7327 IFS=$as_save_IFS
7328
7329   ;;
7330 esac
7331 fi
7332 PYTHON=$ac_cv_path_PYTHON
7333 if test -n "$PYTHON"; then
7334   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7335 $as_echo "$PYTHON" >&6; }
7336 else
7337   { $as_echo "$as_me:$LINENO: result: no" >&5
7338 $as_echo "no" >&6; }
7339 fi
7340
7341
7342 if test x"$PYTHON" = x""; then
7343   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7344 $as_echo "$as_me: error: Python not found" >&2;}
7345    { (exit 1); exit 1; }; }
7346 fi
7347
7348
7349 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7350 $as_echo_n "checking for Python distutils module... " >&6; }
7351 if "${PYTHON}" -c 'import distutils' 2>&5
7352 then
7353     { $as_echo "$as_me:$LINENO: result: yes" >&5
7354 $as_echo "yes" >&6; }
7355 else
7356     { $as_echo "$as_me:$LINENO: result: no" >&5
7357 $as_echo "no" >&6; }
7358     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7359 $as_echo "$as_me: error: distutils module not found" >&2;}
7360    { (exit 1); exit 1; }; }
7361 fi
7362 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7363 $as_echo_n "checking Python configuration directory... " >&6; }
7364 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7365 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7366 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7367 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7368
7369 # This should be enough of a message.
7370 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7371 $as_echo "$python_configdir" >&6; }
7372
7373
7374 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7375 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7376
7377 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7378 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7379 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7380 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7381
7382 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7383 then
7384         # New way: use the official shared library
7385         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7386         python_libspec="-L${python_libdir} -l${ldlibrary}"
7387 else
7388         # Old way: use libpython from python_configdir
7389         python_libdir="${python_configdir}"
7390         # LDVERSION was introduced in Python 3.2.
7391         python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7392         if test x"${python_ldversion}" = x""; then
7393                 python_ldversion=$python_version
7394         fi
7395         python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7396 fi
7397
7398 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7399
7400 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7401 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7402
7403
7404 # threaded python is not supported on bsd's
7405 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7406 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7407 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7408 if test "$pythreads" = "1"; then
7409   { $as_echo "$as_me:$LINENO: result: yes" >&5
7410 $as_echo "yes" >&6; }
7411   case $host_os in
7412   openbsd*|freebsd*)
7413     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7414 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7415    { (exit 1); exit 1; }; }
7416     ;;
7417   esac
7418 else
7419   { $as_echo "$as_me:$LINENO: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423
7424 fi
7425
7426 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7427   # Extract the first word of "zic", so it can be a program name with args.
7428 set dummy zic; ac_word=$2
7429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if test "${ac_cv_path_ZIC+set}" = set; then
7432   $as_echo_n "(cached) " >&6
7433 else
7434   case $ZIC in
7435   [\\/]* | ?:[\\/]*)
7436   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7437   ;;
7438   *)
7439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442   IFS=$as_save_IFS
7443   test -z "$as_dir" && as_dir=.
7444   for ac_exec_ext in '' $ac_executable_extensions; do
7445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7447     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448     break 2
7449   fi
7450 done
7451 done
7452 IFS=$as_save_IFS
7453
7454   ;;
7455 esac
7456 fi
7457 ZIC=$ac_cv_path_ZIC
7458 if test -n "$ZIC"; then
7459   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7460 $as_echo "$ZIC" >&6; }
7461 else
7462   { $as_echo "$as_me:$LINENO: result: no" >&5
7463 $as_echo "no" >&6; }
7464 fi
7465
7466
7467   if test -z "$ZIC"; then
7468     { { $as_echo "$as_me:$LINENO: error:
7469 When cross-compiling, either use the option --with-system-tzdata to use
7470 existing time-zone data, or set the environment variable ZIC to a zic
7471 program to use during the build." >&5
7472 $as_echo "$as_me: error:
7473 When cross-compiling, either use the option --with-system-tzdata to use
7474 existing time-zone data, or set the environment variable ZIC to a zic
7475 program to use during the build." >&2;}
7476    { (exit 1); exit 1; }; }
7477   fi
7478 fi
7479
7480
7481 ##
7482 ## Libraries
7483 ##
7484 ## Most libraries are included only if they demonstrably provide a function
7485 ## we need, but libm is an exception: always include it, because there are
7486 ## too many compilers that play cute optimization games that will break
7487 ## probes for standard functions such as pow().
7488 ##
7489
7490
7491 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7492 $as_echo_n "checking for main in -lm... " >&6; }
7493 if test "${ac_cv_lib_m_main+set}" = set; then
7494   $as_echo_n "(cached) " >&6
7495 else
7496   ac_check_lib_save_LIBS=$LIBS
7497 LIBS="-lm  $LIBS"
7498 cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h.  */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h.  */
7504
7505
7506 int
7507 main ()
7508 {
7509 return main ();
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (ac_try="$ac_link"
7516 case "(($ac_try" in
7517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518   *) ac_try_echo=$ac_try;;
7519 esac
7520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7521 $as_echo "$ac_try_echo") >&5
7522   (eval "$ac_link") 2>conftest.er1
7523   ac_status=$?
7524   grep -v '^ *+' conftest.er1 >conftest.err
7525   rm -f conftest.er1
7526   cat conftest.err >&5
7527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); } && {
7529          test -z "$ac_c_werror_flag" ||
7530          test ! -s conftest.err
7531        } && test -s conftest$ac_exeext && {
7532          test "$cross_compiling" = yes ||
7533          $as_test_x conftest$ac_exeext
7534        }; then
7535   ac_cv_lib_m_main=yes
7536 else
7537   $as_echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7539
7540         ac_cv_lib_m_main=no
7541 fi
7542
7543 rm -rf conftest.dSYM
7544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7545       conftest$ac_exeext conftest.$ac_ext
7546 LIBS=$ac_check_lib_save_LIBS
7547 fi
7548 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7549 $as_echo "$ac_cv_lib_m_main" >&6; }
7550 if test "x$ac_cv_lib_m_main" = x""yes; then
7551   cat >>confdefs.h <<_ACEOF
7552 #define HAVE_LIBM 1
7553 _ACEOF
7554
7555   LIBS="-lm $LIBS"
7556
7557 fi
7558
7559 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7560 $as_echo_n "checking for library containing setproctitle... " >&6; }
7561 if test "${ac_cv_search_setproctitle+set}" = set; then
7562   $as_echo_n "(cached) " >&6
7563 else
7564   ac_func_search_save_LIBS=$LIBS
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h.  */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h.  */
7571
7572 /* Override any GCC internal prototype to avoid an error.
7573    Use char because int might match the return type of a GCC
7574    builtin and then its argument prototype would still apply.  */
7575 #ifdef __cplusplus
7576 extern "C"
7577 #endif
7578 char setproctitle ();
7579 int
7580 main ()
7581 {
7582 return setproctitle ();
7583   ;
7584   return 0;
7585 }
7586 _ACEOF
7587 for ac_lib in '' util; do
7588   if test -z "$ac_lib"; then
7589     ac_res="none required"
7590   else
7591     ac_res=-l$ac_lib
7592     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7593   fi
7594   rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (ac_try="$ac_link"
7596 case "(($ac_try" in
7597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598   *) ac_try_echo=$ac_try;;
7599 esac
7600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7601 $as_echo "$ac_try_echo") >&5
7602   (eval "$ac_link") 2>conftest.er1
7603   ac_status=$?
7604   grep -v '^ *+' conftest.er1 >conftest.err
7605   rm -f conftest.er1
7606   cat conftest.err >&5
7607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); } && {
7609          test -z "$ac_c_werror_flag" ||
7610          test ! -s conftest.err
7611        } && test -s conftest$ac_exeext && {
7612          test "$cross_compiling" = yes ||
7613          $as_test_x conftest$ac_exeext
7614        }; then
7615   ac_cv_search_setproctitle=$ac_res
7616 else
7617   $as_echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7619
7620
7621 fi
7622
7623 rm -rf conftest.dSYM
7624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7625       conftest$ac_exeext
7626   if test "${ac_cv_search_setproctitle+set}" = set; then
7627   break
7628 fi
7629 done
7630 if test "${ac_cv_search_setproctitle+set}" = set; then
7631   :
7632 else
7633   ac_cv_search_setproctitle=no
7634 fi
7635 rm conftest.$ac_ext
7636 LIBS=$ac_func_search_save_LIBS
7637 fi
7638 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7639 $as_echo "$ac_cv_search_setproctitle" >&6; }
7640 ac_res=$ac_cv_search_setproctitle
7641 if test "$ac_res" != no; then
7642   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7643
7644 fi
7645
7646 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7647 $as_echo_n "checking for library containing dlopen... " >&6; }
7648 if test "${ac_cv_search_dlopen+set}" = set; then
7649   $as_echo_n "(cached) " >&6
7650 else
7651   ac_func_search_save_LIBS=$LIBS
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h.  */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h.  */
7658
7659 /* Override any GCC internal prototype to avoid an error.
7660    Use char because int might match the return type of a GCC
7661    builtin and then its argument prototype would still apply.  */
7662 #ifdef __cplusplus
7663 extern "C"
7664 #endif
7665 char dlopen ();
7666 int
7667 main ()
7668 {
7669 return dlopen ();
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 for ac_lib in '' dl; do
7675   if test -z "$ac_lib"; then
7676     ac_res="none required"
7677   else
7678     ac_res=-l$ac_lib
7679     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7680   fi
7681   rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (ac_try="$ac_link"
7683 case "(($ac_try" in
7684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685   *) ac_try_echo=$ac_try;;
7686 esac
7687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688 $as_echo "$ac_try_echo") >&5
7689   (eval "$ac_link") 2>conftest.er1
7690   ac_status=$?
7691   grep -v '^ *+' conftest.er1 >conftest.err
7692   rm -f conftest.er1
7693   cat conftest.err >&5
7694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); } && {
7696          test -z "$ac_c_werror_flag" ||
7697          test ! -s conftest.err
7698        } && test -s conftest$ac_exeext && {
7699          test "$cross_compiling" = yes ||
7700          $as_test_x conftest$ac_exeext
7701        }; then
7702   ac_cv_search_dlopen=$ac_res
7703 else
7704   $as_echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707
7708 fi
7709
7710 rm -rf conftest.dSYM
7711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7712       conftest$ac_exeext
7713   if test "${ac_cv_search_dlopen+set}" = set; then
7714   break
7715 fi
7716 done
7717 if test "${ac_cv_search_dlopen+set}" = set; then
7718   :
7719 else
7720   ac_cv_search_dlopen=no
7721 fi
7722 rm conftest.$ac_ext
7723 LIBS=$ac_func_search_save_LIBS
7724 fi
7725 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7726 $as_echo "$ac_cv_search_dlopen" >&6; }
7727 ac_res=$ac_cv_search_dlopen
7728 if test "$ac_res" != no; then
7729   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7730
7731 fi
7732
7733 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7734 $as_echo_n "checking for library containing socket... " >&6; }
7735 if test "${ac_cv_search_socket+set}" = set; then
7736   $as_echo_n "(cached) " >&6
7737 else
7738   ac_func_search_save_LIBS=$LIBS
7739 cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745
7746 /* Override any GCC internal prototype to avoid an error.
7747    Use char because int might match the return type of a GCC
7748    builtin and then its argument prototype would still apply.  */
7749 #ifdef __cplusplus
7750 extern "C"
7751 #endif
7752 char socket ();
7753 int
7754 main ()
7755 {
7756 return socket ();
7757   ;
7758   return 0;
7759 }
7760 _ACEOF
7761 for ac_lib in '' socket wsock32; do
7762   if test -z "$ac_lib"; then
7763     ac_res="none required"
7764   else
7765     ac_res=-l$ac_lib
7766     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7767   fi
7768   rm -f conftest.$ac_objext conftest$ac_exeext
7769 if { (ac_try="$ac_link"
7770 case "(($ac_try" in
7771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772   *) ac_try_echo=$ac_try;;
7773 esac
7774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7775 $as_echo "$ac_try_echo") >&5
7776   (eval "$ac_link") 2>conftest.er1
7777   ac_status=$?
7778   grep -v '^ *+' conftest.er1 >conftest.err
7779   rm -f conftest.er1
7780   cat conftest.err >&5
7781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); } && {
7783          test -z "$ac_c_werror_flag" ||
7784          test ! -s conftest.err
7785        } && test -s conftest$ac_exeext && {
7786          test "$cross_compiling" = yes ||
7787          $as_test_x conftest$ac_exeext
7788        }; then
7789   ac_cv_search_socket=$ac_res
7790 else
7791   $as_echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794
7795 fi
7796
7797 rm -rf conftest.dSYM
7798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7799       conftest$ac_exeext
7800   if test "${ac_cv_search_socket+set}" = set; then
7801   break
7802 fi
7803 done
7804 if test "${ac_cv_search_socket+set}" = set; then
7805   :
7806 else
7807   ac_cv_search_socket=no
7808 fi
7809 rm conftest.$ac_ext
7810 LIBS=$ac_func_search_save_LIBS
7811 fi
7812 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7813 $as_echo "$ac_cv_search_socket" >&6; }
7814 ac_res=$ac_cv_search_socket
7815 if test "$ac_res" != no; then
7816   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7817
7818 fi
7819
7820 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7821 $as_echo_n "checking for library containing shl_load... " >&6; }
7822 if test "${ac_cv_search_shl_load+set}" = set; then
7823   $as_echo_n "(cached) " >&6
7824 else
7825   ac_func_search_save_LIBS=$LIBS
7826 cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h.  */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h.  */
7832
7833 /* Override any GCC internal prototype to avoid an error.
7834    Use char because int might match the return type of a GCC
7835    builtin and then its argument prototype would still apply.  */
7836 #ifdef __cplusplus
7837 extern "C"
7838 #endif
7839 char shl_load ();
7840 int
7841 main ()
7842 {
7843 return shl_load ();
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 for ac_lib in '' dld; do
7849   if test -z "$ac_lib"; then
7850     ac_res="none required"
7851   else
7852     ac_res=-l$ac_lib
7853     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7854   fi
7855   rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (ac_try="$ac_link"
7857 case "(($ac_try" in
7858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859   *) ac_try_echo=$ac_try;;
7860 esac
7861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863   (eval "$ac_link") 2>conftest.er1
7864   ac_status=$?
7865   grep -v '^ *+' conftest.er1 >conftest.err
7866   rm -f conftest.er1
7867   cat conftest.err >&5
7868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); } && {
7870          test -z "$ac_c_werror_flag" ||
7871          test ! -s conftest.err
7872        } && test -s conftest$ac_exeext && {
7873          test "$cross_compiling" = yes ||
7874          $as_test_x conftest$ac_exeext
7875        }; then
7876   ac_cv_search_shl_load=$ac_res
7877 else
7878   $as_echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7880
7881
7882 fi
7883
7884 rm -rf conftest.dSYM
7885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7886       conftest$ac_exeext
7887   if test "${ac_cv_search_shl_load+set}" = set; then
7888   break
7889 fi
7890 done
7891 if test "${ac_cv_search_shl_load+set}" = set; then
7892   :
7893 else
7894   ac_cv_search_shl_load=no
7895 fi
7896 rm conftest.$ac_ext
7897 LIBS=$ac_func_search_save_LIBS
7898 fi
7899 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7900 $as_echo "$ac_cv_search_shl_load" >&6; }
7901 ac_res=$ac_cv_search_shl_load
7902 if test "$ac_res" != no; then
7903   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7904
7905 fi
7906
7907 # We only use libld in port/dynloader/aix.c
7908 case $host_os in
7909      aix*)
7910         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7911 $as_echo_n "checking for library containing ldopen... " >&6; }
7912 if test "${ac_cv_search_ldopen+set}" = set; then
7913   $as_echo_n "(cached) " >&6
7914 else
7915   ac_func_search_save_LIBS=$LIBS
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h.  */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h.  */
7922
7923 /* Override any GCC internal prototype to avoid an error.
7924    Use char because int might match the return type of a GCC
7925    builtin and then its argument prototype would still apply.  */
7926 #ifdef __cplusplus
7927 extern "C"
7928 #endif
7929 char ldopen ();
7930 int
7931 main ()
7932 {
7933 return ldopen ();
7934   ;
7935   return 0;
7936 }
7937 _ACEOF
7938 for ac_lib in '' ld; do
7939   if test -z "$ac_lib"; then
7940     ac_res="none required"
7941   else
7942     ac_res=-l$ac_lib
7943     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7944   fi
7945   rm -f conftest.$ac_objext conftest$ac_exeext
7946 if { (ac_try="$ac_link"
7947 case "(($ac_try" in
7948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949   *) ac_try_echo=$ac_try;;
7950 esac
7951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7952 $as_echo "$ac_try_echo") >&5
7953   (eval "$ac_link") 2>conftest.er1
7954   ac_status=$?
7955   grep -v '^ *+' conftest.er1 >conftest.err
7956   rm -f conftest.er1
7957   cat conftest.err >&5
7958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); } && {
7960          test -z "$ac_c_werror_flag" ||
7961          test ! -s conftest.err
7962        } && test -s conftest$ac_exeext && {
7963          test "$cross_compiling" = yes ||
7964          $as_test_x conftest$ac_exeext
7965        }; then
7966   ac_cv_search_ldopen=$ac_res
7967 else
7968   $as_echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971
7972 fi
7973
7974 rm -rf conftest.dSYM
7975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7976       conftest$ac_exeext
7977   if test "${ac_cv_search_ldopen+set}" = set; then
7978   break
7979 fi
7980 done
7981 if test "${ac_cv_search_ldopen+set}" = set; then
7982   :
7983 else
7984   ac_cv_search_ldopen=no
7985 fi
7986 rm conftest.$ac_ext
7987 LIBS=$ac_func_search_save_LIBS
7988 fi
7989 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7990 $as_echo "$ac_cv_search_ldopen" >&6; }
7991 ac_res=$ac_cv_search_ldopen
7992 if test "$ac_res" != no; then
7993   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7994
7995 fi
7996
7997         ;;
7998 esac
7999 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8000 $as_echo_n "checking for library containing getopt_long... " >&6; }
8001 if test "${ac_cv_search_getopt_long+set}" = set; then
8002   $as_echo_n "(cached) " >&6
8003 else
8004   ac_func_search_save_LIBS=$LIBS
8005 cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h.  */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h.  */
8011
8012 /* Override any GCC internal prototype to avoid an error.
8013    Use char because int might match the return type of a GCC
8014    builtin and then its argument prototype would still apply.  */
8015 #ifdef __cplusplus
8016 extern "C"
8017 #endif
8018 char getopt_long ();
8019 int
8020 main ()
8021 {
8022 return getopt_long ();
8023   ;
8024   return 0;
8025 }
8026 _ACEOF
8027 for ac_lib in '' getopt gnugetopt; do
8028   if test -z "$ac_lib"; then
8029     ac_res="none required"
8030   else
8031     ac_res=-l$ac_lib
8032     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8033   fi
8034   rm -f conftest.$ac_objext conftest$ac_exeext
8035 if { (ac_try="$ac_link"
8036 case "(($ac_try" in
8037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038   *) ac_try_echo=$ac_try;;
8039 esac
8040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8041 $as_echo "$ac_try_echo") >&5
8042   (eval "$ac_link") 2>conftest.er1
8043   ac_status=$?
8044   grep -v '^ *+' conftest.er1 >conftest.err
8045   rm -f conftest.er1
8046   cat conftest.err >&5
8047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } && {
8049          test -z "$ac_c_werror_flag" ||
8050          test ! -s conftest.err
8051        } && test -s conftest$ac_exeext && {
8052          test "$cross_compiling" = yes ||
8053          $as_test_x conftest$ac_exeext
8054        }; then
8055   ac_cv_search_getopt_long=$ac_res
8056 else
8057   $as_echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060
8061 fi
8062
8063 rm -rf conftest.dSYM
8064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8065       conftest$ac_exeext
8066   if test "${ac_cv_search_getopt_long+set}" = set; then
8067   break
8068 fi
8069 done
8070 if test "${ac_cv_search_getopt_long+set}" = set; then
8071   :
8072 else
8073   ac_cv_search_getopt_long=no
8074 fi
8075 rm conftest.$ac_ext
8076 LIBS=$ac_func_search_save_LIBS
8077 fi
8078 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8079 $as_echo "$ac_cv_search_getopt_long" >&6; }
8080 ac_res=$ac_cv_search_getopt_long
8081 if test "$ac_res" != no; then
8082   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8083
8084 fi
8085
8086 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8087 $as_echo_n "checking for library containing crypt... " >&6; }
8088 if test "${ac_cv_search_crypt+set}" = set; then
8089   $as_echo_n "(cached) " >&6
8090 else
8091   ac_func_search_save_LIBS=$LIBS
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098
8099 /* Override any GCC internal prototype to avoid an error.
8100    Use char because int might match the return type of a GCC
8101    builtin and then its argument prototype would still apply.  */
8102 #ifdef __cplusplus
8103 extern "C"
8104 #endif
8105 char crypt ();
8106 int
8107 main ()
8108 {
8109 return crypt ();
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 for ac_lib in '' crypt; do
8115   if test -z "$ac_lib"; then
8116     ac_res="none required"
8117   else
8118     ac_res=-l$ac_lib
8119     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8120   fi
8121   rm -f conftest.$ac_objext conftest$ac_exeext
8122 if { (ac_try="$ac_link"
8123 case "(($ac_try" in
8124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125   *) ac_try_echo=$ac_try;;
8126 esac
8127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8128 $as_echo "$ac_try_echo") >&5
8129   (eval "$ac_link") 2>conftest.er1
8130   ac_status=$?
8131   grep -v '^ *+' conftest.er1 >conftest.err
8132   rm -f conftest.er1
8133   cat conftest.err >&5
8134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); } && {
8136          test -z "$ac_c_werror_flag" ||
8137          test ! -s conftest.err
8138        } && test -s conftest$ac_exeext && {
8139          test "$cross_compiling" = yes ||
8140          $as_test_x conftest$ac_exeext
8141        }; then
8142   ac_cv_search_crypt=$ac_res
8143 else
8144   $as_echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8146
8147
8148 fi
8149
8150 rm -rf conftest.dSYM
8151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8152       conftest$ac_exeext
8153   if test "${ac_cv_search_crypt+set}" = set; then
8154   break
8155 fi
8156 done
8157 if test "${ac_cv_search_crypt+set}" = set; then
8158   :
8159 else
8160   ac_cv_search_crypt=no
8161 fi
8162 rm conftest.$ac_ext
8163 LIBS=$ac_func_search_save_LIBS
8164 fi
8165 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8166 $as_echo "$ac_cv_search_crypt" >&6; }
8167 ac_res=$ac_cv_search_crypt
8168 if test "$ac_res" != no; then
8169   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8170
8171 fi
8172
8173 # Solaris:
8174 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8175 $as_echo_n "checking for library containing fdatasync... " >&6; }
8176 if test "${ac_cv_search_fdatasync+set}" = set; then
8177   $as_echo_n "(cached) " >&6
8178 else
8179   ac_func_search_save_LIBS=$LIBS
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h.  */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h.  */
8186
8187 /* Override any GCC internal prototype to avoid an error.
8188    Use char because int might match the return type of a GCC
8189    builtin and then its argument prototype would still apply.  */
8190 #ifdef __cplusplus
8191 extern "C"
8192 #endif
8193 char fdatasync ();
8194 int
8195 main ()
8196 {
8197 return fdatasync ();
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 for ac_lib in '' rt posix4; do
8203   if test -z "$ac_lib"; then
8204     ac_res="none required"
8205   else
8206     ac_res=-l$ac_lib
8207     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8208   fi
8209   rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8211 case "(($ac_try" in
8212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213   *) ac_try_echo=$ac_try;;
8214 esac
8215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8216 $as_echo "$ac_try_echo") >&5
8217   (eval "$ac_link") 2>conftest.er1
8218   ac_status=$?
8219   grep -v '^ *+' conftest.er1 >conftest.err
8220   rm -f conftest.er1
8221   cat conftest.err >&5
8222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); } && {
8224          test -z "$ac_c_werror_flag" ||
8225          test ! -s conftest.err
8226        } && test -s conftest$ac_exeext && {
8227          test "$cross_compiling" = yes ||
8228          $as_test_x conftest$ac_exeext
8229        }; then
8230   ac_cv_search_fdatasync=$ac_res
8231 else
8232   $as_echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8234
8235
8236 fi
8237
8238 rm -rf conftest.dSYM
8239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8240       conftest$ac_exeext
8241   if test "${ac_cv_search_fdatasync+set}" = set; then
8242   break
8243 fi
8244 done
8245 if test "${ac_cv_search_fdatasync+set}" = set; then
8246   :
8247 else
8248   ac_cv_search_fdatasync=no
8249 fi
8250 rm conftest.$ac_ext
8251 LIBS=$ac_func_search_save_LIBS
8252 fi
8253 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8254 $as_echo "$ac_cv_search_fdatasync" >&6; }
8255 ac_res=$ac_cv_search_fdatasync
8256 if test "$ac_res" != no; then
8257   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8258
8259 fi
8260
8261 # Required for thread_test.c on Solaris 2.5:
8262 # Other ports use it too (HP-UX) so test unconditionally
8263 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8264 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8265 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8266   $as_echo_n "(cached) " >&6
8267 else
8268   ac_func_search_save_LIBS=$LIBS
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275
8276 /* Override any GCC internal prototype to avoid an error.
8277    Use char because int might match the return type of a GCC
8278    builtin and then its argument prototype would still apply.  */
8279 #ifdef __cplusplus
8280 extern "C"
8281 #endif
8282 char gethostbyname_r ();
8283 int
8284 main ()
8285 {
8286 return gethostbyname_r ();
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 for ac_lib in '' nsl; do
8292   if test -z "$ac_lib"; then
8293     ac_res="none required"
8294   else
8295     ac_res=-l$ac_lib
8296     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8297   fi
8298   rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (ac_try="$ac_link"
8300 case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8305 $as_echo "$ac_try_echo") >&5
8306   (eval "$ac_link") 2>conftest.er1
8307   ac_status=$?
8308   grep -v '^ *+' conftest.er1 >conftest.err
8309   rm -f conftest.er1
8310   cat conftest.err >&5
8311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } && {
8313          test -z "$ac_c_werror_flag" ||
8314          test ! -s conftest.err
8315        } && test -s conftest$ac_exeext && {
8316          test "$cross_compiling" = yes ||
8317          $as_test_x conftest$ac_exeext
8318        }; then
8319   ac_cv_search_gethostbyname_r=$ac_res
8320 else
8321   $as_echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324
8325 fi
8326
8327 rm -rf conftest.dSYM
8328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8329       conftest$ac_exeext
8330   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8331   break
8332 fi
8333 done
8334 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8335   :
8336 else
8337   ac_cv_search_gethostbyname_r=no
8338 fi
8339 rm conftest.$ac_ext
8340 LIBS=$ac_func_search_save_LIBS
8341 fi
8342 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8343 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8344 ac_res=$ac_cv_search_gethostbyname_r
8345 if test "$ac_res" != no; then
8346   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8347
8348 fi
8349
8350 # Cygwin:
8351 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8352 $as_echo_n "checking for library containing shmget... " >&6; }
8353 if test "${ac_cv_search_shmget+set}" = set; then
8354   $as_echo_n "(cached) " >&6
8355 else
8356   ac_func_search_save_LIBS=$LIBS
8357 cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h.  */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h.  */
8363
8364 /* Override any GCC internal prototype to avoid an error.
8365    Use char because int might match the return type of a GCC
8366    builtin and then its argument prototype would still apply.  */
8367 #ifdef __cplusplus
8368 extern "C"
8369 #endif
8370 char shmget ();
8371 int
8372 main ()
8373 {
8374 return shmget ();
8375   ;
8376   return 0;
8377 }
8378 _ACEOF
8379 for ac_lib in '' cygipc; do
8380   if test -z "$ac_lib"; then
8381     ac_res="none required"
8382   else
8383     ac_res=-l$ac_lib
8384     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8385   fi
8386   rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (ac_try="$ac_link"
8388 case "(($ac_try" in
8389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390   *) ac_try_echo=$ac_try;;
8391 esac
8392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8393 $as_echo "$ac_try_echo") >&5
8394   (eval "$ac_link") 2>conftest.er1
8395   ac_status=$?
8396   grep -v '^ *+' conftest.er1 >conftest.err
8397   rm -f conftest.er1
8398   cat conftest.err >&5
8399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); } && {
8401          test -z "$ac_c_werror_flag" ||
8402          test ! -s conftest.err
8403        } && test -s conftest$ac_exeext && {
8404          test "$cross_compiling" = yes ||
8405          $as_test_x conftest$ac_exeext
8406        }; then
8407   ac_cv_search_shmget=$ac_res
8408 else
8409   $as_echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412
8413 fi
8414
8415 rm -rf conftest.dSYM
8416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8417       conftest$ac_exeext
8418   if test "${ac_cv_search_shmget+set}" = set; then
8419   break
8420 fi
8421 done
8422 if test "${ac_cv_search_shmget+set}" = set; then
8423   :
8424 else
8425   ac_cv_search_shmget=no
8426 fi
8427 rm conftest.$ac_ext
8428 LIBS=$ac_func_search_save_LIBS
8429 fi
8430 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8431 $as_echo "$ac_cv_search_shmget" >&6; }
8432 ac_res=$ac_cv_search_shmget
8433 if test "$ac_res" != no; then
8434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8435
8436 fi
8437
8438
8439 if test "$with_readline" = yes; then
8440
8441
8442 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8443 $as_echo_n "checking for library containing readline... " >&6; }
8444 if test "${pgac_cv_check_readline+set}" = set; then
8445   $as_echo_n "(cached) " >&6
8446 else
8447   pgac_cv_check_readline=no
8448 pgac_save_LIBS=$LIBS
8449 if test x"$with_libedit_preferred" != x"yes"
8450 then    READLINE_ORDER="-lreadline -ledit"
8451 else    READLINE_ORDER="-ledit -lreadline"
8452 fi
8453 for pgac_rllib in $READLINE_ORDER ; do
8454   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8455     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8456     cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462
8463 /* Override any GCC internal prototype to avoid an error.
8464    Use char because int might match the return type of a GCC
8465    builtin and then its argument prototype would still apply.  */
8466 #ifdef __cplusplus
8467 extern "C"
8468 #endif
8469 char readline ();
8470 int
8471 main ()
8472 {
8473 return readline ();
8474   ;
8475   return 0;
8476 }
8477 _ACEOF
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8480 case "(($ac_try" in
8481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482   *) ac_try_echo=$ac_try;;
8483 esac
8484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8485 $as_echo "$ac_try_echo") >&5
8486   (eval "$ac_link") 2>conftest.er1
8487   ac_status=$?
8488   grep -v '^ *+' conftest.er1 >conftest.err
8489   rm -f conftest.er1
8490   cat conftest.err >&5
8491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); } && {
8493          test -z "$ac_c_werror_flag" ||
8494          test ! -s conftest.err
8495        } && test -s conftest$ac_exeext && {
8496          test "$cross_compiling" = yes ||
8497          $as_test_x conftest$ac_exeext
8498        }; then
8499
8500       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8501       # recognize dependent libraries; assume curses is needed if we didn't
8502       # find any dependency.
8503       case $host_os in
8504         netbsd* | openbsd* | irix*)
8505           if test x"$pgac_lib" = x"" ; then
8506             pgac_lib=" -lcurses"
8507           fi ;;
8508       esac
8509
8510       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8511       break
8512
8513 else
8514   $as_echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517
8518 fi
8519
8520 rm -rf conftest.dSYM
8521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8522       conftest$ac_exeext conftest.$ac_ext
8523   done
8524   if test "$pgac_cv_check_readline" != no ; then
8525     break
8526   fi
8527 done
8528 LIBS=$pgac_save_LIBS
8529
8530 fi
8531 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8532 $as_echo "$pgac_cv_check_readline" >&6; }
8533 if test "$pgac_cv_check_readline" != no ; then
8534   LIBS="$pgac_cv_check_readline $LIBS"
8535
8536 cat >>confdefs.h <<\_ACEOF
8537 #define HAVE_LIBREADLINE 1
8538 _ACEOF
8539
8540 fi
8541
8542
8543   if test x"$pgac_cv_check_readline" = x"no"; then
8544     { { $as_echo "$as_me:$LINENO: error: readline library not found
8545 If you have readline already installed, see config.log for details on the
8546 failure.  It is possible the compiler isn't looking in the proper directory.
8547 Use --without-readline to disable readline support." >&5
8548 $as_echo "$as_me: error: readline library not found
8549 If you have readline already installed, see config.log for details on the
8550 failure.  It is possible the compiler isn't looking in the proper directory.
8551 Use --without-readline to disable readline support." >&2;}
8552    { (exit 1); exit 1; }; }
8553   fi
8554 fi
8555
8556 if test "$with_zlib" = yes; then
8557
8558 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8559 $as_echo_n "checking for inflate in -lz... " >&6; }
8560 if test "${ac_cv_lib_z_inflate+set}" = set; then
8561   $as_echo_n "(cached) " >&6
8562 else
8563   ac_check_lib_save_LIBS=$LIBS
8564 LIBS="-lz  $LIBS"
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h.  */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h.  */
8571
8572 /* Override any GCC internal prototype to avoid an error.
8573    Use char because int might match the return type of a GCC
8574    builtin and then its argument prototype would still apply.  */
8575 #ifdef __cplusplus
8576 extern "C"
8577 #endif
8578 char inflate ();
8579 int
8580 main ()
8581 {
8582 return inflate ();
8583   ;
8584   return 0;
8585 }
8586 _ACEOF
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8589 case "(($ac_try" in
8590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591   *) ac_try_echo=$ac_try;;
8592 esac
8593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8594 $as_echo "$ac_try_echo") >&5
8595   (eval "$ac_link") 2>conftest.er1
8596   ac_status=$?
8597   grep -v '^ *+' conftest.er1 >conftest.err
8598   rm -f conftest.er1
8599   cat conftest.err >&5
8600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); } && {
8602          test -z "$ac_c_werror_flag" ||
8603          test ! -s conftest.err
8604        } && test -s conftest$ac_exeext && {
8605          test "$cross_compiling" = yes ||
8606          $as_test_x conftest$ac_exeext
8607        }; then
8608   ac_cv_lib_z_inflate=yes
8609 else
8610   $as_echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613         ac_cv_lib_z_inflate=no
8614 fi
8615
8616 rm -rf conftest.dSYM
8617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8618       conftest$ac_exeext conftest.$ac_ext
8619 LIBS=$ac_check_lib_save_LIBS
8620 fi
8621 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8622 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8623 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8624   cat >>confdefs.h <<_ACEOF
8625 #define HAVE_LIBZ 1
8626 _ACEOF
8627
8628   LIBS="-lz $LIBS"
8629
8630 else
8631   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8632 If you have zlib already installed, see config.log for details on the
8633 failure.  It is possible the compiler isn't looking in the proper directory.
8634 Use --without-zlib to disable zlib support." >&5
8635 $as_echo "$as_me: error: zlib library not found
8636 If you have zlib already installed, see config.log for details on the
8637 failure.  It is possible the compiler isn't looking in the proper directory.
8638 Use --without-zlib to disable zlib support." >&2;}
8639    { (exit 1); exit 1; }; }
8640 fi
8641
8642 fi
8643
8644 if test "$enable_spinlocks" = yes; then
8645
8646 cat >>confdefs.h <<\_ACEOF
8647 #define HAVE_SPINLOCKS 1
8648 _ACEOF
8649
8650 else
8651   { $as_echo "$as_me:$LINENO: WARNING:
8652 *** Not using spinlocks will cause poor performance." >&5
8653 $as_echo "$as_me: WARNING:
8654 *** Not using spinlocks will cause poor performance." >&2;}
8655 fi
8656
8657 if test "$with_gssapi" = yes ; then
8658   if test "$PORTNAME" != "win32"; then
8659     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8660 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8661 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8662   $as_echo_n "(cached) " >&6
8663 else
8664   ac_func_search_save_LIBS=$LIBS
8665 cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h.  */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h.  */
8671
8672 /* Override any GCC internal prototype to avoid an error.
8673    Use char because int might match the return type of a GCC
8674    builtin and then its argument prototype would still apply.  */
8675 #ifdef __cplusplus
8676 extern "C"
8677 #endif
8678 char gss_init_sec_context ();
8679 int
8680 main ()
8681 {
8682 return gss_init_sec_context ();
8683   ;
8684   return 0;
8685 }
8686 _ACEOF
8687 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8688   if test -z "$ac_lib"; then
8689     ac_res="none required"
8690   else
8691     ac_res=-l$ac_lib
8692     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8693   fi
8694   rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (ac_try="$ac_link"
8696 case "(($ac_try" in
8697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698   *) ac_try_echo=$ac_try;;
8699 esac
8700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8701 $as_echo "$ac_try_echo") >&5
8702   (eval "$ac_link") 2>conftest.er1
8703   ac_status=$?
8704   grep -v '^ *+' conftest.er1 >conftest.err
8705   rm -f conftest.er1
8706   cat conftest.err >&5
8707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } && {
8709          test -z "$ac_c_werror_flag" ||
8710          test ! -s conftest.err
8711        } && test -s conftest$ac_exeext && {
8712          test "$cross_compiling" = yes ||
8713          $as_test_x conftest$ac_exeext
8714        }; then
8715   ac_cv_search_gss_init_sec_context=$ac_res
8716 else
8717   $as_echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8719
8720
8721 fi
8722
8723 rm -rf conftest.dSYM
8724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8725       conftest$ac_exeext
8726   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8727   break
8728 fi
8729 done
8730 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8731   :
8732 else
8733   ac_cv_search_gss_init_sec_context=no
8734 fi
8735 rm conftest.$ac_ext
8736 LIBS=$ac_func_search_save_LIBS
8737 fi
8738 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8739 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8740 ac_res=$ac_cv_search_gss_init_sec_context
8741 if test "$ac_res" != no; then
8742   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8743
8744 else
8745   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8746 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8747    { (exit 1); exit 1; }; }
8748 fi
8749
8750   else
8751     LIBS="$LIBS -lgssapi32"
8752   fi
8753 fi
8754
8755 if test "$with_krb5" = yes ; then
8756   if test "$PORTNAME" != "win32"; then
8757      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8758 $as_echo_n "checking for library containing com_err... " >&6; }
8759 if test "${ac_cv_search_com_err+set}" = set; then
8760   $as_echo_n "(cached) " >&6
8761 else
8762   ac_func_search_save_LIBS=$LIBS
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h.  */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h.  */
8769
8770 /* Override any GCC internal prototype to avoid an error.
8771    Use char because int might match the return type of a GCC
8772    builtin and then its argument prototype would still apply.  */
8773 #ifdef __cplusplus
8774 extern "C"
8775 #endif
8776 char com_err ();
8777 int
8778 main ()
8779 {
8780 return com_err ();
8781   ;
8782   return 0;
8783 }
8784 _ACEOF
8785 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8786   if test -z "$ac_lib"; then
8787     ac_res="none required"
8788   else
8789     ac_res=-l$ac_lib
8790     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8791   fi
8792   rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (ac_try="$ac_link"
8794 case "(($ac_try" in
8795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796   *) ac_try_echo=$ac_try;;
8797 esac
8798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8799 $as_echo "$ac_try_echo") >&5
8800   (eval "$ac_link") 2>conftest.er1
8801   ac_status=$?
8802   grep -v '^ *+' conftest.er1 >conftest.err
8803   rm -f conftest.er1
8804   cat conftest.err >&5
8805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); } && {
8807          test -z "$ac_c_werror_flag" ||
8808          test ! -s conftest.err
8809        } && test -s conftest$ac_exeext && {
8810          test "$cross_compiling" = yes ||
8811          $as_test_x conftest$ac_exeext
8812        }; then
8813   ac_cv_search_com_err=$ac_res
8814 else
8815   $as_echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8817
8818
8819 fi
8820
8821 rm -rf conftest.dSYM
8822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8823       conftest$ac_exeext
8824   if test "${ac_cv_search_com_err+set}" = set; then
8825   break
8826 fi
8827 done
8828 if test "${ac_cv_search_com_err+set}" = set; then
8829   :
8830 else
8831   ac_cv_search_com_err=no
8832 fi
8833 rm conftest.$ac_ext
8834 LIBS=$ac_func_search_save_LIBS
8835 fi
8836 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8837 $as_echo "$ac_cv_search_com_err" >&6; }
8838 ac_res=$ac_cv_search_com_err
8839 if test "$ac_res" != no; then
8840   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8841
8842 else
8843   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8844 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8845    { (exit 1); exit 1; }; }
8846 fi
8847
8848      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8849 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8850 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8851   $as_echo_n "(cached) " >&6
8852 else
8853   ac_func_search_save_LIBS=$LIBS
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h.  */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h.  */
8860
8861 /* Override any GCC internal prototype to avoid an error.
8862    Use char because int might match the return type of a GCC
8863    builtin and then its argument prototype would still apply.  */
8864 #ifdef __cplusplus
8865 extern "C"
8866 #endif
8867 char krb5_sendauth ();
8868 int
8869 main ()
8870 {
8871 return krb5_sendauth ();
8872   ;
8873   return 0;
8874 }
8875 _ACEOF
8876 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8877   if test -z "$ac_lib"; then
8878     ac_res="none required"
8879   else
8880     ac_res=-l$ac_lib
8881     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8882   fi
8883   rm -f conftest.$ac_objext conftest$ac_exeext
8884 if { (ac_try="$ac_link"
8885 case "(($ac_try" in
8886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887   *) ac_try_echo=$ac_try;;
8888 esac
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891   (eval "$ac_link") 2>conftest.er1
8892   ac_status=$?
8893   grep -v '^ *+' conftest.er1 >conftest.err
8894   rm -f conftest.er1
8895   cat conftest.err >&5
8896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } && {
8898          test -z "$ac_c_werror_flag" ||
8899          test ! -s conftest.err
8900        } && test -s conftest$ac_exeext && {
8901          test "$cross_compiling" = yes ||
8902          $as_test_x conftest$ac_exeext
8903        }; then
8904   ac_cv_search_krb5_sendauth=$ac_res
8905 else
8906   $as_echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909
8910 fi
8911
8912 rm -rf conftest.dSYM
8913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8914       conftest$ac_exeext
8915   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8916   break
8917 fi
8918 done
8919 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8920   :
8921 else
8922   ac_cv_search_krb5_sendauth=no
8923 fi
8924 rm conftest.$ac_ext
8925 LIBS=$ac_func_search_save_LIBS
8926 fi
8927 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8928 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8929 ac_res=$ac_cv_search_krb5_sendauth
8930 if test "$ac_res" != no; then
8931   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8932
8933 else
8934   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8935 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8936    { (exit 1); exit 1; }; }
8937 fi
8938
8939   else
8940      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8941 $as_echo_n "checking for library containing com_err... " >&6; }
8942 if test "${ac_cv_search_com_err+set}" = set; then
8943   $as_echo_n "(cached) " >&6
8944 else
8945   ac_func_search_save_LIBS=$LIBS
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h.  */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h.  */
8952
8953 /* Override any GCC internal prototype to avoid an error.
8954    Use char because int might match the return type of a GCC
8955    builtin and then its argument prototype would still apply.  */
8956 #ifdef __cplusplus
8957 extern "C"
8958 #endif
8959 char com_err ();
8960 int
8961 main ()
8962 {
8963 return com_err ();
8964   ;
8965   return 0;
8966 }
8967 _ACEOF
8968 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8969   if test -z "$ac_lib"; then
8970     ac_res="none required"
8971   else
8972     ac_res=-l$ac_lib
8973     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8974   fi
8975   rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (ac_try="$ac_link"
8977 case "(($ac_try" in
8978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979   *) ac_try_echo=$ac_try;;
8980 esac
8981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8982 $as_echo "$ac_try_echo") >&5
8983   (eval "$ac_link") 2>conftest.er1
8984   ac_status=$?
8985   grep -v '^ *+' conftest.er1 >conftest.err
8986   rm -f conftest.er1
8987   cat conftest.err >&5
8988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); } && {
8990          test -z "$ac_c_werror_flag" ||
8991          test ! -s conftest.err
8992        } && test -s conftest$ac_exeext && {
8993          test "$cross_compiling" = yes ||
8994          $as_test_x conftest$ac_exeext
8995        }; then
8996   ac_cv_search_com_err=$ac_res
8997 else
8998   $as_echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9000
9001
9002 fi
9003
9004 rm -rf conftest.dSYM
9005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9006       conftest$ac_exeext
9007   if test "${ac_cv_search_com_err+set}" = set; then
9008   break
9009 fi
9010 done
9011 if test "${ac_cv_search_com_err+set}" = set; then
9012   :
9013 else
9014   ac_cv_search_com_err=no
9015 fi
9016 rm conftest.$ac_ext
9017 LIBS=$ac_func_search_save_LIBS
9018 fi
9019 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9020 $as_echo "$ac_cv_search_com_err" >&6; }
9021 ac_res=$ac_cv_search_com_err
9022 if test "$ac_res" != no; then
9023   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9024
9025 else
9026   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9027 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9028    { (exit 1); exit 1; }; }
9029 fi
9030
9031   fi
9032 fi
9033
9034 if test "$with_openssl" = yes ; then
9035     if test "$PORTNAME" != "win32"; then
9036
9037 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9038 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9039 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9040   $as_echo_n "(cached) " >&6
9041 else
9042   ac_check_lib_save_LIBS=$LIBS
9043 LIBS="-lcrypto  $LIBS"
9044 cat >conftest.$ac_ext <<_ACEOF
9045 /* confdefs.h.  */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h.  */
9050
9051 /* Override any GCC internal prototype to avoid an error.
9052    Use char because int might match the return type of a GCC
9053    builtin and then its argument prototype would still apply.  */
9054 #ifdef __cplusplus
9055 extern "C"
9056 #endif
9057 char CRYPTO_new_ex_data ();
9058 int
9059 main ()
9060 {
9061 return CRYPTO_new_ex_data ();
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (ac_try="$ac_link"
9068 case "(($ac_try" in
9069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070   *) ac_try_echo=$ac_try;;
9071 esac
9072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9073 $as_echo "$ac_try_echo") >&5
9074   (eval "$ac_link") 2>conftest.er1
9075   ac_status=$?
9076   grep -v '^ *+' conftest.er1 >conftest.err
9077   rm -f conftest.er1
9078   cat conftest.err >&5
9079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); } && {
9081          test -z "$ac_c_werror_flag" ||
9082          test ! -s conftest.err
9083        } && test -s conftest$ac_exeext && {
9084          test "$cross_compiling" = yes ||
9085          $as_test_x conftest$ac_exeext
9086        }; then
9087   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9088 else
9089   $as_echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9091
9092         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9093 fi
9094
9095 rm -rf conftest.dSYM
9096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9097       conftest$ac_exeext conftest.$ac_ext
9098 LIBS=$ac_check_lib_save_LIBS
9099 fi
9100 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9101 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9102 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9103   cat >>confdefs.h <<_ACEOF
9104 #define HAVE_LIBCRYPTO 1
9105 _ACEOF
9106
9107   LIBS="-lcrypto $LIBS"
9108
9109 else
9110   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9111 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9112    { (exit 1); exit 1; }; }
9113 fi
9114
9115
9116 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9117 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9118 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9119   $as_echo_n "(cached) " >&6
9120 else
9121   ac_check_lib_save_LIBS=$LIBS
9122 LIBS="-lssl  $LIBS"
9123 cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h.  */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h.  */
9129
9130 /* Override any GCC internal prototype to avoid an error.
9131    Use char because int might match the return type of a GCC
9132    builtin and then its argument prototype would still apply.  */
9133 #ifdef __cplusplus
9134 extern "C"
9135 #endif
9136 char SSL_library_init ();
9137 int
9138 main ()
9139 {
9140 return SSL_library_init ();
9141   ;
9142   return 0;
9143 }
9144 _ACEOF
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9147 case "(($ac_try" in
9148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149   *) ac_try_echo=$ac_try;;
9150 esac
9151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9152 $as_echo "$ac_try_echo") >&5
9153   (eval "$ac_link") 2>conftest.er1
9154   ac_status=$?
9155   grep -v '^ *+' conftest.er1 >conftest.err
9156   rm -f conftest.er1
9157   cat conftest.err >&5
9158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); } && {
9160          test -z "$ac_c_werror_flag" ||
9161          test ! -s conftest.err
9162        } && test -s conftest$ac_exeext && {
9163          test "$cross_compiling" = yes ||
9164          $as_test_x conftest$ac_exeext
9165        }; then
9166   ac_cv_lib_ssl_SSL_library_init=yes
9167 else
9168   $as_echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171         ac_cv_lib_ssl_SSL_library_init=no
9172 fi
9173
9174 rm -rf conftest.dSYM
9175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9176       conftest$ac_exeext conftest.$ac_ext
9177 LIBS=$ac_check_lib_save_LIBS
9178 fi
9179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9180 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9181 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9182   cat >>confdefs.h <<_ACEOF
9183 #define HAVE_LIBSSL 1
9184 _ACEOF
9185
9186   LIBS="-lssl $LIBS"
9187
9188 else
9189   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9190 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9191    { (exit 1); exit 1; }; }
9192 fi
9193
9194   else
9195
9196 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9197 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
9198 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9199   $as_echo_n "(cached) " >&6
9200 else
9201   ac_check_lib_save_LIBS=$LIBS
9202 LIBS="-leay32  $LIBS"
9203 cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209
9210 /* Override any GCC internal prototype to avoid an error.
9211    Use char because int might match the return type of a GCC
9212    builtin and then its argument prototype would still apply.  */
9213 #ifdef __cplusplus
9214 extern "C"
9215 #endif
9216 char CRYPTO_new_ex_data ();
9217 int
9218 main ()
9219 {
9220 return CRYPTO_new_ex_data ();
9221   ;
9222   return 0;
9223 }
9224 _ACEOF
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (ac_try="$ac_link"
9227 case "(($ac_try" in
9228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229   *) ac_try_echo=$ac_try;;
9230 esac
9231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9232 $as_echo "$ac_try_echo") >&5
9233   (eval "$ac_link") 2>conftest.er1
9234   ac_status=$?
9235   grep -v '^ *+' conftest.er1 >conftest.err
9236   rm -f conftest.er1
9237   cat conftest.err >&5
9238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); } && {
9240          test -z "$ac_c_werror_flag" ||
9241          test ! -s conftest.err
9242        } && test -s conftest$ac_exeext && {
9243          test "$cross_compiling" = yes ||
9244          $as_test_x conftest$ac_exeext
9245        }; then
9246   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9247 else
9248   $as_echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9252 fi
9253
9254 rm -rf conftest.dSYM
9255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9256       conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9258 fi
9259 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9260 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9261 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9262   cat >>confdefs.h <<_ACEOF
9263 #define HAVE_LIBEAY32 1
9264 _ACEOF
9265
9266   LIBS="-leay32 $LIBS"
9267
9268 else
9269   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9270 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9271    { (exit 1); exit 1; }; }
9272 fi
9273
9274
9275 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9276 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9277 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9278   $as_echo_n "(cached) " >&6
9279 else
9280   ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-lssleay32  $LIBS"
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h.  */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h.  */
9288
9289 /* Override any GCC internal prototype to avoid an error.
9290    Use char because int might match the return type of a GCC
9291    builtin and then its argument prototype would still apply.  */
9292 #ifdef __cplusplus
9293 extern "C"
9294 #endif
9295 char SSL_library_init ();
9296 int
9297 main ()
9298 {
9299 return SSL_library_init ();
9300   ;
9301   return 0;
9302 }
9303 _ACEOF
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (ac_try="$ac_link"
9306 case "(($ac_try" in
9307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308   *) ac_try_echo=$ac_try;;
9309 esac
9310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9311 $as_echo "$ac_try_echo") >&5
9312   (eval "$ac_link") 2>conftest.er1
9313   ac_status=$?
9314   grep -v '^ *+' conftest.er1 >conftest.err
9315   rm -f conftest.er1
9316   cat conftest.err >&5
9317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } && {
9319          test -z "$ac_c_werror_flag" ||
9320          test ! -s conftest.err
9321        } && test -s conftest$ac_exeext && {
9322          test "$cross_compiling" = yes ||
9323          $as_test_x conftest$ac_exeext
9324        }; then
9325   ac_cv_lib_ssleay32_SSL_library_init=yes
9326 else
9327   $as_echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9329
9330         ac_cv_lib_ssleay32_SSL_library_init=no
9331 fi
9332
9333 rm -rf conftest.dSYM
9334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335       conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9337 fi
9338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9339 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9340 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9341   cat >>confdefs.h <<_ACEOF
9342 #define HAVE_LIBSSLEAY32 1
9343 _ACEOF
9344
9345   LIBS="-lssleay32 $LIBS"
9346
9347 else
9348   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9349 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9350    { (exit 1); exit 1; }; }
9351 fi
9352
9353   fi
9354 fi
9355
9356 if test "$with_pam" = yes ; then
9357
9358 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9359 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9360 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9361   $as_echo_n "(cached) " >&6
9362 else
9363   ac_check_lib_save_LIBS=$LIBS
9364 LIBS="-lpam  $LIBS"
9365 cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h.  */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h.  */
9371
9372 /* Override any GCC internal prototype to avoid an error.
9373    Use char because int might match the return type of a GCC
9374    builtin and then its argument prototype would still apply.  */
9375 #ifdef __cplusplus
9376 extern "C"
9377 #endif
9378 char pam_start ();
9379 int
9380 main ()
9381 {
9382 return pam_start ();
9383   ;
9384   return 0;
9385 }
9386 _ACEOF
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (ac_try="$ac_link"
9389 case "(($ac_try" in
9390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391   *) ac_try_echo=$ac_try;;
9392 esac
9393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9394 $as_echo "$ac_try_echo") >&5
9395   (eval "$ac_link") 2>conftest.er1
9396   ac_status=$?
9397   grep -v '^ *+' conftest.er1 >conftest.err
9398   rm -f conftest.er1
9399   cat conftest.err >&5
9400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } && {
9402          test -z "$ac_c_werror_flag" ||
9403          test ! -s conftest.err
9404        } && test -s conftest$ac_exeext && {
9405          test "$cross_compiling" = yes ||
9406          $as_test_x conftest$ac_exeext
9407        }; then
9408   ac_cv_lib_pam_pam_start=yes
9409 else
9410   $as_echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9412
9413         ac_cv_lib_pam_pam_start=no
9414 fi
9415
9416 rm -rf conftest.dSYM
9417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418       conftest$ac_exeext conftest.$ac_ext
9419 LIBS=$ac_check_lib_save_LIBS
9420 fi
9421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9422 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9423 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9424   cat >>confdefs.h <<_ACEOF
9425 #define HAVE_LIBPAM 1
9426 _ACEOF
9427
9428   LIBS="-lpam $LIBS"
9429
9430 else
9431   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9432 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9433    { (exit 1); exit 1; }; }
9434 fi
9435
9436 fi
9437
9438 if test "$with_libxml" = yes ; then
9439
9440 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9441 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9442 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9443   $as_echo_n "(cached) " >&6
9444 else
9445   ac_check_lib_save_LIBS=$LIBS
9446 LIBS="-lxml2  $LIBS"
9447 cat >conftest.$ac_ext <<_ACEOF
9448 /* confdefs.h.  */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h.  */
9453
9454 /* Override any GCC internal prototype to avoid an error.
9455    Use char because int might match the return type of a GCC
9456    builtin and then its argument prototype would still apply.  */
9457 #ifdef __cplusplus
9458 extern "C"
9459 #endif
9460 char xmlSaveToBuffer ();
9461 int
9462 main ()
9463 {
9464 return xmlSaveToBuffer ();
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (ac_try="$ac_link"
9471 case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9476 $as_echo "$ac_try_echo") >&5
9477   (eval "$ac_link") 2>conftest.er1
9478   ac_status=$?
9479   grep -v '^ *+' conftest.er1 >conftest.err
9480   rm -f conftest.er1
9481   cat conftest.err >&5
9482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); } && {
9484          test -z "$ac_c_werror_flag" ||
9485          test ! -s conftest.err
9486        } && test -s conftest$ac_exeext && {
9487          test "$cross_compiling" = yes ||
9488          $as_test_x conftest$ac_exeext
9489        }; then
9490   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9491 else
9492   $as_echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9494
9495         ac_cv_lib_xml2_xmlSaveToBuffer=no
9496 fi
9497
9498 rm -rf conftest.dSYM
9499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9500       conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_lib_save_LIBS
9502 fi
9503 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9504 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9505 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9506   cat >>confdefs.h <<_ACEOF
9507 #define HAVE_LIBXML2 1
9508 _ACEOF
9509
9510   LIBS="-lxml2 $LIBS"
9511
9512 else
9513   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9514 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9515    { (exit 1); exit 1; }; }
9516 fi
9517
9518 fi
9519
9520 if test "$with_libxslt" = yes ; then
9521
9522 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9523 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9524 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9525   $as_echo_n "(cached) " >&6
9526 else
9527   ac_check_lib_save_LIBS=$LIBS
9528 LIBS="-lxslt  $LIBS"
9529 cat >conftest.$ac_ext <<_ACEOF
9530 /* confdefs.h.  */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h.  */
9535
9536 /* Override any GCC internal prototype to avoid an error.
9537    Use char because int might match the return type of a GCC
9538    builtin and then its argument prototype would still apply.  */
9539 #ifdef __cplusplus
9540 extern "C"
9541 #endif
9542 char xsltCleanupGlobals ();
9543 int
9544 main ()
9545 {
9546 return xsltCleanupGlobals ();
9547   ;
9548   return 0;
9549 }
9550 _ACEOF
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (ac_try="$ac_link"
9553 case "(($ac_try" in
9554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555   *) ac_try_echo=$ac_try;;
9556 esac
9557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9558 $as_echo "$ac_try_echo") >&5
9559   (eval "$ac_link") 2>conftest.er1
9560   ac_status=$?
9561   grep -v '^ *+' conftest.er1 >conftest.err
9562   rm -f conftest.er1
9563   cat conftest.err >&5
9564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); } && {
9566          test -z "$ac_c_werror_flag" ||
9567          test ! -s conftest.err
9568        } && test -s conftest$ac_exeext && {
9569          test "$cross_compiling" = yes ||
9570          $as_test_x conftest$ac_exeext
9571        }; then
9572   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9573 else
9574   $as_echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577         ac_cv_lib_xslt_xsltCleanupGlobals=no
9578 fi
9579
9580 rm -rf conftest.dSYM
9581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9582       conftest$ac_exeext conftest.$ac_ext
9583 LIBS=$ac_check_lib_save_LIBS
9584 fi
9585 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9586 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9587 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9588   cat >>confdefs.h <<_ACEOF
9589 #define HAVE_LIBXSLT 1
9590 _ACEOF
9591
9592   LIBS="-lxslt $LIBS"
9593
9594 else
9595   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9596 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9597    { (exit 1); exit 1; }; }
9598 fi
9599
9600 fi
9601
9602 # for contrib/sepgsql
9603 if test "$with_selinux" = yes; then
9604
9605 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9606 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9607 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9608   $as_echo_n "(cached) " >&6
9609 else
9610   ac_check_lib_save_LIBS=$LIBS
9611 LIBS="-lselinux  $LIBS"
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h.  */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h.  */
9618
9619 /* Override any GCC internal prototype to avoid an error.
9620    Use char because int might match the return type of a GCC
9621    builtin and then its argument prototype would still apply.  */
9622 #ifdef __cplusplus
9623 extern "C"
9624 #endif
9625 char selinux_status_open ();
9626 int
9627 main ()
9628 {
9629 return selinux_status_open ();
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9636 case "(($ac_try" in
9637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638   *) ac_try_echo=$ac_try;;
9639 esac
9640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9641 $as_echo "$ac_try_echo") >&5
9642   (eval "$ac_link") 2>conftest.er1
9643   ac_status=$?
9644   grep -v '^ *+' conftest.er1 >conftest.err
9645   rm -f conftest.er1
9646   cat conftest.err >&5
9647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); } && {
9649          test -z "$ac_c_werror_flag" ||
9650          test ! -s conftest.err
9651        } && test -s conftest$ac_exeext && {
9652          test "$cross_compiling" = yes ||
9653          $as_test_x conftest$ac_exeext
9654        }; then
9655   ac_cv_lib_selinux_selinux_status_open=yes
9656 else
9657   $as_echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9659
9660         ac_cv_lib_selinux_selinux_status_open=no
9661 fi
9662
9663 rm -rf conftest.dSYM
9664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9665       conftest$ac_exeext conftest.$ac_ext
9666 LIBS=$ac_check_lib_save_LIBS
9667 fi
9668 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9669 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9670 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9671   cat >>confdefs.h <<_ACEOF
9672 #define HAVE_LIBSELINUX 1
9673 _ACEOF
9674
9675   LIBS="-lselinux $LIBS"
9676
9677 else
9678   { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9679 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9680    { (exit 1); exit 1; }; }
9681 fi
9682
9683 fi
9684
9685 # for contrib/uuid-ossp
9686 if test "$with_ossp_uuid" = yes ; then
9687   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9688 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9689 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9690   $as_echo_n "(cached) " >&6
9691 else
9692   ac_check_lib_save_LIBS=$LIBS
9693 LIBS="-lossp-uuid  $LIBS"
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h.  */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h.  */
9700
9701 /* Override any GCC internal prototype to avoid an error.
9702    Use char because int might match the return type of a GCC
9703    builtin and then its argument prototype would still apply.  */
9704 #ifdef __cplusplus
9705 extern "C"
9706 #endif
9707 char uuid_export ();
9708 int
9709 main ()
9710 {
9711 return uuid_export ();
9712   ;
9713   return 0;
9714 }
9715 _ACEOF
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (ac_try="$ac_link"
9718 case "(($ac_try" in
9719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720   *) ac_try_echo=$ac_try;;
9721 esac
9722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9723 $as_echo "$ac_try_echo") >&5
9724   (eval "$ac_link") 2>conftest.er1
9725   ac_status=$?
9726   grep -v '^ *+' conftest.er1 >conftest.err
9727   rm -f conftest.er1
9728   cat conftest.err >&5
9729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); } && {
9731          test -z "$ac_c_werror_flag" ||
9732          test ! -s conftest.err
9733        } && test -s conftest$ac_exeext && {
9734          test "$cross_compiling" = yes ||
9735          $as_test_x conftest$ac_exeext
9736        }; then
9737   ac_cv_lib_ossp_uuid_uuid_export=yes
9738 else
9739   $as_echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742         ac_cv_lib_ossp_uuid_uuid_export=no
9743 fi
9744
9745 rm -rf conftest.dSYM
9746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9747       conftest$ac_exeext conftest.$ac_ext
9748 LIBS=$ac_check_lib_save_LIBS
9749 fi
9750 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9751 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9752 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9753   OSSP_UUID_LIBS="-lossp-uuid"
9754 else
9755   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9756 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9757 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9758   $as_echo_n "(cached) " >&6
9759 else
9760   ac_check_lib_save_LIBS=$LIBS
9761 LIBS="-luuid  $LIBS"
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h.  */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h.  */
9768
9769 /* Override any GCC internal prototype to avoid an error.
9770    Use char because int might match the return type of a GCC
9771    builtin and then its argument prototype would still apply.  */
9772 #ifdef __cplusplus
9773 extern "C"
9774 #endif
9775 char uuid_export ();
9776 int
9777 main ()
9778 {
9779 return uuid_export ();
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (ac_try="$ac_link"
9786 case "(($ac_try" in
9787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788   *) ac_try_echo=$ac_try;;
9789 esac
9790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792   (eval "$ac_link") 2>conftest.er1
9793   ac_status=$?
9794   grep -v '^ *+' conftest.er1 >conftest.err
9795   rm -f conftest.er1
9796   cat conftest.err >&5
9797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); } && {
9799          test -z "$ac_c_werror_flag" ||
9800          test ! -s conftest.err
9801        } && test -s conftest$ac_exeext && {
9802          test "$cross_compiling" = yes ||
9803          $as_test_x conftest$ac_exeext
9804        }; then
9805   ac_cv_lib_uuid_uuid_export=yes
9806 else
9807   $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810         ac_cv_lib_uuid_uuid_export=no
9811 fi
9812
9813 rm -rf conftest.dSYM
9814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9815       conftest$ac_exeext conftest.$ac_ext
9816 LIBS=$ac_check_lib_save_LIBS
9817 fi
9818 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9819 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9820 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9821   OSSP_UUID_LIBS="-luuid"
9822 else
9823   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9824 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9825    { (exit 1); exit 1; }; }
9826 fi
9827
9828 fi
9829
9830 fi
9831
9832
9833
9834 ##
9835 ## Header files
9836 ##
9837
9838 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9839 $as_echo_n "checking for ANSI C header files... " >&6; }
9840 if test "${ac_cv_header_stdc+set}" = set; then
9841   $as_echo_n "(cached) " >&6
9842 else
9843   cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h.  */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h.  */
9849 #include <stdlib.h>
9850 #include <stdarg.h>
9851 #include <string.h>
9852 #include <float.h>
9853
9854 int
9855 main ()
9856 {
9857
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext
9863 if { (ac_try="$ac_compile"
9864 case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869 $as_echo "$ac_try_echo") >&5
9870   (eval "$ac_compile") 2>conftest.er1
9871   ac_status=$?
9872   grep -v '^ *+' conftest.er1 >conftest.err
9873   rm -f conftest.er1
9874   cat conftest.err >&5
9875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } && {
9877          test -z "$ac_c_werror_flag" ||
9878          test ! -s conftest.err
9879        } && test -s conftest.$ac_objext; then
9880   ac_cv_header_stdc=yes
9881 else
9882   $as_echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9884
9885         ac_cv_header_stdc=no
9886 fi
9887
9888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889
9890 if test $ac_cv_header_stdc = yes; then
9891   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9892   cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898 #include <string.h>
9899
9900 _ACEOF
9901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9902   $EGREP "memchr" >/dev/null 2>&1; then
9903   :
9904 else
9905   ac_cv_header_stdc=no
9906 fi
9907 rm -f conftest*
9908
9909 fi
9910
9911 if test $ac_cv_header_stdc = yes; then
9912   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9913   cat >conftest.$ac_ext <<_ACEOF
9914 /* confdefs.h.  */
9915 _ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h.  */
9919 #include <stdlib.h>
9920
9921 _ACEOF
9922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9923   $EGREP "free" >/dev/null 2>&1; then
9924   :
9925 else
9926   ac_cv_header_stdc=no
9927 fi
9928 rm -f conftest*
9929
9930 fi
9931
9932 if test $ac_cv_header_stdc = yes; then
9933   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9934   if test "$cross_compiling" = yes; then
9935   :
9936 else
9937   cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943 #include <ctype.h>
9944 #include <stdlib.h>
9945 #if ((' ' & 0x0FF) == 0x020)
9946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9948 #else
9949 # define ISLOWER(c) \
9950                    (('a' <= (c) && (c) <= 'i') \
9951                      || ('j' <= (c) && (c) <= 'r') \
9952                      || ('s' <= (c) && (c) <= 'z'))
9953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9954 #endif
9955
9956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9957 int
9958 main ()
9959 {
9960   int i;
9961   for (i = 0; i < 256; i++)
9962     if (XOR (islower (i), ISLOWER (i))
9963         || toupper (i) != TOUPPER (i))
9964       return 2;
9965   return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9970 case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9975 $as_echo "$ac_try_echo") >&5
9976   (eval "$ac_link") 2>&5
9977   ac_status=$?
9978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9980   { (case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9985 $as_echo "$ac_try_echo") >&5
9986   (eval "$ac_try") 2>&5
9987   ac_status=$?
9988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); }; }; then
9990   :
9991 else
9992   $as_echo "$as_me: program exited with status $ac_status" >&5
9993 $as_echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9995
9996 ( exit $ac_status )
9997 ac_cv_header_stdc=no
9998 fi
9999 rm -rf conftest.dSYM
10000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10001 fi
10002
10003
10004 fi
10005 fi
10006 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10007 $as_echo "$ac_cv_header_stdc" >&6; }
10008 if test $ac_cv_header_stdc = yes; then
10009
10010 cat >>confdefs.h <<\_ACEOF
10011 #define STDC_HEADERS 1
10012 _ACEOF
10013
10014 fi
10015
10016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10027                   inttypes.h stdint.h unistd.h
10028 do
10029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10031 $as_echo_n "checking for $ac_header... " >&6; }
10032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10033   $as_echo_n "(cached) " >&6
10034 else
10035   cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041 $ac_includes_default
10042
10043 #include <$ac_header>
10044 _ACEOF
10045 rm -f conftest.$ac_objext
10046 if { (ac_try="$ac_compile"
10047 case "(($ac_try" in
10048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049   *) ac_try_echo=$ac_try;;
10050 esac
10051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10052 $as_echo "$ac_try_echo") >&5
10053   (eval "$ac_compile") 2>conftest.er1
10054   ac_status=$?
10055   grep -v '^ *+' conftest.er1 >conftest.err
10056   rm -f conftest.er1
10057   cat conftest.err >&5
10058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); } && {
10060          test -z "$ac_c_werror_flag" ||
10061          test ! -s conftest.err
10062        } && test -s conftest.$ac_objext; then
10063   eval "$as_ac_Header=yes"
10064 else
10065   $as_echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068         eval "$as_ac_Header=no"
10069 fi
10070
10071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10072 fi
10073 ac_res=`eval 'as_val=${'$as_ac_Header'}
10074                  $as_echo "$as_val"'`
10075                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10076 $as_echo "$ac_res" >&6; }
10077 as_val=`eval 'as_val=${'$as_ac_Header'}
10078                  $as_echo "$as_val"'`
10079    if test "x$as_val" = x""yes; then
10080   cat >>confdefs.h <<_ACEOF
10081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10082 _ACEOF
10083
10084 fi
10085
10086 done
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
10121 do
10122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10124   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10125 $as_echo_n "checking for $ac_header... " >&6; }
10126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10127   $as_echo_n "(cached) " >&6
10128 fi
10129 ac_res=`eval 'as_val=${'$as_ac_Header'}
10130                  $as_echo "$as_val"'`
10131                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10132 $as_echo "$ac_res" >&6; }
10133 else
10134   # Is the header compilable?
10135 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10136 $as_echo_n "checking $ac_header usability... " >&6; }
10137 cat >conftest.$ac_ext <<_ACEOF
10138 /* confdefs.h.  */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h.  */
10143 $ac_includes_default
10144 #include <$ac_header>
10145 _ACEOF
10146 rm -f conftest.$ac_objext
10147 if { (ac_try="$ac_compile"
10148 case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10153 $as_echo "$ac_try_echo") >&5
10154   (eval "$ac_compile") 2>conftest.er1
10155   ac_status=$?
10156   grep -v '^ *+' conftest.er1 >conftest.err
10157   rm -f conftest.er1
10158   cat conftest.err >&5
10159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); } && {
10161          test -z "$ac_c_werror_flag" ||
10162          test ! -s conftest.err
10163        } && test -s conftest.$ac_objext; then
10164   ac_header_compiler=yes
10165 else
10166   $as_echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10168
10169         ac_header_compiler=no
10170 fi
10171
10172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10173 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10174 $as_echo "$ac_header_compiler" >&6; }
10175
10176 # Is the header present?
10177 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10178 $as_echo_n "checking $ac_header presence... " >&6; }
10179 cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h.  */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h.  */
10185 #include <$ac_header>
10186 _ACEOF
10187 if { (ac_try="$ac_cpp conftest.$ac_ext"
10188 case "(($ac_try" in
10189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190   *) ac_try_echo=$ac_try;;
10191 esac
10192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10193 $as_echo "$ac_try_echo") >&5
10194   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10195   ac_status=$?
10196   grep -v '^ *+' conftest.er1 >conftest.err
10197   rm -f conftest.er1
10198   cat conftest.err >&5
10199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } >/dev/null && {
10201          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10202          test ! -s conftest.err
10203        }; then
10204   ac_header_preproc=yes
10205 else
10206   $as_echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209   ac_header_preproc=no
10210 fi
10211
10212 rm -f conftest.err conftest.$ac_ext
10213 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10214 $as_echo "$ac_header_preproc" >&6; }
10215
10216 # So?  What about this header?
10217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10218   yes:no: )
10219     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10220 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10221     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10222 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10223     ac_header_preproc=yes
10224     ;;
10225   no:yes:* )
10226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10227 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10229 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10233 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10234     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10235 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10236     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10237 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10238     ( cat <<\_ASBOX
10239 ## ---------------------------------------- ##
10240 ## Report this to pgsql-bugs@postgresql.org ##
10241 ## ---------------------------------------- ##
10242 _ASBOX
10243      ) | sed "s/^/$as_me: WARNING:     /" >&2
10244     ;;
10245 esac
10246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10247 $as_echo_n "checking for $ac_header... " >&6; }
10248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10249   $as_echo_n "(cached) " >&6
10250 else
10251   eval "$as_ac_Header=\$ac_header_preproc"
10252 fi
10253 ac_res=`eval 'as_val=${'$as_ac_Header'}
10254                  $as_echo "$as_val"'`
10255                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10256 $as_echo "$ac_res" >&6; }
10257
10258 fi
10259 as_val=`eval 'as_val=${'$as_ac_Header'}
10260                  $as_echo "$as_val"'`
10261    if test "x$as_val" = x""yes; then
10262   cat >>confdefs.h <<_ACEOF
10263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10264 _ACEOF
10265
10266 fi
10267
10268 done
10269
10270
10271 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10272 # is included first.
10273
10274 for ac_header in net/if.h
10275 do
10276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10278 $as_echo_n "checking for $ac_header... " >&6; }
10279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10280   $as_echo_n "(cached) " >&6
10281 else
10282   cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h.  */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h.  */
10288 $ac_includes_default
10289 #ifdef HAVE_SYS_SOCKET_H
10290 #include <sys/socket.h>
10291 #endif
10292
10293
10294 #include <$ac_header>
10295 _ACEOF
10296 rm -f conftest.$ac_objext
10297 if { (ac_try="$ac_compile"
10298 case "(($ac_try" in
10299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300   *) ac_try_echo=$ac_try;;
10301 esac
10302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303 $as_echo "$ac_try_echo") >&5
10304   (eval "$ac_compile") 2>conftest.er1
10305   ac_status=$?
10306   grep -v '^ *+' conftest.er1 >conftest.err
10307   rm -f conftest.er1
10308   cat conftest.err >&5
10309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } && {
10311          test -z "$ac_c_werror_flag" ||
10312          test ! -s conftest.err
10313        } && test -s conftest.$ac_objext; then
10314   eval "$as_ac_Header=yes"
10315 else
10316   $as_echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319         eval "$as_ac_Header=no"
10320 fi
10321
10322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10323 fi
10324 ac_res=`eval 'as_val=${'$as_ac_Header'}
10325                  $as_echo "$as_val"'`
10326                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10327 $as_echo "$ac_res" >&6; }
10328 as_val=`eval 'as_val=${'$as_ac_Header'}
10329                  $as_echo "$as_val"'`
10330    if test "x$as_val" = x""yes; then
10331   cat >>confdefs.h <<_ACEOF
10332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10333 _ACEOF
10334
10335 fi
10336
10337 done
10338
10339
10340 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10341 # netinet/in.h is included first.
10342
10343 for ac_header in netinet/in.h
10344 do
10345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10347   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10348 $as_echo_n "checking for $ac_header... " >&6; }
10349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10350   $as_echo_n "(cached) " >&6
10351 fi
10352 ac_res=`eval 'as_val=${'$as_ac_Header'}
10353                  $as_echo "$as_val"'`
10354                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10355 $as_echo "$ac_res" >&6; }
10356 else
10357   # Is the header compilable?
10358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10359 $as_echo_n "checking $ac_header usability... " >&6; }
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h.  */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h.  */
10366 $ac_includes_default
10367 #include <$ac_header>
10368 _ACEOF
10369 rm -f conftest.$ac_objext
10370 if { (ac_try="$ac_compile"
10371 case "(($ac_try" in
10372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373   *) ac_try_echo=$ac_try;;
10374 esac
10375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10376 $as_echo "$ac_try_echo") >&5
10377   (eval "$ac_compile") 2>conftest.er1
10378   ac_status=$?
10379   grep -v '^ *+' conftest.er1 >conftest.err
10380   rm -f conftest.er1
10381   cat conftest.err >&5
10382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); } && {
10384          test -z "$ac_c_werror_flag" ||
10385          test ! -s conftest.err
10386        } && test -s conftest.$ac_objext; then
10387   ac_header_compiler=yes
10388 else
10389   $as_echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10391
10392         ac_header_compiler=no
10393 fi
10394
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10397 $as_echo "$ac_header_compiler" >&6; }
10398
10399 # Is the header present?
10400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10401 $as_echo_n "checking $ac_header presence... " >&6; }
10402 cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h.  */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h.  */
10408 #include <$ac_header>
10409 _ACEOF
10410 if { (ac_try="$ac_cpp conftest.$ac_ext"
10411 case "(($ac_try" in
10412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413   *) ac_try_echo=$ac_try;;
10414 esac
10415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10416 $as_echo "$ac_try_echo") >&5
10417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10418   ac_status=$?
10419   grep -v '^ *+' conftest.er1 >conftest.err
10420   rm -f conftest.er1
10421   cat conftest.err >&5
10422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } >/dev/null && {
10424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10425          test ! -s conftest.err
10426        }; then
10427   ac_header_preproc=yes
10428 else
10429   $as_echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10431
10432   ac_header_preproc=no
10433 fi
10434
10435 rm -f conftest.err conftest.$ac_ext
10436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10437 $as_echo "$ac_header_preproc" >&6; }
10438
10439 # So?  What about this header?
10440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10441   yes:no: )
10442     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10446     ac_header_preproc=yes
10447     ;;
10448   no:yes:* )
10449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10452 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10453     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10455     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10456 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10457     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10461     ( cat <<\_ASBOX
10462 ## ---------------------------------------- ##
10463 ## Report this to pgsql-bugs@postgresql.org ##
10464 ## ---------------------------------------- ##
10465 _ASBOX
10466      ) | sed "s/^/$as_me: WARNING:     /" >&2
10467     ;;
10468 esac
10469 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10470 $as_echo_n "checking for $ac_header... " >&6; }
10471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10472   $as_echo_n "(cached) " >&6
10473 else
10474   eval "$as_ac_Header=\$ac_header_preproc"
10475 fi
10476 ac_res=`eval 'as_val=${'$as_ac_Header'}
10477                  $as_echo "$as_val"'`
10478                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10479 $as_echo "$ac_res" >&6; }
10480
10481 fi
10482 as_val=`eval 'as_val=${'$as_ac_Header'}
10483                  $as_echo "$as_val"'`
10484    if test "x$as_val" = x""yes; then
10485   cat >>confdefs.h <<_ACEOF
10486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10487 _ACEOF
10488
10489 fi
10490
10491 done
10492
10493
10494 for ac_header in netinet/tcp.h
10495 do
10496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10497 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10498 $as_echo_n "checking for $ac_header... " >&6; }
10499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10500   $as_echo_n "(cached) " >&6
10501 else
10502   cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h.  */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h.  */
10508 $ac_includes_default
10509 #ifdef HAVE_NETINET_IN_H
10510 #include <netinet/in.h>
10511 #endif
10512
10513
10514 #include <$ac_header>
10515 _ACEOF
10516 rm -f conftest.$ac_objext
10517 if { (ac_try="$ac_compile"
10518 case "(($ac_try" in
10519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520   *) ac_try_echo=$ac_try;;
10521 esac
10522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10523 $as_echo "$ac_try_echo") >&5
10524   (eval "$ac_compile") 2>conftest.er1
10525   ac_status=$?
10526   grep -v '^ *+' conftest.er1 >conftest.err
10527   rm -f conftest.er1
10528   cat conftest.err >&5
10529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); } && {
10531          test -z "$ac_c_werror_flag" ||
10532          test ! -s conftest.err
10533        } && test -s conftest.$ac_objext; then
10534   eval "$as_ac_Header=yes"
10535 else
10536   $as_echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10538
10539         eval "$as_ac_Header=no"
10540 fi
10541
10542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543 fi
10544 ac_res=`eval 'as_val=${'$as_ac_Header'}
10545                  $as_echo "$as_val"'`
10546                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10547 $as_echo "$ac_res" >&6; }
10548 as_val=`eval 'as_val=${'$as_ac_Header'}
10549                  $as_echo "$as_val"'`
10550    if test "x$as_val" = x""yes; then
10551   cat >>confdefs.h <<_ACEOF
10552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10553 _ACEOF
10554
10555 fi
10556
10557 done
10558
10559
10560 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10561
10562 for ac_header in readline/readline.h
10563 do
10564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10566   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10567 $as_echo_n "checking for $ac_header... " >&6; }
10568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10569   $as_echo_n "(cached) " >&6
10570 fi
10571 ac_res=`eval 'as_val=${'$as_ac_Header'}
10572                  $as_echo "$as_val"'`
10573                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10574 $as_echo "$ac_res" >&6; }
10575 else
10576   # Is the header compilable?
10577 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10578 $as_echo_n "checking $ac_header usability... " >&6; }
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585 $ac_includes_default
10586 #include <$ac_header>
10587 _ACEOF
10588 rm -f conftest.$ac_objext
10589 if { (ac_try="$ac_compile"
10590 case "(($ac_try" in
10591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592   *) ac_try_echo=$ac_try;;
10593 esac
10594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10595 $as_echo "$ac_try_echo") >&5
10596   (eval "$ac_compile") 2>conftest.er1
10597   ac_status=$?
10598   grep -v '^ *+' conftest.er1 >conftest.err
10599   rm -f conftest.er1
10600   cat conftest.err >&5
10601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } && {
10603          test -z "$ac_c_werror_flag" ||
10604          test ! -s conftest.err
10605        } && test -s conftest.$ac_objext; then
10606   ac_header_compiler=yes
10607 else
10608   $as_echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10610
10611         ac_header_compiler=no
10612 fi
10613
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10616 $as_echo "$ac_header_compiler" >&6; }
10617
10618 # Is the header present?
10619 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10620 $as_echo_n "checking $ac_header presence... " >&6; }
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h.  */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h.  */
10627 #include <$ac_header>
10628 _ACEOF
10629 if { (ac_try="$ac_cpp conftest.$ac_ext"
10630 case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10635 $as_echo "$ac_try_echo") >&5
10636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10637   ac_status=$?
10638   grep -v '^ *+' conftest.er1 >conftest.err
10639   rm -f conftest.er1
10640   cat conftest.err >&5
10641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); } >/dev/null && {
10643          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10644          test ! -s conftest.err
10645        }; then
10646   ac_header_preproc=yes
10647 else
10648   $as_echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10650
10651   ac_header_preproc=no
10652 fi
10653
10654 rm -f conftest.err conftest.$ac_ext
10655 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10656 $as_echo "$ac_header_preproc" >&6; }
10657
10658 # So?  What about this header?
10659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10660   yes:no: )
10661     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10662 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10663     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10665     ac_header_preproc=yes
10666     ;;
10667   no:yes:* )
10668     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10669 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10670     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10671 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10672     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10673 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10674     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10675 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10676     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10677 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10678     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10679 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10680     ( cat <<\_ASBOX
10681 ## ---------------------------------------- ##
10682 ## Report this to pgsql-bugs@postgresql.org ##
10683 ## ---------------------------------------- ##
10684 _ASBOX
10685      ) | sed "s/^/$as_me: WARNING:     /" >&2
10686     ;;
10687 esac
10688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10689 $as_echo_n "checking for $ac_header... " >&6; }
10690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10691   $as_echo_n "(cached) " >&6
10692 else
10693   eval "$as_ac_Header=\$ac_header_preproc"
10694 fi
10695 ac_res=`eval 'as_val=${'$as_ac_Header'}
10696                  $as_echo "$as_val"'`
10697                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10698 $as_echo "$ac_res" >&6; }
10699
10700 fi
10701 as_val=`eval 'as_val=${'$as_ac_Header'}
10702                  $as_echo "$as_val"'`
10703    if test "x$as_val" = x""yes; then
10704   cat >>confdefs.h <<_ACEOF
10705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10706 _ACEOF
10707
10708 else
10709
10710 for ac_header in readline.h
10711 do
10712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10714   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10715 $as_echo_n "checking for $ac_header... " >&6; }
10716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10717   $as_echo_n "(cached) " >&6
10718 fi
10719 ac_res=`eval 'as_val=${'$as_ac_Header'}
10720                  $as_echo "$as_val"'`
10721                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10722 $as_echo "$ac_res" >&6; }
10723 else
10724   # Is the header compilable?
10725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10726 $as_echo_n "checking $ac_header usability... " >&6; }
10727 cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h.  */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h.  */
10733 $ac_includes_default
10734 #include <$ac_header>
10735 _ACEOF
10736 rm -f conftest.$ac_objext
10737 if { (ac_try="$ac_compile"
10738 case "(($ac_try" in
10739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740   *) ac_try_echo=$ac_try;;
10741 esac
10742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10743 $as_echo "$ac_try_echo") >&5
10744   (eval "$ac_compile") 2>conftest.er1
10745   ac_status=$?
10746   grep -v '^ *+' conftest.er1 >conftest.err
10747   rm -f conftest.er1
10748   cat conftest.err >&5
10749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } && {
10751          test -z "$ac_c_werror_flag" ||
10752          test ! -s conftest.err
10753        } && test -s conftest.$ac_objext; then
10754   ac_header_compiler=yes
10755 else
10756   $as_echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759         ac_header_compiler=no
10760 fi
10761
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10764 $as_echo "$ac_header_compiler" >&6; }
10765
10766 # Is the header present?
10767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10768 $as_echo_n "checking $ac_header presence... " >&6; }
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h.  */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h.  */
10775 #include <$ac_header>
10776 _ACEOF
10777 if { (ac_try="$ac_cpp conftest.$ac_ext"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10783 $as_echo "$ac_try_echo") >&5
10784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10785   ac_status=$?
10786   grep -v '^ *+' conftest.er1 >conftest.err
10787   rm -f conftest.er1
10788   cat conftest.err >&5
10789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } >/dev/null && {
10791          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10792          test ! -s conftest.err
10793        }; then
10794   ac_header_preproc=yes
10795 else
10796   $as_echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799   ac_header_preproc=no
10800 fi
10801
10802 rm -f conftest.err conftest.$ac_ext
10803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10804 $as_echo "$ac_header_preproc" >&6; }
10805
10806 # So?  What about this header?
10807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10808   yes:no: )
10809     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10811     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10813     ac_header_preproc=yes
10814     ;;
10815   no:yes:* )
10816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10819 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10823 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10828     ( cat <<\_ASBOX
10829 ## ---------------------------------------- ##
10830 ## Report this to pgsql-bugs@postgresql.org ##
10831 ## ---------------------------------------- ##
10832 _ASBOX
10833      ) | sed "s/^/$as_me: WARNING:     /" >&2
10834     ;;
10835 esac
10836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10837 $as_echo_n "checking for $ac_header... " >&6; }
10838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10839   $as_echo_n "(cached) " >&6
10840 else
10841   eval "$as_ac_Header=\$ac_header_preproc"
10842 fi
10843 ac_res=`eval 'as_val=${'$as_ac_Header'}
10844                  $as_echo "$as_val"'`
10845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10846 $as_echo "$ac_res" >&6; }
10847
10848 fi
10849 as_val=`eval 'as_val=${'$as_ac_Header'}
10850                  $as_echo "$as_val"'`
10851    if test "x$as_val" = x""yes; then
10852   cat >>confdefs.h <<_ACEOF
10853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10854 _ACEOF
10855
10856 else
10857   { { $as_echo "$as_me:$LINENO: error: readline header not found
10858 If you have readline already installed, see config.log for details on the
10859 failure.  It is possible the compiler isn't looking in the proper directory.
10860 Use --without-readline to disable readline support." >&5
10861 $as_echo "$as_me: error: readline header not found
10862 If you have readline already installed, see config.log for details on the
10863 failure.  It is possible the compiler isn't looking in the proper directory.
10864 Use --without-readline to disable readline support." >&2;}
10865    { (exit 1); exit 1; }; }
10866 fi
10867
10868 done
10869
10870 fi
10871
10872 done
10873
10874
10875 for ac_header in readline/history.h
10876 do
10877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10879   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10880 $as_echo_n "checking for $ac_header... " >&6; }
10881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10882   $as_echo_n "(cached) " >&6
10883 fi
10884 ac_res=`eval 'as_val=${'$as_ac_Header'}
10885                  $as_echo "$as_val"'`
10886                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10887 $as_echo "$ac_res" >&6; }
10888 else
10889   # Is the header compilable?
10890 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10891 $as_echo_n "checking $ac_header usability... " >&6; }
10892 cat >conftest.$ac_ext <<_ACEOF
10893 /* confdefs.h.  */
10894 _ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h.  */
10898 $ac_includes_default
10899 #include <$ac_header>
10900 _ACEOF
10901 rm -f conftest.$ac_objext
10902 if { (ac_try="$ac_compile"
10903 case "(($ac_try" in
10904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905   *) ac_try_echo=$ac_try;;
10906 esac
10907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908 $as_echo "$ac_try_echo") >&5
10909   (eval "$ac_compile") 2>conftest.er1
10910   ac_status=$?
10911   grep -v '^ *+' conftest.er1 >conftest.err
10912   rm -f conftest.er1
10913   cat conftest.err >&5
10914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); } && {
10916          test -z "$ac_c_werror_flag" ||
10917          test ! -s conftest.err
10918        } && test -s conftest.$ac_objext; then
10919   ac_header_compiler=yes
10920 else
10921   $as_echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924         ac_header_compiler=no
10925 fi
10926
10927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10929 $as_echo "$ac_header_compiler" >&6; }
10930
10931 # Is the header present?
10932 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10933 $as_echo_n "checking $ac_header presence... " >&6; }
10934 cat >conftest.$ac_ext <<_ACEOF
10935 /* confdefs.h.  */
10936 _ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h.  */
10940 #include <$ac_header>
10941 _ACEOF
10942 if { (ac_try="$ac_cpp conftest.$ac_ext"
10943 case "(($ac_try" in
10944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945   *) ac_try_echo=$ac_try;;
10946 esac
10947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10948 $as_echo "$ac_try_echo") >&5
10949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10950   ac_status=$?
10951   grep -v '^ *+' conftest.er1 >conftest.err
10952   rm -f conftest.er1
10953   cat conftest.err >&5
10954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); } >/dev/null && {
10956          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10957          test ! -s conftest.err
10958        }; then
10959   ac_header_preproc=yes
10960 else
10961   $as_echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964   ac_header_preproc=no
10965 fi
10966
10967 rm -f conftest.err conftest.$ac_ext
10968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10969 $as_echo "$ac_header_preproc" >&6; }
10970
10971 # So?  What about this header?
10972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10973   yes:no: )
10974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10975 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10978     ac_header_preproc=yes
10979     ;;
10980   no:yes:* )
10981     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10982 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10983     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10984 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10985     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10986 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10987     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10988 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10989     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10991     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10992 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10993     ( cat <<\_ASBOX
10994 ## ---------------------------------------- ##
10995 ## Report this to pgsql-bugs@postgresql.org ##
10996 ## ---------------------------------------- ##
10997 _ASBOX
10998      ) | sed "s/^/$as_me: WARNING:     /" >&2
10999     ;;
11000 esac
11001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11002 $as_echo_n "checking for $ac_header... " >&6; }
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004   $as_echo_n "(cached) " >&6
11005 else
11006   eval "$as_ac_Header=\$ac_header_preproc"
11007 fi
11008 ac_res=`eval 'as_val=${'$as_ac_Header'}
11009                  $as_echo "$as_val"'`
11010                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11011 $as_echo "$ac_res" >&6; }
11012
11013 fi
11014 as_val=`eval 'as_val=${'$as_ac_Header'}
11015                  $as_echo "$as_val"'`
11016    if test "x$as_val" = x""yes; then
11017   cat >>confdefs.h <<_ACEOF
11018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11019 _ACEOF
11020
11021 else
11022
11023 for ac_header in history.h
11024 do
11025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11027   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11028 $as_echo_n "checking for $ac_header... " >&6; }
11029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11030   $as_echo_n "(cached) " >&6
11031 fi
11032 ac_res=`eval 'as_val=${'$as_ac_Header'}
11033                  $as_echo "$as_val"'`
11034                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11035 $as_echo "$ac_res" >&6; }
11036 else
11037   # Is the header compilable?
11038 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11039 $as_echo_n "checking $ac_header usability... " >&6; }
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046 $ac_includes_default
11047 #include <$ac_header>
11048 _ACEOF
11049 rm -f conftest.$ac_objext
11050 if { (ac_try="$ac_compile"
11051 case "(($ac_try" in
11052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053   *) ac_try_echo=$ac_try;;
11054 esac
11055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11056 $as_echo "$ac_try_echo") >&5
11057   (eval "$ac_compile") 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } && {
11064          test -z "$ac_c_werror_flag" ||
11065          test ! -s conftest.err
11066        } && test -s conftest.$ac_objext; then
11067   ac_header_compiler=yes
11068 else
11069   $as_echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072         ac_header_compiler=no
11073 fi
11074
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11077 $as_echo "$ac_header_compiler" >&6; }
11078
11079 # Is the header present?
11080 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11081 $as_echo_n "checking $ac_header presence... " >&6; }
11082 cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h.  */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h.  */
11088 #include <$ac_header>
11089 _ACEOF
11090 if { (ac_try="$ac_cpp conftest.$ac_ext"
11091 case "(($ac_try" in
11092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093   *) ac_try_echo=$ac_try;;
11094 esac
11095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11096 $as_echo "$ac_try_echo") >&5
11097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11098   ac_status=$?
11099   grep -v '^ *+' conftest.er1 >conftest.err
11100   rm -f conftest.er1
11101   cat conftest.err >&5
11102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } >/dev/null && {
11104          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11105          test ! -s conftest.err
11106        }; then
11107   ac_header_preproc=yes
11108 else
11109   $as_echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11111
11112   ac_header_preproc=no
11113 fi
11114
11115 rm -f conftest.err conftest.$ac_ext
11116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11117 $as_echo "$ac_header_preproc" >&6; }
11118
11119 # So?  What about this header?
11120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11121   yes:no: )
11122     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11123 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11126     ac_header_preproc=yes
11127     ;;
11128   no:yes:* )
11129     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11130 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11131     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11132 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11133     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11134 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11135     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11136 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11140 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11141     ( cat <<\_ASBOX
11142 ## ---------------------------------------- ##
11143 ## Report this to pgsql-bugs@postgresql.org ##
11144 ## ---------------------------------------- ##
11145 _ASBOX
11146      ) | sed "s/^/$as_me: WARNING:     /" >&2
11147     ;;
11148 esac
11149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11150 $as_echo_n "checking for $ac_header... " >&6; }
11151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11152   $as_echo_n "(cached) " >&6
11153 else
11154   eval "$as_ac_Header=\$ac_header_preproc"
11155 fi
11156 ac_res=`eval 'as_val=${'$as_ac_Header'}
11157                  $as_echo "$as_val"'`
11158                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11159 $as_echo "$ac_res" >&6; }
11160
11161 fi
11162 as_val=`eval 'as_val=${'$as_ac_Header'}
11163                  $as_echo "$as_val"'`
11164    if test "x$as_val" = x""yes; then
11165   cat >>confdefs.h <<_ACEOF
11166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11167 _ACEOF
11168
11169 else
11170   { { $as_echo "$as_me:$LINENO: error: history header not found
11171 If you have readline already installed, see config.log for details on the
11172 failure.  It is possible the compiler isn't looking in the proper directory.
11173 Use --without-readline to disable readline support." >&5
11174 $as_echo "$as_me: error: history header not found
11175 If you have readline already installed, see config.log for details on the
11176 failure.  It is possible the compiler isn't looking in the proper directory.
11177 Use --without-readline to disable readline support." >&2;}
11178    { (exit 1); exit 1; }; }
11179 fi
11180
11181 done
11182
11183 fi
11184
11185 done
11186
11187 fi
11188
11189 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11190 # Some installations of libedit usurp /usr/include/readline/, which seems
11191 # bad practice, since in combined installations readline will have its headers
11192 # there.  We might have to resort to AC_EGREP checks to make sure we found
11193 # the proper header...
11194
11195 for ac_header in editline/readline.h
11196 do
11197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11199   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 $as_echo_n "checking for $ac_header... " >&6; }
11201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202   $as_echo_n "(cached) " >&6
11203 fi
11204 ac_res=`eval 'as_val=${'$as_ac_Header'}
11205                  $as_echo "$as_val"'`
11206                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11207 $as_echo "$ac_res" >&6; }
11208 else
11209   # Is the header compilable?
11210 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11211 $as_echo_n "checking $ac_header usability... " >&6; }
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h.  */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h.  */
11218 $ac_includes_default
11219 #include <$ac_header>
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (ac_try="$ac_compile"
11223 case "(($ac_try" in
11224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225   *) ac_try_echo=$ac_try;;
11226 esac
11227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11228 $as_echo "$ac_try_echo") >&5
11229   (eval "$ac_compile") 2>conftest.er1
11230   ac_status=$?
11231   grep -v '^ *+' conftest.er1 >conftest.err
11232   rm -f conftest.er1
11233   cat conftest.err >&5
11234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); } && {
11236          test -z "$ac_c_werror_flag" ||
11237          test ! -s conftest.err
11238        } && test -s conftest.$ac_objext; then
11239   ac_header_compiler=yes
11240 else
11241   $as_echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11243
11244         ac_header_compiler=no
11245 fi
11246
11247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11249 $as_echo "$ac_header_compiler" >&6; }
11250
11251 # Is the header present?
11252 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11253 $as_echo_n "checking $ac_header presence... " >&6; }
11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h.  */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h.  */
11260 #include <$ac_header>
11261 _ACEOF
11262 if { (ac_try="$ac_cpp conftest.$ac_ext"
11263 case "(($ac_try" in
11264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265   *) ac_try_echo=$ac_try;;
11266 esac
11267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11268 $as_echo "$ac_try_echo") >&5
11269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11270   ac_status=$?
11271   grep -v '^ *+' conftest.er1 >conftest.err
11272   rm -f conftest.er1
11273   cat conftest.err >&5
11274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); } >/dev/null && {
11276          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11277          test ! -s conftest.err
11278        }; then
11279   ac_header_preproc=yes
11280 else
11281   $as_echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284   ac_header_preproc=no
11285 fi
11286
11287 rm -f conftest.err conftest.$ac_ext
11288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289 $as_echo "$ac_header_preproc" >&6; }
11290
11291 # So?  What about this header?
11292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11293   yes:no: )
11294     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11298     ac_header_preproc=yes
11299     ;;
11300   no:yes:* )
11301     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11304 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11305     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11308 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11309     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11313     ( cat <<\_ASBOX
11314 ## ---------------------------------------- ##
11315 ## Report this to pgsql-bugs@postgresql.org ##
11316 ## ---------------------------------------- ##
11317 _ASBOX
11318      ) | sed "s/^/$as_me: WARNING:     /" >&2
11319     ;;
11320 esac
11321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11322 $as_echo_n "checking for $ac_header... " >&6; }
11323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324   $as_echo_n "(cached) " >&6
11325 else
11326   eval "$as_ac_Header=\$ac_header_preproc"
11327 fi
11328 ac_res=`eval 'as_val=${'$as_ac_Header'}
11329                  $as_echo "$as_val"'`
11330                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11331 $as_echo "$ac_res" >&6; }
11332
11333 fi
11334 as_val=`eval 'as_val=${'$as_ac_Header'}
11335                  $as_echo "$as_val"'`
11336    if test "x$as_val" = x""yes; then
11337   cat >>confdefs.h <<_ACEOF
11338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11339 _ACEOF
11340
11341 else
11342
11343 for ac_header in readline.h
11344 do
11345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11348 $as_echo_n "checking for $ac_header... " >&6; }
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350   $as_echo_n "(cached) " >&6
11351 fi
11352 ac_res=`eval 'as_val=${'$as_ac_Header'}
11353                  $as_echo "$as_val"'`
11354                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11355 $as_echo "$ac_res" >&6; }
11356 else
11357   # Is the header compilable?
11358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11359 $as_echo_n "checking $ac_header usability... " >&6; }
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h.  */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h.  */
11366 $ac_includes_default
11367 #include <$ac_header>
11368 _ACEOF
11369 rm -f conftest.$ac_objext
11370 if { (ac_try="$ac_compile"
11371 case "(($ac_try" in
11372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373   *) ac_try_echo=$ac_try;;
11374 esac
11375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11376 $as_echo "$ac_try_echo") >&5
11377   (eval "$ac_compile") 2>conftest.er1
11378   ac_status=$?
11379   grep -v '^ *+' conftest.er1 >conftest.err
11380   rm -f conftest.er1
11381   cat conftest.err >&5
11382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); } && {
11384          test -z "$ac_c_werror_flag" ||
11385          test ! -s conftest.err
11386        } && test -s conftest.$ac_objext; then
11387   ac_header_compiler=yes
11388 else
11389   $as_echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11391
11392         ac_header_compiler=no
11393 fi
11394
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11397 $as_echo "$ac_header_compiler" >&6; }
11398
11399 # Is the header present?
11400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11401 $as_echo_n "checking $ac_header presence... " >&6; }
11402 cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h.  */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h.  */
11408 #include <$ac_header>
11409 _ACEOF
11410 if { (ac_try="$ac_cpp conftest.$ac_ext"
11411 case "(($ac_try" in
11412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413   *) ac_try_echo=$ac_try;;
11414 esac
11415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11416 $as_echo "$ac_try_echo") >&5
11417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11418   ac_status=$?
11419   grep -v '^ *+' conftest.er1 >conftest.err
11420   rm -f conftest.er1
11421   cat conftest.err >&5
11422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); } >/dev/null && {
11424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11425          test ! -s conftest.err
11426        }; then
11427   ac_header_preproc=yes
11428 else
11429   $as_echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432   ac_header_preproc=no
11433 fi
11434
11435 rm -f conftest.err conftest.$ac_ext
11436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 $as_echo "$ac_header_preproc" >&6; }
11438
11439 # So?  What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441   yes:no: )
11442     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446     ac_header_preproc=yes
11447     ;;
11448   no:yes:* )
11449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11452 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11453     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11456 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11457     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11461     ( cat <<\_ASBOX
11462 ## ---------------------------------------- ##
11463 ## Report this to pgsql-bugs@postgresql.org ##
11464 ## ---------------------------------------- ##
11465 _ASBOX
11466      ) | sed "s/^/$as_me: WARNING:     /" >&2
11467     ;;
11468 esac
11469 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11470 $as_echo_n "checking for $ac_header... " >&6; }
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472   $as_echo_n "(cached) " >&6
11473 else
11474   eval "$as_ac_Header=\$ac_header_preproc"
11475 fi
11476 ac_res=`eval 'as_val=${'$as_ac_Header'}
11477                  $as_echo "$as_val"'`
11478                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11479 $as_echo "$ac_res" >&6; }
11480
11481 fi
11482 as_val=`eval 'as_val=${'$as_ac_Header'}
11483                  $as_echo "$as_val"'`
11484    if test "x$as_val" = x""yes; then
11485   cat >>confdefs.h <<_ACEOF
11486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11487 _ACEOF
11488
11489 else
11490
11491 for ac_header in readline/readline.h
11492 do
11493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11496 $as_echo_n "checking for $ac_header... " >&6; }
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498   $as_echo_n "(cached) " >&6
11499 fi
11500 ac_res=`eval 'as_val=${'$as_ac_Header'}
11501                  $as_echo "$as_val"'`
11502                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11503 $as_echo "$ac_res" >&6; }
11504 else
11505   # Is the header compilable?
11506 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11507 $as_echo_n "checking $ac_header usability... " >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h.  */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h.  */
11514 $ac_includes_default
11515 #include <$ac_header>
11516 _ACEOF
11517 rm -f conftest.$ac_objext
11518 if { (ac_try="$ac_compile"
11519 case "(($ac_try" in
11520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521   *) ac_try_echo=$ac_try;;
11522 esac
11523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11524 $as_echo "$ac_try_echo") >&5
11525   (eval "$ac_compile") 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } && {
11532          test -z "$ac_c_werror_flag" ||
11533          test ! -s conftest.err
11534        } && test -s conftest.$ac_objext; then
11535   ac_header_compiler=yes
11536 else
11537   $as_echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11539
11540         ac_header_compiler=no
11541 fi
11542
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11545 $as_echo "$ac_header_compiler" >&6; }
11546
11547 # Is the header present?
11548 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11549 $as_echo_n "checking $ac_header presence... " >&6; }
11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h.  */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h.  */
11556 #include <$ac_header>
11557 _ACEOF
11558 if { (ac_try="$ac_cpp conftest.$ac_ext"
11559 case "(($ac_try" in
11560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561   *) ac_try_echo=$ac_try;;
11562 esac
11563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11564 $as_echo "$ac_try_echo") >&5
11565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11566   ac_status=$?
11567   grep -v '^ *+' conftest.er1 >conftest.err
11568   rm -f conftest.er1
11569   cat conftest.err >&5
11570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); } >/dev/null && {
11572          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11573          test ! -s conftest.err
11574        }; then
11575   ac_header_preproc=yes
11576 else
11577   $as_echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11579
11580   ac_header_preproc=no
11581 fi
11582
11583 rm -f conftest.err conftest.$ac_ext
11584 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11585 $as_echo "$ac_header_preproc" >&6; }
11586
11587 # So?  What about this header?
11588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11589   yes:no: )
11590     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11591 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11592     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11593 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11594     ac_header_preproc=yes
11595     ;;
11596   no:yes:* )
11597     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11598 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11599     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11600 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11601     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11602 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11603     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11604 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11605     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11606 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11607     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11608 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11609     ( cat <<\_ASBOX
11610 ## ---------------------------------------- ##
11611 ## Report this to pgsql-bugs@postgresql.org ##
11612 ## ---------------------------------------- ##
11613 _ASBOX
11614      ) | sed "s/^/$as_me: WARNING:     /" >&2
11615     ;;
11616 esac
11617 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11618 $as_echo_n "checking for $ac_header... " >&6; }
11619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11620   $as_echo_n "(cached) " >&6
11621 else
11622   eval "$as_ac_Header=\$ac_header_preproc"
11623 fi
11624 ac_res=`eval 'as_val=${'$as_ac_Header'}
11625                  $as_echo "$as_val"'`
11626                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11627 $as_echo "$ac_res" >&6; }
11628
11629 fi
11630 as_val=`eval 'as_val=${'$as_ac_Header'}
11631                  $as_echo "$as_val"'`
11632    if test "x$as_val" = x""yes; then
11633   cat >>confdefs.h <<_ACEOF
11634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11635 _ACEOF
11636
11637 else
11638   { { $as_echo "$as_me:$LINENO: error: readline header not found
11639 If you have libedit already installed, see config.log for details on the
11640 failure.  It is possible the compiler isn't looking in the proper directory.
11641 Use --without-readline to disable libedit support." >&5
11642 $as_echo "$as_me: error: readline header not found
11643 If you have libedit already installed, see config.log for details on the
11644 failure.  It is possible the compiler isn't looking in the proper directory.
11645 Use --without-readline to disable libedit support." >&2;}
11646    { (exit 1); exit 1; }; }
11647 fi
11648
11649 done
11650
11651 fi
11652
11653 done
11654
11655 fi
11656
11657 done
11658
11659 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11660 # not be there at all.  Hence, don't complain if not found.  We must check
11661 # though, since in yet other versions it is an independent header.
11662
11663 for ac_header in editline/history.h
11664 do
11665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11667   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11668 $as_echo_n "checking for $ac_header... " >&6; }
11669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11670   $as_echo_n "(cached) " >&6
11671 fi
11672 ac_res=`eval 'as_val=${'$as_ac_Header'}
11673                  $as_echo "$as_val"'`
11674                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11675 $as_echo "$ac_res" >&6; }
11676 else
11677   # Is the header compilable?
11678 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11679 $as_echo_n "checking $ac_header usability... " >&6; }
11680 cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686 $ac_includes_default
11687 #include <$ac_header>
11688 _ACEOF
11689 rm -f conftest.$ac_objext
11690 if { (ac_try="$ac_compile"
11691 case "(($ac_try" in
11692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693   *) ac_try_echo=$ac_try;;
11694 esac
11695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11696 $as_echo "$ac_try_echo") >&5
11697   (eval "$ac_compile") 2>conftest.er1
11698   ac_status=$?
11699   grep -v '^ *+' conftest.er1 >conftest.err
11700   rm -f conftest.er1
11701   cat conftest.err >&5
11702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); } && {
11704          test -z "$ac_c_werror_flag" ||
11705          test ! -s conftest.err
11706        } && test -s conftest.$ac_objext; then
11707   ac_header_compiler=yes
11708 else
11709   $as_echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712         ac_header_compiler=no
11713 fi
11714
11715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11717 $as_echo "$ac_header_compiler" >&6; }
11718
11719 # Is the header present?
11720 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11721 $as_echo_n "checking $ac_header presence... " >&6; }
11722 cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h.  */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h.  */
11728 #include <$ac_header>
11729 _ACEOF
11730 if { (ac_try="$ac_cpp conftest.$ac_ext"
11731 case "(($ac_try" in
11732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733   *) ac_try_echo=$ac_try;;
11734 esac
11735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11736 $as_echo "$ac_try_echo") >&5
11737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11738   ac_status=$?
11739   grep -v '^ *+' conftest.er1 >conftest.err
11740   rm -f conftest.er1
11741   cat conftest.err >&5
11742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); } >/dev/null && {
11744          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11745          test ! -s conftest.err
11746        }; then
11747   ac_header_preproc=yes
11748 else
11749   $as_echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11751
11752   ac_header_preproc=no
11753 fi
11754
11755 rm -f conftest.err conftest.$ac_ext
11756 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11757 $as_echo "$ac_header_preproc" >&6; }
11758
11759 # So?  What about this header?
11760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11761   yes:no: )
11762     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11763 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11764     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11765 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11766     ac_header_preproc=yes
11767     ;;
11768   no:yes:* )
11769     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11770 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11771     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11772 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11773     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11774 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11775     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11776 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11777     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11778 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11780 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11781     ( cat <<\_ASBOX
11782 ## ---------------------------------------- ##
11783 ## Report this to pgsql-bugs@postgresql.org ##
11784 ## ---------------------------------------- ##
11785 _ASBOX
11786      ) | sed "s/^/$as_me: WARNING:     /" >&2
11787     ;;
11788 esac
11789 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11790 $as_echo_n "checking for $ac_header... " >&6; }
11791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11792   $as_echo_n "(cached) " >&6
11793 else
11794   eval "$as_ac_Header=\$ac_header_preproc"
11795 fi
11796 ac_res=`eval 'as_val=${'$as_ac_Header'}
11797                  $as_echo "$as_val"'`
11798                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11799 $as_echo "$ac_res" >&6; }
11800
11801 fi
11802 as_val=`eval 'as_val=${'$as_ac_Header'}
11803                  $as_echo "$as_val"'`
11804    if test "x$as_val" = x""yes; then
11805   cat >>confdefs.h <<_ACEOF
11806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11807 _ACEOF
11808
11809 else
11810
11811 for ac_header in history.h
11812 do
11813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11815   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11816 $as_echo_n "checking for $ac_header... " >&6; }
11817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11818   $as_echo_n "(cached) " >&6
11819 fi
11820 ac_res=`eval 'as_val=${'$as_ac_Header'}
11821                  $as_echo "$as_val"'`
11822                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11823 $as_echo "$ac_res" >&6; }
11824 else
11825   # Is the header compilable?
11826 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11827 $as_echo_n "checking $ac_header usability... " >&6; }
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h.  */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h.  */
11834 $ac_includes_default
11835 #include <$ac_header>
11836 _ACEOF
11837 rm -f conftest.$ac_objext
11838 if { (ac_try="$ac_compile"
11839 case "(($ac_try" in
11840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841   *) ac_try_echo=$ac_try;;
11842 esac
11843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11844 $as_echo "$ac_try_echo") >&5
11845   (eval "$ac_compile") 2>conftest.er1
11846   ac_status=$?
11847   grep -v '^ *+' conftest.er1 >conftest.err
11848   rm -f conftest.er1
11849   cat conftest.err >&5
11850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); } && {
11852          test -z "$ac_c_werror_flag" ||
11853          test ! -s conftest.err
11854        } && test -s conftest.$ac_objext; then
11855   ac_header_compiler=yes
11856 else
11857   $as_echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860         ac_header_compiler=no
11861 fi
11862
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11865 $as_echo "$ac_header_compiler" >&6; }
11866
11867 # Is the header present?
11868 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11869 $as_echo_n "checking $ac_header presence... " >&6; }
11870 cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876 #include <$ac_header>
11877 _ACEOF
11878 if { (ac_try="$ac_cpp conftest.$ac_ext"
11879 case "(($ac_try" in
11880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881   *) ac_try_echo=$ac_try;;
11882 esac
11883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11884 $as_echo "$ac_try_echo") >&5
11885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11886   ac_status=$?
11887   grep -v '^ *+' conftest.er1 >conftest.err
11888   rm -f conftest.er1
11889   cat conftest.err >&5
11890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); } >/dev/null && {
11892          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11893          test ! -s conftest.err
11894        }; then
11895   ac_header_preproc=yes
11896 else
11897   $as_echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900   ac_header_preproc=no
11901 fi
11902
11903 rm -f conftest.err conftest.$ac_ext
11904 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11905 $as_echo "$ac_header_preproc" >&6; }
11906
11907 # So?  What about this header?
11908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11909   yes:no: )
11910     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11911 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11912     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11913 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11914     ac_header_preproc=yes
11915     ;;
11916   no:yes:* )
11917     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11918 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11919     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11920 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11921     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11922 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11924 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11928 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11929     ( cat <<\_ASBOX
11930 ## ---------------------------------------- ##
11931 ## Report this to pgsql-bugs@postgresql.org ##
11932 ## ---------------------------------------- ##
11933 _ASBOX
11934      ) | sed "s/^/$as_me: WARNING:     /" >&2
11935     ;;
11936 esac
11937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11938 $as_echo_n "checking for $ac_header... " >&6; }
11939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940   $as_echo_n "(cached) " >&6
11941 else
11942   eval "$as_ac_Header=\$ac_header_preproc"
11943 fi
11944 ac_res=`eval 'as_val=${'$as_ac_Header'}
11945                  $as_echo "$as_val"'`
11946                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11947 $as_echo "$ac_res" >&6; }
11948
11949 fi
11950 as_val=`eval 'as_val=${'$as_ac_Header'}
11951                  $as_echo "$as_val"'`
11952    if test "x$as_val" = x""yes; then
11953   cat >>confdefs.h <<_ACEOF
11954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11955 _ACEOF
11956
11957 else
11958
11959 for ac_header in readline/history.h
11960 do
11961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11963   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11964 $as_echo_n "checking for $ac_header... " >&6; }
11965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11966   $as_echo_n "(cached) " >&6
11967 fi
11968 ac_res=`eval 'as_val=${'$as_ac_Header'}
11969                  $as_echo "$as_val"'`
11970                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11971 $as_echo "$ac_res" >&6; }
11972 else
11973   # Is the header compilable?
11974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11975 $as_echo_n "checking $ac_header usability... " >&6; }
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h.  */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h.  */
11982 $ac_includes_default
11983 #include <$ac_header>
11984 _ACEOF
11985 rm -f conftest.$ac_objext
11986 if { (ac_try="$ac_compile"
11987 case "(($ac_try" in
11988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989   *) ac_try_echo=$ac_try;;
11990 esac
11991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11992 $as_echo "$ac_try_echo") >&5
11993   (eval "$ac_compile") 2>conftest.er1
11994   ac_status=$?
11995   grep -v '^ *+' conftest.er1 >conftest.err
11996   rm -f conftest.er1
11997   cat conftest.err >&5
11998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); } && {
12000          test -z "$ac_c_werror_flag" ||
12001          test ! -s conftest.err
12002        } && test -s conftest.$ac_objext; then
12003   ac_header_compiler=yes
12004 else
12005   $as_echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008         ac_header_compiler=no
12009 fi
12010
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12013 $as_echo "$ac_header_compiler" >&6; }
12014
12015 # Is the header present?
12016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12017 $as_echo_n "checking $ac_header presence... " >&6; }
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h.  */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h.  */
12024 #include <$ac_header>
12025 _ACEOF
12026 if { (ac_try="$ac_cpp conftest.$ac_ext"
12027 case "(($ac_try" in
12028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029   *) ac_try_echo=$ac_try;;
12030 esac
12031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12032 $as_echo "$ac_try_echo") >&5
12033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12034   ac_status=$?
12035   grep -v '^ *+' conftest.er1 >conftest.err
12036   rm -f conftest.er1
12037   cat conftest.err >&5
12038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); } >/dev/null && {
12040          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12041          test ! -s conftest.err
12042        }; then
12043   ac_header_preproc=yes
12044 else
12045   $as_echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048   ac_header_preproc=no
12049 fi
12050
12051 rm -f conftest.err conftest.$ac_ext
12052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12053 $as_echo "$ac_header_preproc" >&6; }
12054
12055 # So?  What about this header?
12056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12057   yes:no: )
12058     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12060     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12062     ac_header_preproc=yes
12063     ;;
12064   no:yes:* )
12065     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12067     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12068 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12069     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12071     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12072 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12073     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12075     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12077     ( cat <<\_ASBOX
12078 ## ---------------------------------------- ##
12079 ## Report this to pgsql-bugs@postgresql.org ##
12080 ## ---------------------------------------- ##
12081 _ASBOX
12082      ) | sed "s/^/$as_me: WARNING:     /" >&2
12083     ;;
12084 esac
12085 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12086 $as_echo_n "checking for $ac_header... " >&6; }
12087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12088   $as_echo_n "(cached) " >&6
12089 else
12090   eval "$as_ac_Header=\$ac_header_preproc"
12091 fi
12092 ac_res=`eval 'as_val=${'$as_ac_Header'}
12093                  $as_echo "$as_val"'`
12094                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12095 $as_echo "$ac_res" >&6; }
12096
12097 fi
12098 as_val=`eval 'as_val=${'$as_ac_Header'}
12099                  $as_echo "$as_val"'`
12100    if test "x$as_val" = x""yes; then
12101   cat >>confdefs.h <<_ACEOF
12102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12103 _ACEOF
12104
12105 fi
12106
12107 done
12108
12109 fi
12110
12111 done
12112
12113 fi
12114
12115 done
12116
12117 fi
12118
12119 if test "$with_zlib" = yes; then
12120   if test "${ac_cv_header_zlib_h+set}" = set; then
12121   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12122 $as_echo_n "checking for zlib.h... " >&6; }
12123 if test "${ac_cv_header_zlib_h+set}" = set; then
12124   $as_echo_n "(cached) " >&6
12125 fi
12126 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12127 $as_echo "$ac_cv_header_zlib_h" >&6; }
12128 else
12129   # Is the header compilable?
12130 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12131 $as_echo_n "checking zlib.h usability... " >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h.  */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h.  */
12138 $ac_includes_default
12139 #include <zlib.h>
12140 _ACEOF
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145   *) ac_try_echo=$ac_try;;
12146 esac
12147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12148 $as_echo "$ac_try_echo") >&5
12149   (eval "$ac_compile") 2>conftest.er1
12150   ac_status=$?
12151   grep -v '^ *+' conftest.er1 >conftest.err
12152   rm -f conftest.er1
12153   cat conftest.err >&5
12154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); } && {
12156          test -z "$ac_c_werror_flag" ||
12157          test ! -s conftest.err
12158        } && test -s conftest.$ac_objext; then
12159   ac_header_compiler=yes
12160 else
12161   $as_echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12163
12164         ac_header_compiler=no
12165 fi
12166
12167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12168 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12169 $as_echo "$ac_header_compiler" >&6; }
12170
12171 # Is the header present?
12172 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12173 $as_echo_n "checking zlib.h presence... " >&6; }
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h.  */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h.  */
12180 #include <zlib.h>
12181 _ACEOF
12182 if { (ac_try="$ac_cpp conftest.$ac_ext"
12183 case "(($ac_try" in
12184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185   *) ac_try_echo=$ac_try;;
12186 esac
12187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188 $as_echo "$ac_try_echo") >&5
12189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12190   ac_status=$?
12191   grep -v '^ *+' conftest.er1 >conftest.err
12192   rm -f conftest.er1
12193   cat conftest.err >&5
12194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); } >/dev/null && {
12196          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12197          test ! -s conftest.err
12198        }; then
12199   ac_header_preproc=yes
12200 else
12201   $as_echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12203
12204   ac_header_preproc=no
12205 fi
12206
12207 rm -f conftest.err conftest.$ac_ext
12208 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12209 $as_echo "$ac_header_preproc" >&6; }
12210
12211 # So?  What about this header?
12212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12213   yes:no: )
12214     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12215 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12216     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12217 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12218     ac_header_preproc=yes
12219     ;;
12220   no:yes:* )
12221     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12222 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12223     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12224 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12225     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12226 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12227     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12228 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12229     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12230 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12231     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12232 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12233     ( cat <<\_ASBOX
12234 ## ---------------------------------------- ##
12235 ## Report this to pgsql-bugs@postgresql.org ##
12236 ## ---------------------------------------- ##
12237 _ASBOX
12238      ) | sed "s/^/$as_me: WARNING:     /" >&2
12239     ;;
12240 esac
12241 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12242 $as_echo_n "checking for zlib.h... " >&6; }
12243 if test "${ac_cv_header_zlib_h+set}" = set; then
12244   $as_echo_n "(cached) " >&6
12245 else
12246   ac_cv_header_zlib_h=$ac_header_preproc
12247 fi
12248 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12249 $as_echo "$ac_cv_header_zlib_h" >&6; }
12250
12251 fi
12252 if test "x$ac_cv_header_zlib_h" = x""yes; then
12253   :
12254 else
12255   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12256 If you have zlib already installed, see config.log for details on the
12257 failure.  It is possible the compiler isn't looking in the proper directory.
12258 Use --without-zlib to disable zlib support." >&5
12259 $as_echo "$as_me: error: zlib header not found
12260 If you have zlib already installed, see config.log for details on the
12261 failure.  It is possible the compiler isn't looking in the proper directory.
12262 Use --without-zlib to disable zlib support." >&2;}
12263    { (exit 1); exit 1; }; }
12264 fi
12265
12266
12267 fi
12268
12269 if test "$with_gssapi" = yes ; then
12270
12271 for ac_header in gssapi/gssapi.h
12272 do
12273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12275   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12276 $as_echo_n "checking for $ac_header... " >&6; }
12277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12278   $as_echo_n "(cached) " >&6
12279 fi
12280 ac_res=`eval 'as_val=${'$as_ac_Header'}
12281                  $as_echo "$as_val"'`
12282                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12283 $as_echo "$ac_res" >&6; }
12284 else
12285   # Is the header compilable?
12286 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12287 $as_echo_n "checking $ac_header usability... " >&6; }
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h.  */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h.  */
12294 $ac_includes_default
12295 #include <$ac_header>
12296 _ACEOF
12297 rm -f conftest.$ac_objext
12298 if { (ac_try="$ac_compile"
12299 case "(($ac_try" in
12300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301   *) ac_try_echo=$ac_try;;
12302 esac
12303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12304 $as_echo "$ac_try_echo") >&5
12305   (eval "$ac_compile") 2>conftest.er1
12306   ac_status=$?
12307   grep -v '^ *+' conftest.er1 >conftest.err
12308   rm -f conftest.er1
12309   cat conftest.err >&5
12310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); } && {
12312          test -z "$ac_c_werror_flag" ||
12313          test ! -s conftest.err
12314        } && test -s conftest.$ac_objext; then
12315   ac_header_compiler=yes
12316 else
12317   $as_echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320         ac_header_compiler=no
12321 fi
12322
12323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12324 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12325 $as_echo "$ac_header_compiler" >&6; }
12326
12327 # Is the header present?
12328 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12329 $as_echo_n "checking $ac_header presence... " >&6; }
12330 cat >conftest.$ac_ext <<_ACEOF
12331 /* confdefs.h.  */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h.  */
12336 #include <$ac_header>
12337 _ACEOF
12338 if { (ac_try="$ac_cpp conftest.$ac_ext"
12339 case "(($ac_try" in
12340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341   *) ac_try_echo=$ac_try;;
12342 esac
12343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12344 $as_echo "$ac_try_echo") >&5
12345   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12346   ac_status=$?
12347   grep -v '^ *+' conftest.er1 >conftest.err
12348   rm -f conftest.er1
12349   cat conftest.err >&5
12350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); } >/dev/null && {
12352          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12353          test ! -s conftest.err
12354        }; then
12355   ac_header_preproc=yes
12356 else
12357   $as_echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360   ac_header_preproc=no
12361 fi
12362
12363 rm -f conftest.err conftest.$ac_ext
12364 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12365 $as_echo "$ac_header_preproc" >&6; }
12366
12367 # So?  What about this header?
12368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12369   yes:no: )
12370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12371 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12374     ac_header_preproc=yes
12375     ;;
12376   no:yes:* )
12377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12378 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12380 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12382 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12384 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12386 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12387     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12388 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12389     ( cat <<\_ASBOX
12390 ## ---------------------------------------- ##
12391 ## Report this to pgsql-bugs@postgresql.org ##
12392 ## ---------------------------------------- ##
12393 _ASBOX
12394      ) | sed "s/^/$as_me: WARNING:     /" >&2
12395     ;;
12396 esac
12397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12398 $as_echo_n "checking for $ac_header... " >&6; }
12399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12400   $as_echo_n "(cached) " >&6
12401 else
12402   eval "$as_ac_Header=\$ac_header_preproc"
12403 fi
12404 ac_res=`eval 'as_val=${'$as_ac_Header'}
12405                  $as_echo "$as_val"'`
12406                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12407 $as_echo "$ac_res" >&6; }
12408
12409 fi
12410 as_val=`eval 'as_val=${'$as_ac_Header'}
12411                  $as_echo "$as_val"'`
12412    if test "x$as_val" = x""yes; then
12413   cat >>confdefs.h <<_ACEOF
12414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12415 _ACEOF
12416
12417 else
12418
12419 for ac_header in gssapi.h
12420 do
12421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12423   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12424 $as_echo_n "checking for $ac_header... " >&6; }
12425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12426   $as_echo_n "(cached) " >&6
12427 fi
12428 ac_res=`eval 'as_val=${'$as_ac_Header'}
12429                  $as_echo "$as_val"'`
12430                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12431 $as_echo "$ac_res" >&6; }
12432 else
12433   # Is the header compilable?
12434 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12435 $as_echo_n "checking $ac_header usability... " >&6; }
12436 cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h.  */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h.  */
12442 $ac_includes_default
12443 #include <$ac_header>
12444 _ACEOF
12445 rm -f conftest.$ac_objext
12446 if { (ac_try="$ac_compile"
12447 case "(($ac_try" in
12448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449   *) ac_try_echo=$ac_try;;
12450 esac
12451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12452 $as_echo "$ac_try_echo") >&5
12453   (eval "$ac_compile") 2>conftest.er1
12454   ac_status=$?
12455   grep -v '^ *+' conftest.er1 >conftest.err
12456   rm -f conftest.er1
12457   cat conftest.err >&5
12458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); } && {
12460          test -z "$ac_c_werror_flag" ||
12461          test ! -s conftest.err
12462        } && test -s conftest.$ac_objext; then
12463   ac_header_compiler=yes
12464 else
12465   $as_echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12467
12468         ac_header_compiler=no
12469 fi
12470
12471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12472 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12473 $as_echo "$ac_header_compiler" >&6; }
12474
12475 # Is the header present?
12476 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12477 $as_echo_n "checking $ac_header presence... " >&6; }
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h.  */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h.  */
12484 #include <$ac_header>
12485 _ACEOF
12486 if { (ac_try="$ac_cpp conftest.$ac_ext"
12487 case "(($ac_try" in
12488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489   *) ac_try_echo=$ac_try;;
12490 esac
12491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12492 $as_echo "$ac_try_echo") >&5
12493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12494   ac_status=$?
12495   grep -v '^ *+' conftest.er1 >conftest.err
12496   rm -f conftest.er1
12497   cat conftest.err >&5
12498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); } >/dev/null && {
12500          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12501          test ! -s conftest.err
12502        }; then
12503   ac_header_preproc=yes
12504 else
12505   $as_echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508   ac_header_preproc=no
12509 fi
12510
12511 rm -f conftest.err conftest.$ac_ext
12512 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12513 $as_echo "$ac_header_preproc" >&6; }
12514
12515 # So?  What about this header?
12516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12517   yes:no: )
12518     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12519 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12520     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12521 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12522     ac_header_preproc=yes
12523     ;;
12524   no:yes:* )
12525     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12526 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12527     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12528 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12529     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12530 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12531     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12532 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12533     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12535     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12536 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12537     ( cat <<\_ASBOX
12538 ## ---------------------------------------- ##
12539 ## Report this to pgsql-bugs@postgresql.org ##
12540 ## ---------------------------------------- ##
12541 _ASBOX
12542      ) | sed "s/^/$as_me: WARNING:     /" >&2
12543     ;;
12544 esac
12545 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12546 $as_echo_n "checking for $ac_header... " >&6; }
12547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12548   $as_echo_n "(cached) " >&6
12549 else
12550   eval "$as_ac_Header=\$ac_header_preproc"
12551 fi
12552 ac_res=`eval 'as_val=${'$as_ac_Header'}
12553                  $as_echo "$as_val"'`
12554                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12555 $as_echo "$ac_res" >&6; }
12556
12557 fi
12558 as_val=`eval 'as_val=${'$as_ac_Header'}
12559                  $as_echo "$as_val"'`
12560    if test "x$as_val" = x""yes; then
12561   cat >>confdefs.h <<_ACEOF
12562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12563 _ACEOF
12564
12565 else
12566   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12567 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12568    { (exit 1); exit 1; }; }
12569 fi
12570
12571 done
12572
12573 fi
12574
12575 done
12576
12577 fi
12578
12579 if test "$with_krb5" = yes ; then
12580   if test "${ac_cv_header_krb5_h+set}" = set; then
12581   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12582 $as_echo_n "checking for krb5.h... " >&6; }
12583 if test "${ac_cv_header_krb5_h+set}" = set; then
12584   $as_echo_n "(cached) " >&6
12585 fi
12586 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12587 $as_echo "$ac_cv_header_krb5_h" >&6; }
12588 else
12589   # Is the header compilable?
12590 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12591 $as_echo_n "checking krb5.h usability... " >&6; }
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598 $ac_includes_default
12599 #include <krb5.h>
12600 _ACEOF
12601 rm -f conftest.$ac_objext
12602 if { (ac_try="$ac_compile"
12603 case "(($ac_try" in
12604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605   *) ac_try_echo=$ac_try;;
12606 esac
12607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12608 $as_echo "$ac_try_echo") >&5
12609   (eval "$ac_compile") 2>conftest.er1
12610   ac_status=$?
12611   grep -v '^ *+' conftest.er1 >conftest.err
12612   rm -f conftest.er1
12613   cat conftest.err >&5
12614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); } && {
12616          test -z "$ac_c_werror_flag" ||
12617          test ! -s conftest.err
12618        } && test -s conftest.$ac_objext; then
12619   ac_header_compiler=yes
12620 else
12621   $as_echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624         ac_header_compiler=no
12625 fi
12626
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12629 $as_echo "$ac_header_compiler" >&6; }
12630
12631 # Is the header present?
12632 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12633 $as_echo_n "checking krb5.h presence... " >&6; }
12634 cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h.  */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h.  */
12640 #include <krb5.h>
12641 _ACEOF
12642 if { (ac_try="$ac_cpp conftest.$ac_ext"
12643 case "(($ac_try" in
12644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645   *) ac_try_echo=$ac_try;;
12646 esac
12647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12648 $as_echo "$ac_try_echo") >&5
12649   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12650   ac_status=$?
12651   grep -v '^ *+' conftest.er1 >conftest.err
12652   rm -f conftest.er1
12653   cat conftest.err >&5
12654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } >/dev/null && {
12656          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12657          test ! -s conftest.err
12658        }; then
12659   ac_header_preproc=yes
12660 else
12661   $as_echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664   ac_header_preproc=no
12665 fi
12666
12667 rm -f conftest.err conftest.$ac_ext
12668 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12669 $as_echo "$ac_header_preproc" >&6; }
12670
12671 # So?  What about this header?
12672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12673   yes:no: )
12674     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12675 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12676     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12677 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12678     ac_header_preproc=yes
12679     ;;
12680   no:yes:* )
12681     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12682 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12683     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12684 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12685     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12686 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12687     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12688 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12689     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12690 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12691     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12692 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12693     ( cat <<\_ASBOX
12694 ## ---------------------------------------- ##
12695 ## Report this to pgsql-bugs@postgresql.org ##
12696 ## ---------------------------------------- ##
12697 _ASBOX
12698      ) | sed "s/^/$as_me: WARNING:     /" >&2
12699     ;;
12700 esac
12701 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12702 $as_echo_n "checking for krb5.h... " >&6; }
12703 if test "${ac_cv_header_krb5_h+set}" = set; then
12704   $as_echo_n "(cached) " >&6
12705 else
12706   ac_cv_header_krb5_h=$ac_header_preproc
12707 fi
12708 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12709 $as_echo "$ac_cv_header_krb5_h" >&6; }
12710
12711 fi
12712 if test "x$ac_cv_header_krb5_h" = x""yes; then
12713   :
12714 else
12715   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12716 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12717    { (exit 1); exit 1; }; }
12718 fi
12719
12720
12721 fi
12722
12723 if test "$with_openssl" = yes ; then
12724   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12725   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12726 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12727 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12728   $as_echo_n "(cached) " >&6
12729 fi
12730 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12731 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12732 else
12733   # Is the header compilable?
12734 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12735 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12736 cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h.  */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h.  */
12742 $ac_includes_default
12743 #include <openssl/ssl.h>
12744 _ACEOF
12745 rm -f conftest.$ac_objext
12746 if { (ac_try="$ac_compile"
12747 case "(($ac_try" in
12748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749   *) ac_try_echo=$ac_try;;
12750 esac
12751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12752 $as_echo "$ac_try_echo") >&5
12753   (eval "$ac_compile") 2>conftest.er1
12754   ac_status=$?
12755   grep -v '^ *+' conftest.er1 >conftest.err
12756   rm -f conftest.er1
12757   cat conftest.err >&5
12758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } && {
12760          test -z "$ac_c_werror_flag" ||
12761          test ! -s conftest.err
12762        } && test -s conftest.$ac_objext; then
12763   ac_header_compiler=yes
12764 else
12765   $as_echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12767
12768         ac_header_compiler=no
12769 fi
12770
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12773 $as_echo "$ac_header_compiler" >&6; }
12774
12775 # Is the header present?
12776 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12777 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12778 cat >conftest.$ac_ext <<_ACEOF
12779 /* confdefs.h.  */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h.  */
12784 #include <openssl/ssl.h>
12785 _ACEOF
12786 if { (ac_try="$ac_cpp conftest.$ac_ext"
12787 case "(($ac_try" in
12788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789   *) ac_try_echo=$ac_try;;
12790 esac
12791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12792 $as_echo "$ac_try_echo") >&5
12793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12794   ac_status=$?
12795   grep -v '^ *+' conftest.er1 >conftest.err
12796   rm -f conftest.er1
12797   cat conftest.err >&5
12798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); } >/dev/null && {
12800          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12801          test ! -s conftest.err
12802        }; then
12803   ac_header_preproc=yes
12804 else
12805   $as_echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12807
12808   ac_header_preproc=no
12809 fi
12810
12811 rm -f conftest.err conftest.$ac_ext
12812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12813 $as_echo "$ac_header_preproc" >&6; }
12814
12815 # So?  What about this header?
12816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12817   yes:no: )
12818     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12819 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12820     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12821 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12822     ac_header_preproc=yes
12823     ;;
12824   no:yes:* )
12825     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12826 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12827     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12828 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12829     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12830 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12831     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12832 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12833     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12834 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12835     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12836 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12837     ( cat <<\_ASBOX
12838 ## ---------------------------------------- ##
12839 ## Report this to pgsql-bugs@postgresql.org ##
12840 ## ---------------------------------------- ##
12841 _ASBOX
12842      ) | sed "s/^/$as_me: WARNING:     /" >&2
12843     ;;
12844 esac
12845 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12846 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12847 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12848   $as_echo_n "(cached) " >&6
12849 else
12850   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12851 fi
12852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12853 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12854
12855 fi
12856 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12857   :
12858 else
12859   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12860 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12861    { (exit 1); exit 1; }; }
12862 fi
12863
12864
12865   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12866   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12867 $as_echo_n "checking for openssl/err.h... " >&6; }
12868 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12869   $as_echo_n "(cached) " >&6
12870 fi
12871 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12872 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12873 else
12874   # Is the header compilable?
12875 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12876 $as_echo_n "checking openssl/err.h usability... " >&6; }
12877 cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h.  */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h.  */
12883 $ac_includes_default
12884 #include <openssl/err.h>
12885 _ACEOF
12886 rm -f conftest.$ac_objext
12887 if { (ac_try="$ac_compile"
12888 case "(($ac_try" in
12889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890   *) ac_try_echo=$ac_try;;
12891 esac
12892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12893 $as_echo "$ac_try_echo") >&5
12894   (eval "$ac_compile") 2>conftest.er1
12895   ac_status=$?
12896   grep -v '^ *+' conftest.er1 >conftest.err
12897   rm -f conftest.er1
12898   cat conftest.err >&5
12899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); } && {
12901          test -z "$ac_c_werror_flag" ||
12902          test ! -s conftest.err
12903        } && test -s conftest.$ac_objext; then
12904   ac_header_compiler=yes
12905 else
12906   $as_echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909         ac_header_compiler=no
12910 fi
12911
12912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12914 $as_echo "$ac_header_compiler" >&6; }
12915
12916 # Is the header present?
12917 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12918 $as_echo_n "checking openssl/err.h presence... " >&6; }
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h.  */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h.  */
12925 #include <openssl/err.h>
12926 _ACEOF
12927 if { (ac_try="$ac_cpp conftest.$ac_ext"
12928 case "(($ac_try" in
12929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930   *) ac_try_echo=$ac_try;;
12931 esac
12932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12933 $as_echo "$ac_try_echo") >&5
12934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12935   ac_status=$?
12936   grep -v '^ *+' conftest.er1 >conftest.err
12937   rm -f conftest.er1
12938   cat conftest.err >&5
12939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); } >/dev/null && {
12941          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12942          test ! -s conftest.err
12943        }; then
12944   ac_header_preproc=yes
12945 else
12946   $as_echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949   ac_header_preproc=no
12950 fi
12951
12952 rm -f conftest.err conftest.$ac_ext
12953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12954 $as_echo "$ac_header_preproc" >&6; }
12955
12956 # So?  What about this header?
12957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12958   yes:no: )
12959     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12960 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12961     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12962 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12963     ac_header_preproc=yes
12964     ;;
12965   no:yes:* )
12966     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12967 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12968     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12969 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12970     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12971 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12972     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12973 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12974     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12975 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12976     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12977 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12978     ( cat <<\_ASBOX
12979 ## ---------------------------------------- ##
12980 ## Report this to pgsql-bugs@postgresql.org ##
12981 ## ---------------------------------------- ##
12982 _ASBOX
12983      ) | sed "s/^/$as_me: WARNING:     /" >&2
12984     ;;
12985 esac
12986 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12987 $as_echo_n "checking for openssl/err.h... " >&6; }
12988 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12989   $as_echo_n "(cached) " >&6
12990 else
12991   ac_cv_header_openssl_err_h=$ac_header_preproc
12992 fi
12993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12994 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12995
12996 fi
12997 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12998   :
12999 else
13000   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13001 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13002    { (exit 1); exit 1; }; }
13003 fi
13004
13005
13006
13007 for ac_func in ERR_set_mark
13008 do
13009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13011 $as_echo_n "checking for $ac_func... " >&6; }
13012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13013   $as_echo_n "(cached) " >&6
13014 else
13015   cat >conftest.$ac_ext <<_ACEOF
13016 /* confdefs.h.  */
13017 _ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h.  */
13021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13023 #define $ac_func innocuous_$ac_func
13024
13025 /* System header to define __stub macros and hopefully few prototypes,
13026     which can conflict with char $ac_func (); below.
13027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13028     <limits.h> exists even on freestanding compilers.  */
13029
13030 #ifdef __STDC__
13031 # include <limits.h>
13032 #else
13033 # include <assert.h>
13034 #endif
13035
13036 #undef $ac_func
13037
13038 /* Override any GCC internal prototype to avoid an error.
13039    Use char because int might match the return type of a GCC
13040    builtin and then its argument prototype would still apply.  */
13041 #ifdef __cplusplus
13042 extern "C"
13043 #endif
13044 char $ac_func ();
13045 /* The GNU C library defines this for functions which it implements
13046     to always fail with ENOSYS.  Some functions are actually named
13047     something starting with __ and the normal name is an alias.  */
13048 #if defined __stub_$ac_func || defined __stub___$ac_func
13049 choke me
13050 #endif
13051
13052 int
13053 main ()
13054 {
13055 return $ac_func ();
13056   ;
13057   return 0;
13058 }
13059 _ACEOF
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064   *) ac_try_echo=$ac_try;;
13065 esac
13066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13067 $as_echo "$ac_try_echo") >&5
13068   (eval "$ac_link") 2>conftest.er1
13069   ac_status=$?
13070   grep -v '^ *+' conftest.er1 >conftest.err
13071   rm -f conftest.er1
13072   cat conftest.err >&5
13073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); } && {
13075          test -z "$ac_c_werror_flag" ||
13076          test ! -s conftest.err
13077        } && test -s conftest$ac_exeext && {
13078          test "$cross_compiling" = yes ||
13079          $as_test_x conftest$ac_exeext
13080        }; then
13081   eval "$as_ac_var=yes"
13082 else
13083   $as_echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13085
13086         eval "$as_ac_var=no"
13087 fi
13088
13089 rm -rf conftest.dSYM
13090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13091       conftest$ac_exeext conftest.$ac_ext
13092 fi
13093 ac_res=`eval 'as_val=${'$as_ac_var'}
13094                  $as_echo "$as_val"'`
13095                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13096 $as_echo "$ac_res" >&6; }
13097 as_val=`eval 'as_val=${'$as_ac_var'}
13098                  $as_echo "$as_val"'`
13099    if test "x$as_val" = x""yes; then
13100   cat >>confdefs.h <<_ACEOF
13101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13102 _ACEOF
13103
13104 fi
13105 done
13106
13107 fi
13108
13109 if test "$with_pam" = yes ; then
13110
13111 for ac_header in security/pam_appl.h
13112 do
13113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13115   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13116 $as_echo_n "checking for $ac_header... " >&6; }
13117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13118   $as_echo_n "(cached) " >&6
13119 fi
13120 ac_res=`eval 'as_val=${'$as_ac_Header'}
13121                  $as_echo "$as_val"'`
13122                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13123 $as_echo "$ac_res" >&6; }
13124 else
13125   # Is the header compilable?
13126 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13127 $as_echo_n "checking $ac_header usability... " >&6; }
13128 cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h.  */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h.  */
13134 $ac_includes_default
13135 #include <$ac_header>
13136 _ACEOF
13137 rm -f conftest.$ac_objext
13138 if { (ac_try="$ac_compile"
13139 case "(($ac_try" in
13140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141   *) ac_try_echo=$ac_try;;
13142 esac
13143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13144 $as_echo "$ac_try_echo") >&5
13145   (eval "$ac_compile") 2>conftest.er1
13146   ac_status=$?
13147   grep -v '^ *+' conftest.er1 >conftest.err
13148   rm -f conftest.er1
13149   cat conftest.err >&5
13150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); } && {
13152          test -z "$ac_c_werror_flag" ||
13153          test ! -s conftest.err
13154        } && test -s conftest.$ac_objext; then
13155   ac_header_compiler=yes
13156 else
13157   $as_echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13159
13160         ac_header_compiler=no
13161 fi
13162
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13165 $as_echo "$ac_header_compiler" >&6; }
13166
13167 # Is the header present?
13168 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13169 $as_echo_n "checking $ac_header presence... " >&6; }
13170 cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h.  */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h.  */
13176 #include <$ac_header>
13177 _ACEOF
13178 if { (ac_try="$ac_cpp conftest.$ac_ext"
13179 case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13184 $as_echo "$ac_try_echo") >&5
13185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13186   ac_status=$?
13187   grep -v '^ *+' conftest.er1 >conftest.err
13188   rm -f conftest.er1
13189   cat conftest.err >&5
13190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); } >/dev/null && {
13192          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13193          test ! -s conftest.err
13194        }; then
13195   ac_header_preproc=yes
13196 else
13197   $as_echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200   ac_header_preproc=no
13201 fi
13202
13203 rm -f conftest.err conftest.$ac_ext
13204 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13205 $as_echo "$ac_header_preproc" >&6; }
13206
13207 # So?  What about this header?
13208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13209   yes:no: )
13210     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13211 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13212     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13213 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13214     ac_header_preproc=yes
13215     ;;
13216   no:yes:* )
13217     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13218 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13219     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13220 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13221     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13222 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13223     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13224 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13225     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13227     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13228 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13229     ( cat <<\_ASBOX
13230 ## ---------------------------------------- ##
13231 ## Report this to pgsql-bugs@postgresql.org ##
13232 ## ---------------------------------------- ##
13233 _ASBOX
13234      ) | sed "s/^/$as_me: WARNING:     /" >&2
13235     ;;
13236 esac
13237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13238 $as_echo_n "checking for $ac_header... " >&6; }
13239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13240   $as_echo_n "(cached) " >&6
13241 else
13242   eval "$as_ac_Header=\$ac_header_preproc"
13243 fi
13244 ac_res=`eval 'as_val=${'$as_ac_Header'}
13245                  $as_echo "$as_val"'`
13246                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13247 $as_echo "$ac_res" >&6; }
13248
13249 fi
13250 as_val=`eval 'as_val=${'$as_ac_Header'}
13251                  $as_echo "$as_val"'`
13252    if test "x$as_val" = x""yes; then
13253   cat >>confdefs.h <<_ACEOF
13254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13255 _ACEOF
13256
13257 else
13258
13259 for ac_header in pam/pam_appl.h
13260 do
13261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13263   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13264 $as_echo_n "checking for $ac_header... " >&6; }
13265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13266   $as_echo_n "(cached) " >&6
13267 fi
13268 ac_res=`eval 'as_val=${'$as_ac_Header'}
13269                  $as_echo "$as_val"'`
13270                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13271 $as_echo "$ac_res" >&6; }
13272 else
13273   # Is the header compilable?
13274 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13275 $as_echo_n "checking $ac_header usability... " >&6; }
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h.  */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h.  */
13282 $ac_includes_default
13283 #include <$ac_header>
13284 _ACEOF
13285 rm -f conftest.$ac_objext
13286 if { (ac_try="$ac_compile"
13287 case "(($ac_try" in
13288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289   *) ac_try_echo=$ac_try;;
13290 esac
13291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13292 $as_echo "$ac_try_echo") >&5
13293   (eval "$ac_compile") 2>conftest.er1
13294   ac_status=$?
13295   grep -v '^ *+' conftest.er1 >conftest.err
13296   rm -f conftest.er1
13297   cat conftest.err >&5
13298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); } && {
13300          test -z "$ac_c_werror_flag" ||
13301          test ! -s conftest.err
13302        } && test -s conftest.$ac_objext; then
13303   ac_header_compiler=yes
13304 else
13305   $as_echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13307
13308         ac_header_compiler=no
13309 fi
13310
13311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13312 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13313 $as_echo "$ac_header_compiler" >&6; }
13314
13315 # Is the header present?
13316 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13317 $as_echo_n "checking $ac_header presence... " >&6; }
13318 cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324 #include <$ac_header>
13325 _ACEOF
13326 if { (ac_try="$ac_cpp conftest.$ac_ext"
13327 case "(($ac_try" in
13328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329   *) ac_try_echo=$ac_try;;
13330 esac
13331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13332 $as_echo "$ac_try_echo") >&5
13333   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13334   ac_status=$?
13335   grep -v '^ *+' conftest.er1 >conftest.err
13336   rm -f conftest.er1
13337   cat conftest.err >&5
13338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); } >/dev/null && {
13340          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13341          test ! -s conftest.err
13342        }; then
13343   ac_header_preproc=yes
13344 else
13345   $as_echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13347
13348   ac_header_preproc=no
13349 fi
13350
13351 rm -f conftest.err conftest.$ac_ext
13352 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13353 $as_echo "$ac_header_preproc" >&6; }
13354
13355 # So?  What about this header?
13356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13357   yes:no: )
13358     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13359 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13360     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13362     ac_header_preproc=yes
13363     ;;
13364   no:yes:* )
13365     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13366 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13367     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13368 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13370 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13372 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13376 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13377     ( cat <<\_ASBOX
13378 ## ---------------------------------------- ##
13379 ## Report this to pgsql-bugs@postgresql.org ##
13380 ## ---------------------------------------- ##
13381 _ASBOX
13382      ) | sed "s/^/$as_me: WARNING:     /" >&2
13383     ;;
13384 esac
13385 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13386 $as_echo_n "checking for $ac_header... " >&6; }
13387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13388   $as_echo_n "(cached) " >&6
13389 else
13390   eval "$as_ac_Header=\$ac_header_preproc"
13391 fi
13392 ac_res=`eval 'as_val=${'$as_ac_Header'}
13393                  $as_echo "$as_val"'`
13394                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13395 $as_echo "$ac_res" >&6; }
13396
13397 fi
13398 as_val=`eval 'as_val=${'$as_ac_Header'}
13399                  $as_echo "$as_val"'`
13400    if test "x$as_val" = x""yes; then
13401   cat >>confdefs.h <<_ACEOF
13402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13403 _ACEOF
13404
13405 else
13406   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13407 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13408    { (exit 1); exit 1; }; }
13409 fi
13410
13411 done
13412
13413 fi
13414
13415 done
13416
13417 fi
13418
13419 if test "$with_libxml" = yes ; then
13420   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13421   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13422 $as_echo_n "checking for libxml/parser.h... " >&6; }
13423 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13424   $as_echo_n "(cached) " >&6
13425 fi
13426 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13427 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13428 else
13429   # Is the header compilable?
13430 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13431 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13432 cat >conftest.$ac_ext <<_ACEOF
13433 /* confdefs.h.  */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h.  */
13438 $ac_includes_default
13439 #include <libxml/parser.h>
13440 _ACEOF
13441 rm -f conftest.$ac_objext
13442 if { (ac_try="$ac_compile"
13443 case "(($ac_try" in
13444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445   *) ac_try_echo=$ac_try;;
13446 esac
13447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13448 $as_echo "$ac_try_echo") >&5
13449   (eval "$ac_compile") 2>conftest.er1
13450   ac_status=$?
13451   grep -v '^ *+' conftest.er1 >conftest.err
13452   rm -f conftest.er1
13453   cat conftest.err >&5
13454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); } && {
13456          test -z "$ac_c_werror_flag" ||
13457          test ! -s conftest.err
13458        } && test -s conftest.$ac_objext; then
13459   ac_header_compiler=yes
13460 else
13461   $as_echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464         ac_header_compiler=no
13465 fi
13466
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13469 $as_echo "$ac_header_compiler" >&6; }
13470
13471 # Is the header present?
13472 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13473 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h.  */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h.  */
13480 #include <libxml/parser.h>
13481 _ACEOF
13482 if { (ac_try="$ac_cpp conftest.$ac_ext"
13483 case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13488 $as_echo "$ac_try_echo") >&5
13489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } >/dev/null && {
13496          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13497          test ! -s conftest.err
13498        }; then
13499   ac_header_preproc=yes
13500 else
13501   $as_echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504   ac_header_preproc=no
13505 fi
13506
13507 rm -f conftest.err conftest.$ac_ext
13508 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13509 $as_echo "$ac_header_preproc" >&6; }
13510
13511 # So?  What about this header?
13512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13513   yes:no: )
13514     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13515 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13516     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13517 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13518     ac_header_preproc=yes
13519     ;;
13520   no:yes:* )
13521     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13522 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13523     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13524 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13525     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13526 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13527     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13528 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13529     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13530 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13531     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13532 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13533     ( cat <<\_ASBOX
13534 ## ---------------------------------------- ##
13535 ## Report this to pgsql-bugs@postgresql.org ##
13536 ## ---------------------------------------- ##
13537 _ASBOX
13538      ) | sed "s/^/$as_me: WARNING:     /" >&2
13539     ;;
13540 esac
13541 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13542 $as_echo_n "checking for libxml/parser.h... " >&6; }
13543 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13544   $as_echo_n "(cached) " >&6
13545 else
13546   ac_cv_header_libxml_parser_h=$ac_header_preproc
13547 fi
13548 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13549 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13550
13551 fi
13552 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13553   :
13554 else
13555   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13556 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13557    { (exit 1); exit 1; }; }
13558 fi
13559
13560
13561 fi
13562
13563 if test "$with_libxslt" = yes ; then
13564   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13565   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13566 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13567 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13568   $as_echo_n "(cached) " >&6
13569 fi
13570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13571 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13572 else
13573   # Is the header compilable?
13574 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13575 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13576 cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h.  */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h.  */
13582 $ac_includes_default
13583 #include <libxslt/xslt.h>
13584 _ACEOF
13585 rm -f conftest.$ac_objext
13586 if { (ac_try="$ac_compile"
13587 case "(($ac_try" in
13588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589   *) ac_try_echo=$ac_try;;
13590 esac
13591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13592 $as_echo "$ac_try_echo") >&5
13593   (eval "$ac_compile") 2>conftest.er1
13594   ac_status=$?
13595   grep -v '^ *+' conftest.er1 >conftest.err
13596   rm -f conftest.er1
13597   cat conftest.err >&5
13598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599   (exit $ac_status); } && {
13600          test -z "$ac_c_werror_flag" ||
13601          test ! -s conftest.err
13602        } && test -s conftest.$ac_objext; then
13603   ac_header_compiler=yes
13604 else
13605   $as_echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608         ac_header_compiler=no
13609 fi
13610
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13613 $as_echo "$ac_header_compiler" >&6; }
13614
13615 # Is the header present?
13616 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13617 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13618 cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624 #include <libxslt/xslt.h>
13625 _ACEOF
13626 if { (ac_try="$ac_cpp conftest.$ac_ext"
13627 case "(($ac_try" in
13628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629   *) ac_try_echo=$ac_try;;
13630 esac
13631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13632 $as_echo "$ac_try_echo") >&5
13633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13634   ac_status=$?
13635   grep -v '^ *+' conftest.er1 >conftest.err
13636   rm -f conftest.er1
13637   cat conftest.err >&5
13638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } >/dev/null && {
13640          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13641          test ! -s conftest.err
13642        }; then
13643   ac_header_preproc=yes
13644 else
13645   $as_echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13647
13648   ac_header_preproc=no
13649 fi
13650
13651 rm -f conftest.err conftest.$ac_ext
13652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13653 $as_echo "$ac_header_preproc" >&6; }
13654
13655 # So?  What about this header?
13656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13657   yes:no: )
13658     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13659 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13660     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13661 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13662     ac_header_preproc=yes
13663     ;;
13664   no:yes:* )
13665     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13666 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13667     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13668 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13669     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13670 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13671     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13672 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13673     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13674 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13675     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13676 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13677     ( cat <<\_ASBOX
13678 ## ---------------------------------------- ##
13679 ## Report this to pgsql-bugs@postgresql.org ##
13680 ## ---------------------------------------- ##
13681 _ASBOX
13682      ) | sed "s/^/$as_me: WARNING:     /" >&2
13683     ;;
13684 esac
13685 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13686 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13687 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13688   $as_echo_n "(cached) " >&6
13689 else
13690   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13691 fi
13692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13693 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13694
13695 fi
13696 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13697   :
13698 else
13699   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13700 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13701    { (exit 1); exit 1; }; }
13702 fi
13703
13704
13705 fi
13706
13707 if test "$with_ldap" = yes ; then
13708   if test "$PORTNAME" != "win32"; then
13709
13710 for ac_header in ldap.h
13711 do
13712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13714   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13715 $as_echo_n "checking for $ac_header... " >&6; }
13716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13717   $as_echo_n "(cached) " >&6
13718 fi
13719 ac_res=`eval 'as_val=${'$as_ac_Header'}
13720                  $as_echo "$as_val"'`
13721                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13722 $as_echo "$ac_res" >&6; }
13723 else
13724   # Is the header compilable?
13725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13726 $as_echo_n "checking $ac_header usability... " >&6; }
13727 cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 $ac_includes_default
13734 #include <$ac_header>
13735 _ACEOF
13736 rm -f conftest.$ac_objext
13737 if { (ac_try="$ac_compile"
13738 case "(($ac_try" in
13739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740   *) ac_try_echo=$ac_try;;
13741 esac
13742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13743 $as_echo "$ac_try_echo") >&5
13744   (eval "$ac_compile") 2>conftest.er1
13745   ac_status=$?
13746   grep -v '^ *+' conftest.er1 >conftest.err
13747   rm -f conftest.er1
13748   cat conftest.err >&5
13749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } && {
13751          test -z "$ac_c_werror_flag" ||
13752          test ! -s conftest.err
13753        } && test -s conftest.$ac_objext; then
13754   ac_header_compiler=yes
13755 else
13756   $as_echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13758
13759         ac_header_compiler=no
13760 fi
13761
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13764 $as_echo "$ac_header_compiler" >&6; }
13765
13766 # Is the header present?
13767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13768 $as_echo_n "checking $ac_header presence... " >&6; }
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h.  */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h.  */
13775 #include <$ac_header>
13776 _ACEOF
13777 if { (ac_try="$ac_cpp conftest.$ac_ext"
13778 case "(($ac_try" in
13779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780   *) ac_try_echo=$ac_try;;
13781 esac
13782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13783 $as_echo "$ac_try_echo") >&5
13784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13785   ac_status=$?
13786   grep -v '^ *+' conftest.er1 >conftest.err
13787   rm -f conftest.er1
13788   cat conftest.err >&5
13789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); } >/dev/null && {
13791          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13792          test ! -s conftest.err
13793        }; then
13794   ac_header_preproc=yes
13795 else
13796   $as_echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799   ac_header_preproc=no
13800 fi
13801
13802 rm -f conftest.err conftest.$ac_ext
13803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13804 $as_echo "$ac_header_preproc" >&6; }
13805
13806 # So?  What about this header?
13807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13808   yes:no: )
13809     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13811     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13813     ac_header_preproc=yes
13814     ;;
13815   no:yes:* )
13816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13819 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13823 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13828     ( cat <<\_ASBOX
13829 ## ---------------------------------------- ##
13830 ## Report this to pgsql-bugs@postgresql.org ##
13831 ## ---------------------------------------- ##
13832 _ASBOX
13833      ) | sed "s/^/$as_me: WARNING:     /" >&2
13834     ;;
13835 esac
13836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13837 $as_echo_n "checking for $ac_header... " >&6; }
13838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13839   $as_echo_n "(cached) " >&6
13840 else
13841   eval "$as_ac_Header=\$ac_header_preproc"
13842 fi
13843 ac_res=`eval 'as_val=${'$as_ac_Header'}
13844                  $as_echo "$as_val"'`
13845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13846 $as_echo "$ac_res" >&6; }
13847
13848 fi
13849 as_val=`eval 'as_val=${'$as_ac_Header'}
13850                  $as_echo "$as_val"'`
13851    if test "x$as_val" = x""yes; then
13852   cat >>confdefs.h <<_ACEOF
13853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13854 _ACEOF
13855
13856 else
13857   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13858 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13859    { (exit 1); exit 1; }; }
13860 fi
13861
13862 done
13863
13864   else
13865
13866 for ac_header in winldap.h
13867 do
13868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13869 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13870 $as_echo_n "checking for $ac_header... " >&6; }
13871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13872   $as_echo_n "(cached) " >&6
13873 else
13874   cat >conftest.$ac_ext <<_ACEOF
13875 /* confdefs.h.  */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h.  */
13880 $ac_includes_default
13881 #include <windows.h>
13882
13883
13884 #include <$ac_header>
13885 _ACEOF
13886 rm -f conftest.$ac_objext
13887 if { (ac_try="$ac_compile"
13888 case "(($ac_try" in
13889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890   *) ac_try_echo=$ac_try;;
13891 esac
13892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13893 $as_echo "$ac_try_echo") >&5
13894   (eval "$ac_compile") 2>conftest.er1
13895   ac_status=$?
13896   grep -v '^ *+' conftest.er1 >conftest.err
13897   rm -f conftest.er1
13898   cat conftest.err >&5
13899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); } && {
13901          test -z "$ac_c_werror_flag" ||
13902          test ! -s conftest.err
13903        } && test -s conftest.$ac_objext; then
13904   eval "$as_ac_Header=yes"
13905 else
13906   $as_echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909         eval "$as_ac_Header=no"
13910 fi
13911
13912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13913 fi
13914 ac_res=`eval 'as_val=${'$as_ac_Header'}
13915                  $as_echo "$as_val"'`
13916                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13917 $as_echo "$ac_res" >&6; }
13918 as_val=`eval 'as_val=${'$as_ac_Header'}
13919                  $as_echo "$as_val"'`
13920    if test "x$as_val" = x""yes; then
13921   cat >>confdefs.h <<_ACEOF
13922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13923 _ACEOF
13924
13925 else
13926   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13927 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13928    { (exit 1); exit 1; }; }
13929 fi
13930
13931 done
13932
13933   fi
13934 fi
13935
13936 if test "$with_bonjour" = yes ; then
13937   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13938   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13939 $as_echo_n "checking for dns_sd.h... " >&6; }
13940 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13941   $as_echo_n "(cached) " >&6
13942 fi
13943 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13944 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13945 else
13946   # Is the header compilable?
13947 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13948 $as_echo_n "checking dns_sd.h usability... " >&6; }
13949 cat >conftest.$ac_ext <<_ACEOF
13950 /* confdefs.h.  */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h.  */
13955 $ac_includes_default
13956 #include <dns_sd.h>
13957 _ACEOF
13958 rm -f conftest.$ac_objext
13959 if { (ac_try="$ac_compile"
13960 case "(($ac_try" in
13961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962   *) ac_try_echo=$ac_try;;
13963 esac
13964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13965 $as_echo "$ac_try_echo") >&5
13966   (eval "$ac_compile") 2>conftest.er1
13967   ac_status=$?
13968   grep -v '^ *+' conftest.er1 >conftest.err
13969   rm -f conftest.er1
13970   cat conftest.err >&5
13971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); } && {
13973          test -z "$ac_c_werror_flag" ||
13974          test ! -s conftest.err
13975        } && test -s conftest.$ac_objext; then
13976   ac_header_compiler=yes
13977 else
13978   $as_echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13980
13981         ac_header_compiler=no
13982 fi
13983
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13986 $as_echo "$ac_header_compiler" >&6; }
13987
13988 # Is the header present?
13989 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13990 $as_echo_n "checking dns_sd.h presence... " >&6; }
13991 cat >conftest.$ac_ext <<_ACEOF
13992 /* confdefs.h.  */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h.  */
13997 #include <dns_sd.h>
13998 _ACEOF
13999 if { (ac_try="$ac_cpp conftest.$ac_ext"
14000 case "(($ac_try" in
14001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002   *) ac_try_echo=$ac_try;;
14003 esac
14004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14005 $as_echo "$ac_try_echo") >&5
14006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14007   ac_status=$?
14008   grep -v '^ *+' conftest.er1 >conftest.err
14009   rm -f conftest.er1
14010   cat conftest.err >&5
14011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); } >/dev/null && {
14013          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14014          test ! -s conftest.err
14015        }; then
14016   ac_header_preproc=yes
14017 else
14018   $as_echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14020
14021   ac_header_preproc=no
14022 fi
14023
14024 rm -f conftest.err conftest.$ac_ext
14025 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14026 $as_echo "$ac_header_preproc" >&6; }
14027
14028 # So?  What about this header?
14029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14030   yes:no: )
14031     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14032 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14033     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14034 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14035     ac_header_preproc=yes
14036     ;;
14037   no:yes:* )
14038     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14039 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14040     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
14041 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
14042     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14043 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14044     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
14045 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14046     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14047 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14048     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14049 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14050     ( cat <<\_ASBOX
14051 ## ---------------------------------------- ##
14052 ## Report this to pgsql-bugs@postgresql.org ##
14053 ## ---------------------------------------- ##
14054 _ASBOX
14055      ) | sed "s/^/$as_me: WARNING:     /" >&2
14056     ;;
14057 esac
14058 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14059 $as_echo_n "checking for dns_sd.h... " >&6; }
14060 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14061   $as_echo_n "(cached) " >&6
14062 else
14063   ac_cv_header_dns_sd_h=$ac_header_preproc
14064 fi
14065 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14066 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14067
14068 fi
14069 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14070   :
14071 else
14072   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14073 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14074    { (exit 1); exit 1; }; }
14075 fi
14076
14077
14078 fi
14079
14080 # for contrib/uuid-ossp
14081 if test "$with_ossp_uuid" = yes ; then
14082
14083 for ac_header in ossp/uuid.h
14084 do
14085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14087   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14088 $as_echo_n "checking for $ac_header... " >&6; }
14089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14090   $as_echo_n "(cached) " >&6
14091 fi
14092 ac_res=`eval 'as_val=${'$as_ac_Header'}
14093                  $as_echo "$as_val"'`
14094                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14095 $as_echo "$ac_res" >&6; }
14096 else
14097   # Is the header compilable?
14098 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14099 $as_echo_n "checking $ac_header usability... " >&6; }
14100 cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h.  */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h.  */
14106 $ac_includes_default
14107 #include <$ac_header>
14108 _ACEOF
14109 rm -f conftest.$ac_objext
14110 if { (ac_try="$ac_compile"
14111 case "(($ac_try" in
14112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113   *) ac_try_echo=$ac_try;;
14114 esac
14115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14116 $as_echo "$ac_try_echo") >&5
14117   (eval "$ac_compile") 2>conftest.er1
14118   ac_status=$?
14119   grep -v '^ *+' conftest.er1 >conftest.err
14120   rm -f conftest.er1
14121   cat conftest.err >&5
14122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); } && {
14124          test -z "$ac_c_werror_flag" ||
14125          test ! -s conftest.err
14126        } && test -s conftest.$ac_objext; then
14127   ac_header_compiler=yes
14128 else
14129   $as_echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132         ac_header_compiler=no
14133 fi
14134
14135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14136 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14137 $as_echo "$ac_header_compiler" >&6; }
14138
14139 # Is the header present?
14140 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14141 $as_echo_n "checking $ac_header presence... " >&6; }
14142 cat >conftest.$ac_ext <<_ACEOF
14143 /* confdefs.h.  */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h.  */
14148 #include <$ac_header>
14149 _ACEOF
14150 if { (ac_try="$ac_cpp conftest.$ac_ext"
14151 case "(($ac_try" in
14152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153   *) ac_try_echo=$ac_try;;
14154 esac
14155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14156 $as_echo "$ac_try_echo") >&5
14157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14158   ac_status=$?
14159   grep -v '^ *+' conftest.er1 >conftest.err
14160   rm -f conftest.er1
14161   cat conftest.err >&5
14162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } >/dev/null && {
14164          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14165          test ! -s conftest.err
14166        }; then
14167   ac_header_preproc=yes
14168 else
14169   $as_echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14171
14172   ac_header_preproc=no
14173 fi
14174
14175 rm -f conftest.err conftest.$ac_ext
14176 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14177 $as_echo "$ac_header_preproc" >&6; }
14178
14179 # So?  What about this header?
14180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14181   yes:no: )
14182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14183 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14185 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14186     ac_header_preproc=yes
14187     ;;
14188   no:yes:* )
14189     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14190 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14191     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14192 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14193     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14194 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14196 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14199     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14200 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14201     ( cat <<\_ASBOX
14202 ## ---------------------------------------- ##
14203 ## Report this to pgsql-bugs@postgresql.org ##
14204 ## ---------------------------------------- ##
14205 _ASBOX
14206      ) | sed "s/^/$as_me: WARNING:     /" >&2
14207     ;;
14208 esac
14209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14210 $as_echo_n "checking for $ac_header... " >&6; }
14211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14212   $as_echo_n "(cached) " >&6
14213 else
14214   eval "$as_ac_Header=\$ac_header_preproc"
14215 fi
14216 ac_res=`eval 'as_val=${'$as_ac_Header'}
14217                  $as_echo "$as_val"'`
14218                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14219 $as_echo "$ac_res" >&6; }
14220
14221 fi
14222 as_val=`eval 'as_val=${'$as_ac_Header'}
14223                  $as_echo "$as_val"'`
14224    if test "x$as_val" = x""yes; then
14225   cat >>confdefs.h <<_ACEOF
14226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14227 _ACEOF
14228
14229 else
14230
14231
14232 for ac_header in uuid.h
14233 do
14234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14236   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14237 $as_echo_n "checking for $ac_header... " >&6; }
14238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14239   $as_echo_n "(cached) " >&6
14240 fi
14241 ac_res=`eval 'as_val=${'$as_ac_Header'}
14242                  $as_echo "$as_val"'`
14243                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14244 $as_echo "$ac_res" >&6; }
14245 else
14246   # Is the header compilable?
14247 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14248 $as_echo_n "checking $ac_header usability... " >&6; }
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h.  */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h.  */
14255 $ac_includes_default
14256 #include <$ac_header>
14257 _ACEOF
14258 rm -f conftest.$ac_objext
14259 if { (ac_try="$ac_compile"
14260 case "(($ac_try" in
14261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262   *) ac_try_echo=$ac_try;;
14263 esac
14264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14265 $as_echo "$ac_try_echo") >&5
14266   (eval "$ac_compile") 2>conftest.er1
14267   ac_status=$?
14268   grep -v '^ *+' conftest.er1 >conftest.err
14269   rm -f conftest.er1
14270   cat conftest.err >&5
14271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); } && {
14273          test -z "$ac_c_werror_flag" ||
14274          test ! -s conftest.err
14275        } && test -s conftest.$ac_objext; then
14276   ac_header_compiler=yes
14277 else
14278   $as_echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14280
14281         ac_header_compiler=no
14282 fi
14283
14284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14285 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14286 $as_echo "$ac_header_compiler" >&6; }
14287
14288 # Is the header present?
14289 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14290 $as_echo_n "checking $ac_header presence... " >&6; }
14291 cat >conftest.$ac_ext <<_ACEOF
14292 /* confdefs.h.  */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h.  */
14297 #include <$ac_header>
14298 _ACEOF
14299 if { (ac_try="$ac_cpp conftest.$ac_ext"
14300 case "(($ac_try" in
14301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302   *) ac_try_echo=$ac_try;;
14303 esac
14304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14305 $as_echo "$ac_try_echo") >&5
14306   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14307   ac_status=$?
14308   grep -v '^ *+' conftest.er1 >conftest.err
14309   rm -f conftest.er1
14310   cat conftest.err >&5
14311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); } >/dev/null && {
14313          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14314          test ! -s conftest.err
14315        }; then
14316   ac_header_preproc=yes
14317 else
14318   $as_echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14320
14321   ac_header_preproc=no
14322 fi
14323
14324 rm -f conftest.err conftest.$ac_ext
14325 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14326 $as_echo "$ac_header_preproc" >&6; }
14327
14328 # So?  What about this header?
14329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14330   yes:no: )
14331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14332 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14333     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14335     ac_header_preproc=yes
14336     ;;
14337   no:yes:* )
14338     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14339 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14340     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14341 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14342     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14343 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14344     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14345 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14346     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14347 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14348     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14349 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14350     ( cat <<\_ASBOX
14351 ## ---------------------------------------- ##
14352 ## Report this to pgsql-bugs@postgresql.org ##
14353 ## ---------------------------------------- ##
14354 _ASBOX
14355      ) | sed "s/^/$as_me: WARNING:     /" >&2
14356     ;;
14357 esac
14358 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14359 $as_echo_n "checking for $ac_header... " >&6; }
14360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14361   $as_echo_n "(cached) " >&6
14362 else
14363   eval "$as_ac_Header=\$ac_header_preproc"
14364 fi
14365 ac_res=`eval 'as_val=${'$as_ac_Header'}
14366                  $as_echo "$as_val"'`
14367                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14368 $as_echo "$ac_res" >&6; }
14369
14370 fi
14371 as_val=`eval 'as_val=${'$as_ac_Header'}
14372                  $as_echo "$as_val"'`
14373    if test "x$as_val" = x""yes; then
14374   cat >>confdefs.h <<_ACEOF
14375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14376 _ACEOF
14377
14378 else
14379   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14380 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14381    { (exit 1); exit 1; }; }
14382 fi
14383
14384 done
14385
14386 fi
14387
14388 done
14389
14390 fi
14391
14392 if test "$PORTNAME" = "win32" ; then
14393
14394 for ac_header in crtdefs.h
14395 do
14396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14398   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14399 $as_echo_n "checking for $ac_header... " >&6; }
14400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14401   $as_echo_n "(cached) " >&6
14402 fi
14403 ac_res=`eval 'as_val=${'$as_ac_Header'}
14404                  $as_echo "$as_val"'`
14405                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14406 $as_echo "$ac_res" >&6; }
14407 else
14408   # Is the header compilable?
14409 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14410 $as_echo_n "checking $ac_header usability... " >&6; }
14411 cat >conftest.$ac_ext <<_ACEOF
14412 /* confdefs.h.  */
14413 _ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h.  */
14417 $ac_includes_default
14418 #include <$ac_header>
14419 _ACEOF
14420 rm -f conftest.$ac_objext
14421 if { (ac_try="$ac_compile"
14422 case "(($ac_try" in
14423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424   *) ac_try_echo=$ac_try;;
14425 esac
14426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14427 $as_echo "$ac_try_echo") >&5
14428   (eval "$ac_compile") 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } && {
14435          test -z "$ac_c_werror_flag" ||
14436          test ! -s conftest.err
14437        } && test -s conftest.$ac_objext; then
14438   ac_header_compiler=yes
14439 else
14440   $as_echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14442
14443         ac_header_compiler=no
14444 fi
14445
14446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14448 $as_echo "$ac_header_compiler" >&6; }
14449
14450 # Is the header present?
14451 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14452 $as_echo_n "checking $ac_header presence... " >&6; }
14453 cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h.  */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h.  */
14459 #include <$ac_header>
14460 _ACEOF
14461 if { (ac_try="$ac_cpp conftest.$ac_ext"
14462 case "(($ac_try" in
14463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464   *) ac_try_echo=$ac_try;;
14465 esac
14466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14467 $as_echo "$ac_try_echo") >&5
14468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14469   ac_status=$?
14470   grep -v '^ *+' conftest.er1 >conftest.err
14471   rm -f conftest.er1
14472   cat conftest.err >&5
14473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); } >/dev/null && {
14475          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14476          test ! -s conftest.err
14477        }; then
14478   ac_header_preproc=yes
14479 else
14480   $as_echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14482
14483   ac_header_preproc=no
14484 fi
14485
14486 rm -f conftest.err conftest.$ac_ext
14487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14488 $as_echo "$ac_header_preproc" >&6; }
14489
14490 # So?  What about this header?
14491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14492   yes:no: )
14493     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14494 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14495     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14497     ac_header_preproc=yes
14498     ;;
14499   no:yes:* )
14500     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14501 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14502     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14503 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14504     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14505 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14506     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14507 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14508     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14510     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14511 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14512     ( cat <<\_ASBOX
14513 ## ---------------------------------------- ##
14514 ## Report this to pgsql-bugs@postgresql.org ##
14515 ## ---------------------------------------- ##
14516 _ASBOX
14517      ) | sed "s/^/$as_me: WARNING:     /" >&2
14518     ;;
14519 esac
14520 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14521 $as_echo_n "checking for $ac_header... " >&6; }
14522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14523   $as_echo_n "(cached) " >&6
14524 else
14525   eval "$as_ac_Header=\$ac_header_preproc"
14526 fi
14527 ac_res=`eval 'as_val=${'$as_ac_Header'}
14528                  $as_echo "$as_val"'`
14529                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14530 $as_echo "$ac_res" >&6; }
14531
14532 fi
14533 as_val=`eval 'as_val=${'$as_ac_Header'}
14534                  $as_echo "$as_val"'`
14535    if test "x$as_val" = x""yes; then
14536   cat >>confdefs.h <<_ACEOF
14537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14538 _ACEOF
14539
14540 fi
14541
14542 done
14543
14544 fi
14545
14546 ##
14547 ## Types, structures, compiler characteristics
14548 ##
14549
14550
14551  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14552 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14553 if test "${ac_cv_c_bigendian+set}" = set; then
14554   $as_echo_n "(cached) " >&6
14555 else
14556   ac_cv_c_bigendian=unknown
14557     # See if we're dealing with a universal compiler.
14558     cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h.  */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h.  */
14564 #ifndef __APPLE_CC__
14565                not a universal capable compiler
14566              #endif
14567              typedef int dummy;
14568
14569 _ACEOF
14570 rm -f conftest.$ac_objext
14571 if { (ac_try="$ac_compile"
14572 case "(($ac_try" in
14573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574   *) ac_try_echo=$ac_try;;
14575 esac
14576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14577 $as_echo "$ac_try_echo") >&5
14578   (eval "$ac_compile") 2>conftest.er1
14579   ac_status=$?
14580   grep -v '^ *+' conftest.er1 >conftest.err
14581   rm -f conftest.er1
14582   cat conftest.err >&5
14583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); } && {
14585          test -z "$ac_c_werror_flag" ||
14586          test ! -s conftest.err
14587        } && test -s conftest.$ac_objext; then
14588
14589         # Check for potential -arch flags.  It is not universal unless
14590         # there are some -arch flags.  Note that *ppc* also matches
14591         # ppc64.  This check is also rather less than ideal.
14592         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14593           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14594         esac
14595 else
14596   $as_echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14598
14599
14600 fi
14601
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603     if test $ac_cv_c_bigendian = unknown; then
14604       # See if sys/param.h defines the BYTE_ORDER macro.
14605       cat >conftest.$ac_ext <<_ACEOF
14606 /* confdefs.h.  */
14607 _ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h.  */
14611 #include <sys/types.h>
14612              #include <sys/param.h>
14613
14614 int
14615 main ()
14616 {
14617 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14618                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14619                      && LITTLE_ENDIAN)
14620               bogus endian macros
14621              #endif
14622
14623   ;
14624   return 0;
14625 }
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (ac_try="$ac_compile"
14629 case "(($ac_try" in
14630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631   *) ac_try_echo=$ac_try;;
14632 esac
14633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14634 $as_echo "$ac_try_echo") >&5
14635   (eval "$ac_compile") 2>conftest.er1
14636   ac_status=$?
14637   grep -v '^ *+' conftest.er1 >conftest.err
14638   rm -f conftest.er1
14639   cat conftest.err >&5
14640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); } && {
14642          test -z "$ac_c_werror_flag" ||
14643          test ! -s conftest.err
14644        } && test -s conftest.$ac_objext; then
14645   # It does; now see whether it defined to BIG_ENDIAN or not.
14646          cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h.  */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h.  */
14652 #include <sys/types.h>
14653                 #include <sys/param.h>
14654
14655 int
14656 main ()
14657 {
14658 #if BYTE_ORDER != BIG_ENDIAN
14659                  not big endian
14660                 #endif
14661
14662   ;
14663   return 0;
14664 }
14665 _ACEOF
14666 rm -f conftest.$ac_objext
14667 if { (ac_try="$ac_compile"
14668 case "(($ac_try" in
14669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670   *) ac_try_echo=$ac_try;;
14671 esac
14672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14673 $as_echo "$ac_try_echo") >&5
14674   (eval "$ac_compile") 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } && {
14681          test -z "$ac_c_werror_flag" ||
14682          test ! -s conftest.err
14683        } && test -s conftest.$ac_objext; then
14684   ac_cv_c_bigendian=yes
14685 else
14686   $as_echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689         ac_cv_c_bigendian=no
14690 fi
14691
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 else
14694   $as_echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14696
14697
14698 fi
14699
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701     fi
14702     if test $ac_cv_c_bigendian = unknown; then
14703       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14704       cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710 #include <limits.h>
14711
14712 int
14713 main ()
14714 {
14715 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14716               bogus endian macros
14717              #endif
14718
14719   ;
14720   return 0;
14721 }
14722 _ACEOF
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727   *) ac_try_echo=$ac_try;;
14728 esac
14729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14730 $as_echo "$ac_try_echo") >&5
14731   (eval "$ac_compile") 2>conftest.er1
14732   ac_status=$?
14733   grep -v '^ *+' conftest.er1 >conftest.err
14734   rm -f conftest.er1
14735   cat conftest.err >&5
14736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); } && {
14738          test -z "$ac_c_werror_flag" ||
14739          test ! -s conftest.err
14740        } && test -s conftest.$ac_objext; then
14741   # It does; now see whether it defined to _BIG_ENDIAN or not.
14742          cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h.  */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h.  */
14748 #include <limits.h>
14749
14750 int
14751 main ()
14752 {
14753 #ifndef _BIG_ENDIAN
14754                  not big endian
14755                 #endif
14756
14757   ;
14758   return 0;
14759 }
14760 _ACEOF
14761 rm -f conftest.$ac_objext
14762 if { (ac_try="$ac_compile"
14763 case "(($ac_try" in
14764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765   *) ac_try_echo=$ac_try;;
14766 esac
14767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14768 $as_echo "$ac_try_echo") >&5
14769   (eval "$ac_compile") 2>conftest.er1
14770   ac_status=$?
14771   grep -v '^ *+' conftest.er1 >conftest.err
14772   rm -f conftest.er1
14773   cat conftest.err >&5
14774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); } && {
14776          test -z "$ac_c_werror_flag" ||
14777          test ! -s conftest.err
14778        } && test -s conftest.$ac_objext; then
14779   ac_cv_c_bigendian=yes
14780 else
14781   $as_echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14783
14784         ac_cv_c_bigendian=no
14785 fi
14786
14787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788 else
14789   $as_echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14791
14792
14793 fi
14794
14795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14796     fi
14797     if test $ac_cv_c_bigendian = unknown; then
14798       # Compile a test program.
14799       if test "$cross_compiling" = yes; then
14800   # Try to guess by grepping values from an object file.
14801          cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h.  */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h.  */
14807 short int ascii_mm[] =
14808                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14809                 short int ascii_ii[] =
14810                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14811                 int use_ascii (int i) {
14812                   return ascii_mm[i] + ascii_ii[i];
14813                 }
14814                 short int ebcdic_ii[] =
14815                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14816                 short int ebcdic_mm[] =
14817                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14818                 int use_ebcdic (int i) {
14819                   return ebcdic_mm[i] + ebcdic_ii[i];
14820                 }
14821                 extern int foo;
14822
14823 int
14824 main ()
14825 {
14826 return use_ascii (foo) == use_ebcdic (foo);
14827   ;
14828   return 0;
14829 }
14830 _ACEOF
14831 rm -f conftest.$ac_objext
14832 if { (ac_try="$ac_compile"
14833 case "(($ac_try" in
14834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835   *) ac_try_echo=$ac_try;;
14836 esac
14837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14838 $as_echo "$ac_try_echo") >&5
14839   (eval "$ac_compile") 2>conftest.er1
14840   ac_status=$?
14841   grep -v '^ *+' conftest.er1 >conftest.err
14842   rm -f conftest.er1
14843   cat conftest.err >&5
14844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); } && {
14846          test -z "$ac_c_werror_flag" ||
14847          test ! -s conftest.err
14848        } && test -s conftest.$ac_objext; then
14849   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14850               ac_cv_c_bigendian=yes
14851             fi
14852             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14853               if test "$ac_cv_c_bigendian" = unknown; then
14854                 ac_cv_c_bigendian=no
14855               else
14856                 # finding both strings is unlikely to happen, but who knows?
14857                 ac_cv_c_bigendian=unknown
14858               fi
14859             fi
14860 else
14861   $as_echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14863
14864
14865 fi
14866
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 else
14869   cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h.  */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h.  */
14875 $ac_includes_default
14876 int
14877 main ()
14878 {
14879
14880              /* Are we little or big endian?  From Harbison&Steele.  */
14881              union
14882              {
14883                long int l;
14884                char c[sizeof (long int)];
14885              } u;
14886              u.l = 1;
14887              return u.c[sizeof (long int) - 1] == 1;
14888
14889   ;
14890   return 0;
14891 }
14892 _ACEOF
14893 rm -f conftest$ac_exeext
14894 if { (ac_try="$ac_link"
14895 case "(($ac_try" in
14896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897   *) ac_try_echo=$ac_try;;
14898 esac
14899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14900 $as_echo "$ac_try_echo") >&5
14901   (eval "$ac_link") 2>&5
14902   ac_status=$?
14903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905   { (case "(($ac_try" in
14906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907   *) ac_try_echo=$ac_try;;
14908 esac
14909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14910 $as_echo "$ac_try_echo") >&5
14911   (eval "$ac_try") 2>&5
14912   ac_status=$?
14913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); }; }; then
14915   ac_cv_c_bigendian=no
14916 else
14917   $as_echo "$as_me: program exited with status $ac_status" >&5
14918 $as_echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 ( exit $ac_status )
14922 ac_cv_c_bigendian=yes
14923 fi
14924 rm -rf conftest.dSYM
14925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14926 fi
14927
14928
14929     fi
14930 fi
14931 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14932 $as_echo "$ac_cv_c_bigendian" >&6; }
14933  case $ac_cv_c_bigendian in #(
14934    yes)
14935      cat >>confdefs.h <<\_ACEOF
14936 #define WORDS_BIGENDIAN 1
14937 _ACEOF
14938 ;; #(
14939    no)
14940       ;; #(
14941    universal)
14942
14943 cat >>confdefs.h <<\_ACEOF
14944 #define AC_APPLE_UNIVERSAL_BUILD 1
14945 _ACEOF
14946
14947      ;; #(
14948    *)
14949      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14950  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14951 $as_echo "$as_me: error: unknown endianness
14952  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14953    { (exit 1); exit 1; }; } ;;
14954  esac
14955
14956 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14957 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14958 if test "${ac_cv_c_const+set}" = set; then
14959   $as_echo_n "(cached) " >&6
14960 else
14961   cat >conftest.$ac_ext <<_ACEOF
14962 /* confdefs.h.  */
14963 _ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h.  */
14967
14968 int
14969 main ()
14970 {
14971 /* FIXME: Include the comments suggested by Paul. */
14972 #ifndef __cplusplus
14973   /* Ultrix mips cc rejects this.  */
14974   typedef int charset[2];
14975   const charset cs;
14976   /* SunOS 4.1.1 cc rejects this.  */
14977   char const *const *pcpcc;
14978   char **ppc;
14979   /* NEC SVR4.0.2 mips cc rejects this.  */
14980   struct point {int x, y;};
14981   static struct point const zero = {0,0};
14982   /* AIX XL C 1.02.0.0 rejects this.
14983      It does not let you subtract one const X* pointer from another in
14984      an arm of an if-expression whose if-part is not a constant
14985      expression */
14986   const char *g = "string";
14987   pcpcc = &g + (g ? g-g : 0);
14988   /* HPUX 7.0 cc rejects these. */
14989   ++pcpcc;
14990   ppc = (char**) pcpcc;
14991   pcpcc = (char const *const *) ppc;
14992   { /* SCO 3.2v4 cc rejects this.  */
14993     char *t;
14994     char const *s = 0 ? (char *) 0 : (char const *) 0;
14995
14996     *t++ = 0;
14997     if (s) return 0;
14998   }
14999   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15000     int x[] = {25, 17};
15001     const int *foo = &x[0];
15002     ++foo;
15003   }
15004   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15005     typedef const int *iptr;
15006     iptr p = 0;
15007     ++p;
15008   }
15009   { /* AIX XL C 1.02.0.0 rejects this saying
15010        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15011     struct s { int j; const int *ap[3]; };
15012     struct s *b; b->j = 5;
15013   }
15014   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15015     const int foo = 10;
15016     if (!foo) return 0;
15017   }
15018   return !cs[0] && !zero.x;
15019 #endif
15020
15021   ;
15022   return 0;
15023 }
15024 _ACEOF
15025 rm -f conftest.$ac_objext
15026 if { (ac_try="$ac_compile"
15027 case "(($ac_try" in
15028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029   *) ac_try_echo=$ac_try;;
15030 esac
15031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15032 $as_echo "$ac_try_echo") >&5
15033   (eval "$ac_compile") 2>conftest.er1
15034   ac_status=$?
15035   grep -v '^ *+' conftest.er1 >conftest.err
15036   rm -f conftest.er1
15037   cat conftest.err >&5
15038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } && {
15040          test -z "$ac_c_werror_flag" ||
15041          test ! -s conftest.err
15042        } && test -s conftest.$ac_objext; then
15043   ac_cv_c_const=yes
15044 else
15045   $as_echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048         ac_cv_c_const=no
15049 fi
15050
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 fi
15053 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15054 $as_echo "$ac_cv_c_const" >&6; }
15055 if test $ac_cv_c_const = no; then
15056
15057 cat >>confdefs.h <<\_ACEOF
15058 #define const /**/
15059 _ACEOF
15060
15061 fi
15062
15063 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15064 $as_echo_n "checking for inline... " >&6; }
15065 if test "${ac_cv_c_inline+set}" = set; then
15066   $as_echo_n "(cached) " >&6
15067 else
15068   ac_cv_c_inline=no
15069 for ac_kw in inline __inline__ __inline; do
15070   cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h.  */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h.  */
15076 #ifndef __cplusplus
15077 typedef int foo_t;
15078 static $ac_kw foo_t static_foo () {return 0; }
15079 $ac_kw foo_t foo () {return 0; }
15080 #endif
15081
15082 _ACEOF
15083 rm -f conftest.$ac_objext
15084 if { (ac_try="$ac_compile"
15085 case "(($ac_try" in
15086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087   *) ac_try_echo=$ac_try;;
15088 esac
15089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15090 $as_echo "$ac_try_echo") >&5
15091   (eval "$ac_compile") 2>conftest.er1
15092   ac_status=$?
15093   grep -v '^ *+' conftest.er1 >conftest.err
15094   rm -f conftest.er1
15095   cat conftest.err >&5
15096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); } && {
15098          test -z "$ac_c_werror_flag" ||
15099          test ! -s conftest.err
15100        } && test -s conftest.$ac_objext; then
15101   ac_cv_c_inline=$ac_kw
15102 else
15103   $as_echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15105
15106
15107 fi
15108
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110   test "$ac_cv_c_inline" != no && break
15111 done
15112
15113 fi
15114 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15115 $as_echo "$ac_cv_c_inline" >&6; }
15116
15117
15118 case $ac_cv_c_inline in
15119   inline | yes) ;;
15120   *)
15121     case $ac_cv_c_inline in
15122       no) ac_val=;;
15123       *) ac_val=$ac_cv_c_inline;;
15124     esac
15125     cat >>confdefs.h <<_ACEOF
15126 #ifndef __cplusplus
15127 #define inline $ac_val
15128 #endif
15129 _ACEOF
15130     ;;
15131 esac
15132
15133 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15134 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15135 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15136   $as_echo_n "(cached) " >&6
15137 else
15138   pgac_cv_c_inline_quietly=no
15139   if test "$ac_cv_c_inline" != no; then
15140     pgac_c_inline_save_werror=$ac_c_werror_flag
15141     ac_c_werror_flag=yes
15142     cat >conftest.$ac_ext <<_ACEOF
15143 /* confdefs.h.  */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h.  */
15148 static inline int fun () {return 0;}
15149 int
15150 main ()
15151 {
15152
15153   ;
15154   return 0;
15155 }
15156 _ACEOF
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (ac_try="$ac_link"
15159 case "(($ac_try" in
15160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161   *) ac_try_echo=$ac_try;;
15162 esac
15163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15164 $as_echo "$ac_try_echo") >&5
15165   (eval "$ac_link") 2>conftest.er1
15166   ac_status=$?
15167   grep -v '^ *+' conftest.er1 >conftest.err
15168   rm -f conftest.er1
15169   cat conftest.err >&5
15170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); } && {
15172          test -z "$ac_c_werror_flag" ||
15173          test ! -s conftest.err
15174        } && test -s conftest$ac_exeext && {
15175          test "$cross_compiling" = yes ||
15176          $as_test_x conftest$ac_exeext
15177        }; then
15178   pgac_cv_c_inline_quietly=yes
15179 else
15180   $as_echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15182
15183
15184 fi
15185
15186 rm -rf conftest.dSYM
15187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15188       conftest$ac_exeext conftest.$ac_ext
15189     ac_c_werror_flag=$pgac_c_inline_save_werror
15190   fi
15191 fi
15192 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15193 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15194 if test "$pgac_cv_c_inline_quietly" != no; then
15195
15196 cat >>confdefs.h <<_ACEOF
15197 #define USE_INLINE 1
15198 _ACEOF
15199
15200 fi
15201
15202 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15203 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15204 if test "${ac_cv_c_stringize+set}" = set; then
15205   $as_echo_n "(cached) " >&6
15206 else
15207   cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h.  */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h.  */
15213 #define x(y) #y
15214
15215 char *s = x(teststring);
15216 _ACEOF
15217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15218   $EGREP "#teststring" >/dev/null 2>&1; then
15219   ac_cv_c_stringize=no
15220 else
15221   ac_cv_c_stringize=yes
15222 fi
15223 rm -f conftest*
15224
15225 fi
15226 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15227 $as_echo "$ac_cv_c_stringize" >&6; }
15228 if test $ac_cv_c_stringize = yes; then
15229
15230 cat >>confdefs.h <<\_ACEOF
15231 #define HAVE_STRINGIZE 1
15232 _ACEOF
15233
15234 fi
15235
15236
15237   { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15238 $as_echo_n "checking for flexible array members... " >&6; }
15239 if test "${ac_cv_c_flexmember+set}" = set; then
15240   $as_echo_n "(cached) " >&6
15241 else
15242   cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 #include <stdlib.h>
15249             #include <stdio.h>
15250             #include <stddef.h>
15251             struct s { int n; double d[]; };
15252 int
15253 main ()
15254 {
15255 int m = getchar ();
15256             struct s *p = malloc (offsetof (struct s, d)
15257                                   + m * sizeof (double));
15258             p->d[0] = 0.0;
15259             return p->d != (double *) NULL;
15260   ;
15261   return 0;
15262 }
15263 _ACEOF
15264 rm -f conftest.$ac_objext
15265 if { (ac_try="$ac_compile"
15266 case "(($ac_try" in
15267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268   *) ac_try_echo=$ac_try;;
15269 esac
15270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15271 $as_echo "$ac_try_echo") >&5
15272   (eval "$ac_compile") 2>conftest.er1
15273   ac_status=$?
15274   grep -v '^ *+' conftest.er1 >conftest.err
15275   rm -f conftest.er1
15276   cat conftest.err >&5
15277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); } && {
15279          test -z "$ac_c_werror_flag" ||
15280          test ! -s conftest.err
15281        } && test -s conftest.$ac_objext; then
15282   ac_cv_c_flexmember=yes
15283 else
15284   $as_echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15286
15287         ac_cv_c_flexmember=no
15288 fi
15289
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291 fi
15292 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15293 $as_echo "$ac_cv_c_flexmember" >&6; }
15294   if test $ac_cv_c_flexmember = yes; then
15295
15296 cat >>confdefs.h <<\_ACEOF
15297 #define FLEXIBLE_ARRAY_MEMBER /**/
15298 _ACEOF
15299
15300   else
15301     cat >>confdefs.h <<\_ACEOF
15302 #define FLEXIBLE_ARRAY_MEMBER 1
15303 _ACEOF
15304
15305   fi
15306
15307 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15308 $as_echo_n "checking for signed types... " >&6; }
15309 if test "${pgac_cv_c_signed+set}" = set; then
15310   $as_echo_n "(cached) " >&6
15311 else
15312   cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h.  */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h.  */
15318
15319 int
15320 main ()
15321 {
15322 signed char c; signed short s; signed int i;
15323   ;
15324   return 0;
15325 }
15326 _ACEOF
15327 rm -f conftest.$ac_objext
15328 if { (ac_try="$ac_compile"
15329 case "(($ac_try" in
15330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331   *) ac_try_echo=$ac_try;;
15332 esac
15333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15334 $as_echo "$ac_try_echo") >&5
15335   (eval "$ac_compile") 2>conftest.er1
15336   ac_status=$?
15337   grep -v '^ *+' conftest.er1 >conftest.err
15338   rm -f conftest.er1
15339   cat conftest.err >&5
15340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); } && {
15342          test -z "$ac_c_werror_flag" ||
15343          test ! -s conftest.err
15344        } && test -s conftest.$ac_objext; then
15345   pgac_cv_c_signed=yes
15346 else
15347   $as_echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15349
15350         pgac_cv_c_signed=no
15351 fi
15352
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354 fi
15355 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15356 $as_echo "$pgac_cv_c_signed" >&6; }
15357 if test x"$pgac_cv_c_signed" = xno ; then
15358
15359 cat >>confdefs.h <<\_ACEOF
15360 #define signed /**/
15361 _ACEOF
15362
15363 fi
15364 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15365 $as_echo_n "checking for working volatile... " >&6; }
15366 if test "${ac_cv_c_volatile+set}" = set; then
15367   $as_echo_n "(cached) " >&6
15368 else
15369   cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h.  */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h.  */
15375
15376 int
15377 main ()
15378 {
15379
15380 volatile int x;
15381 int * volatile y = (int *) 0;
15382 return !x && !y;
15383   ;
15384   return 0;
15385 }
15386 _ACEOF
15387 rm -f conftest.$ac_objext
15388 if { (ac_try="$ac_compile"
15389 case "(($ac_try" in
15390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391   *) ac_try_echo=$ac_try;;
15392 esac
15393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15394 $as_echo "$ac_try_echo") >&5
15395   (eval "$ac_compile") 2>conftest.er1
15396   ac_status=$?
15397   grep -v '^ *+' conftest.er1 >conftest.err
15398   rm -f conftest.er1
15399   cat conftest.err >&5
15400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); } && {
15402          test -z "$ac_c_werror_flag" ||
15403          test ! -s conftest.err
15404        } && test -s conftest.$ac_objext; then
15405   ac_cv_c_volatile=yes
15406 else
15407   $as_echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15409
15410         ac_cv_c_volatile=no
15411 fi
15412
15413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15414 fi
15415 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15416 $as_echo "$ac_cv_c_volatile" >&6; }
15417 if test $ac_cv_c_volatile = no; then
15418
15419 cat >>confdefs.h <<\_ACEOF
15420 #define volatile /**/
15421 _ACEOF
15422
15423 fi
15424
15425 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15426 $as_echo_n "checking for __func__... " >&6; }
15427 if test "${pgac_cv_funcname_func_support+set}" = set; then
15428   $as_echo_n "(cached) " >&6
15429 else
15430   cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h.  */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h.  */
15436 #include <stdio.h>
15437 int
15438 main ()
15439 {
15440 printf("%s\n", __func__);
15441   ;
15442   return 0;
15443 }
15444 _ACEOF
15445 rm -f conftest.$ac_objext
15446 if { (ac_try="$ac_compile"
15447 case "(($ac_try" in
15448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449   *) ac_try_echo=$ac_try;;
15450 esac
15451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15452 $as_echo "$ac_try_echo") >&5
15453   (eval "$ac_compile") 2>conftest.er1
15454   ac_status=$?
15455   grep -v '^ *+' conftest.er1 >conftest.err
15456   rm -f conftest.er1
15457   cat conftest.err >&5
15458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); } && {
15460          test -z "$ac_c_werror_flag" ||
15461          test ! -s conftest.err
15462        } && test -s conftest.$ac_objext; then
15463   pgac_cv_funcname_func_support=yes
15464 else
15465   $as_echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468         pgac_cv_funcname_func_support=no
15469 fi
15470
15471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15472 fi
15473 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15474 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15475 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15476
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_FUNCNAME__FUNC 1
15479 _ACEOF
15480
15481 else
15482 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15483 $as_echo_n "checking for __FUNCTION__... " >&6; }
15484 if test "${pgac_cv_funcname_function_support+set}" = set; then
15485   $as_echo_n "(cached) " >&6
15486 else
15487   cat >conftest.$ac_ext <<_ACEOF
15488 /* confdefs.h.  */
15489 _ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h.  */
15493 #include <stdio.h>
15494 int
15495 main ()
15496 {
15497 printf("%s\n", __FUNCTION__);
15498   ;
15499   return 0;
15500 }
15501 _ACEOF
15502 rm -f conftest.$ac_objext
15503 if { (ac_try="$ac_compile"
15504 case "(($ac_try" in
15505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506   *) ac_try_echo=$ac_try;;
15507 esac
15508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15509 $as_echo "$ac_try_echo") >&5
15510   (eval "$ac_compile") 2>conftest.er1
15511   ac_status=$?
15512   grep -v '^ *+' conftest.er1 >conftest.err
15513   rm -f conftest.er1
15514   cat conftest.err >&5
15515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); } && {
15517          test -z "$ac_c_werror_flag" ||
15518          test ! -s conftest.err
15519        } && test -s conftest.$ac_objext; then
15520   pgac_cv_funcname_function_support=yes
15521 else
15522   $as_echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525         pgac_cv_funcname_function_support=no
15526 fi
15527
15528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15529 fi
15530 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15531 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15532 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15533
15534 cat >>confdefs.h <<\_ACEOF
15535 #define HAVE_FUNCNAME__FUNCTION 1
15536 _ACEOF
15537
15538 fi
15539 fi
15540 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15541 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15542 if test "${ac_cv_struct_tm+set}" = set; then
15543   $as_echo_n "(cached) " >&6
15544 else
15545   cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h.  */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h.  */
15551 #include <sys/types.h>
15552 #include <time.h>
15553
15554 int
15555 main ()
15556 {
15557 struct tm tm;
15558                                      int *p = &tm.tm_sec;
15559                                      return !p;
15560   ;
15561   return 0;
15562 }
15563 _ACEOF
15564 rm -f conftest.$ac_objext
15565 if { (ac_try="$ac_compile"
15566 case "(($ac_try" in
15567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568   *) ac_try_echo=$ac_try;;
15569 esac
15570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15571 $as_echo "$ac_try_echo") >&5
15572   (eval "$ac_compile") 2>conftest.er1
15573   ac_status=$?
15574   grep -v '^ *+' conftest.er1 >conftest.err
15575   rm -f conftest.er1
15576   cat conftest.err >&5
15577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); } && {
15579          test -z "$ac_c_werror_flag" ||
15580          test ! -s conftest.err
15581        } && test -s conftest.$ac_objext; then
15582   ac_cv_struct_tm=time.h
15583 else
15584   $as_echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15586
15587         ac_cv_struct_tm=sys/time.h
15588 fi
15589
15590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591 fi
15592 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15593 $as_echo "$ac_cv_struct_tm" >&6; }
15594 if test $ac_cv_struct_tm = sys/time.h; then
15595
15596 cat >>confdefs.h <<\_ACEOF
15597 #define TM_IN_SYS_TIME 1
15598 _ACEOF
15599
15600 fi
15601
15602 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15603 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15604 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15605   $as_echo_n "(cached) " >&6
15606 else
15607   cat >conftest.$ac_ext <<_ACEOF
15608 /* confdefs.h.  */
15609 _ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h.  */
15613 #include <sys/types.h>
15614 #include <$ac_cv_struct_tm>
15615
15616
15617 int
15618 main ()
15619 {
15620 static struct tm ac_aggr;
15621 if (ac_aggr.tm_zone)
15622 return 0;
15623   ;
15624   return 0;
15625 }
15626 _ACEOF
15627 rm -f conftest.$ac_objext
15628 if { (ac_try="$ac_compile"
15629 case "(($ac_try" in
15630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631   *) ac_try_echo=$ac_try;;
15632 esac
15633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15634 $as_echo "$ac_try_echo") >&5
15635   (eval "$ac_compile") 2>conftest.er1
15636   ac_status=$?
15637   grep -v '^ *+' conftest.er1 >conftest.err
15638   rm -f conftest.er1
15639   cat conftest.err >&5
15640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); } && {
15642          test -z "$ac_c_werror_flag" ||
15643          test ! -s conftest.err
15644        } && test -s conftest.$ac_objext; then
15645   ac_cv_member_struct_tm_tm_zone=yes
15646 else
15647   $as_echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15649
15650         cat >conftest.$ac_ext <<_ACEOF
15651 /* confdefs.h.  */
15652 _ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h.  */
15656 #include <sys/types.h>
15657 #include <$ac_cv_struct_tm>
15658
15659
15660 int
15661 main ()
15662 {
15663 static struct tm ac_aggr;
15664 if (sizeof ac_aggr.tm_zone)
15665 return 0;
15666   ;
15667   return 0;
15668 }
15669 _ACEOF
15670 rm -f conftest.$ac_objext
15671 if { (ac_try="$ac_compile"
15672 case "(($ac_try" in
15673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674   *) ac_try_echo=$ac_try;;
15675 esac
15676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15677 $as_echo "$ac_try_echo") >&5
15678   (eval "$ac_compile") 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } && {
15685          test -z "$ac_c_werror_flag" ||
15686          test ! -s conftest.err
15687        } && test -s conftest.$ac_objext; then
15688   ac_cv_member_struct_tm_tm_zone=yes
15689 else
15690   $as_echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693         ac_cv_member_struct_tm_tm_zone=no
15694 fi
15695
15696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15697 fi
15698
15699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15700 fi
15701 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15702 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15703 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15704
15705 cat >>confdefs.h <<_ACEOF
15706 #define HAVE_STRUCT_TM_TM_ZONE 1
15707 _ACEOF
15708
15709
15710 fi
15711
15712 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15713
15714 cat >>confdefs.h <<\_ACEOF
15715 #define HAVE_TM_ZONE 1
15716 _ACEOF
15717
15718 fi
15719 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15720 $as_echo_n "checking for tzname... " >&6; }
15721 if test "${ac_cv_var_tzname+set}" = set; then
15722   $as_echo_n "(cached) " >&6
15723 else
15724   cat >conftest.$ac_ext <<_ACEOF
15725 /* confdefs.h.  */
15726 _ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h.  */
15730 #include <time.h>
15731 #ifndef tzname /* For SGI.  */
15732 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15733 #endif
15734
15735 int
15736 main ()
15737 {
15738 atoi(*tzname);
15739   ;
15740   return 0;
15741 }
15742 _ACEOF
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747   *) ac_try_echo=$ac_try;;
15748 esac
15749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15750 $as_echo "$ac_try_echo") >&5
15751   (eval "$ac_link") 2>conftest.er1
15752   ac_status=$?
15753   grep -v '^ *+' conftest.er1 >conftest.err
15754   rm -f conftest.er1
15755   cat conftest.err >&5
15756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } && {
15758          test -z "$ac_c_werror_flag" ||
15759          test ! -s conftest.err
15760        } && test -s conftest$ac_exeext && {
15761          test "$cross_compiling" = yes ||
15762          $as_test_x conftest$ac_exeext
15763        }; then
15764   ac_cv_var_tzname=yes
15765 else
15766   $as_echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769         ac_cv_var_tzname=no
15770 fi
15771
15772 rm -rf conftest.dSYM
15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15774       conftest$ac_exeext conftest.$ac_ext
15775 fi
15776 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15777 $as_echo "$ac_cv_var_tzname" >&6; }
15778 if test $ac_cv_var_tzname = yes; then
15779
15780 cat >>confdefs.h <<\_ACEOF
15781 #define HAVE_TZNAME 1
15782 _ACEOF
15783
15784 fi
15785
15786 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15787 $as_echo_n "checking for union semun... " >&6; }
15788 if test "${ac_cv_type_union_semun+set}" = set; then
15789   $as_echo_n "(cached) " >&6
15790 else
15791   ac_cv_type_union_semun=no
15792 cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h.  */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h.  */
15798 #include <sys/types.h>
15799 #include <sys/ipc.h>
15800 #include <sys/sem.h>
15801
15802 int
15803 main ()
15804 {
15805 if (sizeof (union semun))
15806        return 0;
15807   ;
15808   return 0;
15809 }
15810 _ACEOF
15811 rm -f conftest.$ac_objext
15812 if { (ac_try="$ac_compile"
15813 case "(($ac_try" in
15814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815   *) ac_try_echo=$ac_try;;
15816 esac
15817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15818 $as_echo "$ac_try_echo") >&5
15819   (eval "$ac_compile") 2>conftest.er1
15820   ac_status=$?
15821   grep -v '^ *+' conftest.er1 >conftest.err
15822   rm -f conftest.er1
15823   cat conftest.err >&5
15824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); } && {
15826          test -z "$ac_c_werror_flag" ||
15827          test ! -s conftest.err
15828        } && test -s conftest.$ac_objext; then
15829   cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h.  */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h.  */
15835 #include <sys/types.h>
15836 #include <sys/ipc.h>
15837 #include <sys/sem.h>
15838
15839 int
15840 main ()
15841 {
15842 if (sizeof ((union semun)))
15843           return 0;
15844   ;
15845   return 0;
15846 }
15847 _ACEOF
15848 rm -f conftest.$ac_objext
15849 if { (ac_try="$ac_compile"
15850 case "(($ac_try" in
15851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852   *) ac_try_echo=$ac_try;;
15853 esac
15854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15855 $as_echo "$ac_try_echo") >&5
15856   (eval "$ac_compile") 2>conftest.er1
15857   ac_status=$?
15858   grep -v '^ *+' conftest.er1 >conftest.err
15859   rm -f conftest.er1
15860   cat conftest.err >&5
15861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); } && {
15863          test -z "$ac_c_werror_flag" ||
15864          test ! -s conftest.err
15865        } && test -s conftest.$ac_objext; then
15866   :
15867 else
15868   $as_echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15870
15871         ac_cv_type_union_semun=yes
15872 fi
15873
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15875 else
15876   $as_echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879
15880 fi
15881
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 fi
15884 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15885 $as_echo "$ac_cv_type_union_semun" >&6; }
15886 if test "x$ac_cv_type_union_semun" = x""yes; then
15887
15888 cat >>confdefs.h <<_ACEOF
15889 #define HAVE_UNION_SEMUN 1
15890 _ACEOF
15891
15892
15893 fi
15894
15895 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15896 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15897 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15898   $as_echo_n "(cached) " >&6
15899 else
15900   ac_cv_type_struct_sockaddr_un=no
15901 cat >conftest.$ac_ext <<_ACEOF
15902 /* confdefs.h.  */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h.  */
15907 #include <sys/types.h>
15908 #ifdef HAVE_SYS_UN_H
15909 #include <sys/un.h>
15910 #endif
15911
15912
15913 int
15914 main ()
15915 {
15916 if (sizeof (struct sockaddr_un))
15917        return 0;
15918   ;
15919   return 0;
15920 }
15921 _ACEOF
15922 rm -f conftest.$ac_objext
15923 if { (ac_try="$ac_compile"
15924 case "(($ac_try" in
15925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926   *) ac_try_echo=$ac_try;;
15927 esac
15928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15929 $as_echo "$ac_try_echo") >&5
15930   (eval "$ac_compile") 2>conftest.er1
15931   ac_status=$?
15932   grep -v '^ *+' conftest.er1 >conftest.err
15933   rm -f conftest.er1
15934   cat conftest.err >&5
15935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); } && {
15937          test -z "$ac_c_werror_flag" ||
15938          test ! -s conftest.err
15939        } && test -s conftest.$ac_objext; then
15940   cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946 #include <sys/types.h>
15947 #ifdef HAVE_SYS_UN_H
15948 #include <sys/un.h>
15949 #endif
15950
15951
15952 int
15953 main ()
15954 {
15955 if (sizeof ((struct sockaddr_un)))
15956           return 0;
15957   ;
15958   return 0;
15959 }
15960 _ACEOF
15961 rm -f conftest.$ac_objext
15962 if { (ac_try="$ac_compile"
15963 case "(($ac_try" in
15964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965   *) ac_try_echo=$ac_try;;
15966 esac
15967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15968 $as_echo "$ac_try_echo") >&5
15969   (eval "$ac_compile") 2>conftest.er1
15970   ac_status=$?
15971   grep -v '^ *+' conftest.er1 >conftest.err
15972   rm -f conftest.er1
15973   cat conftest.err >&5
15974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975   (exit $ac_status); } && {
15976          test -z "$ac_c_werror_flag" ||
15977          test ! -s conftest.err
15978        } && test -s conftest.$ac_objext; then
15979   :
15980 else
15981   $as_echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15983
15984         ac_cv_type_struct_sockaddr_un=yes
15985 fi
15986
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988 else
15989   $as_echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15991
15992
15993 fi
15994
15995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15996 fi
15997 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15998 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15999 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16000
16001 cat >>confdefs.h <<_ACEOF
16002 #define HAVE_STRUCT_SOCKADDR_UN 1
16003 _ACEOF
16004
16005
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_UNIX_SOCKETS 1
16008 _ACEOF
16009
16010 fi
16011
16012 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16013 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16014 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16015   $as_echo_n "(cached) " >&6
16016 else
16017   ac_cv_type_struct_sockaddr_storage=no
16018 cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h.  */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h.  */
16024 #include <sys/types.h>
16025 #ifdef HAVE_SYS_SOCKET_H
16026 #include <sys/socket.h>
16027 #endif
16028
16029
16030 int
16031 main ()
16032 {
16033 if (sizeof (struct sockaddr_storage))
16034        return 0;
16035   ;
16036   return 0;
16037 }
16038 _ACEOF
16039 rm -f conftest.$ac_objext
16040 if { (ac_try="$ac_compile"
16041 case "(($ac_try" in
16042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043   *) ac_try_echo=$ac_try;;
16044 esac
16045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16046 $as_echo "$ac_try_echo") >&5
16047   (eval "$ac_compile") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } && {
16054          test -z "$ac_c_werror_flag" ||
16055          test ! -s conftest.err
16056        } && test -s conftest.$ac_objext; then
16057   cat >conftest.$ac_ext <<_ACEOF
16058 /* confdefs.h.  */
16059 _ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h.  */
16063 #include <sys/types.h>
16064 #ifdef HAVE_SYS_SOCKET_H
16065 #include <sys/socket.h>
16066 #endif
16067
16068
16069 int
16070 main ()
16071 {
16072 if (sizeof ((struct sockaddr_storage)))
16073           return 0;
16074   ;
16075   return 0;
16076 }
16077 _ACEOF
16078 rm -f conftest.$ac_objext
16079 if { (ac_try="$ac_compile"
16080 case "(($ac_try" in
16081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082   *) ac_try_echo=$ac_try;;
16083 esac
16084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16085 $as_echo "$ac_try_echo") >&5
16086   (eval "$ac_compile") 2>conftest.er1
16087   ac_status=$?
16088   grep -v '^ *+' conftest.er1 >conftest.err
16089   rm -f conftest.er1
16090   cat conftest.err >&5
16091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } && {
16093          test -z "$ac_c_werror_flag" ||
16094          test ! -s conftest.err
16095        } && test -s conftest.$ac_objext; then
16096   :
16097 else
16098   $as_echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16100
16101         ac_cv_type_struct_sockaddr_storage=yes
16102 fi
16103
16104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105 else
16106   $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109
16110 fi
16111
16112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16113 fi
16114 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16115 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16116 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16117
16118 cat >>confdefs.h <<_ACEOF
16119 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16120 _ACEOF
16121
16122
16123 fi
16124
16125 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16126 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16127 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16128   $as_echo_n "(cached) " >&6
16129 else
16130   cat >conftest.$ac_ext <<_ACEOF
16131 /* confdefs.h.  */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h.  */
16136 #include <sys/types.h>
16137 #ifdef HAVE_SYS_SOCKET_H
16138 #include <sys/socket.h>
16139 #endif
16140
16141
16142 int
16143 main ()
16144 {
16145 static struct sockaddr_storage ac_aggr;
16146 if (ac_aggr.ss_family)
16147 return 0;
16148   ;
16149   return 0;
16150 }
16151 _ACEOF
16152 rm -f conftest.$ac_objext
16153 if { (ac_try="$ac_compile"
16154 case "(($ac_try" in
16155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156   *) ac_try_echo=$ac_try;;
16157 esac
16158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16159 $as_echo "$ac_try_echo") >&5
16160   (eval "$ac_compile") 2>conftest.er1
16161   ac_status=$?
16162   grep -v '^ *+' conftest.er1 >conftest.err
16163   rm -f conftest.er1
16164   cat conftest.err >&5
16165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); } && {
16167          test -z "$ac_c_werror_flag" ||
16168          test ! -s conftest.err
16169        } && test -s conftest.$ac_objext; then
16170   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16171 else
16172   $as_echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16174
16175         cat >conftest.$ac_ext <<_ACEOF
16176 /* confdefs.h.  */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h.  */
16181 #include <sys/types.h>
16182 #ifdef HAVE_SYS_SOCKET_H
16183 #include <sys/socket.h>
16184 #endif
16185
16186
16187 int
16188 main ()
16189 {
16190 static struct sockaddr_storage ac_aggr;
16191 if (sizeof ac_aggr.ss_family)
16192 return 0;
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201   *) ac_try_echo=$ac_try;;
16202 esac
16203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16204 $as_echo "$ac_try_echo") >&5
16205   (eval "$ac_compile") 2>conftest.er1
16206   ac_status=$?
16207   grep -v '^ *+' conftest.er1 >conftest.err
16208   rm -f conftest.er1
16209   cat conftest.err >&5
16210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); } && {
16212          test -z "$ac_c_werror_flag" ||
16213          test ! -s conftest.err
16214        } && test -s conftest.$ac_objext; then
16215   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16216 else
16217   $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220         ac_cv_member_struct_sockaddr_storage_ss_family=no
16221 fi
16222
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 fi
16225
16226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16227 fi
16228 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16229 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16230 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16231
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16234 _ACEOF
16235
16236
16237 fi
16238 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16239 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16240 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16241   $as_echo_n "(cached) " >&6
16242 else
16243   cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h.  */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h.  */
16249 #include <sys/types.h>
16250 #ifdef HAVE_SYS_SOCKET_H
16251 #include <sys/socket.h>
16252 #endif
16253
16254
16255 int
16256 main ()
16257 {
16258 static struct sockaddr_storage ac_aggr;
16259 if (ac_aggr.__ss_family)
16260 return 0;
16261   ;
16262   return 0;
16263 }
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (ac_try="$ac_compile"
16267 case "(($ac_try" in
16268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269   *) ac_try_echo=$ac_try;;
16270 esac
16271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16272 $as_echo "$ac_try_echo") >&5
16273   (eval "$ac_compile") 2>conftest.er1
16274   ac_status=$?
16275   grep -v '^ *+' conftest.er1 >conftest.err
16276   rm -f conftest.er1
16277   cat conftest.err >&5
16278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); } && {
16280          test -z "$ac_c_werror_flag" ||
16281          test ! -s conftest.err
16282        } && test -s conftest.$ac_objext; then
16283   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16284 else
16285   $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288         cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h.  */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h.  */
16294 #include <sys/types.h>
16295 #ifdef HAVE_SYS_SOCKET_H
16296 #include <sys/socket.h>
16297 #endif
16298
16299
16300 int
16301 main ()
16302 {
16303 static struct sockaddr_storage ac_aggr;
16304 if (sizeof ac_aggr.__ss_family)
16305 return 0;
16306   ;
16307   return 0;
16308 }
16309 _ACEOF
16310 rm -f conftest.$ac_objext
16311 if { (ac_try="$ac_compile"
16312 case "(($ac_try" in
16313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314   *) ac_try_echo=$ac_try;;
16315 esac
16316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16317 $as_echo "$ac_try_echo") >&5
16318   (eval "$ac_compile") 2>conftest.er1
16319   ac_status=$?
16320   grep -v '^ *+' conftest.er1 >conftest.err
16321   rm -f conftest.er1
16322   cat conftest.err >&5
16323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); } && {
16325          test -z "$ac_c_werror_flag" ||
16326          test ! -s conftest.err
16327        } && test -s conftest.$ac_objext; then
16328   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16329 else
16330   $as_echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333         ac_cv_member_struct_sockaddr_storage___ss_family=no
16334 fi
16335
16336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16337 fi
16338
16339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16340 fi
16341 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16342 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16343 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16344
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16347 _ACEOF
16348
16349
16350 fi
16351 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16352 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16353 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16354   $as_echo_n "(cached) " >&6
16355 else
16356   cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h.  */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h.  */
16362 #include <sys/types.h>
16363 #ifdef HAVE_SYS_SOCKET_H
16364 #include <sys/socket.h>
16365 #endif
16366
16367
16368 int
16369 main ()
16370 {
16371 static struct sockaddr_storage ac_aggr;
16372 if (ac_aggr.ss_len)
16373 return 0;
16374   ;
16375   return 0;
16376 }
16377 _ACEOF
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382   *) ac_try_echo=$ac_try;;
16383 esac
16384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16385 $as_echo "$ac_try_echo") >&5
16386   (eval "$ac_compile") 2>conftest.er1
16387   ac_status=$?
16388   grep -v '^ *+' conftest.er1 >conftest.err
16389   rm -f conftest.er1
16390   cat conftest.err >&5
16391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); } && {
16393          test -z "$ac_c_werror_flag" ||
16394          test ! -s conftest.err
16395        } && test -s conftest.$ac_objext; then
16396   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16397 else
16398   $as_echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16400
16401         cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h.  */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h.  */
16407 #include <sys/types.h>
16408 #ifdef HAVE_SYS_SOCKET_H
16409 #include <sys/socket.h>
16410 #endif
16411
16412
16413 int
16414 main ()
16415 {
16416 static struct sockaddr_storage ac_aggr;
16417 if (sizeof ac_aggr.ss_len)
16418 return 0;
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430 $as_echo "$ac_try_echo") >&5
16431   (eval "$ac_compile") 2>conftest.er1
16432   ac_status=$?
16433   grep -v '^ *+' conftest.er1 >conftest.err
16434   rm -f conftest.er1
16435   cat conftest.err >&5
16436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); } && {
16438          test -z "$ac_c_werror_flag" ||
16439          test ! -s conftest.err
16440        } && test -s conftest.$ac_objext; then
16441   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16442 else
16443   $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16445
16446         ac_cv_member_struct_sockaddr_storage_ss_len=no
16447 fi
16448
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450 fi
16451
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453 fi
16454 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16455 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16456 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16457
16458 cat >>confdefs.h <<_ACEOF
16459 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16460 _ACEOF
16461
16462
16463 fi
16464 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16465 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16466 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16467   $as_echo_n "(cached) " >&6
16468 else
16469   cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h.  */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h.  */
16475 #include <sys/types.h>
16476 #ifdef HAVE_SYS_SOCKET_H
16477 #include <sys/socket.h>
16478 #endif
16479
16480
16481 int
16482 main ()
16483 {
16484 static struct sockaddr_storage ac_aggr;
16485 if (ac_aggr.__ss_len)
16486 return 0;
16487   ;
16488   return 0;
16489 }
16490 _ACEOF
16491 rm -f conftest.$ac_objext
16492 if { (ac_try="$ac_compile"
16493 case "(($ac_try" in
16494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495   *) ac_try_echo=$ac_try;;
16496 esac
16497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16498 $as_echo "$ac_try_echo") >&5
16499   (eval "$ac_compile") 2>conftest.er1
16500   ac_status=$?
16501   grep -v '^ *+' conftest.er1 >conftest.err
16502   rm -f conftest.er1
16503   cat conftest.err >&5
16504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505   (exit $ac_status); } && {
16506          test -z "$ac_c_werror_flag" ||
16507          test ! -s conftest.err
16508        } && test -s conftest.$ac_objext; then
16509   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16510 else
16511   $as_echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16513
16514         cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h.  */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h.  */
16520 #include <sys/types.h>
16521 #ifdef HAVE_SYS_SOCKET_H
16522 #include <sys/socket.h>
16523 #endif
16524
16525
16526 int
16527 main ()
16528 {
16529 static struct sockaddr_storage ac_aggr;
16530 if (sizeof ac_aggr.__ss_len)
16531 return 0;
16532   ;
16533   return 0;
16534 }
16535 _ACEOF
16536 rm -f conftest.$ac_objext
16537 if { (ac_try="$ac_compile"
16538 case "(($ac_try" in
16539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540   *) ac_try_echo=$ac_try;;
16541 esac
16542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16543 $as_echo "$ac_try_echo") >&5
16544   (eval "$ac_compile") 2>conftest.er1
16545   ac_status=$?
16546   grep -v '^ *+' conftest.er1 >conftest.err
16547   rm -f conftest.er1
16548   cat conftest.err >&5
16549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } && {
16551          test -z "$ac_c_werror_flag" ||
16552          test ! -s conftest.err
16553        } && test -s conftest.$ac_objext; then
16554   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16555 else
16556   $as_echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559         ac_cv_member_struct_sockaddr_storage___ss_len=no
16560 fi
16561
16562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16563 fi
16564
16565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16566 fi
16567 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16568 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16569 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16570
16571 cat >>confdefs.h <<_ACEOF
16572 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16573 _ACEOF
16574
16575
16576 fi
16577 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16578 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16579 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16580   $as_echo_n "(cached) " >&6
16581 else
16582   cat >conftest.$ac_ext <<_ACEOF
16583 /* confdefs.h.  */
16584 _ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h.  */
16588 #include <sys/types.h>
16589 #ifdef HAVE_SYS_SOCKET_H
16590 #include <sys/socket.h>
16591 #endif
16592
16593
16594 int
16595 main ()
16596 {
16597 static struct sockaddr ac_aggr;
16598 if (ac_aggr.sa_len)
16599 return 0;
16600   ;
16601   return 0;
16602 }
16603 _ACEOF
16604 rm -f conftest.$ac_objext
16605 if { (ac_try="$ac_compile"
16606 case "(($ac_try" in
16607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608   *) ac_try_echo=$ac_try;;
16609 esac
16610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16611 $as_echo "$ac_try_echo") >&5
16612   (eval "$ac_compile") 2>conftest.er1
16613   ac_status=$?
16614   grep -v '^ *+' conftest.er1 >conftest.err
16615   rm -f conftest.er1
16616   cat conftest.err >&5
16617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } && {
16619          test -z "$ac_c_werror_flag" ||
16620          test ! -s conftest.err
16621        } && test -s conftest.$ac_objext; then
16622   ac_cv_member_struct_sockaddr_sa_len=yes
16623 else
16624   $as_echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16626
16627         cat >conftest.$ac_ext <<_ACEOF
16628 /* confdefs.h.  */
16629 _ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h.  */
16633 #include <sys/types.h>
16634 #ifdef HAVE_SYS_SOCKET_H
16635 #include <sys/socket.h>
16636 #endif
16637
16638
16639 int
16640 main ()
16641 {
16642 static struct sockaddr ac_aggr;
16643 if (sizeof ac_aggr.sa_len)
16644 return 0;
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657   (eval "$ac_compile") 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } && {
16664          test -z "$ac_c_werror_flag" ||
16665          test ! -s conftest.err
16666        } && test -s conftest.$ac_objext; then
16667   ac_cv_member_struct_sockaddr_sa_len=yes
16668 else
16669   $as_echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16671
16672         ac_cv_member_struct_sockaddr_sa_len=no
16673 fi
16674
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676 fi
16677
16678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16679 fi
16680 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16681 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16682 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16683
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16686 _ACEOF
16687
16688
16689 fi
16690
16691 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16692 $as_echo_n "checking for struct addrinfo... " >&6; }
16693 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16694   $as_echo_n "(cached) " >&6
16695 else
16696   ac_cv_type_struct_addrinfo=no
16697 cat >conftest.$ac_ext <<_ACEOF
16698 /* confdefs.h.  */
16699 _ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h.  */
16703 #include <sys/types.h>
16704 #include <sys/socket.h>
16705 #include <netdb.h>
16706
16707
16708 int
16709 main ()
16710 {
16711 if (sizeof (struct addrinfo))
16712        return 0;
16713   ;
16714   return 0;
16715 }
16716 _ACEOF
16717 rm -f conftest.$ac_objext
16718 if { (ac_try="$ac_compile"
16719 case "(($ac_try" in
16720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721   *) ac_try_echo=$ac_try;;
16722 esac
16723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16724 $as_echo "$ac_try_echo") >&5
16725   (eval "$ac_compile") 2>conftest.er1
16726   ac_status=$?
16727   grep -v '^ *+' conftest.er1 >conftest.err
16728   rm -f conftest.er1
16729   cat conftest.err >&5
16730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); } && {
16732          test -z "$ac_c_werror_flag" ||
16733          test ! -s conftest.err
16734        } && test -s conftest.$ac_objext; then
16735   cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741 #include <sys/types.h>
16742 #include <sys/socket.h>
16743 #include <netdb.h>
16744
16745
16746 int
16747 main ()
16748 {
16749 if (sizeof ((struct addrinfo)))
16750           return 0;
16751   ;
16752   return 0;
16753 }
16754 _ACEOF
16755 rm -f conftest.$ac_objext
16756 if { (ac_try="$ac_compile"
16757 case "(($ac_try" in
16758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759   *) ac_try_echo=$ac_try;;
16760 esac
16761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16762 $as_echo "$ac_try_echo") >&5
16763   (eval "$ac_compile") 2>conftest.er1
16764   ac_status=$?
16765   grep -v '^ *+' conftest.er1 >conftest.err
16766   rm -f conftest.er1
16767   cat conftest.err >&5
16768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); } && {
16770          test -z "$ac_c_werror_flag" ||
16771          test ! -s conftest.err
16772        } && test -s conftest.$ac_objext; then
16773   :
16774 else
16775   $as_echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16777
16778         ac_cv_type_struct_addrinfo=yes
16779 fi
16780
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 else
16783   $as_echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786
16787 fi
16788
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 fi
16791 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16792 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16793 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16794
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_STRUCT_ADDRINFO 1
16797 _ACEOF
16798
16799
16800 fi
16801
16802
16803   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16804 $as_echo_n "checking for intptr_t... " >&6; }
16805 if test "${ac_cv_type_intptr_t+set}" = set; then
16806   $as_echo_n "(cached) " >&6
16807 else
16808   ac_cv_type_intptr_t=no
16809 cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h.  */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h.  */
16815 $ac_includes_default
16816 int
16817 main ()
16818 {
16819 if (sizeof (intptr_t))
16820        return 0;
16821   ;
16822   return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext
16826 if { (ac_try="$ac_compile"
16827 case "(($ac_try" in
16828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829   *) ac_try_echo=$ac_try;;
16830 esac
16831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16832 $as_echo "$ac_try_echo") >&5
16833   (eval "$ac_compile") 2>conftest.er1
16834   ac_status=$?
16835   grep -v '^ *+' conftest.er1 >conftest.err
16836   rm -f conftest.er1
16837   cat conftest.err >&5
16838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } && {
16840          test -z "$ac_c_werror_flag" ||
16841          test ! -s conftest.err
16842        } && test -s conftest.$ac_objext; then
16843   cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849 $ac_includes_default
16850 int
16851 main ()
16852 {
16853 if (sizeof ((intptr_t)))
16854           return 0;
16855   ;
16856   return 0;
16857 }
16858 _ACEOF
16859 rm -f conftest.$ac_objext
16860 if { (ac_try="$ac_compile"
16861 case "(($ac_try" in
16862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863   *) ac_try_echo=$ac_try;;
16864 esac
16865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16866 $as_echo "$ac_try_echo") >&5
16867   (eval "$ac_compile") 2>conftest.er1
16868   ac_status=$?
16869   grep -v '^ *+' conftest.er1 >conftest.err
16870   rm -f conftest.er1
16871   cat conftest.err >&5
16872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); } && {
16874          test -z "$ac_c_werror_flag" ||
16875          test ! -s conftest.err
16876        } && test -s conftest.$ac_objext; then
16877   :
16878 else
16879   $as_echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16881
16882         ac_cv_type_intptr_t=yes
16883 fi
16884
16885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886 else
16887   $as_echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890
16891 fi
16892
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894 fi
16895 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16896 $as_echo "$ac_cv_type_intptr_t" >&6; }
16897 if test "x$ac_cv_type_intptr_t" = x""yes; then
16898
16899 cat >>confdefs.h <<\_ACEOF
16900 #define HAVE_INTPTR_T 1
16901 _ACEOF
16902
16903 else
16904   for ac_type in 'int' 'long int' 'long long int'; do
16905        cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h.  */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h.  */
16911 $ac_includes_default
16912 int
16913 main ()
16914 {
16915 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16916 test_array [0] = 0
16917
16918   ;
16919   return 0;
16920 }
16921 _ACEOF
16922 rm -f conftest.$ac_objext
16923 if { (ac_try="$ac_compile"
16924 case "(($ac_try" in
16925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926   *) ac_try_echo=$ac_try;;
16927 esac
16928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16929 $as_echo "$ac_try_echo") >&5
16930   (eval "$ac_compile") 2>conftest.er1
16931   ac_status=$?
16932   grep -v '^ *+' conftest.er1 >conftest.err
16933   rm -f conftest.er1
16934   cat conftest.err >&5
16935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); } && {
16937          test -z "$ac_c_werror_flag" ||
16938          test ! -s conftest.err
16939        } && test -s conftest.$ac_objext; then
16940
16941 cat >>confdefs.h <<_ACEOF
16942 #define intptr_t $ac_type
16943 _ACEOF
16944
16945           ac_type=
16946 else
16947   $as_echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16949
16950
16951 fi
16952
16953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954        test -z "$ac_type" && break
16955      done
16956 fi
16957
16958
16959
16960   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16961 $as_echo_n "checking for uintptr_t... " >&6; }
16962 if test "${ac_cv_type_uintptr_t+set}" = set; then
16963   $as_echo_n "(cached) " >&6
16964 else
16965   ac_cv_type_uintptr_t=no
16966 cat >conftest.$ac_ext <<_ACEOF
16967 /* confdefs.h.  */
16968 _ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h.  */
16972 $ac_includes_default
16973 int
16974 main ()
16975 {
16976 if (sizeof (uintptr_t))
16977        return 0;
16978   ;
16979   return 0;
16980 }
16981 _ACEOF
16982 rm -f conftest.$ac_objext
16983 if { (ac_try="$ac_compile"
16984 case "(($ac_try" in
16985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986   *) ac_try_echo=$ac_try;;
16987 esac
16988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16989 $as_echo "$ac_try_echo") >&5
16990   (eval "$ac_compile") 2>conftest.er1
16991   ac_status=$?
16992   grep -v '^ *+' conftest.er1 >conftest.err
16993   rm -f conftest.er1
16994   cat conftest.err >&5
16995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); } && {
16997          test -z "$ac_c_werror_flag" ||
16998          test ! -s conftest.err
16999        } && test -s conftest.$ac_objext; then
17000   cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h.  */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h.  */
17006 $ac_includes_default
17007 int
17008 main ()
17009 {
17010 if (sizeof ((uintptr_t)))
17011           return 0;
17012   ;
17013   return 0;
17014 }
17015 _ACEOF
17016 rm -f conftest.$ac_objext
17017 if { (ac_try="$ac_compile"
17018 case "(($ac_try" in
17019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020   *) ac_try_echo=$ac_try;;
17021 esac
17022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17023 $as_echo "$ac_try_echo") >&5
17024   (eval "$ac_compile") 2>conftest.er1
17025   ac_status=$?
17026   grep -v '^ *+' conftest.er1 >conftest.err
17027   rm -f conftest.er1
17028   cat conftest.err >&5
17029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030   (exit $ac_status); } && {
17031          test -z "$ac_c_werror_flag" ||
17032          test ! -s conftest.err
17033        } && test -s conftest.$ac_objext; then
17034   :
17035 else
17036   $as_echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17038
17039         ac_cv_type_uintptr_t=yes
17040 fi
17041
17042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043 else
17044   $as_echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047
17048 fi
17049
17050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17051 fi
17052 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17053 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17054 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17055
17056 cat >>confdefs.h <<\_ACEOF
17057 #define HAVE_UINTPTR_T 1
17058 _ACEOF
17059
17060 else
17061   for ac_type in 'unsigned int' 'unsigned long int' \
17062         'unsigned long long int'; do
17063        cat >conftest.$ac_ext <<_ACEOF
17064 /* confdefs.h.  */
17065 _ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h.  */
17069 $ac_includes_default
17070 int
17071 main ()
17072 {
17073 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17074 test_array [0] = 0
17075
17076   ;
17077   return 0;
17078 }
17079 _ACEOF
17080 rm -f conftest.$ac_objext
17081 if { (ac_try="$ac_compile"
17082 case "(($ac_try" in
17083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084   *) ac_try_echo=$ac_try;;
17085 esac
17086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17087 $as_echo "$ac_try_echo") >&5
17088   (eval "$ac_compile") 2>conftest.er1
17089   ac_status=$?
17090   grep -v '^ *+' conftest.er1 >conftest.err
17091   rm -f conftest.er1
17092   cat conftest.err >&5
17093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); } && {
17095          test -z "$ac_c_werror_flag" ||
17096          test ! -s conftest.err
17097        } && test -s conftest.$ac_objext; then
17098
17099 cat >>confdefs.h <<_ACEOF
17100 #define uintptr_t $ac_type
17101 _ACEOF
17102
17103           ac_type=
17104 else
17105   $as_echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17107
17108
17109 fi
17110
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112        test -z "$ac_type" && break
17113      done
17114 fi
17115
17116
17117
17118   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17119 $as_echo_n "checking for long long int... " >&6; }
17120 if test "${ac_cv_type_long_long_int+set}" = set; then
17121   $as_echo_n "(cached) " >&6
17122 else
17123   cat >conftest.$ac_ext <<_ACEOF
17124
17125   /* confdefs.h.  */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h.  */
17130 /* For now, do not test the preprocessor; as of 2007 there are too many
17131          implementations with broken preprocessors.  Perhaps this can
17132          be revisited in 2012.  In the meantime, code should not expect
17133          #if to work with literals wider than 32 bits.  */
17134       /* Test literals.  */
17135       long long int ll = 9223372036854775807ll;
17136       long long int nll = -9223372036854775807LL;
17137       unsigned long long int ull = 18446744073709551615ULL;
17138       /* Test constant expressions.   */
17139       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17140                      ? 1 : -1)];
17141       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17142                      ? 1 : -1)];
17143       int i = 63;
17144 int
17145 main ()
17146 {
17147 /* Test availability of runtime routines for shift and division.  */
17148       long long int llmax = 9223372036854775807ll;
17149       unsigned long long int ullmax = 18446744073709551615ull;
17150       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17151               | (llmax / ll) | (llmax % ll)
17152               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17153               | (ullmax / ull) | (ullmax % ull));
17154   ;
17155   return 0;
17156 }
17157
17158 _ACEOF
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163   *) ac_try_echo=$ac_try;;
17164 esac
17165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17166 $as_echo "$ac_try_echo") >&5
17167   (eval "$ac_link") 2>conftest.er1
17168   ac_status=$?
17169   grep -v '^ *+' conftest.er1 >conftest.err
17170   rm -f conftest.er1
17171   cat conftest.err >&5
17172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); } && {
17174          test -z "$ac_c_werror_flag" ||
17175          test ! -s conftest.err
17176        } && test -s conftest$ac_exeext && {
17177          test "$cross_compiling" = yes ||
17178          $as_test_x conftest$ac_exeext
17179        }; then
17180                         if test "$cross_compiling" = yes; then
17181   ac_cv_type_long_long_int=yes
17182 else
17183   cat >conftest.$ac_ext <<_ACEOF
17184 /* confdefs.h.  */
17185 _ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h.  */
17189 #include <limits.h>
17190                #ifndef LLONG_MAX
17191                # define HALF \
17192                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17193                # define LLONG_MAX (HALF - 1 + HALF)
17194                #endif
17195 int
17196 main ()
17197 {
17198 long long int n = 1;
17199                int i;
17200                for (i = 0; ; i++)
17201                  {
17202                    long long int m = n << i;
17203                    if (m >> i != n)
17204                      return 1;
17205                    if (LLONG_MAX / 2 < m)
17206                      break;
17207                  }
17208                return 0;
17209   ;
17210   return 0;
17211 }
17212 _ACEOF
17213 rm -f conftest$ac_exeext
17214 if { (ac_try="$ac_link"
17215 case "(($ac_try" in
17216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217   *) ac_try_echo=$ac_try;;
17218 esac
17219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17220 $as_echo "$ac_try_echo") >&5
17221   (eval "$ac_link") 2>&5
17222   ac_status=$?
17223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17225   { (case "(($ac_try" in
17226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227   *) ac_try_echo=$ac_try;;
17228 esac
17229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17230 $as_echo "$ac_try_echo") >&5
17231   (eval "$ac_try") 2>&5
17232   ac_status=$?
17233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; }; then
17235   ac_cv_type_long_long_int=yes
17236 else
17237   $as_echo "$as_me: program exited with status $ac_status" >&5
17238 $as_echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17240
17241 ( exit $ac_status )
17242 ac_cv_type_long_long_int=no
17243 fi
17244 rm -rf conftest.dSYM
17245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17246 fi
17247
17248
17249 else
17250   $as_echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17252
17253         ac_cv_type_long_long_int=no
17254 fi
17255
17256 rm -rf conftest.dSYM
17257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17258       conftest$ac_exeext conftest.$ac_ext
17259 fi
17260 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17261 $as_echo "$ac_cv_type_long_long_int" >&6; }
17262   if test $ac_cv_type_long_long_int = yes; then
17263
17264 cat >>confdefs.h <<\_ACEOF
17265 #define HAVE_LONG_LONG_INT 1
17266 _ACEOF
17267
17268   fi
17269
17270
17271 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17272 $as_echo_n "checking for locale_t... " >&6; }
17273 if test "${pgac_cv_type_locale_t+set}" = set; then
17274   $as_echo_n "(cached) " >&6
17275 else
17276   cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282 #include <locale.h>
17283 locale_t x;
17284 int
17285 main ()
17286 {
17287
17288   ;
17289   return 0;
17290 }
17291 _ACEOF
17292 rm -f conftest.$ac_objext
17293 if { (ac_try="$ac_compile"
17294 case "(($ac_try" in
17295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296   *) ac_try_echo=$ac_try;;
17297 esac
17298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17299 $as_echo "$ac_try_echo") >&5
17300   (eval "$ac_compile") 2>conftest.er1
17301   ac_status=$?
17302   grep -v '^ *+' conftest.er1 >conftest.err
17303   rm -f conftest.er1
17304   cat conftest.err >&5
17305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); } && {
17307          test -z "$ac_c_werror_flag" ||
17308          test ! -s conftest.err
17309        } && test -s conftest.$ac_objext; then
17310   pgac_cv_type_locale_t=yes
17311 else
17312   $as_echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17314
17315         cat >conftest.$ac_ext <<_ACEOF
17316 /* confdefs.h.  */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h.  */
17321 #include <xlocale.h>
17322 locale_t x;
17323 int
17324 main ()
17325 {
17326
17327   ;
17328   return 0;
17329 }
17330 _ACEOF
17331 rm -f conftest.$ac_objext
17332 if { (ac_try="$ac_compile"
17333 case "(($ac_try" in
17334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335   *) ac_try_echo=$ac_try;;
17336 esac
17337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17338 $as_echo "$ac_try_echo") >&5
17339   (eval "$ac_compile") 2>conftest.er1
17340   ac_status=$?
17341   grep -v '^ *+' conftest.er1 >conftest.err
17342   rm -f conftest.er1
17343   cat conftest.err >&5
17344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345   (exit $ac_status); } && {
17346          test -z "$ac_c_werror_flag" ||
17347          test ! -s conftest.err
17348        } && test -s conftest.$ac_objext; then
17349   pgac_cv_type_locale_t='yes (in xlocale.h)'
17350 else
17351   $as_echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17353
17354         pgac_cv_type_locale_t=no
17355 fi
17356
17357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17358 fi
17359
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361 fi
17362 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17363 $as_echo "$pgac_cv_type_locale_t" >&6; }
17364 if test "$pgac_cv_type_locale_t" != no; then
17365
17366 cat >>confdefs.h <<\_ACEOF
17367 #define HAVE_LOCALE_T 1
17368 _ACEOF
17369
17370 fi
17371 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17372
17373 cat >>confdefs.h <<\_ACEOF
17374 #define LOCALE_T_IN_XLOCALE 1
17375 _ACEOF
17376
17377 fi
17378
17379 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17380 $as_echo_n "checking for struct cmsgcred... " >&6; }
17381 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17382   $as_echo_n "(cached) " >&6
17383 else
17384   ac_cv_type_struct_cmsgcred=no
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h.  */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h.  */
17391 #include <sys/socket.h>
17392 #ifdef HAVE_SYS_UCRED_H
17393 #include <sys/ucred.h>
17394 #endif
17395
17396 int
17397 main ()
17398 {
17399 if (sizeof (struct cmsgcred))
17400        return 0;
17401   ;
17402   return 0;
17403 }
17404 _ACEOF
17405 rm -f conftest.$ac_objext
17406 if { (ac_try="$ac_compile"
17407 case "(($ac_try" in
17408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409   *) ac_try_echo=$ac_try;;
17410 esac
17411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17412 $as_echo "$ac_try_echo") >&5
17413   (eval "$ac_compile") 2>conftest.er1
17414   ac_status=$?
17415   grep -v '^ *+' conftest.er1 >conftest.err
17416   rm -f conftest.er1
17417   cat conftest.err >&5
17418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); } && {
17420          test -z "$ac_c_werror_flag" ||
17421          test ! -s conftest.err
17422        } && test -s conftest.$ac_objext; then
17423   cat >conftest.$ac_ext <<_ACEOF
17424 /* confdefs.h.  */
17425 _ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h.  */
17429 #include <sys/socket.h>
17430 #ifdef HAVE_SYS_UCRED_H
17431 #include <sys/ucred.h>
17432 #endif
17433
17434 int
17435 main ()
17436 {
17437 if (sizeof ((struct cmsgcred)))
17438           return 0;
17439   ;
17440   return 0;
17441 }
17442 _ACEOF
17443 rm -f conftest.$ac_objext
17444 if { (ac_try="$ac_compile"
17445 case "(($ac_try" in
17446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447   *) ac_try_echo=$ac_try;;
17448 esac
17449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17450 $as_echo "$ac_try_echo") >&5
17451   (eval "$ac_compile") 2>conftest.er1
17452   ac_status=$?
17453   grep -v '^ *+' conftest.er1 >conftest.err
17454   rm -f conftest.er1
17455   cat conftest.err >&5
17456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); } && {
17458          test -z "$ac_c_werror_flag" ||
17459          test ! -s conftest.err
17460        } && test -s conftest.$ac_objext; then
17461   :
17462 else
17463   $as_echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17465
17466         ac_cv_type_struct_cmsgcred=yes
17467 fi
17468
17469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17470 else
17471   $as_echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474
17475 fi
17476
17477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17478 fi
17479 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17480 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17481 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17482
17483 cat >>confdefs.h <<_ACEOF
17484 #define HAVE_STRUCT_CMSGCRED 1
17485 _ACEOF
17486
17487
17488 fi
17489
17490
17491 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17492 $as_echo_n "checking for struct option... " >&6; }
17493 if test "${ac_cv_type_struct_option+set}" = set; then
17494   $as_echo_n "(cached) " >&6
17495 else
17496   ac_cv_type_struct_option=no
17497 cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h.  */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h.  */
17503 #ifdef HAVE_GETOPT_H
17504 #include <getopt.h>
17505 #endif
17506
17507 int
17508 main ()
17509 {
17510 if (sizeof (struct option))
17511        return 0;
17512   ;
17513   return 0;
17514 }
17515 _ACEOF
17516 rm -f conftest.$ac_objext
17517 if { (ac_try="$ac_compile"
17518 case "(($ac_try" in
17519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520   *) ac_try_echo=$ac_try;;
17521 esac
17522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17523 $as_echo "$ac_try_echo") >&5
17524   (eval "$ac_compile") 2>conftest.er1
17525   ac_status=$?
17526   grep -v '^ *+' conftest.er1 >conftest.err
17527   rm -f conftest.er1
17528   cat conftest.err >&5
17529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); } && {
17531          test -z "$ac_c_werror_flag" ||
17532          test ! -s conftest.err
17533        } && test -s conftest.$ac_objext; then
17534   cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h.  */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h.  */
17540 #ifdef HAVE_GETOPT_H
17541 #include <getopt.h>
17542 #endif
17543
17544 int
17545 main ()
17546 {
17547 if (sizeof ((struct option)))
17548           return 0;
17549   ;
17550   return 0;
17551 }
17552 _ACEOF
17553 rm -f conftest.$ac_objext
17554 if { (ac_try="$ac_compile"
17555 case "(($ac_try" in
17556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557   *) ac_try_echo=$ac_try;;
17558 esac
17559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17560 $as_echo "$ac_try_echo") >&5
17561   (eval "$ac_compile") 2>conftest.er1
17562   ac_status=$?
17563   grep -v '^ *+' conftest.er1 >conftest.err
17564   rm -f conftest.er1
17565   cat conftest.err >&5
17566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); } && {
17568          test -z "$ac_c_werror_flag" ||
17569          test ! -s conftest.err
17570        } && test -s conftest.$ac_objext; then
17571   :
17572 else
17573   $as_echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576         ac_cv_type_struct_option=yes
17577 fi
17578
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580 else
17581   $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17583
17584
17585 fi
17586
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17588 fi
17589 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17590 $as_echo "$ac_cv_type_struct_option" >&6; }
17591 if test "x$ac_cv_type_struct_option" = x""yes; then
17592
17593 cat >>confdefs.h <<_ACEOF
17594 #define HAVE_STRUCT_OPTION 1
17595 _ACEOF
17596
17597
17598 fi
17599
17600
17601 if test "$with_zlib" = yes; then
17602   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17603   # did not).  While we could work around the lack of z_streamp, it
17604   # seems unwise to encourage people to use such old zlib versions...
17605   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17606 $as_echo_n "checking for z_streamp... " >&6; }
17607 if test "${ac_cv_type_z_streamp+set}" = set; then
17608   $as_echo_n "(cached) " >&6
17609 else
17610   ac_cv_type_z_streamp=no
17611 cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h.  */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h.  */
17617 #include <zlib.h>
17618
17619 int
17620 main ()
17621 {
17622 if (sizeof (z_streamp))
17623        return 0;
17624   ;
17625   return 0;
17626 }
17627 _ACEOF
17628 rm -f conftest.$ac_objext
17629 if { (ac_try="$ac_compile"
17630 case "(($ac_try" in
17631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632   *) ac_try_echo=$ac_try;;
17633 esac
17634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17635 $as_echo "$ac_try_echo") >&5
17636   (eval "$ac_compile") 2>conftest.er1
17637   ac_status=$?
17638   grep -v '^ *+' conftest.er1 >conftest.err
17639   rm -f conftest.er1
17640   cat conftest.err >&5
17641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); } && {
17643          test -z "$ac_c_werror_flag" ||
17644          test ! -s conftest.err
17645        } && test -s conftest.$ac_objext; then
17646   cat >conftest.$ac_ext <<_ACEOF
17647 /* confdefs.h.  */
17648 _ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h.  */
17652 #include <zlib.h>
17653
17654 int
17655 main ()
17656 {
17657 if (sizeof ((z_streamp)))
17658           return 0;
17659   ;
17660   return 0;
17661 }
17662 _ACEOF
17663 rm -f conftest.$ac_objext
17664 if { (ac_try="$ac_compile"
17665 case "(($ac_try" in
17666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667   *) ac_try_echo=$ac_try;;
17668 esac
17669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17670 $as_echo "$ac_try_echo") >&5
17671   (eval "$ac_compile") 2>conftest.er1
17672   ac_status=$?
17673   grep -v '^ *+' conftest.er1 >conftest.err
17674   rm -f conftest.er1
17675   cat conftest.err >&5
17676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677   (exit $ac_status); } && {
17678          test -z "$ac_c_werror_flag" ||
17679          test ! -s conftest.err
17680        } && test -s conftest.$ac_objext; then
17681   :
17682 else
17683   $as_echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17685
17686         ac_cv_type_z_streamp=yes
17687 fi
17688
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17690 else
17691   $as_echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694
17695 fi
17696
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698 fi
17699 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17700 $as_echo "$ac_cv_type_z_streamp" >&6; }
17701 if test "x$ac_cv_type_z_streamp" = x""yes; then
17702   :
17703 else
17704   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17705 Use --without-zlib to disable zlib support." >&5
17706 $as_echo "$as_me: error: zlib version is too old
17707 Use --without-zlib to disable zlib support." >&2;}
17708    { (exit 1); exit 1; }; }
17709 fi
17710
17711 fi
17712
17713 if test "$with_krb5" = yes; then
17714 # Check for differences between MIT and Heimdal (KTH) releases
17715   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17716 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17717 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17718   $as_echo_n "(cached) " >&6
17719 else
17720   cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h.  */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h.  */
17726 #include <krb5.h>
17727
17728 int
17729 main ()
17730 {
17731 static krb5_ticket ac_aggr;
17732 if (ac_aggr.enc_part2)
17733 return 0;
17734   ;
17735   return 0;
17736 }
17737 _ACEOF
17738 rm -f conftest.$ac_objext
17739 if { (ac_try="$ac_compile"
17740 case "(($ac_try" in
17741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742   *) ac_try_echo=$ac_try;;
17743 esac
17744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17745 $as_echo "$ac_try_echo") >&5
17746   (eval "$ac_compile") 2>conftest.er1
17747   ac_status=$?
17748   grep -v '^ *+' conftest.er1 >conftest.err
17749   rm -f conftest.er1
17750   cat conftest.err >&5
17751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); } && {
17753          test -z "$ac_c_werror_flag" ||
17754          test ! -s conftest.err
17755        } && test -s conftest.$ac_objext; then
17756   ac_cv_member_krb5_ticket_enc_part2=yes
17757 else
17758   $as_echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761         cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h.  */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h.  */
17767 #include <krb5.h>
17768
17769 int
17770 main ()
17771 {
17772 static krb5_ticket ac_aggr;
17773 if (sizeof ac_aggr.enc_part2)
17774 return 0;
17775   ;
17776   return 0;
17777 }
17778 _ACEOF
17779 rm -f conftest.$ac_objext
17780 if { (ac_try="$ac_compile"
17781 case "(($ac_try" in
17782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783   *) ac_try_echo=$ac_try;;
17784 esac
17785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17786 $as_echo "$ac_try_echo") >&5
17787   (eval "$ac_compile") 2>conftest.er1
17788   ac_status=$?
17789   grep -v '^ *+' conftest.er1 >conftest.err
17790   rm -f conftest.er1
17791   cat conftest.err >&5
17792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); } && {
17794          test -z "$ac_c_werror_flag" ||
17795          test ! -s conftest.err
17796        } && test -s conftest.$ac_objext; then
17797   ac_cv_member_krb5_ticket_enc_part2=yes
17798 else
17799   $as_echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17801
17802         ac_cv_member_krb5_ticket_enc_part2=no
17803 fi
17804
17805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806 fi
17807
17808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809 fi
17810 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17811 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17812 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17813
17814 cat >>confdefs.h <<_ACEOF
17815 #define HAVE_KRB5_TICKET_ENC_PART2 1
17816 _ACEOF
17817
17818
17819 else
17820   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17821 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17822 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17823   $as_echo_n "(cached) " >&6
17824 else
17825   cat >conftest.$ac_ext <<_ACEOF
17826 /* confdefs.h.  */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h.  */
17831 #include <krb5.h>
17832
17833 int
17834 main ()
17835 {
17836 static krb5_ticket ac_aggr;
17837 if (ac_aggr.client)
17838 return 0;
17839   ;
17840   return 0;
17841 }
17842 _ACEOF
17843 rm -f conftest.$ac_objext
17844 if { (ac_try="$ac_compile"
17845 case "(($ac_try" in
17846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847   *) ac_try_echo=$ac_try;;
17848 esac
17849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17850 $as_echo "$ac_try_echo") >&5
17851   (eval "$ac_compile") 2>conftest.er1
17852   ac_status=$?
17853   grep -v '^ *+' conftest.er1 >conftest.err
17854   rm -f conftest.er1
17855   cat conftest.err >&5
17856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); } && {
17858          test -z "$ac_c_werror_flag" ||
17859          test ! -s conftest.err
17860        } && test -s conftest.$ac_objext; then
17861   ac_cv_member_krb5_ticket_client=yes
17862 else
17863   $as_echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17865
17866         cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h.  */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h.  */
17872 #include <krb5.h>
17873
17874 int
17875 main ()
17876 {
17877 static krb5_ticket ac_aggr;
17878 if (sizeof ac_aggr.client)
17879 return 0;
17880   ;
17881   return 0;
17882 }
17883 _ACEOF
17884 rm -f conftest.$ac_objext
17885 if { (ac_try="$ac_compile"
17886 case "(($ac_try" in
17887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888   *) ac_try_echo=$ac_try;;
17889 esac
17890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17891 $as_echo "$ac_try_echo") >&5
17892   (eval "$ac_compile") 2>conftest.er1
17893   ac_status=$?
17894   grep -v '^ *+' conftest.er1 >conftest.err
17895   rm -f conftest.er1
17896   cat conftest.err >&5
17897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); } && {
17899          test -z "$ac_c_werror_flag" ||
17900          test ! -s conftest.err
17901        } && test -s conftest.$ac_objext; then
17902   ac_cv_member_krb5_ticket_client=yes
17903 else
17904   $as_echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907         ac_cv_member_krb5_ticket_client=no
17908 fi
17909
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 fi
17912
17913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17914 fi
17915 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17916 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17917 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17918
17919 cat >>confdefs.h <<_ACEOF
17920 #define HAVE_KRB5_TICKET_CLIENT 1
17921 _ACEOF
17922
17923
17924 else
17925   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17926 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17927    { (exit 1); exit 1; }; }
17928 fi
17929
17930 fi
17931
17932   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17933 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17934 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17935   $as_echo_n "(cached) " >&6
17936 else
17937   cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h.  */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h.  */
17943 #include <krb5.h>
17944
17945 int
17946 main ()
17947 {
17948 static krb5_error ac_aggr;
17949 if (ac_aggr.text.data)
17950 return 0;
17951   ;
17952   return 0;
17953 }
17954 _ACEOF
17955 rm -f conftest.$ac_objext
17956 if { (ac_try="$ac_compile"
17957 case "(($ac_try" in
17958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959   *) ac_try_echo=$ac_try;;
17960 esac
17961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17962 $as_echo "$ac_try_echo") >&5
17963   (eval "$ac_compile") 2>conftest.er1
17964   ac_status=$?
17965   grep -v '^ *+' conftest.er1 >conftest.err
17966   rm -f conftest.er1
17967   cat conftest.err >&5
17968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } && {
17970          test -z "$ac_c_werror_flag" ||
17971          test ! -s conftest.err
17972        } && test -s conftest.$ac_objext; then
17973   ac_cv_member_krb5_error_text_data=yes
17974 else
17975   $as_echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17977
17978         cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h.  */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h.  */
17984 #include <krb5.h>
17985
17986 int
17987 main ()
17988 {
17989 static krb5_error ac_aggr;
17990 if (sizeof ac_aggr.text.data)
17991 return 0;
17992   ;
17993   return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18003 $as_echo "$ac_try_echo") >&5
18004   (eval "$ac_compile") 2>conftest.er1
18005   ac_status=$?
18006   grep -v '^ *+' conftest.er1 >conftest.err
18007   rm -f conftest.er1
18008   cat conftest.err >&5
18009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); } && {
18011          test -z "$ac_c_werror_flag" ||
18012          test ! -s conftest.err
18013        } && test -s conftest.$ac_objext; then
18014   ac_cv_member_krb5_error_text_data=yes
18015 else
18016   $as_echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019         ac_cv_member_krb5_error_text_data=no
18020 fi
18021
18022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023 fi
18024
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026 fi
18027 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18028 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18029 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18030
18031 cat >>confdefs.h <<_ACEOF
18032 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18033 _ACEOF
18034
18035
18036 else
18037   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18038 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18039 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18040   $as_echo_n "(cached) " >&6
18041 else
18042   cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h.  */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h.  */
18048 #include <krb5.h>
18049
18050 int
18051 main ()
18052 {
18053 static krb5_error ac_aggr;
18054 if (ac_aggr.e_data)
18055 return 0;
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext
18061 if { (ac_try="$ac_compile"
18062 case "(($ac_try" in
18063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064   *) ac_try_echo=$ac_try;;
18065 esac
18066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18067 $as_echo "$ac_try_echo") >&5
18068   (eval "$ac_compile") 2>conftest.er1
18069   ac_status=$?
18070   grep -v '^ *+' conftest.er1 >conftest.err
18071   rm -f conftest.er1
18072   cat conftest.err >&5
18073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); } && {
18075          test -z "$ac_c_werror_flag" ||
18076          test ! -s conftest.err
18077        } && test -s conftest.$ac_objext; then
18078   ac_cv_member_krb5_error_e_data=yes
18079 else
18080   $as_echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18082
18083         cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h.  */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h.  */
18089 #include <krb5.h>
18090
18091 int
18092 main ()
18093 {
18094 static krb5_error ac_aggr;
18095 if (sizeof ac_aggr.e_data)
18096 return 0;
18097   ;
18098   return 0;
18099 }
18100 _ACEOF
18101 rm -f conftest.$ac_objext
18102 if { (ac_try="$ac_compile"
18103 case "(($ac_try" in
18104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105   *) ac_try_echo=$ac_try;;
18106 esac
18107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18108 $as_echo "$ac_try_echo") >&5
18109   (eval "$ac_compile") 2>conftest.er1
18110   ac_status=$?
18111   grep -v '^ *+' conftest.er1 >conftest.err
18112   rm -f conftest.er1
18113   cat conftest.err >&5
18114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); } && {
18116          test -z "$ac_c_werror_flag" ||
18117          test ! -s conftest.err
18118        } && test -s conftest.$ac_objext; then
18119   ac_cv_member_krb5_error_e_data=yes
18120 else
18121   $as_echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18123
18124         ac_cv_member_krb5_error_e_data=no
18125 fi
18126
18127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18128 fi
18129
18130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18131 fi
18132 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18133 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18134 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18135
18136 cat >>confdefs.h <<_ACEOF
18137 #define HAVE_KRB5_ERROR_E_DATA 1
18138 _ACEOF
18139
18140
18141 else
18142   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18143 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18144    { (exit 1); exit 1; }; }
18145 fi
18146
18147 fi
18148
18149
18150 # Win32 requires headers to be loaded for __stdcall, so can't use
18151 # AC_CHECK_FUNCS here.
18152   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18153 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18154   cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h.  */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h.  */
18160 #include <krb5.h>
18161 int
18162 main ()
18163 {
18164 krb5_free_unparsed_name(NULL,NULL);
18165   ;
18166   return 0;
18167 }
18168 _ACEOF
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (ac_try="$ac_link"
18171 case "(($ac_try" in
18172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173   *) ac_try_echo=$ac_try;;
18174 esac
18175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18176 $as_echo "$ac_try_echo") >&5
18177   (eval "$ac_link") 2>conftest.er1
18178   ac_status=$?
18179   grep -v '^ *+' conftest.er1 >conftest.err
18180   rm -f conftest.er1
18181   cat conftest.err >&5
18182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); } && {
18184          test -z "$ac_c_werror_flag" ||
18185          test ! -s conftest.err
18186        } && test -s conftest$ac_exeext && {
18187          test "$cross_compiling" = yes ||
18188          $as_test_x conftest$ac_exeext
18189        }; then
18190
18191 cat >>confdefs.h <<\_ACEOF
18192 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18193 _ACEOF
18194
18195 { $as_echo "$as_me:$LINENO: result: yes" >&5
18196 $as_echo "yes" >&6; }
18197 else
18198   $as_echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201         { $as_echo "$as_me:$LINENO: result: no" >&5
18202 $as_echo "no" >&6; }
18203 fi
18204
18205 rm -rf conftest.dSYM
18206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18207       conftest$ac_exeext conftest.$ac_ext
18208 fi
18209
18210 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18211 case $host_cpu in
18212   ppc*|powerpc*)
18213     { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18214 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18215     cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h.  */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h.  */
18221
18222 int
18223 main ()
18224 {
18225 int a = 0; int *p = &a; int r;
18226          __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18227   ;
18228   return 0;
18229 }
18230 _ACEOF
18231 rm -f conftest.$ac_objext
18232 if { (ac_try="$ac_compile"
18233 case "(($ac_try" in
18234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235   *) ac_try_echo=$ac_try;;
18236 esac
18237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18238 $as_echo "$ac_try_echo") >&5
18239   (eval "$ac_compile") 2>conftest.er1
18240   ac_status=$?
18241   grep -v '^ *+' conftest.er1 >conftest.err
18242   rm -f conftest.er1
18243   cat conftest.err >&5
18244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); } && {
18246          test -z "$ac_c_werror_flag" ||
18247          test ! -s conftest.err
18248        } && test -s conftest.$ac_objext; then
18249   pgac_cv_have_ppc_mutex_hint=yes
18250 else
18251   $as_echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254         pgac_cv_have_ppc_mutex_hint=no
18255 fi
18256
18257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258     { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18259 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18260     if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18261
18262 cat >>confdefs.h <<\_ACEOF
18263 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18264 _ACEOF
18265
18266     fi
18267   ;;
18268 esac
18269
18270 # Check largefile support.  You might think this is a system service not a
18271 # compiler characteristic, but you'd be wrong.  We must check this before
18272 # probing existence of related functions such as fseeko, since the largefile
18273 # defines can affect what is generated for that.
18274 if test "$PORTNAME" != "win32"; then
18275    # Check whether --enable-largefile was given.
18276 if test "${enable_largefile+set}" = set; then
18277   enableval=$enable_largefile;
18278 fi
18279
18280 if test "$enable_largefile" != no; then
18281
18282   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18283 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18284 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18285   $as_echo_n "(cached) " >&6
18286 else
18287   ac_cv_sys_largefile_CC=no
18288      if test "$GCC" != yes; then
18289        ac_save_CC=$CC
18290        while :; do
18291          # IRIX 6.2 and later do not support large files by default,
18292          # so use the C compiler's -n32 option if that helps.
18293          cat >conftest.$ac_ext <<_ACEOF
18294 /* confdefs.h.  */
18295 _ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h.  */
18299 #include <sys/types.h>
18300  /* Check that off_t can represent 2**63 - 1 correctly.
18301     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18302     since some C++ compilers masquerading as C compilers
18303     incorrectly reject 9223372036854775807.  */
18304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18305   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18306                        && LARGE_OFF_T % 2147483647 == 1)
18307                       ? 1 : -1];
18308 int
18309 main ()
18310 {
18311
18312   ;
18313   return 0;
18314 }
18315 _ACEOF
18316          rm -f conftest.$ac_objext
18317 if { (ac_try="$ac_compile"
18318 case "(($ac_try" in
18319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320   *) ac_try_echo=$ac_try;;
18321 esac
18322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18323 $as_echo "$ac_try_echo") >&5
18324   (eval "$ac_compile") 2>conftest.er1
18325   ac_status=$?
18326   grep -v '^ *+' conftest.er1 >conftest.err
18327   rm -f conftest.er1
18328   cat conftest.err >&5
18329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330   (exit $ac_status); } && {
18331          test -z "$ac_c_werror_flag" ||
18332          test ! -s conftest.err
18333        } && test -s conftest.$ac_objext; then
18334   break
18335 else
18336   $as_echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18338
18339
18340 fi
18341
18342 rm -f core conftest.err conftest.$ac_objext
18343          CC="$CC -n32"
18344          rm -f conftest.$ac_objext
18345 if { (ac_try="$ac_compile"
18346 case "(($ac_try" in
18347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348   *) ac_try_echo=$ac_try;;
18349 esac
18350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18351 $as_echo "$ac_try_echo") >&5
18352   (eval "$ac_compile") 2>conftest.er1
18353   ac_status=$?
18354   grep -v '^ *+' conftest.er1 >conftest.err
18355   rm -f conftest.er1
18356   cat conftest.err >&5
18357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358   (exit $ac_status); } && {
18359          test -z "$ac_c_werror_flag" ||
18360          test ! -s conftest.err
18361        } && test -s conftest.$ac_objext; then
18362   ac_cv_sys_largefile_CC=' -n32'; break
18363 else
18364   $as_echo "$as_me: failed program was:" >&5
18365 sed 's/^/| /' conftest.$ac_ext >&5
18366
18367
18368 fi
18369
18370 rm -f core conftest.err conftest.$ac_objext
18371          break
18372        done
18373        CC=$ac_save_CC
18374        rm -f conftest.$ac_ext
18375     fi
18376 fi
18377 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18378 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18379   if test "$ac_cv_sys_largefile_CC" != no; then
18380     CC=$CC$ac_cv_sys_largefile_CC
18381   fi
18382
18383   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18384 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18385 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18386   $as_echo_n "(cached) " >&6
18387 else
18388   while :; do
18389   cat >conftest.$ac_ext <<_ACEOF
18390 /* confdefs.h.  */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h.  */
18395 #include <sys/types.h>
18396  /* Check that off_t can represent 2**63 - 1 correctly.
18397     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18398     since some C++ compilers masquerading as C compilers
18399     incorrectly reject 9223372036854775807.  */
18400 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18401   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18402                        && LARGE_OFF_T % 2147483647 == 1)
18403                       ? 1 : -1];
18404 int
18405 main ()
18406 {
18407
18408   ;
18409   return 0;
18410 }
18411 _ACEOF
18412 rm -f conftest.$ac_objext
18413 if { (ac_try="$ac_compile"
18414 case "(($ac_try" in
18415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416   *) ac_try_echo=$ac_try;;
18417 esac
18418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18419 $as_echo "$ac_try_echo") >&5
18420   (eval "$ac_compile") 2>conftest.er1
18421   ac_status=$?
18422   grep -v '^ *+' conftest.er1 >conftest.err
18423   rm -f conftest.er1
18424   cat conftest.err >&5
18425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426   (exit $ac_status); } && {
18427          test -z "$ac_c_werror_flag" ||
18428          test ! -s conftest.err
18429        } && test -s conftest.$ac_objext; then
18430   ac_cv_sys_file_offset_bits=no; break
18431 else
18432   $as_echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18434
18435
18436 fi
18437
18438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18439   cat >conftest.$ac_ext <<_ACEOF
18440 /* confdefs.h.  */
18441 _ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h.  */
18445 #define _FILE_OFFSET_BITS 64
18446 #include <sys/types.h>
18447  /* Check that off_t can represent 2**63 - 1 correctly.
18448     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18449     since some C++ compilers masquerading as C compilers
18450     incorrectly reject 9223372036854775807.  */
18451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18452   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18453                        && LARGE_OFF_T % 2147483647 == 1)
18454                       ? 1 : -1];
18455 int
18456 main ()
18457 {
18458
18459   ;
18460   return 0;
18461 }
18462 _ACEOF
18463 rm -f conftest.$ac_objext
18464 if { (ac_try="$ac_compile"
18465 case "(($ac_try" in
18466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467   *) ac_try_echo=$ac_try;;
18468 esac
18469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18470 $as_echo "$ac_try_echo") >&5
18471   (eval "$ac_compile") 2>conftest.er1
18472   ac_status=$?
18473   grep -v '^ *+' conftest.er1 >conftest.err
18474   rm -f conftest.er1
18475   cat conftest.err >&5
18476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); } && {
18478          test -z "$ac_c_werror_flag" ||
18479          test ! -s conftest.err
18480        } && test -s conftest.$ac_objext; then
18481   ac_cv_sys_file_offset_bits=64; break
18482 else
18483   $as_echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18485
18486
18487 fi
18488
18489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18490   ac_cv_sys_file_offset_bits=unknown
18491   break
18492 done
18493 fi
18494 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18495 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18496 case $ac_cv_sys_file_offset_bits in #(
18497   no | unknown) ;;
18498   *)
18499 cat >>confdefs.h <<_ACEOF
18500 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18501 _ACEOF
18502 ;;
18503 esac
18504 rm -rf conftest*
18505   if test $ac_cv_sys_file_offset_bits = unknown; then
18506     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18507 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18508 if test "${ac_cv_sys_large_files+set}" = set; then
18509   $as_echo_n "(cached) " >&6
18510 else
18511   while :; do
18512   cat >conftest.$ac_ext <<_ACEOF
18513 /* confdefs.h.  */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h.  */
18518 #include <sys/types.h>
18519  /* Check that off_t can represent 2**63 - 1 correctly.
18520     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18521     since some C++ compilers masquerading as C compilers
18522     incorrectly reject 9223372036854775807.  */
18523 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18524   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18525                        && LARGE_OFF_T % 2147483647 == 1)
18526                       ? 1 : -1];
18527 int
18528 main ()
18529 {
18530
18531   ;
18532   return 0;
18533 }
18534 _ACEOF
18535 rm -f conftest.$ac_objext
18536 if { (ac_try="$ac_compile"
18537 case "(($ac_try" in
18538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539   *) ac_try_echo=$ac_try;;
18540 esac
18541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18542 $as_echo "$ac_try_echo") >&5
18543   (eval "$ac_compile") 2>conftest.er1
18544   ac_status=$?
18545   grep -v '^ *+' conftest.er1 >conftest.err
18546   rm -f conftest.er1
18547   cat conftest.err >&5
18548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549   (exit $ac_status); } && {
18550          test -z "$ac_c_werror_flag" ||
18551          test ! -s conftest.err
18552        } && test -s conftest.$ac_objext; then
18553   ac_cv_sys_large_files=no; break
18554 else
18555   $as_echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18557
18558
18559 fi
18560
18561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18562   cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h.  */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h.  */
18568 #define _LARGE_FILES 1
18569 #include <sys/types.h>
18570  /* Check that off_t can represent 2**63 - 1 correctly.
18571     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18572     since some C++ compilers masquerading as C compilers
18573     incorrectly reject 9223372036854775807.  */
18574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18575   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18576                        && LARGE_OFF_T % 2147483647 == 1)
18577                       ? 1 : -1];
18578 int
18579 main ()
18580 {
18581
18582   ;
18583   return 0;
18584 }
18585 _ACEOF
18586 rm -f conftest.$ac_objext
18587 if { (ac_try="$ac_compile"
18588 case "(($ac_try" in
18589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590   *) ac_try_echo=$ac_try;;
18591 esac
18592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18593 $as_echo "$ac_try_echo") >&5
18594   (eval "$ac_compile") 2>conftest.er1
18595   ac_status=$?
18596   grep -v '^ *+' conftest.er1 >conftest.err
18597   rm -f conftest.er1
18598   cat conftest.err >&5
18599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); } && {
18601          test -z "$ac_c_werror_flag" ||
18602          test ! -s conftest.err
18603        } && test -s conftest.$ac_objext; then
18604   ac_cv_sys_large_files=1; break
18605 else
18606   $as_echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18608
18609
18610 fi
18611
18612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613   ac_cv_sys_large_files=unknown
18614   break
18615 done
18616 fi
18617 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18618 $as_echo "$ac_cv_sys_large_files" >&6; }
18619 case $ac_cv_sys_large_files in #(
18620   no | unknown) ;;
18621   *)
18622 cat >>confdefs.h <<_ACEOF
18623 #define _LARGE_FILES $ac_cv_sys_large_files
18624 _ACEOF
18625 ;;
18626 esac
18627 rm -rf conftest*
18628   fi
18629 fi
18630
18631 fi
18632
18633 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18634 # The cast to long int works around a bug in the HP C Compiler
18635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18637 # This bug is HP SR number 8606223364.
18638 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18639 $as_echo_n "checking size of off_t... " >&6; }
18640 if test "${ac_cv_sizeof_off_t+set}" = set; then
18641   $as_echo_n "(cached) " >&6
18642 else
18643   if test "$cross_compiling" = yes; then
18644   # Depending upon the size, compute the lo and hi bounds.
18645 cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h.  */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h.  */
18651 $ac_includes_default
18652 int
18653 main ()
18654 {
18655 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18656 test_array [0] = 0
18657
18658   ;
18659   return 0;
18660 }
18661 _ACEOF
18662 rm -f conftest.$ac_objext
18663 if { (ac_try="$ac_compile"
18664 case "(($ac_try" in
18665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666   *) ac_try_echo=$ac_try;;
18667 esac
18668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18669 $as_echo "$ac_try_echo") >&5
18670   (eval "$ac_compile") 2>conftest.er1
18671   ac_status=$?
18672   grep -v '^ *+' conftest.er1 >conftest.err
18673   rm -f conftest.er1
18674   cat conftest.err >&5
18675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676   (exit $ac_status); } && {
18677          test -z "$ac_c_werror_flag" ||
18678          test ! -s conftest.err
18679        } && test -s conftest.$ac_objext; then
18680   ac_lo=0 ac_mid=0
18681   while :; do
18682     cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h.  */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h.  */
18688 $ac_includes_default
18689 int
18690 main ()
18691 {
18692 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18693 test_array [0] = 0
18694
18695   ;
18696   return 0;
18697 }
18698 _ACEOF
18699 rm -f conftest.$ac_objext
18700 if { (ac_try="$ac_compile"
18701 case "(($ac_try" in
18702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703   *) ac_try_echo=$ac_try;;
18704 esac
18705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18706 $as_echo "$ac_try_echo") >&5
18707   (eval "$ac_compile") 2>conftest.er1
18708   ac_status=$?
18709   grep -v '^ *+' conftest.er1 >conftest.err
18710   rm -f conftest.er1
18711   cat conftest.err >&5
18712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); } && {
18714          test -z "$ac_c_werror_flag" ||
18715          test ! -s conftest.err
18716        } && test -s conftest.$ac_objext; then
18717   ac_hi=$ac_mid; break
18718 else
18719   $as_echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18721
18722         ac_lo=`expr $ac_mid + 1`
18723                         if test $ac_lo -le $ac_mid; then
18724                           ac_lo= ac_hi=
18725                           break
18726                         fi
18727                         ac_mid=`expr 2 '*' $ac_mid + 1`
18728 fi
18729
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18731   done
18732 else
18733   $as_echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18735
18736         cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h.  */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h.  */
18742 $ac_includes_default
18743 int
18744 main ()
18745 {
18746 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18747 test_array [0] = 0
18748
18749   ;
18750   return 0;
18751 }
18752 _ACEOF
18753 rm -f conftest.$ac_objext
18754 if { (ac_try="$ac_compile"
18755 case "(($ac_try" in
18756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757   *) ac_try_echo=$ac_try;;
18758 esac
18759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18760 $as_echo "$ac_try_echo") >&5
18761   (eval "$ac_compile") 2>conftest.er1
18762   ac_status=$?
18763   grep -v '^ *+' conftest.er1 >conftest.err
18764   rm -f conftest.er1
18765   cat conftest.err >&5
18766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767   (exit $ac_status); } && {
18768          test -z "$ac_c_werror_flag" ||
18769          test ! -s conftest.err
18770        } && test -s conftest.$ac_objext; then
18771   ac_hi=-1 ac_mid=-1
18772   while :; do
18773     cat >conftest.$ac_ext <<_ACEOF
18774 /* confdefs.h.  */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h.  */
18779 $ac_includes_default
18780 int
18781 main ()
18782 {
18783 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18784 test_array [0] = 0
18785
18786   ;
18787   return 0;
18788 }
18789 _ACEOF
18790 rm -f conftest.$ac_objext
18791 if { (ac_try="$ac_compile"
18792 case "(($ac_try" in
18793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794   *) ac_try_echo=$ac_try;;
18795 esac
18796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18797 $as_echo "$ac_try_echo") >&5
18798   (eval "$ac_compile") 2>conftest.er1
18799   ac_status=$?
18800   grep -v '^ *+' conftest.er1 >conftest.err
18801   rm -f conftest.er1
18802   cat conftest.err >&5
18803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804   (exit $ac_status); } && {
18805          test -z "$ac_c_werror_flag" ||
18806          test ! -s conftest.err
18807        } && test -s conftest.$ac_objext; then
18808   ac_lo=$ac_mid; break
18809 else
18810   $as_echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.$ac_ext >&5
18812
18813         ac_hi=`expr '(' $ac_mid ')' - 1`
18814                         if test $ac_mid -le $ac_hi; then
18815                           ac_lo= ac_hi=
18816                           break
18817                         fi
18818                         ac_mid=`expr 2 '*' $ac_mid`
18819 fi
18820
18821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18822   done
18823 else
18824   $as_echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18826
18827         ac_lo= ac_hi=
18828 fi
18829
18830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18831 fi
18832
18833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18834 # Binary search between lo and hi bounds.
18835 while test "x$ac_lo" != "x$ac_hi"; do
18836   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18837   cat >conftest.$ac_ext <<_ACEOF
18838 /* confdefs.h.  */
18839 _ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h.  */
18843 $ac_includes_default
18844 int
18845 main ()
18846 {
18847 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18848 test_array [0] = 0
18849
18850   ;
18851   return 0;
18852 }
18853 _ACEOF
18854 rm -f conftest.$ac_objext
18855 if { (ac_try="$ac_compile"
18856 case "(($ac_try" in
18857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858   *) ac_try_echo=$ac_try;;
18859 esac
18860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18861 $as_echo "$ac_try_echo") >&5
18862   (eval "$ac_compile") 2>conftest.er1
18863   ac_status=$?
18864   grep -v '^ *+' conftest.er1 >conftest.err
18865   rm -f conftest.er1
18866   cat conftest.err >&5
18867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); } && {
18869          test -z "$ac_c_werror_flag" ||
18870          test ! -s conftest.err
18871        } && test -s conftest.$ac_objext; then
18872   ac_hi=$ac_mid
18873 else
18874   $as_echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18876
18877         ac_lo=`expr '(' $ac_mid ')' + 1`
18878 fi
18879
18880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18881 done
18882 case $ac_lo in
18883 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18884 '') if test "$ac_cv_type_off_t" = yes; then
18885      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18887 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18888 See \`config.log' for more details." >&5
18889 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18890 See \`config.log' for more details." >&2;}
18891    { (exit 77); exit 77; }; }; }
18892    else
18893      ac_cv_sizeof_off_t=0
18894    fi ;;
18895 esac
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 $ac_includes_default
18904 static long int longval () { return (long int) (sizeof (off_t)); }
18905 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18906 #include <stdio.h>
18907 #include <stdlib.h>
18908 int
18909 main ()
18910 {
18911
18912   FILE *f = fopen ("conftest.val", "w");
18913   if (! f)
18914     return 1;
18915   if (((long int) (sizeof (off_t))) < 0)
18916     {
18917       long int i = longval ();
18918       if (i != ((long int) (sizeof (off_t))))
18919         return 1;
18920       fprintf (f, "%ld", i);
18921     }
18922   else
18923     {
18924       unsigned long int i = ulongval ();
18925       if (i != ((long int) (sizeof (off_t))))
18926         return 1;
18927       fprintf (f, "%lu", i);
18928     }
18929   /* Do not output a trailing newline, as this causes \r\n confusion
18930      on some platforms.  */
18931   return ferror (f) || fclose (f) != 0;
18932
18933   ;
18934   return 0;
18935 }
18936 _ACEOF
18937 rm -f conftest$ac_exeext
18938 if { (ac_try="$ac_link"
18939 case "(($ac_try" in
18940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941   *) ac_try_echo=$ac_try;;
18942 esac
18943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18944 $as_echo "$ac_try_echo") >&5
18945   (eval "$ac_link") 2>&5
18946   ac_status=$?
18947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18949   { (case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18954 $as_echo "$ac_try_echo") >&5
18955   (eval "$ac_try") 2>&5
18956   ac_status=$?
18957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); }; }; then
18959   ac_cv_sizeof_off_t=`cat conftest.val`
18960 else
18961   $as_echo "$as_me: program exited with status $ac_status" >&5
18962 $as_echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18964
18965 ( exit $ac_status )
18966 if test "$ac_cv_type_off_t" = yes; then
18967      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18969 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18970 See \`config.log' for more details." >&5
18971 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18972 See \`config.log' for more details." >&2;}
18973    { (exit 77); exit 77; }; }; }
18974    else
18975      ac_cv_sizeof_off_t=0
18976    fi
18977 fi
18978 rm -rf conftest.dSYM
18979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18980 fi
18981 rm -f conftest.val
18982 fi
18983 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18984 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18985
18986
18987
18988 cat >>confdefs.h <<_ACEOF
18989 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18990 _ACEOF
18991
18992
18993
18994 # If we don't have largefile support, can't handle segsize >= 2GB.
18995 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18996    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18997 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18998    { (exit 1); exit 1; }; }
18999 fi
19000
19001
19002 ##
19003 ## Functions, global variables
19004 ##
19005
19006 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19007 $as_echo_n "checking for int timezone... " >&6; }
19008 if test "${pgac_cv_var_int_timezone+set}" = set; then
19009   $as_echo_n "(cached) " >&6
19010 else
19011   cat >conftest.$ac_ext <<_ACEOF
19012 /* confdefs.h.  */
19013 _ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h.  */
19017 #include <time.h>
19018 int res;
19019 int
19020 main ()
19021 {
19022 #ifndef __CYGWIN__
19023 res = timezone / 60;
19024 #else
19025 res = _timezone / 60;
19026 #endif
19027   ;
19028   return 0;
19029 }
19030 _ACEOF
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (ac_try="$ac_link"
19033 case "(($ac_try" in
19034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035   *) ac_try_echo=$ac_try;;
19036 esac
19037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19038 $as_echo "$ac_try_echo") >&5
19039   (eval "$ac_link") 2>conftest.er1
19040   ac_status=$?
19041   grep -v '^ *+' conftest.er1 >conftest.err
19042   rm -f conftest.er1
19043   cat conftest.err >&5
19044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); } && {
19046          test -z "$ac_c_werror_flag" ||
19047          test ! -s conftest.err
19048        } && test -s conftest$ac_exeext && {
19049          test "$cross_compiling" = yes ||
19050          $as_test_x conftest$ac_exeext
19051        }; then
19052   pgac_cv_var_int_timezone=yes
19053 else
19054   $as_echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19056
19057         pgac_cv_var_int_timezone=no
19058 fi
19059
19060 rm -rf conftest.dSYM
19061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19062       conftest$ac_exeext conftest.$ac_ext
19063 fi
19064 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19065 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19066 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19067
19068 cat >>confdefs.h <<\_ACEOF
19069 #define HAVE_INT_TIMEZONE /**/
19070 _ACEOF
19071
19072 fi
19073 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19074 $as_echo_n "checking types of arguments for accept()... " >&6; }
19075  if test "${ac_cv_func_accept_return+set}" = set; then
19076   $as_echo_n "(cached) " >&6
19077 else
19078    if test "${ac_cv_func_accept_arg1+set}" = set; then
19079   $as_echo_n "(cached) " >&6
19080 else
19081     if test "${ac_cv_func_accept_arg2+set}" = set; then
19082   $as_echo_n "(cached) " >&6
19083 else
19084      if test "${ac_cv_func_accept_arg3+set}" = set; then
19085   $as_echo_n "(cached) " >&6
19086 else
19087       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19088       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19089        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19090         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19091          cat >conftest.$ac_ext <<_ACEOF
19092 /* confdefs.h.  */
19093 _ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h.  */
19097 #ifdef HAVE_SYS_TYPES_H
19098 #include <sys/types.h>
19099 #endif
19100 #ifdef HAVE_SYS_SOCKET_H
19101 #include <sys/socket.h>
19102 #endif
19103 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19104 int
19105 main ()
19106 {
19107
19108   ;
19109   return 0;
19110 }
19111 _ACEOF
19112 rm -f conftest.$ac_objext
19113 if { (ac_try="$ac_compile"
19114 case "(($ac_try" in
19115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116   *) ac_try_echo=$ac_try;;
19117 esac
19118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19119 $as_echo "$ac_try_echo") >&5
19120   (eval "$ac_compile") 2>conftest.er1
19121   ac_status=$?
19122   grep -v '^ *+' conftest.er1 >conftest.err
19123   rm -f conftest.er1
19124   cat conftest.err >&5
19125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); } && {
19127          test -z "$ac_c_werror_flag" ||
19128          test ! -s conftest.err
19129        } && test -s conftest.$ac_objext; then
19130   ac_not_found=no; break 4
19131 else
19132   $as_echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.$ac_ext >&5
19134
19135         ac_not_found=yes
19136 fi
19137
19138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19139        done
19140       done
19141      done
19142     done
19143     if test "$ac_not_found" = yes; then
19144       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19145 $as_echo "$as_me: error: could not determine argument types" >&2;}
19146    { (exit 1); exit 1; }; }
19147     fi
19148     if test "$ac_cv_func_accept_arg3" = "void"; then
19149       ac_cv_func_accept_arg3=int
19150     fi
19151
19152 fi
19153
19154 fi
19155
19156 fi
19157
19158 fi
19159  { $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
19160 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19161
19162 cat >>confdefs.h <<_ACEOF
19163 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19164 _ACEOF
19165
19166
19167 cat >>confdefs.h <<_ACEOF
19168 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19169 _ACEOF
19170
19171
19172 cat >>confdefs.h <<_ACEOF
19173 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19174 _ACEOF
19175
19176
19177 cat >>confdefs.h <<_ACEOF
19178 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19179 _ACEOF
19180
19181
19182 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19183 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19184 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19185   $as_echo_n "(cached) " >&6
19186 else
19187   cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h.  */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h.  */
19193 #include <sys/time.h>
19194 int
19195 main ()
19196 {
19197 struct timeval *tp;
19198 struct timezone *tzp;
19199 gettimeofday(tp,tzp);
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext
19205 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
19222   pgac_cv_func_gettimeofday_1arg=no
19223 else
19224   $as_echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227         pgac_cv_func_gettimeofday_1arg=yes
19228 fi
19229
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 fi
19232 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19233 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19234 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19235
19236 cat >>confdefs.h <<\_ACEOF
19237 #define GETTIMEOFDAY_1ARG /**/
19238 _ACEOF
19239
19240 fi
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
19267 do
19268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19269 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19270 $as_echo_n "checking for $ac_func... " >&6; }
19271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19272   $as_echo_n "(cached) " >&6
19273 else
19274   cat >conftest.$ac_ext <<_ACEOF
19275 /* confdefs.h.  */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h.  */
19280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19282 #define $ac_func innocuous_$ac_func
19283
19284 /* System header to define __stub macros and hopefully few prototypes,
19285     which can conflict with char $ac_func (); below.
19286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19287     <limits.h> exists even on freestanding compilers.  */
19288
19289 #ifdef __STDC__
19290 # include <limits.h>
19291 #else
19292 # include <assert.h>
19293 #endif
19294
19295 #undef $ac_func
19296
19297 /* Override any GCC internal prototype to avoid an error.
19298    Use char because int might match the return type of a GCC
19299    builtin and then its argument prototype would still apply.  */
19300 #ifdef __cplusplus
19301 extern "C"
19302 #endif
19303 char $ac_func ();
19304 /* The GNU C library defines this for functions which it implements
19305     to always fail with ENOSYS.  Some functions are actually named
19306     something starting with __ and the normal name is an alias.  */
19307 #if defined __stub_$ac_func || defined __stub___$ac_func
19308 choke me
19309 #endif
19310
19311 int
19312 main ()
19313 {
19314 return $ac_func ();
19315   ;
19316   return 0;
19317 }
19318 _ACEOF
19319 rm -f conftest.$ac_objext conftest$ac_exeext
19320 if { (ac_try="$ac_link"
19321 case "(($ac_try" in
19322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323   *) ac_try_echo=$ac_try;;
19324 esac
19325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19326 $as_echo "$ac_try_echo") >&5
19327   (eval "$ac_link") 2>conftest.er1
19328   ac_status=$?
19329   grep -v '^ *+' conftest.er1 >conftest.err
19330   rm -f conftest.er1
19331   cat conftest.err >&5
19332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); } && {
19334          test -z "$ac_c_werror_flag" ||
19335          test ! -s conftest.err
19336        } && test -s conftest$ac_exeext && {
19337          test "$cross_compiling" = yes ||
19338          $as_test_x conftest$ac_exeext
19339        }; then
19340   eval "$as_ac_var=yes"
19341 else
19342   $as_echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19344
19345         eval "$as_ac_var=no"
19346 fi
19347
19348 rm -rf conftest.dSYM
19349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19350       conftest$ac_exeext conftest.$ac_ext
19351 fi
19352 ac_res=`eval 'as_val=${'$as_ac_var'}
19353                  $as_echo "$as_val"'`
19354                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19355 $as_echo "$ac_res" >&6; }
19356 as_val=`eval 'as_val=${'$as_ac_var'}
19357                  $as_echo "$as_val"'`
19358    if test "x$as_val" = x""yes; then
19359   cat >>confdefs.h <<_ACEOF
19360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19361 _ACEOF
19362
19363 fi
19364 done
19365
19366
19367
19368 for ac_func in fseeko
19369 do
19370 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19371 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19372 $as_echo_n "checking for $ac_func... " >&6; }
19373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19374   $as_echo_n "(cached) " >&6
19375 else
19376   cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h.  */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h.  */
19382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19384 #define $ac_func innocuous_$ac_func
19385
19386 /* System header to define __stub macros and hopefully few prototypes,
19387     which can conflict with char $ac_func (); below.
19388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19389     <limits.h> exists even on freestanding compilers.  */
19390
19391 #ifdef __STDC__
19392 # include <limits.h>
19393 #else
19394 # include <assert.h>
19395 #endif
19396
19397 #undef $ac_func
19398
19399 /* Override any GCC internal prototype to avoid an error.
19400    Use char because int might match the return type of a GCC
19401    builtin and then its argument prototype would still apply.  */
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 char $ac_func ();
19406 /* The GNU C library defines this for functions which it implements
19407     to always fail with ENOSYS.  Some functions are actually named
19408     something starting with __ and the normal name is an alias.  */
19409 #if defined __stub_$ac_func || defined __stub___$ac_func
19410 choke me
19411 #endif
19412
19413 int
19414 main ()
19415 {
19416 return $ac_func ();
19417   ;
19418   return 0;
19419 }
19420 _ACEOF
19421 rm -f conftest.$ac_objext conftest$ac_exeext
19422 if { (ac_try="$ac_link"
19423 case "(($ac_try" in
19424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425   *) ac_try_echo=$ac_try;;
19426 esac
19427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19428 $as_echo "$ac_try_echo") >&5
19429   (eval "$ac_link") 2>conftest.er1
19430   ac_status=$?
19431   grep -v '^ *+' conftest.er1 >conftest.err
19432   rm -f conftest.er1
19433   cat conftest.err >&5
19434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); } && {
19436          test -z "$ac_c_werror_flag" ||
19437          test ! -s conftest.err
19438        } && test -s conftest$ac_exeext && {
19439          test "$cross_compiling" = yes ||
19440          $as_test_x conftest$ac_exeext
19441        }; then
19442   eval "$as_ac_var=yes"
19443 else
19444   $as_echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19446
19447         eval "$as_ac_var=no"
19448 fi
19449
19450 rm -rf conftest.dSYM
19451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19452       conftest$ac_exeext conftest.$ac_ext
19453 fi
19454 ac_res=`eval 'as_val=${'$as_ac_var'}
19455                  $as_echo "$as_val"'`
19456                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19457 $as_echo "$ac_res" >&6; }
19458 as_val=`eval 'as_val=${'$as_ac_var'}
19459                  $as_echo "$as_val"'`
19460    if test "x$as_val" = x""yes; then
19461   cat >>confdefs.h <<_ACEOF
19462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19463 _ACEOF
19464
19465 else
19466   case " $LIBOBJS " in
19467   *" $ac_func.$ac_objext "* ) ;;
19468   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19469  ;;
19470 esac
19471
19472 fi
19473 done
19474
19475
19476 case $host_os in
19477         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19478         # Mingw uses macros to access Win32 API calls
19479         bsdi*|netbsd*|mingw*)
19480
19481 cat >>confdefs.h <<\_ACEOF
19482 #define HAVE_FSEEKO 1
19483 _ACEOF
19484
19485                 ac_cv_func_fseeko=yes;;
19486         *)
19487                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19488 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19489 if test "${ac_cv_sys_largefile_source+set}" = set; then
19490   $as_echo_n "(cached) " >&6
19491 else
19492   while :; do
19493   cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h.  */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h.  */
19499 #include <sys/types.h> /* for off_t */
19500      #include <stdio.h>
19501 int
19502 main ()
19503 {
19504 int (*fp) (FILE *, off_t, int) = fseeko;
19505      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19506   ;
19507   return 0;
19508 }
19509 _ACEOF
19510 rm -f conftest.$ac_objext conftest$ac_exeext
19511 if { (ac_try="$ac_link"
19512 case "(($ac_try" in
19513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514   *) ac_try_echo=$ac_try;;
19515 esac
19516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19517 $as_echo "$ac_try_echo") >&5
19518   (eval "$ac_link") 2>conftest.er1
19519   ac_status=$?
19520   grep -v '^ *+' conftest.er1 >conftest.err
19521   rm -f conftest.er1
19522   cat conftest.err >&5
19523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); } && {
19525          test -z "$ac_c_werror_flag" ||
19526          test ! -s conftest.err
19527        } && test -s conftest$ac_exeext && {
19528          test "$cross_compiling" = yes ||
19529          $as_test_x conftest$ac_exeext
19530        }; then
19531   ac_cv_sys_largefile_source=no; break
19532 else
19533   $as_echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19535
19536
19537 fi
19538
19539 rm -rf conftest.dSYM
19540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19541       conftest$ac_exeext conftest.$ac_ext
19542   cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h.  */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h.  */
19548 #define _LARGEFILE_SOURCE 1
19549 #include <sys/types.h> /* for off_t */
19550      #include <stdio.h>
19551 int
19552 main ()
19553 {
19554 int (*fp) (FILE *, off_t, int) = fseeko;
19555      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19556   ;
19557   return 0;
19558 }
19559 _ACEOF
19560 rm -f conftest.$ac_objext conftest$ac_exeext
19561 if { (ac_try="$ac_link"
19562 case "(($ac_try" in
19563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564   *) ac_try_echo=$ac_try;;
19565 esac
19566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19567 $as_echo "$ac_try_echo") >&5
19568   (eval "$ac_link") 2>conftest.er1
19569   ac_status=$?
19570   grep -v '^ *+' conftest.er1 >conftest.err
19571   rm -f conftest.er1
19572   cat conftest.err >&5
19573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); } && {
19575          test -z "$ac_c_werror_flag" ||
19576          test ! -s conftest.err
19577        } && test -s conftest$ac_exeext && {
19578          test "$cross_compiling" = yes ||
19579          $as_test_x conftest$ac_exeext
19580        }; then
19581   ac_cv_sys_largefile_source=1; break
19582 else
19583   $as_echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19585
19586
19587 fi
19588
19589 rm -rf conftest.dSYM
19590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19591       conftest$ac_exeext conftest.$ac_ext
19592   ac_cv_sys_largefile_source=unknown
19593   break
19594 done
19595 fi
19596 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19597 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19598 case $ac_cv_sys_largefile_source in #(
19599   no | unknown) ;;
19600   *)
19601 cat >>confdefs.h <<_ACEOF
19602 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19603 _ACEOF
19604 ;;
19605 esac
19606 rm -rf conftest*
19607
19608 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19609 # in glibc 2.1.3, but that breaks too many other things.
19610 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19611 if test $ac_cv_sys_largefile_source != unknown; then
19612
19613 cat >>confdefs.h <<\_ACEOF
19614 #define HAVE_FSEEKO 1
19615 _ACEOF
19616
19617 fi
19618 ;;
19619 esac
19620
19621 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19622 # by calling it, 2009-04-02
19623 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19624 if test "$PORTNAME" != "solaris"; then
19625
19626 for ac_func in posix_fadvise
19627 do
19628 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19629 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19630 $as_echo_n "checking for $ac_func... " >&6; }
19631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19632   $as_echo_n "(cached) " >&6
19633 else
19634   cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h.  */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h.  */
19640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19642 #define $ac_func innocuous_$ac_func
19643
19644 /* System header to define __stub macros and hopefully few prototypes,
19645     which can conflict with char $ac_func (); below.
19646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19647     <limits.h> exists even on freestanding compilers.  */
19648
19649 #ifdef __STDC__
19650 # include <limits.h>
19651 #else
19652 # include <assert.h>
19653 #endif
19654
19655 #undef $ac_func
19656
19657 /* Override any GCC internal prototype to avoid an error.
19658    Use char because int might match the return type of a GCC
19659    builtin and then its argument prototype would still apply.  */
19660 #ifdef __cplusplus
19661 extern "C"
19662 #endif
19663 char $ac_func ();
19664 /* The GNU C library defines this for functions which it implements
19665     to always fail with ENOSYS.  Some functions are actually named
19666     something starting with __ and the normal name is an alias.  */
19667 #if defined __stub_$ac_func || defined __stub___$ac_func
19668 choke me
19669 #endif
19670
19671 int
19672 main ()
19673 {
19674 return $ac_func ();
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 rm -f conftest.$ac_objext conftest$ac_exeext
19680 if { (ac_try="$ac_link"
19681 case "(($ac_try" in
19682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683   *) ac_try_echo=$ac_try;;
19684 esac
19685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19686 $as_echo "$ac_try_echo") >&5
19687   (eval "$ac_link") 2>conftest.er1
19688   ac_status=$?
19689   grep -v '^ *+' conftest.er1 >conftest.err
19690   rm -f conftest.er1
19691   cat conftest.err >&5
19692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); } && {
19694          test -z "$ac_c_werror_flag" ||
19695          test ! -s conftest.err
19696        } && test -s conftest$ac_exeext && {
19697          test "$cross_compiling" = yes ||
19698          $as_test_x conftest$ac_exeext
19699        }; then
19700   eval "$as_ac_var=yes"
19701 else
19702   $as_echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705         eval "$as_ac_var=no"
19706 fi
19707
19708 rm -rf conftest.dSYM
19709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19710       conftest$ac_exeext conftest.$ac_ext
19711 fi
19712 ac_res=`eval 'as_val=${'$as_ac_var'}
19713                  $as_echo "$as_val"'`
19714                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19715 $as_echo "$ac_res" >&6; }
19716 as_val=`eval 'as_val=${'$as_ac_var'}
19717                  $as_echo "$as_val"'`
19718    if test "x$as_val" = x""yes; then
19719   cat >>confdefs.h <<_ACEOF
19720 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19721 _ACEOF
19722
19723 fi
19724 done
19725
19726 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19727 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19728 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19729   $as_echo_n "(cached) " >&6
19730 else
19731   cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h.  */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h.  */
19737 #include <fcntl.h>
19738
19739 int
19740 main ()
19741 {
19742 #ifndef posix_fadvise
19743   (void) posix_fadvise;
19744 #endif
19745
19746   ;
19747   return 0;
19748 }
19749 _ACEOF
19750 rm -f conftest.$ac_objext
19751 if { (ac_try="$ac_compile"
19752 case "(($ac_try" in
19753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754   *) ac_try_echo=$ac_try;;
19755 esac
19756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19757 $as_echo "$ac_try_echo") >&5
19758   (eval "$ac_compile") 2>conftest.er1
19759   ac_status=$?
19760   grep -v '^ *+' conftest.er1 >conftest.err
19761   rm -f conftest.er1
19762   cat conftest.err >&5
19763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); } && {
19765          test -z "$ac_c_werror_flag" ||
19766          test ! -s conftest.err
19767        } && test -s conftest.$ac_objext; then
19768   ac_cv_have_decl_posix_fadvise=yes
19769 else
19770   $as_echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19772
19773         ac_cv_have_decl_posix_fadvise=no
19774 fi
19775
19776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19777 fi
19778 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19779 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19780 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19781
19782 cat >>confdefs.h <<_ACEOF
19783 #define HAVE_DECL_POSIX_FADVISE 1
19784 _ACEOF
19785
19786
19787 else
19788   cat >>confdefs.h <<_ACEOF
19789 #define HAVE_DECL_POSIX_FADVISE 0
19790 _ACEOF
19791
19792
19793 fi
19794
19795
19796 fi
19797
19798 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19799 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19800 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19801   $as_echo_n "(cached) " >&6
19802 else
19803   cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h.  */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h.  */
19809 #include <unistd.h>
19810
19811 int
19812 main ()
19813 {
19814 #ifndef fdatasync
19815   (void) fdatasync;
19816 #endif
19817
19818   ;
19819   return 0;
19820 }
19821 _ACEOF
19822 rm -f conftest.$ac_objext
19823 if { (ac_try="$ac_compile"
19824 case "(($ac_try" in
19825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826   *) ac_try_echo=$ac_try;;
19827 esac
19828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19829 $as_echo "$ac_try_echo") >&5
19830   (eval "$ac_compile") 2>conftest.er1
19831   ac_status=$?
19832   grep -v '^ *+' conftest.er1 >conftest.err
19833   rm -f conftest.er1
19834   cat conftest.err >&5
19835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836   (exit $ac_status); } && {
19837          test -z "$ac_c_werror_flag" ||
19838          test ! -s conftest.err
19839        } && test -s conftest.$ac_objext; then
19840   ac_cv_have_decl_fdatasync=yes
19841 else
19842   $as_echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19844
19845         ac_cv_have_decl_fdatasync=no
19846 fi
19847
19848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19849 fi
19850 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19851 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19852 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19853
19854 cat >>confdefs.h <<_ACEOF
19855 #define HAVE_DECL_FDATASYNC 1
19856 _ACEOF
19857
19858
19859 else
19860   cat >>confdefs.h <<_ACEOF
19861 #define HAVE_DECL_FDATASYNC 0
19862 _ACEOF
19863
19864
19865 fi
19866
19867
19868 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19869 $as_echo_n "checking whether strlcat is declared... " >&6; }
19870 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19871   $as_echo_n "(cached) " >&6
19872 else
19873   cat >conftest.$ac_ext <<_ACEOF
19874 /* confdefs.h.  */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h.  */
19879 $ac_includes_default
19880 int
19881 main ()
19882 {
19883 #ifndef strlcat
19884   (void) strlcat;
19885 #endif
19886
19887   ;
19888   return 0;
19889 }
19890 _ACEOF
19891 rm -f conftest.$ac_objext
19892 if { (ac_try="$ac_compile"
19893 case "(($ac_try" in
19894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895   *) ac_try_echo=$ac_try;;
19896 esac
19897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19898 $as_echo "$ac_try_echo") >&5
19899   (eval "$ac_compile") 2>conftest.er1
19900   ac_status=$?
19901   grep -v '^ *+' conftest.er1 >conftest.err
19902   rm -f conftest.er1
19903   cat conftest.err >&5
19904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); } && {
19906          test -z "$ac_c_werror_flag" ||
19907          test ! -s conftest.err
19908        } && test -s conftest.$ac_objext; then
19909   ac_cv_have_decl_strlcat=yes
19910 else
19911   $as_echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914         ac_cv_have_decl_strlcat=no
19915 fi
19916
19917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19918 fi
19919 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19920 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19921 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19922
19923 cat >>confdefs.h <<_ACEOF
19924 #define HAVE_DECL_STRLCAT 1
19925 _ACEOF
19926
19927
19928 else
19929   cat >>confdefs.h <<_ACEOF
19930 #define HAVE_DECL_STRLCAT 0
19931 _ACEOF
19932
19933
19934 fi
19935 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19936 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19937 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19938   $as_echo_n "(cached) " >&6
19939 else
19940   cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h.  */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h.  */
19946 $ac_includes_default
19947 int
19948 main ()
19949 {
19950 #ifndef strlcpy
19951   (void) strlcpy;
19952 #endif
19953
19954   ;
19955   return 0;
19956 }
19957 _ACEOF
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962   *) ac_try_echo=$ac_try;;
19963 esac
19964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19965 $as_echo "$ac_try_echo") >&5
19966   (eval "$ac_compile") 2>conftest.er1
19967   ac_status=$?
19968   grep -v '^ *+' conftest.er1 >conftest.err
19969   rm -f conftest.er1
19970   cat conftest.err >&5
19971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); } && {
19973          test -z "$ac_c_werror_flag" ||
19974          test ! -s conftest.err
19975        } && test -s conftest.$ac_objext; then
19976   ac_cv_have_decl_strlcpy=yes
19977 else
19978   $as_echo "$as_me: failed program was:" >&5
19979 sed 's/^/| /' conftest.$ac_ext >&5
19980
19981         ac_cv_have_decl_strlcpy=no
19982 fi
19983
19984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19985 fi
19986 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19987 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19988 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19989
19990 cat >>confdefs.h <<_ACEOF
19991 #define HAVE_DECL_STRLCPY 1
19992 _ACEOF
19993
19994
19995 else
19996   cat >>confdefs.h <<_ACEOF
19997 #define HAVE_DECL_STRLCPY 0
19998 _ACEOF
19999
20000
20001 fi
20002
20003
20004 # This is probably only present on Darwin, but may as well check always
20005 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20006 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20007 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20008   $as_echo_n "(cached) " >&6
20009 else
20010   cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h.  */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h.  */
20016 #include <fcntl.h>
20017
20018 int
20019 main ()
20020 {
20021 #ifndef F_FULLFSYNC
20022   (void) F_FULLFSYNC;
20023 #endif
20024
20025   ;
20026   return 0;
20027 }
20028 _ACEOF
20029 rm -f conftest.$ac_objext
20030 if { (ac_try="$ac_compile"
20031 case "(($ac_try" in
20032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033   *) ac_try_echo=$ac_try;;
20034 esac
20035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20036 $as_echo "$ac_try_echo") >&5
20037   (eval "$ac_compile") 2>conftest.er1
20038   ac_status=$?
20039   grep -v '^ *+' conftest.er1 >conftest.err
20040   rm -f conftest.er1
20041   cat conftest.err >&5
20042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); } && {
20044          test -z "$ac_c_werror_flag" ||
20045          test ! -s conftest.err
20046        } && test -s conftest.$ac_objext; then
20047   ac_cv_have_decl_F_FULLFSYNC=yes
20048 else
20049   $as_echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20051
20052         ac_cv_have_decl_F_FULLFSYNC=no
20053 fi
20054
20055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20056 fi
20057 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20058 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20059 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20060
20061 cat >>confdefs.h <<_ACEOF
20062 #define HAVE_DECL_F_FULLFSYNC 1
20063 _ACEOF
20064
20065
20066 else
20067   cat >>confdefs.h <<_ACEOF
20068 #define HAVE_DECL_F_FULLFSYNC 0
20069 _ACEOF
20070
20071
20072 fi
20073
20074
20075
20076 HAVE_IPV6=no
20077 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20078 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20079 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20080   $as_echo_n "(cached) " >&6
20081 else
20082   ac_cv_type_struct_sockaddr_in6=no
20083 cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089 $ac_includes_default
20090 #include <netinet/in.h>
20091
20092 int
20093 main ()
20094 {
20095 if (sizeof (struct sockaddr_in6))
20096        return 0;
20097   ;
20098   return 0;
20099 }
20100 _ACEOF
20101 rm -f conftest.$ac_objext
20102 if { (ac_try="$ac_compile"
20103 case "(($ac_try" in
20104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105   *) ac_try_echo=$ac_try;;
20106 esac
20107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20108 $as_echo "$ac_try_echo") >&5
20109   (eval "$ac_compile") 2>conftest.er1
20110   ac_status=$?
20111   grep -v '^ *+' conftest.er1 >conftest.err
20112   rm -f conftest.er1
20113   cat conftest.err >&5
20114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); } && {
20116          test -z "$ac_c_werror_flag" ||
20117          test ! -s conftest.err
20118        } && test -s conftest.$ac_objext; then
20119   cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h.  */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h.  */
20125 $ac_includes_default
20126 #include <netinet/in.h>
20127
20128 int
20129 main ()
20130 {
20131 if (sizeof ((struct sockaddr_in6)))
20132           return 0;
20133   ;
20134   return 0;
20135 }
20136 _ACEOF
20137 rm -f conftest.$ac_objext
20138 if { (ac_try="$ac_compile"
20139 case "(($ac_try" in
20140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141   *) ac_try_echo=$ac_try;;
20142 esac
20143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20144 $as_echo "$ac_try_echo") >&5
20145   (eval "$ac_compile") 2>conftest.er1
20146   ac_status=$?
20147   grep -v '^ *+' conftest.er1 >conftest.err
20148   rm -f conftest.er1
20149   cat conftest.err >&5
20150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); } && {
20152          test -z "$ac_c_werror_flag" ||
20153          test ! -s conftest.err
20154        } && test -s conftest.$ac_objext; then
20155   :
20156 else
20157   $as_echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160         ac_cv_type_struct_sockaddr_in6=yes
20161 fi
20162
20163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20164 else
20165   $as_echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20167
20168
20169 fi
20170
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172 fi
20173 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20174 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20175 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20176
20177 cat >>confdefs.h <<\_ACEOF
20178 #define HAVE_IPV6 1
20179 _ACEOF
20180
20181          HAVE_IPV6=yes
20182 fi
20183
20184
20185
20186 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20187 $as_echo_n "checking for PS_STRINGS... " >&6; }
20188 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20189   $as_echo_n "(cached) " >&6
20190 else
20191   cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h.  */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h.  */
20197 #include <machine/vmparam.h>
20198 #include <sys/exec.h>
20199
20200 int
20201 main ()
20202 {
20203 PS_STRINGS->ps_nargvstr = 1;
20204 PS_STRINGS->ps_argvstr = "foo";
20205   ;
20206   return 0;
20207 }
20208 _ACEOF
20209 rm -f conftest.$ac_objext conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213   *) ac_try_echo=$ac_try;;
20214 esac
20215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20216 $as_echo "$ac_try_echo") >&5
20217   (eval "$ac_link") 2>conftest.er1
20218   ac_status=$?
20219   grep -v '^ *+' conftest.er1 >conftest.err
20220   rm -f conftest.er1
20221   cat conftest.err >&5
20222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); } && {
20224          test -z "$ac_c_werror_flag" ||
20225          test ! -s conftest.err
20226        } && test -s conftest$ac_exeext && {
20227          test "$cross_compiling" = yes ||
20228          $as_test_x conftest$ac_exeext
20229        }; then
20230   pgac_cv_var_PS_STRINGS=yes
20231 else
20232   $as_echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20234
20235         pgac_cv_var_PS_STRINGS=no
20236 fi
20237
20238 rm -rf conftest.dSYM
20239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20240       conftest$ac_exeext conftest.$ac_ext
20241 fi
20242 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20243 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20244 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20245
20246 cat >>confdefs.h <<\_ACEOF
20247 #define HAVE_PS_STRINGS /**/
20248 _ACEOF
20249
20250 fi
20251
20252
20253 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20254 # is missing.  Yes, there are machines that have only one.  We may
20255 # also decide to use snprintf.c if snprintf() is present but does not
20256 # have all the features we need --- see below.
20257
20258 if test "$PORTNAME" = "win32"; then
20259   # Win32 gets snprintf.c built unconditionally.
20260   #
20261   # To properly translate all NLS languages strings, we must support the
20262   # *printf() %$ format, which allows *printf() arguments to be selected
20263   # by position in the translated string.
20264   #
20265   # libintl versions < 0.13 use the native *printf() functions, and Win32
20266   # *printf() doesn't understand %$, so we must use our /port versions,
20267   # which do understand %$. libintl versions >= 0.13 include their own
20268   # *printf versions on Win32.  The libintl 0.13 release note text is:
20269   #
20270   #   C format strings with positions, as they arise when a translator
20271   #   needs to reorder a sentence, are now supported on all platforms.
20272   #   On those few platforms (NetBSD and Woe32) for which the native
20273   #   printf()/fprintf()/... functions don't support such format
20274   #   strings, replacements are provided through <libintl.h>.
20275   #
20276   # We could use libintl >= 0.13's *printf() if we were sure that we had
20277   # a litint >= 0.13 at runtime, but seeing that there is no clean way
20278   # to guarantee that, it is best to just use our own, so we are sure to
20279   # get %$ support. In include/port.h we disable the *printf() macros
20280   # that might have been defined by libintl.
20281   #
20282   # We do this unconditionally whether NLS is used or not so we are sure
20283   # that all Win32 libraries and binaries behave the same.
20284   pgac_need_repl_snprintf=yes
20285 else
20286   pgac_need_repl_snprintf=no
20287
20288 for ac_func in snprintf
20289 do
20290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20291 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20292 $as_echo_n "checking for $ac_func... " >&6; }
20293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20294   $as_echo_n "(cached) " >&6
20295 else
20296   cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h.  */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h.  */
20302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20304 #define $ac_func innocuous_$ac_func
20305
20306 /* System header to define __stub macros and hopefully few prototypes,
20307     which can conflict with char $ac_func (); below.
20308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20309     <limits.h> exists even on freestanding compilers.  */
20310
20311 #ifdef __STDC__
20312 # include <limits.h>
20313 #else
20314 # include <assert.h>
20315 #endif
20316
20317 #undef $ac_func
20318
20319 /* Override any GCC internal prototype to avoid an error.
20320    Use char because int might match the return type of a GCC
20321    builtin and then its argument prototype would still apply.  */
20322 #ifdef __cplusplus
20323 extern "C"
20324 #endif
20325 char $ac_func ();
20326 /* The GNU C library defines this for functions which it implements
20327     to always fail with ENOSYS.  Some functions are actually named
20328     something starting with __ and the normal name is an alias.  */
20329 #if defined __stub_$ac_func || defined __stub___$ac_func
20330 choke me
20331 #endif
20332
20333 int
20334 main ()
20335 {
20336 return $ac_func ();
20337   ;
20338   return 0;
20339 }
20340 _ACEOF
20341 rm -f conftest.$ac_objext conftest$ac_exeext
20342 if { (ac_try="$ac_link"
20343 case "(($ac_try" in
20344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345   *) ac_try_echo=$ac_try;;
20346 esac
20347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20348 $as_echo "$ac_try_echo") >&5
20349   (eval "$ac_link") 2>conftest.er1
20350   ac_status=$?
20351   grep -v '^ *+' conftest.er1 >conftest.err
20352   rm -f conftest.er1
20353   cat conftest.err >&5
20354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); } && {
20356          test -z "$ac_c_werror_flag" ||
20357          test ! -s conftest.err
20358        } && test -s conftest$ac_exeext && {
20359          test "$cross_compiling" = yes ||
20360          $as_test_x conftest$ac_exeext
20361        }; then
20362   eval "$as_ac_var=yes"
20363 else
20364   $as_echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367         eval "$as_ac_var=no"
20368 fi
20369
20370 rm -rf conftest.dSYM
20371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20372       conftest$ac_exeext conftest.$ac_ext
20373 fi
20374 ac_res=`eval 'as_val=${'$as_ac_var'}
20375                  $as_echo "$as_val"'`
20376                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20377 $as_echo "$ac_res" >&6; }
20378 as_val=`eval 'as_val=${'$as_ac_var'}
20379                  $as_echo "$as_val"'`
20380    if test "x$as_val" = x""yes; then
20381   cat >>confdefs.h <<_ACEOF
20382 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20383 _ACEOF
20384
20385 else
20386   pgac_need_repl_snprintf=yes
20387 fi
20388 done
20389
20390
20391 for ac_func in vsnprintf
20392 do
20393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20394 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20395 $as_echo_n "checking for $ac_func... " >&6; }
20396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20397   $as_echo_n "(cached) " >&6
20398 else
20399   cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20407 #define $ac_func innocuous_$ac_func
20408
20409 /* System header to define __stub macros and hopefully few prototypes,
20410     which can conflict with char $ac_func (); below.
20411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20412     <limits.h> exists even on freestanding compilers.  */
20413
20414 #ifdef __STDC__
20415 # include <limits.h>
20416 #else
20417 # include <assert.h>
20418 #endif
20419
20420 #undef $ac_func
20421
20422 /* Override any GCC internal prototype to avoid an error.
20423    Use char because int might match the return type of a GCC
20424    builtin and then its argument prototype would still apply.  */
20425 #ifdef __cplusplus
20426 extern "C"
20427 #endif
20428 char $ac_func ();
20429 /* The GNU C library defines this for functions which it implements
20430     to always fail with ENOSYS.  Some functions are actually named
20431     something starting with __ and the normal name is an alias.  */
20432 #if defined __stub_$ac_func || defined __stub___$ac_func
20433 choke me
20434 #endif
20435
20436 int
20437 main ()
20438 {
20439 return $ac_func ();
20440   ;
20441   return 0;
20442 }
20443 _ACEOF
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (ac_try="$ac_link"
20446 case "(($ac_try" in
20447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448   *) ac_try_echo=$ac_try;;
20449 esac
20450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20451 $as_echo "$ac_try_echo") >&5
20452   (eval "$ac_link") 2>conftest.er1
20453   ac_status=$?
20454   grep -v '^ *+' conftest.er1 >conftest.err
20455   rm -f conftest.er1
20456   cat conftest.err >&5
20457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); } && {
20459          test -z "$ac_c_werror_flag" ||
20460          test ! -s conftest.err
20461        } && test -s conftest$ac_exeext && {
20462          test "$cross_compiling" = yes ||
20463          $as_test_x conftest$ac_exeext
20464        }; then
20465   eval "$as_ac_var=yes"
20466 else
20467   $as_echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20469
20470         eval "$as_ac_var=no"
20471 fi
20472
20473 rm -rf conftest.dSYM
20474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20475       conftest$ac_exeext conftest.$ac_ext
20476 fi
20477 ac_res=`eval 'as_val=${'$as_ac_var'}
20478                  $as_echo "$as_val"'`
20479                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20480 $as_echo "$ac_res" >&6; }
20481 as_val=`eval 'as_val=${'$as_ac_var'}
20482                  $as_echo "$as_val"'`
20483    if test "x$as_val" = x""yes; then
20484   cat >>confdefs.h <<_ACEOF
20485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20486 _ACEOF
20487
20488 else
20489   pgac_need_repl_snprintf=yes
20490 fi
20491 done
20492
20493 fi
20494
20495
20496 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20497 # include/c.h will provide declarations.  Note this is a separate test
20498 # from whether the functions exist in the C library --- there are
20499 # systems that have the functions but don't bother to declare them :-(
20500
20501 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20502 $as_echo_n "checking whether snprintf is declared... " >&6; }
20503 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20504   $as_echo_n "(cached) " >&6
20505 else
20506   cat >conftest.$ac_ext <<_ACEOF
20507 /* confdefs.h.  */
20508 _ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h.  */
20512 $ac_includes_default
20513 int
20514 main ()
20515 {
20516 #ifndef snprintf
20517   (void) snprintf;
20518 #endif
20519
20520   ;
20521   return 0;
20522 }
20523 _ACEOF
20524 rm -f conftest.$ac_objext
20525 if { (ac_try="$ac_compile"
20526 case "(($ac_try" in
20527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528   *) ac_try_echo=$ac_try;;
20529 esac
20530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20531 $as_echo "$ac_try_echo") >&5
20532   (eval "$ac_compile") 2>conftest.er1
20533   ac_status=$?
20534   grep -v '^ *+' conftest.er1 >conftest.err
20535   rm -f conftest.er1
20536   cat conftest.err >&5
20537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538   (exit $ac_status); } && {
20539          test -z "$ac_c_werror_flag" ||
20540          test ! -s conftest.err
20541        } && test -s conftest.$ac_objext; then
20542   ac_cv_have_decl_snprintf=yes
20543 else
20544   $as_echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547         ac_cv_have_decl_snprintf=no
20548 fi
20549
20550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20551 fi
20552 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20553 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20554 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20555
20556 cat >>confdefs.h <<_ACEOF
20557 #define HAVE_DECL_SNPRINTF 1
20558 _ACEOF
20559
20560
20561 else
20562   cat >>confdefs.h <<_ACEOF
20563 #define HAVE_DECL_SNPRINTF 0
20564 _ACEOF
20565
20566
20567 fi
20568 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20569 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20570 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20571   $as_echo_n "(cached) " >&6
20572 else
20573   cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h.  */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h.  */
20579 $ac_includes_default
20580 int
20581 main ()
20582 {
20583 #ifndef vsnprintf
20584   (void) vsnprintf;
20585 #endif
20586
20587   ;
20588   return 0;
20589 }
20590 _ACEOF
20591 rm -f conftest.$ac_objext
20592 if { (ac_try="$ac_compile"
20593 case "(($ac_try" in
20594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595   *) ac_try_echo=$ac_try;;
20596 esac
20597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20598 $as_echo "$ac_try_echo") >&5
20599   (eval "$ac_compile") 2>conftest.er1
20600   ac_status=$?
20601   grep -v '^ *+' conftest.er1 >conftest.err
20602   rm -f conftest.er1
20603   cat conftest.err >&5
20604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); } && {
20606          test -z "$ac_c_werror_flag" ||
20607          test ! -s conftest.err
20608        } && test -s conftest.$ac_objext; then
20609   ac_cv_have_decl_vsnprintf=yes
20610 else
20611   $as_echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20613
20614         ac_cv_have_decl_vsnprintf=no
20615 fi
20616
20617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618 fi
20619 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20620 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20621 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20622
20623 cat >>confdefs.h <<_ACEOF
20624 #define HAVE_DECL_VSNPRINTF 1
20625 _ACEOF
20626
20627
20628 else
20629   cat >>confdefs.h <<_ACEOF
20630 #define HAVE_DECL_VSNPRINTF 0
20631 _ACEOF
20632
20633
20634 fi
20635
20636
20637
20638
20639 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20640 $as_echo_n "checking for isinf... " >&6; }
20641 if test "${ac_cv_func_isinf+set}" = set; then
20642   $as_echo_n "(cached) " >&6
20643 else
20644   cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650
20651 #include <math.h>
20652 double glob_double;
20653
20654 int
20655 main ()
20656 {
20657 return isinf(glob_double) ? 0 : 1;
20658   ;
20659   return 0;
20660 }
20661 _ACEOF
20662 rm -f conftest.$ac_objext conftest$ac_exeext
20663 if { (ac_try="$ac_link"
20664 case "(($ac_try" in
20665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666   *) ac_try_echo=$ac_try;;
20667 esac
20668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20669 $as_echo "$ac_try_echo") >&5
20670   (eval "$ac_link") 2>conftest.er1
20671   ac_status=$?
20672   grep -v '^ *+' conftest.er1 >conftest.err
20673   rm -f conftest.er1
20674   cat conftest.err >&5
20675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } && {
20677          test -z "$ac_c_werror_flag" ||
20678          test ! -s conftest.err
20679        } && test -s conftest$ac_exeext && {
20680          test "$cross_compiling" = yes ||
20681          $as_test_x conftest$ac_exeext
20682        }; then
20683   ac_cv_func_isinf=yes
20684 else
20685   $as_echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20687
20688         ac_cv_func_isinf=no
20689 fi
20690
20691 rm -rf conftest.dSYM
20692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20693       conftest$ac_exeext conftest.$ac_ext
20694 fi
20695 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20696 $as_echo "$ac_cv_func_isinf" >&6; }
20697
20698 if test $ac_cv_func_isinf = yes ; then
20699
20700 cat >>confdefs.h <<\_ACEOF
20701 #define HAVE_ISINF 1
20702 _ACEOF
20703
20704 else
20705   case " $LIBOBJS " in
20706   *" isinf.$ac_objext "* ) ;;
20707   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20708  ;;
20709 esac
20710
20711   # Look for a way to implement a substitute for isinf()
20712
20713
20714
20715
20716 for ac_func in fpclass fp_class fp_class_d class
20717 do
20718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20719 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20720 $as_echo_n "checking for $ac_func... " >&6; }
20721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20722   $as_echo_n "(cached) " >&6
20723 else
20724   cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h.  */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h.  */
20730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20732 #define $ac_func innocuous_$ac_func
20733
20734 /* System header to define __stub macros and hopefully few prototypes,
20735     which can conflict with char $ac_func (); below.
20736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20737     <limits.h> exists even on freestanding compilers.  */
20738
20739 #ifdef __STDC__
20740 # include <limits.h>
20741 #else
20742 # include <assert.h>
20743 #endif
20744
20745 #undef $ac_func
20746
20747 /* Override any GCC internal prototype to avoid an error.
20748    Use char because int might match the return type of a GCC
20749    builtin and then its argument prototype would still apply.  */
20750 #ifdef __cplusplus
20751 extern "C"
20752 #endif
20753 char $ac_func ();
20754 /* The GNU C library defines this for functions which it implements
20755     to always fail with ENOSYS.  Some functions are actually named
20756     something starting with __ and the normal name is an alias.  */
20757 #if defined __stub_$ac_func || defined __stub___$ac_func
20758 choke me
20759 #endif
20760
20761 int
20762 main ()
20763 {
20764 return $ac_func ();
20765   ;
20766   return 0;
20767 }
20768 _ACEOF
20769 rm -f conftest.$ac_objext conftest$ac_exeext
20770 if { (ac_try="$ac_link"
20771 case "(($ac_try" in
20772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773   *) ac_try_echo=$ac_try;;
20774 esac
20775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20776 $as_echo "$ac_try_echo") >&5
20777   (eval "$ac_link") 2>conftest.er1
20778   ac_status=$?
20779   grep -v '^ *+' conftest.er1 >conftest.err
20780   rm -f conftest.er1
20781   cat conftest.err >&5
20782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); } && {
20784          test -z "$ac_c_werror_flag" ||
20785          test ! -s conftest.err
20786        } && test -s conftest$ac_exeext && {
20787          test "$cross_compiling" = yes ||
20788          $as_test_x conftest$ac_exeext
20789        }; then
20790   eval "$as_ac_var=yes"
20791 else
20792   $as_echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20794
20795         eval "$as_ac_var=no"
20796 fi
20797
20798 rm -rf conftest.dSYM
20799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20800       conftest$ac_exeext conftest.$ac_ext
20801 fi
20802 ac_res=`eval 'as_val=${'$as_ac_var'}
20803                  $as_echo "$as_val"'`
20804                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20805 $as_echo "$ac_res" >&6; }
20806 as_val=`eval 'as_val=${'$as_ac_var'}
20807                  $as_echo "$as_val"'`
20808    if test "x$as_val" = x""yes; then
20809   cat >>confdefs.h <<_ACEOF
20810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20811 _ACEOF
20812  break
20813 fi
20814 done
20815
20816 fi
20817
20818 # Some versions of libedit contain strlcpy(); so disregard that library while
20819 # checking for these standard libc functions.
20820 pgac_save_LIBS="$LIBS"
20821 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20838 do
20839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20841 $as_echo_n "checking for $ac_func... " >&6; }
20842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20843   $as_echo_n "(cached) " >&6
20844 else
20845   cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h.  */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h.  */
20851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20853 #define $ac_func innocuous_$ac_func
20854
20855 /* System header to define __stub macros and hopefully few prototypes,
20856     which can conflict with char $ac_func (); below.
20857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20858     <limits.h> exists even on freestanding compilers.  */
20859
20860 #ifdef __STDC__
20861 # include <limits.h>
20862 #else
20863 # include <assert.h>
20864 #endif
20865
20866 #undef $ac_func
20867
20868 /* Override any GCC internal prototype to avoid an error.
20869    Use char because int might match the return type of a GCC
20870    builtin and then its argument prototype would still apply.  */
20871 #ifdef __cplusplus
20872 extern "C"
20873 #endif
20874 char $ac_func ();
20875 /* The GNU C library defines this for functions which it implements
20876     to always fail with ENOSYS.  Some functions are actually named
20877     something starting with __ and the normal name is an alias.  */
20878 #if defined __stub_$ac_func || defined __stub___$ac_func
20879 choke me
20880 #endif
20881
20882 int
20883 main ()
20884 {
20885 return $ac_func ();
20886   ;
20887   return 0;
20888 }
20889 _ACEOF
20890 rm -f conftest.$ac_objext conftest$ac_exeext
20891 if { (ac_try="$ac_link"
20892 case "(($ac_try" in
20893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894   *) ac_try_echo=$ac_try;;
20895 esac
20896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20897 $as_echo "$ac_try_echo") >&5
20898   (eval "$ac_link") 2>conftest.er1
20899   ac_status=$?
20900   grep -v '^ *+' conftest.er1 >conftest.err
20901   rm -f conftest.er1
20902   cat conftest.err >&5
20903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); } && {
20905          test -z "$ac_c_werror_flag" ||
20906          test ! -s conftest.err
20907        } && test -s conftest$ac_exeext && {
20908          test "$cross_compiling" = yes ||
20909          $as_test_x conftest$ac_exeext
20910        }; then
20911   eval "$as_ac_var=yes"
20912 else
20913   $as_echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916         eval "$as_ac_var=no"
20917 fi
20918
20919 rm -rf conftest.dSYM
20920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20921       conftest$ac_exeext conftest.$ac_ext
20922 fi
20923 ac_res=`eval 'as_val=${'$as_ac_var'}
20924                  $as_echo "$as_val"'`
20925                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20926 $as_echo "$ac_res" >&6; }
20927 as_val=`eval 'as_val=${'$as_ac_var'}
20928                  $as_echo "$as_val"'`
20929    if test "x$as_val" = x""yes; then
20930   cat >>confdefs.h <<_ACEOF
20931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20932 _ACEOF
20933
20934 else
20935   case " $LIBOBJS " in
20936   *" $ac_func.$ac_objext "* ) ;;
20937   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20938  ;;
20939 esac
20940
20941 fi
20942 done
20943
20944
20945
20946 case $host_os in
20947
20948         # Windows uses a specialised env handler
20949         # and doesn't need a replacement getpeereid because it doesn't use
20950         # Unix sockets.
20951         mingw*)
20952
20953 cat >>confdefs.h <<\_ACEOF
20954 #define HAVE_UNSETENV 1
20955 _ACEOF
20956
20957
20958 cat >>confdefs.h <<\_ACEOF
20959 #define HAVE_GETPEEREID 1
20960 _ACEOF
20961
20962                 ac_cv_func_unsetenv=yes
20963                 ac_cv_func_getpeereid=yes;;
20964         *)
20965
20966
20967 for ac_func in unsetenv getpeereid
20968 do
20969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20970 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20971 $as_echo_n "checking for $ac_func... " >&6; }
20972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20973   $as_echo_n "(cached) " >&6
20974 else
20975   cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h.  */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h.  */
20981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20983 #define $ac_func innocuous_$ac_func
20984
20985 /* System header to define __stub macros and hopefully few prototypes,
20986     which can conflict with char $ac_func (); below.
20987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20988     <limits.h> exists even on freestanding compilers.  */
20989
20990 #ifdef __STDC__
20991 # include <limits.h>
20992 #else
20993 # include <assert.h>
20994 #endif
20995
20996 #undef $ac_func
20997
20998 /* Override any GCC internal prototype to avoid an error.
20999    Use char because int might match the return type of a GCC
21000    builtin and then its argument prototype would still apply.  */
21001 #ifdef __cplusplus
21002 extern "C"
21003 #endif
21004 char $ac_func ();
21005 /* The GNU C library defines this for functions which it implements
21006     to always fail with ENOSYS.  Some functions are actually named
21007     something starting with __ and the normal name is an alias.  */
21008 #if defined __stub_$ac_func || defined __stub___$ac_func
21009 choke me
21010 #endif
21011
21012 int
21013 main ()
21014 {
21015 return $ac_func ();
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext conftest$ac_exeext
21021 if { (ac_try="$ac_link"
21022 case "(($ac_try" in
21023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024   *) ac_try_echo=$ac_try;;
21025 esac
21026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21027 $as_echo "$ac_try_echo") >&5
21028   (eval "$ac_link") 2>conftest.er1
21029   ac_status=$?
21030   grep -v '^ *+' conftest.er1 >conftest.err
21031   rm -f conftest.er1
21032   cat conftest.err >&5
21033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); } && {
21035          test -z "$ac_c_werror_flag" ||
21036          test ! -s conftest.err
21037        } && test -s conftest$ac_exeext && {
21038          test "$cross_compiling" = yes ||
21039          $as_test_x conftest$ac_exeext
21040        }; then
21041   eval "$as_ac_var=yes"
21042 else
21043   $as_echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21045
21046         eval "$as_ac_var=no"
21047 fi
21048
21049 rm -rf conftest.dSYM
21050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21051       conftest$ac_exeext conftest.$ac_ext
21052 fi
21053 ac_res=`eval 'as_val=${'$as_ac_var'}
21054                  $as_echo "$as_val"'`
21055                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21056 $as_echo "$ac_res" >&6; }
21057 as_val=`eval 'as_val=${'$as_ac_var'}
21058                  $as_echo "$as_val"'`
21059    if test "x$as_val" = x""yes; then
21060   cat >>confdefs.h <<_ACEOF
21061 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21062 _ACEOF
21063
21064 else
21065   case " $LIBOBJS " in
21066   *" $ac_func.$ac_objext "* ) ;;
21067   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21068  ;;
21069 esac
21070
21071 fi
21072 done
21073
21074
21075                 ;;
21076 esac
21077
21078
21079 LIBS="$pgac_save_LIBS"
21080
21081 # System's version of getaddrinfo(), if any, may be used only if we found
21082 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21083 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21084 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
21085 # because we want to use our own getaddrinfo.c on Windows anyway.)
21086 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21087
21088 for ac_func in getaddrinfo
21089 do
21090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21091 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21092 $as_echo_n "checking for $ac_func... " >&6; }
21093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21094   $as_echo_n "(cached) " >&6
21095 else
21096   cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h.  */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h.  */
21102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21104 #define $ac_func innocuous_$ac_func
21105
21106 /* System header to define __stub macros and hopefully few prototypes,
21107     which can conflict with char $ac_func (); below.
21108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21109     <limits.h> exists even on freestanding compilers.  */
21110
21111 #ifdef __STDC__
21112 # include <limits.h>
21113 #else
21114 # include <assert.h>
21115 #endif
21116
21117 #undef $ac_func
21118
21119 /* Override any GCC internal prototype to avoid an error.
21120    Use char because int might match the return type of a GCC
21121    builtin and then its argument prototype would still apply.  */
21122 #ifdef __cplusplus
21123 extern "C"
21124 #endif
21125 char $ac_func ();
21126 /* The GNU C library defines this for functions which it implements
21127     to always fail with ENOSYS.  Some functions are actually named
21128     something starting with __ and the normal name is an alias.  */
21129 #if defined __stub_$ac_func || defined __stub___$ac_func
21130 choke me
21131 #endif
21132
21133 int
21134 main ()
21135 {
21136 return $ac_func ();
21137   ;
21138   return 0;
21139 }
21140 _ACEOF
21141 rm -f conftest.$ac_objext conftest$ac_exeext
21142 if { (ac_try="$ac_link"
21143 case "(($ac_try" in
21144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145   *) ac_try_echo=$ac_try;;
21146 esac
21147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21148 $as_echo "$ac_try_echo") >&5
21149   (eval "$ac_link") 2>conftest.er1
21150   ac_status=$?
21151   grep -v '^ *+' conftest.er1 >conftest.err
21152   rm -f conftest.er1
21153   cat conftest.err >&5
21154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); } && {
21156          test -z "$ac_c_werror_flag" ||
21157          test ! -s conftest.err
21158        } && test -s conftest$ac_exeext && {
21159          test "$cross_compiling" = yes ||
21160          $as_test_x conftest$ac_exeext
21161        }; then
21162   eval "$as_ac_var=yes"
21163 else
21164   $as_echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167         eval "$as_ac_var=no"
21168 fi
21169
21170 rm -rf conftest.dSYM
21171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21172       conftest$ac_exeext conftest.$ac_ext
21173 fi
21174 ac_res=`eval 'as_val=${'$as_ac_var'}
21175                  $as_echo "$as_val"'`
21176                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21177 $as_echo "$ac_res" >&6; }
21178 as_val=`eval 'as_val=${'$as_ac_var'}
21179                  $as_echo "$as_val"'`
21180    if test "x$as_val" = x""yes; then
21181   cat >>confdefs.h <<_ACEOF
21182 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21183 _ACEOF
21184
21185 else
21186   case " $LIBOBJS " in
21187   *" $ac_func.$ac_objext "* ) ;;
21188   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21189  ;;
21190 esac
21191
21192 fi
21193 done
21194
21195
21196 else
21197   case " $LIBOBJS " in
21198   *" getaddrinfo.$ac_objext "* ) ;;
21199   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21200  ;;
21201 esac
21202
21203 fi
21204
21205 # Similarly, use system's getopt_long() only if system provides struct option.
21206 if test x"$ac_cv_type_struct_option" = xyes ; then
21207
21208 for ac_func in getopt_long
21209 do
21210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21211 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21212 $as_echo_n "checking for $ac_func... " >&6; }
21213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21214   $as_echo_n "(cached) " >&6
21215 else
21216   cat >conftest.$ac_ext <<_ACEOF
21217 /* confdefs.h.  */
21218 _ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h.  */
21222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21224 #define $ac_func innocuous_$ac_func
21225
21226 /* System header to define __stub macros and hopefully few prototypes,
21227     which can conflict with char $ac_func (); below.
21228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21229     <limits.h> exists even on freestanding compilers.  */
21230
21231 #ifdef __STDC__
21232 # include <limits.h>
21233 #else
21234 # include <assert.h>
21235 #endif
21236
21237 #undef $ac_func
21238
21239 /* Override any GCC internal prototype to avoid an error.
21240    Use char because int might match the return type of a GCC
21241    builtin and then its argument prototype would still apply.  */
21242 #ifdef __cplusplus
21243 extern "C"
21244 #endif
21245 char $ac_func ();
21246 /* The GNU C library defines this for functions which it implements
21247     to always fail with ENOSYS.  Some functions are actually named
21248     something starting with __ and the normal name is an alias.  */
21249 #if defined __stub_$ac_func || defined __stub___$ac_func
21250 choke me
21251 #endif
21252
21253 int
21254 main ()
21255 {
21256 return $ac_func ();
21257   ;
21258   return 0;
21259 }
21260 _ACEOF
21261 rm -f conftest.$ac_objext conftest$ac_exeext
21262 if { (ac_try="$ac_link"
21263 case "(($ac_try" in
21264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265   *) ac_try_echo=$ac_try;;
21266 esac
21267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21268 $as_echo "$ac_try_echo") >&5
21269   (eval "$ac_link") 2>conftest.er1
21270   ac_status=$?
21271   grep -v '^ *+' conftest.er1 >conftest.err
21272   rm -f conftest.er1
21273   cat conftest.err >&5
21274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } && {
21276          test -z "$ac_c_werror_flag" ||
21277          test ! -s conftest.err
21278        } && test -s conftest$ac_exeext && {
21279          test "$cross_compiling" = yes ||
21280          $as_test_x conftest$ac_exeext
21281        }; then
21282   eval "$as_ac_var=yes"
21283 else
21284   $as_echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21286
21287         eval "$as_ac_var=no"
21288 fi
21289
21290 rm -rf conftest.dSYM
21291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21292       conftest$ac_exeext conftest.$ac_ext
21293 fi
21294 ac_res=`eval 'as_val=${'$as_ac_var'}
21295                  $as_echo "$as_val"'`
21296                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21297 $as_echo "$ac_res" >&6; }
21298 as_val=`eval 'as_val=${'$as_ac_var'}
21299                  $as_echo "$as_val"'`
21300    if test "x$as_val" = x""yes; then
21301   cat >>confdefs.h <<_ACEOF
21302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21303 _ACEOF
21304
21305 else
21306   case " $LIBOBJS " in
21307   *" $ac_func.$ac_objext "* ) ;;
21308   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21309  ;;
21310 esac
21311
21312 fi
21313 done
21314
21315
21316 else
21317   case " $LIBOBJS " in
21318   *" getopt_long.$ac_objext "* ) ;;
21319   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21320  ;;
21321 esac
21322
21323 fi
21324
21325 # Solaris' getopt() doesn't do what we want for long options, so always use
21326 # our version on that platform.
21327 if test "$PORTNAME" = "solaris"; then
21328   case " $LIBOBJS " in
21329   *" getopt.$ac_objext "* ) ;;
21330   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21331  ;;
21332 esac
21333
21334 fi
21335
21336 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21337 # so always use our version on Windows.
21338 if test "$PORTNAME" = "win32"; then
21339   case " $LIBOBJS " in
21340   *" getopt.$ac_objext "* ) ;;
21341   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21342  ;;
21343 esac
21344
21345   case " $LIBOBJS " in
21346   *" getopt_long.$ac_objext "* ) ;;
21347   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21348  ;;
21349 esac
21350
21351 fi
21352
21353 # Win32 support
21354 if test "$PORTNAME" = "win32"; then
21355
21356 for ac_func in gettimeofday
21357 do
21358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21359 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21360 $as_echo_n "checking for $ac_func... " >&6; }
21361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21362   $as_echo_n "(cached) " >&6
21363 else
21364   cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h.  */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h.  */
21370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21372 #define $ac_func innocuous_$ac_func
21373
21374 /* System header to define __stub macros and hopefully few prototypes,
21375     which can conflict with char $ac_func (); below.
21376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21377     <limits.h> exists even on freestanding compilers.  */
21378
21379 #ifdef __STDC__
21380 # include <limits.h>
21381 #else
21382 # include <assert.h>
21383 #endif
21384
21385 #undef $ac_func
21386
21387 /* Override any GCC internal prototype to avoid an error.
21388    Use char because int might match the return type of a GCC
21389    builtin and then its argument prototype would still apply.  */
21390 #ifdef __cplusplus
21391 extern "C"
21392 #endif
21393 char $ac_func ();
21394 /* The GNU C library defines this for functions which it implements
21395     to always fail with ENOSYS.  Some functions are actually named
21396     something starting with __ and the normal name is an alias.  */
21397 #if defined __stub_$ac_func || defined __stub___$ac_func
21398 choke me
21399 #endif
21400
21401 int
21402 main ()
21403 {
21404 return $ac_func ();
21405   ;
21406   return 0;
21407 }
21408 _ACEOF
21409 rm -f conftest.$ac_objext conftest$ac_exeext
21410 if { (ac_try="$ac_link"
21411 case "(($ac_try" in
21412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413   *) ac_try_echo=$ac_try;;
21414 esac
21415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21416 $as_echo "$ac_try_echo") >&5
21417   (eval "$ac_link") 2>conftest.er1
21418   ac_status=$?
21419   grep -v '^ *+' conftest.er1 >conftest.err
21420   rm -f conftest.er1
21421   cat conftest.err >&5
21422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423   (exit $ac_status); } && {
21424          test -z "$ac_c_werror_flag" ||
21425          test ! -s conftest.err
21426        } && test -s conftest$ac_exeext && {
21427          test "$cross_compiling" = yes ||
21428          $as_test_x conftest$ac_exeext
21429        }; then
21430   eval "$as_ac_var=yes"
21431 else
21432   $as_echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21434
21435         eval "$as_ac_var=no"
21436 fi
21437
21438 rm -rf conftest.dSYM
21439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21440       conftest$ac_exeext conftest.$ac_ext
21441 fi
21442 ac_res=`eval 'as_val=${'$as_ac_var'}
21443                  $as_echo "$as_val"'`
21444                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21445 $as_echo "$ac_res" >&6; }
21446 as_val=`eval 'as_val=${'$as_ac_var'}
21447                  $as_echo "$as_val"'`
21448    if test "x$as_val" = x""yes; then
21449   cat >>confdefs.h <<_ACEOF
21450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21451 _ACEOF
21452
21453 else
21454   case " $LIBOBJS " in
21455   *" $ac_func.$ac_objext "* ) ;;
21456   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21457  ;;
21458 esac
21459
21460 fi
21461 done
21462
21463
21464   case " $LIBOBJS " in
21465   *" kill.$ac_objext "* ) ;;
21466   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21467  ;;
21468 esac
21469
21470   case " $LIBOBJS " in
21471   *" open.$ac_objext "* ) ;;
21472   *) LIBOBJS="$LIBOBJS open.$ac_objext"
21473  ;;
21474 esac
21475
21476   case " $LIBOBJS " in
21477   *" win32env.$ac_objext "* ) ;;
21478   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21479  ;;
21480 esac
21481
21482   case " $LIBOBJS " in
21483   *" win32error.$ac_objext "* ) ;;
21484   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21485  ;;
21486 esac
21487
21488   case " $LIBOBJS " in
21489   *" win32setlocale.$ac_objext "* ) ;;
21490   *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21491  ;;
21492 esac
21493
21494
21495 cat >>confdefs.h <<\_ACEOF
21496 #define HAVE_SYMLINK 1
21497 _ACEOF
21498
21499   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21500 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21501 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21502   $as_echo_n "(cached) " >&6
21503 else
21504   ac_cv_type_MINIDUMP_TYPE=no
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511
21512 #define WIN32_LEAN_AND_MEAN
21513 #include <windows.h>
21514 #include <string.h>
21515 #include <dbghelp.h>
21516
21517 int
21518 main ()
21519 {
21520 if (sizeof (MINIDUMP_TYPE))
21521        return 0;
21522   ;
21523   return 0;
21524 }
21525 _ACEOF
21526 rm -f conftest.$ac_objext
21527 if { (ac_try="$ac_compile"
21528 case "(($ac_try" in
21529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530   *) ac_try_echo=$ac_try;;
21531 esac
21532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21533 $as_echo "$ac_try_echo") >&5
21534   (eval "$ac_compile") 2>conftest.er1
21535   ac_status=$?
21536   grep -v '^ *+' conftest.er1 >conftest.err
21537   rm -f conftest.er1
21538   cat conftest.err >&5
21539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); } && {
21541          test -z "$ac_c_werror_flag" ||
21542          test ! -s conftest.err
21543        } && test -s conftest.$ac_objext; then
21544   cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h.  */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h.  */
21550
21551 #define WIN32_LEAN_AND_MEAN
21552 #include <windows.h>
21553 #include <string.h>
21554 #include <dbghelp.h>
21555
21556 int
21557 main ()
21558 {
21559 if (sizeof ((MINIDUMP_TYPE)))
21560           return 0;
21561   ;
21562   return 0;
21563 }
21564 _ACEOF
21565 rm -f conftest.$ac_objext
21566 if { (ac_try="$ac_compile"
21567 case "(($ac_try" in
21568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569   *) ac_try_echo=$ac_try;;
21570 esac
21571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21572 $as_echo "$ac_try_echo") >&5
21573   (eval "$ac_compile") 2>conftest.er1
21574   ac_status=$?
21575   grep -v '^ *+' conftest.er1 >conftest.err
21576   rm -f conftest.er1
21577   cat conftest.err >&5
21578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); } && {
21580          test -z "$ac_c_werror_flag" ||
21581          test ! -s conftest.err
21582        } && test -s conftest.$ac_objext; then
21583   :
21584 else
21585   $as_echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21587
21588         ac_cv_type_MINIDUMP_TYPE=yes
21589 fi
21590
21591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21592 else
21593   $as_echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21595
21596
21597 fi
21598
21599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 fi
21601 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21602 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21603 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21604
21605 cat >>confdefs.h <<_ACEOF
21606 #define HAVE_MINIDUMP_TYPE 1
21607 _ACEOF
21608
21609 pgac_minidump_type=yes
21610 else
21611   pgac_minidump_type=no
21612 fi
21613
21614 fi
21615 if test x"$pgac_minidump_type" = x"yes" ; then
21616   have_win32_dbghelp=yes
21617
21618 else
21619   have_win32_dbghelp=no
21620
21621 fi
21622
21623 if test "$with_readline" = yes; then
21624   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21625 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21626 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21627   $as_echo_n "(cached) " >&6
21628 else
21629   cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h.  */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h.  */
21635 #include <stdio.h>
21636 #ifdef HAVE_READLINE_READLINE_H
21637 # include <readline/readline.h>
21638 #elif defined(HAVE_READLINE_H)
21639 # include <readline.h>
21640 #endif
21641
21642 int
21643 main ()
21644 {
21645 rl_completion_append_character = 'x';
21646   ;
21647   return 0;
21648 }
21649 _ACEOF
21650 rm -f conftest.$ac_objext conftest$ac_exeext
21651 if { (ac_try="$ac_link"
21652 case "(($ac_try" in
21653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654   *) ac_try_echo=$ac_try;;
21655 esac
21656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21657 $as_echo "$ac_try_echo") >&5
21658   (eval "$ac_link") 2>conftest.er1
21659   ac_status=$?
21660   grep -v '^ *+' conftest.er1 >conftest.err
21661   rm -f conftest.er1
21662   cat conftest.err >&5
21663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664   (exit $ac_status); } && {
21665          test -z "$ac_c_werror_flag" ||
21666          test ! -s conftest.err
21667        } && test -s conftest$ac_exeext && {
21668          test "$cross_compiling" = yes ||
21669          $as_test_x conftest$ac_exeext
21670        }; then
21671   pgac_cv_var_rl_completion_append_character=yes
21672 else
21673   $as_echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21675
21676         pgac_cv_var_rl_completion_append_character=no
21677 fi
21678
21679 rm -rf conftest.dSYM
21680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21681       conftest$ac_exeext conftest.$ac_ext
21682 fi
21683 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21684 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21685 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21686
21687 cat >>confdefs.h <<\_ACEOF
21688 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21689 _ACEOF
21690
21691 fi
21692
21693
21694 for ac_func in rl_completion_matches rl_filename_completion_function
21695 do
21696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21697 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21698 $as_echo_n "checking for $ac_func... " >&6; }
21699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21700   $as_echo_n "(cached) " >&6
21701 else
21702   cat >conftest.$ac_ext <<_ACEOF
21703 /* confdefs.h.  */
21704 _ACEOF
21705 cat confdefs.h >>conftest.$ac_ext
21706 cat >>conftest.$ac_ext <<_ACEOF
21707 /* end confdefs.h.  */
21708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21710 #define $ac_func innocuous_$ac_func
21711
21712 /* System header to define __stub macros and hopefully few prototypes,
21713     which can conflict with char $ac_func (); below.
21714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21715     <limits.h> exists even on freestanding compilers.  */
21716
21717 #ifdef __STDC__
21718 # include <limits.h>
21719 #else
21720 # include <assert.h>
21721 #endif
21722
21723 #undef $ac_func
21724
21725 /* Override any GCC internal prototype to avoid an error.
21726    Use char because int might match the return type of a GCC
21727    builtin and then its argument prototype would still apply.  */
21728 #ifdef __cplusplus
21729 extern "C"
21730 #endif
21731 char $ac_func ();
21732 /* The GNU C library defines this for functions which it implements
21733     to always fail with ENOSYS.  Some functions are actually named
21734     something starting with __ and the normal name is an alias.  */
21735 #if defined __stub_$ac_func || defined __stub___$ac_func
21736 choke me
21737 #endif
21738
21739 int
21740 main ()
21741 {
21742 return $ac_func ();
21743   ;
21744   return 0;
21745 }
21746 _ACEOF
21747 rm -f conftest.$ac_objext conftest$ac_exeext
21748 if { (ac_try="$ac_link"
21749 case "(($ac_try" in
21750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751   *) ac_try_echo=$ac_try;;
21752 esac
21753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21754 $as_echo "$ac_try_echo") >&5
21755   (eval "$ac_link") 2>conftest.er1
21756   ac_status=$?
21757   grep -v '^ *+' conftest.er1 >conftest.err
21758   rm -f conftest.er1
21759   cat conftest.err >&5
21760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); } && {
21762          test -z "$ac_c_werror_flag" ||
21763          test ! -s conftest.err
21764        } && test -s conftest$ac_exeext && {
21765          test "$cross_compiling" = yes ||
21766          $as_test_x conftest$ac_exeext
21767        }; then
21768   eval "$as_ac_var=yes"
21769 else
21770   $as_echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21772
21773         eval "$as_ac_var=no"
21774 fi
21775
21776 rm -rf conftest.dSYM
21777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21778       conftest$ac_exeext conftest.$ac_ext
21779 fi
21780 ac_res=`eval 'as_val=${'$as_ac_var'}
21781                  $as_echo "$as_val"'`
21782                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21783 $as_echo "$ac_res" >&6; }
21784 as_val=`eval 'as_val=${'$as_ac_var'}
21785                  $as_echo "$as_val"'`
21786    if test "x$as_val" = x""yes; then
21787   cat >>confdefs.h <<_ACEOF
21788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21789 _ACEOF
21790
21791 fi
21792 done
21793
21794
21795
21796 for ac_func in append_history history_truncate_file
21797 do
21798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21799 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21800 $as_echo_n "checking for $ac_func... " >&6; }
21801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21802   $as_echo_n "(cached) " >&6
21803 else
21804   cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h.  */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h.  */
21810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21812 #define $ac_func innocuous_$ac_func
21813
21814 /* System header to define __stub macros and hopefully few prototypes,
21815     which can conflict with char $ac_func (); below.
21816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21817     <limits.h> exists even on freestanding compilers.  */
21818
21819 #ifdef __STDC__
21820 # include <limits.h>
21821 #else
21822 # include <assert.h>
21823 #endif
21824
21825 #undef $ac_func
21826
21827 /* Override any GCC internal prototype to avoid an error.
21828    Use char because int might match the return type of a GCC
21829    builtin and then its argument prototype would still apply.  */
21830 #ifdef __cplusplus
21831 extern "C"
21832 #endif
21833 char $ac_func ();
21834 /* The GNU C library defines this for functions which it implements
21835     to always fail with ENOSYS.  Some functions are actually named
21836     something starting with __ and the normal name is an alias.  */
21837 #if defined __stub_$ac_func || defined __stub___$ac_func
21838 choke me
21839 #endif
21840
21841 int
21842 main ()
21843 {
21844 return $ac_func ();
21845   ;
21846   return 0;
21847 }
21848 _ACEOF
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (ac_try="$ac_link"
21851 case "(($ac_try" in
21852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21853   *) ac_try_echo=$ac_try;;
21854 esac
21855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21856 $as_echo "$ac_try_echo") >&5
21857   (eval "$ac_link") 2>conftest.er1
21858   ac_status=$?
21859   grep -v '^ *+' conftest.er1 >conftest.err
21860   rm -f conftest.er1
21861   cat conftest.err >&5
21862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863   (exit $ac_status); } && {
21864          test -z "$ac_c_werror_flag" ||
21865          test ! -s conftest.err
21866        } && test -s conftest$ac_exeext && {
21867          test "$cross_compiling" = yes ||
21868          $as_test_x conftest$ac_exeext
21869        }; then
21870   eval "$as_ac_var=yes"
21871 else
21872   $as_echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21874
21875         eval "$as_ac_var=no"
21876 fi
21877
21878 rm -rf conftest.dSYM
21879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21880       conftest$ac_exeext conftest.$ac_ext
21881 fi
21882 ac_res=`eval 'as_val=${'$as_ac_var'}
21883                  $as_echo "$as_val"'`
21884                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21885 $as_echo "$ac_res" >&6; }
21886 as_val=`eval 'as_val=${'$as_ac_var'}
21887                  $as_echo "$as_val"'`
21888    if test "x$as_val" = x""yes; then
21889   cat >>confdefs.h <<_ACEOF
21890 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21891 _ACEOF
21892
21893 fi
21894 done
21895
21896 fi
21897
21898
21899 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21900 $as_echo_n "checking for sigsetjmp... " >&6; }
21901 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21902   $as_echo_n "(cached) " >&6
21903 else
21904   cat >conftest.$ac_ext <<_ACEOF
21905 /* confdefs.h.  */
21906 _ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h.  */
21910 #include <setjmp.h>
21911 int
21912 main ()
21913 {
21914 sigjmp_buf x; sigsetjmp(x, 1);
21915   ;
21916   return 0;
21917 }
21918 _ACEOF
21919 rm -f conftest.$ac_objext conftest$ac_exeext
21920 if { (ac_try="$ac_link"
21921 case "(($ac_try" in
21922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923   *) ac_try_echo=$ac_try;;
21924 esac
21925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21926 $as_echo "$ac_try_echo") >&5
21927   (eval "$ac_link") 2>conftest.er1
21928   ac_status=$?
21929   grep -v '^ *+' conftest.er1 >conftest.err
21930   rm -f conftest.er1
21931   cat conftest.err >&5
21932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); } && {
21934          test -z "$ac_c_werror_flag" ||
21935          test ! -s conftest.err
21936        } && test -s conftest$ac_exeext && {
21937          test "$cross_compiling" = yes ||
21938          $as_test_x conftest$ac_exeext
21939        }; then
21940   pgac_cv_func_sigsetjmp=yes
21941 else
21942   $as_echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21944
21945         pgac_cv_func_sigsetjmp=no
21946 fi
21947
21948 rm -rf conftest.dSYM
21949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21950       conftest$ac_exeext conftest.$ac_ext
21951 fi
21952 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21953 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21954 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21955
21956 cat >>confdefs.h <<\_ACEOF
21957 #define HAVE_SIGSETJMP 1
21958 _ACEOF
21959
21960 fi
21961
21962 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21963 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21964 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21965   $as_echo_n "(cached) " >&6
21966 else
21967   cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973 #include <signal.h>
21974 /* NetBSD declares sys_siglist in unistd.h.  */
21975 #ifdef HAVE_UNISTD_H
21976 # include <unistd.h>
21977 #endif
21978
21979
21980 int
21981 main ()
21982 {
21983 #ifndef sys_siglist
21984   (void) sys_siglist;
21985 #endif
21986
21987   ;
21988   return 0;
21989 }
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (ac_try="$ac_compile"
21993 case "(($ac_try" in
21994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995   *) ac_try_echo=$ac_try;;
21996 esac
21997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21998 $as_echo "$ac_try_echo") >&5
21999   (eval "$ac_compile") 2>conftest.er1
22000   ac_status=$?
22001   grep -v '^ *+' conftest.er1 >conftest.err
22002   rm -f conftest.er1
22003   cat conftest.err >&5
22004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); } && {
22006          test -z "$ac_c_werror_flag" ||
22007          test ! -s conftest.err
22008        } && test -s conftest.$ac_objext; then
22009   ac_cv_have_decl_sys_siglist=yes
22010 else
22011   $as_echo "$as_me: failed program was:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22013
22014         ac_cv_have_decl_sys_siglist=no
22015 fi
22016
22017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22018 fi
22019 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22020 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22021 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22022
22023 cat >>confdefs.h <<_ACEOF
22024 #define HAVE_DECL_SYS_SIGLIST 1
22025 _ACEOF
22026
22027
22028 else
22029   cat >>confdefs.h <<_ACEOF
22030 #define HAVE_DECL_SYS_SIGLIST 0
22031 _ACEOF
22032
22033
22034 fi
22035
22036
22037
22038
22039 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22040 $as_echo_n "checking for syslog... " >&6; }
22041 if test "${ac_cv_func_syslog+set}" = set; then
22042   $as_echo_n "(cached) " >&6
22043 else
22044   cat >conftest.$ac_ext <<_ACEOF
22045 /* confdefs.h.  */
22046 _ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h.  */
22050 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22052 #define syslog innocuous_syslog
22053
22054 /* System header to define __stub macros and hopefully few prototypes,
22055     which can conflict with char syslog (); below.
22056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22057     <limits.h> exists even on freestanding compilers.  */
22058
22059 #ifdef __STDC__
22060 # include <limits.h>
22061 #else
22062 # include <assert.h>
22063 #endif
22064
22065 #undef syslog
22066
22067 /* Override any GCC internal prototype to avoid an error.
22068    Use char because int might match the return type of a GCC
22069    builtin and then its argument prototype would still apply.  */
22070 #ifdef __cplusplus
22071 extern "C"
22072 #endif
22073 char syslog ();
22074 /* The GNU C library defines this for functions which it implements
22075     to always fail with ENOSYS.  Some functions are actually named
22076     something starting with __ and the normal name is an alias.  */
22077 #if defined __stub_syslog || defined __stub___syslog
22078 choke me
22079 #endif
22080
22081 int
22082 main ()
22083 {
22084 return syslog ();
22085   ;
22086   return 0;
22087 }
22088 _ACEOF
22089 rm -f conftest.$ac_objext conftest$ac_exeext
22090 if { (ac_try="$ac_link"
22091 case "(($ac_try" in
22092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093   *) ac_try_echo=$ac_try;;
22094 esac
22095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22096 $as_echo "$ac_try_echo") >&5
22097   (eval "$ac_link") 2>conftest.er1
22098   ac_status=$?
22099   grep -v '^ *+' conftest.er1 >conftest.err
22100   rm -f conftest.er1
22101   cat conftest.err >&5
22102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103   (exit $ac_status); } && {
22104          test -z "$ac_c_werror_flag" ||
22105          test ! -s conftest.err
22106        } && test -s conftest$ac_exeext && {
22107          test "$cross_compiling" = yes ||
22108          $as_test_x conftest$ac_exeext
22109        }; then
22110   ac_cv_func_syslog=yes
22111 else
22112   $as_echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22114
22115         ac_cv_func_syslog=no
22116 fi
22117
22118 rm -rf conftest.dSYM
22119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22120       conftest$ac_exeext conftest.$ac_ext
22121 fi
22122 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22123 $as_echo "$ac_cv_func_syslog" >&6; }
22124 if test "x$ac_cv_func_syslog" = x""yes; then
22125   if test "${ac_cv_header_syslog_h+set}" = set; then
22126   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22127 $as_echo_n "checking for syslog.h... " >&6; }
22128 if test "${ac_cv_header_syslog_h+set}" = set; then
22129   $as_echo_n "(cached) " >&6
22130 fi
22131 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22132 $as_echo "$ac_cv_header_syslog_h" >&6; }
22133 else
22134   # Is the header compilable?
22135 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22136 $as_echo_n "checking syslog.h usability... " >&6; }
22137 cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h.  */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h.  */
22143 $ac_includes_default
22144 #include <syslog.h>
22145 _ACEOF
22146 rm -f conftest.$ac_objext
22147 if { (ac_try="$ac_compile"
22148 case "(($ac_try" in
22149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22150   *) ac_try_echo=$ac_try;;
22151 esac
22152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22153 $as_echo "$ac_try_echo") >&5
22154   (eval "$ac_compile") 2>conftest.er1
22155   ac_status=$?
22156   grep -v '^ *+' conftest.er1 >conftest.err
22157   rm -f conftest.er1
22158   cat conftest.err >&5
22159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); } && {
22161          test -z "$ac_c_werror_flag" ||
22162          test ! -s conftest.err
22163        } && test -s conftest.$ac_objext; then
22164   ac_header_compiler=yes
22165 else
22166   $as_echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22168
22169         ac_header_compiler=no
22170 fi
22171
22172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22174 $as_echo "$ac_header_compiler" >&6; }
22175
22176 # Is the header present?
22177 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22178 $as_echo_n "checking syslog.h presence... " >&6; }
22179 cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h.  */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h.  */
22185 #include <syslog.h>
22186 _ACEOF
22187 if { (ac_try="$ac_cpp conftest.$ac_ext"
22188 case "(($ac_try" in
22189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190   *) ac_try_echo=$ac_try;;
22191 esac
22192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22193 $as_echo "$ac_try_echo") >&5
22194   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22195   ac_status=$?
22196   grep -v '^ *+' conftest.er1 >conftest.err
22197   rm -f conftest.er1
22198   cat conftest.err >&5
22199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); } >/dev/null && {
22201          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22202          test ! -s conftest.err
22203        }; then
22204   ac_header_preproc=yes
22205 else
22206   $as_echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22208
22209   ac_header_preproc=no
22210 fi
22211
22212 rm -f conftest.err conftest.$ac_ext
22213 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22214 $as_echo "$ac_header_preproc" >&6; }
22215
22216 # So?  What about this header?
22217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22218   yes:no: )
22219     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22220 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22221     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22222 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22223     ac_header_preproc=yes
22224     ;;
22225   no:yes:* )
22226     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22227 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22228     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
22229 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
22230     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22231 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22232     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
22233 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22234     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22235 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22236     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22237 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22238     ( cat <<\_ASBOX
22239 ## ---------------------------------------- ##
22240 ## Report this to pgsql-bugs@postgresql.org ##
22241 ## ---------------------------------------- ##
22242 _ASBOX
22243      ) | sed "s/^/$as_me: WARNING:     /" >&2
22244     ;;
22245 esac
22246 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22247 $as_echo_n "checking for syslog.h... " >&6; }
22248 if test "${ac_cv_header_syslog_h+set}" = set; then
22249   $as_echo_n "(cached) " >&6
22250 else
22251   ac_cv_header_syslog_h=$ac_header_preproc
22252 fi
22253 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22254 $as_echo "$ac_cv_header_syslog_h" >&6; }
22255
22256 fi
22257 if test "x$ac_cv_header_syslog_h" = x""yes; then
22258
22259 cat >>confdefs.h <<\_ACEOF
22260 #define HAVE_SYSLOG 1
22261 _ACEOF
22262
22263 fi
22264
22265
22266 fi
22267
22268
22269 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22270 $as_echo_n "checking for opterr... " >&6; }
22271 if test "${pgac_cv_var_int_opterr+set}" = set; then
22272   $as_echo_n "(cached) " >&6
22273 else
22274   cat >conftest.$ac_ext <<_ACEOF
22275 /* confdefs.h.  */
22276 _ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h.  */
22280 #include <unistd.h>
22281 int
22282 main ()
22283 {
22284 extern int opterr; opterr = 1;
22285   ;
22286   return 0;
22287 }
22288 _ACEOF
22289 rm -f conftest.$ac_objext conftest$ac_exeext
22290 if { (ac_try="$ac_link"
22291 case "(($ac_try" in
22292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293   *) ac_try_echo=$ac_try;;
22294 esac
22295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22296 $as_echo "$ac_try_echo") >&5
22297   (eval "$ac_link") 2>conftest.er1
22298   ac_status=$?
22299   grep -v '^ *+' conftest.er1 >conftest.err
22300   rm -f conftest.er1
22301   cat conftest.err >&5
22302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); } && {
22304          test -z "$ac_c_werror_flag" ||
22305          test ! -s conftest.err
22306        } && test -s conftest$ac_exeext && {
22307          test "$cross_compiling" = yes ||
22308          $as_test_x conftest$ac_exeext
22309        }; then
22310   pgac_cv_var_int_opterr=yes
22311 else
22312   $as_echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22314
22315         pgac_cv_var_int_opterr=no
22316 fi
22317
22318 rm -rf conftest.dSYM
22319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22320       conftest$ac_exeext conftest.$ac_ext
22321 fi
22322 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22323 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22324 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22325
22326 cat >>confdefs.h <<\_ACEOF
22327 #define HAVE_INT_OPTERR 1
22328 _ACEOF
22329
22330 fi
22331
22332 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22333 $as_echo_n "checking for optreset... " >&6; }
22334 if test "${pgac_cv_var_int_optreset+set}" = set; then
22335   $as_echo_n "(cached) " >&6
22336 else
22337   cat >conftest.$ac_ext <<_ACEOF
22338 /* confdefs.h.  */
22339 _ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h.  */
22343 #include <unistd.h>
22344 int
22345 main ()
22346 {
22347 extern int optreset; optreset = 1;
22348   ;
22349   return 0;
22350 }
22351 _ACEOF
22352 rm -f conftest.$ac_objext conftest$ac_exeext
22353 if { (ac_try="$ac_link"
22354 case "(($ac_try" in
22355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356   *) ac_try_echo=$ac_try;;
22357 esac
22358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22359 $as_echo "$ac_try_echo") >&5
22360   (eval "$ac_link") 2>conftest.er1
22361   ac_status=$?
22362   grep -v '^ *+' conftest.er1 >conftest.err
22363   rm -f conftest.er1
22364   cat conftest.err >&5
22365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366   (exit $ac_status); } && {
22367          test -z "$ac_c_werror_flag" ||
22368          test ! -s conftest.err
22369        } && test -s conftest$ac_exeext && {
22370          test "$cross_compiling" = yes ||
22371          $as_test_x conftest$ac_exeext
22372        }; then
22373   pgac_cv_var_int_optreset=yes
22374 else
22375   $as_echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22377
22378         pgac_cv_var_int_optreset=no
22379 fi
22380
22381 rm -rf conftest.dSYM
22382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22383       conftest$ac_exeext conftest.$ac_ext
22384 fi
22385 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22386 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22387 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22388
22389 cat >>confdefs.h <<\_ACEOF
22390 #define HAVE_INT_OPTRESET 1
22391 _ACEOF
22392
22393 fi
22394
22395
22396
22397 for ac_func in strtoll strtoq
22398 do
22399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22400 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22401 $as_echo_n "checking for $ac_func... " >&6; }
22402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22403   $as_echo_n "(cached) " >&6
22404 else
22405   cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h.  */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h.  */
22411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22413 #define $ac_func innocuous_$ac_func
22414
22415 /* System header to define __stub macros and hopefully few prototypes,
22416     which can conflict with char $ac_func (); below.
22417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22418     <limits.h> exists even on freestanding compilers.  */
22419
22420 #ifdef __STDC__
22421 # include <limits.h>
22422 #else
22423 # include <assert.h>
22424 #endif
22425
22426 #undef $ac_func
22427
22428 /* Override any GCC internal prototype to avoid an error.
22429    Use char because int might match the return type of a GCC
22430    builtin and then its argument prototype would still apply.  */
22431 #ifdef __cplusplus
22432 extern "C"
22433 #endif
22434 char $ac_func ();
22435 /* The GNU C library defines this for functions which it implements
22436     to always fail with ENOSYS.  Some functions are actually named
22437     something starting with __ and the normal name is an alias.  */
22438 #if defined __stub_$ac_func || defined __stub___$ac_func
22439 choke me
22440 #endif
22441
22442 int
22443 main ()
22444 {
22445 return $ac_func ();
22446   ;
22447   return 0;
22448 }
22449 _ACEOF
22450 rm -f conftest.$ac_objext conftest$ac_exeext
22451 if { (ac_try="$ac_link"
22452 case "(($ac_try" in
22453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454   *) ac_try_echo=$ac_try;;
22455 esac
22456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22457 $as_echo "$ac_try_echo") >&5
22458   (eval "$ac_link") 2>conftest.er1
22459   ac_status=$?
22460   grep -v '^ *+' conftest.er1 >conftest.err
22461   rm -f conftest.er1
22462   cat conftest.err >&5
22463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464   (exit $ac_status); } && {
22465          test -z "$ac_c_werror_flag" ||
22466          test ! -s conftest.err
22467        } && test -s conftest$ac_exeext && {
22468          test "$cross_compiling" = yes ||
22469          $as_test_x conftest$ac_exeext
22470        }; then
22471   eval "$as_ac_var=yes"
22472 else
22473   $as_echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22475
22476         eval "$as_ac_var=no"
22477 fi
22478
22479 rm -rf conftest.dSYM
22480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22481       conftest$ac_exeext conftest.$ac_ext
22482 fi
22483 ac_res=`eval 'as_val=${'$as_ac_var'}
22484                  $as_echo "$as_val"'`
22485                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22486 $as_echo "$ac_res" >&6; }
22487 as_val=`eval 'as_val=${'$as_ac_var'}
22488                  $as_echo "$as_val"'`
22489    if test "x$as_val" = x""yes; then
22490   cat >>confdefs.h <<_ACEOF
22491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22492 _ACEOF
22493  break
22494 fi
22495 done
22496
22497
22498
22499 for ac_func in strtoull strtouq
22500 do
22501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22502 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22503 $as_echo_n "checking for $ac_func... " >&6; }
22504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22505   $as_echo_n "(cached) " >&6
22506 else
22507   cat >conftest.$ac_ext <<_ACEOF
22508 /* confdefs.h.  */
22509 _ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h.  */
22513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22515 #define $ac_func innocuous_$ac_func
22516
22517 /* System header to define __stub macros and hopefully few prototypes,
22518     which can conflict with char $ac_func (); below.
22519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22520     <limits.h> exists even on freestanding compilers.  */
22521
22522 #ifdef __STDC__
22523 # include <limits.h>
22524 #else
22525 # include <assert.h>
22526 #endif
22527
22528 #undef $ac_func
22529
22530 /* Override any GCC internal prototype to avoid an error.
22531    Use char because int might match the return type of a GCC
22532    builtin and then its argument prototype would still apply.  */
22533 #ifdef __cplusplus
22534 extern "C"
22535 #endif
22536 char $ac_func ();
22537 /* The GNU C library defines this for functions which it implements
22538     to always fail with ENOSYS.  Some functions are actually named
22539     something starting with __ and the normal name is an alias.  */
22540 #if defined __stub_$ac_func || defined __stub___$ac_func
22541 choke me
22542 #endif
22543
22544 int
22545 main ()
22546 {
22547 return $ac_func ();
22548   ;
22549   return 0;
22550 }
22551 _ACEOF
22552 rm -f conftest.$ac_objext conftest$ac_exeext
22553 if { (ac_try="$ac_link"
22554 case "(($ac_try" in
22555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556   *) ac_try_echo=$ac_try;;
22557 esac
22558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22559 $as_echo "$ac_try_echo") >&5
22560   (eval "$ac_link") 2>conftest.er1
22561   ac_status=$?
22562   grep -v '^ *+' conftest.er1 >conftest.err
22563   rm -f conftest.er1
22564   cat conftest.err >&5
22565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566   (exit $ac_status); } && {
22567          test -z "$ac_c_werror_flag" ||
22568          test ! -s conftest.err
22569        } && test -s conftest$ac_exeext && {
22570          test "$cross_compiling" = yes ||
22571          $as_test_x conftest$ac_exeext
22572        }; then
22573   eval "$as_ac_var=yes"
22574 else
22575   $as_echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22577
22578         eval "$as_ac_var=no"
22579 fi
22580
22581 rm -rf conftest.dSYM
22582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22583       conftest$ac_exeext conftest.$ac_ext
22584 fi
22585 ac_res=`eval 'as_val=${'$as_ac_var'}
22586                  $as_echo "$as_val"'`
22587                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22588 $as_echo "$ac_res" >&6; }
22589 as_val=`eval 'as_val=${'$as_ac_var'}
22590                  $as_echo "$as_val"'`
22591    if test "x$as_val" = x""yes; then
22592   cat >>confdefs.h <<_ACEOF
22593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22594 _ACEOF
22595  break
22596 fi
22597 done
22598
22599
22600 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22601 $as_echo_n "checking for builtin locking functions... " >&6; }
22602 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22603   $as_echo_n "(cached) " >&6
22604 else
22605   cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h.  */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h.  */
22611
22612 int
22613 main ()
22614 {
22615 int lock = 0;
22616    __sync_lock_test_and_set(&lock, 1);
22617    __sync_lock_release(&lock);
22618   ;
22619   return 0;
22620 }
22621 _ACEOF
22622 rm -f conftest.$ac_objext conftest$ac_exeext
22623 if { (ac_try="$ac_link"
22624 case "(($ac_try" in
22625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22626   *) ac_try_echo=$ac_try;;
22627 esac
22628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22629 $as_echo "$ac_try_echo") >&5
22630   (eval "$ac_link") 2>conftest.er1
22631   ac_status=$?
22632   grep -v '^ *+' conftest.er1 >conftest.err
22633   rm -f conftest.er1
22634   cat conftest.err >&5
22635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636   (exit $ac_status); } && {
22637          test -z "$ac_c_werror_flag" ||
22638          test ! -s conftest.err
22639        } && test -s conftest$ac_exeext && {
22640          test "$cross_compiling" = yes ||
22641          $as_test_x conftest$ac_exeext
22642        }; then
22643   pgac_cv_gcc_int_atomics="yes"
22644 else
22645   $as_echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22647
22648         pgac_cv_gcc_int_atomics="no"
22649 fi
22650
22651 rm -rf conftest.dSYM
22652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22653       conftest$ac_exeext conftest.$ac_ext
22654 fi
22655 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22656 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22657 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22658
22659 cat >>confdefs.h <<\_ACEOF
22660 #define HAVE_GCC_INT_ATOMICS 1
22661 _ACEOF
22662
22663 fi
22664
22665
22666 #
22667 # Pthreads
22668 #
22669 # For each platform, we need to know about any special compile and link
22670 # libraries, and whether the normal C function names are thread-safe.
22671 # See the comment at the top of src/port/thread.c for more information.
22672 # WIN32 doesn't need the pthread tests;  it always uses threads
22673 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22674
22675
22676
22677 ac_ext=c
22678 ac_cpp='$CPP $CPPFLAGS'
22679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22682
22683 acx_pthread_ok=no
22684
22685 # We used to check for pthread.h first, but this fails if pthread.h
22686 # requires special compiler flags (e.g. on True64 or Sequent).
22687 # It gets checked for in the link test anyway.
22688
22689 # First of all, check if the user has set any of the PTHREAD_LIBS,
22690 # etcetera environment variables, and if threads linking works using
22691 # them:
22692 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22693         save_CFLAGS="$CFLAGS"
22694         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22695         save_LIBS="$LIBS"
22696         LIBS="$PTHREAD_LIBS $LIBS"
22697         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22698 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22699         cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h.  */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h.  */
22705
22706 /* Override any GCC internal prototype to avoid an error.
22707    Use char because int might match the return type of a GCC
22708    builtin and then its argument prototype would still apply.  */
22709 #ifdef __cplusplus
22710 extern "C"
22711 #endif
22712 char pthread_join ();
22713 int
22714 main ()
22715 {
22716 return pthread_join ();
22717   ;
22718   return 0;
22719 }
22720 _ACEOF
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (ac_try="$ac_link"
22723 case "(($ac_try" in
22724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725   *) ac_try_echo=$ac_try;;
22726 esac
22727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22728 $as_echo "$ac_try_echo") >&5
22729   (eval "$ac_link") 2>conftest.er1
22730   ac_status=$?
22731   grep -v '^ *+' conftest.er1 >conftest.err
22732   rm -f conftest.er1
22733   cat conftest.err >&5
22734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735   (exit $ac_status); } && {
22736          test -z "$ac_c_werror_flag" ||
22737          test ! -s conftest.err
22738        } && test -s conftest$ac_exeext && {
22739          test "$cross_compiling" = yes ||
22740          $as_test_x conftest$ac_exeext
22741        }; then
22742   acx_pthread_ok=yes
22743 else
22744   $as_echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22746
22747
22748 fi
22749
22750 rm -rf conftest.dSYM
22751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22752       conftest$ac_exeext conftest.$ac_ext
22753         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22754 $as_echo "$acx_pthread_ok" >&6; }
22755         if test x"$acx_pthread_ok" = xno; then
22756                 PTHREAD_LIBS=""
22757                 PTHREAD_CFLAGS=""
22758         fi
22759         LIBS="$save_LIBS"
22760         CFLAGS="$save_CFLAGS"
22761 fi
22762
22763 # We must check for the threads library under a number of different
22764 # names; the ordering is very important because some systems
22765 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22766 # libraries is broken (non-POSIX).
22767
22768 # Create a list of thread flags to try.  Items starting with a "-" are
22769 # C compiler flags, and other items are library names, except for "none"
22770 # which indicates that we try without any flags at all, and "pthread-config"
22771 # which is a program returning the flags for the Pth emulation library.
22772
22773 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22774
22775 # The ordering *is* (sometimes) important.  Some notes on the
22776 # individual items follow:
22777
22778 # pthreads: AIX (must check this before -lpthread)
22779 # none: in case threads are in libc; should be tried before -Kthread and
22780 #       other compiler flags to prevent continual compiler warnings
22781 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22782 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22783 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22784 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22785 # -pthreads: Solaris/gcc
22786 # -mthreads: Mingw32/gcc, Lynx/gcc
22787 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22788 #      doesn't hurt to check since this sometimes defines pthreads too;
22789 #      also defines -D_REENTRANT)
22790 # pthread: Linux, etcetera
22791 # --thread-safe: KAI C++
22792 # pthread-config: use pthread-config program (for GNU Pth library)
22793
22794 case "${host_cpu}-${host_os}" in
22795         *solaris*)
22796
22797         # On Solaris (at least, for some versions), libc contains stubbed
22798         # (non-functional) versions of the pthreads routines, so link-based
22799         # tests will erroneously succeed.  (We need to link with -pthread or
22800         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22801         # a function called by this macro, so we could check for that, but
22802         # who knows whether they'll stub that too in a future libc.)  So,
22803         # we'll just look for -pthreads and -lpthread first:
22804
22805         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22806         ;;
22807 esac
22808
22809 if test x"$acx_pthread_ok" = xno; then
22810 for flag in $acx_pthread_flags; do
22811
22812         tryPTHREAD_CFLAGS=""
22813         tryPTHREAD_LIBS=""
22814         case $flag in
22815                 none)
22816                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22817 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22818                 ;;
22819
22820                 -*)
22821                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22822 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22823                 tryPTHREAD_CFLAGS="$flag"
22824                 ;;
22825
22826                 pthread-config)
22827                 # skip this if we already have flags defined, for PostgreSQL
22828                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22829                 # Extract the first word of "pthread-config", so it can be a program name with args.
22830 set dummy pthread-config; ac_word=$2
22831 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22832 $as_echo_n "checking for $ac_word... " >&6; }
22833 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22834   $as_echo_n "(cached) " >&6
22835 else
22836   if test -n "$acx_pthread_config"; then
22837   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22838 else
22839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22840 for as_dir in $PATH
22841 do
22842   IFS=$as_save_IFS
22843   test -z "$as_dir" && as_dir=.
22844   for ac_exec_ext in '' $ac_executable_extensions; do
22845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22846     ac_cv_prog_acx_pthread_config="yes"
22847     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22848     break 2
22849   fi
22850 done
22851 done
22852 IFS=$as_save_IFS
22853
22854   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22855 fi
22856 fi
22857 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22858 if test -n "$acx_pthread_config"; then
22859   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22860 $as_echo "$acx_pthread_config" >&6; }
22861 else
22862   { $as_echo "$as_me:$LINENO: result: no" >&5
22863 $as_echo "no" >&6; }
22864 fi
22865
22866
22867                 if test x"$acx_pthread_config" = xno; then continue; fi
22868                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22869                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22870                 ;;
22871
22872                 *)
22873                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22874 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22875                 tryPTHREAD_LIBS="-l$flag"
22876                 ;;
22877         esac
22878
22879         save_LIBS="$LIBS"
22880         save_CFLAGS="$CFLAGS"
22881         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22882         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22883
22884         # Check for various functions.  We must include pthread.h,
22885         # since some functions may be macros.  (On the Sequent, we
22886         # need a special flag -Kthread to make this header compile.)
22887         # We check for pthread_join because it is in -lpthread on IRIX
22888         # while pthread_create is in libc.  We check for pthread_attr_init
22889         # due to DEC craziness with -lpthreads.  We check for
22890         # pthread_cleanup_push because it is one of the few pthread
22891         # functions on Solaris that doesn't have a non-functional libc stub.
22892         # We try pthread_create on general principles.
22893         cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h.  */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h.  */
22899 #include <pthread.h>
22900 int
22901 main ()
22902 {
22903 pthread_t th; pthread_join(th, 0);
22904                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22905                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22906   ;
22907   return 0;
22908 }
22909 _ACEOF
22910 rm -f conftest.$ac_objext conftest$ac_exeext
22911 if { (ac_try="$ac_link"
22912 case "(($ac_try" in
22913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914   *) ac_try_echo=$ac_try;;
22915 esac
22916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22917 $as_echo "$ac_try_echo") >&5
22918   (eval "$ac_link") 2>conftest.er1
22919   ac_status=$?
22920   grep -v '^ *+' conftest.er1 >conftest.err
22921   rm -f conftest.er1
22922   cat conftest.err >&5
22923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924   (exit $ac_status); } && {
22925          test -z "$ac_c_werror_flag" ||
22926          test ! -s conftest.err
22927        } && test -s conftest$ac_exeext && {
22928          test "$cross_compiling" = yes ||
22929          $as_test_x conftest$ac_exeext
22930        }; then
22931   acx_pthread_ok=yes
22932 else
22933   $as_echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22935
22936         acx_pthread_ok=no
22937 fi
22938
22939 rm -rf conftest.dSYM
22940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22941       conftest$ac_exeext conftest.$ac_ext
22942
22943         if test "x$acx_pthread_ok" = xyes; then
22944             # Don't use options that are ignored by the compiler.
22945             # We find them by checking stderror.
22946             cat >conftest.$ac_ext <<_ACEOF
22947 int
22948 main (int argc, char **argv)
22949 {
22950   (void) argc;
22951   (void) argv;
22952   return 0;
22953 }
22954 _ACEOF
22955             rm -f conftest.$ac_objext conftest$ac_exeext
22956             # Check both linking and compiling, because they might tolerate different options.
22957             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22958                 # we continue with more flags because Linux needs -lpthread
22959                 # for libpq builds on PostgreSQL.  The test above only
22960                 # tests for building binaries, not shared libraries.
22961                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22962                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22963             else   acx_pthread_ok=no
22964             fi
22965         fi
22966
22967         LIBS="$save_LIBS"
22968         CFLAGS="$save_CFLAGS"
22969
22970         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22971 $as_echo "$acx_pthread_ok" >&6; }
22972 done
22973 fi
22974
22975 # Various other checks:
22976 if test "x$acx_pthread_ok" = xyes; then
22977         save_LIBS="$LIBS"
22978         LIBS="$PTHREAD_LIBS $LIBS"
22979         save_CFLAGS="$CFLAGS"
22980         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22981
22982         # Detect AIX lossage: threads are created detached by default
22983         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22984         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22985 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22986         cat >conftest.$ac_ext <<_ACEOF
22987 /* confdefs.h.  */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h.  */
22992 #include <pthread.h>
22993 int
22994 main ()
22995 {
22996 int attr=PTHREAD_CREATE_JOINABLE;
22997   ;
22998   return 0;
22999 }
23000 _ACEOF
23001 rm -f conftest.$ac_objext conftest$ac_exeext
23002 if { (ac_try="$ac_link"
23003 case "(($ac_try" in
23004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005   *) ac_try_echo=$ac_try;;
23006 esac
23007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23008 $as_echo "$ac_try_echo") >&5
23009   (eval "$ac_link") 2>conftest.er1
23010   ac_status=$?
23011   grep -v '^ *+' conftest.er1 >conftest.err
23012   rm -f conftest.er1
23013   cat conftest.err >&5
23014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015   (exit $ac_status); } && {
23016          test -z "$ac_c_werror_flag" ||
23017          test ! -s conftest.err
23018        } && test -s conftest$ac_exeext && {
23019          test "$cross_compiling" = yes ||
23020          $as_test_x conftest$ac_exeext
23021        }; then
23022   ok=PTHREAD_CREATE_JOINABLE
23023 else
23024   $as_echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23026
23027         ok=unknown
23028 fi
23029
23030 rm -rf conftest.dSYM
23031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23032       conftest$ac_exeext conftest.$ac_ext
23033         if test x"$ok" = xunknown; then
23034                 cat >conftest.$ac_ext <<_ACEOF
23035 /* confdefs.h.  */
23036 _ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h.  */
23040 #include <pthread.h>
23041 int
23042 main ()
23043 {
23044 int attr=PTHREAD_CREATE_UNDETACHED;
23045   ;
23046   return 0;
23047 }
23048 _ACEOF
23049 rm -f conftest.$ac_objext conftest$ac_exeext
23050 if { (ac_try="$ac_link"
23051 case "(($ac_try" in
23052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053   *) ac_try_echo=$ac_try;;
23054 esac
23055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23056 $as_echo "$ac_try_echo") >&5
23057   (eval "$ac_link") 2>conftest.er1
23058   ac_status=$?
23059   grep -v '^ *+' conftest.er1 >conftest.err
23060   rm -f conftest.er1
23061   cat conftest.err >&5
23062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); } && {
23064          test -z "$ac_c_werror_flag" ||
23065          test ! -s conftest.err
23066        } && test -s conftest$ac_exeext && {
23067          test "$cross_compiling" = yes ||
23068          $as_test_x conftest$ac_exeext
23069        }; then
23070   ok=PTHREAD_CREATE_UNDETACHED
23071 else
23072   $as_echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23074
23075         ok=unknown
23076 fi
23077
23078 rm -rf conftest.dSYM
23079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23080       conftest$ac_exeext conftest.$ac_ext
23081         fi
23082         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23083
23084 cat >>confdefs.h <<\_ACEOF
23085 #define PTHREAD_CREATE_JOINABLE $ok
23086 _ACEOF
23087
23088         fi
23089         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23090 $as_echo "${ok}" >&6; }
23091         if test x"$ok" = xunknown; then
23092                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23093 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23094         fi
23095
23096         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23097 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23098         flag=no
23099 # We always add these in PostgreSQL
23100 #       case "${host_cpu}-${host_os}" in
23101 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23102 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23103 #       esac
23104         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23105 $as_echo "${flag}" >&6; }
23106         if test "x$flag" != xno; then
23107                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23108         fi
23109
23110         LIBS="$save_LIBS"
23111         CFLAGS="$save_CFLAGS"
23112
23113 # Supporting cc_r would require a special CC in all places that
23114 # use libpq, and that is ugly, so we don't do it.  Users can still
23115 # define their compiler as cc_r to do thread builds of everything.
23116         # More AIX lossage: must compile with cc_r
23117         # Extract the first word of "cc_r", so it can be a program name with args.
23118 set dummy cc_r; ac_word=$2
23119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23120 $as_echo_n "checking for $ac_word... " >&6; }
23121 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23122   $as_echo_n "(cached) " >&6
23123 else
23124   if test -n "$PTHREAD_CC"; then
23125   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23126 else
23127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23128 for as_dir in $PATH
23129 do
23130   IFS=$as_save_IFS
23131   test -z "$as_dir" && as_dir=.
23132   for ac_exec_ext in '' $ac_executable_extensions; do
23133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23134     ac_cv_prog_PTHREAD_CC="cc_r"
23135     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23136     break 2
23137   fi
23138 done
23139 done
23140 IFS=$as_save_IFS
23141
23142   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23143 fi
23144 fi
23145 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23146 if test -n "$PTHREAD_CC"; then
23147   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23148 $as_echo "$PTHREAD_CC" >&6; }
23149 else
23150   { $as_echo "$as_me:$LINENO: result: no" >&5
23151 $as_echo "no" >&6; }
23152 fi
23153
23154
23155 else
23156         PTHREAD_CC="$CC"
23157 fi
23158
23159
23160
23161
23162
23163 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23164 if test x"$acx_pthread_ok" = xyes; then
23165
23166 cat >>confdefs.h <<\_ACEOF
23167 #define HAVE_PTHREAD 1
23168 _ACEOF
23169
23170         :
23171 else
23172         acx_pthread_ok=no
23173
23174 fi
23175 ac_ext=c
23176 ac_cpp='$CPP $CPPFLAGS'
23177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23180
23181         # set thread flags
23182
23183 # Some platforms use these, so just define them.  They can't hurt if they
23184 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23185 # enables 5-arg getpwuid_r, among other things.
23186 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23187
23188
23189 # At this point, we don't want to muck with the compiler name for threading.
23190 # Let's see who fails, perhaps AIX.  2004-04-23
23191 if test "$PTHREAD_CC" != "$CC"; then
23192 { { $as_echo "$as_me:$LINENO: error:
23193 PostgreSQL does not support platforms that require a special compiler
23194 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23195 $as_echo "$as_me: error:
23196 PostgreSQL does not support platforms that require a special compiler
23197 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23198    { (exit 1); exit 1; }; }
23199 fi
23200
23201 # Check for *_r functions
23202 _CFLAGS="$CFLAGS"
23203 _LIBS="$LIBS"
23204 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23205 LIBS="$LIBS $PTHREAD_LIBS"
23206
23207 if test "$PORTNAME" != "win32"; then
23208 if test "${ac_cv_header_pthread_h+set}" = set; then
23209   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23210 $as_echo_n "checking for pthread.h... " >&6; }
23211 if test "${ac_cv_header_pthread_h+set}" = set; then
23212   $as_echo_n "(cached) " >&6
23213 fi
23214 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23215 $as_echo "$ac_cv_header_pthread_h" >&6; }
23216 else
23217   # Is the header compilable?
23218 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23219 $as_echo_n "checking pthread.h usability... " >&6; }
23220 cat >conftest.$ac_ext <<_ACEOF
23221 /* confdefs.h.  */
23222 _ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h.  */
23226 $ac_includes_default
23227 #include <pthread.h>
23228 _ACEOF
23229 rm -f conftest.$ac_objext
23230 if { (ac_try="$ac_compile"
23231 case "(($ac_try" in
23232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233   *) ac_try_echo=$ac_try;;
23234 esac
23235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23236 $as_echo "$ac_try_echo") >&5
23237   (eval "$ac_compile") 2>conftest.er1
23238   ac_status=$?
23239   grep -v '^ *+' conftest.er1 >conftest.err
23240   rm -f conftest.er1
23241   cat conftest.err >&5
23242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243   (exit $ac_status); } && {
23244          test -z "$ac_c_werror_flag" ||
23245          test ! -s conftest.err
23246        } && test -s conftest.$ac_objext; then
23247   ac_header_compiler=yes
23248 else
23249   $as_echo "$as_me: failed program was:" >&5
23250 sed 's/^/| /' conftest.$ac_ext >&5
23251
23252         ac_header_compiler=no
23253 fi
23254
23255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23256 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23257 $as_echo "$ac_header_compiler" >&6; }
23258
23259 # Is the header present?
23260 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23261 $as_echo_n "checking pthread.h presence... " >&6; }
23262 cat >conftest.$ac_ext <<_ACEOF
23263 /* confdefs.h.  */
23264 _ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h.  */
23268 #include <pthread.h>
23269 _ACEOF
23270 if { (ac_try="$ac_cpp conftest.$ac_ext"
23271 case "(($ac_try" in
23272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23273   *) ac_try_echo=$ac_try;;
23274 esac
23275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23276 $as_echo "$ac_try_echo") >&5
23277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23278   ac_status=$?
23279   grep -v '^ *+' conftest.er1 >conftest.err
23280   rm -f conftest.er1
23281   cat conftest.err >&5
23282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283   (exit $ac_status); } >/dev/null && {
23284          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23285          test ! -s conftest.err
23286        }; then
23287   ac_header_preproc=yes
23288 else
23289   $as_echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23291
23292   ac_header_preproc=no
23293 fi
23294
23295 rm -f conftest.err conftest.$ac_ext
23296 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23297 $as_echo "$ac_header_preproc" >&6; }
23298
23299 # So?  What about this header?
23300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23301   yes:no: )
23302     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23303 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23304     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23305 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23306     ac_header_preproc=yes
23307     ;;
23308   no:yes:* )
23309     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23310 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23311     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23312 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23313     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23314 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23315     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23316 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23317     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23318 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23319     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23320 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23321     ( cat <<\_ASBOX
23322 ## ---------------------------------------- ##
23323 ## Report this to pgsql-bugs@postgresql.org ##
23324 ## ---------------------------------------- ##
23325 _ASBOX
23326      ) | sed "s/^/$as_me: WARNING:     /" >&2
23327     ;;
23328 esac
23329 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23330 $as_echo_n "checking for pthread.h... " >&6; }
23331 if test "${ac_cv_header_pthread_h+set}" = set; then
23332   $as_echo_n "(cached) " >&6
23333 else
23334   ac_cv_header_pthread_h=$ac_header_preproc
23335 fi
23336 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23337 $as_echo "$ac_cv_header_pthread_h" >&6; }
23338
23339 fi
23340 if test "x$ac_cv_header_pthread_h" = x""yes; then
23341   :
23342 else
23343   { { $as_echo "$as_me:$LINENO: error:
23344 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
23345 $as_echo "$as_me: error:
23346 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
23347    { (exit 1); exit 1; }; }
23348 fi
23349
23350
23351 fi
23352
23353
23354
23355
23356 for ac_func in strerror_r getpwuid_r gethostbyname_r
23357 do
23358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23359 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23360 $as_echo_n "checking for $ac_func... " >&6; }
23361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23362   $as_echo_n "(cached) " >&6
23363 else
23364   cat >conftest.$ac_ext <<_ACEOF
23365 /* confdefs.h.  */
23366 _ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h.  */
23370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23372 #define $ac_func innocuous_$ac_func
23373
23374 /* System header to define __stub macros and hopefully few prototypes,
23375     which can conflict with char $ac_func (); below.
23376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23377     <limits.h> exists even on freestanding compilers.  */
23378
23379 #ifdef __STDC__
23380 # include <limits.h>
23381 #else
23382 # include <assert.h>
23383 #endif
23384
23385 #undef $ac_func
23386
23387 /* Override any GCC internal prototype to avoid an error.
23388    Use char because int might match the return type of a GCC
23389    builtin and then its argument prototype would still apply.  */
23390 #ifdef __cplusplus
23391 extern "C"
23392 #endif
23393 char $ac_func ();
23394 /* The GNU C library defines this for functions which it implements
23395     to always fail with ENOSYS.  Some functions are actually named
23396     something starting with __ and the normal name is an alias.  */
23397 #if defined __stub_$ac_func || defined __stub___$ac_func
23398 choke me
23399 #endif
23400
23401 int
23402 main ()
23403 {
23404 return $ac_func ();
23405   ;
23406   return 0;
23407 }
23408 _ACEOF
23409 rm -f conftest.$ac_objext conftest$ac_exeext
23410 if { (ac_try="$ac_link"
23411 case "(($ac_try" in
23412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413   *) ac_try_echo=$ac_try;;
23414 esac
23415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23416 $as_echo "$ac_try_echo") >&5
23417   (eval "$ac_link") 2>conftest.er1
23418   ac_status=$?
23419   grep -v '^ *+' conftest.er1 >conftest.err
23420   rm -f conftest.er1
23421   cat conftest.err >&5
23422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } && {
23424          test -z "$ac_c_werror_flag" ||
23425          test ! -s conftest.err
23426        } && test -s conftest$ac_exeext && {
23427          test "$cross_compiling" = yes ||
23428          $as_test_x conftest$ac_exeext
23429        }; then
23430   eval "$as_ac_var=yes"
23431 else
23432   $as_echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23434
23435         eval "$as_ac_var=no"
23436 fi
23437
23438 rm -rf conftest.dSYM
23439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23440       conftest$ac_exeext conftest.$ac_ext
23441 fi
23442 ac_res=`eval 'as_val=${'$as_ac_var'}
23443                  $as_echo "$as_val"'`
23444                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23445 $as_echo "$ac_res" >&6; }
23446 as_val=`eval 'as_val=${'$as_ac_var'}
23447                  $as_echo "$as_val"'`
23448    if test "x$as_val" = x""yes; then
23449   cat >>confdefs.h <<_ACEOF
23450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23451 _ACEOF
23452
23453 fi
23454 done
23455
23456
23457 # Do test here with the proper thread flags
23458 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23459 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23460 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23461   $as_echo_n "(cached) " >&6
23462 else
23463   cat >conftest.$ac_ext <<_ACEOF
23464 /* confdefs.h.  */
23465 _ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h.  */
23469 #include <sys/types.h>
23470 #include <pwd.h>
23471 int
23472 main ()
23473 {
23474 uid_t uid;
23475 struct passwd *space;
23476 char *buf;
23477 size_t bufsize;
23478 struct passwd **result;
23479 getpwuid_r(uid, space, buf, bufsize, result);
23480   ;
23481   return 0;
23482 }
23483 _ACEOF
23484 rm -f conftest.$ac_objext
23485 if { (ac_try="$ac_compile"
23486 case "(($ac_try" in
23487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488   *) ac_try_echo=$ac_try;;
23489 esac
23490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23491 $as_echo "$ac_try_echo") >&5
23492   (eval "$ac_compile") 2>conftest.er1
23493   ac_status=$?
23494   grep -v '^ *+' conftest.er1 >conftest.err
23495   rm -f conftest.er1
23496   cat conftest.err >&5
23497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); } && {
23499          test -z "$ac_c_werror_flag" ||
23500          test ! -s conftest.err
23501        } && test -s conftest.$ac_objext; then
23502   pgac_cv_func_getpwuid_r_5arg=yes
23503 else
23504   $as_echo "$as_me: failed program was:" >&5
23505 sed 's/^/| /' conftest.$ac_ext >&5
23506
23507         pgac_cv_func_getpwuid_r_5arg=no
23508 fi
23509
23510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23511 fi
23512 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23513 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23514 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23515
23516 cat >>confdefs.h <<\_ACEOF
23517 #define GETPWUID_R_5ARG /**/
23518 _ACEOF
23519
23520 fi
23521
23522 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23523 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23524 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23525   $as_echo_n "(cached) " >&6
23526 else
23527   cat >conftest.$ac_ext <<_ACEOF
23528 /* confdefs.h.  */
23529 _ACEOF
23530 cat confdefs.h >>conftest.$ac_ext
23531 cat >>conftest.$ac_ext <<_ACEOF
23532 /* end confdefs.h.  */
23533 #include <string.h>
23534 int
23535 main ()
23536 {
23537 #ifndef _AIX
23538 int strerror_r(int, char *, size_t);
23539 #else
23540 /* Older AIX has 'int' for the third argument so we don't test the args. */
23541 int strerror_r();
23542 #endif
23543   ;
23544   return 0;
23545 }
23546 _ACEOF
23547 rm -f conftest.$ac_objext
23548 if { (ac_try="$ac_compile"
23549 case "(($ac_try" in
23550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551   *) ac_try_echo=$ac_try;;
23552 esac
23553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23554 $as_echo "$ac_try_echo") >&5
23555   (eval "$ac_compile") 2>conftest.er1
23556   ac_status=$?
23557   grep -v '^ *+' conftest.er1 >conftest.err
23558   rm -f conftest.er1
23559   cat conftest.err >&5
23560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561   (exit $ac_status); } && {
23562          test -z "$ac_c_werror_flag" ||
23563          test ! -s conftest.err
23564        } && test -s conftest.$ac_objext; then
23565   pgac_cv_func_strerror_r_int=yes
23566 else
23567   $as_echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23569
23570         pgac_cv_func_strerror_r_int=no
23571 fi
23572
23573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23574 fi
23575 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23576 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23577 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23578
23579 cat >>confdefs.h <<\_ACEOF
23580 #define STRERROR_R_INT /**/
23581 _ACEOF
23582
23583 fi
23584
23585
23586 CFLAGS="$_CFLAGS"
23587 LIBS="$_LIBS"
23588
23589 else
23590 # do not use values from template file
23591 PTHREAD_CFLAGS=
23592 PTHREAD_LIBS=
23593 fi
23594
23595
23596
23597
23598
23599 # We can test for libldap_r only after we know PTHREAD_LIBS
23600 if test "$with_ldap" = yes ; then
23601   _LIBS="$LIBS"
23602   if test "$PORTNAME" != "win32"; then
23603
23604 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23605 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23606 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23607   $as_echo_n "(cached) " >&6
23608 else
23609   ac_check_lib_save_LIBS=$LIBS
23610 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23611 cat >conftest.$ac_ext <<_ACEOF
23612 /* confdefs.h.  */
23613 _ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h.  */
23617
23618 /* Override any GCC internal prototype to avoid an error.
23619    Use char because int might match the return type of a GCC
23620    builtin and then its argument prototype would still apply.  */
23621 #ifdef __cplusplus
23622 extern "C"
23623 #endif
23624 char ldap_bind ();
23625 int
23626 main ()
23627 {
23628 return ldap_bind ();
23629   ;
23630   return 0;
23631 }
23632 _ACEOF
23633 rm -f conftest.$ac_objext conftest$ac_exeext
23634 if { (ac_try="$ac_link"
23635 case "(($ac_try" in
23636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637   *) ac_try_echo=$ac_try;;
23638 esac
23639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23640 $as_echo "$ac_try_echo") >&5
23641   (eval "$ac_link") 2>conftest.er1
23642   ac_status=$?
23643   grep -v '^ *+' conftest.er1 >conftest.err
23644   rm -f conftest.er1
23645   cat conftest.err >&5
23646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647   (exit $ac_status); } && {
23648          test -z "$ac_c_werror_flag" ||
23649          test ! -s conftest.err
23650        } && test -s conftest$ac_exeext && {
23651          test "$cross_compiling" = yes ||
23652          $as_test_x conftest$ac_exeext
23653        }; then
23654   ac_cv_lib_ldap_ldap_bind=yes
23655 else
23656   $as_echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659         ac_cv_lib_ldap_ldap_bind=no
23660 fi
23661
23662 rm -rf conftest.dSYM
23663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23664       conftest$ac_exeext conftest.$ac_ext
23665 LIBS=$ac_check_lib_save_LIBS
23666 fi
23667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23668 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23669 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23670   cat >>confdefs.h <<_ACEOF
23671 #define HAVE_LIBLDAP 1
23672 _ACEOF
23673
23674   LIBS="-lldap $LIBS"
23675
23676 else
23677   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23678 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23679    { (exit 1); exit 1; }; }
23680 fi
23681
23682     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23683     if test "$enable_thread_safety" = yes; then
23684       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23685
23686 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23687 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23688 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23689   $as_echo_n "(cached) " >&6
23690 else
23691   ac_check_lib_save_LIBS=$LIBS
23692 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23693 cat >conftest.$ac_ext <<_ACEOF
23694 /* confdefs.h.  */
23695 _ACEOF
23696 cat confdefs.h >>conftest.$ac_ext
23697 cat >>conftest.$ac_ext <<_ACEOF
23698 /* end confdefs.h.  */
23699
23700 /* Override any GCC internal prototype to avoid an error.
23701    Use char because int might match the return type of a GCC
23702    builtin and then its argument prototype would still apply.  */
23703 #ifdef __cplusplus
23704 extern "C"
23705 #endif
23706 char ldap_simple_bind ();
23707 int
23708 main ()
23709 {
23710 return ldap_simple_bind ();
23711   ;
23712   return 0;
23713 }
23714 _ACEOF
23715 rm -f conftest.$ac_objext conftest$ac_exeext
23716 if { (ac_try="$ac_link"
23717 case "(($ac_try" in
23718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23719   *) ac_try_echo=$ac_try;;
23720 esac
23721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23722 $as_echo "$ac_try_echo") >&5
23723   (eval "$ac_link") 2>conftest.er1
23724   ac_status=$?
23725   grep -v '^ *+' conftest.er1 >conftest.err
23726   rm -f conftest.er1
23727   cat conftest.err >&5
23728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729   (exit $ac_status); } && {
23730          test -z "$ac_c_werror_flag" ||
23731          test ! -s conftest.err
23732        } && test -s conftest$ac_exeext && {
23733          test "$cross_compiling" = yes ||
23734          $as_test_x conftest$ac_exeext
23735        }; then
23736   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23737 else
23738   $as_echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23740
23741         ac_cv_lib_ldap_r_ldap_simple_bind=no
23742 fi
23743
23744 rm -rf conftest.dSYM
23745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23746       conftest$ac_exeext conftest.$ac_ext
23747 LIBS=$ac_check_lib_save_LIBS
23748 fi
23749 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23750 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23751 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23752   cat >>confdefs.h <<_ACEOF
23753 #define HAVE_LIBLDAP_R 1
23754 _ACEOF
23755
23756   LIBS="-lldap_r $LIBS"
23757
23758 else
23759   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23760 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23761    { (exit 1); exit 1; }; }
23762 fi
23763
23764       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23765     else
23766       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23767     fi
23768   else
23769
23770 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23771 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23772 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23773   $as_echo_n "(cached) " >&6
23774 else
23775   ac_check_lib_save_LIBS=$LIBS
23776 LIBS="-lwldap32  $LIBS"
23777 cat >conftest.$ac_ext <<_ACEOF
23778 /* confdefs.h.  */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h.  */
23783
23784 /* Override any GCC internal prototype to avoid an error.
23785    Use char because int might match the return type of a GCC
23786    builtin and then its argument prototype would still apply.  */
23787 #ifdef __cplusplus
23788 extern "C"
23789 #endif
23790 char ldap_bind ();
23791 int
23792 main ()
23793 {
23794 return ldap_bind ();
23795   ;
23796   return 0;
23797 }
23798 _ACEOF
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (ac_try="$ac_link"
23801 case "(($ac_try" in
23802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803   *) ac_try_echo=$ac_try;;
23804 esac
23805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23806 $as_echo "$ac_try_echo") >&5
23807   (eval "$ac_link") 2>conftest.er1
23808   ac_status=$?
23809   grep -v '^ *+' conftest.er1 >conftest.err
23810   rm -f conftest.er1
23811   cat conftest.err >&5
23812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813   (exit $ac_status); } && {
23814          test -z "$ac_c_werror_flag" ||
23815          test ! -s conftest.err
23816        } && test -s conftest$ac_exeext && {
23817          test "$cross_compiling" = yes ||
23818          $as_test_x conftest$ac_exeext
23819        }; then
23820   ac_cv_lib_wldap32_ldap_bind=yes
23821 else
23822   $as_echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23824
23825         ac_cv_lib_wldap32_ldap_bind=no
23826 fi
23827
23828 rm -rf conftest.dSYM
23829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23830       conftest$ac_exeext conftest.$ac_ext
23831 LIBS=$ac_check_lib_save_LIBS
23832 fi
23833 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23834 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23835 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23836   cat >>confdefs.h <<_ACEOF
23837 #define HAVE_LIBWLDAP32 1
23838 _ACEOF
23839
23840   LIBS="-lwldap32 $LIBS"
23841
23842 else
23843   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23844 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23845    { (exit 1); exit 1; }; }
23846 fi
23847
23848     LDAP_LIBS_FE="-lwldap32"
23849     LDAP_LIBS_BE="-lwldap32"
23850   fi
23851   LIBS="$_LIBS"
23852 fi
23853
23854
23855
23856
23857 # Older versions of libxml2 lack the xmlStructuredErrorContext variable
23858 # (which could be a macro referring to a function, if threading is enabled)
23859 if test "$with_libxml" = yes ; then
23860   { $as_echo "$as_me:$LINENO: checking for xmlStructuredErrorContext" >&5
23861 $as_echo_n "checking for xmlStructuredErrorContext... " >&6; }
23862 if test "${pgac_cv_libxml_structerrctx+set}" = set; then
23863   $as_echo_n "(cached) " >&6
23864 else
23865   cat >conftest.$ac_ext <<_ACEOF
23866 /* confdefs.h.  */
23867 _ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h.  */
23871 #include <libxml/globals.h>
23872                 void *globptr;
23873 int
23874 main ()
23875 {
23876 globptr = xmlStructuredErrorContext
23877   ;
23878   return 0;
23879 }
23880 _ACEOF
23881 rm -f conftest.$ac_objext conftest$ac_exeext
23882 if { (ac_try="$ac_link"
23883 case "(($ac_try" in
23884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885   *) ac_try_echo=$ac_try;;
23886 esac
23887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23888 $as_echo "$ac_try_echo") >&5
23889   (eval "$ac_link") 2>conftest.er1
23890   ac_status=$?
23891   grep -v '^ *+' conftest.er1 >conftest.err
23892   rm -f conftest.er1
23893   cat conftest.err >&5
23894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); } && {
23896          test -z "$ac_c_werror_flag" ||
23897          test ! -s conftest.err
23898        } && test -s conftest$ac_exeext && {
23899          test "$cross_compiling" = yes ||
23900          $as_test_x conftest$ac_exeext
23901        }; then
23902   pgac_cv_libxml_structerrctx=yes
23903 else
23904   $as_echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23906
23907         pgac_cv_libxml_structerrctx=no
23908 fi
23909
23910 rm -rf conftest.dSYM
23911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23912       conftest$ac_exeext conftest.$ac_ext
23913 fi
23914 { $as_echo "$as_me:$LINENO: result: $pgac_cv_libxml_structerrctx" >&5
23915 $as_echo "$pgac_cv_libxml_structerrctx" >&6; }
23916   if test x"$pgac_cv_libxml_structerrctx" = x"yes"; then
23917
23918 cat >>confdefs.h <<\_ACEOF
23919 #define HAVE_XMLSTRUCTUREDERRORCONTEXT 1
23920 _ACEOF
23921
23922   fi
23923 fi
23924
23925
23926 # This test makes sure that run tests work at all.  Sometimes a shared
23927 # library is found by the linker, but the runtime linker can't find it.
23928 # This check should come after all modifications of compiler or linker
23929 # variables, and before any other run tests.
23930 { $as_echo "$as_me:$LINENO: checking test program" >&5
23931 $as_echo_n "checking test program... " >&6; }
23932 if test "$cross_compiling" = yes; then
23933   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23934 $as_echo "cross-compiling" >&6; }
23935 else
23936   cat >conftest.$ac_ext <<_ACEOF
23937 /* confdefs.h.  */
23938 _ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h.  */
23942 int main() { return 0; }
23943 _ACEOF
23944 rm -f conftest$ac_exeext
23945 if { (ac_try="$ac_link"
23946 case "(($ac_try" in
23947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23948   *) ac_try_echo=$ac_try;;
23949 esac
23950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23951 $as_echo "$ac_try_echo") >&5
23952   (eval "$ac_link") 2>&5
23953   ac_status=$?
23954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23956   { (case "(($ac_try" in
23957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958   *) ac_try_echo=$ac_try;;
23959 esac
23960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23961 $as_echo "$ac_try_echo") >&5
23962   (eval "$ac_try") 2>&5
23963   ac_status=$?
23964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965   (exit $ac_status); }; }; then
23966   { $as_echo "$as_me:$LINENO: result: ok" >&5
23967 $as_echo "ok" >&6; }
23968 else
23969   $as_echo "$as_me: program exited with status $ac_status" >&5
23970 $as_echo "$as_me: failed program was:" >&5
23971 sed 's/^/| /' conftest.$ac_ext >&5
23972
23973 ( exit $ac_status )
23974 { $as_echo "$as_me:$LINENO: result: failed" >&5
23975 $as_echo "failed" >&6; }
23976 { { $as_echo "$as_me:$LINENO: error:
23977 Could not execute a simple test program.  This may be a problem
23978 related to locating shared libraries.  Check the file 'config.log'
23979 for the exact reason." >&5
23980 $as_echo "$as_me: error:
23981 Could not execute a simple test program.  This may be a problem
23982 related to locating shared libraries.  Check the file 'config.log'
23983 for the exact reason." >&2;}
23984    { (exit 1); exit 1; }; }
23985 fi
23986 rm -rf conftest.dSYM
23987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23988 fi
23989
23990
23991
23992 # --------------------
23993 # Run tests below here
23994 # --------------------
23995
23996 # Force use of our snprintf if system's doesn't do arg control
23997 # See comment above at snprintf test for details.
23998 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23999   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24000 $as_echo_n "checking whether printf supports argument control... " >&6; }
24001 if test "${pgac_cv_printf_arg_control+set}" = set; then
24002   $as_echo_n "(cached) " >&6
24003 else
24004   if test "$cross_compiling" = yes; then
24005   pgac_cv_printf_arg_control=cross
24006 else
24007   cat >conftest.$ac_ext <<_ACEOF
24008 /* confdefs.h.  */
24009 _ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h.  */
24013 #include <stdio.h>
24014 #include <string.h>
24015
24016 int main()
24017 {
24018   char buf[100];
24019
24020   /* can it swap arguments? */
24021   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24022   if (strcmp(buf, "4 3") != 0)
24023     return 1;
24024   return 0;
24025 }
24026 _ACEOF
24027 rm -f conftest$ac_exeext
24028 if { (ac_try="$ac_link"
24029 case "(($ac_try" in
24030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24031   *) ac_try_echo=$ac_try;;
24032 esac
24033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24034 $as_echo "$ac_try_echo") >&5
24035   (eval "$ac_link") 2>&5
24036   ac_status=$?
24037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24039   { (case "(($ac_try" in
24040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24041   *) ac_try_echo=$ac_try;;
24042 esac
24043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24044 $as_echo "$ac_try_echo") >&5
24045   (eval "$ac_try") 2>&5
24046   ac_status=$?
24047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048   (exit $ac_status); }; }; then
24049   pgac_cv_printf_arg_control=yes
24050 else
24051   $as_echo "$as_me: program exited with status $ac_status" >&5
24052 $as_echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24054
24055 ( exit $ac_status )
24056 pgac_cv_printf_arg_control=no
24057 fi
24058 rm -rf conftest.dSYM
24059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24060 fi
24061
24062
24063
24064 fi
24065 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24066 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24067
24068   if test $pgac_cv_printf_arg_control != yes ; then
24069     pgac_need_repl_snprintf=yes
24070   fi
24071 fi
24072
24073
24074
24075
24076 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24077 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24078 if test "${pgac_cv_type_long_int_64+set}" = set; then
24079   $as_echo_n "(cached) " >&6
24080 else
24081   if test "$cross_compiling" = yes; then
24082   # If cross-compiling, check the size reported by the compiler and
24083 # trust that the arithmetic works.
24084 cat >conftest.$ac_ext <<_ACEOF
24085 /* confdefs.h.  */
24086 _ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h.  */
24090
24091 int
24092 main ()
24093 {
24094 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24095 test_array [0] = 0
24096
24097   ;
24098   return 0;
24099 }
24100 _ACEOF
24101 rm -f conftest.$ac_objext
24102 if { (ac_try="$ac_compile"
24103 case "(($ac_try" in
24104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105   *) ac_try_echo=$ac_try;;
24106 esac
24107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24108 $as_echo "$ac_try_echo") >&5
24109   (eval "$ac_compile") 2>conftest.er1
24110   ac_status=$?
24111   grep -v '^ *+' conftest.er1 >conftest.err
24112   rm -f conftest.er1
24113   cat conftest.err >&5
24114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115   (exit $ac_status); } && {
24116          test -z "$ac_c_werror_flag" ||
24117          test ! -s conftest.err
24118        } && test -s conftest.$ac_objext; then
24119   pgac_cv_type_long_int_64=yes
24120 else
24121   $as_echo "$as_me: failed program was:" >&5
24122 sed 's/^/| /' conftest.$ac_ext >&5
24123
24124         pgac_cv_type_long_int_64=no
24125 fi
24126
24127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24128 else
24129   cat >conftest.$ac_ext <<_ACEOF
24130 /* confdefs.h.  */
24131 _ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h.  */
24135 typedef long int ac_int64;
24136
24137 /*
24138  * These are globals to discourage the compiler from folding all the
24139  * arithmetic tests down to compile-time constants.
24140  */
24141 ac_int64 a = 20000001;
24142 ac_int64 b = 40000005;
24143
24144 int does_int64_work()
24145 {
24146   ac_int64 c,d;
24147
24148   if (sizeof(ac_int64) != 8)
24149     return 0;                   /* definitely not the right size */
24150
24151   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24152   c = a * b;
24153   d = (c + b) / b;
24154   if (d != a+1)
24155     return 0;
24156   return 1;
24157 }
24158 main() {
24159   exit(! does_int64_work());
24160 }
24161 _ACEOF
24162 rm -f conftest$ac_exeext
24163 if { (ac_try="$ac_link"
24164 case "(($ac_try" in
24165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166   *) ac_try_echo=$ac_try;;
24167 esac
24168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24169 $as_echo "$ac_try_echo") >&5
24170   (eval "$ac_link") 2>&5
24171   ac_status=$?
24172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24174   { (case "(($ac_try" in
24175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176   *) ac_try_echo=$ac_try;;
24177 esac
24178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24179 $as_echo "$ac_try_echo") >&5
24180   (eval "$ac_try") 2>&5
24181   ac_status=$?
24182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183   (exit $ac_status); }; }; then
24184   pgac_cv_type_long_int_64=yes
24185 else
24186   $as_echo "$as_me: program exited with status $ac_status" >&5
24187 $as_echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24189
24190 ( exit $ac_status )
24191 pgac_cv_type_long_int_64=no
24192 fi
24193 rm -rf conftest.dSYM
24194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24195 fi
24196
24197
24198 fi
24199 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24200 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24201
24202 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24203 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24204
24205 cat >>confdefs.h <<\_ACEOF
24206 #define HAVE_LONG_INT_64 1
24207 _ACEOF
24208
24209 fi
24210
24211
24212 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24213   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24214 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24215 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24216   $as_echo_n "(cached) " >&6
24217 else
24218   if test "$cross_compiling" = yes; then
24219   # If cross-compiling, check the size reported by the compiler and
24220 # trust that the arithmetic works.
24221 cat >conftest.$ac_ext <<_ACEOF
24222 /* confdefs.h.  */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h.  */
24227
24228 int
24229 main ()
24230 {
24231 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24232 test_array [0] = 0
24233
24234   ;
24235   return 0;
24236 }
24237 _ACEOF
24238 rm -f conftest.$ac_objext
24239 if { (ac_try="$ac_compile"
24240 case "(($ac_try" in
24241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242   *) ac_try_echo=$ac_try;;
24243 esac
24244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24245 $as_echo "$ac_try_echo") >&5
24246   (eval "$ac_compile") 2>conftest.er1
24247   ac_status=$?
24248   grep -v '^ *+' conftest.er1 >conftest.err
24249   rm -f conftest.er1
24250   cat conftest.err >&5
24251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252   (exit $ac_status); } && {
24253          test -z "$ac_c_werror_flag" ||
24254          test ! -s conftest.err
24255        } && test -s conftest.$ac_objext; then
24256   pgac_cv_type_long_long_int_64=yes
24257 else
24258   $as_echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24260
24261         pgac_cv_type_long_long_int_64=no
24262 fi
24263
24264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24265 else
24266   cat >conftest.$ac_ext <<_ACEOF
24267 /* confdefs.h.  */
24268 _ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h.  */
24272 typedef long long int ac_int64;
24273
24274 /*
24275  * These are globals to discourage the compiler from folding all the
24276  * arithmetic tests down to compile-time constants.
24277  */
24278 ac_int64 a = 20000001;
24279 ac_int64 b = 40000005;
24280
24281 int does_int64_work()
24282 {
24283   ac_int64 c,d;
24284
24285   if (sizeof(ac_int64) != 8)
24286     return 0;                   /* definitely not the right size */
24287
24288   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24289   c = a * b;
24290   d = (c + b) / b;
24291   if (d != a+1)
24292     return 0;
24293   return 1;
24294 }
24295 main() {
24296   exit(! does_int64_work());
24297 }
24298 _ACEOF
24299 rm -f conftest$ac_exeext
24300 if { (ac_try="$ac_link"
24301 case "(($ac_try" in
24302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303   *) ac_try_echo=$ac_try;;
24304 esac
24305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24306 $as_echo "$ac_try_echo") >&5
24307   (eval "$ac_link") 2>&5
24308   ac_status=$?
24309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24311   { (case "(($ac_try" in
24312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313   *) ac_try_echo=$ac_try;;
24314 esac
24315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24316 $as_echo "$ac_try_echo") >&5
24317   (eval "$ac_try") 2>&5
24318   ac_status=$?
24319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320   (exit $ac_status); }; }; then
24321   pgac_cv_type_long_long_int_64=yes
24322 else
24323   $as_echo "$as_me: program exited with status $ac_status" >&5
24324 $as_echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24326
24327 ( exit $ac_status )
24328 pgac_cv_type_long_long_int_64=no
24329 fi
24330 rm -rf conftest.dSYM
24331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24332 fi
24333
24334
24335 fi
24336 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24337 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24338
24339 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24340 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24341
24342 cat >>confdefs.h <<\_ACEOF
24343 #define HAVE_LONG_LONG_INT_64 1
24344 _ACEOF
24345
24346 fi
24347
24348   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24349     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24350 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24351    { (exit 1); exit 1; }; }
24352   fi
24353 fi
24354
24355
24356
24357 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24358   cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h.  */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h.  */
24364
24365 #define INT64CONST(x)  x##LL
24366 long long int foo = INT64CONST(0x1234567890123456);
24367
24368 int
24369 main ()
24370 {
24371
24372   ;
24373   return 0;
24374 }
24375 _ACEOF
24376 rm -f conftest.$ac_objext
24377 if { (ac_try="$ac_compile"
24378 case "(($ac_try" in
24379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24380   *) ac_try_echo=$ac_try;;
24381 esac
24382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24383 $as_echo "$ac_try_echo") >&5
24384   (eval "$ac_compile") 2>conftest.er1
24385   ac_status=$?
24386   grep -v '^ *+' conftest.er1 >conftest.err
24387   rm -f conftest.er1
24388   cat conftest.err >&5
24389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); } && {
24391          test -z "$ac_c_werror_flag" ||
24392          test ! -s conftest.err
24393        } && test -s conftest.$ac_objext; then
24394
24395 cat >>confdefs.h <<\_ACEOF
24396 #define HAVE_LL_CONSTANTS 1
24397 _ACEOF
24398
24399 else
24400   $as_echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24402
24403
24404 fi
24405
24406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24407 fi
24408
24409
24410 # If we found "long int" is 64 bits, assume snprintf handles it.  If
24411 # we found we need to use "long long int", better check.  We cope with
24412 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
24413 # work, fall back to our own snprintf emulation (which we know uses %lld).
24414
24415 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24416   if test $pgac_need_repl_snprintf = no; then
24417     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24418 $as_echo_n "checking snprintf format for long long int... " >&6; }
24419 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24420   $as_echo_n "(cached) " >&6
24421 else
24422   for pgac_format in '%lld' '%qd' '%I64d'; do
24423 if test "$cross_compiling" = yes; then
24424   pgac_cv_snprintf_long_long_int_format=cross; break
24425 else
24426   cat >conftest.$ac_ext <<_ACEOF
24427 /* confdefs.h.  */
24428 _ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h.  */
24432 #include <stdio.h>
24433 typedef long long int ac_int64;
24434 #define INT64_FORMAT "$pgac_format"
24435
24436 ac_int64 a = 20000001;
24437 ac_int64 b = 40000005;
24438
24439 int does_int64_snprintf_work()
24440 {
24441   ac_int64 c;
24442   char buf[100];
24443
24444   if (sizeof(ac_int64) != 8)
24445     return 0;                   /* doesn't look like the right size */
24446
24447   c = a * b;
24448   snprintf(buf, 100, INT64_FORMAT, c);
24449   if (strcmp(buf, "800000140000005") != 0)
24450     return 0;                   /* either multiply or snprintf is busted */
24451   return 1;
24452 }
24453 main() {
24454   exit(! does_int64_snprintf_work());
24455 }
24456 _ACEOF
24457 rm -f conftest$ac_exeext
24458 if { (ac_try="$ac_link"
24459 case "(($ac_try" in
24460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24461   *) ac_try_echo=$ac_try;;
24462 esac
24463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24464 $as_echo "$ac_try_echo") >&5
24465   (eval "$ac_link") 2>&5
24466   ac_status=$?
24467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24469   { (case "(($ac_try" in
24470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471   *) ac_try_echo=$ac_try;;
24472 esac
24473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24474 $as_echo "$ac_try_echo") >&5
24475   (eval "$ac_try") 2>&5
24476   ac_status=$?
24477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478   (exit $ac_status); }; }; then
24479   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24480 else
24481   $as_echo "$as_me: program exited with status $ac_status" >&5
24482 $as_echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24484
24485 fi
24486 rm -rf conftest.dSYM
24487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24488 fi
24489
24490
24491 done
24492 fi
24493
24494 LONG_LONG_INT_FORMAT=''
24495
24496 case $pgac_cv_snprintf_long_long_int_format in
24497   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24498 $as_echo "cannot test (not on host machine)" >&6; };;
24499   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24500 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24501          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24502   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
24503 $as_echo "none" >&6; };;
24504 esac
24505     if test "$LONG_LONG_INT_FORMAT" = ""; then
24506       # Force usage of our own snprintf, since system snprintf is broken
24507       pgac_need_repl_snprintf=yes
24508       LONG_LONG_INT_FORMAT='%lld'
24509     fi
24510   else
24511     # Here if we previously decided we needed to use our own snprintf
24512     LONG_LONG_INT_FORMAT='%lld'
24513   fi
24514   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24515   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24516   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24517 else
24518   # Here if we are not using 'long long int' at all
24519   INT64_FORMAT='"%ld"'
24520   UINT64_FORMAT='"%lu"'
24521 fi
24522
24523
24524 cat >>confdefs.h <<_ACEOF
24525 #define INT64_FORMAT $INT64_FORMAT
24526 _ACEOF
24527
24528
24529
24530 cat >>confdefs.h <<_ACEOF
24531 #define UINT64_FORMAT $UINT64_FORMAT
24532 _ACEOF
24533
24534
24535 # Now we have checked all the reasons to replace snprintf
24536 if test $pgac_need_repl_snprintf = yes; then
24537
24538 cat >>confdefs.h <<\_ACEOF
24539 #define USE_REPL_SNPRINTF 1
24540 _ACEOF
24541
24542   case " $LIBOBJS " in
24543   *" snprintf.$ac_objext "* ) ;;
24544   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24545  ;;
24546 esac
24547
24548 fi
24549
24550 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24551 # The cast to long int works around a bug in the HP C Compiler
24552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24554 # This bug is HP SR number 8606223364.
24555 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24556 $as_echo_n "checking size of void *... " >&6; }
24557 if test "${ac_cv_sizeof_void_p+set}" = set; then
24558   $as_echo_n "(cached) " >&6
24559 else
24560   if test "$cross_compiling" = yes; then
24561   # Depending upon the size, compute the lo and hi bounds.
24562 cat >conftest.$ac_ext <<_ACEOF
24563 /* confdefs.h.  */
24564 _ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h.  */
24568 $ac_includes_default
24569 int
24570 main ()
24571 {
24572 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24573 test_array [0] = 0
24574
24575   ;
24576   return 0;
24577 }
24578 _ACEOF
24579 rm -f conftest.$ac_objext
24580 if { (ac_try="$ac_compile"
24581 case "(($ac_try" in
24582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583   *) ac_try_echo=$ac_try;;
24584 esac
24585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24586 $as_echo "$ac_try_echo") >&5
24587   (eval "$ac_compile") 2>conftest.er1
24588   ac_status=$?
24589   grep -v '^ *+' conftest.er1 >conftest.err
24590   rm -f conftest.er1
24591   cat conftest.err >&5
24592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593   (exit $ac_status); } && {
24594          test -z "$ac_c_werror_flag" ||
24595          test ! -s conftest.err
24596        } && test -s conftest.$ac_objext; then
24597   ac_lo=0 ac_mid=0
24598   while :; do
24599     cat >conftest.$ac_ext <<_ACEOF
24600 /* confdefs.h.  */
24601 _ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h.  */
24605 $ac_includes_default
24606 int
24607 main ()
24608 {
24609 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24610 test_array [0] = 0
24611
24612   ;
24613   return 0;
24614 }
24615 _ACEOF
24616 rm -f conftest.$ac_objext
24617 if { (ac_try="$ac_compile"
24618 case "(($ac_try" in
24619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620   *) ac_try_echo=$ac_try;;
24621 esac
24622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24623 $as_echo "$ac_try_echo") >&5
24624   (eval "$ac_compile") 2>conftest.er1
24625   ac_status=$?
24626   grep -v '^ *+' conftest.er1 >conftest.err
24627   rm -f conftest.er1
24628   cat conftest.err >&5
24629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630   (exit $ac_status); } && {
24631          test -z "$ac_c_werror_flag" ||
24632          test ! -s conftest.err
24633        } && test -s conftest.$ac_objext; then
24634   ac_hi=$ac_mid; break
24635 else
24636   $as_echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24638
24639         ac_lo=`expr $ac_mid + 1`
24640                         if test $ac_lo -le $ac_mid; then
24641                           ac_lo= ac_hi=
24642                           break
24643                         fi
24644                         ac_mid=`expr 2 '*' $ac_mid + 1`
24645 fi
24646
24647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24648   done
24649 else
24650   $as_echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24652
24653         cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h.  */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h.  */
24659 $ac_includes_default
24660 int
24661 main ()
24662 {
24663 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24664 test_array [0] = 0
24665
24666   ;
24667   return 0;
24668 }
24669 _ACEOF
24670 rm -f conftest.$ac_objext
24671 if { (ac_try="$ac_compile"
24672 case "(($ac_try" in
24673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674   *) ac_try_echo=$ac_try;;
24675 esac
24676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24677 $as_echo "$ac_try_echo") >&5
24678   (eval "$ac_compile") 2>conftest.er1
24679   ac_status=$?
24680   grep -v '^ *+' conftest.er1 >conftest.err
24681   rm -f conftest.er1
24682   cat conftest.err >&5
24683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); } && {
24685          test -z "$ac_c_werror_flag" ||
24686          test ! -s conftest.err
24687        } && test -s conftest.$ac_objext; then
24688   ac_hi=-1 ac_mid=-1
24689   while :; do
24690     cat >conftest.$ac_ext <<_ACEOF
24691 /* confdefs.h.  */
24692 _ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h.  */
24696 $ac_includes_default
24697 int
24698 main ()
24699 {
24700 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24701 test_array [0] = 0
24702
24703   ;
24704   return 0;
24705 }
24706 _ACEOF
24707 rm -f conftest.$ac_objext
24708 if { (ac_try="$ac_compile"
24709 case "(($ac_try" in
24710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711   *) ac_try_echo=$ac_try;;
24712 esac
24713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24714 $as_echo "$ac_try_echo") >&5
24715   (eval "$ac_compile") 2>conftest.er1
24716   ac_status=$?
24717   grep -v '^ *+' conftest.er1 >conftest.err
24718   rm -f conftest.er1
24719   cat conftest.err >&5
24720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); } && {
24722          test -z "$ac_c_werror_flag" ||
24723          test ! -s conftest.err
24724        } && test -s conftest.$ac_objext; then
24725   ac_lo=$ac_mid; break
24726 else
24727   $as_echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24729
24730         ac_hi=`expr '(' $ac_mid ')' - 1`
24731                         if test $ac_mid -le $ac_hi; then
24732                           ac_lo= ac_hi=
24733                           break
24734                         fi
24735                         ac_mid=`expr 2 '*' $ac_mid`
24736 fi
24737
24738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24739   done
24740 else
24741   $as_echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24743
24744         ac_lo= ac_hi=
24745 fi
24746
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24748 fi
24749
24750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24751 # Binary search between lo and hi bounds.
24752 while test "x$ac_lo" != "x$ac_hi"; do
24753   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24754   cat >conftest.$ac_ext <<_ACEOF
24755 /* confdefs.h.  */
24756 _ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h.  */
24760 $ac_includes_default
24761 int
24762 main ()
24763 {
24764 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24765 test_array [0] = 0
24766
24767   ;
24768   return 0;
24769 }
24770 _ACEOF
24771 rm -f conftest.$ac_objext
24772 if { (ac_try="$ac_compile"
24773 case "(($ac_try" in
24774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775   *) ac_try_echo=$ac_try;;
24776 esac
24777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24778 $as_echo "$ac_try_echo") >&5
24779   (eval "$ac_compile") 2>conftest.er1
24780   ac_status=$?
24781   grep -v '^ *+' conftest.er1 >conftest.err
24782   rm -f conftest.er1
24783   cat conftest.err >&5
24784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785   (exit $ac_status); } && {
24786          test -z "$ac_c_werror_flag" ||
24787          test ! -s conftest.err
24788        } && test -s conftest.$ac_objext; then
24789   ac_hi=$ac_mid
24790 else
24791   $as_echo "$as_me: failed program was:" >&5
24792 sed 's/^/| /' conftest.$ac_ext >&5
24793
24794         ac_lo=`expr '(' $ac_mid ')' + 1`
24795 fi
24796
24797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24798 done
24799 case $ac_lo in
24800 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24801 '') if test "$ac_cv_type_void_p" = yes; then
24802      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24804 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24805 See \`config.log' for more details." >&5
24806 $as_echo "$as_me: error: cannot compute sizeof (void *)
24807 See \`config.log' for more details." >&2;}
24808    { (exit 77); exit 77; }; }; }
24809    else
24810      ac_cv_sizeof_void_p=0
24811    fi ;;
24812 esac
24813 else
24814   cat >conftest.$ac_ext <<_ACEOF
24815 /* confdefs.h.  */
24816 _ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h.  */
24820 $ac_includes_default
24821 static long int longval () { return (long int) (sizeof (void *)); }
24822 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24823 #include <stdio.h>
24824 #include <stdlib.h>
24825 int
24826 main ()
24827 {
24828
24829   FILE *f = fopen ("conftest.val", "w");
24830   if (! f)
24831     return 1;
24832   if (((long int) (sizeof (void *))) < 0)
24833     {
24834       long int i = longval ();
24835       if (i != ((long int) (sizeof (void *))))
24836         return 1;
24837       fprintf (f, "%ld", i);
24838     }
24839   else
24840     {
24841       unsigned long int i = ulongval ();
24842       if (i != ((long int) (sizeof (void *))))
24843         return 1;
24844       fprintf (f, "%lu", i);
24845     }
24846   /* Do not output a trailing newline, as this causes \r\n confusion
24847      on some platforms.  */
24848   return ferror (f) || fclose (f) != 0;
24849
24850   ;
24851   return 0;
24852 }
24853 _ACEOF
24854 rm -f conftest$ac_exeext
24855 if { (ac_try="$ac_link"
24856 case "(($ac_try" in
24857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858   *) ac_try_echo=$ac_try;;
24859 esac
24860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24861 $as_echo "$ac_try_echo") >&5
24862   (eval "$ac_link") 2>&5
24863   ac_status=$?
24864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24866   { (case "(($ac_try" in
24867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868   *) ac_try_echo=$ac_try;;
24869 esac
24870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24871 $as_echo "$ac_try_echo") >&5
24872   (eval "$ac_try") 2>&5
24873   ac_status=$?
24874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875   (exit $ac_status); }; }; then
24876   ac_cv_sizeof_void_p=`cat conftest.val`
24877 else
24878   $as_echo "$as_me: program exited with status $ac_status" >&5
24879 $as_echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24881
24882 ( exit $ac_status )
24883 if test "$ac_cv_type_void_p" = yes; then
24884      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24886 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24887 See \`config.log' for more details." >&5
24888 $as_echo "$as_me: error: cannot compute sizeof (void *)
24889 See \`config.log' for more details." >&2;}
24890    { (exit 77); exit 77; }; }; }
24891    else
24892      ac_cv_sizeof_void_p=0
24893    fi
24894 fi
24895 rm -rf conftest.dSYM
24896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24897 fi
24898 rm -f conftest.val
24899 fi
24900 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24901 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24902
24903
24904
24905 cat >>confdefs.h <<_ACEOF
24906 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24907 _ACEOF
24908
24909
24910 # The cast to long int works around a bug in the HP C Compiler
24911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24913 # This bug is HP SR number 8606223364.
24914 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24915 $as_echo_n "checking size of size_t... " >&6; }
24916 if test "${ac_cv_sizeof_size_t+set}" = set; then
24917   $as_echo_n "(cached) " >&6
24918 else
24919   if test "$cross_compiling" = yes; then
24920   # Depending upon the size, compute the lo and hi bounds.
24921 cat >conftest.$ac_ext <<_ACEOF
24922 /* confdefs.h.  */
24923 _ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h.  */
24927 $ac_includes_default
24928 int
24929 main ()
24930 {
24931 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24932 test_array [0] = 0
24933
24934   ;
24935   return 0;
24936 }
24937 _ACEOF
24938 rm -f conftest.$ac_objext
24939 if { (ac_try="$ac_compile"
24940 case "(($ac_try" in
24941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24942   *) ac_try_echo=$ac_try;;
24943 esac
24944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24945 $as_echo "$ac_try_echo") >&5
24946   (eval "$ac_compile") 2>conftest.er1
24947   ac_status=$?
24948   grep -v '^ *+' conftest.er1 >conftest.err
24949   rm -f conftest.er1
24950   cat conftest.err >&5
24951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952   (exit $ac_status); } && {
24953          test -z "$ac_c_werror_flag" ||
24954          test ! -s conftest.err
24955        } && test -s conftest.$ac_objext; then
24956   ac_lo=0 ac_mid=0
24957   while :; do
24958     cat >conftest.$ac_ext <<_ACEOF
24959 /* confdefs.h.  */
24960 _ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h.  */
24964 $ac_includes_default
24965 int
24966 main ()
24967 {
24968 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24969 test_array [0] = 0
24970
24971   ;
24972   return 0;
24973 }
24974 _ACEOF
24975 rm -f conftest.$ac_objext
24976 if { (ac_try="$ac_compile"
24977 case "(($ac_try" in
24978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979   *) ac_try_echo=$ac_try;;
24980 esac
24981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24982 $as_echo "$ac_try_echo") >&5
24983   (eval "$ac_compile") 2>conftest.er1
24984   ac_status=$?
24985   grep -v '^ *+' conftest.er1 >conftest.err
24986   rm -f conftest.er1
24987   cat conftest.err >&5
24988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989   (exit $ac_status); } && {
24990          test -z "$ac_c_werror_flag" ||
24991          test ! -s conftest.err
24992        } && test -s conftest.$ac_objext; then
24993   ac_hi=$ac_mid; break
24994 else
24995   $as_echo "$as_me: failed program was:" >&5
24996 sed 's/^/| /' conftest.$ac_ext >&5
24997
24998         ac_lo=`expr $ac_mid + 1`
24999                         if test $ac_lo -le $ac_mid; then
25000                           ac_lo= ac_hi=
25001                           break
25002                         fi
25003                         ac_mid=`expr 2 '*' $ac_mid + 1`
25004 fi
25005
25006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25007   done
25008 else
25009   $as_echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25011
25012         cat >conftest.$ac_ext <<_ACEOF
25013 /* confdefs.h.  */
25014 _ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h.  */
25018 $ac_includes_default
25019 int
25020 main ()
25021 {
25022 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25023 test_array [0] = 0
25024
25025   ;
25026   return 0;
25027 }
25028 _ACEOF
25029 rm -f conftest.$ac_objext
25030 if { (ac_try="$ac_compile"
25031 case "(($ac_try" in
25032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033   *) ac_try_echo=$ac_try;;
25034 esac
25035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25036 $as_echo "$ac_try_echo") >&5
25037   (eval "$ac_compile") 2>conftest.er1
25038   ac_status=$?
25039   grep -v '^ *+' conftest.er1 >conftest.err
25040   rm -f conftest.er1
25041   cat conftest.err >&5
25042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043   (exit $ac_status); } && {
25044          test -z "$ac_c_werror_flag" ||
25045          test ! -s conftest.err
25046        } && test -s conftest.$ac_objext; then
25047   ac_hi=-1 ac_mid=-1
25048   while :; do
25049     cat >conftest.$ac_ext <<_ACEOF
25050 /* confdefs.h.  */
25051 _ACEOF
25052 cat confdefs.h >>conftest.$ac_ext
25053 cat >>conftest.$ac_ext <<_ACEOF
25054 /* end confdefs.h.  */
25055 $ac_includes_default
25056 int
25057 main ()
25058 {
25059 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25060 test_array [0] = 0
25061
25062   ;
25063   return 0;
25064 }
25065 _ACEOF
25066 rm -f conftest.$ac_objext
25067 if { (ac_try="$ac_compile"
25068 case "(($ac_try" in
25069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25070   *) ac_try_echo=$ac_try;;
25071 esac
25072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25073 $as_echo "$ac_try_echo") >&5
25074   (eval "$ac_compile") 2>conftest.er1
25075   ac_status=$?
25076   grep -v '^ *+' conftest.er1 >conftest.err
25077   rm -f conftest.er1
25078   cat conftest.err >&5
25079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080   (exit $ac_status); } && {
25081          test -z "$ac_c_werror_flag" ||
25082          test ! -s conftest.err
25083        } && test -s conftest.$ac_objext; then
25084   ac_lo=$ac_mid; break
25085 else
25086   $as_echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25088
25089         ac_hi=`expr '(' $ac_mid ')' - 1`
25090                         if test $ac_mid -le $ac_hi; then
25091                           ac_lo= ac_hi=
25092                           break
25093                         fi
25094                         ac_mid=`expr 2 '*' $ac_mid`
25095 fi
25096
25097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25098   done
25099 else
25100   $as_echo "$as_me: failed program was:" >&5
25101 sed 's/^/| /' conftest.$ac_ext >&5
25102
25103         ac_lo= ac_hi=
25104 fi
25105
25106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25107 fi
25108
25109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110 # Binary search between lo and hi bounds.
25111 while test "x$ac_lo" != "x$ac_hi"; do
25112   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25113   cat >conftest.$ac_ext <<_ACEOF
25114 /* confdefs.h.  */
25115 _ACEOF
25116 cat confdefs.h >>conftest.$ac_ext
25117 cat >>conftest.$ac_ext <<_ACEOF
25118 /* end confdefs.h.  */
25119 $ac_includes_default
25120 int
25121 main ()
25122 {
25123 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25124 test_array [0] = 0
25125
25126   ;
25127   return 0;
25128 }
25129 _ACEOF
25130 rm -f conftest.$ac_objext
25131 if { (ac_try="$ac_compile"
25132 case "(($ac_try" in
25133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25134   *) ac_try_echo=$ac_try;;
25135 esac
25136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25137 $as_echo "$ac_try_echo") >&5
25138   (eval "$ac_compile") 2>conftest.er1
25139   ac_status=$?
25140   grep -v '^ *+' conftest.er1 >conftest.err
25141   rm -f conftest.er1
25142   cat conftest.err >&5
25143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144   (exit $ac_status); } && {
25145          test -z "$ac_c_werror_flag" ||
25146          test ! -s conftest.err
25147        } && test -s conftest.$ac_objext; then
25148   ac_hi=$ac_mid
25149 else
25150   $as_echo "$as_me: failed program was:" >&5
25151 sed 's/^/| /' conftest.$ac_ext >&5
25152
25153         ac_lo=`expr '(' $ac_mid ')' + 1`
25154 fi
25155
25156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25157 done
25158 case $ac_lo in
25159 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25160 '') if test "$ac_cv_type_size_t" = yes; then
25161      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25163 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25164 See \`config.log' for more details." >&5
25165 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25166 See \`config.log' for more details." >&2;}
25167    { (exit 77); exit 77; }; }; }
25168    else
25169      ac_cv_sizeof_size_t=0
25170    fi ;;
25171 esac
25172 else
25173   cat >conftest.$ac_ext <<_ACEOF
25174 /* confdefs.h.  */
25175 _ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h.  */
25179 $ac_includes_default
25180 static long int longval () { return (long int) (sizeof (size_t)); }
25181 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25182 #include <stdio.h>
25183 #include <stdlib.h>
25184 int
25185 main ()
25186 {
25187
25188   FILE *f = fopen ("conftest.val", "w");
25189   if (! f)
25190     return 1;
25191   if (((long int) (sizeof (size_t))) < 0)
25192     {
25193       long int i = longval ();
25194       if (i != ((long int) (sizeof (size_t))))
25195         return 1;
25196       fprintf (f, "%ld", i);
25197     }
25198   else
25199     {
25200       unsigned long int i = ulongval ();
25201       if (i != ((long int) (sizeof (size_t))))
25202         return 1;
25203       fprintf (f, "%lu", i);
25204     }
25205   /* Do not output a trailing newline, as this causes \r\n confusion
25206      on some platforms.  */
25207   return ferror (f) || fclose (f) != 0;
25208
25209   ;
25210   return 0;
25211 }
25212 _ACEOF
25213 rm -f conftest$ac_exeext
25214 if { (ac_try="$ac_link"
25215 case "(($ac_try" in
25216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217   *) ac_try_echo=$ac_try;;
25218 esac
25219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25220 $as_echo "$ac_try_echo") >&5
25221   (eval "$ac_link") 2>&5
25222   ac_status=$?
25223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25225   { (case "(($ac_try" in
25226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227   *) ac_try_echo=$ac_try;;
25228 esac
25229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25230 $as_echo "$ac_try_echo") >&5
25231   (eval "$ac_try") 2>&5
25232   ac_status=$?
25233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234   (exit $ac_status); }; }; then
25235   ac_cv_sizeof_size_t=`cat conftest.val`
25236 else
25237   $as_echo "$as_me: program exited with status $ac_status" >&5
25238 $as_echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.$ac_ext >&5
25240
25241 ( exit $ac_status )
25242 if test "$ac_cv_type_size_t" = yes; then
25243      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25245 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25246 See \`config.log' for more details." >&5
25247 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25248 See \`config.log' for more details." >&2;}
25249    { (exit 77); exit 77; }; }; }
25250    else
25251      ac_cv_sizeof_size_t=0
25252    fi
25253 fi
25254 rm -rf conftest.dSYM
25255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25256 fi
25257 rm -f conftest.val
25258 fi
25259 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25260 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25261
25262
25263
25264 cat >>confdefs.h <<_ACEOF
25265 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25266 _ACEOF
25267
25268
25269 # The cast to long int works around a bug in the HP C Compiler
25270 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25271 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25272 # This bug is HP SR number 8606223364.
25273 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25274 $as_echo_n "checking size of long... " >&6; }
25275 if test "${ac_cv_sizeof_long+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 int
25288 main ()
25289 {
25290 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25291 test_array [0] = 0
25292
25293   ;
25294   return 0;
25295 }
25296 _ACEOF
25297 rm -f conftest.$ac_objext
25298 if { (ac_try="$ac_compile"
25299 case "(($ac_try" in
25300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25301   *) ac_try_echo=$ac_try;;
25302 esac
25303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25304 $as_echo "$ac_try_echo") >&5
25305   (eval "$ac_compile") 2>conftest.er1
25306   ac_status=$?
25307   grep -v '^ *+' conftest.er1 >conftest.err
25308   rm -f conftest.er1
25309   cat conftest.err >&5
25310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311   (exit $ac_status); } && {
25312          test -z "$ac_c_werror_flag" ||
25313          test ! -s conftest.err
25314        } && test -s conftest.$ac_objext; then
25315   ac_lo=0 ac_mid=0
25316   while :; do
25317     cat >conftest.$ac_ext <<_ACEOF
25318 /* confdefs.h.  */
25319 _ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h.  */
25323 $ac_includes_default
25324 int
25325 main ()
25326 {
25327 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25328 test_array [0] = 0
25329
25330   ;
25331   return 0;
25332 }
25333 _ACEOF
25334 rm -f conftest.$ac_objext
25335 if { (ac_try="$ac_compile"
25336 case "(($ac_try" in
25337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338   *) ac_try_echo=$ac_try;;
25339 esac
25340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25341 $as_echo "$ac_try_echo") >&5
25342   (eval "$ac_compile") 2>conftest.er1
25343   ac_status=$?
25344   grep -v '^ *+' conftest.er1 >conftest.err
25345   rm -f conftest.er1
25346   cat conftest.err >&5
25347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348   (exit $ac_status); } && {
25349          test -z "$ac_c_werror_flag" ||
25350          test ! -s conftest.err
25351        } && test -s conftest.$ac_objext; then
25352   ac_hi=$ac_mid; break
25353 else
25354   $as_echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25356
25357         ac_lo=`expr $ac_mid + 1`
25358                         if test $ac_lo -le $ac_mid; then
25359                           ac_lo= ac_hi=
25360                           break
25361                         fi
25362                         ac_mid=`expr 2 '*' $ac_mid + 1`
25363 fi
25364
25365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25366   done
25367 else
25368   $as_echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25370
25371         cat >conftest.$ac_ext <<_ACEOF
25372 /* confdefs.h.  */
25373 _ACEOF
25374 cat confdefs.h >>conftest.$ac_ext
25375 cat >>conftest.$ac_ext <<_ACEOF
25376 /* end confdefs.h.  */
25377 $ac_includes_default
25378 int
25379 main ()
25380 {
25381 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25382 test_array [0] = 0
25383
25384   ;
25385   return 0;
25386 }
25387 _ACEOF
25388 rm -f conftest.$ac_objext
25389 if { (ac_try="$ac_compile"
25390 case "(($ac_try" in
25391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25392   *) ac_try_echo=$ac_try;;
25393 esac
25394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25395 $as_echo "$ac_try_echo") >&5
25396   (eval "$ac_compile") 2>conftest.er1
25397   ac_status=$?
25398   grep -v '^ *+' conftest.er1 >conftest.err
25399   rm -f conftest.er1
25400   cat conftest.err >&5
25401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402   (exit $ac_status); } && {
25403          test -z "$ac_c_werror_flag" ||
25404          test ! -s conftest.err
25405        } && test -s conftest.$ac_objext; then
25406   ac_hi=-1 ac_mid=-1
25407   while :; do
25408     cat >conftest.$ac_ext <<_ACEOF
25409 /* confdefs.h.  */
25410 _ACEOF
25411 cat confdefs.h >>conftest.$ac_ext
25412 cat >>conftest.$ac_ext <<_ACEOF
25413 /* end confdefs.h.  */
25414 $ac_includes_default
25415 int
25416 main ()
25417 {
25418 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25419 test_array [0] = 0
25420
25421   ;
25422   return 0;
25423 }
25424 _ACEOF
25425 rm -f conftest.$ac_objext
25426 if { (ac_try="$ac_compile"
25427 case "(($ac_try" in
25428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25429   *) ac_try_echo=$ac_try;;
25430 esac
25431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25432 $as_echo "$ac_try_echo") >&5
25433   (eval "$ac_compile") 2>conftest.er1
25434   ac_status=$?
25435   grep -v '^ *+' conftest.er1 >conftest.err
25436   rm -f conftest.er1
25437   cat conftest.err >&5
25438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); } && {
25440          test -z "$ac_c_werror_flag" ||
25441          test ! -s conftest.err
25442        } && test -s conftest.$ac_objext; then
25443   ac_lo=$ac_mid; break
25444 else
25445   $as_echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25447
25448         ac_hi=`expr '(' $ac_mid ')' - 1`
25449                         if test $ac_mid -le $ac_hi; then
25450                           ac_lo= ac_hi=
25451                           break
25452                         fi
25453                         ac_mid=`expr 2 '*' $ac_mid`
25454 fi
25455
25456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25457   done
25458 else
25459   $as_echo "$as_me: failed program was:" >&5
25460 sed 's/^/| /' conftest.$ac_ext >&5
25461
25462         ac_lo= ac_hi=
25463 fi
25464
25465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25466 fi
25467
25468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25469 # Binary search between lo and hi bounds.
25470 while test "x$ac_lo" != "x$ac_hi"; do
25471   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25472   cat >conftest.$ac_ext <<_ACEOF
25473 /* confdefs.h.  */
25474 _ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h.  */
25478 $ac_includes_default
25479 int
25480 main ()
25481 {
25482 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25483 test_array [0] = 0
25484
25485   ;
25486   return 0;
25487 }
25488 _ACEOF
25489 rm -f conftest.$ac_objext
25490 if { (ac_try="$ac_compile"
25491 case "(($ac_try" in
25492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493   *) ac_try_echo=$ac_try;;
25494 esac
25495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25496 $as_echo "$ac_try_echo") >&5
25497   (eval "$ac_compile") 2>conftest.er1
25498   ac_status=$?
25499   grep -v '^ *+' conftest.er1 >conftest.err
25500   rm -f conftest.er1
25501   cat conftest.err >&5
25502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503   (exit $ac_status); } && {
25504          test -z "$ac_c_werror_flag" ||
25505          test ! -s conftest.err
25506        } && test -s conftest.$ac_objext; then
25507   ac_hi=$ac_mid
25508 else
25509   $as_echo "$as_me: failed program was:" >&5
25510 sed 's/^/| /' conftest.$ac_ext >&5
25511
25512         ac_lo=`expr '(' $ac_mid ')' + 1`
25513 fi
25514
25515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25516 done
25517 case $ac_lo in
25518 ?*) ac_cv_sizeof_long=$ac_lo;;
25519 '') if test "$ac_cv_type_long" = yes; then
25520      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25522 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25523 See \`config.log' for more details." >&5
25524 $as_echo "$as_me: error: cannot compute sizeof (long)
25525 See \`config.log' for more details." >&2;}
25526    { (exit 77); exit 77; }; }; }
25527    else
25528      ac_cv_sizeof_long=0
25529    fi ;;
25530 esac
25531 else
25532   cat >conftest.$ac_ext <<_ACEOF
25533 /* confdefs.h.  */
25534 _ACEOF
25535 cat confdefs.h >>conftest.$ac_ext
25536 cat >>conftest.$ac_ext <<_ACEOF
25537 /* end confdefs.h.  */
25538 $ac_includes_default
25539 static long int longval () { return (long int) (sizeof (long)); }
25540 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25541 #include <stdio.h>
25542 #include <stdlib.h>
25543 int
25544 main ()
25545 {
25546
25547   FILE *f = fopen ("conftest.val", "w");
25548   if (! f)
25549     return 1;
25550   if (((long int) (sizeof (long))) < 0)
25551     {
25552       long int i = longval ();
25553       if (i != ((long int) (sizeof (long))))
25554         return 1;
25555       fprintf (f, "%ld", i);
25556     }
25557   else
25558     {
25559       unsigned long int i = ulongval ();
25560       if (i != ((long int) (sizeof (long))))
25561         return 1;
25562       fprintf (f, "%lu", i);
25563     }
25564   /* Do not output a trailing newline, as this causes \r\n confusion
25565      on some platforms.  */
25566   return ferror (f) || fclose (f) != 0;
25567
25568   ;
25569   return 0;
25570 }
25571 _ACEOF
25572 rm -f conftest$ac_exeext
25573 if { (ac_try="$ac_link"
25574 case "(($ac_try" in
25575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25576   *) ac_try_echo=$ac_try;;
25577 esac
25578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25579 $as_echo "$ac_try_echo") >&5
25580   (eval "$ac_link") 2>&5
25581   ac_status=$?
25582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25584   { (case "(($ac_try" in
25585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586   *) ac_try_echo=$ac_try;;
25587 esac
25588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25589 $as_echo "$ac_try_echo") >&5
25590   (eval "$ac_try") 2>&5
25591   ac_status=$?
25592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); }; }; then
25594   ac_cv_sizeof_long=`cat conftest.val`
25595 else
25596   $as_echo "$as_me: program exited with status $ac_status" >&5
25597 $as_echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25599
25600 ( exit $ac_status )
25601 if test "$ac_cv_type_long" = yes; then
25602      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25604 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25605 See \`config.log' for more details." >&5
25606 $as_echo "$as_me: error: cannot compute sizeof (long)
25607 See \`config.log' for more details." >&2;}
25608    { (exit 77); exit 77; }; }; }
25609    else
25610      ac_cv_sizeof_long=0
25611    fi
25612 fi
25613 rm -rf conftest.dSYM
25614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25615 fi
25616 rm -f conftest.val
25617 fi
25618 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25619 $as_echo "$ac_cv_sizeof_long" >&6; }
25620
25621
25622
25623 cat >>confdefs.h <<_ACEOF
25624 #define SIZEOF_LONG $ac_cv_sizeof_long
25625 _ACEOF
25626
25627
25628
25629 # Decide whether float4 is passed by value: user-selectable, enabled by default
25630 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25631 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25632
25633
25634 # Check whether --enable-float4-byval was given.
25635 if test "${enable_float4_byval+set}" = set; then
25636   enableval=$enable_float4_byval;
25637   case $enableval in
25638     yes)
25639
25640 cat >>confdefs.h <<\_ACEOF
25641 #define USE_FLOAT4_BYVAL 1
25642 _ACEOF
25643
25644                float4passbyval=true
25645       ;;
25646     no)
25647       float4passbyval=false
25648       ;;
25649     *)
25650       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25651 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25652    { (exit 1); exit 1; }; }
25653       ;;
25654   esac
25655
25656 else
25657   enable_float4_byval=yes
25658
25659 cat >>confdefs.h <<\_ACEOF
25660 #define USE_FLOAT4_BYVAL 1
25661 _ACEOF
25662
25663                float4passbyval=true
25664 fi
25665
25666
25667 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25668 $as_echo "$enable_float4_byval" >&6; }
25669
25670 cat >>confdefs.h <<_ACEOF
25671 #define FLOAT4PASSBYVAL $float4passbyval
25672 _ACEOF
25673
25674
25675 # Decide whether float8 is passed by value.
25676 # Note: this setting also controls int8 and related types such as timestamp.
25677 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25678 # If not, trying to select it is an error.
25679 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25680 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25681 if test $ac_cv_sizeof_void_p -ge 8 ; then
25682
25683
25684 # Check whether --enable-float8-byval was given.
25685 if test "${enable_float8_byval+set}" = set; then
25686   enableval=$enable_float8_byval;
25687   case $enableval in
25688     yes)
25689       :
25690       ;;
25691     no)
25692       :
25693       ;;
25694     *)
25695       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25696 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25697    { (exit 1); exit 1; }; }
25698       ;;
25699   esac
25700
25701 else
25702   enable_float8_byval=yes
25703
25704 fi
25705
25706
25707 else
25708
25709
25710 # Check whether --enable-float8-byval was given.
25711 if test "${enable_float8_byval+set}" = set; then
25712   enableval=$enable_float8_byval;
25713   case $enableval in
25714     yes)
25715       :
25716       ;;
25717     no)
25718       :
25719       ;;
25720     *)
25721       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25722 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25723    { (exit 1); exit 1; }; }
25724       ;;
25725   esac
25726
25727 else
25728   enable_float8_byval=no
25729
25730 fi
25731
25732
25733   if test "$enable_float8_byval" = yes ; then
25734     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25735 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25736    { (exit 1); exit 1; }; }
25737   fi
25738 fi
25739 if test "$enable_float8_byval" = yes ; then
25740
25741 cat >>confdefs.h <<\_ACEOF
25742 #define USE_FLOAT8_BYVAL 1
25743 _ACEOF
25744
25745   float8passbyval=true
25746 else
25747   float8passbyval=false
25748 fi
25749 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25750 $as_echo "$enable_float8_byval" >&6; }
25751
25752 cat >>confdefs.h <<_ACEOF
25753 #define FLOAT8PASSBYVAL $float8passbyval
25754 _ACEOF
25755
25756
25757 # Determine memory alignment requirements for the basic C data types.
25758
25759 # The cast to long int works around a bug in the HP C Compiler,
25760 # see AC_CHECK_SIZEOF for more information.
25761 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25762 $as_echo_n "checking alignment of short... " >&6; }
25763 if test "${ac_cv_alignof_short+set}" = set; then
25764   $as_echo_n "(cached) " >&6
25765 else
25766   if test "$cross_compiling" = yes; then
25767   # Depending upon the size, compute the lo and hi bounds.
25768 cat >conftest.$ac_ext <<_ACEOF
25769 /* confdefs.h.  */
25770 _ACEOF
25771 cat confdefs.h >>conftest.$ac_ext
25772 cat >>conftest.$ac_ext <<_ACEOF
25773 /* end confdefs.h.  */
25774 $ac_includes_default
25775 #ifndef offsetof
25776 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25777 #endif
25778 typedef struct { char x; short y; } ac__type_alignof_;
25779 int
25780 main ()
25781 {
25782 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25783 test_array [0] = 0
25784
25785   ;
25786   return 0;
25787 }
25788 _ACEOF
25789 rm -f conftest.$ac_objext
25790 if { (ac_try="$ac_compile"
25791 case "(($ac_try" in
25792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25793   *) ac_try_echo=$ac_try;;
25794 esac
25795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25796 $as_echo "$ac_try_echo") >&5
25797   (eval "$ac_compile") 2>conftest.er1
25798   ac_status=$?
25799   grep -v '^ *+' conftest.er1 >conftest.err
25800   rm -f conftest.er1
25801   cat conftest.err >&5
25802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803   (exit $ac_status); } && {
25804          test -z "$ac_c_werror_flag" ||
25805          test ! -s conftest.err
25806        } && test -s conftest.$ac_objext; then
25807   ac_lo=0 ac_mid=0
25808   while :; do
25809     cat >conftest.$ac_ext <<_ACEOF
25810 /* confdefs.h.  */
25811 _ACEOF
25812 cat confdefs.h >>conftest.$ac_ext
25813 cat >>conftest.$ac_ext <<_ACEOF
25814 /* end confdefs.h.  */
25815 $ac_includes_default
25816 #ifndef offsetof
25817 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25818 #endif
25819 typedef struct { char x; short y; } ac__type_alignof_;
25820 int
25821 main ()
25822 {
25823 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25824 test_array [0] = 0
25825
25826   ;
25827   return 0;
25828 }
25829 _ACEOF
25830 rm -f conftest.$ac_objext
25831 if { (ac_try="$ac_compile"
25832 case "(($ac_try" in
25833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834   *) ac_try_echo=$ac_try;;
25835 esac
25836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25837 $as_echo "$ac_try_echo") >&5
25838   (eval "$ac_compile") 2>conftest.er1
25839   ac_status=$?
25840   grep -v '^ *+' conftest.er1 >conftest.err
25841   rm -f conftest.er1
25842   cat conftest.err >&5
25843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844   (exit $ac_status); } && {
25845          test -z "$ac_c_werror_flag" ||
25846          test ! -s conftest.err
25847        } && test -s conftest.$ac_objext; then
25848   ac_hi=$ac_mid; break
25849 else
25850   $as_echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25852
25853         ac_lo=`expr $ac_mid + 1`
25854                         if test $ac_lo -le $ac_mid; then
25855                           ac_lo= ac_hi=
25856                           break
25857                         fi
25858                         ac_mid=`expr 2 '*' $ac_mid + 1`
25859 fi
25860
25861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25862   done
25863 else
25864   $as_echo "$as_me: failed program was:" >&5
25865 sed 's/^/| /' conftest.$ac_ext >&5
25866
25867         cat >conftest.$ac_ext <<_ACEOF
25868 /* confdefs.h.  */
25869 _ACEOF
25870 cat confdefs.h >>conftest.$ac_ext
25871 cat >>conftest.$ac_ext <<_ACEOF
25872 /* end confdefs.h.  */
25873 $ac_includes_default
25874 #ifndef offsetof
25875 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25876 #endif
25877 typedef struct { char x; short y; } ac__type_alignof_;
25878 int
25879 main ()
25880 {
25881 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25882 test_array [0] = 0
25883
25884   ;
25885   return 0;
25886 }
25887 _ACEOF
25888 rm -f conftest.$ac_objext
25889 if { (ac_try="$ac_compile"
25890 case "(($ac_try" in
25891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25892   *) ac_try_echo=$ac_try;;
25893 esac
25894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25895 $as_echo "$ac_try_echo") >&5
25896   (eval "$ac_compile") 2>conftest.er1
25897   ac_status=$?
25898   grep -v '^ *+' conftest.er1 >conftest.err
25899   rm -f conftest.er1
25900   cat conftest.err >&5
25901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902   (exit $ac_status); } && {
25903          test -z "$ac_c_werror_flag" ||
25904          test ! -s conftest.err
25905        } && test -s conftest.$ac_objext; then
25906   ac_hi=-1 ac_mid=-1
25907   while :; do
25908     cat >conftest.$ac_ext <<_ACEOF
25909 /* confdefs.h.  */
25910 _ACEOF
25911 cat confdefs.h >>conftest.$ac_ext
25912 cat >>conftest.$ac_ext <<_ACEOF
25913 /* end confdefs.h.  */
25914 $ac_includes_default
25915 #ifndef offsetof
25916 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25917 #endif
25918 typedef struct { char x; short y; } ac__type_alignof_;
25919 int
25920 main ()
25921 {
25922 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25923 test_array [0] = 0
25924
25925   ;
25926   return 0;
25927 }
25928 _ACEOF
25929 rm -f conftest.$ac_objext
25930 if { (ac_try="$ac_compile"
25931 case "(($ac_try" in
25932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25933   *) ac_try_echo=$ac_try;;
25934 esac
25935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25936 $as_echo "$ac_try_echo") >&5
25937   (eval "$ac_compile") 2>conftest.er1
25938   ac_status=$?
25939   grep -v '^ *+' conftest.er1 >conftest.err
25940   rm -f conftest.er1
25941   cat conftest.err >&5
25942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943   (exit $ac_status); } && {
25944          test -z "$ac_c_werror_flag" ||
25945          test ! -s conftest.err
25946        } && test -s conftest.$ac_objext; then
25947   ac_lo=$ac_mid; break
25948 else
25949   $as_echo "$as_me: failed program was:" >&5
25950 sed 's/^/| /' conftest.$ac_ext >&5
25951
25952         ac_hi=`expr '(' $ac_mid ')' - 1`
25953                         if test $ac_mid -le $ac_hi; then
25954                           ac_lo= ac_hi=
25955                           break
25956                         fi
25957                         ac_mid=`expr 2 '*' $ac_mid`
25958 fi
25959
25960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25961   done
25962 else
25963   $as_echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25965
25966         ac_lo= ac_hi=
25967 fi
25968
25969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25970 fi
25971
25972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25973 # Binary search between lo and hi bounds.
25974 while test "x$ac_lo" != "x$ac_hi"; do
25975   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25976   cat >conftest.$ac_ext <<_ACEOF
25977 /* confdefs.h.  */
25978 _ACEOF
25979 cat confdefs.h >>conftest.$ac_ext
25980 cat >>conftest.$ac_ext <<_ACEOF
25981 /* end confdefs.h.  */
25982 $ac_includes_default
25983 #ifndef offsetof
25984 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25985 #endif
25986 typedef struct { char x; short y; } ac__type_alignof_;
25987 int
25988 main ()
25989 {
25990 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25991 test_array [0] = 0
25992
25993   ;
25994   return 0;
25995 }
25996 _ACEOF
25997 rm -f conftest.$ac_objext
25998 if { (ac_try="$ac_compile"
25999 case "(($ac_try" in
26000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001   *) ac_try_echo=$ac_try;;
26002 esac
26003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26004 $as_echo "$ac_try_echo") >&5
26005   (eval "$ac_compile") 2>conftest.er1
26006   ac_status=$?
26007   grep -v '^ *+' conftest.er1 >conftest.err
26008   rm -f conftest.er1
26009   cat conftest.err >&5
26010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); } && {
26012          test -z "$ac_c_werror_flag" ||
26013          test ! -s conftest.err
26014        } && test -s conftest.$ac_objext; then
26015   ac_hi=$ac_mid
26016 else
26017   $as_echo "$as_me: failed program was:" >&5
26018 sed 's/^/| /' conftest.$ac_ext >&5
26019
26020         ac_lo=`expr '(' $ac_mid ')' + 1`
26021 fi
26022
26023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26024 done
26025 case $ac_lo in
26026 ?*) ac_cv_alignof_short=$ac_lo;;
26027 '') if test "$ac_cv_type_short" = yes; then
26028      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26030 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26031 See \`config.log' for more details." >&5
26032 $as_echo "$as_me: error: cannot compute alignment of short
26033 See \`config.log' for more details." >&2;}
26034    { (exit 77); exit 77; }; }; }
26035    else
26036      ac_cv_alignof_short=0
26037    fi ;;
26038 esac
26039 else
26040   cat >conftest.$ac_ext <<_ACEOF
26041 /* confdefs.h.  */
26042 _ACEOF
26043 cat confdefs.h >>conftest.$ac_ext
26044 cat >>conftest.$ac_ext <<_ACEOF
26045 /* end confdefs.h.  */
26046 $ac_includes_default
26047 #ifndef offsetof
26048 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26049 #endif
26050 typedef struct { char x; short y; } ac__type_alignof_;
26051 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26052 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26053 #include <stdio.h>
26054 #include <stdlib.h>
26055 int
26056 main ()
26057 {
26058
26059   FILE *f = fopen ("conftest.val", "w");
26060   if (! f)
26061     return 1;
26062   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26063     {
26064       long int i = longval ();
26065       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26066         return 1;
26067       fprintf (f, "%ld", i);
26068     }
26069   else
26070     {
26071       unsigned long int i = ulongval ();
26072       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26073         return 1;
26074       fprintf (f, "%lu", i);
26075     }
26076   /* Do not output a trailing newline, as this causes \r\n confusion
26077      on some platforms.  */
26078   return ferror (f) || fclose (f) != 0;
26079
26080   ;
26081   return 0;
26082 }
26083 _ACEOF
26084 rm -f conftest$ac_exeext
26085 if { (ac_try="$ac_link"
26086 case "(($ac_try" in
26087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26088   *) ac_try_echo=$ac_try;;
26089 esac
26090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26091 $as_echo "$ac_try_echo") >&5
26092   (eval "$ac_link") 2>&5
26093   ac_status=$?
26094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26096   { (case "(($ac_try" in
26097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26098   *) ac_try_echo=$ac_try;;
26099 esac
26100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26101 $as_echo "$ac_try_echo") >&5
26102   (eval "$ac_try") 2>&5
26103   ac_status=$?
26104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105   (exit $ac_status); }; }; then
26106   ac_cv_alignof_short=`cat conftest.val`
26107 else
26108   $as_echo "$as_me: program exited with status $ac_status" >&5
26109 $as_echo "$as_me: failed program was:" >&5
26110 sed 's/^/| /' conftest.$ac_ext >&5
26111
26112 ( exit $ac_status )
26113 if test "$ac_cv_type_short" = yes; then
26114      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26116 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26117 See \`config.log' for more details." >&5
26118 $as_echo "$as_me: error: cannot compute alignment of short
26119 See \`config.log' for more details." >&2;}
26120    { (exit 77); exit 77; }; }; }
26121    else
26122      ac_cv_alignof_short=0
26123    fi
26124 fi
26125 rm -rf conftest.dSYM
26126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26127 fi
26128 rm -f conftest.val
26129 fi
26130 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26131 $as_echo "$ac_cv_alignof_short" >&6; }
26132
26133
26134
26135 cat >>confdefs.h <<_ACEOF
26136 #define ALIGNOF_SHORT $ac_cv_alignof_short
26137 _ACEOF
26138
26139
26140 # The cast to long int works around a bug in the HP C Compiler,
26141 # see AC_CHECK_SIZEOF for more information.
26142 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26143 $as_echo_n "checking alignment of int... " >&6; }
26144 if test "${ac_cv_alignof_int+set}" = set; then
26145   $as_echo_n "(cached) " >&6
26146 else
26147   if test "$cross_compiling" = yes; then
26148   # Depending upon the size, compute the lo and hi bounds.
26149 cat >conftest.$ac_ext <<_ACEOF
26150 /* confdefs.h.  */
26151 _ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h.  */
26155 $ac_includes_default
26156 #ifndef offsetof
26157 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26158 #endif
26159 typedef struct { char x; int y; } ac__type_alignof_;
26160 int
26161 main ()
26162 {
26163 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26164 test_array [0] = 0
26165
26166   ;
26167   return 0;
26168 }
26169 _ACEOF
26170 rm -f conftest.$ac_objext
26171 if { (ac_try="$ac_compile"
26172 case "(($ac_try" in
26173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26174   *) ac_try_echo=$ac_try;;
26175 esac
26176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26177 $as_echo "$ac_try_echo") >&5
26178   (eval "$ac_compile") 2>conftest.er1
26179   ac_status=$?
26180   grep -v '^ *+' conftest.er1 >conftest.err
26181   rm -f conftest.er1
26182   cat conftest.err >&5
26183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); } && {
26185          test -z "$ac_c_werror_flag" ||
26186          test ! -s conftest.err
26187        } && test -s conftest.$ac_objext; then
26188   ac_lo=0 ac_mid=0
26189   while :; do
26190     cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h.  */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h.  */
26196 $ac_includes_default
26197 #ifndef offsetof
26198 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26199 #endif
26200 typedef struct { char x; int y; } ac__type_alignof_;
26201 int
26202 main ()
26203 {
26204 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26205 test_array [0] = 0
26206
26207   ;
26208   return 0;
26209 }
26210 _ACEOF
26211 rm -f conftest.$ac_objext
26212 if { (ac_try="$ac_compile"
26213 case "(($ac_try" in
26214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26215   *) ac_try_echo=$ac_try;;
26216 esac
26217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26218 $as_echo "$ac_try_echo") >&5
26219   (eval "$ac_compile") 2>conftest.er1
26220   ac_status=$?
26221   grep -v '^ *+' conftest.er1 >conftest.err
26222   rm -f conftest.er1
26223   cat conftest.err >&5
26224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225   (exit $ac_status); } && {
26226          test -z "$ac_c_werror_flag" ||
26227          test ! -s conftest.err
26228        } && test -s conftest.$ac_objext; then
26229   ac_hi=$ac_mid; break
26230 else
26231   $as_echo "$as_me: failed program was:" >&5
26232 sed 's/^/| /' conftest.$ac_ext >&5
26233
26234         ac_lo=`expr $ac_mid + 1`
26235                         if test $ac_lo -le $ac_mid; then
26236                           ac_lo= ac_hi=
26237                           break
26238                         fi
26239                         ac_mid=`expr 2 '*' $ac_mid + 1`
26240 fi
26241
26242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26243   done
26244 else
26245   $as_echo "$as_me: failed program was:" >&5
26246 sed 's/^/| /' conftest.$ac_ext >&5
26247
26248         cat >conftest.$ac_ext <<_ACEOF
26249 /* confdefs.h.  */
26250 _ACEOF
26251 cat confdefs.h >>conftest.$ac_ext
26252 cat >>conftest.$ac_ext <<_ACEOF
26253 /* end confdefs.h.  */
26254 $ac_includes_default
26255 #ifndef offsetof
26256 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26257 #endif
26258 typedef struct { char x; int y; } ac__type_alignof_;
26259 int
26260 main ()
26261 {
26262 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26263 test_array [0] = 0
26264
26265   ;
26266   return 0;
26267 }
26268 _ACEOF
26269 rm -f conftest.$ac_objext
26270 if { (ac_try="$ac_compile"
26271 case "(($ac_try" in
26272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26273   *) ac_try_echo=$ac_try;;
26274 esac
26275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26276 $as_echo "$ac_try_echo") >&5
26277   (eval "$ac_compile") 2>conftest.er1
26278   ac_status=$?
26279   grep -v '^ *+' conftest.er1 >conftest.err
26280   rm -f conftest.er1
26281   cat conftest.err >&5
26282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283   (exit $ac_status); } && {
26284          test -z "$ac_c_werror_flag" ||
26285          test ! -s conftest.err
26286        } && test -s conftest.$ac_objext; then
26287   ac_hi=-1 ac_mid=-1
26288   while :; do
26289     cat >conftest.$ac_ext <<_ACEOF
26290 /* confdefs.h.  */
26291 _ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h.  */
26295 $ac_includes_default
26296 #ifndef offsetof
26297 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26298 #endif
26299 typedef struct { char x; int y; } ac__type_alignof_;
26300 int
26301 main ()
26302 {
26303 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26304 test_array [0] = 0
26305
26306   ;
26307   return 0;
26308 }
26309 _ACEOF
26310 rm -f conftest.$ac_objext
26311 if { (ac_try="$ac_compile"
26312 case "(($ac_try" in
26313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26314   *) ac_try_echo=$ac_try;;
26315 esac
26316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26317 $as_echo "$ac_try_echo") >&5
26318   (eval "$ac_compile") 2>conftest.er1
26319   ac_status=$?
26320   grep -v '^ *+' conftest.er1 >conftest.err
26321   rm -f conftest.er1
26322   cat conftest.err >&5
26323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324   (exit $ac_status); } && {
26325          test -z "$ac_c_werror_flag" ||
26326          test ! -s conftest.err
26327        } && test -s conftest.$ac_objext; then
26328   ac_lo=$ac_mid; break
26329 else
26330   $as_echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26332
26333         ac_hi=`expr '(' $ac_mid ')' - 1`
26334                         if test $ac_mid -le $ac_hi; then
26335                           ac_lo= ac_hi=
26336                           break
26337                         fi
26338                         ac_mid=`expr 2 '*' $ac_mid`
26339 fi
26340
26341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26342   done
26343 else
26344   $as_echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26346
26347         ac_lo= ac_hi=
26348 fi
26349
26350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26351 fi
26352
26353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26354 # Binary search between lo and hi bounds.
26355 while test "x$ac_lo" != "x$ac_hi"; do
26356   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26357   cat >conftest.$ac_ext <<_ACEOF
26358 /* confdefs.h.  */
26359 _ACEOF
26360 cat confdefs.h >>conftest.$ac_ext
26361 cat >>conftest.$ac_ext <<_ACEOF
26362 /* end confdefs.h.  */
26363 $ac_includes_default
26364 #ifndef offsetof
26365 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26366 #endif
26367 typedef struct { char x; int y; } ac__type_alignof_;
26368 int
26369 main ()
26370 {
26371 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26372 test_array [0] = 0
26373
26374   ;
26375   return 0;
26376 }
26377 _ACEOF
26378 rm -f conftest.$ac_objext
26379 if { (ac_try="$ac_compile"
26380 case "(($ac_try" in
26381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26382   *) ac_try_echo=$ac_try;;
26383 esac
26384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26385 $as_echo "$ac_try_echo") >&5
26386   (eval "$ac_compile") 2>conftest.er1
26387   ac_status=$?
26388   grep -v '^ *+' conftest.er1 >conftest.err
26389   rm -f conftest.er1
26390   cat conftest.err >&5
26391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392   (exit $ac_status); } && {
26393          test -z "$ac_c_werror_flag" ||
26394          test ! -s conftest.err
26395        } && test -s conftest.$ac_objext; then
26396   ac_hi=$ac_mid
26397 else
26398   $as_echo "$as_me: failed program was:" >&5
26399 sed 's/^/| /' conftest.$ac_ext >&5
26400
26401         ac_lo=`expr '(' $ac_mid ')' + 1`
26402 fi
26403
26404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26405 done
26406 case $ac_lo in
26407 ?*) ac_cv_alignof_int=$ac_lo;;
26408 '') if test "$ac_cv_type_int" = yes; then
26409      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26411 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26412 See \`config.log' for more details." >&5
26413 $as_echo "$as_me: error: cannot compute alignment of int
26414 See \`config.log' for more details." >&2;}
26415    { (exit 77); exit 77; }; }; }
26416    else
26417      ac_cv_alignof_int=0
26418    fi ;;
26419 esac
26420 else
26421   cat >conftest.$ac_ext <<_ACEOF
26422 /* confdefs.h.  */
26423 _ACEOF
26424 cat confdefs.h >>conftest.$ac_ext
26425 cat >>conftest.$ac_ext <<_ACEOF
26426 /* end confdefs.h.  */
26427 $ac_includes_default
26428 #ifndef offsetof
26429 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26430 #endif
26431 typedef struct { char x; int y; } ac__type_alignof_;
26432 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26433 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26434 #include <stdio.h>
26435 #include <stdlib.h>
26436 int
26437 main ()
26438 {
26439
26440   FILE *f = fopen ("conftest.val", "w");
26441   if (! f)
26442     return 1;
26443   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26444     {
26445       long int i = longval ();
26446       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26447         return 1;
26448       fprintf (f, "%ld", i);
26449     }
26450   else
26451     {
26452       unsigned long int i = ulongval ();
26453       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26454         return 1;
26455       fprintf (f, "%lu", i);
26456     }
26457   /* Do not output a trailing newline, as this causes \r\n confusion
26458      on some platforms.  */
26459   return ferror (f) || fclose (f) != 0;
26460
26461   ;
26462   return 0;
26463 }
26464 _ACEOF
26465 rm -f conftest$ac_exeext
26466 if { (ac_try="$ac_link"
26467 case "(($ac_try" in
26468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469   *) ac_try_echo=$ac_try;;
26470 esac
26471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26472 $as_echo "$ac_try_echo") >&5
26473   (eval "$ac_link") 2>&5
26474   ac_status=$?
26475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26477   { (case "(($ac_try" in
26478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26479   *) ac_try_echo=$ac_try;;
26480 esac
26481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26482 $as_echo "$ac_try_echo") >&5
26483   (eval "$ac_try") 2>&5
26484   ac_status=$?
26485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486   (exit $ac_status); }; }; then
26487   ac_cv_alignof_int=`cat conftest.val`
26488 else
26489   $as_echo "$as_me: program exited with status $ac_status" >&5
26490 $as_echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26492
26493 ( exit $ac_status )
26494 if test "$ac_cv_type_int" = yes; then
26495      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26497 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26498 See \`config.log' for more details." >&5
26499 $as_echo "$as_me: error: cannot compute alignment of int
26500 See \`config.log' for more details." >&2;}
26501    { (exit 77); exit 77; }; }; }
26502    else
26503      ac_cv_alignof_int=0
26504    fi
26505 fi
26506 rm -rf conftest.dSYM
26507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26508 fi
26509 rm -f conftest.val
26510 fi
26511 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26512 $as_echo "$ac_cv_alignof_int" >&6; }
26513
26514
26515
26516 cat >>confdefs.h <<_ACEOF
26517 #define ALIGNOF_INT $ac_cv_alignof_int
26518 _ACEOF
26519
26520
26521 # The cast to long int works around a bug in the HP C Compiler,
26522 # see AC_CHECK_SIZEOF for more information.
26523 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26524 $as_echo_n "checking alignment of long... " >&6; }
26525 if test "${ac_cv_alignof_long+set}" = set; then
26526   $as_echo_n "(cached) " >&6
26527 else
26528   if test "$cross_compiling" = yes; then
26529   # Depending upon the size, compute the lo and hi bounds.
26530 cat >conftest.$ac_ext <<_ACEOF
26531 /* confdefs.h.  */
26532 _ACEOF
26533 cat confdefs.h >>conftest.$ac_ext
26534 cat >>conftest.$ac_ext <<_ACEOF
26535 /* end confdefs.h.  */
26536 $ac_includes_default
26537 #ifndef offsetof
26538 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26539 #endif
26540 typedef struct { char x; long y; } ac__type_alignof_;
26541 int
26542 main ()
26543 {
26544 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26545 test_array [0] = 0
26546
26547   ;
26548   return 0;
26549 }
26550 _ACEOF
26551 rm -f conftest.$ac_objext
26552 if { (ac_try="$ac_compile"
26553 case "(($ac_try" in
26554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26555   *) ac_try_echo=$ac_try;;
26556 esac
26557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26558 $as_echo "$ac_try_echo") >&5
26559   (eval "$ac_compile") 2>conftest.er1
26560   ac_status=$?
26561   grep -v '^ *+' conftest.er1 >conftest.err
26562   rm -f conftest.er1
26563   cat conftest.err >&5
26564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565   (exit $ac_status); } && {
26566          test -z "$ac_c_werror_flag" ||
26567          test ! -s conftest.err
26568        } && test -s conftest.$ac_objext; then
26569   ac_lo=0 ac_mid=0
26570   while :; do
26571     cat >conftest.$ac_ext <<_ACEOF
26572 /* confdefs.h.  */
26573 _ACEOF
26574 cat confdefs.h >>conftest.$ac_ext
26575 cat >>conftest.$ac_ext <<_ACEOF
26576 /* end confdefs.h.  */
26577 $ac_includes_default
26578 #ifndef offsetof
26579 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26580 #endif
26581 typedef struct { char x; long y; } ac__type_alignof_;
26582 int
26583 main ()
26584 {
26585 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26586 test_array [0] = 0
26587
26588   ;
26589   return 0;
26590 }
26591 _ACEOF
26592 rm -f conftest.$ac_objext
26593 if { (ac_try="$ac_compile"
26594 case "(($ac_try" in
26595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26596   *) ac_try_echo=$ac_try;;
26597 esac
26598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26599 $as_echo "$ac_try_echo") >&5
26600   (eval "$ac_compile") 2>conftest.er1
26601   ac_status=$?
26602   grep -v '^ *+' conftest.er1 >conftest.err
26603   rm -f conftest.er1
26604   cat conftest.err >&5
26605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606   (exit $ac_status); } && {
26607          test -z "$ac_c_werror_flag" ||
26608          test ! -s conftest.err
26609        } && test -s conftest.$ac_objext; then
26610   ac_hi=$ac_mid; break
26611 else
26612   $as_echo "$as_me: failed program was:" >&5
26613 sed 's/^/| /' conftest.$ac_ext >&5
26614
26615         ac_lo=`expr $ac_mid + 1`
26616                         if test $ac_lo -le $ac_mid; then
26617                           ac_lo= ac_hi=
26618                           break
26619                         fi
26620                         ac_mid=`expr 2 '*' $ac_mid + 1`
26621 fi
26622
26623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26624   done
26625 else
26626   $as_echo "$as_me: failed program was:" >&5
26627 sed 's/^/| /' conftest.$ac_ext >&5
26628
26629         cat >conftest.$ac_ext <<_ACEOF
26630 /* confdefs.h.  */
26631 _ACEOF
26632 cat confdefs.h >>conftest.$ac_ext
26633 cat >>conftest.$ac_ext <<_ACEOF
26634 /* end confdefs.h.  */
26635 $ac_includes_default
26636 #ifndef offsetof
26637 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26638 #endif
26639 typedef struct { char x; long y; } ac__type_alignof_;
26640 int
26641 main ()
26642 {
26643 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26644 test_array [0] = 0
26645
26646   ;
26647   return 0;
26648 }
26649 _ACEOF
26650 rm -f conftest.$ac_objext
26651 if { (ac_try="$ac_compile"
26652 case "(($ac_try" in
26653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26654   *) ac_try_echo=$ac_try;;
26655 esac
26656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26657 $as_echo "$ac_try_echo") >&5
26658   (eval "$ac_compile") 2>conftest.er1
26659   ac_status=$?
26660   grep -v '^ *+' conftest.er1 >conftest.err
26661   rm -f conftest.er1
26662   cat conftest.err >&5
26663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664   (exit $ac_status); } && {
26665          test -z "$ac_c_werror_flag" ||
26666          test ! -s conftest.err
26667        } && test -s conftest.$ac_objext; then
26668   ac_hi=-1 ac_mid=-1
26669   while :; do
26670     cat >conftest.$ac_ext <<_ACEOF
26671 /* confdefs.h.  */
26672 _ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h.  */
26676 $ac_includes_default
26677 #ifndef offsetof
26678 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26679 #endif
26680 typedef struct { char x; long y; } ac__type_alignof_;
26681 int
26682 main ()
26683 {
26684 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26685 test_array [0] = 0
26686
26687   ;
26688   return 0;
26689 }
26690 _ACEOF
26691 rm -f conftest.$ac_objext
26692 if { (ac_try="$ac_compile"
26693 case "(($ac_try" in
26694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26695   *) ac_try_echo=$ac_try;;
26696 esac
26697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26698 $as_echo "$ac_try_echo") >&5
26699   (eval "$ac_compile") 2>conftest.er1
26700   ac_status=$?
26701   grep -v '^ *+' conftest.er1 >conftest.err
26702   rm -f conftest.er1
26703   cat conftest.err >&5
26704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705   (exit $ac_status); } && {
26706          test -z "$ac_c_werror_flag" ||
26707          test ! -s conftest.err
26708        } && test -s conftest.$ac_objext; then
26709   ac_lo=$ac_mid; break
26710 else
26711   $as_echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26713
26714         ac_hi=`expr '(' $ac_mid ')' - 1`
26715                         if test $ac_mid -le $ac_hi; then
26716                           ac_lo= ac_hi=
26717                           break
26718                         fi
26719                         ac_mid=`expr 2 '*' $ac_mid`
26720 fi
26721
26722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26723   done
26724 else
26725   $as_echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26727
26728         ac_lo= ac_hi=
26729 fi
26730
26731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26732 fi
26733
26734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26735 # Binary search between lo and hi bounds.
26736 while test "x$ac_lo" != "x$ac_hi"; do
26737   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26738   cat >conftest.$ac_ext <<_ACEOF
26739 /* confdefs.h.  */
26740 _ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h.  */
26744 $ac_includes_default
26745 #ifndef offsetof
26746 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26747 #endif
26748 typedef struct { char x; long y; } ac__type_alignof_;
26749 int
26750 main ()
26751 {
26752 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26753 test_array [0] = 0
26754
26755   ;
26756   return 0;
26757 }
26758 _ACEOF
26759 rm -f conftest.$ac_objext
26760 if { (ac_try="$ac_compile"
26761 case "(($ac_try" in
26762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763   *) ac_try_echo=$ac_try;;
26764 esac
26765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26766 $as_echo "$ac_try_echo") >&5
26767   (eval "$ac_compile") 2>conftest.er1
26768   ac_status=$?
26769   grep -v '^ *+' conftest.er1 >conftest.err
26770   rm -f conftest.er1
26771   cat conftest.err >&5
26772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773   (exit $ac_status); } && {
26774          test -z "$ac_c_werror_flag" ||
26775          test ! -s conftest.err
26776        } && test -s conftest.$ac_objext; then
26777   ac_hi=$ac_mid
26778 else
26779   $as_echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26781
26782         ac_lo=`expr '(' $ac_mid ')' + 1`
26783 fi
26784
26785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26786 done
26787 case $ac_lo in
26788 ?*) ac_cv_alignof_long=$ac_lo;;
26789 '') if test "$ac_cv_type_long" = yes; then
26790      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26792 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26793 See \`config.log' for more details." >&5
26794 $as_echo "$as_me: error: cannot compute alignment of long
26795 See \`config.log' for more details." >&2;}
26796    { (exit 77); exit 77; }; }; }
26797    else
26798      ac_cv_alignof_long=0
26799    fi ;;
26800 esac
26801 else
26802   cat >conftest.$ac_ext <<_ACEOF
26803 /* confdefs.h.  */
26804 _ACEOF
26805 cat confdefs.h >>conftest.$ac_ext
26806 cat >>conftest.$ac_ext <<_ACEOF
26807 /* end confdefs.h.  */
26808 $ac_includes_default
26809 #ifndef offsetof
26810 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26811 #endif
26812 typedef struct { char x; long y; } ac__type_alignof_;
26813 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26814 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26815 #include <stdio.h>
26816 #include <stdlib.h>
26817 int
26818 main ()
26819 {
26820
26821   FILE *f = fopen ("conftest.val", "w");
26822   if (! f)
26823     return 1;
26824   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26825     {
26826       long int i = longval ();
26827       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26828         return 1;
26829       fprintf (f, "%ld", i);
26830     }
26831   else
26832     {
26833       unsigned long int i = ulongval ();
26834       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26835         return 1;
26836       fprintf (f, "%lu", i);
26837     }
26838   /* Do not output a trailing newline, as this causes \r\n confusion
26839      on some platforms.  */
26840   return ferror (f) || fclose (f) != 0;
26841
26842   ;
26843   return 0;
26844 }
26845 _ACEOF
26846 rm -f conftest$ac_exeext
26847 if { (ac_try="$ac_link"
26848 case "(($ac_try" in
26849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26850   *) ac_try_echo=$ac_try;;
26851 esac
26852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26853 $as_echo "$ac_try_echo") >&5
26854   (eval "$ac_link") 2>&5
26855   ac_status=$?
26856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26858   { (case "(($ac_try" in
26859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860   *) ac_try_echo=$ac_try;;
26861 esac
26862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26863 $as_echo "$ac_try_echo") >&5
26864   (eval "$ac_try") 2>&5
26865   ac_status=$?
26866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867   (exit $ac_status); }; }; then
26868   ac_cv_alignof_long=`cat conftest.val`
26869 else
26870   $as_echo "$as_me: program exited with status $ac_status" >&5
26871 $as_echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26873
26874 ( exit $ac_status )
26875 if test "$ac_cv_type_long" = yes; then
26876      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26878 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26879 See \`config.log' for more details." >&5
26880 $as_echo "$as_me: error: cannot compute alignment of long
26881 See \`config.log' for more details." >&2;}
26882    { (exit 77); exit 77; }; }; }
26883    else
26884      ac_cv_alignof_long=0
26885    fi
26886 fi
26887 rm -rf conftest.dSYM
26888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26889 fi
26890 rm -f conftest.val
26891 fi
26892 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26893 $as_echo "$ac_cv_alignof_long" >&6; }
26894
26895
26896
26897 cat >>confdefs.h <<_ACEOF
26898 #define ALIGNOF_LONG $ac_cv_alignof_long
26899 _ACEOF
26900
26901
26902 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26903   # The cast to long int works around a bug in the HP C Compiler,
26904 # see AC_CHECK_SIZEOF for more information.
26905 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26906 $as_echo_n "checking alignment of long long int... " >&6; }
26907 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26908   $as_echo_n "(cached) " >&6
26909 else
26910   if test "$cross_compiling" = yes; then
26911   # Depending upon the size, compute the lo and hi bounds.
26912 cat >conftest.$ac_ext <<_ACEOF
26913 /* confdefs.h.  */
26914 _ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h.  */
26918 $ac_includes_default
26919 #ifndef offsetof
26920 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26921 #endif
26922 typedef struct { char x; long long int y; } ac__type_alignof_;
26923 int
26924 main ()
26925 {
26926 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26927 test_array [0] = 0
26928
26929   ;
26930   return 0;
26931 }
26932 _ACEOF
26933 rm -f conftest.$ac_objext
26934 if { (ac_try="$ac_compile"
26935 case "(($ac_try" in
26936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937   *) ac_try_echo=$ac_try;;
26938 esac
26939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26940 $as_echo "$ac_try_echo") >&5
26941   (eval "$ac_compile") 2>conftest.er1
26942   ac_status=$?
26943   grep -v '^ *+' conftest.er1 >conftest.err
26944   rm -f conftest.er1
26945   cat conftest.err >&5
26946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947   (exit $ac_status); } && {
26948          test -z "$ac_c_werror_flag" ||
26949          test ! -s conftest.err
26950        } && test -s conftest.$ac_objext; then
26951   ac_lo=0 ac_mid=0
26952   while :; do
26953     cat >conftest.$ac_ext <<_ACEOF
26954 /* confdefs.h.  */
26955 _ACEOF
26956 cat confdefs.h >>conftest.$ac_ext
26957 cat >>conftest.$ac_ext <<_ACEOF
26958 /* end confdefs.h.  */
26959 $ac_includes_default
26960 #ifndef offsetof
26961 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26962 #endif
26963 typedef struct { char x; long long int y; } ac__type_alignof_;
26964 int
26965 main ()
26966 {
26967 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26968 test_array [0] = 0
26969
26970   ;
26971   return 0;
26972 }
26973 _ACEOF
26974 rm -f conftest.$ac_objext
26975 if { (ac_try="$ac_compile"
26976 case "(($ac_try" in
26977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26978   *) ac_try_echo=$ac_try;;
26979 esac
26980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26981 $as_echo "$ac_try_echo") >&5
26982   (eval "$ac_compile") 2>conftest.er1
26983   ac_status=$?
26984   grep -v '^ *+' conftest.er1 >conftest.err
26985   rm -f conftest.er1
26986   cat conftest.err >&5
26987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988   (exit $ac_status); } && {
26989          test -z "$ac_c_werror_flag" ||
26990          test ! -s conftest.err
26991        } && test -s conftest.$ac_objext; then
26992   ac_hi=$ac_mid; break
26993 else
26994   $as_echo "$as_me: failed program was:" >&5
26995 sed 's/^/| /' conftest.$ac_ext >&5
26996
26997         ac_lo=`expr $ac_mid + 1`
26998                         if test $ac_lo -le $ac_mid; then
26999                           ac_lo= ac_hi=
27000                           break
27001                         fi
27002                         ac_mid=`expr 2 '*' $ac_mid + 1`
27003 fi
27004
27005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27006   done
27007 else
27008   $as_echo "$as_me: failed program was:" >&5
27009 sed 's/^/| /' conftest.$ac_ext >&5
27010
27011         cat >conftest.$ac_ext <<_ACEOF
27012 /* confdefs.h.  */
27013 _ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h.  */
27017 $ac_includes_default
27018 #ifndef offsetof
27019 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27020 #endif
27021 typedef struct { char x; long long int y; } ac__type_alignof_;
27022 int
27023 main ()
27024 {
27025 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27026 test_array [0] = 0
27027
27028   ;
27029   return 0;
27030 }
27031 _ACEOF
27032 rm -f conftest.$ac_objext
27033 if { (ac_try="$ac_compile"
27034 case "(($ac_try" in
27035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27036   *) ac_try_echo=$ac_try;;
27037 esac
27038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27039 $as_echo "$ac_try_echo") >&5
27040   (eval "$ac_compile") 2>conftest.er1
27041   ac_status=$?
27042   grep -v '^ *+' conftest.er1 >conftest.err
27043   rm -f conftest.er1
27044   cat conftest.err >&5
27045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046   (exit $ac_status); } && {
27047          test -z "$ac_c_werror_flag" ||
27048          test ! -s conftest.err
27049        } && test -s conftest.$ac_objext; then
27050   ac_hi=-1 ac_mid=-1
27051   while :; do
27052     cat >conftest.$ac_ext <<_ACEOF
27053 /* confdefs.h.  */
27054 _ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h.  */
27058 $ac_includes_default
27059 #ifndef offsetof
27060 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27061 #endif
27062 typedef struct { char x; long long int y; } ac__type_alignof_;
27063 int
27064 main ()
27065 {
27066 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27067 test_array [0] = 0
27068
27069   ;
27070   return 0;
27071 }
27072 _ACEOF
27073 rm -f conftest.$ac_objext
27074 if { (ac_try="$ac_compile"
27075 case "(($ac_try" in
27076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077   *) ac_try_echo=$ac_try;;
27078 esac
27079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27080 $as_echo "$ac_try_echo") >&5
27081   (eval "$ac_compile") 2>conftest.er1
27082   ac_status=$?
27083   grep -v '^ *+' conftest.er1 >conftest.err
27084   rm -f conftest.er1
27085   cat conftest.err >&5
27086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087   (exit $ac_status); } && {
27088          test -z "$ac_c_werror_flag" ||
27089          test ! -s conftest.err
27090        } && test -s conftest.$ac_objext; then
27091   ac_lo=$ac_mid; break
27092 else
27093   $as_echo "$as_me: failed program was:" >&5
27094 sed 's/^/| /' conftest.$ac_ext >&5
27095
27096         ac_hi=`expr '(' $ac_mid ')' - 1`
27097                         if test $ac_mid -le $ac_hi; then
27098                           ac_lo= ac_hi=
27099                           break
27100                         fi
27101                         ac_mid=`expr 2 '*' $ac_mid`
27102 fi
27103
27104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27105   done
27106 else
27107   $as_echo "$as_me: failed program was:" >&5
27108 sed 's/^/| /' conftest.$ac_ext >&5
27109
27110         ac_lo= ac_hi=
27111 fi
27112
27113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27114 fi
27115
27116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27117 # Binary search between lo and hi bounds.
27118 while test "x$ac_lo" != "x$ac_hi"; do
27119   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27120   cat >conftest.$ac_ext <<_ACEOF
27121 /* confdefs.h.  */
27122 _ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h.  */
27126 $ac_includes_default
27127 #ifndef offsetof
27128 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27129 #endif
27130 typedef struct { char x; long long int y; } ac__type_alignof_;
27131 int
27132 main ()
27133 {
27134 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27135 test_array [0] = 0
27136
27137   ;
27138   return 0;
27139 }
27140 _ACEOF
27141 rm -f conftest.$ac_objext
27142 if { (ac_try="$ac_compile"
27143 case "(($ac_try" in
27144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145   *) ac_try_echo=$ac_try;;
27146 esac
27147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27148 $as_echo "$ac_try_echo") >&5
27149   (eval "$ac_compile") 2>conftest.er1
27150   ac_status=$?
27151   grep -v '^ *+' conftest.er1 >conftest.err
27152   rm -f conftest.er1
27153   cat conftest.err >&5
27154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155   (exit $ac_status); } && {
27156          test -z "$ac_c_werror_flag" ||
27157          test ! -s conftest.err
27158        } && test -s conftest.$ac_objext; then
27159   ac_hi=$ac_mid
27160 else
27161   $as_echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27163
27164         ac_lo=`expr '(' $ac_mid ')' + 1`
27165 fi
27166
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27168 done
27169 case $ac_lo in
27170 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27171 '') if test "$ac_cv_type_long_long_int" = yes; then
27172      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27174 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27175 See \`config.log' for more details." >&5
27176 $as_echo "$as_me: error: cannot compute alignment of long long int
27177 See \`config.log' for more details." >&2;}
27178    { (exit 77); exit 77; }; }; }
27179    else
27180      ac_cv_alignof_long_long_int=0
27181    fi ;;
27182 esac
27183 else
27184   cat >conftest.$ac_ext <<_ACEOF
27185 /* confdefs.h.  */
27186 _ACEOF
27187 cat confdefs.h >>conftest.$ac_ext
27188 cat >>conftest.$ac_ext <<_ACEOF
27189 /* end confdefs.h.  */
27190 $ac_includes_default
27191 #ifndef offsetof
27192 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27193 #endif
27194 typedef struct { char x; long long int y; } ac__type_alignof_;
27195 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27196 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27197 #include <stdio.h>
27198 #include <stdlib.h>
27199 int
27200 main ()
27201 {
27202
27203   FILE *f = fopen ("conftest.val", "w");
27204   if (! f)
27205     return 1;
27206   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27207     {
27208       long int i = longval ();
27209       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27210         return 1;
27211       fprintf (f, "%ld", i);
27212     }
27213   else
27214     {
27215       unsigned long int i = ulongval ();
27216       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27217         return 1;
27218       fprintf (f, "%lu", i);
27219     }
27220   /* Do not output a trailing newline, as this causes \r\n confusion
27221      on some platforms.  */
27222   return ferror (f) || fclose (f) != 0;
27223
27224   ;
27225   return 0;
27226 }
27227 _ACEOF
27228 rm -f conftest$ac_exeext
27229 if { (ac_try="$ac_link"
27230 case "(($ac_try" in
27231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27232   *) ac_try_echo=$ac_try;;
27233 esac
27234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27235 $as_echo "$ac_try_echo") >&5
27236   (eval "$ac_link") 2>&5
27237   ac_status=$?
27238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27240   { (case "(($ac_try" in
27241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27242   *) ac_try_echo=$ac_try;;
27243 esac
27244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27245 $as_echo "$ac_try_echo") >&5
27246   (eval "$ac_try") 2>&5
27247   ac_status=$?
27248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249   (exit $ac_status); }; }; then
27250   ac_cv_alignof_long_long_int=`cat conftest.val`
27251 else
27252   $as_echo "$as_me: program exited with status $ac_status" >&5
27253 $as_echo "$as_me: failed program was:" >&5
27254 sed 's/^/| /' conftest.$ac_ext >&5
27255
27256 ( exit $ac_status )
27257 if test "$ac_cv_type_long_long_int" = yes; then
27258      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27260 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27261 See \`config.log' for more details." >&5
27262 $as_echo "$as_me: error: cannot compute alignment of long long int
27263 See \`config.log' for more details." >&2;}
27264    { (exit 77); exit 77; }; }; }
27265    else
27266      ac_cv_alignof_long_long_int=0
27267    fi
27268 fi
27269 rm -rf conftest.dSYM
27270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27271 fi
27272 rm -f conftest.val
27273 fi
27274 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27275 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27276
27277
27278
27279 cat >>confdefs.h <<_ACEOF
27280 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27281 _ACEOF
27282
27283
27284 fi
27285 # The cast to long int works around a bug in the HP C Compiler,
27286 # see AC_CHECK_SIZEOF for more information.
27287 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27288 $as_echo_n "checking alignment of double... " >&6; }
27289 if test "${ac_cv_alignof_double+set}" = set; then
27290   $as_echo_n "(cached) " >&6
27291 else
27292   if test "$cross_compiling" = yes; then
27293   # Depending upon the size, compute the lo and hi bounds.
27294 cat >conftest.$ac_ext <<_ACEOF
27295 /* confdefs.h.  */
27296 _ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h.  */
27300 $ac_includes_default
27301 #ifndef offsetof
27302 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27303 #endif
27304 typedef struct { char x; double y; } ac__type_alignof_;
27305 int
27306 main ()
27307 {
27308 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27309 test_array [0] = 0
27310
27311   ;
27312   return 0;
27313 }
27314 _ACEOF
27315 rm -f conftest.$ac_objext
27316 if { (ac_try="$ac_compile"
27317 case "(($ac_try" in
27318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319   *) ac_try_echo=$ac_try;;
27320 esac
27321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27322 $as_echo "$ac_try_echo") >&5
27323   (eval "$ac_compile") 2>conftest.er1
27324   ac_status=$?
27325   grep -v '^ *+' conftest.er1 >conftest.err
27326   rm -f conftest.er1
27327   cat conftest.err >&5
27328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329   (exit $ac_status); } && {
27330          test -z "$ac_c_werror_flag" ||
27331          test ! -s conftest.err
27332        } && test -s conftest.$ac_objext; then
27333   ac_lo=0 ac_mid=0
27334   while :; do
27335     cat >conftest.$ac_ext <<_ACEOF
27336 /* confdefs.h.  */
27337 _ACEOF
27338 cat confdefs.h >>conftest.$ac_ext
27339 cat >>conftest.$ac_ext <<_ACEOF
27340 /* end confdefs.h.  */
27341 $ac_includes_default
27342 #ifndef offsetof
27343 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27344 #endif
27345 typedef struct { char x; double y; } ac__type_alignof_;
27346 int
27347 main ()
27348 {
27349 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27350 test_array [0] = 0
27351
27352   ;
27353   return 0;
27354 }
27355 _ACEOF
27356 rm -f conftest.$ac_objext
27357 if { (ac_try="$ac_compile"
27358 case "(($ac_try" in
27359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27360   *) ac_try_echo=$ac_try;;
27361 esac
27362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27363 $as_echo "$ac_try_echo") >&5
27364   (eval "$ac_compile") 2>conftest.er1
27365   ac_status=$?
27366   grep -v '^ *+' conftest.er1 >conftest.err
27367   rm -f conftest.er1
27368   cat conftest.err >&5
27369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370   (exit $ac_status); } && {
27371          test -z "$ac_c_werror_flag" ||
27372          test ! -s conftest.err
27373        } && test -s conftest.$ac_objext; then
27374   ac_hi=$ac_mid; break
27375 else
27376   $as_echo "$as_me: failed program was:" >&5
27377 sed 's/^/| /' conftest.$ac_ext >&5
27378
27379         ac_lo=`expr $ac_mid + 1`
27380                         if test $ac_lo -le $ac_mid; then
27381                           ac_lo= ac_hi=
27382                           break
27383                         fi
27384                         ac_mid=`expr 2 '*' $ac_mid + 1`
27385 fi
27386
27387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27388   done
27389 else
27390   $as_echo "$as_me: failed program was:" >&5
27391 sed 's/^/| /' conftest.$ac_ext >&5
27392
27393         cat >conftest.$ac_ext <<_ACEOF
27394 /* confdefs.h.  */
27395 _ACEOF
27396 cat confdefs.h >>conftest.$ac_ext
27397 cat >>conftest.$ac_ext <<_ACEOF
27398 /* end confdefs.h.  */
27399 $ac_includes_default
27400 #ifndef offsetof
27401 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27402 #endif
27403 typedef struct { char x; double y; } ac__type_alignof_;
27404 int
27405 main ()
27406 {
27407 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27408 test_array [0] = 0
27409
27410   ;
27411   return 0;
27412 }
27413 _ACEOF
27414 rm -f conftest.$ac_objext
27415 if { (ac_try="$ac_compile"
27416 case "(($ac_try" in
27417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418   *) ac_try_echo=$ac_try;;
27419 esac
27420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27421 $as_echo "$ac_try_echo") >&5
27422   (eval "$ac_compile") 2>conftest.er1
27423   ac_status=$?
27424   grep -v '^ *+' conftest.er1 >conftest.err
27425   rm -f conftest.er1
27426   cat conftest.err >&5
27427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428   (exit $ac_status); } && {
27429          test -z "$ac_c_werror_flag" ||
27430          test ! -s conftest.err
27431        } && test -s conftest.$ac_objext; then
27432   ac_hi=-1 ac_mid=-1
27433   while :; do
27434     cat >conftest.$ac_ext <<_ACEOF
27435 /* confdefs.h.  */
27436 _ACEOF
27437 cat confdefs.h >>conftest.$ac_ext
27438 cat >>conftest.$ac_ext <<_ACEOF
27439 /* end confdefs.h.  */
27440 $ac_includes_default
27441 #ifndef offsetof
27442 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27443 #endif
27444 typedef struct { char x; double y; } ac__type_alignof_;
27445 int
27446 main ()
27447 {
27448 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27449 test_array [0] = 0
27450
27451   ;
27452   return 0;
27453 }
27454 _ACEOF
27455 rm -f conftest.$ac_objext
27456 if { (ac_try="$ac_compile"
27457 case "(($ac_try" in
27458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27459   *) ac_try_echo=$ac_try;;
27460 esac
27461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27462 $as_echo "$ac_try_echo") >&5
27463   (eval "$ac_compile") 2>conftest.er1
27464   ac_status=$?
27465   grep -v '^ *+' conftest.er1 >conftest.err
27466   rm -f conftest.er1
27467   cat conftest.err >&5
27468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469   (exit $ac_status); } && {
27470          test -z "$ac_c_werror_flag" ||
27471          test ! -s conftest.err
27472        } && test -s conftest.$ac_objext; then
27473   ac_lo=$ac_mid; break
27474 else
27475   $as_echo "$as_me: failed program was:" >&5
27476 sed 's/^/| /' conftest.$ac_ext >&5
27477
27478         ac_hi=`expr '(' $ac_mid ')' - 1`
27479                         if test $ac_mid -le $ac_hi; then
27480                           ac_lo= ac_hi=
27481                           break
27482                         fi
27483                         ac_mid=`expr 2 '*' $ac_mid`
27484 fi
27485
27486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27487   done
27488 else
27489   $as_echo "$as_me: failed program was:" >&5
27490 sed 's/^/| /' conftest.$ac_ext >&5
27491
27492         ac_lo= ac_hi=
27493 fi
27494
27495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27496 fi
27497
27498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27499 # Binary search between lo and hi bounds.
27500 while test "x$ac_lo" != "x$ac_hi"; do
27501   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27502   cat >conftest.$ac_ext <<_ACEOF
27503 /* confdefs.h.  */
27504 _ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h.  */
27508 $ac_includes_default
27509 #ifndef offsetof
27510 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27511 #endif
27512 typedef struct { char x; double y; } ac__type_alignof_;
27513 int
27514 main ()
27515 {
27516 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27517 test_array [0] = 0
27518
27519   ;
27520   return 0;
27521 }
27522 _ACEOF
27523 rm -f conftest.$ac_objext
27524 if { (ac_try="$ac_compile"
27525 case "(($ac_try" in
27526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527   *) ac_try_echo=$ac_try;;
27528 esac
27529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27530 $as_echo "$ac_try_echo") >&5
27531   (eval "$ac_compile") 2>conftest.er1
27532   ac_status=$?
27533   grep -v '^ *+' conftest.er1 >conftest.err
27534   rm -f conftest.er1
27535   cat conftest.err >&5
27536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537   (exit $ac_status); } && {
27538          test -z "$ac_c_werror_flag" ||
27539          test ! -s conftest.err
27540        } && test -s conftest.$ac_objext; then
27541   ac_hi=$ac_mid
27542 else
27543   $as_echo "$as_me: failed program was:" >&5
27544 sed 's/^/| /' conftest.$ac_ext >&5
27545
27546         ac_lo=`expr '(' $ac_mid ')' + 1`
27547 fi
27548
27549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27550 done
27551 case $ac_lo in
27552 ?*) ac_cv_alignof_double=$ac_lo;;
27553 '') if test "$ac_cv_type_double" = yes; then
27554      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27556 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27557 See \`config.log' for more details." >&5
27558 $as_echo "$as_me: error: cannot compute alignment of double
27559 See \`config.log' for more details." >&2;}
27560    { (exit 77); exit 77; }; }; }
27561    else
27562      ac_cv_alignof_double=0
27563    fi ;;
27564 esac
27565 else
27566   cat >conftest.$ac_ext <<_ACEOF
27567 /* confdefs.h.  */
27568 _ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h.  */
27572 $ac_includes_default
27573 #ifndef offsetof
27574 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27575 #endif
27576 typedef struct { char x; double y; } ac__type_alignof_;
27577 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27578 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27579 #include <stdio.h>
27580 #include <stdlib.h>
27581 int
27582 main ()
27583 {
27584
27585   FILE *f = fopen ("conftest.val", "w");
27586   if (! f)
27587     return 1;
27588   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27589     {
27590       long int i = longval ();
27591       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27592         return 1;
27593       fprintf (f, "%ld", i);
27594     }
27595   else
27596     {
27597       unsigned long int i = ulongval ();
27598       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27599         return 1;
27600       fprintf (f, "%lu", i);
27601     }
27602   /* Do not output a trailing newline, as this causes \r\n confusion
27603      on some platforms.  */
27604   return ferror (f) || fclose (f) != 0;
27605
27606   ;
27607   return 0;
27608 }
27609 _ACEOF
27610 rm -f conftest$ac_exeext
27611 if { (ac_try="$ac_link"
27612 case "(($ac_try" in
27613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27614   *) ac_try_echo=$ac_try;;
27615 esac
27616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27617 $as_echo "$ac_try_echo") >&5
27618   (eval "$ac_link") 2>&5
27619   ac_status=$?
27620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27622   { (case "(($ac_try" in
27623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27624   *) ac_try_echo=$ac_try;;
27625 esac
27626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27627 $as_echo "$ac_try_echo") >&5
27628   (eval "$ac_try") 2>&5
27629   ac_status=$?
27630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631   (exit $ac_status); }; }; then
27632   ac_cv_alignof_double=`cat conftest.val`
27633 else
27634   $as_echo "$as_me: program exited with status $ac_status" >&5
27635 $as_echo "$as_me: failed program was:" >&5
27636 sed 's/^/| /' conftest.$ac_ext >&5
27637
27638 ( exit $ac_status )
27639 if test "$ac_cv_type_double" = yes; then
27640      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27642 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27643 See \`config.log' for more details." >&5
27644 $as_echo "$as_me: error: cannot compute alignment of double
27645 See \`config.log' for more details." >&2;}
27646    { (exit 77); exit 77; }; }; }
27647    else
27648      ac_cv_alignof_double=0
27649    fi
27650 fi
27651 rm -rf conftest.dSYM
27652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27653 fi
27654 rm -f conftest.val
27655 fi
27656 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27657 $as_echo "$ac_cv_alignof_double" >&6; }
27658
27659
27660
27661 cat >>confdefs.h <<_ACEOF
27662 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27663 _ACEOF
27664
27665
27666
27667 # Compute maximum alignment of any basic type.
27668 # We assume long's alignment is at least as strong as char, short, or int;
27669 # but we must check long long (if it exists) and double.
27670
27671 MAX_ALIGNOF=$ac_cv_alignof_long
27672 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27673   MAX_ALIGNOF=$ac_cv_alignof_double
27674 fi
27675 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27676   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27677 fi
27678
27679 cat >>confdefs.h <<_ACEOF
27680 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27681 _ACEOF
27682
27683
27684
27685 # Some platforms predefine the types int8, int16, etc.  Only check
27686 # a (hopefully) representative subset.
27687 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27688 $as_echo_n "checking for int8... " >&6; }
27689 if test "${ac_cv_type_int8+set}" = set; then
27690   $as_echo_n "(cached) " >&6
27691 else
27692   ac_cv_type_int8=no
27693 cat >conftest.$ac_ext <<_ACEOF
27694 /* confdefs.h.  */
27695 _ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h.  */
27699 #include <stdio.h>
27700 #ifdef HAVE_SUPPORTDEFS_H
27701 #include <SupportDefs.h>
27702 #endif
27703
27704 int
27705 main ()
27706 {
27707 if (sizeof (int8))
27708        return 0;
27709   ;
27710   return 0;
27711 }
27712 _ACEOF
27713 rm -f conftest.$ac_objext
27714 if { (ac_try="$ac_compile"
27715 case "(($ac_try" in
27716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717   *) ac_try_echo=$ac_try;;
27718 esac
27719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27720 $as_echo "$ac_try_echo") >&5
27721   (eval "$ac_compile") 2>conftest.er1
27722   ac_status=$?
27723   grep -v '^ *+' conftest.er1 >conftest.err
27724   rm -f conftest.er1
27725   cat conftest.err >&5
27726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727   (exit $ac_status); } && {
27728          test -z "$ac_c_werror_flag" ||
27729          test ! -s conftest.err
27730        } && test -s conftest.$ac_objext; then
27731   cat >conftest.$ac_ext <<_ACEOF
27732 /* confdefs.h.  */
27733 _ACEOF
27734 cat confdefs.h >>conftest.$ac_ext
27735 cat >>conftest.$ac_ext <<_ACEOF
27736 /* end confdefs.h.  */
27737 #include <stdio.h>
27738 #ifdef HAVE_SUPPORTDEFS_H
27739 #include <SupportDefs.h>
27740 #endif
27741
27742 int
27743 main ()
27744 {
27745 if (sizeof ((int8)))
27746           return 0;
27747   ;
27748   return 0;
27749 }
27750 _ACEOF
27751 rm -f conftest.$ac_objext
27752 if { (ac_try="$ac_compile"
27753 case "(($ac_try" in
27754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755   *) ac_try_echo=$ac_try;;
27756 esac
27757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27758 $as_echo "$ac_try_echo") >&5
27759   (eval "$ac_compile") 2>conftest.er1
27760   ac_status=$?
27761   grep -v '^ *+' conftest.er1 >conftest.err
27762   rm -f conftest.er1
27763   cat conftest.err >&5
27764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); } && {
27766          test -z "$ac_c_werror_flag" ||
27767          test ! -s conftest.err
27768        } && test -s conftest.$ac_objext; then
27769   :
27770 else
27771   $as_echo "$as_me: failed program was:" >&5
27772 sed 's/^/| /' conftest.$ac_ext >&5
27773
27774         ac_cv_type_int8=yes
27775 fi
27776
27777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27778 else
27779   $as_echo "$as_me: failed program was:" >&5
27780 sed 's/^/| /' conftest.$ac_ext >&5
27781
27782
27783 fi
27784
27785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27786 fi
27787 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27788 $as_echo "$ac_cv_type_int8" >&6; }
27789 if test "x$ac_cv_type_int8" = x""yes; then
27790
27791 cat >>confdefs.h <<_ACEOF
27792 #define HAVE_INT8 1
27793 _ACEOF
27794
27795
27796 fi
27797 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27798 $as_echo_n "checking for uint8... " >&6; }
27799 if test "${ac_cv_type_uint8+set}" = set; then
27800   $as_echo_n "(cached) " >&6
27801 else
27802   ac_cv_type_uint8=no
27803 cat >conftest.$ac_ext <<_ACEOF
27804 /* confdefs.h.  */
27805 _ACEOF
27806 cat confdefs.h >>conftest.$ac_ext
27807 cat >>conftest.$ac_ext <<_ACEOF
27808 /* end confdefs.h.  */
27809 #include <stdio.h>
27810 #ifdef HAVE_SUPPORTDEFS_H
27811 #include <SupportDefs.h>
27812 #endif
27813
27814 int
27815 main ()
27816 {
27817 if (sizeof (uint8))
27818        return 0;
27819   ;
27820   return 0;
27821 }
27822 _ACEOF
27823 rm -f conftest.$ac_objext
27824 if { (ac_try="$ac_compile"
27825 case "(($ac_try" in
27826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27827   *) ac_try_echo=$ac_try;;
27828 esac
27829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27830 $as_echo "$ac_try_echo") >&5
27831   (eval "$ac_compile") 2>conftest.er1
27832   ac_status=$?
27833   grep -v '^ *+' conftest.er1 >conftest.err
27834   rm -f conftest.er1
27835   cat conftest.err >&5
27836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837   (exit $ac_status); } && {
27838          test -z "$ac_c_werror_flag" ||
27839          test ! -s conftest.err
27840        } && test -s conftest.$ac_objext; then
27841   cat >conftest.$ac_ext <<_ACEOF
27842 /* confdefs.h.  */
27843 _ACEOF
27844 cat confdefs.h >>conftest.$ac_ext
27845 cat >>conftest.$ac_ext <<_ACEOF
27846 /* end confdefs.h.  */
27847 #include <stdio.h>
27848 #ifdef HAVE_SUPPORTDEFS_H
27849 #include <SupportDefs.h>
27850 #endif
27851
27852 int
27853 main ()
27854 {
27855 if (sizeof ((uint8)))
27856           return 0;
27857   ;
27858   return 0;
27859 }
27860 _ACEOF
27861 rm -f conftest.$ac_objext
27862 if { (ac_try="$ac_compile"
27863 case "(($ac_try" in
27864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865   *) ac_try_echo=$ac_try;;
27866 esac
27867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27868 $as_echo "$ac_try_echo") >&5
27869   (eval "$ac_compile") 2>conftest.er1
27870   ac_status=$?
27871   grep -v '^ *+' conftest.er1 >conftest.err
27872   rm -f conftest.er1
27873   cat conftest.err >&5
27874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875   (exit $ac_status); } && {
27876          test -z "$ac_c_werror_flag" ||
27877          test ! -s conftest.err
27878        } && test -s conftest.$ac_objext; then
27879   :
27880 else
27881   $as_echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27883
27884         ac_cv_type_uint8=yes
27885 fi
27886
27887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27888 else
27889   $as_echo "$as_me: failed program was:" >&5
27890 sed 's/^/| /' conftest.$ac_ext >&5
27891
27892
27893 fi
27894
27895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27896 fi
27897 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27898 $as_echo "$ac_cv_type_uint8" >&6; }
27899 if test "x$ac_cv_type_uint8" = x""yes; then
27900
27901 cat >>confdefs.h <<_ACEOF
27902 #define HAVE_UINT8 1
27903 _ACEOF
27904
27905
27906 fi
27907 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27908 $as_echo_n "checking for int64... " >&6; }
27909 if test "${ac_cv_type_int64+set}" = set; then
27910   $as_echo_n "(cached) " >&6
27911 else
27912   ac_cv_type_int64=no
27913 cat >conftest.$ac_ext <<_ACEOF
27914 /* confdefs.h.  */
27915 _ACEOF
27916 cat confdefs.h >>conftest.$ac_ext
27917 cat >>conftest.$ac_ext <<_ACEOF
27918 /* end confdefs.h.  */
27919 #include <stdio.h>
27920 #ifdef HAVE_SUPPORTDEFS_H
27921 #include <SupportDefs.h>
27922 #endif
27923
27924 int
27925 main ()
27926 {
27927 if (sizeof (int64))
27928        return 0;
27929   ;
27930   return 0;
27931 }
27932 _ACEOF
27933 rm -f conftest.$ac_objext
27934 if { (ac_try="$ac_compile"
27935 case "(($ac_try" in
27936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937   *) ac_try_echo=$ac_try;;
27938 esac
27939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27940 $as_echo "$ac_try_echo") >&5
27941   (eval "$ac_compile") 2>conftest.er1
27942   ac_status=$?
27943   grep -v '^ *+' conftest.er1 >conftest.err
27944   rm -f conftest.er1
27945   cat conftest.err >&5
27946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947   (exit $ac_status); } && {
27948          test -z "$ac_c_werror_flag" ||
27949          test ! -s conftest.err
27950        } && test -s conftest.$ac_objext; then
27951   cat >conftest.$ac_ext <<_ACEOF
27952 /* confdefs.h.  */
27953 _ACEOF
27954 cat confdefs.h >>conftest.$ac_ext
27955 cat >>conftest.$ac_ext <<_ACEOF
27956 /* end confdefs.h.  */
27957 #include <stdio.h>
27958 #ifdef HAVE_SUPPORTDEFS_H
27959 #include <SupportDefs.h>
27960 #endif
27961
27962 int
27963 main ()
27964 {
27965 if (sizeof ((int64)))
27966           return 0;
27967   ;
27968   return 0;
27969 }
27970 _ACEOF
27971 rm -f conftest.$ac_objext
27972 if { (ac_try="$ac_compile"
27973 case "(($ac_try" in
27974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975   *) ac_try_echo=$ac_try;;
27976 esac
27977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27978 $as_echo "$ac_try_echo") >&5
27979   (eval "$ac_compile") 2>conftest.er1
27980   ac_status=$?
27981   grep -v '^ *+' conftest.er1 >conftest.err
27982   rm -f conftest.er1
27983   cat conftest.err >&5
27984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985   (exit $ac_status); } && {
27986          test -z "$ac_c_werror_flag" ||
27987          test ! -s conftest.err
27988        } && test -s conftest.$ac_objext; then
27989   :
27990 else
27991   $as_echo "$as_me: failed program was:" >&5
27992 sed 's/^/| /' conftest.$ac_ext >&5
27993
27994         ac_cv_type_int64=yes
27995 fi
27996
27997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27998 else
27999   $as_echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28001
28002
28003 fi
28004
28005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28006 fi
28007 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28008 $as_echo "$ac_cv_type_int64" >&6; }
28009 if test "x$ac_cv_type_int64" = x""yes; then
28010
28011 cat >>confdefs.h <<_ACEOF
28012 #define HAVE_INT64 1
28013 _ACEOF
28014
28015
28016 fi
28017 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28018 $as_echo_n "checking for uint64... " >&6; }
28019 if test "${ac_cv_type_uint64+set}" = set; then
28020   $as_echo_n "(cached) " >&6
28021 else
28022   ac_cv_type_uint64=no
28023 cat >conftest.$ac_ext <<_ACEOF
28024 /* confdefs.h.  */
28025 _ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h.  */
28029 #include <stdio.h>
28030 #ifdef HAVE_SUPPORTDEFS_H
28031 #include <SupportDefs.h>
28032 #endif
28033
28034 int
28035 main ()
28036 {
28037 if (sizeof (uint64))
28038        return 0;
28039   ;
28040   return 0;
28041 }
28042 _ACEOF
28043 rm -f conftest.$ac_objext
28044 if { (ac_try="$ac_compile"
28045 case "(($ac_try" in
28046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047   *) ac_try_echo=$ac_try;;
28048 esac
28049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28050 $as_echo "$ac_try_echo") >&5
28051   (eval "$ac_compile") 2>conftest.er1
28052   ac_status=$?
28053   grep -v '^ *+' conftest.er1 >conftest.err
28054   rm -f conftest.er1
28055   cat conftest.err >&5
28056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); } && {
28058          test -z "$ac_c_werror_flag" ||
28059          test ! -s conftest.err
28060        } && test -s conftest.$ac_objext; then
28061   cat >conftest.$ac_ext <<_ACEOF
28062 /* confdefs.h.  */
28063 _ACEOF
28064 cat confdefs.h >>conftest.$ac_ext
28065 cat >>conftest.$ac_ext <<_ACEOF
28066 /* end confdefs.h.  */
28067 #include <stdio.h>
28068 #ifdef HAVE_SUPPORTDEFS_H
28069 #include <SupportDefs.h>
28070 #endif
28071
28072 int
28073 main ()
28074 {
28075 if (sizeof ((uint64)))
28076           return 0;
28077   ;
28078   return 0;
28079 }
28080 _ACEOF
28081 rm -f conftest.$ac_objext
28082 if { (ac_try="$ac_compile"
28083 case "(($ac_try" in
28084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085   *) ac_try_echo=$ac_try;;
28086 esac
28087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28088 $as_echo "$ac_try_echo") >&5
28089   (eval "$ac_compile") 2>conftest.er1
28090   ac_status=$?
28091   grep -v '^ *+' conftest.er1 >conftest.err
28092   rm -f conftest.er1
28093   cat conftest.err >&5
28094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095   (exit $ac_status); } && {
28096          test -z "$ac_c_werror_flag" ||
28097          test ! -s conftest.err
28098        } && test -s conftest.$ac_objext; then
28099   :
28100 else
28101   $as_echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28103
28104         ac_cv_type_uint64=yes
28105 fi
28106
28107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28108 else
28109   $as_echo "$as_me: failed program was:" >&5
28110 sed 's/^/| /' conftest.$ac_ext >&5
28111
28112
28113 fi
28114
28115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28116 fi
28117 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28118 $as_echo "$ac_cv_type_uint64" >&6; }
28119 if test "x$ac_cv_type_uint64" = x""yes; then
28120
28121 cat >>confdefs.h <<_ACEOF
28122 #define HAVE_UINT64 1
28123 _ACEOF
28124
28125
28126 fi
28127
28128
28129 # We also check for sig_atomic_t, which *should* be defined per ANSI
28130 # C, but is missing on some old platforms.
28131 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28132 $as_echo_n "checking for sig_atomic_t... " >&6; }
28133 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28134   $as_echo_n "(cached) " >&6
28135 else
28136   ac_cv_type_sig_atomic_t=no
28137 cat >conftest.$ac_ext <<_ACEOF
28138 /* confdefs.h.  */
28139 _ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h.  */
28143 #include <signal.h>
28144
28145 int
28146 main ()
28147 {
28148 if (sizeof (sig_atomic_t))
28149        return 0;
28150   ;
28151   return 0;
28152 }
28153 _ACEOF
28154 rm -f conftest.$ac_objext
28155 if { (ac_try="$ac_compile"
28156 case "(($ac_try" in
28157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158   *) ac_try_echo=$ac_try;;
28159 esac
28160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28161 $as_echo "$ac_try_echo") >&5
28162   (eval "$ac_compile") 2>conftest.er1
28163   ac_status=$?
28164   grep -v '^ *+' conftest.er1 >conftest.err
28165   rm -f conftest.er1
28166   cat conftest.err >&5
28167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168   (exit $ac_status); } && {
28169          test -z "$ac_c_werror_flag" ||
28170          test ! -s conftest.err
28171        } && test -s conftest.$ac_objext; then
28172   cat >conftest.$ac_ext <<_ACEOF
28173 /* confdefs.h.  */
28174 _ACEOF
28175 cat confdefs.h >>conftest.$ac_ext
28176 cat >>conftest.$ac_ext <<_ACEOF
28177 /* end confdefs.h.  */
28178 #include <signal.h>
28179
28180 int
28181 main ()
28182 {
28183 if (sizeof ((sig_atomic_t)))
28184           return 0;
28185   ;
28186   return 0;
28187 }
28188 _ACEOF
28189 rm -f conftest.$ac_objext
28190 if { (ac_try="$ac_compile"
28191 case "(($ac_try" in
28192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193   *) ac_try_echo=$ac_try;;
28194 esac
28195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28196 $as_echo "$ac_try_echo") >&5
28197   (eval "$ac_compile") 2>conftest.er1
28198   ac_status=$?
28199   grep -v '^ *+' conftest.er1 >conftest.err
28200   rm -f conftest.er1
28201   cat conftest.err >&5
28202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203   (exit $ac_status); } && {
28204          test -z "$ac_c_werror_flag" ||
28205          test ! -s conftest.err
28206        } && test -s conftest.$ac_objext; then
28207   :
28208 else
28209   $as_echo "$as_me: failed program was:" >&5
28210 sed 's/^/| /' conftest.$ac_ext >&5
28211
28212         ac_cv_type_sig_atomic_t=yes
28213 fi
28214
28215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28216 else
28217   $as_echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28219
28220
28221 fi
28222
28223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28224 fi
28225 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28226 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28227 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28228
28229 cat >>confdefs.h <<_ACEOF
28230 #define HAVE_SIG_ATOMIC_T 1
28231 _ACEOF
28232
28233
28234 fi
28235
28236
28237
28238 if test "$PORTNAME" != "win32"
28239 then
28240 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28241 $as_echo_n "checking for POSIX signal interface... " >&6; }
28242 if test "${pgac_cv_func_posix_signals+set}" = set; then
28243   $as_echo_n "(cached) " >&6
28244 else
28245   cat >conftest.$ac_ext <<_ACEOF
28246 /* confdefs.h.  */
28247 _ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h.  */
28251 #include <signal.h>
28252
28253 int
28254 main ()
28255 {
28256 struct sigaction act, oact;
28257 sigemptyset(&act.sa_mask);
28258 act.sa_flags = SA_RESTART;
28259 sigaction(0, &act, &oact);
28260   ;
28261   return 0;
28262 }
28263 _ACEOF
28264 rm -f conftest.$ac_objext conftest$ac_exeext
28265 if { (ac_try="$ac_link"
28266 case "(($ac_try" in
28267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28268   *) ac_try_echo=$ac_try;;
28269 esac
28270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28271 $as_echo "$ac_try_echo") >&5
28272   (eval "$ac_link") 2>conftest.er1
28273   ac_status=$?
28274   grep -v '^ *+' conftest.er1 >conftest.err
28275   rm -f conftest.er1
28276   cat conftest.err >&5
28277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278   (exit $ac_status); } && {
28279          test -z "$ac_c_werror_flag" ||
28280          test ! -s conftest.err
28281        } && test -s conftest$ac_exeext && {
28282          test "$cross_compiling" = yes ||
28283          $as_test_x conftest$ac_exeext
28284        }; then
28285   pgac_cv_func_posix_signals=yes
28286 else
28287   $as_echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28289
28290         pgac_cv_func_posix_signals=no
28291 fi
28292
28293 rm -rf conftest.dSYM
28294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28295       conftest$ac_exeext conftest.$ac_ext
28296 fi
28297 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28298 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28299 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28300
28301 cat >>confdefs.h <<\_ACEOF
28302 #define HAVE_POSIX_SIGNALS /**/
28303 _ACEOF
28304
28305 fi
28306 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28307
28308 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28309   { { $as_echo "$as_me:$LINENO: error:
28310 Thread-safety requires POSIX signals, which are not supported by this
28311 operating system;  use --disable-thread-safety to disable thread safety." >&5
28312 $as_echo "$as_me: error:
28313 Thread-safety requires POSIX signals, which are not supported by this
28314 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28315    { (exit 1); exit 1; }; }
28316 fi
28317 fi
28318
28319 # SunOS doesn't handle negative byte comparisons properly with +/- return
28320 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28321 $as_echo_n "checking for working memcmp... " >&6; }
28322 if test "${ac_cv_func_memcmp_working+set}" = set; then
28323   $as_echo_n "(cached) " >&6
28324 else
28325   if test "$cross_compiling" = yes; then
28326   ac_cv_func_memcmp_working=no
28327 else
28328   cat >conftest.$ac_ext <<_ACEOF
28329 /* confdefs.h.  */
28330 _ACEOF
28331 cat confdefs.h >>conftest.$ac_ext
28332 cat >>conftest.$ac_ext <<_ACEOF
28333 /* end confdefs.h.  */
28334 $ac_includes_default
28335 int
28336 main ()
28337 {
28338
28339   /* Some versions of memcmp are not 8-bit clean.  */
28340   char c0 = '\100', c1 = '\200', c2 = '\201';
28341   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28342     return 1;
28343
28344   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28345      or more and with at least one buffer not starting on a 4-byte boundary.
28346      William Lewis provided this test program.   */
28347   {
28348     char foo[21];
28349     char bar[21];
28350     int i;
28351     for (i = 0; i < 4; i++)
28352       {
28353         char *a = foo + i;
28354         char *b = bar + i;
28355         strcpy (a, "--------01111111");
28356         strcpy (b, "--------10000000");
28357         if (memcmp (a, b, 16) >= 0)
28358           return 1;
28359       }
28360     return 0;
28361   }
28362
28363   ;
28364   return 0;
28365 }
28366 _ACEOF
28367 rm -f conftest$ac_exeext
28368 if { (ac_try="$ac_link"
28369 case "(($ac_try" in
28370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371   *) ac_try_echo=$ac_try;;
28372 esac
28373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28374 $as_echo "$ac_try_echo") >&5
28375   (eval "$ac_link") 2>&5
28376   ac_status=$?
28377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28379   { (case "(($ac_try" in
28380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28381   *) ac_try_echo=$ac_try;;
28382 esac
28383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28384 $as_echo "$ac_try_echo") >&5
28385   (eval "$ac_try") 2>&5
28386   ac_status=$?
28387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388   (exit $ac_status); }; }; then
28389   ac_cv_func_memcmp_working=yes
28390 else
28391   $as_echo "$as_me: program exited with status $ac_status" >&5
28392 $as_echo "$as_me: failed program was:" >&5
28393 sed 's/^/| /' conftest.$ac_ext >&5
28394
28395 ( exit $ac_status )
28396 ac_cv_func_memcmp_working=no
28397 fi
28398 rm -rf conftest.dSYM
28399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28400 fi
28401
28402
28403 fi
28404 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28405 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28406 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28407   *" memcmp.$ac_objext "* ) ;;
28408   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28409  ;;
28410 esac
28411
28412
28413
28414
28415 # Select semaphore implementation type.
28416 if test "$PORTNAME" != "win32"; then
28417   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28418
28419 cat >>confdefs.h <<\_ACEOF
28420 #define USE_NAMED_POSIX_SEMAPHORES 1
28421 _ACEOF
28422
28423     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28424   else
28425     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28426
28427 cat >>confdefs.h <<\_ACEOF
28428 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28429 _ACEOF
28430
28431       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28432     else
28433
28434 cat >>confdefs.h <<\_ACEOF
28435 #define USE_SYSV_SEMAPHORES 1
28436 _ACEOF
28437
28438       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28439     fi
28440   fi
28441 else
28442
28443 cat >>confdefs.h <<\_ACEOF
28444 #define USE_WIN32_SEMAPHORES 1
28445 _ACEOF
28446
28447   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28448 fi
28449
28450
28451 # Select shared-memory implementation type.
28452 if test "$PORTNAME" != "win32"; then
28453
28454 cat >>confdefs.h <<\_ACEOF
28455 #define USE_SYSV_SHARED_MEMORY 1
28456 _ACEOF
28457
28458   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28459 else
28460
28461 cat >>confdefs.h <<\_ACEOF
28462 #define USE_WIN32_SHARED_MEMORY 1
28463 _ACEOF
28464
28465   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28466 fi
28467
28468 # Select latch implementation type.
28469 if test "$PORTNAME" != "win32"; then
28470   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28471 else
28472   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28473 fi
28474
28475 # If not set in template file, set bytes to use libc memset()
28476 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28477   MEMSET_LOOP_LIMIT=1024
28478 fi
28479
28480 cat >>confdefs.h <<_ACEOF
28481 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28482 _ACEOF
28483
28484
28485
28486 if test "$enable_nls" = yes ; then
28487
28488   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28489 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28490 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28491   $as_echo_n "(cached) " >&6
28492 else
28493   ac_func_search_save_LIBS=$LIBS
28494 cat >conftest.$ac_ext <<_ACEOF
28495 /* confdefs.h.  */
28496 _ACEOF
28497 cat confdefs.h >>conftest.$ac_ext
28498 cat >>conftest.$ac_ext <<_ACEOF
28499 /* end confdefs.h.  */
28500
28501 /* Override any GCC internal prototype to avoid an error.
28502    Use char because int might match the return type of a GCC
28503    builtin and then its argument prototype would still apply.  */
28504 #ifdef __cplusplus
28505 extern "C"
28506 #endif
28507 char bind_textdomain_codeset ();
28508 int
28509 main ()
28510 {
28511 return bind_textdomain_codeset ();
28512   ;
28513   return 0;
28514 }
28515 _ACEOF
28516 for ac_lib in '' intl; do
28517   if test -z "$ac_lib"; then
28518     ac_res="none required"
28519   else
28520     ac_res=-l$ac_lib
28521     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28522   fi
28523   rm -f conftest.$ac_objext conftest$ac_exeext
28524 if { (ac_try="$ac_link"
28525 case "(($ac_try" in
28526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527   *) ac_try_echo=$ac_try;;
28528 esac
28529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28530 $as_echo "$ac_try_echo") >&5
28531   (eval "$ac_link") 2>conftest.er1
28532   ac_status=$?
28533   grep -v '^ *+' conftest.er1 >conftest.err
28534   rm -f conftest.er1
28535   cat conftest.err >&5
28536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537   (exit $ac_status); } && {
28538          test -z "$ac_c_werror_flag" ||
28539          test ! -s conftest.err
28540        } && test -s conftest$ac_exeext && {
28541          test "$cross_compiling" = yes ||
28542          $as_test_x conftest$ac_exeext
28543        }; then
28544   ac_cv_search_bind_textdomain_codeset=$ac_res
28545 else
28546   $as_echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.$ac_ext >&5
28548
28549
28550 fi
28551
28552 rm -rf conftest.dSYM
28553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28554       conftest$ac_exeext
28555   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28556   break
28557 fi
28558 done
28559 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28560   :
28561 else
28562   ac_cv_search_bind_textdomain_codeset=no
28563 fi
28564 rm conftest.$ac_ext
28565 LIBS=$ac_func_search_save_LIBS
28566 fi
28567 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28568 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28569 ac_res=$ac_cv_search_bind_textdomain_codeset
28570 if test "$ac_res" != no; then
28571   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28572
28573 else
28574   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28575 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28576    { (exit 1); exit 1; }; }
28577 fi
28578
28579   if test "${ac_cv_header_libintl_h+set}" = set; then
28580   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28581 $as_echo_n "checking for libintl.h... " >&6; }
28582 if test "${ac_cv_header_libintl_h+set}" = set; then
28583   $as_echo_n "(cached) " >&6
28584 fi
28585 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28586 $as_echo "$ac_cv_header_libintl_h" >&6; }
28587 else
28588   # Is the header compilable?
28589 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28590 $as_echo_n "checking libintl.h usability... " >&6; }
28591 cat >conftest.$ac_ext <<_ACEOF
28592 /* confdefs.h.  */
28593 _ACEOF
28594 cat confdefs.h >>conftest.$ac_ext
28595 cat >>conftest.$ac_ext <<_ACEOF
28596 /* end confdefs.h.  */
28597 $ac_includes_default
28598 #include <libintl.h>
28599 _ACEOF
28600 rm -f conftest.$ac_objext
28601 if { (ac_try="$ac_compile"
28602 case "(($ac_try" in
28603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604   *) ac_try_echo=$ac_try;;
28605 esac
28606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28607 $as_echo "$ac_try_echo") >&5
28608   (eval "$ac_compile") 2>conftest.er1
28609   ac_status=$?
28610   grep -v '^ *+' conftest.er1 >conftest.err
28611   rm -f conftest.er1
28612   cat conftest.err >&5
28613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614   (exit $ac_status); } && {
28615          test -z "$ac_c_werror_flag" ||
28616          test ! -s conftest.err
28617        } && test -s conftest.$ac_objext; then
28618   ac_header_compiler=yes
28619 else
28620   $as_echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28622
28623         ac_header_compiler=no
28624 fi
28625
28626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28627 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28628 $as_echo "$ac_header_compiler" >&6; }
28629
28630 # Is the header present?
28631 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28632 $as_echo_n "checking libintl.h presence... " >&6; }
28633 cat >conftest.$ac_ext <<_ACEOF
28634 /* confdefs.h.  */
28635 _ACEOF
28636 cat confdefs.h >>conftest.$ac_ext
28637 cat >>conftest.$ac_ext <<_ACEOF
28638 /* end confdefs.h.  */
28639 #include <libintl.h>
28640 _ACEOF
28641 if { (ac_try="$ac_cpp conftest.$ac_ext"
28642 case "(($ac_try" in
28643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644   *) ac_try_echo=$ac_try;;
28645 esac
28646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28647 $as_echo "$ac_try_echo") >&5
28648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28649   ac_status=$?
28650   grep -v '^ *+' conftest.er1 >conftest.err
28651   rm -f conftest.er1
28652   cat conftest.err >&5
28653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654   (exit $ac_status); } >/dev/null && {
28655          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28656          test ! -s conftest.err
28657        }; then
28658   ac_header_preproc=yes
28659 else
28660   $as_echo "$as_me: failed program was:" >&5
28661 sed 's/^/| /' conftest.$ac_ext >&5
28662
28663   ac_header_preproc=no
28664 fi
28665
28666 rm -f conftest.err conftest.$ac_ext
28667 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28668 $as_echo "$ac_header_preproc" >&6; }
28669
28670 # So?  What about this header?
28671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28672   yes:no: )
28673     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28674 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28675     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28676 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28677     ac_header_preproc=yes
28678     ;;
28679   no:yes:* )
28680     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28681 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28682     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28683 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28684     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28685 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28686     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28687 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28688     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28689 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28690     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28691 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28692     ( cat <<\_ASBOX
28693 ## ---------------------------------------- ##
28694 ## Report this to pgsql-bugs@postgresql.org ##
28695 ## ---------------------------------------- ##
28696 _ASBOX
28697      ) | sed "s/^/$as_me: WARNING:     /" >&2
28698     ;;
28699 esac
28700 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28701 $as_echo_n "checking for libintl.h... " >&6; }
28702 if test "${ac_cv_header_libintl_h+set}" = set; then
28703   $as_echo_n "(cached) " >&6
28704 else
28705   ac_cv_header_libintl_h=$ac_header_preproc
28706 fi
28707 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28708 $as_echo "$ac_cv_header_libintl_h" >&6; }
28709
28710 fi
28711 if test "x$ac_cv_header_libintl_h" = x""yes; then
28712   :
28713 else
28714   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28715 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28716    { (exit 1); exit 1; }; }
28717 fi
28718
28719
28720   for ac_prog in msgfmt
28721 do
28722   # Extract the first word of "$ac_prog", so it can be a program name with args.
28723 set dummy $ac_prog; ac_word=$2
28724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28725 $as_echo_n "checking for $ac_word... " >&6; }
28726 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28727   $as_echo_n "(cached) " >&6
28728 else
28729   if test -n "$MSGFMT"; then
28730   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28731 else
28732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28733 for as_dir in $PATH
28734 do
28735   IFS=$as_save_IFS
28736   test -z "$as_dir" && as_dir=.
28737   for ac_exec_ext in '' $ac_executable_extensions; do
28738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28739     ac_cv_prog_MSGFMT="$ac_prog"
28740     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28741     break 2
28742   fi
28743 done
28744 done
28745 IFS=$as_save_IFS
28746
28747 fi
28748 fi
28749 MSGFMT=$ac_cv_prog_MSGFMT
28750 if test -n "$MSGFMT"; then
28751   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28752 $as_echo "$MSGFMT" >&6; }
28753 else
28754   { $as_echo "$as_me:$LINENO: result: no" >&5
28755 $as_echo "no" >&6; }
28756 fi
28757
28758
28759   test -n "$MSGFMT" && break
28760 done
28761
28762   if test -z "$MSGFMT"; then
28763     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28764 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28765    { (exit 1); exit 1; }; }
28766   fi
28767   for ac_prog in msgmerge
28768 do
28769   # Extract the first word of "$ac_prog", so it can be a program name with args.
28770 set dummy $ac_prog; ac_word=$2
28771 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28772 $as_echo_n "checking for $ac_word... " >&6; }
28773 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28774   $as_echo_n "(cached) " >&6
28775 else
28776   if test -n "$MSGMERGE"; then
28777   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28778 else
28779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28780 for as_dir in $PATH
28781 do
28782   IFS=$as_save_IFS
28783   test -z "$as_dir" && as_dir=.
28784   for ac_exec_ext in '' $ac_executable_extensions; do
28785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28786     ac_cv_prog_MSGMERGE="$ac_prog"
28787     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28788     break 2
28789   fi
28790 done
28791 done
28792 IFS=$as_save_IFS
28793
28794 fi
28795 fi
28796 MSGMERGE=$ac_cv_prog_MSGMERGE
28797 if test -n "$MSGMERGE"; then
28798   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28799 $as_echo "$MSGMERGE" >&6; }
28800 else
28801   { $as_echo "$as_me:$LINENO: result: no" >&5
28802 $as_echo "no" >&6; }
28803 fi
28804
28805
28806   test -n "$MSGMERGE" && break
28807 done
28808
28809   for ac_prog in xgettext
28810 do
28811   # Extract the first word of "$ac_prog", so it can be a program name with args.
28812 set dummy $ac_prog; ac_word=$2
28813 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28814 $as_echo_n "checking for $ac_word... " >&6; }
28815 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28816   $as_echo_n "(cached) " >&6
28817 else
28818   if test -n "$XGETTEXT"; then
28819   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28820 else
28821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28822 for as_dir in $PATH
28823 do
28824   IFS=$as_save_IFS
28825   test -z "$as_dir" && as_dir=.
28826   for ac_exec_ext in '' $ac_executable_extensions; do
28827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28828     ac_cv_prog_XGETTEXT="$ac_prog"
28829     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28830     break 2
28831   fi
28832 done
28833 done
28834 IFS=$as_save_IFS
28835
28836 fi
28837 fi
28838 XGETTEXT=$ac_cv_prog_XGETTEXT
28839 if test -n "$XGETTEXT"; then
28840   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28841 $as_echo "$XGETTEXT" >&6; }
28842 else
28843   { $as_echo "$as_me:$LINENO: result: no" >&5
28844 $as_echo "no" >&6; }
28845 fi
28846
28847
28848   test -n "$XGETTEXT" && break
28849 done
28850
28851
28852 fi
28853
28854 # Check for Tcl configuration script tclConfig.sh
28855 if test "$with_tcl" = yes; then
28856     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28857 do
28858   # Extract the first word of "$ac_prog", so it can be a program name with args.
28859 set dummy $ac_prog; ac_word=$2
28860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28861 $as_echo_n "checking for $ac_word... " >&6; }
28862 if test "${ac_cv_path_TCLSH+set}" = set; then
28863   $as_echo_n "(cached) " >&6
28864 else
28865   case $TCLSH in
28866   [\\/]* | ?:[\\/]*)
28867   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28868   ;;
28869   *)
28870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28871 for as_dir in $PATH
28872 do
28873   IFS=$as_save_IFS
28874   test -z "$as_dir" && as_dir=.
28875   for ac_exec_ext in '' $ac_executable_extensions; do
28876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28877     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28878     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28879     break 2
28880   fi
28881 done
28882 done
28883 IFS=$as_save_IFS
28884
28885   ;;
28886 esac
28887 fi
28888 TCLSH=$ac_cv_path_TCLSH
28889 if test -n "$TCLSH"; then
28890   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28891 $as_echo "$TCLSH" >&6; }
28892 else
28893   { $as_echo "$as_me:$LINENO: result: no" >&5
28894 $as_echo "no" >&6; }
28895 fi
28896
28897
28898   test -n "$TCLSH" && break
28899 done
28900
28901 if test x"$TCLSH" = x""; then
28902   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28903 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28904    { (exit 1); exit 1; }; }
28905 fi
28906
28907 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28908 $as_echo_n "checking for tclConfig.sh... " >&6; }
28909 # Let user override test
28910 if test -z "$TCL_CONFIG_SH"; then
28911     pgac_test_dirs="$with_tclconfig"
28912
28913     set X $pgac_test_dirs; shift
28914     if test $# -eq 0; then
28915         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28916 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28917    { (exit 1); exit 1; }; }
28918         set X `echo 'puts $auto_path' | $TCLSH`; shift
28919     fi
28920
28921     for pgac_dir do
28922         if test -r "$pgac_dir/tclConfig.sh"; then
28923             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28924             break
28925         fi
28926     done
28927 fi
28928
28929 if test -z "$TCL_CONFIG_SH"; then
28930     { $as_echo "$as_me:$LINENO: result: no" >&5
28931 $as_echo "no" >&6; }
28932     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28933 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28934    { (exit 1); exit 1; }; }
28935 else
28936     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28937 $as_echo "$TCL_CONFIG_SH" >&6; }
28938 fi
28939
28940
28941
28942     . "$TCL_CONFIG_SH"
28943 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28944 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28945 eval TCL_LIBS=\"$TCL_LIBS\"
28946 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28947 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28948
28949         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28950     ac_save_CPPFLAGS=$CPPFLAGS
28951     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28952     if test "${ac_cv_header_tcl_h+set}" = set; then
28953   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28954 $as_echo_n "checking for tcl.h... " >&6; }
28955 if test "${ac_cv_header_tcl_h+set}" = set; then
28956   $as_echo_n "(cached) " >&6
28957 fi
28958 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28959 $as_echo "$ac_cv_header_tcl_h" >&6; }
28960 else
28961   # Is the header compilable?
28962 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28963 $as_echo_n "checking tcl.h usability... " >&6; }
28964 cat >conftest.$ac_ext <<_ACEOF
28965 /* confdefs.h.  */
28966 _ACEOF
28967 cat confdefs.h >>conftest.$ac_ext
28968 cat >>conftest.$ac_ext <<_ACEOF
28969 /* end confdefs.h.  */
28970 $ac_includes_default
28971 #include <tcl.h>
28972 _ACEOF
28973 rm -f conftest.$ac_objext
28974 if { (ac_try="$ac_compile"
28975 case "(($ac_try" in
28976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28977   *) ac_try_echo=$ac_try;;
28978 esac
28979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28980 $as_echo "$ac_try_echo") >&5
28981   (eval "$ac_compile") 2>conftest.er1
28982   ac_status=$?
28983   grep -v '^ *+' conftest.er1 >conftest.err
28984   rm -f conftest.er1
28985   cat conftest.err >&5
28986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987   (exit $ac_status); } && {
28988          test -z "$ac_c_werror_flag" ||
28989          test ! -s conftest.err
28990        } && test -s conftest.$ac_objext; then
28991   ac_header_compiler=yes
28992 else
28993   $as_echo "$as_me: failed program was:" >&5
28994 sed 's/^/| /' conftest.$ac_ext >&5
28995
28996         ac_header_compiler=no
28997 fi
28998
28999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29001 $as_echo "$ac_header_compiler" >&6; }
29002
29003 # Is the header present?
29004 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29005 $as_echo_n "checking tcl.h presence... " >&6; }
29006 cat >conftest.$ac_ext <<_ACEOF
29007 /* confdefs.h.  */
29008 _ACEOF
29009 cat confdefs.h >>conftest.$ac_ext
29010 cat >>conftest.$ac_ext <<_ACEOF
29011 /* end confdefs.h.  */
29012 #include <tcl.h>
29013 _ACEOF
29014 if { (ac_try="$ac_cpp conftest.$ac_ext"
29015 case "(($ac_try" in
29016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29017   *) ac_try_echo=$ac_try;;
29018 esac
29019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29020 $as_echo "$ac_try_echo") >&5
29021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29022   ac_status=$?
29023   grep -v '^ *+' conftest.er1 >conftest.err
29024   rm -f conftest.er1
29025   cat conftest.err >&5
29026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29027   (exit $ac_status); } >/dev/null && {
29028          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29029          test ! -s conftest.err
29030        }; then
29031   ac_header_preproc=yes
29032 else
29033   $as_echo "$as_me: failed program was:" >&5
29034 sed 's/^/| /' conftest.$ac_ext >&5
29035
29036   ac_header_preproc=no
29037 fi
29038
29039 rm -f conftest.err conftest.$ac_ext
29040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29041 $as_echo "$ac_header_preproc" >&6; }
29042
29043 # So?  What about this header?
29044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29045   yes:no: )
29046     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29047 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29048     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29049 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29050     ac_header_preproc=yes
29051     ;;
29052   no:yes:* )
29053     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29054 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29055     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
29056 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
29057     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29058 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29059     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
29060 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29061     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29062 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29063     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29064 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29065     ( cat <<\_ASBOX
29066 ## ---------------------------------------- ##
29067 ## Report this to pgsql-bugs@postgresql.org ##
29068 ## ---------------------------------------- ##
29069 _ASBOX
29070      ) | sed "s/^/$as_me: WARNING:     /" >&2
29071     ;;
29072 esac
29073 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29074 $as_echo_n "checking for tcl.h... " >&6; }
29075 if test "${ac_cv_header_tcl_h+set}" = set; then
29076   $as_echo_n "(cached) " >&6
29077 else
29078   ac_cv_header_tcl_h=$ac_header_preproc
29079 fi
29080 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29081 $as_echo "$ac_cv_header_tcl_h" >&6; }
29082
29083 fi
29084 if test "x$ac_cv_header_tcl_h" = x""yes; then
29085   :
29086 else
29087   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29088 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29089    { (exit 1); exit 1; }; }
29090 fi
29091
29092
29093     CPPFLAGS=$ac_save_CPPFLAGS
29094 fi
29095
29096 # check for <Python.h>
29097 if test "$with_python" = yes; then
29098   ac_save_CPPFLAGS=$CPPFLAGS
29099   CPPFLAGS="$python_includespec $CPPFLAGS"
29100   if test "${ac_cv_header_Python_h+set}" = set; then
29101   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29102 $as_echo_n "checking for Python.h... " >&6; }
29103 if test "${ac_cv_header_Python_h+set}" = set; then
29104   $as_echo_n "(cached) " >&6
29105 fi
29106 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29107 $as_echo "$ac_cv_header_Python_h" >&6; }
29108 else
29109   # Is the header compilable?
29110 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29111 $as_echo_n "checking Python.h usability... " >&6; }
29112 cat >conftest.$ac_ext <<_ACEOF
29113 /* confdefs.h.  */
29114 _ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h.  */
29118 $ac_includes_default
29119 #include <Python.h>
29120 _ACEOF
29121 rm -f conftest.$ac_objext
29122 if { (ac_try="$ac_compile"
29123 case "(($ac_try" in
29124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125   *) ac_try_echo=$ac_try;;
29126 esac
29127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29128 $as_echo "$ac_try_echo") >&5
29129   (eval "$ac_compile") 2>conftest.er1
29130   ac_status=$?
29131   grep -v '^ *+' conftest.er1 >conftest.err
29132   rm -f conftest.er1
29133   cat conftest.err >&5
29134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135   (exit $ac_status); } && {
29136          test -z "$ac_c_werror_flag" ||
29137          test ! -s conftest.err
29138        } && test -s conftest.$ac_objext; then
29139   ac_header_compiler=yes
29140 else
29141   $as_echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29143
29144         ac_header_compiler=no
29145 fi
29146
29147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29148 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29149 $as_echo "$ac_header_compiler" >&6; }
29150
29151 # Is the header present?
29152 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29153 $as_echo_n "checking Python.h presence... " >&6; }
29154 cat >conftest.$ac_ext <<_ACEOF
29155 /* confdefs.h.  */
29156 _ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h.  */
29160 #include <Python.h>
29161 _ACEOF
29162 if { (ac_try="$ac_cpp conftest.$ac_ext"
29163 case "(($ac_try" in
29164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165   *) ac_try_echo=$ac_try;;
29166 esac
29167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29168 $as_echo "$ac_try_echo") >&5
29169   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29170   ac_status=$?
29171   grep -v '^ *+' conftest.er1 >conftest.err
29172   rm -f conftest.er1
29173   cat conftest.err >&5
29174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175   (exit $ac_status); } >/dev/null && {
29176          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29177          test ! -s conftest.err
29178        }; then
29179   ac_header_preproc=yes
29180 else
29181   $as_echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29183
29184   ac_header_preproc=no
29185 fi
29186
29187 rm -f conftest.err conftest.$ac_ext
29188 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29189 $as_echo "$ac_header_preproc" >&6; }
29190
29191 # So?  What about this header?
29192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29193   yes:no: )
29194     { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29195 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29196     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29197 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29198     ac_header_preproc=yes
29199     ;;
29200   no:yes:* )
29201     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29202 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29203     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29204 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29205     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29206 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29207     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29208 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29209     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29210 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29211     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29212 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29213     ( cat <<\_ASBOX
29214 ## ---------------------------------------- ##
29215 ## Report this to pgsql-bugs@postgresql.org ##
29216 ## ---------------------------------------- ##
29217 _ASBOX
29218      ) | sed "s/^/$as_me: WARNING:     /" >&2
29219     ;;
29220 esac
29221 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29222 $as_echo_n "checking for Python.h... " >&6; }
29223 if test "${ac_cv_header_Python_h+set}" = set; then
29224   $as_echo_n "(cached) " >&6
29225 else
29226   ac_cv_header_Python_h=$ac_header_preproc
29227 fi
29228 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29229 $as_echo "$ac_cv_header_Python_h" >&6; }
29230
29231 fi
29232 if test "x$ac_cv_header_Python_h" = x""yes; then
29233   :
29234 else
29235   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29236 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29237    { (exit 1); exit 1; }; }
29238 fi
29239
29240
29241   CPPFLAGS=$ac_save_CPPFLAGS
29242 fi
29243
29244 #
29245 # Check for DocBook and tools
29246 #
29247 for ac_prog in onsgmls nsgmls
29248 do
29249   # Extract the first word of "$ac_prog", so it can be a program name with args.
29250 set dummy $ac_prog; ac_word=$2
29251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29252 $as_echo_n "checking for $ac_word... " >&6; }
29253 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29254   $as_echo_n "(cached) " >&6
29255 else
29256   if test -n "$NSGMLS"; then
29257   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29258 else
29259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29260 for as_dir in $PATH
29261 do
29262   IFS=$as_save_IFS
29263   test -z "$as_dir" && as_dir=.
29264   for ac_exec_ext in '' $ac_executable_extensions; do
29265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29266     ac_cv_prog_NSGMLS="$ac_prog"
29267     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29268     break 2
29269   fi
29270 done
29271 done
29272 IFS=$as_save_IFS
29273
29274 fi
29275 fi
29276 NSGMLS=$ac_cv_prog_NSGMLS
29277 if test -n "$NSGMLS"; then
29278   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29279 $as_echo "$NSGMLS" >&6; }
29280 else
29281   { $as_echo "$as_me:$LINENO: result: no" >&5
29282 $as_echo "no" >&6; }
29283 fi
29284
29285
29286   test -n "$NSGMLS" && break
29287 done
29288
29289 for ac_prog in openjade jade
29290 do
29291   # Extract the first word of "$ac_prog", so it can be a program name with args.
29292 set dummy $ac_prog; ac_word=$2
29293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29294 $as_echo_n "checking for $ac_word... " >&6; }
29295 if test "${ac_cv_prog_JADE+set}" = set; then
29296   $as_echo_n "(cached) " >&6
29297 else
29298   if test -n "$JADE"; then
29299   ac_cv_prog_JADE="$JADE" # Let the user override the test.
29300 else
29301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29302 for as_dir in $PATH
29303 do
29304   IFS=$as_save_IFS
29305   test -z "$as_dir" && as_dir=.
29306   for ac_exec_ext in '' $ac_executable_extensions; do
29307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29308     ac_cv_prog_JADE="$ac_prog"
29309     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29310     break 2
29311   fi
29312 done
29313 done
29314 IFS=$as_save_IFS
29315
29316 fi
29317 fi
29318 JADE=$ac_cv_prog_JADE
29319 if test -n "$JADE"; then
29320   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29321 $as_echo "$JADE" >&6; }
29322 else
29323   { $as_echo "$as_me:$LINENO: result: no" >&5
29324 $as_echo "no" >&6; }
29325 fi
29326
29327
29328   test -n "$JADE" && break
29329 done
29330
29331
29332 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29333 $as_echo_n "checking for DocBook V4.2... " >&6; }
29334 if test "${pgac_cv_check_docbook+set}" = set; then
29335   $as_echo_n "(cached) " >&6
29336 else
29337   cat >conftest.sgml <<EOF
29338 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29339 <book>
29340  <title>test</title>
29341  <chapter>
29342   <title>random</title>
29343    <sect1>
29344     <title>testsect</title>
29345     <para>text</para>
29346   </sect1>
29347  </chapter>
29348 </book>
29349 EOF
29350
29351 pgac_cv_check_docbook=no
29352
29353 if test -n "$NSGMLS"; then
29354   $NSGMLS -s conftest.sgml 1>&5 2>&1
29355   if test $? -eq 0; then
29356     pgac_cv_check_docbook=yes
29357   fi
29358 fi
29359 rm -f conftest.sgml
29360 fi
29361 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29362 $as_echo "$pgac_cv_check_docbook" >&6; }
29363
29364 have_docbook=$pgac_cv_check_docbook
29365
29366
29367 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29368 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29369 if test "${pgac_cv_path_stylesheets+set}" = set; then
29370   $as_echo_n "(cached) " >&6
29371 else
29372   if test -n "$DOCBOOKSTYLE"; then
29373   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29374 else
29375   for pgac_prefix in /usr /usr/local /opt /sw; do
29376     for pgac_infix in share lib; do
29377       for pgac_postfix in \
29378         sgml/stylesheets/nwalsh-modular \
29379         sgml/stylesheets/docbook \
29380         sgml/stylesheets/dsssl/docbook \
29381         sgml/docbook-dsssl \
29382         sgml/docbook/dsssl/modular \
29383         sgml/docbook/stylesheet/dsssl/modular \
29384         sgml/docbook/dsssl-stylesheets \
29385         sgml/dsssl/docbook-dsssl-nwalsh
29386       do
29387         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29388         if test -r "$pgac_candidate/html/docbook.dsl" \
29389            && test -r "$pgac_candidate/print/docbook.dsl"
29390         then
29391           pgac_cv_path_stylesheets=$pgac_candidate
29392           break 3
29393         fi
29394       done
29395     done
29396   done
29397 fi
29398 fi
29399
29400 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29401
29402 if test -n "$DOCBOOKSTYLE"; then
29403   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29404 $as_echo "$DOCBOOKSTYLE" >&6; }
29405 else
29406   { $as_echo "$as_me:$LINENO: result: no" >&5
29407 $as_echo "no" >&6; }
29408 fi
29409 if test -n "$DOCBOOKSTYLE"; then
29410   for ac_prog in collateindex.pl
29411 do
29412   # Extract the first word of "$ac_prog", so it can be a program name with args.
29413 set dummy $ac_prog; ac_word=$2
29414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29415 $as_echo_n "checking for $ac_word... " >&6; }
29416 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29417   $as_echo_n "(cached) " >&6
29418 else
29419   case $COLLATEINDEX in
29420   [\\/]* | ?:[\\/]*)
29421   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29422   ;;
29423   *)
29424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29425 for as_dir in $DOCBOOKSTYLE/bin $PATH
29426 do
29427   IFS=$as_save_IFS
29428   test -z "$as_dir" && as_dir=.
29429   for ac_exec_ext in '' $ac_executable_extensions; do
29430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29431     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29432     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29433     break 2
29434   fi
29435 done
29436 done
29437 IFS=$as_save_IFS
29438
29439   ;;
29440 esac
29441 fi
29442 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29443 if test -n "$COLLATEINDEX"; then
29444   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29445 $as_echo "$COLLATEINDEX" >&6; }
29446 else
29447   { $as_echo "$as_me:$LINENO: result: no" >&5
29448 $as_echo "no" >&6; }
29449 fi
29450
29451
29452   test -n "$COLLATEINDEX" && break
29453 done
29454
29455 else
29456   for ac_prog in collateindex.pl
29457 do
29458   # Extract the first word of "$ac_prog", so it can be a program name with args.
29459 set dummy $ac_prog; ac_word=$2
29460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29461 $as_echo_n "checking for $ac_word... " >&6; }
29462 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29463   $as_echo_n "(cached) " >&6
29464 else
29465   case $COLLATEINDEX in
29466   [\\/]* | ?:[\\/]*)
29467   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29468   ;;
29469   *)
29470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29471 for as_dir in $PATH
29472 do
29473   IFS=$as_save_IFS
29474   test -z "$as_dir" && as_dir=.
29475   for ac_exec_ext in '' $ac_executable_extensions; do
29476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29477     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29478     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29479     break 2
29480   fi
29481 done
29482 done
29483 IFS=$as_save_IFS
29484
29485   ;;
29486 esac
29487 fi
29488 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29489 if test -n "$COLLATEINDEX"; then
29490   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29491 $as_echo "$COLLATEINDEX" >&6; }
29492 else
29493   { $as_echo "$as_me:$LINENO: result: no" >&5
29494 $as_echo "no" >&6; }
29495 fi
29496
29497
29498   test -n "$COLLATEINDEX" && break
29499 done
29500
29501 fi
29502 for ac_prog in xsltproc
29503 do
29504   # Extract the first word of "$ac_prog", so it can be a program name with args.
29505 set dummy $ac_prog; ac_word=$2
29506 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29507 $as_echo_n "checking for $ac_word... " >&6; }
29508 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29509   $as_echo_n "(cached) " >&6
29510 else
29511   if test -n "$XSLTPROC"; then
29512   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29513 else
29514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29515 for as_dir in $PATH
29516 do
29517   IFS=$as_save_IFS
29518   test -z "$as_dir" && as_dir=.
29519   for ac_exec_ext in '' $ac_executable_extensions; do
29520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29521     ac_cv_prog_XSLTPROC="$ac_prog"
29522     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29523     break 2
29524   fi
29525 done
29526 done
29527 IFS=$as_save_IFS
29528
29529 fi
29530 fi
29531 XSLTPROC=$ac_cv_prog_XSLTPROC
29532 if test -n "$XSLTPROC"; then
29533   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29534 $as_echo "$XSLTPROC" >&6; }
29535 else
29536   { $as_echo "$as_me:$LINENO: result: no" >&5
29537 $as_echo "no" >&6; }
29538 fi
29539
29540
29541   test -n "$XSLTPROC" && break
29542 done
29543
29544 for ac_prog in osx sgml2xml sx
29545 do
29546   # Extract the first word of "$ac_prog", so it can be a program name with args.
29547 set dummy $ac_prog; ac_word=$2
29548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29549 $as_echo_n "checking for $ac_word... " >&6; }
29550 if test "${ac_cv_prog_OSX+set}" = set; then
29551   $as_echo_n "(cached) " >&6
29552 else
29553   if test -n "$OSX"; then
29554   ac_cv_prog_OSX="$OSX" # Let the user override the test.
29555 else
29556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29557 for as_dir in $PATH
29558 do
29559   IFS=$as_save_IFS
29560   test -z "$as_dir" && as_dir=.
29561   for ac_exec_ext in '' $ac_executable_extensions; do
29562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29563     ac_cv_prog_OSX="$ac_prog"
29564     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29565     break 2
29566   fi
29567 done
29568 done
29569 IFS=$as_save_IFS
29570
29571 fi
29572 fi
29573 OSX=$ac_cv_prog_OSX
29574 if test -n "$OSX"; then
29575   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29576 $as_echo "$OSX" >&6; }
29577 else
29578   { $as_echo "$as_me:$LINENO: result: no" >&5
29579 $as_echo "no" >&6; }
29580 fi
29581
29582
29583   test -n "$OSX" && break
29584 done
29585
29586
29587 # Thread testing
29588
29589 # We have to run the thread test near the end so we have all our symbols
29590 # defined.  Cross compiling throws a warning.
29591 #
29592 if test "$enable_thread_safety" = yes; then
29593 if test "$PORTNAME" != "win32"
29594 then
29595 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29596 $as_echo_n "checking thread safety of required library functions... " >&6; }
29597
29598 _CFLAGS="$CFLAGS"
29599 _LIBS="$LIBS"
29600 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29601 LIBS="$LIBS $PTHREAD_LIBS"
29602 if test "$cross_compiling" = yes; then
29603   { $as_echo "$as_me:$LINENO: result: maybe" >&5
29604 $as_echo "maybe" >&6; }
29605   { $as_echo "$as_me:$LINENO: WARNING:
29606 *** Skipping thread test program because of cross-compile build.
29607 *** Run the program in src/test/thread on the target machine.
29608 " >&5
29609 $as_echo "$as_me: WARNING:
29610 *** Skipping thread test program because of cross-compile build.
29611 *** Run the program in src/test/thread on the target machine.
29612 " >&2;}
29613 else
29614   cat >conftest.$ac_ext <<_ACEOF
29615 /* confdefs.h.  */
29616 _ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h.  */
29620 #include "$srcdir/src/test/thread/thread_test.c"
29621 _ACEOF
29622 rm -f conftest$ac_exeext
29623 if { (ac_try="$ac_link"
29624 case "(($ac_try" in
29625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29626   *) ac_try_echo=$ac_try;;
29627 esac
29628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29629 $as_echo "$ac_try_echo") >&5
29630   (eval "$ac_link") 2>&5
29631   ac_status=$?
29632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29634   { (case "(($ac_try" in
29635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29636   *) ac_try_echo=$ac_try;;
29637 esac
29638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29639 $as_echo "$ac_try_echo") >&5
29640   (eval "$ac_try") 2>&5
29641   ac_status=$?
29642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643   (exit $ac_status); }; }; then
29644   { $as_echo "$as_me:$LINENO: result: yes" >&5
29645 $as_echo "yes" >&6; }
29646 else
29647   $as_echo "$as_me: program exited with status $ac_status" >&5
29648 $as_echo "$as_me: failed program was:" >&5
29649 sed 's/^/| /' conftest.$ac_ext >&5
29650
29651 ( exit $ac_status )
29652 { $as_echo "$as_me:$LINENO: result: no" >&5
29653 $as_echo "no" >&6; }
29654   { { $as_echo "$as_me:$LINENO: error: thread test program failed
29655 This platform is not thread-safe.  Check the file 'config.log' or compile
29656 and run src/test/thread/thread_test for the exact reason.
29657 Use --disable-thread-safety to disable thread safety." >&5
29658 $as_echo "$as_me: error: thread test program failed
29659 This platform is not thread-safe.  Check the file 'config.log' or compile
29660 and run src/test/thread/thread_test for the exact reason.
29661 Use --disable-thread-safety to disable thread safety." >&2;}
29662    { (exit 1); exit 1; }; }
29663 fi
29664 rm -rf conftest.dSYM
29665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29666 fi
29667
29668
29669 CFLAGS="$_CFLAGS"
29670 LIBS="$_LIBS"
29671 else
29672 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29673 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29674 fi
29675 fi
29676
29677 # If compiler will take -Wl,--as-needed (or various platform-specific
29678 # spellings thereof) then add that to LDFLAGS.  This is much easier than
29679 # trying to filter LIBS to the minimum for each executable.
29680 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29681 # libreadline; therefore we postpone testing it until we know what library
29682 # dependencies readline has.  The test code will try to link with $LIBS.
29683 if test "$with_readline" = yes; then
29684   link_test_func=readline
29685 else
29686   link_test_func=exit
29687 fi
29688
29689 if test "$PORTNAME" = "darwin"; then
29690   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29691 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29692 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29693   $as_echo_n "(cached) " >&6
29694 else
29695   pgac_save_LDFLAGS=$LDFLAGS
29696 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29697 if test "$cross_compiling" = yes; then
29698   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29699 else
29700   cat >conftest.$ac_ext <<_ACEOF
29701 /* confdefs.h.  */
29702 _ACEOF
29703 cat confdefs.h >>conftest.$ac_ext
29704 cat >>conftest.$ac_ext <<_ACEOF
29705 /* end confdefs.h.  */
29706 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29707 int
29708 main ()
29709 {
29710
29711   ;
29712   return 0;
29713 }
29714 _ACEOF
29715 rm -f conftest$ac_exeext
29716 if { (ac_try="$ac_link"
29717 case "(($ac_try" in
29718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719   *) ac_try_echo=$ac_try;;
29720 esac
29721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29722 $as_echo "$ac_try_echo") >&5
29723   (eval "$ac_link") 2>&5
29724   ac_status=$?
29725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29727   { (case "(($ac_try" in
29728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29729   *) ac_try_echo=$ac_try;;
29730 esac
29731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29732 $as_echo "$ac_try_echo") >&5
29733   (eval "$ac_try") 2>&5
29734   ac_status=$?
29735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); }; }; then
29737   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29738 else
29739   $as_echo "$as_me: program exited with status $ac_status" >&5
29740 $as_echo "$as_me: failed program was:" >&5
29741 sed 's/^/| /' conftest.$ac_ext >&5
29742
29743 ( exit $ac_status )
29744 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29745 fi
29746 rm -rf conftest.dSYM
29747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29748 fi
29749
29750
29751 LDFLAGS="$pgac_save_LDFLAGS"
29752 fi
29753 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29754 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29755 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29756   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29757 fi
29758
29759 elif test "$PORTNAME" = "openbsd"; then
29760   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29761 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29762 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29763   $as_echo_n "(cached) " >&6
29764 else
29765   pgac_save_LDFLAGS=$LDFLAGS
29766 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29767 if test "$cross_compiling" = yes; then
29768   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29769 else
29770   cat >conftest.$ac_ext <<_ACEOF
29771 /* confdefs.h.  */
29772 _ACEOF
29773 cat confdefs.h >>conftest.$ac_ext
29774 cat >>conftest.$ac_ext <<_ACEOF
29775 /* end confdefs.h.  */
29776 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29777 int
29778 main ()
29779 {
29780
29781   ;
29782   return 0;
29783 }
29784 _ACEOF
29785 rm -f conftest$ac_exeext
29786 if { (ac_try="$ac_link"
29787 case "(($ac_try" in
29788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789   *) ac_try_echo=$ac_try;;
29790 esac
29791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29792 $as_echo "$ac_try_echo") >&5
29793   (eval "$ac_link") 2>&5
29794   ac_status=$?
29795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29797   { (case "(($ac_try" in
29798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799   *) ac_try_echo=$ac_try;;
29800 esac
29801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29802 $as_echo "$ac_try_echo") >&5
29803   (eval "$ac_try") 2>&5
29804   ac_status=$?
29805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806   (exit $ac_status); }; }; then
29807   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29808 else
29809   $as_echo "$as_me: program exited with status $ac_status" >&5
29810 $as_echo "$as_me: failed program was:" >&5
29811 sed 's/^/| /' conftest.$ac_ext >&5
29812
29813 ( exit $ac_status )
29814 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29815 fi
29816 rm -rf conftest.dSYM
29817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29818 fi
29819
29820
29821 LDFLAGS="$pgac_save_LDFLAGS"
29822 fi
29823 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29824 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29825 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29826   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29827 fi
29828
29829 else
29830   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29831 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29832 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29833   $as_echo_n "(cached) " >&6
29834 else
29835   pgac_save_LDFLAGS=$LDFLAGS
29836 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29837 if test "$cross_compiling" = yes; then
29838   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29839 else
29840   cat >conftest.$ac_ext <<_ACEOF
29841 /* confdefs.h.  */
29842 _ACEOF
29843 cat confdefs.h >>conftest.$ac_ext
29844 cat >>conftest.$ac_ext <<_ACEOF
29845 /* end confdefs.h.  */
29846 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29847 int
29848 main ()
29849 {
29850
29851   ;
29852   return 0;
29853 }
29854 _ACEOF
29855 rm -f conftest$ac_exeext
29856 if { (ac_try="$ac_link"
29857 case "(($ac_try" in
29858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859   *) ac_try_echo=$ac_try;;
29860 esac
29861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29862 $as_echo "$ac_try_echo") >&5
29863   (eval "$ac_link") 2>&5
29864   ac_status=$?
29865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29867   { (case "(($ac_try" in
29868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869   *) ac_try_echo=$ac_try;;
29870 esac
29871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29872 $as_echo "$ac_try_echo") >&5
29873   (eval "$ac_try") 2>&5
29874   ac_status=$?
29875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876   (exit $ac_status); }; }; then
29877   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29878 else
29879   $as_echo "$as_me: program exited with status $ac_status" >&5
29880 $as_echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29882
29883 ( exit $ac_status )
29884 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29885 fi
29886 rm -rf conftest.dSYM
29887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29888 fi
29889
29890
29891 LDFLAGS="$pgac_save_LDFLAGS"
29892 fi
29893 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29894 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29895 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29896   LDFLAGS="$LDFLAGS -Wl,--as-needed"
29897 fi
29898
29899 fi
29900
29901 # Create compiler version string
29902 if test x"$GCC" = x"yes" ; then
29903   cc_string=`${CC} --version | sed q`
29904   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29905 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29906   cc_string=`${CC} -V 2>&1 | sed q`
29907 else
29908   cc_string=$CC
29909 fi
29910
29911
29912 cat >>confdefs.h <<_ACEOF
29913 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29914 _ACEOF
29915
29916
29917 # Supply a numeric version string for use by 3rd party add-ons
29918 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29919 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29920 tr '.' '        ' |
29921 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29922
29923 cat >>confdefs.h <<_ACEOF
29924 #define PG_VERSION_NUM $PG_VERSION_NUM
29925 _ACEOF
29926
29927
29928
29929 # Begin output steps
29930
29931 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29932 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29933 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29934 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29935 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29936 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29937 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29938 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29939
29940 # prepare build tree if outside source tree
29941 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29942 # Note 2: /bin/pwd might be better than shell's built-in at getting
29943 #         a symlink-free name.
29944 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29945   vpath_build=no
29946 else
29947   vpath_build=yes
29948   if test "$no_create" != yes; then
29949     $as_echo_n "preparing build tree... " >&6
29950     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29951     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29952       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29953 $as_echo "$as_me: error: failed" >&2;}
29954    { (exit 1); exit 1; }; }
29955     { $as_echo "$as_me:$LINENO: result: done" >&5
29956 $as_echo "done" >&6; }
29957   fi
29958 fi
29959
29960
29961
29962 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29963
29964
29965 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
29966
29967
29968 if test "$PORTNAME" = "win32"; then
29969 ac_config_commands="$ac_config_commands check_win32_symlinks"
29970
29971 fi
29972
29973 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29974
29975
29976 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29977
29978
29979 cat >confcache <<\_ACEOF
29980 # This file is a shell script that caches the results of configure
29981 # tests run on this system so they can be shared between configure
29982 # scripts and configure runs, see configure's option --config-cache.
29983 # It is not useful on other systems.  If it contains results you don't
29984 # want to keep, you may remove or edit it.
29985 #
29986 # config.status only pays attention to the cache file if you give it
29987 # the --recheck option to rerun configure.
29988 #
29989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29991 # following values.
29992
29993 _ACEOF
29994
29995 # The following way of writing the cache mishandles newlines in values,
29996 # but we know of no workaround that is simple, portable, and efficient.
29997 # So, we kill variables containing newlines.
29998 # Ultrix sh set writes to stderr and can't be redirected directly,
29999 # and sets the high bit in the cache file unless we assign to the vars.
30000 (
30001   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30002     eval ac_val=\$$ac_var
30003     case $ac_val in #(
30004     *${as_nl}*)
30005       case $ac_var in #(
30006       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30008       esac
30009       case $ac_var in #(
30010       _ | IFS | as_nl) ;; #(
30011       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30012       *) $as_unset $ac_var ;;
30013       esac ;;
30014     esac
30015   done
30016
30017   (set) 2>&1 |
30018     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30019     *${as_nl}ac_space=\ *)
30020       # `set' does not quote correctly, so add quotes (double-quote
30021       # substitution turns \\\\ into \\, and sed turns \\ into \).
30022       sed -n \
30023         "s/'/'\\\\''/g;
30024           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30025       ;; #(
30026     *)
30027       # `set' quotes correctly as required by POSIX, so do not add quotes.
30028       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30029       ;;
30030     esac |
30031     sort
30032 ) |
30033   sed '
30034      /^ac_cv_env_/b end
30035      t clear
30036      :clear
30037      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30038      t end
30039      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30040      :end' >>confcache
30041 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30042   if test -w "$cache_file"; then
30043     test "x$cache_file" != "x/dev/null" &&
30044       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30045 $as_echo "$as_me: updating cache $cache_file" >&6;}
30046     cat confcache >$cache_file
30047   else
30048     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30049 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30050   fi
30051 fi
30052 rm -f confcache
30053
30054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30055 # Let make expand exec_prefix.
30056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30057
30058 DEFS=-DHAVE_CONFIG_H
30059
30060 ac_libobjs=
30061 ac_ltlibobjs=
30062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30063   # 1. Remove the extension, and $U if already installed.
30064   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30065   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30066   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30067   #    will be set to the directory where LIBOBJS objects are built.
30068   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30069   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30070 done
30071 LIBOBJS=$ac_libobjs
30072
30073 LTLIBOBJS=$ac_ltlibobjs
30074
30075
30076
30077
30078 : ${CONFIG_STATUS=./config.status}
30079 ac_write_fail=0
30080 ac_clean_files_save=$ac_clean_files
30081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30082 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30083 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30084 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30085 #! $SHELL
30086 # Generated by $as_me.
30087 # Run this file to recreate the current configuration.
30088 # Compiler output produced by configure, useful for debugging
30089 # configure, is in config.log if it exists.
30090
30091 debug=false
30092 ac_cs_recheck=false
30093 ac_cs_silent=false
30094 SHELL=\${CONFIG_SHELL-$SHELL}
30095 _ACEOF
30096
30097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30098 ## --------------------- ##
30099 ## M4sh Initialization.  ##
30100 ## --------------------- ##
30101
30102 # Be more Bourne compatible
30103 DUALCASE=1; export DUALCASE # for MKS sh
30104 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30105   emulate sh
30106   NULLCMD=:
30107   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30108   # is contrary to our usage.  Disable this feature.
30109   alias -g '${1+"$@"}'='"$@"'
30110   setopt NO_GLOB_SUBST
30111 else
30112   case `(set -o) 2>/dev/null` in
30113   *posix*) set -o posix ;;
30114 esac
30115
30116 fi
30117
30118
30119
30120
30121 # PATH needs CR
30122 # Avoid depending upon Character Ranges.
30123 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30124 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30125 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30126 as_cr_digits='0123456789'
30127 as_cr_alnum=$as_cr_Letters$as_cr_digits
30128
30129 as_nl='
30130 '
30131 export as_nl
30132 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30133 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30134 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30135 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30136 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30137   as_echo='printf %s\n'
30138   as_echo_n='printf %s'
30139 else
30140   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30141     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30142     as_echo_n='/usr/ucb/echo -n'
30143   else
30144     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30145     as_echo_n_body='eval
30146       arg=$1;
30147       case $arg in
30148       *"$as_nl"*)
30149         expr "X$arg" : "X\\(.*\\)$as_nl";
30150         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30151       esac;
30152       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30153     '
30154     export as_echo_n_body
30155     as_echo_n='sh -c $as_echo_n_body as_echo'
30156   fi
30157   export as_echo_body
30158   as_echo='sh -c $as_echo_body as_echo'
30159 fi
30160
30161 # The user is always right.
30162 if test "${PATH_SEPARATOR+set}" != set; then
30163   PATH_SEPARATOR=:
30164   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30165     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30166       PATH_SEPARATOR=';'
30167   }
30168 fi
30169
30170 # Support unset when possible.
30171 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30172   as_unset=unset
30173 else
30174   as_unset=false
30175 fi
30176
30177
30178 # IFS
30179 # We need space, tab and new line, in precisely that order.  Quoting is
30180 # there to prevent editors from complaining about space-tab.
30181 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30182 # splitting by setting IFS to empty value.)
30183 IFS=" ""        $as_nl"
30184
30185 # Find who we are.  Look in the path if we contain no directory separator.
30186 case $0 in
30187   *[\\/]* ) as_myself=$0 ;;
30188   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30189 for as_dir in $PATH
30190 do
30191   IFS=$as_save_IFS
30192   test -z "$as_dir" && as_dir=.
30193   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30194 done
30195 IFS=$as_save_IFS
30196
30197      ;;
30198 esac
30199 # We did not find ourselves, most probably we were run as `sh COMMAND'
30200 # in which case we are not to be found in the path.
30201 if test "x$as_myself" = x; then
30202   as_myself=$0
30203 fi
30204 if test ! -f "$as_myself"; then
30205   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30206   { (exit 1); exit 1; }
30207 fi
30208
30209 # Work around bugs in pre-3.0 UWIN ksh.
30210 for as_var in ENV MAIL MAILPATH
30211 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30212 done
30213 PS1='$ '
30214 PS2='> '
30215 PS4='+ '
30216
30217 # NLS nuisances.
30218 LC_ALL=C
30219 export LC_ALL
30220 LANGUAGE=C
30221 export LANGUAGE
30222
30223 # Required to use basename.
30224 if expr a : '\(a\)' >/dev/null 2>&1 &&
30225    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30226   as_expr=expr
30227 else
30228   as_expr=false
30229 fi
30230
30231 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30232   as_basename=basename
30233 else
30234   as_basename=false
30235 fi
30236
30237
30238 # Name of the executable.
30239 as_me=`$as_basename -- "$0" ||
30240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30241          X"$0" : 'X\(//\)$' \| \
30242          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30243 $as_echo X/"$0" |
30244     sed '/^.*\/\([^/][^/]*\)\/*$/{
30245             s//\1/
30246             q
30247           }
30248           /^X\/\(\/\/\)$/{
30249             s//\1/
30250             q
30251           }
30252           /^X\/\(\/\).*/{
30253             s//\1/
30254             q
30255           }
30256           s/.*/./; q'`
30257
30258 # CDPATH.
30259 $as_unset CDPATH
30260
30261
30262
30263   as_lineno_1=$LINENO
30264   as_lineno_2=$LINENO
30265   test "x$as_lineno_1" != "x$as_lineno_2" &&
30266   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30267
30268   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30269   # uniformly replaced by the line number.  The first 'sed' inserts a
30270   # line-number line after each line using $LINENO; the second 'sed'
30271   # does the real work.  The second script uses 'N' to pair each
30272   # line-number line with the line containing $LINENO, and appends
30273   # trailing '-' during substitution so that $LINENO is not a special
30274   # case at line end.
30275   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30276   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30277   # E. McMahon (1931-1989) for sed's syntax.  :-)
30278   sed -n '
30279     p
30280     /[$]LINENO/=
30281   ' <$as_myself |
30282     sed '
30283       s/[$]LINENO.*/&-/
30284       t lineno
30285       b
30286       :lineno
30287       N
30288       :loop
30289       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30290       t loop
30291       s/-\n.*//
30292     ' >$as_me.lineno &&
30293   chmod +x "$as_me.lineno" ||
30294     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30295    { (exit 1); exit 1; }; }
30296
30297   # Don't try to exec as it changes $[0], causing all sort of problems
30298   # (the dirname of $[0] is not the place where we might find the
30299   # original and so on.  Autoconf is especially sensitive to this).
30300   . "./$as_me.lineno"
30301   # Exit status is that of the last command.
30302   exit
30303 }
30304
30305
30306 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30307   as_dirname=dirname
30308 else
30309   as_dirname=false
30310 fi
30311
30312 ECHO_C= ECHO_N= ECHO_T=
30313 case `echo -n x` in
30314 -n*)
30315   case `echo 'x\c'` in
30316   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30317   *)   ECHO_C='\c';;
30318   esac;;
30319 *)
30320   ECHO_N='-n';;
30321 esac
30322 if expr a : '\(a\)' >/dev/null 2>&1 &&
30323    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30324   as_expr=expr
30325 else
30326   as_expr=false
30327 fi
30328
30329 rm -f conf$$ conf$$.exe conf$$.file
30330 if test -d conf$$.dir; then
30331   rm -f conf$$.dir/conf$$.file
30332 else
30333   rm -f conf$$.dir
30334   mkdir conf$$.dir 2>/dev/null
30335 fi
30336 if (echo >conf$$.file) 2>/dev/null; then
30337   if ln -s conf$$.file conf$$ 2>/dev/null; then
30338     as_ln_s='ln -s'
30339     # ... but there are two gotchas:
30340     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30341     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30342     # In both cases, we have to default to `cp -p'.
30343     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30344       as_ln_s='cp -p'
30345   elif ln conf$$.file conf$$ 2>/dev/null; then
30346     as_ln_s=ln
30347   else
30348     as_ln_s='cp -p'
30349   fi
30350 else
30351   as_ln_s='cp -p'
30352 fi
30353 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30354 rmdir conf$$.dir 2>/dev/null
30355
30356 if mkdir -p . 2>/dev/null; then
30357   as_mkdir_p=:
30358 else
30359   test -d ./-p && rmdir ./-p
30360   as_mkdir_p=false
30361 fi
30362
30363 if test -x / >/dev/null 2>&1; then
30364   as_test_x='test -x'
30365 else
30366   if ls -dL / >/dev/null 2>&1; then
30367     as_ls_L_option=L
30368   else
30369     as_ls_L_option=
30370   fi
30371   as_test_x='
30372     eval sh -c '\''
30373       if test -d "$1"; then
30374         test -d "$1/.";
30375       else
30376         case $1 in
30377         -*)set "./$1";;
30378         esac;
30379         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30380         ???[sx]*):;;*)false;;esac;fi
30381     '\'' sh
30382   '
30383 fi
30384 as_executable_p=$as_test_x
30385
30386 # Sed expression to map a string onto a valid CPP name.
30387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30388
30389 # Sed expression to map a string onto a valid variable name.
30390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30391
30392
30393 exec 6>&1
30394
30395 # Save the log message, to keep $[0] and so on meaningful, and to
30396 # report actual input values of CONFIG_FILES etc. instead of their
30397 # values after options handling.
30398 ac_log="
30399 This file was extended by PostgreSQL $as_me 9.2devel, which was
30400 generated by GNU Autoconf 2.63.  Invocation command line was
30401
30402   CONFIG_FILES    = $CONFIG_FILES
30403   CONFIG_HEADERS  = $CONFIG_HEADERS
30404   CONFIG_LINKS    = $CONFIG_LINKS
30405   CONFIG_COMMANDS = $CONFIG_COMMANDS
30406   $ $0 $@
30407
30408 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30409 "
30410
30411 _ACEOF
30412
30413 case $ac_config_files in *"
30414 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30415 esac
30416
30417 case $ac_config_headers in *"
30418 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30419 esac
30420
30421
30422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30423 # Files that config.status was made for.
30424 config_files="$ac_config_files"
30425 config_headers="$ac_config_headers"
30426 config_links="$ac_config_links"
30427 config_commands="$ac_config_commands"
30428
30429 _ACEOF
30430
30431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30432 ac_cs_usage="\
30433 \`$as_me' instantiates files from templates according to the
30434 current configuration.
30435
30436 Usage: $0 [OPTION]... [FILE]...
30437
30438   -h, --help       print this help, then exit
30439   -V, --version    print version number and configuration settings, then exit
30440   -q, --quiet, --silent
30441                    do not print progress messages
30442   -d, --debug      don't remove temporary files
30443       --recheck    update $as_me by reconfiguring in the same conditions
30444       --file=FILE[:TEMPLATE]
30445                    instantiate the configuration file FILE
30446       --header=FILE[:TEMPLATE]
30447                    instantiate the configuration header FILE
30448
30449 Configuration files:
30450 $config_files
30451
30452 Configuration headers:
30453 $config_headers
30454
30455 Configuration links:
30456 $config_links
30457
30458 Configuration commands:
30459 $config_commands
30460
30461 Report bugs to <bug-autoconf@gnu.org>."
30462
30463 _ACEOF
30464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30465 ac_cs_version="\\
30466 PostgreSQL config.status 9.2devel
30467 configured by $0, generated by GNU Autoconf 2.63,
30468   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30469
30470 Copyright (C) 2008 Free Software Foundation, Inc.
30471 This config.status script is free software; the Free Software Foundation
30472 gives unlimited permission to copy, distribute and modify it."
30473
30474 ac_pwd='$ac_pwd'
30475 srcdir='$srcdir'
30476 MKDIR_P='$MKDIR_P'
30477 AWK='$AWK'
30478 test -n "\$AWK" || AWK=awk
30479 _ACEOF
30480
30481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30482 # The default lists apply if the user does not specify any file.
30483 ac_need_defaults=:
30484 while test $# != 0
30485 do
30486   case $1 in
30487   --*=*)
30488     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30489     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30490     ac_shift=:
30491     ;;
30492   *)
30493     ac_option=$1
30494     ac_optarg=$2
30495     ac_shift=shift
30496     ;;
30497   esac
30498
30499   case $ac_option in
30500   # Handling of the options.
30501   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30502     ac_cs_recheck=: ;;
30503   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30504     $as_echo "$ac_cs_version"; exit ;;
30505   --debug | --debu | --deb | --de | --d | -d )
30506     debug=: ;;
30507   --file | --fil | --fi | --f )
30508     $ac_shift
30509     case $ac_optarg in
30510     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30511     esac
30512     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30513     ac_need_defaults=false;;
30514   --header | --heade | --head | --hea )
30515     $ac_shift
30516     case $ac_optarg in
30517     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30518     esac
30519     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30520     ac_need_defaults=false;;
30521   --he | --h)
30522     # Conflict between --help and --header
30523     { $as_echo "$as_me: error: ambiguous option: $1
30524 Try \`$0 --help' for more information." >&2
30525    { (exit 1); exit 1; }; };;
30526   --help | --hel | -h )
30527     $as_echo "$ac_cs_usage"; exit ;;
30528   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30529   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30530     ac_cs_silent=: ;;
30531
30532   # This is an error.
30533   -*) { $as_echo "$as_me: error: unrecognized option: $1
30534 Try \`$0 --help' for more information." >&2
30535    { (exit 1); exit 1; }; } ;;
30536
30537   *) ac_config_targets="$ac_config_targets $1"
30538      ac_need_defaults=false ;;
30539
30540   esac
30541   shift
30542 done
30543
30544 ac_configure_extra_args=
30545
30546 if $ac_cs_silent; then
30547   exec 6>/dev/null
30548   ac_configure_extra_args="$ac_configure_extra_args --silent"
30549 fi
30550
30551 _ACEOF
30552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30553 if \$ac_cs_recheck; then
30554   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30555   shift
30556   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30557   CONFIG_SHELL='$SHELL'
30558   export CONFIG_SHELL
30559   exec "\$@"
30560 fi
30561
30562 _ACEOF
30563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30564 exec 5>>config.log
30565 {
30566   echo
30567   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30568 ## Running $as_me. ##
30569 _ASBOX
30570   $as_echo "$ac_log"
30571 } >&5
30572
30573 _ACEOF
30574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30575 _ACEOF
30576
30577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30578
30579 # Handling of arguments.
30580 for ac_config_target in $ac_config_targets
30581 do
30582   case $ac_config_target in
30583     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30584     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30585     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30586     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30587     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30588     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30589     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30590     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30591     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30592     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30593     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30594     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30595     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30596
30597   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30598 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30599    { (exit 1); exit 1; }; };;
30600   esac
30601 done
30602
30603
30604 # If the user did not use the arguments to specify the items to instantiate,
30605 # then the envvar interface is used.  Set only those that are not.
30606 # We use the long form for the default assignment because of an extremely
30607 # bizarre bug on SunOS 4.1.3.
30608 if $ac_need_defaults; then
30609   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30610   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30611   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30612   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30613 fi
30614
30615 # Have a temporary directory for convenience.  Make it in the build tree
30616 # simply because there is no reason against having it here, and in addition,
30617 # creating and moving files from /tmp can sometimes cause problems.
30618 # Hook for its removal unless debugging.
30619 # Note that there is a small window in which the directory will not be cleaned:
30620 # after its creation but before its name has been assigned to `$tmp'.
30621 $debug ||
30622 {
30623   tmp=
30624   trap 'exit_status=$?
30625   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30626 ' 0
30627   trap '{ (exit 1); exit 1; }' 1 2 13 15
30628 }
30629 # Create a (secure) tmp directory for tmp files.
30630
30631 {
30632   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30633   test -n "$tmp" && test -d "$tmp"
30634 }  ||
30635 {
30636   tmp=./conf$$-$RANDOM
30637   (umask 077 && mkdir "$tmp")
30638 } ||
30639 {
30640    $as_echo "$as_me: cannot create a temporary directory in ." >&2
30641    { (exit 1); exit 1; }
30642 }
30643
30644 # Set up the scripts for CONFIG_FILES section.
30645 # No need to generate them if there are no CONFIG_FILES.
30646 # This happens for instance with `./config.status config.h'.
30647 if test -n "$CONFIG_FILES"; then
30648
30649
30650 ac_cr='\r'
30651 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30652 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30653   ac_cs_awk_cr='\\r'
30654 else
30655   ac_cs_awk_cr=$ac_cr
30656 fi
30657
30658 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30659 _ACEOF
30660
30661
30662 {
30663   echo "cat >conf$$subs.awk <<_ACEOF" &&
30664   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30665   echo "_ACEOF"
30666 } >conf$$subs.sh ||
30667   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30668 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30669    { (exit 1); exit 1; }; }
30670 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30671 ac_delim='%!_!# '
30672 for ac_last_try in false false false false false :; do
30673   . ./conf$$subs.sh ||
30674     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30675 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30676    { (exit 1); exit 1; }; }
30677
30678   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30679   if test $ac_delim_n = $ac_delim_num; then
30680     break
30681   elif $ac_last_try; then
30682     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30683 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30684    { (exit 1); exit 1; }; }
30685   else
30686     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30687   fi
30688 done
30689 rm -f conf$$subs.sh
30690
30691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30692 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30693 _ACEOF
30694 sed -n '
30695 h
30696 s/^/S["/; s/!.*/"]=/
30697 p
30698 g
30699 s/^[^!]*!//
30700 :repl
30701 t repl
30702 s/'"$ac_delim"'$//
30703 t delim
30704 :nl
30705 h
30706 s/\(.\{148\}\).*/\1/
30707 t more1
30708 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30709 p
30710 n
30711 b repl
30712 :more1
30713 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30714 p
30715 g
30716 s/.\{148\}//
30717 t nl
30718 :delim
30719 h
30720 s/\(.\{148\}\).*/\1/
30721 t more2
30722 s/["\\]/\\&/g; s/^/"/; s/$/"/
30723 p
30724 b
30725 :more2
30726 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30727 p
30728 g
30729 s/.\{148\}//
30730 t delim
30731 ' <conf$$subs.awk | sed '
30732 /^[^""]/{
30733   N
30734   s/\n//
30735 }
30736 ' >>$CONFIG_STATUS || ac_write_fail=1
30737 rm -f conf$$subs.awk
30738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30739 _ACAWK
30740 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30741   for (key in S) S_is_set[key] = 1
30742   FS = "\a"
30743
30744 }
30745 {
30746   line = $ 0
30747   nfields = split(line, field, "@")
30748   substed = 0
30749   len = length(field[1])
30750   for (i = 2; i < nfields; i++) {
30751     key = field[i]
30752     keylen = length(key)
30753     if (S_is_set[key]) {
30754       value = S[key]
30755       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30756       len += length(value) + length(field[++i])
30757       substed = 1
30758     } else
30759       len += 1 + keylen
30760   }
30761
30762   print line
30763 }
30764
30765 _ACAWK
30766 _ACEOF
30767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30768 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30769   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30770 else
30771   cat
30772 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30773   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30774 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30775    { (exit 1); exit 1; }; }
30776 _ACEOF
30777
30778 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30779 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30780 # trailing colons and then remove the whole line if VPATH becomes empty
30781 # (actually we leave an empty line to preserve line numbers).
30782 if test "x$srcdir" = x.; then
30783   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30784 s/:*\$(srcdir):*/:/
30785 s/:*\${srcdir}:*/:/
30786 s/:*@srcdir@:*/:/
30787 s/^\([^=]*=[     ]*\):*/\1/
30788 s/:*$//
30789 s/^[^=]*=[       ]*$//
30790 }'
30791 fi
30792
30793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30794 fi # test -n "$CONFIG_FILES"
30795
30796 # Set up the scripts for CONFIG_HEADERS section.
30797 # No need to generate them if there are no CONFIG_HEADERS.
30798 # This happens for instance with `./config.status Makefile'.
30799 if test -n "$CONFIG_HEADERS"; then
30800 cat >"$tmp/defines.awk" <<\_ACAWK ||
30801 BEGIN {
30802 _ACEOF
30803
30804 # Transform confdefs.h into an awk script `defines.awk', embedded as
30805 # here-document in config.status, that substitutes the proper values into
30806 # config.h.in to produce config.h.
30807
30808 # Create a delimiter string that does not exist in confdefs.h, to ease
30809 # handling of long lines.
30810 ac_delim='%!_!# '
30811 for ac_last_try in false false :; do
30812   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30813   if test -z "$ac_t"; then
30814     break
30815   elif $ac_last_try; then
30816     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30817 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30818    { (exit 1); exit 1; }; }
30819   else
30820     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30821   fi
30822 done
30823
30824 # For the awk script, D is an array of macro values keyed by name,
30825 # likewise P contains macro parameters if any.  Preserve backslash
30826 # newline sequences.
30827
30828 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30829 sed -n '
30830 s/.\{148\}/&'"$ac_delim"'/g
30831 t rset
30832 :rset
30833 s/^[     ]*#[    ]*define[       ][      ]*/ /
30834 t def
30835 d
30836 :def
30837 s/\\$//
30838 t bsnl
30839 s/["\\]/\\&/g
30840 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30841 D["\1"]=" \3"/p
30842 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30843 d
30844 :bsnl
30845 s/["\\]/\\&/g
30846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30847 D["\1"]=" \3\\\\\\n"\\/p
30848 t cont
30849 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30850 t cont
30851 d
30852 :cont
30853 n
30854 s/.\{148\}/&'"$ac_delim"'/g
30855 t clear
30856 :clear
30857 s/\\$//
30858 t bsnlc
30859 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30860 d
30861 :bsnlc
30862 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30863 b cont
30864 ' <confdefs.h | sed '
30865 s/'"$ac_delim"'/"\\\
30866 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30867
30868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30869   for (key in D) D_is_set[key] = 1
30870   FS = "\a"
30871 }
30872 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30873   line = \$ 0
30874   split(line, arg, " ")
30875   if (arg[1] == "#") {
30876     defundef = arg[2]
30877     mac1 = arg[3]
30878   } else {
30879     defundef = substr(arg[1], 2)
30880     mac1 = arg[2]
30881   }
30882   split(mac1, mac2, "(") #)
30883   macro = mac2[1]
30884   prefix = substr(line, 1, index(line, defundef) - 1)
30885   if (D_is_set[macro]) {
30886     # Preserve the white space surrounding the "#".
30887     print prefix "define", macro P[macro] D[macro]
30888     next
30889   } else {
30890     # Replace #undef with comments.  This is necessary, for example,
30891     # in the case of _POSIX_SOURCE, which is predefined and required
30892     # on some systems where configure will not decide to define it.
30893     if (defundef == "undef") {
30894       print "/*", prefix defundef, macro, "*/"
30895       next
30896     }
30897   }
30898 }
30899 { print }
30900 _ACAWK
30901 _ACEOF
30902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30903   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30904 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30905    { (exit 1); exit 1; }; }
30906 fi # test -n "$CONFIG_HEADERS"
30907
30908
30909 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30910 shift
30911 for ac_tag
30912 do
30913   case $ac_tag in
30914   :[FHLC]) ac_mode=$ac_tag; continue;;
30915   esac
30916   case $ac_mode$ac_tag in
30917   :[FHL]*:*);;
30918   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30919 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30920    { (exit 1); exit 1; }; };;
30921   :[FH]-) ac_tag=-:-;;
30922   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30923   esac
30924   ac_save_IFS=$IFS
30925   IFS=:
30926   set x $ac_tag
30927   IFS=$ac_save_IFS
30928   shift
30929   ac_file=$1
30930   shift
30931
30932   case $ac_mode in
30933   :L) ac_source=$1;;
30934   :[FH])
30935     ac_file_inputs=
30936     for ac_f
30937     do
30938       case $ac_f in
30939       -) ac_f="$tmp/stdin";;
30940       *) # Look for the file first in the build tree, then in the source tree
30941          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30942          # because $ac_f cannot contain `:'.
30943          test -f "$ac_f" ||
30944            case $ac_f in
30945            [\\/$]*) false;;
30946            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30947            esac ||
30948            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30949 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30950    { (exit 1); exit 1; }; };;
30951       esac
30952       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30953       ac_file_inputs="$ac_file_inputs '$ac_f'"
30954     done
30955
30956     # Let's still pretend it is `configure' which instantiates (i.e., don't
30957     # use $as_me), people would be surprised to read:
30958     #    /* config.h.  Generated by config.status.  */
30959     configure_input='Generated from '`
30960           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30961         `' by configure.'
30962     if test x"$ac_file" != x-; then
30963       configure_input="$ac_file.  $configure_input"
30964       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30965 $as_echo "$as_me: creating $ac_file" >&6;}
30966     fi
30967     # Neutralize special characters interpreted by sed in replacement strings.
30968     case $configure_input in #(
30969     *\&* | *\|* | *\\* )
30970        ac_sed_conf_input=`$as_echo "$configure_input" |
30971        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30972     *) ac_sed_conf_input=$configure_input;;
30973     esac
30974
30975     case $ac_tag in
30976     *:-:* | *:-) cat >"$tmp/stdin" \
30977       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30978 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30979    { (exit 1); exit 1; }; } ;;
30980     esac
30981     ;;
30982   esac
30983
30984   ac_dir=`$as_dirname -- "$ac_file" ||
30985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30986          X"$ac_file" : 'X\(//\)[^/]' \| \
30987          X"$ac_file" : 'X\(//\)$' \| \
30988          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30989 $as_echo X"$ac_file" |
30990     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30991             s//\1/
30992             q
30993           }
30994           /^X\(\/\/\)[^/].*/{
30995             s//\1/
30996             q
30997           }
30998           /^X\(\/\/\)$/{
30999             s//\1/
31000             q
31001           }
31002           /^X\(\/\).*/{
31003             s//\1/
31004             q
31005           }
31006           s/.*/./; q'`
31007   { as_dir="$ac_dir"
31008   case $as_dir in #(
31009   -*) as_dir=./$as_dir;;
31010   esac
31011   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31012     as_dirs=
31013     while :; do
31014       case $as_dir in #(
31015       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31016       *) as_qdir=$as_dir;;
31017       esac
31018       as_dirs="'$as_qdir' $as_dirs"
31019       as_dir=`$as_dirname -- "$as_dir" ||
31020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31021          X"$as_dir" : 'X\(//\)[^/]' \| \
31022          X"$as_dir" : 'X\(//\)$' \| \
31023          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31024 $as_echo X"$as_dir" |
31025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31026             s//\1/
31027             q
31028           }
31029           /^X\(\/\/\)[^/].*/{
31030             s//\1/
31031             q
31032           }
31033           /^X\(\/\/\)$/{
31034             s//\1/
31035             q
31036           }
31037           /^X\(\/\).*/{
31038             s//\1/
31039             q
31040           }
31041           s/.*/./; q'`
31042       test -d "$as_dir" && break
31043     done
31044     test -z "$as_dirs" || eval "mkdir $as_dirs"
31045   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31046 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31047    { (exit 1); exit 1; }; }; }
31048   ac_builddir=.
31049
31050 case "$ac_dir" in
31051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31052 *)
31053   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31054   # A ".." for each directory in $ac_dir_suffix.
31055   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31056   case $ac_top_builddir_sub in
31057   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31058   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31059   esac ;;
31060 esac
31061 ac_abs_top_builddir=$ac_pwd
31062 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31063 # for backward compatibility:
31064 ac_top_builddir=$ac_top_build_prefix
31065
31066 case $srcdir in
31067   .)  # We are building in place.
31068     ac_srcdir=.
31069     ac_top_srcdir=$ac_top_builddir_sub
31070     ac_abs_top_srcdir=$ac_pwd ;;
31071   [\\/]* | ?:[\\/]* )  # Absolute name.
31072     ac_srcdir=$srcdir$ac_dir_suffix;
31073     ac_top_srcdir=$srcdir
31074     ac_abs_top_srcdir=$srcdir ;;
31075   *) # Relative name.
31076     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31077     ac_top_srcdir=$ac_top_build_prefix$srcdir
31078     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31079 esac
31080 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31081
31082
31083   case $ac_mode in
31084   :F)
31085   #
31086   # CONFIG_FILE
31087   #
31088
31089   ac_MKDIR_P=$MKDIR_P
31090   case $MKDIR_P in
31091   [\\/$]* | ?:[\\/]* ) ;;
31092   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31093   esac
31094 _ACEOF
31095
31096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31097 # If the template does not know about datarootdir, expand it.
31098 # FIXME: This hack should be removed a few years after 2.60.
31099 ac_datarootdir_hack=; ac_datarootdir_seen=
31100
31101 ac_sed_dataroot='
31102 /datarootdir/ {
31103   p
31104   q
31105 }
31106 /@datadir@/p
31107 /@docdir@/p
31108 /@infodir@/p
31109 /@localedir@/p
31110 /@mandir@/p
31111 '
31112 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31113 *datarootdir*) ac_datarootdir_seen=yes;;
31114 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31115   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31116 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31117 _ACEOF
31118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31119   ac_datarootdir_hack='
31120   s&@datadir@&$datadir&g
31121   s&@docdir@&$docdir&g
31122   s&@infodir@&$infodir&g
31123   s&@localedir@&$localedir&g
31124   s&@mandir@&$mandir&g
31125     s&\\\${datarootdir}&$datarootdir&g' ;;
31126 esac
31127 _ACEOF
31128
31129 # Neutralize VPATH when `$srcdir' = `.'.
31130 # Shell code in configure.ac might set extrasub.
31131 # FIXME: do we really want to maintain this feature?
31132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31133 ac_sed_extra="$ac_vpsub
31134 $extrasub
31135 _ACEOF
31136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31137 :t
31138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31139 s|@configure_input@|$ac_sed_conf_input|;t t
31140 s&@top_builddir@&$ac_top_builddir_sub&;t t
31141 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31142 s&@srcdir@&$ac_srcdir&;t t
31143 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31144 s&@top_srcdir@&$ac_top_srcdir&;t t
31145 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31146 s&@builddir@&$ac_builddir&;t t
31147 s&@abs_builddir@&$ac_abs_builddir&;t t
31148 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31149 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31150 $ac_datarootdir_hack
31151 "
31152 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31153   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31154 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31155    { (exit 1); exit 1; }; }
31156
31157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31158   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31159   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31160   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31161 which seems to be undefined.  Please make sure it is defined." >&5
31162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31163 which seems to be undefined.  Please make sure it is defined." >&2;}
31164
31165   rm -f "$tmp/stdin"
31166   case $ac_file in
31167   -) cat "$tmp/out" && rm -f "$tmp/out";;
31168   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31169   esac \
31170   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31171 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31172    { (exit 1); exit 1; }; }
31173  ;;
31174   :H)
31175   #
31176   # CONFIG_HEADER
31177   #
31178   if test x"$ac_file" != x-; then
31179     {
31180       $as_echo "/* $configure_input  */" \
31181       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31182     } >"$tmp/config.h" \
31183       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31184 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31185    { (exit 1); exit 1; }; }
31186     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31187       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31188 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31189     else
31190       rm -f "$ac_file"
31191       mv "$tmp/config.h" "$ac_file" \
31192         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31193 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31194    { (exit 1); exit 1; }; }
31195     fi
31196   else
31197     $as_echo "/* $configure_input  */" \
31198       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31199       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31200 $as_echo "$as_me: error: could not create -" >&2;}
31201    { (exit 1); exit 1; }; }
31202   fi
31203  ;;
31204   :L)
31205   #
31206   # CONFIG_LINK
31207   #
31208
31209   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31210     :
31211   else
31212     # Prefer the file from the source tree if names are identical.
31213     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31214       ac_source=$srcdir/$ac_source
31215     fi
31216
31217     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31218 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31219
31220     if test ! -r "$ac_source"; then
31221       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31222 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31223    { (exit 1); exit 1; }; }
31224     fi
31225     rm -f "$ac_file"
31226
31227     # Try a relative symlink, then a hard link, then a copy.
31228     case $srcdir in
31229     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31230         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31231     esac
31232     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31233       ln "$ac_source" "$ac_file" 2>/dev/null ||
31234       cp -p "$ac_source" "$ac_file" ||
31235       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31236 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31237    { (exit 1); exit 1; }; }
31238   fi
31239  ;;
31240   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31241 $as_echo "$as_me: executing $ac_file commands" >&6;}
31242  ;;
31243   esac
31244
31245
31246   case $ac_file$ac_mode in
31247     "check_win32_symlinks":C)
31248 # Links sometimes fail undetected on Mingw -
31249 # so here we detect it and warn the user
31250 for FILE in $CONFIG_LINKS
31251  do
31252         # test -e works for symlinks in the MinGW console
31253         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31254 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31255  done
31256  ;;
31257     "src/include/pg_config.h":H)
31258 # Update timestamp for pg_config.h (see Makefile.global)
31259 echo >src/include/stamp-h
31260  ;;
31261     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31262
31263   esac
31264 done # for ac_tag
31265
31266
31267 { (exit 0); exit 0; }
31268 _ACEOF
31269 chmod +x $CONFIG_STATUS
31270 ac_clean_files=$ac_clean_files_save
31271
31272 test $ac_write_fail = 0 ||
31273   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31274 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31275    { (exit 1); exit 1; }; }
31276
31277
31278 # configure is writing to config.log, and then calls config.status.
31279 # config.status does its own redirection, appending to config.log.
31280 # Unfortunately, on DOS this fails, as config.log is still kept open
31281 # by configure, so config.status won't be able to write to it; its
31282 # output is simply discarded.  So we exec the FD to /dev/null,
31283 # effectively closing config.log, so it can be properly (re)opened and
31284 # appended to by config.status.  When coming back to configure, we
31285 # need to make the FD available again.
31286 if test "$no_create" != yes; then
31287   ac_cs_success=:
31288   ac_config_status_args=
31289   test "$silent" = yes &&
31290     ac_config_status_args="$ac_config_status_args --quiet"
31291   exec 5>/dev/null
31292   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31293   exec 5>>config.log
31294   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31295   # would make configure fail if this is the last instruction.
31296   $ac_cs_success || { (exit 1); exit 1; }
31297 fi
31298 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31299   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31300 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31301 fi
31302