]> granicus.if.org Git - postgresql/blob - configure
Fix order of shutdown processing when CTEs contain inter-references.
[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.1devel.
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-2011, 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.1devel'
602 PACKAGE_STRING='PostgreSQL 9.1devel'
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.1devel 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.1devel:";;
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        use OSSP UUID library when building
1543                           contrib/uuid-ossp
1544   --with-libxml           build with XML support
1545   --with-libxslt          use XSLT support when building contrib/xml2
1546   --with-system-tzdata=DIR
1547                           use system time zone data in DIR
1548   --without-zlib          do not use Zlib
1549   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1550
1551 Some influential environment variables:
1552   CC          C compiler command
1553   CFLAGS      C compiler flags
1554   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1555               nonstandard directory <lib dir>
1556   LIBS        libraries to pass to the linker, e.g. -l<library>
1557   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558               you have headers in a nonstandard directory <include dir>
1559   CPP         C preprocessor
1560   LDFLAGS_EX  extra linker flags for linking executables only
1561   LDFLAGS_SL  extra linker flags for linking shared libraries only
1562   DOCBOOKSTYLE
1563               location of DocBook stylesheets
1564
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1567
1568 Report bugs to <pgsql-bugs@postgresql.org>.
1569 _ACEOF
1570 ac_status=$?
1571 fi
1572
1573 if test "$ac_init_help" = "recursive"; then
1574   # If there are subdirs, report their specific --help.
1575   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576     test -d "$ac_dir" ||
1577       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578       continue
1579     ac_builddir=.
1580
1581 case "$ac_dir" in
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *)
1584   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585   # A ".." for each directory in $ac_dir_suffix.
1586   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587   case $ac_top_builddir_sub in
1588   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590   esac ;;
1591 esac
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1596
1597 case $srcdir in
1598   .)  # We are building in place.
1599     ac_srcdir=.
1600     ac_top_srcdir=$ac_top_builddir_sub
1601     ac_abs_top_srcdir=$ac_pwd ;;
1602   [\\/]* | ?:[\\/]* )  # Absolute name.
1603     ac_srcdir=$srcdir$ac_dir_suffix;
1604     ac_top_srcdir=$srcdir
1605     ac_abs_top_srcdir=$srcdir ;;
1606   *) # Relative name.
1607     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608     ac_top_srcdir=$ac_top_build_prefix$srcdir
1609     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 esac
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613     cd "$ac_dir" || { ac_status=$?; continue; }
1614     # Check for guested configure.
1615     if test -f "$ac_srcdir/configure.gnu"; then
1616       echo &&
1617       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618     elif test -f "$ac_srcdir/configure"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure" --help=recursive
1621     else
1622       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623     fi || ac_status=$?
1624     cd "$ac_pwd" || { ac_status=$?; break; }
1625   done
1626 fi
1627
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1630   cat <<\_ACEOF
1631 PostgreSQL configure 9.1devel
1632 generated by GNU Autoconf 2.63
1633
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1638
1639 Copyright (c) 1996-2011, PostgreSQL Global Development Group
1640 _ACEOF
1641   exit
1642 fi
1643 cat >config.log <<_ACEOF
1644 This file contains any messages produced by compilers while
1645 running configure, to aid debugging if configure makes a mistake.
1646
1647 It was created by PostgreSQL $as_me 9.1devel, which was
1648 generated by GNU Autoconf 2.63.  Invocation command line was
1649
1650   $ $0 $@
1651
1652 _ACEOF
1653 exec 5>>config.log
1654 {
1655 cat <<_ASUNAME
1656 ## --------- ##
1657 ## Platform. ##
1658 ## --------- ##
1659
1660 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1661 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1662 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1663 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1664 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1665
1666 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1667 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1668
1669 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1670 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1671 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1672 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1673 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1674 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1675 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1676
1677 _ASUNAME
1678
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1681 do
1682   IFS=$as_save_IFS
1683   test -z "$as_dir" && as_dir=.
1684   $as_echo "PATH: $as_dir"
1685 done
1686 IFS=$as_save_IFS
1687
1688 } >&5
1689
1690 cat >&5 <<_ACEOF
1691
1692
1693 ## ----------- ##
1694 ## Core tests. ##
1695 ## ----------- ##
1696
1697 _ACEOF
1698
1699
1700 # Keep a trace of the command line.
1701 # Strip out --no-create and --no-recursion so they do not pile up.
1702 # Strip out --silent because we don't want to record it for future runs.
1703 # Also quote any args containing shell meta-characters.
1704 # Make two passes to allow for proper duplicate-argument suppression.
1705 ac_configure_args=
1706 ac_configure_args0=
1707 ac_configure_args1=
1708 ac_must_keep_next=false
1709 for ac_pass in 1 2
1710 do
1711   for ac_arg
1712   do
1713     case $ac_arg in
1714     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1715     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1716     | -silent | --silent | --silen | --sile | --sil)
1717       continue ;;
1718     *\'*)
1719       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1720     esac
1721     case $ac_pass in
1722     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1723     2)
1724       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1725       if test $ac_must_keep_next = true; then
1726         ac_must_keep_next=false # Got value, back to normal.
1727       else
1728         case $ac_arg in
1729           *=* | --config-cache | -C | -disable-* | --disable-* \
1730           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1731           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1732           | -with-* | --with-* | -without-* | --without-* | --x)
1733             case "$ac_configure_args0 " in
1734               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1735             esac
1736             ;;
1737           -* ) ac_must_keep_next=true ;;
1738         esac
1739       fi
1740       ac_configure_args="$ac_configure_args '$ac_arg'"
1741       ;;
1742     esac
1743   done
1744 done
1745 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1746 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1747
1748 # When interrupted or exit'd, cleanup temporary files, and complete
1749 # config.log.  We remove comments because anyway the quotes in there
1750 # would cause problems or look ugly.
1751 # WARNING: Use '\'' to represent an apostrophe within the trap.
1752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1753 trap 'exit_status=$?
1754   # Save into config.log some information that might help in debugging.
1755   {
1756     echo
1757
1758     cat <<\_ASBOX
1759 ## ---------------- ##
1760 ## Cache variables. ##
1761 ## ---------------- ##
1762 _ASBOX
1763     echo
1764     # The following way of writing the cache mishandles newlines in values,
1765 (
1766   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1767     eval ac_val=\$$ac_var
1768     case $ac_val in #(
1769     *${as_nl}*)
1770       case $ac_var in #(
1771       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1773       esac
1774       case $ac_var in #(
1775       _ | IFS | as_nl) ;; #(
1776       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1777       *) $as_unset $ac_var ;;
1778       esac ;;
1779     esac
1780   done
1781   (set) 2>&1 |
1782     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1783     *${as_nl}ac_space=\ *)
1784       sed -n \
1785         "s/'\''/'\''\\\\'\'''\''/g;
1786           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1787       ;; #(
1788     *)
1789       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1790       ;;
1791     esac |
1792     sort
1793 )
1794     echo
1795
1796     cat <<\_ASBOX
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1800 _ASBOX
1801     echo
1802     for ac_var in $ac_subst_vars
1803     do
1804       eval ac_val=\$$ac_var
1805       case $ac_val in
1806       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807       esac
1808       $as_echo "$ac_var='\''$ac_val'\''"
1809     done | sort
1810     echo
1811
1812     if test -n "$ac_subst_files"; then
1813       cat <<\_ASBOX
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1817 _ASBOX
1818       echo
1819       for ac_var in $ac_subst_files
1820       do
1821         eval ac_val=\$$ac_var
1822         case $ac_val in
1823         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824         esac
1825         $as_echo "$ac_var='\''$ac_val'\''"
1826       done | sort
1827       echo
1828     fi
1829
1830     if test -s confdefs.h; then
1831       cat <<\_ASBOX
1832 ## ----------- ##
1833 ## confdefs.h. ##
1834 ## ----------- ##
1835 _ASBOX
1836       echo
1837       cat confdefs.h
1838       echo
1839     fi
1840     test "$ac_signal" != 0 &&
1841       $as_echo "$as_me: caught signal $ac_signal"
1842     $as_echo "$as_me: exit $exit_status"
1843   } >&5
1844   rm -f core *.core core.conftest.* &&
1845     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1846     exit $exit_status
1847 ' 0
1848 for ac_signal in 1 2 13 15; do
1849   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850 done
1851 ac_signal=0
1852
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1855
1856 # Predefined preprocessor variables.
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1875 _ACEOF
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880 _ACEOF
1881
1882
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer an explicitly selected file to automatically selected ones.
1885 ac_site_file1=NONE
1886 ac_site_file2=NONE
1887 if test -n "$CONFIG_SITE"; then
1888   ac_site_file1=$CONFIG_SITE
1889 elif test "x$prefix" != xNONE; then
1890   ac_site_file1=$prefix/share/config.site
1891   ac_site_file2=$prefix/etc/config.site
1892 else
1893   ac_site_file1=$ac_default_prefix/share/config.site
1894   ac_site_file2=$ac_default_prefix/etc/config.site
1895 fi
1896 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1897 do
1898   test "x$ac_site_file" = xNONE && continue
1899   if test -r "$ac_site_file"; then
1900     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1901 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1902     sed 's/^/| /' "$ac_site_file" >&5
1903     . "$ac_site_file"
1904   fi
1905 done
1906
1907 if test -r "$cache_file"; then
1908   # Some versions of bash will fail to source /dev/null (special
1909   # files actually), so we avoid doing that.
1910   if test -f "$cache_file"; then
1911     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1912 $as_echo "$as_me: loading cache $cache_file" >&6;}
1913     case $cache_file in
1914       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1915       *)                      . "./$cache_file";;
1916     esac
1917   fi
1918 else
1919   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1920 $as_echo "$as_me: creating cache $cache_file" >&6;}
1921   >$cache_file
1922 fi
1923
1924 # Check that the precious variables saved in the cache have kept the same
1925 # value.
1926 ac_cache_corrupted=false
1927 for ac_var in $ac_precious_vars; do
1928   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1929   eval ac_new_set=\$ac_env_${ac_var}_set
1930   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1931   eval ac_new_val=\$ac_env_${ac_var}_value
1932   case $ac_old_set,$ac_new_set in
1933     set,)
1934       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1936       ac_cache_corrupted=: ;;
1937     ,set)
1938       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1939 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1940       ac_cache_corrupted=: ;;
1941     ,);;
1942     *)
1943       if test "x$ac_old_val" != "x$ac_new_val"; then
1944         # differences in whitespace do not lead to failure.
1945         ac_old_val_w=`echo x $ac_old_val`
1946         ac_new_val_w=`echo x $ac_new_val`
1947         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1948           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1949 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1950           ac_cache_corrupted=:
1951         else
1952           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1953 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1954           eval $ac_var=\$ac_old_val
1955         fi
1956         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1957 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1958         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1959 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1960       fi;;
1961   esac
1962   # Pass precious variables to config.status.
1963   if test "$ac_new_set" = set; then
1964     case $ac_new_val in
1965     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1966     *) ac_arg=$ac_var=$ac_new_val ;;
1967     esac
1968     case " $ac_configure_args " in
1969       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1970       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1971     esac
1972   fi
1973 done
1974 if $ac_cache_corrupted; then
1975   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1977   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1978 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1979   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1980 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1981    { (exit 1); exit 1; }; }
1982 fi
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
2008 ac_ext=c
2009 ac_cpp='$CPP $CPPFLAGS'
2010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013
2014
2015
2016
2017
2018
2019 ac_aux_dir=
2020 for ac_dir in config "$srcdir"/config; do
2021   if test -f "$ac_dir/install-sh"; then
2022     ac_aux_dir=$ac_dir
2023     ac_install_sh="$ac_aux_dir/install-sh -c"
2024     break
2025   elif test -f "$ac_dir/install.sh"; then
2026     ac_aux_dir=$ac_dir
2027     ac_install_sh="$ac_aux_dir/install.sh -c"
2028     break
2029   elif test -f "$ac_dir/shtool"; then
2030     ac_aux_dir=$ac_dir
2031     ac_install_sh="$ac_aux_dir/shtool install -c"
2032     break
2033   fi
2034 done
2035 if test -z "$ac_aux_dir"; then
2036   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2037 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2038    { (exit 1); exit 1; }; }
2039 fi
2040
2041 # These three variables are undocumented and unsupported,
2042 # and are intended to be withdrawn in a future Autoconf release.
2043 # They can cause serious problems if a builder's source tree is in a directory
2044 # whose full name contains unusual characters.
2045 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2046 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2047 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2048
2049
2050
2051 configure_args=$ac_configure_args
2052
2053
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PG_VERSION "$PACKAGE_VERSION"
2057 _ACEOF
2058
2059 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2060
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2064 _ACEOF
2065
2066
2067 # Make sure we can run config.sub.
2068 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2069   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2070 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2071    { (exit 1); exit 1; }; }
2072
2073 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2074 $as_echo_n "checking build system type... " >&6; }
2075 if test "${ac_cv_build+set}" = set; then
2076   $as_echo_n "(cached) " >&6
2077 else
2078   ac_build_alias=$build_alias
2079 test "x$ac_build_alias" = x &&
2080   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2081 test "x$ac_build_alias" = x &&
2082   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2083 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2084    { (exit 1); exit 1; }; }
2085 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2086   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2087 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2088    { (exit 1); exit 1; }; }
2089
2090 fi
2091 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2092 $as_echo "$ac_cv_build" >&6; }
2093 case $ac_cv_build in
2094 *-*-*) ;;
2095 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2096 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2097    { (exit 1); exit 1; }; };;
2098 esac
2099 build=$ac_cv_build
2100 ac_save_IFS=$IFS; IFS='-'
2101 set x $ac_cv_build
2102 shift
2103 build_cpu=$1
2104 build_vendor=$2
2105 shift; shift
2106 # Remember, the first character of IFS is used to create $*,
2107 # except with old shells:
2108 build_os=$*
2109 IFS=$ac_save_IFS
2110 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2111
2112
2113 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2114 $as_echo_n "checking host system type... " >&6; }
2115 if test "${ac_cv_host+set}" = set; then
2116   $as_echo_n "(cached) " >&6
2117 else
2118   if test "x$host_alias" = x; then
2119   ac_cv_host=$ac_cv_build
2120 else
2121   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2122     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2123 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2124    { (exit 1); exit 1; }; }
2125 fi
2126
2127 fi
2128 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2129 $as_echo "$ac_cv_host" >&6; }
2130 case $ac_cv_host in
2131 *-*-*) ;;
2132 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2133 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2134    { (exit 1); exit 1; }; };;
2135 esac
2136 host=$ac_cv_host
2137 ac_save_IFS=$IFS; IFS='-'
2138 set x $ac_cv_host
2139 shift
2140 host_cpu=$1
2141 host_vendor=$2
2142 shift; shift
2143 # Remember, the first character of IFS is used to create $*,
2144 # except with old shells:
2145 host_os=$*
2146 IFS=$ac_save_IFS
2147 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2148
2149
2150
2151 template=
2152 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2153 $as_echo_n "checking which template to use... " >&6; }
2154
2155
2156
2157
2158 # Check whether --with-template was given.
2159 if test "${with_template+set}" = set; then
2160   withval=$with_template;
2161   case $withval in
2162     yes)
2163       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2164 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2165    { (exit 1); exit 1; }; }
2166       ;;
2167     no)
2168       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2169 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2170    { (exit 1); exit 1; }; }
2171       ;;
2172     *)
2173
2174   case $withval in
2175     list)   echo; ls "$srcdir/src/template"; exit;;
2176     *)      if test -f "$srcdir/src/template/$with_template" ; then
2177               template=$withval
2178             else
2179               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2180 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2181    { (exit 1); exit 1; }; }
2182             fi;;
2183   esac
2184
2185       ;;
2186   esac
2187
2188 else
2189
2190 # --with-template not given
2191
2192 case $host_os in
2193      aix*) template=aix ;;
2194     bsdi*) template=bsdi ;;
2195   cygwin*) template=cygwin ;;
2196   darwin*) template=darwin ;;
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 cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h.  */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h.  */
4019
4020 int
4021 main ()
4022 {
4023
4024   ;
4025   return 0;
4026 }
4027 _ACEOF
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4030 case "(($ac_try" in
4031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032   *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4035 $as_echo "$ac_try_echo") >&5
4036   (eval "$ac_compile") 2>conftest.er1
4037   ac_status=$?
4038   grep -v '^ *+' conftest.er1 >conftest.err
4039   rm -f conftest.er1
4040   cat conftest.err >&5
4041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); } && {
4043          test -z "$ac_c_werror_flag" ||
4044          test ! -s conftest.err
4045        } && test -s conftest.$ac_objext; then
4046   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4047 else
4048   $as_echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4052 fi
4053
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 CFLAGS="$pgac_save_CFLAGS"
4056 fi
4057 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4058 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4059 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4060   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4061 fi
4062
4063   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4064 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4065 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4066   $as_echo_n "(cached) " >&6
4067 else
4068   pgac_save_CFLAGS=$CFLAGS
4069 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4070 cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h.  */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h.  */
4076
4077 int
4078 main ()
4079 {
4080
4081   ;
4082   return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest.$ac_objext
4086 if { (ac_try="$ac_compile"
4087 case "(($ac_try" in
4088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089   *) ac_try_echo=$ac_try;;
4090 esac
4091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4092 $as_echo "$ac_try_echo") >&5
4093   (eval "$ac_compile") 2>conftest.er1
4094   ac_status=$?
4095   grep -v '^ *+' conftest.er1 >conftest.err
4096   rm -f conftest.er1
4097   cat conftest.err >&5
4098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); } && {
4100          test -z "$ac_c_werror_flag" ||
4101          test ! -s conftest.err
4102        } && test -s conftest.$ac_objext; then
4103   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4104 else
4105   $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108         pgac_cv_prog_cc_cflags__Wendif_labels=no
4109 fi
4110
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 CFLAGS="$pgac_save_CFLAGS"
4113 fi
4114 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4115 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4116 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4117   CFLAGS="$CFLAGS -Wendif-labels"
4118 fi
4119
4120   # This was included in -Wall/-Wformat in older GCC versions
4121   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4122 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4123 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4124   $as_echo_n "(cached) " >&6
4125 else
4126   pgac_save_CFLAGS=$CFLAGS
4127 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134
4135 int
4136 main ()
4137 {
4138
4139   ;
4140   return 0;
4141 }
4142 _ACEOF
4143 rm -f conftest.$ac_objext
4144 if { (ac_try="$ac_compile"
4145 case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4150 $as_echo "$ac_try_echo") >&5
4151   (eval "$ac_compile") 2>conftest.er1
4152   ac_status=$?
4153   grep -v '^ *+' conftest.er1 >conftest.err
4154   rm -f conftest.er1
4155   cat conftest.err >&5
4156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); } && {
4158          test -z "$ac_c_werror_flag" ||
4159          test ! -s conftest.err
4160        } && test -s conftest.$ac_objext; then
4161   pgac_cv_prog_cc_cflags__Wformat_security=yes
4162 else
4163   $as_echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4165
4166         pgac_cv_prog_cc_cflags__Wformat_security=no
4167 fi
4168
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 CFLAGS="$pgac_save_CFLAGS"
4171 fi
4172 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4173 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4174 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4175   CFLAGS="$CFLAGS -Wformat-security"
4176 fi
4177
4178   # Disable strict-aliasing rules; needed for gcc 3.3+
4179   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4180 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4181 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4182   $as_echo_n "(cached) " >&6
4183 else
4184   pgac_save_CFLAGS=$CFLAGS
4185 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4186 cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192
4193 int
4194 main ()
4195 {
4196
4197   ;
4198   return 0;
4199 }
4200 _ACEOF
4201 rm -f conftest.$ac_objext
4202 if { (ac_try="$ac_compile"
4203 case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4208 $as_echo "$ac_try_echo") >&5
4209   (eval "$ac_compile") 2>conftest.er1
4210   ac_status=$?
4211   grep -v '^ *+' conftest.er1 >conftest.err
4212   rm -f conftest.er1
4213   cat conftest.err >&5
4214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } && {
4216          test -z "$ac_c_werror_flag" ||
4217          test ! -s conftest.err
4218        } && test -s conftest.$ac_objext; then
4219   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4220 else
4221   $as_echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4225 fi
4226
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 CFLAGS="$pgac_save_CFLAGS"
4229 fi
4230 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4231 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4232 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4233   CFLAGS="$CFLAGS -fno-strict-aliasing"
4234 fi
4235
4236   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4237   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4238 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4239 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4240   $as_echo_n "(cached) " >&6
4241 else
4242   pgac_save_CFLAGS=$CFLAGS
4243 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250
4251 int
4252 main ()
4253 {
4254
4255   ;
4256   return 0;
4257 }
4258 _ACEOF
4259 rm -f conftest.$ac_objext
4260 if { (ac_try="$ac_compile"
4261 case "(($ac_try" in
4262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263   *) ac_try_echo=$ac_try;;
4264 esac
4265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4266 $as_echo "$ac_try_echo") >&5
4267   (eval "$ac_compile") 2>conftest.er1
4268   ac_status=$?
4269   grep -v '^ *+' conftest.er1 >conftest.err
4270   rm -f conftest.er1
4271   cat conftest.err >&5
4272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } && {
4274          test -z "$ac_c_werror_flag" ||
4275          test ! -s conftest.err
4276        } && test -s conftest.$ac_objext; then
4277   pgac_cv_prog_cc_cflags__fwrapv=yes
4278 else
4279   $as_echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282         pgac_cv_prog_cc_cflags__fwrapv=no
4283 fi
4284
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 CFLAGS="$pgac_save_CFLAGS"
4287 fi
4288 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4289 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4290 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4291   CFLAGS="$CFLAGS -fwrapv"
4292 fi
4293
4294 elif test "$ICC" = yes; then
4295   # Intel's compiler has a bug/misoptimization in checking for
4296   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4297   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4298 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4299 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4300   $as_echo_n "(cached) " >&6
4301 else
4302   pgac_save_CFLAGS=$CFLAGS
4303 CFLAGS="$pgac_save_CFLAGS -mp1"
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h.  */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h.  */
4310
4311 int
4312 main ()
4313 {
4314
4315   ;
4316   return 0;
4317 }
4318 _ACEOF
4319 rm -f conftest.$ac_objext
4320 if { (ac_try="$ac_compile"
4321 case "(($ac_try" in
4322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323   *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4326 $as_echo "$ac_try_echo") >&5
4327   (eval "$ac_compile") 2>conftest.er1
4328   ac_status=$?
4329   grep -v '^ *+' conftest.er1 >conftest.err
4330   rm -f conftest.er1
4331   cat conftest.err >&5
4332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); } && {
4334          test -z "$ac_c_werror_flag" ||
4335          test ! -s conftest.err
4336        } && test -s conftest.$ac_objext; then
4337   pgac_cv_prog_cc_cflags__mp1=yes
4338 else
4339   $as_echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342         pgac_cv_prog_cc_cflags__mp1=no
4343 fi
4344
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 CFLAGS="$pgac_save_CFLAGS"
4347 fi
4348 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4349 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4350 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4351   CFLAGS="$CFLAGS -mp1"
4352 fi
4353
4354   # Make sure strict aliasing is off (though this is said to be the default)
4355   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4356 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4357 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4358   $as_echo_n "(cached) " >&6
4359 else
4360   pgac_save_CFLAGS=$CFLAGS
4361 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368
4369 int
4370 main ()
4371 {
4372
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (ac_try="$ac_compile"
4379 case "(($ac_try" in
4380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381   *) ac_try_echo=$ac_try;;
4382 esac
4383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4384 $as_echo "$ac_try_echo") >&5
4385   (eval "$ac_compile") 2>conftest.er1
4386   ac_status=$?
4387   grep -v '^ *+' conftest.er1 >conftest.err
4388   rm -f conftest.er1
4389   cat conftest.err >&5
4390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); } && {
4392          test -z "$ac_c_werror_flag" ||
4393          test ! -s conftest.err
4394        } && test -s conftest.$ac_objext; then
4395   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4396 else
4397   $as_echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4401 fi
4402
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 CFLAGS="$pgac_save_CFLAGS"
4405 fi
4406 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4407 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4408 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4409   CFLAGS="$CFLAGS -fno-strict-aliasing"
4410 fi
4411
4412 elif test "$PORTNAME" = "aix"; then
4413   # AIX's xlc has to have strict aliasing turned off too
4414   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4415 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4416 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4417   $as_echo_n "(cached) " >&6
4418 else
4419   pgac_save_CFLAGS=$CFLAGS
4420 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h.  */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h.  */
4427
4428 int
4429 main ()
4430 {
4431
4432   ;
4433   return 0;
4434 }
4435 _ACEOF
4436 rm -f conftest.$ac_objext
4437 if { (ac_try="$ac_compile"
4438 case "(($ac_try" in
4439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440   *) ac_try_echo=$ac_try;;
4441 esac
4442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4443 $as_echo "$ac_try_echo") >&5
4444   (eval "$ac_compile") 2>conftest.er1
4445   ac_status=$?
4446   grep -v '^ *+' conftest.er1 >conftest.err
4447   rm -f conftest.er1
4448   cat conftest.err >&5
4449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); } && {
4451          test -z "$ac_c_werror_flag" ||
4452          test ! -s conftest.err
4453        } && test -s conftest.$ac_objext; then
4454   pgac_cv_prog_cc_cflags__qnoansialias=yes
4455 else
4456   $as_echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459         pgac_cv_prog_cc_cflags__qnoansialias=no
4460 fi
4461
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 CFLAGS="$pgac_save_CFLAGS"
4464 fi
4465 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4466 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4467 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4468   CFLAGS="$CFLAGS -qnoansialias"
4469 fi
4470
4471 fi
4472
4473 # supply -g if --enable-debug
4474 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4475   CFLAGS="$CFLAGS -g"
4476 fi
4477
4478 # enable code coverage if --enable-coverage
4479 if test "$enable_coverage" = yes; then
4480   if test "$GCC" = yes; then
4481     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4482   else
4483     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4484 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4485    { (exit 1); exit 1; }; }
4486   fi
4487 fi
4488
4489 # enable profiling if --enable-profiling
4490 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4491   if test "$GCC" = yes; then
4492
4493 cat >>confdefs.h <<\_ACEOF
4494 #define PROFILE_PID_DIR 1
4495 _ACEOF
4496
4497     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4498   else
4499     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4500 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4501    { (exit 1); exit 1; }; }
4502   fi
4503 fi
4504
4505 # We already have this in Makefile.win32, but configure needs it too
4506 if test "$PORTNAME" = "win32"; then
4507   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4508 fi
4509
4510 # Check if the compiler still works with the template settings
4511 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4512 $as_echo_n "checking whether the C compiler still works... " >&6; }
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h.  */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h.  */
4519
4520 int
4521 main ()
4522 {
4523 return 0;
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.$ac_objext conftest$ac_exeext
4529 if { (ac_try="$ac_link"
4530 case "(($ac_try" in
4531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532   *) ac_try_echo=$ac_try;;
4533 esac
4534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4535 $as_echo "$ac_try_echo") >&5
4536   (eval "$ac_link") 2>conftest.er1
4537   ac_status=$?
4538   grep -v '^ *+' conftest.er1 >conftest.err
4539   rm -f conftest.er1
4540   cat conftest.err >&5
4541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); } && {
4543          test -z "$ac_c_werror_flag" ||
4544          test ! -s conftest.err
4545        } && test -s conftest$ac_exeext && {
4546          test "$cross_compiling" = yes ||
4547          $as_test_x conftest$ac_exeext
4548        }; then
4549   { $as_echo "$as_me:$LINENO: result: yes" >&5
4550 $as_echo "yes" >&6; }
4551 else
4552   $as_echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555         { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4557    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4558 $as_echo "$as_me: error: cannot proceed" >&2;}
4559    { (exit 1); exit 1; }; }
4560 fi
4561
4562 rm -rf conftest.dSYM
4563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4564       conftest$ac_exeext conftest.$ac_ext
4565
4566 # Defend against gcc -ffast-math
4567 if test "$GCC" = yes; then
4568 cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4574
4575 int
4576 main ()
4577 {
4578 #ifdef __FAST_MATH__
4579 choke me
4580 #endif
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 rm -f conftest.$ac_objext
4586 if { (ac_try="$ac_compile"
4587 case "(($ac_try" in
4588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589   *) ac_try_echo=$ac_try;;
4590 esac
4591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4592 $as_echo "$ac_try_echo") >&5
4593   (eval "$ac_compile") 2>conftest.er1
4594   ac_status=$?
4595   grep -v '^ *+' conftest.er1 >conftest.err
4596   rm -f conftest.er1
4597   cat conftest.err >&5
4598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); } && {
4600          test -z "$ac_c_werror_flag" ||
4601          test ! -s conftest.err
4602        } && test -s conftest.$ac_objext; then
4603   :
4604 else
4605   $as_echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4609 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4610    { (exit 1); exit 1; }; }
4611 fi
4612
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 fi
4615
4616 ac_ext=c
4617 ac_cpp='$CPP $CPPFLAGS'
4618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4621 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4622 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4623 # On Suns, sometimes $CPP names a directory.
4624 if test -n "$CPP" && test -d "$CPP"; then
4625   CPP=
4626 fi
4627 if test -z "$CPP"; then
4628   if test "${ac_cv_prog_CPP+set}" = set; then
4629   $as_echo_n "(cached) " >&6
4630 else
4631       # Double quotes because CPP needs to be expanded
4632     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4633     do
4634       ac_preproc_ok=false
4635 for ac_c_preproc_warn_flag in '' yes
4636 do
4637   # Use a header file that comes with gcc, so configuring glibc
4638   # with a fresh cross-compiler works.
4639   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4640   # <limits.h> exists even on freestanding compilers.
4641   # On the NeXT, cc -E runs the code through the compiler's parser,
4642   # not just through cpp. "Syntax error" is here to catch this case.
4643   cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h.  */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h.  */
4649 #ifdef __STDC__
4650 # include <limits.h>
4651 #else
4652 # include <assert.h>
4653 #endif
4654                      Syntax error
4655 _ACEOF
4656 if { (ac_try="$ac_cpp conftest.$ac_ext"
4657 case "(($ac_try" in
4658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659   *) ac_try_echo=$ac_try;;
4660 esac
4661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4662 $as_echo "$ac_try_echo") >&5
4663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4664   ac_status=$?
4665   grep -v '^ *+' conftest.er1 >conftest.err
4666   rm -f conftest.er1
4667   cat conftest.err >&5
4668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } >/dev/null && {
4670          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4671          test ! -s conftest.err
4672        }; then
4673   :
4674 else
4675   $as_echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678   # Broken: fails on valid input.
4679 continue
4680 fi
4681
4682 rm -f conftest.err conftest.$ac_ext
4683
4684   # OK, works on sane cases.  Now check whether nonexistent headers
4685   # can be detected and how.
4686   cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h.  */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h.  */
4692 #include <ac_nonexistent.h>
4693 _ACEOF
4694 if { (ac_try="$ac_cpp conftest.$ac_ext"
4695 case "(($ac_try" in
4696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697   *) ac_try_echo=$ac_try;;
4698 esac
4699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4700 $as_echo "$ac_try_echo") >&5
4701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4702   ac_status=$?
4703   grep -v '^ *+' conftest.er1 >conftest.err
4704   rm -f conftest.er1
4705   cat conftest.err >&5
4706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); } >/dev/null && {
4708          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4709          test ! -s conftest.err
4710        }; then
4711   # Broken: success on invalid input.
4712 continue
4713 else
4714   $as_echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717   # Passes both tests.
4718 ac_preproc_ok=:
4719 break
4720 fi
4721
4722 rm -f conftest.err conftest.$ac_ext
4723
4724 done
4725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4726 rm -f conftest.err conftest.$ac_ext
4727 if $ac_preproc_ok; then
4728   break
4729 fi
4730
4731     done
4732     ac_cv_prog_CPP=$CPP
4733
4734 fi
4735   CPP=$ac_cv_prog_CPP
4736 else
4737   ac_cv_prog_CPP=$CPP
4738 fi
4739 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4740 $as_echo "$CPP" >&6; }
4741 ac_preproc_ok=false
4742 for ac_c_preproc_warn_flag in '' yes
4743 do
4744   # Use a header file that comes with gcc, so configuring glibc
4745   # with a fresh cross-compiler works.
4746   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4747   # <limits.h> exists even on freestanding compilers.
4748   # On the NeXT, cc -E runs the code through the compiler's parser,
4749   # not just through cpp. "Syntax error" is here to catch this case.
4750   cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h.  */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h.  */
4756 #ifdef __STDC__
4757 # include <limits.h>
4758 #else
4759 # include <assert.h>
4760 #endif
4761                      Syntax error
4762 _ACEOF
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4764 case "(($ac_try" in
4765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766   *) ac_try_echo=$ac_try;;
4767 esac
4768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4769 $as_echo "$ac_try_echo") >&5
4770   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4771   ac_status=$?
4772   grep -v '^ *+' conftest.er1 >conftest.err
4773   rm -f conftest.er1
4774   cat conftest.err >&5
4775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); } >/dev/null && {
4777          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4778          test ! -s conftest.err
4779        }; then
4780   :
4781 else
4782   $as_echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785   # Broken: fails on valid input.
4786 continue
4787 fi
4788
4789 rm -f conftest.err conftest.$ac_ext
4790
4791   # OK, works on sane cases.  Now check whether nonexistent headers
4792   # can be detected and how.
4793   cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h.  */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h.  */
4799 #include <ac_nonexistent.h>
4800 _ACEOF
4801 if { (ac_try="$ac_cpp conftest.$ac_ext"
4802 case "(($ac_try" in
4803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804   *) ac_try_echo=$ac_try;;
4805 esac
4806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4807 $as_echo "$ac_try_echo") >&5
4808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4809   ac_status=$?
4810   grep -v '^ *+' conftest.er1 >conftest.err
4811   rm -f conftest.er1
4812   cat conftest.err >&5
4813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); } >/dev/null && {
4815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4816          test ! -s conftest.err
4817        }; then
4818   # Broken: success on invalid input.
4819 continue
4820 else
4821   $as_echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4823
4824   # Passes both tests.
4825 ac_preproc_ok=:
4826 break
4827 fi
4828
4829 rm -f conftest.err conftest.$ac_ext
4830
4831 done
4832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4833 rm -f conftest.err conftest.$ac_ext
4834 if $ac_preproc_ok; then
4835   :
4836 else
4837   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4839 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4840 See \`config.log' for more details." >&5
4841 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4842 See \`config.log' for more details." >&2;}
4843    { (exit 1); exit 1; }; }; }
4844 fi
4845
4846 ac_ext=c
4847 ac_cpp='$CPP $CPPFLAGS'
4848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851
4852
4853
4854
4855 #
4856 # Set up TAS assembly code if needed; the template file has now had its
4857 # chance to request this.
4858 #
4859 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4860
4861
4862 if test "$need_tas" = yes ; then
4863   TAS=tas.o
4864 else
4865   TAS=""
4866 fi
4867
4868
4869
4870 #
4871 # Automatic dependency tracking
4872 #
4873
4874
4875 # Check whether --enable-depend was given.
4876 if test "${enable_depend+set}" = set; then
4877   enableval=$enable_depend;
4878   case $enableval in
4879     yes)
4880       autodepend=yes
4881       ;;
4882     no)
4883       :
4884       ;;
4885     *)
4886       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4887 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4888    { (exit 1); exit 1; }; }
4889       ;;
4890   esac
4891
4892 else
4893   enable_depend=no
4894
4895 fi
4896
4897
4898
4899
4900
4901 #
4902 # Enable assert checks
4903 #
4904
4905
4906 # Check whether --enable-cassert was given.
4907 if test "${enable_cassert+set}" = set; then
4908   enableval=$enable_cassert;
4909   case $enableval in
4910     yes)
4911
4912 cat >>confdefs.h <<\_ACEOF
4913 #define USE_ASSERT_CHECKING 1
4914 _ACEOF
4915
4916       ;;
4917     no)
4918       :
4919       ;;
4920     *)
4921       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4922 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4923    { (exit 1); exit 1; }; }
4924       ;;
4925   esac
4926
4927 else
4928   enable_cassert=no
4929
4930 fi
4931
4932
4933
4934
4935 #
4936 # Include directories
4937 #
4938 ac_save_IFS=$IFS
4939 IFS="${IFS}${PATH_SEPARATOR}"
4940 # SRCH_INC comes from the template file
4941 for dir in $with_includes $SRCH_INC; do
4942   if test -d "$dir"; then
4943     INCLUDES="$INCLUDES -I$dir"
4944   else
4945     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4946 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4947   fi
4948 done
4949 IFS=$ac_save_IFS
4950
4951
4952
4953 #
4954 # Library directories
4955 #
4956 ac_save_IFS=$IFS
4957 IFS="${IFS}${PATH_SEPARATOR}"
4958 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4959 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4960   if test -d "$dir"; then
4961     LIBDIRS="$LIBDIRS -L$dir"
4962   else
4963     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4964 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4965   fi
4966 done
4967 IFS=$ac_save_IFS
4968
4969 #
4970 # Enable thread-safe client libraries
4971 #
4972 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4973 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4974
4975
4976 # Check whether --enable-thread-safety was given.
4977 if test "${enable_thread_safety+set}" = set; then
4978   enableval=$enable_thread_safety;
4979   case $enableval in
4980     yes)
4981       :
4982       ;;
4983     no)
4984       :
4985       ;;
4986     *)
4987       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4988 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4989    { (exit 1); exit 1; }; }
4990       ;;
4991   esac
4992
4993 else
4994   enable_thread_safety=yes
4995
4996 fi
4997
4998
4999 if test "$enable_thread_safety" = yes; then
5000
5001 cat >>confdefs.h <<\_ACEOF
5002 #define ENABLE_THREAD_SAFETY 1
5003 _ACEOF
5004
5005 fi
5006 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5007 $as_echo "$enable_thread_safety" >&6; }
5008
5009
5010 #
5011 # Optionally build Tcl modules (PL/Tcl)
5012 #
5013 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5014 $as_echo_n "checking whether to build with Tcl... " >&6; }
5015
5016
5017
5018 # Check whether --with-tcl was given.
5019 if test "${with_tcl+set}" = set; then
5020   withval=$with_tcl;
5021   case $withval in
5022     yes)
5023       :
5024       ;;
5025     no)
5026       :
5027       ;;
5028     *)
5029       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5030 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5031    { (exit 1); exit 1; }; }
5032       ;;
5033   esac
5034
5035 else
5036   with_tcl=no
5037
5038 fi
5039
5040
5041 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5042 $as_echo "$with_tcl" >&6; }
5043
5044
5045 # We see if the path to the Tcl/Tk configuration scripts is specified.
5046 # This will override the use of tclsh to find the paths to search.
5047
5048
5049
5050
5051 # Check whether --with-tclconfig was given.
5052 if test "${with_tclconfig+set}" = set; then
5053   withval=$with_tclconfig;
5054   case $withval in
5055     yes)
5056       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5057 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5058    { (exit 1); exit 1; }; }
5059       ;;
5060     no)
5061       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5062 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5063    { (exit 1); exit 1; }; }
5064       ;;
5065     *)
5066
5067       ;;
5068   esac
5069
5070 fi
5071
5072
5073
5074 #
5075 # Optionally build Perl modules (PL/Perl)
5076 #
5077 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5078 $as_echo_n "checking whether to build Perl modules... " >&6; }
5079
5080
5081
5082 # Check whether --with-perl was given.
5083 if test "${with_perl+set}" = set; then
5084   withval=$with_perl;
5085   case $withval in
5086     yes)
5087       :
5088       ;;
5089     no)
5090       :
5091       ;;
5092     *)
5093       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5094 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5095    { (exit 1); exit 1; }; }
5096       ;;
5097   esac
5098
5099 else
5100   with_perl=no
5101
5102 fi
5103
5104
5105 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5106 $as_echo "$with_perl" >&6; }
5107
5108
5109 #
5110 # Optionally build Python modules (PL/Python)
5111 #
5112 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5113 $as_echo_n "checking whether to build Python modules... " >&6; }
5114
5115
5116
5117 # Check whether --with-python was given.
5118 if test "${with_python+set}" = set; then
5119   withval=$with_python;
5120   case $withval in
5121     yes)
5122       :
5123       ;;
5124     no)
5125       :
5126       ;;
5127     *)
5128       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5129 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5130    { (exit 1); exit 1; }; }
5131       ;;
5132   esac
5133
5134 else
5135   with_python=no
5136
5137 fi
5138
5139
5140 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5141 $as_echo "$with_python" >&6; }
5142
5143
5144 #
5145 # GSSAPI
5146 #
5147 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5148 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5149
5150
5151
5152 # Check whether --with-gssapi was given.
5153 if test "${with_gssapi+set}" = set; then
5154   withval=$with_gssapi;
5155   case $withval in
5156     yes)
5157
5158
5159 cat >>confdefs.h <<\_ACEOF
5160 #define ENABLE_GSS 1
5161 _ACEOF
5162
5163   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5164
5165       ;;
5166     no)
5167       :
5168       ;;
5169     *)
5170       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5171 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5172    { (exit 1); exit 1; }; }
5173       ;;
5174   esac
5175
5176 else
5177   with_gssapi=no
5178
5179 fi
5180
5181
5182 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5183 $as_echo "$with_gssapi" >&6; }
5184
5185
5186 #
5187 # Kerberos 5
5188 #
5189 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5190 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5191
5192
5193
5194 # Check whether --with-krb5 was given.
5195 if test "${with_krb5+set}" = set; then
5196   withval=$with_krb5;
5197   case $withval in
5198     yes)
5199
5200
5201 cat >>confdefs.h <<\_ACEOF
5202 #define KRB5 1
5203 _ACEOF
5204
5205   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5206
5207       ;;
5208     no)
5209       :
5210       ;;
5211     *)
5212       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5213 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5214    { (exit 1); exit 1; }; }
5215       ;;
5216   esac
5217
5218 else
5219   with_krb5=no
5220
5221 fi
5222
5223
5224 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5225 $as_echo "$with_krb5" >&6; }
5226
5227
5228
5229
5230
5231
5232 #
5233 # Kerberos configuration parameters
5234 #
5235
5236
5237
5238 # Check whether --with-krb-srvnam was given.
5239 if test "${with_krb_srvnam+set}" = set; then
5240   withval=$with_krb_srvnam;
5241   case $withval in
5242     yes)
5243       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5244 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5245    { (exit 1); exit 1; }; }
5246       ;;
5247     no)
5248       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5249 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5250    { (exit 1); exit 1; }; }
5251       ;;
5252     *)
5253
5254       ;;
5255   esac
5256
5257 else
5258   with_krb_srvnam="postgres"
5259 fi
5260
5261
5262
5263 cat >>confdefs.h <<_ACEOF
5264 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5265 _ACEOF
5266
5267
5268
5269 #
5270 # PAM
5271 #
5272 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5273 $as_echo_n "checking whether to build with PAM support... " >&6; }
5274
5275
5276
5277 # Check whether --with-pam was given.
5278 if test "${with_pam+set}" = set; then
5279   withval=$with_pam;
5280   case $withval in
5281     yes)
5282
5283 cat >>confdefs.h <<\_ACEOF
5284 #define USE_PAM 1
5285 _ACEOF
5286
5287       ;;
5288     no)
5289       :
5290       ;;
5291     *)
5292       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5293 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5294    { (exit 1); exit 1; }; }
5295       ;;
5296   esac
5297
5298 else
5299   with_pam=no
5300
5301 fi
5302
5303
5304 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5305 $as_echo "$with_pam" >&6; }
5306
5307
5308
5309 #
5310 # LDAP
5311 #
5312 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5313 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5314
5315
5316
5317 # Check whether --with-ldap was given.
5318 if test "${with_ldap+set}" = set; then
5319   withval=$with_ldap;
5320   case $withval in
5321     yes)
5322
5323 cat >>confdefs.h <<\_ACEOF
5324 #define USE_LDAP 1
5325 _ACEOF
5326
5327       ;;
5328     no)
5329       :
5330       ;;
5331     *)
5332       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5333 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5334    { (exit 1); exit 1; }; }
5335       ;;
5336   esac
5337
5338 else
5339   with_ldap=no
5340
5341 fi
5342
5343
5344 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5345 $as_echo "$with_ldap" >&6; }
5346
5347
5348
5349 #
5350 # Bonjour
5351 #
5352 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5353 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5354
5355
5356
5357 # Check whether --with-bonjour was given.
5358 if test "${with_bonjour+set}" = set; then
5359   withval=$with_bonjour;
5360   case $withval in
5361     yes)
5362
5363 cat >>confdefs.h <<\_ACEOF
5364 #define USE_BONJOUR 1
5365 _ACEOF
5366
5367       ;;
5368     no)
5369       :
5370       ;;
5371     *)
5372       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5373 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5374    { (exit 1); exit 1; }; }
5375       ;;
5376   esac
5377
5378 else
5379   with_bonjour=no
5380
5381 fi
5382
5383
5384 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5385 $as_echo "$with_bonjour" >&6; }
5386
5387
5388
5389 #
5390 # OpenSSL
5391 #
5392 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5393 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5394
5395
5396
5397 # Check whether --with-openssl was given.
5398 if test "${with_openssl+set}" = set; then
5399   withval=$with_openssl;
5400   case $withval in
5401     yes)
5402
5403 cat >>confdefs.h <<\_ACEOF
5404 #define USE_SSL 1
5405 _ACEOF
5406
5407       ;;
5408     no)
5409       :
5410       ;;
5411     *)
5412       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5413 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5414    { (exit 1); exit 1; }; }
5415       ;;
5416   esac
5417
5418 else
5419   with_openssl=no
5420
5421 fi
5422
5423
5424 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5425 $as_echo "$with_openssl" >&6; }
5426
5427
5428 #
5429 # SELinux
5430 #
5431 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5432 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5433
5434
5435
5436 # Check whether --with-selinux was given.
5437 if test "${with_selinux+set}" = set; then
5438   withval=$with_selinux;
5439   case $withval in
5440     yes)
5441       :
5442       ;;
5443     no)
5444       :
5445       ;;
5446     *)
5447       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5448 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5449    { (exit 1); exit 1; }; }
5450       ;;
5451   esac
5452
5453 else
5454   with_selinux=no
5455
5456 fi
5457
5458
5459
5460 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5461 $as_echo "$with_selinux" >&6; }
5462
5463 #
5464 # Readline
5465 #
5466
5467
5468
5469 # Check whether --with-readline was given.
5470 if test "${with_readline+set}" = set; then
5471   withval=$with_readline;
5472   case $withval in
5473     yes)
5474       :
5475       ;;
5476     no)
5477       :
5478       ;;
5479     *)
5480       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5481 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5482    { (exit 1); exit 1; }; }
5483       ;;
5484   esac
5485
5486 else
5487   with_readline=yes
5488
5489 fi
5490
5491
5492 # readline on MinGW has problems with backslashes in psql and other bugs.
5493 # This is particularly a problem with non-US code pages.
5494 # Therefore disable its use until we understand the cause. 2004-07-20
5495 if test "$PORTNAME" = "win32"; then
5496   if test "$with_readline" = yes; then
5497     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5498 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5499     with_readline=no
5500   fi
5501 fi
5502
5503
5504 #
5505 # Prefer libedit
5506 #
5507
5508
5509
5510 # Check whether --with-libedit-preferred was given.
5511 if test "${with_libedit_preferred+set}" = set; then
5512   withval=$with_libedit_preferred;
5513   case $withval in
5514     yes)
5515       :
5516       ;;
5517     no)
5518       :
5519       ;;
5520     *)
5521       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5522 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5523    { (exit 1); exit 1; }; }
5524       ;;
5525   esac
5526
5527 else
5528   with_libedit_preferred=no
5529
5530 fi
5531
5532
5533
5534
5535 #
5536 # OSSP UUID library
5537 #
5538
5539
5540
5541 # Check whether --with-ossp-uuid was given.
5542 if test "${with_ossp_uuid+set}" = set; then
5543   withval=$with_ossp_uuid;
5544   case $withval in
5545     yes)
5546       :
5547       ;;
5548     no)
5549       :
5550       ;;
5551     *)
5552       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5553 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5554    { (exit 1); exit 1; }; }
5555       ;;
5556   esac
5557
5558 else
5559   with_ossp_uuid=no
5560
5561 fi
5562
5563
5564
5565
5566
5567 #
5568 # XML
5569 #
5570
5571
5572
5573 # Check whether --with-libxml was given.
5574 if test "${with_libxml+set}" = set; then
5575   withval=$with_libxml;
5576   case $withval in
5577     yes)
5578
5579 cat >>confdefs.h <<\_ACEOF
5580 #define USE_LIBXML 1
5581 _ACEOF
5582
5583       ;;
5584     no)
5585       :
5586       ;;
5587     *)
5588       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5589 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5590    { (exit 1); exit 1; }; }
5591       ;;
5592   esac
5593
5594 else
5595   with_libxml=no
5596
5597 fi
5598
5599
5600
5601 if test "$with_libxml" = yes ; then
5602   for ac_prog in xml2-config
5603 do
5604   # Extract the first word of "$ac_prog", so it can be a program name with args.
5605 set dummy $ac_prog; ac_word=$2
5606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5609   $as_echo_n "(cached) " >&6
5610 else
5611   if test -n "$XML2_CONFIG"; then
5612   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617   IFS=$as_save_IFS
5618   test -z "$as_dir" && as_dir=.
5619   for ac_exec_ext in '' $ac_executable_extensions; do
5620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621     ac_cv_prog_XML2_CONFIG="$ac_prog"
5622     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623     break 2
5624   fi
5625 done
5626 done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5632 if test -n "$XML2_CONFIG"; then
5633   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5634 $as_echo "$XML2_CONFIG" >&6; }
5635 else
5636   { $as_echo "$as_me:$LINENO: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640
5641   test -n "$XML2_CONFIG" && break
5642 done
5643
5644   if test -n "$XML2_CONFIG"; then
5645     for pgac_option in `$XML2_CONFIG --cflags`; do
5646       case $pgac_option in
5647         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5648       esac
5649     done
5650     for pgac_option in `$XML2_CONFIG --libs`; do
5651       case $pgac_option in
5652         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5653       esac
5654     done
5655   fi
5656 fi
5657
5658
5659
5660 #
5661 # XSLT
5662 #
5663
5664
5665
5666 # Check whether --with-libxslt was given.
5667 if test "${with_libxslt+set}" = set; then
5668   withval=$with_libxslt;
5669   case $withval in
5670     yes)
5671
5672 cat >>confdefs.h <<\_ACEOF
5673 #define USE_LIBXSLT 1
5674 _ACEOF
5675
5676       ;;
5677     no)
5678       :
5679       ;;
5680     *)
5681       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5682 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5683    { (exit 1); exit 1; }; }
5684       ;;
5685   esac
5686
5687 else
5688   with_libxslt=no
5689
5690 fi
5691
5692
5693
5694
5695
5696
5697 #
5698 # tzdata
5699 #
5700
5701
5702
5703 # Check whether --with-system-tzdata was given.
5704 if test "${with_system_tzdata+set}" = set; then
5705   withval=$with_system_tzdata;
5706   case $withval in
5707     yes)
5708       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5709 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5710    { (exit 1); exit 1; }; }
5711       ;;
5712     no)
5713       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5714 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5715    { (exit 1); exit 1; }; }
5716       ;;
5717     *)
5718
5719       ;;
5720   esac
5721
5722 fi
5723
5724
5725
5726
5727 #
5728 # Zlib
5729 #
5730
5731
5732
5733 # Check whether --with-zlib was given.
5734 if test "${with_zlib+set}" = set; then
5735   withval=$with_zlib;
5736   case $withval in
5737     yes)
5738       :
5739       ;;
5740     no)
5741       :
5742       ;;
5743     *)
5744       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5745 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5746    { (exit 1); exit 1; }; }
5747       ;;
5748   esac
5749
5750 else
5751   with_zlib=yes
5752
5753 fi
5754
5755
5756
5757
5758 #
5759 # Elf
5760 #
5761
5762 # Assume system is ELF if it predefines __ELF__ as 1,
5763 # otherwise believe host_os based default.
5764 case $host_os in
5765     freebsd1*|freebsd2*) elf=no;;
5766     freebsd3*|freebsd4*) elf=yes;;
5767 esac
5768
5769
5770 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5771 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5772 if test "${ac_cv_path_GREP+set}" = set; then
5773   $as_echo_n "(cached) " >&6
5774 else
5775   if test -z "$GREP"; then
5776   ac_path_GREP_found=false
5777   # Loop through the user's path and test for each of PROGNAME-LIST
5778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5780 do
5781   IFS=$as_save_IFS
5782   test -z "$as_dir" && as_dir=.
5783   for ac_prog in grep ggrep; do
5784     for ac_exec_ext in '' $ac_executable_extensions; do
5785       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5786       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5787 # Check for GNU ac_path_GREP and select it if it is found.
5788   # Check for GNU $ac_path_GREP
5789 case `"$ac_path_GREP" --version 2>&1` in
5790 *GNU*)
5791   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5792 *)
5793   ac_count=0
5794   $as_echo_n 0123456789 >"conftest.in"
5795   while :
5796   do
5797     cat "conftest.in" "conftest.in" >"conftest.tmp"
5798     mv "conftest.tmp" "conftest.in"
5799     cp "conftest.in" "conftest.nl"
5800     $as_echo 'GREP' >> "conftest.nl"
5801     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5802     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5803     ac_count=`expr $ac_count + 1`
5804     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5805       # Best one so far, save it but keep looking for a better one
5806       ac_cv_path_GREP="$ac_path_GREP"
5807       ac_path_GREP_max=$ac_count
5808     fi
5809     # 10*(2^10) chars as input seems more than enough
5810     test $ac_count -gt 10 && break
5811   done
5812   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5813 esac
5814
5815       $ac_path_GREP_found && break 3
5816     done
5817   done
5818 done
5819 IFS=$as_save_IFS
5820   if test -z "$ac_cv_path_GREP"; then
5821     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5822 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5823    { (exit 1); exit 1; }; }
5824   fi
5825 else
5826   ac_cv_path_GREP=$GREP
5827 fi
5828
5829 fi
5830 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5831 $as_echo "$ac_cv_path_GREP" >&6; }
5832  GREP="$ac_cv_path_GREP"
5833
5834
5835 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5836 $as_echo_n "checking for egrep... " >&6; }
5837 if test "${ac_cv_path_EGREP+set}" = set; then
5838   $as_echo_n "(cached) " >&6
5839 else
5840   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5841    then ac_cv_path_EGREP="$GREP -E"
5842    else
5843      if test -z "$EGREP"; then
5844   ac_path_EGREP_found=false
5845   # Loop through the user's path and test for each of PROGNAME-LIST
5846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5848 do
5849   IFS=$as_save_IFS
5850   test -z "$as_dir" && as_dir=.
5851   for ac_prog in egrep; do
5852     for ac_exec_ext in '' $ac_executable_extensions; do
5853       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5854       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5855 # Check for GNU ac_path_EGREP and select it if it is found.
5856   # Check for GNU $ac_path_EGREP
5857 case `"$ac_path_EGREP" --version 2>&1` in
5858 *GNU*)
5859   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5860 *)
5861   ac_count=0
5862   $as_echo_n 0123456789 >"conftest.in"
5863   while :
5864   do
5865     cat "conftest.in" "conftest.in" >"conftest.tmp"
5866     mv "conftest.tmp" "conftest.in"
5867     cp "conftest.in" "conftest.nl"
5868     $as_echo 'EGREP' >> "conftest.nl"
5869     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5870     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5871     ac_count=`expr $ac_count + 1`
5872     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5873       # Best one so far, save it but keep looking for a better one
5874       ac_cv_path_EGREP="$ac_path_EGREP"
5875       ac_path_EGREP_max=$ac_count
5876     fi
5877     # 10*(2^10) chars as input seems more than enough
5878     test $ac_count -gt 10 && break
5879   done
5880   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5881 esac
5882
5883       $ac_path_EGREP_found && break 3
5884     done
5885   done
5886 done
5887 IFS=$as_save_IFS
5888   if test -z "$ac_cv_path_EGREP"; then
5889     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5890 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5891    { (exit 1); exit 1; }; }
5892   fi
5893 else
5894   ac_cv_path_EGREP=$EGREP
5895 fi
5896
5897    fi
5898 fi
5899 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5900 $as_echo "$ac_cv_path_EGREP" >&6; }
5901  EGREP="$ac_cv_path_EGREP"
5902
5903
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910 #if __ELF__
5911   yes
5912 #endif
5913
5914 _ACEOF
5915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5916   $EGREP "yes" >/dev/null 2>&1; then
5917   ELF_SYS=true
5918 else
5919   if test "X$elf" = "Xyes" ; then
5920   ELF_SYS=true
5921 else
5922   ELF_SYS=
5923 fi
5924 fi
5925 rm -f conftest*
5926
5927
5928
5929 #
5930 # Assignments
5931 #
5932
5933 CPPFLAGS="$CPPFLAGS $INCLUDES"
5934 LDFLAGS="$LDFLAGS $LIBDIRS"
5935
5936
5937
5938
5939
5940 # Check whether --with-gnu-ld was given.
5941 if test "${with_gnu_ld+set}" = set; then
5942   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5943 else
5944   with_gnu_ld=no
5945 fi
5946
5947 ac_prog=ld
5948 if test "$GCC" = yes; then
5949   # Check if gcc -print-prog-name=ld gives a path.
5950   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5951 $as_echo_n "checking for ld used by GCC... " >&6; }
5952   case $host in
5953   *-*-mingw*)
5954     # gcc leaves a trailing carriage return which upsets mingw
5955     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5956   *)
5957     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5958   esac
5959   case "$ac_prog" in
5960     # Accept absolute paths.
5961     [\\/]* | [A-Za-z]:[\\/]*)
5962       re_direlt='/[^/][^/]*/\.\./'
5963       # Canonicalize the path of ld
5964       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5965       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5966         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5967       done
5968       test -z "$LD" && LD="$ac_prog"
5969       ;;
5970   "")
5971     # If it fails, then pretend we aren't using GCC.
5972     ac_prog=ld
5973     ;;
5974   *)
5975     # If it is relative, then search for the first ld in PATH.
5976     with_gnu_ld=unknown
5977     ;;
5978   esac
5979 elif test "$with_gnu_ld" = yes; then
5980   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5981 $as_echo_n "checking for GNU ld... " >&6; }
5982 else
5983   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5984 $as_echo_n "checking for non-GNU ld... " >&6; }
5985 fi
5986 if test "${ac_cv_path_LD+set}" = set; then
5987   $as_echo_n "(cached) " >&6
5988 else
5989   if test -z "$LD"; then
5990   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5991   for ac_dir in $PATH; do
5992     test -z "$ac_dir" && ac_dir=.
5993     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5994       ac_cv_path_LD="$ac_dir/$ac_prog"
5995       # Check to see if the program is GNU ld.  I'd rather use --version,
5996       # but apparently some GNU ld's only accept -v.
5997       # Break only if it was the GNU/non-GNU ld that we prefer.
5998       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5999         test "$with_gnu_ld" != no && break
6000       else
6001         test "$with_gnu_ld" != yes && break
6002       fi
6003     fi
6004   done
6005   IFS="$ac_save_ifs"
6006 else
6007   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6008 fi
6009 fi
6010
6011 LD="$ac_cv_path_LD"
6012 if test -n "$LD"; then
6013   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6014 $as_echo "$LD" >&6; }
6015 else
6016   { $as_echo "$as_me:$LINENO: result: no" >&5
6017 $as_echo "no" >&6; }
6018 fi
6019 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6020 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6021    { (exit 1); exit 1; }; }
6022 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6023 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6024 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6025   $as_echo_n "(cached) " >&6
6026 else
6027   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6028 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6029   ac_cv_prog_gnu_ld=yes
6030 else
6031   ac_cv_prog_gnu_ld=no
6032 fi
6033 fi
6034 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6035 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6036 with_gnu_ld=$ac_cv_prog_gnu_ld
6037
6038
6039
6040
6041 case $host_os in sysv5*)
6042   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6043 $as_echo_n "checking whether ld -R works... " >&6; }
6044 if test "${pgac_cv_prog_ld_R+set}" = set; then
6045   $as_echo_n "(cached) " >&6
6046 else
6047
6048     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6049     cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h.  */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h.  */
6055
6056 int
6057 main ()
6058 {
6059
6060   ;
6061   return 0;
6062 }
6063 _ACEOF
6064 rm -f conftest.$ac_objext conftest$ac_exeext
6065 if { (ac_try="$ac_link"
6066 case "(($ac_try" in
6067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068   *) ac_try_echo=$ac_try;;
6069 esac
6070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6071 $as_echo "$ac_try_echo") >&5
6072   (eval "$ac_link") 2>conftest.er1
6073   ac_status=$?
6074   grep -v '^ *+' conftest.er1 >conftest.err
6075   rm -f conftest.er1
6076   cat conftest.err >&5
6077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); } && {
6079          test -z "$ac_c_werror_flag" ||
6080          test ! -s conftest.err
6081        } && test -s conftest$ac_exeext && {
6082          test "$cross_compiling" = yes ||
6083          $as_test_x conftest$ac_exeext
6084        }; then
6085   pgac_cv_prog_ld_R=yes
6086 else
6087   $as_echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6089
6090         pgac_cv_prog_ld_R=no
6091 fi
6092
6093 rm -rf conftest.dSYM
6094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6095       conftest$ac_exeext conftest.$ac_ext
6096     LDFLAGS=$pgac_save_LDFLAGS
6097
6098 fi
6099 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6100 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6101   ld_R_works=$pgac_cv_prog_ld_R
6102
6103 esac
6104 if test -n "$ac_tool_prefix"; then
6105   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6106 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6107 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if test "${ac_cv_prog_RANLIB+set}" = set; then
6110   $as_echo_n "(cached) " >&6
6111 else
6112   if test -n "$RANLIB"; then
6113   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118   IFS=$as_save_IFS
6119   test -z "$as_dir" && as_dir=.
6120   for ac_exec_ext in '' $ac_executable_extensions; do
6121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6123     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124     break 2
6125   fi
6126 done
6127 done
6128 IFS=$as_save_IFS
6129
6130 fi
6131 fi
6132 RANLIB=$ac_cv_prog_RANLIB
6133 if test -n "$RANLIB"; then
6134   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6135 $as_echo "$RANLIB" >&6; }
6136 else
6137   { $as_echo "$as_me:$LINENO: result: no" >&5
6138 $as_echo "no" >&6; }
6139 fi
6140
6141
6142 fi
6143 if test -z "$ac_cv_prog_RANLIB"; then
6144   ac_ct_RANLIB=$RANLIB
6145   # Extract the first word of "ranlib", so it can be a program name with args.
6146 set dummy ranlib; ac_word=$2
6147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6150   $as_echo_n "(cached) " >&6
6151 else
6152   if test -n "$ac_ct_RANLIB"; then
6153   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160   for ac_exec_ext in '' $ac_executable_extensions; do
6161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162     ac_cv_prog_ac_ct_RANLIB="ranlib"
6163     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170 fi
6171 fi
6172 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6173 if test -n "$ac_ct_RANLIB"; then
6174   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6175 $as_echo "$ac_ct_RANLIB" >&6; }
6176 else
6177   { $as_echo "$as_me:$LINENO: result: no" >&5
6178 $as_echo "no" >&6; }
6179 fi
6180
6181   if test "x$ac_ct_RANLIB" = x; then
6182     RANLIB=":"
6183   else
6184     case $cross_compiling:$ac_tool_warned in
6185 yes:)
6186 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188 ac_tool_warned=yes ;;
6189 esac
6190     RANLIB=$ac_ct_RANLIB
6191   fi
6192 else
6193   RANLIB="$ac_cv_prog_RANLIB"
6194 fi
6195
6196
6197   if test -n "$ac_tool_prefix"; then
6198   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6199 set dummy ${ac_tool_prefix}strip; ac_word=$2
6200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_STRIP+set}" = set; then
6203   $as_echo_n "(cached) " >&6
6204 else
6205   if test -n "$STRIP"; then
6206   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211   IFS=$as_save_IFS
6212   test -z "$as_dir" && as_dir=.
6213   for ac_exec_ext in '' $ac_executable_extensions; do
6214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6216     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217     break 2
6218   fi
6219 done
6220 done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 STRIP=$ac_cv_prog_STRIP
6226 if test -n "$STRIP"; then
6227   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6228 $as_echo "$STRIP" >&6; }
6229 else
6230   { $as_echo "$as_me:$LINENO: result: no" >&5
6231 $as_echo "no" >&6; }
6232 fi
6233
6234
6235 fi
6236 if test -z "$ac_cv_prog_STRIP"; then
6237   ac_ct_STRIP=$STRIP
6238   # Extract the first word of "strip", so it can be a program name with args.
6239 set dummy strip; ac_word=$2
6240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6243   $as_echo_n "(cached) " >&6
6244 else
6245   if test -n "$ac_ct_STRIP"; then
6246   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251   IFS=$as_save_IFS
6252   test -z "$as_dir" && as_dir=.
6253   for ac_exec_ext in '' $ac_executable_extensions; do
6254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255     ac_cv_prog_ac_ct_STRIP="strip"
6256     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257     break 2
6258   fi
6259 done
6260 done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6266 if test -n "$ac_ct_STRIP"; then
6267   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6268 $as_echo "$ac_ct_STRIP" >&6; }
6269 else
6270   { $as_echo "$as_me:$LINENO: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273
6274   if test "x$ac_ct_STRIP" = x; then
6275     STRIP=":"
6276   else
6277     case $cross_compiling:$ac_tool_warned in
6278 yes:)
6279 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned=yes ;;
6282 esac
6283     STRIP=$ac_ct_STRIP
6284   fi
6285 else
6286   STRIP="$ac_cv_prog_STRIP"
6287 fi
6288
6289
6290   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6291 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6292   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6293     STRIP_STATIC_LIB="$STRIP -x"
6294     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6295     { $as_echo "$as_me:$LINENO: result: yes" >&5
6296 $as_echo "yes" >&6; }
6297   else
6298     STRIP_STATIC_LIB=:
6299     STRIP_SHARED_LIB=:
6300     { $as_echo "$as_me:$LINENO: result: no" >&5
6301 $as_echo "no" >&6; }
6302   fi
6303
6304
6305
6306 if test -n "$ac_tool_prefix"; then
6307   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}ar; ac_word=$2
6309 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if test "${ac_cv_prog_AR+set}" = set; then
6312   $as_echo_n "(cached) " >&6
6313 else
6314   if test -n "$AR"; then
6315   ac_cv_prog_AR="$AR" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320   IFS=$as_save_IFS
6321   test -z "$as_dir" && as_dir=.
6322   for ac_exec_ext in '' $ac_executable_extensions; do
6323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324     ac_cv_prog_AR="${ac_tool_prefix}ar"
6325     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326     break 2
6327   fi
6328 done
6329 done
6330 IFS=$as_save_IFS
6331
6332 fi
6333 fi
6334 AR=$ac_cv_prog_AR
6335 if test -n "$AR"; then
6336   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6337 $as_echo "$AR" >&6; }
6338 else
6339   { $as_echo "$as_me:$LINENO: result: no" >&5
6340 $as_echo "no" >&6; }
6341 fi
6342
6343
6344 fi
6345 if test -z "$ac_cv_prog_AR"; then
6346   ac_ct_AR=$AR
6347   # Extract the first word of "ar", so it can be a program name with args.
6348 set dummy ar; ac_word=$2
6349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6352   $as_echo_n "(cached) " >&6
6353 else
6354   if test -n "$ac_ct_AR"; then
6355   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360   IFS=$as_save_IFS
6361   test -z "$as_dir" && as_dir=.
6362   for ac_exec_ext in '' $ac_executable_extensions; do
6363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364     ac_cv_prog_ac_ct_AR="ar"
6365     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366     break 2
6367   fi
6368 done
6369 done
6370 IFS=$as_save_IFS
6371
6372 fi
6373 fi
6374 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6375 if test -n "$ac_ct_AR"; then
6376   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6377 $as_echo "$ac_ct_AR" >&6; }
6378 else
6379   { $as_echo "$as_me:$LINENO: result: no" >&5
6380 $as_echo "no" >&6; }
6381 fi
6382
6383   if test "x$ac_ct_AR" = x; then
6384     AR="ar"
6385   else
6386     case $cross_compiling:$ac_tool_warned in
6387 yes:)
6388 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390 ac_tool_warned=yes ;;
6391 esac
6392     AR=$ac_ct_AR
6393   fi
6394 else
6395   AR="$ac_cv_prog_AR"
6396 fi
6397
6398 if test "$PORTNAME" = "win32"; then
6399   if test -n "$ac_tool_prefix"; then
6400   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6405   $as_echo_n "(cached) " >&6
6406 else
6407   if test -n "$DLLTOOL"; then
6408   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6412 do
6413   IFS=$as_save_IFS
6414   test -z "$as_dir" && as_dir=.
6415   for ac_exec_ext in '' $ac_executable_extensions; do
6416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6418     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419     break 2
6420   fi
6421 done
6422 done
6423 IFS=$as_save_IFS
6424
6425 fi
6426 fi
6427 DLLTOOL=$ac_cv_prog_DLLTOOL
6428 if test -n "$DLLTOOL"; then
6429   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6430 $as_echo "$DLLTOOL" >&6; }
6431 else
6432   { $as_echo "$as_me:$LINENO: result: no" >&5
6433 $as_echo "no" >&6; }
6434 fi
6435
6436
6437 fi
6438 if test -z "$ac_cv_prog_DLLTOOL"; then
6439   ac_ct_DLLTOOL=$DLLTOOL
6440   # Extract the first word of "dlltool", so it can be a program name with args.
6441 set dummy dlltool; ac_word=$2
6442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6445   $as_echo_n "(cached) " >&6
6446 else
6447   if test -n "$ac_ct_DLLTOOL"; then
6448   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455   for ac_exec_ext in '' $ac_executable_extensions; do
6456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6458     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462 done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6468 if test -n "$ac_ct_DLLTOOL"; then
6469   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6470 $as_echo "$ac_ct_DLLTOOL" >&6; }
6471 else
6472   { $as_echo "$as_me:$LINENO: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476   if test "x$ac_ct_DLLTOOL" = x; then
6477     DLLTOOL="dlltool"
6478   else
6479     case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485     DLLTOOL=$ac_ct_DLLTOOL
6486   fi
6487 else
6488   DLLTOOL="$ac_cv_prog_DLLTOOL"
6489 fi
6490
6491   if test -n "$ac_tool_prefix"; then
6492   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6497   $as_echo_n "(cached) " >&6
6498 else
6499   if test -n "$DLLWRAP"; then
6500   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6504 do
6505   IFS=$as_save_IFS
6506   test -z "$as_dir" && as_dir=.
6507   for ac_exec_ext in '' $ac_executable_extensions; do
6508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6510     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6511     break 2
6512   fi
6513 done
6514 done
6515 IFS=$as_save_IFS
6516
6517 fi
6518 fi
6519 DLLWRAP=$ac_cv_prog_DLLWRAP
6520 if test -n "$DLLWRAP"; then
6521   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6522 $as_echo "$DLLWRAP" >&6; }
6523 else
6524   { $as_echo "$as_me:$LINENO: result: no" >&5
6525 $as_echo "no" >&6; }
6526 fi
6527
6528
6529 fi
6530 if test -z "$ac_cv_prog_DLLWRAP"; then
6531   ac_ct_DLLWRAP=$DLLWRAP
6532   # Extract the first word of "dllwrap", so it can be a program name with args.
6533 set dummy dllwrap; ac_word=$2
6534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6537   $as_echo_n "(cached) " >&6
6538 else
6539   if test -n "$ac_ct_DLLWRAP"; then
6540   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547   for ac_exec_ext in '' $ac_executable_extensions; do
6548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6550     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6560 if test -n "$ac_ct_DLLWRAP"; then
6561   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6562 $as_echo "$ac_ct_DLLWRAP" >&6; }
6563 else
6564   { $as_echo "$as_me:$LINENO: result: no" >&5
6565 $as_echo "no" >&6; }
6566 fi
6567
6568   if test "x$ac_ct_DLLWRAP" = x; then
6569     DLLWRAP="dllwrap"
6570   else
6571     case $cross_compiling:$ac_tool_warned in
6572 yes:)
6573 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6576 esac
6577     DLLWRAP=$ac_ct_DLLWRAP
6578   fi
6579 else
6580   DLLWRAP="$ac_cv_prog_DLLWRAP"
6581 fi
6582
6583   if test -n "$ac_tool_prefix"; then
6584   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6585 set dummy ${ac_tool_prefix}windres; ac_word=$2
6586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if test "${ac_cv_prog_WINDRES+set}" = set; then
6589   $as_echo_n "(cached) " >&6
6590 else
6591   if test -n "$WINDRES"; then
6592   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597   IFS=$as_save_IFS
6598   test -z "$as_dir" && as_dir=.
6599   for ac_exec_ext in '' $ac_executable_extensions; do
6600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6602     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603     break 2
6604   fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609 fi
6610 fi
6611 WINDRES=$ac_cv_prog_WINDRES
6612 if test -n "$WINDRES"; then
6613   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6614 $as_echo "$WINDRES" >&6; }
6615 else
6616   { $as_echo "$as_me:$LINENO: result: no" >&5
6617 $as_echo "no" >&6; }
6618 fi
6619
6620
6621 fi
6622 if test -z "$ac_cv_prog_WINDRES"; then
6623   ac_ct_WINDRES=$WINDRES
6624   # Extract the first word of "windres", so it can be a program name with args.
6625 set dummy windres; ac_word=$2
6626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6629   $as_echo_n "(cached) " >&6
6630 else
6631   if test -n "$ac_ct_WINDRES"; then
6632   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639   for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_prog_ac_ct_WINDRES="windres"
6642     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6652 if test -n "$ac_ct_WINDRES"; then
6653   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6654 $as_echo "$ac_ct_WINDRES" >&6; }
6655 else
6656   { $as_echo "$as_me:$LINENO: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660   if test "x$ac_ct_WINDRES" = x; then
6661     WINDRES="windres"
6662   else
6663     case $cross_compiling:$ac_tool_warned in
6664 yes:)
6665 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667 ac_tool_warned=yes ;;
6668 esac
6669     WINDRES=$ac_ct_WINDRES
6670   fi
6671 else
6672   WINDRES="$ac_cv_prog_WINDRES"
6673 fi
6674
6675 fi
6676
6677 # Extract the first word of "tar", so it can be a program name with args.
6678 set dummy tar; ac_word=$2
6679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if test "${ac_cv_path_TAR+set}" = set; then
6682   $as_echo_n "(cached) " >&6
6683 else
6684   case $TAR in
6685   [\\/]* | ?:[\\/]*)
6686   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6687   ;;
6688   *)
6689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694   for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6697     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704   ;;
6705 esac
6706 fi
6707 TAR=$ac_cv_path_TAR
6708 if test -n "$TAR"; then
6709   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6710 $as_echo "$TAR" >&6; }
6711 else
6712   { $as_echo "$as_me:$LINENO: result: no" >&5
6713 $as_echo "no" >&6; }
6714 fi
6715
6716
6717 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6718 $as_echo_n "checking whether ln -s works... " >&6; }
6719 LN_S=$as_ln_s
6720 if test "$LN_S" = "ln -s"; then
6721   { $as_echo "$as_me:$LINENO: result: yes" >&5
6722 $as_echo "yes" >&6; }
6723 else
6724   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6725 $as_echo "no, using $LN_S" >&6; }
6726 fi
6727
6728 for ac_prog in gawk mawk nawk awk
6729 do
6730   # Extract the first word of "$ac_prog", so it can be a program name with args.
6731 set dummy $ac_prog; ac_word=$2
6732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_AWK+set}" = set; then
6735   $as_echo_n "(cached) " >&6
6736 else
6737   if test -n "$AWK"; then
6738   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743   IFS=$as_save_IFS
6744   test -z "$as_dir" && as_dir=.
6745   for ac_exec_ext in '' $ac_executable_extensions; do
6746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747     ac_cv_prog_AWK="$ac_prog"
6748     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749     break 2
6750   fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 AWK=$ac_cv_prog_AWK
6758 if test -n "$AWK"; then
6759   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6760 $as_echo "$AWK" >&6; }
6761 else
6762   { $as_echo "$as_me:$LINENO: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766
6767   test -n "$AWK" && break
6768 done
6769
6770 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6771 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6772 if test -z "$MKDIR_P"; then
6773   if test "${ac_cv_path_mkdir+set}" = set; then
6774   $as_echo_n "(cached) " >&6
6775 else
6776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6778 do
6779   IFS=$as_save_IFS
6780   test -z "$as_dir" && as_dir=.
6781   for ac_prog in mkdir gmkdir; do
6782          for ac_exec_ext in '' $ac_executable_extensions; do
6783            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6784            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6785              'mkdir (GNU coreutils) '* | \
6786              'mkdir (coreutils) '* | \
6787              'mkdir (fileutils) '4.1*)
6788                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6789                break 3;;
6790            esac
6791          done
6792        done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi
6797
6798   if test "${ac_cv_path_mkdir+set}" = set; then
6799     MKDIR_P="$ac_cv_path_mkdir -p"
6800   else
6801     # As a last resort, use the slow shell script.  Don't cache a
6802     # value for MKDIR_P within a source directory, because that will
6803     # break other packages using the cache if that directory is
6804     # removed, or if the value is a relative name.
6805     test -d ./--version && rmdir ./--version
6806     MKDIR_P="$ac_install_sh -d"
6807   fi
6808 fi
6809 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6810 $as_echo "$MKDIR_P" >&6; }
6811
6812 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6813 # a relative path to it in each makefile where it subsitutes it. This clashes
6814 # with our Makefile.global concept. This workaround helps.
6815 case $MKDIR_P in
6816   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6817 esac
6818
6819 # Let the user override the search
6820 if test -z "$BISON"; then
6821   for ac_prog in bison
6822 do
6823   # Extract the first word of "$ac_prog", so it can be a program name with args.
6824 set dummy $ac_prog; ac_word=$2
6825 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if test "${ac_cv_path_BISON+set}" = set; then
6828   $as_echo_n "(cached) " >&6
6829 else
6830   case $BISON in
6831   [\\/]* | ?:[\\/]*)
6832   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6833   ;;
6834   *)
6835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840   for ac_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6843     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850   ;;
6851 esac
6852 fi
6853 BISON=$ac_cv_path_BISON
6854 if test -n "$BISON"; then
6855   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6856 $as_echo "$BISON" >&6; }
6857 else
6858   { $as_echo "$as_me:$LINENO: result: no" >&5
6859 $as_echo "no" >&6; }
6860 fi
6861
6862
6863   test -n "$BISON" && break
6864 done
6865
6866 fi
6867
6868 if test "$BISON"; then
6869   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6870   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6871 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6872   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6873   then
6874     { $as_echo "$as_me:$LINENO: WARNING:
6875 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6876 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6877 $as_echo "$as_me: WARNING:
6878 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6879 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6880     BISON=""
6881   fi
6882 fi
6883
6884 if test -z "$BISON"; then
6885   { $as_echo "$as_me:$LINENO: WARNING:
6886 *** Without Bison you will not be able to build PostgreSQL from Git nor
6887 *** change any of the parser definition files.  You can obtain Bison from
6888 *** a GNU mirror site.  (If you are using the official distribution of
6889 *** PostgreSQL then you do not need to worry about this, because the Bison
6890 *** output is pre-generated.)" >&5
6891 $as_echo "$as_me: WARNING:
6892 *** Without Bison you will not be able to build PostgreSQL from Git nor
6893 *** change any of the parser definition files.  You can obtain Bison from
6894 *** a GNU mirror site.  (If you are using the official distribution of
6895 *** PostgreSQL then you do not need to worry about this, because the Bison
6896 *** output is pre-generated.)" >&2;}
6897 fi
6898 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6899
6900
6901 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6902 $as_echo_n "checking for flex... " >&6; }
6903 if test "${pgac_cv_path_flex+set}" = set; then
6904   $as_echo_n "(cached) " >&6
6905 else
6906   # Let the user override the test
6907 if test -n "$FLEX"; then
6908   pgac_cv_path_flex=$FLEX
6909 else
6910   pgac_save_IFS=$IFS
6911   IFS=$PATH_SEPARATOR
6912   for pgac_dir in $PATH; do
6913     IFS=$pgac_save_IFS
6914     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6915       pgac_dir=`pwd`
6916     fi
6917     for pgac_prog in flex lex; do
6918       pgac_candidate="$pgac_dir/$pgac_prog"
6919       if test -f "$pgac_candidate" \
6920         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6921       then
6922         echo '%%'  > conftest.l
6923         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6924           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6925           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6926           then
6927             pgac_cv_path_flex=$pgac_candidate
6928             break 2
6929           else
6930             { $as_echo "$as_me:$LINENO: WARNING:
6931 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6932 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6933 $as_echo "$as_me: WARNING:
6934 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6935 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6936           fi
6937         fi
6938       fi
6939     done
6940   done
6941   rm -f conftest.l lex.yy.c
6942   : ${pgac_cv_path_flex=no}
6943 fi
6944
6945 fi
6946 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6947 $as_echo "$pgac_cv_path_flex" >&6; }
6948 if test x"$pgac_cv_path_flex" = x"no"; then
6949   { $as_echo "$as_me:$LINENO: WARNING:
6950 *** Without Flex you will not be able to build PostgreSQL from Git nor
6951 *** change any of the scanner definition files.  You can obtain Flex from
6952 *** a GNU mirror site.  (If you are using the official distribution of
6953 *** PostgreSQL then you do not need to worry about this because the Flex
6954 *** output is pre-generated.)" >&5
6955 $as_echo "$as_me: WARNING:
6956 *** Without Flex you will not be able to build PostgreSQL from Git nor
6957 *** change any of the scanner definition files.  You can obtain Flex from
6958 *** a GNU mirror site.  (If you are using the official distribution of
6959 *** PostgreSQL then you do not need to worry about this because the Flex
6960 *** output is pre-generated.)" >&2;}
6961
6962   FLEX=
6963 else
6964   FLEX=$pgac_cv_path_flex
6965   pgac_flex_version=`$FLEX --version 2>/dev/null`
6966   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6967 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6968 fi
6969
6970
6971
6972
6973
6974 # Let the user override the search
6975 if test -z "$PERL"; then
6976   # Extract the first word of "perl", so it can be a program name with args.
6977 set dummy perl; ac_word=$2
6978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if test "${ac_cv_path_PERL+set}" = set; then
6981   $as_echo_n "(cached) " >&6
6982 else
6983   case $PERL in
6984   [\\/]* | ?:[\\/]*)
6985   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6986   ;;
6987   *)
6988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991   IFS=$as_save_IFS
6992   test -z "$as_dir" && as_dir=.
6993   for ac_exec_ext in '' $ac_executable_extensions; do
6994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6996     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997     break 2
6998   fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003   ;;
7004 esac
7005 fi
7006 PERL=$ac_cv_path_PERL
7007 if test -n "$PERL"; then
7008   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7009 $as_echo "$PERL" >&6; }
7010 else
7011   { $as_echo "$as_me:$LINENO: result: no" >&5
7012 $as_echo "no" >&6; }
7013 fi
7014
7015
7016 fi
7017
7018 if test "$PERL"; then
7019   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'`
7020   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7021 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7022   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7023     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7024   then
7025     { $as_echo "$as_me:$LINENO: WARNING:
7026 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7027 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7028 $as_echo "$as_me: WARNING:
7029 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7030 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7031     PERL=""
7032   fi
7033 fi
7034
7035 if test -z "$PERL"; then
7036   { $as_echo "$as_me:$LINENO: WARNING:
7037 *** Without Perl you will not be able to build PostgreSQL from Git.
7038 *** You can obtain Perl from any CPAN mirror site.
7039 *** (If you are using the official distribution of PostgreSQL then you do not
7040 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7041 $as_echo "$as_me: WARNING:
7042 *** Without Perl you will not be able to build PostgreSQL from Git.
7043 *** You can obtain Perl from any CPAN mirror site.
7044 *** (If you are using the official distribution of PostgreSQL then you do not
7045 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7046 fi
7047
7048 if test "$with_perl" = yes; then
7049   if test -z "$PERL"; then
7050     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7051 $as_echo "$as_me: error: Perl not found" >&2;}
7052    { (exit 1); exit 1; }; }
7053   fi
7054
7055 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7056 $as_echo_n "checking for Perl archlibexp... " >&6; }
7057 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7058 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7059 $as_echo "$perl_archlibexp" >&6; }
7060 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7061 $as_echo_n "checking for Perl privlibexp... " >&6; }
7062 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7063 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7064 $as_echo "$perl_privlibexp" >&6; }
7065 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7066 $as_echo_n "checking for Perl useshrplib... " >&6; }
7067 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7068 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7069 $as_echo "$perl_useshrplib" >&6; }
7070
7071 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7072 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7073 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7074 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7075 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7076 if test -z "$perl_embed_ldflags" ; then
7077         { $as_echo "$as_me:$LINENO: result: no" >&5
7078 $as_echo "no" >&6; }
7079         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7080 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7081 installed." >&5
7082 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7083 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7084 installed." >&2;}
7085    { (exit 1); exit 1; }; }
7086 else
7087         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7088 $as_echo "$perl_embed_ldflags" >&6; }
7089 fi
7090
7091 fi
7092
7093 if test "$with_python" = yes; then
7094   # Extract the first word of "python", so it can be a program name with args.
7095 set dummy python; ac_word=$2
7096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_path_PYTHON+set}" = set; then
7099   $as_echo_n "(cached) " >&6
7100 else
7101   case $PYTHON in
7102   [\\/]* | ?:[\\/]*)
7103   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7104   ;;
7105   *)
7106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109   IFS=$as_save_IFS
7110   test -z "$as_dir" && as_dir=.
7111   for ac_exec_ext in '' $ac_executable_extensions; do
7112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7114     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115     break 2
7116   fi
7117 done
7118 done
7119 IFS=$as_save_IFS
7120
7121   ;;
7122 esac
7123 fi
7124 PYTHON=$ac_cv_path_PYTHON
7125 if test -n "$PYTHON"; then
7126   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7127 $as_echo "$PYTHON" >&6; }
7128 else
7129   { $as_echo "$as_me:$LINENO: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133
7134 if test x"$PYTHON" = x""; then
7135   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7136 $as_echo "$as_me: error: Python not found" >&2;}
7137    { (exit 1); exit 1; }; }
7138 fi
7139
7140
7141 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7142 $as_echo_n "checking for Python distutils module... " >&6; }
7143 if "${PYTHON}" -c 'import distutils' 2>&5
7144 then
7145     { $as_echo "$as_me:$LINENO: result: yes" >&5
7146 $as_echo "yes" >&6; }
7147 else
7148     { $as_echo "$as_me:$LINENO: result: no" >&5
7149 $as_echo "no" >&6; }
7150     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7151 $as_echo "$as_me: error: distutils module not found" >&2;}
7152    { (exit 1); exit 1; }; }
7153 fi
7154 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7155 $as_echo_n "checking Python configuration directory... " >&6; }
7156 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7157 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7158 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print(os.path.join(f(plat_specific=1,standard_lib=1),'config'))"`
7159 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7160
7161 # This should be enough of a message.
7162 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7163 $as_echo "$python_configdir" >&6; }
7164
7165
7166 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7167 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7168
7169 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7170 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7171 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7172 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7173
7174 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7175 then
7176         # New way: use the official shared library
7177         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7178         python_libspec="-L${python_libdir} -l${ldlibrary}"
7179 else
7180         # Old way: use libpython from python_configdir
7181         python_libdir="${python_configdir}"
7182         python_libspec="-L${python_libdir} -lpython${python_version}"
7183 fi
7184
7185 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7186
7187 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7188 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7189
7190
7191 # threaded python is not supported on bsd's
7192 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7193 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7194 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7195 if test "$pythreads" = "1"; then
7196   { $as_echo "$as_me:$LINENO: result: yes" >&5
7197 $as_echo "yes" >&6; }
7198   case $host_os in
7199   openbsd*|freebsd*)
7200     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7201 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7202    { (exit 1); exit 1; }; }
7203     ;;
7204   esac
7205 else
7206   { $as_echo "$as_me:$LINENO: result: no" >&5
7207 $as_echo "no" >&6; }
7208 fi
7209
7210
7211 fi
7212
7213 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7214   # Extract the first word of "zic", so it can be a program name with args.
7215 set dummy zic; ac_word=$2
7216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if test "${ac_cv_path_ZIC+set}" = set; then
7219   $as_echo_n "(cached) " >&6
7220 else
7221   case $ZIC in
7222   [\\/]* | ?:[\\/]*)
7223   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7224   ;;
7225   *)
7226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7228 do
7229   IFS=$as_save_IFS
7230   test -z "$as_dir" && as_dir=.
7231   for ac_exec_ext in '' $ac_executable_extensions; do
7232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7234     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235     break 2
7236   fi
7237 done
7238 done
7239 IFS=$as_save_IFS
7240
7241   ;;
7242 esac
7243 fi
7244 ZIC=$ac_cv_path_ZIC
7245 if test -n "$ZIC"; then
7246   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7247 $as_echo "$ZIC" >&6; }
7248 else
7249   { $as_echo "$as_me:$LINENO: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253
7254   if test -z "$ZIC"; then
7255     { { $as_echo "$as_me:$LINENO: error:
7256 When cross-compiling, either use the option --with-system-tzdata to use
7257 existing time-zone data, or set the environment variable ZIC to a zic
7258 program to use during the build." >&5
7259 $as_echo "$as_me: error:
7260 When cross-compiling, either use the option --with-system-tzdata to use
7261 existing time-zone data, or set the environment variable ZIC to a zic
7262 program to use during the build." >&2;}
7263    { (exit 1); exit 1; }; }
7264   fi
7265 fi
7266
7267
7268 ##
7269 ## Libraries
7270 ##
7271 ## Most libraries are included only if they demonstrably provide a function
7272 ## we need, but libm is an exception: always include it, because there are
7273 ## too many compilers that play cute optimization games that will break
7274 ## probes for standard functions such as pow().
7275 ##
7276
7277
7278 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7279 $as_echo_n "checking for main in -lm... " >&6; }
7280 if test "${ac_cv_lib_m_main+set}" = set; then
7281   $as_echo_n "(cached) " >&6
7282 else
7283   ac_check_lib_save_LIBS=$LIBS
7284 LIBS="-lm  $LIBS"
7285 cat >conftest.$ac_ext <<_ACEOF
7286 /* confdefs.h.  */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h.  */
7291
7292
7293 int
7294 main ()
7295 {
7296 return main ();
7297   ;
7298   return 0;
7299 }
7300 _ACEOF
7301 rm -f conftest.$ac_objext conftest$ac_exeext
7302 if { (ac_try="$ac_link"
7303 case "(($ac_try" in
7304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305   *) ac_try_echo=$ac_try;;
7306 esac
7307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7308 $as_echo "$ac_try_echo") >&5
7309   (eval "$ac_link") 2>conftest.er1
7310   ac_status=$?
7311   grep -v '^ *+' conftest.er1 >conftest.err
7312   rm -f conftest.er1
7313   cat conftest.err >&5
7314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315   (exit $ac_status); } && {
7316          test -z "$ac_c_werror_flag" ||
7317          test ! -s conftest.err
7318        } && test -s conftest$ac_exeext && {
7319          test "$cross_compiling" = yes ||
7320          $as_test_x conftest$ac_exeext
7321        }; then
7322   ac_cv_lib_m_main=yes
7323 else
7324   $as_echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327         ac_cv_lib_m_main=no
7328 fi
7329
7330 rm -rf conftest.dSYM
7331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7332       conftest$ac_exeext conftest.$ac_ext
7333 LIBS=$ac_check_lib_save_LIBS
7334 fi
7335 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7336 $as_echo "$ac_cv_lib_m_main" >&6; }
7337 if test "x$ac_cv_lib_m_main" = x""yes; then
7338   cat >>confdefs.h <<_ACEOF
7339 #define HAVE_LIBM 1
7340 _ACEOF
7341
7342   LIBS="-lm $LIBS"
7343
7344 fi
7345
7346 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7347 $as_echo_n "checking for library containing setproctitle... " >&6; }
7348 if test "${ac_cv_search_setproctitle+set}" = set; then
7349   $as_echo_n "(cached) " >&6
7350 else
7351   ac_func_search_save_LIBS=$LIBS
7352 cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h.  */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h.  */
7358
7359 /* Override any GCC internal prototype to avoid an error.
7360    Use char because int might match the return type of a GCC
7361    builtin and then its argument prototype would still apply.  */
7362 #ifdef __cplusplus
7363 extern "C"
7364 #endif
7365 char setproctitle ();
7366 int
7367 main ()
7368 {
7369 return setproctitle ();
7370   ;
7371   return 0;
7372 }
7373 _ACEOF
7374 for ac_lib in '' util; do
7375   if test -z "$ac_lib"; then
7376     ac_res="none required"
7377   else
7378     ac_res=-l$ac_lib
7379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7380   fi
7381   rm -f conftest.$ac_objext conftest$ac_exeext
7382 if { (ac_try="$ac_link"
7383 case "(($ac_try" in
7384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385   *) ac_try_echo=$ac_try;;
7386 esac
7387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7388 $as_echo "$ac_try_echo") >&5
7389   (eval "$ac_link") 2>conftest.er1
7390   ac_status=$?
7391   grep -v '^ *+' conftest.er1 >conftest.err
7392   rm -f conftest.er1
7393   cat conftest.err >&5
7394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); } && {
7396          test -z "$ac_c_werror_flag" ||
7397          test ! -s conftest.err
7398        } && test -s conftest$ac_exeext && {
7399          test "$cross_compiling" = yes ||
7400          $as_test_x conftest$ac_exeext
7401        }; then
7402   ac_cv_search_setproctitle=$ac_res
7403 else
7404   $as_echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7406
7407
7408 fi
7409
7410 rm -rf conftest.dSYM
7411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7412       conftest$ac_exeext
7413   if test "${ac_cv_search_setproctitle+set}" = set; then
7414   break
7415 fi
7416 done
7417 if test "${ac_cv_search_setproctitle+set}" = set; then
7418   :
7419 else
7420   ac_cv_search_setproctitle=no
7421 fi
7422 rm conftest.$ac_ext
7423 LIBS=$ac_func_search_save_LIBS
7424 fi
7425 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7426 $as_echo "$ac_cv_search_setproctitle" >&6; }
7427 ac_res=$ac_cv_search_setproctitle
7428 if test "$ac_res" != no; then
7429   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7430
7431 fi
7432
7433 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7434 $as_echo_n "checking for library containing dlopen... " >&6; }
7435 if test "${ac_cv_search_dlopen+set}" = set; then
7436   $as_echo_n "(cached) " >&6
7437 else
7438   ac_func_search_save_LIBS=$LIBS
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445
7446 /* Override any GCC internal prototype to avoid an error.
7447    Use char because int might match the return type of a GCC
7448    builtin and then its argument prototype would still apply.  */
7449 #ifdef __cplusplus
7450 extern "C"
7451 #endif
7452 char dlopen ();
7453 int
7454 main ()
7455 {
7456 return dlopen ();
7457   ;
7458   return 0;
7459 }
7460 _ACEOF
7461 for ac_lib in '' dl; do
7462   if test -z "$ac_lib"; then
7463     ac_res="none required"
7464   else
7465     ac_res=-l$ac_lib
7466     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7467   fi
7468   rm -f conftest.$ac_objext conftest$ac_exeext
7469 if { (ac_try="$ac_link"
7470 case "(($ac_try" in
7471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472   *) ac_try_echo=$ac_try;;
7473 esac
7474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475 $as_echo "$ac_try_echo") >&5
7476   (eval "$ac_link") 2>conftest.er1
7477   ac_status=$?
7478   grep -v '^ *+' conftest.er1 >conftest.err
7479   rm -f conftest.er1
7480   cat conftest.err >&5
7481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } && {
7483          test -z "$ac_c_werror_flag" ||
7484          test ! -s conftest.err
7485        } && test -s conftest$ac_exeext && {
7486          test "$cross_compiling" = yes ||
7487          $as_test_x conftest$ac_exeext
7488        }; then
7489   ac_cv_search_dlopen=$ac_res
7490 else
7491   $as_echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494
7495 fi
7496
7497 rm -rf conftest.dSYM
7498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7499       conftest$ac_exeext
7500   if test "${ac_cv_search_dlopen+set}" = set; then
7501   break
7502 fi
7503 done
7504 if test "${ac_cv_search_dlopen+set}" = set; then
7505   :
7506 else
7507   ac_cv_search_dlopen=no
7508 fi
7509 rm conftest.$ac_ext
7510 LIBS=$ac_func_search_save_LIBS
7511 fi
7512 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7513 $as_echo "$ac_cv_search_dlopen" >&6; }
7514 ac_res=$ac_cv_search_dlopen
7515 if test "$ac_res" != no; then
7516   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7517
7518 fi
7519
7520 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7521 $as_echo_n "checking for library containing socket... " >&6; }
7522 if test "${ac_cv_search_socket+set}" = set; then
7523   $as_echo_n "(cached) " >&6
7524 else
7525   ac_func_search_save_LIBS=$LIBS
7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h.  */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h.  */
7532
7533 /* Override any GCC internal prototype to avoid an error.
7534    Use char because int might match the return type of a GCC
7535    builtin and then its argument prototype would still apply.  */
7536 #ifdef __cplusplus
7537 extern "C"
7538 #endif
7539 char socket ();
7540 int
7541 main ()
7542 {
7543 return socket ();
7544   ;
7545   return 0;
7546 }
7547 _ACEOF
7548 for ac_lib in '' socket wsock32; do
7549   if test -z "$ac_lib"; then
7550     ac_res="none required"
7551   else
7552     ac_res=-l$ac_lib
7553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7554   fi
7555   rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (ac_try="$ac_link"
7557 case "(($ac_try" in
7558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559   *) ac_try_echo=$ac_try;;
7560 esac
7561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7562 $as_echo "$ac_try_echo") >&5
7563   (eval "$ac_link") 2>conftest.er1
7564   ac_status=$?
7565   grep -v '^ *+' conftest.er1 >conftest.err
7566   rm -f conftest.er1
7567   cat conftest.err >&5
7568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); } && {
7570          test -z "$ac_c_werror_flag" ||
7571          test ! -s conftest.err
7572        } && test -s conftest$ac_exeext && {
7573          test "$cross_compiling" = yes ||
7574          $as_test_x conftest$ac_exeext
7575        }; then
7576   ac_cv_search_socket=$ac_res
7577 else
7578   $as_echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7580
7581
7582 fi
7583
7584 rm -rf conftest.dSYM
7585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7586       conftest$ac_exeext
7587   if test "${ac_cv_search_socket+set}" = set; then
7588   break
7589 fi
7590 done
7591 if test "${ac_cv_search_socket+set}" = set; then
7592   :
7593 else
7594   ac_cv_search_socket=no
7595 fi
7596 rm conftest.$ac_ext
7597 LIBS=$ac_func_search_save_LIBS
7598 fi
7599 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7600 $as_echo "$ac_cv_search_socket" >&6; }
7601 ac_res=$ac_cv_search_socket
7602 if test "$ac_res" != no; then
7603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7604
7605 fi
7606
7607 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7608 $as_echo_n "checking for library containing shl_load... " >&6; }
7609 if test "${ac_cv_search_shl_load+set}" = set; then
7610   $as_echo_n "(cached) " >&6
7611 else
7612   ac_func_search_save_LIBS=$LIBS
7613 cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h.  */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h.  */
7619
7620 /* Override any GCC internal prototype to avoid an error.
7621    Use char because int might match the return type of a GCC
7622    builtin and then its argument prototype would still apply.  */
7623 #ifdef __cplusplus
7624 extern "C"
7625 #endif
7626 char shl_load ();
7627 int
7628 main ()
7629 {
7630 return shl_load ();
7631   ;
7632   return 0;
7633 }
7634 _ACEOF
7635 for ac_lib in '' dld; do
7636   if test -z "$ac_lib"; then
7637     ac_res="none required"
7638   else
7639     ac_res=-l$ac_lib
7640     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7641   fi
7642   rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7644 case "(($ac_try" in
7645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646   *) ac_try_echo=$ac_try;;
7647 esac
7648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649 $as_echo "$ac_try_echo") >&5
7650   (eval "$ac_link") 2>conftest.er1
7651   ac_status=$?
7652   grep -v '^ *+' conftest.er1 >conftest.err
7653   rm -f conftest.er1
7654   cat conftest.err >&5
7655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); } && {
7657          test -z "$ac_c_werror_flag" ||
7658          test ! -s conftest.err
7659        } && test -s conftest$ac_exeext && {
7660          test "$cross_compiling" = yes ||
7661          $as_test_x conftest$ac_exeext
7662        }; then
7663   ac_cv_search_shl_load=$ac_res
7664 else
7665   $as_echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7667
7668
7669 fi
7670
7671 rm -rf conftest.dSYM
7672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7673       conftest$ac_exeext
7674   if test "${ac_cv_search_shl_load+set}" = set; then
7675   break
7676 fi
7677 done
7678 if test "${ac_cv_search_shl_load+set}" = set; then
7679   :
7680 else
7681   ac_cv_search_shl_load=no
7682 fi
7683 rm conftest.$ac_ext
7684 LIBS=$ac_func_search_save_LIBS
7685 fi
7686 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7687 $as_echo "$ac_cv_search_shl_load" >&6; }
7688 ac_res=$ac_cv_search_shl_load
7689 if test "$ac_res" != no; then
7690   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7691
7692 fi
7693
7694 # We only use libld in port/dynloader/aix.c
7695 case $host_os in
7696      aix*)
7697         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7698 $as_echo_n "checking for library containing ldopen... " >&6; }
7699 if test "${ac_cv_search_ldopen+set}" = set; then
7700   $as_echo_n "(cached) " >&6
7701 else
7702   ac_func_search_save_LIBS=$LIBS
7703 cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h.  */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h.  */
7709
7710 /* Override any GCC internal prototype to avoid an error.
7711    Use char because int might match the return type of a GCC
7712    builtin and then its argument prototype would still apply.  */
7713 #ifdef __cplusplus
7714 extern "C"
7715 #endif
7716 char ldopen ();
7717 int
7718 main ()
7719 {
7720 return ldopen ();
7721   ;
7722   return 0;
7723 }
7724 _ACEOF
7725 for ac_lib in '' ld; do
7726   if test -z "$ac_lib"; then
7727     ac_res="none required"
7728   else
7729     ac_res=-l$ac_lib
7730     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7731   fi
7732   rm -f conftest.$ac_objext conftest$ac_exeext
7733 if { (ac_try="$ac_link"
7734 case "(($ac_try" in
7735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736   *) ac_try_echo=$ac_try;;
7737 esac
7738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7739 $as_echo "$ac_try_echo") >&5
7740   (eval "$ac_link") 2>conftest.er1
7741   ac_status=$?
7742   grep -v '^ *+' conftest.er1 >conftest.err
7743   rm -f conftest.er1
7744   cat conftest.err >&5
7745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); } && {
7747          test -z "$ac_c_werror_flag" ||
7748          test ! -s conftest.err
7749        } && test -s conftest$ac_exeext && {
7750          test "$cross_compiling" = yes ||
7751          $as_test_x conftest$ac_exeext
7752        }; then
7753   ac_cv_search_ldopen=$ac_res
7754 else
7755   $as_echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7757
7758
7759 fi
7760
7761 rm -rf conftest.dSYM
7762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7763       conftest$ac_exeext
7764   if test "${ac_cv_search_ldopen+set}" = set; then
7765   break
7766 fi
7767 done
7768 if test "${ac_cv_search_ldopen+set}" = set; then
7769   :
7770 else
7771   ac_cv_search_ldopen=no
7772 fi
7773 rm conftest.$ac_ext
7774 LIBS=$ac_func_search_save_LIBS
7775 fi
7776 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7777 $as_echo "$ac_cv_search_ldopen" >&6; }
7778 ac_res=$ac_cv_search_ldopen
7779 if test "$ac_res" != no; then
7780   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7781
7782 fi
7783
7784         ;;
7785 esac
7786 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7787 $as_echo_n "checking for library containing getopt_long... " >&6; }
7788 if test "${ac_cv_search_getopt_long+set}" = set; then
7789   $as_echo_n "(cached) " >&6
7790 else
7791   ac_func_search_save_LIBS=$LIBS
7792 cat >conftest.$ac_ext <<_ACEOF
7793 /* confdefs.h.  */
7794 _ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h.  */
7798
7799 /* Override any GCC internal prototype to avoid an error.
7800    Use char because int might match the return type of a GCC
7801    builtin and then its argument prototype would still apply.  */
7802 #ifdef __cplusplus
7803 extern "C"
7804 #endif
7805 char getopt_long ();
7806 int
7807 main ()
7808 {
7809 return getopt_long ();
7810   ;
7811   return 0;
7812 }
7813 _ACEOF
7814 for ac_lib in '' getopt gnugetopt; do
7815   if test -z "$ac_lib"; then
7816     ac_res="none required"
7817   else
7818     ac_res=-l$ac_lib
7819     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7820   fi
7821   rm -f conftest.$ac_objext conftest$ac_exeext
7822 if { (ac_try="$ac_link"
7823 case "(($ac_try" in
7824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825   *) ac_try_echo=$ac_try;;
7826 esac
7827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7828 $as_echo "$ac_try_echo") >&5
7829   (eval "$ac_link") 2>conftest.er1
7830   ac_status=$?
7831   grep -v '^ *+' conftest.er1 >conftest.err
7832   rm -f conftest.er1
7833   cat conftest.err >&5
7834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } && {
7836          test -z "$ac_c_werror_flag" ||
7837          test ! -s conftest.err
7838        } && test -s conftest$ac_exeext && {
7839          test "$cross_compiling" = yes ||
7840          $as_test_x conftest$ac_exeext
7841        }; then
7842   ac_cv_search_getopt_long=$ac_res
7843 else
7844   $as_echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7846
7847
7848 fi
7849
7850 rm -rf conftest.dSYM
7851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7852       conftest$ac_exeext
7853   if test "${ac_cv_search_getopt_long+set}" = set; then
7854   break
7855 fi
7856 done
7857 if test "${ac_cv_search_getopt_long+set}" = set; then
7858   :
7859 else
7860   ac_cv_search_getopt_long=no
7861 fi
7862 rm conftest.$ac_ext
7863 LIBS=$ac_func_search_save_LIBS
7864 fi
7865 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7866 $as_echo "$ac_cv_search_getopt_long" >&6; }
7867 ac_res=$ac_cv_search_getopt_long
7868 if test "$ac_res" != no; then
7869   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7870
7871 fi
7872
7873 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7874 $as_echo_n "checking for library containing crypt... " >&6; }
7875 if test "${ac_cv_search_crypt+set}" = set; then
7876   $as_echo_n "(cached) " >&6
7877 else
7878   ac_func_search_save_LIBS=$LIBS
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885
7886 /* Override any GCC internal prototype to avoid an error.
7887    Use char because int might match the return type of a GCC
7888    builtin and then its argument prototype would still apply.  */
7889 #ifdef __cplusplus
7890 extern "C"
7891 #endif
7892 char crypt ();
7893 int
7894 main ()
7895 {
7896 return crypt ();
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 for ac_lib in '' crypt; do
7902   if test -z "$ac_lib"; then
7903     ac_res="none required"
7904   else
7905     ac_res=-l$ac_lib
7906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7907   fi
7908   rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (ac_try="$ac_link"
7910 case "(($ac_try" in
7911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912   *) ac_try_echo=$ac_try;;
7913 esac
7914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7915 $as_echo "$ac_try_echo") >&5
7916   (eval "$ac_link") 2>conftest.er1
7917   ac_status=$?
7918   grep -v '^ *+' conftest.er1 >conftest.err
7919   rm -f conftest.er1
7920   cat conftest.err >&5
7921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); } && {
7923          test -z "$ac_c_werror_flag" ||
7924          test ! -s conftest.err
7925        } && test -s conftest$ac_exeext && {
7926          test "$cross_compiling" = yes ||
7927          $as_test_x conftest$ac_exeext
7928        }; then
7929   ac_cv_search_crypt=$ac_res
7930 else
7931   $as_echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7933
7934
7935 fi
7936
7937 rm -rf conftest.dSYM
7938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7939       conftest$ac_exeext
7940   if test "${ac_cv_search_crypt+set}" = set; then
7941   break
7942 fi
7943 done
7944 if test "${ac_cv_search_crypt+set}" = set; then
7945   :
7946 else
7947   ac_cv_search_crypt=no
7948 fi
7949 rm conftest.$ac_ext
7950 LIBS=$ac_func_search_save_LIBS
7951 fi
7952 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7953 $as_echo "$ac_cv_search_crypt" >&6; }
7954 ac_res=$ac_cv_search_crypt
7955 if test "$ac_res" != no; then
7956   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7957
7958 fi
7959
7960 # Solaris:
7961 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7962 $as_echo_n "checking for library containing fdatasync... " >&6; }
7963 if test "${ac_cv_search_fdatasync+set}" = set; then
7964   $as_echo_n "(cached) " >&6
7965 else
7966   ac_func_search_save_LIBS=$LIBS
7967 cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973
7974 /* Override any GCC internal prototype to avoid an error.
7975    Use char because int might match the return type of a GCC
7976    builtin and then its argument prototype would still apply.  */
7977 #ifdef __cplusplus
7978 extern "C"
7979 #endif
7980 char fdatasync ();
7981 int
7982 main ()
7983 {
7984 return fdatasync ();
7985   ;
7986   return 0;
7987 }
7988 _ACEOF
7989 for ac_lib in '' rt posix4; do
7990   if test -z "$ac_lib"; then
7991     ac_res="none required"
7992   else
7993     ac_res=-l$ac_lib
7994     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7995   fi
7996   rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (ac_try="$ac_link"
7998 case "(($ac_try" in
7999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000   *) ac_try_echo=$ac_try;;
8001 esac
8002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8003 $as_echo "$ac_try_echo") >&5
8004   (eval "$ac_link") 2>conftest.er1
8005   ac_status=$?
8006   grep -v '^ *+' conftest.er1 >conftest.err
8007   rm -f conftest.er1
8008   cat conftest.err >&5
8009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); } && {
8011          test -z "$ac_c_werror_flag" ||
8012          test ! -s conftest.err
8013        } && test -s conftest$ac_exeext && {
8014          test "$cross_compiling" = yes ||
8015          $as_test_x conftest$ac_exeext
8016        }; then
8017   ac_cv_search_fdatasync=$ac_res
8018 else
8019   $as_echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8021
8022
8023 fi
8024
8025 rm -rf conftest.dSYM
8026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8027       conftest$ac_exeext
8028   if test "${ac_cv_search_fdatasync+set}" = set; then
8029   break
8030 fi
8031 done
8032 if test "${ac_cv_search_fdatasync+set}" = set; then
8033   :
8034 else
8035   ac_cv_search_fdatasync=no
8036 fi
8037 rm conftest.$ac_ext
8038 LIBS=$ac_func_search_save_LIBS
8039 fi
8040 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8041 $as_echo "$ac_cv_search_fdatasync" >&6; }
8042 ac_res=$ac_cv_search_fdatasync
8043 if test "$ac_res" != no; then
8044   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8045
8046 fi
8047
8048 # Required for thread_test.c on Solaris 2.5:
8049 # Other ports use it too (HP-UX) so test unconditionally
8050 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8051 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8052 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8053   $as_echo_n "(cached) " >&6
8054 else
8055   ac_func_search_save_LIBS=$LIBS
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h.  */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h.  */
8062
8063 /* Override any GCC internal prototype to avoid an error.
8064    Use char because int might match the return type of a GCC
8065    builtin and then its argument prototype would still apply.  */
8066 #ifdef __cplusplus
8067 extern "C"
8068 #endif
8069 char gethostbyname_r ();
8070 int
8071 main ()
8072 {
8073 return gethostbyname_r ();
8074   ;
8075   return 0;
8076 }
8077 _ACEOF
8078 for ac_lib in '' nsl; do
8079   if test -z "$ac_lib"; then
8080     ac_res="none required"
8081   else
8082     ac_res=-l$ac_lib
8083     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8084   fi
8085   rm -f conftest.$ac_objext conftest$ac_exeext
8086 if { (ac_try="$ac_link"
8087 case "(($ac_try" in
8088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089   *) ac_try_echo=$ac_try;;
8090 esac
8091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8092 $as_echo "$ac_try_echo") >&5
8093   (eval "$ac_link") 2>conftest.er1
8094   ac_status=$?
8095   grep -v '^ *+' conftest.er1 >conftest.err
8096   rm -f conftest.er1
8097   cat conftest.err >&5
8098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); } && {
8100          test -z "$ac_c_werror_flag" ||
8101          test ! -s conftest.err
8102        } && test -s conftest$ac_exeext && {
8103          test "$cross_compiling" = yes ||
8104          $as_test_x conftest$ac_exeext
8105        }; then
8106   ac_cv_search_gethostbyname_r=$ac_res
8107 else
8108   $as_echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8110
8111
8112 fi
8113
8114 rm -rf conftest.dSYM
8115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8116       conftest$ac_exeext
8117   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8118   break
8119 fi
8120 done
8121 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8122   :
8123 else
8124   ac_cv_search_gethostbyname_r=no
8125 fi
8126 rm conftest.$ac_ext
8127 LIBS=$ac_func_search_save_LIBS
8128 fi
8129 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8130 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8131 ac_res=$ac_cv_search_gethostbyname_r
8132 if test "$ac_res" != no; then
8133   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8134
8135 fi
8136
8137 # Cygwin:
8138 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8139 $as_echo_n "checking for library containing shmget... " >&6; }
8140 if test "${ac_cv_search_shmget+set}" = set; then
8141   $as_echo_n "(cached) " >&6
8142 else
8143   ac_func_search_save_LIBS=$LIBS
8144 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h.  */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h.  */
8150
8151 /* Override any GCC internal prototype to avoid an error.
8152    Use char because int might match the return type of a GCC
8153    builtin and then its argument prototype would still apply.  */
8154 #ifdef __cplusplus
8155 extern "C"
8156 #endif
8157 char shmget ();
8158 int
8159 main ()
8160 {
8161 return shmget ();
8162   ;
8163   return 0;
8164 }
8165 _ACEOF
8166 for ac_lib in '' cygipc; do
8167   if test -z "$ac_lib"; then
8168     ac_res="none required"
8169   else
8170     ac_res=-l$ac_lib
8171     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8172   fi
8173   rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (ac_try="$ac_link"
8175 case "(($ac_try" in
8176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177   *) ac_try_echo=$ac_try;;
8178 esac
8179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8180 $as_echo "$ac_try_echo") >&5
8181   (eval "$ac_link") 2>conftest.er1
8182   ac_status=$?
8183   grep -v '^ *+' conftest.er1 >conftest.err
8184   rm -f conftest.er1
8185   cat conftest.err >&5
8186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } && {
8188          test -z "$ac_c_werror_flag" ||
8189          test ! -s conftest.err
8190        } && test -s conftest$ac_exeext && {
8191          test "$cross_compiling" = yes ||
8192          $as_test_x conftest$ac_exeext
8193        }; then
8194   ac_cv_search_shmget=$ac_res
8195 else
8196   $as_echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199
8200 fi
8201
8202 rm -rf conftest.dSYM
8203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8204       conftest$ac_exeext
8205   if test "${ac_cv_search_shmget+set}" = set; then
8206   break
8207 fi
8208 done
8209 if test "${ac_cv_search_shmget+set}" = set; then
8210   :
8211 else
8212   ac_cv_search_shmget=no
8213 fi
8214 rm conftest.$ac_ext
8215 LIBS=$ac_func_search_save_LIBS
8216 fi
8217 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8218 $as_echo "$ac_cv_search_shmget" >&6; }
8219 ac_res=$ac_cv_search_shmget
8220 if test "$ac_res" != no; then
8221   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8222
8223 fi
8224
8225
8226 if test "$with_readline" = yes; then
8227
8228
8229 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8230 $as_echo_n "checking for library containing readline... " >&6; }
8231 if test "${pgac_cv_check_readline+set}" = set; then
8232   $as_echo_n "(cached) " >&6
8233 else
8234   pgac_cv_check_readline=no
8235 pgac_save_LIBS=$LIBS
8236 if test x"$with_libedit_preferred" != x"yes"
8237 then    READLINE_ORDER="-lreadline -ledit"
8238 else    READLINE_ORDER="-ledit -lreadline"
8239 fi
8240 for pgac_rllib in $READLINE_ORDER ; do
8241   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8242     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8243     cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h.  */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h.  */
8249
8250 /* Override any GCC internal prototype to avoid an error.
8251    Use char because int might match the return type of a GCC
8252    builtin and then its argument prototype would still apply.  */
8253 #ifdef __cplusplus
8254 extern "C"
8255 #endif
8256 char readline ();
8257 int
8258 main ()
8259 {
8260 return readline ();
8261   ;
8262   return 0;
8263 }
8264 _ACEOF
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (ac_try="$ac_link"
8267 case "(($ac_try" in
8268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269   *) ac_try_echo=$ac_try;;
8270 esac
8271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8272 $as_echo "$ac_try_echo") >&5
8273   (eval "$ac_link") 2>conftest.er1
8274   ac_status=$?
8275   grep -v '^ *+' conftest.er1 >conftest.err
8276   rm -f conftest.er1
8277   cat conftest.err >&5
8278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); } && {
8280          test -z "$ac_c_werror_flag" ||
8281          test ! -s conftest.err
8282        } && test -s conftest$ac_exeext && {
8283          test "$cross_compiling" = yes ||
8284          $as_test_x conftest$ac_exeext
8285        }; then
8286
8287       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8288       # recognize dependent libraries; assume curses is needed if we didn't
8289       # find any dependency.
8290       case $host_os in
8291         netbsd* | openbsd* | irix*)
8292           if test x"$pgac_lib" = x"" ; then
8293             pgac_lib=" -lcurses"
8294           fi ;;
8295       esac
8296
8297       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8298       break
8299
8300 else
8301   $as_echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304
8305 fi
8306
8307 rm -rf conftest.dSYM
8308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8309       conftest$ac_exeext conftest.$ac_ext
8310   done
8311   if test "$pgac_cv_check_readline" != no ; then
8312     break
8313   fi
8314 done
8315 LIBS=$pgac_save_LIBS
8316
8317 fi
8318 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8319 $as_echo "$pgac_cv_check_readline" >&6; }
8320 if test "$pgac_cv_check_readline" != no ; then
8321   LIBS="$pgac_cv_check_readline $LIBS"
8322
8323 cat >>confdefs.h <<\_ACEOF
8324 #define HAVE_LIBREADLINE 1
8325 _ACEOF
8326
8327 fi
8328
8329
8330   if test x"$pgac_cv_check_readline" = x"no"; then
8331     { { $as_echo "$as_me:$LINENO: error: readline library not found
8332 If you have readline already installed, see config.log for details on the
8333 failure.  It is possible the compiler isn't looking in the proper directory.
8334 Use --without-readline to disable readline support." >&5
8335 $as_echo "$as_me: error: readline library not found
8336 If you have readline already installed, see config.log for details on the
8337 failure.  It is possible the compiler isn't looking in the proper directory.
8338 Use --without-readline to disable readline support." >&2;}
8339    { (exit 1); exit 1; }; }
8340   fi
8341 fi
8342
8343 if test "$with_zlib" = yes; then
8344
8345 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8346 $as_echo_n "checking for inflate in -lz... " >&6; }
8347 if test "${ac_cv_lib_z_inflate+set}" = set; then
8348   $as_echo_n "(cached) " >&6
8349 else
8350   ac_check_lib_save_LIBS=$LIBS
8351 LIBS="-lz  $LIBS"
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358
8359 /* Override any GCC internal prototype to avoid an error.
8360    Use char because int might match the return type of a GCC
8361    builtin and then its argument prototype would still apply.  */
8362 #ifdef __cplusplus
8363 extern "C"
8364 #endif
8365 char inflate ();
8366 int
8367 main ()
8368 {
8369 return inflate ();
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (ac_try="$ac_link"
8376 case "(($ac_try" in
8377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378   *) ac_try_echo=$ac_try;;
8379 esac
8380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8381 $as_echo "$ac_try_echo") >&5
8382   (eval "$ac_link") 2>conftest.er1
8383   ac_status=$?
8384   grep -v '^ *+' conftest.er1 >conftest.err
8385   rm -f conftest.er1
8386   cat conftest.err >&5
8387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); } && {
8389          test -z "$ac_c_werror_flag" ||
8390          test ! -s conftest.err
8391        } && test -s conftest$ac_exeext && {
8392          test "$cross_compiling" = yes ||
8393          $as_test_x conftest$ac_exeext
8394        }; then
8395   ac_cv_lib_z_inflate=yes
8396 else
8397   $as_echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8399
8400         ac_cv_lib_z_inflate=no
8401 fi
8402
8403 rm -rf conftest.dSYM
8404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8405       conftest$ac_exeext conftest.$ac_ext
8406 LIBS=$ac_check_lib_save_LIBS
8407 fi
8408 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8409 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8410 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8411   cat >>confdefs.h <<_ACEOF
8412 #define HAVE_LIBZ 1
8413 _ACEOF
8414
8415   LIBS="-lz $LIBS"
8416
8417 else
8418   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8419 If you have zlib already installed, see config.log for details on the
8420 failure.  It is possible the compiler isn't looking in the proper directory.
8421 Use --without-zlib to disable zlib support." >&5
8422 $as_echo "$as_me: error: zlib library not found
8423 If you have zlib already installed, see config.log for details on the
8424 failure.  It is possible the compiler isn't looking in the proper directory.
8425 Use --without-zlib to disable zlib support." >&2;}
8426    { (exit 1); exit 1; }; }
8427 fi
8428
8429 fi
8430
8431 if test "$enable_spinlocks" = yes; then
8432
8433 cat >>confdefs.h <<\_ACEOF
8434 #define HAVE_SPINLOCKS 1
8435 _ACEOF
8436
8437 else
8438   { $as_echo "$as_me:$LINENO: WARNING:
8439 *** Not using spinlocks will cause poor performance." >&5
8440 $as_echo "$as_me: WARNING:
8441 *** Not using spinlocks will cause poor performance." >&2;}
8442 fi
8443
8444 if test "$with_gssapi" = yes ; then
8445   if test "$PORTNAME" != "win32"; then
8446     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8447 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8448 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8449   $as_echo_n "(cached) " >&6
8450 else
8451   ac_func_search_save_LIBS=$LIBS
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h.  */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h.  */
8458
8459 /* Override any GCC internal prototype to avoid an error.
8460    Use char because int might match the return type of a GCC
8461    builtin and then its argument prototype would still apply.  */
8462 #ifdef __cplusplus
8463 extern "C"
8464 #endif
8465 char gss_init_sec_context ();
8466 int
8467 main ()
8468 {
8469 return gss_init_sec_context ();
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8475   if test -z "$ac_lib"; then
8476     ac_res="none required"
8477   else
8478     ac_res=-l$ac_lib
8479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8480   fi
8481   rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (ac_try="$ac_link"
8483 case "(($ac_try" in
8484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485   *) ac_try_echo=$ac_try;;
8486 esac
8487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8488 $as_echo "$ac_try_echo") >&5
8489   (eval "$ac_link") 2>conftest.er1
8490   ac_status=$?
8491   grep -v '^ *+' conftest.er1 >conftest.err
8492   rm -f conftest.er1
8493   cat conftest.err >&5
8494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); } && {
8496          test -z "$ac_c_werror_flag" ||
8497          test ! -s conftest.err
8498        } && test -s conftest$ac_exeext && {
8499          test "$cross_compiling" = yes ||
8500          $as_test_x conftest$ac_exeext
8501        }; then
8502   ac_cv_search_gss_init_sec_context=$ac_res
8503 else
8504   $as_echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507
8508 fi
8509
8510 rm -rf conftest.dSYM
8511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8512       conftest$ac_exeext
8513   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8514   break
8515 fi
8516 done
8517 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8518   :
8519 else
8520   ac_cv_search_gss_init_sec_context=no
8521 fi
8522 rm conftest.$ac_ext
8523 LIBS=$ac_func_search_save_LIBS
8524 fi
8525 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8526 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8527 ac_res=$ac_cv_search_gss_init_sec_context
8528 if test "$ac_res" != no; then
8529   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8530
8531 else
8532   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8533 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8534    { (exit 1); exit 1; }; }
8535 fi
8536
8537   else
8538     LIBS="$LIBS -lgssapi32"
8539   fi
8540 fi
8541
8542 if test "$with_krb5" = yes ; then
8543   if test "$PORTNAME" != "win32"; then
8544      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8545 $as_echo_n "checking for library containing com_err... " >&6; }
8546 if test "${ac_cv_search_com_err+set}" = set; then
8547   $as_echo_n "(cached) " >&6
8548 else
8549   ac_func_search_save_LIBS=$LIBS
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h.  */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h.  */
8556
8557 /* Override any GCC internal prototype to avoid an error.
8558    Use char because int might match the return type of a GCC
8559    builtin and then its argument prototype would still apply.  */
8560 #ifdef __cplusplus
8561 extern "C"
8562 #endif
8563 char com_err ();
8564 int
8565 main ()
8566 {
8567 return com_err ();
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8573   if test -z "$ac_lib"; then
8574     ac_res="none required"
8575   else
8576     ac_res=-l$ac_lib
8577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8578   fi
8579   rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (ac_try="$ac_link"
8581 case "(($ac_try" in
8582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583   *) ac_try_echo=$ac_try;;
8584 esac
8585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8586 $as_echo "$ac_try_echo") >&5
8587   (eval "$ac_link") 2>conftest.er1
8588   ac_status=$?
8589   grep -v '^ *+' conftest.er1 >conftest.err
8590   rm -f conftest.er1
8591   cat conftest.err >&5
8592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); } && {
8594          test -z "$ac_c_werror_flag" ||
8595          test ! -s conftest.err
8596        } && test -s conftest$ac_exeext && {
8597          test "$cross_compiling" = yes ||
8598          $as_test_x conftest$ac_exeext
8599        }; then
8600   ac_cv_search_com_err=$ac_res
8601 else
8602   $as_echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8604
8605
8606 fi
8607
8608 rm -rf conftest.dSYM
8609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8610       conftest$ac_exeext
8611   if test "${ac_cv_search_com_err+set}" = set; then
8612   break
8613 fi
8614 done
8615 if test "${ac_cv_search_com_err+set}" = set; then
8616   :
8617 else
8618   ac_cv_search_com_err=no
8619 fi
8620 rm conftest.$ac_ext
8621 LIBS=$ac_func_search_save_LIBS
8622 fi
8623 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8624 $as_echo "$ac_cv_search_com_err" >&6; }
8625 ac_res=$ac_cv_search_com_err
8626 if test "$ac_res" != no; then
8627   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8628
8629 else
8630   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8631 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8632    { (exit 1); exit 1; }; }
8633 fi
8634
8635      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8636 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8637 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8638   $as_echo_n "(cached) " >&6
8639 else
8640   ac_func_search_save_LIBS=$LIBS
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h.  */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h.  */
8647
8648 /* Override any GCC internal prototype to avoid an error.
8649    Use char because int might match the return type of a GCC
8650    builtin and then its argument prototype would still apply.  */
8651 #ifdef __cplusplus
8652 extern "C"
8653 #endif
8654 char krb5_sendauth ();
8655 int
8656 main ()
8657 {
8658 return krb5_sendauth ();
8659   ;
8660   return 0;
8661 }
8662 _ACEOF
8663 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8664   if test -z "$ac_lib"; then
8665     ac_res="none required"
8666   else
8667     ac_res=-l$ac_lib
8668     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8669   fi
8670   rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (ac_try="$ac_link"
8672 case "(($ac_try" in
8673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674   *) ac_try_echo=$ac_try;;
8675 esac
8676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8677 $as_echo "$ac_try_echo") >&5
8678   (eval "$ac_link") 2>conftest.er1
8679   ac_status=$?
8680   grep -v '^ *+' conftest.er1 >conftest.err
8681   rm -f conftest.er1
8682   cat conftest.err >&5
8683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); } && {
8685          test -z "$ac_c_werror_flag" ||
8686          test ! -s conftest.err
8687        } && test -s conftest$ac_exeext && {
8688          test "$cross_compiling" = yes ||
8689          $as_test_x conftest$ac_exeext
8690        }; then
8691   ac_cv_search_krb5_sendauth=$ac_res
8692 else
8693   $as_echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8695
8696
8697 fi
8698
8699 rm -rf conftest.dSYM
8700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8701       conftest$ac_exeext
8702   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8703   break
8704 fi
8705 done
8706 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8707   :
8708 else
8709   ac_cv_search_krb5_sendauth=no
8710 fi
8711 rm conftest.$ac_ext
8712 LIBS=$ac_func_search_save_LIBS
8713 fi
8714 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8715 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8716 ac_res=$ac_cv_search_krb5_sendauth
8717 if test "$ac_res" != no; then
8718   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8719
8720 else
8721   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8722 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8723    { (exit 1); exit 1; }; }
8724 fi
8725
8726   else
8727      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8728 $as_echo_n "checking for library containing com_err... " >&6; }
8729 if test "${ac_cv_search_com_err+set}" = set; then
8730   $as_echo_n "(cached) " >&6
8731 else
8732   ac_func_search_save_LIBS=$LIBS
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h.  */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h.  */
8739
8740 /* Override any GCC internal prototype to avoid an error.
8741    Use char because int might match the return type of a GCC
8742    builtin and then its argument prototype would still apply.  */
8743 #ifdef __cplusplus
8744 extern "C"
8745 #endif
8746 char com_err ();
8747 int
8748 main ()
8749 {
8750 return com_err ();
8751   ;
8752   return 0;
8753 }
8754 _ACEOF
8755 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8756   if test -z "$ac_lib"; then
8757     ac_res="none required"
8758   else
8759     ac_res=-l$ac_lib
8760     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8761   fi
8762   rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (ac_try="$ac_link"
8764 case "(($ac_try" in
8765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766   *) ac_try_echo=$ac_try;;
8767 esac
8768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8769 $as_echo "$ac_try_echo") >&5
8770   (eval "$ac_link") 2>conftest.er1
8771   ac_status=$?
8772   grep -v '^ *+' conftest.er1 >conftest.err
8773   rm -f conftest.er1
8774   cat conftest.err >&5
8775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); } && {
8777          test -z "$ac_c_werror_flag" ||
8778          test ! -s conftest.err
8779        } && test -s conftest$ac_exeext && {
8780          test "$cross_compiling" = yes ||
8781          $as_test_x conftest$ac_exeext
8782        }; then
8783   ac_cv_search_com_err=$ac_res
8784 else
8785   $as_echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8787
8788
8789 fi
8790
8791 rm -rf conftest.dSYM
8792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8793       conftest$ac_exeext
8794   if test "${ac_cv_search_com_err+set}" = set; then
8795   break
8796 fi
8797 done
8798 if test "${ac_cv_search_com_err+set}" = set; then
8799   :
8800 else
8801   ac_cv_search_com_err=no
8802 fi
8803 rm conftest.$ac_ext
8804 LIBS=$ac_func_search_save_LIBS
8805 fi
8806 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8807 $as_echo "$ac_cv_search_com_err" >&6; }
8808 ac_res=$ac_cv_search_com_err
8809 if test "$ac_res" != no; then
8810   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8811
8812 else
8813   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8814 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8815    { (exit 1); exit 1; }; }
8816 fi
8817
8818   fi
8819 fi
8820
8821 if test "$with_openssl" = yes ; then
8822     if test "$PORTNAME" != "win32"; then
8823
8824 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8825 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8826 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8827   $as_echo_n "(cached) " >&6
8828 else
8829   ac_check_lib_save_LIBS=$LIBS
8830 LIBS="-lcrypto  $LIBS"
8831 cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837
8838 /* Override any GCC internal prototype to avoid an error.
8839    Use char because int might match the return type of a GCC
8840    builtin and then its argument prototype would still apply.  */
8841 #ifdef __cplusplus
8842 extern "C"
8843 #endif
8844 char CRYPTO_new_ex_data ();
8845 int
8846 main ()
8847 {
8848 return CRYPTO_new_ex_data ();
8849   ;
8850   return 0;
8851 }
8852 _ACEOF
8853 rm -f conftest.$ac_objext conftest$ac_exeext
8854 if { (ac_try="$ac_link"
8855 case "(($ac_try" in
8856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857   *) ac_try_echo=$ac_try;;
8858 esac
8859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8860 $as_echo "$ac_try_echo") >&5
8861   (eval "$ac_link") 2>conftest.er1
8862   ac_status=$?
8863   grep -v '^ *+' conftest.er1 >conftest.err
8864   rm -f conftest.er1
8865   cat conftest.err >&5
8866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); } && {
8868          test -z "$ac_c_werror_flag" ||
8869          test ! -s conftest.err
8870        } && test -s conftest$ac_exeext && {
8871          test "$cross_compiling" = yes ||
8872          $as_test_x conftest$ac_exeext
8873        }; then
8874   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8875 else
8876   $as_echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8880 fi
8881
8882 rm -rf conftest.dSYM
8883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8884       conftest$ac_exeext conftest.$ac_ext
8885 LIBS=$ac_check_lib_save_LIBS
8886 fi
8887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8888 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8889 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8890   cat >>confdefs.h <<_ACEOF
8891 #define HAVE_LIBCRYPTO 1
8892 _ACEOF
8893
8894   LIBS="-lcrypto $LIBS"
8895
8896 else
8897   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8898 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8899    { (exit 1); exit 1; }; }
8900 fi
8901
8902
8903 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8904 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8905 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8906   $as_echo_n "(cached) " >&6
8907 else
8908   ac_check_lib_save_LIBS=$LIBS
8909 LIBS="-lssl  $LIBS"
8910 cat >conftest.$ac_ext <<_ACEOF
8911 /* confdefs.h.  */
8912 _ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h.  */
8916
8917 /* Override any GCC internal prototype to avoid an error.
8918    Use char because int might match the return type of a GCC
8919    builtin and then its argument prototype would still apply.  */
8920 #ifdef __cplusplus
8921 extern "C"
8922 #endif
8923 char SSL_library_init ();
8924 int
8925 main ()
8926 {
8927 return SSL_library_init ();
8928   ;
8929   return 0;
8930 }
8931 _ACEOF
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (ac_try="$ac_link"
8934 case "(($ac_try" in
8935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936   *) ac_try_echo=$ac_try;;
8937 esac
8938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8939 $as_echo "$ac_try_echo") >&5
8940   (eval "$ac_link") 2>conftest.er1
8941   ac_status=$?
8942   grep -v '^ *+' conftest.er1 >conftest.err
8943   rm -f conftest.er1
8944   cat conftest.err >&5
8945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); } && {
8947          test -z "$ac_c_werror_flag" ||
8948          test ! -s conftest.err
8949        } && test -s conftest$ac_exeext && {
8950          test "$cross_compiling" = yes ||
8951          $as_test_x conftest$ac_exeext
8952        }; then
8953   ac_cv_lib_ssl_SSL_library_init=yes
8954 else
8955   $as_echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958         ac_cv_lib_ssl_SSL_library_init=no
8959 fi
8960
8961 rm -rf conftest.dSYM
8962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8963       conftest$ac_exeext conftest.$ac_ext
8964 LIBS=$ac_check_lib_save_LIBS
8965 fi
8966 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8967 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8968 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8969   cat >>confdefs.h <<_ACEOF
8970 #define HAVE_LIBSSL 1
8971 _ACEOF
8972
8973   LIBS="-lssl $LIBS"
8974
8975 else
8976   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8977 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8978    { (exit 1); exit 1; }; }
8979 fi
8980
8981   else
8982
8983 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8984 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8985 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8986   $as_echo_n "(cached) " >&6
8987 else
8988   ac_check_lib_save_LIBS=$LIBS
8989 LIBS="-leay32  $LIBS"
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h.  */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h.  */
8996
8997 /* Override any GCC internal prototype to avoid an error.
8998    Use char because int might match the return type of a GCC
8999    builtin and then its argument prototype would still apply.  */
9000 #ifdef __cplusplus
9001 extern "C"
9002 #endif
9003 char CRYPTO_new_ex_data ();
9004 int
9005 main ()
9006 {
9007 return CRYPTO_new_ex_data ();
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (ac_try="$ac_link"
9014 case "(($ac_try" in
9015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9016   *) ac_try_echo=$ac_try;;
9017 esac
9018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9019 $as_echo "$ac_try_echo") >&5
9020   (eval "$ac_link") 2>conftest.er1
9021   ac_status=$?
9022   grep -v '^ *+' conftest.er1 >conftest.err
9023   rm -f conftest.er1
9024   cat conftest.err >&5
9025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); } && {
9027          test -z "$ac_c_werror_flag" ||
9028          test ! -s conftest.err
9029        } && test -s conftest$ac_exeext && {
9030          test "$cross_compiling" = yes ||
9031          $as_test_x conftest$ac_exeext
9032        }; then
9033   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9034 else
9035   $as_echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9037
9038         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9039 fi
9040
9041 rm -rf conftest.dSYM
9042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9043       conftest$ac_exeext conftest.$ac_ext
9044 LIBS=$ac_check_lib_save_LIBS
9045 fi
9046 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9047 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9048 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9049   cat >>confdefs.h <<_ACEOF
9050 #define HAVE_LIBEAY32 1
9051 _ACEOF
9052
9053   LIBS="-leay32 $LIBS"
9054
9055 else
9056   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9057 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9058    { (exit 1); exit 1; }; }
9059 fi
9060
9061
9062 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9063 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9064 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9065   $as_echo_n "(cached) " >&6
9066 else
9067   ac_check_lib_save_LIBS=$LIBS
9068 LIBS="-lssleay32  $LIBS"
9069 cat >conftest.$ac_ext <<_ACEOF
9070 /* confdefs.h.  */
9071 _ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h.  */
9075
9076 /* Override any GCC internal prototype to avoid an error.
9077    Use char because int might match the return type of a GCC
9078    builtin and then its argument prototype would still apply.  */
9079 #ifdef __cplusplus
9080 extern "C"
9081 #endif
9082 char SSL_library_init ();
9083 int
9084 main ()
9085 {
9086 return SSL_library_init ();
9087   ;
9088   return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest.$ac_objext conftest$ac_exeext
9092 if { (ac_try="$ac_link"
9093 case "(($ac_try" in
9094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9095   *) ac_try_echo=$ac_try;;
9096 esac
9097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9098 $as_echo "$ac_try_echo") >&5
9099   (eval "$ac_link") 2>conftest.er1
9100   ac_status=$?
9101   grep -v '^ *+' conftest.er1 >conftest.err
9102   rm -f conftest.er1
9103   cat conftest.err >&5
9104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); } && {
9106          test -z "$ac_c_werror_flag" ||
9107          test ! -s conftest.err
9108        } && test -s conftest$ac_exeext && {
9109          test "$cross_compiling" = yes ||
9110          $as_test_x conftest$ac_exeext
9111        }; then
9112   ac_cv_lib_ssleay32_SSL_library_init=yes
9113 else
9114   $as_echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117         ac_cv_lib_ssleay32_SSL_library_init=no
9118 fi
9119
9120 rm -rf conftest.dSYM
9121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9122       conftest$ac_exeext conftest.$ac_ext
9123 LIBS=$ac_check_lib_save_LIBS
9124 fi
9125 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9126 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9127 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9128   cat >>confdefs.h <<_ACEOF
9129 #define HAVE_LIBSSLEAY32 1
9130 _ACEOF
9131
9132   LIBS="-lssleay32 $LIBS"
9133
9134 else
9135   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9136 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9137    { (exit 1); exit 1; }; }
9138 fi
9139
9140   fi
9141 fi
9142
9143 if test "$with_pam" = yes ; then
9144
9145 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9146 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9147 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9148   $as_echo_n "(cached) " >&6
9149 else
9150   ac_check_lib_save_LIBS=$LIBS
9151 LIBS="-lpam  $LIBS"
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h.  */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h.  */
9158
9159 /* Override any GCC internal prototype to avoid an error.
9160    Use char because int might match the return type of a GCC
9161    builtin and then its argument prototype would still apply.  */
9162 #ifdef __cplusplus
9163 extern "C"
9164 #endif
9165 char pam_start ();
9166 int
9167 main ()
9168 {
9169 return pam_start ();
9170   ;
9171   return 0;
9172 }
9173 _ACEOF
9174 rm -f conftest.$ac_objext conftest$ac_exeext
9175 if { (ac_try="$ac_link"
9176 case "(($ac_try" in
9177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178   *) ac_try_echo=$ac_try;;
9179 esac
9180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9181 $as_echo "$ac_try_echo") >&5
9182   (eval "$ac_link") 2>conftest.er1
9183   ac_status=$?
9184   grep -v '^ *+' conftest.er1 >conftest.err
9185   rm -f conftest.er1
9186   cat conftest.err >&5
9187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } && {
9189          test -z "$ac_c_werror_flag" ||
9190          test ! -s conftest.err
9191        } && test -s conftest$ac_exeext && {
9192          test "$cross_compiling" = yes ||
9193          $as_test_x conftest$ac_exeext
9194        }; then
9195   ac_cv_lib_pam_pam_start=yes
9196 else
9197   $as_echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9199
9200         ac_cv_lib_pam_pam_start=no
9201 fi
9202
9203 rm -rf conftest.dSYM
9204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9205       conftest$ac_exeext conftest.$ac_ext
9206 LIBS=$ac_check_lib_save_LIBS
9207 fi
9208 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9209 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9210 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9211   cat >>confdefs.h <<_ACEOF
9212 #define HAVE_LIBPAM 1
9213 _ACEOF
9214
9215   LIBS="-lpam $LIBS"
9216
9217 else
9218   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9219 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9220    { (exit 1); exit 1; }; }
9221 fi
9222
9223 fi
9224
9225 if test "$with_libxml" = yes ; then
9226
9227 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9228 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9229 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9230   $as_echo_n "(cached) " >&6
9231 else
9232   ac_check_lib_save_LIBS=$LIBS
9233 LIBS="-lxml2  $LIBS"
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h.  */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h.  */
9240
9241 /* Override any GCC internal prototype to avoid an error.
9242    Use char because int might match the return type of a GCC
9243    builtin and then its argument prototype would still apply.  */
9244 #ifdef __cplusplus
9245 extern "C"
9246 #endif
9247 char xmlSaveToBuffer ();
9248 int
9249 main ()
9250 {
9251 return xmlSaveToBuffer ();
9252   ;
9253   return 0;
9254 }
9255 _ACEOF
9256 rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (ac_try="$ac_link"
9258 case "(($ac_try" in
9259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260   *) ac_try_echo=$ac_try;;
9261 esac
9262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9263 $as_echo "$ac_try_echo") >&5
9264   (eval "$ac_link") 2>conftest.er1
9265   ac_status=$?
9266   grep -v '^ *+' conftest.er1 >conftest.err
9267   rm -f conftest.er1
9268   cat conftest.err >&5
9269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); } && {
9271          test -z "$ac_c_werror_flag" ||
9272          test ! -s conftest.err
9273        } && test -s conftest$ac_exeext && {
9274          test "$cross_compiling" = yes ||
9275          $as_test_x conftest$ac_exeext
9276        }; then
9277   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9278 else
9279   $as_echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9281
9282         ac_cv_lib_xml2_xmlSaveToBuffer=no
9283 fi
9284
9285 rm -rf conftest.dSYM
9286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9287       conftest$ac_exeext conftest.$ac_ext
9288 LIBS=$ac_check_lib_save_LIBS
9289 fi
9290 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9291 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9292 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9293   cat >>confdefs.h <<_ACEOF
9294 #define HAVE_LIBXML2 1
9295 _ACEOF
9296
9297   LIBS="-lxml2 $LIBS"
9298
9299 else
9300   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9301 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9302    { (exit 1); exit 1; }; }
9303 fi
9304
9305 fi
9306
9307 if test "$with_libxslt" = yes ; then
9308
9309 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9310 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9311 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9312   $as_echo_n "(cached) " >&6
9313 else
9314   ac_check_lib_save_LIBS=$LIBS
9315 LIBS="-lxslt  $LIBS"
9316 cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h.  */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h.  */
9322
9323 /* Override any GCC internal prototype to avoid an error.
9324    Use char because int might match the return type of a GCC
9325    builtin and then its argument prototype would still apply.  */
9326 #ifdef __cplusplus
9327 extern "C"
9328 #endif
9329 char xsltCleanupGlobals ();
9330 int
9331 main ()
9332 {
9333 return xsltCleanupGlobals ();
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 rm -f conftest.$ac_objext conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9340 case "(($ac_try" in
9341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342   *) ac_try_echo=$ac_try;;
9343 esac
9344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9345 $as_echo "$ac_try_echo") >&5
9346   (eval "$ac_link") 2>conftest.er1
9347   ac_status=$?
9348   grep -v '^ *+' conftest.er1 >conftest.err
9349   rm -f conftest.er1
9350   cat conftest.err >&5
9351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } && {
9353          test -z "$ac_c_werror_flag" ||
9354          test ! -s conftest.err
9355        } && test -s conftest$ac_exeext && {
9356          test "$cross_compiling" = yes ||
9357          $as_test_x conftest$ac_exeext
9358        }; then
9359   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9360 else
9361   $as_echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364         ac_cv_lib_xslt_xsltCleanupGlobals=no
9365 fi
9366
9367 rm -rf conftest.dSYM
9368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9369       conftest$ac_exeext conftest.$ac_ext
9370 LIBS=$ac_check_lib_save_LIBS
9371 fi
9372 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9373 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9374 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9375   cat >>confdefs.h <<_ACEOF
9376 #define HAVE_LIBXSLT 1
9377 _ACEOF
9378
9379   LIBS="-lxslt $LIBS"
9380
9381 else
9382   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9383 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9384    { (exit 1); exit 1; }; }
9385 fi
9386
9387 fi
9388
9389 # for contrib/sepgsql
9390 if test "$with_selinux" = yes; then
9391
9392 { $as_echo "$as_me:$LINENO: checking for getpeercon_raw in -lselinux" >&5
9393 $as_echo_n "checking for getpeercon_raw in -lselinux... " >&6; }
9394 if test "${ac_cv_lib_selinux_getpeercon_raw+set}" = set; then
9395   $as_echo_n "(cached) " >&6
9396 else
9397   ac_check_lib_save_LIBS=$LIBS
9398 LIBS="-lselinux  $LIBS"
9399 cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h.  */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h.  */
9405
9406 /* Override any GCC internal prototype to avoid an error.
9407    Use char because int might match the return type of a GCC
9408    builtin and then its argument prototype would still apply.  */
9409 #ifdef __cplusplus
9410 extern "C"
9411 #endif
9412 char getpeercon_raw ();
9413 int
9414 main ()
9415 {
9416 return getpeercon_raw ();
9417   ;
9418   return 0;
9419 }
9420 _ACEOF
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (ac_try="$ac_link"
9423 case "(($ac_try" in
9424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425   *) ac_try_echo=$ac_try;;
9426 esac
9427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9428 $as_echo "$ac_try_echo") >&5
9429   (eval "$ac_link") 2>conftest.er1
9430   ac_status=$?
9431   grep -v '^ *+' conftest.er1 >conftest.err
9432   rm -f conftest.er1
9433   cat conftest.err >&5
9434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); } && {
9436          test -z "$ac_c_werror_flag" ||
9437          test ! -s conftest.err
9438        } && test -s conftest$ac_exeext && {
9439          test "$cross_compiling" = yes ||
9440          $as_test_x conftest$ac_exeext
9441        }; then
9442   ac_cv_lib_selinux_getpeercon_raw=yes
9443 else
9444   $as_echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447         ac_cv_lib_selinux_getpeercon_raw=no
9448 fi
9449
9450 rm -rf conftest.dSYM
9451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9452       conftest$ac_exeext conftest.$ac_ext
9453 LIBS=$ac_check_lib_save_LIBS
9454 fi
9455 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_getpeercon_raw" >&5
9456 $as_echo "$ac_cv_lib_selinux_getpeercon_raw" >&6; }
9457 if test "x$ac_cv_lib_selinux_getpeercon_raw" = x""yes; then
9458   cat >>confdefs.h <<_ACEOF
9459 #define HAVE_LIBSELINUX 1
9460 _ACEOF
9461
9462   LIBS="-lselinux $LIBS"
9463
9464 else
9465   { { $as_echo "$as_me:$LINENO: error: library 'libselinux' is required for SELinux support" >&5
9466 $as_echo "$as_me: error: library 'libselinux' is required for SELinux support" >&2;}
9467    { (exit 1); exit 1; }; }
9468 fi
9469
9470 fi
9471
9472 # for contrib/uuid-ossp
9473 if test "$with_ossp_uuid" = yes ; then
9474   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9475 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9476 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9477   $as_echo_n "(cached) " >&6
9478 else
9479   ac_check_lib_save_LIBS=$LIBS
9480 LIBS="-lossp-uuid  $LIBS"
9481 cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h.  */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h.  */
9487
9488 /* Override any GCC internal prototype to avoid an error.
9489    Use char because int might match the return type of a GCC
9490    builtin and then its argument prototype would still apply.  */
9491 #ifdef __cplusplus
9492 extern "C"
9493 #endif
9494 char uuid_export ();
9495 int
9496 main ()
9497 {
9498 return uuid_export ();
9499   ;
9500   return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9505 case "(($ac_try" in
9506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507   *) ac_try_echo=$ac_try;;
9508 esac
9509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9510 $as_echo "$ac_try_echo") >&5
9511   (eval "$ac_link") 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } && {
9518          test -z "$ac_c_werror_flag" ||
9519          test ! -s conftest.err
9520        } && test -s conftest$ac_exeext && {
9521          test "$cross_compiling" = yes ||
9522          $as_test_x conftest$ac_exeext
9523        }; then
9524   ac_cv_lib_ossp_uuid_uuid_export=yes
9525 else
9526   $as_echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9528
9529         ac_cv_lib_ossp_uuid_uuid_export=no
9530 fi
9531
9532 rm -rf conftest.dSYM
9533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9534       conftest$ac_exeext conftest.$ac_ext
9535 LIBS=$ac_check_lib_save_LIBS
9536 fi
9537 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9538 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9539 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9540   OSSP_UUID_LIBS="-lossp-uuid"
9541 else
9542   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9543 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9544 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9545   $as_echo_n "(cached) " >&6
9546 else
9547   ac_check_lib_save_LIBS=$LIBS
9548 LIBS="-luuid  $LIBS"
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h.  */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h.  */
9555
9556 /* Override any GCC internal prototype to avoid an error.
9557    Use char because int might match the return type of a GCC
9558    builtin and then its argument prototype would still apply.  */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 char uuid_export ();
9563 int
9564 main ()
9565 {
9566 return uuid_export ();
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (ac_try="$ac_link"
9573 case "(($ac_try" in
9574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575   *) ac_try_echo=$ac_try;;
9576 esac
9577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9578 $as_echo "$ac_try_echo") >&5
9579   (eval "$ac_link") 2>conftest.er1
9580   ac_status=$?
9581   grep -v '^ *+' conftest.er1 >conftest.err
9582   rm -f conftest.er1
9583   cat conftest.err >&5
9584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); } && {
9586          test -z "$ac_c_werror_flag" ||
9587          test ! -s conftest.err
9588        } && test -s conftest$ac_exeext && {
9589          test "$cross_compiling" = yes ||
9590          $as_test_x conftest$ac_exeext
9591        }; then
9592   ac_cv_lib_uuid_uuid_export=yes
9593 else
9594   $as_echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597         ac_cv_lib_uuid_uuid_export=no
9598 fi
9599
9600 rm -rf conftest.dSYM
9601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9602       conftest$ac_exeext conftest.$ac_ext
9603 LIBS=$ac_check_lib_save_LIBS
9604 fi
9605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9606 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9607 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9608   OSSP_UUID_LIBS="-luuid"
9609 else
9610   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9611 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9612    { (exit 1); exit 1; }; }
9613 fi
9614
9615 fi
9616
9617 fi
9618
9619
9620
9621 ##
9622 ## Header files
9623 ##
9624
9625 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9626 $as_echo_n "checking for ANSI C header files... " >&6; }
9627 if test "${ac_cv_header_stdc+set}" = set; then
9628   $as_echo_n "(cached) " >&6
9629 else
9630   cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h.  */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h.  */
9636 #include <stdlib.h>
9637 #include <stdarg.h>
9638 #include <string.h>
9639 #include <float.h>
9640
9641 int
9642 main ()
9643 {
9644
9645   ;
9646   return 0;
9647 }
9648 _ACEOF
9649 rm -f conftest.$ac_objext
9650 if { (ac_try="$ac_compile"
9651 case "(($ac_try" in
9652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653   *) ac_try_echo=$ac_try;;
9654 esac
9655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9656 $as_echo "$ac_try_echo") >&5
9657   (eval "$ac_compile") 2>conftest.er1
9658   ac_status=$?
9659   grep -v '^ *+' conftest.er1 >conftest.err
9660   rm -f conftest.er1
9661   cat conftest.err >&5
9662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } && {
9664          test -z "$ac_c_werror_flag" ||
9665          test ! -s conftest.err
9666        } && test -s conftest.$ac_objext; then
9667   ac_cv_header_stdc=yes
9668 else
9669   $as_echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672         ac_cv_header_stdc=no
9673 fi
9674
9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676
9677 if test $ac_cv_header_stdc = yes; then
9678   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9679   cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685 #include <string.h>
9686
9687 _ACEOF
9688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9689   $EGREP "memchr" >/dev/null 2>&1; then
9690   :
9691 else
9692   ac_cv_header_stdc=no
9693 fi
9694 rm -f conftest*
9695
9696 fi
9697
9698 if test $ac_cv_header_stdc = yes; then
9699   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9700   cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h.  */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h.  */
9706 #include <stdlib.h>
9707
9708 _ACEOF
9709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9710   $EGREP "free" >/dev/null 2>&1; then
9711   :
9712 else
9713   ac_cv_header_stdc=no
9714 fi
9715 rm -f conftest*
9716
9717 fi
9718
9719 if test $ac_cv_header_stdc = yes; then
9720   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9721   if test "$cross_compiling" = yes; then
9722   :
9723 else
9724   cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730 #include <ctype.h>
9731 #include <stdlib.h>
9732 #if ((' ' & 0x0FF) == 0x020)
9733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9735 #else
9736 # define ISLOWER(c) \
9737                    (('a' <= (c) && (c) <= 'i') \
9738                      || ('j' <= (c) && (c) <= 'r') \
9739                      || ('s' <= (c) && (c) <= 'z'))
9740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9741 #endif
9742
9743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9744 int
9745 main ()
9746 {
9747   int i;
9748   for (i = 0; i < 256; i++)
9749     if (XOR (islower (i), ISLOWER (i))
9750         || toupper (i) != TOUPPER (i))
9751       return 2;
9752   return 0;
9753 }
9754 _ACEOF
9755 rm -f conftest$ac_exeext
9756 if { (ac_try="$ac_link"
9757 case "(($ac_try" in
9758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759   *) ac_try_echo=$ac_try;;
9760 esac
9761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9762 $as_echo "$ac_try_echo") >&5
9763   (eval "$ac_link") 2>&5
9764   ac_status=$?
9765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9767   { (case "(($ac_try" in
9768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769   *) ac_try_echo=$ac_try;;
9770 esac
9771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9772 $as_echo "$ac_try_echo") >&5
9773   (eval "$ac_try") 2>&5
9774   ac_status=$?
9775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); }; }; then
9777   :
9778 else
9779   $as_echo "$as_me: program exited with status $ac_status" >&5
9780 $as_echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783 ( exit $ac_status )
9784 ac_cv_header_stdc=no
9785 fi
9786 rm -rf conftest.dSYM
9787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9788 fi
9789
9790
9791 fi
9792 fi
9793 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9794 $as_echo "$ac_cv_header_stdc" >&6; }
9795 if test $ac_cv_header_stdc = yes; then
9796
9797 cat >>confdefs.h <<\_ACEOF
9798 #define STDC_HEADERS 1
9799 _ACEOF
9800
9801 fi
9802
9803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9814                   inttypes.h stdint.h unistd.h
9815 do
9816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9817 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9818 $as_echo_n "checking for $ac_header... " >&6; }
9819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9820   $as_echo_n "(cached) " >&6
9821 else
9822   cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828 $ac_includes_default
9829
9830 #include <$ac_header>
9831 _ACEOF
9832 rm -f conftest.$ac_objext
9833 if { (ac_try="$ac_compile"
9834 case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9839 $as_echo "$ac_try_echo") >&5
9840   (eval "$ac_compile") 2>conftest.er1
9841   ac_status=$?
9842   grep -v '^ *+' conftest.er1 >conftest.err
9843   rm -f conftest.er1
9844   cat conftest.err >&5
9845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); } && {
9847          test -z "$ac_c_werror_flag" ||
9848          test ! -s conftest.err
9849        } && test -s conftest.$ac_objext; then
9850   eval "$as_ac_Header=yes"
9851 else
9852   $as_echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9854
9855         eval "$as_ac_Header=no"
9856 fi
9857
9858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9859 fi
9860 ac_res=`eval 'as_val=${'$as_ac_Header'}
9861                  $as_echo "$as_val"'`
9862                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9863 $as_echo "$ac_res" >&6; }
9864 as_val=`eval 'as_val=${'$as_ac_Header'}
9865                  $as_echo "$as_val"'`
9866    if test "x$as_val" = x""yes; then
9867   cat >>confdefs.h <<_ACEOF
9868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9869 _ACEOF
9870
9871 fi
9872
9873 done
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9907 do
9908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9910   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9911 $as_echo_n "checking for $ac_header... " >&6; }
9912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9913   $as_echo_n "(cached) " >&6
9914 fi
9915 ac_res=`eval 'as_val=${'$as_ac_Header'}
9916                  $as_echo "$as_val"'`
9917                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9918 $as_echo "$ac_res" >&6; }
9919 else
9920   # Is the header compilable?
9921 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9922 $as_echo_n "checking $ac_header usability... " >&6; }
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h.  */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h.  */
9929 $ac_includes_default
9930 #include <$ac_header>
9931 _ACEOF
9932 rm -f conftest.$ac_objext
9933 if { (ac_try="$ac_compile"
9934 case "(($ac_try" in
9935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936   *) ac_try_echo=$ac_try;;
9937 esac
9938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9939 $as_echo "$ac_try_echo") >&5
9940   (eval "$ac_compile") 2>conftest.er1
9941   ac_status=$?
9942   grep -v '^ *+' conftest.er1 >conftest.err
9943   rm -f conftest.er1
9944   cat conftest.err >&5
9945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); } && {
9947          test -z "$ac_c_werror_flag" ||
9948          test ! -s conftest.err
9949        } && test -s conftest.$ac_objext; then
9950   ac_header_compiler=yes
9951 else
9952   $as_echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9954
9955         ac_header_compiler=no
9956 fi
9957
9958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9960 $as_echo "$ac_header_compiler" >&6; }
9961
9962 # Is the header present?
9963 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9964 $as_echo_n "checking $ac_header presence... " >&6; }
9965 cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h.  */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h.  */
9971 #include <$ac_header>
9972 _ACEOF
9973 if { (ac_try="$ac_cpp conftest.$ac_ext"
9974 case "(($ac_try" in
9975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976   *) ac_try_echo=$ac_try;;
9977 esac
9978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9979 $as_echo "$ac_try_echo") >&5
9980   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9981   ac_status=$?
9982   grep -v '^ *+' conftest.er1 >conftest.err
9983   rm -f conftest.er1
9984   cat conftest.err >&5
9985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } >/dev/null && {
9987          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9988          test ! -s conftest.err
9989        }; then
9990   ac_header_preproc=yes
9991 else
9992   $as_echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995   ac_header_preproc=no
9996 fi
9997
9998 rm -f conftest.err conftest.$ac_ext
9999 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10000 $as_echo "$ac_header_preproc" >&6; }
10001
10002 # So?  What about this header?
10003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10004   yes:no: )
10005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10006 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10007     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10008 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10009     ac_header_preproc=yes
10010     ;;
10011   no:yes:* )
10012     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10013 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10014     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10015 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10016     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10017 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10018     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10019 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10020     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10021 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10022     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10023 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10024     ( cat <<\_ASBOX
10025 ## ---------------------------------------- ##
10026 ## Report this to pgsql-bugs@postgresql.org ##
10027 ## ---------------------------------------- ##
10028 _ASBOX
10029      ) | sed "s/^/$as_me: WARNING:     /" >&2
10030     ;;
10031 esac
10032 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10033 $as_echo_n "checking for $ac_header... " >&6; }
10034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10035   $as_echo_n "(cached) " >&6
10036 else
10037   eval "$as_ac_Header=\$ac_header_preproc"
10038 fi
10039 ac_res=`eval 'as_val=${'$as_ac_Header'}
10040                  $as_echo "$as_val"'`
10041                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10042 $as_echo "$ac_res" >&6; }
10043
10044 fi
10045 as_val=`eval 'as_val=${'$as_ac_Header'}
10046                  $as_echo "$as_val"'`
10047    if test "x$as_val" = x""yes; then
10048   cat >>confdefs.h <<_ACEOF
10049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10050 _ACEOF
10051
10052 fi
10053
10054 done
10055
10056
10057 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10058 # is included first.
10059
10060 for ac_header in net/if.h
10061 do
10062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10063 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10064 $as_echo_n "checking for $ac_header... " >&6; }
10065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10066   $as_echo_n "(cached) " >&6
10067 else
10068   cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h.  */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h.  */
10074 $ac_includes_default
10075 #ifdef HAVE_SYS_SOCKET_H
10076 #include <sys/socket.h>
10077 #endif
10078
10079
10080 #include <$ac_header>
10081 _ACEOF
10082 rm -f conftest.$ac_objext
10083 if { (ac_try="$ac_compile"
10084 case "(($ac_try" in
10085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086   *) ac_try_echo=$ac_try;;
10087 esac
10088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10089 $as_echo "$ac_try_echo") >&5
10090   (eval "$ac_compile") 2>conftest.er1
10091   ac_status=$?
10092   grep -v '^ *+' conftest.er1 >conftest.err
10093   rm -f conftest.er1
10094   cat conftest.err >&5
10095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); } && {
10097          test -z "$ac_c_werror_flag" ||
10098          test ! -s conftest.err
10099        } && test -s conftest.$ac_objext; then
10100   eval "$as_ac_Header=yes"
10101 else
10102   $as_echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10104
10105         eval "$as_ac_Header=no"
10106 fi
10107
10108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10109 fi
10110 ac_res=`eval 'as_val=${'$as_ac_Header'}
10111                  $as_echo "$as_val"'`
10112                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10113 $as_echo "$ac_res" >&6; }
10114 as_val=`eval 'as_val=${'$as_ac_Header'}
10115                  $as_echo "$as_val"'`
10116    if test "x$as_val" = x""yes; then
10117   cat >>confdefs.h <<_ACEOF
10118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10119 _ACEOF
10120
10121 fi
10122
10123 done
10124
10125
10126 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10127 # netinet/in.h is included first.
10128
10129 for ac_header in netinet/in.h
10130 do
10131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10133   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10134 $as_echo_n "checking for $ac_header... " >&6; }
10135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10136   $as_echo_n "(cached) " >&6
10137 fi
10138 ac_res=`eval 'as_val=${'$as_ac_Header'}
10139                  $as_echo "$as_val"'`
10140                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10141 $as_echo "$ac_res" >&6; }
10142 else
10143   # Is the header compilable?
10144 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10145 $as_echo_n "checking $ac_header usability... " >&6; }
10146 cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h.  */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h.  */
10152 $ac_includes_default
10153 #include <$ac_header>
10154 _ACEOF
10155 rm -f conftest.$ac_objext
10156 if { (ac_try="$ac_compile"
10157 case "(($ac_try" in
10158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159   *) ac_try_echo=$ac_try;;
10160 esac
10161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10162 $as_echo "$ac_try_echo") >&5
10163   (eval "$ac_compile") 2>conftest.er1
10164   ac_status=$?
10165   grep -v '^ *+' conftest.er1 >conftest.err
10166   rm -f conftest.er1
10167   cat conftest.err >&5
10168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); } && {
10170          test -z "$ac_c_werror_flag" ||
10171          test ! -s conftest.err
10172        } && test -s conftest.$ac_objext; then
10173   ac_header_compiler=yes
10174 else
10175   $as_echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178         ac_header_compiler=no
10179 fi
10180
10181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10183 $as_echo "$ac_header_compiler" >&6; }
10184
10185 # Is the header present?
10186 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10187 $as_echo_n "checking $ac_header presence... " >&6; }
10188 cat >conftest.$ac_ext <<_ACEOF
10189 /* confdefs.h.  */
10190 _ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h.  */
10194 #include <$ac_header>
10195 _ACEOF
10196 if { (ac_try="$ac_cpp conftest.$ac_ext"
10197 case "(($ac_try" in
10198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199   *) ac_try_echo=$ac_try;;
10200 esac
10201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10202 $as_echo "$ac_try_echo") >&5
10203   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10204   ac_status=$?
10205   grep -v '^ *+' conftest.er1 >conftest.err
10206   rm -f conftest.er1
10207   cat conftest.err >&5
10208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); } >/dev/null && {
10210          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10211          test ! -s conftest.err
10212        }; then
10213   ac_header_preproc=yes
10214 else
10215   $as_echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218   ac_header_preproc=no
10219 fi
10220
10221 rm -f conftest.err conftest.$ac_ext
10222 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10223 $as_echo "$ac_header_preproc" >&6; }
10224
10225 # So?  What about this header?
10226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10227   yes:no: )
10228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10229 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10232     ac_header_preproc=yes
10233     ;;
10234   no:yes:* )
10235     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10236 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10237     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10238 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10239     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10240 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10241     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10242 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10243     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10245     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10246 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10247     ( cat <<\_ASBOX
10248 ## ---------------------------------------- ##
10249 ## Report this to pgsql-bugs@postgresql.org ##
10250 ## ---------------------------------------- ##
10251 _ASBOX
10252      ) | sed "s/^/$as_me: WARNING:     /" >&2
10253     ;;
10254 esac
10255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10256 $as_echo_n "checking for $ac_header... " >&6; }
10257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10258   $as_echo_n "(cached) " >&6
10259 else
10260   eval "$as_ac_Header=\$ac_header_preproc"
10261 fi
10262 ac_res=`eval 'as_val=${'$as_ac_Header'}
10263                  $as_echo "$as_val"'`
10264                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10265 $as_echo "$ac_res" >&6; }
10266
10267 fi
10268 as_val=`eval 'as_val=${'$as_ac_Header'}
10269                  $as_echo "$as_val"'`
10270    if test "x$as_val" = x""yes; then
10271   cat >>confdefs.h <<_ACEOF
10272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10273 _ACEOF
10274
10275 fi
10276
10277 done
10278
10279
10280 for ac_header in netinet/tcp.h
10281 do
10282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10283 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10284 $as_echo_n "checking for $ac_header... " >&6; }
10285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10286   $as_echo_n "(cached) " >&6
10287 else
10288   cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294 $ac_includes_default
10295 #ifdef HAVE_NETINET_IN_H
10296 #include <netinet/in.h>
10297 #endif
10298
10299
10300 #include <$ac_header>
10301 _ACEOF
10302 rm -f conftest.$ac_objext
10303 if { (ac_try="$ac_compile"
10304 case "(($ac_try" in
10305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306   *) ac_try_echo=$ac_try;;
10307 esac
10308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10309 $as_echo "$ac_try_echo") >&5
10310   (eval "$ac_compile") 2>conftest.er1
10311   ac_status=$?
10312   grep -v '^ *+' conftest.er1 >conftest.err
10313   rm -f conftest.er1
10314   cat conftest.err >&5
10315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); } && {
10317          test -z "$ac_c_werror_flag" ||
10318          test ! -s conftest.err
10319        } && test -s conftest.$ac_objext; then
10320   eval "$as_ac_Header=yes"
10321 else
10322   $as_echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325         eval "$as_ac_Header=no"
10326 fi
10327
10328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10329 fi
10330 ac_res=`eval 'as_val=${'$as_ac_Header'}
10331                  $as_echo "$as_val"'`
10332                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10333 $as_echo "$ac_res" >&6; }
10334 as_val=`eval 'as_val=${'$as_ac_Header'}
10335                  $as_echo "$as_val"'`
10336    if test "x$as_val" = x""yes; then
10337   cat >>confdefs.h <<_ACEOF
10338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10339 _ACEOF
10340
10341 fi
10342
10343 done
10344
10345
10346 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10347
10348 for ac_header in readline/readline.h
10349 do
10350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10352   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10353 $as_echo_n "checking for $ac_header... " >&6; }
10354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10355   $as_echo_n "(cached) " >&6
10356 fi
10357 ac_res=`eval 'as_val=${'$as_ac_Header'}
10358                  $as_echo "$as_val"'`
10359                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10360 $as_echo "$ac_res" >&6; }
10361 else
10362   # Is the header compilable?
10363 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10364 $as_echo_n "checking $ac_header usability... " >&6; }
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h.  */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h.  */
10371 $ac_includes_default
10372 #include <$ac_header>
10373 _ACEOF
10374 rm -f conftest.$ac_objext
10375 if { (ac_try="$ac_compile"
10376 case "(($ac_try" in
10377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378   *) ac_try_echo=$ac_try;;
10379 esac
10380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10381 $as_echo "$ac_try_echo") >&5
10382   (eval "$ac_compile") 2>conftest.er1
10383   ac_status=$?
10384   grep -v '^ *+' conftest.er1 >conftest.err
10385   rm -f conftest.er1
10386   cat conftest.err >&5
10387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); } && {
10389          test -z "$ac_c_werror_flag" ||
10390          test ! -s conftest.err
10391        } && test -s conftest.$ac_objext; then
10392   ac_header_compiler=yes
10393 else
10394   $as_echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10396
10397         ac_header_compiler=no
10398 fi
10399
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10402 $as_echo "$ac_header_compiler" >&6; }
10403
10404 # Is the header present?
10405 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10406 $as_echo_n "checking $ac_header presence... " >&6; }
10407 cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413 #include <$ac_header>
10414 _ACEOF
10415 if { (ac_try="$ac_cpp conftest.$ac_ext"
10416 case "(($ac_try" in
10417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418   *) ac_try_echo=$ac_try;;
10419 esac
10420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10421 $as_echo "$ac_try_echo") >&5
10422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10423   ac_status=$?
10424   grep -v '^ *+' conftest.er1 >conftest.err
10425   rm -f conftest.er1
10426   cat conftest.err >&5
10427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); } >/dev/null && {
10429          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10430          test ! -s conftest.err
10431        }; then
10432   ac_header_preproc=yes
10433 else
10434   $as_echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437   ac_header_preproc=no
10438 fi
10439
10440 rm -f conftest.err conftest.$ac_ext
10441 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10442 $as_echo "$ac_header_preproc" >&6; }
10443
10444 # So?  What about this header?
10445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10446   yes:no: )
10447     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10448 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10451     ac_header_preproc=yes
10452     ;;
10453   no:yes:* )
10454     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10455 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10456     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10457 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10458     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10459 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10460     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10461 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10462     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10464     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10465 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10466     ( cat <<\_ASBOX
10467 ## ---------------------------------------- ##
10468 ## Report this to pgsql-bugs@postgresql.org ##
10469 ## ---------------------------------------- ##
10470 _ASBOX
10471      ) | sed "s/^/$as_me: WARNING:     /" >&2
10472     ;;
10473 esac
10474 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10475 $as_echo_n "checking for $ac_header... " >&6; }
10476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10477   $as_echo_n "(cached) " >&6
10478 else
10479   eval "$as_ac_Header=\$ac_header_preproc"
10480 fi
10481 ac_res=`eval 'as_val=${'$as_ac_Header'}
10482                  $as_echo "$as_val"'`
10483                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10484 $as_echo "$ac_res" >&6; }
10485
10486 fi
10487 as_val=`eval 'as_val=${'$as_ac_Header'}
10488                  $as_echo "$as_val"'`
10489    if test "x$as_val" = x""yes; then
10490   cat >>confdefs.h <<_ACEOF
10491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10492 _ACEOF
10493
10494 else
10495
10496 for ac_header in readline.h
10497 do
10498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10500   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10501 $as_echo_n "checking for $ac_header... " >&6; }
10502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10503   $as_echo_n "(cached) " >&6
10504 fi
10505 ac_res=`eval 'as_val=${'$as_ac_Header'}
10506                  $as_echo "$as_val"'`
10507                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10508 $as_echo "$ac_res" >&6; }
10509 else
10510   # Is the header compilable?
10511 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10512 $as_echo_n "checking $ac_header usability... " >&6; }
10513 cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h.  */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h.  */
10519 $ac_includes_default
10520 #include <$ac_header>
10521 _ACEOF
10522 rm -f conftest.$ac_objext
10523 if { (ac_try="$ac_compile"
10524 case "(($ac_try" in
10525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526   *) ac_try_echo=$ac_try;;
10527 esac
10528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10529 $as_echo "$ac_try_echo") >&5
10530   (eval "$ac_compile") 2>conftest.er1
10531   ac_status=$?
10532   grep -v '^ *+' conftest.er1 >conftest.err
10533   rm -f conftest.er1
10534   cat conftest.err >&5
10535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } && {
10537          test -z "$ac_c_werror_flag" ||
10538          test ! -s conftest.err
10539        } && test -s conftest.$ac_objext; then
10540   ac_header_compiler=yes
10541 else
10542   $as_echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10544
10545         ac_header_compiler=no
10546 fi
10547
10548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10550 $as_echo "$ac_header_compiler" >&6; }
10551
10552 # Is the header present?
10553 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10554 $as_echo_n "checking $ac_header presence... " >&6; }
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h.  */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h.  */
10561 #include <$ac_header>
10562 _ACEOF
10563 if { (ac_try="$ac_cpp conftest.$ac_ext"
10564 case "(($ac_try" in
10565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566   *) ac_try_echo=$ac_try;;
10567 esac
10568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10569 $as_echo "$ac_try_echo") >&5
10570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10571   ac_status=$?
10572   grep -v '^ *+' conftest.er1 >conftest.err
10573   rm -f conftest.er1
10574   cat conftest.err >&5
10575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); } >/dev/null && {
10577          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10578          test ! -s conftest.err
10579        }; then
10580   ac_header_preproc=yes
10581 else
10582   $as_echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585   ac_header_preproc=no
10586 fi
10587
10588 rm -f conftest.err conftest.$ac_ext
10589 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10590 $as_echo "$ac_header_preproc" >&6; }
10591
10592 # So?  What about this header?
10593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10594   yes:no: )
10595     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10596 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10597     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10599     ac_header_preproc=yes
10600     ;;
10601   no:yes:* )
10602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10603 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10605 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10607 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10609 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10613 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10614     ( cat <<\_ASBOX
10615 ## ---------------------------------------- ##
10616 ## Report this to pgsql-bugs@postgresql.org ##
10617 ## ---------------------------------------- ##
10618 _ASBOX
10619      ) | sed "s/^/$as_me: WARNING:     /" >&2
10620     ;;
10621 esac
10622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10623 $as_echo_n "checking for $ac_header... " >&6; }
10624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10625   $as_echo_n "(cached) " >&6
10626 else
10627   eval "$as_ac_Header=\$ac_header_preproc"
10628 fi
10629 ac_res=`eval 'as_val=${'$as_ac_Header'}
10630                  $as_echo "$as_val"'`
10631                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10632 $as_echo "$ac_res" >&6; }
10633
10634 fi
10635 as_val=`eval 'as_val=${'$as_ac_Header'}
10636                  $as_echo "$as_val"'`
10637    if test "x$as_val" = x""yes; then
10638   cat >>confdefs.h <<_ACEOF
10639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10640 _ACEOF
10641
10642 else
10643   { { $as_echo "$as_me:$LINENO: error: readline header not found
10644 If you have readline already installed, see config.log for details on the
10645 failure.  It is possible the compiler isn't looking in the proper directory.
10646 Use --without-readline to disable readline support." >&5
10647 $as_echo "$as_me: error: readline header not found
10648 If you have readline already installed, see config.log for details on the
10649 failure.  It is possible the compiler isn't looking in the proper directory.
10650 Use --without-readline to disable readline support." >&2;}
10651    { (exit 1); exit 1; }; }
10652 fi
10653
10654 done
10655
10656 fi
10657
10658 done
10659
10660
10661 for ac_header in readline/history.h
10662 do
10663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10665   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10666 $as_echo_n "checking for $ac_header... " >&6; }
10667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10668   $as_echo_n "(cached) " >&6
10669 fi
10670 ac_res=`eval 'as_val=${'$as_ac_Header'}
10671                  $as_echo "$as_val"'`
10672                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10673 $as_echo "$ac_res" >&6; }
10674 else
10675   # Is the header compilable?
10676 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10677 $as_echo_n "checking $ac_header usability... " >&6; }
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h.  */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h.  */
10684 $ac_includes_default
10685 #include <$ac_header>
10686 _ACEOF
10687 rm -f conftest.$ac_objext
10688 if { (ac_try="$ac_compile"
10689 case "(($ac_try" in
10690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691   *) ac_try_echo=$ac_try;;
10692 esac
10693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10694 $as_echo "$ac_try_echo") >&5
10695   (eval "$ac_compile") 2>conftest.er1
10696   ac_status=$?
10697   grep -v '^ *+' conftest.er1 >conftest.err
10698   rm -f conftest.er1
10699   cat conftest.err >&5
10700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); } && {
10702          test -z "$ac_c_werror_flag" ||
10703          test ! -s conftest.err
10704        } && test -s conftest.$ac_objext; then
10705   ac_header_compiler=yes
10706 else
10707   $as_echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10709
10710         ac_header_compiler=no
10711 fi
10712
10713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10714 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10715 $as_echo "$ac_header_compiler" >&6; }
10716
10717 # Is the header present?
10718 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10719 $as_echo_n "checking $ac_header presence... " >&6; }
10720 cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h.  */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h.  */
10726 #include <$ac_header>
10727 _ACEOF
10728 if { (ac_try="$ac_cpp conftest.$ac_ext"
10729 case "(($ac_try" in
10730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731   *) ac_try_echo=$ac_try;;
10732 esac
10733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10734 $as_echo "$ac_try_echo") >&5
10735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10736   ac_status=$?
10737   grep -v '^ *+' conftest.er1 >conftest.err
10738   rm -f conftest.er1
10739   cat conftest.err >&5
10740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); } >/dev/null && {
10742          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10743          test ! -s conftest.err
10744        }; then
10745   ac_header_preproc=yes
10746 else
10747   $as_echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10749
10750   ac_header_preproc=no
10751 fi
10752
10753 rm -f conftest.err conftest.$ac_ext
10754 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10755 $as_echo "$ac_header_preproc" >&6; }
10756
10757 # So?  What about this header?
10758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10759   yes:no: )
10760     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10761 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10762     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10763 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10764     ac_header_preproc=yes
10765     ;;
10766   no:yes:* )
10767     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10768 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10769     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10770 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10771     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10772 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10773     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10774 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10775     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10776 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10777     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10778 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10779     ( cat <<\_ASBOX
10780 ## ---------------------------------------- ##
10781 ## Report this to pgsql-bugs@postgresql.org ##
10782 ## ---------------------------------------- ##
10783 _ASBOX
10784      ) | sed "s/^/$as_me: WARNING:     /" >&2
10785     ;;
10786 esac
10787 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10788 $as_echo_n "checking for $ac_header... " >&6; }
10789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10790   $as_echo_n "(cached) " >&6
10791 else
10792   eval "$as_ac_Header=\$ac_header_preproc"
10793 fi
10794 ac_res=`eval 'as_val=${'$as_ac_Header'}
10795                  $as_echo "$as_val"'`
10796                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10797 $as_echo "$ac_res" >&6; }
10798
10799 fi
10800 as_val=`eval 'as_val=${'$as_ac_Header'}
10801                  $as_echo "$as_val"'`
10802    if test "x$as_val" = x""yes; then
10803   cat >>confdefs.h <<_ACEOF
10804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10805 _ACEOF
10806
10807 else
10808
10809 for ac_header in history.h
10810 do
10811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10813   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10814 $as_echo_n "checking for $ac_header... " >&6; }
10815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10816   $as_echo_n "(cached) " >&6
10817 fi
10818 ac_res=`eval 'as_val=${'$as_ac_Header'}
10819                  $as_echo "$as_val"'`
10820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10821 $as_echo "$ac_res" >&6; }
10822 else
10823   # Is the header compilable?
10824 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10825 $as_echo_n "checking $ac_header usability... " >&6; }
10826 cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832 $ac_includes_default
10833 #include <$ac_header>
10834 _ACEOF
10835 rm -f conftest.$ac_objext
10836 if { (ac_try="$ac_compile"
10837 case "(($ac_try" in
10838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839   *) ac_try_echo=$ac_try;;
10840 esac
10841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10842 $as_echo "$ac_try_echo") >&5
10843   (eval "$ac_compile") 2>conftest.er1
10844   ac_status=$?
10845   grep -v '^ *+' conftest.er1 >conftest.err
10846   rm -f conftest.er1
10847   cat conftest.err >&5
10848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); } && {
10850          test -z "$ac_c_werror_flag" ||
10851          test ! -s conftest.err
10852        } && test -s conftest.$ac_objext; then
10853   ac_header_compiler=yes
10854 else
10855   $as_echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10857
10858         ac_header_compiler=no
10859 fi
10860
10861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10862 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10863 $as_echo "$ac_header_compiler" >&6; }
10864
10865 # Is the header present?
10866 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10867 $as_echo_n "checking $ac_header presence... " >&6; }
10868 cat >conftest.$ac_ext <<_ACEOF
10869 /* confdefs.h.  */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h.  */
10874 #include <$ac_header>
10875 _ACEOF
10876 if { (ac_try="$ac_cpp conftest.$ac_ext"
10877 case "(($ac_try" in
10878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879   *) ac_try_echo=$ac_try;;
10880 esac
10881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10882 $as_echo "$ac_try_echo") >&5
10883   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10884   ac_status=$?
10885   grep -v '^ *+' conftest.er1 >conftest.err
10886   rm -f conftest.er1
10887   cat conftest.err >&5
10888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); } >/dev/null && {
10890          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10891          test ! -s conftest.err
10892        }; then
10893   ac_header_preproc=yes
10894 else
10895   $as_echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10897
10898   ac_header_preproc=no
10899 fi
10900
10901 rm -f conftest.err conftest.$ac_ext
10902 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10903 $as_echo "$ac_header_preproc" >&6; }
10904
10905 # So?  What about this header?
10906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10907   yes:no: )
10908     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10909 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10910     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10911 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10912     ac_header_preproc=yes
10913     ;;
10914   no:yes:* )
10915     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10916 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10917     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10918 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10919     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10920 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10921     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10922 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10924 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10926 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10927     ( cat <<\_ASBOX
10928 ## ---------------------------------------- ##
10929 ## Report this to pgsql-bugs@postgresql.org ##
10930 ## ---------------------------------------- ##
10931 _ASBOX
10932      ) | sed "s/^/$as_me: WARNING:     /" >&2
10933     ;;
10934 esac
10935 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10936 $as_echo_n "checking for $ac_header... " >&6; }
10937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10938   $as_echo_n "(cached) " >&6
10939 else
10940   eval "$as_ac_Header=\$ac_header_preproc"
10941 fi
10942 ac_res=`eval 'as_val=${'$as_ac_Header'}
10943                  $as_echo "$as_val"'`
10944                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10945 $as_echo "$ac_res" >&6; }
10946
10947 fi
10948 as_val=`eval 'as_val=${'$as_ac_Header'}
10949                  $as_echo "$as_val"'`
10950    if test "x$as_val" = x""yes; then
10951   cat >>confdefs.h <<_ACEOF
10952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10953 _ACEOF
10954
10955 else
10956   { { $as_echo "$as_me:$LINENO: error: history header not found
10957 If you have readline already installed, see config.log for details on the
10958 failure.  It is possible the compiler isn't looking in the proper directory.
10959 Use --without-readline to disable readline support." >&5
10960 $as_echo "$as_me: error: history header not found
10961 If you have readline already installed, see config.log for details on the
10962 failure.  It is possible the compiler isn't looking in the proper directory.
10963 Use --without-readline to disable readline support." >&2;}
10964    { (exit 1); exit 1; }; }
10965 fi
10966
10967 done
10968
10969 fi
10970
10971 done
10972
10973 fi
10974
10975 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10976 # Some installations of libedit usurp /usr/include/readline/, which seems
10977 # bad practice, since in combined installations readline will have its headers
10978 # there.  We might have to resort to AC_EGREP checks to make sure we found
10979 # the proper header...
10980
10981 for ac_header in editline/readline.h
10982 do
10983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10985   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10986 $as_echo_n "checking for $ac_header... " >&6; }
10987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10988   $as_echo_n "(cached) " >&6
10989 fi
10990 ac_res=`eval 'as_val=${'$as_ac_Header'}
10991                  $as_echo "$as_val"'`
10992                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10993 $as_echo "$ac_res" >&6; }
10994 else
10995   # Is the header compilable?
10996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10997 $as_echo_n "checking $ac_header usability... " >&6; }
10998 cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h.  */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h.  */
11004 $ac_includes_default
11005 #include <$ac_header>
11006 _ACEOF
11007 rm -f conftest.$ac_objext
11008 if { (ac_try="$ac_compile"
11009 case "(($ac_try" in
11010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011   *) ac_try_echo=$ac_try;;
11012 esac
11013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11014 $as_echo "$ac_try_echo") >&5
11015   (eval "$ac_compile") 2>conftest.er1
11016   ac_status=$?
11017   grep -v '^ *+' conftest.er1 >conftest.err
11018   rm -f conftest.er1
11019   cat conftest.err >&5
11020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); } && {
11022          test -z "$ac_c_werror_flag" ||
11023          test ! -s conftest.err
11024        } && test -s conftest.$ac_objext; then
11025   ac_header_compiler=yes
11026 else
11027   $as_echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030         ac_header_compiler=no
11031 fi
11032
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11035 $as_echo "$ac_header_compiler" >&6; }
11036
11037 # Is the header present?
11038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11039 $as_echo_n "checking $ac_header presence... " >&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 #include <$ac_header>
11047 _ACEOF
11048 if { (ac_try="$ac_cpp conftest.$ac_ext"
11049 case "(($ac_try" in
11050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051   *) ac_try_echo=$ac_try;;
11052 esac
11053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11054 $as_echo "$ac_try_echo") >&5
11055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11056   ac_status=$?
11057   grep -v '^ *+' conftest.er1 >conftest.err
11058   rm -f conftest.er1
11059   cat conftest.err >&5
11060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); } >/dev/null && {
11062          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11063          test ! -s conftest.err
11064        }; then
11065   ac_header_preproc=yes
11066 else
11067   $as_echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070   ac_header_preproc=no
11071 fi
11072
11073 rm -f conftest.err conftest.$ac_ext
11074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11075 $as_echo "$ac_header_preproc" >&6; }
11076
11077 # So?  What about this header?
11078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11079   yes:no: )
11080     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11082     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11084     ac_header_preproc=yes
11085     ;;
11086   no:yes:* )
11087     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11089     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11090 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11091     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11093     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11094 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11097     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11099     ( cat <<\_ASBOX
11100 ## ---------------------------------------- ##
11101 ## Report this to pgsql-bugs@postgresql.org ##
11102 ## ---------------------------------------- ##
11103 _ASBOX
11104      ) | sed "s/^/$as_me: WARNING:     /" >&2
11105     ;;
11106 esac
11107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11108 $as_echo_n "checking for $ac_header... " >&6; }
11109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11110   $as_echo_n "(cached) " >&6
11111 else
11112   eval "$as_ac_Header=\$ac_header_preproc"
11113 fi
11114 ac_res=`eval 'as_val=${'$as_ac_Header'}
11115                  $as_echo "$as_val"'`
11116                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11117 $as_echo "$ac_res" >&6; }
11118
11119 fi
11120 as_val=`eval 'as_val=${'$as_ac_Header'}
11121                  $as_echo "$as_val"'`
11122    if test "x$as_val" = x""yes; then
11123   cat >>confdefs.h <<_ACEOF
11124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11125 _ACEOF
11126
11127 else
11128
11129 for ac_header in readline.h
11130 do
11131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11133   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11134 $as_echo_n "checking for $ac_header... " >&6; }
11135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136   $as_echo_n "(cached) " >&6
11137 fi
11138 ac_res=`eval 'as_val=${'$as_ac_Header'}
11139                  $as_echo "$as_val"'`
11140                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11141 $as_echo "$ac_res" >&6; }
11142 else
11143   # Is the header compilable?
11144 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11145 $as_echo_n "checking $ac_header usability... " >&6; }
11146 cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h.  */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h.  */
11152 $ac_includes_default
11153 #include <$ac_header>
11154 _ACEOF
11155 rm -f conftest.$ac_objext
11156 if { (ac_try="$ac_compile"
11157 case "(($ac_try" in
11158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159   *) ac_try_echo=$ac_try;;
11160 esac
11161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11162 $as_echo "$ac_try_echo") >&5
11163   (eval "$ac_compile") 2>conftest.er1
11164   ac_status=$?
11165   grep -v '^ *+' conftest.er1 >conftest.err
11166   rm -f conftest.er1
11167   cat conftest.err >&5
11168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); } && {
11170          test -z "$ac_c_werror_flag" ||
11171          test ! -s conftest.err
11172        } && test -s conftest.$ac_objext; then
11173   ac_header_compiler=yes
11174 else
11175   $as_echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11177
11178         ac_header_compiler=no
11179 fi
11180
11181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11182 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11183 $as_echo "$ac_header_compiler" >&6; }
11184
11185 # Is the header present?
11186 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11187 $as_echo_n "checking $ac_header presence... " >&6; }
11188 cat >conftest.$ac_ext <<_ACEOF
11189 /* confdefs.h.  */
11190 _ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h.  */
11194 #include <$ac_header>
11195 _ACEOF
11196 if { (ac_try="$ac_cpp conftest.$ac_ext"
11197 case "(($ac_try" in
11198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199   *) ac_try_echo=$ac_try;;
11200 esac
11201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11202 $as_echo "$ac_try_echo") >&5
11203   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11204   ac_status=$?
11205   grep -v '^ *+' conftest.er1 >conftest.err
11206   rm -f conftest.er1
11207   cat conftest.err >&5
11208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); } >/dev/null && {
11210          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11211          test ! -s conftest.err
11212        }; then
11213   ac_header_preproc=yes
11214 else
11215   $as_echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11217
11218   ac_header_preproc=no
11219 fi
11220
11221 rm -f conftest.err conftest.$ac_ext
11222 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11223 $as_echo "$ac_header_preproc" >&6; }
11224
11225 # So?  What about this header?
11226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11227   yes:no: )
11228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11229 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11232     ac_header_preproc=yes
11233     ;;
11234   no:yes:* )
11235     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11236 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11237     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11238 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11239     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11240 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11241     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11242 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11243     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11245     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11246 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11247     ( cat <<\_ASBOX
11248 ## ---------------------------------------- ##
11249 ## Report this to pgsql-bugs@postgresql.org ##
11250 ## ---------------------------------------- ##
11251 _ASBOX
11252      ) | sed "s/^/$as_me: WARNING:     /" >&2
11253     ;;
11254 esac
11255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11256 $as_echo_n "checking for $ac_header... " >&6; }
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258   $as_echo_n "(cached) " >&6
11259 else
11260   eval "$as_ac_Header=\$ac_header_preproc"
11261 fi
11262 ac_res=`eval 'as_val=${'$as_ac_Header'}
11263                  $as_echo "$as_val"'`
11264                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11265 $as_echo "$ac_res" >&6; }
11266
11267 fi
11268 as_val=`eval 'as_val=${'$as_ac_Header'}
11269                  $as_echo "$as_val"'`
11270    if test "x$as_val" = x""yes; then
11271   cat >>confdefs.h <<_ACEOF
11272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11273 _ACEOF
11274
11275 else
11276
11277 for ac_header in readline/readline.h
11278 do
11279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11282 $as_echo_n "checking for $ac_header... " >&6; }
11283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11284   $as_echo_n "(cached) " >&6
11285 fi
11286 ac_res=`eval 'as_val=${'$as_ac_Header'}
11287                  $as_echo "$as_val"'`
11288                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11289 $as_echo "$ac_res" >&6; }
11290 else
11291   # Is the header compilable?
11292 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11293 $as_echo_n "checking $ac_header usability... " >&6; }
11294 cat >conftest.$ac_ext <<_ACEOF
11295 /* confdefs.h.  */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h.  */
11300 $ac_includes_default
11301 #include <$ac_header>
11302 _ACEOF
11303 rm -f conftest.$ac_objext
11304 if { (ac_try="$ac_compile"
11305 case "(($ac_try" in
11306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307   *) ac_try_echo=$ac_try;;
11308 esac
11309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11310 $as_echo "$ac_try_echo") >&5
11311   (eval "$ac_compile") 2>conftest.er1
11312   ac_status=$?
11313   grep -v '^ *+' conftest.er1 >conftest.err
11314   rm -f conftest.er1
11315   cat conftest.err >&5
11316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); } && {
11318          test -z "$ac_c_werror_flag" ||
11319          test ! -s conftest.err
11320        } && test -s conftest.$ac_objext; then
11321   ac_header_compiler=yes
11322 else
11323   $as_echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326         ac_header_compiler=no
11327 fi
11328
11329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11331 $as_echo "$ac_header_compiler" >&6; }
11332
11333 # Is the header present?
11334 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11335 $as_echo_n "checking $ac_header presence... " >&6; }
11336 cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h.  */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h.  */
11342 #include <$ac_header>
11343 _ACEOF
11344 if { (ac_try="$ac_cpp conftest.$ac_ext"
11345 case "(($ac_try" in
11346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347   *) ac_try_echo=$ac_try;;
11348 esac
11349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11350 $as_echo "$ac_try_echo") >&5
11351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11352   ac_status=$?
11353   grep -v '^ *+' conftest.er1 >conftest.err
11354   rm -f conftest.er1
11355   cat conftest.err >&5
11356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); } >/dev/null && {
11358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11359          test ! -s conftest.err
11360        }; then
11361   ac_header_preproc=yes
11362 else
11363   $as_echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11365
11366   ac_header_preproc=no
11367 fi
11368
11369 rm -f conftest.err conftest.$ac_ext
11370 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11371 $as_echo "$ac_header_preproc" >&6; }
11372
11373 # So?  What about this header?
11374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11375   yes:no: )
11376     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11377 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11378     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11379 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11380     ac_header_preproc=yes
11381     ;;
11382   no:yes:* )
11383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11384 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11386 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11387     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11388 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11389     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11390 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11391     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11392 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11393     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11394 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11395     ( cat <<\_ASBOX
11396 ## ---------------------------------------- ##
11397 ## Report this to pgsql-bugs@postgresql.org ##
11398 ## ---------------------------------------- ##
11399 _ASBOX
11400      ) | sed "s/^/$as_me: WARNING:     /" >&2
11401     ;;
11402 esac
11403 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11404 $as_echo_n "checking for $ac_header... " >&6; }
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406   $as_echo_n "(cached) " >&6
11407 else
11408   eval "$as_ac_Header=\$ac_header_preproc"
11409 fi
11410 ac_res=`eval 'as_val=${'$as_ac_Header'}
11411                  $as_echo "$as_val"'`
11412                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11413 $as_echo "$ac_res" >&6; }
11414
11415 fi
11416 as_val=`eval 'as_val=${'$as_ac_Header'}
11417                  $as_echo "$as_val"'`
11418    if test "x$as_val" = x""yes; then
11419   cat >>confdefs.h <<_ACEOF
11420 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11421 _ACEOF
11422
11423 else
11424   { { $as_echo "$as_me:$LINENO: error: readline header not found
11425 If you have libedit already installed, see config.log for details on the
11426 failure.  It is possible the compiler isn't looking in the proper directory.
11427 Use --without-readline to disable libedit support." >&5
11428 $as_echo "$as_me: error: readline header not found
11429 If you have libedit already installed, see config.log for details on the
11430 failure.  It is possible the compiler isn't looking in the proper directory.
11431 Use --without-readline to disable libedit support." >&2;}
11432    { (exit 1); exit 1; }; }
11433 fi
11434
11435 done
11436
11437 fi
11438
11439 done
11440
11441 fi
11442
11443 done
11444
11445 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11446 # not be there at all.  Hence, don't complain if not found.  We must check
11447 # though, since in yet other versions it is an independent header.
11448
11449 for ac_header in editline/history.h
11450 do
11451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11453   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11454 $as_echo_n "checking for $ac_header... " >&6; }
11455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11456   $as_echo_n "(cached) " >&6
11457 fi
11458 ac_res=`eval 'as_val=${'$as_ac_Header'}
11459                  $as_echo "$as_val"'`
11460                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11461 $as_echo "$ac_res" >&6; }
11462 else
11463   # Is the header compilable?
11464 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11465 $as_echo_n "checking $ac_header usability... " >&6; }
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h.  */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h.  */
11472 $ac_includes_default
11473 #include <$ac_header>
11474 _ACEOF
11475 rm -f conftest.$ac_objext
11476 if { (ac_try="$ac_compile"
11477 case "(($ac_try" in
11478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479   *) ac_try_echo=$ac_try;;
11480 esac
11481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11482 $as_echo "$ac_try_echo") >&5
11483   (eval "$ac_compile") 2>conftest.er1
11484   ac_status=$?
11485   grep -v '^ *+' conftest.er1 >conftest.err
11486   rm -f conftest.er1
11487   cat conftest.err >&5
11488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); } && {
11490          test -z "$ac_c_werror_flag" ||
11491          test ! -s conftest.err
11492        } && test -s conftest.$ac_objext; then
11493   ac_header_compiler=yes
11494 else
11495   $as_echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11497
11498         ac_header_compiler=no
11499 fi
11500
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503 $as_echo "$ac_header_compiler" >&6; }
11504
11505 # Is the header present?
11506 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507 $as_echo_n "checking $ac_header presence... " >&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 #include <$ac_header>
11515 _ACEOF
11516 if { (ac_try="$ac_cpp conftest.$ac_ext"
11517 case "(($ac_try" in
11518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519   *) ac_try_echo=$ac_try;;
11520 esac
11521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11522 $as_echo "$ac_try_echo") >&5
11523   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11524   ac_status=$?
11525   grep -v '^ *+' conftest.er1 >conftest.err
11526   rm -f conftest.er1
11527   cat conftest.err >&5
11528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } >/dev/null && {
11530          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11531          test ! -s conftest.err
11532        }; then
11533   ac_header_preproc=yes
11534 else
11535   $as_echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538   ac_header_preproc=no
11539 fi
11540
11541 rm -f conftest.err conftest.$ac_ext
11542 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11543 $as_echo "$ac_header_preproc" >&6; }
11544
11545 # So?  What about this header?
11546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11547   yes:no: )
11548     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11549 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11550     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11551 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11552     ac_header_preproc=yes
11553     ;;
11554   no:yes:* )
11555     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11556 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11557     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11558 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11559     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11560 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11561     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11562 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11563     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11564 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11565     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11566 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11567     ( cat <<\_ASBOX
11568 ## ---------------------------------------- ##
11569 ## Report this to pgsql-bugs@postgresql.org ##
11570 ## ---------------------------------------- ##
11571 _ASBOX
11572      ) | sed "s/^/$as_me: WARNING:     /" >&2
11573     ;;
11574 esac
11575 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11576 $as_echo_n "checking for $ac_header... " >&6; }
11577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11578   $as_echo_n "(cached) " >&6
11579 else
11580   eval "$as_ac_Header=\$ac_header_preproc"
11581 fi
11582 ac_res=`eval 'as_val=${'$as_ac_Header'}
11583                  $as_echo "$as_val"'`
11584                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11585 $as_echo "$ac_res" >&6; }
11586
11587 fi
11588 as_val=`eval 'as_val=${'$as_ac_Header'}
11589                  $as_echo "$as_val"'`
11590    if test "x$as_val" = x""yes; then
11591   cat >>confdefs.h <<_ACEOF
11592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11593 _ACEOF
11594
11595 else
11596
11597 for ac_header in history.h
11598 do
11599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11601   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11602 $as_echo_n "checking for $ac_header... " >&6; }
11603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11604   $as_echo_n "(cached) " >&6
11605 fi
11606 ac_res=`eval 'as_val=${'$as_ac_Header'}
11607                  $as_echo "$as_val"'`
11608                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11609 $as_echo "$ac_res" >&6; }
11610 else
11611   # Is the header compilable?
11612 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11613 $as_echo_n "checking $ac_header usability... " >&6; }
11614 cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h.  */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h.  */
11620 $ac_includes_default
11621 #include <$ac_header>
11622 _ACEOF
11623 rm -f conftest.$ac_objext
11624 if { (ac_try="$ac_compile"
11625 case "(($ac_try" in
11626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627   *) ac_try_echo=$ac_try;;
11628 esac
11629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11630 $as_echo "$ac_try_echo") >&5
11631   (eval "$ac_compile") 2>conftest.er1
11632   ac_status=$?
11633   grep -v '^ *+' conftest.er1 >conftest.err
11634   rm -f conftest.er1
11635   cat conftest.err >&5
11636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); } && {
11638          test -z "$ac_c_werror_flag" ||
11639          test ! -s conftest.err
11640        } && test -s conftest.$ac_objext; then
11641   ac_header_compiler=yes
11642 else
11643   $as_echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11645
11646         ac_header_compiler=no
11647 fi
11648
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11651 $as_echo "$ac_header_compiler" >&6; }
11652
11653 # Is the header present?
11654 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11655 $as_echo_n "checking $ac_header presence... " >&6; }
11656 cat >conftest.$ac_ext <<_ACEOF
11657 /* confdefs.h.  */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h.  */
11662 #include <$ac_header>
11663 _ACEOF
11664 if { (ac_try="$ac_cpp conftest.$ac_ext"
11665 case "(($ac_try" in
11666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667   *) ac_try_echo=$ac_try;;
11668 esac
11669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11670 $as_echo "$ac_try_echo") >&5
11671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11672   ac_status=$?
11673   grep -v '^ *+' conftest.er1 >conftest.err
11674   rm -f conftest.er1
11675   cat conftest.err >&5
11676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); } >/dev/null && {
11678          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11679          test ! -s conftest.err
11680        }; then
11681   ac_header_preproc=yes
11682 else
11683   $as_echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11685
11686   ac_header_preproc=no
11687 fi
11688
11689 rm -f conftest.err conftest.$ac_ext
11690 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11691 $as_echo "$ac_header_preproc" >&6; }
11692
11693 # So?  What about this header?
11694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11695   yes:no: )
11696     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11697 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11698     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11700     ac_header_preproc=yes
11701     ;;
11702   no:yes:* )
11703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11704 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11705     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11706 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11707     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11708 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11709     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11710 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11711     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11712 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11713     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11714 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11715     ( cat <<\_ASBOX
11716 ## ---------------------------------------- ##
11717 ## Report this to pgsql-bugs@postgresql.org ##
11718 ## ---------------------------------------- ##
11719 _ASBOX
11720      ) | sed "s/^/$as_me: WARNING:     /" >&2
11721     ;;
11722 esac
11723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11724 $as_echo_n "checking for $ac_header... " >&6; }
11725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11726   $as_echo_n "(cached) " >&6
11727 else
11728   eval "$as_ac_Header=\$ac_header_preproc"
11729 fi
11730 ac_res=`eval 'as_val=${'$as_ac_Header'}
11731                  $as_echo "$as_val"'`
11732                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11733 $as_echo "$ac_res" >&6; }
11734
11735 fi
11736 as_val=`eval 'as_val=${'$as_ac_Header'}
11737                  $as_echo "$as_val"'`
11738    if test "x$as_val" = x""yes; then
11739   cat >>confdefs.h <<_ACEOF
11740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11741 _ACEOF
11742
11743 else
11744
11745 for ac_header in readline/history.h
11746 do
11747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 $as_echo_n "checking for $ac_header... " >&6; }
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752   $as_echo_n "(cached) " >&6
11753 fi
11754 ac_res=`eval 'as_val=${'$as_ac_Header'}
11755                  $as_echo "$as_val"'`
11756                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11757 $as_echo "$ac_res" >&6; }
11758 else
11759   # Is the header compilable?
11760 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11761 $as_echo_n "checking $ac_header usability... " >&6; }
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h.  */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h.  */
11768 $ac_includes_default
11769 #include <$ac_header>
11770 _ACEOF
11771 rm -f conftest.$ac_objext
11772 if { (ac_try="$ac_compile"
11773 case "(($ac_try" in
11774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775   *) ac_try_echo=$ac_try;;
11776 esac
11777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11778 $as_echo "$ac_try_echo") >&5
11779   (eval "$ac_compile") 2>conftest.er1
11780   ac_status=$?
11781   grep -v '^ *+' conftest.er1 >conftest.err
11782   rm -f conftest.er1
11783   cat conftest.err >&5
11784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); } && {
11786          test -z "$ac_c_werror_flag" ||
11787          test ! -s conftest.err
11788        } && test -s conftest.$ac_objext; then
11789   ac_header_compiler=yes
11790 else
11791   $as_echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11793
11794         ac_header_compiler=no
11795 fi
11796
11797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11799 $as_echo "$ac_header_compiler" >&6; }
11800
11801 # Is the header present?
11802 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11803 $as_echo_n "checking $ac_header presence... " >&6; }
11804 cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 #include <$ac_header>
11811 _ACEOF
11812 if { (ac_try="$ac_cpp conftest.$ac_ext"
11813 case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11818 $as_echo "$ac_try_echo") >&5
11819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11820   ac_status=$?
11821   grep -v '^ *+' conftest.er1 >conftest.err
11822   rm -f conftest.er1
11823   cat conftest.err >&5
11824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); } >/dev/null && {
11826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11827          test ! -s conftest.err
11828        }; then
11829   ac_header_preproc=yes
11830 else
11831   $as_echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834   ac_header_preproc=no
11835 fi
11836
11837 rm -f conftest.err conftest.$ac_ext
11838 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11839 $as_echo "$ac_header_preproc" >&6; }
11840
11841 # So?  What about this header?
11842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11843   yes:no: )
11844     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11845 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11846     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11847 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11848     ac_header_preproc=yes
11849     ;;
11850   no:yes:* )
11851     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11852 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11853     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11854 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11855     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11856 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11857     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11858 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11859     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11861     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11862 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11863     ( cat <<\_ASBOX
11864 ## ---------------------------------------- ##
11865 ## Report this to pgsql-bugs@postgresql.org ##
11866 ## ---------------------------------------- ##
11867 _ASBOX
11868      ) | sed "s/^/$as_me: WARNING:     /" >&2
11869     ;;
11870 esac
11871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11872 $as_echo_n "checking for $ac_header... " >&6; }
11873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11874   $as_echo_n "(cached) " >&6
11875 else
11876   eval "$as_ac_Header=\$ac_header_preproc"
11877 fi
11878 ac_res=`eval 'as_val=${'$as_ac_Header'}
11879                  $as_echo "$as_val"'`
11880                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11881 $as_echo "$ac_res" >&6; }
11882
11883 fi
11884 as_val=`eval 'as_val=${'$as_ac_Header'}
11885                  $as_echo "$as_val"'`
11886    if test "x$as_val" = x""yes; then
11887   cat >>confdefs.h <<_ACEOF
11888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11889 _ACEOF
11890
11891 fi
11892
11893 done
11894
11895 fi
11896
11897 done
11898
11899 fi
11900
11901 done
11902
11903 fi
11904
11905 if test "$with_zlib" = yes; then
11906   if test "${ac_cv_header_zlib_h+set}" = set; then
11907   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11908 $as_echo_n "checking for zlib.h... " >&6; }
11909 if test "${ac_cv_header_zlib_h+set}" = set; then
11910   $as_echo_n "(cached) " >&6
11911 fi
11912 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11913 $as_echo "$ac_cv_header_zlib_h" >&6; }
11914 else
11915   # Is the header compilable?
11916 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11917 $as_echo_n "checking zlib.h usability... " >&6; }
11918 cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h.  */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h.  */
11924 $ac_includes_default
11925 #include <zlib.h>
11926 _ACEOF
11927 rm -f conftest.$ac_objext
11928 if { (ac_try="$ac_compile"
11929 case "(($ac_try" in
11930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931   *) ac_try_echo=$ac_try;;
11932 esac
11933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11934 $as_echo "$ac_try_echo") >&5
11935   (eval "$ac_compile") 2>conftest.er1
11936   ac_status=$?
11937   grep -v '^ *+' conftest.er1 >conftest.err
11938   rm -f conftest.er1
11939   cat conftest.err >&5
11940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); } && {
11942          test -z "$ac_c_werror_flag" ||
11943          test ! -s conftest.err
11944        } && test -s conftest.$ac_objext; then
11945   ac_header_compiler=yes
11946 else
11947   $as_echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11949
11950         ac_header_compiler=no
11951 fi
11952
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11955 $as_echo "$ac_header_compiler" >&6; }
11956
11957 # Is the header present?
11958 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11959 $as_echo_n "checking zlib.h presence... " >&6; }
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h.  */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h.  */
11966 #include <zlib.h>
11967 _ACEOF
11968 if { (ac_try="$ac_cpp conftest.$ac_ext"
11969 case "(($ac_try" in
11970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971   *) ac_try_echo=$ac_try;;
11972 esac
11973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11974 $as_echo "$ac_try_echo") >&5
11975   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11976   ac_status=$?
11977   grep -v '^ *+' conftest.er1 >conftest.err
11978   rm -f conftest.er1
11979   cat conftest.err >&5
11980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); } >/dev/null && {
11982          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11983          test ! -s conftest.err
11984        }; then
11985   ac_header_preproc=yes
11986 else
11987   $as_echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11989
11990   ac_header_preproc=no
11991 fi
11992
11993 rm -f conftest.err conftest.$ac_ext
11994 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11995 $as_echo "$ac_header_preproc" >&6; }
11996
11997 # So?  What about this header?
11998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11999   yes:no: )
12000     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12001 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12002     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12003 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12004     ac_header_preproc=yes
12005     ;;
12006   no:yes:* )
12007     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12008 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12009     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12010 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12011     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12012 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12013     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12014 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12015     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12016 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12017     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12018 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12019     ( cat <<\_ASBOX
12020 ## ---------------------------------------- ##
12021 ## Report this to pgsql-bugs@postgresql.org ##
12022 ## ---------------------------------------- ##
12023 _ASBOX
12024      ) | sed "s/^/$as_me: WARNING:     /" >&2
12025     ;;
12026 esac
12027 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12028 $as_echo_n "checking for zlib.h... " >&6; }
12029 if test "${ac_cv_header_zlib_h+set}" = set; then
12030   $as_echo_n "(cached) " >&6
12031 else
12032   ac_cv_header_zlib_h=$ac_header_preproc
12033 fi
12034 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12035 $as_echo "$ac_cv_header_zlib_h" >&6; }
12036
12037 fi
12038 if test "x$ac_cv_header_zlib_h" = x""yes; then
12039   :
12040 else
12041   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12042 If you have zlib already installed, see config.log for details on the
12043 failure.  It is possible the compiler isn't looking in the proper directory.
12044 Use --without-zlib to disable zlib support." >&5
12045 $as_echo "$as_me: error: zlib header not found
12046 If you have zlib already installed, see config.log for details on the
12047 failure.  It is possible the compiler isn't looking in the proper directory.
12048 Use --without-zlib to disable zlib support." >&2;}
12049    { (exit 1); exit 1; }; }
12050 fi
12051
12052
12053 fi
12054
12055 if test "$with_gssapi" = yes ; then
12056
12057 for ac_header in gssapi/gssapi.h
12058 do
12059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12061   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12062 $as_echo_n "checking for $ac_header... " >&6; }
12063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12064   $as_echo_n "(cached) " >&6
12065 fi
12066 ac_res=`eval 'as_val=${'$as_ac_Header'}
12067                  $as_echo "$as_val"'`
12068                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12069 $as_echo "$ac_res" >&6; }
12070 else
12071   # Is the header compilable?
12072 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12073 $as_echo_n "checking $ac_header usability... " >&6; }
12074 cat >conftest.$ac_ext <<_ACEOF
12075 /* confdefs.h.  */
12076 _ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h.  */
12080 $ac_includes_default
12081 #include <$ac_header>
12082 _ACEOF
12083 rm -f conftest.$ac_objext
12084 if { (ac_try="$ac_compile"
12085 case "(($ac_try" in
12086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087   *) ac_try_echo=$ac_try;;
12088 esac
12089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12090 $as_echo "$ac_try_echo") >&5
12091   (eval "$ac_compile") 2>conftest.er1
12092   ac_status=$?
12093   grep -v '^ *+' conftest.er1 >conftest.err
12094   rm -f conftest.er1
12095   cat conftest.err >&5
12096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); } && {
12098          test -z "$ac_c_werror_flag" ||
12099          test ! -s conftest.err
12100        } && test -s conftest.$ac_objext; then
12101   ac_header_compiler=yes
12102 else
12103   $as_echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12105
12106         ac_header_compiler=no
12107 fi
12108
12109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12111 $as_echo "$ac_header_compiler" >&6; }
12112
12113 # Is the header present?
12114 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12115 $as_echo_n "checking $ac_header presence... " >&6; }
12116 cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h.  */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h.  */
12122 #include <$ac_header>
12123 _ACEOF
12124 if { (ac_try="$ac_cpp conftest.$ac_ext"
12125 case "(($ac_try" in
12126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127   *) ac_try_echo=$ac_try;;
12128 esac
12129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12130 $as_echo "$ac_try_echo") >&5
12131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12132   ac_status=$?
12133   grep -v '^ *+' conftest.er1 >conftest.err
12134   rm -f conftest.er1
12135   cat conftest.err >&5
12136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } >/dev/null && {
12138          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12139          test ! -s conftest.err
12140        }; then
12141   ac_header_preproc=yes
12142 else
12143   $as_echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146   ac_header_preproc=no
12147 fi
12148
12149 rm -f conftest.err conftest.$ac_ext
12150 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12151 $as_echo "$ac_header_preproc" >&6; }
12152
12153 # So?  What about this header?
12154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12155   yes:no: )
12156     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12157 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12158     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12159 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12160     ac_header_preproc=yes
12161     ;;
12162   no:yes:* )
12163     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12164 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12165     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12166 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12167     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12168 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12169     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12170 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12171     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12172 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12174 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12175     ( cat <<\_ASBOX
12176 ## ---------------------------------------- ##
12177 ## Report this to pgsql-bugs@postgresql.org ##
12178 ## ---------------------------------------- ##
12179 _ASBOX
12180      ) | sed "s/^/$as_me: WARNING:     /" >&2
12181     ;;
12182 esac
12183 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12184 $as_echo_n "checking for $ac_header... " >&6; }
12185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12186   $as_echo_n "(cached) " >&6
12187 else
12188   eval "$as_ac_Header=\$ac_header_preproc"
12189 fi
12190 ac_res=`eval 'as_val=${'$as_ac_Header'}
12191                  $as_echo "$as_val"'`
12192                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12193 $as_echo "$ac_res" >&6; }
12194
12195 fi
12196 as_val=`eval 'as_val=${'$as_ac_Header'}
12197                  $as_echo "$as_val"'`
12198    if test "x$as_val" = x""yes; then
12199   cat >>confdefs.h <<_ACEOF
12200 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12201 _ACEOF
12202
12203 else
12204
12205 for ac_header in gssapi.h
12206 do
12207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12209   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12210 $as_echo_n "checking for $ac_header... " >&6; }
12211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12212   $as_echo_n "(cached) " >&6
12213 fi
12214 ac_res=`eval 'as_val=${'$as_ac_Header'}
12215                  $as_echo "$as_val"'`
12216                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12217 $as_echo "$ac_res" >&6; }
12218 else
12219   # Is the header compilable?
12220 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12221 $as_echo_n "checking $ac_header usability... " >&6; }
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h.  */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h.  */
12228 $ac_includes_default
12229 #include <$ac_header>
12230 _ACEOF
12231 rm -f conftest.$ac_objext
12232 if { (ac_try="$ac_compile"
12233 case "(($ac_try" in
12234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235   *) ac_try_echo=$ac_try;;
12236 esac
12237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12238 $as_echo "$ac_try_echo") >&5
12239   (eval "$ac_compile") 2>conftest.er1
12240   ac_status=$?
12241   grep -v '^ *+' conftest.er1 >conftest.err
12242   rm -f conftest.er1
12243   cat conftest.err >&5
12244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); } && {
12246          test -z "$ac_c_werror_flag" ||
12247          test ! -s conftest.err
12248        } && test -s conftest.$ac_objext; then
12249   ac_header_compiler=yes
12250 else
12251   $as_echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12253
12254         ac_header_compiler=no
12255 fi
12256
12257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12258 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12259 $as_echo "$ac_header_compiler" >&6; }
12260
12261 # Is the header present?
12262 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12263 $as_echo_n "checking $ac_header presence... " >&6; }
12264 cat >conftest.$ac_ext <<_ACEOF
12265 /* confdefs.h.  */
12266 _ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h.  */
12270 #include <$ac_header>
12271 _ACEOF
12272 if { (ac_try="$ac_cpp conftest.$ac_ext"
12273 case "(($ac_try" in
12274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275   *) ac_try_echo=$ac_try;;
12276 esac
12277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12278 $as_echo "$ac_try_echo") >&5
12279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12280   ac_status=$?
12281   grep -v '^ *+' conftest.er1 >conftest.err
12282   rm -f conftest.er1
12283   cat conftest.err >&5
12284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } >/dev/null && {
12286          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12287          test ! -s conftest.err
12288        }; then
12289   ac_header_preproc=yes
12290 else
12291   $as_echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12293
12294   ac_header_preproc=no
12295 fi
12296
12297 rm -f conftest.err conftest.$ac_ext
12298 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12299 $as_echo "$ac_header_preproc" >&6; }
12300
12301 # So?  What about this header?
12302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12303   yes:no: )
12304     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12305 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12306     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12307 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12308     ac_header_preproc=yes
12309     ;;
12310   no:yes:* )
12311     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12312 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12313     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12314 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12315     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12316 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12317     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12318 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12322 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12323     ( cat <<\_ASBOX
12324 ## ---------------------------------------- ##
12325 ## Report this to pgsql-bugs@postgresql.org ##
12326 ## ---------------------------------------- ##
12327 _ASBOX
12328      ) | sed "s/^/$as_me: WARNING:     /" >&2
12329     ;;
12330 esac
12331 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12332 $as_echo_n "checking for $ac_header... " >&6; }
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334   $as_echo_n "(cached) " >&6
12335 else
12336   eval "$as_ac_Header=\$ac_header_preproc"
12337 fi
12338 ac_res=`eval 'as_val=${'$as_ac_Header'}
12339                  $as_echo "$as_val"'`
12340                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12341 $as_echo "$ac_res" >&6; }
12342
12343 fi
12344 as_val=`eval 'as_val=${'$as_ac_Header'}
12345                  $as_echo "$as_val"'`
12346    if test "x$as_val" = x""yes; then
12347   cat >>confdefs.h <<_ACEOF
12348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12349 _ACEOF
12350
12351 else
12352   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12353 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12354    { (exit 1); exit 1; }; }
12355 fi
12356
12357 done
12358
12359 fi
12360
12361 done
12362
12363 fi
12364
12365 if test "$with_krb5" = yes ; then
12366   if test "${ac_cv_header_krb5_h+set}" = set; then
12367   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12368 $as_echo_n "checking for krb5.h... " >&6; }
12369 if test "${ac_cv_header_krb5_h+set}" = set; then
12370   $as_echo_n "(cached) " >&6
12371 fi
12372 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12373 $as_echo "$ac_cv_header_krb5_h" >&6; }
12374 else
12375   # Is the header compilable?
12376 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12377 $as_echo_n "checking krb5.h usability... " >&6; }
12378 cat >conftest.$ac_ext <<_ACEOF
12379 /* confdefs.h.  */
12380 _ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h.  */
12384 $ac_includes_default
12385 #include <krb5.h>
12386 _ACEOF
12387 rm -f conftest.$ac_objext
12388 if { (ac_try="$ac_compile"
12389 case "(($ac_try" in
12390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391   *) ac_try_echo=$ac_try;;
12392 esac
12393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12394 $as_echo "$ac_try_echo") >&5
12395   (eval "$ac_compile") 2>conftest.er1
12396   ac_status=$?
12397   grep -v '^ *+' conftest.er1 >conftest.err
12398   rm -f conftest.er1
12399   cat conftest.err >&5
12400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); } && {
12402          test -z "$ac_c_werror_flag" ||
12403          test ! -s conftest.err
12404        } && test -s conftest.$ac_objext; then
12405   ac_header_compiler=yes
12406 else
12407   $as_echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12409
12410         ac_header_compiler=no
12411 fi
12412
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12415 $as_echo "$ac_header_compiler" >&6; }
12416
12417 # Is the header present?
12418 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12419 $as_echo_n "checking krb5.h presence... " >&6; }
12420 cat >conftest.$ac_ext <<_ACEOF
12421 /* confdefs.h.  */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h.  */
12426 #include <krb5.h>
12427 _ACEOF
12428 if { (ac_try="$ac_cpp conftest.$ac_ext"
12429 case "(($ac_try" in
12430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431   *) ac_try_echo=$ac_try;;
12432 esac
12433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12434 $as_echo "$ac_try_echo") >&5
12435   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12436   ac_status=$?
12437   grep -v '^ *+' conftest.er1 >conftest.err
12438   rm -f conftest.er1
12439   cat conftest.err >&5
12440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); } >/dev/null && {
12442          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12443          test ! -s conftest.err
12444        }; then
12445   ac_header_preproc=yes
12446 else
12447   $as_echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12449
12450   ac_header_preproc=no
12451 fi
12452
12453 rm -f conftest.err conftest.$ac_ext
12454 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12455 $as_echo "$ac_header_preproc" >&6; }
12456
12457 # So?  What about this header?
12458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12459   yes:no: )
12460     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12461 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12462     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12463 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12464     ac_header_preproc=yes
12465     ;;
12466   no:yes:* )
12467     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12468 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12469     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12470 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12471     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12472 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12473     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12474 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12475     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12476 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12477     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12478 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12479     ( cat <<\_ASBOX
12480 ## ---------------------------------------- ##
12481 ## Report this to pgsql-bugs@postgresql.org ##
12482 ## ---------------------------------------- ##
12483 _ASBOX
12484      ) | sed "s/^/$as_me: WARNING:     /" >&2
12485     ;;
12486 esac
12487 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12488 $as_echo_n "checking for krb5.h... " >&6; }
12489 if test "${ac_cv_header_krb5_h+set}" = set; then
12490   $as_echo_n "(cached) " >&6
12491 else
12492   ac_cv_header_krb5_h=$ac_header_preproc
12493 fi
12494 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12495 $as_echo "$ac_cv_header_krb5_h" >&6; }
12496
12497 fi
12498 if test "x$ac_cv_header_krb5_h" = x""yes; then
12499   :
12500 else
12501   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12502 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12503    { (exit 1); exit 1; }; }
12504 fi
12505
12506
12507 fi
12508
12509 if test "$with_openssl" = yes ; then
12510   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12511   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12512 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12513 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12514   $as_echo_n "(cached) " >&6
12515 fi
12516 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12517 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12518 else
12519   # Is the header compilable?
12520 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12521 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12522 cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h.  */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h.  */
12528 $ac_includes_default
12529 #include <openssl/ssl.h>
12530 _ACEOF
12531 rm -f conftest.$ac_objext
12532 if { (ac_try="$ac_compile"
12533 case "(($ac_try" in
12534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535   *) ac_try_echo=$ac_try;;
12536 esac
12537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12538 $as_echo "$ac_try_echo") >&5
12539   (eval "$ac_compile") 2>conftest.er1
12540   ac_status=$?
12541   grep -v '^ *+' conftest.er1 >conftest.err
12542   rm -f conftest.er1
12543   cat conftest.err >&5
12544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } && {
12546          test -z "$ac_c_werror_flag" ||
12547          test ! -s conftest.err
12548        } && test -s conftest.$ac_objext; then
12549   ac_header_compiler=yes
12550 else
12551   $as_echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554         ac_header_compiler=no
12555 fi
12556
12557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12559 $as_echo "$ac_header_compiler" >&6; }
12560
12561 # Is the header present?
12562 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12563 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12564 cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h.  */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h.  */
12570 #include <openssl/ssl.h>
12571 _ACEOF
12572 if { (ac_try="$ac_cpp conftest.$ac_ext"
12573 case "(($ac_try" in
12574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575   *) ac_try_echo=$ac_try;;
12576 esac
12577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12578 $as_echo "$ac_try_echo") >&5
12579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12580   ac_status=$?
12581   grep -v '^ *+' conftest.er1 >conftest.err
12582   rm -f conftest.er1
12583   cat conftest.err >&5
12584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); } >/dev/null && {
12586          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12587          test ! -s conftest.err
12588        }; then
12589   ac_header_preproc=yes
12590 else
12591   $as_echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12593
12594   ac_header_preproc=no
12595 fi
12596
12597 rm -f conftest.err conftest.$ac_ext
12598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12599 $as_echo "$ac_header_preproc" >&6; }
12600
12601 # So?  What about this header?
12602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12603   yes:no: )
12604     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12605 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12606     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12607 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12608     ac_header_preproc=yes
12609     ;;
12610   no:yes:* )
12611     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12612 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12613     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12614 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12615     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12616 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12617     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12618 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12619     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12620 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12621     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12622 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12623     ( cat <<\_ASBOX
12624 ## ---------------------------------------- ##
12625 ## Report this to pgsql-bugs@postgresql.org ##
12626 ## ---------------------------------------- ##
12627 _ASBOX
12628      ) | sed "s/^/$as_me: WARNING:     /" >&2
12629     ;;
12630 esac
12631 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12632 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12633 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12634   $as_echo_n "(cached) " >&6
12635 else
12636   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12637 fi
12638 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12639 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12640
12641 fi
12642 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12643   :
12644 else
12645   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12646 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12647    { (exit 1); exit 1; }; }
12648 fi
12649
12650
12651   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12652   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12653 $as_echo_n "checking for openssl/err.h... " >&6; }
12654 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12655   $as_echo_n "(cached) " >&6
12656 fi
12657 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12658 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12659 else
12660   # Is the header compilable?
12661 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12662 $as_echo_n "checking openssl/err.h usability... " >&6; }
12663 cat >conftest.$ac_ext <<_ACEOF
12664 /* confdefs.h.  */
12665 _ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h.  */
12669 $ac_includes_default
12670 #include <openssl/err.h>
12671 _ACEOF
12672 rm -f conftest.$ac_objext
12673 if { (ac_try="$ac_compile"
12674 case "(($ac_try" in
12675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676   *) ac_try_echo=$ac_try;;
12677 esac
12678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12679 $as_echo "$ac_try_echo") >&5
12680   (eval "$ac_compile") 2>conftest.er1
12681   ac_status=$?
12682   grep -v '^ *+' conftest.er1 >conftest.err
12683   rm -f conftest.er1
12684   cat conftest.err >&5
12685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } && {
12687          test -z "$ac_c_werror_flag" ||
12688          test ! -s conftest.err
12689        } && test -s conftest.$ac_objext; then
12690   ac_header_compiler=yes
12691 else
12692   $as_echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695         ac_header_compiler=no
12696 fi
12697
12698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12700 $as_echo "$ac_header_compiler" >&6; }
12701
12702 # Is the header present?
12703 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12704 $as_echo_n "checking openssl/err.h presence... " >&6; }
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h.  */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h.  */
12711 #include <openssl/err.h>
12712 _ACEOF
12713 if { (ac_try="$ac_cpp conftest.$ac_ext"
12714 case "(($ac_try" in
12715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716   *) ac_try_echo=$ac_try;;
12717 esac
12718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12719 $as_echo "$ac_try_echo") >&5
12720   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12721   ac_status=$?
12722   grep -v '^ *+' conftest.er1 >conftest.err
12723   rm -f conftest.er1
12724   cat conftest.err >&5
12725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); } >/dev/null && {
12727          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12728          test ! -s conftest.err
12729        }; then
12730   ac_header_preproc=yes
12731 else
12732   $as_echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12734
12735   ac_header_preproc=no
12736 fi
12737
12738 rm -f conftest.err conftest.$ac_ext
12739 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12740 $as_echo "$ac_header_preproc" >&6; }
12741
12742 # So?  What about this header?
12743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12744   yes:no: )
12745     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12746 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12747     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12748 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12749     ac_header_preproc=yes
12750     ;;
12751   no:yes:* )
12752     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12753 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12754     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12755 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12756     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12757 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12758     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12759 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12760     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12761 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12762     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12763 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12764     ( cat <<\_ASBOX
12765 ## ---------------------------------------- ##
12766 ## Report this to pgsql-bugs@postgresql.org ##
12767 ## ---------------------------------------- ##
12768 _ASBOX
12769      ) | sed "s/^/$as_me: WARNING:     /" >&2
12770     ;;
12771 esac
12772 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12773 $as_echo_n "checking for openssl/err.h... " >&6; }
12774 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12775   $as_echo_n "(cached) " >&6
12776 else
12777   ac_cv_header_openssl_err_h=$ac_header_preproc
12778 fi
12779 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12780 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12781
12782 fi
12783 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12784   :
12785 else
12786   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12787 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12788    { (exit 1); exit 1; }; }
12789 fi
12790
12791
12792
12793 for ac_func in ERR_set_mark
12794 do
12795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12796 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12797 $as_echo_n "checking for $ac_func... " >&6; }
12798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12799   $as_echo_n "(cached) " >&6
12800 else
12801   cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h.  */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h.  */
12807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12809 #define $ac_func innocuous_$ac_func
12810
12811 /* System header to define __stub macros and hopefully few prototypes,
12812     which can conflict with char $ac_func (); below.
12813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12814     <limits.h> exists even on freestanding compilers.  */
12815
12816 #ifdef __STDC__
12817 # include <limits.h>
12818 #else
12819 # include <assert.h>
12820 #endif
12821
12822 #undef $ac_func
12823
12824 /* Override any GCC internal prototype to avoid an error.
12825    Use char because int might match the return type of a GCC
12826    builtin and then its argument prototype would still apply.  */
12827 #ifdef __cplusplus
12828 extern "C"
12829 #endif
12830 char $ac_func ();
12831 /* The GNU C library defines this for functions which it implements
12832     to always fail with ENOSYS.  Some functions are actually named
12833     something starting with __ and the normal name is an alias.  */
12834 #if defined __stub_$ac_func || defined __stub___$ac_func
12835 choke me
12836 #endif
12837
12838 int
12839 main ()
12840 {
12841 return $ac_func ();
12842   ;
12843   return 0;
12844 }
12845 _ACEOF
12846 rm -f conftest.$ac_objext conftest$ac_exeext
12847 if { (ac_try="$ac_link"
12848 case "(($ac_try" in
12849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850   *) ac_try_echo=$ac_try;;
12851 esac
12852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12853 $as_echo "$ac_try_echo") >&5
12854   (eval "$ac_link") 2>conftest.er1
12855   ac_status=$?
12856   grep -v '^ *+' conftest.er1 >conftest.err
12857   rm -f conftest.er1
12858   cat conftest.err >&5
12859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); } && {
12861          test -z "$ac_c_werror_flag" ||
12862          test ! -s conftest.err
12863        } && test -s conftest$ac_exeext && {
12864          test "$cross_compiling" = yes ||
12865          $as_test_x conftest$ac_exeext
12866        }; then
12867   eval "$as_ac_var=yes"
12868 else
12869   $as_echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12871
12872         eval "$as_ac_var=no"
12873 fi
12874
12875 rm -rf conftest.dSYM
12876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12877       conftest$ac_exeext conftest.$ac_ext
12878 fi
12879 ac_res=`eval 'as_val=${'$as_ac_var'}
12880                  $as_echo "$as_val"'`
12881                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12882 $as_echo "$ac_res" >&6; }
12883 as_val=`eval 'as_val=${'$as_ac_var'}
12884                  $as_echo "$as_val"'`
12885    if test "x$as_val" = x""yes; then
12886   cat >>confdefs.h <<_ACEOF
12887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12888 _ACEOF
12889
12890 fi
12891 done
12892
12893 fi
12894
12895 if test "$with_pam" = yes ; then
12896
12897 for ac_header in security/pam_appl.h
12898 do
12899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12901   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12902 $as_echo_n "checking for $ac_header... " >&6; }
12903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12904   $as_echo_n "(cached) " >&6
12905 fi
12906 ac_res=`eval 'as_val=${'$as_ac_Header'}
12907                  $as_echo "$as_val"'`
12908                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12909 $as_echo "$ac_res" >&6; }
12910 else
12911   # Is the header compilable?
12912 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12913 $as_echo_n "checking $ac_header usability... " >&6; }
12914 cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h.  */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h.  */
12920 $ac_includes_default
12921 #include <$ac_header>
12922 _ACEOF
12923 rm -f conftest.$ac_objext
12924 if { (ac_try="$ac_compile"
12925 case "(($ac_try" in
12926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927   *) ac_try_echo=$ac_try;;
12928 esac
12929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12930 $as_echo "$ac_try_echo") >&5
12931   (eval "$ac_compile") 2>conftest.er1
12932   ac_status=$?
12933   grep -v '^ *+' conftest.er1 >conftest.err
12934   rm -f conftest.er1
12935   cat conftest.err >&5
12936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); } && {
12938          test -z "$ac_c_werror_flag" ||
12939          test ! -s conftest.err
12940        } && test -s conftest.$ac_objext; then
12941   ac_header_compiler=yes
12942 else
12943   $as_echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12945
12946         ac_header_compiler=no
12947 fi
12948
12949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12951 $as_echo "$ac_header_compiler" >&6; }
12952
12953 # Is the header present?
12954 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12955 $as_echo_n "checking $ac_header presence... " >&6; }
12956 cat >conftest.$ac_ext <<_ACEOF
12957 /* confdefs.h.  */
12958 _ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h.  */
12962 #include <$ac_header>
12963 _ACEOF
12964 if { (ac_try="$ac_cpp conftest.$ac_ext"
12965 case "(($ac_try" in
12966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967   *) ac_try_echo=$ac_try;;
12968 esac
12969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12970 $as_echo "$ac_try_echo") >&5
12971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12972   ac_status=$?
12973   grep -v '^ *+' conftest.er1 >conftest.err
12974   rm -f conftest.er1
12975   cat conftest.err >&5
12976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); } >/dev/null && {
12978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12979          test ! -s conftest.err
12980        }; then
12981   ac_header_preproc=yes
12982 else
12983   $as_echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12985
12986   ac_header_preproc=no
12987 fi
12988
12989 rm -f conftest.err conftest.$ac_ext
12990 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12991 $as_echo "$ac_header_preproc" >&6; }
12992
12993 # So?  What about this header?
12994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12995   yes:no: )
12996     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12997 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12998     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13000     ac_header_preproc=yes
13001     ;;
13002   no:yes:* )
13003     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13004 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13006 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13007     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13008 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13009     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13010 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13011     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13012 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13013     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13014 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13015     ( cat <<\_ASBOX
13016 ## ---------------------------------------- ##
13017 ## Report this to pgsql-bugs@postgresql.org ##
13018 ## ---------------------------------------- ##
13019 _ASBOX
13020      ) | sed "s/^/$as_me: WARNING:     /" >&2
13021     ;;
13022 esac
13023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13024 $as_echo_n "checking for $ac_header... " >&6; }
13025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13026   $as_echo_n "(cached) " >&6
13027 else
13028   eval "$as_ac_Header=\$ac_header_preproc"
13029 fi
13030 ac_res=`eval 'as_val=${'$as_ac_Header'}
13031                  $as_echo "$as_val"'`
13032                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13033 $as_echo "$ac_res" >&6; }
13034
13035 fi
13036 as_val=`eval 'as_val=${'$as_ac_Header'}
13037                  $as_echo "$as_val"'`
13038    if test "x$as_val" = x""yes; then
13039   cat >>confdefs.h <<_ACEOF
13040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13041 _ACEOF
13042
13043 else
13044
13045 for ac_header in pam/pam_appl.h
13046 do
13047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13049   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13050 $as_echo_n "checking for $ac_header... " >&6; }
13051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13052   $as_echo_n "(cached) " >&6
13053 fi
13054 ac_res=`eval 'as_val=${'$as_ac_Header'}
13055                  $as_echo "$as_val"'`
13056                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13057 $as_echo "$ac_res" >&6; }
13058 else
13059   # Is the header compilable?
13060 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13061 $as_echo_n "checking $ac_header usability... " >&6; }
13062 cat >conftest.$ac_ext <<_ACEOF
13063 /* confdefs.h.  */
13064 _ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h.  */
13068 $ac_includes_default
13069 #include <$ac_header>
13070 _ACEOF
13071 rm -f conftest.$ac_objext
13072 if { (ac_try="$ac_compile"
13073 case "(($ac_try" in
13074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075   *) ac_try_echo=$ac_try;;
13076 esac
13077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13078 $as_echo "$ac_try_echo") >&5
13079   (eval "$ac_compile") 2>conftest.er1
13080   ac_status=$?
13081   grep -v '^ *+' conftest.er1 >conftest.err
13082   rm -f conftest.er1
13083   cat conftest.err >&5
13084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); } && {
13086          test -z "$ac_c_werror_flag" ||
13087          test ! -s conftest.err
13088        } && test -s conftest.$ac_objext; then
13089   ac_header_compiler=yes
13090 else
13091   $as_echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094         ac_header_compiler=no
13095 fi
13096
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13099 $as_echo "$ac_header_compiler" >&6; }
13100
13101 # Is the header present?
13102 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13103 $as_echo_n "checking $ac_header presence... " >&6; }
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h.  */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h.  */
13110 #include <$ac_header>
13111 _ACEOF
13112 if { (ac_try="$ac_cpp conftest.$ac_ext"
13113 case "(($ac_try" in
13114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115   *) ac_try_echo=$ac_try;;
13116 esac
13117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13118 $as_echo "$ac_try_echo") >&5
13119   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13120   ac_status=$?
13121   grep -v '^ *+' conftest.er1 >conftest.err
13122   rm -f conftest.er1
13123   cat conftest.err >&5
13124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125   (exit $ac_status); } >/dev/null && {
13126          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13127          test ! -s conftest.err
13128        }; then
13129   ac_header_preproc=yes
13130 else
13131   $as_echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13133
13134   ac_header_preproc=no
13135 fi
13136
13137 rm -f conftest.err conftest.$ac_ext
13138 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13139 $as_echo "$ac_header_preproc" >&6; }
13140
13141 # So?  What about this header?
13142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13143   yes:no: )
13144     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13145 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13146     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13147 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13148     ac_header_preproc=yes
13149     ;;
13150   no:yes:* )
13151     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13152 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13153     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13154 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13155     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13156 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13157     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13158 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13159     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13160 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13161     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13162 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13163     ( cat <<\_ASBOX
13164 ## ---------------------------------------- ##
13165 ## Report this to pgsql-bugs@postgresql.org ##
13166 ## ---------------------------------------- ##
13167 _ASBOX
13168      ) | sed "s/^/$as_me: WARNING:     /" >&2
13169     ;;
13170 esac
13171 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13172 $as_echo_n "checking for $ac_header... " >&6; }
13173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13174   $as_echo_n "(cached) " >&6
13175 else
13176   eval "$as_ac_Header=\$ac_header_preproc"
13177 fi
13178 ac_res=`eval 'as_val=${'$as_ac_Header'}
13179                  $as_echo "$as_val"'`
13180                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13181 $as_echo "$ac_res" >&6; }
13182
13183 fi
13184 as_val=`eval 'as_val=${'$as_ac_Header'}
13185                  $as_echo "$as_val"'`
13186    if test "x$as_val" = x""yes; then
13187   cat >>confdefs.h <<_ACEOF
13188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13189 _ACEOF
13190
13191 else
13192   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13193 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13194    { (exit 1); exit 1; }; }
13195 fi
13196
13197 done
13198
13199 fi
13200
13201 done
13202
13203 fi
13204
13205 if test "$with_libxml" = yes ; then
13206   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13207   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13208 $as_echo_n "checking for libxml/parser.h... " >&6; }
13209 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13210   $as_echo_n "(cached) " >&6
13211 fi
13212 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13213 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13214 else
13215   # Is the header compilable?
13216 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13217 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13218 cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h.  */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h.  */
13224 $ac_includes_default
13225 #include <libxml/parser.h>
13226 _ACEOF
13227 rm -f conftest.$ac_objext
13228 if { (ac_try="$ac_compile"
13229 case "(($ac_try" in
13230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231   *) ac_try_echo=$ac_try;;
13232 esac
13233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13234 $as_echo "$ac_try_echo") >&5
13235   (eval "$ac_compile") 2>conftest.er1
13236   ac_status=$?
13237   grep -v '^ *+' conftest.er1 >conftest.err
13238   rm -f conftest.er1
13239   cat conftest.err >&5
13240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } && {
13242          test -z "$ac_c_werror_flag" ||
13243          test ! -s conftest.err
13244        } && test -s conftest.$ac_objext; then
13245   ac_header_compiler=yes
13246 else
13247   $as_echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13249
13250         ac_header_compiler=no
13251 fi
13252
13253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13254 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13255 $as_echo "$ac_header_compiler" >&6; }
13256
13257 # Is the header present?
13258 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13259 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13260 cat >conftest.$ac_ext <<_ACEOF
13261 /* confdefs.h.  */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h.  */
13266 #include <libxml/parser.h>
13267 _ACEOF
13268 if { (ac_try="$ac_cpp conftest.$ac_ext"
13269 case "(($ac_try" in
13270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271   *) ac_try_echo=$ac_try;;
13272 esac
13273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13274 $as_echo "$ac_try_echo") >&5
13275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13276   ac_status=$?
13277   grep -v '^ *+' conftest.er1 >conftest.err
13278   rm -f conftest.er1
13279   cat conftest.err >&5
13280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); } >/dev/null && {
13282          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13283          test ! -s conftest.err
13284        }; then
13285   ac_header_preproc=yes
13286 else
13287   $as_echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13289
13290   ac_header_preproc=no
13291 fi
13292
13293 rm -f conftest.err conftest.$ac_ext
13294 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13295 $as_echo "$ac_header_preproc" >&6; }
13296
13297 # So?  What about this header?
13298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13299   yes:no: )
13300     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13301 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13302     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13303 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13304     ac_header_preproc=yes
13305     ;;
13306   no:yes:* )
13307     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13308 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13309     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13310 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13311     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13312 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13313     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13314 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13315     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13316 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13317     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13318 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13319     ( cat <<\_ASBOX
13320 ## ---------------------------------------- ##
13321 ## Report this to pgsql-bugs@postgresql.org ##
13322 ## ---------------------------------------- ##
13323 _ASBOX
13324      ) | sed "s/^/$as_me: WARNING:     /" >&2
13325     ;;
13326 esac
13327 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13328 $as_echo_n "checking for libxml/parser.h... " >&6; }
13329 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13330   $as_echo_n "(cached) " >&6
13331 else
13332   ac_cv_header_libxml_parser_h=$ac_header_preproc
13333 fi
13334 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13335 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13336
13337 fi
13338 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13339   :
13340 else
13341   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13342 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13343    { (exit 1); exit 1; }; }
13344 fi
13345
13346
13347 fi
13348
13349 if test "$with_libxslt" = yes ; then
13350   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13351   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13352 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13353 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13354   $as_echo_n "(cached) " >&6
13355 fi
13356 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13357 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13358 else
13359   # Is the header compilable?
13360 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13361 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13362 cat >conftest.$ac_ext <<_ACEOF
13363 /* confdefs.h.  */
13364 _ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h.  */
13368 $ac_includes_default
13369 #include <libxslt/xslt.h>
13370 _ACEOF
13371 rm -f conftest.$ac_objext
13372 if { (ac_try="$ac_compile"
13373 case "(($ac_try" in
13374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375   *) ac_try_echo=$ac_try;;
13376 esac
13377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13378 $as_echo "$ac_try_echo") >&5
13379   (eval "$ac_compile") 2>conftest.er1
13380   ac_status=$?
13381   grep -v '^ *+' conftest.er1 >conftest.err
13382   rm -f conftest.er1
13383   cat conftest.err >&5
13384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385   (exit $ac_status); } && {
13386          test -z "$ac_c_werror_flag" ||
13387          test ! -s conftest.err
13388        } && test -s conftest.$ac_objext; then
13389   ac_header_compiler=yes
13390 else
13391   $as_echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13393
13394         ac_header_compiler=no
13395 fi
13396
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13399 $as_echo "$ac_header_compiler" >&6; }
13400
13401 # Is the header present?
13402 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13403 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13404 cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h.  */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h.  */
13410 #include <libxslt/xslt.h>
13411 _ACEOF
13412 if { (ac_try="$ac_cpp conftest.$ac_ext"
13413 case "(($ac_try" in
13414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415   *) ac_try_echo=$ac_try;;
13416 esac
13417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13418 $as_echo "$ac_try_echo") >&5
13419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } >/dev/null && {
13426          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13427          test ! -s conftest.err
13428        }; then
13429   ac_header_preproc=yes
13430 else
13431   $as_echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13433
13434   ac_header_preproc=no
13435 fi
13436
13437 rm -f conftest.err conftest.$ac_ext
13438 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13439 $as_echo "$ac_header_preproc" >&6; }
13440
13441 # So?  What about this header?
13442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13443   yes:no: )
13444     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13445 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13446     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13447 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13448     ac_header_preproc=yes
13449     ;;
13450   no:yes:* )
13451     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13452 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13453     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13454 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13455     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13456 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13457     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13458 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13459     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13460 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13461     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13462 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13463     ( cat <<\_ASBOX
13464 ## ---------------------------------------- ##
13465 ## Report this to pgsql-bugs@postgresql.org ##
13466 ## ---------------------------------------- ##
13467 _ASBOX
13468      ) | sed "s/^/$as_me: WARNING:     /" >&2
13469     ;;
13470 esac
13471 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13472 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13473 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13474   $as_echo_n "(cached) " >&6
13475 else
13476   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13477 fi
13478 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13479 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13480
13481 fi
13482 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13483   :
13484 else
13485   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13486 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13487    { (exit 1); exit 1; }; }
13488 fi
13489
13490
13491 fi
13492
13493 if test "$with_ldap" = yes ; then
13494   if test "$PORTNAME" != "win32"; then
13495
13496 for ac_header in ldap.h
13497 do
13498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13500   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13501 $as_echo_n "checking for $ac_header... " >&6; }
13502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13503   $as_echo_n "(cached) " >&6
13504 fi
13505 ac_res=`eval 'as_val=${'$as_ac_Header'}
13506                  $as_echo "$as_val"'`
13507                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13508 $as_echo "$ac_res" >&6; }
13509 else
13510   # Is the header compilable?
13511 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13512 $as_echo_n "checking $ac_header usability... " >&6; }
13513 cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h.  */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h.  */
13519 $ac_includes_default
13520 #include <$ac_header>
13521 _ACEOF
13522 rm -f conftest.$ac_objext
13523 if { (ac_try="$ac_compile"
13524 case "(($ac_try" in
13525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526   *) ac_try_echo=$ac_try;;
13527 esac
13528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13529 $as_echo "$ac_try_echo") >&5
13530   (eval "$ac_compile") 2>conftest.er1
13531   ac_status=$?
13532   grep -v '^ *+' conftest.er1 >conftest.err
13533   rm -f conftest.er1
13534   cat conftest.err >&5
13535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); } && {
13537          test -z "$ac_c_werror_flag" ||
13538          test ! -s conftest.err
13539        } && test -s conftest.$ac_objext; then
13540   ac_header_compiler=yes
13541 else
13542   $as_echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13544
13545         ac_header_compiler=no
13546 fi
13547
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13550 $as_echo "$ac_header_compiler" >&6; }
13551
13552 # Is the header present?
13553 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13554 $as_echo_n "checking $ac_header presence... " >&6; }
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h.  */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h.  */
13561 #include <$ac_header>
13562 _ACEOF
13563 if { (ac_try="$ac_cpp conftest.$ac_ext"
13564 case "(($ac_try" in
13565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566   *) ac_try_echo=$ac_try;;
13567 esac
13568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13569 $as_echo "$ac_try_echo") >&5
13570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13571   ac_status=$?
13572   grep -v '^ *+' conftest.er1 >conftest.err
13573   rm -f conftest.er1
13574   cat conftest.err >&5
13575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); } >/dev/null && {
13577          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13578          test ! -s conftest.err
13579        }; then
13580   ac_header_preproc=yes
13581 else
13582   $as_echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13584
13585   ac_header_preproc=no
13586 fi
13587
13588 rm -f conftest.err conftest.$ac_ext
13589 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13590 $as_echo "$ac_header_preproc" >&6; }
13591
13592 # So?  What about this header?
13593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13594   yes:no: )
13595     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13596 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13597     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13599     ac_header_preproc=yes
13600     ;;
13601   no:yes:* )
13602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13603 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13605 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13607 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13609 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13613 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13614     ( cat <<\_ASBOX
13615 ## ---------------------------------------- ##
13616 ## Report this to pgsql-bugs@postgresql.org ##
13617 ## ---------------------------------------- ##
13618 _ASBOX
13619      ) | sed "s/^/$as_me: WARNING:     /" >&2
13620     ;;
13621 esac
13622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13623 $as_echo_n "checking for $ac_header... " >&6; }
13624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13625   $as_echo_n "(cached) " >&6
13626 else
13627   eval "$as_ac_Header=\$ac_header_preproc"
13628 fi
13629 ac_res=`eval 'as_val=${'$as_ac_Header'}
13630                  $as_echo "$as_val"'`
13631                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13632 $as_echo "$ac_res" >&6; }
13633
13634 fi
13635 as_val=`eval 'as_val=${'$as_ac_Header'}
13636                  $as_echo "$as_val"'`
13637    if test "x$as_val" = x""yes; then
13638   cat >>confdefs.h <<_ACEOF
13639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13640 _ACEOF
13641
13642 else
13643   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13644 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13645    { (exit 1); exit 1; }; }
13646 fi
13647
13648 done
13649
13650   else
13651
13652 for ac_header in winldap.h
13653 do
13654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13656 $as_echo_n "checking for $ac_header... " >&6; }
13657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13658   $as_echo_n "(cached) " >&6
13659 else
13660   cat >conftest.$ac_ext <<_ACEOF
13661 /* confdefs.h.  */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h.  */
13666 $ac_includes_default
13667 #include <windows.h>
13668
13669
13670 #include <$ac_header>
13671 _ACEOF
13672 rm -f conftest.$ac_objext
13673 if { (ac_try="$ac_compile"
13674 case "(($ac_try" in
13675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676   *) ac_try_echo=$ac_try;;
13677 esac
13678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13679 $as_echo "$ac_try_echo") >&5
13680   (eval "$ac_compile") 2>conftest.er1
13681   ac_status=$?
13682   grep -v '^ *+' conftest.er1 >conftest.err
13683   rm -f conftest.er1
13684   cat conftest.err >&5
13685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); } && {
13687          test -z "$ac_c_werror_flag" ||
13688          test ! -s conftest.err
13689        } && test -s conftest.$ac_objext; then
13690   eval "$as_ac_Header=yes"
13691 else
13692   $as_echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13694
13695         eval "$as_ac_Header=no"
13696 fi
13697
13698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13699 fi
13700 ac_res=`eval 'as_val=${'$as_ac_Header'}
13701                  $as_echo "$as_val"'`
13702                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13703 $as_echo "$ac_res" >&6; }
13704 as_val=`eval 'as_val=${'$as_ac_Header'}
13705                  $as_echo "$as_val"'`
13706    if test "x$as_val" = x""yes; then
13707   cat >>confdefs.h <<_ACEOF
13708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13709 _ACEOF
13710
13711 else
13712   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13713 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13714    { (exit 1); exit 1; }; }
13715 fi
13716
13717 done
13718
13719   fi
13720 fi
13721
13722 if test "$with_bonjour" = yes ; then
13723   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13724   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13725 $as_echo_n "checking for dns_sd.h... " >&6; }
13726 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13727   $as_echo_n "(cached) " >&6
13728 fi
13729 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13730 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13731 else
13732   # Is the header compilable?
13733 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13734 $as_echo_n "checking dns_sd.h usability... " >&6; }
13735 cat >conftest.$ac_ext <<_ACEOF
13736 /* confdefs.h.  */
13737 _ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h.  */
13741 $ac_includes_default
13742 #include <dns_sd.h>
13743 _ACEOF
13744 rm -f conftest.$ac_objext
13745 if { (ac_try="$ac_compile"
13746 case "(($ac_try" in
13747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748   *) ac_try_echo=$ac_try;;
13749 esac
13750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13751 $as_echo "$ac_try_echo") >&5
13752   (eval "$ac_compile") 2>conftest.er1
13753   ac_status=$?
13754   grep -v '^ *+' conftest.er1 >conftest.err
13755   rm -f conftest.er1
13756   cat conftest.err >&5
13757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); } && {
13759          test -z "$ac_c_werror_flag" ||
13760          test ! -s conftest.err
13761        } && test -s conftest.$ac_objext; then
13762   ac_header_compiler=yes
13763 else
13764   $as_echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767         ac_header_compiler=no
13768 fi
13769
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13772 $as_echo "$ac_header_compiler" >&6; }
13773
13774 # Is the header present?
13775 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13776 $as_echo_n "checking dns_sd.h presence... " >&6; }
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h.  */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h.  */
13783 #include <dns_sd.h>
13784 _ACEOF
13785 if { (ac_try="$ac_cpp conftest.$ac_ext"
13786 case "(($ac_try" in
13787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788   *) ac_try_echo=$ac_try;;
13789 esac
13790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13791 $as_echo "$ac_try_echo") >&5
13792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13793   ac_status=$?
13794   grep -v '^ *+' conftest.er1 >conftest.err
13795   rm -f conftest.er1
13796   cat conftest.err >&5
13797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); } >/dev/null && {
13799          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13800          test ! -s conftest.err
13801        }; then
13802   ac_header_preproc=yes
13803 else
13804   $as_echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13806
13807   ac_header_preproc=no
13808 fi
13809
13810 rm -f conftest.err conftest.$ac_ext
13811 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13812 $as_echo "$ac_header_preproc" >&6; }
13813
13814 # So?  What about this header?
13815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13816   yes:no: )
13817     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13818 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13819     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13820 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13821     ac_header_preproc=yes
13822     ;;
13823   no:yes:* )
13824     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13825 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13826     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
13827 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
13828     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13829 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13830     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
13831 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13832     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13833 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13834     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13835 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13836     ( cat <<\_ASBOX
13837 ## ---------------------------------------- ##
13838 ## Report this to pgsql-bugs@postgresql.org ##
13839 ## ---------------------------------------- ##
13840 _ASBOX
13841      ) | sed "s/^/$as_me: WARNING:     /" >&2
13842     ;;
13843 esac
13844 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13845 $as_echo_n "checking for dns_sd.h... " >&6; }
13846 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13847   $as_echo_n "(cached) " >&6
13848 else
13849   ac_cv_header_dns_sd_h=$ac_header_preproc
13850 fi
13851 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13852 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13853
13854 fi
13855 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13856   :
13857 else
13858   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13859 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13860    { (exit 1); exit 1; }; }
13861 fi
13862
13863
13864 fi
13865
13866 # for contrib/uuid-ossp
13867 if test "$with_ossp_uuid" = yes ; then
13868
13869 for ac_header in ossp/uuid.h
13870 do
13871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13873   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13874 $as_echo_n "checking for $ac_header... " >&6; }
13875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13876   $as_echo_n "(cached) " >&6
13877 fi
13878 ac_res=`eval 'as_val=${'$as_ac_Header'}
13879                  $as_echo "$as_val"'`
13880                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13881 $as_echo "$ac_res" >&6; }
13882 else
13883   # Is the header compilable?
13884 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13885 $as_echo_n "checking $ac_header usability... " >&6; }
13886 cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h.  */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h.  */
13892 $ac_includes_default
13893 #include <$ac_header>
13894 _ACEOF
13895 rm -f conftest.$ac_objext
13896 if { (ac_try="$ac_compile"
13897 case "(($ac_try" in
13898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899   *) ac_try_echo=$ac_try;;
13900 esac
13901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13902 $as_echo "$ac_try_echo") >&5
13903   (eval "$ac_compile") 2>conftest.er1
13904   ac_status=$?
13905   grep -v '^ *+' conftest.er1 >conftest.err
13906   rm -f conftest.er1
13907   cat conftest.err >&5
13908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); } && {
13910          test -z "$ac_c_werror_flag" ||
13911          test ! -s conftest.err
13912        } && test -s conftest.$ac_objext; then
13913   ac_header_compiler=yes
13914 else
13915   $as_echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918         ac_header_compiler=no
13919 fi
13920
13921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13923 $as_echo "$ac_header_compiler" >&6; }
13924
13925 # Is the header present?
13926 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13927 $as_echo_n "checking $ac_header presence... " >&6; }
13928 cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h.  */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h.  */
13934 #include <$ac_header>
13935 _ACEOF
13936 if { (ac_try="$ac_cpp conftest.$ac_ext"
13937 case "(($ac_try" in
13938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939   *) ac_try_echo=$ac_try;;
13940 esac
13941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13942 $as_echo "$ac_try_echo") >&5
13943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13944   ac_status=$?
13945   grep -v '^ *+' conftest.er1 >conftest.err
13946   rm -f conftest.er1
13947   cat conftest.err >&5
13948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); } >/dev/null && {
13950          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13951          test ! -s conftest.err
13952        }; then
13953   ac_header_preproc=yes
13954 else
13955   $as_echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13957
13958   ac_header_preproc=no
13959 fi
13960
13961 rm -f conftest.err conftest.$ac_ext
13962 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13963 $as_echo "$ac_header_preproc" >&6; }
13964
13965 # So?  What about this header?
13966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13967   yes:no: )
13968     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13969 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13970     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13971 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13972     ac_header_preproc=yes
13973     ;;
13974   no:yes:* )
13975     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13976 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13977     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13978 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13979     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13980 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13981     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13982 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13983     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13984 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13985     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13986 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13987     ( cat <<\_ASBOX
13988 ## ---------------------------------------- ##
13989 ## Report this to pgsql-bugs@postgresql.org ##
13990 ## ---------------------------------------- ##
13991 _ASBOX
13992      ) | sed "s/^/$as_me: WARNING:     /" >&2
13993     ;;
13994 esac
13995 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13996 $as_echo_n "checking for $ac_header... " >&6; }
13997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13998   $as_echo_n "(cached) " >&6
13999 else
14000   eval "$as_ac_Header=\$ac_header_preproc"
14001 fi
14002 ac_res=`eval 'as_val=${'$as_ac_Header'}
14003                  $as_echo "$as_val"'`
14004                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14005 $as_echo "$ac_res" >&6; }
14006
14007 fi
14008 as_val=`eval 'as_val=${'$as_ac_Header'}
14009                  $as_echo "$as_val"'`
14010    if test "x$as_val" = x""yes; then
14011   cat >>confdefs.h <<_ACEOF
14012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14013 _ACEOF
14014
14015 else
14016
14017
14018 for ac_header in uuid.h
14019 do
14020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14022   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14023 $as_echo_n "checking for $ac_header... " >&6; }
14024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14025   $as_echo_n "(cached) " >&6
14026 fi
14027 ac_res=`eval 'as_val=${'$as_ac_Header'}
14028                  $as_echo "$as_val"'`
14029                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14030 $as_echo "$ac_res" >&6; }
14031 else
14032   # Is the header compilable?
14033 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14034 $as_echo_n "checking $ac_header usability... " >&6; }
14035 cat >conftest.$ac_ext <<_ACEOF
14036 /* confdefs.h.  */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h.  */
14041 $ac_includes_default
14042 #include <$ac_header>
14043 _ACEOF
14044 rm -f conftest.$ac_objext
14045 if { (ac_try="$ac_compile"
14046 case "(($ac_try" in
14047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048   *) ac_try_echo=$ac_try;;
14049 esac
14050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14051 $as_echo "$ac_try_echo") >&5
14052   (eval "$ac_compile") 2>conftest.er1
14053   ac_status=$?
14054   grep -v '^ *+' conftest.er1 >conftest.err
14055   rm -f conftest.er1
14056   cat conftest.err >&5
14057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); } && {
14059          test -z "$ac_c_werror_flag" ||
14060          test ! -s conftest.err
14061        } && test -s conftest.$ac_objext; then
14062   ac_header_compiler=yes
14063 else
14064   $as_echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14066
14067         ac_header_compiler=no
14068 fi
14069
14070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14072 $as_echo "$ac_header_compiler" >&6; }
14073
14074 # Is the header present?
14075 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14076 $as_echo_n "checking $ac_header presence... " >&6; }
14077 cat >conftest.$ac_ext <<_ACEOF
14078 /* confdefs.h.  */
14079 _ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h.  */
14083 #include <$ac_header>
14084 _ACEOF
14085 if { (ac_try="$ac_cpp conftest.$ac_ext"
14086 case "(($ac_try" in
14087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088   *) ac_try_echo=$ac_try;;
14089 esac
14090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14091 $as_echo "$ac_try_echo") >&5
14092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14093   ac_status=$?
14094   grep -v '^ *+' conftest.er1 >conftest.err
14095   rm -f conftest.er1
14096   cat conftest.err >&5
14097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); } >/dev/null && {
14099          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14100          test ! -s conftest.err
14101        }; then
14102   ac_header_preproc=yes
14103 else
14104   $as_echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14106
14107   ac_header_preproc=no
14108 fi
14109
14110 rm -f conftest.err conftest.$ac_ext
14111 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14112 $as_echo "$ac_header_preproc" >&6; }
14113
14114 # So?  What about this header?
14115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14116   yes:no: )
14117     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14118 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14119     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14121     ac_header_preproc=yes
14122     ;;
14123   no:yes:* )
14124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14125 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14126     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14127 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14128     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14129 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14130     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14131 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14132     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14133 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14135 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14136     ( cat <<\_ASBOX
14137 ## ---------------------------------------- ##
14138 ## Report this to pgsql-bugs@postgresql.org ##
14139 ## ---------------------------------------- ##
14140 _ASBOX
14141      ) | sed "s/^/$as_me: WARNING:     /" >&2
14142     ;;
14143 esac
14144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14145 $as_echo_n "checking for $ac_header... " >&6; }
14146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14147   $as_echo_n "(cached) " >&6
14148 else
14149   eval "$as_ac_Header=\$ac_header_preproc"
14150 fi
14151 ac_res=`eval 'as_val=${'$as_ac_Header'}
14152                  $as_echo "$as_val"'`
14153                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14154 $as_echo "$ac_res" >&6; }
14155
14156 fi
14157 as_val=`eval 'as_val=${'$as_ac_Header'}
14158                  $as_echo "$as_val"'`
14159    if test "x$as_val" = x""yes; then
14160   cat >>confdefs.h <<_ACEOF
14161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14162 _ACEOF
14163
14164 else
14165   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14166 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14167    { (exit 1); exit 1; }; }
14168 fi
14169
14170 done
14171
14172 fi
14173
14174 done
14175
14176 fi
14177
14178
14179 ##
14180 ## Types, structures, compiler characteristics
14181 ##
14182
14183
14184  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14185 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14186 if test "${ac_cv_c_bigendian+set}" = set; then
14187   $as_echo_n "(cached) " >&6
14188 else
14189   ac_cv_c_bigendian=unknown
14190     # See if we're dealing with a universal compiler.
14191     cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h.  */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h.  */
14197 #ifndef __APPLE_CC__
14198                not a universal capable compiler
14199              #endif
14200              typedef int dummy;
14201
14202 _ACEOF
14203 rm -f conftest.$ac_objext
14204 if { (ac_try="$ac_compile"
14205 case "(($ac_try" in
14206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207   *) ac_try_echo=$ac_try;;
14208 esac
14209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14210 $as_echo "$ac_try_echo") >&5
14211   (eval "$ac_compile") 2>conftest.er1
14212   ac_status=$?
14213   grep -v '^ *+' conftest.er1 >conftest.err
14214   rm -f conftest.er1
14215   cat conftest.err >&5
14216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); } && {
14218          test -z "$ac_c_werror_flag" ||
14219          test ! -s conftest.err
14220        } && test -s conftest.$ac_objext; then
14221
14222         # Check for potential -arch flags.  It is not universal unless
14223         # there are some -arch flags.  Note that *ppc* also matches
14224         # ppc64.  This check is also rather less than ideal.
14225         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14226           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14227         esac
14228 else
14229   $as_echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14231
14232
14233 fi
14234
14235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14236     if test $ac_cv_c_bigendian = unknown; then
14237       # See if sys/param.h defines the BYTE_ORDER macro.
14238       cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h.  */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h.  */
14244 #include <sys/types.h>
14245              #include <sys/param.h>
14246
14247 int
14248 main ()
14249 {
14250 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14251                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14252                      && LITTLE_ENDIAN)
14253               bogus endian macros
14254              #endif
14255
14256   ;
14257   return 0;
14258 }
14259 _ACEOF
14260 rm -f conftest.$ac_objext
14261 if { (ac_try="$ac_compile"
14262 case "(($ac_try" in
14263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264   *) ac_try_echo=$ac_try;;
14265 esac
14266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14267 $as_echo "$ac_try_echo") >&5
14268   (eval "$ac_compile") 2>conftest.er1
14269   ac_status=$?
14270   grep -v '^ *+' conftest.er1 >conftest.err
14271   rm -f conftest.er1
14272   cat conftest.err >&5
14273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); } && {
14275          test -z "$ac_c_werror_flag" ||
14276          test ! -s conftest.err
14277        } && test -s conftest.$ac_objext; then
14278   # It does; now see whether it defined to BIG_ENDIAN or not.
14279          cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h.  */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h.  */
14285 #include <sys/types.h>
14286                 #include <sys/param.h>
14287
14288 int
14289 main ()
14290 {
14291 #if BYTE_ORDER != BIG_ENDIAN
14292                  not big endian
14293                 #endif
14294
14295   ;
14296   return 0;
14297 }
14298 _ACEOF
14299 rm -f conftest.$ac_objext
14300 if { (ac_try="$ac_compile"
14301 case "(($ac_try" in
14302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303   *) ac_try_echo=$ac_try;;
14304 esac
14305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14306 $as_echo "$ac_try_echo") >&5
14307   (eval "$ac_compile") 2>conftest.er1
14308   ac_status=$?
14309   grep -v '^ *+' conftest.er1 >conftest.err
14310   rm -f conftest.er1
14311   cat conftest.err >&5
14312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } && {
14314          test -z "$ac_c_werror_flag" ||
14315          test ! -s conftest.err
14316        } && test -s conftest.$ac_objext; then
14317   ac_cv_c_bigendian=yes
14318 else
14319   $as_echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14321
14322         ac_cv_c_bigendian=no
14323 fi
14324
14325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14326 else
14327   $as_echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330
14331 fi
14332
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334     fi
14335     if test $ac_cv_c_bigendian = unknown; then
14336       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14337       cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h.  */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h.  */
14343 #include <limits.h>
14344
14345 int
14346 main ()
14347 {
14348 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14349               bogus endian macros
14350              #endif
14351
14352   ;
14353   return 0;
14354 }
14355 _ACEOF
14356 rm -f conftest.$ac_objext
14357 if { (ac_try="$ac_compile"
14358 case "(($ac_try" in
14359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360   *) ac_try_echo=$ac_try;;
14361 esac
14362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14363 $as_echo "$ac_try_echo") >&5
14364   (eval "$ac_compile") 2>conftest.er1
14365   ac_status=$?
14366   grep -v '^ *+' conftest.er1 >conftest.err
14367   rm -f conftest.er1
14368   cat conftest.err >&5
14369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); } && {
14371          test -z "$ac_c_werror_flag" ||
14372          test ! -s conftest.err
14373        } && test -s conftest.$ac_objext; then
14374   # It does; now see whether it defined to _BIG_ENDIAN or not.
14375          cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h.  */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h.  */
14381 #include <limits.h>
14382
14383 int
14384 main ()
14385 {
14386 #ifndef _BIG_ENDIAN
14387                  not big endian
14388                 #endif
14389
14390   ;
14391   return 0;
14392 }
14393 _ACEOF
14394 rm -f conftest.$ac_objext
14395 if { (ac_try="$ac_compile"
14396 case "(($ac_try" in
14397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398   *) ac_try_echo=$ac_try;;
14399 esac
14400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14401 $as_echo "$ac_try_echo") >&5
14402   (eval "$ac_compile") 2>conftest.er1
14403   ac_status=$?
14404   grep -v '^ *+' conftest.er1 >conftest.err
14405   rm -f conftest.er1
14406   cat conftest.err >&5
14407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); } && {
14409          test -z "$ac_c_werror_flag" ||
14410          test ! -s conftest.err
14411        } && test -s conftest.$ac_objext; then
14412   ac_cv_c_bigendian=yes
14413 else
14414   $as_echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14416
14417         ac_cv_c_bigendian=no
14418 fi
14419
14420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421 else
14422   $as_echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14424
14425
14426 fi
14427
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429     fi
14430     if test $ac_cv_c_bigendian = unknown; then
14431       # Compile a test program.
14432       if test "$cross_compiling" = yes; then
14433   # Try to guess by grepping values from an object file.
14434          cat >conftest.$ac_ext <<_ACEOF
14435 /* confdefs.h.  */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h.  */
14440 short int ascii_mm[] =
14441                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14442                 short int ascii_ii[] =
14443                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14444                 int use_ascii (int i) {
14445                   return ascii_mm[i] + ascii_ii[i];
14446                 }
14447                 short int ebcdic_ii[] =
14448                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14449                 short int ebcdic_mm[] =
14450                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14451                 int use_ebcdic (int i) {
14452                   return ebcdic_mm[i] + ebcdic_ii[i];
14453                 }
14454                 extern int foo;
14455
14456 int
14457 main ()
14458 {
14459 return use_ascii (foo) == use_ebcdic (foo);
14460   ;
14461   return 0;
14462 }
14463 _ACEOF
14464 rm -f conftest.$ac_objext
14465 if { (ac_try="$ac_compile"
14466 case "(($ac_try" in
14467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468   *) ac_try_echo=$ac_try;;
14469 esac
14470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14471 $as_echo "$ac_try_echo") >&5
14472   (eval "$ac_compile") 2>conftest.er1
14473   ac_status=$?
14474   grep -v '^ *+' conftest.er1 >conftest.err
14475   rm -f conftest.er1
14476   cat conftest.err >&5
14477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); } && {
14479          test -z "$ac_c_werror_flag" ||
14480          test ! -s conftest.err
14481        } && test -s conftest.$ac_objext; then
14482   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14483               ac_cv_c_bigendian=yes
14484             fi
14485             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14486               if test "$ac_cv_c_bigendian" = unknown; then
14487                 ac_cv_c_bigendian=no
14488               else
14489                 # finding both strings is unlikely to happen, but who knows?
14490                 ac_cv_c_bigendian=unknown
14491               fi
14492             fi
14493 else
14494   $as_echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14496
14497
14498 fi
14499
14500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14501 else
14502   cat >conftest.$ac_ext <<_ACEOF
14503 /* confdefs.h.  */
14504 _ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h.  */
14508 $ac_includes_default
14509 int
14510 main ()
14511 {
14512
14513              /* Are we little or big endian?  From Harbison&Steele.  */
14514              union
14515              {
14516                long int l;
14517                char c[sizeof (long int)];
14518              } u;
14519              u.l = 1;
14520              return u.c[sizeof (long int) - 1] == 1;
14521
14522   ;
14523   return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest$ac_exeext
14527 if { (ac_try="$ac_link"
14528 case "(($ac_try" in
14529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530   *) ac_try_echo=$ac_try;;
14531 esac
14532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14533 $as_echo "$ac_try_echo") >&5
14534   (eval "$ac_link") 2>&5
14535   ac_status=$?
14536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14538   { (case "(($ac_try" in
14539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540   *) ac_try_echo=$ac_try;;
14541 esac
14542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14543 $as_echo "$ac_try_echo") >&5
14544   (eval "$ac_try") 2>&5
14545   ac_status=$?
14546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); }; }; then
14548   ac_cv_c_bigendian=no
14549 else
14550   $as_echo "$as_me: program exited with status $ac_status" >&5
14551 $as_echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14553
14554 ( exit $ac_status )
14555 ac_cv_c_bigendian=yes
14556 fi
14557 rm -rf conftest.dSYM
14558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14559 fi
14560
14561
14562     fi
14563 fi
14564 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14565 $as_echo "$ac_cv_c_bigendian" >&6; }
14566  case $ac_cv_c_bigendian in #(
14567    yes)
14568      cat >>confdefs.h <<\_ACEOF
14569 #define WORDS_BIGENDIAN 1
14570 _ACEOF
14571 ;; #(
14572    no)
14573       ;; #(
14574    universal)
14575
14576 cat >>confdefs.h <<\_ACEOF
14577 #define AC_APPLE_UNIVERSAL_BUILD 1
14578 _ACEOF
14579
14580      ;; #(
14581    *)
14582      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14583  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14584 $as_echo "$as_me: error: unknown endianness
14585  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14586    { (exit 1); exit 1; }; } ;;
14587  esac
14588
14589 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14590 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14591 if test "${ac_cv_c_const+set}" = set; then
14592   $as_echo_n "(cached) " >&6
14593 else
14594   cat >conftest.$ac_ext <<_ACEOF
14595 /* confdefs.h.  */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h.  */
14600
14601 int
14602 main ()
14603 {
14604 /* FIXME: Include the comments suggested by Paul. */
14605 #ifndef __cplusplus
14606   /* Ultrix mips cc rejects this.  */
14607   typedef int charset[2];
14608   const charset cs;
14609   /* SunOS 4.1.1 cc rejects this.  */
14610   char const *const *pcpcc;
14611   char **ppc;
14612   /* NEC SVR4.0.2 mips cc rejects this.  */
14613   struct point {int x, y;};
14614   static struct point const zero = {0,0};
14615   /* AIX XL C 1.02.0.0 rejects this.
14616      It does not let you subtract one const X* pointer from another in
14617      an arm of an if-expression whose if-part is not a constant
14618      expression */
14619   const char *g = "string";
14620   pcpcc = &g + (g ? g-g : 0);
14621   /* HPUX 7.0 cc rejects these. */
14622   ++pcpcc;
14623   ppc = (char**) pcpcc;
14624   pcpcc = (char const *const *) ppc;
14625   { /* SCO 3.2v4 cc rejects this.  */
14626     char *t;
14627     char const *s = 0 ? (char *) 0 : (char const *) 0;
14628
14629     *t++ = 0;
14630     if (s) return 0;
14631   }
14632   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14633     int x[] = {25, 17};
14634     const int *foo = &x[0];
14635     ++foo;
14636   }
14637   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14638     typedef const int *iptr;
14639     iptr p = 0;
14640     ++p;
14641   }
14642   { /* AIX XL C 1.02.0.0 rejects this saying
14643        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14644     struct s { int j; const int *ap[3]; };
14645     struct s *b; b->j = 5;
14646   }
14647   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14648     const int foo = 10;
14649     if (!foo) return 0;
14650   }
14651   return !cs[0] && !zero.x;
14652 #endif
14653
14654   ;
14655   return 0;
14656 }
14657 _ACEOF
14658 rm -f conftest.$ac_objext
14659 if { (ac_try="$ac_compile"
14660 case "(($ac_try" in
14661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662   *) ac_try_echo=$ac_try;;
14663 esac
14664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14665 $as_echo "$ac_try_echo") >&5
14666   (eval "$ac_compile") 2>conftest.er1
14667   ac_status=$?
14668   grep -v '^ *+' conftest.er1 >conftest.err
14669   rm -f conftest.er1
14670   cat conftest.err >&5
14671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); } && {
14673          test -z "$ac_c_werror_flag" ||
14674          test ! -s conftest.err
14675        } && test -s conftest.$ac_objext; then
14676   ac_cv_c_const=yes
14677 else
14678   $as_echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14680
14681         ac_cv_c_const=no
14682 fi
14683
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 fi
14686 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14687 $as_echo "$ac_cv_c_const" >&6; }
14688 if test $ac_cv_c_const = no; then
14689
14690 cat >>confdefs.h <<\_ACEOF
14691 #define const /**/
14692 _ACEOF
14693
14694 fi
14695
14696 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14697 $as_echo_n "checking for inline... " >&6; }
14698 if test "${ac_cv_c_inline+set}" = set; then
14699   $as_echo_n "(cached) " >&6
14700 else
14701   ac_cv_c_inline=no
14702 for ac_kw in inline __inline__ __inline; do
14703   cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h.  */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h.  */
14709 #ifndef __cplusplus
14710 typedef int foo_t;
14711 static $ac_kw foo_t static_foo () {return 0; }
14712 $ac_kw foo_t foo () {return 0; }
14713 #endif
14714
14715 _ACEOF
14716 rm -f conftest.$ac_objext
14717 if { (ac_try="$ac_compile"
14718 case "(($ac_try" in
14719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720   *) ac_try_echo=$ac_try;;
14721 esac
14722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14723 $as_echo "$ac_try_echo") >&5
14724   (eval "$ac_compile") 2>conftest.er1
14725   ac_status=$?
14726   grep -v '^ *+' conftest.er1 >conftest.err
14727   rm -f conftest.er1
14728   cat conftest.err >&5
14729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); } && {
14731          test -z "$ac_c_werror_flag" ||
14732          test ! -s conftest.err
14733        } && test -s conftest.$ac_objext; then
14734   ac_cv_c_inline=$ac_kw
14735 else
14736   $as_echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14738
14739
14740 fi
14741
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743   test "$ac_cv_c_inline" != no && break
14744 done
14745
14746 fi
14747 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14748 $as_echo "$ac_cv_c_inline" >&6; }
14749
14750
14751 case $ac_cv_c_inline in
14752   inline | yes) ;;
14753   *)
14754     case $ac_cv_c_inline in
14755       no) ac_val=;;
14756       *) ac_val=$ac_cv_c_inline;;
14757     esac
14758     cat >>confdefs.h <<_ACEOF
14759 #ifndef __cplusplus
14760 #define inline $ac_val
14761 #endif
14762 _ACEOF
14763     ;;
14764 esac
14765
14766 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14767 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14768 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14769   $as_echo_n "(cached) " >&6
14770 else
14771   pgac_cv_c_inline_quietly=no
14772   if test "$ac_cv_c_inline" != no; then
14773     pgac_c_inline_save_werror=$ac_c_werror_flag
14774     ac_c_werror_flag=yes
14775     cat >conftest.$ac_ext <<_ACEOF
14776 /* confdefs.h.  */
14777 _ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h.  */
14781 static inline int fun () {return 0;}
14782 int
14783 main ()
14784 {
14785
14786   ;
14787   return 0;
14788 }
14789 _ACEOF
14790 rm -f conftest.$ac_objext conftest$ac_exeext
14791 if { (ac_try="$ac_link"
14792 case "(($ac_try" in
14793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794   *) ac_try_echo=$ac_try;;
14795 esac
14796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14797 $as_echo "$ac_try_echo") >&5
14798   (eval "$ac_link") 2>conftest.er1
14799   ac_status=$?
14800   grep -v '^ *+' conftest.er1 >conftest.err
14801   rm -f conftest.er1
14802   cat conftest.err >&5
14803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); } && {
14805          test -z "$ac_c_werror_flag" ||
14806          test ! -s conftest.err
14807        } && test -s conftest$ac_exeext && {
14808          test "$cross_compiling" = yes ||
14809          $as_test_x conftest$ac_exeext
14810        }; then
14811   pgac_cv_c_inline_quietly=yes
14812 else
14813   $as_echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14815
14816
14817 fi
14818
14819 rm -rf conftest.dSYM
14820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14821       conftest$ac_exeext conftest.$ac_ext
14822     ac_c_werror_flag=$pgac_c_inline_save_werror
14823   fi
14824 fi
14825 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14826 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14827 if test "$pgac_cv_c_inline_quietly" != no; then
14828
14829 cat >>confdefs.h <<_ACEOF
14830 #define USE_INLINE 1
14831 _ACEOF
14832
14833 fi
14834
14835 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14836 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14837 if test "${ac_cv_c_stringize+set}" = set; then
14838   $as_echo_n "(cached) " >&6
14839 else
14840   cat >conftest.$ac_ext <<_ACEOF
14841 /* confdefs.h.  */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h.  */
14846 #define x(y) #y
14847
14848 char *s = x(teststring);
14849 _ACEOF
14850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14851   $EGREP "#teststring" >/dev/null 2>&1; then
14852   ac_cv_c_stringize=no
14853 else
14854   ac_cv_c_stringize=yes
14855 fi
14856 rm -f conftest*
14857
14858 fi
14859 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14860 $as_echo "$ac_cv_c_stringize" >&6; }
14861 if test $ac_cv_c_stringize = yes; then
14862
14863 cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_STRINGIZE 1
14865 _ACEOF
14866
14867 fi
14868
14869 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14870 $as_echo_n "checking for signed types... " >&6; }
14871 if test "${pgac_cv_c_signed+set}" = set; then
14872   $as_echo_n "(cached) " >&6
14873 else
14874   cat >conftest.$ac_ext <<_ACEOF
14875 /* confdefs.h.  */
14876 _ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h.  */
14880
14881 int
14882 main ()
14883 {
14884 signed char c; signed short s; signed int i;
14885   ;
14886   return 0;
14887 }
14888 _ACEOF
14889 rm -f conftest.$ac_objext
14890 if { (ac_try="$ac_compile"
14891 case "(($ac_try" in
14892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893   *) ac_try_echo=$ac_try;;
14894 esac
14895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14896 $as_echo "$ac_try_echo") >&5
14897   (eval "$ac_compile") 2>conftest.er1
14898   ac_status=$?
14899   grep -v '^ *+' conftest.er1 >conftest.err
14900   rm -f conftest.er1
14901   cat conftest.err >&5
14902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); } && {
14904          test -z "$ac_c_werror_flag" ||
14905          test ! -s conftest.err
14906        } && test -s conftest.$ac_objext; then
14907   pgac_cv_c_signed=yes
14908 else
14909   $as_echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14911
14912         pgac_cv_c_signed=no
14913 fi
14914
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14916 fi
14917 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14918 $as_echo "$pgac_cv_c_signed" >&6; }
14919 if test x"$pgac_cv_c_signed" = xno ; then
14920
14921 cat >>confdefs.h <<\_ACEOF
14922 #define signed /**/
14923 _ACEOF
14924
14925 fi
14926 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14927 $as_echo_n "checking for working volatile... " >&6; }
14928 if test "${ac_cv_c_volatile+set}" = set; then
14929   $as_echo_n "(cached) " >&6
14930 else
14931   cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h.  */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h.  */
14937
14938 int
14939 main ()
14940 {
14941
14942 volatile int x;
14943 int * volatile y = (int *) 0;
14944 return !x && !y;
14945   ;
14946   return 0;
14947 }
14948 _ACEOF
14949 rm -f conftest.$ac_objext
14950 if { (ac_try="$ac_compile"
14951 case "(($ac_try" in
14952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953   *) ac_try_echo=$ac_try;;
14954 esac
14955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14956 $as_echo "$ac_try_echo") >&5
14957   (eval "$ac_compile") 2>conftest.er1
14958   ac_status=$?
14959   grep -v '^ *+' conftest.er1 >conftest.err
14960   rm -f conftest.er1
14961   cat conftest.err >&5
14962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); } && {
14964          test -z "$ac_c_werror_flag" ||
14965          test ! -s conftest.err
14966        } && test -s conftest.$ac_objext; then
14967   ac_cv_c_volatile=yes
14968 else
14969   $as_echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.$ac_ext >&5
14971
14972         ac_cv_c_volatile=no
14973 fi
14974
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976 fi
14977 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14978 $as_echo "$ac_cv_c_volatile" >&6; }
14979 if test $ac_cv_c_volatile = no; then
14980
14981 cat >>confdefs.h <<\_ACEOF
14982 #define volatile /**/
14983 _ACEOF
14984
14985 fi
14986
14987 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14988 $as_echo_n "checking for __func__... " >&6; }
14989 if test "${pgac_cv_funcname_func_support+set}" = set; then
14990   $as_echo_n "(cached) " >&6
14991 else
14992   cat >conftest.$ac_ext <<_ACEOF
14993 /* confdefs.h.  */
14994 _ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h.  */
14998 #include <stdio.h>
14999 int
15000 main ()
15001 {
15002 printf("%s\n", __func__);
15003   ;
15004   return 0;
15005 }
15006 _ACEOF
15007 rm -f conftest.$ac_objext
15008 if { (ac_try="$ac_compile"
15009 case "(($ac_try" in
15010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011   *) ac_try_echo=$ac_try;;
15012 esac
15013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15014 $as_echo "$ac_try_echo") >&5
15015   (eval "$ac_compile") 2>conftest.er1
15016   ac_status=$?
15017   grep -v '^ *+' conftest.er1 >conftest.err
15018   rm -f conftest.er1
15019   cat conftest.err >&5
15020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); } && {
15022          test -z "$ac_c_werror_flag" ||
15023          test ! -s conftest.err
15024        } && test -s conftest.$ac_objext; then
15025   pgac_cv_funcname_func_support=yes
15026 else
15027   $as_echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030         pgac_cv_funcname_func_support=no
15031 fi
15032
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034 fi
15035 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15036 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15037 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15038
15039 cat >>confdefs.h <<\_ACEOF
15040 #define HAVE_FUNCNAME__FUNC 1
15041 _ACEOF
15042
15043 else
15044 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15045 $as_echo_n "checking for __FUNCTION__... " >&6; }
15046 if test "${pgac_cv_funcname_function_support+set}" = set; then
15047   $as_echo_n "(cached) " >&6
15048 else
15049   cat >conftest.$ac_ext <<_ACEOF
15050 /* confdefs.h.  */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h.  */
15055 #include <stdio.h>
15056 int
15057 main ()
15058 {
15059 printf("%s\n", __FUNCTION__);
15060   ;
15061   return 0;
15062 }
15063 _ACEOF
15064 rm -f conftest.$ac_objext
15065 if { (ac_try="$ac_compile"
15066 case "(($ac_try" in
15067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068   *) ac_try_echo=$ac_try;;
15069 esac
15070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15071 $as_echo "$ac_try_echo") >&5
15072   (eval "$ac_compile") 2>conftest.er1
15073   ac_status=$?
15074   grep -v '^ *+' conftest.er1 >conftest.err
15075   rm -f conftest.er1
15076   cat conftest.err >&5
15077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); } && {
15079          test -z "$ac_c_werror_flag" ||
15080          test ! -s conftest.err
15081        } && test -s conftest.$ac_objext; then
15082   pgac_cv_funcname_function_support=yes
15083 else
15084   $as_echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15086
15087         pgac_cv_funcname_function_support=no
15088 fi
15089
15090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15091 fi
15092 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15093 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15094 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15095
15096 cat >>confdefs.h <<\_ACEOF
15097 #define HAVE_FUNCNAME__FUNCTION 1
15098 _ACEOF
15099
15100 fi
15101 fi
15102 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15103 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15104 if test "${ac_cv_struct_tm+set}" = set; then
15105   $as_echo_n "(cached) " >&6
15106 else
15107   cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h.  */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h.  */
15113 #include <sys/types.h>
15114 #include <time.h>
15115
15116 int
15117 main ()
15118 {
15119 struct tm tm;
15120                                      int *p = &tm.tm_sec;
15121                                      return !p;
15122   ;
15123   return 0;
15124 }
15125 _ACEOF
15126 rm -f conftest.$ac_objext
15127 if { (ac_try="$ac_compile"
15128 case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15133 $as_echo "$ac_try_echo") >&5
15134   (eval "$ac_compile") 2>conftest.er1
15135   ac_status=$?
15136   grep -v '^ *+' conftest.er1 >conftest.err
15137   rm -f conftest.er1
15138   cat conftest.err >&5
15139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); } && {
15141          test -z "$ac_c_werror_flag" ||
15142          test ! -s conftest.err
15143        } && test -s conftest.$ac_objext; then
15144   ac_cv_struct_tm=time.h
15145 else
15146   $as_echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15148
15149         ac_cv_struct_tm=sys/time.h
15150 fi
15151
15152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15153 fi
15154 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15155 $as_echo "$ac_cv_struct_tm" >&6; }
15156 if test $ac_cv_struct_tm = sys/time.h; then
15157
15158 cat >>confdefs.h <<\_ACEOF
15159 #define TM_IN_SYS_TIME 1
15160 _ACEOF
15161
15162 fi
15163
15164 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15165 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15166 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15167   $as_echo_n "(cached) " >&6
15168 else
15169   cat >conftest.$ac_ext <<_ACEOF
15170 /* confdefs.h.  */
15171 _ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h.  */
15175 #include <sys/types.h>
15176 #include <$ac_cv_struct_tm>
15177
15178
15179 int
15180 main ()
15181 {
15182 static struct tm ac_aggr;
15183 if (ac_aggr.tm_zone)
15184 return 0;
15185   ;
15186   return 0;
15187 }
15188 _ACEOF
15189 rm -f conftest.$ac_objext
15190 if { (ac_try="$ac_compile"
15191 case "(($ac_try" in
15192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193   *) ac_try_echo=$ac_try;;
15194 esac
15195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15196 $as_echo "$ac_try_echo") >&5
15197   (eval "$ac_compile") 2>conftest.er1
15198   ac_status=$?
15199   grep -v '^ *+' conftest.er1 >conftest.err
15200   rm -f conftest.er1
15201   cat conftest.err >&5
15202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203   (exit $ac_status); } && {
15204          test -z "$ac_c_werror_flag" ||
15205          test ! -s conftest.err
15206        } && test -s conftest.$ac_objext; then
15207   ac_cv_member_struct_tm_tm_zone=yes
15208 else
15209   $as_echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15211
15212         cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h.  */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h.  */
15218 #include <sys/types.h>
15219 #include <$ac_cv_struct_tm>
15220
15221
15222 int
15223 main ()
15224 {
15225 static struct tm ac_aggr;
15226 if (sizeof ac_aggr.tm_zone)
15227 return 0;
15228   ;
15229   return 0;
15230 }
15231 _ACEOF
15232 rm -f conftest.$ac_objext
15233 if { (ac_try="$ac_compile"
15234 case "(($ac_try" in
15235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236   *) ac_try_echo=$ac_try;;
15237 esac
15238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15239 $as_echo "$ac_try_echo") >&5
15240   (eval "$ac_compile") 2>conftest.er1
15241   ac_status=$?
15242   grep -v '^ *+' conftest.er1 >conftest.err
15243   rm -f conftest.er1
15244   cat conftest.err >&5
15245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); } && {
15247          test -z "$ac_c_werror_flag" ||
15248          test ! -s conftest.err
15249        } && test -s conftest.$ac_objext; then
15250   ac_cv_member_struct_tm_tm_zone=yes
15251 else
15252   $as_echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15254
15255         ac_cv_member_struct_tm_tm_zone=no
15256 fi
15257
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259 fi
15260
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262 fi
15263 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15264 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15265 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15266
15267 cat >>confdefs.h <<_ACEOF
15268 #define HAVE_STRUCT_TM_TM_ZONE 1
15269 _ACEOF
15270
15271
15272 fi
15273
15274 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15275
15276 cat >>confdefs.h <<\_ACEOF
15277 #define HAVE_TM_ZONE 1
15278 _ACEOF
15279
15280 fi
15281 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15282 $as_echo_n "checking for tzname... " >&6; }
15283 if test "${ac_cv_var_tzname+set}" = set; then
15284   $as_echo_n "(cached) " >&6
15285 else
15286   cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h.  */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h.  */
15292 #include <time.h>
15293 #ifndef tzname /* For SGI.  */
15294 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15295 #endif
15296
15297 int
15298 main ()
15299 {
15300 atoi(*tzname);
15301   ;
15302   return 0;
15303 }
15304 _ACEOF
15305 rm -f conftest.$ac_objext conftest$ac_exeext
15306 if { (ac_try="$ac_link"
15307 case "(($ac_try" in
15308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309   *) ac_try_echo=$ac_try;;
15310 esac
15311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15312 $as_echo "$ac_try_echo") >&5
15313   (eval "$ac_link") 2>conftest.er1
15314   ac_status=$?
15315   grep -v '^ *+' conftest.er1 >conftest.err
15316   rm -f conftest.er1
15317   cat conftest.err >&5
15318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319   (exit $ac_status); } && {
15320          test -z "$ac_c_werror_flag" ||
15321          test ! -s conftest.err
15322        } && test -s conftest$ac_exeext && {
15323          test "$cross_compiling" = yes ||
15324          $as_test_x conftest$ac_exeext
15325        }; then
15326   ac_cv_var_tzname=yes
15327 else
15328   $as_echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15330
15331         ac_cv_var_tzname=no
15332 fi
15333
15334 rm -rf conftest.dSYM
15335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15336       conftest$ac_exeext conftest.$ac_ext
15337 fi
15338 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15339 $as_echo "$ac_cv_var_tzname" >&6; }
15340 if test $ac_cv_var_tzname = yes; then
15341
15342 cat >>confdefs.h <<\_ACEOF
15343 #define HAVE_TZNAME 1
15344 _ACEOF
15345
15346 fi
15347
15348 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15349 $as_echo_n "checking for union semun... " >&6; }
15350 if test "${ac_cv_type_union_semun+set}" = set; then
15351   $as_echo_n "(cached) " >&6
15352 else
15353   ac_cv_type_union_semun=no
15354 cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h.  */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h.  */
15360 #include <sys/types.h>
15361 #include <sys/ipc.h>
15362 #include <sys/sem.h>
15363
15364 int
15365 main ()
15366 {
15367 if (sizeof (union semun))
15368        return 0;
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 rm -f conftest.$ac_objext
15374 if { (ac_try="$ac_compile"
15375 case "(($ac_try" in
15376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377   *) ac_try_echo=$ac_try;;
15378 esac
15379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15380 $as_echo "$ac_try_echo") >&5
15381   (eval "$ac_compile") 2>conftest.er1
15382   ac_status=$?
15383   grep -v '^ *+' conftest.er1 >conftest.err
15384   rm -f conftest.er1
15385   cat conftest.err >&5
15386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); } && {
15388          test -z "$ac_c_werror_flag" ||
15389          test ! -s conftest.err
15390        } && test -s conftest.$ac_objext; then
15391   cat >conftest.$ac_ext <<_ACEOF
15392 /* confdefs.h.  */
15393 _ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h.  */
15397 #include <sys/types.h>
15398 #include <sys/ipc.h>
15399 #include <sys/sem.h>
15400
15401 int
15402 main ()
15403 {
15404 if (sizeof ((union semun)))
15405           return 0;
15406   ;
15407   return 0;
15408 }
15409 _ACEOF
15410 rm -f conftest.$ac_objext
15411 if { (ac_try="$ac_compile"
15412 case "(($ac_try" in
15413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414   *) ac_try_echo=$ac_try;;
15415 esac
15416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15417 $as_echo "$ac_try_echo") >&5
15418   (eval "$ac_compile") 2>conftest.er1
15419   ac_status=$?
15420   grep -v '^ *+' conftest.er1 >conftest.err
15421   rm -f conftest.er1
15422   cat conftest.err >&5
15423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); } && {
15425          test -z "$ac_c_werror_flag" ||
15426          test ! -s conftest.err
15427        } && test -s conftest.$ac_objext; then
15428   :
15429 else
15430   $as_echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15432
15433         ac_cv_type_union_semun=yes
15434 fi
15435
15436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437 else
15438   $as_echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15440
15441
15442 fi
15443
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15445 fi
15446 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15447 $as_echo "$ac_cv_type_union_semun" >&6; }
15448 if test "x$ac_cv_type_union_semun" = x""yes; then
15449
15450 cat >>confdefs.h <<_ACEOF
15451 #define HAVE_UNION_SEMUN 1
15452 _ACEOF
15453
15454
15455 fi
15456
15457 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15458 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15459 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15460   $as_echo_n "(cached) " >&6
15461 else
15462   ac_cv_type_struct_sockaddr_un=no
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h.  */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h.  */
15469 #include <sys/types.h>
15470 #ifdef HAVE_SYS_UN_H
15471 #include <sys/un.h>
15472 #endif
15473
15474
15475 int
15476 main ()
15477 {
15478 if (sizeof (struct sockaddr_un))
15479        return 0;
15480   ;
15481   return 0;
15482 }
15483 _ACEOF
15484 rm -f conftest.$ac_objext
15485 if { (ac_try="$ac_compile"
15486 case "(($ac_try" in
15487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488   *) ac_try_echo=$ac_try;;
15489 esac
15490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15491 $as_echo "$ac_try_echo") >&5
15492   (eval "$ac_compile") 2>conftest.er1
15493   ac_status=$?
15494   grep -v '^ *+' conftest.er1 >conftest.err
15495   rm -f conftest.er1
15496   cat conftest.err >&5
15497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); } && {
15499          test -z "$ac_c_werror_flag" ||
15500          test ! -s conftest.err
15501        } && test -s conftest.$ac_objext; then
15502   cat >conftest.$ac_ext <<_ACEOF
15503 /* confdefs.h.  */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h.  */
15508 #include <sys/types.h>
15509 #ifdef HAVE_SYS_UN_H
15510 #include <sys/un.h>
15511 #endif
15512
15513
15514 int
15515 main ()
15516 {
15517 if (sizeof ((struct sockaddr_un)))
15518           return 0;
15519   ;
15520   return 0;
15521 }
15522 _ACEOF
15523 rm -f conftest.$ac_objext
15524 if { (ac_try="$ac_compile"
15525 case "(($ac_try" in
15526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527   *) ac_try_echo=$ac_try;;
15528 esac
15529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15530 $as_echo "$ac_try_echo") >&5
15531   (eval "$ac_compile") 2>conftest.er1
15532   ac_status=$?
15533   grep -v '^ *+' conftest.er1 >conftest.err
15534   rm -f conftest.er1
15535   cat conftest.err >&5
15536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); } && {
15538          test -z "$ac_c_werror_flag" ||
15539          test ! -s conftest.err
15540        } && test -s conftest.$ac_objext; then
15541   :
15542 else
15543   $as_echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15545
15546         ac_cv_type_struct_sockaddr_un=yes
15547 fi
15548
15549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550 else
15551   $as_echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554
15555 fi
15556
15557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558 fi
15559 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15560 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15561 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15562
15563 cat >>confdefs.h <<_ACEOF
15564 #define HAVE_STRUCT_SOCKADDR_UN 1
15565 _ACEOF
15566
15567
15568 cat >>confdefs.h <<\_ACEOF
15569 #define HAVE_UNIX_SOCKETS 1
15570 _ACEOF
15571
15572 fi
15573
15574 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15575 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15576 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15577   $as_echo_n "(cached) " >&6
15578 else
15579   ac_cv_type_struct_sockaddr_storage=no
15580 cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h.  */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h.  */
15586 #include <sys/types.h>
15587 #ifdef HAVE_SYS_SOCKET_H
15588 #include <sys/socket.h>
15589 #endif
15590
15591
15592 int
15593 main ()
15594 {
15595 if (sizeof (struct sockaddr_storage))
15596        return 0;
15597   ;
15598   return 0;
15599 }
15600 _ACEOF
15601 rm -f conftest.$ac_objext
15602 if { (ac_try="$ac_compile"
15603 case "(($ac_try" in
15604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605   *) ac_try_echo=$ac_try;;
15606 esac
15607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15608 $as_echo "$ac_try_echo") >&5
15609   (eval "$ac_compile") 2>conftest.er1
15610   ac_status=$?
15611   grep -v '^ *+' conftest.er1 >conftest.err
15612   rm -f conftest.er1
15613   cat conftest.err >&5
15614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); } && {
15616          test -z "$ac_c_werror_flag" ||
15617          test ! -s conftest.err
15618        } && test -s conftest.$ac_objext; then
15619   cat >conftest.$ac_ext <<_ACEOF
15620 /* confdefs.h.  */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h.  */
15625 #include <sys/types.h>
15626 #ifdef HAVE_SYS_SOCKET_H
15627 #include <sys/socket.h>
15628 #endif
15629
15630
15631 int
15632 main ()
15633 {
15634 if (sizeof ((struct sockaddr_storage)))
15635           return 0;
15636   ;
15637   return 0;
15638 }
15639 _ACEOF
15640 rm -f conftest.$ac_objext
15641 if { (ac_try="$ac_compile"
15642 case "(($ac_try" in
15643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644   *) ac_try_echo=$ac_try;;
15645 esac
15646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15647 $as_echo "$ac_try_echo") >&5
15648   (eval "$ac_compile") 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } && {
15655          test -z "$ac_c_werror_flag" ||
15656          test ! -s conftest.err
15657        } && test -s conftest.$ac_objext; then
15658   :
15659 else
15660   $as_echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15662
15663         ac_cv_type_struct_sockaddr_storage=yes
15664 fi
15665
15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667 else
15668   $as_echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15670
15671
15672 fi
15673
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15675 fi
15676 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15677 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15678 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15679
15680 cat >>confdefs.h <<_ACEOF
15681 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15682 _ACEOF
15683
15684
15685 fi
15686
15687 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15688 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15689 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15690   $as_echo_n "(cached) " >&6
15691 else
15692   cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h.  */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h.  */
15698 #include <sys/types.h>
15699 #ifdef HAVE_SYS_SOCKET_H
15700 #include <sys/socket.h>
15701 #endif
15702
15703
15704 int
15705 main ()
15706 {
15707 static struct sockaddr_storage ac_aggr;
15708 if (ac_aggr.ss_family)
15709 return 0;
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.$ac_objext
15715 if { (ac_try="$ac_compile"
15716 case "(($ac_try" in
15717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718   *) ac_try_echo=$ac_try;;
15719 esac
15720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15721 $as_echo "$ac_try_echo") >&5
15722   (eval "$ac_compile") 2>conftest.er1
15723   ac_status=$?
15724   grep -v '^ *+' conftest.er1 >conftest.err
15725   rm -f conftest.er1
15726   cat conftest.err >&5
15727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); } && {
15729          test -z "$ac_c_werror_flag" ||
15730          test ! -s conftest.err
15731        } && test -s conftest.$ac_objext; then
15732   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15733 else
15734   $as_echo "$as_me: failed program was:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15736
15737         cat >conftest.$ac_ext <<_ACEOF
15738 /* confdefs.h.  */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h.  */
15743 #include <sys/types.h>
15744 #ifdef HAVE_SYS_SOCKET_H
15745 #include <sys/socket.h>
15746 #endif
15747
15748
15749 int
15750 main ()
15751 {
15752 static struct sockaddr_storage ac_aggr;
15753 if (sizeof ac_aggr.ss_family)
15754 return 0;
15755   ;
15756   return 0;
15757 }
15758 _ACEOF
15759 rm -f conftest.$ac_objext
15760 if { (ac_try="$ac_compile"
15761 case "(($ac_try" in
15762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763   *) ac_try_echo=$ac_try;;
15764 esac
15765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15766 $as_echo "$ac_try_echo") >&5
15767   (eval "$ac_compile") 2>conftest.er1
15768   ac_status=$?
15769   grep -v '^ *+' conftest.er1 >conftest.err
15770   rm -f conftest.er1
15771   cat conftest.err >&5
15772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); } && {
15774          test -z "$ac_c_werror_flag" ||
15775          test ! -s conftest.err
15776        } && test -s conftest.$ac_objext; then
15777   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15778 else
15779   $as_echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15781
15782         ac_cv_member_struct_sockaddr_storage_ss_family=no
15783 fi
15784
15785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786 fi
15787
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15789 fi
15790 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15791 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15792 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15793
15794 cat >>confdefs.h <<_ACEOF
15795 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15796 _ACEOF
15797
15798
15799 fi
15800 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15801 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15802 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15803   $as_echo_n "(cached) " >&6
15804 else
15805   cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h.  */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h.  */
15811 #include <sys/types.h>
15812 #ifdef HAVE_SYS_SOCKET_H
15813 #include <sys/socket.h>
15814 #endif
15815
15816
15817 int
15818 main ()
15819 {
15820 static struct sockaddr_storage ac_aggr;
15821 if (ac_aggr.__ss_family)
15822 return 0;
15823   ;
15824   return 0;
15825 }
15826 _ACEOF
15827 rm -f conftest.$ac_objext
15828 if { (ac_try="$ac_compile"
15829 case "(($ac_try" in
15830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831   *) ac_try_echo=$ac_try;;
15832 esac
15833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15834 $as_echo "$ac_try_echo") >&5
15835   (eval "$ac_compile") 2>conftest.er1
15836   ac_status=$?
15837   grep -v '^ *+' conftest.er1 >conftest.err
15838   rm -f conftest.er1
15839   cat conftest.err >&5
15840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); } && {
15842          test -z "$ac_c_werror_flag" ||
15843          test ! -s conftest.err
15844        } && test -s conftest.$ac_objext; then
15845   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15846 else
15847   $as_echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15849
15850         cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h.  */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h.  */
15856 #include <sys/types.h>
15857 #ifdef HAVE_SYS_SOCKET_H
15858 #include <sys/socket.h>
15859 #endif
15860
15861
15862 int
15863 main ()
15864 {
15865 static struct sockaddr_storage ac_aggr;
15866 if (sizeof ac_aggr.__ss_family)
15867 return 0;
15868   ;
15869   return 0;
15870 }
15871 _ACEOF
15872 rm -f conftest.$ac_objext
15873 if { (ac_try="$ac_compile"
15874 case "(($ac_try" in
15875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876   *) ac_try_echo=$ac_try;;
15877 esac
15878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15879 $as_echo "$ac_try_echo") >&5
15880   (eval "$ac_compile") 2>conftest.er1
15881   ac_status=$?
15882   grep -v '^ *+' conftest.er1 >conftest.err
15883   rm -f conftest.er1
15884   cat conftest.err >&5
15885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); } && {
15887          test -z "$ac_c_werror_flag" ||
15888          test ! -s conftest.err
15889        } && test -s conftest.$ac_objext; then
15890   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15891 else
15892   $as_echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15894
15895         ac_cv_member_struct_sockaddr_storage___ss_family=no
15896 fi
15897
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899 fi
15900
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 fi
15903 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15904 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15905 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15906
15907 cat >>confdefs.h <<_ACEOF
15908 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15909 _ACEOF
15910
15911
15912 fi
15913 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15914 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15915 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15916   $as_echo_n "(cached) " >&6
15917 else
15918   cat >conftest.$ac_ext <<_ACEOF
15919 /* confdefs.h.  */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h.  */
15924 #include <sys/types.h>
15925 #ifdef HAVE_SYS_SOCKET_H
15926 #include <sys/socket.h>
15927 #endif
15928
15929
15930 int
15931 main ()
15932 {
15933 static struct sockaddr_storage ac_aggr;
15934 if (ac_aggr.ss_len)
15935 return 0;
15936   ;
15937   return 0;
15938 }
15939 _ACEOF
15940 rm -f conftest.$ac_objext
15941 if { (ac_try="$ac_compile"
15942 case "(($ac_try" in
15943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944   *) ac_try_echo=$ac_try;;
15945 esac
15946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15947 $as_echo "$ac_try_echo") >&5
15948   (eval "$ac_compile") 2>conftest.er1
15949   ac_status=$?
15950   grep -v '^ *+' conftest.er1 >conftest.err
15951   rm -f conftest.er1
15952   cat conftest.err >&5
15953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954   (exit $ac_status); } && {
15955          test -z "$ac_c_werror_flag" ||
15956          test ! -s conftest.err
15957        } && test -s conftest.$ac_objext; then
15958   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15959 else
15960   $as_echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15962
15963         cat >conftest.$ac_ext <<_ACEOF
15964 /* confdefs.h.  */
15965 _ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h.  */
15969 #include <sys/types.h>
15970 #ifdef HAVE_SYS_SOCKET_H
15971 #include <sys/socket.h>
15972 #endif
15973
15974
15975 int
15976 main ()
15977 {
15978 static struct sockaddr_storage ac_aggr;
15979 if (sizeof ac_aggr.ss_len)
15980 return 0;
15981   ;
15982   return 0;
15983 }
15984 _ACEOF
15985 rm -f conftest.$ac_objext
15986 if { (ac_try="$ac_compile"
15987 case "(($ac_try" in
15988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989   *) ac_try_echo=$ac_try;;
15990 esac
15991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15992 $as_echo "$ac_try_echo") >&5
15993   (eval "$ac_compile") 2>conftest.er1
15994   ac_status=$?
15995   grep -v '^ *+' conftest.er1 >conftest.err
15996   rm -f conftest.er1
15997   cat conftest.err >&5
15998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); } && {
16000          test -z "$ac_c_werror_flag" ||
16001          test ! -s conftest.err
16002        } && test -s conftest.$ac_objext; then
16003   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16004 else
16005   $as_echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16007
16008         ac_cv_member_struct_sockaddr_storage_ss_len=no
16009 fi
16010
16011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16012 fi
16013
16014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16015 fi
16016 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16017 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16018 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16019
16020 cat >>confdefs.h <<_ACEOF
16021 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16022 _ACEOF
16023
16024
16025 fi
16026 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16027 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16028 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16029   $as_echo_n "(cached) " >&6
16030 else
16031   cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h.  */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h.  */
16037 #include <sys/types.h>
16038 #ifdef HAVE_SYS_SOCKET_H
16039 #include <sys/socket.h>
16040 #endif
16041
16042
16043 int
16044 main ()
16045 {
16046 static struct sockaddr_storage ac_aggr;
16047 if (ac_aggr.__ss_len)
16048 return 0;
16049   ;
16050   return 0;
16051 }
16052 _ACEOF
16053 rm -f conftest.$ac_objext
16054 if { (ac_try="$ac_compile"
16055 case "(($ac_try" in
16056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057   *) ac_try_echo=$ac_try;;
16058 esac
16059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16060 $as_echo "$ac_try_echo") >&5
16061   (eval "$ac_compile") 2>conftest.er1
16062   ac_status=$?
16063   grep -v '^ *+' conftest.er1 >conftest.err
16064   rm -f conftest.er1
16065   cat conftest.err >&5
16066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); } && {
16068          test -z "$ac_c_werror_flag" ||
16069          test ! -s conftest.err
16070        } && test -s conftest.$ac_objext; then
16071   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16072 else
16073   $as_echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16075
16076         cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h.  */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h.  */
16082 #include <sys/types.h>
16083 #ifdef HAVE_SYS_SOCKET_H
16084 #include <sys/socket.h>
16085 #endif
16086
16087
16088 int
16089 main ()
16090 {
16091 static struct sockaddr_storage ac_aggr;
16092 if (sizeof ac_aggr.__ss_len)
16093 return 0;
16094   ;
16095   return 0;
16096 }
16097 _ACEOF
16098 rm -f conftest.$ac_objext
16099 if { (ac_try="$ac_compile"
16100 case "(($ac_try" in
16101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102   *) ac_try_echo=$ac_try;;
16103 esac
16104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16105 $as_echo "$ac_try_echo") >&5
16106   (eval "$ac_compile") 2>conftest.er1
16107   ac_status=$?
16108   grep -v '^ *+' conftest.er1 >conftest.err
16109   rm -f conftest.er1
16110   cat conftest.err >&5
16111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); } && {
16113          test -z "$ac_c_werror_flag" ||
16114          test ! -s conftest.err
16115        } && test -s conftest.$ac_objext; then
16116   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16117 else
16118   $as_echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16120
16121         ac_cv_member_struct_sockaddr_storage___ss_len=no
16122 fi
16123
16124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16125 fi
16126
16127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16128 fi
16129 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16130 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16131 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16132
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16135 _ACEOF
16136
16137
16138 fi
16139 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16140 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16141 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16142   $as_echo_n "(cached) " >&6
16143 else
16144   cat >conftest.$ac_ext <<_ACEOF
16145 /* confdefs.h.  */
16146 _ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h.  */
16150 #include <sys/types.h>
16151 #ifdef HAVE_SYS_SOCKET_H
16152 #include <sys/socket.h>
16153 #endif
16154
16155
16156 int
16157 main ()
16158 {
16159 static struct sockaddr ac_aggr;
16160 if (ac_aggr.sa_len)
16161 return 0;
16162   ;
16163   return 0;
16164 }
16165 _ACEOF
16166 rm -f conftest.$ac_objext
16167 if { (ac_try="$ac_compile"
16168 case "(($ac_try" in
16169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170   *) ac_try_echo=$ac_try;;
16171 esac
16172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16173 $as_echo "$ac_try_echo") >&5
16174   (eval "$ac_compile") 2>conftest.er1
16175   ac_status=$?
16176   grep -v '^ *+' conftest.er1 >conftest.err
16177   rm -f conftest.er1
16178   cat conftest.err >&5
16179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); } && {
16181          test -z "$ac_c_werror_flag" ||
16182          test ! -s conftest.err
16183        } && test -s conftest.$ac_objext; then
16184   ac_cv_member_struct_sockaddr_sa_len=yes
16185 else
16186   $as_echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16188
16189         cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h.  */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h.  */
16195 #include <sys/types.h>
16196 #ifdef HAVE_SYS_SOCKET_H
16197 #include <sys/socket.h>
16198 #endif
16199
16200
16201 int
16202 main ()
16203 {
16204 static struct sockaddr ac_aggr;
16205 if (sizeof ac_aggr.sa_len)
16206 return 0;
16207   ;
16208   return 0;
16209 }
16210 _ACEOF
16211 rm -f conftest.$ac_objext
16212 if { (ac_try="$ac_compile"
16213 case "(($ac_try" in
16214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215   *) ac_try_echo=$ac_try;;
16216 esac
16217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16218 $as_echo "$ac_try_echo") >&5
16219   (eval "$ac_compile") 2>conftest.er1
16220   ac_status=$?
16221   grep -v '^ *+' conftest.er1 >conftest.err
16222   rm -f conftest.er1
16223   cat conftest.err >&5
16224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); } && {
16226          test -z "$ac_c_werror_flag" ||
16227          test ! -s conftest.err
16228        } && test -s conftest.$ac_objext; then
16229   ac_cv_member_struct_sockaddr_sa_len=yes
16230 else
16231   $as_echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16233
16234         ac_cv_member_struct_sockaddr_sa_len=no
16235 fi
16236
16237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 fi
16239
16240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241 fi
16242 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16243 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16244 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16245
16246 cat >>confdefs.h <<_ACEOF
16247 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16248 _ACEOF
16249
16250
16251 fi
16252
16253 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16254 $as_echo_n "checking for struct addrinfo... " >&6; }
16255 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16256   $as_echo_n "(cached) " >&6
16257 else
16258   ac_cv_type_struct_addrinfo=no
16259 cat >conftest.$ac_ext <<_ACEOF
16260 /* confdefs.h.  */
16261 _ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h.  */
16265 #include <sys/types.h>
16266 #include <sys/socket.h>
16267 #include <netdb.h>
16268
16269
16270 int
16271 main ()
16272 {
16273 if (sizeof (struct addrinfo))
16274        return 0;
16275   ;
16276   return 0;
16277 }
16278 _ACEOF
16279 rm -f conftest.$ac_objext
16280 if { (ac_try="$ac_compile"
16281 case "(($ac_try" in
16282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283   *) ac_try_echo=$ac_try;;
16284 esac
16285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16286 $as_echo "$ac_try_echo") >&5
16287   (eval "$ac_compile") 2>conftest.er1
16288   ac_status=$?
16289   grep -v '^ *+' conftest.er1 >conftest.err
16290   rm -f conftest.er1
16291   cat conftest.err >&5
16292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); } && {
16294          test -z "$ac_c_werror_flag" ||
16295          test ! -s conftest.err
16296        } && test -s conftest.$ac_objext; then
16297   cat >conftest.$ac_ext <<_ACEOF
16298 /* confdefs.h.  */
16299 _ACEOF
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h.  */
16303 #include <sys/types.h>
16304 #include <sys/socket.h>
16305 #include <netdb.h>
16306
16307
16308 int
16309 main ()
16310 {
16311 if (sizeof ((struct addrinfo)))
16312           return 0;
16313   ;
16314   return 0;
16315 }
16316 _ACEOF
16317 rm -f conftest.$ac_objext
16318 if { (ac_try="$ac_compile"
16319 case "(($ac_try" in
16320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16321   *) ac_try_echo=$ac_try;;
16322 esac
16323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16324 $as_echo "$ac_try_echo") >&5
16325   (eval "$ac_compile") 2>conftest.er1
16326   ac_status=$?
16327   grep -v '^ *+' conftest.er1 >conftest.err
16328   rm -f conftest.er1
16329   cat conftest.err >&5
16330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); } && {
16332          test -z "$ac_c_werror_flag" ||
16333          test ! -s conftest.err
16334        } && test -s conftest.$ac_objext; then
16335   :
16336 else
16337   $as_echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340         ac_cv_type_struct_addrinfo=yes
16341 fi
16342
16343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16344 else
16345   $as_echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347
16348
16349 fi
16350
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352 fi
16353 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16354 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16355 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16356
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_STRUCT_ADDRINFO 1
16359 _ACEOF
16360
16361
16362 fi
16363
16364
16365   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16366 $as_echo_n "checking for intptr_t... " >&6; }
16367 if test "${ac_cv_type_intptr_t+set}" = set; then
16368   $as_echo_n "(cached) " >&6
16369 else
16370   ac_cv_type_intptr_t=no
16371 cat >conftest.$ac_ext <<_ACEOF
16372 /* confdefs.h.  */
16373 _ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h.  */
16377 $ac_includes_default
16378 int
16379 main ()
16380 {
16381 if (sizeof (intptr_t))
16382        return 0;
16383   ;
16384   return 0;
16385 }
16386 _ACEOF
16387 rm -f conftest.$ac_objext
16388 if { (ac_try="$ac_compile"
16389 case "(($ac_try" in
16390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391   *) ac_try_echo=$ac_try;;
16392 esac
16393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16394 $as_echo "$ac_try_echo") >&5
16395   (eval "$ac_compile") 2>conftest.er1
16396   ac_status=$?
16397   grep -v '^ *+' conftest.er1 >conftest.err
16398   rm -f conftest.er1
16399   cat conftest.err >&5
16400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); } && {
16402          test -z "$ac_c_werror_flag" ||
16403          test ! -s conftest.err
16404        } && test -s conftest.$ac_objext; then
16405   cat >conftest.$ac_ext <<_ACEOF
16406 /* confdefs.h.  */
16407 _ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h.  */
16411 $ac_includes_default
16412 int
16413 main ()
16414 {
16415 if (sizeof ((intptr_t)))
16416           return 0;
16417   ;
16418   return 0;
16419 }
16420 _ACEOF
16421 rm -f conftest.$ac_objext
16422 if { (ac_try="$ac_compile"
16423 case "(($ac_try" in
16424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425   *) ac_try_echo=$ac_try;;
16426 esac
16427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16428 $as_echo "$ac_try_echo") >&5
16429   (eval "$ac_compile") 2>conftest.er1
16430   ac_status=$?
16431   grep -v '^ *+' conftest.er1 >conftest.err
16432   rm -f conftest.er1
16433   cat conftest.err >&5
16434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); } && {
16436          test -z "$ac_c_werror_flag" ||
16437          test ! -s conftest.err
16438        } && test -s conftest.$ac_objext; then
16439   :
16440 else
16441   $as_echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16443
16444         ac_cv_type_intptr_t=yes
16445 fi
16446
16447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16448 else
16449   $as_echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16451
16452
16453 fi
16454
16455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16456 fi
16457 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16458 $as_echo "$ac_cv_type_intptr_t" >&6; }
16459 if test "x$ac_cv_type_intptr_t" = x""yes; then
16460
16461 cat >>confdefs.h <<\_ACEOF
16462 #define HAVE_INTPTR_T 1
16463 _ACEOF
16464
16465 else
16466   for ac_type in 'int' 'long int' 'long long int'; do
16467        cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h.  */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h.  */
16473 $ac_includes_default
16474 int
16475 main ()
16476 {
16477 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16478 test_array [0] = 0
16479
16480   ;
16481   return 0;
16482 }
16483 _ACEOF
16484 rm -f conftest.$ac_objext
16485 if { (ac_try="$ac_compile"
16486 case "(($ac_try" in
16487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488   *) ac_try_echo=$ac_try;;
16489 esac
16490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16491 $as_echo "$ac_try_echo") >&5
16492   (eval "$ac_compile") 2>conftest.er1
16493   ac_status=$?
16494   grep -v '^ *+' conftest.er1 >conftest.err
16495   rm -f conftest.er1
16496   cat conftest.err >&5
16497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } && {
16499          test -z "$ac_c_werror_flag" ||
16500          test ! -s conftest.err
16501        } && test -s conftest.$ac_objext; then
16502
16503 cat >>confdefs.h <<_ACEOF
16504 #define intptr_t $ac_type
16505 _ACEOF
16506
16507           ac_type=
16508 else
16509   $as_echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16511
16512
16513 fi
16514
16515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516        test -z "$ac_type" && break
16517      done
16518 fi
16519
16520
16521
16522   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16523 $as_echo_n "checking for uintptr_t... " >&6; }
16524 if test "${ac_cv_type_uintptr_t+set}" = set; then
16525   $as_echo_n "(cached) " >&6
16526 else
16527   ac_cv_type_uintptr_t=no
16528 cat >conftest.$ac_ext <<_ACEOF
16529 /* confdefs.h.  */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h.  */
16534 $ac_includes_default
16535 int
16536 main ()
16537 {
16538 if (sizeof (uintptr_t))
16539        return 0;
16540   ;
16541   return 0;
16542 }
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (ac_try="$ac_compile"
16546 case "(($ac_try" in
16547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548   *) ac_try_echo=$ac_try;;
16549 esac
16550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16551 $as_echo "$ac_try_echo") >&5
16552   (eval "$ac_compile") 2>conftest.er1
16553   ac_status=$?
16554   grep -v '^ *+' conftest.er1 >conftest.err
16555   rm -f conftest.er1
16556   cat conftest.err >&5
16557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); } && {
16559          test -z "$ac_c_werror_flag" ||
16560          test ! -s conftest.err
16561        } && test -s conftest.$ac_objext; then
16562   cat >conftest.$ac_ext <<_ACEOF
16563 /* confdefs.h.  */
16564 _ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h.  */
16568 $ac_includes_default
16569 int
16570 main ()
16571 {
16572 if (sizeof ((uintptr_t)))
16573           return 0;
16574   ;
16575   return 0;
16576 }
16577 _ACEOF
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582   *) ac_try_echo=$ac_try;;
16583 esac
16584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16585 $as_echo "$ac_try_echo") >&5
16586   (eval "$ac_compile") 2>conftest.er1
16587   ac_status=$?
16588   grep -v '^ *+' conftest.er1 >conftest.err
16589   rm -f conftest.er1
16590   cat conftest.err >&5
16591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); } && {
16593          test -z "$ac_c_werror_flag" ||
16594          test ! -s conftest.err
16595        } && test -s conftest.$ac_objext; then
16596   :
16597 else
16598   $as_echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16600
16601         ac_cv_type_uintptr_t=yes
16602 fi
16603
16604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16605 else
16606   $as_echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16608
16609
16610 fi
16611
16612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16613 fi
16614 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16615 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16616 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16617
16618 cat >>confdefs.h <<\_ACEOF
16619 #define HAVE_UINTPTR_T 1
16620 _ACEOF
16621
16622 else
16623   for ac_type in 'unsigned int' 'unsigned long int' \
16624         'unsigned long long int'; do
16625        cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h.  */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h.  */
16631 $ac_includes_default
16632 int
16633 main ()
16634 {
16635 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16636 test_array [0] = 0
16637
16638   ;
16639   return 0;
16640 }
16641 _ACEOF
16642 rm -f conftest.$ac_objext
16643 if { (ac_try="$ac_compile"
16644 case "(($ac_try" in
16645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646   *) ac_try_echo=$ac_try;;
16647 esac
16648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16649 $as_echo "$ac_try_echo") >&5
16650   (eval "$ac_compile") 2>conftest.er1
16651   ac_status=$?
16652   grep -v '^ *+' conftest.er1 >conftest.err
16653   rm -f conftest.er1
16654   cat conftest.err >&5
16655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); } && {
16657          test -z "$ac_c_werror_flag" ||
16658          test ! -s conftest.err
16659        } && test -s conftest.$ac_objext; then
16660
16661 cat >>confdefs.h <<_ACEOF
16662 #define uintptr_t $ac_type
16663 _ACEOF
16664
16665           ac_type=
16666 else
16667   $as_echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16669
16670
16671 fi
16672
16673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674        test -z "$ac_type" && break
16675      done
16676 fi
16677
16678
16679
16680   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16681 $as_echo_n "checking for long long int... " >&6; }
16682 if test "${ac_cv_type_long_long_int+set}" = set; then
16683   $as_echo_n "(cached) " >&6
16684 else
16685   cat >conftest.$ac_ext <<_ACEOF
16686
16687   /* confdefs.h.  */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h.  */
16692 /* For now, do not test the preprocessor; as of 2007 there are too many
16693          implementations with broken preprocessors.  Perhaps this can
16694          be revisited in 2012.  In the meantime, code should not expect
16695          #if to work with literals wider than 32 bits.  */
16696       /* Test literals.  */
16697       long long int ll = 9223372036854775807ll;
16698       long long int nll = -9223372036854775807LL;
16699       unsigned long long int ull = 18446744073709551615ULL;
16700       /* Test constant expressions.   */
16701       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16702                      ? 1 : -1)];
16703       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16704                      ? 1 : -1)];
16705       int i = 63;
16706 int
16707 main ()
16708 {
16709 /* Test availability of runtime routines for shift and division.  */
16710       long long int llmax = 9223372036854775807ll;
16711       unsigned long long int ullmax = 18446744073709551615ull;
16712       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16713               | (llmax / ll) | (llmax % ll)
16714               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16715               | (ullmax / ull) | (ullmax % ull));
16716   ;
16717   return 0;
16718 }
16719
16720 _ACEOF
16721 rm -f conftest.$ac_objext conftest$ac_exeext
16722 if { (ac_try="$ac_link"
16723 case "(($ac_try" in
16724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725   *) ac_try_echo=$ac_try;;
16726 esac
16727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16728 $as_echo "$ac_try_echo") >&5
16729   (eval "$ac_link") 2>conftest.er1
16730   ac_status=$?
16731   grep -v '^ *+' conftest.er1 >conftest.err
16732   rm -f conftest.er1
16733   cat conftest.err >&5
16734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); } && {
16736          test -z "$ac_c_werror_flag" ||
16737          test ! -s conftest.err
16738        } && test -s conftest$ac_exeext && {
16739          test "$cross_compiling" = yes ||
16740          $as_test_x conftest$ac_exeext
16741        }; then
16742                         if test "$cross_compiling" = yes; then
16743   ac_cv_type_long_long_int=yes
16744 else
16745   cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h.  */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h.  */
16751 #include <limits.h>
16752                #ifndef LLONG_MAX
16753                # define HALF \
16754                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16755                # define LLONG_MAX (HALF - 1 + HALF)
16756                #endif
16757 int
16758 main ()
16759 {
16760 long long int n = 1;
16761                int i;
16762                for (i = 0; ; i++)
16763                  {
16764                    long long int m = n << i;
16765                    if (m >> i != n)
16766                      return 1;
16767                    if (LLONG_MAX / 2 < m)
16768                      break;
16769                  }
16770                return 0;
16771   ;
16772   return 0;
16773 }
16774 _ACEOF
16775 rm -f conftest$ac_exeext
16776 if { (ac_try="$ac_link"
16777 case "(($ac_try" in
16778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779   *) ac_try_echo=$ac_try;;
16780 esac
16781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16782 $as_echo "$ac_try_echo") >&5
16783   (eval "$ac_link") 2>&5
16784   ac_status=$?
16785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16787   { (case "(($ac_try" in
16788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789   *) ac_try_echo=$ac_try;;
16790 esac
16791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16792 $as_echo "$ac_try_echo") >&5
16793   (eval "$ac_try") 2>&5
16794   ac_status=$?
16795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); }; }; then
16797   ac_cv_type_long_long_int=yes
16798 else
16799   $as_echo "$as_me: program exited with status $ac_status" >&5
16800 $as_echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803 ( exit $ac_status )
16804 ac_cv_type_long_long_int=no
16805 fi
16806 rm -rf conftest.dSYM
16807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16808 fi
16809
16810
16811 else
16812   $as_echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815         ac_cv_type_long_long_int=no
16816 fi
16817
16818 rm -rf conftest.dSYM
16819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16820       conftest$ac_exeext conftest.$ac_ext
16821 fi
16822 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16823 $as_echo "$ac_cv_type_long_long_int" >&6; }
16824   if test $ac_cv_type_long_long_int = yes; then
16825
16826 cat >>confdefs.h <<\_ACEOF
16827 #define HAVE_LONG_LONG_INT 1
16828 _ACEOF
16829
16830   fi
16831
16832
16833 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
16834 $as_echo_n "checking for locale_t... " >&6; }
16835 if test "${pgac_cv_type_locale_t+set}" = set; then
16836   $as_echo_n "(cached) " >&6
16837 else
16838   cat >conftest.$ac_ext <<_ACEOF
16839 /* confdefs.h.  */
16840 _ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h.  */
16844 #include <locale.h>
16845 locale_t x;
16846 int
16847 main ()
16848 {
16849
16850   ;
16851   return 0;
16852 }
16853 _ACEOF
16854 rm -f conftest.$ac_objext
16855 if { (ac_try="$ac_compile"
16856 case "(($ac_try" in
16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858   *) ac_try_echo=$ac_try;;
16859 esac
16860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16861 $as_echo "$ac_try_echo") >&5
16862   (eval "$ac_compile") 2>conftest.er1
16863   ac_status=$?
16864   grep -v '^ *+' conftest.er1 >conftest.err
16865   rm -f conftest.er1
16866   cat conftest.err >&5
16867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); } && {
16869          test -z "$ac_c_werror_flag" ||
16870          test ! -s conftest.err
16871        } && test -s conftest.$ac_objext; then
16872   pgac_cv_type_locale_t=yes
16873 else
16874   $as_echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877         cat >conftest.$ac_ext <<_ACEOF
16878 /* confdefs.h.  */
16879 _ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h.  */
16883 #include <xlocale.h>
16884 locale_t x;
16885 int
16886 main ()
16887 {
16888
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16900 $as_echo "$ac_try_echo") >&5
16901   (eval "$ac_compile") 2>conftest.er1
16902   ac_status=$?
16903   grep -v '^ *+' conftest.er1 >conftest.err
16904   rm -f conftest.er1
16905   cat conftest.err >&5
16906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); } && {
16908          test -z "$ac_c_werror_flag" ||
16909          test ! -s conftest.err
16910        } && test -s conftest.$ac_objext; then
16911   pgac_cv_type_locale_t='yes (in xlocale.h)'
16912 else
16913   $as_echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16915
16916         pgac_cv_type_locale_t=no
16917 fi
16918
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920 fi
16921
16922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 fi
16924 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
16925 $as_echo "$pgac_cv_type_locale_t" >&6; }
16926 if test "$pgac_cv_type_locale_t" != no; then
16927
16928 cat >>confdefs.h <<\_ACEOF
16929 #define HAVE_LOCALE_T 1
16930 _ACEOF
16931
16932 fi
16933 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
16934
16935 cat >>confdefs.h <<\_ACEOF
16936 #define LOCALE_T_IN_XLOCALE 1
16937 _ACEOF
16938
16939 fi
16940
16941 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16942 $as_echo_n "checking for struct cmsgcred... " >&6; }
16943 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16944   $as_echo_n "(cached) " >&6
16945 else
16946   ac_cv_type_struct_cmsgcred=no
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h.  */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h.  */
16953 #include <sys/param.h>
16954 #include <sys/types.h>
16955 #include <sys/socket.h>
16956 #include <sys/ucred.h>
16957
16958 int
16959 main ()
16960 {
16961 if (sizeof (struct cmsgcred))
16962        return 0;
16963   ;
16964   return 0;
16965 }
16966 _ACEOF
16967 rm -f conftest.$ac_objext
16968 if { (ac_try="$ac_compile"
16969 case "(($ac_try" in
16970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971   *) ac_try_echo=$ac_try;;
16972 esac
16973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16974 $as_echo "$ac_try_echo") >&5
16975   (eval "$ac_compile") 2>conftest.er1
16976   ac_status=$?
16977   grep -v '^ *+' conftest.er1 >conftest.err
16978   rm -f conftest.er1
16979   cat conftest.err >&5
16980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); } && {
16982          test -z "$ac_c_werror_flag" ||
16983          test ! -s conftest.err
16984        } && test -s conftest.$ac_objext; then
16985   cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h.  */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h.  */
16991 #include <sys/param.h>
16992 #include <sys/types.h>
16993 #include <sys/socket.h>
16994 #include <sys/ucred.h>
16995
16996 int
16997 main ()
16998 {
16999 if (sizeof ((struct cmsgcred)))
17000           return 0;
17001   ;
17002   return 0;
17003 }
17004 _ACEOF
17005 rm -f conftest.$ac_objext
17006 if { (ac_try="$ac_compile"
17007 case "(($ac_try" in
17008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009   *) ac_try_echo=$ac_try;;
17010 esac
17011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17012 $as_echo "$ac_try_echo") >&5
17013   (eval "$ac_compile") 2>conftest.er1
17014   ac_status=$?
17015   grep -v '^ *+' conftest.er1 >conftest.err
17016   rm -f conftest.er1
17017   cat conftest.err >&5
17018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); } && {
17020          test -z "$ac_c_werror_flag" ||
17021          test ! -s conftest.err
17022        } && test -s conftest.$ac_objext; then
17023   :
17024 else
17025   $as_echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17027
17028         ac_cv_type_struct_cmsgcred=yes
17029 fi
17030
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032 else
17033   $as_echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17035
17036
17037 fi
17038
17039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17040 fi
17041 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17042 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17043 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17044
17045 cat >>confdefs.h <<_ACEOF
17046 #define HAVE_STRUCT_CMSGCRED 1
17047 _ACEOF
17048
17049
17050 fi
17051 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
17052 $as_echo_n "checking for struct fcred... " >&6; }
17053 if test "${ac_cv_type_struct_fcred+set}" = set; then
17054   $as_echo_n "(cached) " >&6
17055 else
17056   ac_cv_type_struct_fcred=no
17057 cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h.  */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h.  */
17063 #include <sys/param.h>
17064 #include <sys/types.h>
17065 #include <sys/socket.h>
17066 #include <sys/ucred.h>
17067
17068 int
17069 main ()
17070 {
17071 if (sizeof (struct fcred))
17072        return 0;
17073   ;
17074   return 0;
17075 }
17076 _ACEOF
17077 rm -f conftest.$ac_objext
17078 if { (ac_try="$ac_compile"
17079 case "(($ac_try" in
17080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081   *) ac_try_echo=$ac_try;;
17082 esac
17083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17084 $as_echo "$ac_try_echo") >&5
17085   (eval "$ac_compile") 2>conftest.er1
17086   ac_status=$?
17087   grep -v '^ *+' conftest.er1 >conftest.err
17088   rm -f conftest.er1
17089   cat conftest.err >&5
17090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091   (exit $ac_status); } && {
17092          test -z "$ac_c_werror_flag" ||
17093          test ! -s conftest.err
17094        } && test -s conftest.$ac_objext; then
17095   cat >conftest.$ac_ext <<_ACEOF
17096 /* confdefs.h.  */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h.  */
17101 #include <sys/param.h>
17102 #include <sys/types.h>
17103 #include <sys/socket.h>
17104 #include <sys/ucred.h>
17105
17106 int
17107 main ()
17108 {
17109 if (sizeof ((struct fcred)))
17110           return 0;
17111   ;
17112   return 0;
17113 }
17114 _ACEOF
17115 rm -f conftest.$ac_objext
17116 if { (ac_try="$ac_compile"
17117 case "(($ac_try" in
17118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119   *) ac_try_echo=$ac_try;;
17120 esac
17121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17122 $as_echo "$ac_try_echo") >&5
17123   (eval "$ac_compile") 2>conftest.er1
17124   ac_status=$?
17125   grep -v '^ *+' conftest.er1 >conftest.err
17126   rm -f conftest.er1
17127   cat conftest.err >&5
17128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); } && {
17130          test -z "$ac_c_werror_flag" ||
17131          test ! -s conftest.err
17132        } && test -s conftest.$ac_objext; then
17133   :
17134 else
17135   $as_echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17137
17138         ac_cv_type_struct_fcred=yes
17139 fi
17140
17141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17142 else
17143   $as_echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17145
17146
17147 fi
17148
17149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17150 fi
17151 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
17152 $as_echo "$ac_cv_type_struct_fcred" >&6; }
17153 if test "x$ac_cv_type_struct_fcred" = x""yes; then
17154
17155 cat >>confdefs.h <<_ACEOF
17156 #define HAVE_STRUCT_FCRED 1
17157 _ACEOF
17158
17159
17160 fi
17161 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
17162 $as_echo_n "checking for struct sockcred... " >&6; }
17163 if test "${ac_cv_type_struct_sockcred+set}" = set; then
17164   $as_echo_n "(cached) " >&6
17165 else
17166   ac_cv_type_struct_sockcred=no
17167 cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h.  */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h.  */
17173 #include <sys/param.h>
17174 #include <sys/types.h>
17175 #include <sys/socket.h>
17176 #include <sys/ucred.h>
17177
17178 int
17179 main ()
17180 {
17181 if (sizeof (struct sockcred))
17182        return 0;
17183   ;
17184   return 0;
17185 }
17186 _ACEOF
17187 rm -f conftest.$ac_objext
17188 if { (ac_try="$ac_compile"
17189 case "(($ac_try" in
17190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191   *) ac_try_echo=$ac_try;;
17192 esac
17193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17194 $as_echo "$ac_try_echo") >&5
17195   (eval "$ac_compile") 2>conftest.er1
17196   ac_status=$?
17197   grep -v '^ *+' conftest.er1 >conftest.err
17198   rm -f conftest.er1
17199   cat conftest.err >&5
17200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); } && {
17202          test -z "$ac_c_werror_flag" ||
17203          test ! -s conftest.err
17204        } && test -s conftest.$ac_objext; then
17205   cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h.  */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h.  */
17211 #include <sys/param.h>
17212 #include <sys/types.h>
17213 #include <sys/socket.h>
17214 #include <sys/ucred.h>
17215
17216 int
17217 main ()
17218 {
17219 if (sizeof ((struct sockcred)))
17220           return 0;
17221   ;
17222   return 0;
17223 }
17224 _ACEOF
17225 rm -f conftest.$ac_objext
17226 if { (ac_try="$ac_compile"
17227 case "(($ac_try" in
17228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229   *) ac_try_echo=$ac_try;;
17230 esac
17231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17232 $as_echo "$ac_try_echo") >&5
17233   (eval "$ac_compile") 2>conftest.er1
17234   ac_status=$?
17235   grep -v '^ *+' conftest.er1 >conftest.err
17236   rm -f conftest.er1
17237   cat conftest.err >&5
17238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); } && {
17240          test -z "$ac_c_werror_flag" ||
17241          test ! -s conftest.err
17242        } && test -s conftest.$ac_objext; then
17243   :
17244 else
17245   $as_echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248         ac_cv_type_struct_sockcred=yes
17249 fi
17250
17251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17252 else
17253   $as_echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17255
17256
17257 fi
17258
17259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260 fi
17261 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
17262 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
17263 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
17264
17265 cat >>confdefs.h <<_ACEOF
17266 #define HAVE_STRUCT_SOCKCRED 1
17267 _ACEOF
17268
17269
17270 fi
17271
17272
17273 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17274 $as_echo_n "checking for struct option... " >&6; }
17275 if test "${ac_cv_type_struct_option+set}" = set; then
17276   $as_echo_n "(cached) " >&6
17277 else
17278   ac_cv_type_struct_option=no
17279 cat >conftest.$ac_ext <<_ACEOF
17280 /* confdefs.h.  */
17281 _ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h.  */
17285 #ifdef HAVE_GETOPT_H
17286 #include <getopt.h>
17287 #endif
17288
17289 int
17290 main ()
17291 {
17292 if (sizeof (struct option))
17293        return 0;
17294   ;
17295   return 0;
17296 }
17297 _ACEOF
17298 rm -f conftest.$ac_objext
17299 if { (ac_try="$ac_compile"
17300 case "(($ac_try" in
17301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302   *) ac_try_echo=$ac_try;;
17303 esac
17304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17305 $as_echo "$ac_try_echo") >&5
17306   (eval "$ac_compile") 2>conftest.er1
17307   ac_status=$?
17308   grep -v '^ *+' conftest.er1 >conftest.err
17309   rm -f conftest.er1
17310   cat conftest.err >&5
17311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); } && {
17313          test -z "$ac_c_werror_flag" ||
17314          test ! -s conftest.err
17315        } && test -s conftest.$ac_objext; then
17316   cat >conftest.$ac_ext <<_ACEOF
17317 /* confdefs.h.  */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h.  */
17322 #ifdef HAVE_GETOPT_H
17323 #include <getopt.h>
17324 #endif
17325
17326 int
17327 main ()
17328 {
17329 if (sizeof ((struct option)))
17330           return 0;
17331   ;
17332   return 0;
17333 }
17334 _ACEOF
17335 rm -f conftest.$ac_objext
17336 if { (ac_try="$ac_compile"
17337 case "(($ac_try" in
17338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339   *) ac_try_echo=$ac_try;;
17340 esac
17341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17342 $as_echo "$ac_try_echo") >&5
17343   (eval "$ac_compile") 2>conftest.er1
17344   ac_status=$?
17345   grep -v '^ *+' conftest.er1 >conftest.err
17346   rm -f conftest.er1
17347   cat conftest.err >&5
17348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); } && {
17350          test -z "$ac_c_werror_flag" ||
17351          test ! -s conftest.err
17352        } && test -s conftest.$ac_objext; then
17353   :
17354 else
17355   $as_echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17357
17358         ac_cv_type_struct_option=yes
17359 fi
17360
17361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362 else
17363   $as_echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17365
17366
17367 fi
17368
17369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17370 fi
17371 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17372 $as_echo "$ac_cv_type_struct_option" >&6; }
17373 if test "x$ac_cv_type_struct_option" = x""yes; then
17374
17375 cat >>confdefs.h <<_ACEOF
17376 #define HAVE_STRUCT_OPTION 1
17377 _ACEOF
17378
17379
17380 fi
17381
17382
17383 if test "$with_zlib" = yes; then
17384   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17385   # did not).  While we could work around the lack of z_streamp, it
17386   # seems unwise to encourage people to use such old zlib versions...
17387   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17388 $as_echo_n "checking for z_streamp... " >&6; }
17389 if test "${ac_cv_type_z_streamp+set}" = set; then
17390   $as_echo_n "(cached) " >&6
17391 else
17392   ac_cv_type_z_streamp=no
17393 cat >conftest.$ac_ext <<_ACEOF
17394 /* confdefs.h.  */
17395 _ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h.  */
17399 #include <zlib.h>
17400
17401 int
17402 main ()
17403 {
17404 if (sizeof (z_streamp))
17405        return 0;
17406   ;
17407   return 0;
17408 }
17409 _ACEOF
17410 rm -f conftest.$ac_objext
17411 if { (ac_try="$ac_compile"
17412 case "(($ac_try" in
17413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414   *) ac_try_echo=$ac_try;;
17415 esac
17416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17417 $as_echo "$ac_try_echo") >&5
17418   (eval "$ac_compile") 2>conftest.er1
17419   ac_status=$?
17420   grep -v '^ *+' conftest.er1 >conftest.err
17421   rm -f conftest.er1
17422   cat conftest.err >&5
17423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); } && {
17425          test -z "$ac_c_werror_flag" ||
17426          test ! -s conftest.err
17427        } && test -s conftest.$ac_objext; then
17428   cat >conftest.$ac_ext <<_ACEOF
17429 /* confdefs.h.  */
17430 _ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h.  */
17434 #include <zlib.h>
17435
17436 int
17437 main ()
17438 {
17439 if (sizeof ((z_streamp)))
17440           return 0;
17441   ;
17442   return 0;
17443 }
17444 _ACEOF
17445 rm -f conftest.$ac_objext
17446 if { (ac_try="$ac_compile"
17447 case "(($ac_try" in
17448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449   *) ac_try_echo=$ac_try;;
17450 esac
17451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17452 $as_echo "$ac_try_echo") >&5
17453   (eval "$ac_compile") 2>conftest.er1
17454   ac_status=$?
17455   grep -v '^ *+' conftest.er1 >conftest.err
17456   rm -f conftest.er1
17457   cat conftest.err >&5
17458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); } && {
17460          test -z "$ac_c_werror_flag" ||
17461          test ! -s conftest.err
17462        } && test -s conftest.$ac_objext; then
17463   :
17464 else
17465   $as_echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17467
17468         ac_cv_type_z_streamp=yes
17469 fi
17470
17471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17472 else
17473   $as_echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17475
17476
17477 fi
17478
17479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 fi
17481 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17482 $as_echo "$ac_cv_type_z_streamp" >&6; }
17483 if test "x$ac_cv_type_z_streamp" = x""yes; then
17484   :
17485 else
17486   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17487 Use --without-zlib to disable zlib support." >&5
17488 $as_echo "$as_me: error: zlib version is too old
17489 Use --without-zlib to disable zlib support." >&2;}
17490    { (exit 1); exit 1; }; }
17491 fi
17492
17493 fi
17494
17495 if test "$with_krb5" = yes; then
17496 # Check for differences between MIT and Heimdal (KTH) releases
17497   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17498 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17499 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17500   $as_echo_n "(cached) " >&6
17501 else
17502   cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h.  */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h.  */
17508 #include <krb5.h>
17509
17510 int
17511 main ()
17512 {
17513 static krb5_ticket ac_aggr;
17514 if (ac_aggr.enc_part2)
17515 return 0;
17516   ;
17517   return 0;
17518 }
17519 _ACEOF
17520 rm -f conftest.$ac_objext
17521 if { (ac_try="$ac_compile"
17522 case "(($ac_try" in
17523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524   *) ac_try_echo=$ac_try;;
17525 esac
17526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17527 $as_echo "$ac_try_echo") >&5
17528   (eval "$ac_compile") 2>conftest.er1
17529   ac_status=$?
17530   grep -v '^ *+' conftest.er1 >conftest.err
17531   rm -f conftest.er1
17532   cat conftest.err >&5
17533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } && {
17535          test -z "$ac_c_werror_flag" ||
17536          test ! -s conftest.err
17537        } && test -s conftest.$ac_objext; then
17538   ac_cv_member_krb5_ticket_enc_part2=yes
17539 else
17540   $as_echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543         cat >conftest.$ac_ext <<_ACEOF
17544 /* confdefs.h.  */
17545 _ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h.  */
17549 #include <krb5.h>
17550
17551 int
17552 main ()
17553 {
17554 static krb5_ticket ac_aggr;
17555 if (sizeof ac_aggr.enc_part2)
17556 return 0;
17557   ;
17558   return 0;
17559 }
17560 _ACEOF
17561 rm -f conftest.$ac_objext
17562 if { (ac_try="$ac_compile"
17563 case "(($ac_try" in
17564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565   *) ac_try_echo=$ac_try;;
17566 esac
17567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17568 $as_echo "$ac_try_echo") >&5
17569   (eval "$ac_compile") 2>conftest.er1
17570   ac_status=$?
17571   grep -v '^ *+' conftest.er1 >conftest.err
17572   rm -f conftest.er1
17573   cat conftest.err >&5
17574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); } && {
17576          test -z "$ac_c_werror_flag" ||
17577          test ! -s conftest.err
17578        } && test -s conftest.$ac_objext; then
17579   ac_cv_member_krb5_ticket_enc_part2=yes
17580 else
17581   $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17583
17584         ac_cv_member_krb5_ticket_enc_part2=no
17585 fi
17586
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17588 fi
17589
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591 fi
17592 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17593 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17594 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17595
17596 cat >>confdefs.h <<_ACEOF
17597 #define HAVE_KRB5_TICKET_ENC_PART2 1
17598 _ACEOF
17599
17600
17601 else
17602   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17603 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17604 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17605   $as_echo_n "(cached) " >&6
17606 else
17607   cat >conftest.$ac_ext <<_ACEOF
17608 /* confdefs.h.  */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h.  */
17613 #include <krb5.h>
17614
17615 int
17616 main ()
17617 {
17618 static krb5_ticket ac_aggr;
17619 if (ac_aggr.client)
17620 return 0;
17621   ;
17622   return 0;
17623 }
17624 _ACEOF
17625 rm -f conftest.$ac_objext
17626 if { (ac_try="$ac_compile"
17627 case "(($ac_try" in
17628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629   *) ac_try_echo=$ac_try;;
17630 esac
17631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17632 $as_echo "$ac_try_echo") >&5
17633   (eval "$ac_compile") 2>conftest.er1
17634   ac_status=$?
17635   grep -v '^ *+' conftest.er1 >conftest.err
17636   rm -f conftest.er1
17637   cat conftest.err >&5
17638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); } && {
17640          test -z "$ac_c_werror_flag" ||
17641          test ! -s conftest.err
17642        } && test -s conftest.$ac_objext; then
17643   ac_cv_member_krb5_ticket_client=yes
17644 else
17645   $as_echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17647
17648         cat >conftest.$ac_ext <<_ACEOF
17649 /* confdefs.h.  */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h.  */
17654 #include <krb5.h>
17655
17656 int
17657 main ()
17658 {
17659 static krb5_ticket ac_aggr;
17660 if (sizeof ac_aggr.client)
17661 return 0;
17662   ;
17663   return 0;
17664 }
17665 _ACEOF
17666 rm -f conftest.$ac_objext
17667 if { (ac_try="$ac_compile"
17668 case "(($ac_try" in
17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670   *) ac_try_echo=$ac_try;;
17671 esac
17672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17673 $as_echo "$ac_try_echo") >&5
17674   (eval "$ac_compile") 2>conftest.er1
17675   ac_status=$?
17676   grep -v '^ *+' conftest.er1 >conftest.err
17677   rm -f conftest.er1
17678   cat conftest.err >&5
17679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); } && {
17681          test -z "$ac_c_werror_flag" ||
17682          test ! -s conftest.err
17683        } && test -s conftest.$ac_objext; then
17684   ac_cv_member_krb5_ticket_client=yes
17685 else
17686   $as_echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689         ac_cv_member_krb5_ticket_client=no
17690 fi
17691
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 fi
17694
17695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17696 fi
17697 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17698 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17699 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17700
17701 cat >>confdefs.h <<_ACEOF
17702 #define HAVE_KRB5_TICKET_CLIENT 1
17703 _ACEOF
17704
17705
17706 else
17707   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17708 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17709    { (exit 1); exit 1; }; }
17710 fi
17711
17712 fi
17713
17714   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17715 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17716 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17717   $as_echo_n "(cached) " >&6
17718 else
17719   cat >conftest.$ac_ext <<_ACEOF
17720 /* confdefs.h.  */
17721 _ACEOF
17722 cat confdefs.h >>conftest.$ac_ext
17723 cat >>conftest.$ac_ext <<_ACEOF
17724 /* end confdefs.h.  */
17725 #include <krb5.h>
17726
17727 int
17728 main ()
17729 {
17730 static krb5_error ac_aggr;
17731 if (ac_aggr.text.data)
17732 return 0;
17733   ;
17734   return 0;
17735 }
17736 _ACEOF
17737 rm -f conftest.$ac_objext
17738 if { (ac_try="$ac_compile"
17739 case "(($ac_try" in
17740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741   *) ac_try_echo=$ac_try;;
17742 esac
17743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17744 $as_echo "$ac_try_echo") >&5
17745   (eval "$ac_compile") 2>conftest.er1
17746   ac_status=$?
17747   grep -v '^ *+' conftest.er1 >conftest.err
17748   rm -f conftest.er1
17749   cat conftest.err >&5
17750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); } && {
17752          test -z "$ac_c_werror_flag" ||
17753          test ! -s conftest.err
17754        } && test -s conftest.$ac_objext; then
17755   ac_cv_member_krb5_error_text_data=yes
17756 else
17757   $as_echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760         cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h.  */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h.  */
17766 #include <krb5.h>
17767
17768 int
17769 main ()
17770 {
17771 static krb5_error ac_aggr;
17772 if (sizeof ac_aggr.text.data)
17773 return 0;
17774   ;
17775   return 0;
17776 }
17777 _ACEOF
17778 rm -f conftest.$ac_objext
17779 if { (ac_try="$ac_compile"
17780 case "(($ac_try" in
17781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782   *) ac_try_echo=$ac_try;;
17783 esac
17784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17785 $as_echo "$ac_try_echo") >&5
17786   (eval "$ac_compile") 2>conftest.er1
17787   ac_status=$?
17788   grep -v '^ *+' conftest.er1 >conftest.err
17789   rm -f conftest.er1
17790   cat conftest.err >&5
17791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } && {
17793          test -z "$ac_c_werror_flag" ||
17794          test ! -s conftest.err
17795        } && test -s conftest.$ac_objext; then
17796   ac_cv_member_krb5_error_text_data=yes
17797 else
17798   $as_echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801         ac_cv_member_krb5_error_text_data=no
17802 fi
17803
17804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17805 fi
17806
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808 fi
17809 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17810 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17811 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17812
17813 cat >>confdefs.h <<_ACEOF
17814 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17815 _ACEOF
17816
17817
17818 else
17819   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17820 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17821 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17822   $as_echo_n "(cached) " >&6
17823 else
17824   cat >conftest.$ac_ext <<_ACEOF
17825 /* confdefs.h.  */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h.  */
17830 #include <krb5.h>
17831
17832 int
17833 main ()
17834 {
17835 static krb5_error ac_aggr;
17836 if (ac_aggr.e_data)
17837 return 0;
17838   ;
17839   return 0;
17840 }
17841 _ACEOF
17842 rm -f conftest.$ac_objext
17843 if { (ac_try="$ac_compile"
17844 case "(($ac_try" in
17845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846   *) ac_try_echo=$ac_try;;
17847 esac
17848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17849 $as_echo "$ac_try_echo") >&5
17850   (eval "$ac_compile") 2>conftest.er1
17851   ac_status=$?
17852   grep -v '^ *+' conftest.er1 >conftest.err
17853   rm -f conftest.er1
17854   cat conftest.err >&5
17855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); } && {
17857          test -z "$ac_c_werror_flag" ||
17858          test ! -s conftest.err
17859        } && test -s conftest.$ac_objext; then
17860   ac_cv_member_krb5_error_e_data=yes
17861 else
17862   $as_echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865         cat >conftest.$ac_ext <<_ACEOF
17866 /* confdefs.h.  */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h.  */
17871 #include <krb5.h>
17872
17873 int
17874 main ()
17875 {
17876 static krb5_error ac_aggr;
17877 if (sizeof ac_aggr.e_data)
17878 return 0;
17879   ;
17880   return 0;
17881 }
17882 _ACEOF
17883 rm -f conftest.$ac_objext
17884 if { (ac_try="$ac_compile"
17885 case "(($ac_try" in
17886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887   *) ac_try_echo=$ac_try;;
17888 esac
17889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17890 $as_echo "$ac_try_echo") >&5
17891   (eval "$ac_compile") 2>conftest.er1
17892   ac_status=$?
17893   grep -v '^ *+' conftest.er1 >conftest.err
17894   rm -f conftest.er1
17895   cat conftest.err >&5
17896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); } && {
17898          test -z "$ac_c_werror_flag" ||
17899          test ! -s conftest.err
17900        } && test -s conftest.$ac_objext; then
17901   ac_cv_member_krb5_error_e_data=yes
17902 else
17903   $as_echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906         ac_cv_member_krb5_error_e_data=no
17907 fi
17908
17909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17910 fi
17911
17912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17913 fi
17914 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17915 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17916 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17917
17918 cat >>confdefs.h <<_ACEOF
17919 #define HAVE_KRB5_ERROR_E_DATA 1
17920 _ACEOF
17921
17922
17923 else
17924   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17925 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17926    { (exit 1); exit 1; }; }
17927 fi
17928
17929 fi
17930
17931
17932 # Win32 requires headers to be loaded for __stdcall, so can't use
17933 # AC_CHECK_FUNCS here.
17934   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17935 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17936   cat >conftest.$ac_ext <<_ACEOF
17937 /* confdefs.h.  */
17938 _ACEOF
17939 cat confdefs.h >>conftest.$ac_ext
17940 cat >>conftest.$ac_ext <<_ACEOF
17941 /* end confdefs.h.  */
17942 #include <krb5.h>
17943 int
17944 main ()
17945 {
17946 krb5_free_unparsed_name(NULL,NULL);
17947   ;
17948   return 0;
17949 }
17950 _ACEOF
17951 rm -f conftest.$ac_objext conftest$ac_exeext
17952 if { (ac_try="$ac_link"
17953 case "(($ac_try" in
17954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955   *) ac_try_echo=$ac_try;;
17956 esac
17957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17958 $as_echo "$ac_try_echo") >&5
17959   (eval "$ac_link") 2>conftest.er1
17960   ac_status=$?
17961   grep -v '^ *+' conftest.er1 >conftest.err
17962   rm -f conftest.er1
17963   cat conftest.err >&5
17964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); } && {
17966          test -z "$ac_c_werror_flag" ||
17967          test ! -s conftest.err
17968        } && test -s conftest$ac_exeext && {
17969          test "$cross_compiling" = yes ||
17970          $as_test_x conftest$ac_exeext
17971        }; then
17972
17973 cat >>confdefs.h <<\_ACEOF
17974 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17975 _ACEOF
17976
17977 { $as_echo "$as_me:$LINENO: result: yes" >&5
17978 $as_echo "yes" >&6; }
17979 else
17980   $as_echo "$as_me: failed program was:" >&5
17981 sed 's/^/| /' conftest.$ac_ext >&5
17982
17983         { $as_echo "$as_me:$LINENO: result: no" >&5
17984 $as_echo "no" >&6; }
17985 fi
17986
17987 rm -rf conftest.dSYM
17988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17989       conftest$ac_exeext conftest.$ac_ext
17990 fi
17991
17992 # Check largefile support.  You might think this is a system service not a
17993 # compiler characteristic, but you'd be wrong.  We must check this before
17994 # probing existence of related functions such as fseeko, since the largefile
17995 # defines can affect what is generated for that.
17996 # Check whether --enable-largefile was given.
17997 if test "${enable_largefile+set}" = set; then
17998   enableval=$enable_largefile;
17999 fi
18000
18001 if test "$enable_largefile" != no; then
18002
18003   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18004 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18005 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18006   $as_echo_n "(cached) " >&6
18007 else
18008   ac_cv_sys_largefile_CC=no
18009      if test "$GCC" != yes; then
18010        ac_save_CC=$CC
18011        while :; do
18012          # IRIX 6.2 and later do not support large files by default,
18013          # so use the C compiler's -n32 option if that helps.
18014          cat >conftest.$ac_ext <<_ACEOF
18015 /* confdefs.h.  */
18016 _ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h.  */
18020 #include <sys/types.h>
18021  /* Check that off_t can represent 2**63 - 1 correctly.
18022     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18023     since some C++ compilers masquerading as C compilers
18024     incorrectly reject 9223372036854775807.  */
18025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18026   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18027                        && LARGE_OFF_T % 2147483647 == 1)
18028                       ? 1 : -1];
18029 int
18030 main ()
18031 {
18032
18033   ;
18034   return 0;
18035 }
18036 _ACEOF
18037          rm -f conftest.$ac_objext
18038 if { (ac_try="$ac_compile"
18039 case "(($ac_try" in
18040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041   *) ac_try_echo=$ac_try;;
18042 esac
18043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18044 $as_echo "$ac_try_echo") >&5
18045   (eval "$ac_compile") 2>conftest.er1
18046   ac_status=$?
18047   grep -v '^ *+' conftest.er1 >conftest.err
18048   rm -f conftest.er1
18049   cat conftest.err >&5
18050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051   (exit $ac_status); } && {
18052          test -z "$ac_c_werror_flag" ||
18053          test ! -s conftest.err
18054        } && test -s conftest.$ac_objext; then
18055   break
18056 else
18057   $as_echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060
18061 fi
18062
18063 rm -f core conftest.err conftest.$ac_objext
18064          CC="$CC -n32"
18065          rm -f conftest.$ac_objext
18066 if { (ac_try="$ac_compile"
18067 case "(($ac_try" in
18068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069   *) ac_try_echo=$ac_try;;
18070 esac
18071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18072 $as_echo "$ac_try_echo") >&5
18073   (eval "$ac_compile") 2>conftest.er1
18074   ac_status=$?
18075   grep -v '^ *+' conftest.er1 >conftest.err
18076   rm -f conftest.er1
18077   cat conftest.err >&5
18078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); } && {
18080          test -z "$ac_c_werror_flag" ||
18081          test ! -s conftest.err
18082        } && test -s conftest.$ac_objext; then
18083   ac_cv_sys_largefile_CC=' -n32'; break
18084 else
18085   $as_echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18087
18088
18089 fi
18090
18091 rm -f core conftest.err conftest.$ac_objext
18092          break
18093        done
18094        CC=$ac_save_CC
18095        rm -f conftest.$ac_ext
18096     fi
18097 fi
18098 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18099 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18100   if test "$ac_cv_sys_largefile_CC" != no; then
18101     CC=$CC$ac_cv_sys_largefile_CC
18102   fi
18103
18104   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18105 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18106 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18107   $as_echo_n "(cached) " >&6
18108 else
18109   while :; do
18110   cat >conftest.$ac_ext <<_ACEOF
18111 /* confdefs.h.  */
18112 _ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h.  */
18116 #include <sys/types.h>
18117  /* Check that off_t can represent 2**63 - 1 correctly.
18118     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18119     since some C++ compilers masquerading as C compilers
18120     incorrectly reject 9223372036854775807.  */
18121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18122   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18123                        && LARGE_OFF_T % 2147483647 == 1)
18124                       ? 1 : -1];
18125 int
18126 main ()
18127 {
18128
18129   ;
18130   return 0;
18131 }
18132 _ACEOF
18133 rm -f conftest.$ac_objext
18134 if { (ac_try="$ac_compile"
18135 case "(($ac_try" in
18136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137   *) ac_try_echo=$ac_try;;
18138 esac
18139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18140 $as_echo "$ac_try_echo") >&5
18141   (eval "$ac_compile") 2>conftest.er1
18142   ac_status=$?
18143   grep -v '^ *+' conftest.er1 >conftest.err
18144   rm -f conftest.er1
18145   cat conftest.err >&5
18146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147   (exit $ac_status); } && {
18148          test -z "$ac_c_werror_flag" ||
18149          test ! -s conftest.err
18150        } && test -s conftest.$ac_objext; then
18151   ac_cv_sys_file_offset_bits=no; break
18152 else
18153   $as_echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18155
18156
18157 fi
18158
18159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18160   cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h.  */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h.  */
18166 #define _FILE_OFFSET_BITS 64
18167 #include <sys/types.h>
18168  /* Check that off_t can represent 2**63 - 1 correctly.
18169     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18170     since some C++ compilers masquerading as C compilers
18171     incorrectly reject 9223372036854775807.  */
18172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18173   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18174                        && LARGE_OFF_T % 2147483647 == 1)
18175                       ? 1 : -1];
18176 int
18177 main ()
18178 {
18179
18180   ;
18181   return 0;
18182 }
18183 _ACEOF
18184 rm -f conftest.$ac_objext
18185 if { (ac_try="$ac_compile"
18186 case "(($ac_try" in
18187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188   *) ac_try_echo=$ac_try;;
18189 esac
18190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18191 $as_echo "$ac_try_echo") >&5
18192   (eval "$ac_compile") 2>conftest.er1
18193   ac_status=$?
18194   grep -v '^ *+' conftest.er1 >conftest.err
18195   rm -f conftest.er1
18196   cat conftest.err >&5
18197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198   (exit $ac_status); } && {
18199          test -z "$ac_c_werror_flag" ||
18200          test ! -s conftest.err
18201        } && test -s conftest.$ac_objext; then
18202   ac_cv_sys_file_offset_bits=64; break
18203 else
18204   $as_echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18206
18207
18208 fi
18209
18210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18211   ac_cv_sys_file_offset_bits=unknown
18212   break
18213 done
18214 fi
18215 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18216 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18217 case $ac_cv_sys_file_offset_bits in #(
18218   no | unknown) ;;
18219   *)
18220 cat >>confdefs.h <<_ACEOF
18221 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18222 _ACEOF
18223 ;;
18224 esac
18225 rm -rf conftest*
18226   if test $ac_cv_sys_file_offset_bits = unknown; then
18227     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18228 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18229 if test "${ac_cv_sys_large_files+set}" = set; then
18230   $as_echo_n "(cached) " >&6
18231 else
18232   while :; do
18233   cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h.  */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h.  */
18239 #include <sys/types.h>
18240  /* Check that off_t can represent 2**63 - 1 correctly.
18241     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18242     since some C++ compilers masquerading as C compilers
18243     incorrectly reject 9223372036854775807.  */
18244 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18245   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18246                        && LARGE_OFF_T % 2147483647 == 1)
18247                       ? 1 : -1];
18248 int
18249 main ()
18250 {
18251
18252   ;
18253   return 0;
18254 }
18255 _ACEOF
18256 rm -f conftest.$ac_objext
18257 if { (ac_try="$ac_compile"
18258 case "(($ac_try" in
18259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260   *) ac_try_echo=$ac_try;;
18261 esac
18262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18263 $as_echo "$ac_try_echo") >&5
18264   (eval "$ac_compile") 2>conftest.er1
18265   ac_status=$?
18266   grep -v '^ *+' conftest.er1 >conftest.err
18267   rm -f conftest.er1
18268   cat conftest.err >&5
18269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); } && {
18271          test -z "$ac_c_werror_flag" ||
18272          test ! -s conftest.err
18273        } && test -s conftest.$ac_objext; then
18274   ac_cv_sys_large_files=no; break
18275 else
18276   $as_echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18278
18279
18280 fi
18281
18282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18283   cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h.  */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h.  */
18289 #define _LARGE_FILES 1
18290 #include <sys/types.h>
18291  /* Check that off_t can represent 2**63 - 1 correctly.
18292     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18293     since some C++ compilers masquerading as C compilers
18294     incorrectly reject 9223372036854775807.  */
18295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18296   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18297                        && LARGE_OFF_T % 2147483647 == 1)
18298                       ? 1 : -1];
18299 int
18300 main ()
18301 {
18302
18303   ;
18304   return 0;
18305 }
18306 _ACEOF
18307 rm -f conftest.$ac_objext
18308 if { (ac_try="$ac_compile"
18309 case "(($ac_try" in
18310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311   *) ac_try_echo=$ac_try;;
18312 esac
18313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18314 $as_echo "$ac_try_echo") >&5
18315   (eval "$ac_compile") 2>conftest.er1
18316   ac_status=$?
18317   grep -v '^ *+' conftest.er1 >conftest.err
18318   rm -f conftest.er1
18319   cat conftest.err >&5
18320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); } && {
18322          test -z "$ac_c_werror_flag" ||
18323          test ! -s conftest.err
18324        } && test -s conftest.$ac_objext; then
18325   ac_cv_sys_large_files=1; break
18326 else
18327   $as_echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18329
18330
18331 fi
18332
18333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334   ac_cv_sys_large_files=unknown
18335   break
18336 done
18337 fi
18338 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18339 $as_echo "$ac_cv_sys_large_files" >&6; }
18340 case $ac_cv_sys_large_files in #(
18341   no | unknown) ;;
18342   *)
18343 cat >>confdefs.h <<_ACEOF
18344 #define _LARGE_FILES $ac_cv_sys_large_files
18345 _ACEOF
18346 ;;
18347 esac
18348 rm -rf conftest*
18349   fi
18350 fi
18351
18352
18353 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18354 # The cast to long int works around a bug in the HP C Compiler
18355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18357 # This bug is HP SR number 8606223364.
18358 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18359 $as_echo_n "checking size of off_t... " >&6; }
18360 if test "${ac_cv_sizeof_off_t+set}" = set; then
18361   $as_echo_n "(cached) " >&6
18362 else
18363   if test "$cross_compiling" = yes; then
18364   # Depending upon the size, compute the lo and hi bounds.
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h.  */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h.  */
18371 $ac_includes_default
18372 int
18373 main ()
18374 {
18375 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18376 test_array [0] = 0
18377
18378   ;
18379   return 0;
18380 }
18381 _ACEOF
18382 rm -f conftest.$ac_objext
18383 if { (ac_try="$ac_compile"
18384 case "(($ac_try" in
18385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386   *) ac_try_echo=$ac_try;;
18387 esac
18388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18389 $as_echo "$ac_try_echo") >&5
18390   (eval "$ac_compile") 2>conftest.er1
18391   ac_status=$?
18392   grep -v '^ *+' conftest.er1 >conftest.err
18393   rm -f conftest.er1
18394   cat conftest.err >&5
18395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); } && {
18397          test -z "$ac_c_werror_flag" ||
18398          test ! -s conftest.err
18399        } && test -s conftest.$ac_objext; then
18400   ac_lo=0 ac_mid=0
18401   while :; do
18402     cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h.  */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h.  */
18408 $ac_includes_default
18409 int
18410 main ()
18411 {
18412 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18413 test_array [0] = 0
18414
18415   ;
18416   return 0;
18417 }
18418 _ACEOF
18419 rm -f conftest.$ac_objext
18420 if { (ac_try="$ac_compile"
18421 case "(($ac_try" in
18422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423   *) ac_try_echo=$ac_try;;
18424 esac
18425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18426 $as_echo "$ac_try_echo") >&5
18427   (eval "$ac_compile") 2>conftest.er1
18428   ac_status=$?
18429   grep -v '^ *+' conftest.er1 >conftest.err
18430   rm -f conftest.er1
18431   cat conftest.err >&5
18432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433   (exit $ac_status); } && {
18434          test -z "$ac_c_werror_flag" ||
18435          test ! -s conftest.err
18436        } && test -s conftest.$ac_objext; then
18437   ac_hi=$ac_mid; break
18438 else
18439   $as_echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18441
18442         ac_lo=`expr $ac_mid + 1`
18443                         if test $ac_lo -le $ac_mid; then
18444                           ac_lo= ac_hi=
18445                           break
18446                         fi
18447                         ac_mid=`expr 2 '*' $ac_mid + 1`
18448 fi
18449
18450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18451   done
18452 else
18453   $as_echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18455
18456         cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h.  */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h.  */
18462 $ac_includes_default
18463 int
18464 main ()
18465 {
18466 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18467 test_array [0] = 0
18468
18469   ;
18470   return 0;
18471 }
18472 _ACEOF
18473 rm -f conftest.$ac_objext
18474 if { (ac_try="$ac_compile"
18475 case "(($ac_try" in
18476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477   *) ac_try_echo=$ac_try;;
18478 esac
18479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18480 $as_echo "$ac_try_echo") >&5
18481   (eval "$ac_compile") 2>conftest.er1
18482   ac_status=$?
18483   grep -v '^ *+' conftest.er1 >conftest.err
18484   rm -f conftest.er1
18485   cat conftest.err >&5
18486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); } && {
18488          test -z "$ac_c_werror_flag" ||
18489          test ! -s conftest.err
18490        } && test -s conftest.$ac_objext; then
18491   ac_hi=-1 ac_mid=-1
18492   while :; do
18493     cat >conftest.$ac_ext <<_ACEOF
18494 /* confdefs.h.  */
18495 _ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h.  */
18499 $ac_includes_default
18500 int
18501 main ()
18502 {
18503 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18504 test_array [0] = 0
18505
18506   ;
18507   return 0;
18508 }
18509 _ACEOF
18510 rm -f conftest.$ac_objext
18511 if { (ac_try="$ac_compile"
18512 case "(($ac_try" in
18513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514   *) ac_try_echo=$ac_try;;
18515 esac
18516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18517 $as_echo "$ac_try_echo") >&5
18518   (eval "$ac_compile") 2>conftest.er1
18519   ac_status=$?
18520   grep -v '^ *+' conftest.er1 >conftest.err
18521   rm -f conftest.er1
18522   cat conftest.err >&5
18523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); } && {
18525          test -z "$ac_c_werror_flag" ||
18526          test ! -s conftest.err
18527        } && test -s conftest.$ac_objext; then
18528   ac_lo=$ac_mid; break
18529 else
18530   $as_echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18532
18533         ac_hi=`expr '(' $ac_mid ')' - 1`
18534                         if test $ac_mid -le $ac_hi; then
18535                           ac_lo= ac_hi=
18536                           break
18537                         fi
18538                         ac_mid=`expr 2 '*' $ac_mid`
18539 fi
18540
18541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18542   done
18543 else
18544   $as_echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18546
18547         ac_lo= ac_hi=
18548 fi
18549
18550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18551 fi
18552
18553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18554 # Binary search between lo and hi bounds.
18555 while test "x$ac_lo" != "x$ac_hi"; do
18556   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18557   cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563 $ac_includes_default
18564 int
18565 main ()
18566 {
18567 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18568 test_array [0] = 0
18569
18570   ;
18571   return 0;
18572 }
18573 _ACEOF
18574 rm -f conftest.$ac_objext
18575 if { (ac_try="$ac_compile"
18576 case "(($ac_try" in
18577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578   *) ac_try_echo=$ac_try;;
18579 esac
18580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18581 $as_echo "$ac_try_echo") >&5
18582   (eval "$ac_compile") 2>conftest.er1
18583   ac_status=$?
18584   grep -v '^ *+' conftest.er1 >conftest.err
18585   rm -f conftest.er1
18586   cat conftest.err >&5
18587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); } && {
18589          test -z "$ac_c_werror_flag" ||
18590          test ! -s conftest.err
18591        } && test -s conftest.$ac_objext; then
18592   ac_hi=$ac_mid
18593 else
18594   $as_echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18596
18597         ac_lo=`expr '(' $ac_mid ')' + 1`
18598 fi
18599
18600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18601 done
18602 case $ac_lo in
18603 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18604 '') if test "$ac_cv_type_off_t" = yes; then
18605      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18607 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18608 See \`config.log' for more details." >&5
18609 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18610 See \`config.log' for more details." >&2;}
18611    { (exit 77); exit 77; }; }; }
18612    else
18613      ac_cv_sizeof_off_t=0
18614    fi ;;
18615 esac
18616 else
18617   cat >conftest.$ac_ext <<_ACEOF
18618 /* confdefs.h.  */
18619 _ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h.  */
18623 $ac_includes_default
18624 static long int longval () { return (long int) (sizeof (off_t)); }
18625 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18626 #include <stdio.h>
18627 #include <stdlib.h>
18628 int
18629 main ()
18630 {
18631
18632   FILE *f = fopen ("conftest.val", "w");
18633   if (! f)
18634     return 1;
18635   if (((long int) (sizeof (off_t))) < 0)
18636     {
18637       long int i = longval ();
18638       if (i != ((long int) (sizeof (off_t))))
18639         return 1;
18640       fprintf (f, "%ld", i);
18641     }
18642   else
18643     {
18644       unsigned long int i = ulongval ();
18645       if (i != ((long int) (sizeof (off_t))))
18646         return 1;
18647       fprintf (f, "%lu", i);
18648     }
18649   /* Do not output a trailing newline, as this causes \r\n confusion
18650      on some platforms.  */
18651   return ferror (f) || fclose (f) != 0;
18652
18653   ;
18654   return 0;
18655 }
18656 _ACEOF
18657 rm -f conftest$ac_exeext
18658 if { (ac_try="$ac_link"
18659 case "(($ac_try" in
18660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661   *) ac_try_echo=$ac_try;;
18662 esac
18663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18664 $as_echo "$ac_try_echo") >&5
18665   (eval "$ac_link") 2>&5
18666   ac_status=$?
18667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18669   { (case "(($ac_try" in
18670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671   *) ac_try_echo=$ac_try;;
18672 esac
18673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18674 $as_echo "$ac_try_echo") >&5
18675   (eval "$ac_try") 2>&5
18676   ac_status=$?
18677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678   (exit $ac_status); }; }; then
18679   ac_cv_sizeof_off_t=`cat conftest.val`
18680 else
18681   $as_echo "$as_me: program exited with status $ac_status" >&5
18682 $as_echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18684
18685 ( exit $ac_status )
18686 if test "$ac_cv_type_off_t" = yes; then
18687      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18689 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18690 See \`config.log' for more details." >&5
18691 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18692 See \`config.log' for more details." >&2;}
18693    { (exit 77); exit 77; }; }; }
18694    else
18695      ac_cv_sizeof_off_t=0
18696    fi
18697 fi
18698 rm -rf conftest.dSYM
18699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18700 fi
18701 rm -f conftest.val
18702 fi
18703 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18704 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18705
18706
18707
18708 cat >>confdefs.h <<_ACEOF
18709 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18710 _ACEOF
18711
18712
18713
18714 # If we don't have largefile support, can't handle segsize >= 2GB.
18715 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18716    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18717 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18718    { (exit 1); exit 1; }; }
18719 fi
18720
18721
18722 ##
18723 ## Functions, global variables
18724 ##
18725
18726 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18727 $as_echo_n "checking for int timezone... " >&6; }
18728 if test "${pgac_cv_var_int_timezone+set}" = set; then
18729   $as_echo_n "(cached) " >&6
18730 else
18731   cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h.  */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h.  */
18737 #include <time.h>
18738 int res;
18739 int
18740 main ()
18741 {
18742 #ifndef __CYGWIN__
18743 res = timezone / 60;
18744 #else
18745 res = _timezone / 60;
18746 #endif
18747   ;
18748   return 0;
18749 }
18750 _ACEOF
18751 rm -f conftest.$ac_objext conftest$ac_exeext
18752 if { (ac_try="$ac_link"
18753 case "(($ac_try" in
18754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755   *) ac_try_echo=$ac_try;;
18756 esac
18757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18758 $as_echo "$ac_try_echo") >&5
18759   (eval "$ac_link") 2>conftest.er1
18760   ac_status=$?
18761   grep -v '^ *+' conftest.er1 >conftest.err
18762   rm -f conftest.er1
18763   cat conftest.err >&5
18764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); } && {
18766          test -z "$ac_c_werror_flag" ||
18767          test ! -s conftest.err
18768        } && test -s conftest$ac_exeext && {
18769          test "$cross_compiling" = yes ||
18770          $as_test_x conftest$ac_exeext
18771        }; then
18772   pgac_cv_var_int_timezone=yes
18773 else
18774   $as_echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777         pgac_cv_var_int_timezone=no
18778 fi
18779
18780 rm -rf conftest.dSYM
18781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18782       conftest$ac_exeext conftest.$ac_ext
18783 fi
18784 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18785 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18786 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18787
18788 cat >>confdefs.h <<\_ACEOF
18789 #define HAVE_INT_TIMEZONE /**/
18790 _ACEOF
18791
18792 fi
18793 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18794 $as_echo_n "checking types of arguments for accept()... " >&6; }
18795  if test "${ac_cv_func_accept_return+set}" = set; then
18796   $as_echo_n "(cached) " >&6
18797 else
18798    if test "${ac_cv_func_accept_arg1+set}" = set; then
18799   $as_echo_n "(cached) " >&6
18800 else
18801     if test "${ac_cv_func_accept_arg2+set}" = set; then
18802   $as_echo_n "(cached) " >&6
18803 else
18804      if test "${ac_cv_func_accept_arg3+set}" = set; then
18805   $as_echo_n "(cached) " >&6
18806 else
18807       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
18808       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
18809        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18810         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18811          cat >conftest.$ac_ext <<_ACEOF
18812 /* confdefs.h.  */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h.  */
18817 #ifdef HAVE_SYS_TYPES_H
18818 #include <sys/types.h>
18819 #endif
18820 #ifdef HAVE_SYS_SOCKET_H
18821 #include <sys/socket.h>
18822 #endif
18823 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18824 int
18825 main ()
18826 {
18827
18828   ;
18829   return 0;
18830 }
18831 _ACEOF
18832 rm -f conftest.$ac_objext
18833 if { (ac_try="$ac_compile"
18834 case "(($ac_try" in
18835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836   *) ac_try_echo=$ac_try;;
18837 esac
18838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18839 $as_echo "$ac_try_echo") >&5
18840   (eval "$ac_compile") 2>conftest.er1
18841   ac_status=$?
18842   grep -v '^ *+' conftest.er1 >conftest.err
18843   rm -f conftest.er1
18844   cat conftest.err >&5
18845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846   (exit $ac_status); } && {
18847          test -z "$ac_c_werror_flag" ||
18848          test ! -s conftest.err
18849        } && test -s conftest.$ac_objext; then
18850   ac_not_found=no; break 4
18851 else
18852   $as_echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855         ac_not_found=yes
18856 fi
18857
18858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18859        done
18860       done
18861      done
18862     done
18863     if test "$ac_not_found" = yes; then
18864       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18865 $as_echo "$as_me: error: could not determine argument types" >&2;}
18866    { (exit 1); exit 1; }; }
18867     fi
18868     if test "$ac_cv_func_accept_arg3" = "void"; then
18869       ac_cv_func_accept_arg3=int
18870     fi
18871
18872 fi
18873
18874 fi
18875
18876 fi
18877
18878 fi
18879  { $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
18880 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18881
18882 cat >>confdefs.h <<_ACEOF
18883 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18884 _ACEOF
18885
18886
18887 cat >>confdefs.h <<_ACEOF
18888 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18889 _ACEOF
18890
18891
18892 cat >>confdefs.h <<_ACEOF
18893 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18894 _ACEOF
18895
18896
18897 cat >>confdefs.h <<_ACEOF
18898 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18899 _ACEOF
18900
18901
18902 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18903 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18904 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18905   $as_echo_n "(cached) " >&6
18906 else
18907   cat >conftest.$ac_ext <<_ACEOF
18908 /* confdefs.h.  */
18909 _ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h.  */
18913 #include <sys/time.h>
18914 int
18915 main ()
18916 {
18917 struct timeval *tp;
18918 struct timezone *tzp;
18919 gettimeofday(tp,tzp);
18920   ;
18921   return 0;
18922 }
18923 _ACEOF
18924 rm -f conftest.$ac_objext
18925 if { (ac_try="$ac_compile"
18926 case "(($ac_try" in
18927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928   *) ac_try_echo=$ac_try;;
18929 esac
18930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18931 $as_echo "$ac_try_echo") >&5
18932   (eval "$ac_compile") 2>conftest.er1
18933   ac_status=$?
18934   grep -v '^ *+' conftest.er1 >conftest.err
18935   rm -f conftest.er1
18936   cat conftest.err >&5
18937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); } && {
18939          test -z "$ac_c_werror_flag" ||
18940          test ! -s conftest.err
18941        } && test -s conftest.$ac_objext; then
18942   pgac_cv_func_gettimeofday_1arg=no
18943 else
18944   $as_echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18946
18947         pgac_cv_func_gettimeofday_1arg=yes
18948 fi
18949
18950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18951 fi
18952 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18953 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18954 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18955
18956 cat >>confdefs.h <<\_ACEOF
18957 #define GETTIMEOFDAY_1ARG /**/
18958 _ACEOF
18959
18960 fi
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
18988 do
18989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18990 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18991 $as_echo_n "checking for $ac_func... " >&6; }
18992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18993   $as_echo_n "(cached) " >&6
18994 else
18995   cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h.  */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h.  */
19001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19003 #define $ac_func innocuous_$ac_func
19004
19005 /* System header to define __stub macros and hopefully few prototypes,
19006     which can conflict with char $ac_func (); below.
19007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19008     <limits.h> exists even on freestanding compilers.  */
19009
19010 #ifdef __STDC__
19011 # include <limits.h>
19012 #else
19013 # include <assert.h>
19014 #endif
19015
19016 #undef $ac_func
19017
19018 /* Override any GCC internal prototype to avoid an error.
19019    Use char because int might match the return type of a GCC
19020    builtin and then its argument prototype would still apply.  */
19021 #ifdef __cplusplus
19022 extern "C"
19023 #endif
19024 char $ac_func ();
19025 /* The GNU C library defines this for functions which it implements
19026     to always fail with ENOSYS.  Some functions are actually named
19027     something starting with __ and the normal name is an alias.  */
19028 #if defined __stub_$ac_func || defined __stub___$ac_func
19029 choke me
19030 #endif
19031
19032 int
19033 main ()
19034 {
19035 return $ac_func ();
19036   ;
19037   return 0;
19038 }
19039 _ACEOF
19040 rm -f conftest.$ac_objext conftest$ac_exeext
19041 if { (ac_try="$ac_link"
19042 case "(($ac_try" in
19043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044   *) ac_try_echo=$ac_try;;
19045 esac
19046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19047 $as_echo "$ac_try_echo") >&5
19048   (eval "$ac_link") 2>conftest.er1
19049   ac_status=$?
19050   grep -v '^ *+' conftest.er1 >conftest.err
19051   rm -f conftest.er1
19052   cat conftest.err >&5
19053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); } && {
19055          test -z "$ac_c_werror_flag" ||
19056          test ! -s conftest.err
19057        } && test -s conftest$ac_exeext && {
19058          test "$cross_compiling" = yes ||
19059          $as_test_x conftest$ac_exeext
19060        }; then
19061   eval "$as_ac_var=yes"
19062 else
19063   $as_echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19065
19066         eval "$as_ac_var=no"
19067 fi
19068
19069 rm -rf conftest.dSYM
19070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19071       conftest$ac_exeext conftest.$ac_ext
19072 fi
19073 ac_res=`eval 'as_val=${'$as_ac_var'}
19074                  $as_echo "$as_val"'`
19075                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19076 $as_echo "$ac_res" >&6; }
19077 as_val=`eval 'as_val=${'$as_ac_var'}
19078                  $as_echo "$as_val"'`
19079    if test "x$as_val" = x""yes; then
19080   cat >>confdefs.h <<_ACEOF
19081 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19082 _ACEOF
19083
19084 fi
19085 done
19086
19087
19088
19089 for ac_func in fseeko
19090 do
19091 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19092 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19093 $as_echo_n "checking for $ac_func... " >&6; }
19094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19095   $as_echo_n "(cached) " >&6
19096 else
19097   cat >conftest.$ac_ext <<_ACEOF
19098 /* confdefs.h.  */
19099 _ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h.  */
19103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19105 #define $ac_func innocuous_$ac_func
19106
19107 /* System header to define __stub macros and hopefully few prototypes,
19108     which can conflict with char $ac_func (); below.
19109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19110     <limits.h> exists even on freestanding compilers.  */
19111
19112 #ifdef __STDC__
19113 # include <limits.h>
19114 #else
19115 # include <assert.h>
19116 #endif
19117
19118 #undef $ac_func
19119
19120 /* Override any GCC internal prototype to avoid an error.
19121    Use char because int might match the return type of a GCC
19122    builtin and then its argument prototype would still apply.  */
19123 #ifdef __cplusplus
19124 extern "C"
19125 #endif
19126 char $ac_func ();
19127 /* The GNU C library defines this for functions which it implements
19128     to always fail with ENOSYS.  Some functions are actually named
19129     something starting with __ and the normal name is an alias.  */
19130 #if defined __stub_$ac_func || defined __stub___$ac_func
19131 choke me
19132 #endif
19133
19134 int
19135 main ()
19136 {
19137 return $ac_func ();
19138   ;
19139   return 0;
19140 }
19141 _ACEOF
19142 rm -f conftest.$ac_objext conftest$ac_exeext
19143 if { (ac_try="$ac_link"
19144 case "(($ac_try" in
19145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146   *) ac_try_echo=$ac_try;;
19147 esac
19148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19149 $as_echo "$ac_try_echo") >&5
19150   (eval "$ac_link") 2>conftest.er1
19151   ac_status=$?
19152   grep -v '^ *+' conftest.er1 >conftest.err
19153   rm -f conftest.er1
19154   cat conftest.err >&5
19155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); } && {
19157          test -z "$ac_c_werror_flag" ||
19158          test ! -s conftest.err
19159        } && test -s conftest$ac_exeext && {
19160          test "$cross_compiling" = yes ||
19161          $as_test_x conftest$ac_exeext
19162        }; then
19163   eval "$as_ac_var=yes"
19164 else
19165   $as_echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19167
19168         eval "$as_ac_var=no"
19169 fi
19170
19171 rm -rf conftest.dSYM
19172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19173       conftest$ac_exeext conftest.$ac_ext
19174 fi
19175 ac_res=`eval 'as_val=${'$as_ac_var'}
19176                  $as_echo "$as_val"'`
19177                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19178 $as_echo "$ac_res" >&6; }
19179 as_val=`eval 'as_val=${'$as_ac_var'}
19180                  $as_echo "$as_val"'`
19181    if test "x$as_val" = x""yes; then
19182   cat >>confdefs.h <<_ACEOF
19183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19184 _ACEOF
19185
19186 else
19187   case " $LIBOBJS " in
19188   *" $ac_func.$ac_objext "* ) ;;
19189   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19190  ;;
19191 esac
19192
19193 fi
19194 done
19195
19196
19197 case $host_os in
19198         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19199         # Mingw uses macros to access Win32 API calls
19200         bsdi*|netbsd*|mingw*)
19201
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE_FSEEKO 1
19204 _ACEOF
19205
19206                 ac_cv_func_fseeko=yes;;
19207         *)
19208                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19209 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19210 if test "${ac_cv_sys_largefile_source+set}" = set; then
19211   $as_echo_n "(cached) " >&6
19212 else
19213   while :; do
19214   cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h.  */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h.  */
19220 #include <sys/types.h> /* for off_t */
19221      #include <stdio.h>
19222 int
19223 main ()
19224 {
19225 int (*fp) (FILE *, off_t, int) = fseeko;
19226      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19227   ;
19228   return 0;
19229 }
19230 _ACEOF
19231 rm -f conftest.$ac_objext conftest$ac_exeext
19232 if { (ac_try="$ac_link"
19233 case "(($ac_try" in
19234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235   *) ac_try_echo=$ac_try;;
19236 esac
19237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19238 $as_echo "$ac_try_echo") >&5
19239   (eval "$ac_link") 2>conftest.er1
19240   ac_status=$?
19241   grep -v '^ *+' conftest.er1 >conftest.err
19242   rm -f conftest.er1
19243   cat conftest.err >&5
19244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245   (exit $ac_status); } && {
19246          test -z "$ac_c_werror_flag" ||
19247          test ! -s conftest.err
19248        } && test -s conftest$ac_exeext && {
19249          test "$cross_compiling" = yes ||
19250          $as_test_x conftest$ac_exeext
19251        }; then
19252   ac_cv_sys_largefile_source=no; break
19253 else
19254   $as_echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19256
19257
19258 fi
19259
19260 rm -rf conftest.dSYM
19261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19262       conftest$ac_exeext conftest.$ac_ext
19263   cat >conftest.$ac_ext <<_ACEOF
19264 /* confdefs.h.  */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h.  */
19269 #define _LARGEFILE_SOURCE 1
19270 #include <sys/types.h> /* for off_t */
19271      #include <stdio.h>
19272 int
19273 main ()
19274 {
19275 int (*fp) (FILE *, off_t, int) = fseeko;
19276      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19277   ;
19278   return 0;
19279 }
19280 _ACEOF
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (ac_try="$ac_link"
19283 case "(($ac_try" in
19284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285   *) ac_try_echo=$ac_try;;
19286 esac
19287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19288 $as_echo "$ac_try_echo") >&5
19289   (eval "$ac_link") 2>conftest.er1
19290   ac_status=$?
19291   grep -v '^ *+' conftest.er1 >conftest.err
19292   rm -f conftest.er1
19293   cat conftest.err >&5
19294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); } && {
19296          test -z "$ac_c_werror_flag" ||
19297          test ! -s conftest.err
19298        } && test -s conftest$ac_exeext && {
19299          test "$cross_compiling" = yes ||
19300          $as_test_x conftest$ac_exeext
19301        }; then
19302   ac_cv_sys_largefile_source=1; break
19303 else
19304   $as_echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307
19308 fi
19309
19310 rm -rf conftest.dSYM
19311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19312       conftest$ac_exeext conftest.$ac_ext
19313   ac_cv_sys_largefile_source=unknown
19314   break
19315 done
19316 fi
19317 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19318 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19319 case $ac_cv_sys_largefile_source in #(
19320   no | unknown) ;;
19321   *)
19322 cat >>confdefs.h <<_ACEOF
19323 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19324 _ACEOF
19325 ;;
19326 esac
19327 rm -rf conftest*
19328
19329 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19330 # in glibc 2.1.3, but that breaks too many other things.
19331 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19332 if test $ac_cv_sys_largefile_source != unknown; then
19333
19334 cat >>confdefs.h <<\_ACEOF
19335 #define HAVE_FSEEKO 1
19336 _ACEOF
19337
19338 fi
19339 ;;
19340 esac
19341
19342 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19343 # by calling it, 2009-04-02
19344 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19345 if test "$PORTNAME" != "solaris"; then
19346
19347 for ac_func in posix_fadvise
19348 do
19349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19350 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19351 $as_echo_n "checking for $ac_func... " >&6; }
19352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19353   $as_echo_n "(cached) " >&6
19354 else
19355   cat >conftest.$ac_ext <<_ACEOF
19356 /* confdefs.h.  */
19357 _ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h.  */
19361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19363 #define $ac_func innocuous_$ac_func
19364
19365 /* System header to define __stub macros and hopefully few prototypes,
19366     which can conflict with char $ac_func (); below.
19367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19368     <limits.h> exists even on freestanding compilers.  */
19369
19370 #ifdef __STDC__
19371 # include <limits.h>
19372 #else
19373 # include <assert.h>
19374 #endif
19375
19376 #undef $ac_func
19377
19378 /* Override any GCC internal prototype to avoid an error.
19379    Use char because int might match the return type of a GCC
19380    builtin and then its argument prototype would still apply.  */
19381 #ifdef __cplusplus
19382 extern "C"
19383 #endif
19384 char $ac_func ();
19385 /* The GNU C library defines this for functions which it implements
19386     to always fail with ENOSYS.  Some functions are actually named
19387     something starting with __ and the normal name is an alias.  */
19388 #if defined __stub_$ac_func || defined __stub___$ac_func
19389 choke me
19390 #endif
19391
19392 int
19393 main ()
19394 {
19395 return $ac_func ();
19396   ;
19397   return 0;
19398 }
19399 _ACEOF
19400 rm -f conftest.$ac_objext conftest$ac_exeext
19401 if { (ac_try="$ac_link"
19402 case "(($ac_try" in
19403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404   *) ac_try_echo=$ac_try;;
19405 esac
19406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19407 $as_echo "$ac_try_echo") >&5
19408   (eval "$ac_link") 2>conftest.er1
19409   ac_status=$?
19410   grep -v '^ *+' conftest.er1 >conftest.err
19411   rm -f conftest.er1
19412   cat conftest.err >&5
19413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); } && {
19415          test -z "$ac_c_werror_flag" ||
19416          test ! -s conftest.err
19417        } && test -s conftest$ac_exeext && {
19418          test "$cross_compiling" = yes ||
19419          $as_test_x conftest$ac_exeext
19420        }; then
19421   eval "$as_ac_var=yes"
19422 else
19423   $as_echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426         eval "$as_ac_var=no"
19427 fi
19428
19429 rm -rf conftest.dSYM
19430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19431       conftest$ac_exeext conftest.$ac_ext
19432 fi
19433 ac_res=`eval 'as_val=${'$as_ac_var'}
19434                  $as_echo "$as_val"'`
19435                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19436 $as_echo "$ac_res" >&6; }
19437 as_val=`eval 'as_val=${'$as_ac_var'}
19438                  $as_echo "$as_val"'`
19439    if test "x$as_val" = x""yes; then
19440   cat >>confdefs.h <<_ACEOF
19441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19442 _ACEOF
19443
19444 fi
19445 done
19446
19447 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19448 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19449 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19450   $as_echo_n "(cached) " >&6
19451 else
19452   cat >conftest.$ac_ext <<_ACEOF
19453 /* confdefs.h.  */
19454 _ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h.  */
19458 #include <fcntl.h>
19459
19460 int
19461 main ()
19462 {
19463 #ifndef posix_fadvise
19464   (void) posix_fadvise;
19465 #endif
19466
19467   ;
19468   return 0;
19469 }
19470 _ACEOF
19471 rm -f conftest.$ac_objext
19472 if { (ac_try="$ac_compile"
19473 case "(($ac_try" in
19474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475   *) ac_try_echo=$ac_try;;
19476 esac
19477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19478 $as_echo "$ac_try_echo") >&5
19479   (eval "$ac_compile") 2>conftest.er1
19480   ac_status=$?
19481   grep -v '^ *+' conftest.er1 >conftest.err
19482   rm -f conftest.er1
19483   cat conftest.err >&5
19484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); } && {
19486          test -z "$ac_c_werror_flag" ||
19487          test ! -s conftest.err
19488        } && test -s conftest.$ac_objext; then
19489   ac_cv_have_decl_posix_fadvise=yes
19490 else
19491   $as_echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494         ac_cv_have_decl_posix_fadvise=no
19495 fi
19496
19497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19498 fi
19499 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19500 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19501 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19502
19503 cat >>confdefs.h <<_ACEOF
19504 #define HAVE_DECL_POSIX_FADVISE 1
19505 _ACEOF
19506
19507
19508 else
19509   cat >>confdefs.h <<_ACEOF
19510 #define HAVE_DECL_POSIX_FADVISE 0
19511 _ACEOF
19512
19513
19514 fi
19515
19516
19517 fi
19518
19519 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19520 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19521 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19522   $as_echo_n "(cached) " >&6
19523 else
19524   cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h.  */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h.  */
19530 #include <unistd.h>
19531
19532 int
19533 main ()
19534 {
19535 #ifndef fdatasync
19536   (void) fdatasync;
19537 #endif
19538
19539   ;
19540   return 0;
19541 }
19542 _ACEOF
19543 rm -f conftest.$ac_objext
19544 if { (ac_try="$ac_compile"
19545 case "(($ac_try" in
19546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547   *) ac_try_echo=$ac_try;;
19548 esac
19549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19550 $as_echo "$ac_try_echo") >&5
19551   (eval "$ac_compile") 2>conftest.er1
19552   ac_status=$?
19553   grep -v '^ *+' conftest.er1 >conftest.err
19554   rm -f conftest.er1
19555   cat conftest.err >&5
19556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); } && {
19558          test -z "$ac_c_werror_flag" ||
19559          test ! -s conftest.err
19560        } && test -s conftest.$ac_objext; then
19561   ac_cv_have_decl_fdatasync=yes
19562 else
19563   $as_echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19565
19566         ac_cv_have_decl_fdatasync=no
19567 fi
19568
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 fi
19571 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19572 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19573 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19574
19575 cat >>confdefs.h <<_ACEOF
19576 #define HAVE_DECL_FDATASYNC 1
19577 _ACEOF
19578
19579
19580 else
19581   cat >>confdefs.h <<_ACEOF
19582 #define HAVE_DECL_FDATASYNC 0
19583 _ACEOF
19584
19585
19586 fi
19587
19588
19589 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19590 $as_echo_n "checking whether strlcat is declared... " >&6; }
19591 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19592   $as_echo_n "(cached) " >&6
19593 else
19594   cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h.  */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h.  */
19600 $ac_includes_default
19601 int
19602 main ()
19603 {
19604 #ifndef strlcat
19605   (void) strlcat;
19606 #endif
19607
19608   ;
19609   return 0;
19610 }
19611 _ACEOF
19612 rm -f conftest.$ac_objext
19613 if { (ac_try="$ac_compile"
19614 case "(($ac_try" in
19615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616   *) ac_try_echo=$ac_try;;
19617 esac
19618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19619 $as_echo "$ac_try_echo") >&5
19620   (eval "$ac_compile") 2>conftest.er1
19621   ac_status=$?
19622   grep -v '^ *+' conftest.er1 >conftest.err
19623   rm -f conftest.er1
19624   cat conftest.err >&5
19625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); } && {
19627          test -z "$ac_c_werror_flag" ||
19628          test ! -s conftest.err
19629        } && test -s conftest.$ac_objext; then
19630   ac_cv_have_decl_strlcat=yes
19631 else
19632   $as_echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19634
19635         ac_cv_have_decl_strlcat=no
19636 fi
19637
19638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19639 fi
19640 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19641 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19642 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19643
19644 cat >>confdefs.h <<_ACEOF
19645 #define HAVE_DECL_STRLCAT 1
19646 _ACEOF
19647
19648
19649 else
19650   cat >>confdefs.h <<_ACEOF
19651 #define HAVE_DECL_STRLCAT 0
19652 _ACEOF
19653
19654
19655 fi
19656 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19657 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19658 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19659   $as_echo_n "(cached) " >&6
19660 else
19661   cat >conftest.$ac_ext <<_ACEOF
19662 /* confdefs.h.  */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h.  */
19667 $ac_includes_default
19668 int
19669 main ()
19670 {
19671 #ifndef strlcpy
19672   (void) strlcpy;
19673 #endif
19674
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
19697   ac_cv_have_decl_strlcpy=yes
19698 else
19699   $as_echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19701
19702         ac_cv_have_decl_strlcpy=no
19703 fi
19704
19705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19706 fi
19707 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19708 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19709 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19710
19711 cat >>confdefs.h <<_ACEOF
19712 #define HAVE_DECL_STRLCPY 1
19713 _ACEOF
19714
19715
19716 else
19717   cat >>confdefs.h <<_ACEOF
19718 #define HAVE_DECL_STRLCPY 0
19719 _ACEOF
19720
19721
19722 fi
19723
19724
19725 # This is probably only present on Darwin, but may as well check always
19726 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19727 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19728 if test "${ac_cv_have_decl_F_FULLFSYNC+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 F_FULLFSYNC
19743   (void) F_FULLFSYNC;
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_F_FULLFSYNC=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_F_FULLFSYNC=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_F_FULLFSYNC" >&5
19779 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19780 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19781
19782 cat >>confdefs.h <<_ACEOF
19783 #define HAVE_DECL_F_FULLFSYNC 1
19784 _ACEOF
19785
19786
19787 else
19788   cat >>confdefs.h <<_ACEOF
19789 #define HAVE_DECL_F_FULLFSYNC 0
19790 _ACEOF
19791
19792
19793 fi
19794
19795
19796
19797 HAVE_IPV6=no
19798 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19799 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19800 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19801   $as_echo_n "(cached) " >&6
19802 else
19803   ac_cv_type_struct_sockaddr_in6=no
19804 cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h.  */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h.  */
19810 $ac_includes_default
19811 #include <netinet/in.h>
19812
19813 int
19814 main ()
19815 {
19816 if (sizeof (struct sockaddr_in6))
19817        return 0;
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   cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h.  */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h.  */
19846 $ac_includes_default
19847 #include <netinet/in.h>
19848
19849 int
19850 main ()
19851 {
19852 if (sizeof ((struct sockaddr_in6)))
19853           return 0;
19854   ;
19855   return 0;
19856 }
19857 _ACEOF
19858 rm -f conftest.$ac_objext
19859 if { (ac_try="$ac_compile"
19860 case "(($ac_try" in
19861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862   *) ac_try_echo=$ac_try;;
19863 esac
19864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19865 $as_echo "$ac_try_echo") >&5
19866   (eval "$ac_compile") 2>conftest.er1
19867   ac_status=$?
19868   grep -v '^ *+' conftest.er1 >conftest.err
19869   rm -f conftest.er1
19870   cat conftest.err >&5
19871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); } && {
19873          test -z "$ac_c_werror_flag" ||
19874          test ! -s conftest.err
19875        } && test -s conftest.$ac_objext; then
19876   :
19877 else
19878   $as_echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19880
19881         ac_cv_type_struct_sockaddr_in6=yes
19882 fi
19883
19884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19885 else
19886   $as_echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889
19890 fi
19891
19892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19893 fi
19894 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19895 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19896 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19897
19898 cat >>confdefs.h <<\_ACEOF
19899 #define HAVE_IPV6 1
19900 _ACEOF
19901
19902          HAVE_IPV6=yes
19903 fi
19904
19905
19906
19907 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19908 $as_echo_n "checking for PS_STRINGS... " >&6; }
19909 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19910   $as_echo_n "(cached) " >&6
19911 else
19912   cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h.  */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h.  */
19918 #include <machine/vmparam.h>
19919 #include <sys/exec.h>
19920
19921 int
19922 main ()
19923 {
19924 PS_STRINGS->ps_nargvstr = 1;
19925 PS_STRINGS->ps_argvstr = "foo";
19926   ;
19927   return 0;
19928 }
19929 _ACEOF
19930 rm -f conftest.$ac_objext conftest$ac_exeext
19931 if { (ac_try="$ac_link"
19932 case "(($ac_try" in
19933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934   *) ac_try_echo=$ac_try;;
19935 esac
19936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19937 $as_echo "$ac_try_echo") >&5
19938   (eval "$ac_link") 2>conftest.er1
19939   ac_status=$?
19940   grep -v '^ *+' conftest.er1 >conftest.err
19941   rm -f conftest.er1
19942   cat conftest.err >&5
19943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); } && {
19945          test -z "$ac_c_werror_flag" ||
19946          test ! -s conftest.err
19947        } && test -s conftest$ac_exeext && {
19948          test "$cross_compiling" = yes ||
19949          $as_test_x conftest$ac_exeext
19950        }; then
19951   pgac_cv_var_PS_STRINGS=yes
19952 else
19953   $as_echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19955
19956         pgac_cv_var_PS_STRINGS=no
19957 fi
19958
19959 rm -rf conftest.dSYM
19960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961       conftest$ac_exeext conftest.$ac_ext
19962 fi
19963 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19964 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19965 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19966
19967 cat >>confdefs.h <<\_ACEOF
19968 #define HAVE_PS_STRINGS /**/
19969 _ACEOF
19970
19971 fi
19972
19973
19974 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19975 # is missing.  Yes, there are machines that have only one.  We may
19976 # also decide to use snprintf.c if snprintf() is present but does not
19977 # have all the features we need --- see below.
19978
19979 if test "$PORTNAME" = "win32"; then
19980   # Win32 gets snprintf.c built unconditionally.
19981   #
19982   # To properly translate all NLS languages strings, we must support the
19983   # *printf() %$ format, which allows *printf() arguments to be selected
19984   # by position in the translated string.
19985   #
19986   # libintl versions < 0.13 use the native *printf() functions, and Win32
19987   # *printf() doesn't understand %$, so we must use our /port versions,
19988   # which do understand %$. libintl versions >= 0.13 include their own
19989   # *printf versions on Win32.  The libintl 0.13 release note text is:
19990   #
19991   #   C format strings with positions, as they arise when a translator
19992   #   needs to reorder a sentence, are now supported on all platforms.
19993   #   On those few platforms (NetBSD and Woe32) for which the native
19994   #   printf()/fprintf()/... functions don't support such format
19995   #   strings, replacements are provided through <libintl.h>.
19996   #
19997   # We could use libintl >= 0.13's *printf() if we were sure that we had
19998   # a litint >= 0.13 at runtime, but seeing that there is no clean way
19999   # to guarantee that, it is best to just use our own, so we are sure to
20000   # get %$ support. In include/port.h we disable the *printf() macros
20001   # that might have been defined by libintl.
20002   #
20003   # We do this unconditionally whether NLS is used or not so we are sure
20004   # that all Win32 libraries and binaries behave the same.
20005   pgac_need_repl_snprintf=yes
20006 else
20007   pgac_need_repl_snprintf=no
20008
20009 for ac_func in snprintf
20010 do
20011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20012 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20013 $as_echo_n "checking for $ac_func... " >&6; }
20014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20015   $as_echo_n "(cached) " >&6
20016 else
20017   cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h.  */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h.  */
20023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20025 #define $ac_func innocuous_$ac_func
20026
20027 /* System header to define __stub macros and hopefully few prototypes,
20028     which can conflict with char $ac_func (); below.
20029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20030     <limits.h> exists even on freestanding compilers.  */
20031
20032 #ifdef __STDC__
20033 # include <limits.h>
20034 #else
20035 # include <assert.h>
20036 #endif
20037
20038 #undef $ac_func
20039
20040 /* Override any GCC internal prototype to avoid an error.
20041    Use char because int might match the return type of a GCC
20042    builtin and then its argument prototype would still apply.  */
20043 #ifdef __cplusplus
20044 extern "C"
20045 #endif
20046 char $ac_func ();
20047 /* The GNU C library defines this for functions which it implements
20048     to always fail with ENOSYS.  Some functions are actually named
20049     something starting with __ and the normal name is an alias.  */
20050 #if defined __stub_$ac_func || defined __stub___$ac_func
20051 choke me
20052 #endif
20053
20054 int
20055 main ()
20056 {
20057 return $ac_func ();
20058   ;
20059   return 0;
20060 }
20061 _ACEOF
20062 rm -f conftest.$ac_objext conftest$ac_exeext
20063 if { (ac_try="$ac_link"
20064 case "(($ac_try" in
20065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066   *) ac_try_echo=$ac_try;;
20067 esac
20068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20069 $as_echo "$ac_try_echo") >&5
20070   (eval "$ac_link") 2>conftest.er1
20071   ac_status=$?
20072   grep -v '^ *+' conftest.er1 >conftest.err
20073   rm -f conftest.er1
20074   cat conftest.err >&5
20075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); } && {
20077          test -z "$ac_c_werror_flag" ||
20078          test ! -s conftest.err
20079        } && test -s conftest$ac_exeext && {
20080          test "$cross_compiling" = yes ||
20081          $as_test_x conftest$ac_exeext
20082        }; then
20083   eval "$as_ac_var=yes"
20084 else
20085   $as_echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20087
20088         eval "$as_ac_var=no"
20089 fi
20090
20091 rm -rf conftest.dSYM
20092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20093       conftest$ac_exeext conftest.$ac_ext
20094 fi
20095 ac_res=`eval 'as_val=${'$as_ac_var'}
20096                  $as_echo "$as_val"'`
20097                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20098 $as_echo "$ac_res" >&6; }
20099 as_val=`eval 'as_val=${'$as_ac_var'}
20100                  $as_echo "$as_val"'`
20101    if test "x$as_val" = x""yes; then
20102   cat >>confdefs.h <<_ACEOF
20103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20104 _ACEOF
20105
20106 else
20107   pgac_need_repl_snprintf=yes
20108 fi
20109 done
20110
20111
20112 for ac_func in vsnprintf
20113 do
20114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20115 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20116 $as_echo_n "checking for $ac_func... " >&6; }
20117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20118   $as_echo_n "(cached) " >&6
20119 else
20120   cat >conftest.$ac_ext <<_ACEOF
20121 /* confdefs.h.  */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h.  */
20126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20128 #define $ac_func innocuous_$ac_func
20129
20130 /* System header to define __stub macros and hopefully few prototypes,
20131     which can conflict with char $ac_func (); below.
20132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20133     <limits.h> exists even on freestanding compilers.  */
20134
20135 #ifdef __STDC__
20136 # include <limits.h>
20137 #else
20138 # include <assert.h>
20139 #endif
20140
20141 #undef $ac_func
20142
20143 /* Override any GCC internal prototype to avoid an error.
20144    Use char because int might match the return type of a GCC
20145    builtin and then its argument prototype would still apply.  */
20146 #ifdef __cplusplus
20147 extern "C"
20148 #endif
20149 char $ac_func ();
20150 /* The GNU C library defines this for functions which it implements
20151     to always fail with ENOSYS.  Some functions are actually named
20152     something starting with __ and the normal name is an alias.  */
20153 #if defined __stub_$ac_func || defined __stub___$ac_func
20154 choke me
20155 #endif
20156
20157 int
20158 main ()
20159 {
20160 return $ac_func ();
20161   ;
20162   return 0;
20163 }
20164 _ACEOF
20165 rm -f conftest.$ac_objext conftest$ac_exeext
20166 if { (ac_try="$ac_link"
20167 case "(($ac_try" in
20168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169   *) ac_try_echo=$ac_try;;
20170 esac
20171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20172 $as_echo "$ac_try_echo") >&5
20173   (eval "$ac_link") 2>conftest.er1
20174   ac_status=$?
20175   grep -v '^ *+' conftest.er1 >conftest.err
20176   rm -f conftest.er1
20177   cat conftest.err >&5
20178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179   (exit $ac_status); } && {
20180          test -z "$ac_c_werror_flag" ||
20181          test ! -s conftest.err
20182        } && test -s conftest$ac_exeext && {
20183          test "$cross_compiling" = yes ||
20184          $as_test_x conftest$ac_exeext
20185        }; then
20186   eval "$as_ac_var=yes"
20187 else
20188   $as_echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20190
20191         eval "$as_ac_var=no"
20192 fi
20193
20194 rm -rf conftest.dSYM
20195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20196       conftest$ac_exeext conftest.$ac_ext
20197 fi
20198 ac_res=`eval 'as_val=${'$as_ac_var'}
20199                  $as_echo "$as_val"'`
20200                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20201 $as_echo "$ac_res" >&6; }
20202 as_val=`eval 'as_val=${'$as_ac_var'}
20203                  $as_echo "$as_val"'`
20204    if test "x$as_val" = x""yes; then
20205   cat >>confdefs.h <<_ACEOF
20206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20207 _ACEOF
20208
20209 else
20210   pgac_need_repl_snprintf=yes
20211 fi
20212 done
20213
20214 fi
20215
20216
20217 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20218 # include/c.h will provide declarations.  Note this is a separate test
20219 # from whether the functions exist in the C library --- there are
20220 # systems that have the functions but don't bother to declare them :-(
20221
20222 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20223 $as_echo_n "checking whether snprintf is declared... " >&6; }
20224 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20225   $as_echo_n "(cached) " >&6
20226 else
20227   cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233 $ac_includes_default
20234 int
20235 main ()
20236 {
20237 #ifndef snprintf
20238   (void) snprintf;
20239 #endif
20240
20241   ;
20242   return 0;
20243 }
20244 _ACEOF
20245 rm -f conftest.$ac_objext
20246 if { (ac_try="$ac_compile"
20247 case "(($ac_try" in
20248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249   *) ac_try_echo=$ac_try;;
20250 esac
20251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20252 $as_echo "$ac_try_echo") >&5
20253   (eval "$ac_compile") 2>conftest.er1
20254   ac_status=$?
20255   grep -v '^ *+' conftest.er1 >conftest.err
20256   rm -f conftest.er1
20257   cat conftest.err >&5
20258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); } && {
20260          test -z "$ac_c_werror_flag" ||
20261          test ! -s conftest.err
20262        } && test -s conftest.$ac_objext; then
20263   ac_cv_have_decl_snprintf=yes
20264 else
20265   $as_echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20267
20268         ac_cv_have_decl_snprintf=no
20269 fi
20270
20271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272 fi
20273 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20274 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20275 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20276
20277 cat >>confdefs.h <<_ACEOF
20278 #define HAVE_DECL_SNPRINTF 1
20279 _ACEOF
20280
20281
20282 else
20283   cat >>confdefs.h <<_ACEOF
20284 #define HAVE_DECL_SNPRINTF 0
20285 _ACEOF
20286
20287
20288 fi
20289 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20290 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20291 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20292   $as_echo_n "(cached) " >&6
20293 else
20294   cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h.  */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h.  */
20300 $ac_includes_default
20301 int
20302 main ()
20303 {
20304 #ifndef vsnprintf
20305   (void) vsnprintf;
20306 #endif
20307
20308   ;
20309   return 0;
20310 }
20311 _ACEOF
20312 rm -f conftest.$ac_objext
20313 if { (ac_try="$ac_compile"
20314 case "(($ac_try" in
20315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316   *) ac_try_echo=$ac_try;;
20317 esac
20318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20319 $as_echo "$ac_try_echo") >&5
20320   (eval "$ac_compile") 2>conftest.er1
20321   ac_status=$?
20322   grep -v '^ *+' conftest.er1 >conftest.err
20323   rm -f conftest.er1
20324   cat conftest.err >&5
20325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326   (exit $ac_status); } && {
20327          test -z "$ac_c_werror_flag" ||
20328          test ! -s conftest.err
20329        } && test -s conftest.$ac_objext; then
20330   ac_cv_have_decl_vsnprintf=yes
20331 else
20332   $as_echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20334
20335         ac_cv_have_decl_vsnprintf=no
20336 fi
20337
20338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20339 fi
20340 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20341 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20342 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20343
20344 cat >>confdefs.h <<_ACEOF
20345 #define HAVE_DECL_VSNPRINTF 1
20346 _ACEOF
20347
20348
20349 else
20350   cat >>confdefs.h <<_ACEOF
20351 #define HAVE_DECL_VSNPRINTF 0
20352 _ACEOF
20353
20354
20355 fi
20356
20357
20358
20359
20360 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20361 $as_echo_n "checking for isinf... " >&6; }
20362 if test "${ac_cv_func_isinf+set}" = set; then
20363   $as_echo_n "(cached) " >&6
20364 else
20365   cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h.  */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h.  */
20371
20372 #include <math.h>
20373 double glob_double;
20374
20375 int
20376 main ()
20377 {
20378 return isinf(glob_double) ? 0 : 1;
20379   ;
20380   return 0;
20381 }
20382 _ACEOF
20383 rm -f conftest.$ac_objext conftest$ac_exeext
20384 if { (ac_try="$ac_link"
20385 case "(($ac_try" in
20386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387   *) ac_try_echo=$ac_try;;
20388 esac
20389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20390 $as_echo "$ac_try_echo") >&5
20391   (eval "$ac_link") 2>conftest.er1
20392   ac_status=$?
20393   grep -v '^ *+' conftest.er1 >conftest.err
20394   rm -f conftest.er1
20395   cat conftest.err >&5
20396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); } && {
20398          test -z "$ac_c_werror_flag" ||
20399          test ! -s conftest.err
20400        } && test -s conftest$ac_exeext && {
20401          test "$cross_compiling" = yes ||
20402          $as_test_x conftest$ac_exeext
20403        }; then
20404   ac_cv_func_isinf=yes
20405 else
20406   $as_echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20408
20409         ac_cv_func_isinf=no
20410 fi
20411
20412 rm -rf conftest.dSYM
20413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20414       conftest$ac_exeext conftest.$ac_ext
20415 fi
20416 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20417 $as_echo "$ac_cv_func_isinf" >&6; }
20418
20419 if test $ac_cv_func_isinf = yes ; then
20420
20421 cat >>confdefs.h <<\_ACEOF
20422 #define HAVE_ISINF 1
20423 _ACEOF
20424
20425 else
20426   case " $LIBOBJS " in
20427   *" isinf.$ac_objext "* ) ;;
20428   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20429  ;;
20430 esac
20431
20432   # Look for a way to implement a substitute for isinf()
20433
20434
20435
20436
20437 for ac_func in fpclass fp_class fp_class_d class
20438 do
20439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20440 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20441 $as_echo_n "checking for $ac_func... " >&6; }
20442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20443   $as_echo_n "(cached) " >&6
20444 else
20445   cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20453 #define $ac_func innocuous_$ac_func
20454
20455 /* System header to define __stub macros and hopefully few prototypes,
20456     which can conflict with char $ac_func (); below.
20457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20458     <limits.h> exists even on freestanding compilers.  */
20459
20460 #ifdef __STDC__
20461 # include <limits.h>
20462 #else
20463 # include <assert.h>
20464 #endif
20465
20466 #undef $ac_func
20467
20468 /* Override any GCC internal prototype to avoid an error.
20469    Use char because int might match the return type of a GCC
20470    builtin and then its argument prototype would still apply.  */
20471 #ifdef __cplusplus
20472 extern "C"
20473 #endif
20474 char $ac_func ();
20475 /* The GNU C library defines this for functions which it implements
20476     to always fail with ENOSYS.  Some functions are actually named
20477     something starting with __ and the normal name is an alias.  */
20478 #if defined __stub_$ac_func || defined __stub___$ac_func
20479 choke me
20480 #endif
20481
20482 int
20483 main ()
20484 {
20485 return $ac_func ();
20486   ;
20487   return 0;
20488 }
20489 _ACEOF
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494   *) ac_try_echo=$ac_try;;
20495 esac
20496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20497 $as_echo "$ac_try_echo") >&5
20498   (eval "$ac_link") 2>conftest.er1
20499   ac_status=$?
20500   grep -v '^ *+' conftest.er1 >conftest.err
20501   rm -f conftest.er1
20502   cat conftest.err >&5
20503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504   (exit $ac_status); } && {
20505          test -z "$ac_c_werror_flag" ||
20506          test ! -s conftest.err
20507        } && test -s conftest$ac_exeext && {
20508          test "$cross_compiling" = yes ||
20509          $as_test_x conftest$ac_exeext
20510        }; then
20511   eval "$as_ac_var=yes"
20512 else
20513   $as_echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20515
20516         eval "$as_ac_var=no"
20517 fi
20518
20519 rm -rf conftest.dSYM
20520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20521       conftest$ac_exeext conftest.$ac_ext
20522 fi
20523 ac_res=`eval 'as_val=${'$as_ac_var'}
20524                  $as_echo "$as_val"'`
20525                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20526 $as_echo "$ac_res" >&6; }
20527 as_val=`eval 'as_val=${'$as_ac_var'}
20528                  $as_echo "$as_val"'`
20529    if test "x$as_val" = x""yes; then
20530   cat >>confdefs.h <<_ACEOF
20531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20532 _ACEOF
20533  break
20534 fi
20535 done
20536
20537 fi
20538
20539 # Some versions of libedit contain strlcpy(); so disregard that library while
20540 # checking for these standard libc functions.
20541 pgac_save_LIBS="$LIBS"
20542 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20559 do
20560 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20561 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20562 $as_echo_n "checking for $ac_func... " >&6; }
20563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20564   $as_echo_n "(cached) " >&6
20565 else
20566   cat >conftest.$ac_ext <<_ACEOF
20567 /* confdefs.h.  */
20568 _ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h.  */
20572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20574 #define $ac_func innocuous_$ac_func
20575
20576 /* System header to define __stub macros and hopefully few prototypes,
20577     which can conflict with char $ac_func (); below.
20578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20579     <limits.h> exists even on freestanding compilers.  */
20580
20581 #ifdef __STDC__
20582 # include <limits.h>
20583 #else
20584 # include <assert.h>
20585 #endif
20586
20587 #undef $ac_func
20588
20589 /* Override any GCC internal prototype to avoid an error.
20590    Use char because int might match the return type of a GCC
20591    builtin and then its argument prototype would still apply.  */
20592 #ifdef __cplusplus
20593 extern "C"
20594 #endif
20595 char $ac_func ();
20596 /* The GNU C library defines this for functions which it implements
20597     to always fail with ENOSYS.  Some functions are actually named
20598     something starting with __ and the normal name is an alias.  */
20599 #if defined __stub_$ac_func || defined __stub___$ac_func
20600 choke me
20601 #endif
20602
20603 int
20604 main ()
20605 {
20606 return $ac_func ();
20607   ;
20608   return 0;
20609 }
20610 _ACEOF
20611 rm -f conftest.$ac_objext conftest$ac_exeext
20612 if { (ac_try="$ac_link"
20613 case "(($ac_try" in
20614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615   *) ac_try_echo=$ac_try;;
20616 esac
20617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20618 $as_echo "$ac_try_echo") >&5
20619   (eval "$ac_link") 2>conftest.er1
20620   ac_status=$?
20621   grep -v '^ *+' conftest.er1 >conftest.err
20622   rm -f conftest.er1
20623   cat conftest.err >&5
20624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); } && {
20626          test -z "$ac_c_werror_flag" ||
20627          test ! -s conftest.err
20628        } && test -s conftest$ac_exeext && {
20629          test "$cross_compiling" = yes ||
20630          $as_test_x conftest$ac_exeext
20631        }; then
20632   eval "$as_ac_var=yes"
20633 else
20634   $as_echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20636
20637         eval "$as_ac_var=no"
20638 fi
20639
20640 rm -rf conftest.dSYM
20641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20642       conftest$ac_exeext conftest.$ac_ext
20643 fi
20644 ac_res=`eval 'as_val=${'$as_ac_var'}
20645                  $as_echo "$as_val"'`
20646                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20647 $as_echo "$ac_res" >&6; }
20648 as_val=`eval 'as_val=${'$as_ac_var'}
20649                  $as_echo "$as_val"'`
20650    if test "x$as_val" = x""yes; then
20651   cat >>confdefs.h <<_ACEOF
20652 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20653 _ACEOF
20654
20655 else
20656   case " $LIBOBJS " in
20657   *" $ac_func.$ac_objext "* ) ;;
20658   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20659  ;;
20660 esac
20661
20662 fi
20663 done
20664
20665
20666
20667 case $host_os in
20668
20669         # Windows uses a specialised env handler
20670         mingw*)
20671
20672 cat >>confdefs.h <<\_ACEOF
20673 #define HAVE_UNSETENV 1
20674 _ACEOF
20675
20676                 ac_cv_func_unsetenv=yes;;
20677         *)
20678
20679 for ac_func in unsetenv
20680 do
20681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20682 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20683 $as_echo_n "checking for $ac_func... " >&6; }
20684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20685   $as_echo_n "(cached) " >&6
20686 else
20687   cat >conftest.$ac_ext <<_ACEOF
20688 /* confdefs.h.  */
20689 _ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h.  */
20693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20695 #define $ac_func innocuous_$ac_func
20696
20697 /* System header to define __stub macros and hopefully few prototypes,
20698     which can conflict with char $ac_func (); below.
20699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20700     <limits.h> exists even on freestanding compilers.  */
20701
20702 #ifdef __STDC__
20703 # include <limits.h>
20704 #else
20705 # include <assert.h>
20706 #endif
20707
20708 #undef $ac_func
20709
20710 /* Override any GCC internal prototype to avoid an error.
20711    Use char because int might match the return type of a GCC
20712    builtin and then its argument prototype would still apply.  */
20713 #ifdef __cplusplus
20714 extern "C"
20715 #endif
20716 char $ac_func ();
20717 /* The GNU C library defines this for functions which it implements
20718     to always fail with ENOSYS.  Some functions are actually named
20719     something starting with __ and the normal name is an alias.  */
20720 #if defined __stub_$ac_func || defined __stub___$ac_func
20721 choke me
20722 #endif
20723
20724 int
20725 main ()
20726 {
20727 return $ac_func ();
20728   ;
20729   return 0;
20730 }
20731 _ACEOF
20732 rm -f conftest.$ac_objext conftest$ac_exeext
20733 if { (ac_try="$ac_link"
20734 case "(($ac_try" in
20735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736   *) ac_try_echo=$ac_try;;
20737 esac
20738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20739 $as_echo "$ac_try_echo") >&5
20740   (eval "$ac_link") 2>conftest.er1
20741   ac_status=$?
20742   grep -v '^ *+' conftest.er1 >conftest.err
20743   rm -f conftest.er1
20744   cat conftest.err >&5
20745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } && {
20747          test -z "$ac_c_werror_flag" ||
20748          test ! -s conftest.err
20749        } && test -s conftest$ac_exeext && {
20750          test "$cross_compiling" = yes ||
20751          $as_test_x conftest$ac_exeext
20752        }; then
20753   eval "$as_ac_var=yes"
20754 else
20755   $as_echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758         eval "$as_ac_var=no"
20759 fi
20760
20761 rm -rf conftest.dSYM
20762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20763       conftest$ac_exeext conftest.$ac_ext
20764 fi
20765 ac_res=`eval 'as_val=${'$as_ac_var'}
20766                  $as_echo "$as_val"'`
20767                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20768 $as_echo "$ac_res" >&6; }
20769 as_val=`eval 'as_val=${'$as_ac_var'}
20770                  $as_echo "$as_val"'`
20771    if test "x$as_val" = x""yes; then
20772   cat >>confdefs.h <<_ACEOF
20773 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20774 _ACEOF
20775
20776 else
20777   case " $LIBOBJS " in
20778   *" $ac_func.$ac_objext "* ) ;;
20779   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20780  ;;
20781 esac
20782
20783 fi
20784 done
20785
20786
20787                 ;;
20788 esac
20789
20790
20791 LIBS="$pgac_save_LIBS"
20792
20793 # System's version of getaddrinfo(), if any, may be used only if we found
20794 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20795 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20796 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
20797 # because we want to use our own getaddrinfo.c on Windows anyway.)
20798 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20799
20800 for ac_func in getaddrinfo
20801 do
20802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20803 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20804 $as_echo_n "checking for $ac_func... " >&6; }
20805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20806   $as_echo_n "(cached) " >&6
20807 else
20808   cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h.  */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h.  */
20814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20816 #define $ac_func innocuous_$ac_func
20817
20818 /* System header to define __stub macros and hopefully few prototypes,
20819     which can conflict with char $ac_func (); below.
20820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20821     <limits.h> exists even on freestanding compilers.  */
20822
20823 #ifdef __STDC__
20824 # include <limits.h>
20825 #else
20826 # include <assert.h>
20827 #endif
20828
20829 #undef $ac_func
20830
20831 /* Override any GCC internal prototype to avoid an error.
20832    Use char because int might match the return type of a GCC
20833    builtin and then its argument prototype would still apply.  */
20834 #ifdef __cplusplus
20835 extern "C"
20836 #endif
20837 char $ac_func ();
20838 /* The GNU C library defines this for functions which it implements
20839     to always fail with ENOSYS.  Some functions are actually named
20840     something starting with __ and the normal name is an alias.  */
20841 #if defined __stub_$ac_func || defined __stub___$ac_func
20842 choke me
20843 #endif
20844
20845 int
20846 main ()
20847 {
20848 return $ac_func ();
20849   ;
20850   return 0;
20851 }
20852 _ACEOF
20853 rm -f conftest.$ac_objext conftest$ac_exeext
20854 if { (ac_try="$ac_link"
20855 case "(($ac_try" in
20856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857   *) ac_try_echo=$ac_try;;
20858 esac
20859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20860 $as_echo "$ac_try_echo") >&5
20861   (eval "$ac_link") 2>conftest.er1
20862   ac_status=$?
20863   grep -v '^ *+' conftest.er1 >conftest.err
20864   rm -f conftest.er1
20865   cat conftest.err >&5
20866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); } && {
20868          test -z "$ac_c_werror_flag" ||
20869          test ! -s conftest.err
20870        } && test -s conftest$ac_exeext && {
20871          test "$cross_compiling" = yes ||
20872          $as_test_x conftest$ac_exeext
20873        }; then
20874   eval "$as_ac_var=yes"
20875 else
20876   $as_echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879         eval "$as_ac_var=no"
20880 fi
20881
20882 rm -rf conftest.dSYM
20883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20884       conftest$ac_exeext conftest.$ac_ext
20885 fi
20886 ac_res=`eval 'as_val=${'$as_ac_var'}
20887                  $as_echo "$as_val"'`
20888                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20889 $as_echo "$ac_res" >&6; }
20890 as_val=`eval 'as_val=${'$as_ac_var'}
20891                  $as_echo "$as_val"'`
20892    if test "x$as_val" = x""yes; then
20893   cat >>confdefs.h <<_ACEOF
20894 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20895 _ACEOF
20896
20897 else
20898   case " $LIBOBJS " in
20899   *" $ac_func.$ac_objext "* ) ;;
20900   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20901  ;;
20902 esac
20903
20904 fi
20905 done
20906
20907
20908 else
20909   case " $LIBOBJS " in
20910   *" getaddrinfo.$ac_objext "* ) ;;
20911   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20912  ;;
20913 esac
20914
20915 fi
20916
20917 # Similarly, use system's getopt_long() only if system provides struct option.
20918 if test x"$ac_cv_type_struct_option" = xyes ; then
20919
20920 for ac_func in getopt_long
20921 do
20922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20923 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20924 $as_echo_n "checking for $ac_func... " >&6; }
20925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20926   $as_echo_n "(cached) " >&6
20927 else
20928   cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h.  */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h.  */
20934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20936 #define $ac_func innocuous_$ac_func
20937
20938 /* System header to define __stub macros and hopefully few prototypes,
20939     which can conflict with char $ac_func (); below.
20940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20941     <limits.h> exists even on freestanding compilers.  */
20942
20943 #ifdef __STDC__
20944 # include <limits.h>
20945 #else
20946 # include <assert.h>
20947 #endif
20948
20949 #undef $ac_func
20950
20951 /* Override any GCC internal prototype to avoid an error.
20952    Use char because int might match the return type of a GCC
20953    builtin and then its argument prototype would still apply.  */
20954 #ifdef __cplusplus
20955 extern "C"
20956 #endif
20957 char $ac_func ();
20958 /* The GNU C library defines this for functions which it implements
20959     to always fail with ENOSYS.  Some functions are actually named
20960     something starting with __ and the normal name is an alias.  */
20961 #if defined __stub_$ac_func || defined __stub___$ac_func
20962 choke me
20963 #endif
20964
20965 int
20966 main ()
20967 {
20968 return $ac_func ();
20969   ;
20970   return 0;
20971 }
20972 _ACEOF
20973 rm -f conftest.$ac_objext conftest$ac_exeext
20974 if { (ac_try="$ac_link"
20975 case "(($ac_try" in
20976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977   *) ac_try_echo=$ac_try;;
20978 esac
20979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20980 $as_echo "$ac_try_echo") >&5
20981   (eval "$ac_link") 2>conftest.er1
20982   ac_status=$?
20983   grep -v '^ *+' conftest.er1 >conftest.err
20984   rm -f conftest.er1
20985   cat conftest.err >&5
20986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987   (exit $ac_status); } && {
20988          test -z "$ac_c_werror_flag" ||
20989          test ! -s conftest.err
20990        } && test -s conftest$ac_exeext && {
20991          test "$cross_compiling" = yes ||
20992          $as_test_x conftest$ac_exeext
20993        }; then
20994   eval "$as_ac_var=yes"
20995 else
20996   $as_echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999         eval "$as_ac_var=no"
21000 fi
21001
21002 rm -rf conftest.dSYM
21003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21004       conftest$ac_exeext conftest.$ac_ext
21005 fi
21006 ac_res=`eval 'as_val=${'$as_ac_var'}
21007                  $as_echo "$as_val"'`
21008                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21009 $as_echo "$ac_res" >&6; }
21010 as_val=`eval 'as_val=${'$as_ac_var'}
21011                  $as_echo "$as_val"'`
21012    if test "x$as_val" = x""yes; then
21013   cat >>confdefs.h <<_ACEOF
21014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21015 _ACEOF
21016
21017 else
21018   case " $LIBOBJS " in
21019   *" $ac_func.$ac_objext "* ) ;;
21020   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21021  ;;
21022 esac
21023
21024 fi
21025 done
21026
21027
21028 else
21029   case " $LIBOBJS " in
21030   *" getopt_long.$ac_objext "* ) ;;
21031   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21032  ;;
21033 esac
21034
21035 fi
21036
21037 # Solaris' getopt() doesn't do what we want for long options, so always use
21038 # our version on that platform.
21039 if test "$PORTNAME" = "solaris"; then
21040   case " $LIBOBJS " in
21041   *" getopt.$ac_objext "* ) ;;
21042   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21043  ;;
21044 esac
21045
21046 fi
21047
21048 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21049 # so always use our version on Windows.
21050 if test "$PORTNAME" = "win32"; then
21051   case " $LIBOBJS " in
21052   *" getopt.$ac_objext "* ) ;;
21053   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21054  ;;
21055 esac
21056
21057   case " $LIBOBJS " in
21058   *" getopt_long.$ac_objext "* ) ;;
21059   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21060  ;;
21061 esac
21062
21063 fi
21064
21065 # Cygwin's erand48() is broken (always returns zero) in some releases,
21066 # so force use of ours.
21067 if test "$PORTNAME" = "cygwin"; then
21068   case " $LIBOBJS " in
21069   *" erand48.$ac_objext "* ) ;;
21070   *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
21071  ;;
21072 esac
21073
21074 fi
21075
21076 # Win32 support
21077 if test "$PORTNAME" = "win32"; then
21078
21079 for ac_func in gettimeofday
21080 do
21081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21082 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21083 $as_echo_n "checking for $ac_func... " >&6; }
21084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21085   $as_echo_n "(cached) " >&6
21086 else
21087   cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h.  */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h.  */
21093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21095 #define $ac_func innocuous_$ac_func
21096
21097 /* System header to define __stub macros and hopefully few prototypes,
21098     which can conflict with char $ac_func (); below.
21099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21100     <limits.h> exists even on freestanding compilers.  */
21101
21102 #ifdef __STDC__
21103 # include <limits.h>
21104 #else
21105 # include <assert.h>
21106 #endif
21107
21108 #undef $ac_func
21109
21110 /* Override any GCC internal prototype to avoid an error.
21111    Use char because int might match the return type of a GCC
21112    builtin and then its argument prototype would still apply.  */
21113 #ifdef __cplusplus
21114 extern "C"
21115 #endif
21116 char $ac_func ();
21117 /* The GNU C library defines this for functions which it implements
21118     to always fail with ENOSYS.  Some functions are actually named
21119     something starting with __ and the normal name is an alias.  */
21120 #if defined __stub_$ac_func || defined __stub___$ac_func
21121 choke me
21122 #endif
21123
21124 int
21125 main ()
21126 {
21127 return $ac_func ();
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 rm -f conftest.$ac_objext conftest$ac_exeext
21133 if { (ac_try="$ac_link"
21134 case "(($ac_try" in
21135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136   *) ac_try_echo=$ac_try;;
21137 esac
21138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21139 $as_echo "$ac_try_echo") >&5
21140   (eval "$ac_link") 2>conftest.er1
21141   ac_status=$?
21142   grep -v '^ *+' conftest.er1 >conftest.err
21143   rm -f conftest.er1
21144   cat conftest.err >&5
21145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } && {
21147          test -z "$ac_c_werror_flag" ||
21148          test ! -s conftest.err
21149        } && test -s conftest$ac_exeext && {
21150          test "$cross_compiling" = yes ||
21151          $as_test_x conftest$ac_exeext
21152        }; then
21153   eval "$as_ac_var=yes"
21154 else
21155   $as_echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21157
21158         eval "$as_ac_var=no"
21159 fi
21160
21161 rm -rf conftest.dSYM
21162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21163       conftest$ac_exeext conftest.$ac_ext
21164 fi
21165 ac_res=`eval 'as_val=${'$as_ac_var'}
21166                  $as_echo "$as_val"'`
21167                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21168 $as_echo "$ac_res" >&6; }
21169 as_val=`eval 'as_val=${'$as_ac_var'}
21170                  $as_echo "$as_val"'`
21171    if test "x$as_val" = x""yes; then
21172   cat >>confdefs.h <<_ACEOF
21173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21174 _ACEOF
21175
21176 else
21177   case " $LIBOBJS " in
21178   *" $ac_func.$ac_objext "* ) ;;
21179   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21180  ;;
21181 esac
21182
21183 fi
21184 done
21185
21186
21187   case " $LIBOBJS " in
21188   *" kill.$ac_objext "* ) ;;
21189   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21190  ;;
21191 esac
21192
21193   case " $LIBOBJS " in
21194   *" open.$ac_objext "* ) ;;
21195   *) LIBOBJS="$LIBOBJS open.$ac_objext"
21196  ;;
21197 esac
21198
21199   case " $LIBOBJS " in
21200   *" win32env.$ac_objext "* ) ;;
21201   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21202  ;;
21203 esac
21204
21205   case " $LIBOBJS " in
21206   *" win32error.$ac_objext "* ) ;;
21207   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21208  ;;
21209 esac
21210
21211
21212 cat >>confdefs.h <<\_ACEOF
21213 #define HAVE_SYMLINK 1
21214 _ACEOF
21215
21216   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21217 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21218 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21219   $as_echo_n "(cached) " >&6
21220 else
21221   ac_cv_type_MINIDUMP_TYPE=no
21222 cat >conftest.$ac_ext <<_ACEOF
21223 /* confdefs.h.  */
21224 _ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h.  */
21228
21229 #define WIN32_LEAN_AND_MEAN
21230 #include <windows.h>
21231 #include <string.h>
21232 #include <dbghelp.h>
21233
21234 int
21235 main ()
21236 {
21237 if (sizeof (MINIDUMP_TYPE))
21238        return 0;
21239   ;
21240   return 0;
21241 }
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (ac_try="$ac_compile"
21245 case "(($ac_try" in
21246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247   *) ac_try_echo=$ac_try;;
21248 esac
21249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21250 $as_echo "$ac_try_echo") >&5
21251   (eval "$ac_compile") 2>conftest.er1
21252   ac_status=$?
21253   grep -v '^ *+' conftest.er1 >conftest.err
21254   rm -f conftest.er1
21255   cat conftest.err >&5
21256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); } && {
21258          test -z "$ac_c_werror_flag" ||
21259          test ! -s conftest.err
21260        } && test -s conftest.$ac_objext; then
21261   cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267
21268 #define WIN32_LEAN_AND_MEAN
21269 #include <windows.h>
21270 #include <string.h>
21271 #include <dbghelp.h>
21272
21273 int
21274 main ()
21275 {
21276 if (sizeof ((MINIDUMP_TYPE)))
21277           return 0;
21278   ;
21279   return 0;
21280 }
21281 _ACEOF
21282 rm -f conftest.$ac_objext
21283 if { (ac_try="$ac_compile"
21284 case "(($ac_try" in
21285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286   *) ac_try_echo=$ac_try;;
21287 esac
21288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21289 $as_echo "$ac_try_echo") >&5
21290   (eval "$ac_compile") 2>conftest.er1
21291   ac_status=$?
21292   grep -v '^ *+' conftest.er1 >conftest.err
21293   rm -f conftest.er1
21294   cat conftest.err >&5
21295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); } && {
21297          test -z "$ac_c_werror_flag" ||
21298          test ! -s conftest.err
21299        } && test -s conftest.$ac_objext; then
21300   :
21301 else
21302   $as_echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21304
21305         ac_cv_type_MINIDUMP_TYPE=yes
21306 fi
21307
21308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21309 else
21310   $as_echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21312
21313
21314 fi
21315
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 fi
21318 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21319 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21320 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21321
21322 cat >>confdefs.h <<_ACEOF
21323 #define HAVE_MINIDUMP_TYPE 1
21324 _ACEOF
21325
21326 pgac_minidump_type=yes
21327 else
21328   pgac_minidump_type=no
21329 fi
21330
21331 fi
21332 if test x"$pgac_minidump_type" = x"yes" ; then
21333   have_win32_dbghelp=yes
21334
21335 else
21336   have_win32_dbghelp=no
21337
21338 fi
21339
21340 if test "$with_readline" = yes; then
21341   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21342 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21343 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21344   $as_echo_n "(cached) " >&6
21345 else
21346   cat >conftest.$ac_ext <<_ACEOF
21347 /* confdefs.h.  */
21348 _ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h.  */
21352 #include <stdio.h>
21353 #ifdef HAVE_READLINE_READLINE_H
21354 # include <readline/readline.h>
21355 #elif defined(HAVE_READLINE_H)
21356 # include <readline.h>
21357 #endif
21358
21359 int
21360 main ()
21361 {
21362 rl_completion_append_character = 'x';
21363   ;
21364   return 0;
21365 }
21366 _ACEOF
21367 rm -f conftest.$ac_objext conftest$ac_exeext
21368 if { (ac_try="$ac_link"
21369 case "(($ac_try" in
21370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371   *) ac_try_echo=$ac_try;;
21372 esac
21373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21374 $as_echo "$ac_try_echo") >&5
21375   (eval "$ac_link") 2>conftest.er1
21376   ac_status=$?
21377   grep -v '^ *+' conftest.er1 >conftest.err
21378   rm -f conftest.er1
21379   cat conftest.err >&5
21380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); } && {
21382          test -z "$ac_c_werror_flag" ||
21383          test ! -s conftest.err
21384        } && test -s conftest$ac_exeext && {
21385          test "$cross_compiling" = yes ||
21386          $as_test_x conftest$ac_exeext
21387        }; then
21388   pgac_cv_var_rl_completion_append_character=yes
21389 else
21390   $as_echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393         pgac_cv_var_rl_completion_append_character=no
21394 fi
21395
21396 rm -rf conftest.dSYM
21397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21398       conftest$ac_exeext conftest.$ac_ext
21399 fi
21400 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21401 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21402 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21403
21404 cat >>confdefs.h <<\_ACEOF
21405 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21406 _ACEOF
21407
21408 fi
21409
21410
21411 for ac_func in rl_completion_matches rl_filename_completion_function
21412 do
21413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21414 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21415 $as_echo_n "checking for $ac_func... " >&6; }
21416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21417   $as_echo_n "(cached) " >&6
21418 else
21419   cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h.  */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h.  */
21425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21427 #define $ac_func innocuous_$ac_func
21428
21429 /* System header to define __stub macros and hopefully few prototypes,
21430     which can conflict with char $ac_func (); below.
21431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21432     <limits.h> exists even on freestanding compilers.  */
21433
21434 #ifdef __STDC__
21435 # include <limits.h>
21436 #else
21437 # include <assert.h>
21438 #endif
21439
21440 #undef $ac_func
21441
21442 /* Override any GCC internal prototype to avoid an error.
21443    Use char because int might match the return type of a GCC
21444    builtin and then its argument prototype would still apply.  */
21445 #ifdef __cplusplus
21446 extern "C"
21447 #endif
21448 char $ac_func ();
21449 /* The GNU C library defines this for functions which it implements
21450     to always fail with ENOSYS.  Some functions are actually named
21451     something starting with __ and the normal name is an alias.  */
21452 #if defined __stub_$ac_func || defined __stub___$ac_func
21453 choke me
21454 #endif
21455
21456 int
21457 main ()
21458 {
21459 return $ac_func ();
21460   ;
21461   return 0;
21462 }
21463 _ACEOF
21464 rm -f conftest.$ac_objext conftest$ac_exeext
21465 if { (ac_try="$ac_link"
21466 case "(($ac_try" in
21467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468   *) ac_try_echo=$ac_try;;
21469 esac
21470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21471 $as_echo "$ac_try_echo") >&5
21472   (eval "$ac_link") 2>conftest.er1
21473   ac_status=$?
21474   grep -v '^ *+' conftest.er1 >conftest.err
21475   rm -f conftest.er1
21476   cat conftest.err >&5
21477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478   (exit $ac_status); } && {
21479          test -z "$ac_c_werror_flag" ||
21480          test ! -s conftest.err
21481        } && test -s conftest$ac_exeext && {
21482          test "$cross_compiling" = yes ||
21483          $as_test_x conftest$ac_exeext
21484        }; then
21485   eval "$as_ac_var=yes"
21486 else
21487   $as_echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21489
21490         eval "$as_ac_var=no"
21491 fi
21492
21493 rm -rf conftest.dSYM
21494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21495       conftest$ac_exeext conftest.$ac_ext
21496 fi
21497 ac_res=`eval 'as_val=${'$as_ac_var'}
21498                  $as_echo "$as_val"'`
21499                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21500 $as_echo "$ac_res" >&6; }
21501 as_val=`eval 'as_val=${'$as_ac_var'}
21502                  $as_echo "$as_val"'`
21503    if test "x$as_val" = x""yes; then
21504   cat >>confdefs.h <<_ACEOF
21505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21506 _ACEOF
21507
21508 fi
21509 done
21510
21511
21512
21513 for ac_func in append_history history_truncate_file
21514 do
21515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21516 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21517 $as_echo_n "checking for $ac_func... " >&6; }
21518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21519   $as_echo_n "(cached) " >&6
21520 else
21521   cat >conftest.$ac_ext <<_ACEOF
21522 /* confdefs.h.  */
21523 _ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h.  */
21527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21529 #define $ac_func innocuous_$ac_func
21530
21531 /* System header to define __stub macros and hopefully few prototypes,
21532     which can conflict with char $ac_func (); below.
21533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21534     <limits.h> exists even on freestanding compilers.  */
21535
21536 #ifdef __STDC__
21537 # include <limits.h>
21538 #else
21539 # include <assert.h>
21540 #endif
21541
21542 #undef $ac_func
21543
21544 /* Override any GCC internal prototype to avoid an error.
21545    Use char because int might match the return type of a GCC
21546    builtin and then its argument prototype would still apply.  */
21547 #ifdef __cplusplus
21548 extern "C"
21549 #endif
21550 char $ac_func ();
21551 /* The GNU C library defines this for functions which it implements
21552     to always fail with ENOSYS.  Some functions are actually named
21553     something starting with __ and the normal name is an alias.  */
21554 #if defined __stub_$ac_func || defined __stub___$ac_func
21555 choke me
21556 #endif
21557
21558 int
21559 main ()
21560 {
21561 return $ac_func ();
21562   ;
21563   return 0;
21564 }
21565 _ACEOF
21566 rm -f conftest.$ac_objext conftest$ac_exeext
21567 if { (ac_try="$ac_link"
21568 case "(($ac_try" in
21569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570   *) ac_try_echo=$ac_try;;
21571 esac
21572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21573 $as_echo "$ac_try_echo") >&5
21574   (eval "$ac_link") 2>conftest.er1
21575   ac_status=$?
21576   grep -v '^ *+' conftest.er1 >conftest.err
21577   rm -f conftest.er1
21578   cat conftest.err >&5
21579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); } && {
21581          test -z "$ac_c_werror_flag" ||
21582          test ! -s conftest.err
21583        } && test -s conftest$ac_exeext && {
21584          test "$cross_compiling" = yes ||
21585          $as_test_x conftest$ac_exeext
21586        }; then
21587   eval "$as_ac_var=yes"
21588 else
21589   $as_echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21591
21592         eval "$as_ac_var=no"
21593 fi
21594
21595 rm -rf conftest.dSYM
21596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21597       conftest$ac_exeext conftest.$ac_ext
21598 fi
21599 ac_res=`eval 'as_val=${'$as_ac_var'}
21600                  $as_echo "$as_val"'`
21601                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21602 $as_echo "$ac_res" >&6; }
21603 as_val=`eval 'as_val=${'$as_ac_var'}
21604                  $as_echo "$as_val"'`
21605    if test "x$as_val" = x""yes; then
21606   cat >>confdefs.h <<_ACEOF
21607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21608 _ACEOF
21609
21610 fi
21611 done
21612
21613 fi
21614
21615
21616 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21617 $as_echo_n "checking for sigsetjmp... " >&6; }
21618 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21619   $as_echo_n "(cached) " >&6
21620 else
21621   cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h.  */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h.  */
21627 #include <setjmp.h>
21628 int
21629 main ()
21630 {
21631 sigjmp_buf x; sigsetjmp(x, 1);
21632   ;
21633   return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext conftest$ac_exeext
21637 if { (ac_try="$ac_link"
21638 case "(($ac_try" in
21639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640   *) ac_try_echo=$ac_try;;
21641 esac
21642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21643 $as_echo "$ac_try_echo") >&5
21644   (eval "$ac_link") 2>conftest.er1
21645   ac_status=$?
21646   grep -v '^ *+' conftest.er1 >conftest.err
21647   rm -f conftest.er1
21648   cat conftest.err >&5
21649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); } && {
21651          test -z "$ac_c_werror_flag" ||
21652          test ! -s conftest.err
21653        } && test -s conftest$ac_exeext && {
21654          test "$cross_compiling" = yes ||
21655          $as_test_x conftest$ac_exeext
21656        }; then
21657   pgac_cv_func_sigsetjmp=yes
21658 else
21659   $as_echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21661
21662         pgac_cv_func_sigsetjmp=no
21663 fi
21664
21665 rm -rf conftest.dSYM
21666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21667       conftest$ac_exeext conftest.$ac_ext
21668 fi
21669 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21670 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21671 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21672
21673 cat >>confdefs.h <<\_ACEOF
21674 #define HAVE_SIGSETJMP 1
21675 _ACEOF
21676
21677 fi
21678
21679 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21680 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21681 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21682   $as_echo_n "(cached) " >&6
21683 else
21684   cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h.  */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h.  */
21690 #include <signal.h>
21691 /* NetBSD declares sys_siglist in unistd.h.  */
21692 #ifdef HAVE_UNISTD_H
21693 # include <unistd.h>
21694 #endif
21695
21696
21697 int
21698 main ()
21699 {
21700 #ifndef sys_siglist
21701   (void) sys_siglist;
21702 #endif
21703
21704   ;
21705   return 0;
21706 }
21707 _ACEOF
21708 rm -f conftest.$ac_objext
21709 if { (ac_try="$ac_compile"
21710 case "(($ac_try" in
21711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712   *) ac_try_echo=$ac_try;;
21713 esac
21714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21715 $as_echo "$ac_try_echo") >&5
21716   (eval "$ac_compile") 2>conftest.er1
21717   ac_status=$?
21718   grep -v '^ *+' conftest.er1 >conftest.err
21719   rm -f conftest.er1
21720   cat conftest.err >&5
21721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); } && {
21723          test -z "$ac_c_werror_flag" ||
21724          test ! -s conftest.err
21725        } && test -s conftest.$ac_objext; then
21726   ac_cv_have_decl_sys_siglist=yes
21727 else
21728   $as_echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731         ac_cv_have_decl_sys_siglist=no
21732 fi
21733
21734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21735 fi
21736 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21737 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21738 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21739
21740 cat >>confdefs.h <<_ACEOF
21741 #define HAVE_DECL_SYS_SIGLIST 1
21742 _ACEOF
21743
21744
21745 else
21746   cat >>confdefs.h <<_ACEOF
21747 #define HAVE_DECL_SYS_SIGLIST 0
21748 _ACEOF
21749
21750
21751 fi
21752
21753
21754
21755
21756 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21757 $as_echo_n "checking for syslog... " >&6; }
21758 if test "${ac_cv_func_syslog+set}" = set; then
21759   $as_echo_n "(cached) " >&6
21760 else
21761   cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21769 #define syslog innocuous_syslog
21770
21771 /* System header to define __stub macros and hopefully few prototypes,
21772     which can conflict with char syslog (); below.
21773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21774     <limits.h> exists even on freestanding compilers.  */
21775
21776 #ifdef __STDC__
21777 # include <limits.h>
21778 #else
21779 # include <assert.h>
21780 #endif
21781
21782 #undef syslog
21783
21784 /* Override any GCC internal prototype to avoid an error.
21785    Use char because int might match the return type of a GCC
21786    builtin and then its argument prototype would still apply.  */
21787 #ifdef __cplusplus
21788 extern "C"
21789 #endif
21790 char syslog ();
21791 /* The GNU C library defines this for functions which it implements
21792     to always fail with ENOSYS.  Some functions are actually named
21793     something starting with __ and the normal name is an alias.  */
21794 #if defined __stub_syslog || defined __stub___syslog
21795 choke me
21796 #endif
21797
21798 int
21799 main ()
21800 {
21801 return syslog ();
21802   ;
21803   return 0;
21804 }
21805 _ACEOF
21806 rm -f conftest.$ac_objext conftest$ac_exeext
21807 if { (ac_try="$ac_link"
21808 case "(($ac_try" in
21809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810   *) ac_try_echo=$ac_try;;
21811 esac
21812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21813 $as_echo "$ac_try_echo") >&5
21814   (eval "$ac_link") 2>conftest.er1
21815   ac_status=$?
21816   grep -v '^ *+' conftest.er1 >conftest.err
21817   rm -f conftest.er1
21818   cat conftest.err >&5
21819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); } && {
21821          test -z "$ac_c_werror_flag" ||
21822          test ! -s conftest.err
21823        } && test -s conftest$ac_exeext && {
21824          test "$cross_compiling" = yes ||
21825          $as_test_x conftest$ac_exeext
21826        }; then
21827   ac_cv_func_syslog=yes
21828 else
21829   $as_echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21831
21832         ac_cv_func_syslog=no
21833 fi
21834
21835 rm -rf conftest.dSYM
21836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21837       conftest$ac_exeext conftest.$ac_ext
21838 fi
21839 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21840 $as_echo "$ac_cv_func_syslog" >&6; }
21841 if test "x$ac_cv_func_syslog" = x""yes; then
21842   if test "${ac_cv_header_syslog_h+set}" = set; then
21843   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21844 $as_echo_n "checking for syslog.h... " >&6; }
21845 if test "${ac_cv_header_syslog_h+set}" = set; then
21846   $as_echo_n "(cached) " >&6
21847 fi
21848 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21849 $as_echo "$ac_cv_header_syslog_h" >&6; }
21850 else
21851   # Is the header compilable?
21852 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21853 $as_echo_n "checking syslog.h usability... " >&6; }
21854 cat >conftest.$ac_ext <<_ACEOF
21855 /* confdefs.h.  */
21856 _ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h.  */
21860 $ac_includes_default
21861 #include <syslog.h>
21862 _ACEOF
21863 rm -f conftest.$ac_objext
21864 if { (ac_try="$ac_compile"
21865 case "(($ac_try" in
21866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867   *) ac_try_echo=$ac_try;;
21868 esac
21869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21870 $as_echo "$ac_try_echo") >&5
21871   (eval "$ac_compile") 2>conftest.er1
21872   ac_status=$?
21873   grep -v '^ *+' conftest.er1 >conftest.err
21874   rm -f conftest.er1
21875   cat conftest.err >&5
21876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); } && {
21878          test -z "$ac_c_werror_flag" ||
21879          test ! -s conftest.err
21880        } && test -s conftest.$ac_objext; then
21881   ac_header_compiler=yes
21882 else
21883   $as_echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886         ac_header_compiler=no
21887 fi
21888
21889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21890 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21891 $as_echo "$ac_header_compiler" >&6; }
21892
21893 # Is the header present?
21894 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21895 $as_echo_n "checking syslog.h presence... " >&6; }
21896 cat >conftest.$ac_ext <<_ACEOF
21897 /* confdefs.h.  */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h.  */
21902 #include <syslog.h>
21903 _ACEOF
21904 if { (ac_try="$ac_cpp conftest.$ac_ext"
21905 case "(($ac_try" in
21906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907   *) ac_try_echo=$ac_try;;
21908 esac
21909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21910 $as_echo "$ac_try_echo") >&5
21911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21912   ac_status=$?
21913   grep -v '^ *+' conftest.er1 >conftest.err
21914   rm -f conftest.er1
21915   cat conftest.err >&5
21916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); } >/dev/null && {
21918          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21919          test ! -s conftest.err
21920        }; then
21921   ac_header_preproc=yes
21922 else
21923   $as_echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21925
21926   ac_header_preproc=no
21927 fi
21928
21929 rm -f conftest.err conftest.$ac_ext
21930 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21931 $as_echo "$ac_header_preproc" >&6; }
21932
21933 # So?  What about this header?
21934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21935   yes:no: )
21936     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21937 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21938     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21939 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21940     ac_header_preproc=yes
21941     ;;
21942   no:yes:* )
21943     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21944 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21945     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
21946 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
21947     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21948 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21949     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
21950 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21951     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21952 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21953     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21954 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21955     ( cat <<\_ASBOX
21956 ## ---------------------------------------- ##
21957 ## Report this to pgsql-bugs@postgresql.org ##
21958 ## ---------------------------------------- ##
21959 _ASBOX
21960      ) | sed "s/^/$as_me: WARNING:     /" >&2
21961     ;;
21962 esac
21963 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21964 $as_echo_n "checking for syslog.h... " >&6; }
21965 if test "${ac_cv_header_syslog_h+set}" = set; then
21966   $as_echo_n "(cached) " >&6
21967 else
21968   ac_cv_header_syslog_h=$ac_header_preproc
21969 fi
21970 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21971 $as_echo "$ac_cv_header_syslog_h" >&6; }
21972
21973 fi
21974 if test "x$ac_cv_header_syslog_h" = x""yes; then
21975
21976 cat >>confdefs.h <<\_ACEOF
21977 #define HAVE_SYSLOG 1
21978 _ACEOF
21979
21980 fi
21981
21982
21983 fi
21984
21985
21986 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21987 $as_echo_n "checking for opterr... " >&6; }
21988 if test "${pgac_cv_var_int_opterr+set}" = set; then
21989   $as_echo_n "(cached) " >&6
21990 else
21991   cat >conftest.$ac_ext <<_ACEOF
21992 /* confdefs.h.  */
21993 _ACEOF
21994 cat confdefs.h >>conftest.$ac_ext
21995 cat >>conftest.$ac_ext <<_ACEOF
21996 /* end confdefs.h.  */
21997 #include <unistd.h>
21998 int
21999 main ()
22000 {
22001 extern int opterr; opterr = 1;
22002   ;
22003   return 0;
22004 }
22005 _ACEOF
22006 rm -f conftest.$ac_objext conftest$ac_exeext
22007 if { (ac_try="$ac_link"
22008 case "(($ac_try" in
22009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010   *) ac_try_echo=$ac_try;;
22011 esac
22012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22013 $as_echo "$ac_try_echo") >&5
22014   (eval "$ac_link") 2>conftest.er1
22015   ac_status=$?
22016   grep -v '^ *+' conftest.er1 >conftest.err
22017   rm -f conftest.er1
22018   cat conftest.err >&5
22019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); } && {
22021          test -z "$ac_c_werror_flag" ||
22022          test ! -s conftest.err
22023        } && test -s conftest$ac_exeext && {
22024          test "$cross_compiling" = yes ||
22025          $as_test_x conftest$ac_exeext
22026        }; then
22027   pgac_cv_var_int_opterr=yes
22028 else
22029   $as_echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22031
22032         pgac_cv_var_int_opterr=no
22033 fi
22034
22035 rm -rf conftest.dSYM
22036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22037       conftest$ac_exeext conftest.$ac_ext
22038 fi
22039 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22040 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22041 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22042
22043 cat >>confdefs.h <<\_ACEOF
22044 #define HAVE_INT_OPTERR 1
22045 _ACEOF
22046
22047 fi
22048
22049 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22050 $as_echo_n "checking for optreset... " >&6; }
22051 if test "${pgac_cv_var_int_optreset+set}" = set; then
22052   $as_echo_n "(cached) " >&6
22053 else
22054   cat >conftest.$ac_ext <<_ACEOF
22055 /* confdefs.h.  */
22056 _ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h.  */
22060 #include <unistd.h>
22061 int
22062 main ()
22063 {
22064 extern int optreset; optreset = 1;
22065   ;
22066   return 0;
22067 }
22068 _ACEOF
22069 rm -f conftest.$ac_objext conftest$ac_exeext
22070 if { (ac_try="$ac_link"
22071 case "(($ac_try" in
22072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073   *) ac_try_echo=$ac_try;;
22074 esac
22075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22076 $as_echo "$ac_try_echo") >&5
22077   (eval "$ac_link") 2>conftest.er1
22078   ac_status=$?
22079   grep -v '^ *+' conftest.er1 >conftest.err
22080   rm -f conftest.er1
22081   cat conftest.err >&5
22082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083   (exit $ac_status); } && {
22084          test -z "$ac_c_werror_flag" ||
22085          test ! -s conftest.err
22086        } && test -s conftest$ac_exeext && {
22087          test "$cross_compiling" = yes ||
22088          $as_test_x conftest$ac_exeext
22089        }; then
22090   pgac_cv_var_int_optreset=yes
22091 else
22092   $as_echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22094
22095         pgac_cv_var_int_optreset=no
22096 fi
22097
22098 rm -rf conftest.dSYM
22099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22100       conftest$ac_exeext conftest.$ac_ext
22101 fi
22102 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22103 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22104 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22105
22106 cat >>confdefs.h <<\_ACEOF
22107 #define HAVE_INT_OPTRESET 1
22108 _ACEOF
22109
22110 fi
22111
22112
22113
22114 for ac_func in strtoll strtoq
22115 do
22116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22117 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22118 $as_echo_n "checking for $ac_func... " >&6; }
22119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22120   $as_echo_n "(cached) " >&6
22121 else
22122   cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h.  */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h.  */
22128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22130 #define $ac_func innocuous_$ac_func
22131
22132 /* System header to define __stub macros and hopefully few prototypes,
22133     which can conflict with char $ac_func (); below.
22134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22135     <limits.h> exists even on freestanding compilers.  */
22136
22137 #ifdef __STDC__
22138 # include <limits.h>
22139 #else
22140 # include <assert.h>
22141 #endif
22142
22143 #undef $ac_func
22144
22145 /* Override any GCC internal prototype to avoid an error.
22146    Use char because int might match the return type of a GCC
22147    builtin and then its argument prototype would still apply.  */
22148 #ifdef __cplusplus
22149 extern "C"
22150 #endif
22151 char $ac_func ();
22152 /* The GNU C library defines this for functions which it implements
22153     to always fail with ENOSYS.  Some functions are actually named
22154     something starting with __ and the normal name is an alias.  */
22155 #if defined __stub_$ac_func || defined __stub___$ac_func
22156 choke me
22157 #endif
22158
22159 int
22160 main ()
22161 {
22162 return $ac_func ();
22163   ;
22164   return 0;
22165 }
22166 _ACEOF
22167 rm -f conftest.$ac_objext conftest$ac_exeext
22168 if { (ac_try="$ac_link"
22169 case "(($ac_try" in
22170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22171   *) ac_try_echo=$ac_try;;
22172 esac
22173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22174 $as_echo "$ac_try_echo") >&5
22175   (eval "$ac_link") 2>conftest.er1
22176   ac_status=$?
22177   grep -v '^ *+' conftest.er1 >conftest.err
22178   rm -f conftest.er1
22179   cat conftest.err >&5
22180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181   (exit $ac_status); } && {
22182          test -z "$ac_c_werror_flag" ||
22183          test ! -s conftest.err
22184        } && test -s conftest$ac_exeext && {
22185          test "$cross_compiling" = yes ||
22186          $as_test_x conftest$ac_exeext
22187        }; then
22188   eval "$as_ac_var=yes"
22189 else
22190   $as_echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22192
22193         eval "$as_ac_var=no"
22194 fi
22195
22196 rm -rf conftest.dSYM
22197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22198       conftest$ac_exeext conftest.$ac_ext
22199 fi
22200 ac_res=`eval 'as_val=${'$as_ac_var'}
22201                  $as_echo "$as_val"'`
22202                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22203 $as_echo "$ac_res" >&6; }
22204 as_val=`eval 'as_val=${'$as_ac_var'}
22205                  $as_echo "$as_val"'`
22206    if test "x$as_val" = x""yes; then
22207   cat >>confdefs.h <<_ACEOF
22208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22209 _ACEOF
22210  break
22211 fi
22212 done
22213
22214
22215
22216 for ac_func in strtoull strtouq
22217 do
22218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22219 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22220 $as_echo_n "checking for $ac_func... " >&6; }
22221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22222   $as_echo_n "(cached) " >&6
22223 else
22224   cat >conftest.$ac_ext <<_ACEOF
22225 /* confdefs.h.  */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h.  */
22230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22232 #define $ac_func innocuous_$ac_func
22233
22234 /* System header to define __stub macros and hopefully few prototypes,
22235     which can conflict with char $ac_func (); below.
22236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22237     <limits.h> exists even on freestanding compilers.  */
22238
22239 #ifdef __STDC__
22240 # include <limits.h>
22241 #else
22242 # include <assert.h>
22243 #endif
22244
22245 #undef $ac_func
22246
22247 /* Override any GCC internal prototype to avoid an error.
22248    Use char because int might match the return type of a GCC
22249    builtin and then its argument prototype would still apply.  */
22250 #ifdef __cplusplus
22251 extern "C"
22252 #endif
22253 char $ac_func ();
22254 /* The GNU C library defines this for functions which it implements
22255     to always fail with ENOSYS.  Some functions are actually named
22256     something starting with __ and the normal name is an alias.  */
22257 #if defined __stub_$ac_func || defined __stub___$ac_func
22258 choke me
22259 #endif
22260
22261 int
22262 main ()
22263 {
22264 return $ac_func ();
22265   ;
22266   return 0;
22267 }
22268 _ACEOF
22269 rm -f conftest.$ac_objext conftest$ac_exeext
22270 if { (ac_try="$ac_link"
22271 case "(($ac_try" in
22272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273   *) ac_try_echo=$ac_try;;
22274 esac
22275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22276 $as_echo "$ac_try_echo") >&5
22277   (eval "$ac_link") 2>conftest.er1
22278   ac_status=$?
22279   grep -v '^ *+' conftest.er1 >conftest.err
22280   rm -f conftest.er1
22281   cat conftest.err >&5
22282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); } && {
22284          test -z "$ac_c_werror_flag" ||
22285          test ! -s conftest.err
22286        } && test -s conftest$ac_exeext && {
22287          test "$cross_compiling" = yes ||
22288          $as_test_x conftest$ac_exeext
22289        }; then
22290   eval "$as_ac_var=yes"
22291 else
22292   $as_echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22294
22295         eval "$as_ac_var=no"
22296 fi
22297
22298 rm -rf conftest.dSYM
22299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22300       conftest$ac_exeext conftest.$ac_ext
22301 fi
22302 ac_res=`eval 'as_val=${'$as_ac_var'}
22303                  $as_echo "$as_val"'`
22304                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22305 $as_echo "$ac_res" >&6; }
22306 as_val=`eval 'as_val=${'$as_ac_var'}
22307                  $as_echo "$as_val"'`
22308    if test "x$as_val" = x""yes; then
22309   cat >>confdefs.h <<_ACEOF
22310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22311 _ACEOF
22312  break
22313 fi
22314 done
22315
22316
22317 # Check for one of atexit() or on_exit()
22318
22319 for ac_func in atexit
22320 do
22321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22322 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22323 $as_echo_n "checking for $ac_func... " >&6; }
22324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22325   $as_echo_n "(cached) " >&6
22326 else
22327   cat >conftest.$ac_ext <<_ACEOF
22328 /* confdefs.h.  */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h.  */
22333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22335 #define $ac_func innocuous_$ac_func
22336
22337 /* System header to define __stub macros and hopefully few prototypes,
22338     which can conflict with char $ac_func (); below.
22339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22340     <limits.h> exists even on freestanding compilers.  */
22341
22342 #ifdef __STDC__
22343 # include <limits.h>
22344 #else
22345 # include <assert.h>
22346 #endif
22347
22348 #undef $ac_func
22349
22350 /* Override any GCC internal prototype to avoid an error.
22351    Use char because int might match the return type of a GCC
22352    builtin and then its argument prototype would still apply.  */
22353 #ifdef __cplusplus
22354 extern "C"
22355 #endif
22356 char $ac_func ();
22357 /* The GNU C library defines this for functions which it implements
22358     to always fail with ENOSYS.  Some functions are actually named
22359     something starting with __ and the normal name is an alias.  */
22360 #if defined __stub_$ac_func || defined __stub___$ac_func
22361 choke me
22362 #endif
22363
22364 int
22365 main ()
22366 {
22367 return $ac_func ();
22368   ;
22369   return 0;
22370 }
22371 _ACEOF
22372 rm -f conftest.$ac_objext conftest$ac_exeext
22373 if { (ac_try="$ac_link"
22374 case "(($ac_try" in
22375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376   *) ac_try_echo=$ac_try;;
22377 esac
22378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22379 $as_echo "$ac_try_echo") >&5
22380   (eval "$ac_link") 2>conftest.er1
22381   ac_status=$?
22382   grep -v '^ *+' conftest.er1 >conftest.err
22383   rm -f conftest.er1
22384   cat conftest.err >&5
22385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386   (exit $ac_status); } && {
22387          test -z "$ac_c_werror_flag" ||
22388          test ! -s conftest.err
22389        } && test -s conftest$ac_exeext && {
22390          test "$cross_compiling" = yes ||
22391          $as_test_x conftest$ac_exeext
22392        }; then
22393   eval "$as_ac_var=yes"
22394 else
22395   $as_echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22397
22398         eval "$as_ac_var=no"
22399 fi
22400
22401 rm -rf conftest.dSYM
22402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22403       conftest$ac_exeext conftest.$ac_ext
22404 fi
22405 ac_res=`eval 'as_val=${'$as_ac_var'}
22406                  $as_echo "$as_val"'`
22407                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22408 $as_echo "$ac_res" >&6; }
22409 as_val=`eval 'as_val=${'$as_ac_var'}
22410                  $as_echo "$as_val"'`
22411    if test "x$as_val" = x""yes; then
22412   cat >>confdefs.h <<_ACEOF
22413 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22414 _ACEOF
22415
22416 else
22417
22418 for ac_func in on_exit
22419 do
22420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22421 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22422 $as_echo_n "checking for $ac_func... " >&6; }
22423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22424   $as_echo_n "(cached) " >&6
22425 else
22426   cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h.  */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h.  */
22432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22434 #define $ac_func innocuous_$ac_func
22435
22436 /* System header to define __stub macros and hopefully few prototypes,
22437     which can conflict with char $ac_func (); below.
22438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22439     <limits.h> exists even on freestanding compilers.  */
22440
22441 #ifdef __STDC__
22442 # include <limits.h>
22443 #else
22444 # include <assert.h>
22445 #endif
22446
22447 #undef $ac_func
22448
22449 /* Override any GCC internal prototype to avoid an error.
22450    Use char because int might match the return type of a GCC
22451    builtin and then its argument prototype would still apply.  */
22452 #ifdef __cplusplus
22453 extern "C"
22454 #endif
22455 char $ac_func ();
22456 /* The GNU C library defines this for functions which it implements
22457     to always fail with ENOSYS.  Some functions are actually named
22458     something starting with __ and the normal name is an alias.  */
22459 #if defined __stub_$ac_func || defined __stub___$ac_func
22460 choke me
22461 #endif
22462
22463 int
22464 main ()
22465 {
22466 return $ac_func ();
22467   ;
22468   return 0;
22469 }
22470 _ACEOF
22471 rm -f conftest.$ac_objext conftest$ac_exeext
22472 if { (ac_try="$ac_link"
22473 case "(($ac_try" in
22474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475   *) ac_try_echo=$ac_try;;
22476 esac
22477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22478 $as_echo "$ac_try_echo") >&5
22479   (eval "$ac_link") 2>conftest.er1
22480   ac_status=$?
22481   grep -v '^ *+' conftest.er1 >conftest.err
22482   rm -f conftest.er1
22483   cat conftest.err >&5
22484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); } && {
22486          test -z "$ac_c_werror_flag" ||
22487          test ! -s conftest.err
22488        } && test -s conftest$ac_exeext && {
22489          test "$cross_compiling" = yes ||
22490          $as_test_x conftest$ac_exeext
22491        }; then
22492   eval "$as_ac_var=yes"
22493 else
22494   $as_echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22496
22497         eval "$as_ac_var=no"
22498 fi
22499
22500 rm -rf conftest.dSYM
22501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22502       conftest$ac_exeext conftest.$ac_ext
22503 fi
22504 ac_res=`eval 'as_val=${'$as_ac_var'}
22505                  $as_echo "$as_val"'`
22506                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22507 $as_echo "$ac_res" >&6; }
22508 as_val=`eval 'as_val=${'$as_ac_var'}
22509                  $as_echo "$as_val"'`
22510    if test "x$as_val" = x""yes; then
22511   cat >>confdefs.h <<_ACEOF
22512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22513 _ACEOF
22514
22515 else
22516   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22517 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22518    { (exit 1); exit 1; }; }
22519 fi
22520 done
22521
22522 fi
22523 done
22524
22525
22526
22527 #
22528 # Pthreads
22529 #
22530 # For each platform, we need to know about any special compile and link
22531 # libraries, and whether the normal C function names are thread-safe.
22532 # See the comment at the top of src/port/thread.c for more information.
22533 # WIN32 doesn't need the pthread tests;  it always uses threads
22534 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22535
22536
22537
22538 ac_ext=c
22539 ac_cpp='$CPP $CPPFLAGS'
22540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22543
22544 acx_pthread_ok=no
22545
22546 # We used to check for pthread.h first, but this fails if pthread.h
22547 # requires special compiler flags (e.g. on True64 or Sequent).
22548 # It gets checked for in the link test anyway.
22549
22550 # First of all, check if the user has set any of the PTHREAD_LIBS,
22551 # etcetera environment variables, and if threads linking works using
22552 # them:
22553 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22554         save_CFLAGS="$CFLAGS"
22555         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22556         save_LIBS="$LIBS"
22557         LIBS="$PTHREAD_LIBS $LIBS"
22558         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22559 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22560         cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h.  */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h.  */
22566
22567 /* Override any GCC internal prototype to avoid an error.
22568    Use char because int might match the return type of a GCC
22569    builtin and then its argument prototype would still apply.  */
22570 #ifdef __cplusplus
22571 extern "C"
22572 #endif
22573 char pthread_join ();
22574 int
22575 main ()
22576 {
22577 return pthread_join ();
22578   ;
22579   return 0;
22580 }
22581 _ACEOF
22582 rm -f conftest.$ac_objext conftest$ac_exeext
22583 if { (ac_try="$ac_link"
22584 case "(($ac_try" in
22585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586   *) ac_try_echo=$ac_try;;
22587 esac
22588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22589 $as_echo "$ac_try_echo") >&5
22590   (eval "$ac_link") 2>conftest.er1
22591   ac_status=$?
22592   grep -v '^ *+' conftest.er1 >conftest.err
22593   rm -f conftest.er1
22594   cat conftest.err >&5
22595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); } && {
22597          test -z "$ac_c_werror_flag" ||
22598          test ! -s conftest.err
22599        } && test -s conftest$ac_exeext && {
22600          test "$cross_compiling" = yes ||
22601          $as_test_x conftest$ac_exeext
22602        }; then
22603   acx_pthread_ok=yes
22604 else
22605   $as_echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22607
22608
22609 fi
22610
22611 rm -rf conftest.dSYM
22612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22613       conftest$ac_exeext conftest.$ac_ext
22614         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22615 $as_echo "$acx_pthread_ok" >&6; }
22616         if test x"$acx_pthread_ok" = xno; then
22617                 PTHREAD_LIBS=""
22618                 PTHREAD_CFLAGS=""
22619         fi
22620         LIBS="$save_LIBS"
22621         CFLAGS="$save_CFLAGS"
22622 fi
22623
22624 # We must check for the threads library under a number of different
22625 # names; the ordering is very important because some systems
22626 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22627 # libraries is broken (non-POSIX).
22628
22629 # Create a list of thread flags to try.  Items starting with a "-" are
22630 # C compiler flags, and other items are library names, except for "none"
22631 # which indicates that we try without any flags at all, and "pthread-config"
22632 # which is a program returning the flags for the Pth emulation library.
22633
22634 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22635
22636 # The ordering *is* (sometimes) important.  Some notes on the
22637 # individual items follow:
22638
22639 # pthreads: AIX (must check this before -lpthread)
22640 # none: in case threads are in libc; should be tried before -Kthread and
22641 #       other compiler flags to prevent continual compiler warnings
22642 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22643 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22644 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22645 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22646 # -pthreads: Solaris/gcc
22647 # -mthreads: Mingw32/gcc, Lynx/gcc
22648 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22649 #      doesn't hurt to check since this sometimes defines pthreads too;
22650 #      also defines -D_REENTRANT)
22651 # pthread: Linux, etcetera
22652 # --thread-safe: KAI C++
22653 # pthread-config: use pthread-config program (for GNU Pth library)
22654
22655 case "${host_cpu}-${host_os}" in
22656         *solaris*)
22657
22658         # On Solaris (at least, for some versions), libc contains stubbed
22659         # (non-functional) versions of the pthreads routines, so link-based
22660         # tests will erroneously succeed.  (We need to link with -pthread or
22661         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22662         # a function called by this macro, so we could check for that, but
22663         # who knows whether they'll stub that too in a future libc.)  So,
22664         # we'll just look for -pthreads and -lpthread first:
22665
22666         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22667         ;;
22668 esac
22669
22670 if test x"$acx_pthread_ok" = xno; then
22671 for flag in $acx_pthread_flags; do
22672
22673         tryPTHREAD_CFLAGS=""
22674         tryPTHREAD_LIBS=""
22675         case $flag in
22676                 none)
22677                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22678 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22679                 ;;
22680
22681                 -*)
22682                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22683 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22684                 tryPTHREAD_CFLAGS="$flag"
22685                 ;;
22686
22687                 pthread-config)
22688                 # skip this if we already have flags defined, for PostgreSQL
22689                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22690                 # Extract the first word of "pthread-config", so it can be a program name with args.
22691 set dummy pthread-config; ac_word=$2
22692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22693 $as_echo_n "checking for $ac_word... " >&6; }
22694 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22695   $as_echo_n "(cached) " >&6
22696 else
22697   if test -n "$acx_pthread_config"; then
22698   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22699 else
22700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22701 for as_dir in $PATH
22702 do
22703   IFS=$as_save_IFS
22704   test -z "$as_dir" && as_dir=.
22705   for ac_exec_ext in '' $ac_executable_extensions; do
22706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22707     ac_cv_prog_acx_pthread_config="yes"
22708     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22709     break 2
22710   fi
22711 done
22712 done
22713 IFS=$as_save_IFS
22714
22715   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22716 fi
22717 fi
22718 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22719 if test -n "$acx_pthread_config"; then
22720   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22721 $as_echo "$acx_pthread_config" >&6; }
22722 else
22723   { $as_echo "$as_me:$LINENO: result: no" >&5
22724 $as_echo "no" >&6; }
22725 fi
22726
22727
22728                 if test x"$acx_pthread_config" = xno; then continue; fi
22729                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22730                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22731                 ;;
22732
22733                 *)
22734                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22735 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22736                 tryPTHREAD_LIBS="-l$flag"
22737                 ;;
22738         esac
22739
22740         save_LIBS="$LIBS"
22741         save_CFLAGS="$CFLAGS"
22742         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22743         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22744
22745         # Check for various functions.  We must include pthread.h,
22746         # since some functions may be macros.  (On the Sequent, we
22747         # need a special flag -Kthread to make this header compile.)
22748         # We check for pthread_join because it is in -lpthread on IRIX
22749         # while pthread_create is in libc.  We check for pthread_attr_init
22750         # due to DEC craziness with -lpthreads.  We check for
22751         # pthread_cleanup_push because it is one of the few pthread
22752         # functions on Solaris that doesn't have a non-functional libc stub.
22753         # We try pthread_create on general principles.
22754         cat >conftest.$ac_ext <<_ACEOF
22755 /* confdefs.h.  */
22756 _ACEOF
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h.  */
22760 #include <pthread.h>
22761 int
22762 main ()
22763 {
22764 pthread_t th; pthread_join(th, 0);
22765                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22766                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22767   ;
22768   return 0;
22769 }
22770 _ACEOF
22771 rm -f conftest.$ac_objext conftest$ac_exeext
22772 if { (ac_try="$ac_link"
22773 case "(($ac_try" in
22774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775   *) ac_try_echo=$ac_try;;
22776 esac
22777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22778 $as_echo "$ac_try_echo") >&5
22779   (eval "$ac_link") 2>conftest.er1
22780   ac_status=$?
22781   grep -v '^ *+' conftest.er1 >conftest.err
22782   rm -f conftest.er1
22783   cat conftest.err >&5
22784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); } && {
22786          test -z "$ac_c_werror_flag" ||
22787          test ! -s conftest.err
22788        } && test -s conftest$ac_exeext && {
22789          test "$cross_compiling" = yes ||
22790          $as_test_x conftest$ac_exeext
22791        }; then
22792   acx_pthread_ok=yes
22793 else
22794   $as_echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22796
22797         acx_pthread_ok=no
22798 fi
22799
22800 rm -rf conftest.dSYM
22801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22802       conftest$ac_exeext conftest.$ac_ext
22803
22804         if test "x$acx_pthread_ok" = xyes; then
22805             # Don't use options that are ignored by the compiler.
22806             # We find them by checking stderror.
22807             cat >conftest.$ac_ext <<_ACEOF
22808 int
22809 main (int argc, char **argv)
22810 {
22811   (void) argc;
22812   (void) argv;
22813   return 0;
22814 }
22815 _ACEOF
22816             rm -f conftest.$ac_objext conftest$ac_exeext
22817             # Check both linking and compiling, because they might tolerate different options.
22818             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22819                 # we continue with more flags because Linux needs -lpthread
22820                 # for libpq builds on PostgreSQL.  The test above only
22821                 # tests for building binaries, not shared libraries.
22822                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22823                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22824             else   acx_pthread_ok=no
22825             fi
22826         fi
22827
22828         LIBS="$save_LIBS"
22829         CFLAGS="$save_CFLAGS"
22830
22831         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22832 $as_echo "$acx_pthread_ok" >&6; }
22833 done
22834 fi
22835
22836 # Various other checks:
22837 if test "x$acx_pthread_ok" = xyes; then
22838         save_LIBS="$LIBS"
22839         LIBS="$PTHREAD_LIBS $LIBS"
22840         save_CFLAGS="$CFLAGS"
22841         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22842
22843         # Detect AIX lossage: threads are created detached by default
22844         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22845         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22846 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22847         cat >conftest.$ac_ext <<_ACEOF
22848 /* confdefs.h.  */
22849 _ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h.  */
22853 #include <pthread.h>
22854 int
22855 main ()
22856 {
22857 int attr=PTHREAD_CREATE_JOINABLE;
22858   ;
22859   return 0;
22860 }
22861 _ACEOF
22862 rm -f conftest.$ac_objext conftest$ac_exeext
22863 if { (ac_try="$ac_link"
22864 case "(($ac_try" in
22865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866   *) ac_try_echo=$ac_try;;
22867 esac
22868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22869 $as_echo "$ac_try_echo") >&5
22870   (eval "$ac_link") 2>conftest.er1
22871   ac_status=$?
22872   grep -v '^ *+' conftest.er1 >conftest.err
22873   rm -f conftest.er1
22874   cat conftest.err >&5
22875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876   (exit $ac_status); } && {
22877          test -z "$ac_c_werror_flag" ||
22878          test ! -s conftest.err
22879        } && test -s conftest$ac_exeext && {
22880          test "$cross_compiling" = yes ||
22881          $as_test_x conftest$ac_exeext
22882        }; then
22883   ok=PTHREAD_CREATE_JOINABLE
22884 else
22885   $as_echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22887
22888         ok=unknown
22889 fi
22890
22891 rm -rf conftest.dSYM
22892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22893       conftest$ac_exeext conftest.$ac_ext
22894         if test x"$ok" = xunknown; then
22895                 cat >conftest.$ac_ext <<_ACEOF
22896 /* confdefs.h.  */
22897 _ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h.  */
22901 #include <pthread.h>
22902 int
22903 main ()
22904 {
22905 int attr=PTHREAD_CREATE_UNDETACHED;
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   ok=PTHREAD_CREATE_UNDETACHED
22932 else
22933   $as_echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22935
22936         ok=unknown
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         fi
22943         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22944
22945 cat >>confdefs.h <<\_ACEOF
22946 #define PTHREAD_CREATE_JOINABLE $ok
22947 _ACEOF
22948
22949         fi
22950         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22951 $as_echo "${ok}" >&6; }
22952         if test x"$ok" = xunknown; then
22953                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22954 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22955         fi
22956
22957         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22958 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22959         flag=no
22960 # We always add these in PostgreSQL
22961 #       case "${host_cpu}-${host_os}" in
22962 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22963 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22964 #       esac
22965         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22966 $as_echo "${flag}" >&6; }
22967         if test "x$flag" != xno; then
22968                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22969         fi
22970
22971         LIBS="$save_LIBS"
22972         CFLAGS="$save_CFLAGS"
22973
22974 # Supporting cc_r would require a special CC in all places that
22975 # use libpq, and that is ugly, so we don't do it.  Users can still
22976 # define their compiler as cc_r to do thread builds of everything.
22977         # More AIX lossage: must compile with cc_r
22978         # Extract the first word of "cc_r", so it can be a program name with args.
22979 set dummy cc_r; ac_word=$2
22980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22981 $as_echo_n "checking for $ac_word... " >&6; }
22982 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22983   $as_echo_n "(cached) " >&6
22984 else
22985   if test -n "$PTHREAD_CC"; then
22986   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22987 else
22988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22989 for as_dir in $PATH
22990 do
22991   IFS=$as_save_IFS
22992   test -z "$as_dir" && as_dir=.
22993   for ac_exec_ext in '' $ac_executable_extensions; do
22994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22995     ac_cv_prog_PTHREAD_CC="cc_r"
22996     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22997     break 2
22998   fi
22999 done
23000 done
23001 IFS=$as_save_IFS
23002
23003   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23004 fi
23005 fi
23006 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23007 if test -n "$PTHREAD_CC"; then
23008   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23009 $as_echo "$PTHREAD_CC" >&6; }
23010 else
23011   { $as_echo "$as_me:$LINENO: result: no" >&5
23012 $as_echo "no" >&6; }
23013 fi
23014
23015
23016 else
23017         PTHREAD_CC="$CC"
23018 fi
23019
23020
23021
23022
23023
23024 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23025 if test x"$acx_pthread_ok" = xyes; then
23026
23027 cat >>confdefs.h <<\_ACEOF
23028 #define HAVE_PTHREAD 1
23029 _ACEOF
23030
23031         :
23032 else
23033         acx_pthread_ok=no
23034
23035 fi
23036 ac_ext=c
23037 ac_cpp='$CPP $CPPFLAGS'
23038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23041
23042         # set thread flags
23043
23044 # Some platforms use these, so just define them.  They can't hurt if they
23045 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23046 # enables 5-arg getpwuid_r, among other things.
23047 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23048
23049
23050 # At this point, we don't want to muck with the compiler name for threading.
23051 # Let's see who fails, perhaps AIX.  2004-04-23
23052 if test "$PTHREAD_CC" != "$CC"; then
23053 { { $as_echo "$as_me:$LINENO: error:
23054 PostgreSQL does not support platforms that require a special compiler
23055 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23056 $as_echo "$as_me: error:
23057 PostgreSQL does not support platforms that require a special compiler
23058 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23059    { (exit 1); exit 1; }; }
23060 fi
23061
23062 # Check for *_r functions
23063 _CFLAGS="$CFLAGS"
23064 _LIBS="$LIBS"
23065 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23066 LIBS="$LIBS $PTHREAD_LIBS"
23067
23068 if test "$PORTNAME" != "win32"; then
23069 if test "${ac_cv_header_pthread_h+set}" = set; then
23070   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23071 $as_echo_n "checking for pthread.h... " >&6; }
23072 if test "${ac_cv_header_pthread_h+set}" = set; then
23073   $as_echo_n "(cached) " >&6
23074 fi
23075 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23076 $as_echo "$ac_cv_header_pthread_h" >&6; }
23077 else
23078   # Is the header compilable?
23079 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23080 $as_echo_n "checking pthread.h usability... " >&6; }
23081 cat >conftest.$ac_ext <<_ACEOF
23082 /* confdefs.h.  */
23083 _ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h.  */
23087 $ac_includes_default
23088 #include <pthread.h>
23089 _ACEOF
23090 rm -f conftest.$ac_objext
23091 if { (ac_try="$ac_compile"
23092 case "(($ac_try" in
23093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23094   *) ac_try_echo=$ac_try;;
23095 esac
23096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23097 $as_echo "$ac_try_echo") >&5
23098   (eval "$ac_compile") 2>conftest.er1
23099   ac_status=$?
23100   grep -v '^ *+' conftest.er1 >conftest.err
23101   rm -f conftest.er1
23102   cat conftest.err >&5
23103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104   (exit $ac_status); } && {
23105          test -z "$ac_c_werror_flag" ||
23106          test ! -s conftest.err
23107        } && test -s conftest.$ac_objext; then
23108   ac_header_compiler=yes
23109 else
23110   $as_echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23112
23113         ac_header_compiler=no
23114 fi
23115
23116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23118 $as_echo "$ac_header_compiler" >&6; }
23119
23120 # Is the header present?
23121 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23122 $as_echo_n "checking pthread.h presence... " >&6; }
23123 cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129 #include <pthread.h>
23130 _ACEOF
23131 if { (ac_try="$ac_cpp conftest.$ac_ext"
23132 case "(($ac_try" in
23133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134   *) ac_try_echo=$ac_try;;
23135 esac
23136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23137 $as_echo "$ac_try_echo") >&5
23138   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23139   ac_status=$?
23140   grep -v '^ *+' conftest.er1 >conftest.err
23141   rm -f conftest.er1
23142   cat conftest.err >&5
23143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144   (exit $ac_status); } >/dev/null && {
23145          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23146          test ! -s conftest.err
23147        }; then
23148   ac_header_preproc=yes
23149 else
23150   $as_echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23152
23153   ac_header_preproc=no
23154 fi
23155
23156 rm -f conftest.err conftest.$ac_ext
23157 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23158 $as_echo "$ac_header_preproc" >&6; }
23159
23160 # So?  What about this header?
23161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23162   yes:no: )
23163     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23164 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23165     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23166 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23167     ac_header_preproc=yes
23168     ;;
23169   no:yes:* )
23170     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23171 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23172     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23173 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23174     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23175 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23176     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23177 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23178     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23179 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23180     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23181 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23182     ( cat <<\_ASBOX
23183 ## ---------------------------------------- ##
23184 ## Report this to pgsql-bugs@postgresql.org ##
23185 ## ---------------------------------------- ##
23186 _ASBOX
23187      ) | sed "s/^/$as_me: WARNING:     /" >&2
23188     ;;
23189 esac
23190 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23191 $as_echo_n "checking for pthread.h... " >&6; }
23192 if test "${ac_cv_header_pthread_h+set}" = set; then
23193   $as_echo_n "(cached) " >&6
23194 else
23195   ac_cv_header_pthread_h=$ac_header_preproc
23196 fi
23197 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23198 $as_echo "$ac_cv_header_pthread_h" >&6; }
23199
23200 fi
23201 if test "x$ac_cv_header_pthread_h" = x""yes; then
23202   :
23203 else
23204   { { $as_echo "$as_me:$LINENO: error:
23205 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
23206 $as_echo "$as_me: error:
23207 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
23208    { (exit 1); exit 1; }; }
23209 fi
23210
23211
23212 fi
23213
23214
23215
23216
23217 for ac_func in strerror_r getpwuid_r gethostbyname_r
23218 do
23219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23220 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23221 $as_echo_n "checking for $ac_func... " >&6; }
23222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23223   $as_echo_n "(cached) " >&6
23224 else
23225   cat >conftest.$ac_ext <<_ACEOF
23226 /* confdefs.h.  */
23227 _ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h.  */
23231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23233 #define $ac_func innocuous_$ac_func
23234
23235 /* System header to define __stub macros and hopefully few prototypes,
23236     which can conflict with char $ac_func (); below.
23237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23238     <limits.h> exists even on freestanding compilers.  */
23239
23240 #ifdef __STDC__
23241 # include <limits.h>
23242 #else
23243 # include <assert.h>
23244 #endif
23245
23246 #undef $ac_func
23247
23248 /* Override any GCC internal prototype to avoid an error.
23249    Use char because int might match the return type of a GCC
23250    builtin and then its argument prototype would still apply.  */
23251 #ifdef __cplusplus
23252 extern "C"
23253 #endif
23254 char $ac_func ();
23255 /* The GNU C library defines this for functions which it implements
23256     to always fail with ENOSYS.  Some functions are actually named
23257     something starting with __ and the normal name is an alias.  */
23258 #if defined __stub_$ac_func || defined __stub___$ac_func
23259 choke me
23260 #endif
23261
23262 int
23263 main ()
23264 {
23265 return $ac_func ();
23266   ;
23267   return 0;
23268 }
23269 _ACEOF
23270 rm -f conftest.$ac_objext conftest$ac_exeext
23271 if { (ac_try="$ac_link"
23272 case "(($ac_try" in
23273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274   *) ac_try_echo=$ac_try;;
23275 esac
23276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23277 $as_echo "$ac_try_echo") >&5
23278   (eval "$ac_link") 2>conftest.er1
23279   ac_status=$?
23280   grep -v '^ *+' conftest.er1 >conftest.err
23281   rm -f conftest.er1
23282   cat conftest.err >&5
23283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); } && {
23285          test -z "$ac_c_werror_flag" ||
23286          test ! -s conftest.err
23287        } && test -s conftest$ac_exeext && {
23288          test "$cross_compiling" = yes ||
23289          $as_test_x conftest$ac_exeext
23290        }; then
23291   eval "$as_ac_var=yes"
23292 else
23293   $as_echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23295
23296         eval "$as_ac_var=no"
23297 fi
23298
23299 rm -rf conftest.dSYM
23300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23301       conftest$ac_exeext conftest.$ac_ext
23302 fi
23303 ac_res=`eval 'as_val=${'$as_ac_var'}
23304                  $as_echo "$as_val"'`
23305                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23306 $as_echo "$ac_res" >&6; }
23307 as_val=`eval 'as_val=${'$as_ac_var'}
23308                  $as_echo "$as_val"'`
23309    if test "x$as_val" = x""yes; then
23310   cat >>confdefs.h <<_ACEOF
23311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23312 _ACEOF
23313
23314 fi
23315 done
23316
23317
23318 # Do test here with the proper thread flags
23319 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23320 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23321 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23322   $as_echo_n "(cached) " >&6
23323 else
23324   cat >conftest.$ac_ext <<_ACEOF
23325 /* confdefs.h.  */
23326 _ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h.  */
23330 #include <sys/types.h>
23331 #include <pwd.h>
23332 int
23333 main ()
23334 {
23335 uid_t uid;
23336 struct passwd *space;
23337 char *buf;
23338 size_t bufsize;
23339 struct passwd **result;
23340 getpwuid_r(uid, space, buf, bufsize, result);
23341   ;
23342   return 0;
23343 }
23344 _ACEOF
23345 rm -f conftest.$ac_objext
23346 if { (ac_try="$ac_compile"
23347 case "(($ac_try" in
23348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349   *) ac_try_echo=$ac_try;;
23350 esac
23351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23352 $as_echo "$ac_try_echo") >&5
23353   (eval "$ac_compile") 2>conftest.er1
23354   ac_status=$?
23355   grep -v '^ *+' conftest.er1 >conftest.err
23356   rm -f conftest.er1
23357   cat conftest.err >&5
23358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); } && {
23360          test -z "$ac_c_werror_flag" ||
23361          test ! -s conftest.err
23362        } && test -s conftest.$ac_objext; then
23363   pgac_cv_func_getpwuid_r_5arg=yes
23364 else
23365   $as_echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23367
23368         pgac_cv_func_getpwuid_r_5arg=no
23369 fi
23370
23371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23372 fi
23373 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23374 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23375 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23376
23377 cat >>confdefs.h <<\_ACEOF
23378 #define GETPWUID_R_5ARG /**/
23379 _ACEOF
23380
23381 fi
23382
23383 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23384 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23385 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23386   $as_echo_n "(cached) " >&6
23387 else
23388   cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h.  */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h.  */
23394 #include <string.h>
23395 int
23396 main ()
23397 {
23398 #ifndef _AIX
23399 int strerror_r(int, char *, size_t);
23400 #else
23401 /* Older AIX has 'int' for the third argument so we don't test the args. */
23402 int strerror_r();
23403 #endif
23404   ;
23405   return 0;
23406 }
23407 _ACEOF
23408 rm -f conftest.$ac_objext
23409 if { (ac_try="$ac_compile"
23410 case "(($ac_try" in
23411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23412   *) ac_try_echo=$ac_try;;
23413 esac
23414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23415 $as_echo "$ac_try_echo") >&5
23416   (eval "$ac_compile") 2>conftest.er1
23417   ac_status=$?
23418   grep -v '^ *+' conftest.er1 >conftest.err
23419   rm -f conftest.er1
23420   cat conftest.err >&5
23421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422   (exit $ac_status); } && {
23423          test -z "$ac_c_werror_flag" ||
23424          test ! -s conftest.err
23425        } && test -s conftest.$ac_objext; then
23426   pgac_cv_func_strerror_r_int=yes
23427 else
23428   $as_echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23430
23431         pgac_cv_func_strerror_r_int=no
23432 fi
23433
23434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23435 fi
23436 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23437 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23438 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23439
23440 cat >>confdefs.h <<\_ACEOF
23441 #define STRERROR_R_INT /**/
23442 _ACEOF
23443
23444 fi
23445
23446
23447 CFLAGS="$_CFLAGS"
23448 LIBS="$_LIBS"
23449
23450 else
23451 # do not use values from template file
23452 PTHREAD_CFLAGS=
23453 PTHREAD_LIBS=
23454 fi
23455
23456
23457
23458
23459
23460 # We can test for libldap_r only after we know PTHREAD_LIBS
23461 if test "$with_ldap" = yes ; then
23462   _LIBS="$LIBS"
23463   if test "$PORTNAME" != "win32"; then
23464
23465 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23466 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23467 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23468   $as_echo_n "(cached) " >&6
23469 else
23470   ac_check_lib_save_LIBS=$LIBS
23471 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23472 cat >conftest.$ac_ext <<_ACEOF
23473 /* confdefs.h.  */
23474 _ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h.  */
23478
23479 /* Override any GCC internal prototype to avoid an error.
23480    Use char because int might match the return type of a GCC
23481    builtin and then its argument prototype would still apply.  */
23482 #ifdef __cplusplus
23483 extern "C"
23484 #endif
23485 char ldap_bind ();
23486 int
23487 main ()
23488 {
23489 return ldap_bind ();
23490   ;
23491   return 0;
23492 }
23493 _ACEOF
23494 rm -f conftest.$ac_objext conftest$ac_exeext
23495 if { (ac_try="$ac_link"
23496 case "(($ac_try" in
23497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23498   *) ac_try_echo=$ac_try;;
23499 esac
23500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23501 $as_echo "$ac_try_echo") >&5
23502   (eval "$ac_link") 2>conftest.er1
23503   ac_status=$?
23504   grep -v '^ *+' conftest.er1 >conftest.err
23505   rm -f conftest.er1
23506   cat conftest.err >&5
23507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508   (exit $ac_status); } && {
23509          test -z "$ac_c_werror_flag" ||
23510          test ! -s conftest.err
23511        } && test -s conftest$ac_exeext && {
23512          test "$cross_compiling" = yes ||
23513          $as_test_x conftest$ac_exeext
23514        }; then
23515   ac_cv_lib_ldap_ldap_bind=yes
23516 else
23517   $as_echo "$as_me: failed program was:" >&5
23518 sed 's/^/| /' conftest.$ac_ext >&5
23519
23520         ac_cv_lib_ldap_ldap_bind=no
23521 fi
23522
23523 rm -rf conftest.dSYM
23524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23525       conftest$ac_exeext conftest.$ac_ext
23526 LIBS=$ac_check_lib_save_LIBS
23527 fi
23528 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23529 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23530 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23531   cat >>confdefs.h <<_ACEOF
23532 #define HAVE_LIBLDAP 1
23533 _ACEOF
23534
23535   LIBS="-lldap $LIBS"
23536
23537 else
23538   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23539 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23540    { (exit 1); exit 1; }; }
23541 fi
23542
23543     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23544     if test "$enable_thread_safety" = yes; then
23545       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23546
23547 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23548 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23549 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23550   $as_echo_n "(cached) " >&6
23551 else
23552   ac_check_lib_save_LIBS=$LIBS
23553 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23554 cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h.  */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h.  */
23560
23561 /* Override any GCC internal prototype to avoid an error.
23562    Use char because int might match the return type of a GCC
23563    builtin and then its argument prototype would still apply.  */
23564 #ifdef __cplusplus
23565 extern "C"
23566 #endif
23567 char ldap_simple_bind ();
23568 int
23569 main ()
23570 {
23571 return ldap_simple_bind ();
23572   ;
23573   return 0;
23574 }
23575 _ACEOF
23576 rm -f conftest.$ac_objext conftest$ac_exeext
23577 if { (ac_try="$ac_link"
23578 case "(($ac_try" in
23579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580   *) ac_try_echo=$ac_try;;
23581 esac
23582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23583 $as_echo "$ac_try_echo") >&5
23584   (eval "$ac_link") 2>conftest.er1
23585   ac_status=$?
23586   grep -v '^ *+' conftest.er1 >conftest.err
23587   rm -f conftest.er1
23588   cat conftest.err >&5
23589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590   (exit $ac_status); } && {
23591          test -z "$ac_c_werror_flag" ||
23592          test ! -s conftest.err
23593        } && test -s conftest$ac_exeext && {
23594          test "$cross_compiling" = yes ||
23595          $as_test_x conftest$ac_exeext
23596        }; then
23597   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23598 else
23599   $as_echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23601
23602         ac_cv_lib_ldap_r_ldap_simple_bind=no
23603 fi
23604
23605 rm -rf conftest.dSYM
23606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23607       conftest$ac_exeext conftest.$ac_ext
23608 LIBS=$ac_check_lib_save_LIBS
23609 fi
23610 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23611 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23612 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23613   cat >>confdefs.h <<_ACEOF
23614 #define HAVE_LIBLDAP_R 1
23615 _ACEOF
23616
23617   LIBS="-lldap_r $LIBS"
23618
23619 else
23620   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23621 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23622    { (exit 1); exit 1; }; }
23623 fi
23624
23625       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23626     else
23627       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23628     fi
23629   else
23630
23631 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23632 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23633 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23634   $as_echo_n "(cached) " >&6
23635 else
23636   ac_check_lib_save_LIBS=$LIBS
23637 LIBS="-lwldap32  $LIBS"
23638 cat >conftest.$ac_ext <<_ACEOF
23639 /* confdefs.h.  */
23640 _ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h.  */
23644
23645 /* Override any GCC internal prototype to avoid an error.
23646    Use char because int might match the return type of a GCC
23647    builtin and then its argument prototype would still apply.  */
23648 #ifdef __cplusplus
23649 extern "C"
23650 #endif
23651 char ldap_bind ();
23652 int
23653 main ()
23654 {
23655 return ldap_bind ();
23656   ;
23657   return 0;
23658 }
23659 _ACEOF
23660 rm -f conftest.$ac_objext conftest$ac_exeext
23661 if { (ac_try="$ac_link"
23662 case "(($ac_try" in
23663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23664   *) ac_try_echo=$ac_try;;
23665 esac
23666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23667 $as_echo "$ac_try_echo") >&5
23668   (eval "$ac_link") 2>conftest.er1
23669   ac_status=$?
23670   grep -v '^ *+' conftest.er1 >conftest.err
23671   rm -f conftest.er1
23672   cat conftest.err >&5
23673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674   (exit $ac_status); } && {
23675          test -z "$ac_c_werror_flag" ||
23676          test ! -s conftest.err
23677        } && test -s conftest$ac_exeext && {
23678          test "$cross_compiling" = yes ||
23679          $as_test_x conftest$ac_exeext
23680        }; then
23681   ac_cv_lib_wldap32_ldap_bind=yes
23682 else
23683   $as_echo "$as_me: failed program was:" >&5
23684 sed 's/^/| /' conftest.$ac_ext >&5
23685
23686         ac_cv_lib_wldap32_ldap_bind=no
23687 fi
23688
23689 rm -rf conftest.dSYM
23690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23691       conftest$ac_exeext conftest.$ac_ext
23692 LIBS=$ac_check_lib_save_LIBS
23693 fi
23694 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23695 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23696 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23697   cat >>confdefs.h <<_ACEOF
23698 #define HAVE_LIBWLDAP32 1
23699 _ACEOF
23700
23701   LIBS="-lwldap32 $LIBS"
23702
23703 else
23704   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23705 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23706    { (exit 1); exit 1; }; }
23707 fi
23708
23709     LDAP_LIBS_FE="-lwldap32"
23710     LDAP_LIBS_BE="-lwldap32"
23711   fi
23712   LIBS="$_LIBS"
23713 fi
23714
23715
23716
23717
23718 # This test makes sure that run tests work at all.  Sometimes a shared
23719 # library is found by the linker, but the runtime linker can't find it.
23720 # This check should come after all modifications of compiler or linker
23721 # variables, and before any other run tests.
23722 { $as_echo "$as_me:$LINENO: checking test program" >&5
23723 $as_echo_n "checking test program... " >&6; }
23724 if test "$cross_compiling" = yes; then
23725   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23726 $as_echo "cross-compiling" >&6; }
23727 else
23728   cat >conftest.$ac_ext <<_ACEOF
23729 /* confdefs.h.  */
23730 _ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h.  */
23734 int main() { return 0; }
23735 _ACEOF
23736 rm -f conftest$ac_exeext
23737 if { (ac_try="$ac_link"
23738 case "(($ac_try" in
23739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23740   *) ac_try_echo=$ac_try;;
23741 esac
23742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23743 $as_echo "$ac_try_echo") >&5
23744   (eval "$ac_link") 2>&5
23745   ac_status=$?
23746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23748   { (case "(($ac_try" in
23749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750   *) ac_try_echo=$ac_try;;
23751 esac
23752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23753 $as_echo "$ac_try_echo") >&5
23754   (eval "$ac_try") 2>&5
23755   ac_status=$?
23756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757   (exit $ac_status); }; }; then
23758   { $as_echo "$as_me:$LINENO: result: ok" >&5
23759 $as_echo "ok" >&6; }
23760 else
23761   $as_echo "$as_me: program exited with status $ac_status" >&5
23762 $as_echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23764
23765 ( exit $ac_status )
23766 { $as_echo "$as_me:$LINENO: result: failed" >&5
23767 $as_echo "failed" >&6; }
23768 { { $as_echo "$as_me:$LINENO: error:
23769 Could not execute a simple test program.  This may be a problem
23770 related to locating shared libraries.  Check the file 'config.log'
23771 for the exact reason." >&5
23772 $as_echo "$as_me: error:
23773 Could not execute a simple test program.  This may be a problem
23774 related to locating shared libraries.  Check the file 'config.log'
23775 for the exact reason." >&2;}
23776    { (exit 1); exit 1; }; }
23777 fi
23778 rm -rf conftest.dSYM
23779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23780 fi
23781
23782
23783
23784 # --------------------
23785 # Run tests below here
23786 # --------------------
23787
23788 # Force use of our snprintf if system's doesn't do arg control
23789 # See comment above at snprintf test for details.
23790 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23791   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23792 $as_echo_n "checking whether printf supports argument control... " >&6; }
23793 if test "${pgac_cv_printf_arg_control+set}" = set; then
23794   $as_echo_n "(cached) " >&6
23795 else
23796   if test "$cross_compiling" = yes; then
23797   pgac_cv_printf_arg_control=cross
23798 else
23799   cat >conftest.$ac_ext <<_ACEOF
23800 /* confdefs.h.  */
23801 _ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h.  */
23805 #include <stdio.h>
23806 #include <string.h>
23807
23808 int main()
23809 {
23810   char buf[100];
23811
23812   /* can it swap arguments? */
23813   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23814   if (strcmp(buf, "4 3") != 0)
23815     return 1;
23816   return 0;
23817 }
23818 _ACEOF
23819 rm -f conftest$ac_exeext
23820 if { (ac_try="$ac_link"
23821 case "(($ac_try" in
23822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823   *) ac_try_echo=$ac_try;;
23824 esac
23825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23826 $as_echo "$ac_try_echo") >&5
23827   (eval "$ac_link") 2>&5
23828   ac_status=$?
23829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23831   { (case "(($ac_try" in
23832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833   *) ac_try_echo=$ac_try;;
23834 esac
23835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23836 $as_echo "$ac_try_echo") >&5
23837   (eval "$ac_try") 2>&5
23838   ac_status=$?
23839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); }; }; then
23841   pgac_cv_printf_arg_control=yes
23842 else
23843   $as_echo "$as_me: program exited with status $ac_status" >&5
23844 $as_echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23846
23847 ( exit $ac_status )
23848 pgac_cv_printf_arg_control=no
23849 fi
23850 rm -rf conftest.dSYM
23851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23852 fi
23853
23854
23855
23856 fi
23857 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23858 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23859
23860   if test $pgac_cv_printf_arg_control != yes ; then
23861     pgac_need_repl_snprintf=yes
23862   fi
23863 fi
23864
23865
23866
23867
23868 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23869 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23870 if test "${pgac_cv_type_long_int_64+set}" = set; then
23871   $as_echo_n "(cached) " >&6
23872 else
23873   if test "$cross_compiling" = yes; then
23874   # If cross-compiling, check the size reported by the compiler and
23875 # trust that the arithmetic works.
23876 cat >conftest.$ac_ext <<_ACEOF
23877 /* confdefs.h.  */
23878 _ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h.  */
23882
23883 int
23884 main ()
23885 {
23886 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23887 test_array [0] = 0
23888
23889   ;
23890   return 0;
23891 }
23892 _ACEOF
23893 rm -f conftest.$ac_objext
23894 if { (ac_try="$ac_compile"
23895 case "(($ac_try" in
23896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897   *) ac_try_echo=$ac_try;;
23898 esac
23899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23900 $as_echo "$ac_try_echo") >&5
23901   (eval "$ac_compile") 2>conftest.er1
23902   ac_status=$?
23903   grep -v '^ *+' conftest.er1 >conftest.err
23904   rm -f conftest.er1
23905   cat conftest.err >&5
23906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); } && {
23908          test -z "$ac_c_werror_flag" ||
23909          test ! -s conftest.err
23910        } && test -s conftest.$ac_objext; then
23911   pgac_cv_type_long_int_64=yes
23912 else
23913   $as_echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23915
23916         pgac_cv_type_long_int_64=no
23917 fi
23918
23919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23920 else
23921   cat >conftest.$ac_ext <<_ACEOF
23922 /* confdefs.h.  */
23923 _ACEOF
23924 cat confdefs.h >>conftest.$ac_ext
23925 cat >>conftest.$ac_ext <<_ACEOF
23926 /* end confdefs.h.  */
23927 typedef long int ac_int64;
23928
23929 /*
23930  * These are globals to discourage the compiler from folding all the
23931  * arithmetic tests down to compile-time constants.
23932  */
23933 ac_int64 a = 20000001;
23934 ac_int64 b = 40000005;
23935
23936 int does_int64_work()
23937 {
23938   ac_int64 c,d;
23939
23940   if (sizeof(ac_int64) != 8)
23941     return 0;                   /* definitely not the right size */
23942
23943   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23944   c = a * b;
23945   d = (c + b) / b;
23946   if (d != a+1)
23947     return 0;
23948   return 1;
23949 }
23950 main() {
23951   exit(! does_int64_work());
23952 }
23953 _ACEOF
23954 rm -f conftest$ac_exeext
23955 if { (ac_try="$ac_link"
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_link") 2>&5
23963   ac_status=$?
23964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23966   { (case "(($ac_try" in
23967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968   *) ac_try_echo=$ac_try;;
23969 esac
23970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23971 $as_echo "$ac_try_echo") >&5
23972   (eval "$ac_try") 2>&5
23973   ac_status=$?
23974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); }; }; then
23976   pgac_cv_type_long_int_64=yes
23977 else
23978   $as_echo "$as_me: program exited with status $ac_status" >&5
23979 $as_echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.$ac_ext >&5
23981
23982 ( exit $ac_status )
23983 pgac_cv_type_long_int_64=no
23984 fi
23985 rm -rf conftest.dSYM
23986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23987 fi
23988
23989
23990 fi
23991 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23992 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23993
23994 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23995 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23996
23997 cat >>confdefs.h <<\_ACEOF
23998 #define HAVE_LONG_INT_64 1
23999 _ACEOF
24000
24001 fi
24002
24003
24004 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24005   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24006 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24007 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24008   $as_echo_n "(cached) " >&6
24009 else
24010   if test "$cross_compiling" = yes; then
24011   # If cross-compiling, check the size reported by the compiler and
24012 # trust that the arithmetic works.
24013 cat >conftest.$ac_ext <<_ACEOF
24014 /* confdefs.h.  */
24015 _ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h.  */
24019
24020 int
24021 main ()
24022 {
24023 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24024 test_array [0] = 0
24025
24026   ;
24027   return 0;
24028 }
24029 _ACEOF
24030 rm -f conftest.$ac_objext
24031 if { (ac_try="$ac_compile"
24032 case "(($ac_try" in
24033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24034   *) ac_try_echo=$ac_try;;
24035 esac
24036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24037 $as_echo "$ac_try_echo") >&5
24038   (eval "$ac_compile") 2>conftest.er1
24039   ac_status=$?
24040   grep -v '^ *+' conftest.er1 >conftest.err
24041   rm -f conftest.er1
24042   cat conftest.err >&5
24043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); } && {
24045          test -z "$ac_c_werror_flag" ||
24046          test ! -s conftest.err
24047        } && test -s conftest.$ac_objext; then
24048   pgac_cv_type_long_long_int_64=yes
24049 else
24050   $as_echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24052
24053         pgac_cv_type_long_long_int_64=no
24054 fi
24055
24056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24057 else
24058   cat >conftest.$ac_ext <<_ACEOF
24059 /* confdefs.h.  */
24060 _ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h.  */
24064 typedef long long int ac_int64;
24065
24066 /*
24067  * These are globals to discourage the compiler from folding all the
24068  * arithmetic tests down to compile-time constants.
24069  */
24070 ac_int64 a = 20000001;
24071 ac_int64 b = 40000005;
24072
24073 int does_int64_work()
24074 {
24075   ac_int64 c,d;
24076
24077   if (sizeof(ac_int64) != 8)
24078     return 0;                   /* definitely not the right size */
24079
24080   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24081   c = a * b;
24082   d = (c + b) / b;
24083   if (d != a+1)
24084     return 0;
24085   return 1;
24086 }
24087 main() {
24088   exit(! does_int64_work());
24089 }
24090 _ACEOF
24091 rm -f conftest$ac_exeext
24092 if { (ac_try="$ac_link"
24093 case "(($ac_try" in
24094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24095   *) ac_try_echo=$ac_try;;
24096 esac
24097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24098 $as_echo "$ac_try_echo") >&5
24099   (eval "$ac_link") 2>&5
24100   ac_status=$?
24101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
24110   ac_status=$?
24111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112   (exit $ac_status); }; }; then
24113   pgac_cv_type_long_long_int_64=yes
24114 else
24115   $as_echo "$as_me: program exited with status $ac_status" >&5
24116 $as_echo "$as_me: failed program was:" >&5
24117 sed 's/^/| /' conftest.$ac_ext >&5
24118
24119 ( exit $ac_status )
24120 pgac_cv_type_long_long_int_64=no
24121 fi
24122 rm -rf conftest.dSYM
24123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24124 fi
24125
24126
24127 fi
24128 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24129 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24130
24131 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24132 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24133
24134 cat >>confdefs.h <<\_ACEOF
24135 #define HAVE_LONG_LONG_INT_64 1
24136 _ACEOF
24137
24138 fi
24139
24140   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24141     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24142 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24143    { (exit 1); exit 1; }; }
24144   fi
24145 fi
24146
24147
24148
24149 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24150   cat >conftest.$ac_ext <<_ACEOF
24151 /* confdefs.h.  */
24152 _ACEOF
24153 cat confdefs.h >>conftest.$ac_ext
24154 cat >>conftest.$ac_ext <<_ACEOF
24155 /* end confdefs.h.  */
24156
24157 #define INT64CONST(x)  x##LL
24158 long long int foo = INT64CONST(0x1234567890123456);
24159
24160 int
24161 main ()
24162 {
24163
24164   ;
24165   return 0;
24166 }
24167 _ACEOF
24168 rm -f conftest.$ac_objext
24169 if { (ac_try="$ac_compile"
24170 case "(($ac_try" in
24171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24172   *) ac_try_echo=$ac_try;;
24173 esac
24174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24175 $as_echo "$ac_try_echo") >&5
24176   (eval "$ac_compile") 2>conftest.er1
24177   ac_status=$?
24178   grep -v '^ *+' conftest.er1 >conftest.err
24179   rm -f conftest.er1
24180   cat conftest.err >&5
24181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182   (exit $ac_status); } && {
24183          test -z "$ac_c_werror_flag" ||
24184          test ! -s conftest.err
24185        } && test -s conftest.$ac_objext; then
24186
24187 cat >>confdefs.h <<\_ACEOF
24188 #define HAVE_LL_CONSTANTS 1
24189 _ACEOF
24190
24191 else
24192   $as_echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24194
24195
24196 fi
24197
24198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24199 fi
24200
24201
24202 # If we found "long int" is 64 bits, assume snprintf handles it.  If
24203 # we found we need to use "long long int", better check.  We cope with
24204 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
24205 # work, fall back to our own snprintf emulation (which we know uses %lld).
24206
24207 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24208   if test $pgac_need_repl_snprintf = no; then
24209     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24210 $as_echo_n "checking snprintf format for long long int... " >&6; }
24211 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24212   $as_echo_n "(cached) " >&6
24213 else
24214   for pgac_format in '%lld' '%qd' '%I64d'; do
24215 if test "$cross_compiling" = yes; then
24216   pgac_cv_snprintf_long_long_int_format=cross; break
24217 else
24218   cat >conftest.$ac_ext <<_ACEOF
24219 /* confdefs.h.  */
24220 _ACEOF
24221 cat confdefs.h >>conftest.$ac_ext
24222 cat >>conftest.$ac_ext <<_ACEOF
24223 /* end confdefs.h.  */
24224 #include <stdio.h>
24225 typedef long long int ac_int64;
24226 #define INT64_FORMAT "$pgac_format"
24227
24228 ac_int64 a = 20000001;
24229 ac_int64 b = 40000005;
24230
24231 int does_int64_snprintf_work()
24232 {
24233   ac_int64 c;
24234   char buf[100];
24235
24236   if (sizeof(ac_int64) != 8)
24237     return 0;                   /* doesn't look like the right size */
24238
24239   c = a * b;
24240   snprintf(buf, 100, INT64_FORMAT, c);
24241   if (strcmp(buf, "800000140000005") != 0)
24242     return 0;                   /* either multiply or snprintf is busted */
24243   return 1;
24244 }
24245 main() {
24246   exit(! does_int64_snprintf_work());
24247 }
24248 _ACEOF
24249 rm -f conftest$ac_exeext
24250 if { (ac_try="$ac_link"
24251 case "(($ac_try" in
24252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253   *) ac_try_echo=$ac_try;;
24254 esac
24255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24256 $as_echo "$ac_try_echo") >&5
24257   (eval "$ac_link") 2>&5
24258   ac_status=$?
24259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24261   { (case "(($ac_try" in
24262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24263   *) ac_try_echo=$ac_try;;
24264 esac
24265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24266 $as_echo "$ac_try_echo") >&5
24267   (eval "$ac_try") 2>&5
24268   ac_status=$?
24269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270   (exit $ac_status); }; }; then
24271   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24272 else
24273   $as_echo "$as_me: program exited with status $ac_status" >&5
24274 $as_echo "$as_me: failed program was:" >&5
24275 sed 's/^/| /' conftest.$ac_ext >&5
24276
24277 fi
24278 rm -rf conftest.dSYM
24279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24280 fi
24281
24282
24283 done
24284 fi
24285
24286 LONG_LONG_INT_FORMAT=''
24287
24288 case $pgac_cv_snprintf_long_long_int_format in
24289   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24290 $as_echo "cannot test (not on host machine)" >&6; };;
24291   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24292 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24293          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24294   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
24295 $as_echo "none" >&6; };;
24296 esac
24297     if test "$LONG_LONG_INT_FORMAT" = ""; then
24298       # Force usage of our own snprintf, since system snprintf is broken
24299       pgac_need_repl_snprintf=yes
24300       LONG_LONG_INT_FORMAT='%lld'
24301     fi
24302   else
24303     # Here if we previously decided we needed to use our own snprintf
24304     LONG_LONG_INT_FORMAT='%lld'
24305   fi
24306   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24307   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24308   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24309 else
24310   # Here if we are not using 'long long int' at all
24311   INT64_FORMAT='"%ld"'
24312   UINT64_FORMAT='"%lu"'
24313 fi
24314
24315
24316 cat >>confdefs.h <<_ACEOF
24317 #define INT64_FORMAT $INT64_FORMAT
24318 _ACEOF
24319
24320
24321
24322 cat >>confdefs.h <<_ACEOF
24323 #define UINT64_FORMAT $UINT64_FORMAT
24324 _ACEOF
24325
24326
24327 # Now we have checked all the reasons to replace snprintf
24328 if test $pgac_need_repl_snprintf = yes; then
24329
24330 cat >>confdefs.h <<\_ACEOF
24331 #define USE_REPL_SNPRINTF 1
24332 _ACEOF
24333
24334   case " $LIBOBJS " in
24335   *" snprintf.$ac_objext "* ) ;;
24336   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24337  ;;
24338 esac
24339
24340 fi
24341
24342 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24343 # The cast to long int works around a bug in the HP C Compiler
24344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24346 # This bug is HP SR number 8606223364.
24347 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24348 $as_echo_n "checking size of void *... " >&6; }
24349 if test "${ac_cv_sizeof_void_p+set}" = set; then
24350   $as_echo_n "(cached) " >&6
24351 else
24352   if test "$cross_compiling" = yes; then
24353   # Depending upon the size, compute the lo and hi bounds.
24354 cat >conftest.$ac_ext <<_ACEOF
24355 /* confdefs.h.  */
24356 _ACEOF
24357 cat confdefs.h >>conftest.$ac_ext
24358 cat >>conftest.$ac_ext <<_ACEOF
24359 /* end confdefs.h.  */
24360 $ac_includes_default
24361 int
24362 main ()
24363 {
24364 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24365 test_array [0] = 0
24366
24367   ;
24368   return 0;
24369 }
24370 _ACEOF
24371 rm -f conftest.$ac_objext
24372 if { (ac_try="$ac_compile"
24373 case "(($ac_try" in
24374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24375   *) ac_try_echo=$ac_try;;
24376 esac
24377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24378 $as_echo "$ac_try_echo") >&5
24379   (eval "$ac_compile") 2>conftest.er1
24380   ac_status=$?
24381   grep -v '^ *+' conftest.er1 >conftest.err
24382   rm -f conftest.er1
24383   cat conftest.err >&5
24384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); } && {
24386          test -z "$ac_c_werror_flag" ||
24387          test ! -s conftest.err
24388        } && test -s conftest.$ac_objext; then
24389   ac_lo=0 ac_mid=0
24390   while :; do
24391     cat >conftest.$ac_ext <<_ACEOF
24392 /* confdefs.h.  */
24393 _ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h.  */
24397 $ac_includes_default
24398 int
24399 main ()
24400 {
24401 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24402 test_array [0] = 0
24403
24404   ;
24405   return 0;
24406 }
24407 _ACEOF
24408 rm -f conftest.$ac_objext
24409 if { (ac_try="$ac_compile"
24410 case "(($ac_try" in
24411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412   *) ac_try_echo=$ac_try;;
24413 esac
24414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24415 $as_echo "$ac_try_echo") >&5
24416   (eval "$ac_compile") 2>conftest.er1
24417   ac_status=$?
24418   grep -v '^ *+' conftest.er1 >conftest.err
24419   rm -f conftest.er1
24420   cat conftest.err >&5
24421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422   (exit $ac_status); } && {
24423          test -z "$ac_c_werror_flag" ||
24424          test ! -s conftest.err
24425        } && test -s conftest.$ac_objext; then
24426   ac_hi=$ac_mid; break
24427 else
24428   $as_echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24430
24431         ac_lo=`expr $ac_mid + 1`
24432                         if test $ac_lo -le $ac_mid; then
24433                           ac_lo= ac_hi=
24434                           break
24435                         fi
24436                         ac_mid=`expr 2 '*' $ac_mid + 1`
24437 fi
24438
24439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24440   done
24441 else
24442   $as_echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24444
24445         cat >conftest.$ac_ext <<_ACEOF
24446 /* confdefs.h.  */
24447 _ACEOF
24448 cat confdefs.h >>conftest.$ac_ext
24449 cat >>conftest.$ac_ext <<_ACEOF
24450 /* end confdefs.h.  */
24451 $ac_includes_default
24452 int
24453 main ()
24454 {
24455 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24456 test_array [0] = 0
24457
24458   ;
24459   return 0;
24460 }
24461 _ACEOF
24462 rm -f conftest.$ac_objext
24463 if { (ac_try="$ac_compile"
24464 case "(($ac_try" in
24465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24466   *) ac_try_echo=$ac_try;;
24467 esac
24468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24469 $as_echo "$ac_try_echo") >&5
24470   (eval "$ac_compile") 2>conftest.er1
24471   ac_status=$?
24472   grep -v '^ *+' conftest.er1 >conftest.err
24473   rm -f conftest.er1
24474   cat conftest.err >&5
24475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); } && {
24477          test -z "$ac_c_werror_flag" ||
24478          test ! -s conftest.err
24479        } && test -s conftest.$ac_objext; then
24480   ac_hi=-1 ac_mid=-1
24481   while :; do
24482     cat >conftest.$ac_ext <<_ACEOF
24483 /* confdefs.h.  */
24484 _ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h.  */
24488 $ac_includes_default
24489 int
24490 main ()
24491 {
24492 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24493 test_array [0] = 0
24494
24495   ;
24496   return 0;
24497 }
24498 _ACEOF
24499 rm -f conftest.$ac_objext
24500 if { (ac_try="$ac_compile"
24501 case "(($ac_try" in
24502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503   *) ac_try_echo=$ac_try;;
24504 esac
24505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24506 $as_echo "$ac_try_echo") >&5
24507   (eval "$ac_compile") 2>conftest.er1
24508   ac_status=$?
24509   grep -v '^ *+' conftest.er1 >conftest.err
24510   rm -f conftest.er1
24511   cat conftest.err >&5
24512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513   (exit $ac_status); } && {
24514          test -z "$ac_c_werror_flag" ||
24515          test ! -s conftest.err
24516        } && test -s conftest.$ac_objext; then
24517   ac_lo=$ac_mid; break
24518 else
24519   $as_echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24521
24522         ac_hi=`expr '(' $ac_mid ')' - 1`
24523                         if test $ac_mid -le $ac_hi; then
24524                           ac_lo= ac_hi=
24525                           break
24526                         fi
24527                         ac_mid=`expr 2 '*' $ac_mid`
24528 fi
24529
24530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24531   done
24532 else
24533   $as_echo "$as_me: failed program was:" >&5
24534 sed 's/^/| /' conftest.$ac_ext >&5
24535
24536         ac_lo= ac_hi=
24537 fi
24538
24539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24540 fi
24541
24542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24543 # Binary search between lo and hi bounds.
24544 while test "x$ac_lo" != "x$ac_hi"; do
24545   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24546   cat >conftest.$ac_ext <<_ACEOF
24547 /* confdefs.h.  */
24548 _ACEOF
24549 cat confdefs.h >>conftest.$ac_ext
24550 cat >>conftest.$ac_ext <<_ACEOF
24551 /* end confdefs.h.  */
24552 $ac_includes_default
24553 int
24554 main ()
24555 {
24556 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24557 test_array [0] = 0
24558
24559   ;
24560   return 0;
24561 }
24562 _ACEOF
24563 rm -f conftest.$ac_objext
24564 if { (ac_try="$ac_compile"
24565 case "(($ac_try" in
24566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567   *) ac_try_echo=$ac_try;;
24568 esac
24569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24570 $as_echo "$ac_try_echo") >&5
24571   (eval "$ac_compile") 2>conftest.er1
24572   ac_status=$?
24573   grep -v '^ *+' conftest.er1 >conftest.err
24574   rm -f conftest.er1
24575   cat conftest.err >&5
24576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); } && {
24578          test -z "$ac_c_werror_flag" ||
24579          test ! -s conftest.err
24580        } && test -s conftest.$ac_objext; then
24581   ac_hi=$ac_mid
24582 else
24583   $as_echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24585
24586         ac_lo=`expr '(' $ac_mid ')' + 1`
24587 fi
24588
24589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590 done
24591 case $ac_lo in
24592 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24593 '') if test "$ac_cv_type_void_p" = yes; then
24594      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24596 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24597 See \`config.log' for more details." >&5
24598 $as_echo "$as_me: error: cannot compute sizeof (void *)
24599 See \`config.log' for more details." >&2;}
24600    { (exit 77); exit 77; }; }; }
24601    else
24602      ac_cv_sizeof_void_p=0
24603    fi ;;
24604 esac
24605 else
24606   cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h.  */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h.  */
24612 $ac_includes_default
24613 static long int longval () { return (long int) (sizeof (void *)); }
24614 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24615 #include <stdio.h>
24616 #include <stdlib.h>
24617 int
24618 main ()
24619 {
24620
24621   FILE *f = fopen ("conftest.val", "w");
24622   if (! f)
24623     return 1;
24624   if (((long int) (sizeof (void *))) < 0)
24625     {
24626       long int i = longval ();
24627       if (i != ((long int) (sizeof (void *))))
24628         return 1;
24629       fprintf (f, "%ld", i);
24630     }
24631   else
24632     {
24633       unsigned long int i = ulongval ();
24634       if (i != ((long int) (sizeof (void *))))
24635         return 1;
24636       fprintf (f, "%lu", i);
24637     }
24638   /* Do not output a trailing newline, as this causes \r\n confusion
24639      on some platforms.  */
24640   return ferror (f) || fclose (f) != 0;
24641
24642   ;
24643   return 0;
24644 }
24645 _ACEOF
24646 rm -f conftest$ac_exeext
24647 if { (ac_try="$ac_link"
24648 case "(($ac_try" in
24649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24650   *) ac_try_echo=$ac_try;;
24651 esac
24652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24653 $as_echo "$ac_try_echo") >&5
24654   (eval "$ac_link") 2>&5
24655   ac_status=$?
24656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24658   { (case "(($ac_try" in
24659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24660   *) ac_try_echo=$ac_try;;
24661 esac
24662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24663 $as_echo "$ac_try_echo") >&5
24664   (eval "$ac_try") 2>&5
24665   ac_status=$?
24666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667   (exit $ac_status); }; }; then
24668   ac_cv_sizeof_void_p=`cat conftest.val`
24669 else
24670   $as_echo "$as_me: program exited with status $ac_status" >&5
24671 $as_echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24673
24674 ( exit $ac_status )
24675 if test "$ac_cv_type_void_p" = yes; then
24676      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24678 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24679 See \`config.log' for more details." >&5
24680 $as_echo "$as_me: error: cannot compute sizeof (void *)
24681 See \`config.log' for more details." >&2;}
24682    { (exit 77); exit 77; }; }; }
24683    else
24684      ac_cv_sizeof_void_p=0
24685    fi
24686 fi
24687 rm -rf conftest.dSYM
24688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24689 fi
24690 rm -f conftest.val
24691 fi
24692 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24693 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24694
24695
24696
24697 cat >>confdefs.h <<_ACEOF
24698 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24699 _ACEOF
24700
24701
24702 # The cast to long int works around a bug in the HP C Compiler
24703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24705 # This bug is HP SR number 8606223364.
24706 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24707 $as_echo_n "checking size of size_t... " >&6; }
24708 if test "${ac_cv_sizeof_size_t+set}" = set; then
24709   $as_echo_n "(cached) " >&6
24710 else
24711   if test "$cross_compiling" = yes; then
24712   # Depending upon the size, compute the lo and hi bounds.
24713 cat >conftest.$ac_ext <<_ACEOF
24714 /* confdefs.h.  */
24715 _ACEOF
24716 cat confdefs.h >>conftest.$ac_ext
24717 cat >>conftest.$ac_ext <<_ACEOF
24718 /* end confdefs.h.  */
24719 $ac_includes_default
24720 int
24721 main ()
24722 {
24723 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24724 test_array [0] = 0
24725
24726   ;
24727   return 0;
24728 }
24729 _ACEOF
24730 rm -f conftest.$ac_objext
24731 if { (ac_try="$ac_compile"
24732 case "(($ac_try" in
24733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734   *) ac_try_echo=$ac_try;;
24735 esac
24736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24737 $as_echo "$ac_try_echo") >&5
24738   (eval "$ac_compile") 2>conftest.er1
24739   ac_status=$?
24740   grep -v '^ *+' conftest.er1 >conftest.err
24741   rm -f conftest.er1
24742   cat conftest.err >&5
24743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744   (exit $ac_status); } && {
24745          test -z "$ac_c_werror_flag" ||
24746          test ! -s conftest.err
24747        } && test -s conftest.$ac_objext; then
24748   ac_lo=0 ac_mid=0
24749   while :; do
24750     cat >conftest.$ac_ext <<_ACEOF
24751 /* confdefs.h.  */
24752 _ACEOF
24753 cat confdefs.h >>conftest.$ac_ext
24754 cat >>conftest.$ac_ext <<_ACEOF
24755 /* end confdefs.h.  */
24756 $ac_includes_default
24757 int
24758 main ()
24759 {
24760 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24761 test_array [0] = 0
24762
24763   ;
24764   return 0;
24765 }
24766 _ACEOF
24767 rm -f conftest.$ac_objext
24768 if { (ac_try="$ac_compile"
24769 case "(($ac_try" in
24770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24771   *) ac_try_echo=$ac_try;;
24772 esac
24773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24774 $as_echo "$ac_try_echo") >&5
24775   (eval "$ac_compile") 2>conftest.er1
24776   ac_status=$?
24777   grep -v '^ *+' conftest.er1 >conftest.err
24778   rm -f conftest.er1
24779   cat conftest.err >&5
24780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781   (exit $ac_status); } && {
24782          test -z "$ac_c_werror_flag" ||
24783          test ! -s conftest.err
24784        } && test -s conftest.$ac_objext; then
24785   ac_hi=$ac_mid; break
24786 else
24787   $as_echo "$as_me: failed program was:" >&5
24788 sed 's/^/| /' conftest.$ac_ext >&5
24789
24790         ac_lo=`expr $ac_mid + 1`
24791                         if test $ac_lo -le $ac_mid; then
24792                           ac_lo= ac_hi=
24793                           break
24794                         fi
24795                         ac_mid=`expr 2 '*' $ac_mid + 1`
24796 fi
24797
24798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24799   done
24800 else
24801   $as_echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24803
24804         cat >conftest.$ac_ext <<_ACEOF
24805 /* confdefs.h.  */
24806 _ACEOF
24807 cat confdefs.h >>conftest.$ac_ext
24808 cat >>conftest.$ac_ext <<_ACEOF
24809 /* end confdefs.h.  */
24810 $ac_includes_default
24811 int
24812 main ()
24813 {
24814 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24815 test_array [0] = 0
24816
24817   ;
24818   return 0;
24819 }
24820 _ACEOF
24821 rm -f conftest.$ac_objext
24822 if { (ac_try="$ac_compile"
24823 case "(($ac_try" in
24824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825   *) ac_try_echo=$ac_try;;
24826 esac
24827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24828 $as_echo "$ac_try_echo") >&5
24829   (eval "$ac_compile") 2>conftest.er1
24830   ac_status=$?
24831   grep -v '^ *+' conftest.er1 >conftest.err
24832   rm -f conftest.er1
24833   cat conftest.err >&5
24834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835   (exit $ac_status); } && {
24836          test -z "$ac_c_werror_flag" ||
24837          test ! -s conftest.err
24838        } && test -s conftest.$ac_objext; then
24839   ac_hi=-1 ac_mid=-1
24840   while :; do
24841     cat >conftest.$ac_ext <<_ACEOF
24842 /* confdefs.h.  */
24843 _ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h.  */
24847 $ac_includes_default
24848 int
24849 main ()
24850 {
24851 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24852 test_array [0] = 0
24853
24854   ;
24855   return 0;
24856 }
24857 _ACEOF
24858 rm -f conftest.$ac_objext
24859 if { (ac_try="$ac_compile"
24860 case "(($ac_try" in
24861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24862   *) ac_try_echo=$ac_try;;
24863 esac
24864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24865 $as_echo "$ac_try_echo") >&5
24866   (eval "$ac_compile") 2>conftest.er1
24867   ac_status=$?
24868   grep -v '^ *+' conftest.er1 >conftest.err
24869   rm -f conftest.er1
24870   cat conftest.err >&5
24871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872   (exit $ac_status); } && {
24873          test -z "$ac_c_werror_flag" ||
24874          test ! -s conftest.err
24875        } && test -s conftest.$ac_objext; then
24876   ac_lo=$ac_mid; break
24877 else
24878   $as_echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24880
24881         ac_hi=`expr '(' $ac_mid ')' - 1`
24882                         if test $ac_mid -le $ac_hi; then
24883                           ac_lo= ac_hi=
24884                           break
24885                         fi
24886                         ac_mid=`expr 2 '*' $ac_mid`
24887 fi
24888
24889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24890   done
24891 else
24892   $as_echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24894
24895         ac_lo= ac_hi=
24896 fi
24897
24898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24899 fi
24900
24901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24902 # Binary search between lo and hi bounds.
24903 while test "x$ac_lo" != "x$ac_hi"; do
24904   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24905   cat >conftest.$ac_ext <<_ACEOF
24906 /* confdefs.h.  */
24907 _ACEOF
24908 cat confdefs.h >>conftest.$ac_ext
24909 cat >>conftest.$ac_ext <<_ACEOF
24910 /* end confdefs.h.  */
24911 $ac_includes_default
24912 int
24913 main ()
24914 {
24915 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24916 test_array [0] = 0
24917
24918   ;
24919   return 0;
24920 }
24921 _ACEOF
24922 rm -f conftest.$ac_objext
24923 if { (ac_try="$ac_compile"
24924 case "(($ac_try" in
24925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926   *) ac_try_echo=$ac_try;;
24927 esac
24928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24929 $as_echo "$ac_try_echo") >&5
24930   (eval "$ac_compile") 2>conftest.er1
24931   ac_status=$?
24932   grep -v '^ *+' conftest.er1 >conftest.err
24933   rm -f conftest.er1
24934   cat conftest.err >&5
24935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); } && {
24937          test -z "$ac_c_werror_flag" ||
24938          test ! -s conftest.err
24939        } && test -s conftest.$ac_objext; then
24940   ac_hi=$ac_mid
24941 else
24942   $as_echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24944
24945         ac_lo=`expr '(' $ac_mid ')' + 1`
24946 fi
24947
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24949 done
24950 case $ac_lo in
24951 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24952 '') if test "$ac_cv_type_size_t" = yes; then
24953      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24955 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24956 See \`config.log' for more details." >&5
24957 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24958 See \`config.log' for more details." >&2;}
24959    { (exit 77); exit 77; }; }; }
24960    else
24961      ac_cv_sizeof_size_t=0
24962    fi ;;
24963 esac
24964 else
24965   cat >conftest.$ac_ext <<_ACEOF
24966 /* confdefs.h.  */
24967 _ACEOF
24968 cat confdefs.h >>conftest.$ac_ext
24969 cat >>conftest.$ac_ext <<_ACEOF
24970 /* end confdefs.h.  */
24971 $ac_includes_default
24972 static long int longval () { return (long int) (sizeof (size_t)); }
24973 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24974 #include <stdio.h>
24975 #include <stdlib.h>
24976 int
24977 main ()
24978 {
24979
24980   FILE *f = fopen ("conftest.val", "w");
24981   if (! f)
24982     return 1;
24983   if (((long int) (sizeof (size_t))) < 0)
24984     {
24985       long int i = longval ();
24986       if (i != ((long int) (sizeof (size_t))))
24987         return 1;
24988       fprintf (f, "%ld", i);
24989     }
24990   else
24991     {
24992       unsigned long int i = ulongval ();
24993       if (i != ((long int) (sizeof (size_t))))
24994         return 1;
24995       fprintf (f, "%lu", i);
24996     }
24997   /* Do not output a trailing newline, as this causes \r\n confusion
24998      on some platforms.  */
24999   return ferror (f) || fclose (f) != 0;
25000
25001   ;
25002   return 0;
25003 }
25004 _ACEOF
25005 rm -f conftest$ac_exeext
25006 if { (ac_try="$ac_link"
25007 case "(($ac_try" in
25008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009   *) ac_try_echo=$ac_try;;
25010 esac
25011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25012 $as_echo "$ac_try_echo") >&5
25013   (eval "$ac_link") 2>&5
25014   ac_status=$?
25015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25017   { (case "(($ac_try" in
25018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25019   *) ac_try_echo=$ac_try;;
25020 esac
25021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25022 $as_echo "$ac_try_echo") >&5
25023   (eval "$ac_try") 2>&5
25024   ac_status=$?
25025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026   (exit $ac_status); }; }; then
25027   ac_cv_sizeof_size_t=`cat conftest.val`
25028 else
25029   $as_echo "$as_me: program exited with status $ac_status" >&5
25030 $as_echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.$ac_ext >&5
25032
25033 ( exit $ac_status )
25034 if test "$ac_cv_type_size_t" = yes; then
25035      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25037 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25038 See \`config.log' for more details." >&5
25039 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25040 See \`config.log' for more details." >&2;}
25041    { (exit 77); exit 77; }; }; }
25042    else
25043      ac_cv_sizeof_size_t=0
25044    fi
25045 fi
25046 rm -rf conftest.dSYM
25047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25048 fi
25049 rm -f conftest.val
25050 fi
25051 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25052 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25053
25054
25055
25056 cat >>confdefs.h <<_ACEOF
25057 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25058 _ACEOF
25059
25060
25061 # The cast to long int works around a bug in the HP C Compiler
25062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25064 # This bug is HP SR number 8606223364.
25065 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25066 $as_echo_n "checking size of long... " >&6; }
25067 if test "${ac_cv_sizeof_long+set}" = set; then
25068   $as_echo_n "(cached) " >&6
25069 else
25070   if test "$cross_compiling" = yes; then
25071   # Depending upon the size, compute the lo and hi bounds.
25072 cat >conftest.$ac_ext <<_ACEOF
25073 /* confdefs.h.  */
25074 _ACEOF
25075 cat confdefs.h >>conftest.$ac_ext
25076 cat >>conftest.$ac_ext <<_ACEOF
25077 /* end confdefs.h.  */
25078 $ac_includes_default
25079 int
25080 main ()
25081 {
25082 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25083 test_array [0] = 0
25084
25085   ;
25086   return 0;
25087 }
25088 _ACEOF
25089 rm -f conftest.$ac_objext
25090 if { (ac_try="$ac_compile"
25091 case "(($ac_try" in
25092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25093   *) ac_try_echo=$ac_try;;
25094 esac
25095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25096 $as_echo "$ac_try_echo") >&5
25097   (eval "$ac_compile") 2>conftest.er1
25098   ac_status=$?
25099   grep -v '^ *+' conftest.er1 >conftest.err
25100   rm -f conftest.er1
25101   cat conftest.err >&5
25102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103   (exit $ac_status); } && {
25104          test -z "$ac_c_werror_flag" ||
25105          test ! -s conftest.err
25106        } && test -s conftest.$ac_objext; then
25107   ac_lo=0 ac_mid=0
25108   while :; do
25109     cat >conftest.$ac_ext <<_ACEOF
25110 /* confdefs.h.  */
25111 _ACEOF
25112 cat confdefs.h >>conftest.$ac_ext
25113 cat >>conftest.$ac_ext <<_ACEOF
25114 /* end confdefs.h.  */
25115 $ac_includes_default
25116 int
25117 main ()
25118 {
25119 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25120 test_array [0] = 0
25121
25122   ;
25123   return 0;
25124 }
25125 _ACEOF
25126 rm -f conftest.$ac_objext
25127 if { (ac_try="$ac_compile"
25128 case "(($ac_try" in
25129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25130   *) ac_try_echo=$ac_try;;
25131 esac
25132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25133 $as_echo "$ac_try_echo") >&5
25134   (eval "$ac_compile") 2>conftest.er1
25135   ac_status=$?
25136   grep -v '^ *+' conftest.er1 >conftest.err
25137   rm -f conftest.er1
25138   cat conftest.err >&5
25139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140   (exit $ac_status); } && {
25141          test -z "$ac_c_werror_flag" ||
25142          test ! -s conftest.err
25143        } && test -s conftest.$ac_objext; then
25144   ac_hi=$ac_mid; break
25145 else
25146   $as_echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25148
25149         ac_lo=`expr $ac_mid + 1`
25150                         if test $ac_lo -le $ac_mid; then
25151                           ac_lo= ac_hi=
25152                           break
25153                         fi
25154                         ac_mid=`expr 2 '*' $ac_mid + 1`
25155 fi
25156
25157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25158   done
25159 else
25160   $as_echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25162
25163         cat >conftest.$ac_ext <<_ACEOF
25164 /* confdefs.h.  */
25165 _ACEOF
25166 cat confdefs.h >>conftest.$ac_ext
25167 cat >>conftest.$ac_ext <<_ACEOF
25168 /* end confdefs.h.  */
25169 $ac_includes_default
25170 int
25171 main ()
25172 {
25173 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25174 test_array [0] = 0
25175
25176   ;
25177   return 0;
25178 }
25179 _ACEOF
25180 rm -f conftest.$ac_objext
25181 if { (ac_try="$ac_compile"
25182 case "(($ac_try" in
25183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184   *) ac_try_echo=$ac_try;;
25185 esac
25186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25187 $as_echo "$ac_try_echo") >&5
25188   (eval "$ac_compile") 2>conftest.er1
25189   ac_status=$?
25190   grep -v '^ *+' conftest.er1 >conftest.err
25191   rm -f conftest.er1
25192   cat conftest.err >&5
25193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194   (exit $ac_status); } && {
25195          test -z "$ac_c_werror_flag" ||
25196          test ! -s conftest.err
25197        } && test -s conftest.$ac_objext; then
25198   ac_hi=-1 ac_mid=-1
25199   while :; do
25200     cat >conftest.$ac_ext <<_ACEOF
25201 /* confdefs.h.  */
25202 _ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h.  */
25206 $ac_includes_default
25207 int
25208 main ()
25209 {
25210 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25211 test_array [0] = 0
25212
25213   ;
25214   return 0;
25215 }
25216 _ACEOF
25217 rm -f conftest.$ac_objext
25218 if { (ac_try="$ac_compile"
25219 case "(($ac_try" in
25220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221   *) ac_try_echo=$ac_try;;
25222 esac
25223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25224 $as_echo "$ac_try_echo") >&5
25225   (eval "$ac_compile") 2>conftest.er1
25226   ac_status=$?
25227   grep -v '^ *+' conftest.er1 >conftest.err
25228   rm -f conftest.er1
25229   cat conftest.err >&5
25230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231   (exit $ac_status); } && {
25232          test -z "$ac_c_werror_flag" ||
25233          test ! -s conftest.err
25234        } && test -s conftest.$ac_objext; then
25235   ac_lo=$ac_mid; break
25236 else
25237   $as_echo "$as_me: failed program was:" >&5
25238 sed 's/^/| /' conftest.$ac_ext >&5
25239
25240         ac_hi=`expr '(' $ac_mid ')' - 1`
25241                         if test $ac_mid -le $ac_hi; then
25242                           ac_lo= ac_hi=
25243                           break
25244                         fi
25245                         ac_mid=`expr 2 '*' $ac_mid`
25246 fi
25247
25248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25249   done
25250 else
25251   $as_echo "$as_me: failed program was:" >&5
25252 sed 's/^/| /' conftest.$ac_ext >&5
25253
25254         ac_lo= ac_hi=
25255 fi
25256
25257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25258 fi
25259
25260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25261 # Binary search between lo and hi bounds.
25262 while test "x$ac_lo" != "x$ac_hi"; do
25263   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25264   cat >conftest.$ac_ext <<_ACEOF
25265 /* confdefs.h.  */
25266 _ACEOF
25267 cat confdefs.h >>conftest.$ac_ext
25268 cat >>conftest.$ac_ext <<_ACEOF
25269 /* end confdefs.h.  */
25270 $ac_includes_default
25271 int
25272 main ()
25273 {
25274 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25275 test_array [0] = 0
25276
25277   ;
25278   return 0;
25279 }
25280 _ACEOF
25281 rm -f conftest.$ac_objext
25282 if { (ac_try="$ac_compile"
25283 case "(($ac_try" in
25284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25285   *) ac_try_echo=$ac_try;;
25286 esac
25287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25288 $as_echo "$ac_try_echo") >&5
25289   (eval "$ac_compile") 2>conftest.er1
25290   ac_status=$?
25291   grep -v '^ *+' conftest.er1 >conftest.err
25292   rm -f conftest.er1
25293   cat conftest.err >&5
25294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295   (exit $ac_status); } && {
25296          test -z "$ac_c_werror_flag" ||
25297          test ! -s conftest.err
25298        } && test -s conftest.$ac_objext; then
25299   ac_hi=$ac_mid
25300 else
25301   $as_echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.$ac_ext >&5
25303
25304         ac_lo=`expr '(' $ac_mid ')' + 1`
25305 fi
25306
25307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25308 done
25309 case $ac_lo in
25310 ?*) ac_cv_sizeof_long=$ac_lo;;
25311 '') if test "$ac_cv_type_long" = yes; then
25312      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25314 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25315 See \`config.log' for more details." >&5
25316 $as_echo "$as_me: error: cannot compute sizeof (long)
25317 See \`config.log' for more details." >&2;}
25318    { (exit 77); exit 77; }; }; }
25319    else
25320      ac_cv_sizeof_long=0
25321    fi ;;
25322 esac
25323 else
25324   cat >conftest.$ac_ext <<_ACEOF
25325 /* confdefs.h.  */
25326 _ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h.  */
25330 $ac_includes_default
25331 static long int longval () { return (long int) (sizeof (long)); }
25332 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25333 #include <stdio.h>
25334 #include <stdlib.h>
25335 int
25336 main ()
25337 {
25338
25339   FILE *f = fopen ("conftest.val", "w");
25340   if (! f)
25341     return 1;
25342   if (((long int) (sizeof (long))) < 0)
25343     {
25344       long int i = longval ();
25345       if (i != ((long int) (sizeof (long))))
25346         return 1;
25347       fprintf (f, "%ld", i);
25348     }
25349   else
25350     {
25351       unsigned long int i = ulongval ();
25352       if (i != ((long int) (sizeof (long))))
25353         return 1;
25354       fprintf (f, "%lu", i);
25355     }
25356   /* Do not output a trailing newline, as this causes \r\n confusion
25357      on some platforms.  */
25358   return ferror (f) || fclose (f) != 0;
25359
25360   ;
25361   return 0;
25362 }
25363 _ACEOF
25364 rm -f conftest$ac_exeext
25365 if { (ac_try="$ac_link"
25366 case "(($ac_try" in
25367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25368   *) ac_try_echo=$ac_try;;
25369 esac
25370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25371 $as_echo "$ac_try_echo") >&5
25372   (eval "$ac_link") 2>&5
25373   ac_status=$?
25374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25376   { (case "(($ac_try" in
25377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25378   *) ac_try_echo=$ac_try;;
25379 esac
25380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25381 $as_echo "$ac_try_echo") >&5
25382   (eval "$ac_try") 2>&5
25383   ac_status=$?
25384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385   (exit $ac_status); }; }; then
25386   ac_cv_sizeof_long=`cat conftest.val`
25387 else
25388   $as_echo "$as_me: program exited with status $ac_status" >&5
25389 $as_echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25391
25392 ( exit $ac_status )
25393 if test "$ac_cv_type_long" = yes; then
25394      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25396 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25397 See \`config.log' for more details." >&5
25398 $as_echo "$as_me: error: cannot compute sizeof (long)
25399 See \`config.log' for more details." >&2;}
25400    { (exit 77); exit 77; }; }; }
25401    else
25402      ac_cv_sizeof_long=0
25403    fi
25404 fi
25405 rm -rf conftest.dSYM
25406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25407 fi
25408 rm -f conftest.val
25409 fi
25410 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25411 $as_echo "$ac_cv_sizeof_long" >&6; }
25412
25413
25414
25415 cat >>confdefs.h <<_ACEOF
25416 #define SIZEOF_LONG $ac_cv_sizeof_long
25417 _ACEOF
25418
25419
25420
25421 # Decide whether float4 is passed by value: user-selectable, enabled by default
25422 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25423 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25424
25425
25426 # Check whether --enable-float4-byval was given.
25427 if test "${enable_float4_byval+set}" = set; then
25428   enableval=$enable_float4_byval;
25429   case $enableval in
25430     yes)
25431
25432 cat >>confdefs.h <<\_ACEOF
25433 #define USE_FLOAT4_BYVAL 1
25434 _ACEOF
25435
25436                float4passbyval=true
25437       ;;
25438     no)
25439       float4passbyval=false
25440       ;;
25441     *)
25442       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25443 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25444    { (exit 1); exit 1; }; }
25445       ;;
25446   esac
25447
25448 else
25449   enable_float4_byval=yes
25450
25451 cat >>confdefs.h <<\_ACEOF
25452 #define USE_FLOAT4_BYVAL 1
25453 _ACEOF
25454
25455                float4passbyval=true
25456 fi
25457
25458
25459 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25460 $as_echo "$enable_float4_byval" >&6; }
25461
25462 cat >>confdefs.h <<_ACEOF
25463 #define FLOAT4PASSBYVAL $float4passbyval
25464 _ACEOF
25465
25466
25467 # Decide whether float8 is passed by value.
25468 # Note: this setting also controls int8 and related types such as timestamp.
25469 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25470 # If not, trying to select it is an error.
25471 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25472 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25473 if test $ac_cv_sizeof_void_p -ge 8 ; then
25474
25475
25476 # Check whether --enable-float8-byval was given.
25477 if test "${enable_float8_byval+set}" = set; then
25478   enableval=$enable_float8_byval;
25479   case $enableval in
25480     yes)
25481       :
25482       ;;
25483     no)
25484       :
25485       ;;
25486     *)
25487       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25488 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25489    { (exit 1); exit 1; }; }
25490       ;;
25491   esac
25492
25493 else
25494   enable_float8_byval=yes
25495
25496 fi
25497
25498
25499 else
25500
25501
25502 # Check whether --enable-float8-byval was given.
25503 if test "${enable_float8_byval+set}" = set; then
25504   enableval=$enable_float8_byval;
25505   case $enableval in
25506     yes)
25507       :
25508       ;;
25509     no)
25510       :
25511       ;;
25512     *)
25513       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25514 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25515    { (exit 1); exit 1; }; }
25516       ;;
25517   esac
25518
25519 else
25520   enable_float8_byval=no
25521
25522 fi
25523
25524
25525   if test "$enable_float8_byval" = yes ; then
25526     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25527 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25528    { (exit 1); exit 1; }; }
25529   fi
25530 fi
25531 if test "$enable_float8_byval" = yes ; then
25532
25533 cat >>confdefs.h <<\_ACEOF
25534 #define USE_FLOAT8_BYVAL 1
25535 _ACEOF
25536
25537   float8passbyval=true
25538 else
25539   float8passbyval=false
25540 fi
25541 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25542 $as_echo "$enable_float8_byval" >&6; }
25543
25544 cat >>confdefs.h <<_ACEOF
25545 #define FLOAT8PASSBYVAL $float8passbyval
25546 _ACEOF
25547
25548
25549 # Determine memory alignment requirements for the basic C data types.
25550
25551 # The cast to long int works around a bug in the HP C Compiler,
25552 # see AC_CHECK_SIZEOF for more information.
25553 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25554 $as_echo_n "checking alignment of short... " >&6; }
25555 if test "${ac_cv_alignof_short+set}" = set; then
25556   $as_echo_n "(cached) " >&6
25557 else
25558   if test "$cross_compiling" = yes; then
25559   # Depending upon the size, compute the lo and hi bounds.
25560 cat >conftest.$ac_ext <<_ACEOF
25561 /* confdefs.h.  */
25562 _ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h.  */
25566 $ac_includes_default
25567 #ifndef offsetof
25568 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25569 #endif
25570 typedef struct { char x; short y; } ac__type_alignof_;
25571 int
25572 main ()
25573 {
25574 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25575 test_array [0] = 0
25576
25577   ;
25578   return 0;
25579 }
25580 _ACEOF
25581 rm -f conftest.$ac_objext
25582 if { (ac_try="$ac_compile"
25583 case "(($ac_try" in
25584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25585   *) ac_try_echo=$ac_try;;
25586 esac
25587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25588 $as_echo "$ac_try_echo") >&5
25589   (eval "$ac_compile") 2>conftest.er1
25590   ac_status=$?
25591   grep -v '^ *+' conftest.er1 >conftest.err
25592   rm -f conftest.er1
25593   cat conftest.err >&5
25594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595   (exit $ac_status); } && {
25596          test -z "$ac_c_werror_flag" ||
25597          test ! -s conftest.err
25598        } && test -s conftest.$ac_objext; then
25599   ac_lo=0 ac_mid=0
25600   while :; do
25601     cat >conftest.$ac_ext <<_ACEOF
25602 /* confdefs.h.  */
25603 _ACEOF
25604 cat confdefs.h >>conftest.$ac_ext
25605 cat >>conftest.$ac_ext <<_ACEOF
25606 /* end confdefs.h.  */
25607 $ac_includes_default
25608 #ifndef offsetof
25609 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25610 #endif
25611 typedef struct { char x; short y; } ac__type_alignof_;
25612 int
25613 main ()
25614 {
25615 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25616 test_array [0] = 0
25617
25618   ;
25619   return 0;
25620 }
25621 _ACEOF
25622 rm -f conftest.$ac_objext
25623 if { (ac_try="$ac_compile"
25624 case "(($ac_try" in
25625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25626   *) ac_try_echo=$ac_try;;
25627 esac
25628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25629 $as_echo "$ac_try_echo") >&5
25630   (eval "$ac_compile") 2>conftest.er1
25631   ac_status=$?
25632   grep -v '^ *+' conftest.er1 >conftest.err
25633   rm -f conftest.er1
25634   cat conftest.err >&5
25635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636   (exit $ac_status); } && {
25637          test -z "$ac_c_werror_flag" ||
25638          test ! -s conftest.err
25639        } && test -s conftest.$ac_objext; then
25640   ac_hi=$ac_mid; break
25641 else
25642   $as_echo "$as_me: failed program was:" >&5
25643 sed 's/^/| /' conftest.$ac_ext >&5
25644
25645         ac_lo=`expr $ac_mid + 1`
25646                         if test $ac_lo -le $ac_mid; then
25647                           ac_lo= ac_hi=
25648                           break
25649                         fi
25650                         ac_mid=`expr 2 '*' $ac_mid + 1`
25651 fi
25652
25653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25654   done
25655 else
25656   $as_echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.$ac_ext >&5
25658
25659         cat >conftest.$ac_ext <<_ACEOF
25660 /* confdefs.h.  */
25661 _ACEOF
25662 cat confdefs.h >>conftest.$ac_ext
25663 cat >>conftest.$ac_ext <<_ACEOF
25664 /* end confdefs.h.  */
25665 $ac_includes_default
25666 #ifndef offsetof
25667 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25668 #endif
25669 typedef struct { char x; short y; } ac__type_alignof_;
25670 int
25671 main ()
25672 {
25673 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25674 test_array [0] = 0
25675
25676   ;
25677   return 0;
25678 }
25679 _ACEOF
25680 rm -f conftest.$ac_objext
25681 if { (ac_try="$ac_compile"
25682 case "(($ac_try" in
25683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25684   *) ac_try_echo=$ac_try;;
25685 esac
25686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25687 $as_echo "$ac_try_echo") >&5
25688   (eval "$ac_compile") 2>conftest.er1
25689   ac_status=$?
25690   grep -v '^ *+' conftest.er1 >conftest.err
25691   rm -f conftest.er1
25692   cat conftest.err >&5
25693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694   (exit $ac_status); } && {
25695          test -z "$ac_c_werror_flag" ||
25696          test ! -s conftest.err
25697        } && test -s conftest.$ac_objext; then
25698   ac_hi=-1 ac_mid=-1
25699   while :; do
25700     cat >conftest.$ac_ext <<_ACEOF
25701 /* confdefs.h.  */
25702 _ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h.  */
25706 $ac_includes_default
25707 #ifndef offsetof
25708 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25709 #endif
25710 typedef struct { char x; short y; } ac__type_alignof_;
25711 int
25712 main ()
25713 {
25714 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25715 test_array [0] = 0
25716
25717   ;
25718   return 0;
25719 }
25720 _ACEOF
25721 rm -f conftest.$ac_objext
25722 if { (ac_try="$ac_compile"
25723 case "(($ac_try" in
25724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725   *) ac_try_echo=$ac_try;;
25726 esac
25727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25728 $as_echo "$ac_try_echo") >&5
25729   (eval "$ac_compile") 2>conftest.er1
25730   ac_status=$?
25731   grep -v '^ *+' conftest.er1 >conftest.err
25732   rm -f conftest.er1
25733   cat conftest.err >&5
25734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735   (exit $ac_status); } && {
25736          test -z "$ac_c_werror_flag" ||
25737          test ! -s conftest.err
25738        } && test -s conftest.$ac_objext; then
25739   ac_lo=$ac_mid; break
25740 else
25741   $as_echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25743
25744         ac_hi=`expr '(' $ac_mid ')' - 1`
25745                         if test $ac_mid -le $ac_hi; then
25746                           ac_lo= ac_hi=
25747                           break
25748                         fi
25749                         ac_mid=`expr 2 '*' $ac_mid`
25750 fi
25751
25752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25753   done
25754 else
25755   $as_echo "$as_me: failed program was:" >&5
25756 sed 's/^/| /' conftest.$ac_ext >&5
25757
25758         ac_lo= ac_hi=
25759 fi
25760
25761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25762 fi
25763
25764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25765 # Binary search between lo and hi bounds.
25766 while test "x$ac_lo" != "x$ac_hi"; do
25767   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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)) <= $ac_mid)];
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_hi=$ac_mid
25808 else
25809   $as_echo "$as_me: failed program was:" >&5
25810 sed 's/^/| /' conftest.$ac_ext >&5
25811
25812         ac_lo=`expr '(' $ac_mid ')' + 1`
25813 fi
25814
25815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25816 done
25817 case $ac_lo in
25818 ?*) ac_cv_alignof_short=$ac_lo;;
25819 '') if test "$ac_cv_type_short" = yes; then
25820      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25822 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25823 See \`config.log' for more details." >&5
25824 $as_echo "$as_me: error: cannot compute alignment of short
25825 See \`config.log' for more details." >&2;}
25826    { (exit 77); exit 77; }; }; }
25827    else
25828      ac_cv_alignof_short=0
25829    fi ;;
25830 esac
25831 else
25832   cat >conftest.$ac_ext <<_ACEOF
25833 /* confdefs.h.  */
25834 _ACEOF
25835 cat confdefs.h >>conftest.$ac_ext
25836 cat >>conftest.$ac_ext <<_ACEOF
25837 /* end confdefs.h.  */
25838 $ac_includes_default
25839 #ifndef offsetof
25840 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25841 #endif
25842 typedef struct { char x; short y; } ac__type_alignof_;
25843 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25844 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25845 #include <stdio.h>
25846 #include <stdlib.h>
25847 int
25848 main ()
25849 {
25850
25851   FILE *f = fopen ("conftest.val", "w");
25852   if (! f)
25853     return 1;
25854   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25855     {
25856       long int i = longval ();
25857       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25858         return 1;
25859       fprintf (f, "%ld", i);
25860     }
25861   else
25862     {
25863       unsigned long int i = ulongval ();
25864       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25865         return 1;
25866       fprintf (f, "%lu", i);
25867     }
25868   /* Do not output a trailing newline, as this causes \r\n confusion
25869      on some platforms.  */
25870   return ferror (f) || fclose (f) != 0;
25871
25872   ;
25873   return 0;
25874 }
25875 _ACEOF
25876 rm -f conftest$ac_exeext
25877 if { (ac_try="$ac_link"
25878 case "(($ac_try" in
25879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25880   *) ac_try_echo=$ac_try;;
25881 esac
25882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25883 $as_echo "$ac_try_echo") >&5
25884   (eval "$ac_link") 2>&5
25885   ac_status=$?
25886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25888   { (case "(($ac_try" in
25889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25890   *) ac_try_echo=$ac_try;;
25891 esac
25892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25893 $as_echo "$ac_try_echo") >&5
25894   (eval "$ac_try") 2>&5
25895   ac_status=$?
25896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897   (exit $ac_status); }; }; then
25898   ac_cv_alignof_short=`cat conftest.val`
25899 else
25900   $as_echo "$as_me: program exited with status $ac_status" >&5
25901 $as_echo "$as_me: failed program was:" >&5
25902 sed 's/^/| /' conftest.$ac_ext >&5
25903
25904 ( exit $ac_status )
25905 if test "$ac_cv_type_short" = yes; then
25906      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25908 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25909 See \`config.log' for more details." >&5
25910 $as_echo "$as_me: error: cannot compute alignment of short
25911 See \`config.log' for more details." >&2;}
25912    { (exit 77); exit 77; }; }; }
25913    else
25914      ac_cv_alignof_short=0
25915    fi
25916 fi
25917 rm -rf conftest.dSYM
25918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25919 fi
25920 rm -f conftest.val
25921 fi
25922 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25923 $as_echo "$ac_cv_alignof_short" >&6; }
25924
25925
25926
25927 cat >>confdefs.h <<_ACEOF
25928 #define ALIGNOF_SHORT $ac_cv_alignof_short
25929 _ACEOF
25930
25931
25932 # The cast to long int works around a bug in the HP C Compiler,
25933 # see AC_CHECK_SIZEOF for more information.
25934 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25935 $as_echo_n "checking alignment of int... " >&6; }
25936 if test "${ac_cv_alignof_int+set}" = set; then
25937   $as_echo_n "(cached) " >&6
25938 else
25939   if test "$cross_compiling" = yes; then
25940   # Depending upon the size, compute the lo and hi bounds.
25941 cat >conftest.$ac_ext <<_ACEOF
25942 /* confdefs.h.  */
25943 _ACEOF
25944 cat confdefs.h >>conftest.$ac_ext
25945 cat >>conftest.$ac_ext <<_ACEOF
25946 /* end confdefs.h.  */
25947 $ac_includes_default
25948 #ifndef offsetof
25949 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25950 #endif
25951 typedef struct { char x; int y; } ac__type_alignof_;
25952 int
25953 main ()
25954 {
25955 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25956 test_array [0] = 0
25957
25958   ;
25959   return 0;
25960 }
25961 _ACEOF
25962 rm -f conftest.$ac_objext
25963 if { (ac_try="$ac_compile"
25964 case "(($ac_try" in
25965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25966   *) ac_try_echo=$ac_try;;
25967 esac
25968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25969 $as_echo "$ac_try_echo") >&5
25970   (eval "$ac_compile") 2>conftest.er1
25971   ac_status=$?
25972   grep -v '^ *+' conftest.er1 >conftest.err
25973   rm -f conftest.er1
25974   cat conftest.err >&5
25975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); } && {
25977          test -z "$ac_c_werror_flag" ||
25978          test ! -s conftest.err
25979        } && test -s conftest.$ac_objext; then
25980   ac_lo=0 ac_mid=0
25981   while :; do
25982     cat >conftest.$ac_ext <<_ACEOF
25983 /* confdefs.h.  */
25984 _ACEOF
25985 cat confdefs.h >>conftest.$ac_ext
25986 cat >>conftest.$ac_ext <<_ACEOF
25987 /* end confdefs.h.  */
25988 $ac_includes_default
25989 #ifndef offsetof
25990 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25991 #endif
25992 typedef struct { char x; int y; } ac__type_alignof_;
25993 int
25994 main ()
25995 {
25996 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25997 test_array [0] = 0
25998
25999   ;
26000   return 0;
26001 }
26002 _ACEOF
26003 rm -f conftest.$ac_objext
26004 if { (ac_try="$ac_compile"
26005 case "(($ac_try" in
26006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26007   *) ac_try_echo=$ac_try;;
26008 esac
26009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26010 $as_echo "$ac_try_echo") >&5
26011   (eval "$ac_compile") 2>conftest.er1
26012   ac_status=$?
26013   grep -v '^ *+' conftest.er1 >conftest.err
26014   rm -f conftest.er1
26015   cat conftest.err >&5
26016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); } && {
26018          test -z "$ac_c_werror_flag" ||
26019          test ! -s conftest.err
26020        } && test -s conftest.$ac_objext; then
26021   ac_hi=$ac_mid; break
26022 else
26023   $as_echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26025
26026         ac_lo=`expr $ac_mid + 1`
26027                         if test $ac_lo -le $ac_mid; then
26028                           ac_lo= ac_hi=
26029                           break
26030                         fi
26031                         ac_mid=`expr 2 '*' $ac_mid + 1`
26032 fi
26033
26034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26035   done
26036 else
26037   $as_echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26039
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; int y; } ac__type_alignof_;
26051 int
26052 main ()
26053 {
26054 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26055 test_array [0] = 0
26056
26057   ;
26058   return 0;
26059 }
26060 _ACEOF
26061 rm -f conftest.$ac_objext
26062 if { (ac_try="$ac_compile"
26063 case "(($ac_try" in
26064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26065   *) ac_try_echo=$ac_try;;
26066 esac
26067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26068 $as_echo "$ac_try_echo") >&5
26069   (eval "$ac_compile") 2>conftest.er1
26070   ac_status=$?
26071   grep -v '^ *+' conftest.er1 >conftest.err
26072   rm -f conftest.er1
26073   cat conftest.err >&5
26074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075   (exit $ac_status); } && {
26076          test -z "$ac_c_werror_flag" ||
26077          test ! -s conftest.err
26078        } && test -s conftest.$ac_objext; then
26079   ac_hi=-1 ac_mid=-1
26080   while :; do
26081     cat >conftest.$ac_ext <<_ACEOF
26082 /* confdefs.h.  */
26083 _ACEOF
26084 cat confdefs.h >>conftest.$ac_ext
26085 cat >>conftest.$ac_ext <<_ACEOF
26086 /* end confdefs.h.  */
26087 $ac_includes_default
26088 #ifndef offsetof
26089 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26090 #endif
26091 typedef struct { char x; int y; } ac__type_alignof_;
26092 int
26093 main ()
26094 {
26095 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26096 test_array [0] = 0
26097
26098   ;
26099   return 0;
26100 }
26101 _ACEOF
26102 rm -f conftest.$ac_objext
26103 if { (ac_try="$ac_compile"
26104 case "(($ac_try" in
26105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106   *) ac_try_echo=$ac_try;;
26107 esac
26108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26109 $as_echo "$ac_try_echo") >&5
26110   (eval "$ac_compile") 2>conftest.er1
26111   ac_status=$?
26112   grep -v '^ *+' conftest.er1 >conftest.err
26113   rm -f conftest.er1
26114   cat conftest.err >&5
26115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116   (exit $ac_status); } && {
26117          test -z "$ac_c_werror_flag" ||
26118          test ! -s conftest.err
26119        } && test -s conftest.$ac_objext; then
26120   ac_lo=$ac_mid; break
26121 else
26122   $as_echo "$as_me: failed program was:" >&5
26123 sed 's/^/| /' conftest.$ac_ext >&5
26124
26125         ac_hi=`expr '(' $ac_mid ')' - 1`
26126                         if test $ac_mid -le $ac_hi; then
26127                           ac_lo= ac_hi=
26128                           break
26129                         fi
26130                         ac_mid=`expr 2 '*' $ac_mid`
26131 fi
26132
26133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26134   done
26135 else
26136   $as_echo "$as_me: failed program was:" >&5
26137 sed 's/^/| /' conftest.$ac_ext >&5
26138
26139         ac_lo= ac_hi=
26140 fi
26141
26142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26143 fi
26144
26145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26146 # Binary search between lo and hi bounds.
26147 while test "x$ac_lo" != "x$ac_hi"; do
26148   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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)) <= $ac_mid)];
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_hi=$ac_mid
26189 else
26190   $as_echo "$as_me: failed program was:" >&5
26191 sed 's/^/| /' conftest.$ac_ext >&5
26192
26193         ac_lo=`expr '(' $ac_mid ')' + 1`
26194 fi
26195
26196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26197 done
26198 case $ac_lo in
26199 ?*) ac_cv_alignof_int=$ac_lo;;
26200 '') if test "$ac_cv_type_int" = yes; then
26201      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26203 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26204 See \`config.log' for more details." >&5
26205 $as_echo "$as_me: error: cannot compute alignment of int
26206 See \`config.log' for more details." >&2;}
26207    { (exit 77); exit 77; }; }; }
26208    else
26209      ac_cv_alignof_int=0
26210    fi ;;
26211 esac
26212 else
26213   cat >conftest.$ac_ext <<_ACEOF
26214 /* confdefs.h.  */
26215 _ACEOF
26216 cat confdefs.h >>conftest.$ac_ext
26217 cat >>conftest.$ac_ext <<_ACEOF
26218 /* end confdefs.h.  */
26219 $ac_includes_default
26220 #ifndef offsetof
26221 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26222 #endif
26223 typedef struct { char x; int y; } ac__type_alignof_;
26224 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26225 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26226 #include <stdio.h>
26227 #include <stdlib.h>
26228 int
26229 main ()
26230 {
26231
26232   FILE *f = fopen ("conftest.val", "w");
26233   if (! f)
26234     return 1;
26235   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26236     {
26237       long int i = longval ();
26238       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26239         return 1;
26240       fprintf (f, "%ld", i);
26241     }
26242   else
26243     {
26244       unsigned long int i = ulongval ();
26245       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26246         return 1;
26247       fprintf (f, "%lu", i);
26248     }
26249   /* Do not output a trailing newline, as this causes \r\n confusion
26250      on some platforms.  */
26251   return ferror (f) || fclose (f) != 0;
26252
26253   ;
26254   return 0;
26255 }
26256 _ACEOF
26257 rm -f conftest$ac_exeext
26258 if { (ac_try="$ac_link"
26259 case "(($ac_try" in
26260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261   *) ac_try_echo=$ac_try;;
26262 esac
26263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26264 $as_echo "$ac_try_echo") >&5
26265   (eval "$ac_link") 2>&5
26266   ac_status=$?
26267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26269   { (case "(($ac_try" in
26270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26271   *) ac_try_echo=$ac_try;;
26272 esac
26273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26274 $as_echo "$ac_try_echo") >&5
26275   (eval "$ac_try") 2>&5
26276   ac_status=$?
26277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278   (exit $ac_status); }; }; then
26279   ac_cv_alignof_int=`cat conftest.val`
26280 else
26281   $as_echo "$as_me: program exited with status $ac_status" >&5
26282 $as_echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26284
26285 ( exit $ac_status )
26286 if test "$ac_cv_type_int" = yes; then
26287      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26289 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26290 See \`config.log' for more details." >&5
26291 $as_echo "$as_me: error: cannot compute alignment of int
26292 See \`config.log' for more details." >&2;}
26293    { (exit 77); exit 77; }; }; }
26294    else
26295      ac_cv_alignof_int=0
26296    fi
26297 fi
26298 rm -rf conftest.dSYM
26299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26300 fi
26301 rm -f conftest.val
26302 fi
26303 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26304 $as_echo "$ac_cv_alignof_int" >&6; }
26305
26306
26307
26308 cat >>confdefs.h <<_ACEOF
26309 #define ALIGNOF_INT $ac_cv_alignof_int
26310 _ACEOF
26311
26312
26313 # The cast to long int works around a bug in the HP C Compiler,
26314 # see AC_CHECK_SIZEOF for more information.
26315 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26316 $as_echo_n "checking alignment of long... " >&6; }
26317 if test "${ac_cv_alignof_long+set}" = set; then
26318   $as_echo_n "(cached) " >&6
26319 else
26320   if test "$cross_compiling" = yes; then
26321   # Depending upon the size, compute the lo and hi bounds.
26322 cat >conftest.$ac_ext <<_ACEOF
26323 /* confdefs.h.  */
26324 _ACEOF
26325 cat confdefs.h >>conftest.$ac_ext
26326 cat >>conftest.$ac_ext <<_ACEOF
26327 /* end confdefs.h.  */
26328 $ac_includes_default
26329 #ifndef offsetof
26330 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26331 #endif
26332 typedef struct { char x; long y; } ac__type_alignof_;
26333 int
26334 main ()
26335 {
26336 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26337 test_array [0] = 0
26338
26339   ;
26340   return 0;
26341 }
26342 _ACEOF
26343 rm -f conftest.$ac_objext
26344 if { (ac_try="$ac_compile"
26345 case "(($ac_try" in
26346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347   *) ac_try_echo=$ac_try;;
26348 esac
26349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26350 $as_echo "$ac_try_echo") >&5
26351   (eval "$ac_compile") 2>conftest.er1
26352   ac_status=$?
26353   grep -v '^ *+' conftest.er1 >conftest.err
26354   rm -f conftest.er1
26355   cat conftest.err >&5
26356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357   (exit $ac_status); } && {
26358          test -z "$ac_c_werror_flag" ||
26359          test ! -s conftest.err
26360        } && test -s conftest.$ac_objext; then
26361   ac_lo=0 ac_mid=0
26362   while :; do
26363     cat >conftest.$ac_ext <<_ACEOF
26364 /* confdefs.h.  */
26365 _ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h.  */
26369 $ac_includes_default
26370 #ifndef offsetof
26371 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26372 #endif
26373 typedef struct { char x; long y; } ac__type_alignof_;
26374 int
26375 main ()
26376 {
26377 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26378 test_array [0] = 0
26379
26380   ;
26381   return 0;
26382 }
26383 _ACEOF
26384 rm -f conftest.$ac_objext
26385 if { (ac_try="$ac_compile"
26386 case "(($ac_try" in
26387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26388   *) ac_try_echo=$ac_try;;
26389 esac
26390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26391 $as_echo "$ac_try_echo") >&5
26392   (eval "$ac_compile") 2>conftest.er1
26393   ac_status=$?
26394   grep -v '^ *+' conftest.er1 >conftest.err
26395   rm -f conftest.er1
26396   cat conftest.err >&5
26397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398   (exit $ac_status); } && {
26399          test -z "$ac_c_werror_flag" ||
26400          test ! -s conftest.err
26401        } && test -s conftest.$ac_objext; then
26402   ac_hi=$ac_mid; break
26403 else
26404   $as_echo "$as_me: failed program was:" >&5
26405 sed 's/^/| /' conftest.$ac_ext >&5
26406
26407         ac_lo=`expr $ac_mid + 1`
26408                         if test $ac_lo -le $ac_mid; then
26409                           ac_lo= ac_hi=
26410                           break
26411                         fi
26412                         ac_mid=`expr 2 '*' $ac_mid + 1`
26413 fi
26414
26415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26416   done
26417 else
26418   $as_echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26420
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; long y; } ac__type_alignof_;
26432 int
26433 main ()
26434 {
26435 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26436 test_array [0] = 0
26437
26438   ;
26439   return 0;
26440 }
26441 _ACEOF
26442 rm -f conftest.$ac_objext
26443 if { (ac_try="$ac_compile"
26444 case "(($ac_try" in
26445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26446   *) ac_try_echo=$ac_try;;
26447 esac
26448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26449 $as_echo "$ac_try_echo") >&5
26450   (eval "$ac_compile") 2>conftest.er1
26451   ac_status=$?
26452   grep -v '^ *+' conftest.er1 >conftest.err
26453   rm -f conftest.er1
26454   cat conftest.err >&5
26455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); } && {
26457          test -z "$ac_c_werror_flag" ||
26458          test ! -s conftest.err
26459        } && test -s conftest.$ac_objext; then
26460   ac_hi=-1 ac_mid=-1
26461   while :; do
26462     cat >conftest.$ac_ext <<_ACEOF
26463 /* confdefs.h.  */
26464 _ACEOF
26465 cat confdefs.h >>conftest.$ac_ext
26466 cat >>conftest.$ac_ext <<_ACEOF
26467 /* end confdefs.h.  */
26468 $ac_includes_default
26469 #ifndef offsetof
26470 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26471 #endif
26472 typedef struct { char x; long y; } ac__type_alignof_;
26473 int
26474 main ()
26475 {
26476 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26477 test_array [0] = 0
26478
26479   ;
26480   return 0;
26481 }
26482 _ACEOF
26483 rm -f conftest.$ac_objext
26484 if { (ac_try="$ac_compile"
26485 case "(($ac_try" in
26486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26487   *) ac_try_echo=$ac_try;;
26488 esac
26489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26490 $as_echo "$ac_try_echo") >&5
26491   (eval "$ac_compile") 2>conftest.er1
26492   ac_status=$?
26493   grep -v '^ *+' conftest.er1 >conftest.err
26494   rm -f conftest.er1
26495   cat conftest.err >&5
26496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497   (exit $ac_status); } && {
26498          test -z "$ac_c_werror_flag" ||
26499          test ! -s conftest.err
26500        } && test -s conftest.$ac_objext; then
26501   ac_lo=$ac_mid; break
26502 else
26503   $as_echo "$as_me: failed program was:" >&5
26504 sed 's/^/| /' conftest.$ac_ext >&5
26505
26506         ac_hi=`expr '(' $ac_mid ')' - 1`
26507                         if test $ac_mid -le $ac_hi; then
26508                           ac_lo= ac_hi=
26509                           break
26510                         fi
26511                         ac_mid=`expr 2 '*' $ac_mid`
26512 fi
26513
26514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26515   done
26516 else
26517   $as_echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.$ac_ext >&5
26519
26520         ac_lo= ac_hi=
26521 fi
26522
26523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26524 fi
26525
26526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26527 # Binary search between lo and hi bounds.
26528 while test "x$ac_lo" != "x$ac_hi"; do
26529   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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)) <= $ac_mid)];
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_hi=$ac_mid
26570 else
26571   $as_echo "$as_me: failed program was:" >&5
26572 sed 's/^/| /' conftest.$ac_ext >&5
26573
26574         ac_lo=`expr '(' $ac_mid ')' + 1`
26575 fi
26576
26577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26578 done
26579 case $ac_lo in
26580 ?*) ac_cv_alignof_long=$ac_lo;;
26581 '') if test "$ac_cv_type_long" = yes; then
26582      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26584 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26585 See \`config.log' for more details." >&5
26586 $as_echo "$as_me: error: cannot compute alignment of long
26587 See \`config.log' for more details." >&2;}
26588    { (exit 77); exit 77; }; }; }
26589    else
26590      ac_cv_alignof_long=0
26591    fi ;;
26592 esac
26593 else
26594   cat >conftest.$ac_ext <<_ACEOF
26595 /* confdefs.h.  */
26596 _ACEOF
26597 cat confdefs.h >>conftest.$ac_ext
26598 cat >>conftest.$ac_ext <<_ACEOF
26599 /* end confdefs.h.  */
26600 $ac_includes_default
26601 #ifndef offsetof
26602 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26603 #endif
26604 typedef struct { char x; long y; } ac__type_alignof_;
26605 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26606 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26607 #include <stdio.h>
26608 #include <stdlib.h>
26609 int
26610 main ()
26611 {
26612
26613   FILE *f = fopen ("conftest.val", "w");
26614   if (! f)
26615     return 1;
26616   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26617     {
26618       long int i = longval ();
26619       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26620         return 1;
26621       fprintf (f, "%ld", i);
26622     }
26623   else
26624     {
26625       unsigned long int i = ulongval ();
26626       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26627         return 1;
26628       fprintf (f, "%lu", i);
26629     }
26630   /* Do not output a trailing newline, as this causes \r\n confusion
26631      on some platforms.  */
26632   return ferror (f) || fclose (f) != 0;
26633
26634   ;
26635   return 0;
26636 }
26637 _ACEOF
26638 rm -f conftest$ac_exeext
26639 if { (ac_try="$ac_link"
26640 case "(($ac_try" in
26641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26642   *) ac_try_echo=$ac_try;;
26643 esac
26644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26645 $as_echo "$ac_try_echo") >&5
26646   (eval "$ac_link") 2>&5
26647   ac_status=$?
26648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26650   { (case "(($ac_try" in
26651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26652   *) ac_try_echo=$ac_try;;
26653 esac
26654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26655 $as_echo "$ac_try_echo") >&5
26656   (eval "$ac_try") 2>&5
26657   ac_status=$?
26658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659   (exit $ac_status); }; }; then
26660   ac_cv_alignof_long=`cat conftest.val`
26661 else
26662   $as_echo "$as_me: program exited with status $ac_status" >&5
26663 $as_echo "$as_me: failed program was:" >&5
26664 sed 's/^/| /' conftest.$ac_ext >&5
26665
26666 ( exit $ac_status )
26667 if test "$ac_cv_type_long" = yes; then
26668      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26670 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26671 See \`config.log' for more details." >&5
26672 $as_echo "$as_me: error: cannot compute alignment of long
26673 See \`config.log' for more details." >&2;}
26674    { (exit 77); exit 77; }; }; }
26675    else
26676      ac_cv_alignof_long=0
26677    fi
26678 fi
26679 rm -rf conftest.dSYM
26680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26681 fi
26682 rm -f conftest.val
26683 fi
26684 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26685 $as_echo "$ac_cv_alignof_long" >&6; }
26686
26687
26688
26689 cat >>confdefs.h <<_ACEOF
26690 #define ALIGNOF_LONG $ac_cv_alignof_long
26691 _ACEOF
26692
26693
26694 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26695   # The cast to long int works around a bug in the HP C Compiler,
26696 # see AC_CHECK_SIZEOF for more information.
26697 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26698 $as_echo_n "checking alignment of long long int... " >&6; }
26699 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26700   $as_echo_n "(cached) " >&6
26701 else
26702   if test "$cross_compiling" = yes; then
26703   # Depending upon the size, compute the lo and hi bounds.
26704 cat >conftest.$ac_ext <<_ACEOF
26705 /* confdefs.h.  */
26706 _ACEOF
26707 cat confdefs.h >>conftest.$ac_ext
26708 cat >>conftest.$ac_ext <<_ACEOF
26709 /* end confdefs.h.  */
26710 $ac_includes_default
26711 #ifndef offsetof
26712 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26713 #endif
26714 typedef struct { char x; long long int y; } ac__type_alignof_;
26715 int
26716 main ()
26717 {
26718 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26719 test_array [0] = 0
26720
26721   ;
26722   return 0;
26723 }
26724 _ACEOF
26725 rm -f conftest.$ac_objext
26726 if { (ac_try="$ac_compile"
26727 case "(($ac_try" in
26728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26729   *) ac_try_echo=$ac_try;;
26730 esac
26731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26732 $as_echo "$ac_try_echo") >&5
26733   (eval "$ac_compile") 2>conftest.er1
26734   ac_status=$?
26735   grep -v '^ *+' conftest.er1 >conftest.err
26736   rm -f conftest.er1
26737   cat conftest.err >&5
26738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); } && {
26740          test -z "$ac_c_werror_flag" ||
26741          test ! -s conftest.err
26742        } && test -s conftest.$ac_objext; then
26743   ac_lo=0 ac_mid=0
26744   while :; do
26745     cat >conftest.$ac_ext <<_ACEOF
26746 /* confdefs.h.  */
26747 _ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h.  */
26751 $ac_includes_default
26752 #ifndef offsetof
26753 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26754 #endif
26755 typedef struct { char x; long long int y; } ac__type_alignof_;
26756 int
26757 main ()
26758 {
26759 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26760 test_array [0] = 0
26761
26762   ;
26763   return 0;
26764 }
26765 _ACEOF
26766 rm -f conftest.$ac_objext
26767 if { (ac_try="$ac_compile"
26768 case "(($ac_try" in
26769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26770   *) ac_try_echo=$ac_try;;
26771 esac
26772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26773 $as_echo "$ac_try_echo") >&5
26774   (eval "$ac_compile") 2>conftest.er1
26775   ac_status=$?
26776   grep -v '^ *+' conftest.er1 >conftest.err
26777   rm -f conftest.er1
26778   cat conftest.err >&5
26779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); } && {
26781          test -z "$ac_c_werror_flag" ||
26782          test ! -s conftest.err
26783        } && test -s conftest.$ac_objext; then
26784   ac_hi=$ac_mid; break
26785 else
26786   $as_echo "$as_me: failed program was:" >&5
26787 sed 's/^/| /' conftest.$ac_ext >&5
26788
26789         ac_lo=`expr $ac_mid + 1`
26790                         if test $ac_lo -le $ac_mid; then
26791                           ac_lo= ac_hi=
26792                           break
26793                         fi
26794                         ac_mid=`expr 2 '*' $ac_mid + 1`
26795 fi
26796
26797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26798   done
26799 else
26800   $as_echo "$as_me: failed program was:" >&5
26801 sed 's/^/| /' conftest.$ac_ext >&5
26802
26803         cat >conftest.$ac_ext <<_ACEOF
26804 /* confdefs.h.  */
26805 _ACEOF
26806 cat confdefs.h >>conftest.$ac_ext
26807 cat >>conftest.$ac_ext <<_ACEOF
26808 /* end confdefs.h.  */
26809 $ac_includes_default
26810 #ifndef offsetof
26811 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26812 #endif
26813 typedef struct { char x; long long int y; } ac__type_alignof_;
26814 int
26815 main ()
26816 {
26817 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26818 test_array [0] = 0
26819
26820   ;
26821   return 0;
26822 }
26823 _ACEOF
26824 rm -f conftest.$ac_objext
26825 if { (ac_try="$ac_compile"
26826 case "(($ac_try" in
26827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26828   *) ac_try_echo=$ac_try;;
26829 esac
26830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26831 $as_echo "$ac_try_echo") >&5
26832   (eval "$ac_compile") 2>conftest.er1
26833   ac_status=$?
26834   grep -v '^ *+' conftest.er1 >conftest.err
26835   rm -f conftest.er1
26836   cat conftest.err >&5
26837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838   (exit $ac_status); } && {
26839          test -z "$ac_c_werror_flag" ||
26840          test ! -s conftest.err
26841        } && test -s conftest.$ac_objext; then
26842   ac_hi=-1 ac_mid=-1
26843   while :; do
26844     cat >conftest.$ac_ext <<_ACEOF
26845 /* confdefs.h.  */
26846 _ACEOF
26847 cat confdefs.h >>conftest.$ac_ext
26848 cat >>conftest.$ac_ext <<_ACEOF
26849 /* end confdefs.h.  */
26850 $ac_includes_default
26851 #ifndef offsetof
26852 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26853 #endif
26854 typedef struct { char x; long long int y; } ac__type_alignof_;
26855 int
26856 main ()
26857 {
26858 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26859 test_array [0] = 0
26860
26861   ;
26862   return 0;
26863 }
26864 _ACEOF
26865 rm -f conftest.$ac_objext
26866 if { (ac_try="$ac_compile"
26867 case "(($ac_try" in
26868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26869   *) ac_try_echo=$ac_try;;
26870 esac
26871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26872 $as_echo "$ac_try_echo") >&5
26873   (eval "$ac_compile") 2>conftest.er1
26874   ac_status=$?
26875   grep -v '^ *+' conftest.er1 >conftest.err
26876   rm -f conftest.er1
26877   cat conftest.err >&5
26878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879   (exit $ac_status); } && {
26880          test -z "$ac_c_werror_flag" ||
26881          test ! -s conftest.err
26882        } && test -s conftest.$ac_objext; then
26883   ac_lo=$ac_mid; break
26884 else
26885   $as_echo "$as_me: failed program was:" >&5
26886 sed 's/^/| /' conftest.$ac_ext >&5
26887
26888         ac_hi=`expr '(' $ac_mid ')' - 1`
26889                         if test $ac_mid -le $ac_hi; then
26890                           ac_lo= ac_hi=
26891                           break
26892                         fi
26893                         ac_mid=`expr 2 '*' $ac_mid`
26894 fi
26895
26896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26897   done
26898 else
26899   $as_echo "$as_me: failed program was:" >&5
26900 sed 's/^/| /' conftest.$ac_ext >&5
26901
26902         ac_lo= ac_hi=
26903 fi
26904
26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26906 fi
26907
26908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26909 # Binary search between lo and hi bounds.
26910 while test "x$ac_lo" != "x$ac_hi"; do
26911   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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)) <= $ac_mid)];
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_hi=$ac_mid
26952 else
26953   $as_echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26955
26956         ac_lo=`expr '(' $ac_mid ')' + 1`
26957 fi
26958
26959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26960 done
26961 case $ac_lo in
26962 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26963 '') if test "$ac_cv_type_long_long_int" = yes; then
26964      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26966 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26967 See \`config.log' for more details." >&5
26968 $as_echo "$as_me: error: cannot compute alignment of long long int
26969 See \`config.log' for more details." >&2;}
26970    { (exit 77); exit 77; }; }; }
26971    else
26972      ac_cv_alignof_long_long_int=0
26973    fi ;;
26974 esac
26975 else
26976   cat >conftest.$ac_ext <<_ACEOF
26977 /* confdefs.h.  */
26978 _ACEOF
26979 cat confdefs.h >>conftest.$ac_ext
26980 cat >>conftest.$ac_ext <<_ACEOF
26981 /* end confdefs.h.  */
26982 $ac_includes_default
26983 #ifndef offsetof
26984 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26985 #endif
26986 typedef struct { char x; long long int y; } ac__type_alignof_;
26987 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26988 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26989 #include <stdio.h>
26990 #include <stdlib.h>
26991 int
26992 main ()
26993 {
26994
26995   FILE *f = fopen ("conftest.val", "w");
26996   if (! f)
26997     return 1;
26998   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26999     {
27000       long int i = longval ();
27001       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27002         return 1;
27003       fprintf (f, "%ld", i);
27004     }
27005   else
27006     {
27007       unsigned long int i = ulongval ();
27008       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27009         return 1;
27010       fprintf (f, "%lu", i);
27011     }
27012   /* Do not output a trailing newline, as this causes \r\n confusion
27013      on some platforms.  */
27014   return ferror (f) || fclose (f) != 0;
27015
27016   ;
27017   return 0;
27018 }
27019 _ACEOF
27020 rm -f conftest$ac_exeext
27021 if { (ac_try="$ac_link"
27022 case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27027 $as_echo "$ac_try_echo") >&5
27028   (eval "$ac_link") 2>&5
27029   ac_status=$?
27030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27032   { (case "(($ac_try" in
27033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034   *) ac_try_echo=$ac_try;;
27035 esac
27036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27037 $as_echo "$ac_try_echo") >&5
27038   (eval "$ac_try") 2>&5
27039   ac_status=$?
27040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041   (exit $ac_status); }; }; then
27042   ac_cv_alignof_long_long_int=`cat conftest.val`
27043 else
27044   $as_echo "$as_me: program exited with status $ac_status" >&5
27045 $as_echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27047
27048 ( exit $ac_status )
27049 if test "$ac_cv_type_long_long_int" = yes; then
27050      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27052 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27053 See \`config.log' for more details." >&5
27054 $as_echo "$as_me: error: cannot compute alignment of long long int
27055 See \`config.log' for more details." >&2;}
27056    { (exit 77); exit 77; }; }; }
27057    else
27058      ac_cv_alignof_long_long_int=0
27059    fi
27060 fi
27061 rm -rf conftest.dSYM
27062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27063 fi
27064 rm -f conftest.val
27065 fi
27066 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27067 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27068
27069
27070
27071 cat >>confdefs.h <<_ACEOF
27072 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27073 _ACEOF
27074
27075
27076 fi
27077 # The cast to long int works around a bug in the HP C Compiler,
27078 # see AC_CHECK_SIZEOF for more information.
27079 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27080 $as_echo_n "checking alignment of double... " >&6; }
27081 if test "${ac_cv_alignof_double+set}" = set; then
27082   $as_echo_n "(cached) " >&6
27083 else
27084   if test "$cross_compiling" = yes; then
27085   # Depending upon the size, compute the lo and hi bounds.
27086 cat >conftest.$ac_ext <<_ACEOF
27087 /* confdefs.h.  */
27088 _ACEOF
27089 cat confdefs.h >>conftest.$ac_ext
27090 cat >>conftest.$ac_ext <<_ACEOF
27091 /* end confdefs.h.  */
27092 $ac_includes_default
27093 #ifndef offsetof
27094 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27095 #endif
27096 typedef struct { char x; double y; } ac__type_alignof_;
27097 int
27098 main ()
27099 {
27100 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27101 test_array [0] = 0
27102
27103   ;
27104   return 0;
27105 }
27106 _ACEOF
27107 rm -f conftest.$ac_objext
27108 if { (ac_try="$ac_compile"
27109 case "(($ac_try" in
27110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111   *) ac_try_echo=$ac_try;;
27112 esac
27113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27114 $as_echo "$ac_try_echo") >&5
27115   (eval "$ac_compile") 2>conftest.er1
27116   ac_status=$?
27117   grep -v '^ *+' conftest.er1 >conftest.err
27118   rm -f conftest.er1
27119   cat conftest.err >&5
27120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121   (exit $ac_status); } && {
27122          test -z "$ac_c_werror_flag" ||
27123          test ! -s conftest.err
27124        } && test -s conftest.$ac_objext; then
27125   ac_lo=0 ac_mid=0
27126   while :; do
27127     cat >conftest.$ac_ext <<_ACEOF
27128 /* confdefs.h.  */
27129 _ACEOF
27130 cat confdefs.h >>conftest.$ac_ext
27131 cat >>conftest.$ac_ext <<_ACEOF
27132 /* end confdefs.h.  */
27133 $ac_includes_default
27134 #ifndef offsetof
27135 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27136 #endif
27137 typedef struct { char x; double y; } ac__type_alignof_;
27138 int
27139 main ()
27140 {
27141 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27142 test_array [0] = 0
27143
27144   ;
27145   return 0;
27146 }
27147 _ACEOF
27148 rm -f conftest.$ac_objext
27149 if { (ac_try="$ac_compile"
27150 case "(($ac_try" in
27151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27152   *) ac_try_echo=$ac_try;;
27153 esac
27154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27155 $as_echo "$ac_try_echo") >&5
27156   (eval "$ac_compile") 2>conftest.er1
27157   ac_status=$?
27158   grep -v '^ *+' conftest.er1 >conftest.err
27159   rm -f conftest.er1
27160   cat conftest.err >&5
27161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162   (exit $ac_status); } && {
27163          test -z "$ac_c_werror_flag" ||
27164          test ! -s conftest.err
27165        } && test -s conftest.$ac_objext; then
27166   ac_hi=$ac_mid; break
27167 else
27168   $as_echo "$as_me: failed program was:" >&5
27169 sed 's/^/| /' conftest.$ac_ext >&5
27170
27171         ac_lo=`expr $ac_mid + 1`
27172                         if test $ac_lo -le $ac_mid; then
27173                           ac_lo= ac_hi=
27174                           break
27175                         fi
27176                         ac_mid=`expr 2 '*' $ac_mid + 1`
27177 fi
27178
27179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27180   done
27181 else
27182   $as_echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27184
27185         cat >conftest.$ac_ext <<_ACEOF
27186 /* confdefs.h.  */
27187 _ACEOF
27188 cat confdefs.h >>conftest.$ac_ext
27189 cat >>conftest.$ac_ext <<_ACEOF
27190 /* end confdefs.h.  */
27191 $ac_includes_default
27192 #ifndef offsetof
27193 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27194 #endif
27195 typedef struct { char x; double y; } ac__type_alignof_;
27196 int
27197 main ()
27198 {
27199 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27200 test_array [0] = 0
27201
27202   ;
27203   return 0;
27204 }
27205 _ACEOF
27206 rm -f conftest.$ac_objext
27207 if { (ac_try="$ac_compile"
27208 case "(($ac_try" in
27209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210   *) ac_try_echo=$ac_try;;
27211 esac
27212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27213 $as_echo "$ac_try_echo") >&5
27214   (eval "$ac_compile") 2>conftest.er1
27215   ac_status=$?
27216   grep -v '^ *+' conftest.er1 >conftest.err
27217   rm -f conftest.er1
27218   cat conftest.err >&5
27219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); } && {
27221          test -z "$ac_c_werror_flag" ||
27222          test ! -s conftest.err
27223        } && test -s conftest.$ac_objext; then
27224   ac_hi=-1 ac_mid=-1
27225   while :; do
27226     cat >conftest.$ac_ext <<_ACEOF
27227 /* confdefs.h.  */
27228 _ACEOF
27229 cat confdefs.h >>conftest.$ac_ext
27230 cat >>conftest.$ac_ext <<_ACEOF
27231 /* end confdefs.h.  */
27232 $ac_includes_default
27233 #ifndef offsetof
27234 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27235 #endif
27236 typedef struct { char x; double y; } ac__type_alignof_;
27237 int
27238 main ()
27239 {
27240 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27241 test_array [0] = 0
27242
27243   ;
27244   return 0;
27245 }
27246 _ACEOF
27247 rm -f conftest.$ac_objext
27248 if { (ac_try="$ac_compile"
27249 case "(($ac_try" in
27250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251   *) ac_try_echo=$ac_try;;
27252 esac
27253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27254 $as_echo "$ac_try_echo") >&5
27255   (eval "$ac_compile") 2>conftest.er1
27256   ac_status=$?
27257   grep -v '^ *+' conftest.er1 >conftest.err
27258   rm -f conftest.er1
27259   cat conftest.err >&5
27260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); } && {
27262          test -z "$ac_c_werror_flag" ||
27263          test ! -s conftest.err
27264        } && test -s conftest.$ac_objext; then
27265   ac_lo=$ac_mid; break
27266 else
27267   $as_echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27269
27270         ac_hi=`expr '(' $ac_mid ')' - 1`
27271                         if test $ac_mid -le $ac_hi; then
27272                           ac_lo= ac_hi=
27273                           break
27274                         fi
27275                         ac_mid=`expr 2 '*' $ac_mid`
27276 fi
27277
27278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27279   done
27280 else
27281   $as_echo "$as_me: failed program was:" >&5
27282 sed 's/^/| /' conftest.$ac_ext >&5
27283
27284         ac_lo= ac_hi=
27285 fi
27286
27287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27288 fi
27289
27290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27291 # Binary search between lo and hi bounds.
27292 while test "x$ac_lo" != "x$ac_hi"; do
27293   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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)) <= $ac_mid)];
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_hi=$ac_mid
27334 else
27335   $as_echo "$as_me: failed program was:" >&5
27336 sed 's/^/| /' conftest.$ac_ext >&5
27337
27338         ac_lo=`expr '(' $ac_mid ')' + 1`
27339 fi
27340
27341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27342 done
27343 case $ac_lo in
27344 ?*) ac_cv_alignof_double=$ac_lo;;
27345 '') if test "$ac_cv_type_double" = yes; then
27346      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27348 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27349 See \`config.log' for more details." >&5
27350 $as_echo "$as_me: error: cannot compute alignment of double
27351 See \`config.log' for more details." >&2;}
27352    { (exit 77); exit 77; }; }; }
27353    else
27354      ac_cv_alignof_double=0
27355    fi ;;
27356 esac
27357 else
27358   cat >conftest.$ac_ext <<_ACEOF
27359 /* confdefs.h.  */
27360 _ACEOF
27361 cat confdefs.h >>conftest.$ac_ext
27362 cat >>conftest.$ac_ext <<_ACEOF
27363 /* end confdefs.h.  */
27364 $ac_includes_default
27365 #ifndef offsetof
27366 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27367 #endif
27368 typedef struct { char x; double y; } ac__type_alignof_;
27369 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27370 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27371 #include <stdio.h>
27372 #include <stdlib.h>
27373 int
27374 main ()
27375 {
27376
27377   FILE *f = fopen ("conftest.val", "w");
27378   if (! f)
27379     return 1;
27380   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27381     {
27382       long int i = longval ();
27383       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27384         return 1;
27385       fprintf (f, "%ld", i);
27386     }
27387   else
27388     {
27389       unsigned long int i = ulongval ();
27390       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27391         return 1;
27392       fprintf (f, "%lu", i);
27393     }
27394   /* Do not output a trailing newline, as this causes \r\n confusion
27395      on some platforms.  */
27396   return ferror (f) || fclose (f) != 0;
27397
27398   ;
27399   return 0;
27400 }
27401 _ACEOF
27402 rm -f conftest$ac_exeext
27403 if { (ac_try="$ac_link"
27404 case "(($ac_try" in
27405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27406   *) ac_try_echo=$ac_try;;
27407 esac
27408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27409 $as_echo "$ac_try_echo") >&5
27410   (eval "$ac_link") 2>&5
27411   ac_status=$?
27412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27414   { (case "(($ac_try" in
27415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416   *) ac_try_echo=$ac_try;;
27417 esac
27418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27419 $as_echo "$ac_try_echo") >&5
27420   (eval "$ac_try") 2>&5
27421   ac_status=$?
27422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423   (exit $ac_status); }; }; then
27424   ac_cv_alignof_double=`cat conftest.val`
27425 else
27426   $as_echo "$as_me: program exited with status $ac_status" >&5
27427 $as_echo "$as_me: failed program was:" >&5
27428 sed 's/^/| /' conftest.$ac_ext >&5
27429
27430 ( exit $ac_status )
27431 if test "$ac_cv_type_double" = yes; then
27432      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27434 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27435 See \`config.log' for more details." >&5
27436 $as_echo "$as_me: error: cannot compute alignment of double
27437 See \`config.log' for more details." >&2;}
27438    { (exit 77); exit 77; }; }; }
27439    else
27440      ac_cv_alignof_double=0
27441    fi
27442 fi
27443 rm -rf conftest.dSYM
27444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27445 fi
27446 rm -f conftest.val
27447 fi
27448 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27449 $as_echo "$ac_cv_alignof_double" >&6; }
27450
27451
27452
27453 cat >>confdefs.h <<_ACEOF
27454 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27455 _ACEOF
27456
27457
27458
27459 # Compute maximum alignment of any basic type.
27460 # We assume long's alignment is at least as strong as char, short, or int;
27461 # but we must check long long (if it exists) and double.
27462
27463 MAX_ALIGNOF=$ac_cv_alignof_long
27464 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27465   MAX_ALIGNOF=$ac_cv_alignof_double
27466 fi
27467 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27468   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27469 fi
27470
27471 cat >>confdefs.h <<_ACEOF
27472 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27473 _ACEOF
27474
27475
27476
27477 # Some platforms predefine the types int8, int16, etc.  Only check
27478 # a (hopefully) representative subset.
27479 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27480 $as_echo_n "checking for int8... " >&6; }
27481 if test "${ac_cv_type_int8+set}" = set; then
27482   $as_echo_n "(cached) " >&6
27483 else
27484   ac_cv_type_int8=no
27485 cat >conftest.$ac_ext <<_ACEOF
27486 /* confdefs.h.  */
27487 _ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h.  */
27491 #include <stdio.h>
27492 #ifdef HAVE_SUPPORTDEFS_H
27493 #include <SupportDefs.h>
27494 #endif
27495
27496 int
27497 main ()
27498 {
27499 if (sizeof (int8))
27500        return 0;
27501   ;
27502   return 0;
27503 }
27504 _ACEOF
27505 rm -f conftest.$ac_objext
27506 if { (ac_try="$ac_compile"
27507 case "(($ac_try" in
27508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509   *) ac_try_echo=$ac_try;;
27510 esac
27511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27512 $as_echo "$ac_try_echo") >&5
27513   (eval "$ac_compile") 2>conftest.er1
27514   ac_status=$?
27515   grep -v '^ *+' conftest.er1 >conftest.err
27516   rm -f conftest.er1
27517   cat conftest.err >&5
27518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519   (exit $ac_status); } && {
27520          test -z "$ac_c_werror_flag" ||
27521          test ! -s conftest.err
27522        } && test -s conftest.$ac_objext; then
27523   cat >conftest.$ac_ext <<_ACEOF
27524 /* confdefs.h.  */
27525 _ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h.  */
27529 #include <stdio.h>
27530 #ifdef HAVE_SUPPORTDEFS_H
27531 #include <SupportDefs.h>
27532 #endif
27533
27534 int
27535 main ()
27536 {
27537 if (sizeof ((int8)))
27538           return 0;
27539   ;
27540   return 0;
27541 }
27542 _ACEOF
27543 rm -f conftest.$ac_objext
27544 if { (ac_try="$ac_compile"
27545 case "(($ac_try" in
27546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547   *) ac_try_echo=$ac_try;;
27548 esac
27549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27550 $as_echo "$ac_try_echo") >&5
27551   (eval "$ac_compile") 2>conftest.er1
27552   ac_status=$?
27553   grep -v '^ *+' conftest.er1 >conftest.err
27554   rm -f conftest.er1
27555   cat conftest.err >&5
27556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557   (exit $ac_status); } && {
27558          test -z "$ac_c_werror_flag" ||
27559          test ! -s conftest.err
27560        } && test -s conftest.$ac_objext; then
27561   :
27562 else
27563   $as_echo "$as_me: failed program was:" >&5
27564 sed 's/^/| /' conftest.$ac_ext >&5
27565
27566         ac_cv_type_int8=yes
27567 fi
27568
27569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27570 else
27571   $as_echo "$as_me: failed program was:" >&5
27572 sed 's/^/| /' conftest.$ac_ext >&5
27573
27574
27575 fi
27576
27577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27578 fi
27579 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27580 $as_echo "$ac_cv_type_int8" >&6; }
27581 if test "x$ac_cv_type_int8" = x""yes; then
27582
27583 cat >>confdefs.h <<_ACEOF
27584 #define HAVE_INT8 1
27585 _ACEOF
27586
27587
27588 fi
27589 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27590 $as_echo_n "checking for uint8... " >&6; }
27591 if test "${ac_cv_type_uint8+set}" = set; then
27592   $as_echo_n "(cached) " >&6
27593 else
27594   ac_cv_type_uint8=no
27595 cat >conftest.$ac_ext <<_ACEOF
27596 /* confdefs.h.  */
27597 _ACEOF
27598 cat confdefs.h >>conftest.$ac_ext
27599 cat >>conftest.$ac_ext <<_ACEOF
27600 /* end confdefs.h.  */
27601 #include <stdio.h>
27602 #ifdef HAVE_SUPPORTDEFS_H
27603 #include <SupportDefs.h>
27604 #endif
27605
27606 int
27607 main ()
27608 {
27609 if (sizeof (uint8))
27610        return 0;
27611   ;
27612   return 0;
27613 }
27614 _ACEOF
27615 rm -f conftest.$ac_objext
27616 if { (ac_try="$ac_compile"
27617 case "(($ac_try" in
27618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27619   *) ac_try_echo=$ac_try;;
27620 esac
27621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27622 $as_echo "$ac_try_echo") >&5
27623   (eval "$ac_compile") 2>conftest.er1
27624   ac_status=$?
27625   grep -v '^ *+' conftest.er1 >conftest.err
27626   rm -f conftest.er1
27627   cat conftest.err >&5
27628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629   (exit $ac_status); } && {
27630          test -z "$ac_c_werror_flag" ||
27631          test ! -s conftest.err
27632        } && test -s conftest.$ac_objext; then
27633   cat >conftest.$ac_ext <<_ACEOF
27634 /* confdefs.h.  */
27635 _ACEOF
27636 cat confdefs.h >>conftest.$ac_ext
27637 cat >>conftest.$ac_ext <<_ACEOF
27638 /* end confdefs.h.  */
27639 #include <stdio.h>
27640 #ifdef HAVE_SUPPORTDEFS_H
27641 #include <SupportDefs.h>
27642 #endif
27643
27644 int
27645 main ()
27646 {
27647 if (sizeof ((uint8)))
27648           return 0;
27649   ;
27650   return 0;
27651 }
27652 _ACEOF
27653 rm -f conftest.$ac_objext
27654 if { (ac_try="$ac_compile"
27655 case "(($ac_try" in
27656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27657   *) ac_try_echo=$ac_try;;
27658 esac
27659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27660 $as_echo "$ac_try_echo") >&5
27661   (eval "$ac_compile") 2>conftest.er1
27662   ac_status=$?
27663   grep -v '^ *+' conftest.er1 >conftest.err
27664   rm -f conftest.er1
27665   cat conftest.err >&5
27666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); } && {
27668          test -z "$ac_c_werror_flag" ||
27669          test ! -s conftest.err
27670        } && test -s conftest.$ac_objext; then
27671   :
27672 else
27673   $as_echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.$ac_ext >&5
27675
27676         ac_cv_type_uint8=yes
27677 fi
27678
27679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27680 else
27681   $as_echo "$as_me: failed program was:" >&5
27682 sed 's/^/| /' conftest.$ac_ext >&5
27683
27684
27685 fi
27686
27687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27688 fi
27689 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27690 $as_echo "$ac_cv_type_uint8" >&6; }
27691 if test "x$ac_cv_type_uint8" = x""yes; then
27692
27693 cat >>confdefs.h <<_ACEOF
27694 #define HAVE_UINT8 1
27695 _ACEOF
27696
27697
27698 fi
27699 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27700 $as_echo_n "checking for int64... " >&6; }
27701 if test "${ac_cv_type_int64+set}" = set; then
27702   $as_echo_n "(cached) " >&6
27703 else
27704   ac_cv_type_int64=no
27705 cat >conftest.$ac_ext <<_ACEOF
27706 /* confdefs.h.  */
27707 _ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h.  */
27711 #include <stdio.h>
27712 #ifdef HAVE_SUPPORTDEFS_H
27713 #include <SupportDefs.h>
27714 #endif
27715
27716 int
27717 main ()
27718 {
27719 if (sizeof (int64))
27720        return 0;
27721   ;
27722   return 0;
27723 }
27724 _ACEOF
27725 rm -f conftest.$ac_objext
27726 if { (ac_try="$ac_compile"
27727 case "(($ac_try" in
27728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27729   *) ac_try_echo=$ac_try;;
27730 esac
27731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27732 $as_echo "$ac_try_echo") >&5
27733   (eval "$ac_compile") 2>conftest.er1
27734   ac_status=$?
27735   grep -v '^ *+' conftest.er1 >conftest.err
27736   rm -f conftest.er1
27737   cat conftest.err >&5
27738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739   (exit $ac_status); } && {
27740          test -z "$ac_c_werror_flag" ||
27741          test ! -s conftest.err
27742        } && test -s conftest.$ac_objext; then
27743   cat >conftest.$ac_ext <<_ACEOF
27744 /* confdefs.h.  */
27745 _ACEOF
27746 cat confdefs.h >>conftest.$ac_ext
27747 cat >>conftest.$ac_ext <<_ACEOF
27748 /* end confdefs.h.  */
27749 #include <stdio.h>
27750 #ifdef HAVE_SUPPORTDEFS_H
27751 #include <SupportDefs.h>
27752 #endif
27753
27754 int
27755 main ()
27756 {
27757 if (sizeof ((int64)))
27758           return 0;
27759   ;
27760   return 0;
27761 }
27762 _ACEOF
27763 rm -f conftest.$ac_objext
27764 if { (ac_try="$ac_compile"
27765 case "(($ac_try" in
27766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767   *) ac_try_echo=$ac_try;;
27768 esac
27769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27770 $as_echo "$ac_try_echo") >&5
27771   (eval "$ac_compile") 2>conftest.er1
27772   ac_status=$?
27773   grep -v '^ *+' conftest.er1 >conftest.err
27774   rm -f conftest.er1
27775   cat conftest.err >&5
27776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777   (exit $ac_status); } && {
27778          test -z "$ac_c_werror_flag" ||
27779          test ! -s conftest.err
27780        } && test -s conftest.$ac_objext; then
27781   :
27782 else
27783   $as_echo "$as_me: failed program was:" >&5
27784 sed 's/^/| /' conftest.$ac_ext >&5
27785
27786         ac_cv_type_int64=yes
27787 fi
27788
27789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27790 else
27791   $as_echo "$as_me: failed program was:" >&5
27792 sed 's/^/| /' conftest.$ac_ext >&5
27793
27794
27795 fi
27796
27797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27798 fi
27799 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27800 $as_echo "$ac_cv_type_int64" >&6; }
27801 if test "x$ac_cv_type_int64" = x""yes; then
27802
27803 cat >>confdefs.h <<_ACEOF
27804 #define HAVE_INT64 1
27805 _ACEOF
27806
27807
27808 fi
27809 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27810 $as_echo_n "checking for uint64... " >&6; }
27811 if test "${ac_cv_type_uint64+set}" = set; then
27812   $as_echo_n "(cached) " >&6
27813 else
27814   ac_cv_type_uint64=no
27815 cat >conftest.$ac_ext <<_ACEOF
27816 /* confdefs.h.  */
27817 _ACEOF
27818 cat confdefs.h >>conftest.$ac_ext
27819 cat >>conftest.$ac_ext <<_ACEOF
27820 /* end confdefs.h.  */
27821 #include <stdio.h>
27822 #ifdef HAVE_SUPPORTDEFS_H
27823 #include <SupportDefs.h>
27824 #endif
27825
27826 int
27827 main ()
27828 {
27829 if (sizeof (uint64))
27830        return 0;
27831   ;
27832   return 0;
27833 }
27834 _ACEOF
27835 rm -f conftest.$ac_objext
27836 if { (ac_try="$ac_compile"
27837 case "(($ac_try" in
27838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839   *) ac_try_echo=$ac_try;;
27840 esac
27841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27842 $as_echo "$ac_try_echo") >&5
27843   (eval "$ac_compile") 2>conftest.er1
27844   ac_status=$?
27845   grep -v '^ *+' conftest.er1 >conftest.err
27846   rm -f conftest.er1
27847   cat conftest.err >&5
27848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); } && {
27850          test -z "$ac_c_werror_flag" ||
27851          test ! -s conftest.err
27852        } && test -s conftest.$ac_objext; then
27853   cat >conftest.$ac_ext <<_ACEOF
27854 /* confdefs.h.  */
27855 _ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h.  */
27859 #include <stdio.h>
27860 #ifdef HAVE_SUPPORTDEFS_H
27861 #include <SupportDefs.h>
27862 #endif
27863
27864 int
27865 main ()
27866 {
27867 if (sizeof ((uint64)))
27868           return 0;
27869   ;
27870   return 0;
27871 }
27872 _ACEOF
27873 rm -f conftest.$ac_objext
27874 if { (ac_try="$ac_compile"
27875 case "(($ac_try" in
27876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27877   *) ac_try_echo=$ac_try;;
27878 esac
27879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27880 $as_echo "$ac_try_echo") >&5
27881   (eval "$ac_compile") 2>conftest.er1
27882   ac_status=$?
27883   grep -v '^ *+' conftest.er1 >conftest.err
27884   rm -f conftest.er1
27885   cat conftest.err >&5
27886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); } && {
27888          test -z "$ac_c_werror_flag" ||
27889          test ! -s conftest.err
27890        } && test -s conftest.$ac_objext; then
27891   :
27892 else
27893   $as_echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27895
27896         ac_cv_type_uint64=yes
27897 fi
27898
27899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27900 else
27901   $as_echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27903
27904
27905 fi
27906
27907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27908 fi
27909 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27910 $as_echo "$ac_cv_type_uint64" >&6; }
27911 if test "x$ac_cv_type_uint64" = x""yes; then
27912
27913 cat >>confdefs.h <<_ACEOF
27914 #define HAVE_UINT64 1
27915 _ACEOF
27916
27917
27918 fi
27919
27920
27921 # We also check for sig_atomic_t, which *should* be defined per ANSI
27922 # C, but is missing on some old platforms.
27923 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27924 $as_echo_n "checking for sig_atomic_t... " >&6; }
27925 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27926   $as_echo_n "(cached) " >&6
27927 else
27928   ac_cv_type_sig_atomic_t=no
27929 cat >conftest.$ac_ext <<_ACEOF
27930 /* confdefs.h.  */
27931 _ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h.  */
27935 #include <signal.h>
27936
27937 int
27938 main ()
27939 {
27940 if (sizeof (sig_atomic_t))
27941        return 0;
27942   ;
27943   return 0;
27944 }
27945 _ACEOF
27946 rm -f conftest.$ac_objext
27947 if { (ac_try="$ac_compile"
27948 case "(($ac_try" in
27949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950   *) ac_try_echo=$ac_try;;
27951 esac
27952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27953 $as_echo "$ac_try_echo") >&5
27954   (eval "$ac_compile") 2>conftest.er1
27955   ac_status=$?
27956   grep -v '^ *+' conftest.er1 >conftest.err
27957   rm -f conftest.er1
27958   cat conftest.err >&5
27959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); } && {
27961          test -z "$ac_c_werror_flag" ||
27962          test ! -s conftest.err
27963        } && test -s conftest.$ac_objext; then
27964   cat >conftest.$ac_ext <<_ACEOF
27965 /* confdefs.h.  */
27966 _ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h.  */
27970 #include <signal.h>
27971
27972 int
27973 main ()
27974 {
27975 if (sizeof ((sig_atomic_t)))
27976           return 0;
27977   ;
27978   return 0;
27979 }
27980 _ACEOF
27981 rm -f conftest.$ac_objext
27982 if { (ac_try="$ac_compile"
27983 case "(($ac_try" in
27984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985   *) ac_try_echo=$ac_try;;
27986 esac
27987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27988 $as_echo "$ac_try_echo") >&5
27989   (eval "$ac_compile") 2>conftest.er1
27990   ac_status=$?
27991   grep -v '^ *+' conftest.er1 >conftest.err
27992   rm -f conftest.er1
27993   cat conftest.err >&5
27994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995   (exit $ac_status); } && {
27996          test -z "$ac_c_werror_flag" ||
27997          test ! -s conftest.err
27998        } && test -s conftest.$ac_objext; then
27999   :
28000 else
28001   $as_echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28003
28004         ac_cv_type_sig_atomic_t=yes
28005 fi
28006
28007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28008 else
28009   $as_echo "$as_me: failed program was:" >&5
28010 sed 's/^/| /' conftest.$ac_ext >&5
28011
28012
28013 fi
28014
28015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28016 fi
28017 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28018 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28019 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28020
28021 cat >>confdefs.h <<_ACEOF
28022 #define HAVE_SIG_ATOMIC_T 1
28023 _ACEOF
28024
28025
28026 fi
28027
28028
28029
28030 if test "$PORTNAME" != "win32"
28031 then
28032 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28033 $as_echo_n "checking for POSIX signal interface... " >&6; }
28034 if test "${pgac_cv_func_posix_signals+set}" = set; then
28035   $as_echo_n "(cached) " >&6
28036 else
28037   cat >conftest.$ac_ext <<_ACEOF
28038 /* confdefs.h.  */
28039 _ACEOF
28040 cat confdefs.h >>conftest.$ac_ext
28041 cat >>conftest.$ac_ext <<_ACEOF
28042 /* end confdefs.h.  */
28043 #include <signal.h>
28044
28045 int
28046 main ()
28047 {
28048 struct sigaction act, oact;
28049 sigemptyset(&act.sa_mask);
28050 act.sa_flags = SA_RESTART;
28051 sigaction(0, &act, &oact);
28052   ;
28053   return 0;
28054 }
28055 _ACEOF
28056 rm -f conftest.$ac_objext conftest$ac_exeext
28057 if { (ac_try="$ac_link"
28058 case "(($ac_try" in
28059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28060   *) ac_try_echo=$ac_try;;
28061 esac
28062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28063 $as_echo "$ac_try_echo") >&5
28064   (eval "$ac_link") 2>conftest.er1
28065   ac_status=$?
28066   grep -v '^ *+' conftest.er1 >conftest.err
28067   rm -f conftest.er1
28068   cat conftest.err >&5
28069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070   (exit $ac_status); } && {
28071          test -z "$ac_c_werror_flag" ||
28072          test ! -s conftest.err
28073        } && test -s conftest$ac_exeext && {
28074          test "$cross_compiling" = yes ||
28075          $as_test_x conftest$ac_exeext
28076        }; then
28077   pgac_cv_func_posix_signals=yes
28078 else
28079   $as_echo "$as_me: failed program was:" >&5
28080 sed 's/^/| /' conftest.$ac_ext >&5
28081
28082         pgac_cv_func_posix_signals=no
28083 fi
28084
28085 rm -rf conftest.dSYM
28086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28087       conftest$ac_exeext conftest.$ac_ext
28088 fi
28089 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28090 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28091 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28092
28093 cat >>confdefs.h <<\_ACEOF
28094 #define HAVE_POSIX_SIGNALS /**/
28095 _ACEOF
28096
28097 fi
28098 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28099
28100 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28101   { { $as_echo "$as_me:$LINENO: error:
28102 Thread-safety requires POSIX signals, which are not supported by this
28103 operating system;  use --disable-thread-safety to disable thread safety." >&5
28104 $as_echo "$as_me: error:
28105 Thread-safety requires POSIX signals, which are not supported by this
28106 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28107    { (exit 1); exit 1; }; }
28108 fi
28109 fi
28110
28111 # SunOS doesn't handle negative byte comparisons properly with +/- return
28112 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28113 $as_echo_n "checking for working memcmp... " >&6; }
28114 if test "${ac_cv_func_memcmp_working+set}" = set; then
28115   $as_echo_n "(cached) " >&6
28116 else
28117   if test "$cross_compiling" = yes; then
28118   ac_cv_func_memcmp_working=no
28119 else
28120   cat >conftest.$ac_ext <<_ACEOF
28121 /* confdefs.h.  */
28122 _ACEOF
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h.  */
28126 $ac_includes_default
28127 int
28128 main ()
28129 {
28130
28131   /* Some versions of memcmp are not 8-bit clean.  */
28132   char c0 = '\100', c1 = '\200', c2 = '\201';
28133   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28134     return 1;
28135
28136   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28137      or more and with at least one buffer not starting on a 4-byte boundary.
28138      William Lewis provided this test program.   */
28139   {
28140     char foo[21];
28141     char bar[21];
28142     int i;
28143     for (i = 0; i < 4; i++)
28144       {
28145         char *a = foo + i;
28146         char *b = bar + i;
28147         strcpy (a, "--------01111111");
28148         strcpy (b, "--------10000000");
28149         if (memcmp (a, b, 16) >= 0)
28150           return 1;
28151       }
28152     return 0;
28153   }
28154
28155   ;
28156   return 0;
28157 }
28158 _ACEOF
28159 rm -f conftest$ac_exeext
28160 if { (ac_try="$ac_link"
28161 case "(($ac_try" in
28162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28163   *) ac_try_echo=$ac_try;;
28164 esac
28165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28166 $as_echo "$ac_try_echo") >&5
28167   (eval "$ac_link") 2>&5
28168   ac_status=$?
28169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28171   { (case "(($ac_try" in
28172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173   *) ac_try_echo=$ac_try;;
28174 esac
28175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28176 $as_echo "$ac_try_echo") >&5
28177   (eval "$ac_try") 2>&5
28178   ac_status=$?
28179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180   (exit $ac_status); }; }; then
28181   ac_cv_func_memcmp_working=yes
28182 else
28183   $as_echo "$as_me: program exited with status $ac_status" >&5
28184 $as_echo "$as_me: failed program was:" >&5
28185 sed 's/^/| /' conftest.$ac_ext >&5
28186
28187 ( exit $ac_status )
28188 ac_cv_func_memcmp_working=no
28189 fi
28190 rm -rf conftest.dSYM
28191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28192 fi
28193
28194
28195 fi
28196 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28197 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28198 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28199   *" memcmp.$ac_objext "* ) ;;
28200   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28201  ;;
28202 esac
28203
28204
28205
28206
28207 # Select semaphore implementation type.
28208 if test "$PORTNAME" != "win32"; then
28209   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28210
28211 cat >>confdefs.h <<\_ACEOF
28212 #define USE_NAMED_POSIX_SEMAPHORES 1
28213 _ACEOF
28214
28215     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28216   else
28217     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28218
28219 cat >>confdefs.h <<\_ACEOF
28220 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28221 _ACEOF
28222
28223       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28224     else
28225
28226 cat >>confdefs.h <<\_ACEOF
28227 #define USE_SYSV_SEMAPHORES 1
28228 _ACEOF
28229
28230       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28231     fi
28232   fi
28233 else
28234
28235 cat >>confdefs.h <<\_ACEOF
28236 #define USE_WIN32_SEMAPHORES 1
28237 _ACEOF
28238
28239   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28240 fi
28241
28242
28243 # Select shared-memory implementation type.
28244 if test "$PORTNAME" != "win32"; then
28245
28246 cat >>confdefs.h <<\_ACEOF
28247 #define USE_SYSV_SHARED_MEMORY 1
28248 _ACEOF
28249
28250   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28251 else
28252
28253 cat >>confdefs.h <<\_ACEOF
28254 #define USE_WIN32_SHARED_MEMORY 1
28255 _ACEOF
28256
28257   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28258 fi
28259
28260 # Select latch implementation type.
28261 if test "$PORTNAME" != "win32"; then
28262   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28263 else
28264   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28265 fi
28266
28267 # If not set in template file, set bytes to use libc memset()
28268 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28269   MEMSET_LOOP_LIMIT=1024
28270 fi
28271
28272 cat >>confdefs.h <<_ACEOF
28273 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28274 _ACEOF
28275
28276
28277
28278 if test "$enable_nls" = yes ; then
28279
28280   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28281 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28282 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28283   $as_echo_n "(cached) " >&6
28284 else
28285   ac_func_search_save_LIBS=$LIBS
28286 cat >conftest.$ac_ext <<_ACEOF
28287 /* confdefs.h.  */
28288 _ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h.  */
28292
28293 /* Override any GCC internal prototype to avoid an error.
28294    Use char because int might match the return type of a GCC
28295    builtin and then its argument prototype would still apply.  */
28296 #ifdef __cplusplus
28297 extern "C"
28298 #endif
28299 char bind_textdomain_codeset ();
28300 int
28301 main ()
28302 {
28303 return bind_textdomain_codeset ();
28304   ;
28305   return 0;
28306 }
28307 _ACEOF
28308 for ac_lib in '' intl; do
28309   if test -z "$ac_lib"; then
28310     ac_res="none required"
28311   else
28312     ac_res=-l$ac_lib
28313     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28314   fi
28315   rm -f conftest.$ac_objext conftest$ac_exeext
28316 if { (ac_try="$ac_link"
28317 case "(($ac_try" in
28318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28319   *) ac_try_echo=$ac_try;;
28320 esac
28321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28322 $as_echo "$ac_try_echo") >&5
28323   (eval "$ac_link") 2>conftest.er1
28324   ac_status=$?
28325   grep -v '^ *+' conftest.er1 >conftest.err
28326   rm -f conftest.er1
28327   cat conftest.err >&5
28328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); } && {
28330          test -z "$ac_c_werror_flag" ||
28331          test ! -s conftest.err
28332        } && test -s conftest$ac_exeext && {
28333          test "$cross_compiling" = yes ||
28334          $as_test_x conftest$ac_exeext
28335        }; then
28336   ac_cv_search_bind_textdomain_codeset=$ac_res
28337 else
28338   $as_echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.$ac_ext >&5
28340
28341
28342 fi
28343
28344 rm -rf conftest.dSYM
28345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28346       conftest$ac_exeext
28347   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28348   break
28349 fi
28350 done
28351 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28352   :
28353 else
28354   ac_cv_search_bind_textdomain_codeset=no
28355 fi
28356 rm conftest.$ac_ext
28357 LIBS=$ac_func_search_save_LIBS
28358 fi
28359 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28360 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28361 ac_res=$ac_cv_search_bind_textdomain_codeset
28362 if test "$ac_res" != no; then
28363   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28364
28365 else
28366   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28367 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28368    { (exit 1); exit 1; }; }
28369 fi
28370
28371   if test "${ac_cv_header_libintl_h+set}" = set; then
28372   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28373 $as_echo_n "checking for libintl.h... " >&6; }
28374 if test "${ac_cv_header_libintl_h+set}" = set; then
28375   $as_echo_n "(cached) " >&6
28376 fi
28377 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28378 $as_echo "$ac_cv_header_libintl_h" >&6; }
28379 else
28380   # Is the header compilable?
28381 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28382 $as_echo_n "checking libintl.h usability... " >&6; }
28383 cat >conftest.$ac_ext <<_ACEOF
28384 /* confdefs.h.  */
28385 _ACEOF
28386 cat confdefs.h >>conftest.$ac_ext
28387 cat >>conftest.$ac_ext <<_ACEOF
28388 /* end confdefs.h.  */
28389 $ac_includes_default
28390 #include <libintl.h>
28391 _ACEOF
28392 rm -f conftest.$ac_objext
28393 if { (ac_try="$ac_compile"
28394 case "(($ac_try" in
28395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396   *) ac_try_echo=$ac_try;;
28397 esac
28398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28399 $as_echo "$ac_try_echo") >&5
28400   (eval "$ac_compile") 2>conftest.er1
28401   ac_status=$?
28402   grep -v '^ *+' conftest.er1 >conftest.err
28403   rm -f conftest.er1
28404   cat conftest.err >&5
28405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406   (exit $ac_status); } && {
28407          test -z "$ac_c_werror_flag" ||
28408          test ! -s conftest.err
28409        } && test -s conftest.$ac_objext; then
28410   ac_header_compiler=yes
28411 else
28412   $as_echo "$as_me: failed program was:" >&5
28413 sed 's/^/| /' conftest.$ac_ext >&5
28414
28415         ac_header_compiler=no
28416 fi
28417
28418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28419 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28420 $as_echo "$ac_header_compiler" >&6; }
28421
28422 # Is the header present?
28423 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28424 $as_echo_n "checking libintl.h presence... " >&6; }
28425 cat >conftest.$ac_ext <<_ACEOF
28426 /* confdefs.h.  */
28427 _ACEOF
28428 cat confdefs.h >>conftest.$ac_ext
28429 cat >>conftest.$ac_ext <<_ACEOF
28430 /* end confdefs.h.  */
28431 #include <libintl.h>
28432 _ACEOF
28433 if { (ac_try="$ac_cpp conftest.$ac_ext"
28434 case "(($ac_try" in
28435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436   *) ac_try_echo=$ac_try;;
28437 esac
28438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28439 $as_echo "$ac_try_echo") >&5
28440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28441   ac_status=$?
28442   grep -v '^ *+' conftest.er1 >conftest.err
28443   rm -f conftest.er1
28444   cat conftest.err >&5
28445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446   (exit $ac_status); } >/dev/null && {
28447          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28448          test ! -s conftest.err
28449        }; then
28450   ac_header_preproc=yes
28451 else
28452   $as_echo "$as_me: failed program was:" >&5
28453 sed 's/^/| /' conftest.$ac_ext >&5
28454
28455   ac_header_preproc=no
28456 fi
28457
28458 rm -f conftest.err conftest.$ac_ext
28459 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28460 $as_echo "$ac_header_preproc" >&6; }
28461
28462 # So?  What about this header?
28463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28464   yes:no: )
28465     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28466 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28467     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28468 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28469     ac_header_preproc=yes
28470     ;;
28471   no:yes:* )
28472     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28473 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28474     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28475 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28476     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28477 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28478     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28479 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28480     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28481 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28482     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28483 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28484     ( cat <<\_ASBOX
28485 ## ---------------------------------------- ##
28486 ## Report this to pgsql-bugs@postgresql.org ##
28487 ## ---------------------------------------- ##
28488 _ASBOX
28489      ) | sed "s/^/$as_me: WARNING:     /" >&2
28490     ;;
28491 esac
28492 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28493 $as_echo_n "checking for libintl.h... " >&6; }
28494 if test "${ac_cv_header_libintl_h+set}" = set; then
28495   $as_echo_n "(cached) " >&6
28496 else
28497   ac_cv_header_libintl_h=$ac_header_preproc
28498 fi
28499 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28500 $as_echo "$ac_cv_header_libintl_h" >&6; }
28501
28502 fi
28503 if test "x$ac_cv_header_libintl_h" = x""yes; then
28504   :
28505 else
28506   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28507 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28508    { (exit 1); exit 1; }; }
28509 fi
28510
28511
28512   for ac_prog in msgfmt
28513 do
28514   # Extract the first word of "$ac_prog", so it can be a program name with args.
28515 set dummy $ac_prog; ac_word=$2
28516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28517 $as_echo_n "checking for $ac_word... " >&6; }
28518 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28519   $as_echo_n "(cached) " >&6
28520 else
28521   if test -n "$MSGFMT"; then
28522   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28523 else
28524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28525 for as_dir in $PATH
28526 do
28527   IFS=$as_save_IFS
28528   test -z "$as_dir" && as_dir=.
28529   for ac_exec_ext in '' $ac_executable_extensions; do
28530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28531     ac_cv_prog_MSGFMT="$ac_prog"
28532     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28533     break 2
28534   fi
28535 done
28536 done
28537 IFS=$as_save_IFS
28538
28539 fi
28540 fi
28541 MSGFMT=$ac_cv_prog_MSGFMT
28542 if test -n "$MSGFMT"; then
28543   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28544 $as_echo "$MSGFMT" >&6; }
28545 else
28546   { $as_echo "$as_me:$LINENO: result: no" >&5
28547 $as_echo "no" >&6; }
28548 fi
28549
28550
28551   test -n "$MSGFMT" && break
28552 done
28553
28554   if test -z "$MSGFMT"; then
28555     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28556 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28557    { (exit 1); exit 1; }; }
28558   fi
28559   for ac_prog in msgmerge
28560 do
28561   # Extract the first word of "$ac_prog", so it can be a program name with args.
28562 set dummy $ac_prog; ac_word=$2
28563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28564 $as_echo_n "checking for $ac_word... " >&6; }
28565 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28566   $as_echo_n "(cached) " >&6
28567 else
28568   if test -n "$MSGMERGE"; then
28569   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28570 else
28571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28572 for as_dir in $PATH
28573 do
28574   IFS=$as_save_IFS
28575   test -z "$as_dir" && as_dir=.
28576   for ac_exec_ext in '' $ac_executable_extensions; do
28577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28578     ac_cv_prog_MSGMERGE="$ac_prog"
28579     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28580     break 2
28581   fi
28582 done
28583 done
28584 IFS=$as_save_IFS
28585
28586 fi
28587 fi
28588 MSGMERGE=$ac_cv_prog_MSGMERGE
28589 if test -n "$MSGMERGE"; then
28590   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28591 $as_echo "$MSGMERGE" >&6; }
28592 else
28593   { $as_echo "$as_me:$LINENO: result: no" >&5
28594 $as_echo "no" >&6; }
28595 fi
28596
28597
28598   test -n "$MSGMERGE" && break
28599 done
28600
28601   for ac_prog in xgettext
28602 do
28603   # Extract the first word of "$ac_prog", so it can be a program name with args.
28604 set dummy $ac_prog; ac_word=$2
28605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28606 $as_echo_n "checking for $ac_word... " >&6; }
28607 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28608   $as_echo_n "(cached) " >&6
28609 else
28610   if test -n "$XGETTEXT"; then
28611   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28612 else
28613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28614 for as_dir in $PATH
28615 do
28616   IFS=$as_save_IFS
28617   test -z "$as_dir" && as_dir=.
28618   for ac_exec_ext in '' $ac_executable_extensions; do
28619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28620     ac_cv_prog_XGETTEXT="$ac_prog"
28621     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28622     break 2
28623   fi
28624 done
28625 done
28626 IFS=$as_save_IFS
28627
28628 fi
28629 fi
28630 XGETTEXT=$ac_cv_prog_XGETTEXT
28631 if test -n "$XGETTEXT"; then
28632   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28633 $as_echo "$XGETTEXT" >&6; }
28634 else
28635   { $as_echo "$as_me:$LINENO: result: no" >&5
28636 $as_echo "no" >&6; }
28637 fi
28638
28639
28640   test -n "$XGETTEXT" && break
28641 done
28642
28643
28644 fi
28645
28646 # Check for Tcl configuration script tclConfig.sh
28647 if test "$with_tcl" = yes; then
28648     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28649 do
28650   # Extract the first word of "$ac_prog", so it can be a program name with args.
28651 set dummy $ac_prog; ac_word=$2
28652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28653 $as_echo_n "checking for $ac_word... " >&6; }
28654 if test "${ac_cv_path_TCLSH+set}" = set; then
28655   $as_echo_n "(cached) " >&6
28656 else
28657   case $TCLSH in
28658   [\\/]* | ?:[\\/]*)
28659   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28660   ;;
28661   *)
28662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28663 for as_dir in $PATH
28664 do
28665   IFS=$as_save_IFS
28666   test -z "$as_dir" && as_dir=.
28667   for ac_exec_ext in '' $ac_executable_extensions; do
28668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28669     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28670     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28671     break 2
28672   fi
28673 done
28674 done
28675 IFS=$as_save_IFS
28676
28677   ;;
28678 esac
28679 fi
28680 TCLSH=$ac_cv_path_TCLSH
28681 if test -n "$TCLSH"; then
28682   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28683 $as_echo "$TCLSH" >&6; }
28684 else
28685   { $as_echo "$as_me:$LINENO: result: no" >&5
28686 $as_echo "no" >&6; }
28687 fi
28688
28689
28690   test -n "$TCLSH" && break
28691 done
28692
28693 if test x"$TCLSH" = x""; then
28694   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28695 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28696    { (exit 1); exit 1; }; }
28697 fi
28698
28699 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28700 $as_echo_n "checking for tclConfig.sh... " >&6; }
28701 # Let user override test
28702 if test -z "$TCL_CONFIG_SH"; then
28703     pgac_test_dirs="$with_tclconfig"
28704
28705     set X $pgac_test_dirs; shift
28706     if test $# -eq 0; then
28707         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28708 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28709    { (exit 1); exit 1; }; }
28710         set X `echo 'puts $auto_path' | $TCLSH`; shift
28711     fi
28712
28713     for pgac_dir do
28714         if test -r "$pgac_dir/tclConfig.sh"; then
28715             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28716             break
28717         fi
28718     done
28719 fi
28720
28721 if test -z "$TCL_CONFIG_SH"; then
28722     { $as_echo "$as_me:$LINENO: result: no" >&5
28723 $as_echo "no" >&6; }
28724     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28725 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28726    { (exit 1); exit 1; }; }
28727 else
28728     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28729 $as_echo "$TCL_CONFIG_SH" >&6; }
28730 fi
28731
28732
28733
28734     . "$TCL_CONFIG_SH"
28735 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28736 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28737 eval TCL_LIBS=\"$TCL_LIBS\"
28738 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28739 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28740
28741         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28742     ac_save_CPPFLAGS=$CPPFLAGS
28743     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28744     if test "${ac_cv_header_tcl_h+set}" = set; then
28745   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28746 $as_echo_n "checking for tcl.h... " >&6; }
28747 if test "${ac_cv_header_tcl_h+set}" = set; then
28748   $as_echo_n "(cached) " >&6
28749 fi
28750 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28751 $as_echo "$ac_cv_header_tcl_h" >&6; }
28752 else
28753   # Is the header compilable?
28754 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28755 $as_echo_n "checking tcl.h usability... " >&6; }
28756 cat >conftest.$ac_ext <<_ACEOF
28757 /* confdefs.h.  */
28758 _ACEOF
28759 cat confdefs.h >>conftest.$ac_ext
28760 cat >>conftest.$ac_ext <<_ACEOF
28761 /* end confdefs.h.  */
28762 $ac_includes_default
28763 #include <tcl.h>
28764 _ACEOF
28765 rm -f conftest.$ac_objext
28766 if { (ac_try="$ac_compile"
28767 case "(($ac_try" in
28768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28769   *) ac_try_echo=$ac_try;;
28770 esac
28771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28772 $as_echo "$ac_try_echo") >&5
28773   (eval "$ac_compile") 2>conftest.er1
28774   ac_status=$?
28775   grep -v '^ *+' conftest.er1 >conftest.err
28776   rm -f conftest.er1
28777   cat conftest.err >&5
28778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779   (exit $ac_status); } && {
28780          test -z "$ac_c_werror_flag" ||
28781          test ! -s conftest.err
28782        } && test -s conftest.$ac_objext; then
28783   ac_header_compiler=yes
28784 else
28785   $as_echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28787
28788         ac_header_compiler=no
28789 fi
28790
28791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28792 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28793 $as_echo "$ac_header_compiler" >&6; }
28794
28795 # Is the header present?
28796 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28797 $as_echo_n "checking tcl.h presence... " >&6; }
28798 cat >conftest.$ac_ext <<_ACEOF
28799 /* confdefs.h.  */
28800 _ACEOF
28801 cat confdefs.h >>conftest.$ac_ext
28802 cat >>conftest.$ac_ext <<_ACEOF
28803 /* end confdefs.h.  */
28804 #include <tcl.h>
28805 _ACEOF
28806 if { (ac_try="$ac_cpp conftest.$ac_ext"
28807 case "(($ac_try" in
28808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809   *) ac_try_echo=$ac_try;;
28810 esac
28811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28812 $as_echo "$ac_try_echo") >&5
28813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28814   ac_status=$?
28815   grep -v '^ *+' conftest.er1 >conftest.err
28816   rm -f conftest.er1
28817   cat conftest.err >&5
28818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819   (exit $ac_status); } >/dev/null && {
28820          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28821          test ! -s conftest.err
28822        }; then
28823   ac_header_preproc=yes
28824 else
28825   $as_echo "$as_me: failed program was:" >&5
28826 sed 's/^/| /' conftest.$ac_ext >&5
28827
28828   ac_header_preproc=no
28829 fi
28830
28831 rm -f conftest.err conftest.$ac_ext
28832 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28833 $as_echo "$ac_header_preproc" >&6; }
28834
28835 # So?  What about this header?
28836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28837   yes:no: )
28838     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28839 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28840     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28841 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28842     ac_header_preproc=yes
28843     ;;
28844   no:yes:* )
28845     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28846 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28847     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
28848 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
28849     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28850 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28851     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
28852 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28853     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28854 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28855     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28856 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28857     ( cat <<\_ASBOX
28858 ## ---------------------------------------- ##
28859 ## Report this to pgsql-bugs@postgresql.org ##
28860 ## ---------------------------------------- ##
28861 _ASBOX
28862      ) | sed "s/^/$as_me: WARNING:     /" >&2
28863     ;;
28864 esac
28865 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28866 $as_echo_n "checking for tcl.h... " >&6; }
28867 if test "${ac_cv_header_tcl_h+set}" = set; then
28868   $as_echo_n "(cached) " >&6
28869 else
28870   ac_cv_header_tcl_h=$ac_header_preproc
28871 fi
28872 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28873 $as_echo "$ac_cv_header_tcl_h" >&6; }
28874
28875 fi
28876 if test "x$ac_cv_header_tcl_h" = x""yes; then
28877   :
28878 else
28879   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28880 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28881    { (exit 1); exit 1; }; }
28882 fi
28883
28884
28885     CPPFLAGS=$ac_save_CPPFLAGS
28886 fi
28887
28888 #
28889 # Check for DocBook and tools
28890 #
28891 for ac_prog in onsgmls nsgmls
28892 do
28893   # Extract the first word of "$ac_prog", so it can be a program name with args.
28894 set dummy $ac_prog; ac_word=$2
28895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28896 $as_echo_n "checking for $ac_word... " >&6; }
28897 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28898   $as_echo_n "(cached) " >&6
28899 else
28900   if test -n "$NSGMLS"; then
28901   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28902 else
28903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28904 for as_dir in $PATH
28905 do
28906   IFS=$as_save_IFS
28907   test -z "$as_dir" && as_dir=.
28908   for ac_exec_ext in '' $ac_executable_extensions; do
28909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28910     ac_cv_prog_NSGMLS="$ac_prog"
28911     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28912     break 2
28913   fi
28914 done
28915 done
28916 IFS=$as_save_IFS
28917
28918 fi
28919 fi
28920 NSGMLS=$ac_cv_prog_NSGMLS
28921 if test -n "$NSGMLS"; then
28922   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28923 $as_echo "$NSGMLS" >&6; }
28924 else
28925   { $as_echo "$as_me:$LINENO: result: no" >&5
28926 $as_echo "no" >&6; }
28927 fi
28928
28929
28930   test -n "$NSGMLS" && break
28931 done
28932
28933 for ac_prog in openjade jade
28934 do
28935   # Extract the first word of "$ac_prog", so it can be a program name with args.
28936 set dummy $ac_prog; ac_word=$2
28937 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28938 $as_echo_n "checking for $ac_word... " >&6; }
28939 if test "${ac_cv_prog_JADE+set}" = set; then
28940   $as_echo_n "(cached) " >&6
28941 else
28942   if test -n "$JADE"; then
28943   ac_cv_prog_JADE="$JADE" # Let the user override the test.
28944 else
28945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28946 for as_dir in $PATH
28947 do
28948   IFS=$as_save_IFS
28949   test -z "$as_dir" && as_dir=.
28950   for ac_exec_ext in '' $ac_executable_extensions; do
28951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28952     ac_cv_prog_JADE="$ac_prog"
28953     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28954     break 2
28955   fi
28956 done
28957 done
28958 IFS=$as_save_IFS
28959
28960 fi
28961 fi
28962 JADE=$ac_cv_prog_JADE
28963 if test -n "$JADE"; then
28964   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28965 $as_echo "$JADE" >&6; }
28966 else
28967   { $as_echo "$as_me:$LINENO: result: no" >&5
28968 $as_echo "no" >&6; }
28969 fi
28970
28971
28972   test -n "$JADE" && break
28973 done
28974
28975
28976 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28977 $as_echo_n "checking for DocBook V4.2... " >&6; }
28978 if test "${pgac_cv_check_docbook+set}" = set; then
28979   $as_echo_n "(cached) " >&6
28980 else
28981   cat >conftest.sgml <<EOF
28982 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28983 <book>
28984  <title>test</title>
28985  <chapter>
28986   <title>random</title>
28987    <sect1>
28988     <title>testsect</title>
28989     <para>text</para>
28990   </sect1>
28991  </chapter>
28992 </book>
28993 EOF
28994
28995 pgac_cv_check_docbook=no
28996
28997 if test -n "$NSGMLS"; then
28998   $NSGMLS -s conftest.sgml 1>&5 2>&1
28999   if test $? -eq 0; then
29000     pgac_cv_check_docbook=yes
29001   fi
29002 fi
29003 rm -f conftest.sgml
29004 fi
29005 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29006 $as_echo "$pgac_cv_check_docbook" >&6; }
29007
29008 have_docbook=$pgac_cv_check_docbook
29009
29010
29011 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29012 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29013 if test "${pgac_cv_path_stylesheets+set}" = set; then
29014   $as_echo_n "(cached) " >&6
29015 else
29016   if test -n "$DOCBOOKSTYLE"; then
29017   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29018 else
29019   for pgac_prefix in /usr /usr/local /opt /sw; do
29020     for pgac_infix in share lib; do
29021       for pgac_postfix in \
29022         sgml/stylesheets/nwalsh-modular \
29023         sgml/stylesheets/docbook \
29024         sgml/stylesheets/dsssl/docbook \
29025         sgml/docbook-dsssl \
29026         sgml/docbook/dsssl/modular \
29027         sgml/docbook/stylesheet/dsssl/modular \
29028         sgml/docbook/dsssl-stylesheets \
29029         sgml/dsssl/docbook-dsssl-nwalsh
29030       do
29031         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29032         if test -r "$pgac_candidate/html/docbook.dsl" \
29033            && test -r "$pgac_candidate/print/docbook.dsl"
29034         then
29035           pgac_cv_path_stylesheets=$pgac_candidate
29036           break 3
29037         fi
29038       done
29039     done
29040   done
29041 fi
29042 fi
29043
29044 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29045
29046 if test -n "$DOCBOOKSTYLE"; then
29047   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29048 $as_echo "$DOCBOOKSTYLE" >&6; }
29049 else
29050   { $as_echo "$as_me:$LINENO: result: no" >&5
29051 $as_echo "no" >&6; }
29052 fi
29053 if test -n "$DOCBOOKSTYLE"; then
29054   for ac_prog in collateindex.pl
29055 do
29056   # Extract the first word of "$ac_prog", so it can be a program name with args.
29057 set dummy $ac_prog; ac_word=$2
29058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29059 $as_echo_n "checking for $ac_word... " >&6; }
29060 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29061   $as_echo_n "(cached) " >&6
29062 else
29063   case $COLLATEINDEX in
29064   [\\/]* | ?:[\\/]*)
29065   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29066   ;;
29067   *)
29068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29069 for as_dir in $DOCBOOKSTYLE/bin $PATH
29070 do
29071   IFS=$as_save_IFS
29072   test -z "$as_dir" && as_dir=.
29073   for ac_exec_ext in '' $ac_executable_extensions; do
29074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29075     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29076     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29077     break 2
29078   fi
29079 done
29080 done
29081 IFS=$as_save_IFS
29082
29083   ;;
29084 esac
29085 fi
29086 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29087 if test -n "$COLLATEINDEX"; then
29088   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29089 $as_echo "$COLLATEINDEX" >&6; }
29090 else
29091   { $as_echo "$as_me:$LINENO: result: no" >&5
29092 $as_echo "no" >&6; }
29093 fi
29094
29095
29096   test -n "$COLLATEINDEX" && break
29097 done
29098
29099 else
29100   for ac_prog in collateindex.pl
29101 do
29102   # Extract the first word of "$ac_prog", so it can be a program name with args.
29103 set dummy $ac_prog; ac_word=$2
29104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29105 $as_echo_n "checking for $ac_word... " >&6; }
29106 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29107   $as_echo_n "(cached) " >&6
29108 else
29109   case $COLLATEINDEX in
29110   [\\/]* | ?:[\\/]*)
29111   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29112   ;;
29113   *)
29114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29115 for as_dir in $PATH
29116 do
29117   IFS=$as_save_IFS
29118   test -z "$as_dir" && as_dir=.
29119   for ac_exec_ext in '' $ac_executable_extensions; do
29120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29121     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29122     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29123     break 2
29124   fi
29125 done
29126 done
29127 IFS=$as_save_IFS
29128
29129   ;;
29130 esac
29131 fi
29132 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29133 if test -n "$COLLATEINDEX"; then
29134   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29135 $as_echo "$COLLATEINDEX" >&6; }
29136 else
29137   { $as_echo "$as_me:$LINENO: result: no" >&5
29138 $as_echo "no" >&6; }
29139 fi
29140
29141
29142   test -n "$COLLATEINDEX" && break
29143 done
29144
29145 fi
29146 for ac_prog in xsltproc
29147 do
29148   # Extract the first word of "$ac_prog", so it can be a program name with args.
29149 set dummy $ac_prog; ac_word=$2
29150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29151 $as_echo_n "checking for $ac_word... " >&6; }
29152 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29153   $as_echo_n "(cached) " >&6
29154 else
29155   if test -n "$XSLTPROC"; then
29156   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29157 else
29158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29159 for as_dir in $PATH
29160 do
29161   IFS=$as_save_IFS
29162   test -z "$as_dir" && as_dir=.
29163   for ac_exec_ext in '' $ac_executable_extensions; do
29164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29165     ac_cv_prog_XSLTPROC="$ac_prog"
29166     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29167     break 2
29168   fi
29169 done
29170 done
29171 IFS=$as_save_IFS
29172
29173 fi
29174 fi
29175 XSLTPROC=$ac_cv_prog_XSLTPROC
29176 if test -n "$XSLTPROC"; then
29177   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29178 $as_echo "$XSLTPROC" >&6; }
29179 else
29180   { $as_echo "$as_me:$LINENO: result: no" >&5
29181 $as_echo "no" >&6; }
29182 fi
29183
29184
29185   test -n "$XSLTPROC" && break
29186 done
29187
29188 for ac_prog in osx sgml2xml sx
29189 do
29190   # Extract the first word of "$ac_prog", so it can be a program name with args.
29191 set dummy $ac_prog; ac_word=$2
29192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29193 $as_echo_n "checking for $ac_word... " >&6; }
29194 if test "${ac_cv_prog_OSX+set}" = set; then
29195   $as_echo_n "(cached) " >&6
29196 else
29197   if test -n "$OSX"; then
29198   ac_cv_prog_OSX="$OSX" # Let the user override the test.
29199 else
29200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29201 for as_dir in $PATH
29202 do
29203   IFS=$as_save_IFS
29204   test -z "$as_dir" && as_dir=.
29205   for ac_exec_ext in '' $ac_executable_extensions; do
29206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29207     ac_cv_prog_OSX="$ac_prog"
29208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29209     break 2
29210   fi
29211 done
29212 done
29213 IFS=$as_save_IFS
29214
29215 fi
29216 fi
29217 OSX=$ac_cv_prog_OSX
29218 if test -n "$OSX"; then
29219   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29220 $as_echo "$OSX" >&6; }
29221 else
29222   { $as_echo "$as_me:$LINENO: result: no" >&5
29223 $as_echo "no" >&6; }
29224 fi
29225
29226
29227   test -n "$OSX" && break
29228 done
29229
29230
29231 # Thread testing
29232
29233 # We have to run the thread test near the end so we have all our symbols
29234 # defined.  Cross compiling throws a warning.
29235 #
29236 if test "$enable_thread_safety" = yes; then
29237 if test "$PORTNAME" != "win32"
29238 then
29239 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29240 $as_echo_n "checking thread safety of required library functions... " >&6; }
29241
29242 _CFLAGS="$CFLAGS"
29243 _LIBS="$LIBS"
29244 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29245 LIBS="$LIBS $PTHREAD_LIBS"
29246 if test "$cross_compiling" = yes; then
29247   { $as_echo "$as_me:$LINENO: result: maybe" >&5
29248 $as_echo "maybe" >&6; }
29249   { $as_echo "$as_me:$LINENO: WARNING:
29250 *** Skipping thread test program because of cross-compile build.
29251 *** Run the program in src/test/thread on the target machine.
29252 " >&5
29253 $as_echo "$as_me: WARNING:
29254 *** Skipping thread test program because of cross-compile build.
29255 *** Run the program in src/test/thread on the target machine.
29256 " >&2;}
29257 else
29258   cat >conftest.$ac_ext <<_ACEOF
29259 /* confdefs.h.  */
29260 _ACEOF
29261 cat confdefs.h >>conftest.$ac_ext
29262 cat >>conftest.$ac_ext <<_ACEOF
29263 /* end confdefs.h.  */
29264 #include "$srcdir/src/test/thread/thread_test.c"
29265 _ACEOF
29266 rm -f conftest$ac_exeext
29267 if { (ac_try="$ac_link"
29268 case "(($ac_try" in
29269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29270   *) ac_try_echo=$ac_try;;
29271 esac
29272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29273 $as_echo "$ac_try_echo") >&5
29274   (eval "$ac_link") 2>&5
29275   ac_status=$?
29276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29278   { (case "(($ac_try" in
29279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29280   *) ac_try_echo=$ac_try;;
29281 esac
29282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29283 $as_echo "$ac_try_echo") >&5
29284   (eval "$ac_try") 2>&5
29285   ac_status=$?
29286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287   (exit $ac_status); }; }; then
29288   { $as_echo "$as_me:$LINENO: result: yes" >&5
29289 $as_echo "yes" >&6; }
29290 else
29291   $as_echo "$as_me: program exited with status $ac_status" >&5
29292 $as_echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29294
29295 ( exit $ac_status )
29296 { $as_echo "$as_me:$LINENO: result: no" >&5
29297 $as_echo "no" >&6; }
29298   { { $as_echo "$as_me:$LINENO: error: thread test program failed
29299 This platform is not thread-safe.  Check the file 'config.log' or compile
29300 and run src/test/thread/thread_test for the exact reason.
29301 Use --disable-thread-safety to disable thread safety." >&5
29302 $as_echo "$as_me: error: thread test program failed
29303 This platform is not thread-safe.  Check the file 'config.log' or compile
29304 and run src/test/thread/thread_test for the exact reason.
29305 Use --disable-thread-safety to disable thread safety." >&2;}
29306    { (exit 1); exit 1; }; }
29307 fi
29308 rm -rf conftest.dSYM
29309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29310 fi
29311
29312
29313 CFLAGS="$_CFLAGS"
29314 LIBS="$_LIBS"
29315 else
29316 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29317 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29318 fi
29319 fi
29320
29321 # If compiler will take -Wl,--as-needed (or various platform-specific
29322 # spellings thereof) then add that to LDFLAGS.  This is much easier than
29323 # trying to filter LIBS to the minimum for each executable.
29324 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29325 # libreadline; therefore we postpone testing it until we know what library
29326 # dependencies readline has.  The test code will try to link with $LIBS.
29327 if test "$with_readline" = yes; then
29328   link_test_func=readline
29329 else
29330   link_test_func=exit
29331 fi
29332
29333 if test "$PORTNAME" = "darwin"; then
29334   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29335 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29336 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29337   $as_echo_n "(cached) " >&6
29338 else
29339   pgac_save_LDFLAGS=$LDFLAGS
29340 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29341 if test "$cross_compiling" = yes; then
29342   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29343 else
29344   cat >conftest.$ac_ext <<_ACEOF
29345 /* confdefs.h.  */
29346 _ACEOF
29347 cat confdefs.h >>conftest.$ac_ext
29348 cat >>conftest.$ac_ext <<_ACEOF
29349 /* end confdefs.h.  */
29350 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29351 int
29352 main ()
29353 {
29354
29355   ;
29356   return 0;
29357 }
29358 _ACEOF
29359 rm -f conftest$ac_exeext
29360 if { (ac_try="$ac_link"
29361 case "(($ac_try" in
29362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29363   *) ac_try_echo=$ac_try;;
29364 esac
29365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29366 $as_echo "$ac_try_echo") >&5
29367   (eval "$ac_link") 2>&5
29368   ac_status=$?
29369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29371   { (case "(($ac_try" in
29372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29373   *) ac_try_echo=$ac_try;;
29374 esac
29375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29376 $as_echo "$ac_try_echo") >&5
29377   (eval "$ac_try") 2>&5
29378   ac_status=$?
29379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380   (exit $ac_status); }; }; then
29381   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29382 else
29383   $as_echo "$as_me: program exited with status $ac_status" >&5
29384 $as_echo "$as_me: failed program was:" >&5
29385 sed 's/^/| /' conftest.$ac_ext >&5
29386
29387 ( exit $ac_status )
29388 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29389 fi
29390 rm -rf conftest.dSYM
29391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29392 fi
29393
29394
29395 LDFLAGS="$pgac_save_LDFLAGS"
29396 fi
29397 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29398 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29399 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29400   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29401 fi
29402
29403 elif test "$PORTNAME" = "openbsd"; then
29404   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29405 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29406 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29407   $as_echo_n "(cached) " >&6
29408 else
29409   pgac_save_LDFLAGS=$LDFLAGS
29410 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29411 if test "$cross_compiling" = yes; then
29412   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29413 else
29414   cat >conftest.$ac_ext <<_ACEOF
29415 /* confdefs.h.  */
29416 _ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h.  */
29420 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29421 int
29422 main ()
29423 {
29424
29425   ;
29426   return 0;
29427 }
29428 _ACEOF
29429 rm -f conftest$ac_exeext
29430 if { (ac_try="$ac_link"
29431 case "(($ac_try" in
29432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433   *) ac_try_echo=$ac_try;;
29434 esac
29435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29436 $as_echo "$ac_try_echo") >&5
29437   (eval "$ac_link") 2>&5
29438   ac_status=$?
29439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29441   { (case "(($ac_try" in
29442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443   *) ac_try_echo=$ac_try;;
29444 esac
29445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29446 $as_echo "$ac_try_echo") >&5
29447   (eval "$ac_try") 2>&5
29448   ac_status=$?
29449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450   (exit $ac_status); }; }; then
29451   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29452 else
29453   $as_echo "$as_me: program exited with status $ac_status" >&5
29454 $as_echo "$as_me: failed program was:" >&5
29455 sed 's/^/| /' conftest.$ac_ext >&5
29456
29457 ( exit $ac_status )
29458 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29459 fi
29460 rm -rf conftest.dSYM
29461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29462 fi
29463
29464
29465 LDFLAGS="$pgac_save_LDFLAGS"
29466 fi
29467 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29468 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29469 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29470   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29471 fi
29472
29473 else
29474   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29475 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29476 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29477   $as_echo_n "(cached) " >&6
29478 else
29479   pgac_save_LDFLAGS=$LDFLAGS
29480 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29481 if test "$cross_compiling" = yes; then
29482   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29483 else
29484   cat >conftest.$ac_ext <<_ACEOF
29485 /* confdefs.h.  */
29486 _ACEOF
29487 cat confdefs.h >>conftest.$ac_ext
29488 cat >>conftest.$ac_ext <<_ACEOF
29489 /* end confdefs.h.  */
29490 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29491 int
29492 main ()
29493 {
29494
29495   ;
29496   return 0;
29497 }
29498 _ACEOF
29499 rm -f conftest$ac_exeext
29500 if { (ac_try="$ac_link"
29501 case "(($ac_try" in
29502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503   *) ac_try_echo=$ac_try;;
29504 esac
29505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29506 $as_echo "$ac_try_echo") >&5
29507   (eval "$ac_link") 2>&5
29508   ac_status=$?
29509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29511   { (case "(($ac_try" in
29512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29513   *) ac_try_echo=$ac_try;;
29514 esac
29515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29516 $as_echo "$ac_try_echo") >&5
29517   (eval "$ac_try") 2>&5
29518   ac_status=$?
29519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520   (exit $ac_status); }; }; then
29521   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29522 else
29523   $as_echo "$as_me: program exited with status $ac_status" >&5
29524 $as_echo "$as_me: failed program was:" >&5
29525 sed 's/^/| /' conftest.$ac_ext >&5
29526
29527 ( exit $ac_status )
29528 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29529 fi
29530 rm -rf conftest.dSYM
29531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29532 fi
29533
29534
29535 LDFLAGS="$pgac_save_LDFLAGS"
29536 fi
29537 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29538 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29539 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29540   LDFLAGS="$LDFLAGS -Wl,--as-needed"
29541 fi
29542
29543 fi
29544
29545
29546 # Begin output steps
29547
29548 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29549 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29550 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29551 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29552 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29553 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29554
29555 # Create compiler version string
29556 if test x"$GCC" = x"yes" ; then
29557   cc_string="GCC `${CC} --version | sed q`"
29558 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29559   cc_string=`${CC} -V 2>&1 | sed q`
29560 else
29561   cc_string=$CC
29562 fi
29563
29564
29565 cat >>confdefs.h <<_ACEOF
29566 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29567 _ACEOF
29568
29569
29570 # Supply a numeric version string for use by 3rd party add-ons
29571 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29572 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29573 tr '.' '        ' |
29574 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29575
29576 cat >>confdefs.h <<_ACEOF
29577 #define PG_VERSION_NUM $PG_VERSION_NUM
29578 _ACEOF
29579
29580
29581
29582 # prepare build tree if outside source tree
29583 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29584 # Note 2: /bin/pwd might be better than shell's built-in at getting
29585 #         a symlink-free name.
29586 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29587   vpath_build=no
29588 else
29589   vpath_build=yes
29590   if test "$no_create" != yes; then
29591     $as_echo_n "preparing build tree... " >&6
29592     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29593     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29594       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29595 $as_echo "$as_me: error: failed" >&2;}
29596    { (exit 1); exit 1; }; }
29597     { $as_echo "$as_me:$LINENO: result: done" >&5
29598 $as_echo "done" >&6; }
29599   fi
29600 fi
29601
29602
29603
29604 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29605
29606
29607 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}"
29608
29609
29610 if test "$PORTNAME" = "win32"; then
29611 ac_config_commands="$ac_config_commands check_win32_symlinks"
29612
29613 fi
29614
29615 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29616
29617
29618 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29619
29620
29621 cat >confcache <<\_ACEOF
29622 # This file is a shell script that caches the results of configure
29623 # tests run on this system so they can be shared between configure
29624 # scripts and configure runs, see configure's option --config-cache.
29625 # It is not useful on other systems.  If it contains results you don't
29626 # want to keep, you may remove or edit it.
29627 #
29628 # config.status only pays attention to the cache file if you give it
29629 # the --recheck option to rerun configure.
29630 #
29631 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29632 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29633 # following values.
29634
29635 _ACEOF
29636
29637 # The following way of writing the cache mishandles newlines in values,
29638 # but we know of no workaround that is simple, portable, and efficient.
29639 # So, we kill variables containing newlines.
29640 # Ultrix sh set writes to stderr and can't be redirected directly,
29641 # and sets the high bit in the cache file unless we assign to the vars.
29642 (
29643   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29644     eval ac_val=\$$ac_var
29645     case $ac_val in #(
29646     *${as_nl}*)
29647       case $ac_var in #(
29648       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29649 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29650       esac
29651       case $ac_var in #(
29652       _ | IFS | as_nl) ;; #(
29653       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29654       *) $as_unset $ac_var ;;
29655       esac ;;
29656     esac
29657   done
29658
29659   (set) 2>&1 |
29660     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29661     *${as_nl}ac_space=\ *)
29662       # `set' does not quote correctly, so add quotes (double-quote
29663       # substitution turns \\\\ into \\, and sed turns \\ into \).
29664       sed -n \
29665         "s/'/'\\\\''/g;
29666           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29667       ;; #(
29668     *)
29669       # `set' quotes correctly as required by POSIX, so do not add quotes.
29670       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29671       ;;
29672     esac |
29673     sort
29674 ) |
29675   sed '
29676      /^ac_cv_env_/b end
29677      t clear
29678      :clear
29679      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29680      t end
29681      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29682      :end' >>confcache
29683 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29684   if test -w "$cache_file"; then
29685     test "x$cache_file" != "x/dev/null" &&
29686       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29687 $as_echo "$as_me: updating cache $cache_file" >&6;}
29688     cat confcache >$cache_file
29689   else
29690     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29691 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29692   fi
29693 fi
29694 rm -f confcache
29695
29696 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29697 # Let make expand exec_prefix.
29698 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29699
29700 DEFS=-DHAVE_CONFIG_H
29701
29702 ac_libobjs=
29703 ac_ltlibobjs=
29704 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29705   # 1. Remove the extension, and $U if already installed.
29706   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29707   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29708   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29709   #    will be set to the directory where LIBOBJS objects are built.
29710   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29711   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29712 done
29713 LIBOBJS=$ac_libobjs
29714
29715 LTLIBOBJS=$ac_ltlibobjs
29716
29717
29718
29719
29720 : ${CONFIG_STATUS=./config.status}
29721 ac_write_fail=0
29722 ac_clean_files_save=$ac_clean_files
29723 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29724 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29725 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29726 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29727 #! $SHELL
29728 # Generated by $as_me.
29729 # Run this file to recreate the current configuration.
29730 # Compiler output produced by configure, useful for debugging
29731 # configure, is in config.log if it exists.
29732
29733 debug=false
29734 ac_cs_recheck=false
29735 ac_cs_silent=false
29736 SHELL=\${CONFIG_SHELL-$SHELL}
29737 _ACEOF
29738
29739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29740 ## --------------------- ##
29741 ## M4sh Initialization.  ##
29742 ## --------------------- ##
29743
29744 # Be more Bourne compatible
29745 DUALCASE=1; export DUALCASE # for MKS sh
29746 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29747   emulate sh
29748   NULLCMD=:
29749   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29750   # is contrary to our usage.  Disable this feature.
29751   alias -g '${1+"$@"}'='"$@"'
29752   setopt NO_GLOB_SUBST
29753 else
29754   case `(set -o) 2>/dev/null` in
29755   *posix*) set -o posix ;;
29756 esac
29757
29758 fi
29759
29760
29761
29762
29763 # PATH needs CR
29764 # Avoid depending upon Character Ranges.
29765 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29766 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29767 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29768 as_cr_digits='0123456789'
29769 as_cr_alnum=$as_cr_Letters$as_cr_digits
29770
29771 as_nl='
29772 '
29773 export as_nl
29774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29775 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29778 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29779   as_echo='printf %s\n'
29780   as_echo_n='printf %s'
29781 else
29782   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29783     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29784     as_echo_n='/usr/ucb/echo -n'
29785   else
29786     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29787     as_echo_n_body='eval
29788       arg=$1;
29789       case $arg in
29790       *"$as_nl"*)
29791         expr "X$arg" : "X\\(.*\\)$as_nl";
29792         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29793       esac;
29794       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29795     '
29796     export as_echo_n_body
29797     as_echo_n='sh -c $as_echo_n_body as_echo'
29798   fi
29799   export as_echo_body
29800   as_echo='sh -c $as_echo_body as_echo'
29801 fi
29802
29803 # The user is always right.
29804 if test "${PATH_SEPARATOR+set}" != set; then
29805   PATH_SEPARATOR=:
29806   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29807     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29808       PATH_SEPARATOR=';'
29809   }
29810 fi
29811
29812 # Support unset when possible.
29813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29814   as_unset=unset
29815 else
29816   as_unset=false
29817 fi
29818
29819
29820 # IFS
29821 # We need space, tab and new line, in precisely that order.  Quoting is
29822 # there to prevent editors from complaining about space-tab.
29823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29824 # splitting by setting IFS to empty value.)
29825 IFS=" ""        $as_nl"
29826
29827 # Find who we are.  Look in the path if we contain no directory separator.
29828 case $0 in
29829   *[\\/]* ) as_myself=$0 ;;
29830   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29831 for as_dir in $PATH
29832 do
29833   IFS=$as_save_IFS
29834   test -z "$as_dir" && as_dir=.
29835   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29836 done
29837 IFS=$as_save_IFS
29838
29839      ;;
29840 esac
29841 # We did not find ourselves, most probably we were run as `sh COMMAND'
29842 # in which case we are not to be found in the path.
29843 if test "x$as_myself" = x; then
29844   as_myself=$0
29845 fi
29846 if test ! -f "$as_myself"; then
29847   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29848   { (exit 1); exit 1; }
29849 fi
29850
29851 # Work around bugs in pre-3.0 UWIN ksh.
29852 for as_var in ENV MAIL MAILPATH
29853 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29854 done
29855 PS1='$ '
29856 PS2='> '
29857 PS4='+ '
29858
29859 # NLS nuisances.
29860 LC_ALL=C
29861 export LC_ALL
29862 LANGUAGE=C
29863 export LANGUAGE
29864
29865 # Required to use basename.
29866 if expr a : '\(a\)' >/dev/null 2>&1 &&
29867    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29868   as_expr=expr
29869 else
29870   as_expr=false
29871 fi
29872
29873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29874   as_basename=basename
29875 else
29876   as_basename=false
29877 fi
29878
29879
29880 # Name of the executable.
29881 as_me=`$as_basename -- "$0" ||
29882 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29883          X"$0" : 'X\(//\)$' \| \
29884          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29885 $as_echo X/"$0" |
29886     sed '/^.*\/\([^/][^/]*\)\/*$/{
29887             s//\1/
29888             q
29889           }
29890           /^X\/\(\/\/\)$/{
29891             s//\1/
29892             q
29893           }
29894           /^X\/\(\/\).*/{
29895             s//\1/
29896             q
29897           }
29898           s/.*/./; q'`
29899
29900 # CDPATH.
29901 $as_unset CDPATH
29902
29903
29904
29905   as_lineno_1=$LINENO
29906   as_lineno_2=$LINENO
29907   test "x$as_lineno_1" != "x$as_lineno_2" &&
29908   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29909
29910   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29911   # uniformly replaced by the line number.  The first 'sed' inserts a
29912   # line-number line after each line using $LINENO; the second 'sed'
29913   # does the real work.  The second script uses 'N' to pair each
29914   # line-number line with the line containing $LINENO, and appends
29915   # trailing '-' during substitution so that $LINENO is not a special
29916   # case at line end.
29917   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29918   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29919   # E. McMahon (1931-1989) for sed's syntax.  :-)
29920   sed -n '
29921     p
29922     /[$]LINENO/=
29923   ' <$as_myself |
29924     sed '
29925       s/[$]LINENO.*/&-/
29926       t lineno
29927       b
29928       :lineno
29929       N
29930       :loop
29931       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29932       t loop
29933       s/-\n.*//
29934     ' >$as_me.lineno &&
29935   chmod +x "$as_me.lineno" ||
29936     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29937    { (exit 1); exit 1; }; }
29938
29939   # Don't try to exec as it changes $[0], causing all sort of problems
29940   # (the dirname of $[0] is not the place where we might find the
29941   # original and so on.  Autoconf is especially sensitive to this).
29942   . "./$as_me.lineno"
29943   # Exit status is that of the last command.
29944   exit
29945 }
29946
29947
29948 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29949   as_dirname=dirname
29950 else
29951   as_dirname=false
29952 fi
29953
29954 ECHO_C= ECHO_N= ECHO_T=
29955 case `echo -n x` in
29956 -n*)
29957   case `echo 'x\c'` in
29958   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29959   *)   ECHO_C='\c';;
29960   esac;;
29961 *)
29962   ECHO_N='-n';;
29963 esac
29964 if expr a : '\(a\)' >/dev/null 2>&1 &&
29965    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29966   as_expr=expr
29967 else
29968   as_expr=false
29969 fi
29970
29971 rm -f conf$$ conf$$.exe conf$$.file
29972 if test -d conf$$.dir; then
29973   rm -f conf$$.dir/conf$$.file
29974 else
29975   rm -f conf$$.dir
29976   mkdir conf$$.dir 2>/dev/null
29977 fi
29978 if (echo >conf$$.file) 2>/dev/null; then
29979   if ln -s conf$$.file conf$$ 2>/dev/null; then
29980     as_ln_s='ln -s'
29981     # ... but there are two gotchas:
29982     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29983     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29984     # In both cases, we have to default to `cp -p'.
29985     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29986       as_ln_s='cp -p'
29987   elif ln conf$$.file conf$$ 2>/dev/null; then
29988     as_ln_s=ln
29989   else
29990     as_ln_s='cp -p'
29991   fi
29992 else
29993   as_ln_s='cp -p'
29994 fi
29995 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29996 rmdir conf$$.dir 2>/dev/null
29997
29998 if mkdir -p . 2>/dev/null; then
29999   as_mkdir_p=:
30000 else
30001   test -d ./-p && rmdir ./-p
30002   as_mkdir_p=false
30003 fi
30004
30005 if test -x / >/dev/null 2>&1; then
30006   as_test_x='test -x'
30007 else
30008   if ls -dL / >/dev/null 2>&1; then
30009     as_ls_L_option=L
30010   else
30011     as_ls_L_option=
30012   fi
30013   as_test_x='
30014     eval sh -c '\''
30015       if test -d "$1"; then
30016         test -d "$1/.";
30017       else
30018         case $1 in
30019         -*)set "./$1";;
30020         esac;
30021         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30022         ???[sx]*):;;*)false;;esac;fi
30023     '\'' sh
30024   '
30025 fi
30026 as_executable_p=$as_test_x
30027
30028 # Sed expression to map a string onto a valid CPP name.
30029 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30030
30031 # Sed expression to map a string onto a valid variable name.
30032 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30033
30034
30035 exec 6>&1
30036
30037 # Save the log message, to keep $[0] and so on meaningful, and to
30038 # report actual input values of CONFIG_FILES etc. instead of their
30039 # values after options handling.
30040 ac_log="
30041 This file was extended by PostgreSQL $as_me 9.1devel, which was
30042 generated by GNU Autoconf 2.63.  Invocation command line was
30043
30044   CONFIG_FILES    = $CONFIG_FILES
30045   CONFIG_HEADERS  = $CONFIG_HEADERS
30046   CONFIG_LINKS    = $CONFIG_LINKS
30047   CONFIG_COMMANDS = $CONFIG_COMMANDS
30048   $ $0 $@
30049
30050 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30051 "
30052
30053 _ACEOF
30054
30055 case $ac_config_files in *"
30056 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30057 esac
30058
30059 case $ac_config_headers in *"
30060 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30061 esac
30062
30063
30064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30065 # Files that config.status was made for.
30066 config_files="$ac_config_files"
30067 config_headers="$ac_config_headers"
30068 config_links="$ac_config_links"
30069 config_commands="$ac_config_commands"
30070
30071 _ACEOF
30072
30073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30074 ac_cs_usage="\
30075 \`$as_me' instantiates files from templates according to the
30076 current configuration.
30077
30078 Usage: $0 [OPTION]... [FILE]...
30079
30080   -h, --help       print this help, then exit
30081   -V, --version    print version number and configuration settings, then exit
30082   -q, --quiet, --silent
30083                    do not print progress messages
30084   -d, --debug      don't remove temporary files
30085       --recheck    update $as_me by reconfiguring in the same conditions
30086       --file=FILE[:TEMPLATE]
30087                    instantiate the configuration file FILE
30088       --header=FILE[:TEMPLATE]
30089                    instantiate the configuration header FILE
30090
30091 Configuration files:
30092 $config_files
30093
30094 Configuration headers:
30095 $config_headers
30096
30097 Configuration links:
30098 $config_links
30099
30100 Configuration commands:
30101 $config_commands
30102
30103 Report bugs to <bug-autoconf@gnu.org>."
30104
30105 _ACEOF
30106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30107 ac_cs_version="\\
30108 PostgreSQL config.status 9.1devel
30109 configured by $0, generated by GNU Autoconf 2.63,
30110   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30111
30112 Copyright (C) 2008 Free Software Foundation, Inc.
30113 This config.status script is free software; the Free Software Foundation
30114 gives unlimited permission to copy, distribute and modify it."
30115
30116 ac_pwd='$ac_pwd'
30117 srcdir='$srcdir'
30118 MKDIR_P='$MKDIR_P'
30119 AWK='$AWK'
30120 test -n "\$AWK" || AWK=awk
30121 _ACEOF
30122
30123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30124 # The default lists apply if the user does not specify any file.
30125 ac_need_defaults=:
30126 while test $# != 0
30127 do
30128   case $1 in
30129   --*=*)
30130     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30131     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30132     ac_shift=:
30133     ;;
30134   *)
30135     ac_option=$1
30136     ac_optarg=$2
30137     ac_shift=shift
30138     ;;
30139   esac
30140
30141   case $ac_option in
30142   # Handling of the options.
30143   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30144     ac_cs_recheck=: ;;
30145   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30146     $as_echo "$ac_cs_version"; exit ;;
30147   --debug | --debu | --deb | --de | --d | -d )
30148     debug=: ;;
30149   --file | --fil | --fi | --f )
30150     $ac_shift
30151     case $ac_optarg in
30152     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30153     esac
30154     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30155     ac_need_defaults=false;;
30156   --header | --heade | --head | --hea )
30157     $ac_shift
30158     case $ac_optarg in
30159     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30160     esac
30161     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30162     ac_need_defaults=false;;
30163   --he | --h)
30164     # Conflict between --help and --header
30165     { $as_echo "$as_me: error: ambiguous option: $1
30166 Try \`$0 --help' for more information." >&2
30167    { (exit 1); exit 1; }; };;
30168   --help | --hel | -h )
30169     $as_echo "$ac_cs_usage"; exit ;;
30170   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30171   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30172     ac_cs_silent=: ;;
30173
30174   # This is an error.
30175   -*) { $as_echo "$as_me: error: unrecognized option: $1
30176 Try \`$0 --help' for more information." >&2
30177    { (exit 1); exit 1; }; } ;;
30178
30179   *) ac_config_targets="$ac_config_targets $1"
30180      ac_need_defaults=false ;;
30181
30182   esac
30183   shift
30184 done
30185
30186 ac_configure_extra_args=
30187
30188 if $ac_cs_silent; then
30189   exec 6>/dev/null
30190   ac_configure_extra_args="$ac_configure_extra_args --silent"
30191 fi
30192
30193 _ACEOF
30194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30195 if \$ac_cs_recheck; then
30196   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30197   shift
30198   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30199   CONFIG_SHELL='$SHELL'
30200   export CONFIG_SHELL
30201   exec "\$@"
30202 fi
30203
30204 _ACEOF
30205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30206 exec 5>>config.log
30207 {
30208   echo
30209   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30210 ## Running $as_me. ##
30211 _ASBOX
30212   $as_echo "$ac_log"
30213 } >&5
30214
30215 _ACEOF
30216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30217 _ACEOF
30218
30219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30220
30221 # Handling of arguments.
30222 for ac_config_target in $ac_config_targets
30223 do
30224   case $ac_config_target in
30225     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30226     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30227     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30228     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30229     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30230     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30231     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30232     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30233     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30234     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30235     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30236     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30237     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30238
30239   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30240 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30241    { (exit 1); exit 1; }; };;
30242   esac
30243 done
30244
30245
30246 # If the user did not use the arguments to specify the items to instantiate,
30247 # then the envvar interface is used.  Set only those that are not.
30248 # We use the long form for the default assignment because of an extremely
30249 # bizarre bug on SunOS 4.1.3.
30250 if $ac_need_defaults; then
30251   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30252   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30253   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30254   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30255 fi
30256
30257 # Have a temporary directory for convenience.  Make it in the build tree
30258 # simply because there is no reason against having it here, and in addition,
30259 # creating and moving files from /tmp can sometimes cause problems.
30260 # Hook for its removal unless debugging.
30261 # Note that there is a small window in which the directory will not be cleaned:
30262 # after its creation but before its name has been assigned to `$tmp'.
30263 $debug ||
30264 {
30265   tmp=
30266   trap 'exit_status=$?
30267   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30268 ' 0
30269   trap '{ (exit 1); exit 1; }' 1 2 13 15
30270 }
30271 # Create a (secure) tmp directory for tmp files.
30272
30273 {
30274   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30275   test -n "$tmp" && test -d "$tmp"
30276 }  ||
30277 {
30278   tmp=./conf$$-$RANDOM
30279   (umask 077 && mkdir "$tmp")
30280 } ||
30281 {
30282    $as_echo "$as_me: cannot create a temporary directory in ." >&2
30283    { (exit 1); exit 1; }
30284 }
30285
30286 # Set up the scripts for CONFIG_FILES section.
30287 # No need to generate them if there are no CONFIG_FILES.
30288 # This happens for instance with `./config.status config.h'.
30289 if test -n "$CONFIG_FILES"; then
30290
30291
30292 ac_cr='\r'
30293 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30294 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30295   ac_cs_awk_cr='\\r'
30296 else
30297   ac_cs_awk_cr=$ac_cr
30298 fi
30299
30300 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30301 _ACEOF
30302
30303
30304 {
30305   echo "cat >conf$$subs.awk <<_ACEOF" &&
30306   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30307   echo "_ACEOF"
30308 } >conf$$subs.sh ||
30309   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30310 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30311    { (exit 1); exit 1; }; }
30312 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30313 ac_delim='%!_!# '
30314 for ac_last_try in false false false false false :; do
30315   . ./conf$$subs.sh ||
30316     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30317 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30318    { (exit 1); exit 1; }; }
30319
30320   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30321   if test $ac_delim_n = $ac_delim_num; then
30322     break
30323   elif $ac_last_try; then
30324     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30325 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30326    { (exit 1); exit 1; }; }
30327   else
30328     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30329   fi
30330 done
30331 rm -f conf$$subs.sh
30332
30333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30334 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30335 _ACEOF
30336 sed -n '
30337 h
30338 s/^/S["/; s/!.*/"]=/
30339 p
30340 g
30341 s/^[^!]*!//
30342 :repl
30343 t repl
30344 s/'"$ac_delim"'$//
30345 t delim
30346 :nl
30347 h
30348 s/\(.\{148\}\).*/\1/
30349 t more1
30350 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30351 p
30352 n
30353 b repl
30354 :more1
30355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30356 p
30357 g
30358 s/.\{148\}//
30359 t nl
30360 :delim
30361 h
30362 s/\(.\{148\}\).*/\1/
30363 t more2
30364 s/["\\]/\\&/g; s/^/"/; s/$/"/
30365 p
30366 b
30367 :more2
30368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30369 p
30370 g
30371 s/.\{148\}//
30372 t delim
30373 ' <conf$$subs.awk | sed '
30374 /^[^""]/{
30375   N
30376   s/\n//
30377 }
30378 ' >>$CONFIG_STATUS || ac_write_fail=1
30379 rm -f conf$$subs.awk
30380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30381 _ACAWK
30382 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30383   for (key in S) S_is_set[key] = 1
30384   FS = "\a"
30385
30386 }
30387 {
30388   line = $ 0
30389   nfields = split(line, field, "@")
30390   substed = 0
30391   len = length(field[1])
30392   for (i = 2; i < nfields; i++) {
30393     key = field[i]
30394     keylen = length(key)
30395     if (S_is_set[key]) {
30396       value = S[key]
30397       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30398       len += length(value) + length(field[++i])
30399       substed = 1
30400     } else
30401       len += 1 + keylen
30402   }
30403
30404   print line
30405 }
30406
30407 _ACAWK
30408 _ACEOF
30409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30410 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30411   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30412 else
30413   cat
30414 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30415   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30416 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30417    { (exit 1); exit 1; }; }
30418 _ACEOF
30419
30420 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30421 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30422 # trailing colons and then remove the whole line if VPATH becomes empty
30423 # (actually we leave an empty line to preserve line numbers).
30424 if test "x$srcdir" = x.; then
30425   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30426 s/:*\$(srcdir):*/:/
30427 s/:*\${srcdir}:*/:/
30428 s/:*@srcdir@:*/:/
30429 s/^\([^=]*=[     ]*\):*/\1/
30430 s/:*$//
30431 s/^[^=]*=[       ]*$//
30432 }'
30433 fi
30434
30435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30436 fi # test -n "$CONFIG_FILES"
30437
30438 # Set up the scripts for CONFIG_HEADERS section.
30439 # No need to generate them if there are no CONFIG_HEADERS.
30440 # This happens for instance with `./config.status Makefile'.
30441 if test -n "$CONFIG_HEADERS"; then
30442 cat >"$tmp/defines.awk" <<\_ACAWK ||
30443 BEGIN {
30444 _ACEOF
30445
30446 # Transform confdefs.h into an awk script `defines.awk', embedded as
30447 # here-document in config.status, that substitutes the proper values into
30448 # config.h.in to produce config.h.
30449
30450 # Create a delimiter string that does not exist in confdefs.h, to ease
30451 # handling of long lines.
30452 ac_delim='%!_!# '
30453 for ac_last_try in false false :; do
30454   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30455   if test -z "$ac_t"; then
30456     break
30457   elif $ac_last_try; then
30458     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30459 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30460    { (exit 1); exit 1; }; }
30461   else
30462     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30463   fi
30464 done
30465
30466 # For the awk script, D is an array of macro values keyed by name,
30467 # likewise P contains macro parameters if any.  Preserve backslash
30468 # newline sequences.
30469
30470 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30471 sed -n '
30472 s/.\{148\}/&'"$ac_delim"'/g
30473 t rset
30474 :rset
30475 s/^[     ]*#[    ]*define[       ][      ]*/ /
30476 t def
30477 d
30478 :def
30479 s/\\$//
30480 t bsnl
30481 s/["\\]/\\&/g
30482 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30483 D["\1"]=" \3"/p
30484 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30485 d
30486 :bsnl
30487 s/["\\]/\\&/g
30488 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30489 D["\1"]=" \3\\\\\\n"\\/p
30490 t cont
30491 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30492 t cont
30493 d
30494 :cont
30495 n
30496 s/.\{148\}/&'"$ac_delim"'/g
30497 t clear
30498 :clear
30499 s/\\$//
30500 t bsnlc
30501 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30502 d
30503 :bsnlc
30504 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30505 b cont
30506 ' <confdefs.h | sed '
30507 s/'"$ac_delim"'/"\\\
30508 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30509
30510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30511   for (key in D) D_is_set[key] = 1
30512   FS = "\a"
30513 }
30514 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30515   line = \$ 0
30516   split(line, arg, " ")
30517   if (arg[1] == "#") {
30518     defundef = arg[2]
30519     mac1 = arg[3]
30520   } else {
30521     defundef = substr(arg[1], 2)
30522     mac1 = arg[2]
30523   }
30524   split(mac1, mac2, "(") #)
30525   macro = mac2[1]
30526   prefix = substr(line, 1, index(line, defundef) - 1)
30527   if (D_is_set[macro]) {
30528     # Preserve the white space surrounding the "#".
30529     print prefix "define", macro P[macro] D[macro]
30530     next
30531   } else {
30532     # Replace #undef with comments.  This is necessary, for example,
30533     # in the case of _POSIX_SOURCE, which is predefined and required
30534     # on some systems where configure will not decide to define it.
30535     if (defundef == "undef") {
30536       print "/*", prefix defundef, macro, "*/"
30537       next
30538     }
30539   }
30540 }
30541 { print }
30542 _ACAWK
30543 _ACEOF
30544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30545   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30546 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30547    { (exit 1); exit 1; }; }
30548 fi # test -n "$CONFIG_HEADERS"
30549
30550
30551 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30552 shift
30553 for ac_tag
30554 do
30555   case $ac_tag in
30556   :[FHLC]) ac_mode=$ac_tag; continue;;
30557   esac
30558   case $ac_mode$ac_tag in
30559   :[FHL]*:*);;
30560   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30561 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30562    { (exit 1); exit 1; }; };;
30563   :[FH]-) ac_tag=-:-;;
30564   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30565   esac
30566   ac_save_IFS=$IFS
30567   IFS=:
30568   set x $ac_tag
30569   IFS=$ac_save_IFS
30570   shift
30571   ac_file=$1
30572   shift
30573
30574   case $ac_mode in
30575   :L) ac_source=$1;;
30576   :[FH])
30577     ac_file_inputs=
30578     for ac_f
30579     do
30580       case $ac_f in
30581       -) ac_f="$tmp/stdin";;
30582       *) # Look for the file first in the build tree, then in the source tree
30583          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30584          # because $ac_f cannot contain `:'.
30585          test -f "$ac_f" ||
30586            case $ac_f in
30587            [\\/$]*) false;;
30588            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30589            esac ||
30590            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30591 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30592    { (exit 1); exit 1; }; };;
30593       esac
30594       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30595       ac_file_inputs="$ac_file_inputs '$ac_f'"
30596     done
30597
30598     # Let's still pretend it is `configure' which instantiates (i.e., don't
30599     # use $as_me), people would be surprised to read:
30600     #    /* config.h.  Generated by config.status.  */
30601     configure_input='Generated from '`
30602           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30603         `' by configure.'
30604     if test x"$ac_file" != x-; then
30605       configure_input="$ac_file.  $configure_input"
30606       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30607 $as_echo "$as_me: creating $ac_file" >&6;}
30608     fi
30609     # Neutralize special characters interpreted by sed in replacement strings.
30610     case $configure_input in #(
30611     *\&* | *\|* | *\\* )
30612        ac_sed_conf_input=`$as_echo "$configure_input" |
30613        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30614     *) ac_sed_conf_input=$configure_input;;
30615     esac
30616
30617     case $ac_tag in
30618     *:-:* | *:-) cat >"$tmp/stdin" \
30619       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30620 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30621    { (exit 1); exit 1; }; } ;;
30622     esac
30623     ;;
30624   esac
30625
30626   ac_dir=`$as_dirname -- "$ac_file" ||
30627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30628          X"$ac_file" : 'X\(//\)[^/]' \| \
30629          X"$ac_file" : 'X\(//\)$' \| \
30630          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30631 $as_echo X"$ac_file" |
30632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30633             s//\1/
30634             q
30635           }
30636           /^X\(\/\/\)[^/].*/{
30637             s//\1/
30638             q
30639           }
30640           /^X\(\/\/\)$/{
30641             s//\1/
30642             q
30643           }
30644           /^X\(\/\).*/{
30645             s//\1/
30646             q
30647           }
30648           s/.*/./; q'`
30649   { as_dir="$ac_dir"
30650   case $as_dir in #(
30651   -*) as_dir=./$as_dir;;
30652   esac
30653   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30654     as_dirs=
30655     while :; do
30656       case $as_dir in #(
30657       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30658       *) as_qdir=$as_dir;;
30659       esac
30660       as_dirs="'$as_qdir' $as_dirs"
30661       as_dir=`$as_dirname -- "$as_dir" ||
30662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30663          X"$as_dir" : 'X\(//\)[^/]' \| \
30664          X"$as_dir" : 'X\(//\)$' \| \
30665          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30666 $as_echo X"$as_dir" |
30667     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30668             s//\1/
30669             q
30670           }
30671           /^X\(\/\/\)[^/].*/{
30672             s//\1/
30673             q
30674           }
30675           /^X\(\/\/\)$/{
30676             s//\1/
30677             q
30678           }
30679           /^X\(\/\).*/{
30680             s//\1/
30681             q
30682           }
30683           s/.*/./; q'`
30684       test -d "$as_dir" && break
30685     done
30686     test -z "$as_dirs" || eval "mkdir $as_dirs"
30687   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30688 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30689    { (exit 1); exit 1; }; }; }
30690   ac_builddir=.
30691
30692 case "$ac_dir" in
30693 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30694 *)
30695   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30696   # A ".." for each directory in $ac_dir_suffix.
30697   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30698   case $ac_top_builddir_sub in
30699   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30700   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30701   esac ;;
30702 esac
30703 ac_abs_top_builddir=$ac_pwd
30704 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30705 # for backward compatibility:
30706 ac_top_builddir=$ac_top_build_prefix
30707
30708 case $srcdir in
30709   .)  # We are building in place.
30710     ac_srcdir=.
30711     ac_top_srcdir=$ac_top_builddir_sub
30712     ac_abs_top_srcdir=$ac_pwd ;;
30713   [\\/]* | ?:[\\/]* )  # Absolute name.
30714     ac_srcdir=$srcdir$ac_dir_suffix;
30715     ac_top_srcdir=$srcdir
30716     ac_abs_top_srcdir=$srcdir ;;
30717   *) # Relative name.
30718     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30719     ac_top_srcdir=$ac_top_build_prefix$srcdir
30720     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30721 esac
30722 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30723
30724
30725   case $ac_mode in
30726   :F)
30727   #
30728   # CONFIG_FILE
30729   #
30730
30731   ac_MKDIR_P=$MKDIR_P
30732   case $MKDIR_P in
30733   [\\/$]* | ?:[\\/]* ) ;;
30734   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30735   esac
30736 _ACEOF
30737
30738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30739 # If the template does not know about datarootdir, expand it.
30740 # FIXME: This hack should be removed a few years after 2.60.
30741 ac_datarootdir_hack=; ac_datarootdir_seen=
30742
30743 ac_sed_dataroot='
30744 /datarootdir/ {
30745   p
30746   q
30747 }
30748 /@datadir@/p
30749 /@docdir@/p
30750 /@infodir@/p
30751 /@localedir@/p
30752 /@mandir@/p
30753 '
30754 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30755 *datarootdir*) ac_datarootdir_seen=yes;;
30756 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30757   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30758 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30759 _ACEOF
30760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30761   ac_datarootdir_hack='
30762   s&@datadir@&$datadir&g
30763   s&@docdir@&$docdir&g
30764   s&@infodir@&$infodir&g
30765   s&@localedir@&$localedir&g
30766   s&@mandir@&$mandir&g
30767     s&\\\${datarootdir}&$datarootdir&g' ;;
30768 esac
30769 _ACEOF
30770
30771 # Neutralize VPATH when `$srcdir' = `.'.
30772 # Shell code in configure.ac might set extrasub.
30773 # FIXME: do we really want to maintain this feature?
30774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30775 ac_sed_extra="$ac_vpsub
30776 $extrasub
30777 _ACEOF
30778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30779 :t
30780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30781 s|@configure_input@|$ac_sed_conf_input|;t t
30782 s&@top_builddir@&$ac_top_builddir_sub&;t t
30783 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30784 s&@srcdir@&$ac_srcdir&;t t
30785 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30786 s&@top_srcdir@&$ac_top_srcdir&;t t
30787 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30788 s&@builddir@&$ac_builddir&;t t
30789 s&@abs_builddir@&$ac_abs_builddir&;t t
30790 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30791 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30792 $ac_datarootdir_hack
30793 "
30794 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30795   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30796 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30797    { (exit 1); exit 1; }; }
30798
30799 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30800   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30801   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30802   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30803 which seems to be undefined.  Please make sure it is defined." >&5
30804 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30805 which seems to be undefined.  Please make sure it is defined." >&2;}
30806
30807   rm -f "$tmp/stdin"
30808   case $ac_file in
30809   -) cat "$tmp/out" && rm -f "$tmp/out";;
30810   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30811   esac \
30812   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30813 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30814    { (exit 1); exit 1; }; }
30815  ;;
30816   :H)
30817   #
30818   # CONFIG_HEADER
30819   #
30820   if test x"$ac_file" != x-; then
30821     {
30822       $as_echo "/* $configure_input  */" \
30823       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30824     } >"$tmp/config.h" \
30825       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30826 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30827    { (exit 1); exit 1; }; }
30828     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30829       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30830 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30831     else
30832       rm -f "$ac_file"
30833       mv "$tmp/config.h" "$ac_file" \
30834         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30835 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30836    { (exit 1); exit 1; }; }
30837     fi
30838   else
30839     $as_echo "/* $configure_input  */" \
30840       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30841       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30842 $as_echo "$as_me: error: could not create -" >&2;}
30843    { (exit 1); exit 1; }; }
30844   fi
30845  ;;
30846   :L)
30847   #
30848   # CONFIG_LINK
30849   #
30850
30851   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30852     :
30853   else
30854     # Prefer the file from the source tree if names are identical.
30855     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30856       ac_source=$srcdir/$ac_source
30857     fi
30858
30859     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30860 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30861
30862     if test ! -r "$ac_source"; then
30863       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30864 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30865    { (exit 1); exit 1; }; }
30866     fi
30867     rm -f "$ac_file"
30868
30869     # Try a relative symlink, then a hard link, then a copy.
30870     case $srcdir in
30871     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30872         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30873     esac
30874     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30875       ln "$ac_source" "$ac_file" 2>/dev/null ||
30876       cp -p "$ac_source" "$ac_file" ||
30877       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30878 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30879    { (exit 1); exit 1; }; }
30880   fi
30881  ;;
30882   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30883 $as_echo "$as_me: executing $ac_file commands" >&6;}
30884  ;;
30885   esac
30886
30887
30888   case $ac_file$ac_mode in
30889     "check_win32_symlinks":C)
30890 # Links sometimes fail undetected on Mingw -
30891 # so here we detect it and warn the user
30892 for FILE in $CONFIG_LINKS
30893  do
30894         # test -e works for symlinks in the MinGW console
30895         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30896 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30897  done
30898  ;;
30899     "src/include/pg_config.h":H)
30900 # Update timestamp for pg_config.h (see Makefile.global)
30901 echo >src/include/stamp-h
30902  ;;
30903     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30904
30905   esac
30906 done # for ac_tag
30907
30908
30909 { (exit 0); exit 0; }
30910 _ACEOF
30911 chmod +x $CONFIG_STATUS
30912 ac_clean_files=$ac_clean_files_save
30913
30914 test $ac_write_fail = 0 ||
30915   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30916 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30917    { (exit 1); exit 1; }; }
30918
30919
30920 # configure is writing to config.log, and then calls config.status.
30921 # config.status does its own redirection, appending to config.log.
30922 # Unfortunately, on DOS this fails, as config.log is still kept open
30923 # by configure, so config.status won't be able to write to it; its
30924 # output is simply discarded.  So we exec the FD to /dev/null,
30925 # effectively closing config.log, so it can be properly (re)opened and
30926 # appended to by config.status.  When coming back to configure, we
30927 # need to make the FD available again.
30928 if test "$no_create" != yes; then
30929   ac_cs_success=:
30930   ac_config_status_args=
30931   test "$silent" = yes &&
30932     ac_config_status_args="$ac_config_status_args --quiet"
30933   exec 5>/dev/null
30934   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30935   exec 5>>config.log
30936   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30937   # would make configure fail if this is the last instruction.
30938   $ac_cs_success || { (exit 1); exit 1; }
30939 fi
30940 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30941   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30943 fi
30944