]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
17a2078f6acd705c2d7416e7624f617675ac295d
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 BUILD_DIR
654 TOP_DIR
655 TRUEPRG
656 FALSEPRG
657 VERSION
658 DATE
659 LSMDATE
660 CC
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 CXX
668 CXXFLAGS
669 ac_ct_CXX
670 CPP
671 GREP
672 EGREP
673 INSTALL_PROGRAM
674 INSTALL_SCRIPT
675 INSTALL_DATA
676 RANLIB
677 MV
678 RM
679 CP
680 SED
681 ECHO
682 CMP
683 TBL
684 AR
685 OPENSSL
686 MTX
687 DD
688 MKISOFS
689 PYTHON
690 GROWISOFS
691 DVDRWMEDIAINFO
692 DVDRWFORMAT
693 PKGCONFIG
694 QMAKE
695 QMAKEQT4
696 WXCONFIG
697 WXFLAGS
698 CDRECORD
699 PIDOF
700 AWK
701 ARFLAGS
702 MAKE_SHELL
703 LOCAL_LIBS
704 LOCAL_CFLAGS
705 LOCAL_LDFLAGS
706 LOCAL_DEFS
707 build
708 build_cpu
709 build_vendor
710 build_os
711 host
712 host_cpu
713 host_vendor
714 host_os
715 HAVE_SUN_OS_TRUE
716 HAVE_SUN_OS_FALSE
717 HAVE_OSF1_OS_TRUE
718 HAVE_OSF1_OS_FALSE
719 HAVE_AIX_OS_TRUE
720 HAVE_AIX_OS_FALSE
721 HAVE_HPUX_OS_TRUE
722 HAVE_HPUX_OS_FALSE
723 HAVE_LINUX_OS_TRUE
724 HAVE_LINUX_OS_FALSE
725 HAVE_FREEBSD_OS_TRUE
726 HAVE_FREEBSD_OS_FALSE
727 HAVE_NETBSD_OS_TRUE
728 HAVE_NETBSD_OS_FALSE
729 HAVE_OPENBSD_OS_TRUE
730 HAVE_OPENBSD_OS_FALSE
731 HAVE_BSDI_OS_TRUE
732 HAVE_BSDI_OS_FALSE
733 HAVE_SGI_OS_TRUE
734 HAVE_SGI_OS_FALSE
735 HAVE_IRIX_OS_TRUE
736 HAVE_IRIX_OS_FALSE
737 HAVE_DARWIN_OS_TRUE
738 HAVE_DARWIN_OS_FALSE
739 SET_MAKE
740 MKINSTALLDIRS
741 USE_NLS
742 MSGFMT
743 GMSGFMT
744 XGETTEXT
745 MSGMERGE
746 INTL_MACOSX_LIBS
747 LIBICONV
748 LTLIBICONV
749 INTLLIBS
750 LIBINTL
751 LTLIBINTL
752 POSUB
753 GLIBC2
754 ALLOCA
755 GLIBC21
756 HAVE_POSIX_PRINTF
757 HAVE_ASPRINTF
758 HAVE_SNPRINTF
759 HAVE_WPRINTF
760 INTLBISON
761 BUILD_INCLUDED_LIBINTL
762 USE_INCLUDED_LIBINTL
763 CATOBJEXT
764 DATADIRNAME
765 INSTOBJEXT
766 GENCAT
767 INTLOBJS
768 INTL_LIBTOOL_SUFFIX_PREFIX
769 BDB_CPPFLAGS
770 BDB_LIBS
771 GNOME_INCLUDEDIR
772 GNOMEUI_LIBS
773 GNOME_LIBDIR
774 GNOME_LIBS
775 GNOME_DIR
776 BAT_DIR
777 QWT_INC
778 QWT_LDFLAGS
779 QWT_LIB
780 QWT
781 WXCONS_CPPFLAGS
782 WXCONS_LDFLAGS
783 WX_DIR
784 TRAY_MONITOR_CPPFLAGS
785 TRAY_MONITOR_LDFLAGS
786 TRAY_MONITOR_DIR
787 TTOOL_LDFLAGS
788 STATIC_FD
789 STATIC_SD
790 STATIC_DIR
791 STATIC_CONS
792 STATIC_GNOME_CONS
793 STATIC_WX_CONS
794 ALL_DIRS
795 DIRD_DIR
796 DIR_TOOLS
797 STORED_DIR
798 CONS_INC
799 CONS_OBJ
800 CONS_SRC
801 CONS_LIBS
802 CONS_LDFLAGS
803 READLINE_SRC
804 PYTHON_LIBS
805 PYTHON_INCDIR
806 OPENSSL_LIBS
807 OPENSSL_INC
808 working_dir
809 archivedir
810 scriptdir
811 plugindir
812 dump_email
813 job_email
814 smtp_host
815 piddir
816 subsysdir
817 baseport
818 dir_port
819 fd_port
820 sd_port
821 dir_password
822 fd_password
823 sd_password
824 mon_dir_password
825 mon_fd_password
826 mon_sd_password
827 db_name
828 db_user
829 db_password
830 db_port
831 dir_user
832 dir_group
833 sd_user
834 sd_group
835 fd_user
836 fd_group
837 SBINPERM
838 SQL_LFLAGS
839 SQL_INCLUDE
840 SQL_BINDIR
841 DBI_DBD_DRIVERDIR
842 uncomment_dbi
843 DB_PROG
844 DB_PROG_LIB
845 cats
846 DB_TYPE
847 GETCONF
848 XMKMF
849 X_CFLAGS
850 X_PRE_LIBS
851 X_LIBS
852 X_EXTRA_LIBS
853 LIBOBJS
854 FDLIBS
855 DEBUG
856 DINCLUDE
857 DLIB
858 DB_LIBS
859 WCFLAGS
860 WLDFLAGS
861 WRAPLIBS
862 OBJLIST
863 hostname
864 TAPEDRIVE
865 PSCMD
866 WIN32
867 MACOSX
868 DISTNAME
869 DISTVER
870 LTLIBOBJS'
871 ac_subst_files='MCOMMON'
872       ac_precious_vars='build_alias
873 host_alias
874 target_alias
875 CC
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 CXX
881 CXXFLAGS
882 CCC
883 CPP
884 WXCONFIG
885 WXFLAGS
886 XMKMF'
887
888
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939   # If the previous option needs an argument, assign it.
940   if test -n "$ac_prev"; then
941     eval $ac_prev=\$ac_option
942     ac_prev=
943     continue
944   fi
945
946   case $ac_option in
947   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948   *)    ac_optarg=yes ;;
949   esac
950
951   # Accept the important Cygnus configure options, so we can diagnose typos.
952
953   case $ac_dashdash$ac_option in
954   --)
955     ac_dashdash=yes ;;
956
957   -bindir | --bindir | --bindi | --bind | --bin | --bi)
958     ac_prev=bindir ;;
959   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960     bindir=$ac_optarg ;;
961
962   -build | --build | --buil | --bui | --bu)
963     ac_prev=build_alias ;;
964   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965     build_alias=$ac_optarg ;;
966
967   -cache-file | --cache-file | --cache-fil | --cache-fi \
968   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969     ac_prev=cache_file ;;
970   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972     cache_file=$ac_optarg ;;
973
974   --config-cache | -C)
975     cache_file=config.cache ;;
976
977   -datadir | --datadir | --datadi | --datad)
978     ac_prev=datadir ;;
979   -datadir=* | --datadir=* | --datadi=* | --datad=*)
980     datadir=$ac_optarg ;;
981
982   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983   | --dataroo | --dataro | --datar)
984     ac_prev=datarootdir ;;
985   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987     datarootdir=$ac_optarg ;;
988
989   -disable-* | --disable-*)
990     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991     # Reject names that are not valid shell variable names.
992     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
993       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
994    { (exit 1); exit 1; }; }
995     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
996     eval enable_$ac_feature=no ;;
997
998   -docdir | --docdir | --docdi | --doc | --do)
999     ac_prev=docdir ;;
1000   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001     docdir=$ac_optarg ;;
1002
1003   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004     ac_prev=dvidir ;;
1005   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006     dvidir=$ac_optarg ;;
1007
1008   -enable-* | --enable-*)
1009     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010     # Reject names that are not valid shell variable names.
1011     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013    { (exit 1); exit 1; }; }
1014     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015     eval enable_$ac_feature=\$ac_optarg ;;
1016
1017   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019   | --exec | --exe | --ex)
1020     ac_prev=exec_prefix ;;
1021   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023   | --exec=* | --exe=* | --ex=*)
1024     exec_prefix=$ac_optarg ;;
1025
1026   -gas | --gas | --ga | --g)
1027     # Obsolete; use --with-gas.
1028     with_gas=yes ;;
1029
1030   -help | --help | --hel | --he | -h)
1031     ac_init_help=long ;;
1032   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033     ac_init_help=recursive ;;
1034   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035     ac_init_help=short ;;
1036
1037   -host | --host | --hos | --ho)
1038     ac_prev=host_alias ;;
1039   -host=* | --host=* | --hos=* | --ho=*)
1040     host_alias=$ac_optarg ;;
1041
1042   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043     ac_prev=htmldir ;;
1044   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045   | --ht=*)
1046     htmldir=$ac_optarg ;;
1047
1048   -includedir | --includedir | --includedi | --included | --include \
1049   | --includ | --inclu | --incl | --inc)
1050     ac_prev=includedir ;;
1051   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052   | --includ=* | --inclu=* | --incl=* | --inc=*)
1053     includedir=$ac_optarg ;;
1054
1055   -infodir | --infodir | --infodi | --infod | --info | --inf)
1056     ac_prev=infodir ;;
1057   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058     infodir=$ac_optarg ;;
1059
1060   -libdir | --libdir | --libdi | --libd)
1061     ac_prev=libdir ;;
1062   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063     libdir=$ac_optarg ;;
1064
1065   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066   | --libexe | --libex | --libe)
1067     ac_prev=libexecdir ;;
1068   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069   | --libexe=* | --libex=* | --libe=*)
1070     libexecdir=$ac_optarg ;;
1071
1072   -localedir | --localedir | --localedi | --localed | --locale)
1073     ac_prev=localedir ;;
1074   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075     localedir=$ac_optarg ;;
1076
1077   -localstatedir | --localstatedir | --localstatedi | --localstated \
1078   | --localstate | --localstat | --localsta | --localst | --locals)
1079     ac_prev=localstatedir ;;
1080   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082     localstatedir=$ac_optarg ;;
1083
1084   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085     ac_prev=mandir ;;
1086   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087     mandir=$ac_optarg ;;
1088
1089   -nfp | --nfp | --nf)
1090     # Obsolete; use --without-fp.
1091     with_fp=no ;;
1092
1093   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094   | --no-cr | --no-c | -n)
1095     no_create=yes ;;
1096
1097   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099     no_recursion=yes ;;
1100
1101   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103   | --oldin | --oldi | --old | --ol | --o)
1104     ac_prev=oldincludedir ;;
1105   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108     oldincludedir=$ac_optarg ;;
1109
1110   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111     ac_prev=prefix ;;
1112   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113     prefix=$ac_optarg ;;
1114
1115   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116   | --program-pre | --program-pr | --program-p)
1117     ac_prev=program_prefix ;;
1118   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120     program_prefix=$ac_optarg ;;
1121
1122   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123   | --program-suf | --program-su | --program-s)
1124     ac_prev=program_suffix ;;
1125   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127     program_suffix=$ac_optarg ;;
1128
1129   -program-transform-name | --program-transform-name \
1130   | --program-transform-nam | --program-transform-na \
1131   | --program-transform-n | --program-transform- \
1132   | --program-transform | --program-transfor \
1133   | --program-transfo | --program-transf \
1134   | --program-trans | --program-tran \
1135   | --progr-tra | --program-tr | --program-t)
1136     ac_prev=program_transform_name ;;
1137   -program-transform-name=* | --program-transform-name=* \
1138   | --program-transform-nam=* | --program-transform-na=* \
1139   | --program-transform-n=* | --program-transform-=* \
1140   | --program-transform=* | --program-transfor=* \
1141   | --program-transfo=* | --program-transf=* \
1142   | --program-trans=* | --program-tran=* \
1143   | --progr-tra=* | --program-tr=* | --program-t=*)
1144     program_transform_name=$ac_optarg ;;
1145
1146   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147     ac_prev=pdfdir ;;
1148   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149     pdfdir=$ac_optarg ;;
1150
1151   -psdir | --psdir | --psdi | --psd | --ps)
1152     ac_prev=psdir ;;
1153   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154     psdir=$ac_optarg ;;
1155
1156   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157   | -silent | --silent | --silen | --sile | --sil)
1158     silent=yes ;;
1159
1160   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161     ac_prev=sbindir ;;
1162   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163   | --sbi=* | --sb=*)
1164     sbindir=$ac_optarg ;;
1165
1166   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168   | --sharedst | --shareds | --shared | --share | --shar \
1169   | --sha | --sh)
1170     ac_prev=sharedstatedir ;;
1171   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174   | --sha=* | --sh=*)
1175     sharedstatedir=$ac_optarg ;;
1176
1177   -site | --site | --sit)
1178     ac_prev=site ;;
1179   -site=* | --site=* | --sit=*)
1180     site=$ac_optarg ;;
1181
1182   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183     ac_prev=srcdir ;;
1184   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185     srcdir=$ac_optarg ;;
1186
1187   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188   | --syscon | --sysco | --sysc | --sys | --sy)
1189     ac_prev=sysconfdir ;;
1190   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192     sysconfdir=$ac_optarg ;;
1193
1194   -target | --target | --targe | --targ | --tar | --ta | --t)
1195     ac_prev=target_alias ;;
1196   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197     target_alias=$ac_optarg ;;
1198
1199   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200     verbose=yes ;;
1201
1202   -version | --version | --versio | --versi | --vers | -V)
1203     ac_init_version=: ;;
1204
1205   -with-* | --with-*)
1206     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207     # Reject names that are not valid shell variable names.
1208     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209       { echo "$as_me: error: invalid package name: $ac_package" >&2
1210    { (exit 1); exit 1; }; }
1211     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1212     eval with_$ac_package=\$ac_optarg ;;
1213
1214   -without-* | --without-*)
1215     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216     # Reject names that are not valid shell variable names.
1217     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218       { echo "$as_me: error: invalid package name: $ac_package" >&2
1219    { (exit 1); exit 1; }; }
1220     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1221     eval with_$ac_package=no ;;
1222
1223   --x)
1224     # Obsolete; use --with-x.
1225     with_x=yes ;;
1226
1227   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228   | --x-incl | --x-inc | --x-in | --x-i)
1229     ac_prev=x_includes ;;
1230   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232     x_includes=$ac_optarg ;;
1233
1234   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236     ac_prev=x_libraries ;;
1237   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239     x_libraries=$ac_optarg ;;
1240
1241   -*) { echo "$as_me: error: unrecognized option: $ac_option
1242 Try \`$0 --help' for more information." >&2
1243    { (exit 1); exit 1; }; }
1244     ;;
1245
1246   *=*)
1247     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248     # Reject names that are not valid shell variable names.
1249     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1250       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1251    { (exit 1); exit 1; }; }
1252     eval $ac_envvar=\$ac_optarg
1253     export $ac_envvar ;;
1254
1255   *)
1256     # FIXME: should be removed in autoconf 3.0.
1257     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1261     ;;
1262
1263   esac
1264 done
1265
1266 if test -n "$ac_prev"; then
1267   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268   { echo "$as_me: error: missing argument to $ac_option" >&2
1269    { (exit 1); exit 1; }; }
1270 fi
1271
1272 # Be sure to have absolute directory names.
1273 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274                 datadir sysconfdir sharedstatedir localstatedir includedir \
1275                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276                 libdir localedir mandir
1277 do
1278   eval ac_val=\$$ac_var
1279   case $ac_val in
1280     [\\/$]* | ?:[\\/]* )  continue;;
1281     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282   esac
1283   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1284    { (exit 1); exit 1; }; }
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296   if test "x$build_alias" = x; then
1297     cross_compiling=maybe
1298     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299     If a cross compiler is detected then cross compile mode will be used." >&2
1300   elif test "x$build_alias" != "x$host_alias"; then
1301     cross_compiling=yes
1302   fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314   { echo "$as_me: error: Working directory cannot be determined" >&2
1315    { (exit 1); exit 1; }; }
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317   { echo "$as_me: error: pwd does not report name of working directory" >&2
1318    { (exit 1); exit 1; }; }
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323   ac_srcdir_defaulted=yes
1324   # Try the directory containing this script, then the parent directory.
1325   ac_confdir=`$as_dirname -- "$0" ||
1326 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327          X"$0" : 'X\(//\)[^/]' \| \
1328          X"$0" : 'X\(//\)$' \| \
1329          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1330 echo X"$0" |
1331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)[^/].*/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\).*/{
1344             s//\1/
1345             q
1346           }
1347           s/.*/./; q'`
1348   srcdir=$ac_confdir
1349   if test ! -r "$srcdir/$ac_unique_file"; then
1350     srcdir=..
1351   fi
1352 else
1353   ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1358    { (exit 1); exit 1; }; }
1359 fi
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1363    { (exit 1); exit 1; }; }
1364         pwd)`
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367   srcdir=.
1368 fi
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1372 case $srcdir in
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 esac
1375 for ac_var in $ac_precious_vars; do
1376   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377   eval ac_env_${ac_var}_value=\$${ac_var}
1378   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 done
1381
1382 #
1383 # Report the --help message.
1384 #
1385 if test "$ac_init_help" = "long"; then
1386   # Omit some internal or obsolete options to make the list less imposing.
1387   # This message is too long to be a string in the A/UX 3.1 sh.
1388   cat <<_ACEOF
1389 \`configure' configures this package to adapt to many kinds of systems.
1390
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE.  See below for descriptions of some of the useful variables.
1395
1396 Defaults for the options are specified in brackets.
1397
1398 Configuration:
1399   -h, --help              display this help and exit
1400       --help=short        display options specific to this package
1401       --help=recursive    display the short help of all the included packages
1402   -V, --version           display version information and exit
1403   -q, --quiet, --silent   do not print \`checking...' messages
1404       --cache-file=FILE   cache test results in FILE [disabled]
1405   -C, --config-cache      alias for \`--cache-file=config.cache'
1406   -n, --no-create         do not create output files
1407       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1408
1409 Installation directories:
1410   --prefix=PREFIX         install architecture-independent files in PREFIX
1411                           [$ac_default_prefix]
1412   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1413                           [PREFIX]
1414
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1419
1420 For better control, use the options below.
1421
1422 Fine tuning of the installation directories:
1423   --bindir=DIR           user executables [EPREFIX/bin]
1424   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1425   --libexecdir=DIR       program executables [EPREFIX/libexec]
1426   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1427   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1428   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1429   --libdir=DIR           object code libraries [EPREFIX/lib]
1430   --includedir=DIR       C header files [PREFIX/include]
1431   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1432   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1433   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1434   --infodir=DIR          info documentation [DATAROOTDIR/info]
1435   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1436   --mandir=DIR           man documentation [DATAROOTDIR/man]
1437   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1438   --htmldir=DIR          html documentation [DOCDIR]
1439   --dvidir=DIR           dvi documentation [DOCDIR]
1440   --pdfdir=DIR           pdf documentation [DOCDIR]
1441   --psdir=DIR            ps documentation [DOCDIR]
1442 _ACEOF
1443
1444   cat <<\_ACEOF
1445
1446 X features:
1447   --x-includes=DIR    X include files are in DIR
1448   --x-libraries=DIR   X library files are in DIR
1449
1450 System types:
1451   --build=BUILD     configure for building on BUILD [guessed]
1452   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457
1458   cat <<\_ACEOF
1459
1460 Optional Features:
1461   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463   --disable-nls           do not use Native Language Support
1464   --disable-rpath         do not hardcode runtime library paths
1465   --disable-libdb         disable build of accurate mode with libdb
1466   --enable-gnome          enable build of bgnome-console GUI disabled
1467   --enable-bat  enable build of bat Qt4 GUI disabled
1468   --enable-bwx-console     enable build of wxWidgets console disabled
1469   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1470   --enable-smartalloc     enable smartalloc debugging support disabled
1471   --enable-static-tools   enable static tape tools disabled
1472   --enable-static-fd      enable static File daemon disabled
1473   --enable-static-sd      enable static Storage daemon disabled
1474   --enable-static-dir     enable static Director disabled
1475   --enable-static-cons    enable static Console disabled
1476   --enable-client-only    build client (File daemon) only disabled
1477   --enable-build-dird     enable building of dird (Director) enabled
1478   --enable-build-stored   enable building of stored (Storage daemon) enabled
1479  --disable-conio disable conio support enabled
1480
1481   --enable-ipv6             enable ipv6 support enabled
1482
1483   --disable-readline      disable readline support disable
1484
1485         --enable-batch-insert       enable the DB batch insert code disabled
1486  --enable-batch-insert      enable the DB batch insert code disabled
1487   --disable-largefile     omit support for large files
1488
1489 Optional Packages:
1490   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1491   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1492   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1493   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1494   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1495   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1496   --without-libintl-prefix     don't search for libintl in includedir and libdir
1497   --with-included-gettext use the GNU gettext library included here
1498   --with-bdb-dir=DIR      Berkeley DB installation directory
1499  --with-qwt[=DIR]                 specify qwt library directory
1500  --with-readline[=DIR]         specify readline library directory
1501
1502   --with-python[=DIR]   Include Python support.  DIR is the Python base
1503                           install directory, default is to search through
1504                           a number of common places for the Python files.
1505   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1506   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1507   --with-working-dir=PATH        specify path of Bacula working directory
1508   --with-archivedir=PATH        specify path of SD archive directory
1509   --with-scriptdir=PATH    specify path of Bacula scripts directory
1510   --with-plugindir=PATH    specify path of Bacula plugins directory
1511   --with-dump-email=EMAIL        dump email address
1512   --with-job-email=EMAIL         job output email address
1513   --with-smtp-host=HOST          SMTP mail host address
1514   --with-pid-dir=PATH            specify location of Bacula pid files
1515   --with-subsys-dir=PATH         specify location of Bacula subsys file
1516   --with-baseport=PORT           specify base port address for daemons
1517   --with-dir-password=PASSWORD   specify Director's password
1518   --with-fd-password=PASSWORD    specify Client's password
1519   --with-sd-password=PASSWORD    specify Storage daemon's password
1520   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1521   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1522   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1523   --with-db-name=DBNAME        specify database name (default bacula)
1524   --with-db-user=UNAME         specify database user (default bacula)
1525   --with-db-password=UNAME         specify database password (default *none*)
1526   --with-db-port=DBPORT         specify a database port (default null)
1527   --with-dir-user=USER           specify user for Director daemon
1528   --with-dir-group=GROUP                 specify group for Director daemon
1529   --with-sd-user=USER            specify user for Storage daemon
1530   --with-sd-group=GROUP          specify group for Storage daemon
1531   --with-fd-user=USER            specify user for File daemon
1532   --with-fd-group=GROUP          specify group for File daemon
1533   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1534   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1535                           base install directory, defaults to /usr/local/pgsql
1536
1537   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1538                           install directory, default is to search through
1539                           a number of common places for the MySQL files.
1540
1541   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1542                           install directory, default is to search through
1543                           a number of common places for the MySQL files.
1544
1545   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1546                           install directory, default is to search through
1547                           a number of common places for the SQLite3 files.
1548
1549   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1550                           install directory, default is to search through
1551                           a number of common places for the SQLite files.
1552
1553   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1554                           install directory, default is to search through
1555                           a number of common places for the DBI files.
1556
1557   --with-dbi-driver[=DRIVER]     Suport for DBI driver.  DRIVER is
1558                           the one DBI driver like Mysql, Postgresql, others.
1559                           Default is to not configure any driver.
1560   --with-x                use the X Window System
1561
1562 Some influential environment variables:
1563   CC          C compiler command
1564   CFLAGS      C compiler flags
1565   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1566               nonstandard directory <lib dir>
1567   LIBS        libraries to pass to the linker, e.g. -l<library>
1568   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1569               you have headers in a nonstandard directory <include dir>
1570   CXX         C++ compiler command
1571   CXXFLAGS    C++ compiler flags
1572   CPP         C preprocessor
1573   WXCONFIG    wx-config command. On some systems, you must set it to
1574               wx-config-2.6 to use wxWidgets 2.6.
1575   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1576   XMKMF       Path to xmkmf, Makefile generator for X Window System
1577
1578 Use these variables to override the choices made by `configure' or to help
1579 it to find libraries and programs with nonstandard names/locations.
1580
1581 _ACEOF
1582 ac_status=$?
1583 fi
1584
1585 if test "$ac_init_help" = "recursive"; then
1586   # If there are subdirs, report their specific --help.
1587   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588     test -d "$ac_dir" || continue
1589     ac_builddir=.
1590
1591 case "$ac_dir" in
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *)
1594   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1595   # A ".." for each directory in $ac_dir_suffix.
1596   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1597   case $ac_top_builddir_sub in
1598   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600   esac ;;
1601 esac
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1606
1607 case $srcdir in
1608   .)  # We are building in place.
1609     ac_srcdir=.
1610     ac_top_srcdir=$ac_top_builddir_sub
1611     ac_abs_top_srcdir=$ac_pwd ;;
1612   [\\/]* | ?:[\\/]* )  # Absolute name.
1613     ac_srcdir=$srcdir$ac_dir_suffix;
1614     ac_top_srcdir=$srcdir
1615     ac_abs_top_srcdir=$srcdir ;;
1616   *) # Relative name.
1617     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618     ac_top_srcdir=$ac_top_build_prefix$srcdir
1619     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 esac
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622
1623     cd "$ac_dir" || { ac_status=$?; continue; }
1624     # Check for guested configure.
1625     if test -f "$ac_srcdir/configure.gnu"; then
1626       echo &&
1627       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628     elif test -f "$ac_srcdir/configure"; then
1629       echo &&
1630       $SHELL "$ac_srcdir/configure" --help=recursive
1631     else
1632       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633     fi || ac_status=$?
1634     cd "$ac_pwd" || { ac_status=$?; break; }
1635   done
1636 fi
1637
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1640   cat <<\_ACEOF
1641 configure
1642 generated by GNU Autoconf 2.61
1643
1644 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1645 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1648 _ACEOF
1649   exit
1650 fi
1651 cat >config.log <<_ACEOF
1652 This file contains any messages produced by compilers while
1653 running configure, to aid debugging if configure makes a mistake.
1654
1655 It was created by $as_me, which was
1656 generated by GNU Autoconf 2.61.  Invocation command line was
1657
1658   $ $0 $@
1659
1660 _ACEOF
1661 exec 5>>config.log
1662 {
1663 cat <<_ASUNAME
1664 ## --------- ##
1665 ## Platform. ##
1666 ## --------- ##
1667
1668 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1669 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1670 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1671 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1672 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1673
1674 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1675 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1676
1677 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1678 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1679 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1680 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1681 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1682 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1683 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1684
1685 _ASUNAME
1686
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   echo "PATH: $as_dir"
1693 done
1694 IFS=$as_save_IFS
1695
1696 } >&5
1697
1698 cat >&5 <<_ACEOF
1699
1700
1701 ## ----------- ##
1702 ## Core tests. ##
1703 ## ----------- ##
1704
1705 _ACEOF
1706
1707
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1713 ac_configure_args=
1714 ac_configure_args0=
1715 ac_configure_args1=
1716 ac_must_keep_next=false
1717 for ac_pass in 1 2
1718 do
1719   for ac_arg
1720   do
1721     case $ac_arg in
1722     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724     | -silent | --silent | --silen | --sile | --sil)
1725       continue ;;
1726     *\'*)
1727       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728     esac
1729     case $ac_pass in
1730     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1731     2)
1732       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1733       if test $ac_must_keep_next = true; then
1734         ac_must_keep_next=false # Got value, back to normal.
1735       else
1736         case $ac_arg in
1737           *=* | --config-cache | -C | -disable-* | --disable-* \
1738           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740           | -with-* | --with-* | -without-* | --without-* | --x)
1741             case "$ac_configure_args0 " in
1742               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743             esac
1744             ;;
1745           -* ) ac_must_keep_next=true ;;
1746         esac
1747       fi
1748       ac_configure_args="$ac_configure_args '$ac_arg'"
1749       ;;
1750     esac
1751   done
1752 done
1753 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1754 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1755
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log.  We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1762   # Save into config.log some information that might help in debugging.
1763   {
1764     echo
1765
1766     cat <<\_ASBOX
1767 ## ---------------- ##
1768 ## Cache variables. ##
1769 ## ---------------- ##
1770 _ASBOX
1771     echo
1772     # The following way of writing the cache mishandles newlines in values,
1773 (
1774   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1775     eval ac_val=\$$ac_var
1776     case $ac_val in #(
1777     *${as_nl}*)
1778       case $ac_var in #(
1779       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1780 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1781       esac
1782       case $ac_var in #(
1783       _ | IFS | as_nl) ;; #(
1784       *) $as_unset $ac_var ;;
1785       esac ;;
1786     esac
1787   done
1788   (set) 2>&1 |
1789     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1790     *${as_nl}ac_space=\ *)
1791       sed -n \
1792         "s/'\''/'\''\\\\'\'''\''/g;
1793           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794       ;; #(
1795     *)
1796       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797       ;;
1798     esac |
1799     sort
1800 )
1801     echo
1802
1803     cat <<\_ASBOX
1804 ## ----------------- ##
1805 ## Output variables. ##
1806 ## ----------------- ##
1807 _ASBOX
1808     echo
1809     for ac_var in $ac_subst_vars
1810     do
1811       eval ac_val=\$$ac_var
1812       case $ac_val in
1813       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814       esac
1815       echo "$ac_var='\''$ac_val'\''"
1816     done | sort
1817     echo
1818
1819     if test -n "$ac_subst_files"; then
1820       cat <<\_ASBOX
1821 ## ------------------- ##
1822 ## File substitutions. ##
1823 ## ------------------- ##
1824 _ASBOX
1825       echo
1826       for ac_var in $ac_subst_files
1827       do
1828         eval ac_val=\$$ac_var
1829         case $ac_val in
1830         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831         esac
1832         echo "$ac_var='\''$ac_val'\''"
1833       done | sort
1834       echo
1835     fi
1836
1837     if test -s confdefs.h; then
1838       cat <<\_ASBOX
1839 ## ----------- ##
1840 ## confdefs.h. ##
1841 ## ----------- ##
1842 _ASBOX
1843       echo
1844       cat confdefs.h
1845       echo
1846     fi
1847     test "$ac_signal" != 0 &&
1848       echo "$as_me: caught signal $ac_signal"
1849     echo "$as_me: exit $exit_status"
1850   } >&5
1851   rm -f core *.core core.conftest.* &&
1852     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1853     exit $exit_status
1854 ' 0
1855 for ac_signal in 1 2 13 15; do
1856   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1857 done
1858 ac_signal=0
1859
1860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1861 rm -f -r conftest* confdefs.h
1862
1863 # Predefined preprocessor variables.
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_NAME "$PACKAGE_NAME"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1872 _ACEOF
1873
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1877 _ACEOF
1878
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_STRING "$PACKAGE_STRING"
1882 _ACEOF
1883
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1887 _ACEOF
1888
1889
1890 # Let the site file select an alternate cache file if it wants to.
1891 # Prefer explicitly selected file to automatically selected ones.
1892 if test -n "$CONFIG_SITE"; then
1893   set x "$CONFIG_SITE"
1894 elif test "x$prefix" != xNONE; then
1895   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1896 else
1897   set x "$ac_default_prefix/share/config.site" \
1898         "$ac_default_prefix/etc/config.site"
1899 fi
1900 shift
1901 for ac_site_file
1902 do
1903   if test -r "$ac_site_file"; then
1904     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1905 echo "$as_me: loading site script $ac_site_file" >&6;}
1906     sed 's/^/| /' "$ac_site_file" >&5
1907     . "$ac_site_file"
1908   fi
1909 done
1910
1911 if test -r "$cache_file"; then
1912   # Some versions of bash will fail to source /dev/null (special
1913   # files actually), so we avoid doing that.
1914   if test -f "$cache_file"; then
1915     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1916 echo "$as_me: loading cache $cache_file" >&6;}
1917     case $cache_file in
1918       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1919       *)                      . "./$cache_file";;
1920     esac
1921   fi
1922 else
1923   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1924 echo "$as_me: creating cache $cache_file" >&6;}
1925   >$cache_file
1926 fi
1927
1928 # Check that the precious variables saved in the cache have kept the same
1929 # value.
1930 ac_cache_corrupted=false
1931 for ac_var in $ac_precious_vars; do
1932   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1933   eval ac_new_set=\$ac_env_${ac_var}_set
1934   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1935   eval ac_new_val=\$ac_env_${ac_var}_value
1936   case $ac_old_set,$ac_new_set in
1937     set,)
1938       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1939 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1940       ac_cache_corrupted=: ;;
1941     ,set)
1942       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1943 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1944       ac_cache_corrupted=: ;;
1945     ,);;
1946     *)
1947       if test "x$ac_old_val" != "x$ac_new_val"; then
1948         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1949 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1950         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1951 echo "$as_me:   former value:  $ac_old_val" >&2;}
1952         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1953 echo "$as_me:   current value: $ac_new_val" >&2;}
1954         ac_cache_corrupted=:
1955       fi;;
1956   esac
1957   # Pass precious variables to config.status.
1958   if test "$ac_new_set" = set; then
1959     case $ac_new_val in
1960     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1961     *) ac_arg=$ac_var=$ac_new_val ;;
1962     esac
1963     case " $ac_configure_args " in
1964       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1965       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1966     esac
1967   fi
1968 done
1969 if $ac_cache_corrupted; then
1970   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1971 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1972   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1973 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1974    { (exit 1); exit 1; }; }
1975 fi
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998
1999
2000 BUILD_DIR=`pwd`
2001 cd ..
2002 TOP_DIR=`pwd`
2003 cd ${BUILD_DIR}
2004
2005
2006 ac_aux_dir=
2007 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2008   if test -f "$ac_dir/install-sh"; then
2009     ac_aux_dir=$ac_dir
2010     ac_install_sh="$ac_aux_dir/install-sh -c"
2011     break
2012   elif test -f "$ac_dir/install.sh"; then
2013     ac_aux_dir=$ac_dir
2014     ac_install_sh="$ac_aux_dir/install.sh -c"
2015     break
2016   elif test -f "$ac_dir/shtool"; then
2017     ac_aux_dir=$ac_dir
2018     ac_install_sh="$ac_aux_dir/shtool install -c"
2019     break
2020   fi
2021 done
2022 if test -z "$ac_aux_dir"; then
2023   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2024 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2025    { (exit 1); exit 1; }; }
2026 fi
2027
2028 # These three variables are undocumented and unsupported,
2029 # and are intended to be withdrawn in a future Autoconf release.
2030 # They can cause serious problems if a builder's source tree is in a directory
2031 # whose full name contains unusual characters.
2032 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2033 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2034 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2035
2036
2037 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2038
2039
2040
2041
2042
2043 for ac_prog in true
2044 do
2045   # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   case $TRUEPRG in
2053   [\\/]* | ?:[\\/]*)
2054   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2055   ;;
2056   *)
2057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2064     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070 IFS=$as_save_IFS
2071
2072   ;;
2073 esac
2074 fi
2075 TRUEPRG=$ac_cv_path_TRUEPRG
2076 if test -n "$TRUEPRG"; then
2077   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2078 echo "${ECHO_T}$TRUEPRG" >&6; }
2079 else
2080   { echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6; }
2082 fi
2083
2084
2085   test -n "$TRUEPRG" && break
2086 done
2087 test -n "$TRUEPRG" || TRUEPRG=":"
2088
2089 for ac_prog in false
2090 do
2091   # Extract the first word of "$ac_prog", so it can be a program name with args.
2092 set dummy $ac_prog; ac_word=$2
2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   case $FALSEPRG in
2099   [\\/]* | ?:[\\/]*)
2100   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2101   ;;
2102   *)
2103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   for ac_exec_ext in '' $ac_executable_extensions; do
2109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112     break 2
2113   fi
2114 done
2115 done
2116 IFS=$as_save_IFS
2117
2118   ;;
2119 esac
2120 fi
2121 FALSEPRG=$ac_cv_path_FALSEPRG
2122 if test -n "$FALSEPRG"; then
2123   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2124 echo "${ECHO_T}$FALSEPRG" >&6; }
2125 else
2126   { echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6; }
2128 fi
2129
2130
2131   test -n "$FALSEPRG" && break
2132 done
2133 test -n "$FALSEPRG" || FALSEPRG=":"
2134
2135
2136
2137 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2138 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2139 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2140 echo "configuring for bacula $VERSION ($DATE)"
2141
2142
2143
2144 ac_ext=c
2145 ac_cpp='$CPP $CPPFLAGS'
2146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2149 if test -n "$ac_tool_prefix"; then
2150   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   if test -n "$CC"; then
2158   ac_cv_prog_CC="$CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163   IFS=$as_save_IFS
2164   test -z "$as_dir" && as_dir=.
2165   for ac_exec_ext in '' $ac_executable_extensions; do
2166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169     break 2
2170   fi
2171 done
2172 done
2173 IFS=$as_save_IFS
2174
2175 fi
2176 fi
2177 CC=$ac_cv_prog_CC
2178 if test -n "$CC"; then
2179   { echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6; }
2181 else
2182   { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2184 fi
2185
2186
2187 fi
2188 if test -z "$ac_cv_prog_CC"; then
2189   ac_ct_CC=$CC
2190   # Extract the first word of "gcc", so it can be a program name with args.
2191 set dummy gcc; ac_word=$2
2192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2195   echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197   if test -n "$ac_ct_CC"; then
2198   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2199 else
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2202 do
2203   IFS=$as_save_IFS
2204   test -z "$as_dir" && as_dir=.
2205   for ac_exec_ext in '' $ac_executable_extensions; do
2206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207     ac_cv_prog_ac_ct_CC="gcc"
2208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209     break 2
2210   fi
2211 done
2212 done
2213 IFS=$as_save_IFS
2214
2215 fi
2216 fi
2217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2218 if test -n "$ac_ct_CC"; then
2219   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2220 echo "${ECHO_T}$ac_ct_CC" >&6; }
2221 else
2222   { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2224 fi
2225
2226   if test "x$ac_ct_CC" = x; then
2227     CC=""
2228   else
2229     case $cross_compiling:$ac_tool_warned in
2230 yes:)
2231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2232 whose name does not start with the host triplet.  If you think this
2233 configuration is useful to you, please write to autoconf@gnu.org." >&5
2234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2235 whose name does not start with the host triplet.  If you think this
2236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2237 ac_tool_warned=yes ;;
2238 esac
2239     CC=$ac_ct_CC
2240   fi
2241 else
2242   CC="$ac_cv_prog_CC"
2243 fi
2244
2245 if test -z "$CC"; then
2246           if test -n "$ac_tool_prefix"; then
2247     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2248 set dummy ${ac_tool_prefix}cc; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_prog_CC+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   if test -n "$CC"; then
2255   ac_cv_prog_CC="$CC" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260   IFS=$as_save_IFS
2261   test -z "$as_dir" && as_dir=.
2262   for ac_exec_ext in '' $ac_executable_extensions; do
2263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264     ac_cv_prog_CC="${ac_tool_prefix}cc"
2265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266     break 2
2267   fi
2268 done
2269 done
2270 IFS=$as_save_IFS
2271
2272 fi
2273 fi
2274 CC=$ac_cv_prog_CC
2275 if test -n "$CC"; then
2276   { echo "$as_me:$LINENO: result: $CC" >&5
2277 echo "${ECHO_T}$CC" >&6; }
2278 else
2279   { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281 fi
2282
2283
2284   fi
2285 fi
2286 if test -z "$CC"; then
2287   # Extract the first word of "cc", so it can be a program name with args.
2288 set dummy cc; ac_word=$2
2289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2291 if test "${ac_cv_prog_CC+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   if test -n "$CC"; then
2295   ac_cv_prog_CC="$CC" # Let the user override the test.
2296 else
2297   ac_prog_rejected=no
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301   IFS=$as_save_IFS
2302   test -z "$as_dir" && as_dir=.
2303   for ac_exec_ext in '' $ac_executable_extensions; do
2304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2306        ac_prog_rejected=yes
2307        continue
2308      fi
2309     ac_cv_prog_CC="cc"
2310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311     break 2
2312   fi
2313 done
2314 done
2315 IFS=$as_save_IFS
2316
2317 if test $ac_prog_rejected = yes; then
2318   # We found a bogon in the path, so make sure we never use it.
2319   set dummy $ac_cv_prog_CC
2320   shift
2321   if test $# != 0; then
2322     # We chose a different compiler from the bogus one.
2323     # However, it has the same basename, so the bogon will be chosen
2324     # first if we set CC to just the basename; use the full file name.
2325     shift
2326     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2327   fi
2328 fi
2329 fi
2330 fi
2331 CC=$ac_cv_prog_CC
2332 if test -n "$CC"; then
2333   { echo "$as_me:$LINENO: result: $CC" >&5
2334 echo "${ECHO_T}$CC" >&6; }
2335 else
2336   { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2338 fi
2339
2340
2341 fi
2342 if test -z "$CC"; then
2343   if test -n "$ac_tool_prefix"; then
2344   for ac_prog in cl.exe
2345   do
2346     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_CC+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   if test -n "$CC"; then
2354   ac_cv_prog_CC="$CC" # Let the user override the test.
2355 else
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2358 do
2359   IFS=$as_save_IFS
2360   test -z "$as_dir" && as_dir=.
2361   for ac_exec_ext in '' $ac_executable_extensions; do
2362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365     break 2
2366   fi
2367 done
2368 done
2369 IFS=$as_save_IFS
2370
2371 fi
2372 fi
2373 CC=$ac_cv_prog_CC
2374 if test -n "$CC"; then
2375   { echo "$as_me:$LINENO: result: $CC" >&5
2376 echo "${ECHO_T}$CC" >&6; }
2377 else
2378   { echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6; }
2380 fi
2381
2382
2383     test -n "$CC" && break
2384   done
2385 fi
2386 if test -z "$CC"; then
2387   ac_ct_CC=$CC
2388   for ac_prog in cl.exe
2389 do
2390   # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$ac_ct_CC"; then
2398   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407     ac_cv_prog_ac_ct_CC="$ac_prog"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413 IFS=$as_save_IFS
2414
2415 fi
2416 fi
2417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2418 if test -n "$ac_ct_CC"; then
2419   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2420 echo "${ECHO_T}$ac_ct_CC" >&6; }
2421 else
2422   { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2424 fi
2425
2426
2427   test -n "$ac_ct_CC" && break
2428 done
2429
2430   if test "x$ac_ct_CC" = x; then
2431     CC=""
2432   else
2433     case $cross_compiling:$ac_tool_warned in
2434 yes:)
2435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2436 whose name does not start with the host triplet.  If you think this
2437 configuration is useful to you, please write to autoconf@gnu.org." >&5
2438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2439 whose name does not start with the host triplet.  If you think this
2440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2441 ac_tool_warned=yes ;;
2442 esac
2443     CC=$ac_ct_CC
2444   fi
2445 fi
2446
2447 fi
2448
2449
2450 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2451 See \`config.log' for more details." >&5
2452 echo "$as_me: error: no acceptable C compiler found in \$PATH
2453 See \`config.log' for more details." >&2;}
2454    { (exit 1); exit 1; }; }
2455
2456 # Provide some information about the compiler.
2457 echo "$as_me:$LINENO: checking for C compiler version" >&5
2458 ac_compiler=`set X $ac_compile; echo $2`
2459 { (ac_try="$ac_compiler --version >&5"
2460 case "(($ac_try" in
2461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462   *) ac_try_echo=$ac_try;;
2463 esac
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465   (eval "$ac_compiler --version >&5") 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }
2469 { (ac_try="$ac_compiler -v >&5"
2470 case "(($ac_try" in
2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472   *) ac_try_echo=$ac_try;;
2473 esac
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475   (eval "$ac_compiler -v >&5") 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }
2479 { (ac_try="$ac_compiler -V >&5"
2480 case "(($ac_try" in
2481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482   *) ac_try_echo=$ac_try;;
2483 esac
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485   (eval "$ac_compiler -V >&5") 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }
2489
2490 cat >conftest.$ac_ext <<_ACEOF
2491 /* confdefs.h.  */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h.  */
2496
2497 int
2498 main ()
2499 {
2500
2501   ;
2502   return 0;
2503 }
2504 _ACEOF
2505 ac_clean_files_save=$ac_clean_files
2506 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2507 # Try to create an executable without -o first, disregard a.out.
2508 # It will help us diagnose broken compilers, and finding out an intuition
2509 # of exeext.
2510 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2511 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2512 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2513 #
2514 # List of possible output files, starting from the most likely.
2515 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2516 # only as a last resort.  b.out is created by i960 compilers.
2517 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2518 #
2519 # The IRIX 6 linker writes into existing files which may not be
2520 # executable, retaining their permissions.  Remove them first so a
2521 # subsequent execution test works.
2522 ac_rmfiles=
2523 for ac_file in $ac_files
2524 do
2525   case $ac_file in
2526     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2527     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2528   esac
2529 done
2530 rm -f $ac_rmfiles
2531
2532 if { (ac_try="$ac_link_default"
2533 case "(($ac_try" in
2534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535   *) ac_try_echo=$ac_try;;
2536 esac
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538   (eval "$ac_link_default") 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; then
2542   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2543 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2544 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2545 # so that the user can short-circuit this test for compilers unknown to
2546 # Autoconf.
2547 for ac_file in $ac_files ''
2548 do
2549   test -f "$ac_file" || continue
2550   case $ac_file in
2551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2552         ;;
2553     [ab].out )
2554         # We found the default executable, but exeext='' is most
2555         # certainly right.
2556         break;;
2557     *.* )
2558         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2559         then :; else
2560            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2561         fi
2562         # We set ac_cv_exeext here because the later test for it is not
2563         # safe: cross compilers may not add the suffix if given an `-o'
2564         # argument, so we may need to know it at that point already.
2565         # Even if this section looks crufty: it has the advantage of
2566         # actually working.
2567         break;;
2568     * )
2569         break;;
2570   esac
2571 done
2572 test "$ac_cv_exeext" = no && ac_cv_exeext=
2573
2574 else
2575   ac_file=''
2576 fi
2577
2578 { echo "$as_me:$LINENO: result: $ac_file" >&5
2579 echo "${ECHO_T}$ac_file" >&6; }
2580 if test -z "$ac_file"; then
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: C compiler cannot create executables
2587 See \`config.log' for more details." >&2;}
2588    { (exit 77); exit 77; }; }
2589 fi
2590
2591 ac_exeext=$ac_cv_exeext
2592
2593 # Check that the compiler produces executables we can run.  If not, either
2594 # the compiler is broken, or we cross compile.
2595 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2596 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2597 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2598 # If not cross compiling, check that we can run a simple program.
2599 if test "$cross_compiling" != yes; then
2600   if { ac_try='./$ac_file'
2601   { (case "(($ac_try" in
2602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603   *) ac_try_echo=$ac_try;;
2604 esac
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606   (eval "$ac_try") 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); }; }; then
2610     cross_compiling=no
2611   else
2612     if test "$cross_compiling" = maybe; then
2613         cross_compiling=yes
2614     else
2615         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2616 If you meant to cross compile, use \`--host'.
2617 See \`config.log' for more details." >&5
2618 echo "$as_me: error: cannot run C compiled programs.
2619 If you meant to cross compile, use \`--host'.
2620 See \`config.log' for more details." >&2;}
2621    { (exit 1); exit 1; }; }
2622     fi
2623   fi
2624 fi
2625 { echo "$as_me:$LINENO: result: yes" >&5
2626 echo "${ECHO_T}yes" >&6; }
2627
2628 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2629 ac_clean_files=$ac_clean_files_save
2630 # Check that the compiler produces executables we can run.  If not, either
2631 # the compiler is broken, or we cross compile.
2632 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2633 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2634 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2635 echo "${ECHO_T}$cross_compiling" >&6; }
2636
2637 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2638 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2639 if { (ac_try="$ac_link"
2640 case "(($ac_try" in
2641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642   *) ac_try_echo=$ac_try;;
2643 esac
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645   (eval "$ac_link") 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; then
2649   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2650 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2651 # work properly (i.e., refer to `conftest.exe'), while it won't with
2652 # `rm'.
2653 for ac_file in conftest.exe conftest conftest.*; do
2654   test -f "$ac_file" || continue
2655   case $ac_file in
2656     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2657     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2658           break;;
2659     * ) break;;
2660   esac
2661 done
2662 else
2663   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2666 See \`config.log' for more details." >&2;}
2667    { (exit 1); exit 1; }; }
2668 fi
2669
2670 rm -f conftest$ac_cv_exeext
2671 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2672 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2673
2674 rm -f conftest.$ac_ext
2675 EXEEXT=$ac_cv_exeext
2676 ac_exeext=$EXEEXT
2677 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2678 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2679 if test "${ac_cv_objext+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688
2689 int
2690 main ()
2691 {
2692
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.o conftest.obj
2698 if { (ac_try="$ac_compile"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_compile") 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; then
2708   for ac_file in conftest.o conftest.obj conftest.*; do
2709   test -f "$ac_file" || continue;
2710   case $ac_file in
2711     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2712     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2713        break;;
2714   esac
2715 done
2716 else
2717   echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2721 See \`config.log' for more details." >&5
2722 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2723 See \`config.log' for more details." >&2;}
2724    { (exit 1); exit 1; }; }
2725 fi
2726
2727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2728 fi
2729 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2730 echo "${ECHO_T}$ac_cv_objext" >&6; }
2731 OBJEXT=$ac_cv_objext
2732 ac_objext=$OBJEXT
2733 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2736   echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738   cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744
2745 int
2746 main ()
2747 {
2748 #ifndef __GNUC__
2749        choke me
2750 #endif
2751
2752   ;
2753   return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (ac_try="$ac_compile"
2758 case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763   (eval "$ac_compile") 2>conftest.er1
2764   ac_status=$?
2765   grep -v '^ *+' conftest.er1 >conftest.err
2766   rm -f conftest.er1
2767   cat conftest.err >&5
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); } && {
2770          test -z "$ac_c_werror_flag" ||
2771          test ! -s conftest.err
2772        } && test -s conftest.$ac_objext; then
2773   ac_compiler_gnu=yes
2774 else
2775   echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2777
2778         ac_compiler_gnu=no
2779 fi
2780
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2783
2784 fi
2785 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2786 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2787 GCC=`test $ac_compiler_gnu = yes && echo yes`
2788 ac_test_CFLAGS=${CFLAGS+set}
2789 ac_save_CFLAGS=$CFLAGS
2790 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2791 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_cc_g+set}" = set; then
2793   echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795   ac_save_c_werror_flag=$ac_c_werror_flag
2796    ac_c_werror_flag=yes
2797    ac_cv_prog_cc_g=no
2798    CFLAGS="-g"
2799    cat >conftest.$ac_ext <<_ACEOF
2800 /* confdefs.h.  */
2801 _ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h.  */
2805
2806 int
2807 main ()
2808 {
2809
2810   ;
2811   return 0;
2812 }
2813 _ACEOF
2814 rm -f conftest.$ac_objext
2815 if { (ac_try="$ac_compile"
2816 case "(($ac_try" in
2817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818   *) ac_try_echo=$ac_try;;
2819 esac
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821   (eval "$ac_compile") 2>conftest.er1
2822   ac_status=$?
2823   grep -v '^ *+' conftest.er1 >conftest.err
2824   rm -f conftest.er1
2825   cat conftest.err >&5
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } && {
2828          test -z "$ac_c_werror_flag" ||
2829          test ! -s conftest.err
2830        } && test -s conftest.$ac_objext; then
2831   ac_cv_prog_cc_g=yes
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836         CFLAGS=""
2837       cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h.  */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h.  */
2843
2844 int
2845 main ()
2846 {
2847
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (ac_try="$ac_compile"
2854 case "(($ac_try" in
2855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856   *) ac_try_echo=$ac_try;;
2857 esac
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859   (eval "$ac_compile") 2>conftest.er1
2860   ac_status=$?
2861   grep -v '^ *+' conftest.er1 >conftest.err
2862   rm -f conftest.er1
2863   cat conftest.err >&5
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); } && {
2866          test -z "$ac_c_werror_flag" ||
2867          test ! -s conftest.err
2868        } && test -s conftest.$ac_objext; then
2869   :
2870 else
2871   echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874         ac_c_werror_flag=$ac_save_c_werror_flag
2875          CFLAGS="-g"
2876          cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h.  */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h.  */
2882
2883 int
2884 main ()
2885 {
2886
2887   ;
2888   return 0;
2889 }
2890 _ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (ac_try="$ac_compile"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898   (eval "$ac_compile") 2>conftest.er1
2899   ac_status=$?
2900   grep -v '^ *+' conftest.er1 >conftest.err
2901   rm -f conftest.er1
2902   cat conftest.err >&5
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); } && {
2905          test -z "$ac_c_werror_flag" ||
2906          test ! -s conftest.err
2907        } && test -s conftest.$ac_objext; then
2908   ac_cv_prog_cc_g=yes
2909 else
2910   echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913
2914 fi
2915
2916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2917 fi
2918
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 fi
2921
2922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923    ac_c_werror_flag=$ac_save_c_werror_flag
2924 fi
2925 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2926 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2927 if test "$ac_test_CFLAGS" = set; then
2928   CFLAGS=$ac_save_CFLAGS
2929 elif test $ac_cv_prog_cc_g = yes; then
2930   if test "$GCC" = yes; then
2931     CFLAGS="-g -O2"
2932   else
2933     CFLAGS="-g"
2934   fi
2935 else
2936   if test "$GCC" = yes; then
2937     CFLAGS="-O2"
2938   else
2939     CFLAGS=
2940   fi
2941 fi
2942 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2943 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2944 if test "${ac_cv_prog_cc_c89+set}" = set; then
2945   echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947   ac_cv_prog_cc_c89=no
2948 ac_save_CC=$CC
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955 #include <stdarg.h>
2956 #include <stdio.h>
2957 #include <sys/types.h>
2958 #include <sys/stat.h>
2959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2960 struct buf { int x; };
2961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2962 static char *e (p, i)
2963      char **p;
2964      int i;
2965 {
2966   return p[i];
2967 }
2968 static char *f (char * (*g) (char **, int), char **p, ...)
2969 {
2970   char *s;
2971   va_list v;
2972   va_start (v,p);
2973   s = g (p, va_arg (v,int));
2974   va_end (v);
2975   return s;
2976 }
2977
2978 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2979    function prototypes and stuff, but not '\xHH' hex character constants.
2980    These don't provoke an error unfortunately, instead are silently treated
2981    as 'x'.  The following induces an error, until -std is added to get
2982    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2983    array size at least.  It's necessary to write '\x00'==0 to get something
2984    that's true only with -std.  */
2985 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2986
2987 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2988    inside strings and character constants.  */
2989 #define FOO(x) 'x'
2990 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2991
2992 int test (int i, double x);
2993 struct s1 {int (*f) (int a);};
2994 struct s2 {int (*f) (double a);};
2995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2996 int argc;
2997 char **argv;
2998 int
2999 main ()
3000 {
3001 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3002   ;
3003   return 0;
3004 }
3005 _ACEOF
3006 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3007         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3008 do
3009   CC="$ac_save_CC $ac_arg"
3010   rm -f conftest.$ac_objext
3011 if { (ac_try="$ac_compile"
3012 case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017   (eval "$ac_compile") 2>conftest.er1
3018   ac_status=$?
3019   grep -v '^ *+' conftest.er1 >conftest.err
3020   rm -f conftest.er1
3021   cat conftest.err >&5
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); } && {
3024          test -z "$ac_c_werror_flag" ||
3025          test ! -s conftest.err
3026        } && test -s conftest.$ac_objext; then
3027   ac_cv_prog_cc_c89=$ac_arg
3028 else
3029   echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3031
3032
3033 fi
3034
3035 rm -f core conftest.err conftest.$ac_objext
3036   test "x$ac_cv_prog_cc_c89" != "xno" && break
3037 done
3038 rm -f conftest.$ac_ext
3039 CC=$ac_save_CC
3040
3041 fi
3042 # AC_CACHE_VAL
3043 case "x$ac_cv_prog_cc_c89" in
3044   x)
3045     { echo "$as_me:$LINENO: result: none needed" >&5
3046 echo "${ECHO_T}none needed" >&6; } ;;
3047   xno)
3048     { echo "$as_me:$LINENO: result: unsupported" >&5
3049 echo "${ECHO_T}unsupported" >&6; } ;;
3050   *)
3051     CC="$CC $ac_cv_prog_cc_c89"
3052     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3053 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3054 esac
3055
3056
3057 ac_ext=c
3058 ac_cpp='$CPP $CPPFLAGS'
3059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062
3063 ac_ext=cpp
3064 ac_cpp='$CXXCPP $CPPFLAGS'
3065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3068 if test -z "$CXX"; then
3069   if test -n "$CCC"; then
3070     CXX=$CCC
3071   else
3072     if test -n "$ac_tool_prefix"; then
3073   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3074   do
3075     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3079 if test "${ac_cv_prog_CXX+set}" = set; then
3080   echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082   if test -n "$CXX"; then
3083   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090   for ac_exec_ext in '' $ac_executable_extensions; do
3091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 CXX=$ac_cv_prog_CXX
3103 if test -n "$CXX"; then
3104   { echo "$as_me:$LINENO: result: $CXX" >&5
3105 echo "${ECHO_T}$CXX" >&6; }
3106 else
3107   { echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6; }
3109 fi
3110
3111
3112     test -n "$CXX" && break
3113   done
3114 fi
3115 if test -z "$CXX"; then
3116   ac_ct_CXX=$CXX
3117   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3118 do
3119   # Extract the first word of "$ac_prog", so it can be a program name with args.
3120 set dummy $ac_prog; ac_word=$2
3121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3123 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3124   echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126   if test -n "$ac_ct_CXX"; then
3127   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132   IFS=$as_save_IFS
3133   test -z "$as_dir" && as_dir=.
3134   for ac_exec_ext in '' $ac_executable_extensions; do
3135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136     ac_cv_prog_ac_ct_CXX="$ac_prog"
3137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138     break 2
3139   fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3147 if test -n "$ac_ct_CXX"; then
3148   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3149 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3150 else
3151   { echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6; }
3153 fi
3154
3155
3156   test -n "$ac_ct_CXX" && break
3157 done
3158
3159   if test "x$ac_ct_CXX" = x; then
3160     CXX="g++"
3161   else
3162     case $cross_compiling:$ac_tool_warned in
3163 yes:)
3164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3165 whose name does not start with the host triplet.  If you think this
3166 configuration is useful to you, please write to autoconf@gnu.org." >&5
3167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3168 whose name does not start with the host triplet.  If you think this
3169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3170 ac_tool_warned=yes ;;
3171 esac
3172     CXX=$ac_ct_CXX
3173   fi
3174 fi
3175
3176   fi
3177 fi
3178 # Provide some information about the compiler.
3179 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3180 ac_compiler=`set X $ac_compile; echo $2`
3181 { (ac_try="$ac_compiler --version >&5"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_compiler --version >&5") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }
3191 { (ac_try="$ac_compiler -v >&5"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_compiler -v >&5") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }
3201 { (ac_try="$ac_compiler -V >&5"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_compiler -V >&5") 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }
3211
3212 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3213 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3214 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217   cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223
3224 int
3225 main ()
3226 {
3227 #ifndef __GNUC__
3228        choke me
3229 #endif
3230
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (ac_try="$ac_compile"
3237 case "(($ac_try" in
3238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239   *) ac_try_echo=$ac_try;;
3240 esac
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242   (eval "$ac_compile") 2>conftest.er1
3243   ac_status=$?
3244   grep -v '^ *+' conftest.er1 >conftest.err
3245   rm -f conftest.er1
3246   cat conftest.err >&5
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); } && {
3249          test -z "$ac_cxx_werror_flag" ||
3250          test ! -s conftest.err
3251        } && test -s conftest.$ac_objext; then
3252   ac_compiler_gnu=yes
3253 else
3254   echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256
3257         ac_compiler_gnu=no
3258 fi
3259
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3262
3263 fi
3264 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3265 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3266 GXX=`test $ac_compiler_gnu = yes && echo yes`
3267 ac_test_CXXFLAGS=${CXXFLAGS+set}
3268 ac_save_CXXFLAGS=$CXXFLAGS
3269 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3270 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3271 if test "${ac_cv_prog_cxx_g+set}" = set; then
3272   echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3275    ac_cxx_werror_flag=yes
3276    ac_cv_prog_cxx_g=no
3277    CXXFLAGS="-g"
3278    cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284
3285 int
3286 main ()
3287 {
3288
3289   ;
3290   return 0;
3291 }
3292 _ACEOF
3293 rm -f conftest.$ac_objext
3294 if { (ac_try="$ac_compile"
3295 case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300   (eval "$ac_compile") 2>conftest.er1
3301   ac_status=$?
3302   grep -v '^ *+' conftest.er1 >conftest.err
3303   rm -f conftest.er1
3304   cat conftest.err >&5
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); } && {
3307          test -z "$ac_cxx_werror_flag" ||
3308          test ! -s conftest.err
3309        } && test -s conftest.$ac_objext; then
3310   ac_cv_prog_cxx_g=yes
3311 else
3312   echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315         CXXFLAGS=""
3316       cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h.  */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h.  */
3322
3323 int
3324 main ()
3325 {
3326
3327   ;
3328   return 0;
3329 }
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (ac_try="$ac_compile"
3333 case "(($ac_try" in
3334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335   *) ac_try_echo=$ac_try;;
3336 esac
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338   (eval "$ac_compile") 2>conftest.er1
3339   ac_status=$?
3340   grep -v '^ *+' conftest.er1 >conftest.err
3341   rm -f conftest.er1
3342   cat conftest.err >&5
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); } && {
3345          test -z "$ac_cxx_werror_flag" ||
3346          test ! -s conftest.err
3347        } && test -s conftest.$ac_objext; then
3348   :
3349 else
3350   echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3354          CXXFLAGS="-g"
3355          cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h.  */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h.  */
3361
3362 int
3363 main ()
3364 {
3365
3366   ;
3367   return 0;
3368 }
3369 _ACEOF
3370 rm -f conftest.$ac_objext
3371 if { (ac_try="$ac_compile"
3372 case "(($ac_try" in
3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374   *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377   (eval "$ac_compile") 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } && {
3384          test -z "$ac_cxx_werror_flag" ||
3385          test ! -s conftest.err
3386        } && test -s conftest.$ac_objext; then
3387   ac_cv_prog_cxx_g=yes
3388 else
3389   echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392
3393 fi
3394
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 fi
3397
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 fi
3400
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3403 fi
3404 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3405 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3406 if test "$ac_test_CXXFLAGS" = set; then
3407   CXXFLAGS=$ac_save_CXXFLAGS
3408 elif test $ac_cv_prog_cxx_g = yes; then
3409   if test "$GXX" = yes; then
3410     CXXFLAGS="-g -O2"
3411   else
3412     CXXFLAGS="-g"
3413   fi
3414 else
3415   if test "$GXX" = yes; then
3416     CXXFLAGS="-O2"
3417   else
3418     CXXFLAGS=
3419   fi
3420 fi
3421 ac_ext=c
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426
3427 if test "x$CC" != xcc; then
3428   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3429 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3430 else
3431   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3432 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3433 fi
3434 set dummy $CC; ac_cc=`echo $2 |
3435                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3436 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3437   echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439   cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445
3446 int
3447 main ()
3448 {
3449
3450   ;
3451   return 0;
3452 }
3453 _ACEOF
3454 # Make sure it works both with $CC and with simple cc.
3455 # We do the test twice because some compilers refuse to overwrite an
3456 # existing .o file with -o, though they will create one.
3457 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3458 rm -f conftest2.*
3459 if { (case "(($ac_try" in
3460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461   *) ac_try_echo=$ac_try;;
3462 esac
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464   (eval "$ac_try") 2>&5
3465   ac_status=$?
3466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467   (exit $ac_status); } &&
3468    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470   *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473   (eval "$ac_try") 2>&5
3474   ac_status=$?
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); };
3477 then
3478   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3479   if test "x$CC" != xcc; then
3480     # Test first that cc exists at all.
3481     if { ac_try='cc -c conftest.$ac_ext >&5'
3482   { (case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_try") 2>&5
3488   ac_status=$?
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); }; }; then
3491       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3492       rm -f conftest2.*
3493       if { (case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498   (eval "$ac_try") 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); } &&
3502          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507   (eval "$ac_try") 2>&5
3508   ac_status=$?
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); };
3511       then
3512         # cc works too.
3513         :
3514       else
3515         # cc exists but doesn't like -o.
3516         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3517       fi
3518     fi
3519   fi
3520 else
3521   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3522 fi
3523 rm -f core conftest*
3524
3525 fi
3526 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3527   { echo "$as_me:$LINENO: result: yes" >&5
3528 echo "${ECHO_T}yes" >&6; }
3529 else
3530   { echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6; }
3532
3533 cat >>confdefs.h <<\_ACEOF
3534 #define NO_MINUS_C_MINUS_O 1
3535 _ACEOF
3536
3537 fi
3538
3539 ac_ext=c
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3545 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3546 # On Suns, sometimes $CPP names a directory.
3547 if test -n "$CPP" && test -d "$CPP"; then
3548   CPP=
3549 fi
3550 if test -z "$CPP"; then
3551   if test "${ac_cv_prog_CPP+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554       # Double quotes because CPP needs to be expanded
3555     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3556     do
3557       ac_preproc_ok=false
3558 for ac_c_preproc_warn_flag in '' yes
3559 do
3560   # Use a header file that comes with gcc, so configuring glibc
3561   # with a fresh cross-compiler works.
3562   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3563   # <limits.h> exists even on freestanding compilers.
3564   # On the NeXT, cc -E runs the code through the compiler's parser,
3565   # not just through cpp. "Syntax error" is here to catch this case.
3566   cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h.  */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h.  */
3572 #ifdef __STDC__
3573 # include <limits.h>
3574 #else
3575 # include <assert.h>
3576 #endif
3577                      Syntax error
3578 _ACEOF
3579 if { (ac_try="$ac_cpp conftest.$ac_ext"
3580 case "(($ac_try" in
3581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582   *) ac_try_echo=$ac_try;;
3583 esac
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3586   ac_status=$?
3587   grep -v '^ *+' conftest.er1 >conftest.err
3588   rm -f conftest.er1
3589   cat conftest.err >&5
3590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591   (exit $ac_status); } >/dev/null && {
3592          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3593          test ! -s conftest.err
3594        }; then
3595   :
3596 else
3597   echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3599
3600   # Broken: fails on valid input.
3601 continue
3602 fi
3603
3604 rm -f conftest.err conftest.$ac_ext
3605
3606   # OK, works on sane cases.  Now check whether nonexistent headers
3607   # can be detected and how.
3608   cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h.  */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h.  */
3614 #include <ac_nonexistent.h>
3615 _ACEOF
3616 if { (ac_try="$ac_cpp conftest.$ac_ext"
3617 case "(($ac_try" in
3618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619   *) ac_try_echo=$ac_try;;
3620 esac
3621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3622   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3623   ac_status=$?
3624   grep -v '^ *+' conftest.er1 >conftest.err
3625   rm -f conftest.er1
3626   cat conftest.err >&5
3627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628   (exit $ac_status); } >/dev/null && {
3629          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3630          test ! -s conftest.err
3631        }; then
3632   # Broken: success on invalid input.
3633 continue
3634 else
3635   echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3637
3638   # Passes both tests.
3639 ac_preproc_ok=:
3640 break
3641 fi
3642
3643 rm -f conftest.err conftest.$ac_ext
3644
3645 done
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then
3649   break
3650 fi
3651
3652     done
3653     ac_cv_prog_CPP=$CPP
3654
3655 fi
3656   CPP=$ac_cv_prog_CPP
3657 else
3658   ac_cv_prog_CPP=$CPP
3659 fi
3660 { echo "$as_me:$LINENO: result: $CPP" >&5
3661 echo "${ECHO_T}$CPP" >&6; }
3662 ac_preproc_ok=false
3663 for ac_c_preproc_warn_flag in '' yes
3664 do
3665   # Use a header file that comes with gcc, so configuring glibc
3666   # with a fresh cross-compiler works.
3667   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668   # <limits.h> exists even on freestanding compilers.
3669   # On the NeXT, cc -E runs the code through the compiler's parser,
3670   # not just through cpp. "Syntax error" is here to catch this case.
3671   cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h.  */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h.  */
3677 #ifdef __STDC__
3678 # include <limits.h>
3679 #else
3680 # include <assert.h>
3681 #endif
3682                      Syntax error
3683 _ACEOF
3684 if { (ac_try="$ac_cpp conftest.$ac_ext"
3685 case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3691   ac_status=$?
3692   grep -v '^ *+' conftest.er1 >conftest.err
3693   rm -f conftest.er1
3694   cat conftest.err >&5
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); } >/dev/null && {
3697          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3698          test ! -s conftest.err
3699        }; then
3700   :
3701 else
3702   echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705   # Broken: fails on valid input.
3706 continue
3707 fi
3708
3709 rm -f conftest.err conftest.$ac_ext
3710
3711   # OK, works on sane cases.  Now check whether nonexistent headers
3712   # can be detected and how.
3713   cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h.  */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h.  */
3719 #include <ac_nonexistent.h>
3720 _ACEOF
3721 if { (ac_try="$ac_cpp conftest.$ac_ext"
3722 case "(($ac_try" in
3723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724   *) ac_try_echo=$ac_try;;
3725 esac
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3728   ac_status=$?
3729   grep -v '^ *+' conftest.er1 >conftest.err
3730   rm -f conftest.er1
3731   cat conftest.err >&5
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); } >/dev/null && {
3734          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3735          test ! -s conftest.err
3736        }; then
3737   # Broken: success on invalid input.
3738 continue
3739 else
3740   echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3742
3743   # Passes both tests.
3744 ac_preproc_ok=:
3745 break
3746 fi
3747
3748 rm -f conftest.err conftest.$ac_ext
3749
3750 done
3751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3752 rm -f conftest.err conftest.$ac_ext
3753 if $ac_preproc_ok; then
3754   :
3755 else
3756   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3757 See \`config.log' for more details." >&5
3758 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3759 See \`config.log' for more details." >&2;}
3760    { (exit 1); exit 1; }; }
3761 fi
3762
3763 ac_ext=c
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768
3769
3770 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3771 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3772 if test "${ac_cv_path_GREP+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   # Extract the first word of "grep ggrep" to use in msg output
3776 if test -z "$GREP"; then
3777 set dummy grep ggrep; ac_prog_name=$2
3778 if test "${ac_cv_path_GREP+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   ac_path_GREP_found=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3785 do
3786   IFS=$as_save_IFS
3787   test -z "$as_dir" && as_dir=.
3788   for ac_prog in grep ggrep; do
3789   for ac_exec_ext in '' $ac_executable_extensions; do
3790     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3791     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3792     # Check for GNU ac_path_GREP and select it if it is found.
3793   # Check for GNU $ac_path_GREP
3794 case `"$ac_path_GREP" --version 2>&1` in
3795 *GNU*)
3796   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3797 *)
3798   ac_count=0
3799   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3800   while :
3801   do
3802     cat "conftest.in" "conftest.in" >"conftest.tmp"
3803     mv "conftest.tmp" "conftest.in"
3804     cp "conftest.in" "conftest.nl"
3805     echo 'GREP' >> "conftest.nl"
3806     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3807     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3808     ac_count=`expr $ac_count + 1`
3809     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3810       # Best one so far, save it but keep looking for a better one
3811       ac_cv_path_GREP="$ac_path_GREP"
3812       ac_path_GREP_max=$ac_count
3813     fi
3814     # 10*(2^10) chars as input seems more than enough
3815     test $ac_count -gt 10 && break
3816   done
3817   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3818 esac
3819
3820
3821     $ac_path_GREP_found && break 3
3822   done
3823 done
3824
3825 done
3826 IFS=$as_save_IFS
3827
3828
3829 fi
3830
3831 GREP="$ac_cv_path_GREP"
3832 if test -z "$GREP"; then
3833   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3834 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3835    { (exit 1); exit 1; }; }
3836 fi
3837
3838 else
3839   ac_cv_path_GREP=$GREP
3840 fi
3841
3842
3843 fi
3844 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3845 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3846  GREP="$ac_cv_path_GREP"
3847
3848
3849 { echo "$as_me:$LINENO: checking for egrep" >&5
3850 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3851 if test "${ac_cv_path_EGREP+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3855    then ac_cv_path_EGREP="$GREP -E"
3856    else
3857      # Extract the first word of "egrep" to use in msg output
3858 if test -z "$EGREP"; then
3859 set dummy egrep; ac_prog_name=$2
3860 if test "${ac_cv_path_EGREP+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863   ac_path_EGREP_found=false
3864 # Loop through the user's path and test for each of PROGNAME-LIST
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3867 do
3868   IFS=$as_save_IFS
3869   test -z "$as_dir" && as_dir=.
3870   for ac_prog in egrep; do
3871   for ac_exec_ext in '' $ac_executable_extensions; do
3872     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3873     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3874     # Check for GNU ac_path_EGREP and select it if it is found.
3875   # Check for GNU $ac_path_EGREP
3876 case `"$ac_path_EGREP" --version 2>&1` in
3877 *GNU*)
3878   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3879 *)
3880   ac_count=0
3881   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3882   while :
3883   do
3884     cat "conftest.in" "conftest.in" >"conftest.tmp"
3885     mv "conftest.tmp" "conftest.in"
3886     cp "conftest.in" "conftest.nl"
3887     echo 'EGREP' >> "conftest.nl"
3888     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3889     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3890     ac_count=`expr $ac_count + 1`
3891     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3892       # Best one so far, save it but keep looking for a better one
3893       ac_cv_path_EGREP="$ac_path_EGREP"
3894       ac_path_EGREP_max=$ac_count
3895     fi
3896     # 10*(2^10) chars as input seems more than enough
3897     test $ac_count -gt 10 && break
3898   done
3899   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3900 esac
3901
3902
3903     $ac_path_EGREP_found && break 3
3904   done
3905 done
3906
3907 done
3908 IFS=$as_save_IFS
3909
3910
3911 fi
3912
3913 EGREP="$ac_cv_path_EGREP"
3914 if test -z "$EGREP"; then
3915   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3916 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3917    { (exit 1); exit 1; }; }
3918 fi
3919
3920 else
3921   ac_cv_path_EGREP=$EGREP
3922 fi
3923
3924
3925    fi
3926 fi
3927 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3928 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3929  EGREP="$ac_cv_path_EGREP"
3930
3931
3932 if test $ac_cv_c_compiler_gnu = yes; then
3933     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3934 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3935 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3936   echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938     ac_pattern="Autoconf.*'x'"
3939   cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h.  */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h.  */
3945 #include <sgtty.h>
3946 Autoconf TIOCGETP
3947 _ACEOF
3948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3949   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3950   ac_cv_prog_gcc_traditional=yes
3951 else
3952   ac_cv_prog_gcc_traditional=no
3953 fi
3954 rm -f conftest*
3955
3956
3957   if test $ac_cv_prog_gcc_traditional = no; then
3958     cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h.  */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h.  */
3964 #include <termio.h>
3965 Autoconf TCGETA
3966 _ACEOF
3967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3968   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3969   ac_cv_prog_gcc_traditional=yes
3970 fi
3971 rm -f conftest*
3972
3973   fi
3974 fi
3975 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3976 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3977   if test $ac_cv_prog_gcc_traditional = yes; then
3978     CC="$CC -traditional"
3979   fi
3980 fi
3981
3982 BASECC=`basename $CC`
3983 have_gcc=no
3984 if test "x$BASECC" = xgcc; then
3985    cat >>confdefs.h <<\_ACEOF
3986 #define HAVE_GCC 1
3987 _ACEOF
3988
3989    have_gcc=yes
3990 fi
3991 # Extract the first word of "$CXX", so it can be a program name with args.
3992 set dummy $CXX; ac_word=$2
3993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3995 if test "${ac_cv_path_CXX+set}" = set; then
3996   echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998   case $CXX in
3999   [\\/]* | ?:[\\/]*)
4000   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4001   ;;
4002   *)
4003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008   for ac_exec_ext in '' $ac_executable_extensions; do
4009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4010     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4012     break 2
4013   fi
4014 done
4015 done
4016 IFS=$as_save_IFS
4017
4018   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4019   ;;
4020 esac
4021 fi
4022 CXX=$ac_cv_path_CXX
4023 if test -n "$CXX"; then
4024   { echo "$as_me:$LINENO: result: $CXX" >&5
4025 echo "${ECHO_T}$CXX" >&6; }
4026 else
4027   { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4029 fi
4030
4031
4032 if test ! -e $CXX; then
4033    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4034 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4035    { (exit 1); exit 1; }; }
4036 fi
4037
4038 # Find a good install program.  We prefer a C program (faster),
4039 # so one script is as good as another.  But avoid the broken or
4040 # incompatible versions:
4041 # SysV /etc/install, /usr/sbin/install
4042 # SunOS /usr/etc/install
4043 # IRIX /sbin/install
4044 # AIX /bin/install
4045 # AmigaOS /C/install, which installs bootblocks on floppy discs
4046 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4047 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4048 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4049 # OS/2's system install, which has a completely different semantic
4050 # ./install, which can be erroneously created by make from ./install.sh.
4051 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4052 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4053 if test -z "$INSTALL"; then
4054 if test "${ac_cv_path_install+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4059 do
4060   IFS=$as_save_IFS
4061   test -z "$as_dir" && as_dir=.
4062   # Account for people who put trailing slashes in PATH elements.
4063 case $as_dir/ in
4064   ./ | .// | /cC/* | \
4065   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4066   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4067   /usr/ucb/* ) ;;
4068   *)
4069     # OSF1 and SCO ODT 3.0 have their own names for install.
4070     # Don't use installbsd from OSF since it installs stuff as root
4071     # by default.
4072     for ac_prog in ginstall scoinst install; do
4073       for ac_exec_ext in '' $ac_executable_extensions; do
4074         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4075           if test $ac_prog = install &&
4076             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4077             # AIX install.  It has an incompatible calling convention.
4078             :
4079           elif test $ac_prog = install &&
4080             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4081             # program-specific install script used by HP pwplus--don't use.
4082             :
4083           else
4084             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4085             break 3
4086           fi
4087         fi
4088       done
4089     done
4090     ;;
4091 esac
4092 done
4093 IFS=$as_save_IFS
4094
4095
4096 fi
4097   if test "${ac_cv_path_install+set}" = set; then
4098     INSTALL=$ac_cv_path_install
4099   else
4100     # As a last resort, use the slow shell script.  Don't cache a
4101     # value for INSTALL within a source directory, because that will
4102     # break other packages using the cache if that directory is
4103     # removed, or if the value is a relative name.
4104     INSTALL=$ac_install_sh
4105   fi
4106 fi
4107 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4108 echo "${ECHO_T}$INSTALL" >&6; }
4109
4110 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4111 # It thinks the first close brace ends the variable substitution.
4112 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4113
4114 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4115
4116 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4117
4118 if test -n "$ac_tool_prefix"; then
4119   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4123 if test "${ac_cv_prog_RANLIB+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   if test -n "$RANLIB"; then
4127   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132   IFS=$as_save_IFS
4133   test -z "$as_dir" && as_dir=.
4134   for ac_exec_ext in '' $ac_executable_extensions; do
4135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138     break 2
4139   fi
4140 done
4141 done
4142 IFS=$as_save_IFS
4143
4144 fi
4145 fi
4146 RANLIB=$ac_cv_prog_RANLIB
4147 if test -n "$RANLIB"; then
4148   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4149 echo "${ECHO_T}$RANLIB" >&6; }
4150 else
4151   { echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6; }
4153 fi
4154
4155
4156 fi
4157 if test -z "$ac_cv_prog_RANLIB"; then
4158   ac_ct_RANLIB=$RANLIB
4159   # Extract the first word of "ranlib", so it can be a program name with args.
4160 set dummy ranlib; ac_word=$2
4161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4163 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   if test -n "$ac_ct_RANLIB"; then
4167   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172   IFS=$as_save_IFS
4173   test -z "$as_dir" && as_dir=.
4174   for ac_exec_ext in '' $ac_executable_extensions; do
4175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4176     ac_cv_prog_ac_ct_RANLIB="ranlib"
4177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178     break 2
4179   fi
4180 done
4181 done
4182 IFS=$as_save_IFS
4183
4184 fi
4185 fi
4186 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4187 if test -n "$ac_ct_RANLIB"; then
4188   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4189 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4190 else
4191   { echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6; }
4193 fi
4194
4195   if test "x$ac_ct_RANLIB" = x; then
4196     RANLIB=":"
4197   else
4198     case $cross_compiling:$ac_tool_warned in
4199 yes:)
4200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4201 whose name does not start with the host triplet.  If you think this
4202 configuration is useful to you, please write to autoconf@gnu.org." >&5
4203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4204 whose name does not start with the host triplet.  If you think this
4205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4206 ac_tool_warned=yes ;;
4207 esac
4208     RANLIB=$ac_ct_RANLIB
4209   fi
4210 else
4211   RANLIB="$ac_cv_prog_RANLIB"
4212 fi
4213
4214 # Extract the first word of "mv", so it can be a program name with args.
4215 set dummy mv; ac_word=$2
4216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4218 if test "${ac_cv_path_MV+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   case $MV in
4222   [\\/]* | ?:[\\/]*)
4223   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4224   ;;
4225   *)
4226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229   IFS=$as_save_IFS
4230   test -z "$as_dir" && as_dir=.
4231   for ac_exec_ext in '' $ac_executable_extensions; do
4232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4233     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235     break 2
4236   fi
4237 done
4238 done
4239 IFS=$as_save_IFS
4240
4241   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4242   ;;
4243 esac
4244 fi
4245 MV=$ac_cv_path_MV
4246 if test -n "$MV"; then
4247   { echo "$as_me:$LINENO: result: $MV" >&5
4248 echo "${ECHO_T}$MV" >&6; }
4249 else
4250   { echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6; }
4252 fi
4253
4254
4255 # Extract the first word of "rm", so it can be a program name with args.
4256 set dummy rm; ac_word=$2
4257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259 if test "${ac_cv_path_RM+set}" = set; then
4260   echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262   case $RM in
4263   [\\/]* | ?:[\\/]*)
4264   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4265   ;;
4266   *)
4267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272   for ac_exec_ext in '' $ac_executable_extensions; do
4273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4274     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276     break 2
4277   fi
4278 done
4279 done
4280 IFS=$as_save_IFS
4281
4282   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4283   ;;
4284 esac
4285 fi
4286 RM=$ac_cv_path_RM
4287 if test -n "$RM"; then
4288   { echo "$as_me:$LINENO: result: $RM" >&5
4289 echo "${ECHO_T}$RM" >&6; }
4290 else
4291   { echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6; }
4293 fi
4294
4295
4296 # Extract the first word of "cp", so it can be a program name with args.
4297 set dummy cp; ac_word=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_path_CP+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   case $CP in
4304   [\\/]* | ?:[\\/]*)
4305   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4306   ;;
4307   *)
4308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4310 do
4311   IFS=$as_save_IFS
4312   test -z "$as_dir" && as_dir=.
4313   for ac_exec_ext in '' $ac_executable_extensions; do
4314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317     break 2
4318   fi
4319 done
4320 done
4321 IFS=$as_save_IFS
4322
4323   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4324   ;;
4325 esac
4326 fi
4327 CP=$ac_cv_path_CP
4328 if test -n "$CP"; then
4329   { echo "$as_me:$LINENO: result: $CP" >&5
4330 echo "${ECHO_T}$CP" >&6; }
4331 else
4332   { echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6; }
4334 fi
4335
4336
4337 # Extract the first word of "sed", so it can be a program name with args.
4338 set dummy sed; ac_word=$2
4339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4341 if test "${ac_cv_path_SED+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   case $SED in
4345   [\\/]* | ?:[\\/]*)
4346   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4347   ;;
4348   *)
4349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352   IFS=$as_save_IFS
4353   test -z "$as_dir" && as_dir=.
4354   for ac_exec_ext in '' $ac_executable_extensions; do
4355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4356     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4358     break 2
4359   fi
4360 done
4361 done
4362 IFS=$as_save_IFS
4363
4364   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4365   ;;
4366 esac
4367 fi
4368 SED=$ac_cv_path_SED
4369 if test -n "$SED"; then
4370   { echo "$as_me:$LINENO: result: $SED" >&5
4371 echo "${ECHO_T}$SED" >&6; }
4372 else
4373   { echo "$as_me:$LINENO: result: no" >&5
4374 echo "${ECHO_T}no" >&6; }
4375 fi
4376
4377
4378 # Extract the first word of "echo", so it can be a program name with args.
4379 set dummy echo; ac_word=$2
4380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382 if test "${ac_cv_path_ECHO+set}" = set; then
4383   echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385   case $ECHO in
4386   [\\/]* | ?:[\\/]*)
4387   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4388   ;;
4389   *)
4390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393   IFS=$as_save_IFS
4394   test -z "$as_dir" && as_dir=.
4395   for ac_exec_ext in '' $ac_executable_extensions; do
4396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399     break 2
4400   fi
4401 done
4402 done
4403 IFS=$as_save_IFS
4404
4405   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4406   ;;
4407 esac
4408 fi
4409 ECHO=$ac_cv_path_ECHO
4410 if test -n "$ECHO"; then
4411   { echo "$as_me:$LINENO: result: $ECHO" >&5
4412 echo "${ECHO_T}$ECHO" >&6; }
4413 else
4414   { echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6; }
4416 fi
4417
4418
4419 # Extract the first word of "cmp", so it can be a program name with args.
4420 set dummy cmp; ac_word=$2
4421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4423 if test "${ac_cv_path_CMP+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   case $CMP in
4427   [\\/]* | ?:[\\/]*)
4428   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4429   ;;
4430   *)
4431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444 IFS=$as_save_IFS
4445
4446   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4447   ;;
4448 esac
4449 fi
4450 CMP=$ac_cv_path_CMP
4451 if test -n "$CMP"; then
4452   { echo "$as_me:$LINENO: result: $CMP" >&5
4453 echo "${ECHO_T}$CMP" >&6; }
4454 else
4455   { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4457 fi
4458
4459
4460 # Extract the first word of "tbl", so it can be a program name with args.
4461 set dummy tbl; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_path_TBL+set}" = set; then
4465   echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467   case $TBL in
4468   [\\/]* | ?:[\\/]*)
4469   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4470   ;;
4471   *)
4472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475   IFS=$as_save_IFS
4476   test -z "$as_dir" && as_dir=.
4477   for ac_exec_ext in '' $ac_executable_extensions; do
4478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481     break 2
4482   fi
4483 done
4484 done
4485 IFS=$as_save_IFS
4486
4487   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4488   ;;
4489 esac
4490 fi
4491 TBL=$ac_cv_path_TBL
4492 if test -n "$TBL"; then
4493   { echo "$as_me:$LINENO: result: $TBL" >&5
4494 echo "${ECHO_T}$TBL" >&6; }
4495 else
4496   { echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6; }
4498 fi
4499
4500
4501 # Extract the first word of "ar", so it can be a program name with args.
4502 set dummy ar; ac_word=$2
4503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505 if test "${ac_cv_path_AR+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   case $AR in
4509   [\\/]* | ?:[\\/]*)
4510   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4511   ;;
4512   *)
4513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4515 do
4516   IFS=$as_save_IFS
4517   test -z "$as_dir" && as_dir=.
4518   for ac_exec_ext in '' $ac_executable_extensions; do
4519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522     break 2
4523   fi
4524 done
4525 done
4526 IFS=$as_save_IFS
4527
4528   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4529   ;;
4530 esac
4531 fi
4532 AR=$ac_cv_path_AR
4533 if test -n "$AR"; then
4534   { echo "$as_me:$LINENO: result: $AR" >&5
4535 echo "${ECHO_T}$AR" >&6; }
4536 else
4537   { echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6; }
4539 fi
4540
4541
4542 # Extract the first word of "openssl", so it can be a program name with args.
4543 set dummy openssl; ac_word=$2
4544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4546 if test "${ac_cv_path_OPENSSL+set}" = set; then
4547   echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549   case $OPENSSL in
4550   [\\/]* | ?:[\\/]*)
4551   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4552   ;;
4553   *)
4554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557   IFS=$as_save_IFS
4558   test -z "$as_dir" && as_dir=.
4559   for ac_exec_ext in '' $ac_executable_extensions; do
4560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563     break 2
4564   fi
4565 done
4566 done
4567 IFS=$as_save_IFS
4568
4569   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4570   ;;
4571 esac
4572 fi
4573 OPENSSL=$ac_cv_path_OPENSSL
4574 if test -n "$OPENSSL"; then
4575   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4576 echo "${ECHO_T}$OPENSSL" >&6; }
4577 else
4578   { echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6; }
4580 fi
4581
4582
4583 # Extract the first word of "mtx", so it can be a program name with args.
4584 set dummy mtx; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_path_MTX+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   case $MTX in
4591   [\\/]* | ?:[\\/]*)
4592   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4593   ;;
4594   *)
4595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600   for ac_exec_ext in '' $ac_executable_extensions; do
4601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604     break 2
4605   fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4611   ;;
4612 esac
4613 fi
4614 MTX=$ac_cv_path_MTX
4615 if test -n "$MTX"; then
4616   { echo "$as_me:$LINENO: result: $MTX" >&5
4617 echo "${ECHO_T}$MTX" >&6; }
4618 else
4619   { echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6; }
4621 fi
4622
4623
4624 # Extract the first word of "dd", so it can be a program name with args.
4625 set dummy dd; ac_word=$2
4626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4628 if test "${ac_cv_path_DD+set}" = set; then
4629   echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631   case $DD in
4632   [\\/]* | ?:[\\/]*)
4633   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4634   ;;
4635   *)
4636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639   IFS=$as_save_IFS
4640   test -z "$as_dir" && as_dir=.
4641   for ac_exec_ext in '' $ac_executable_extensions; do
4642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4643     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645     break 2
4646   fi
4647 done
4648 done
4649 IFS=$as_save_IFS
4650
4651   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4652   ;;
4653 esac
4654 fi
4655 DD=$ac_cv_path_DD
4656 if test -n "$DD"; then
4657   { echo "$as_me:$LINENO: result: $DD" >&5
4658 echo "${ECHO_T}$DD" >&6; }
4659 else
4660   { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4662 fi
4663
4664
4665 # Extract the first word of "mkisofs", so it can be a program name with args.
4666 set dummy mkisofs; ac_word=$2
4667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669 if test "${ac_cv_path_MKISOFS+set}" = set; then
4670   echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672   case $MKISOFS in
4673   [\\/]* | ?:[\\/]*)
4674   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4675   ;;
4676   *)
4677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680   IFS=$as_save_IFS
4681   test -z "$as_dir" && as_dir=.
4682   for ac_exec_ext in '' $ac_executable_extensions; do
4683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686     break 2
4687   fi
4688 done
4689 done
4690 IFS=$as_save_IFS
4691
4692   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4693   ;;
4694 esac
4695 fi
4696 MKISOFS=$ac_cv_path_MKISOFS
4697 if test -n "$MKISOFS"; then
4698   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4699 echo "${ECHO_T}$MKISOFS" >&6; }
4700 else
4701   { echo "$as_me:$LINENO: result: no" >&5
4702 echo "${ECHO_T}no" >&6; }
4703 fi
4704
4705
4706 # Extract the first word of "python", so it can be a program name with args.
4707 set dummy python; ac_word=$2
4708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710 if test "${ac_cv_path_PYTHON+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   case $PYTHON in
4714   [\\/]* | ?:[\\/]*)
4715   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4716   ;;
4717   *)
4718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721   IFS=$as_save_IFS
4722   test -z "$as_dir" && as_dir=.
4723   for ac_exec_ext in '' $ac_executable_extensions; do
4724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727     break 2
4728   fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4734   ;;
4735 esac
4736 fi
4737 PYTHON=$ac_cv_path_PYTHON
4738 if test -n "$PYTHON"; then
4739   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4740 echo "${ECHO_T}$PYTHON" >&6; }
4741 else
4742   { echo "$as_me:$LINENO: result: no" >&5
4743 echo "${ECHO_T}no" >&6; }
4744 fi
4745
4746
4747 # Extract the first word of "growisofs", so it can be a program name with args.
4748 set dummy growisofs; ac_word=$2
4749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4751 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4752   echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754   case $GROWISOFS in
4755   [\\/]* | ?:[\\/]*)
4756   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4757   ;;
4758   *)
4759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4761 do
4762   IFS=$as_save_IFS
4763   test -z "$as_dir" && as_dir=.
4764   for ac_exec_ext in '' $ac_executable_extensions; do
4765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768     break 2
4769   fi
4770 done
4771 done
4772 IFS=$as_save_IFS
4773
4774   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4775   ;;
4776 esac
4777 fi
4778 GROWISOFS=$ac_cv_path_GROWISOFS
4779 if test -n "$GROWISOFS"; then
4780   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4781 echo "${ECHO_T}$GROWISOFS" >&6; }
4782 else
4783   { echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6; }
4785 fi
4786
4787
4788 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4789 set dummy dvd+rw-mediainfo; ac_word=$2
4790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4792 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4793   echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795   case $DVDRWMEDIAINFO in
4796   [\\/]* | ?:[\\/]*)
4797   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4798   ;;
4799   *)
4800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803   IFS=$as_save_IFS
4804   test -z "$as_dir" && as_dir=.
4805   for ac_exec_ext in '' $ac_executable_extensions; do
4806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809     break 2
4810   fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4816   ;;
4817 esac
4818 fi
4819 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4820 if test -n "$DVDRWMEDIAINFO"; then
4821   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4822 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4823 else
4824   { echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6; }
4826 fi
4827
4828
4829 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4830 set dummy dvd+rw-format; ac_word=$2
4831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4834   echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836   case $DVDRWFORMAT in
4837   [\\/]* | ?:[\\/]*)
4838   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4839   ;;
4840   *)
4841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4843 do
4844   IFS=$as_save_IFS
4845   test -z "$as_dir" && as_dir=.
4846   for ac_exec_ext in '' $ac_executable_extensions; do
4847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850     break 2
4851   fi
4852 done
4853 done
4854 IFS=$as_save_IFS
4855
4856   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4857   ;;
4858 esac
4859 fi
4860 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4861 if test -n "$DVDRWFORMAT"; then
4862   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4863 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4864 else
4865   { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4867 fi
4868
4869
4870 # Extract the first word of "pkg-config", so it can be a program name with args.
4871 set dummy pkg-config; ac_word=$2
4872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4874 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4875   echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877   case $PKGCONFIG in
4878   [\\/]* | ?:[\\/]*)
4879   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4880   ;;
4881   *)
4882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4884 do
4885   IFS=$as_save_IFS
4886   test -z "$as_dir" && as_dir=.
4887   for ac_exec_ext in '' $ac_executable_extensions; do
4888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891     break 2
4892   fi
4893 done
4894 done
4895 IFS=$as_save_IFS
4896
4897   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4898   ;;
4899 esac
4900 fi
4901 PKGCONFIG=$ac_cv_path_PKGCONFIG
4902 if test -n "$PKGCONFIG"; then
4903   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4904 echo "${ECHO_T}$PKGCONFIG" >&6; }
4905 else
4906   { echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6; }
4908 fi
4909
4910
4911 # Extract the first word of "qmake", so it can be a program name with args.
4912 set dummy qmake; ac_word=$2
4913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4915 if test "${ac_cv_path_QMAKE+set}" = set; then
4916   echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918   case $QMAKE in
4919   [\\/]* | ?:[\\/]*)
4920   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4921   ;;
4922   *)
4923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926   IFS=$as_save_IFS
4927   test -z "$as_dir" && as_dir=.
4928   for ac_exec_ext in '' $ac_executable_extensions; do
4929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932     break 2
4933   fi
4934 done
4935 done
4936 IFS=$as_save_IFS
4937
4938   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4939   ;;
4940 esac
4941 fi
4942 QMAKE=$ac_cv_path_QMAKE
4943 if test -n "$QMAKE"; then
4944   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4945 echo "${ECHO_T}$QMAKE" >&6; }
4946 else
4947   { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4949 fi
4950
4951
4952 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4953 set dummy qmake-qt4; ac_word=$2
4954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4956 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4957   echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959   case $QMAKEQT4 in
4960   [\\/]* | ?:[\\/]*)
4961   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4962   ;;
4963   *)
4964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969   for ac_exec_ext in '' $ac_executable_extensions; do
4970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973     break 2
4974   fi
4975 done
4976 done
4977 IFS=$as_save_IFS
4978
4979   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4980   ;;
4981 esac
4982 fi
4983 QMAKEQT4=$ac_cv_path_QMAKEQT4
4984 if test -n "$QMAKEQT4"; then
4985   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4986 echo "${ECHO_T}$QMAKEQT4" >&6; }
4987 else
4988   { echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6; }
4990 fi
4991
4992
4993
4994 if test "x$WXCONFIG" = x; then
4995   WXCONFIG=wx-config
4996 fi
4997 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4998 set dummy ${WXCONFIG}; ac_word=$2
4999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5001 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5002   echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004   case $WXCONFIG in
5005   [\\/]* | ?:[\\/]*)
5006   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5007   ;;
5008   *)
5009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5011 do
5012   IFS=$as_save_IFS
5013   test -z "$as_dir" && as_dir=.
5014   for ac_exec_ext in '' $ac_executable_extensions; do
5015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018     break 2
5019   fi
5020 done
5021 done
5022 IFS=$as_save_IFS
5023
5024   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5025   ;;
5026 esac
5027 fi
5028 WXCONFIG=$ac_cv_path_WXCONFIG
5029 if test -n "$WXCONFIG"; then
5030   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5031 echo "${ECHO_T}$WXCONFIG" >&6; }
5032 else
5033   { echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6; }
5035 fi
5036
5037
5038
5039 # Extract the first word of "cdrecord", so it can be a program name with args.
5040 set dummy cdrecord; ac_word=$2
5041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5043 if test "${ac_cv_path_CDRECORD+set}" = set; then
5044   echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046   case $CDRECORD in
5047   [\\/]* | ?:[\\/]*)
5048   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5049   ;;
5050   *)
5051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054   IFS=$as_save_IFS
5055   test -z "$as_dir" && as_dir=.
5056   for ac_exec_ext in '' $ac_executable_extensions; do
5057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060     break 2
5061   fi
5062 done
5063 done
5064 IFS=$as_save_IFS
5065
5066   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5067   ;;
5068 esac
5069 fi
5070 CDRECORD=$ac_cv_path_CDRECORD
5071 if test -n "$CDRECORD"; then
5072   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5073 echo "${ECHO_T}$CDRECORD" >&6; }
5074 else
5075   { echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6; }
5077 fi
5078
5079
5080 # Extract the first word of "pidof", so it can be a program name with args.
5081 set dummy pidof; ac_word=$2
5082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5084 if test "${ac_cv_path_PIDOF+set}" = set; then
5085   echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087   case $PIDOF in
5088   [\\/]* | ?:[\\/]*)
5089   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5090   ;;
5091   *)
5092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097   for ac_exec_ext in '' $ac_executable_extensions; do
5098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101     break 2
5102   fi
5103 done
5104 done
5105 IFS=$as_save_IFS
5106
5107   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5108   ;;
5109 esac
5110 fi
5111 PIDOF=$ac_cv_path_PIDOF
5112 if test -n "$PIDOF"; then
5113   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5114 echo "${ECHO_T}$PIDOF" >&6; }
5115 else
5116   { echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6; }
5118 fi
5119
5120
5121 for ac_prog in gawk mawk nawk awk
5122 do
5123   # Extract the first word of "$ac_prog", so it can be a program name with args.
5124 set dummy $ac_prog; ac_word=$2
5125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127 if test "${ac_cv_prog_AWK+set}" = set; then
5128   echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130   if test -n "$AWK"; then
5131   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136   IFS=$as_save_IFS
5137   test -z "$as_dir" && as_dir=.
5138   for ac_exec_ext in '' $ac_executable_extensions; do
5139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140     ac_cv_prog_AWK="$ac_prog"
5141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142     break 2
5143   fi
5144 done
5145 done
5146 IFS=$as_save_IFS
5147
5148 fi
5149 fi
5150 AWK=$ac_cv_prog_AWK
5151 if test -n "$AWK"; then
5152   { echo "$as_me:$LINENO: result: $AWK" >&5
5153 echo "${ECHO_T}$AWK" >&6; }
5154 else
5155   { echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6; }
5157 fi
5158
5159
5160   test -n "$AWK" && break
5161 done
5162
5163 # Some AWK programs fail, so test it and warn the user
5164 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5165       { if ((prog == $2) || (("(" prog ")") == $2) ||
5166            (("" prog "") == $2) ||
5167            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5168 else
5169   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5170    The regex engine of $AWK is too broken to be used you
5171    might want to install GNU AWK.
5172    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5173 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5174    The regex engine of $AWK is too broken to be used you
5175    might want to install GNU AWK.
5176    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5177    { (exit 1); exit 1; }; }
5178 fi
5179 THE_AWK=$AWK
5180 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5181 set dummy $THE_AWK; ac_word=$2
5182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5184 if test "${ac_cv_path_AWK+set}" = set; then
5185   echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187   case $AWK in
5188   [\\/]* | ?:[\\/]*)
5189   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5190   ;;
5191   *)
5192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197   for ac_exec_ext in '' $ac_executable_extensions; do
5198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204 done
5205 IFS=$as_save_IFS
5206
5207   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5208   ;;
5209 esac
5210 fi
5211 AWK=$ac_cv_path_AWK
5212 if test -n "$AWK"; then
5213   { echo "$as_me:$LINENO: result: $AWK" >&5
5214 echo "${ECHO_T}$AWK" >&6; }
5215 else
5216   { echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6; }
5218 fi
5219
5220
5221
5222
5223 test -n "$ARFLAG" || ARFLAGS="cr"
5224
5225
5226 MAKE_SHELL=/bin/sh
5227
5228
5229
5230
5231
5232
5233
5234 # Make sure we can run config.sub.
5235 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5236   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5237 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5238    { (exit 1); exit 1; }; }
5239
5240 { echo "$as_me:$LINENO: checking build system type" >&5
5241 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5242 if test "${ac_cv_build+set}" = set; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245   ac_build_alias=$build_alias
5246 test "x$ac_build_alias" = x &&
5247   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5248 test "x$ac_build_alias" = x &&
5249   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5250 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5251    { (exit 1); exit 1; }; }
5252 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5253   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5254 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5255    { (exit 1); exit 1; }; }
5256
5257 fi
5258 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5259 echo "${ECHO_T}$ac_cv_build" >&6; }
5260 case $ac_cv_build in
5261 *-*-*) ;;
5262 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5263 echo "$as_me: error: invalid value of canonical build" >&2;}
5264    { (exit 1); exit 1; }; };;
5265 esac
5266 build=$ac_cv_build
5267 ac_save_IFS=$IFS; IFS='-'
5268 set x $ac_cv_build
5269 shift
5270 build_cpu=$1
5271 build_vendor=$2
5272 shift; shift
5273 # Remember, the first character of IFS is used to create $*,
5274 # except with old shells:
5275 build_os=$*
5276 IFS=$ac_save_IFS
5277 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5278
5279
5280
5281 { echo "$as_me:$LINENO: checking host system type" >&5
5282 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5283 if test "${ac_cv_host+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   if test "x$host_alias" = x; then
5287   ac_cv_host=$ac_cv_build
5288 else
5289   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5290     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5291 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5292    { (exit 1); exit 1; }; }
5293 fi
5294
5295 fi
5296 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5297 echo "${ECHO_T}$ac_cv_host" >&6; }
5298 case $ac_cv_host in
5299 *-*-*) ;;
5300 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5301 echo "$as_me: error: invalid value of canonical host" >&2;}
5302    { (exit 1); exit 1; }; };;
5303 esac
5304 host=$ac_cv_host
5305 ac_save_IFS=$IFS; IFS='-'
5306 set x $ac_cv_host
5307 shift
5308 host_cpu=$1
5309 host_vendor=$2
5310 shift; shift
5311 # Remember, the first character of IFS is used to create $*,
5312 # except with old shells:
5313 host_os=$*
5314 IFS=$ac_save_IFS
5315 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5316
5317
5318 case $host_os in
5319   *cygwin* ) CYGWIN=yes;;
5320          * ) CYGWIN=no;;
5321 esac
5322
5323 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5324 then
5325
5326
5327 if $TRUEPRG; then
5328   HAVE_SUN_OS_TRUE=
5329   HAVE_SUN_OS_FALSE='#'
5330 else
5331   HAVE_SUN_OS_TRUE='#'
5332   HAVE_SUN_OS_FALSE=
5333 fi
5334         cat >>confdefs.h <<\_ACEOF
5335 #define HAVE_SUN_OS 1
5336 _ACEOF
5337
5338 else
5339
5340
5341 if $FALSEPRG; then
5342   HAVE_SUN_OS_TRUE=
5343   HAVE_SUN_OS_FALSE='#'
5344 else
5345   HAVE_SUN_OS_TRUE='#'
5346   HAVE_SUN_OS_FALSE=
5347 fi
5348 fi
5349
5350 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5351 then
5352
5353
5354 if $TRUEPRG; then
5355   HAVE_OSF1_OS_TRUE=
5356   HAVE_OSF1_OS_FALSE='#'
5357 else
5358   HAVE_OSF1_OS_TRUE='#'
5359   HAVE_OSF1_OS_FALSE=
5360 fi
5361         cat >>confdefs.h <<\_ACEOF
5362 #define HAVE_OSF1_OS 1
5363 _ACEOF
5364
5365 else
5366
5367
5368 if $FALSEPRG; then
5369   HAVE_OSF1_OS_TRUE=
5370   HAVE_OSF1_OS_FALSE='#'
5371 else
5372   HAVE_OSF1_OS_TRUE='#'
5373   HAVE_OSF1_OS_FALSE=
5374 fi
5375 fi
5376
5377 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5378 then
5379
5380
5381 if $TRUEPRG; then
5382   HAVE_AIX_OS_TRUE=
5383   HAVE_AIX_OS_FALSE='#'
5384 else
5385   HAVE_AIX_OS_TRUE='#'
5386   HAVE_AIX_OS_FALSE=
5387 fi
5388         cat >>confdefs.h <<\_ACEOF
5389 #define HAVE_AIX_OS 1
5390 _ACEOF
5391
5392 else
5393
5394
5395 if $FALSEPRG; then
5396   HAVE_AIX_OS_TRUE=
5397   HAVE_AIX_OS_FALSE='#'
5398 else
5399   HAVE_AIX_OS_TRUE='#'
5400   HAVE_AIX_OS_FALSE=
5401 fi
5402 fi
5403
5404 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5405 then
5406
5407
5408 if $TRUEPRG; then
5409   HAVE_HPUX_OS_TRUE=
5410   HAVE_HPUX_OS_FALSE='#'
5411 else
5412   HAVE_HPUX_OS_TRUE='#'
5413   HAVE_HPUX_OS_FALSE=
5414 fi
5415         cat >>confdefs.h <<\_ACEOF
5416 #define HAVE_HPUX_OS 1
5417 _ACEOF
5418
5419 else
5420
5421
5422 if $FALSEPRG; then
5423   HAVE_HPUX_OS_TRUE=
5424   HAVE_HPUX_OS_FALSE='#'
5425 else
5426   HAVE_HPUX_OS_TRUE='#'
5427   HAVE_HPUX_OS_FALSE=
5428 fi
5429 fi
5430
5431 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5432 then
5433
5434
5435 if $TRUEPRG; then
5436   HAVE_LINUX_OS_TRUE=
5437   HAVE_LINUX_OS_FALSE='#'
5438 else
5439   HAVE_LINUX_OS_TRUE='#'
5440   HAVE_LINUX_OS_FALSE=
5441 fi
5442         cat >>confdefs.h <<\_ACEOF
5443 #define HAVE_LINUX_OS 1
5444 _ACEOF
5445
5446 else
5447
5448
5449 if $FALSEPRG; then
5450   HAVE_LINUX_OS_TRUE=
5451   HAVE_LINUX_OS_FALSE='#'
5452 else
5453   HAVE_LINUX_OS_TRUE='#'
5454   HAVE_LINUX_OS_FALSE=
5455 fi
5456 fi
5457
5458 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5459 then
5460
5461
5462 if $TRUEPRG; then
5463   HAVE_FREEBSD_OS_TRUE=
5464   HAVE_FREEBSD_OS_FALSE='#'
5465 else
5466   HAVE_FREEBSD_OS_TRUE='#'
5467   HAVE_FREEBSD_OS_FALSE=
5468 fi
5469         cat >>confdefs.h <<\_ACEOF
5470 #define HAVE_FREEBSD_OS 1
5471 _ACEOF
5472
5473 else
5474
5475
5476 if $FALSEPRG; then
5477   HAVE_FREEBSD_OS_TRUE=
5478   HAVE_FREEBSD_OS_FALSE='#'
5479 else
5480   HAVE_FREEBSD_OS_TRUE='#'
5481   HAVE_FREEBSD_OS_FALSE=
5482 fi
5483 fi
5484
5485 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5486 then
5487
5488
5489 if $TRUEPRG; then
5490   HAVE_NETBSD_OS_TRUE=
5491   HAVE_NETBSD_OS_FALSE='#'
5492 else
5493   HAVE_NETBSD_OS_TRUE='#'
5494   HAVE_NETBSD_OS_FALSE=
5495 fi
5496         cat >>confdefs.h <<\_ACEOF
5497 #define HAVE_NETBSD_OS 1
5498 _ACEOF
5499
5500 else
5501
5502
5503 if $FALSEPRG; then
5504   HAVE_NETBSD_OS_TRUE=
5505   HAVE_NETBSD_OS_FALSE='#'
5506 else
5507   HAVE_NETBSD_OS_TRUE='#'
5508   HAVE_NETBSD_OS_FALSE=
5509 fi
5510 fi
5511
5512 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5513 then
5514
5515
5516 if $TRUEPRG; then
5517   HAVE_OPENBSD_OS_TRUE=
5518   HAVE_OPENBSD_OS_FALSE='#'
5519 else
5520   HAVE_OPENBSD_OS_TRUE='#'
5521   HAVE_OPENBSD_OS_FALSE=
5522 fi
5523         cat >>confdefs.h <<\_ACEOF
5524 #define HAVE_OPENBSD_OS 1
5525 _ACEOF
5526
5527 else
5528
5529
5530 if $FALSEPRG; then
5531   HAVE_OPENBSD_OS_TRUE=
5532   HAVE_OPENBSD_OS_FALSE='#'
5533 else
5534   HAVE_OPENBSD_OS_TRUE='#'
5535   HAVE_OPENBSD_OS_FALSE=
5536 fi
5537 fi
5538
5539 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5540 then
5541
5542
5543 if $TRUEPRG; then
5544   HAVE_BSDI_OS_TRUE=
5545   HAVE_BSDI_OS_FALSE='#'
5546 else
5547   HAVE_BSDI_OS_TRUE='#'
5548   HAVE_BSDI_OS_FALSE=
5549 fi
5550         cat >>confdefs.h <<\_ACEOF
5551 #define HAVE_BSDI_OS 1
5552 _ACEOF
5553
5554 else
5555
5556
5557 if $FALSEPRG; then
5558   HAVE_BSDI_OS_TRUE=
5559   HAVE_BSDI_OS_FALSE='#'
5560 else
5561   HAVE_BSDI_OS_TRUE='#'
5562   HAVE_BSDI_OS_FALSE=
5563 fi
5564 fi
5565
5566 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5567 then
5568
5569
5570 if $TRUEPRG; then
5571   HAVE_SGI_OS_TRUE=
5572   HAVE_SGI_OS_FALSE='#'
5573 else
5574   HAVE_SGI_OS_TRUE='#'
5575   HAVE_SGI_OS_FALSE=
5576 fi
5577         cat >>confdefs.h <<\_ACEOF
5578 #define HAVE_SGI_OS 1
5579 _ACEOF
5580
5581 else
5582
5583
5584 if $FALSEPRG; then
5585   HAVE_SGI_OS_TRUE=
5586   HAVE_SGI_OS_FALSE='#'
5587 else
5588   HAVE_SGI_OS_TRUE='#'
5589   HAVE_SGI_OS_FALSE=
5590 fi
5591 fi
5592
5593 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5594 then
5595
5596
5597 if $TRUEPRG; then
5598   HAVE_IRIX_OS_TRUE=
5599   HAVE_IRIX_OS_FALSE='#'
5600 else
5601   HAVE_IRIX_OS_TRUE='#'
5602   HAVE_IRIX_OS_FALSE=
5603 fi
5604         cat >>confdefs.h <<\_ACEOF
5605 #define HAVE_IRIX_OS 1
5606 _ACEOF
5607
5608 else
5609
5610
5611 if $FALSEPRG; then
5612   HAVE_IRIX_OS_TRUE=
5613   HAVE_IRIX_OS_FALSE='#'
5614 else
5615   HAVE_IRIX_OS_TRUE='#'
5616   HAVE_IRIX_OS_FALSE=
5617 fi
5618 fi
5619
5620 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5621 then
5622
5623
5624 if $TRUEPRG; then
5625   HAVE_DARWIN_OS_TRUE=
5626   HAVE_DARWIN_OS_FALSE='#'
5627 else
5628   HAVE_DARWIN_OS_TRUE='#'
5629   HAVE_DARWIN_OS_FALSE=
5630 fi
5631     cat >>confdefs.h <<\_ACEOF
5632 #define HAVE_DARWIN_OS 1
5633 _ACEOF
5634
5635 else
5636
5637
5638 if $FALSEPRG; then
5639   HAVE_DARWIN_OS_TRUE=
5640   HAVE_DARWIN_OS_FALSE='#'
5641 else
5642   HAVE_DARWIN_OS_TRUE='#'
5643   HAVE_DARWIN_OS_FALSE=
5644 fi
5645 fi
5646
5647
5648 # -----------------------------------------------------------
5649 # ----------------------------------------------------------
5650 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5651 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5652 if test "x$DISTNAME" != "x"
5653 then
5654         echo "distname set to $DISTNAME"
5655 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5656 then
5657         DISTNAME=alpha
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5659 then
5660         DISTNAME=aix
5661 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5662 then
5663         DISTNAME=hpux
5664 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5665 then
5666         DISTNAME=solaris
5667 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5668 then
5669         DISTNAME=freebsd
5670 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5671 then
5672         DISTNAME=netbsd
5673 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5674 then
5675         DISTNAME=openbsd
5676 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5677 then
5678         DISTNAME=irix
5679 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5680 then
5681         DISTNAME=bsdi
5682 elif test -f /etc/SuSE-release
5683 then
5684         DISTNAME=suse
5685 elif test -d /etc/SuSEconfig
5686 then
5687         DISTNAME=suse5
5688 elif test -f /etc/mandrake-release
5689 then
5690         DISTNAME=mandrake
5691 elif test -f /etc/whitebox-release
5692 then
5693        DISTNAME=redhat
5694 elif test -f /etc/redhat-release
5695 then
5696         DISTNAME=redhat
5697 elif test -f /etc/gentoo-release
5698 then
5699         DISTNAME=gentoo
5700 elif test -f /etc/debian_version
5701 then
5702         DISTNAME=debian
5703 elif test -f /etc/slackware-version
5704 then
5705         DISTNAME=slackware
5706 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5707 then
5708     DISTNAME=darwin
5709 elif test -f /etc/engarde-version
5710 then
5711         DISTNAME=engarde
5712 elif test "$CYGWIN" = yes
5713 then
5714         DISTNAME=cygwin
5715         cat >>confdefs.h <<\_ACEOF
5716 #define HAVE_CYGWIN 1
5717 _ACEOF
5718
5719 else
5720         DISTNAME=unknown
5721 fi
5722 { echo "$as_me:$LINENO: result: done" >&5
5723 echo "${ECHO_T}done" >&6; }
5724
5725
5726 # --------------------------------------------------
5727 # Suppport for gettext (translations)
5728 # By default, $datadir is ${prefix}/share
5729 # --------------------------------------------------
5730 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5731 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5732 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5733 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   cat >conftest.make <<\_ACEOF
5737 SHELL = /bin/sh
5738 all:
5739         @echo '@@@%%%=$(MAKE)=@@@%%%'
5740 _ACEOF
5741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5742 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5743   *@@@%%%=?*=@@@%%%*)
5744     eval ac_cv_prog_make_${ac_make}_set=yes;;
5745   *)
5746     eval ac_cv_prog_make_${ac_make}_set=no;;
5747 esac
5748 rm -f conftest.make
5749 fi
5750 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5751   { echo "$as_me:$LINENO: result: yes" >&5
5752 echo "${ECHO_T}yes" >&6; }
5753   SET_MAKE=
5754 else
5755   { echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6; }
5757   SET_MAKE="MAKE=${MAKE-make}"
5758 fi
5759
5760
5761
5762         MKINSTALLDIRS=
5763   if test -n "$ac_aux_dir"; then
5764     case "$ac_aux_dir" in
5765       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5766       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5767     esac
5768   fi
5769   if test -z "$MKINSTALLDIRS"; then
5770     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5771   fi
5772
5773
5774
5775   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5776 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5777     # Check whether --enable-nls was given.
5778 if test "${enable_nls+set}" = set; then
5779   enableval=$enable_nls; USE_NLS=$enableval
5780 else
5781   USE_NLS=yes
5782 fi
5783
5784   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5785 echo "${ECHO_T}$USE_NLS" >&6; }
5786
5787
5788
5789
5790
5791
5792 # Prepare PATH_SEPARATOR.
5793 # The user is always right.
5794 if test "${PATH_SEPARATOR+set}" != set; then
5795   echo "#! /bin/sh" >conf$$.sh
5796   echo  "exit 0"   >>conf$$.sh
5797   chmod +x conf$$.sh
5798   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5799     PATH_SEPARATOR=';'
5800   else
5801     PATH_SEPARATOR=:
5802   fi
5803   rm -f conf$$.sh
5804 fi
5805
5806 # Find out how to test for executable files. Don't use a zero-byte file,
5807 # as systems may use methods other than mode bits to determine executability.
5808 cat >conf$$.file <<_ASEOF
5809 #! /bin/sh
5810 exit 0
5811 _ASEOF
5812 chmod +x conf$$.file
5813 if test -x conf$$.file >/dev/null 2>&1; then
5814   ac_executable_p="test -x"
5815 else
5816   ac_executable_p="test -f"
5817 fi
5818 rm -f conf$$.file
5819
5820 # Extract the first word of "msgfmt", so it can be a program name with args.
5821 set dummy msgfmt; ac_word=$2
5822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824 if test "${ac_cv_path_MSGFMT+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   case "$MSGFMT" in
5828   [\\/]* | ?:[\\/]*)
5829     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5830     ;;
5831   *)
5832     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5833     for ac_dir in $PATH; do
5834       IFS="$ac_save_IFS"
5835       test -z "$ac_dir" && ac_dir=.
5836       for ac_exec_ext in '' $ac_executable_extensions; do
5837         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5838           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5839           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5840      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5841             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5842             break 2
5843           fi
5844         fi
5845       done
5846     done
5847     IFS="$ac_save_IFS"
5848   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5849     ;;
5850 esac
5851 fi
5852 MSGFMT="$ac_cv_path_MSGFMT"
5853 if test "$MSGFMT" != ":"; then
5854   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5855 echo "${ECHO_T}$MSGFMT" >&6; }
5856 else
5857   { echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6; }
5859 fi
5860
5861   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5862 set dummy gmsgfmt; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   case $GMSGFMT in
5869   [\\/]* | ?:[\\/]*)
5870   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5871   ;;
5872   *)
5873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878   for ac_exec_ext in '' $ac_executable_extensions; do
5879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5889   ;;
5890 esac
5891 fi
5892 GMSGFMT=$ac_cv_path_GMSGFMT
5893 if test -n "$GMSGFMT"; then
5894   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5895 echo "${ECHO_T}$GMSGFMT" >&6; }
5896 else
5897   { echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6; }
5899 fi
5900
5901
5902
5903
5904 # Prepare PATH_SEPARATOR.
5905 # The user is always right.
5906 if test "${PATH_SEPARATOR+set}" != set; then
5907   echo "#! /bin/sh" >conf$$.sh
5908   echo  "exit 0"   >>conf$$.sh
5909   chmod +x conf$$.sh
5910   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5911     PATH_SEPARATOR=';'
5912   else
5913     PATH_SEPARATOR=:
5914   fi
5915   rm -f conf$$.sh
5916 fi
5917
5918 # Find out how to test for executable files. Don't use a zero-byte file,
5919 # as systems may use methods other than mode bits to determine executability.
5920 cat >conf$$.file <<_ASEOF
5921 #! /bin/sh
5922 exit 0
5923 _ASEOF
5924 chmod +x conf$$.file
5925 if test -x conf$$.file >/dev/null 2>&1; then
5926   ac_executable_p="test -x"
5927 else
5928   ac_executable_p="test -f"
5929 fi
5930 rm -f conf$$.file
5931
5932 # Extract the first word of "xgettext", so it can be a program name with args.
5933 set dummy xgettext; ac_word=$2
5934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5936 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5937   echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5939   case "$XGETTEXT" in
5940   [\\/]* | ?:[\\/]*)
5941     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5942     ;;
5943   *)
5944     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5945     for ac_dir in $PATH; do
5946       IFS="$ac_save_IFS"
5947       test -z "$ac_dir" && ac_dir=.
5948       for ac_exec_ext in '' $ac_executable_extensions; do
5949         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5950           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5951           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5952      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5953             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5954             break 2
5955           fi
5956         fi
5957       done
5958     done
5959     IFS="$ac_save_IFS"
5960   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5961     ;;
5962 esac
5963 fi
5964 XGETTEXT="$ac_cv_path_XGETTEXT"
5965 if test "$XGETTEXT" != ":"; then
5966   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5967 echo "${ECHO_T}$XGETTEXT" >&6; }
5968 else
5969   { echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6; }
5971 fi
5972
5973     rm -f messages.po
5974
5975
5976 # Prepare PATH_SEPARATOR.
5977 # The user is always right.
5978 if test "${PATH_SEPARATOR+set}" != set; then
5979   echo "#! /bin/sh" >conf$$.sh
5980   echo  "exit 0"   >>conf$$.sh
5981   chmod +x conf$$.sh
5982   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5983     PATH_SEPARATOR=';'
5984   else
5985     PATH_SEPARATOR=:
5986   fi
5987   rm -f conf$$.sh
5988 fi
5989
5990 # Find out how to test for executable files. Don't use a zero-byte file,
5991 # as systems may use methods other than mode bits to determine executability.
5992 cat >conf$$.file <<_ASEOF
5993 #! /bin/sh
5994 exit 0
5995 _ASEOF
5996 chmod +x conf$$.file
5997 if test -x conf$$.file >/dev/null 2>&1; then
5998   ac_executable_p="test -x"
5999 else
6000   ac_executable_p="test -f"
6001 fi
6002 rm -f conf$$.file
6003
6004 # Extract the first word of "msgmerge", so it can be a program name with args.
6005 set dummy msgmerge; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6009   echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011   case "$MSGMERGE" in
6012   [\\/]* | ?:[\\/]*)
6013     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6014     ;;
6015   *)
6016     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6017     for ac_dir in $PATH; do
6018       IFS="$ac_save_IFS"
6019       test -z "$ac_dir" && ac_dir=.
6020       for ac_exec_ext in '' $ac_executable_extensions; do
6021         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6022           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6023           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6024             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6025             break 2
6026           fi
6027         fi
6028       done
6029     done
6030     IFS="$ac_save_IFS"
6031   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6032     ;;
6033 esac
6034 fi
6035 MSGMERGE="$ac_cv_path_MSGMERGE"
6036 if test "$MSGMERGE" != ":"; then
6037   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6038 echo "${ECHO_T}$MSGMERGE" >&6; }
6039 else
6040   { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6042 fi
6043
6044
6045       if test "$GMSGFMT" != ":"; then
6046             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6047        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6048       : ;
6049     else
6050       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6051       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6052 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6053       GMSGFMT=":"
6054     fi
6055   fi
6056
6057       if test "$XGETTEXT" != ":"; then
6058             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6059        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6060       : ;
6061     else
6062       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6063 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6064       XGETTEXT=":"
6065     fi
6066         rm -f messages.po
6067   fi
6068
6069   ac_config_commands="$ac_config_commands default-1"
6070
6071
6072
6073       if test "X$prefix" = "XNONE"; then
6074     acl_final_prefix="$ac_default_prefix"
6075   else
6076     acl_final_prefix="$prefix"
6077   fi
6078   if test "X$exec_prefix" = "XNONE"; then
6079     acl_final_exec_prefix='${prefix}'
6080   else
6081     acl_final_exec_prefix="$exec_prefix"
6082   fi
6083   acl_save_prefix="$prefix"
6084   prefix="$acl_final_prefix"
6085   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6086   prefix="$acl_save_prefix"
6087
6088
6089 # Check whether --with-gnu-ld was given.
6090 if test "${with_gnu_ld+set}" = set; then
6091   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6092 else
6093   with_gnu_ld=no
6094 fi
6095
6096 # Prepare PATH_SEPARATOR.
6097 # The user is always right.
6098 if test "${PATH_SEPARATOR+set}" != set; then
6099   echo "#! /bin/sh" >conf$$.sh
6100   echo  "exit 0"   >>conf$$.sh
6101   chmod +x conf$$.sh
6102   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6103     PATH_SEPARATOR=';'
6104   else
6105     PATH_SEPARATOR=:
6106   fi
6107   rm -f conf$$.sh
6108 fi
6109 ac_prog=ld
6110 if test "$GCC" = yes; then
6111   # Check if gcc -print-prog-name=ld gives a path.
6112   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6113 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6114   case $host in
6115   *-*-mingw*)
6116     # gcc leaves a trailing carriage return which upsets mingw
6117     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6118   *)
6119     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6120   esac
6121   case $ac_prog in
6122     # Accept absolute paths.
6123     [\\/]* | [A-Za-z]:[\\/]*)
6124       re_direlt='/[^/][^/]*/\.\./'
6125       # Canonicalize the path of ld
6126       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6127       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6128         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6129       done
6130       test -z "$LD" && LD="$ac_prog"
6131       ;;
6132   "")
6133     # If it fails, then pretend we aren't using GCC.
6134     ac_prog=ld
6135     ;;
6136   *)
6137     # If it is relative, then search for the first ld in PATH.
6138     with_gnu_ld=unknown
6139     ;;
6140   esac
6141 elif test "$with_gnu_ld" = yes; then
6142   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6143 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6144 else
6145   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6146 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6147 fi
6148 if test "${acl_cv_path_LD+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   if test -z "$LD"; then
6152   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6153   for ac_dir in $PATH; do
6154     test -z "$ac_dir" && ac_dir=.
6155     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6156       acl_cv_path_LD="$ac_dir/$ac_prog"
6157       # Check to see if the program is GNU ld.  I'd rather use --version,
6158       # but apparently some GNU ld's only accept -v.
6159       # Break only if it was the GNU/non-GNU ld that we prefer.
6160       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6161       *GNU* | *'with BFD'*)
6162         test "$with_gnu_ld" != no && break ;;
6163       *)
6164         test "$with_gnu_ld" != yes && break ;;
6165       esac
6166     fi
6167   done
6168   IFS="$ac_save_ifs"
6169 else
6170   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6171 fi
6172 fi
6173
6174 LD="$acl_cv_path_LD"
6175 if test -n "$LD"; then
6176   { echo "$as_me:$LINENO: result: $LD" >&5
6177 echo "${ECHO_T}$LD" >&6; }
6178 else
6179   { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6181 fi
6182 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6183 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6184    { (exit 1); exit 1; }; }
6185 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6186 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6187 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6191 case `$LD -v 2>&1 </dev/null` in
6192 *GNU* | *'with BFD'*)
6193   acl_cv_prog_gnu_ld=yes ;;
6194 *)
6195   acl_cv_prog_gnu_ld=no ;;
6196 esac
6197 fi
6198 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6199 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6200 with_gnu_ld=$acl_cv_prog_gnu_ld
6201
6202
6203
6204
6205                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6206 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6207 if test "${acl_cv_rpath+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210
6211     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6212     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6213     . ./conftest.sh
6214     rm -f ./conftest.sh
6215     acl_cv_rpath=done
6216
6217 fi
6218 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6219 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6220   wl="$acl_cv_wl"
6221   libext="$acl_cv_libext"
6222   shlibext="$acl_cv_shlibext"
6223   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6224   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6225   hardcode_direct="$acl_cv_hardcode_direct"
6226   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6227     # Check whether --enable-rpath was given.
6228 if test "${enable_rpath+set}" = set; then
6229   enableval=$enable_rpath; :
6230 else
6231   enable_rpath=yes
6232 fi
6233
6234
6235
6236
6237
6238
6239
6240
6241     use_additional=yes
6242
6243   acl_save_prefix="$prefix"
6244   prefix="$acl_final_prefix"
6245   acl_save_exec_prefix="$exec_prefix"
6246   exec_prefix="$acl_final_exec_prefix"
6247
6248     eval additional_includedir=\"$includedir\"
6249     eval additional_libdir=\"$libdir\"
6250
6251   exec_prefix="$acl_save_exec_prefix"
6252   prefix="$acl_save_prefix"
6253
6254
6255 # Check whether --with-libiconv-prefix was given.
6256 if test "${with_libiconv_prefix+set}" = set; then
6257   withval=$with_libiconv_prefix;
6258     if test "X$withval" = "Xno"; then
6259       use_additional=no
6260     else
6261       if test "X$withval" = "X"; then
6262
6263   acl_save_prefix="$prefix"
6264   prefix="$acl_final_prefix"
6265   acl_save_exec_prefix="$exec_prefix"
6266   exec_prefix="$acl_final_exec_prefix"
6267
6268           eval additional_includedir=\"$includedir\"
6269           eval additional_libdir=\"$libdir\"
6270
6271   exec_prefix="$acl_save_exec_prefix"
6272   prefix="$acl_save_prefix"
6273
6274       else
6275         additional_includedir="$withval/include"
6276         additional_libdir="$withval/lib"
6277       fi
6278     fi
6279
6280 fi
6281
6282       LIBICONV=
6283   LTLIBICONV=
6284   INCICONV=
6285   rpathdirs=
6286   ltrpathdirs=
6287   names_already_handled=
6288   names_next_round='iconv '
6289   while test -n "$names_next_round"; do
6290     names_this_round="$names_next_round"
6291     names_next_round=
6292     for name in $names_this_round; do
6293       already_handled=
6294       for n in $names_already_handled; do
6295         if test "$n" = "$name"; then
6296           already_handled=yes
6297           break
6298         fi
6299       done
6300       if test -z "$already_handled"; then
6301         names_already_handled="$names_already_handled $name"
6302                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6303         eval value=\"\$HAVE_LIB$uppername\"
6304         if test -n "$value"; then
6305           if test "$value" = yes; then
6306             eval value=\"\$LIB$uppername\"
6307             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6308             eval value=\"\$LTLIB$uppername\"
6309             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6310           else
6311                                     :
6312           fi
6313         else
6314                               found_dir=
6315           found_la=
6316           found_so=
6317           found_a=
6318           if test $use_additional = yes; then
6319             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6320               found_dir="$additional_libdir"
6321               found_so="$additional_libdir/lib$name.$shlibext"
6322               if test -f "$additional_libdir/lib$name.la"; then
6323                 found_la="$additional_libdir/lib$name.la"
6324               fi
6325             else
6326               if test -f "$additional_libdir/lib$name.$libext"; then
6327                 found_dir="$additional_libdir"
6328                 found_a="$additional_libdir/lib$name.$libext"
6329                 if test -f "$additional_libdir/lib$name.la"; then
6330                   found_la="$additional_libdir/lib$name.la"
6331                 fi
6332               fi
6333             fi
6334           fi
6335           if test "X$found_dir" = "X"; then
6336             for x in $LDFLAGS $LTLIBICONV; do
6337
6338   acl_save_prefix="$prefix"
6339   prefix="$acl_final_prefix"
6340   acl_save_exec_prefix="$exec_prefix"
6341   exec_prefix="$acl_final_exec_prefix"
6342   eval x=\"$x\"
6343   exec_prefix="$acl_save_exec_prefix"
6344   prefix="$acl_save_prefix"
6345
6346               case "$x" in
6347                 -L*)
6348                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6349                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6350                     found_dir="$dir"
6351                     found_so="$dir/lib$name.$shlibext"
6352                     if test -f "$dir/lib$name.la"; then
6353                       found_la="$dir/lib$name.la"
6354                     fi
6355                   else
6356                     if test -f "$dir/lib$name.$libext"; then
6357                       found_dir="$dir"
6358                       found_a="$dir/lib$name.$libext"
6359                       if test -f "$dir/lib$name.la"; then
6360                         found_la="$dir/lib$name.la"
6361                       fi
6362                     fi
6363                   fi
6364                   ;;
6365               esac
6366               if test "X$found_dir" != "X"; then
6367                 break
6368               fi
6369             done
6370           fi
6371           if test "X$found_dir" != "X"; then
6372                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6373             if test "X$found_so" != "X"; then
6374                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6375                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6376               else
6377                                                                                 haveit=
6378                 for x in $ltrpathdirs; do
6379                   if test "X$x" = "X$found_dir"; then
6380                     haveit=yes
6381                     break
6382                   fi
6383                 done
6384                 if test -z "$haveit"; then
6385                   ltrpathdirs="$ltrpathdirs $found_dir"
6386                 fi
6387                                 if test "$hardcode_direct" = yes; then
6388                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6389                 else
6390                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6391                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6392                                                             haveit=
6393                     for x in $rpathdirs; do
6394                       if test "X$x" = "X$found_dir"; then
6395                         haveit=yes
6396                         break
6397                       fi
6398                     done
6399                     if test -z "$haveit"; then
6400                       rpathdirs="$rpathdirs $found_dir"
6401                     fi
6402                   else
6403                                                                                 haveit=
6404                     for x in $LDFLAGS $LIBICONV; do
6405
6406   acl_save_prefix="$prefix"
6407   prefix="$acl_final_prefix"
6408   acl_save_exec_prefix="$exec_prefix"
6409   exec_prefix="$acl_final_exec_prefix"
6410   eval x=\"$x\"
6411   exec_prefix="$acl_save_exec_prefix"
6412   prefix="$acl_save_prefix"
6413
6414                       if test "X$x" = "X-L$found_dir"; then
6415                         haveit=yes
6416                         break
6417                       fi
6418                     done
6419                     if test -z "$haveit"; then
6420                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6421                     fi
6422                     if test "$hardcode_minus_L" != no; then
6423                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6424                     else
6425                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6426                     fi
6427                   fi
6428                 fi
6429               fi
6430             else
6431               if test "X$found_a" != "X"; then
6432                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6433               else
6434                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6435               fi
6436             fi
6437                         additional_includedir=
6438             case "$found_dir" in
6439               */lib | */lib/)
6440                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6441                 additional_includedir="$basedir/include"
6442                 ;;
6443             esac
6444             if test "X$additional_includedir" != "X"; then
6445                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6446                 haveit=
6447                 if test "X$additional_includedir" = "X/usr/local/include"; then
6448                   if test -n "$GCC"; then
6449                     case $host_os in
6450                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6451                     esac
6452                   fi
6453                 fi
6454                 if test -z "$haveit"; then
6455                   for x in $CPPFLAGS $INCICONV; do
6456
6457   acl_save_prefix="$prefix"
6458   prefix="$acl_final_prefix"
6459   acl_save_exec_prefix="$exec_prefix"
6460   exec_prefix="$acl_final_exec_prefix"
6461   eval x=\"$x\"
6462   exec_prefix="$acl_save_exec_prefix"
6463   prefix="$acl_save_prefix"
6464
6465                     if test "X$x" = "X-I$additional_includedir"; then
6466                       haveit=yes
6467                       break
6468                     fi
6469                   done
6470                   if test -z "$haveit"; then
6471                     if test -d "$additional_includedir"; then
6472                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6473                     fi
6474                   fi
6475                 fi
6476               fi
6477             fi
6478                         if test -n "$found_la"; then
6479                                                         save_libdir="$libdir"
6480               case "$found_la" in
6481                 */* | *\\*) . "$found_la" ;;
6482                 *) . "./$found_la" ;;
6483               esac
6484               libdir="$save_libdir"
6485                             for dep in $dependency_libs; do
6486                 case "$dep" in
6487                   -L*)
6488                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6489                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6490                       haveit=
6491                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6492                         if test -n "$GCC"; then
6493                           case $host_os in
6494                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6495                           esac
6496                         fi
6497                       fi
6498                       if test -z "$haveit"; then
6499                         haveit=
6500                         for x in $LDFLAGS $LIBICONV; do
6501
6502   acl_save_prefix="$prefix"
6503   prefix="$acl_final_prefix"
6504   acl_save_exec_prefix="$exec_prefix"
6505   exec_prefix="$acl_final_exec_prefix"
6506   eval x=\"$x\"
6507   exec_prefix="$acl_save_exec_prefix"
6508   prefix="$acl_save_prefix"
6509
6510                           if test "X$x" = "X-L$additional_libdir"; then
6511                             haveit=yes
6512                             break
6513                           fi
6514                         done
6515                         if test -z "$haveit"; then
6516                           if test -d "$additional_libdir"; then
6517                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6518                           fi
6519                         fi
6520                         haveit=
6521                         for x in $LDFLAGS $LTLIBICONV; do
6522
6523   acl_save_prefix="$prefix"
6524   prefix="$acl_final_prefix"
6525   acl_save_exec_prefix="$exec_prefix"
6526   exec_prefix="$acl_final_exec_prefix"
6527   eval x=\"$x\"
6528   exec_prefix="$acl_save_exec_prefix"
6529   prefix="$acl_save_prefix"
6530
6531                           if test "X$x" = "X-L$additional_libdir"; then
6532                             haveit=yes
6533                             break
6534                           fi
6535                         done
6536                         if test -z "$haveit"; then
6537                           if test -d "$additional_libdir"; then
6538                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6539                           fi
6540                         fi
6541                       fi
6542                     fi
6543                     ;;
6544                   -R*)
6545                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6546                     if test "$enable_rpath" != no; then
6547                                                                   haveit=
6548                       for x in $rpathdirs; do
6549                         if test "X$x" = "X$dir"; then
6550                           haveit=yes
6551                           break
6552                         fi
6553                       done
6554                       if test -z "$haveit"; then
6555                         rpathdirs="$rpathdirs $dir"
6556                       fi
6557                                                                   haveit=
6558                       for x in $ltrpathdirs; do
6559                         if test "X$x" = "X$dir"; then
6560                           haveit=yes
6561                           break
6562                         fi
6563                       done
6564                       if test -z "$haveit"; then
6565                         ltrpathdirs="$ltrpathdirs $dir"
6566                       fi
6567                     fi
6568                     ;;
6569                   -l*)
6570                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6571                     ;;
6572                   *.la)
6573                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6574                     ;;
6575                   *)
6576                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6577                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6578                     ;;
6579                 esac
6580               done
6581             fi
6582           else
6583                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6584             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6585           fi
6586         fi
6587       fi
6588     done
6589   done
6590   if test "X$rpathdirs" != "X"; then
6591     if test -n "$hardcode_libdir_separator"; then
6592                         alldirs=
6593       for found_dir in $rpathdirs; do
6594         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6595       done
6596             acl_save_libdir="$libdir"
6597       libdir="$alldirs"
6598       eval flag=\"$hardcode_libdir_flag_spec\"
6599       libdir="$acl_save_libdir"
6600       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6601     else
6602             for found_dir in $rpathdirs; do
6603         acl_save_libdir="$libdir"
6604         libdir="$found_dir"
6605         eval flag=\"$hardcode_libdir_flag_spec\"
6606         libdir="$acl_save_libdir"
6607         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6608       done
6609     fi
6610   fi
6611   if test "X$ltrpathdirs" != "X"; then
6612             for found_dir in $ltrpathdirs; do
6613       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6614     done
6615   fi
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6635 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6636 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   gt_save_CPPFLAGS="$CPPFLAGS"
6640      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6641      gt_save_LIBS="$LIBS"
6642      LIBS="$LIBS -framework CoreFoundation"
6643      cat >conftest.$ac_ext <<_ACEOF
6644 /* confdefs.h.  */
6645 _ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h.  */
6649 #include <CFPreferences.h>
6650 int
6651 main ()
6652 {
6653 CFPreferencesCopyAppValue(NULL, NULL)
6654   ;
6655   return 0;
6656 }
6657 _ACEOF
6658 rm -f conftest.$ac_objext conftest$ac_exeext
6659 if { (ac_try="$ac_link"
6660 case "(($ac_try" in
6661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662   *) ac_try_echo=$ac_try;;
6663 esac
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665   (eval "$ac_link") 2>conftest.er1
6666   ac_status=$?
6667   grep -v '^ *+' conftest.er1 >conftest.err
6668   rm -f conftest.er1
6669   cat conftest.err >&5
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); } && {
6672          test -z "$ac_c_werror_flag" ||
6673          test ! -s conftest.err
6674        } && test -s conftest$ac_exeext &&
6675        $as_test_x conftest$ac_exeext; then
6676   gt_cv_func_CFPreferencesCopyAppValue=yes
6677 else
6678   echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6680
6681         gt_cv_func_CFPreferencesCopyAppValue=no
6682 fi
6683
6684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6685       conftest$ac_exeext conftest.$ac_ext
6686      CPPFLAGS="$gt_save_CPPFLAGS"
6687      LIBS="$gt_save_LIBS"
6688 fi
6689 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6690 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6691   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6692
6693 cat >>confdefs.h <<\_ACEOF
6694 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6695 _ACEOF
6696
6697   fi
6698     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6699 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6700 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   gt_save_CPPFLAGS="$CPPFLAGS"
6704      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6705      gt_save_LIBS="$LIBS"
6706      LIBS="$LIBS -framework CoreFoundation"
6707      cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h.  */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h.  */
6713 #include <CFLocale.h>
6714 int
6715 main ()
6716 {
6717 CFLocaleCopyCurrent();
6718   ;
6719   return 0;
6720 }
6721 _ACEOF
6722 rm -f conftest.$ac_objext conftest$ac_exeext
6723 if { (ac_try="$ac_link"
6724 case "(($ac_try" in
6725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726   *) ac_try_echo=$ac_try;;
6727 esac
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729   (eval "$ac_link") 2>conftest.er1
6730   ac_status=$?
6731   grep -v '^ *+' conftest.er1 >conftest.err
6732   rm -f conftest.er1
6733   cat conftest.err >&5
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); } && {
6736          test -z "$ac_c_werror_flag" ||
6737          test ! -s conftest.err
6738        } && test -s conftest$ac_exeext &&
6739        $as_test_x conftest$ac_exeext; then
6740   gt_cv_func_CFLocaleCopyCurrent=yes
6741 else
6742   echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6744
6745         gt_cv_func_CFLocaleCopyCurrent=no
6746 fi
6747
6748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6749       conftest$ac_exeext conftest.$ac_ext
6750      CPPFLAGS="$gt_save_CPPFLAGS"
6751      LIBS="$gt_save_LIBS"
6752 fi
6753 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6754 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6755   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6756
6757 cat >>confdefs.h <<\_ACEOF
6758 #define HAVE_CFLOCALECOPYCURRENT 1
6759 _ACEOF
6760
6761   fi
6762   INTL_MACOSX_LIBS=
6763   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6764     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6765   fi
6766
6767
6768
6769
6770   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6771 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6772     # Check whether --enable-nls was given.
6773 if test "${enable_nls+set}" = set; then
6774   enableval=$enable_nls; USE_NLS=$enableval
6775 else
6776   USE_NLS=yes
6777 fi
6778
6779   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6780 echo "${ECHO_T}$USE_NLS" >&6; }
6781
6782
6783
6784
6785   LIBINTL=
6786   LTLIBINTL=
6787   POSUB=
6788
6789     if test "$USE_NLS" = "yes"; then
6790     gt_use_preinstalled_gnugettext=no
6791
6792
6793
6794
6795
6796
6797         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6798 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6799 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6800   echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802   cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h.  */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h.  */
6808 #include <libintl.h>
6809 extern int _nl_msg_cat_cntr;
6810 extern int *_nl_domain_bindings;
6811 int
6812 main ()
6813 {
6814 bindtextdomain ("", "");
6815 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6816   ;
6817   return 0;
6818 }
6819 _ACEOF
6820 rm -f conftest.$ac_objext conftest$ac_exeext
6821 if { (ac_try="$ac_link"
6822 case "(($ac_try" in
6823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824   *) ac_try_echo=$ac_try;;
6825 esac
6826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6827   (eval "$ac_link") 2>conftest.er1
6828   ac_status=$?
6829   grep -v '^ *+' conftest.er1 >conftest.err
6830   rm -f conftest.er1
6831   cat conftest.err >&5
6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833   (exit $ac_status); } && {
6834          test -z "$ac_c_werror_flag" ||
6835          test ! -s conftest.err
6836        } && test -s conftest$ac_exeext &&
6837        $as_test_x conftest$ac_exeext; then
6838   gt_cv_func_gnugettext1_libc=yes
6839 else
6840   echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6842
6843         gt_cv_func_gnugettext1_libc=no
6844 fi
6845
6846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6847       conftest$ac_exeext conftest.$ac_ext
6848 fi
6849 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6850 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6851
6852         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6853
6854
6855
6856
6857
6858           am_save_CPPFLAGS="$CPPFLAGS"
6859
6860   for element in $INCICONV; do
6861     haveit=
6862     for x in $CPPFLAGS; do
6863
6864   acl_save_prefix="$prefix"
6865   prefix="$acl_final_prefix"
6866   acl_save_exec_prefix="$exec_prefix"
6867   exec_prefix="$acl_final_exec_prefix"
6868   eval x=\"$x\"
6869   exec_prefix="$acl_save_exec_prefix"
6870   prefix="$acl_save_prefix"
6871
6872       if test "X$x" = "X$element"; then
6873         haveit=yes
6874         break
6875       fi
6876     done
6877     if test -z "$haveit"; then
6878       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6879     fi
6880   done
6881
6882
6883   { echo "$as_me:$LINENO: checking for iconv" >&5
6884 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6885 if test "${am_cv_func_iconv+set}" = set; then
6886   echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888
6889     am_cv_func_iconv="no, consider installing GNU libiconv"
6890     am_cv_lib_iconv=no
6891     cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 #include <stdlib.h>
6898 #include <iconv.h>
6899 int
6900 main ()
6901 {
6902 iconv_t cd = iconv_open("","");
6903        iconv(cd,NULL,NULL,NULL,NULL);
6904        iconv_close(cd);
6905   ;
6906   return 0;
6907 }
6908 _ACEOF
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6911 case "(($ac_try" in
6912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913   *) ac_try_echo=$ac_try;;
6914 esac
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916   (eval "$ac_link") 2>conftest.er1
6917   ac_status=$?
6918   grep -v '^ *+' conftest.er1 >conftest.err
6919   rm -f conftest.er1
6920   cat conftest.err >&5
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); } && {
6923          test -z "$ac_c_werror_flag" ||
6924          test ! -s conftest.err
6925        } && test -s conftest$ac_exeext &&
6926        $as_test_x conftest$ac_exeext; then
6927   am_cv_func_iconv=yes
6928 else
6929   echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6931
6932
6933 fi
6934
6935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6936       conftest$ac_exeext conftest.$ac_ext
6937     if test "$am_cv_func_iconv" != yes; then
6938       am_save_LIBS="$LIBS"
6939       LIBS="$LIBS $LIBICONV"
6940       cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h.  */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h.  */
6946 #include <stdlib.h>
6947 #include <iconv.h>
6948 int
6949 main ()
6950 {
6951 iconv_t cd = iconv_open("","");
6952          iconv(cd,NULL,NULL,NULL,NULL);
6953          iconv_close(cd);
6954   ;
6955   return 0;
6956 }
6957 _ACEOF
6958 rm -f conftest.$ac_objext conftest$ac_exeext
6959 if { (ac_try="$ac_link"
6960 case "(($ac_try" in
6961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962   *) ac_try_echo=$ac_try;;
6963 esac
6964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6965   (eval "$ac_link") 2>conftest.er1
6966   ac_status=$?
6967   grep -v '^ *+' conftest.er1 >conftest.err
6968   rm -f conftest.er1
6969   cat conftest.err >&5
6970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); } && {
6972          test -z "$ac_c_werror_flag" ||
6973          test ! -s conftest.err
6974        } && test -s conftest$ac_exeext &&
6975        $as_test_x conftest$ac_exeext; then
6976   am_cv_lib_iconv=yes
6977         am_cv_func_iconv=yes
6978 else
6979   echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982
6983 fi
6984
6985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6986       conftest$ac_exeext conftest.$ac_ext
6987       LIBS="$am_save_LIBS"
6988     fi
6989
6990 fi
6991 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6992 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6993   if test "$am_cv_func_iconv" = yes; then
6994
6995 cat >>confdefs.h <<\_ACEOF
6996 #define HAVE_ICONV 1
6997 _ACEOF
6998
6999   fi
7000   if test "$am_cv_lib_iconv" = yes; then
7001     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7002 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7003     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7004 echo "${ECHO_T}$LIBICONV" >&6; }
7005   else
7006             CPPFLAGS="$am_save_CPPFLAGS"
7007     LIBICONV=
7008     LTLIBICONV=
7009   fi
7010
7011
7012
7013
7014
7015
7016     use_additional=yes
7017
7018   acl_save_prefix="$prefix"
7019   prefix="$acl_final_prefix"
7020   acl_save_exec_prefix="$exec_prefix"
7021   exec_prefix="$acl_final_exec_prefix"
7022
7023     eval additional_includedir=\"$includedir\"
7024     eval additional_libdir=\"$libdir\"
7025
7026   exec_prefix="$acl_save_exec_prefix"
7027   prefix="$acl_save_prefix"
7028
7029
7030 # Check whether --with-libintl-prefix was given.
7031 if test "${with_libintl_prefix+set}" = set; then
7032   withval=$with_libintl_prefix;
7033     if test "X$withval" = "Xno"; then
7034       use_additional=no
7035     else
7036       if test "X$withval" = "X"; then
7037
7038   acl_save_prefix="$prefix"
7039   prefix="$acl_final_prefix"
7040   acl_save_exec_prefix="$exec_prefix"
7041   exec_prefix="$acl_final_exec_prefix"
7042
7043           eval additional_includedir=\"$includedir\"
7044           eval additional_libdir=\"$libdir\"
7045
7046   exec_prefix="$acl_save_exec_prefix"
7047   prefix="$acl_save_prefix"
7048
7049       else
7050         additional_includedir="$withval/include"
7051         additional_libdir="$withval/lib"
7052       fi
7053     fi
7054
7055 fi
7056
7057       LIBINTL=
7058   LTLIBINTL=
7059   INCINTL=
7060   rpathdirs=
7061   ltrpathdirs=
7062   names_already_handled=
7063   names_next_round='intl '
7064   while test -n "$names_next_round"; do
7065     names_this_round="$names_next_round"
7066     names_next_round=
7067     for name in $names_this_round; do
7068       already_handled=
7069       for n in $names_already_handled; do
7070         if test "$n" = "$name"; then
7071           already_handled=yes
7072           break
7073         fi
7074       done
7075       if test -z "$already_handled"; then
7076         names_already_handled="$names_already_handled $name"
7077                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7078         eval value=\"\$HAVE_LIB$uppername\"
7079         if test -n "$value"; then
7080           if test "$value" = yes; then
7081             eval value=\"\$LIB$uppername\"
7082             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7083             eval value=\"\$LTLIB$uppername\"
7084             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7085           else
7086                                     :
7087           fi
7088         else
7089                               found_dir=
7090           found_la=
7091           found_so=
7092           found_a=
7093           if test $use_additional = yes; then
7094             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7095               found_dir="$additional_libdir"
7096               found_so="$additional_libdir/lib$name.$shlibext"
7097               if test -f "$additional_libdir/lib$name.la"; then
7098                 found_la="$additional_libdir/lib$name.la"
7099               fi
7100             else
7101               if test -f "$additional_libdir/lib$name.$libext"; then
7102                 found_dir="$additional_libdir"
7103                 found_a="$additional_libdir/lib$name.$libext"
7104                 if test -f "$additional_libdir/lib$name.la"; then
7105                   found_la="$additional_libdir/lib$name.la"
7106                 fi
7107               fi
7108             fi
7109           fi
7110           if test "X$found_dir" = "X"; then
7111             for x in $LDFLAGS $LTLIBINTL; do
7112
7113   acl_save_prefix="$prefix"
7114   prefix="$acl_final_prefix"
7115   acl_save_exec_prefix="$exec_prefix"
7116   exec_prefix="$acl_final_exec_prefix"
7117   eval x=\"$x\"
7118   exec_prefix="$acl_save_exec_prefix"
7119   prefix="$acl_save_prefix"
7120
7121               case "$x" in
7122                 -L*)
7123                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7124                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7125                     found_dir="$dir"
7126                     found_so="$dir/lib$name.$shlibext"
7127                     if test -f "$dir/lib$name.la"; then
7128                       found_la="$dir/lib$name.la"
7129                     fi
7130                   else
7131                     if test -f "$dir/lib$name.$libext"; then
7132                       found_dir="$dir"
7133                       found_a="$dir/lib$name.$libext"
7134                       if test -f "$dir/lib$name.la"; then
7135                         found_la="$dir/lib$name.la"
7136                       fi
7137                     fi
7138                   fi
7139                   ;;
7140               esac
7141               if test "X$found_dir" != "X"; then
7142                 break
7143               fi
7144             done
7145           fi
7146           if test "X$found_dir" != "X"; then
7147                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7148             if test "X$found_so" != "X"; then
7149                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7150                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7151               else
7152                                                                                 haveit=
7153                 for x in $ltrpathdirs; do
7154                   if test "X$x" = "X$found_dir"; then
7155                     haveit=yes
7156                     break
7157                   fi
7158                 done
7159                 if test -z "$haveit"; then
7160                   ltrpathdirs="$ltrpathdirs $found_dir"
7161                 fi
7162                                 if test "$hardcode_direct" = yes; then
7163                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7164                 else
7165                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7166                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7167                                                             haveit=
7168                     for x in $rpathdirs; do
7169                       if test "X$x" = "X$found_dir"; then
7170                         haveit=yes
7171                         break
7172                       fi
7173                     done
7174                     if test -z "$haveit"; then
7175                       rpathdirs="$rpathdirs $found_dir"
7176                     fi
7177                   else
7178                                                                                 haveit=
7179                     for x in $LDFLAGS $LIBINTL; do
7180
7181   acl_save_prefix="$prefix"
7182   prefix="$acl_final_prefix"
7183   acl_save_exec_prefix="$exec_prefix"
7184   exec_prefix="$acl_final_exec_prefix"
7185   eval x=\"$x\"
7186   exec_prefix="$acl_save_exec_prefix"
7187   prefix="$acl_save_prefix"
7188
7189                       if test "X$x" = "X-L$found_dir"; then
7190                         haveit=yes
7191                         break
7192                       fi
7193                     done
7194                     if test -z "$haveit"; then
7195                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7196                     fi
7197                     if test "$hardcode_minus_L" != no; then
7198                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7199                     else
7200                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7201                     fi
7202                   fi
7203                 fi
7204               fi
7205             else
7206               if test "X$found_a" != "X"; then
7207                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7208               else
7209                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7210               fi
7211             fi
7212                         additional_includedir=
7213             case "$found_dir" in
7214               */lib | */lib/)
7215                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7216                 additional_includedir="$basedir/include"
7217                 ;;
7218             esac
7219             if test "X$additional_includedir" != "X"; then
7220                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7221                 haveit=
7222                 if test "X$additional_includedir" = "X/usr/local/include"; then
7223                   if test -n "$GCC"; then
7224                     case $host_os in
7225                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7226                     esac
7227                   fi
7228                 fi
7229                 if test -z "$haveit"; then
7230                   for x in $CPPFLAGS $INCINTL; do
7231
7232   acl_save_prefix="$prefix"
7233   prefix="$acl_final_prefix"
7234   acl_save_exec_prefix="$exec_prefix"
7235   exec_prefix="$acl_final_exec_prefix"
7236   eval x=\"$x\"
7237   exec_prefix="$acl_save_exec_prefix"
7238   prefix="$acl_save_prefix"
7239
7240                     if test "X$x" = "X-I$additional_includedir"; then
7241                       haveit=yes
7242                       break
7243                     fi
7244                   done
7245                   if test -z "$haveit"; then
7246                     if test -d "$additional_includedir"; then
7247                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7248                     fi
7249                   fi
7250                 fi
7251               fi
7252             fi
7253                         if test -n "$found_la"; then
7254                                                         save_libdir="$libdir"
7255               case "$found_la" in
7256                 */* | *\\*) . "$found_la" ;;
7257                 *) . "./$found_la" ;;
7258               esac
7259               libdir="$save_libdir"
7260                             for dep in $dependency_libs; do
7261                 case "$dep" in
7262                   -L*)
7263                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7264                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7265                       haveit=
7266                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7267                         if test -n "$GCC"; then
7268                           case $host_os in
7269                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7270                           esac
7271                         fi
7272                       fi
7273                       if test -z "$haveit"; then
7274                         haveit=
7275                         for x in $LDFLAGS $LIBINTL; do
7276
7277   acl_save_prefix="$prefix"
7278   prefix="$acl_final_prefix"
7279   acl_save_exec_prefix="$exec_prefix"
7280   exec_prefix="$acl_final_exec_prefix"
7281   eval x=\"$x\"
7282   exec_prefix="$acl_save_exec_prefix"
7283   prefix="$acl_save_prefix"
7284
7285                           if test "X$x" = "X-L$additional_libdir"; then
7286                             haveit=yes
7287                             break
7288                           fi
7289                         done
7290                         if test -z "$haveit"; then
7291                           if test -d "$additional_libdir"; then
7292                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7293                           fi
7294                         fi
7295                         haveit=
7296                         for x in $LDFLAGS $LTLIBINTL; do
7297
7298   acl_save_prefix="$prefix"
7299   prefix="$acl_final_prefix"
7300   acl_save_exec_prefix="$exec_prefix"
7301   exec_prefix="$acl_final_exec_prefix"
7302   eval x=\"$x\"
7303   exec_prefix="$acl_save_exec_prefix"
7304   prefix="$acl_save_prefix"
7305
7306                           if test "X$x" = "X-L$additional_libdir"; then
7307                             haveit=yes
7308                             break
7309                           fi
7310                         done
7311                         if test -z "$haveit"; then
7312                           if test -d "$additional_libdir"; then
7313                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7314                           fi
7315                         fi
7316                       fi
7317                     fi
7318                     ;;
7319                   -R*)
7320                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7321                     if test "$enable_rpath" != no; then
7322                                                                   haveit=
7323                       for x in $rpathdirs; do
7324                         if test "X$x" = "X$dir"; then
7325                           haveit=yes
7326                           break
7327                         fi
7328                       done
7329                       if test -z "$haveit"; then
7330                         rpathdirs="$rpathdirs $dir"
7331                       fi
7332                                                                   haveit=
7333                       for x in $ltrpathdirs; do
7334                         if test "X$x" = "X$dir"; then
7335                           haveit=yes
7336                           break
7337                         fi
7338                       done
7339                       if test -z "$haveit"; then
7340                         ltrpathdirs="$ltrpathdirs $dir"
7341                       fi
7342                     fi
7343                     ;;
7344                   -l*)
7345                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7346                     ;;
7347                   *.la)
7348                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7349                     ;;
7350                   *)
7351                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7352                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7353                     ;;
7354                 esac
7355               done
7356             fi
7357           else
7358                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7359             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7360           fi
7361         fi
7362       fi
7363     done
7364   done
7365   if test "X$rpathdirs" != "X"; then
7366     if test -n "$hardcode_libdir_separator"; then
7367                         alldirs=
7368       for found_dir in $rpathdirs; do
7369         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7370       done
7371             acl_save_libdir="$libdir"
7372       libdir="$alldirs"
7373       eval flag=\"$hardcode_libdir_flag_spec\"
7374       libdir="$acl_save_libdir"
7375       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7376     else
7377             for found_dir in $rpathdirs; do
7378         acl_save_libdir="$libdir"
7379         libdir="$found_dir"
7380         eval flag=\"$hardcode_libdir_flag_spec\"
7381         libdir="$acl_save_libdir"
7382         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7383       done
7384     fi
7385   fi
7386   if test "X$ltrpathdirs" != "X"; then
7387             for found_dir in $ltrpathdirs; do
7388       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7389     done
7390   fi
7391
7392           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7393 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7394 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397   gt_save_CPPFLAGS="$CPPFLAGS"
7398             CPPFLAGS="$CPPFLAGS $INCINTL"
7399             gt_save_LIBS="$LIBS"
7400             LIBS="$LIBS $LIBINTL"
7401                         cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h.  */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h.  */
7407 #include <libintl.h>
7408 extern int _nl_msg_cat_cntr;
7409 extern
7410 #ifdef __cplusplus
7411 "C"
7412 #endif
7413 const char *_nl_expand_alias (const char *);
7414 int
7415 main ()
7416 {
7417 bindtextdomain ("", "");
7418 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7419   ;
7420   return 0;
7421 }
7422 _ACEOF
7423 rm -f conftest.$ac_objext conftest$ac_exeext
7424 if { (ac_try="$ac_link"
7425 case "(($ac_try" in
7426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427   *) ac_try_echo=$ac_try;;
7428 esac
7429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7430   (eval "$ac_link") 2>conftest.er1
7431   ac_status=$?
7432   grep -v '^ *+' conftest.er1 >conftest.err
7433   rm -f conftest.er1
7434   cat conftest.err >&5
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); } && {
7437          test -z "$ac_c_werror_flag" ||
7438          test ! -s conftest.err
7439        } && test -s conftest$ac_exeext &&
7440        $as_test_x conftest$ac_exeext; then
7441   gt_cv_func_gnugettext1_libintl=yes
7442 else
7443   echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7445
7446         gt_cv_func_gnugettext1_libintl=no
7447 fi
7448
7449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7450       conftest$ac_exeext conftest.$ac_ext
7451                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7452               LIBS="$LIBS $LIBICONV"
7453               cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h.  */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h.  */
7459 #include <libintl.h>
7460 extern int _nl_msg_cat_cntr;
7461 extern
7462 #ifdef __cplusplus
7463 "C"
7464 #endif
7465 const char *_nl_expand_alias (const char *);
7466 int
7467 main ()
7468 {
7469 bindtextdomain ("", "");
7470 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7471   ;
7472   return 0;
7473 }
7474 _ACEOF
7475 rm -f conftest.$ac_objext conftest$ac_exeext
7476 if { (ac_try="$ac_link"
7477 case "(($ac_try" in
7478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7479   *) ac_try_echo=$ac_try;;
7480 esac
7481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7482   (eval "$ac_link") 2>conftest.er1
7483   ac_status=$?
7484   grep -v '^ *+' conftest.er1 >conftest.err
7485   rm -f conftest.er1
7486   cat conftest.err >&5
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); } && {
7489          test -z "$ac_c_werror_flag" ||
7490          test ! -s conftest.err
7491        } && test -s conftest$ac_exeext &&
7492        $as_test_x conftest$ac_exeext; then
7493   LIBINTL="$LIBINTL $LIBICONV"
7494                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7495                 gt_cv_func_gnugettext1_libintl=yes
7496
7497 else
7498   echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7500
7501
7502 fi
7503
7504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7505       conftest$ac_exeext conftest.$ac_ext
7506             fi
7507             CPPFLAGS="$gt_save_CPPFLAGS"
7508             LIBS="$gt_save_LIBS"
7509 fi
7510 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7511 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7512         fi
7513
7514                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7515            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7516                 && test "$PACKAGE" != gettext-runtime \
7517                 && test "$PACKAGE" != gettext-tools; }; then
7518           gt_use_preinstalled_gnugettext=yes
7519         else
7520                     LIBINTL=
7521           LTLIBINTL=
7522           INCINTL=
7523         fi
7524
7525
7526
7527     if test -n "$INTL_MACOSX_LIBS"; then
7528       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7529          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7530                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7531         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7532       fi
7533     fi
7534
7535     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7536        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7537
7538 cat >>confdefs.h <<\_ACEOF
7539 #define ENABLE_NLS 1
7540 _ACEOF
7541
7542     else
7543       USE_NLS=no
7544     fi
7545   fi
7546
7547   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7548 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7549   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7550 echo "${ECHO_T}$USE_NLS" >&6; }
7551   if test "$USE_NLS" = "yes"; then
7552     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7553 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7554     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7555       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7556         gt_source="external libintl"
7557       else
7558         gt_source="libc"
7559       fi
7560     else
7561       gt_source="included intl directory"
7562     fi
7563     { echo "$as_me:$LINENO: result: $gt_source" >&5
7564 echo "${ECHO_T}$gt_source" >&6; }
7565   fi
7566
7567   if test "$USE_NLS" = "yes"; then
7568
7569     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7570       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7571         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7572 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7573         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7574 echo "${ECHO_T}$LIBINTL" >&6; }
7575
7576   for element in $INCINTL; do
7577     haveit=
7578     for x in $CPPFLAGS; do
7579
7580   acl_save_prefix="$prefix"
7581   prefix="$acl_final_prefix"
7582   acl_save_exec_prefix="$exec_prefix"
7583   exec_prefix="$acl_final_exec_prefix"
7584   eval x=\"$x\"
7585   exec_prefix="$acl_save_exec_prefix"
7586   prefix="$acl_save_prefix"
7587
7588       if test "X$x" = "X$element"; then
7589         haveit=yes
7590         break
7591       fi
7592     done
7593     if test -z "$haveit"; then
7594       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7595     fi
7596   done
7597
7598       fi
7599
7600
7601 cat >>confdefs.h <<\_ACEOF
7602 #define HAVE_GETTEXT 1
7603 _ACEOF
7604
7605
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_DCGETTEXT 1
7608 _ACEOF
7609
7610     fi
7611
7612         POSUB=po
7613   fi
7614
7615
7616
7617     INTLLIBS="$LIBINTL"
7618
7619
7620
7621
7622
7623
7624 if test x${prefix} = xNONE ; then
7625    if test `eval echo ${datadir}` = NONE/share ; then
7626       datadir=/usr/share
7627    fi
7628 fi
7629
7630 # ------------------------------------------------------------------
7631 #  If the user has not set --prefix, we set our default to nothing.
7632 #  In this case, if the user has not set --sysconfdir, we set it
7633 #  to the package default of /etc/bacula.  If either --prefix or
7634 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7635 # ------------------------------------------------------------------
7636 if test x${prefix} = xNONE ; then
7637     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7638         sysconfdir=/etc/bacula
7639     fi
7640     prefix=
7641 fi
7642 sysconfdir=`eval echo ${sysconfdir}`
7643 datadir=`eval echo ${datadir}`
7644 localedir=`eval echo ${datadir}/locale`
7645 cat >>confdefs.h <<_ACEOF
7646 #define LOCALEDIR "$localedir"
7647 _ACEOF
7648
7649 cat >>confdefs.h <<_ACEOF
7650 #define SYSCONFDIR "$sysconfdir"
7651 _ACEOF
7652
7653
7654 # -------------------------------------------------------------------------
7655 #  If the user has not set --exec-prefix, we default to ${prefix}
7656 # -------------------------------------------------------------------------
7657 if test x${exec_prefix} = xNONE ; then
7658     exec_prefix=${prefix}
7659 fi
7660
7661 # ------------------------------------------------------------------
7662 # If the user has not set --sbindir, we set our default as /sbin
7663 # ------------------------------------------------------------------
7664 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7665     sbindir=${exec_prefix}/sbin
7666 fi
7667 sbindir=`eval echo ${sbindir}`
7668
7669
7670 # -------------------------------------------------------------------------
7671 #  If the user has not set --mandir, we default to /usr/share/man
7672 # -------------------------------------------------------------------------
7673 if test x$mandir = x'${prefix}/man' ; then
7674    mandir=/usr/share/man
7675 fi
7676
7677
7678 for ac_prog in msgfmt
7679 do
7680   # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_path_MSGFMT+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   case $MSGFMT in
7688   [\\/]* | ?:[\\/]*)
7689   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7690   ;;
7691   *)
7692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695   IFS=$as_save_IFS
7696   test -z "$as_dir" && as_dir=.
7697   for ac_exec_ext in '' $ac_executable_extensions; do
7698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704 done
7705 IFS=$as_save_IFS
7706
7707   ;;
7708 esac
7709 fi
7710 MSGFMT=$ac_cv_path_MSGFMT
7711 if test -n "$MSGFMT"; then
7712   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7713 echo "${ECHO_T}$MSGFMT" >&6; }
7714 else
7715   { echo "$as_me:$LINENO: result: no" >&5
7716 echo "${ECHO_T}no" >&6; }
7717 fi
7718
7719
7720   test -n "$MSGFMT" && break
7721 done
7722 test -n "$MSGFMT" || MSGFMT="no"
7723
7724 if test "$MSGFMT" = "no"
7725 then
7726    echo 'msgfmt program not found, disabling NLS !'
7727    USE_NLS=no
7728    USE_INCLUDED_LIBINTL=no
7729 #else
7730
7731     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7732 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7733 if test "${ac_cv_gnu_library_2+set}" = set; then
7734   echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736   cat >conftest.$ac_ext <<_ACEOF
7737 /* confdefs.h.  */
7738 _ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h.  */
7742
7743 #include <features.h>
7744 #ifdef __GNU_LIBRARY__
7745  #if (__GLIBC__ >= 2)
7746   Lucky GNU user
7747  #endif
7748 #endif
7749
7750 _ACEOF
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7753   ac_cv_gnu_library_2=yes
7754 else
7755   ac_cv_gnu_library_2=no
7756 fi
7757 rm -f conftest*
7758
7759
7760
7761 fi
7762 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7763 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7764
7765     GLIBC2="$ac_cv_gnu_library_2"
7766
7767
7768
7769         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7770 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7771 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   ac_check_lib_save_LIBS=$LIBS
7775 LIBS="-lcposix  $LIBS"
7776 cat >conftest.$ac_ext <<_ACEOF
7777 /* confdefs.h.  */
7778 _ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h.  */
7782
7783 /* Override any GCC internal prototype to avoid an error.
7784    Use char because int might match the return type of a GCC
7785    builtin and then its argument prototype would still apply.  */
7786 #ifdef __cplusplus
7787 extern "C"
7788 #endif
7789 char strerror ();
7790 int
7791 main ()
7792 {
7793 return strerror ();
7794   ;
7795   return 0;
7796 }
7797 _ACEOF
7798 rm -f conftest.$ac_objext conftest$ac_exeext
7799 if { (ac_try="$ac_link"
7800 case "(($ac_try" in
7801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802   *) ac_try_echo=$ac_try;;
7803 esac
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805   (eval "$ac_link") 2>conftest.er1
7806   ac_status=$?
7807   grep -v '^ *+' conftest.er1 >conftest.err
7808   rm -f conftest.er1
7809   cat conftest.err >&5
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); } && {
7812          test -z "$ac_c_werror_flag" ||
7813          test ! -s conftest.err
7814        } && test -s conftest$ac_exeext &&
7815        $as_test_x conftest$ac_exeext; then
7816   ac_cv_lib_cposix_strerror=yes
7817 else
7818   echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7820
7821         ac_cv_lib_cposix_strerror=no
7822 fi
7823
7824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7825       conftest$ac_exeext conftest.$ac_ext
7826 LIBS=$ac_check_lib_save_LIBS
7827 fi
7828 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7829 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7830 if test $ac_cv_lib_cposix_strerror = yes; then
7831   LIBS="$LIBS -lcposix"
7832 fi
7833
7834
7835
7836 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7837 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7838 if test "${ac_cv_header_stdc+set}" = set; then
7839   echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841   cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h.  */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h.  */
7847 #include <stdlib.h>
7848 #include <stdarg.h>
7849 #include <string.h>
7850 #include <float.h>
7851
7852 int
7853 main ()
7854 {
7855
7856   ;
7857   return 0;
7858 }
7859 _ACEOF
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7862 case "(($ac_try" in
7863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864   *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867   (eval "$ac_compile") 2>conftest.er1
7868   ac_status=$?
7869   grep -v '^ *+' conftest.er1 >conftest.err
7870   rm -f conftest.er1
7871   cat conftest.err >&5
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); } && {
7874          test -z "$ac_c_werror_flag" ||
7875          test ! -s conftest.err
7876        } && test -s conftest.$ac_objext; then
7877   ac_cv_header_stdc=yes
7878 else
7879   echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7881
7882         ac_cv_header_stdc=no
7883 fi
7884
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886
7887 if test $ac_cv_header_stdc = yes; then
7888   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7889   cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h.  */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h.  */
7895 #include <string.h>
7896
7897 _ACEOF
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899   $EGREP "memchr" >/dev/null 2>&1; then
7900   :
7901 else
7902   ac_cv_header_stdc=no
7903 fi
7904 rm -f conftest*
7905
7906 fi
7907
7908 if test $ac_cv_header_stdc = yes; then
7909   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7910   cat >conftest.$ac_ext <<_ACEOF
7911 /* confdefs.h.  */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h.  */
7916 #include <stdlib.h>
7917
7918 _ACEOF
7919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7920   $EGREP "free" >/dev/null 2>&1; then
7921   :
7922 else
7923   ac_cv_header_stdc=no
7924 fi
7925 rm -f conftest*
7926
7927 fi
7928
7929 if test $ac_cv_header_stdc = yes; then
7930   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7931   if test "$cross_compiling" = yes; then
7932   :
7933 else
7934   cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h.  */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h.  */
7940 #include <ctype.h>
7941 #include <stdlib.h>
7942 #if ((' ' & 0x0FF) == 0x020)
7943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7945 #else
7946 # define ISLOWER(c) \
7947                    (('a' <= (c) && (c) <= 'i') \
7948                      || ('j' <= (c) && (c) <= 'r') \
7949                      || ('s' <= (c) && (c) <= 'z'))
7950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7951 #endif
7952
7953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7954 int
7955 main ()
7956 {
7957   int i;
7958   for (i = 0; i < 256; i++)
7959     if (XOR (islower (i), ISLOWER (i))
7960         || toupper (i) != TOUPPER (i))
7961       return 2;
7962   return 0;
7963 }
7964 _ACEOF
7965 rm -f conftest$ac_exeext
7966 if { (ac_try="$ac_link"
7967 case "(($ac_try" in
7968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969   *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972   (eval "$ac_link") 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7976   { (case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_try") 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; }; then
7985   :
7986 else
7987   echo "$as_me: program exited with status $ac_status" >&5
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991 ( exit $ac_status )
7992 ac_cv_header_stdc=no
7993 fi
7994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7995 fi
7996
7997
7998 fi
7999 fi
8000 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8001 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8002 if test $ac_cv_header_stdc = yes; then
8003
8004 cat >>confdefs.h <<\_ACEOF
8005 #define STDC_HEADERS 1
8006 _ACEOF
8007
8008 fi
8009
8010 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8011 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8012 if test "${ac_cv_c_const+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015   cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h.  */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h.  */
8021
8022 int
8023 main ()
8024 {
8025 /* FIXME: Include the comments suggested by Paul. */
8026 #ifndef __cplusplus
8027   /* Ultrix mips cc rejects this.  */
8028   typedef int charset[2];
8029   const charset cs;
8030   /* SunOS 4.1.1 cc rejects this.  */
8031   char const *const *pcpcc;
8032   char **ppc;
8033   /* NEC SVR4.0.2 mips cc rejects this.  */
8034   struct point {int x, y;};
8035   static struct point const zero = {0,0};
8036   /* AIX XL C 1.02.0.0 rejects this.
8037      It does not let you subtract one const X* pointer from another in
8038      an arm of an if-expression whose if-part is not a constant
8039      expression */
8040   const char *g = "string";
8041   pcpcc = &g + (g ? g-g : 0);
8042   /* HPUX 7.0 cc rejects these. */
8043   ++pcpcc;
8044   ppc = (char**) pcpcc;
8045   pcpcc = (char const *const *) ppc;
8046   { /* SCO 3.2v4 cc rejects this.  */
8047     char *t;
8048     char const *s = 0 ? (char *) 0 : (char const *) 0;
8049
8050     *t++ = 0;
8051     if (s) return 0;
8052   }
8053   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8054     int x[] = {25, 17};
8055     const int *foo = &x[0];
8056     ++foo;
8057   }
8058   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8059     typedef const int *iptr;
8060     iptr p = 0;
8061     ++p;
8062   }
8063   { /* AIX XL C 1.02.0.0 rejects this saying
8064        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8065     struct s { int j; const int *ap[3]; };
8066     struct s *b; b->j = 5;
8067   }
8068   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8069     const int foo = 10;
8070     if (!foo) return 0;
8071   }
8072   return !cs[0] && !zero.x;
8073 #endif
8074
8075   ;
8076   return 0;
8077 }
8078 _ACEOF
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8081 case "(($ac_try" in
8082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083   *) ac_try_echo=$ac_try;;
8084 esac
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086   (eval "$ac_compile") 2>conftest.er1
8087   ac_status=$?
8088   grep -v '^ *+' conftest.er1 >conftest.err
8089   rm -f conftest.er1
8090   cat conftest.err >&5
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); } && {
8093          test -z "$ac_c_werror_flag" ||
8094          test ! -s conftest.err
8095        } && test -s conftest.$ac_objext; then
8096   ac_cv_c_const=yes
8097 else
8098   echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101         ac_cv_c_const=no
8102 fi
8103
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 fi
8106 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8107 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8108 if test $ac_cv_c_const = no; then
8109
8110 cat >>confdefs.h <<\_ACEOF
8111 #define const
8112 _ACEOF
8113
8114 fi
8115
8116
8117   { echo "$as_me:$LINENO: checking for signed" >&5
8118 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8119 if test "${bh_cv_c_signed+set}" = set; then
8120   echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122   cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h.  */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h.  */
8128
8129 int
8130 main ()
8131 {
8132 signed char x;
8133   ;
8134   return 0;
8135 }
8136 _ACEOF
8137 rm -f conftest.$ac_objext
8138 if { (ac_try="$ac_compile"
8139 case "(($ac_try" in
8140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141   *) ac_try_echo=$ac_try;;
8142 esac
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144   (eval "$ac_compile") 2>conftest.er1
8145   ac_status=$?
8146   grep -v '^ *+' conftest.er1 >conftest.err
8147   rm -f conftest.er1
8148   cat conftest.err >&5
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); } && {
8151          test -z "$ac_c_werror_flag" ||
8152          test ! -s conftest.err
8153        } && test -s conftest.$ac_objext; then
8154   bh_cv_c_signed=yes
8155 else
8156   echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8158
8159         bh_cv_c_signed=no
8160 fi
8161
8162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163 fi
8164 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8165 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8166   if test $bh_cv_c_signed = no; then
8167
8168 cat >>confdefs.h <<\_ACEOF
8169 #define signed
8170 _ACEOF
8171
8172   fi
8173
8174 { echo "$as_me:$LINENO: checking for inline" >&5
8175 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8176 if test "${ac_cv_c_inline+set}" = set; then
8177   echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179   ac_cv_c_inline=no
8180 for ac_kw in inline __inline__ __inline; do
8181   cat >conftest.$ac_ext <<_ACEOF
8182 /* confdefs.h.  */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h.  */
8187 #ifndef __cplusplus
8188 typedef int foo_t;
8189 static $ac_kw foo_t static_foo () {return 0; }
8190 $ac_kw foo_t foo () {return 0; }
8191 #endif
8192
8193 _ACEOF
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
8196 case "(($ac_try" in
8197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198   *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201   (eval "$ac_compile") 2>conftest.er1
8202   ac_status=$?
8203   grep -v '^ *+' conftest.er1 >conftest.err
8204   rm -f conftest.er1
8205   cat conftest.err >&5
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } && {
8208          test -z "$ac_c_werror_flag" ||
8209          test ! -s conftest.err
8210        } && test -s conftest.$ac_objext; then
8211   ac_cv_c_inline=$ac_kw
8212 else
8213   echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216
8217 fi
8218
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220   test "$ac_cv_c_inline" != no && break
8221 done
8222
8223 fi
8224 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8225 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8226
8227
8228 case $ac_cv_c_inline in
8229   inline | yes) ;;
8230   *)
8231     case $ac_cv_c_inline in
8232       no) ac_val=;;
8233       *) ac_val=$ac_cv_c_inline;;
8234     esac
8235     cat >>confdefs.h <<_ACEOF
8236 #ifndef __cplusplus
8237 #define inline $ac_val
8238 #endif
8239 _ACEOF
8240     ;;
8241 esac
8242
8243 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8254                   inttypes.h stdint.h unistd.h
8255 do
8256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8260   echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262   cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h.  */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h.  */
8268 $ac_includes_default
8269
8270 #include <$ac_header>
8271 _ACEOF
8272 rm -f conftest.$ac_objext
8273 if { (ac_try="$ac_compile"
8274 case "(($ac_try" in
8275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276   *) ac_try_echo=$ac_try;;
8277 esac
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279   (eval "$ac_compile") 2>conftest.er1
8280   ac_status=$?
8281   grep -v '^ *+' conftest.er1 >conftest.err
8282   rm -f conftest.er1
8283   cat conftest.err >&5
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } && {
8286          test -z "$ac_c_werror_flag" ||
8287          test ! -s conftest.err
8288        } && test -s conftest.$ac_objext; then
8289   eval "$as_ac_Header=yes"
8290 else
8291   echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294         eval "$as_ac_Header=no"
8295 fi
8296
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 fi
8299 ac_res=`eval echo '${'$as_ac_Header'}'`
8300                { echo "$as_me:$LINENO: result: $ac_res" >&5
8301 echo "${ECHO_T}$ac_res" >&6; }
8302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8303   cat >>confdefs.h <<_ACEOF
8304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8305 _ACEOF
8306
8307 fi
8308
8309 done
8310
8311
8312 { echo "$as_me:$LINENO: checking for off_t" >&5
8313 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8314 if test "${ac_cv_type_off_t+set}" = set; then
8315   echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317   cat >conftest.$ac_ext <<_ACEOF
8318 /* confdefs.h.  */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h.  */
8323 $ac_includes_default
8324 typedef off_t ac__type_new_;
8325 int
8326 main ()
8327 {
8328 if ((ac__type_new_ *) 0)
8329   return 0;
8330 if (sizeof (ac__type_new_))
8331   return 0;
8332   ;
8333   return 0;
8334 }
8335 _ACEOF
8336 rm -f conftest.$ac_objext
8337 if { (ac_try="$ac_compile"
8338 case "(($ac_try" in
8339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340   *) ac_try_echo=$ac_try;;
8341 esac
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343   (eval "$ac_compile") 2>conftest.er1
8344   ac_status=$?
8345   grep -v '^ *+' conftest.er1 >conftest.err
8346   rm -f conftest.er1
8347   cat conftest.err >&5
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } && {
8350          test -z "$ac_c_werror_flag" ||
8351          test ! -s conftest.err
8352        } && test -s conftest.$ac_objext; then
8353   ac_cv_type_off_t=yes
8354 else
8355   echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8357
8358         ac_cv_type_off_t=no
8359 fi
8360
8361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 fi
8363 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8364 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8365 if test $ac_cv_type_off_t = yes; then
8366   :
8367 else
8368
8369 cat >>confdefs.h <<_ACEOF
8370 #define off_t long int
8371 _ACEOF
8372
8373 fi
8374
8375 { echo "$as_me:$LINENO: checking for size_t" >&5
8376 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8377 if test "${ac_cv_type_size_t+set}" = set; then
8378   echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380   cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h.  */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h.  */
8386 $ac_includes_default
8387 typedef size_t ac__type_new_;
8388 int
8389 main ()
8390 {
8391 if ((ac__type_new_ *) 0)
8392   return 0;
8393 if (sizeof (ac__type_new_))
8394   return 0;
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 rm -f conftest.$ac_objext
8400 if { (ac_try="$ac_compile"
8401 case "(($ac_try" in
8402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403   *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406   (eval "$ac_compile") 2>conftest.er1
8407   ac_status=$?
8408   grep -v '^ *+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } && {
8413          test -z "$ac_c_werror_flag" ||
8414          test ! -s conftest.err
8415        } && test -s conftest.$ac_objext; then
8416   ac_cv_type_size_t=yes
8417 else
8418   echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8420
8421         ac_cv_type_size_t=no
8422 fi
8423
8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425 fi
8426 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8427 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8428 if test $ac_cv_type_size_t = yes; then
8429   :
8430 else
8431
8432 cat >>confdefs.h <<_ACEOF
8433 #define size_t unsigned int
8434 _ACEOF
8435
8436 fi
8437
8438
8439   { echo "$as_me:$LINENO: checking for long long" >&5
8440 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8441 if test "${ac_cv_type_long_long+set}" = set; then
8442   echo $ECHO_N "(cached) $ECHO_C" >&6
8443 else
8444   cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h.  */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h.  */
8450 long long ll = 1LL; int i = 63;
8451 int
8452 main ()
8453 {
8454 long long llmax = (long long) -1;
8455      return ll << i | ll >> i | llmax / ll | llmax % ll;
8456   ;
8457   return 0;
8458 }
8459 _ACEOF
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (ac_try="$ac_link"
8462 case "(($ac_try" in
8463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464   *) ac_try_echo=$ac_try;;
8465 esac
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467   (eval "$ac_link") 2>conftest.er1
8468   ac_status=$?
8469   grep -v '^ *+' conftest.er1 >conftest.err
8470   rm -f conftest.er1
8471   cat conftest.err >&5
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); } && {
8474          test -z "$ac_c_werror_flag" ||
8475          test ! -s conftest.err
8476        } && test -s conftest$ac_exeext &&
8477        $as_test_x conftest$ac_exeext; then
8478   ac_cv_type_long_long=yes
8479 else
8480   echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.$ac_ext >&5
8482
8483         ac_cv_type_long_long=no
8484 fi
8485
8486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8487       conftest$ac_exeext conftest.$ac_ext
8488 fi
8489 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8490 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8491   if test $ac_cv_type_long_long = yes; then
8492
8493 cat >>confdefs.h <<\_ACEOF
8494 #define HAVE_LONG_LONG 1
8495 _ACEOF
8496
8497   fi
8498
8499
8500   { echo "$as_me:$LINENO: checking for long double" >&5
8501 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8502 if test "${gt_cv_c_long_double+set}" = set; then
8503   echo $ECHO_N "(cached) $ECHO_C" >&6
8504 else
8505   if test "$GCC" = yes; then
8506        gt_cv_c_long_double=yes
8507      else
8508        cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h.  */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h.  */
8514
8515          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8516          long double foo = 0.0;
8517          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8518          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8519
8520 int
8521 main ()
8522 {
8523
8524   ;
8525   return 0;
8526 }
8527 _ACEOF
8528 rm -f conftest.$ac_objext
8529 if { (ac_try="$ac_compile"
8530 case "(($ac_try" in
8531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532   *) ac_try_echo=$ac_try;;
8533 esac
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535   (eval "$ac_compile") 2>conftest.er1
8536   ac_status=$?
8537   grep -v '^ *+' conftest.er1 >conftest.err
8538   rm -f conftest.er1
8539   cat conftest.err >&5
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); } && {
8542          test -z "$ac_c_werror_flag" ||
8543          test ! -s conftest.err
8544        } && test -s conftest.$ac_objext; then
8545   gt_cv_c_long_double=yes
8546 else
8547   echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550         gt_cv_c_long_double=no
8551 fi
8552
8553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554      fi
8555 fi
8556 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8557 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8558   if test $gt_cv_c_long_double = yes; then
8559
8560 cat >>confdefs.h <<\_ACEOF
8561 #define HAVE_LONG_DOUBLE 1
8562 _ACEOF
8563
8564   fi
8565
8566
8567   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8568 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8569 if test "${gt_cv_c_wchar_t+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572   cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h.  */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h.  */
8578 #include <stddef.h>
8579        wchar_t foo = (wchar_t)'\0';
8580 int
8581 main ()
8582 {
8583
8584   ;
8585   return 0;
8586 }
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8590 case "(($ac_try" in
8591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592   *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595   (eval "$ac_compile") 2>conftest.er1
8596   ac_status=$?
8597   grep -v '^ *+' conftest.er1 >conftest.err
8598   rm -f conftest.er1
8599   cat conftest.err >&5
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); } && {
8602          test -z "$ac_c_werror_flag" ||
8603          test ! -s conftest.err
8604        } && test -s conftest.$ac_objext; then
8605   gt_cv_c_wchar_t=yes
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610         gt_cv_c_wchar_t=no
8611 fi
8612
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8616 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8617   if test $gt_cv_c_wchar_t = yes; then
8618
8619 cat >>confdefs.h <<\_ACEOF
8620 #define HAVE_WCHAR_T 1
8621 _ACEOF
8622
8623   fi
8624
8625
8626   { echo "$as_me:$LINENO: checking for wint_t" >&5
8627 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8628 if test "${gt_cv_c_wint_t+set}" = set; then
8629   echo $ECHO_N "(cached) $ECHO_C" >&6
8630 else
8631   cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h.  */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h.  */
8637 #include <wchar.h>
8638        wint_t foo = (wchar_t)'\0';
8639 int
8640 main ()
8641 {
8642
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 rm -f conftest.$ac_objext
8648 if { (ac_try="$ac_compile"
8649 case "(($ac_try" in
8650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651   *) ac_try_echo=$ac_try;;
8652 esac
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654   (eval "$ac_compile") 2>conftest.er1
8655   ac_status=$?
8656   grep -v '^ *+' conftest.er1 >conftest.err
8657   rm -f conftest.er1
8658   cat conftest.err >&5
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); } && {
8661          test -z "$ac_c_werror_flag" ||
8662          test ! -s conftest.err
8663        } && test -s conftest.$ac_objext; then
8664   gt_cv_c_wint_t=yes
8665 else
8666   echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8668
8669         gt_cv_c_wint_t=no
8670 fi
8671
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 fi
8674 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8675 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8676   if test $gt_cv_c_wint_t = yes; then
8677
8678 cat >>confdefs.h <<\_ACEOF
8679 #define HAVE_WINT_T 1
8680 _ACEOF
8681
8682   fi
8683
8684
8685   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8686 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8687 if test "${gl_cv_header_inttypes_h+set}" = set; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690   cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696 #include <sys/types.h>
8697 #include <inttypes.h>
8698 int
8699 main ()
8700 {
8701 uintmax_t i = (uintmax_t) -1;
8702   ;
8703   return 0;
8704 }
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8708 case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713   (eval "$ac_compile") 2>conftest.er1
8714   ac_status=$?
8715   grep -v '^ *+' conftest.er1 >conftest.err
8716   rm -f conftest.er1
8717   cat conftest.err >&5
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); } && {
8720          test -z "$ac_c_werror_flag" ||
8721          test ! -s conftest.err
8722        } && test -s conftest.$ac_objext; then
8723   gl_cv_header_inttypes_h=yes
8724 else
8725   echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728         gl_cv_header_inttypes_h=no
8729 fi
8730
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 fi
8733 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8734 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8735   if test $gl_cv_header_inttypes_h = yes; then
8736
8737 cat >>confdefs.h <<_ACEOF
8738 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8739 _ACEOF
8740
8741   fi
8742
8743
8744   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8745 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8746 if test "${gl_cv_header_stdint_h+set}" = set; then
8747   echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749   cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8755 #include <sys/types.h>
8756 #include <stdint.h>
8757 int
8758 main ()
8759 {
8760 uintmax_t i = (uintmax_t) -1;
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 rm -f conftest.$ac_objext
8766 if { (ac_try="$ac_compile"
8767 case "(($ac_try" in
8768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769   *) ac_try_echo=$ac_try;;
8770 esac
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772   (eval "$ac_compile") 2>conftest.er1
8773   ac_status=$?
8774   grep -v '^ *+' conftest.er1 >conftest.err
8775   rm -f conftest.er1
8776   cat conftest.err >&5
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); } && {
8779          test -z "$ac_c_werror_flag" ||
8780          test ! -s conftest.err
8781        } && test -s conftest.$ac_objext; then
8782   gl_cv_header_stdint_h=yes
8783 else
8784   echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8786
8787         gl_cv_header_stdint_h=no
8788 fi
8789
8790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 fi
8792 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8793 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8794   if test $gl_cv_header_stdint_h = yes; then
8795
8796 cat >>confdefs.h <<_ACEOF
8797 #define HAVE_STDINT_H_WITH_UINTMAX 1
8798 _ACEOF
8799
8800   fi
8801
8802
8803
8804
8805   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8806 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8807 if test "${gt_cv_c_intmax_t+set}" = set; then
8808   echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810   cat >conftest.$ac_ext <<_ACEOF
8811 /* confdefs.h.  */
8812 _ACEOF
8813 cat confdefs.h >>conftest.$ac_ext
8814 cat >>conftest.$ac_ext <<_ACEOF
8815 /* end confdefs.h.  */
8816
8817 #include <stddef.h>
8818 #include <stdlib.h>
8819 #if HAVE_STDINT_H_WITH_UINTMAX
8820 #include <stdint.h>
8821 #endif
8822 #if HAVE_INTTYPES_H_WITH_UINTMAX
8823 #include <inttypes.h>
8824 #endif
8825
8826 int
8827 main ()
8828 {
8829 intmax_t x = -1;
8830   ;
8831   return 0;
8832 }
8833 _ACEOF
8834 rm -f conftest.$ac_objext
8835 if { (ac_try="$ac_compile"
8836 case "(($ac_try" in
8837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838   *) ac_try_echo=$ac_try;;
8839 esac
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841   (eval "$ac_compile") 2>conftest.er1
8842   ac_status=$?
8843   grep -v '^ *+' conftest.er1 >conftest.err
8844   rm -f conftest.er1
8845   cat conftest.err >&5
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); } && {
8848          test -z "$ac_c_werror_flag" ||
8849          test ! -s conftest.err
8850        } && test -s conftest.$ac_objext; then
8851   gt_cv_c_intmax_t=yes
8852 else
8853   echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856         gt_cv_c_intmax_t=no
8857 fi
8858
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 fi
8861 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8862 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8863   if test $gt_cv_c_intmax_t = yes; then
8864
8865 cat >>confdefs.h <<\_ACEOF
8866 #define HAVE_INTMAX_T 1
8867 _ACEOF
8868
8869   fi
8870
8871
8872
8873   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8874 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8875 if test "${gt_cv_func_printf_posix+set}" = set; then
8876   echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878
8879       if test "$cross_compiling" = yes; then
8880
8881         cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h.  */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h.  */
8887
8888 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8889   notposix
8890 #endif
8891
8892 _ACEOF
8893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8894   $EGREP "notposix" >/dev/null 2>&1; then
8895   gt_cv_func_printf_posix="guessing no"
8896 else
8897   gt_cv_func_printf_posix="guessing yes"
8898 fi
8899 rm -f conftest*
8900
8901
8902 else
8903   cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h.  */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h.  */
8909
8910 #include <stdio.h>
8911 #include <string.h>
8912 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8913    dollar expansion (possibly an autoconf bug).  */
8914 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8915 static char buf[100];
8916 int main ()
8917 {
8918   sprintf (buf, format, 33, 55);
8919   return (strcmp (buf, "55 33") != 0);
8920 }
8921 _ACEOF
8922 rm -f conftest$ac_exeext
8923 if { (ac_try="$ac_link"
8924 case "(($ac_try" in
8925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926   *) ac_try_echo=$ac_try;;
8927 esac
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929   (eval "$ac_link") 2>&5
8930   ac_status=$?
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8933   { (case "(($ac_try" in
8934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935   *) ac_try_echo=$ac_try;;
8936 esac
8937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938   (eval "$ac_try") 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; }; then
8942   gt_cv_func_printf_posix=yes
8943 else
8944   echo "$as_me: program exited with status $ac_status" >&5
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8947
8948 ( exit $ac_status )
8949 gt_cv_func_printf_posix=no
8950 fi
8951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8952 fi
8953
8954
8955
8956 fi
8957 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8958 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8959   case $gt_cv_func_printf_posix in
8960     *yes)
8961
8962 cat >>confdefs.h <<\_ACEOF
8963 #define HAVE_POSIX_PRINTF 1
8964 _ACEOF
8965
8966       ;;
8967   esac
8968
8969 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8970 # for constant arguments.  Useless!
8971 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8972 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8973 if test "${ac_cv_working_alloca_h+set}" = set; then
8974   echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976   cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h.  */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h.  */
8982 #include <alloca.h>
8983 int
8984 main ()
8985 {
8986 char *p = (char *) alloca (2 * sizeof (int));
8987                           if (p) return 0;
8988   ;
8989   return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (ac_try="$ac_link"
8994 case "(($ac_try" in
8995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996   *) ac_try_echo=$ac_try;;
8997 esac
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999   (eval "$ac_link") 2>conftest.er1
9000   ac_status=$?
9001   grep -v '^ *+' conftest.er1 >conftest.err
9002   rm -f conftest.er1
9003   cat conftest.err >&5
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); } && {
9006          test -z "$ac_c_werror_flag" ||
9007          test ! -s conftest.err
9008        } && test -s conftest$ac_exeext &&
9009        $as_test_x conftest$ac_exeext; then
9010   ac_cv_working_alloca_h=yes
9011 else
9012   echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9014
9015         ac_cv_working_alloca_h=no
9016 fi
9017
9018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9019       conftest$ac_exeext conftest.$ac_ext
9020 fi
9021 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9022 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9023 if test $ac_cv_working_alloca_h = yes; then
9024
9025 cat >>confdefs.h <<\_ACEOF
9026 #define HAVE_ALLOCA_H 1
9027 _ACEOF
9028
9029 fi
9030
9031 { echo "$as_me:$LINENO: checking for alloca" >&5
9032 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9033 if test "${ac_cv_func_alloca_works+set}" = set; then
9034   echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036   cat >conftest.$ac_ext <<_ACEOF
9037 /* confdefs.h.  */
9038 _ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h.  */
9042 #ifdef __GNUC__
9043 # define alloca __builtin_alloca
9044 #else
9045 # ifdef _MSC_VER
9046 #  include <malloc.h>
9047 #  define alloca _alloca
9048 # else
9049 #  ifdef HAVE_ALLOCA_H
9050 #   include <alloca.h>
9051 #  else
9052 #   ifdef _AIX
9053  #pragma alloca
9054 #   else
9055 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9056 char *alloca ();
9057 #    endif
9058 #   endif
9059 #  endif
9060 # endif
9061 #endif
9062
9063 int
9064 main ()
9065 {
9066 char *p = (char *) alloca (1);
9067                                     if (p) return 0;
9068   ;
9069   return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (ac_try="$ac_link"
9074 case "(($ac_try" in
9075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076   *) ac_try_echo=$ac_try;;
9077 esac
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079   (eval "$ac_link") 2>conftest.er1
9080   ac_status=$?
9081   grep -v '^ *+' conftest.er1 >conftest.err
9082   rm -f conftest.er1
9083   cat conftest.err >&5
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); } && {
9086          test -z "$ac_c_werror_flag" ||
9087          test ! -s conftest.err
9088        } && test -s conftest$ac_exeext &&
9089        $as_test_x conftest$ac_exeext; then
9090   ac_cv_func_alloca_works=yes
9091 else
9092   echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9094
9095         ac_cv_func_alloca_works=no
9096 fi
9097
9098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9099       conftest$ac_exeext conftest.$ac_ext
9100 fi
9101 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9102 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9103
9104 if test $ac_cv_func_alloca_works = yes; then
9105
9106 cat >>confdefs.h <<\_ACEOF
9107 #define HAVE_ALLOCA 1
9108 _ACEOF
9109
9110 else
9111   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9112 # that cause trouble.  Some versions do not even contain alloca or
9113 # contain a buggy version.  If you still want to use their alloca,
9114 # use ar to extract alloca.o from them instead of compiling alloca.c.
9115
9116 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9117
9118 cat >>confdefs.h <<\_ACEOF
9119 #define C_ALLOCA 1
9120 _ACEOF
9121
9122
9123 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9124 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9125 if test "${ac_cv_os_cray+set}" = set; then
9126   echo $ECHO_N "(cached) $ECHO_C" >&6
9127 else
9128   cat >conftest.$ac_ext <<_ACEOF
9129 /* confdefs.h.  */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h.  */
9134 #if defined CRAY && ! defined CRAY2
9135 webecray
9136 #else
9137 wenotbecray
9138 #endif
9139
9140 _ACEOF
9141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9142   $EGREP "webecray" >/dev/null 2>&1; then
9143   ac_cv_os_cray=yes
9144 else
9145   ac_cv_os_cray=no
9146 fi
9147 rm -f conftest*
9148
9149 fi
9150 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9151 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9152 if test $ac_cv_os_cray = yes; then
9153   for ac_func in _getb67 GETB67 getb67; do
9154     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160   cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h.  */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h.  */
9166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9168 #define $ac_func innocuous_$ac_func
9169
9170 /* System header to define __stub macros and hopefully few prototypes,
9171     which can conflict with char $ac_func (); below.
9172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9173     <limits.h> exists even on freestanding compilers.  */
9174
9175 #ifdef __STDC__
9176 # include <limits.h>
9177 #else
9178 # include <assert.h>
9179 #endif
9180
9181 #undef $ac_func
9182
9183 /* Override any GCC internal prototype to avoid an error.
9184    Use char because int might match the return type of a GCC
9185    builtin and then its argument prototype would still apply.  */
9186 #ifdef __cplusplus
9187 extern "C"
9188 #endif
9189 char $ac_func ();
9190 /* The GNU C library defines this for functions which it implements
9191     to always fail with ENOSYS.  Some functions are actually named
9192     something starting with __ and the normal name is an alias.  */
9193 #if defined __stub_$ac_func || defined __stub___$ac_func
9194 choke me
9195 #endif
9196
9197 int
9198 main ()
9199 {
9200 return $ac_func ();
9201   ;
9202   return 0;
9203 }
9204 _ACEOF
9205 rm -f conftest.$ac_objext conftest$ac_exeext
9206 if { (ac_try="$ac_link"
9207 case "(($ac_try" in
9208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209   *) ac_try_echo=$ac_try;;
9210 esac
9211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212   (eval "$ac_link") 2>conftest.er1
9213   ac_status=$?
9214   grep -v '^ *+' conftest.er1 >conftest.err
9215   rm -f conftest.er1
9216   cat conftest.err >&5
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); } && {
9219          test -z "$ac_c_werror_flag" ||
9220          test ! -s conftest.err
9221        } && test -s conftest$ac_exeext &&
9222        $as_test_x conftest$ac_exeext; then
9223   eval "$as_ac_var=yes"
9224 else
9225   echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9227
9228         eval "$as_ac_var=no"
9229 fi
9230
9231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9232       conftest$ac_exeext conftest.$ac_ext
9233 fi
9234 ac_res=`eval echo '${'$as_ac_var'}'`
9235                { echo "$as_me:$LINENO: result: $ac_res" >&5
9236 echo "${ECHO_T}$ac_res" >&6; }
9237 if test `eval echo '${'$as_ac_var'}'` = yes; then
9238
9239 cat >>confdefs.h <<_ACEOF
9240 #define CRAY_STACKSEG_END $ac_func
9241 _ACEOF
9242
9243     break
9244 fi
9245
9246   done
9247 fi
9248
9249 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9250 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9251 if test "${ac_cv_c_stack_direction+set}" = set; then
9252   echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254   if test "$cross_compiling" = yes; then
9255   ac_cv_c_stack_direction=0
9256 else
9257   cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h.  */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h.  */
9263 $ac_includes_default
9264 int
9265 find_stack_direction ()
9266 {
9267   static char *addr = 0;
9268   auto char dummy;
9269   if (addr == 0)
9270     {
9271       addr = &dummy;
9272       return find_stack_direction ();
9273     }
9274   else
9275     return (&dummy > addr) ? 1 : -1;
9276 }
9277
9278 int
9279 main ()
9280 {
9281   return find_stack_direction () < 0;
9282 }
9283 _ACEOF
9284 rm -f conftest$ac_exeext
9285 if { (ac_try="$ac_link"
9286 case "(($ac_try" in
9287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288   *) ac_try_echo=$ac_try;;
9289 esac
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291   (eval "$ac_link") 2>&5
9292   ac_status=$?
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9295   { (case "(($ac_try" in
9296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297   *) ac_try_echo=$ac_try;;
9298 esac
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300   (eval "$ac_try") 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; }; then
9304   ac_cv_c_stack_direction=1
9305 else
9306   echo "$as_me: program exited with status $ac_status" >&5
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9309
9310 ( exit $ac_status )
9311 ac_cv_c_stack_direction=-1
9312 fi
9313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9314 fi
9315
9316
9317 fi
9318 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9319 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9320
9321 cat >>confdefs.h <<_ACEOF
9322 #define STACK_DIRECTION $ac_cv_c_stack_direction
9323 _ACEOF
9324
9325
9326 fi
9327
9328
9329
9330 for ac_header in stdlib.h unistd.h
9331 do
9332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9334   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9337   echo $ECHO_N "(cached) $ECHO_C" >&6
9338 fi
9339 ac_res=`eval echo '${'$as_ac_Header'}'`
9340                { echo "$as_me:$LINENO: result: $ac_res" >&5
9341 echo "${ECHO_T}$ac_res" >&6; }
9342 else
9343   # Is the header compilable?
9344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h.  */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h.  */
9352 $ac_includes_default
9353 #include <$ac_header>
9354 _ACEOF
9355 rm -f conftest.$ac_objext
9356 if { (ac_try="$ac_compile"
9357 case "(($ac_try" in
9358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359   *) ac_try_echo=$ac_try;;
9360 esac
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362   (eval "$ac_compile") 2>conftest.er1
9363   ac_status=$?
9364   grep -v '^ *+' conftest.er1 >conftest.err
9365   rm -f conftest.er1
9366   cat conftest.err >&5
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); } && {
9369          test -z "$ac_c_werror_flag" ||
9370          test ! -s conftest.err
9371        } && test -s conftest.$ac_objext; then
9372   ac_header_compiler=yes
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377         ac_header_compiler=no
9378 fi
9379
9380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9382 echo "${ECHO_T}$ac_header_compiler" >&6; }
9383
9384 # Is the header present?
9385 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9387 cat >conftest.$ac_ext <<_ACEOF
9388 /* confdefs.h.  */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h.  */
9393 #include <$ac_header>
9394 _ACEOF
9395 if { (ac_try="$ac_cpp conftest.$ac_ext"
9396 case "(($ac_try" in
9397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398   *) ac_try_echo=$ac_try;;
9399 esac
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9402   ac_status=$?
9403   grep -v '^ *+' conftest.er1 >conftest.err
9404   rm -f conftest.er1
9405   cat conftest.err >&5
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); } >/dev/null && {
9408          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9409          test ! -s conftest.err
9410        }; then
9411   ac_header_preproc=yes
9412 else
9413   echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9415
9416   ac_header_preproc=no
9417 fi
9418
9419 rm -f conftest.err conftest.$ac_ext
9420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9421 echo "${ECHO_T}$ac_header_preproc" >&6; }
9422
9423 # So?  What about this header?
9424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9425   yes:no: )
9426     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9430     ac_header_preproc=yes
9431     ;;
9432   no:yes:* )
9433     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9435     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9436 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9437     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9439     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9440 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9443     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9445
9446     ;;
9447 esac
9448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9451   echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453   eval "$as_ac_Header=\$ac_header_preproc"
9454 fi
9455 ac_res=`eval echo '${'$as_ac_Header'}'`
9456                { echo "$as_me:$LINENO: result: $ac_res" >&5
9457 echo "${ECHO_T}$ac_res" >&6; }
9458
9459 fi
9460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9461   cat >>confdefs.h <<_ACEOF
9462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9463 _ACEOF
9464
9465 fi
9466
9467 done
9468
9469
9470 for ac_func in getpagesize
9471 do
9472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9476   echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478   cat >conftest.$ac_ext <<_ACEOF
9479 /* confdefs.h.  */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h.  */
9484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9486 #define $ac_func innocuous_$ac_func
9487
9488 /* System header to define __stub macros and hopefully few prototypes,
9489     which can conflict with char $ac_func (); below.
9490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9491     <limits.h> exists even on freestanding compilers.  */
9492
9493 #ifdef __STDC__
9494 # include <limits.h>
9495 #else
9496 # include <assert.h>
9497 #endif
9498
9499 #undef $ac_func
9500
9501 /* Override any GCC internal prototype to avoid an error.
9502    Use char because int might match the return type of a GCC
9503    builtin and then its argument prototype would still apply.  */
9504 #ifdef __cplusplus
9505 extern "C"
9506 #endif
9507 char $ac_func ();
9508 /* The GNU C library defines this for functions which it implements
9509     to always fail with ENOSYS.  Some functions are actually named
9510     something starting with __ and the normal name is an alias.  */
9511 #if defined __stub_$ac_func || defined __stub___$ac_func
9512 choke me
9513 #endif
9514
9515 int
9516 main ()
9517 {
9518 return $ac_func ();
9519   ;
9520   return 0;
9521 }
9522 _ACEOF
9523 rm -f conftest.$ac_objext conftest$ac_exeext
9524 if { (ac_try="$ac_link"
9525 case "(($ac_try" in
9526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527   *) ac_try_echo=$ac_try;;
9528 esac
9529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9530   (eval "$ac_link") 2>conftest.er1
9531   ac_status=$?
9532   grep -v '^ *+' conftest.er1 >conftest.err
9533   rm -f conftest.er1
9534   cat conftest.err >&5
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); } && {
9537          test -z "$ac_c_werror_flag" ||
9538          test ! -s conftest.err
9539        } && test -s conftest$ac_exeext &&
9540        $as_test_x conftest$ac_exeext; then
9541   eval "$as_ac_var=yes"
9542 else
9543   echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546         eval "$as_ac_var=no"
9547 fi
9548
9549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9550       conftest$ac_exeext conftest.$ac_ext
9551 fi
9552 ac_res=`eval echo '${'$as_ac_var'}'`
9553                { echo "$as_me:$LINENO: result: $ac_res" >&5
9554 echo "${ECHO_T}$ac_res" >&6; }
9555 if test `eval echo '${'$as_ac_var'}'` = yes; then
9556   cat >>confdefs.h <<_ACEOF
9557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9558 _ACEOF
9559
9560 fi
9561 done
9562
9563 { echo "$as_me:$LINENO: checking for working mmap" >&5
9564 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9565 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9566   echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568   if test "$cross_compiling" = yes; then
9569   ac_cv_func_mmap_fixed_mapped=no
9570 else
9571   cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h.  */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h.  */
9577 $ac_includes_default
9578 /* malloc might have been renamed as rpl_malloc. */
9579 #undef malloc
9580
9581 /* Thanks to Mike Haertel and Jim Avera for this test.
9582    Here is a matrix of mmap possibilities:
9583         mmap private not fixed
9584         mmap private fixed at somewhere currently unmapped
9585         mmap private fixed at somewhere already mapped
9586         mmap shared not fixed
9587         mmap shared fixed at somewhere currently unmapped
9588         mmap shared fixed at somewhere already mapped
9589    For private mappings, we should verify that changes cannot be read()
9590    back from the file, nor mmap's back from the file at a different
9591    address.  (There have been systems where private was not correctly
9592    implemented like the infamous i386 svr4.0, and systems where the
9593    VM page cache was not coherent with the file system buffer cache
9594    like early versions of FreeBSD and possibly contemporary NetBSD.)
9595    For shared mappings, we should conversely verify that changes get
9596    propagated back to all the places they're supposed to be.
9597
9598    Grep wants private fixed already mapped.
9599    The main things grep needs to know about mmap are:
9600    * does it exist and is it safe to write into the mmap'd area
9601    * how to use it (BSD variants)  */
9602
9603 #include <fcntl.h>
9604 #include <sys/mman.h>
9605
9606 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9607 char *malloc ();
9608 #endif
9609
9610 /* This mess was copied from the GNU getpagesize.h.  */
9611 #ifndef HAVE_GETPAGESIZE
9612 /* Assume that all systems that can run configure have sys/param.h.  */
9613 # ifndef HAVE_SYS_PARAM_H
9614 #  define HAVE_SYS_PARAM_H 1
9615 # endif
9616
9617 # ifdef _SC_PAGESIZE
9618 #  define getpagesize() sysconf(_SC_PAGESIZE)
9619 # else /* no _SC_PAGESIZE */
9620 #  ifdef HAVE_SYS_PARAM_H
9621 #   include <sys/param.h>
9622 #   ifdef EXEC_PAGESIZE
9623 #    define getpagesize() EXEC_PAGESIZE
9624 #   else /* no EXEC_PAGESIZE */
9625 #    ifdef NBPG
9626 #     define getpagesize() NBPG * CLSIZE
9627 #     ifndef CLSIZE
9628 #      define CLSIZE 1
9629 #     endif /* no CLSIZE */
9630 #    else /* no NBPG */
9631 #     ifdef NBPC
9632 #      define getpagesize() NBPC
9633 #     else /* no NBPC */
9634 #      ifdef PAGESIZE
9635 #       define getpagesize() PAGESIZE
9636 #      endif /* PAGESIZE */
9637 #     endif /* no NBPC */
9638 #    endif /* no NBPG */
9639 #   endif /* no EXEC_PAGESIZE */
9640 #  else /* no HAVE_SYS_PARAM_H */
9641 #   define getpagesize() 8192   /* punt totally */
9642 #  endif /* no HAVE_SYS_PARAM_H */
9643 # endif /* no _SC_PAGESIZE */
9644
9645 #endif /* no HAVE_GETPAGESIZE */
9646
9647 int
9648 main ()
9649 {
9650   char *data, *data2, *data3;
9651   int i, pagesize;
9652   int fd;
9653
9654   pagesize = getpagesize ();
9655
9656   /* First, make a file with some known garbage in it. */
9657   data = (char *) malloc (pagesize);
9658   if (!data)
9659     return 1;
9660   for (i = 0; i < pagesize; ++i)
9661     *(data + i) = rand ();
9662   umask (0);
9663   fd = creat ("conftest.mmap", 0600);
9664   if (fd < 0)
9665     return 1;
9666   if (write (fd, data, pagesize) != pagesize)
9667     return 1;
9668   close (fd);
9669
9670   /* Next, try to mmap the file at a fixed address which already has
9671      something else allocated at it.  If we can, also make sure that
9672      we see the same garbage.  */
9673   fd = open ("conftest.mmap", O_RDWR);
9674   if (fd < 0)
9675     return 1;
9676   data2 = (char *) malloc (2 * pagesize);
9677   if (!data2)
9678     return 1;
9679   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9680   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9681                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9682     return 1;
9683   for (i = 0; i < pagesize; ++i)
9684     if (*(data + i) != *(data2 + i))
9685       return 1;
9686
9687   /* Finally, make sure that changes to the mapped area do not
9688      percolate back to the file as seen by read().  (This is a bug on
9689      some variants of i386 svr4.0.)  */
9690   for (i = 0; i < pagesize; ++i)
9691     *(data2 + i) = *(data2 + i) + 1;
9692   data3 = (char *) malloc (pagesize);
9693   if (!data3)
9694     return 1;
9695   if (read (fd, data3, pagesize) != pagesize)
9696     return 1;
9697   for (i = 0; i < pagesize; ++i)
9698     if (*(data + i) != *(data3 + i))
9699       return 1;
9700   close (fd);
9701   return 0;
9702 }
9703 _ACEOF
9704 rm -f conftest$ac_exeext
9705 if { (ac_try="$ac_link"
9706 case "(($ac_try" in
9707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708   *) ac_try_echo=$ac_try;;
9709 esac
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711   (eval "$ac_link") 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9715   { (case "(($ac_try" in
9716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717   *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720   (eval "$ac_try") 2>&5
9721   ac_status=$?
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); }; }; then
9724   ac_cv_func_mmap_fixed_mapped=yes
9725 else
9726   echo "$as_me: program exited with status $ac_status" >&5
9727 echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9729
9730 ( exit $ac_status )
9731 ac_cv_func_mmap_fixed_mapped=no
9732 fi
9733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9734 fi
9735
9736
9737 fi
9738 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9739 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9740 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9741
9742 cat >>confdefs.h <<\_ACEOF
9743 #define HAVE_MMAP 1
9744 _ACEOF
9745
9746 fi
9747 rm -f conftest.mmap
9748
9749
9750     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9751 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9752 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9753   echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755   cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h.  */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h.  */
9761
9762 #include <features.h>
9763 #ifdef __GNU_LIBRARY__
9764  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9765   Lucky GNU user
9766  #endif
9767 #endif
9768
9769 _ACEOF
9770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9771   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9772   ac_cv_gnu_library_2_1=yes
9773 else
9774   ac_cv_gnu_library_2_1=no
9775 fi
9776 rm -f conftest*
9777
9778
9779
9780 fi
9781 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9782 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9783
9784     GLIBC21="$ac_cv_gnu_library_2_1"
9785
9786
9787
9788
9789   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9790 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9791 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794
9795       if test "$cross_compiling" = yes; then
9796
9797           # Guess based on the CPU.
9798           case "$host_cpu" in
9799             alpha* | i3456786 | m68k | s390*)
9800               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9801             *)
9802               gt_cv_int_divbyzero_sigfpe="guessing no";;
9803           esac
9804
9805 else
9806   cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h.  */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h.  */
9812
9813 #include <stdlib.h>
9814 #include <signal.h>
9815
9816 static void
9817 #ifdef __cplusplus
9818 sigfpe_handler (int sig)
9819 #else
9820 sigfpe_handler (sig) int sig;
9821 #endif
9822 {
9823   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9824   exit (sig != SIGFPE);
9825 }
9826
9827 int x = 1;
9828 int y = 0;
9829 int z;
9830 int nan;
9831
9832 int main ()
9833 {
9834   signal (SIGFPE, sigfpe_handler);
9835 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9836 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9837   signal (SIGTRAP, sigfpe_handler);
9838 #endif
9839 /* Linux/SPARC yields signal SIGILL.  */
9840 #if defined (__sparc__) && defined (__linux__)
9841   signal (SIGILL, sigfpe_handler);
9842 #endif
9843
9844   z = x / y;
9845   nan = y / y;
9846   exit (1);
9847 }
9848
9849 _ACEOF
9850 rm -f conftest$ac_exeext
9851 if { (ac_try="$ac_link"
9852 case "(($ac_try" in
9853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854   *) ac_try_echo=$ac_try;;
9855 esac
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857   (eval "$ac_link") 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9861   { (case "(($ac_try" in
9862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863   *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866   (eval "$ac_try") 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   gt_cv_int_divbyzero_sigfpe=yes
9871 else
9872   echo "$as_me: program exited with status $ac_status" >&5
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9875
9876 ( exit $ac_status )
9877 gt_cv_int_divbyzero_sigfpe=no
9878 fi
9879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9880 fi
9881
9882
9883
9884 fi
9885 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9886 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9887   case "$gt_cv_int_divbyzero_sigfpe" in
9888     *yes) value=1;;
9889     *) value=0;;
9890   esac
9891
9892 cat >>confdefs.h <<_ACEOF
9893 #define INTDIV0_RAISES_SIGFPE $value
9894 _ACEOF
9895
9896
9897
9898   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9899 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9900 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9901   echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903   cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h.  */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h.  */
9909 unsigned long long ull = 1ULL; int i = 63;
9910 int
9911 main ()
9912 {
9913 unsigned long long ullmax = (unsigned long long) -1;
9914      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9915   ;
9916   return 0;
9917 }
9918 _ACEOF
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (ac_try="$ac_link"
9921 case "(($ac_try" in
9922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923   *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926   (eval "$ac_link") 2>conftest.er1
9927   ac_status=$?
9928   grep -v '^ *+' conftest.er1 >conftest.err
9929   rm -f conftest.er1
9930   cat conftest.err >&5
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); } && {
9933          test -z "$ac_c_werror_flag" ||
9934          test ! -s conftest.err
9935        } && test -s conftest$ac_exeext &&
9936        $as_test_x conftest$ac_exeext; then
9937   ac_cv_type_unsigned_long_long=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942         ac_cv_type_unsigned_long_long=no
9943 fi
9944
9945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9946       conftest$ac_exeext conftest.$ac_ext
9947 fi
9948 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9949 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9950   if test $ac_cv_type_unsigned_long_long = yes; then
9951
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_UNSIGNED_LONG_LONG 1
9954 _ACEOF
9955
9956   fi
9957
9958
9959
9960
9961   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9962
9963     test $ac_cv_type_unsigned_long_long = yes \
9964       && ac_type='unsigned long long' \
9965       || ac_type='unsigned long'
9966
9967 cat >>confdefs.h <<_ACEOF
9968 #define uintmax_t $ac_type
9969 _ACEOF
9970
9971   else
9972
9973 cat >>confdefs.h <<\_ACEOF
9974 #define HAVE_UINTMAX_T 1
9975 _ACEOF
9976
9977   fi
9978
9979
9980   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9981 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9982 if test "${gt_cv_header_inttypes_h+set}" = set; then
9983   echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985
9986     cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h.  */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h.  */
9992 #include <sys/types.h>
9993 #include <inttypes.h>
9994 int
9995 main ()
9996 {
9997
9998   ;
9999   return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest.$ac_objext
10003 if { (ac_try="$ac_compile"
10004 case "(($ac_try" in
10005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006   *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009   (eval "$ac_compile") 2>conftest.er1
10010   ac_status=$?
10011   grep -v '^ *+' conftest.er1 >conftest.err
10012   rm -f conftest.er1
10013   cat conftest.err >&5
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); } && {
10016          test -z "$ac_c_werror_flag" ||
10017          test ! -s conftest.err
10018        } && test -s conftest.$ac_objext; then
10019   gt_cv_header_inttypes_h=yes
10020 else
10021   echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10023
10024         gt_cv_header_inttypes_h=no
10025 fi
10026
10027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028
10029 fi
10030 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10031 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10032   if test $gt_cv_header_inttypes_h = yes; then
10033
10034 cat >>confdefs.h <<_ACEOF
10035 #define HAVE_INTTYPES_H 1
10036 _ACEOF
10037
10038   fi
10039
10040
10041
10042   if test $gt_cv_header_inttypes_h = yes; then
10043     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10044 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10045 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10046   echo $ECHO_N "(cached) $ECHO_C" >&6
10047 else
10048
10049         cat >conftest.$ac_ext <<_ACEOF
10050 /* confdefs.h.  */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h.  */
10055 #include <inttypes.h>
10056 #ifdef PRId32
10057 char *p = PRId32;
10058 #endif
10059
10060 int
10061 main ()
10062 {
10063
10064   ;
10065   return 0;
10066 }
10067 _ACEOF
10068 rm -f conftest.$ac_objext
10069 if { (ac_try="$ac_compile"
10070 case "(($ac_try" in
10071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072   *) ac_try_echo=$ac_try;;
10073 esac
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075   (eval "$ac_compile") 2>conftest.er1
10076   ac_status=$?
10077   grep -v '^ *+' conftest.er1 >conftest.err
10078   rm -f conftest.er1
10079   cat conftest.err >&5
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); } && {
10082          test -z "$ac_c_werror_flag" ||
10083          test ! -s conftest.err
10084        } && test -s conftest.$ac_objext; then
10085   gt_cv_inttypes_pri_broken=no
10086 else
10087   echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090         gt_cv_inttypes_pri_broken=yes
10091 fi
10092
10093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094
10095 fi
10096 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10097 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10098   fi
10099   if test "$gt_cv_inttypes_pri_broken" = yes; then
10100
10101 cat >>confdefs.h <<_ACEOF
10102 #define PRI_MACROS_BROKEN 1
10103 _ACEOF
10104
10105   fi
10106
10107
10108
10109 for ac_header in stdint.h
10110 do
10111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10113   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10116   echo $ECHO_N "(cached) $ECHO_C" >&6
10117 fi
10118 ac_res=`eval echo '${'$as_ac_Header'}'`
10119                { echo "$as_me:$LINENO: result: $ac_res" >&5
10120 echo "${ECHO_T}$ac_res" >&6; }
10121 else
10122   # Is the header compilable?
10123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10125 cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h.  */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h.  */
10131 $ac_includes_default
10132 #include <$ac_header>
10133 _ACEOF
10134 rm -f conftest.$ac_objext
10135 if { (ac_try="$ac_compile"
10136 case "(($ac_try" in
10137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138   *) ac_try_echo=$ac_try;;
10139 esac
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141   (eval "$ac_compile") 2>conftest.er1
10142   ac_status=$?
10143   grep -v '^ *+' conftest.er1 >conftest.err
10144   rm -f conftest.er1
10145   cat conftest.err >&5
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); } && {
10148          test -z "$ac_c_werror_flag" ||
10149          test ! -s conftest.err
10150        } && test -s conftest.$ac_objext; then
10151   ac_header_compiler=yes
10152 else
10153   echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156         ac_header_compiler=no
10157 fi
10158
10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10161 echo "${ECHO_T}$ac_header_compiler" >&6; }
10162
10163 # Is the header present?
10164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10166 cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h.  */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h.  */
10172 #include <$ac_header>
10173 _ACEOF
10174 if { (ac_try="$ac_cpp conftest.$ac_ext"
10175 case "(($ac_try" in
10176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177   *) ac_try_echo=$ac_try;;
10178 esac
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10181   ac_status=$?
10182   grep -v '^ *+' conftest.er1 >conftest.err
10183   rm -f conftest.er1
10184   cat conftest.err >&5
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); } >/dev/null && {
10187          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10188          test ! -s conftest.err
10189        }; then
10190   ac_header_preproc=yes
10191 else
10192   echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10194
10195   ac_header_preproc=no
10196 fi
10197
10198 rm -f conftest.err conftest.$ac_ext
10199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10200 echo "${ECHO_T}$ac_header_preproc" >&6; }
10201
10202 # So?  What about this header?
10203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10204   yes:no: )
10205     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10209     ac_header_preproc=yes
10210     ;;
10211   no:yes:* )
10212     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10214     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10215 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10216     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10218     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10219 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10222     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10224
10225     ;;
10226 esac
10227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10230   echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232   eval "$as_ac_Header=\$ac_header_preproc"
10233 fi
10234 ac_res=`eval echo '${'$as_ac_Header'}'`
10235                { echo "$as_me:$LINENO: result: $ac_res" >&5
10236 echo "${ECHO_T}$ac_res" >&6; }
10237
10238 fi
10239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10240   cat >>confdefs.h <<_ACEOF
10241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10242 _ACEOF
10243
10244 fi
10245
10246 done
10247
10248     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10249 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10250   result=
10251   cat >conftest.$ac_ext <<_ACEOF
10252 /* confdefs.h.  */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h.  */
10257
10258 #include <limits.h>
10259 #if HAVE_STDINT_H
10260 #include <stdint.h>
10261 #endif
10262 #ifdef SIZE_MAX
10263 Found it
10264 #endif
10265
10266 _ACEOF
10267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10268   $EGREP "Found it" >/dev/null 2>&1; then
10269   result=yes
10270 fi
10271 rm -f conftest*
10272
10273   if test -z "$result"; then
10274                     if test "$cross_compiling" = yes; then
10275   # Depending upon the size, compute the lo and hi bounds.
10276 cat >conftest.$ac_ext <<_ACEOF
10277 /* confdefs.h.  */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h.  */
10282 #include <stddef.h>
10283 int
10284 main ()
10285 {
10286 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10287 test_array [0] = 0
10288
10289   ;
10290   return 0;
10291 }
10292 _ACEOF
10293 rm -f conftest.$ac_objext
10294 if { (ac_try="$ac_compile"
10295 case "(($ac_try" in
10296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297   *) ac_try_echo=$ac_try;;
10298 esac
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300   (eval "$ac_compile") 2>conftest.er1
10301   ac_status=$?
10302   grep -v '^ *+' conftest.er1 >conftest.err
10303   rm -f conftest.er1
10304   cat conftest.err >&5
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } && {
10307          test -z "$ac_c_werror_flag" ||
10308          test ! -s conftest.err
10309        } && test -s conftest.$ac_objext; then
10310   ac_lo=0 ac_mid=0
10311   while :; do
10312     cat >conftest.$ac_ext <<_ACEOF
10313 /* confdefs.h.  */
10314 _ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h.  */
10318 #include <stddef.h>
10319 int
10320 main ()
10321 {
10322 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10323 test_array [0] = 0
10324
10325   ;
10326   return 0;
10327 }
10328 _ACEOF
10329 rm -f conftest.$ac_objext
10330 if { (ac_try="$ac_compile"
10331 case "(($ac_try" in
10332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333   *) ac_try_echo=$ac_try;;
10334 esac
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336   (eval "$ac_compile") 2>conftest.er1
10337   ac_status=$?
10338   grep -v '^ *+' conftest.er1 >conftest.err
10339   rm -f conftest.er1
10340   cat conftest.err >&5
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); } && {
10343          test -z "$ac_c_werror_flag" ||
10344          test ! -s conftest.err
10345        } && test -s conftest.$ac_objext; then
10346   ac_hi=$ac_mid; break
10347 else
10348   echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10350
10351         ac_lo=`expr $ac_mid + 1`
10352                         if test $ac_lo -le $ac_mid; then
10353                           ac_lo= ac_hi=
10354                           break
10355                         fi
10356                         ac_mid=`expr 2 '*' $ac_mid + 1`
10357 fi
10358
10359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360   done
10361 else
10362   echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10364
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 #include <stddef.h>
10372 int
10373 main ()
10374 {
10375 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10376 test_array [0] = 0
10377
10378   ;
10379   return 0;
10380 }
10381 _ACEOF
10382 rm -f conftest.$ac_objext
10383 if { (ac_try="$ac_compile"
10384 case "(($ac_try" in
10385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386   *) ac_try_echo=$ac_try;;
10387 esac
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389   (eval "$ac_compile") 2>conftest.er1
10390   ac_status=$?
10391   grep -v '^ *+' conftest.er1 >conftest.err
10392   rm -f conftest.er1
10393   cat conftest.err >&5
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); } && {
10396          test -z "$ac_c_werror_flag" ||
10397          test ! -s conftest.err
10398        } && test -s conftest.$ac_objext; then
10399   ac_hi=-1 ac_mid=-1
10400   while :; do
10401     cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h.  */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h.  */
10407 #include <stddef.h>
10408 int
10409 main ()
10410 {
10411 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10412 test_array [0] = 0
10413
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext
10419 if { (ac_try="$ac_compile"
10420 case "(($ac_try" in
10421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422   *) ac_try_echo=$ac_try;;
10423 esac
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425   (eval "$ac_compile") 2>conftest.er1
10426   ac_status=$?
10427   grep -v '^ *+' conftest.er1 >conftest.err
10428   rm -f conftest.er1
10429   cat conftest.err >&5
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } && {
10432          test -z "$ac_c_werror_flag" ||
10433          test ! -s conftest.err
10434        } && test -s conftest.$ac_objext; then
10435   ac_lo=$ac_mid; break
10436 else
10437   echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440         ac_hi=`expr '(' $ac_mid ')' - 1`
10441                         if test $ac_mid -le $ac_hi; then
10442                           ac_lo= ac_hi=
10443                           break
10444                         fi
10445                         ac_mid=`expr 2 '*' $ac_mid`
10446 fi
10447
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449   done
10450 else
10451   echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10453
10454         ac_lo= ac_hi=
10455 fi
10456
10457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458 fi
10459
10460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10461 # Binary search between lo and hi bounds.
10462 while test "x$ac_lo" != "x$ac_hi"; do
10463   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10464   cat >conftest.$ac_ext <<_ACEOF
10465 /* confdefs.h.  */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h.  */
10470 #include <stddef.h>
10471 int
10472 main ()
10473 {
10474 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10475 test_array [0] = 0
10476
10477   ;
10478   return 0;
10479 }
10480 _ACEOF
10481 rm -f conftest.$ac_objext
10482 if { (ac_try="$ac_compile"
10483 case "(($ac_try" in
10484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485   *) ac_try_echo=$ac_try;;
10486 esac
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488   (eval "$ac_compile") 2>conftest.er1
10489   ac_status=$?
10490   grep -v '^ *+' conftest.er1 >conftest.err
10491   rm -f conftest.er1
10492   cat conftest.err >&5
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); } && {
10495          test -z "$ac_c_werror_flag" ||
10496          test ! -s conftest.err
10497        } && test -s conftest.$ac_objext; then
10498   ac_hi=$ac_mid
10499 else
10500   echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10502
10503         ac_lo=`expr '(' $ac_mid ')' + 1`
10504 fi
10505
10506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507 done
10508 case $ac_lo in
10509 ?*) res_hi=$ac_lo;;
10510 '') result=? ;;
10511 esac
10512 else
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 #include <stddef.h>
10520 static long int longval () { return ~(size_t)0 / 10; }
10521 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10522 #include <stdio.h>
10523 #include <stdlib.h>
10524 int
10525 main ()
10526 {
10527
10528   FILE *f = fopen ("conftest.val", "w");
10529   if (! f)
10530     return 1;
10531   if ((~(size_t)0 / 10) < 0)
10532     {
10533       long int i = longval ();
10534       if (i != (~(size_t)0 / 10))
10535         return 1;
10536       fprintf (f, "%ld\n", i);
10537     }
10538   else
10539     {
10540       unsigned long int i = ulongval ();
10541       if (i != (~(size_t)0 / 10))
10542         return 1;
10543       fprintf (f, "%lu\n", i);
10544     }
10545   return ferror (f) || fclose (f) != 0;
10546
10547   ;
10548   return 0;
10549 }
10550 _ACEOF
10551 rm -f conftest$ac_exeext
10552 if { (ac_try="$ac_link"
10553 case "(($ac_try" in
10554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555   *) ac_try_echo=$ac_try;;
10556 esac
10557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558   (eval "$ac_link") 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10562   { (case "(($ac_try" in
10563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564   *) ac_try_echo=$ac_try;;
10565 esac
10566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567   (eval "$ac_try") 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); }; }; then
10571   res_hi=`cat conftest.val`
10572 else
10573   echo "$as_me: program exited with status $ac_status" >&5
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577 ( exit $ac_status )
10578 result=?
10579 fi
10580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10581 fi
10582 rm -f conftest.val
10583
10584     if test "$cross_compiling" = yes; then
10585   # Depending upon the size, compute the lo and hi bounds.
10586 cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h.  */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h.  */
10592 #include <stddef.h>
10593 int
10594 main ()
10595 {
10596 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10597 test_array [0] = 0
10598
10599   ;
10600   return 0;
10601 }
10602 _ACEOF
10603 rm -f conftest.$ac_objext
10604 if { (ac_try="$ac_compile"
10605 case "(($ac_try" in
10606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607   *) ac_try_echo=$ac_try;;
10608 esac
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610   (eval "$ac_compile") 2>conftest.er1
10611   ac_status=$?
10612   grep -v '^ *+' conftest.er1 >conftest.err
10613   rm -f conftest.er1
10614   cat conftest.err >&5
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); } && {
10617          test -z "$ac_c_werror_flag" ||
10618          test ! -s conftest.err
10619        } && test -s conftest.$ac_objext; then
10620   ac_lo=0 ac_mid=0
10621   while :; do
10622     cat >conftest.$ac_ext <<_ACEOF
10623 /* confdefs.h.  */
10624 _ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h.  */
10628 #include <stddef.h>
10629 int
10630 main ()
10631 {
10632 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10633 test_array [0] = 0
10634
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 rm -f conftest.$ac_objext
10640 if { (ac_try="$ac_compile"
10641 case "(($ac_try" in
10642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643   *) ac_try_echo=$ac_try;;
10644 esac
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646   (eval "$ac_compile") 2>conftest.er1
10647   ac_status=$?
10648   grep -v '^ *+' conftest.er1 >conftest.err
10649   rm -f conftest.er1
10650   cat conftest.err >&5
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); } && {
10653          test -z "$ac_c_werror_flag" ||
10654          test ! -s conftest.err
10655        } && test -s conftest.$ac_objext; then
10656   ac_hi=$ac_mid; break
10657 else
10658   echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661         ac_lo=`expr $ac_mid + 1`
10662                         if test $ac_lo -le $ac_mid; then
10663                           ac_lo= ac_hi=
10664                           break
10665                         fi
10666                         ac_mid=`expr 2 '*' $ac_mid + 1`
10667 fi
10668
10669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670   done
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675         cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h.  */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h.  */
10681 #include <stddef.h>
10682 int
10683 main ()
10684 {
10685 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10686 test_array [0] = 0
10687
10688   ;
10689   return 0;
10690 }
10691 _ACEOF
10692 rm -f conftest.$ac_objext
10693 if { (ac_try="$ac_compile"
10694 case "(($ac_try" in
10695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696   *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699   (eval "$ac_compile") 2>conftest.er1
10700   ac_status=$?
10701   grep -v '^ *+' conftest.er1 >conftest.err
10702   rm -f conftest.er1
10703   cat conftest.err >&5
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); } && {
10706          test -z "$ac_c_werror_flag" ||
10707          test ! -s conftest.err
10708        } && test -s conftest.$ac_objext; then
10709   ac_hi=-1 ac_mid=-1
10710   while :; do
10711     cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h.  */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h.  */
10717 #include <stddef.h>
10718 int
10719 main ()
10720 {
10721 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10722 test_array [0] = 0
10723
10724   ;
10725   return 0;
10726 }
10727 _ACEOF
10728 rm -f conftest.$ac_objext
10729 if { (ac_try="$ac_compile"
10730 case "(($ac_try" in
10731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732   *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735   (eval "$ac_compile") 2>conftest.er1
10736   ac_status=$?
10737   grep -v '^ *+' conftest.er1 >conftest.err
10738   rm -f conftest.er1
10739   cat conftest.err >&5
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); } && {
10742          test -z "$ac_c_werror_flag" ||
10743          test ! -s conftest.err
10744        } && test -s conftest.$ac_objext; then
10745   ac_lo=$ac_mid; break
10746 else
10747   echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10749
10750         ac_hi=`expr '(' $ac_mid ')' - 1`
10751                         if test $ac_mid -le $ac_hi; then
10752                           ac_lo= ac_hi=
10753                           break
10754                         fi
10755                         ac_mid=`expr 2 '*' $ac_mid`
10756 fi
10757
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759   done
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764         ac_lo= ac_hi=
10765 fi
10766
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 fi
10769
10770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10771 # Binary search between lo and hi bounds.
10772 while test "x$ac_lo" != "x$ac_hi"; do
10773   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10774   cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h.  */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h.  */
10780 #include <stddef.h>
10781 int
10782 main ()
10783 {
10784 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10785 test_array [0] = 0
10786
10787   ;
10788   return 0;
10789 }
10790 _ACEOF
10791 rm -f conftest.$ac_objext
10792 if { (ac_try="$ac_compile"
10793 case "(($ac_try" in
10794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795   *) ac_try_echo=$ac_try;;
10796 esac
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798   (eval "$ac_compile") 2>conftest.er1
10799   ac_status=$?
10800   grep -v '^ *+' conftest.er1 >conftest.err
10801   rm -f conftest.er1
10802   cat conftest.err >&5
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); } && {
10805          test -z "$ac_c_werror_flag" ||
10806          test ! -s conftest.err
10807        } && test -s conftest.$ac_objext; then
10808   ac_hi=$ac_mid
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813         ac_lo=`expr '(' $ac_mid ')' + 1`
10814 fi
10815
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 done
10818 case $ac_lo in
10819 ?*) res_lo=$ac_lo;;
10820 '') result=? ;;
10821 esac
10822 else
10823   cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h.  */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h.  */
10829 #include <stddef.h>
10830 static long int longval () { return ~(size_t)0 % 10; }
10831 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10832 #include <stdio.h>
10833 #include <stdlib.h>
10834 int
10835 main ()
10836 {
10837
10838   FILE *f = fopen ("conftest.val", "w");
10839   if (! f)
10840     return 1;
10841   if ((~(size_t)0 % 10) < 0)
10842     {
10843       long int i = longval ();
10844       if (i != (~(size_t)0 % 10))
10845         return 1;
10846       fprintf (f, "%ld\n", i);
10847     }
10848   else
10849     {
10850       unsigned long int i = ulongval ();
10851       if (i != (~(size_t)0 % 10))
10852         return 1;
10853       fprintf (f, "%lu\n", i);
10854     }
10855   return ferror (f) || fclose (f) != 0;
10856
10857   ;
10858   return 0;
10859 }
10860 _ACEOF
10861 rm -f conftest$ac_exeext
10862 if { (ac_try="$ac_link"
10863 case "(($ac_try" in
10864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865   *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868   (eval "$ac_link") 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10872   { (case "(($ac_try" in
10873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874   *) ac_try_echo=$ac_try;;
10875 esac
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877   (eval "$ac_try") 2>&5
10878   ac_status=$?
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); }; }; then
10881   res_lo=`cat conftest.val`
10882 else
10883   echo "$as_me: program exited with status $ac_status" >&5
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10886
10887 ( exit $ac_status )
10888 result=?
10889 fi
10890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10891 fi
10892 rm -f conftest.val
10893
10894     if test "$cross_compiling" = yes; then
10895   # Depending upon the size, compute the lo and hi bounds.
10896 cat >conftest.$ac_ext <<_ACEOF
10897 /* confdefs.h.  */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h.  */
10902 #include <stddef.h>
10903 int
10904 main ()
10905 {
10906 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10907 test_array [0] = 0
10908
10909   ;
10910   return 0;
10911 }
10912 _ACEOF
10913 rm -f conftest.$ac_objext
10914 if { (ac_try="$ac_compile"
10915 case "(($ac_try" in
10916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917   *) ac_try_echo=$ac_try;;
10918 esac
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920   (eval "$ac_compile") 2>conftest.er1
10921   ac_status=$?
10922   grep -v '^ *+' conftest.er1 >conftest.err
10923   rm -f conftest.er1
10924   cat conftest.err >&5
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); } && {
10927          test -z "$ac_c_werror_flag" ||
10928          test ! -s conftest.err
10929        } && test -s conftest.$ac_objext; then
10930   ac_lo=0 ac_mid=0
10931   while :; do
10932     cat >conftest.$ac_ext <<_ACEOF
10933 /* confdefs.h.  */
10934 _ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h.  */
10938 #include <stddef.h>
10939 int
10940 main ()
10941 {
10942 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10943 test_array [0] = 0
10944
10945   ;
10946   return 0;
10947 }
10948 _ACEOF
10949 rm -f conftest.$ac_objext
10950 if { (ac_try="$ac_compile"
10951 case "(($ac_try" in
10952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953   *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956   (eval "$ac_compile") 2>conftest.er1
10957   ac_status=$?
10958   grep -v '^ *+' conftest.er1 >conftest.err
10959   rm -f conftest.er1
10960   cat conftest.err >&5
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); } && {
10963          test -z "$ac_c_werror_flag" ||
10964          test ! -s conftest.err
10965        } && test -s conftest.$ac_objext; then
10966   ac_hi=$ac_mid; break
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971         ac_lo=`expr $ac_mid + 1`
10972                         if test $ac_lo -le $ac_mid; then
10973                           ac_lo= ac_hi=
10974                           break
10975                         fi
10976                         ac_mid=`expr 2 '*' $ac_mid + 1`
10977 fi
10978
10979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10980   done
10981 else
10982   echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10984
10985         cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h.  */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h.  */
10991 #include <stddef.h>
10992 int
10993 main ()
10994 {
10995 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10996 test_array [0] = 0
10997
10998   ;
10999   return 0;
11000 }
11001 _ACEOF
11002 rm -f conftest.$ac_objext
11003 if { (ac_try="$ac_compile"
11004 case "(($ac_try" in
11005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006   *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009   (eval "$ac_compile") 2>conftest.er1
11010   ac_status=$?
11011   grep -v '^ *+' conftest.er1 >conftest.err
11012   rm -f conftest.er1
11013   cat conftest.err >&5
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); } && {
11016          test -z "$ac_c_werror_flag" ||
11017          test ! -s conftest.err
11018        } && test -s conftest.$ac_objext; then
11019   ac_hi=-1 ac_mid=-1
11020   while :; do
11021     cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h.  */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h.  */
11027 #include <stddef.h>
11028 int
11029 main ()
11030 {
11031 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11032 test_array [0] = 0
11033
11034   ;
11035   return 0;
11036 }
11037 _ACEOF
11038 rm -f conftest.$ac_objext
11039 if { (ac_try="$ac_compile"
11040 case "(($ac_try" in
11041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042   *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045   (eval "$ac_compile") 2>conftest.er1
11046   ac_status=$?
11047   grep -v '^ *+' conftest.er1 >conftest.err
11048   rm -f conftest.er1
11049   cat conftest.err >&5
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); } && {
11052          test -z "$ac_c_werror_flag" ||
11053          test ! -s conftest.err
11054        } && test -s conftest.$ac_objext; then
11055   ac_lo=$ac_mid; break
11056 else
11057   echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060         ac_hi=`expr '(' $ac_mid ')' - 1`
11061                         if test $ac_mid -le $ac_hi; then
11062                           ac_lo= ac_hi=
11063                           break
11064                         fi
11065                         ac_mid=`expr 2 '*' $ac_mid`
11066 fi
11067
11068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069   done
11070 else
11071   echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.$ac_ext >&5
11073
11074         ac_lo= ac_hi=
11075 fi
11076
11077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11078 fi
11079
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 # Binary search between lo and hi bounds.
11082 while test "x$ac_lo" != "x$ac_hi"; do
11083   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11084   cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h.  */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h.  */
11090 #include <stddef.h>
11091 int
11092 main ()
11093 {
11094 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11095 test_array [0] = 0
11096
11097   ;
11098   return 0;
11099 }
11100 _ACEOF
11101 rm -f conftest.$ac_objext
11102 if { (ac_try="$ac_compile"
11103 case "(($ac_try" in
11104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105   *) ac_try_echo=$ac_try;;
11106 esac
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108   (eval "$ac_compile") 2>conftest.er1
11109   ac_status=$?
11110   grep -v '^ *+' conftest.er1 >conftest.err
11111   rm -f conftest.er1
11112   cat conftest.err >&5
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); } && {
11115          test -z "$ac_c_werror_flag" ||
11116          test ! -s conftest.err
11117        } && test -s conftest.$ac_objext; then
11118   ac_hi=$ac_mid
11119 else
11120   echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11122
11123         ac_lo=`expr '(' $ac_mid ')' + 1`
11124 fi
11125
11126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127 done
11128 case $ac_lo in
11129 ?*) fits_in_uint=$ac_lo;;
11130 '') result=? ;;
11131 esac
11132 else
11133   cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h.  */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h.  */
11139 #include <stddef.h>
11140 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11141 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11142 #include <stdio.h>
11143 #include <stdlib.h>
11144 int
11145 main ()
11146 {
11147
11148   FILE *f = fopen ("conftest.val", "w");
11149   if (! f)
11150     return 1;
11151   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11152     {
11153       long int i = longval ();
11154       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11155         return 1;
11156       fprintf (f, "%ld\n", i);
11157     }
11158   else
11159     {
11160       unsigned long int i = ulongval ();
11161       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11162         return 1;
11163       fprintf (f, "%lu\n", i);
11164     }
11165   return ferror (f) || fclose (f) != 0;
11166
11167   ;
11168   return 0;
11169 }
11170 _ACEOF
11171 rm -f conftest$ac_exeext
11172 if { (ac_try="$ac_link"
11173 case "(($ac_try" in
11174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175   *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178   (eval "$ac_link") 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11182   { (case "(($ac_try" in
11183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184   *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187   (eval "$ac_try") 2>&5
11188   ac_status=$?
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); }; }; then
11191   fits_in_uint=`cat conftest.val`
11192 else
11193   echo "$as_me: program exited with status $ac_status" >&5
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11196
11197 ( exit $ac_status )
11198 result=?
11199 fi
11200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11201 fi
11202 rm -f conftest.val
11203
11204     if test "$fits_in_uint" = 1; then
11205                   cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h.  */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h.  */
11211 #include <stddef.h>
11212         extern size_t foo;
11213         extern unsigned long foo;
11214
11215 int
11216 main ()
11217 {
11218
11219   ;
11220   return 0;
11221 }
11222 _ACEOF
11223 rm -f conftest.$ac_objext
11224 if { (ac_try="$ac_compile"
11225 case "(($ac_try" in
11226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227   *) ac_try_echo=$ac_try;;
11228 esac
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230   (eval "$ac_compile") 2>conftest.er1
11231   ac_status=$?
11232   grep -v '^ *+' conftest.er1 >conftest.err
11233   rm -f conftest.er1
11234   cat conftest.err >&5
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); } && {
11237          test -z "$ac_c_werror_flag" ||
11238          test ! -s conftest.err
11239        } && test -s conftest.$ac_objext; then
11240   fits_in_uint=0
11241 else
11242   echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11244
11245
11246 fi
11247
11248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11249     fi
11250     if test -z "$result"; then
11251       if test "$fits_in_uint" = 1; then
11252         result="$res_hi$res_lo"U
11253       else
11254         result="$res_hi$res_lo"UL
11255       fi
11256     else
11257             result='~(size_t)0'
11258     fi
11259   fi
11260   { echo "$as_me:$LINENO: result: $result" >&5
11261 echo "${ECHO_T}$result" >&6; }
11262   if test "$result" != yes; then
11263
11264 cat >>confdefs.h <<_ACEOF
11265 #define SIZE_MAX $result
11266 _ACEOF
11267
11268   fi
11269
11270
11271
11272
11273
11274 for ac_header in stdint.h
11275 do
11276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11278   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281   echo $ECHO_N "(cached) $ECHO_C" >&6
11282 fi
11283 ac_res=`eval echo '${'$as_ac_Header'}'`
11284                { echo "$as_me:$LINENO: result: $ac_res" >&5
11285 echo "${ECHO_T}$ac_res" >&6; }
11286 else
11287   # Is the header compilable?
11288 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11290 cat >conftest.$ac_ext <<_ACEOF
11291 /* confdefs.h.  */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h.  */
11296 $ac_includes_default
11297 #include <$ac_header>
11298 _ACEOF
11299 rm -f conftest.$ac_objext
11300 if { (ac_try="$ac_compile"
11301 case "(($ac_try" in
11302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303   *) ac_try_echo=$ac_try;;
11304 esac
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306   (eval "$ac_compile") 2>conftest.er1
11307   ac_status=$?
11308   grep -v '^ *+' conftest.er1 >conftest.err
11309   rm -f conftest.er1
11310   cat conftest.err >&5
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); } && {
11313          test -z "$ac_c_werror_flag" ||
11314          test ! -s conftest.err
11315        } && test -s conftest.$ac_objext; then
11316   ac_header_compiler=yes
11317 else
11318   echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321         ac_header_compiler=no
11322 fi
11323
11324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11326 echo "${ECHO_T}$ac_header_compiler" >&6; }
11327
11328 # Is the header present?
11329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h.  */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h.  */
11337 #include <$ac_header>
11338 _ACEOF
11339 if { (ac_try="$ac_cpp conftest.$ac_ext"
11340 case "(($ac_try" in
11341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342   *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11346   ac_status=$?
11347   grep -v '^ *+' conftest.er1 >conftest.err
11348   rm -f conftest.er1
11349   cat conftest.err >&5
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); } >/dev/null && {
11352          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11353          test ! -s conftest.err
11354        }; then
11355   ac_header_preproc=yes
11356 else
11357   echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11359
11360   ac_header_preproc=no
11361 fi
11362
11363 rm -f conftest.err conftest.$ac_ext
11364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11365 echo "${ECHO_T}$ac_header_preproc" >&6; }
11366
11367 # So?  What about this header?
11368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11369   yes:no: )
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11374     ac_header_preproc=yes
11375     ;;
11376   no:yes:* )
11377     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11380 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11383     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11384 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11387     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11389
11390     ;;
11391 esac
11392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11395   echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397   eval "$as_ac_Header=\$ac_header_preproc"
11398 fi
11399 ac_res=`eval echo '${'$as_ac_Header'}'`
11400                { echo "$as_me:$LINENO: result: $ac_res" >&5
11401 echo "${ECHO_T}$ac_res" >&6; }
11402
11403 fi
11404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11405   cat >>confdefs.h <<_ACEOF
11406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11407 _ACEOF
11408
11409 fi
11410
11411 done
11412
11413
11414
11415
11416
11417
11418
11419
11420   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11421 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11422 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11423   echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425   cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h.  */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h.  */
11431 $ac_includes_default
11432 typedef ptrdiff_t ac__type_new_;
11433 int
11434 main ()
11435 {
11436 if ((ac__type_new_ *) 0)
11437   return 0;
11438 if (sizeof (ac__type_new_))
11439   return 0;
11440   ;
11441   return 0;
11442 }
11443 _ACEOF
11444 rm -f conftest.$ac_objext
11445 if { (ac_try="$ac_compile"
11446 case "(($ac_try" in
11447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448   *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451   (eval "$ac_compile") 2>conftest.er1
11452   ac_status=$?
11453   grep -v '^ *+' conftest.er1 >conftest.err
11454   rm -f conftest.er1
11455   cat conftest.err >&5
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); } && {
11458          test -z "$ac_c_werror_flag" ||
11459          test ! -s conftest.err
11460        } && test -s conftest.$ac_objext; then
11461   ac_cv_type_ptrdiff_t=yes
11462 else
11463   echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11465
11466         ac_cv_type_ptrdiff_t=no
11467 fi
11468
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 fi
11471 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11472 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11473 if test $ac_cv_type_ptrdiff_t = yes; then
11474   :
11475 else
11476
11477 cat >>confdefs.h <<\_ACEOF
11478 #define ptrdiff_t long
11479 _ACEOF
11480
11481
11482 fi
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11495 stdlib.h string.h unistd.h sys/param.h
11496 do
11497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11499   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502   echo $ECHO_N "(cached) $ECHO_C" >&6
11503 fi
11504 ac_res=`eval echo '${'$as_ac_Header'}'`
11505                { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11507 else
11508   # Is the header compilable?
11509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h.  */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h.  */
11517 $ac_includes_default
11518 #include <$ac_header>
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524   *) ac_try_echo=$ac_try;;
11525 esac
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527   (eval "$ac_compile") 2>conftest.er1
11528   ac_status=$?
11529   grep -v '^ *+' conftest.er1 >conftest.err
11530   rm -f conftest.er1
11531   cat conftest.err >&5
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); } && {
11534          test -z "$ac_c_werror_flag" ||
11535          test ! -s conftest.err
11536        } && test -s conftest.$ac_objext; then
11537   ac_header_compiler=yes
11538 else
11539   echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11541
11542         ac_header_compiler=no
11543 fi
11544
11545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11547 echo "${ECHO_T}$ac_header_compiler" >&6; }
11548
11549 # Is the header present?
11550 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11552 cat >conftest.$ac_ext <<_ACEOF
11553 /* confdefs.h.  */
11554 _ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h.  */
11558 #include <$ac_header>
11559 _ACEOF
11560 if { (ac_try="$ac_cpp conftest.$ac_ext"
11561 case "(($ac_try" in
11562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563   *) ac_try_echo=$ac_try;;
11564 esac
11565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11567   ac_status=$?
11568   grep -v '^ *+' conftest.er1 >conftest.err
11569   rm -f conftest.er1
11570   cat conftest.err >&5
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); } >/dev/null && {
11573          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11574          test ! -s conftest.err
11575        }; then
11576   ac_header_preproc=yes
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581   ac_header_preproc=no
11582 fi
11583
11584 rm -f conftest.err conftest.$ac_ext
11585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11586 echo "${ECHO_T}$ac_header_preproc" >&6; }
11587
11588 # So?  What about this header?
11589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11590   yes:no: )
11591     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11595     ac_header_preproc=yes
11596     ;;
11597   no:yes:* )
11598     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11600     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11601 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11602     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11604     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11605 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11608     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11610
11611     ;;
11612 esac
11613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   eval "$as_ac_Header=\$ac_header_preproc"
11619 fi
11620 ac_res=`eval echo '${'$as_ac_Header'}'`
11621                { echo "$as_me:$LINENO: result: $ac_res" >&5
11622 echo "${ECHO_T}$ac_res" >&6; }
11623
11624 fi
11625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11626   cat >>confdefs.h <<_ACEOF
11627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11628 _ACEOF
11629
11630 fi
11631
11632 done
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11658 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11659 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11660 __fsetlocking
11661 do
11662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11666   echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668   cat >conftest.$ac_ext <<_ACEOF
11669 /* confdefs.h.  */
11670 _ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h.  */
11674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11676 #define $ac_func innocuous_$ac_func
11677
11678 /* System header to define __stub macros and hopefully few prototypes,
11679     which can conflict with char $ac_func (); below.
11680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11681     <limits.h> exists even on freestanding compilers.  */
11682
11683 #ifdef __STDC__
11684 # include <limits.h>
11685 #else
11686 # include <assert.h>
11687 #endif
11688
11689 #undef $ac_func
11690
11691 /* Override any GCC internal prototype to avoid an error.
11692    Use char because int might match the return type of a GCC
11693    builtin and then its argument prototype would still apply.  */
11694 #ifdef __cplusplus
11695 extern "C"
11696 #endif
11697 char $ac_func ();
11698 /* The GNU C library defines this for functions which it implements
11699     to always fail with ENOSYS.  Some functions are actually named
11700     something starting with __ and the normal name is an alias.  */
11701 #if defined __stub_$ac_func || defined __stub___$ac_func
11702 choke me
11703 #endif
11704
11705 int
11706 main ()
11707 {
11708 return $ac_func ();
11709   ;
11710   return 0;
11711 }
11712 _ACEOF
11713 rm -f conftest.$ac_objext conftest$ac_exeext
11714 if { (ac_try="$ac_link"
11715 case "(($ac_try" in
11716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717   *) ac_try_echo=$ac_try;;
11718 esac
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720   (eval "$ac_link") 2>conftest.er1
11721   ac_status=$?
11722   grep -v '^ *+' conftest.er1 >conftest.err
11723   rm -f conftest.er1
11724   cat conftest.err >&5
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); } && {
11727          test -z "$ac_c_werror_flag" ||
11728          test ! -s conftest.err
11729        } && test -s conftest$ac_exeext &&
11730        $as_test_x conftest$ac_exeext; then
11731   eval "$as_ac_var=yes"
11732 else
11733   echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736         eval "$as_ac_var=no"
11737 fi
11738
11739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11740       conftest$ac_exeext conftest.$ac_ext
11741 fi
11742 ac_res=`eval echo '${'$as_ac_var'}'`
11743                { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11745 if test `eval echo '${'$as_ac_var'}'` = yes; then
11746   cat >>confdefs.h <<_ACEOF
11747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11748 _ACEOF
11749
11750 fi
11751 done
11752
11753
11754
11755   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11756 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11757 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11758   echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760   cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h.  */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h.  */
11766 #include <stdio.h>
11767 int
11768 main ()
11769 {
11770
11771 #ifndef _snprintf
11772   char *p = (char *) _snprintf;
11773 #endif
11774
11775   ;
11776   return 0;
11777 }
11778 _ACEOF
11779 rm -f conftest.$ac_objext
11780 if { (ac_try="$ac_compile"
11781 case "(($ac_try" in
11782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783   *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786   (eval "$ac_compile") 2>conftest.er1
11787   ac_status=$?
11788   grep -v '^ *+' conftest.er1 >conftest.err
11789   rm -f conftest.er1
11790   cat conftest.err >&5
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); } && {
11793          test -z "$ac_c_werror_flag" ||
11794          test ! -s conftest.err
11795        } && test -s conftest.$ac_objext; then
11796   ac_cv_have_decl__snprintf=yes
11797 else
11798   echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801         ac_cv_have_decl__snprintf=no
11802 fi
11803
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805 fi
11806 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11807 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11808   if test $ac_cv_have_decl__snprintf = yes; then
11809     gt_value=1
11810   else
11811     gt_value=0
11812   fi
11813
11814 cat >>confdefs.h <<_ACEOF
11815 #define HAVE_DECL__SNPRINTF $gt_value
11816 _ACEOF
11817
11818
11819
11820   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11821 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11822 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11823   echo $ECHO_N "(cached) $ECHO_C" >&6
11824 else
11825   cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h.  */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h.  */
11831 #include <stdio.h>
11832 int
11833 main ()
11834 {
11835
11836 #ifndef _snwprintf
11837   char *p = (char *) _snwprintf;
11838 #endif
11839
11840   ;
11841   return 0;
11842 }
11843 _ACEOF
11844 rm -f conftest.$ac_objext
11845 if { (ac_try="$ac_compile"
11846 case "(($ac_try" in
11847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848   *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851   (eval "$ac_compile") 2>conftest.er1
11852   ac_status=$?
11853   grep -v '^ *+' conftest.er1 >conftest.err
11854   rm -f conftest.er1
11855   cat conftest.err >&5
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); } && {
11858          test -z "$ac_c_werror_flag" ||
11859          test ! -s conftest.err
11860        } && test -s conftest.$ac_objext; then
11861   ac_cv_have_decl__snwprintf=yes
11862 else
11863   echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11865
11866         ac_cv_have_decl__snwprintf=no
11867 fi
11868
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 fi
11871 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11872 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11873   if test $ac_cv_have_decl__snwprintf = yes; then
11874     gt_value=1
11875   else
11876     gt_value=0
11877   fi
11878
11879 cat >>confdefs.h <<_ACEOF
11880 #define HAVE_DECL__SNWPRINTF $gt_value
11881 _ACEOF
11882
11883
11884
11885
11886   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11887 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11888 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11889   echo $ECHO_N "(cached) $ECHO_C" >&6
11890 else
11891   cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h.  */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h.  */
11897 #include <stdio.h>
11898 int
11899 main ()
11900 {
11901
11902 #ifndef feof_unlocked
11903   char *p = (char *) feof_unlocked;
11904 #endif
11905
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914   *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917   (eval "$ac_compile") 2>conftest.er1
11918   ac_status=$?
11919   grep -v '^ *+' conftest.er1 >conftest.err
11920   rm -f conftest.er1
11921   cat conftest.err >&5
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } && {
11924          test -z "$ac_c_werror_flag" ||
11925          test ! -s conftest.err
11926        } && test -s conftest.$ac_objext; then
11927   ac_cv_have_decl_feof_unlocked=yes
11928 else
11929   echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932         ac_cv_have_decl_feof_unlocked=no
11933 fi
11934
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 fi
11937 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11938 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11939   if test $ac_cv_have_decl_feof_unlocked = yes; then
11940     gt_value=1
11941   else
11942     gt_value=0
11943   fi
11944
11945 cat >>confdefs.h <<_ACEOF
11946 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11947 _ACEOF
11948
11949
11950
11951   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11952 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11953 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11954   echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956   cat >conftest.$ac_ext <<_ACEOF
11957 /* confdefs.h.  */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h.  */
11962 #include <stdio.h>
11963 int
11964 main ()
11965 {
11966
11967 #ifndef fgets_unlocked
11968   char *p = (char *) fgets_unlocked;
11969 #endif
11970
11971   ;
11972   return 0;
11973 }
11974 _ACEOF
11975 rm -f conftest.$ac_objext
11976 if { (ac_try="$ac_compile"
11977 case "(($ac_try" in
11978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979   *) ac_try_echo=$ac_try;;
11980 esac
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982   (eval "$ac_compile") 2>conftest.er1
11983   ac_status=$?
11984   grep -v '^ *+' conftest.er1 >conftest.err
11985   rm -f conftest.er1
11986   cat conftest.err >&5
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); } && {
11989          test -z "$ac_c_werror_flag" ||
11990          test ! -s conftest.err
11991        } && test -s conftest.$ac_objext; then
11992   ac_cv_have_decl_fgets_unlocked=yes
11993 else
11994   echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11996
11997         ac_cv_have_decl_fgets_unlocked=no
11998 fi
11999
12000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 fi
12002 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12003 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12004   if test $ac_cv_have_decl_fgets_unlocked = yes; then
12005     gt_value=1
12006   else
12007     gt_value=0
12008   fi
12009
12010 cat >>confdefs.h <<_ACEOF
12011 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12012 _ACEOF
12013
12014
12015
12016   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12017 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12018 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12019   echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021   cat >conftest.$ac_ext <<_ACEOF
12022 /* confdefs.h.  */
12023 _ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h.  */
12027 #include <stdio.h>
12028 int
12029 main ()
12030 {
12031
12032 #ifndef getc_unlocked
12033   char *p = (char *) getc_unlocked;
12034 #endif
12035
12036   ;
12037   return 0;
12038 }
12039 _ACEOF
12040 rm -f conftest.$ac_objext
12041 if { (ac_try="$ac_compile"
12042 case "(($ac_try" in
12043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044   *) ac_try_echo=$ac_try;;
12045 esac
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047   (eval "$ac_compile") 2>conftest.er1
12048   ac_status=$?
12049   grep -v '^ *+' conftest.er1 >conftest.err
12050   rm -f conftest.er1
12051   cat conftest.err >&5
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); } && {
12054          test -z "$ac_c_werror_flag" ||
12055          test ! -s conftest.err
12056        } && test -s conftest.$ac_objext; then
12057   ac_cv_have_decl_getc_unlocked=yes
12058 else
12059   echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12061
12062         ac_cv_have_decl_getc_unlocked=no
12063 fi
12064
12065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066 fi
12067 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12068 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12069   if test $ac_cv_have_decl_getc_unlocked = yes; then
12070     gt_value=1
12071   else
12072     gt_value=0
12073   fi
12074
12075 cat >>confdefs.h <<_ACEOF
12076 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12077 _ACEOF
12078
12079
12080
12081   case $gt_cv_func_printf_posix in
12082     *yes) HAVE_POSIX_PRINTF=1 ;;
12083     *) HAVE_POSIX_PRINTF=0 ;;
12084   esac
12085
12086   if test "$ac_cv_func_asprintf" = yes; then
12087     HAVE_ASPRINTF=1
12088   else
12089     HAVE_ASPRINTF=0
12090   fi
12091
12092   if test "$ac_cv_func_snprintf" = yes; then
12093     HAVE_SNPRINTF=1
12094   else
12095     HAVE_SNPRINTF=0
12096   fi
12097
12098   if test "$ac_cv_func_wprintf" = yes; then
12099     HAVE_WPRINTF=1
12100   else
12101     HAVE_WPRINTF=0
12102   fi
12103
12104
12105
12106
12107
12108
12109
12110           am_save_CPPFLAGS="$CPPFLAGS"
12111
12112   for element in $INCICONV; do
12113     haveit=
12114     for x in $CPPFLAGS; do
12115
12116   acl_save_prefix="$prefix"
12117   prefix="$acl_final_prefix"
12118   acl_save_exec_prefix="$exec_prefix"
12119   exec_prefix="$acl_final_exec_prefix"
12120   eval x=\"$x\"
12121   exec_prefix="$acl_save_exec_prefix"
12122   prefix="$acl_save_prefix"
12123
12124       if test "X$x" = "X$element"; then
12125         haveit=yes
12126         break
12127       fi
12128     done
12129     if test -z "$haveit"; then
12130       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12131     fi
12132   done
12133
12134
12135   { echo "$as_me:$LINENO: checking for iconv" >&5
12136 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12137 if test "${am_cv_func_iconv+set}" = set; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140
12141     am_cv_func_iconv="no, consider installing GNU libiconv"
12142     am_cv_lib_iconv=no
12143     cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h.  */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h.  */
12149 #include <stdlib.h>
12150 #include <iconv.h>
12151 int
12152 main ()
12153 {
12154 iconv_t cd = iconv_open("","");
12155        iconv(cd,NULL,NULL,NULL,NULL);
12156        iconv_close(cd);
12157   ;
12158   return 0;
12159 }
12160 _ACEOF
12161 rm -f conftest.$ac_objext conftest$ac_exeext
12162 if { (ac_try="$ac_link"
12163 case "(($ac_try" in
12164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165   *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168   (eval "$ac_link") 2>conftest.er1
12169   ac_status=$?
12170   grep -v '^ *+' conftest.er1 >conftest.err
12171   rm -f conftest.er1
12172   cat conftest.err >&5
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); } && {
12175          test -z "$ac_c_werror_flag" ||
12176          test ! -s conftest.err
12177        } && test -s conftest$ac_exeext &&
12178        $as_test_x conftest$ac_exeext; then
12179   am_cv_func_iconv=yes
12180 else
12181   echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12183
12184
12185 fi
12186
12187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12188       conftest$ac_exeext conftest.$ac_ext
12189     if test "$am_cv_func_iconv" != yes; then
12190       am_save_LIBS="$LIBS"
12191       LIBS="$LIBS $LIBICONV"
12192       cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h.  */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h.  */
12198 #include <stdlib.h>
12199 #include <iconv.h>
12200 int
12201 main ()
12202 {
12203 iconv_t cd = iconv_open("","");
12204          iconv(cd,NULL,NULL,NULL,NULL);
12205          iconv_close(cd);
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217   (eval "$ac_link") 2>conftest.er1
12218   ac_status=$?
12219   grep -v '^ *+' conftest.er1 >conftest.err
12220   rm -f conftest.er1
12221   cat conftest.err >&5
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); } && {
12224          test -z "$ac_c_werror_flag" ||
12225          test ! -s conftest.err
12226        } && test -s conftest$ac_exeext &&
12227        $as_test_x conftest$ac_exeext; then
12228   am_cv_lib_iconv=yes
12229         am_cv_func_iconv=yes
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234
12235 fi
12236
12237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12238       conftest$ac_exeext conftest.$ac_ext
12239       LIBS="$am_save_LIBS"
12240     fi
12241
12242 fi
12243 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12244 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12245   if test "$am_cv_func_iconv" = yes; then
12246
12247 cat >>confdefs.h <<\_ACEOF
12248 #define HAVE_ICONV 1
12249 _ACEOF
12250
12251   fi
12252   if test "$am_cv_lib_iconv" = yes; then
12253     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12254 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12255     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12256 echo "${ECHO_T}$LIBICONV" >&6; }
12257   else
12258             CPPFLAGS="$am_save_CPPFLAGS"
12259     LIBICONV=
12260     LTLIBICONV=
12261   fi
12262
12263
12264
12265   if test "$am_cv_func_iconv" = yes; then
12266     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12267 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12268     if test "${am_cv_proto_iconv+set}" = set; then
12269   echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271
12272       cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h.  */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h.  */
12278
12279 #include <stdlib.h>
12280 #include <iconv.h>
12281 extern
12282 #ifdef __cplusplus
12283 "C"
12284 #endif
12285 #if defined(__STDC__) || defined(__cplusplus)
12286 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12287 #else
12288 size_t iconv();
12289 #endif
12290
12291 int
12292 main ()
12293 {
12294
12295   ;
12296   return 0;
12297 }
12298 _ACEOF
12299 rm -f conftest.$ac_objext
12300 if { (ac_try="$ac_compile"
12301 case "(($ac_try" in
12302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303   *) ac_try_echo=$ac_try;;
12304 esac
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306   (eval "$ac_compile") 2>conftest.er1
12307   ac_status=$?
12308   grep -v '^ *+' conftest.er1 >conftest.err
12309   rm -f conftest.er1
12310   cat conftest.err >&5
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); } && {
12313          test -z "$ac_c_werror_flag" ||
12314          test ! -s conftest.err
12315        } && test -s conftest.$ac_objext; then
12316   am_cv_proto_iconv_arg1=""
12317 else
12318   echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321         am_cv_proto_iconv_arg1="const"
12322 fi
12323
12324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12326 fi
12327
12328     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12329     { echo "$as_me:$LINENO: result: ${ac_t:-
12330          }$am_cv_proto_iconv" >&5
12331 echo "${ECHO_T}${ac_t:-
12332          }$am_cv_proto_iconv" >&6; }
12333
12334 cat >>confdefs.h <<_ACEOF
12335 #define ICONV_CONST $am_cv_proto_iconv_arg1
12336 _ACEOF
12337
12338   fi
12339
12340
12341   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12342 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12343 if test "${am_cv_langinfo_codeset+set}" = set; then
12344   echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346   cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h.  */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h.  */
12352 #include <langinfo.h>
12353 int
12354 main ()
12355 {
12356 char* cs = nl_langinfo(CODESET);
12357   ;
12358   return 0;
12359 }
12360 _ACEOF
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (ac_try="$ac_link"
12363 case "(($ac_try" in
12364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365   *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368   (eval "$ac_link") 2>conftest.er1
12369   ac_status=$?
12370   grep -v '^ *+' conftest.er1 >conftest.err
12371   rm -f conftest.er1
12372   cat conftest.err >&5
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); } && {
12375          test -z "$ac_c_werror_flag" ||
12376          test ! -s conftest.err
12377        } && test -s conftest$ac_exeext &&
12378        $as_test_x conftest$ac_exeext; then
12379   am_cv_langinfo_codeset=yes
12380 else
12381   echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384         am_cv_langinfo_codeset=no
12385 fi
12386
12387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12388       conftest$ac_exeext conftest.$ac_ext
12389
12390 fi
12391 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12392 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12393   if test $am_cv_langinfo_codeset = yes; then
12394
12395 cat >>confdefs.h <<\_ACEOF
12396 #define HAVE_LANGINFO_CODESET 1
12397 _ACEOF
12398
12399   fi
12400
12401   if test $ac_cv_header_locale_h = yes; then
12402
12403   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12404 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12405 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12406   echo $ECHO_N "(cached) $ECHO_C" >&6
12407 else
12408   cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12414 #include <locale.h>
12415 int
12416 main ()
12417 {
12418 return LC_MESSAGES
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427   *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430   (eval "$ac_link") 2>conftest.er1
12431   ac_status=$?
12432   grep -v '^ *+' conftest.er1 >conftest.err
12433   rm -f conftest.er1
12434   cat conftest.err >&5
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); } && {
12437          test -z "$ac_c_werror_flag" ||
12438          test ! -s conftest.err
12439        } && test -s conftest$ac_exeext &&
12440        $as_test_x conftest$ac_exeext; then
12441   gt_cv_val_LC_MESSAGES=yes
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446         gt_cv_val_LC_MESSAGES=no
12447 fi
12448
12449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12450       conftest$ac_exeext conftest.$ac_ext
12451 fi
12452 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12453 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12454   if test $gt_cv_val_LC_MESSAGES = yes; then
12455
12456 cat >>confdefs.h <<\_ACEOF
12457 #define HAVE_LC_MESSAGES 1
12458 _ACEOF
12459
12460   fi
12461
12462   fi
12463
12464   if test -n "$INTL_MACOSX_LIBS"; then
12465     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12466   fi
12467
12468                       for ac_prog in bison
12469 do
12470   # Extract the first word of "$ac_prog", so it can be a program name with args.
12471 set dummy $ac_prog; ac_word=$2
12472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12474 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12475   echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477   if test -n "$INTLBISON"; then
12478   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12479 else
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12482 do
12483   IFS=$as_save_IFS
12484   test -z "$as_dir" && as_dir=.
12485   for ac_exec_ext in '' $ac_executable_extensions; do
12486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487     ac_cv_prog_INTLBISON="$ac_prog"
12488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12489     break 2
12490   fi
12491 done
12492 done
12493 IFS=$as_save_IFS
12494
12495 fi
12496 fi
12497 INTLBISON=$ac_cv_prog_INTLBISON
12498 if test -n "$INTLBISON"; then
12499   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12500 echo "${ECHO_T}$INTLBISON" >&6; }
12501 else
12502   { echo "$as_me:$LINENO: result: no" >&5
12503 echo "${ECHO_T}no" >&6; }
12504 fi
12505
12506
12507   test -n "$INTLBISON" && break
12508 done
12509
12510   if test -z "$INTLBISON"; then
12511     ac_verc_fail=yes
12512   else
12513         { echo "$as_me:$LINENO: checking version of bison" >&5
12514 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12515     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12516     case $ac_prog_version in
12517       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12518       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12519          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12520       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12521     esac
12522     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12523 echo "${ECHO_T}$ac_prog_version" >&6; }
12524   fi
12525   if test $ac_verc_fail = yes; then
12526     INTLBISON=:
12527   fi
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12545 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12546 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12547   echo $ECHO_N "(cached) $ECHO_C" >&6
12548 else
12549   gt_save_CPPFLAGS="$CPPFLAGS"
12550      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12551      gt_save_LIBS="$LIBS"
12552      LIBS="$LIBS -framework CoreFoundation"
12553      cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h.  */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h.  */
12559 #include <CFPreferences.h>
12560 int
12561 main ()
12562 {
12563 CFPreferencesCopyAppValue(NULL, NULL)
12564   ;
12565   return 0;
12566 }
12567 _ACEOF
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (ac_try="$ac_link"
12570 case "(($ac_try" in
12571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572   *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575   (eval "$ac_link") 2>conftest.er1
12576   ac_status=$?
12577   grep -v '^ *+' conftest.er1 >conftest.err
12578   rm -f conftest.er1
12579   cat conftest.err >&5
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); } && {
12582          test -z "$ac_c_werror_flag" ||
12583          test ! -s conftest.err
12584        } && test -s conftest$ac_exeext &&
12585        $as_test_x conftest$ac_exeext; then
12586   gt_cv_func_CFPreferencesCopyAppValue=yes
12587 else
12588   echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12590
12591         gt_cv_func_CFPreferencesCopyAppValue=no
12592 fi
12593
12594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12595       conftest$ac_exeext conftest.$ac_ext
12596      CPPFLAGS="$gt_save_CPPFLAGS"
12597      LIBS="$gt_save_LIBS"
12598 fi
12599 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12600 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12601   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12602
12603 cat >>confdefs.h <<\_ACEOF
12604 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12605 _ACEOF
12606
12607   fi
12608     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12609 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12610 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12611   echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613   gt_save_CPPFLAGS="$CPPFLAGS"
12614      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12615      gt_save_LIBS="$LIBS"
12616      LIBS="$LIBS -framework CoreFoundation"
12617      cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h.  */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h.  */
12623 #include <CFLocale.h>
12624 int
12625 main ()
12626 {
12627 CFLocaleCopyCurrent();
12628   ;
12629   return 0;
12630 }
12631 _ACEOF
12632 rm -f conftest.$ac_objext conftest$ac_exeext
12633 if { (ac_try="$ac_link"
12634 case "(($ac_try" in
12635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636   *) ac_try_echo=$ac_try;;
12637 esac
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639   (eval "$ac_link") 2>conftest.er1
12640   ac_status=$?
12641   grep -v '^ *+' conftest.er1 >conftest.err
12642   rm -f conftest.er1
12643   cat conftest.err >&5
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); } && {
12646          test -z "$ac_c_werror_flag" ||
12647          test ! -s conftest.err
12648        } && test -s conftest$ac_exeext &&
12649        $as_test_x conftest$ac_exeext; then
12650   gt_cv_func_CFLocaleCopyCurrent=yes
12651 else
12652   echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655         gt_cv_func_CFLocaleCopyCurrent=no
12656 fi
12657
12658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12659       conftest$ac_exeext conftest.$ac_ext
12660      CPPFLAGS="$gt_save_CPPFLAGS"
12661      LIBS="$gt_save_LIBS"
12662 fi
12663 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12664 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12665   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12666
12667 cat >>confdefs.h <<\_ACEOF
12668 #define HAVE_CFLOCALECOPYCURRENT 1
12669 _ACEOF
12670
12671   fi
12672   INTL_MACOSX_LIBS=
12673   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12674     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12675   fi
12676
12677
12678
12679
12680   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12681 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12682     # Check whether --enable-nls was given.
12683 if test "${enable_nls+set}" = set; then
12684   enableval=$enable_nls; USE_NLS=$enableval
12685 else
12686   USE_NLS=yes
12687 fi
12688
12689   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12690 echo "${ECHO_T}$USE_NLS" >&6; }
12691
12692
12693
12694
12695     BUILD_INCLUDED_LIBINTL=no
12696     USE_INCLUDED_LIBINTL=no
12697
12698   LIBINTL=
12699   LTLIBINTL=
12700   POSUB=
12701
12702     if test "$USE_NLS" = "yes"; then
12703     gt_use_preinstalled_gnugettext=no
12704
12705       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12706 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12707
12708 # Check whether --with-included-gettext was given.
12709 if test "${with_included_gettext+set}" = set; then
12710   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12711 else
12712   nls_cv_force_use_gnu_gettext=no
12713 fi
12714
12715       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12716 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12717
12718       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12719       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12720
12721
12722
12723
12724
12725
12726         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12727 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12728 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12729   echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731   cat >conftest.$ac_ext <<_ACEOF
12732 /* confdefs.h.  */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h.  */
12737 #include <libintl.h>
12738 extern int _nl_msg_cat_cntr;
12739 extern int *_nl_domain_bindings;
12740 int
12741 main ()
12742 {
12743 bindtextdomain ("", "");
12744 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12745   ;
12746   return 0;
12747 }
12748 _ACEOF
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753   *) ac_try_echo=$ac_try;;
12754 esac
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756   (eval "$ac_link") 2>conftest.er1
12757   ac_status=$?
12758   grep -v '^ *+' conftest.er1 >conftest.err
12759   rm -f conftest.er1
12760   cat conftest.err >&5
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); } && {
12763          test -z "$ac_c_werror_flag" ||
12764          test ! -s conftest.err
12765        } && test -s conftest$ac_exeext &&
12766        $as_test_x conftest$ac_exeext; then
12767   gt_cv_func_gnugettext1_libc=yes
12768 else
12769   echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12771
12772         gt_cv_func_gnugettext1_libc=no
12773 fi
12774
12775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12776       conftest$ac_exeext conftest.$ac_ext
12777 fi
12778 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12779 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12780
12781         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12782
12783
12784
12785     use_additional=yes
12786
12787   acl_save_prefix="$prefix"
12788   prefix="$acl_final_prefix"
12789   acl_save_exec_prefix="$exec_prefix"
12790   exec_prefix="$acl_final_exec_prefix"
12791
12792     eval additional_includedir=\"$includedir\"
12793     eval additional_libdir=\"$libdir\"
12794
12795   exec_prefix="$acl_save_exec_prefix"
12796   prefix="$acl_save_prefix"
12797
12798
12799 # Check whether --with-libintl-prefix was given.
12800 if test "${with_libintl_prefix+set}" = set; then
12801   withval=$with_libintl_prefix;
12802     if test "X$withval" = "Xno"; then
12803       use_additional=no
12804     else
12805       if test "X$withval" = "X"; then
12806
12807   acl_save_prefix="$prefix"
12808   prefix="$acl_final_prefix"
12809   acl_save_exec_prefix="$exec_prefix"
12810   exec_prefix="$acl_final_exec_prefix"
12811
12812           eval additional_includedir=\"$includedir\"
12813           eval additional_libdir=\"$libdir\"
12814
12815   exec_prefix="$acl_save_exec_prefix"
12816   prefix="$acl_save_prefix"
12817
12818       else
12819         additional_includedir="$withval/include"
12820         additional_libdir="$withval/lib"
12821       fi
12822     fi
12823
12824 fi
12825
12826       LIBINTL=
12827   LTLIBINTL=
12828   INCINTL=
12829   rpathdirs=
12830   ltrpathdirs=
12831   names_already_handled=
12832   names_next_round='intl '
12833   while test -n "$names_next_round"; do
12834     names_this_round="$names_next_round"
12835     names_next_round=
12836     for name in $names_this_round; do
12837       already_handled=
12838       for n in $names_already_handled; do
12839         if test "$n" = "$name"; then
12840           already_handled=yes
12841           break
12842         fi
12843       done
12844       if test -z "$already_handled"; then
12845         names_already_handled="$names_already_handled $name"
12846                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12847         eval value=\"\$HAVE_LIB$uppername\"
12848         if test -n "$value"; then
12849           if test "$value" = yes; then
12850             eval value=\"\$LIB$uppername\"
12851             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12852             eval value=\"\$LTLIB$uppername\"
12853             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12854           else
12855                                     :
12856           fi
12857         else
12858                               found_dir=
12859           found_la=
12860           found_so=
12861           found_a=
12862           if test $use_additional = yes; then
12863             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12864               found_dir="$additional_libdir"
12865               found_so="$additional_libdir/lib$name.$shlibext"
12866               if test -f "$additional_libdir/lib$name.la"; then
12867                 found_la="$additional_libdir/lib$name.la"
12868               fi
12869             else
12870               if test -f "$additional_libdir/lib$name.$libext"; then
12871                 found_dir="$additional_libdir"
12872                 found_a="$additional_libdir/lib$name.$libext"
12873                 if test -f "$additional_libdir/lib$name.la"; then
12874                   found_la="$additional_libdir/lib$name.la"
12875                 fi
12876               fi
12877             fi
12878           fi
12879           if test "X$found_dir" = "X"; then
12880             for x in $LDFLAGS $LTLIBINTL; do
12881
12882   acl_save_prefix="$prefix"
12883   prefix="$acl_final_prefix"
12884   acl_save_exec_prefix="$exec_prefix"
12885   exec_prefix="$acl_final_exec_prefix"
12886   eval x=\"$x\"
12887   exec_prefix="$acl_save_exec_prefix"
12888   prefix="$acl_save_prefix"
12889
12890               case "$x" in
12891                 -L*)
12892                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12893                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12894                     found_dir="$dir"
12895                     found_so="$dir/lib$name.$shlibext"
12896                     if test -f "$dir/lib$name.la"; then
12897                       found_la="$dir/lib$name.la"
12898                     fi
12899                   else
12900                     if test -f "$dir/lib$name.$libext"; then
12901                       found_dir="$dir"
12902                       found_a="$dir/lib$name.$libext"
12903                       if test -f "$dir/lib$name.la"; then
12904                         found_la="$dir/lib$name.la"
12905                       fi
12906                     fi
12907                   fi
12908                   ;;
12909               esac
12910               if test "X$found_dir" != "X"; then
12911                 break
12912               fi
12913             done
12914           fi
12915           if test "X$found_dir" != "X"; then
12916                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12917             if test "X$found_so" != "X"; then
12918                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12919                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12920               else
12921                                                                                 haveit=
12922                 for x in $ltrpathdirs; do
12923                   if test "X$x" = "X$found_dir"; then
12924                     haveit=yes
12925                     break
12926                   fi
12927                 done
12928                 if test -z "$haveit"; then
12929                   ltrpathdirs="$ltrpathdirs $found_dir"
12930                 fi
12931                                 if test "$hardcode_direct" = yes; then
12932                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12933                 else
12934                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12935                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12936                                                             haveit=
12937                     for x in $rpathdirs; do
12938                       if test "X$x" = "X$found_dir"; then
12939                         haveit=yes
12940                         break
12941                       fi
12942                     done
12943                     if test -z "$haveit"; then
12944                       rpathdirs="$rpathdirs $found_dir"
12945                     fi
12946                   else
12947                                                                                 haveit=
12948                     for x in $LDFLAGS $LIBINTL; do
12949
12950   acl_save_prefix="$prefix"
12951   prefix="$acl_final_prefix"
12952   acl_save_exec_prefix="$exec_prefix"
12953   exec_prefix="$acl_final_exec_prefix"
12954   eval x=\"$x\"
12955   exec_prefix="$acl_save_exec_prefix"
12956   prefix="$acl_save_prefix"
12957
12958                       if test "X$x" = "X-L$found_dir"; then
12959                         haveit=yes
12960                         break
12961                       fi
12962                     done
12963                     if test -z "$haveit"; then
12964                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12965                     fi
12966                     if test "$hardcode_minus_L" != no; then
12967                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12968                     else
12969                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12970                     fi
12971                   fi
12972                 fi
12973               fi
12974             else
12975               if test "X$found_a" != "X"; then
12976                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12977               else
12978                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12979               fi
12980             fi
12981                         additional_includedir=
12982             case "$found_dir" in
12983               */lib | */lib/)
12984                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12985                 additional_includedir="$basedir/include"
12986                 ;;
12987             esac
12988             if test "X$additional_includedir" != "X"; then
12989                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12990                 haveit=
12991                 if test "X$additional_includedir" = "X/usr/local/include"; then
12992                   if test -n "$GCC"; then
12993                     case $host_os in
12994                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12995                     esac
12996                   fi
12997                 fi
12998                 if test -z "$haveit"; then
12999                   for x in $CPPFLAGS $INCINTL; do
13000
13001   acl_save_prefix="$prefix"
13002   prefix="$acl_final_prefix"
13003   acl_save_exec_prefix="$exec_prefix"
13004   exec_prefix="$acl_final_exec_prefix"
13005   eval x=\"$x\"
13006   exec_prefix="$acl_save_exec_prefix"
13007   prefix="$acl_save_prefix"
13008
13009                     if test "X$x" = "X-I$additional_includedir"; then
13010                       haveit=yes
13011                       break
13012                     fi
13013                   done
13014                   if test -z "$haveit"; then
13015                     if test -d "$additional_includedir"; then
13016                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13017                     fi
13018                   fi
13019                 fi
13020               fi
13021             fi
13022                         if test -n "$found_la"; then
13023                                                         save_libdir="$libdir"
13024               case "$found_la" in
13025                 */* | *\\*) . "$found_la" ;;
13026                 *) . "./$found_la" ;;
13027               esac
13028               libdir="$save_libdir"
13029                             for dep in $dependency_libs; do
13030                 case "$dep" in
13031                   -L*)
13032                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13033                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13034                       haveit=
13035                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13036                         if test -n "$GCC"; then
13037                           case $host_os in
13038                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13039                           esac
13040                         fi
13041                       fi
13042                       if test -z "$haveit"; then
13043                         haveit=
13044                         for x in $LDFLAGS $LIBINTL; do
13045
13046   acl_save_prefix="$prefix"
13047   prefix="$acl_final_prefix"
13048   acl_save_exec_prefix="$exec_prefix"
13049   exec_prefix="$acl_final_exec_prefix"
13050   eval x=\"$x\"
13051   exec_prefix="$acl_save_exec_prefix"
13052   prefix="$acl_save_prefix"
13053
13054                           if test "X$x" = "X-L$additional_libdir"; then
13055                             haveit=yes
13056                             break
13057                           fi
13058                         done
13059                         if test -z "$haveit"; then
13060                           if test -d "$additional_libdir"; then
13061                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13062                           fi
13063                         fi
13064                         haveit=
13065                         for x in $LDFLAGS $LTLIBINTL; do
13066
13067   acl_save_prefix="$prefix"
13068   prefix="$acl_final_prefix"
13069   acl_save_exec_prefix="$exec_prefix"
13070   exec_prefix="$acl_final_exec_prefix"
13071   eval x=\"$x\"
13072   exec_prefix="$acl_save_exec_prefix"
13073   prefix="$acl_save_prefix"
13074
13075                           if test "X$x" = "X-L$additional_libdir"; then
13076                             haveit=yes
13077                             break
13078                           fi
13079                         done
13080                         if test -z "$haveit"; then
13081                           if test -d "$additional_libdir"; then
13082                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13083                           fi
13084                         fi
13085                       fi
13086                     fi
13087                     ;;
13088                   -R*)
13089                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13090                     if test "$enable_rpath" != no; then
13091                                                                   haveit=
13092                       for x in $rpathdirs; do
13093                         if test "X$x" = "X$dir"; then
13094                           haveit=yes
13095                           break
13096                         fi
13097                       done
13098                       if test -z "$haveit"; then
13099                         rpathdirs="$rpathdirs $dir"
13100                       fi
13101                                                                   haveit=
13102                       for x in $ltrpathdirs; do
13103                         if test "X$x" = "X$dir"; then
13104                           haveit=yes
13105                           break
13106                         fi
13107                       done
13108                       if test -z "$haveit"; then
13109                         ltrpathdirs="$ltrpathdirs $dir"
13110                       fi
13111                     fi
13112                     ;;
13113                   -l*)
13114                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13115                     ;;
13116                   *.la)
13117                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13118                     ;;
13119                   *)
13120                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13121                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13122                     ;;
13123                 esac
13124               done
13125             fi
13126           else
13127                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13128             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13129           fi
13130         fi
13131       fi
13132     done
13133   done
13134   if test "X$rpathdirs" != "X"; then
13135     if test -n "$hardcode_libdir_separator"; then
13136                         alldirs=
13137       for found_dir in $rpathdirs; do
13138         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13139       done
13140             acl_save_libdir="$libdir"
13141       libdir="$alldirs"
13142       eval flag=\"$hardcode_libdir_flag_spec\"
13143       libdir="$acl_save_libdir"
13144       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13145     else
13146             for found_dir in $rpathdirs; do
13147         acl_save_libdir="$libdir"
13148         libdir="$found_dir"
13149         eval flag=\"$hardcode_libdir_flag_spec\"
13150         libdir="$acl_save_libdir"
13151         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13152       done
13153     fi
13154   fi
13155   if test "X$ltrpathdirs" != "X"; then
13156             for found_dir in $ltrpathdirs; do
13157       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13158     done
13159   fi
13160
13161           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13162 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13163 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   gt_save_CPPFLAGS="$CPPFLAGS"
13167             CPPFLAGS="$CPPFLAGS $INCINTL"
13168             gt_save_LIBS="$LIBS"
13169             LIBS="$LIBS $LIBINTL"
13170                         cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h.  */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h.  */
13176 #include <libintl.h>
13177 extern int _nl_msg_cat_cntr;
13178 extern
13179 #ifdef __cplusplus
13180 "C"
13181 #endif
13182 const char *_nl_expand_alias (const char *);
13183 int
13184 main ()
13185 {
13186 bindtextdomain ("", "");
13187 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13188   ;
13189   return 0;
13190 }
13191 _ACEOF
13192 rm -f conftest.$ac_objext conftest$ac_exeext
13193 if { (ac_try="$ac_link"
13194 case "(($ac_try" in
13195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196   *) ac_try_echo=$ac_try;;
13197 esac
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199   (eval "$ac_link") 2>conftest.er1
13200   ac_status=$?
13201   grep -v '^ *+' conftest.er1 >conftest.err
13202   rm -f conftest.er1
13203   cat conftest.err >&5
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); } && {
13206          test -z "$ac_c_werror_flag" ||
13207          test ! -s conftest.err
13208        } && test -s conftest$ac_exeext &&
13209        $as_test_x conftest$ac_exeext; then
13210   gt_cv_func_gnugettext1_libintl=yes
13211 else
13212   echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13214
13215         gt_cv_func_gnugettext1_libintl=no
13216 fi
13217
13218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13219       conftest$ac_exeext conftest.$ac_ext
13220                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13221               LIBS="$LIBS $LIBICONV"
13222               cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h.  */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h.  */
13228 #include <libintl.h>
13229 extern int _nl_msg_cat_cntr;
13230 extern
13231 #ifdef __cplusplus
13232 "C"
13233 #endif
13234 const char *_nl_expand_alias (const char *);
13235 int
13236 main ()
13237 {
13238 bindtextdomain ("", "");
13239 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13240   ;
13241   return 0;
13242 }
13243 _ACEOF
13244 rm -f conftest.$ac_objext conftest$ac_exeext
13245 if { (ac_try="$ac_link"
13246 case "(($ac_try" in
13247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248   *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251   (eval "$ac_link") 2>conftest.er1
13252   ac_status=$?
13253   grep -v '^ *+' conftest.er1 >conftest.err
13254   rm -f conftest.er1
13255   cat conftest.err >&5
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); } && {
13258          test -z "$ac_c_werror_flag" ||
13259          test ! -s conftest.err
13260        } && test -s conftest$ac_exeext &&
13261        $as_test_x conftest$ac_exeext; then
13262   LIBINTL="$LIBINTL $LIBICONV"
13263                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13264                 gt_cv_func_gnugettext1_libintl=yes
13265
13266 else
13267   echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270
13271 fi
13272
13273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13274       conftest$ac_exeext conftest.$ac_ext
13275             fi
13276             CPPFLAGS="$gt_save_CPPFLAGS"
13277             LIBS="$gt_save_LIBS"
13278 fi
13279 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13280 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13281         fi
13282
13283                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13284            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13285                 && test "$PACKAGE" != gettext-runtime \
13286                 && test "$PACKAGE" != gettext-tools; }; then
13287           gt_use_preinstalled_gnugettext=yes
13288         else
13289                     LIBINTL=
13290           LTLIBINTL=
13291           INCINTL=
13292         fi
13293
13294
13295         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13296                               nls_cv_use_gnu_gettext=yes
13297         fi
13298       fi
13299
13300       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13301                 BUILD_INCLUDED_LIBINTL=yes
13302         USE_INCLUDED_LIBINTL=yes
13303         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13304         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13305         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13306       fi
13307
13308       CATOBJEXT=
13309       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13310          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13311                 CATOBJEXT=.gmo
13312       fi
13313
13314
13315     if test -n "$INTL_MACOSX_LIBS"; then
13316       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13317          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13318                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13319         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13320       fi
13321     fi
13322
13323     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13324        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13325
13326 cat >>confdefs.h <<\_ACEOF
13327 #define ENABLE_NLS 1
13328 _ACEOF
13329
13330     else
13331       USE_NLS=no
13332     fi
13333   fi
13334
13335   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13336 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13337   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13338 echo "${ECHO_T}$USE_NLS" >&6; }
13339   if test "$USE_NLS" = "yes"; then
13340     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13341 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13342     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13343       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13344         gt_source="external libintl"
13345       else
13346         gt_source="libc"
13347       fi
13348     else
13349       gt_source="included intl directory"
13350     fi
13351     { echo "$as_me:$LINENO: result: $gt_source" >&5
13352 echo "${ECHO_T}$gt_source" >&6; }
13353   fi
13354
13355   if test "$USE_NLS" = "yes"; then
13356
13357     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13358       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13359         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13360 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13361         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13362 echo "${ECHO_T}$LIBINTL" >&6; }
13363
13364   for element in $INCINTL; do
13365     haveit=
13366     for x in $CPPFLAGS; do
13367
13368   acl_save_prefix="$prefix"
13369   prefix="$acl_final_prefix"
13370   acl_save_exec_prefix="$exec_prefix"
13371   exec_prefix="$acl_final_exec_prefix"
13372   eval x=\"$x\"
13373   exec_prefix="$acl_save_exec_prefix"
13374   prefix="$acl_save_prefix"
13375
13376       if test "X$x" = "X$element"; then
13377         haveit=yes
13378         break
13379       fi
13380     done
13381     if test -z "$haveit"; then
13382       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13383     fi
13384   done
13385
13386       fi
13387
13388
13389 cat >>confdefs.h <<\_ACEOF
13390 #define HAVE_GETTEXT 1
13391 _ACEOF
13392
13393
13394 cat >>confdefs.h <<\_ACEOF
13395 #define HAVE_DCGETTEXT 1
13396 _ACEOF
13397
13398     fi
13399
13400         POSUB=po
13401   fi
13402
13403
13404             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13405       BUILD_INCLUDED_LIBINTL=yes
13406     fi
13407
13408
13409
13410
13411
13412         nls_cv_header_intl=
13413     nls_cv_header_libgt=
13414
13415         DATADIRNAME=share
13416
13417
13418         INSTOBJEXT=.mo
13419
13420
13421         GENCAT=gencat
13422
13423
13424         INTLOBJS=
13425     if test "$USE_INCLUDED_LIBINTL" = yes; then
13426       INTLOBJS="\$(GETTOBJS)"
13427     fi
13428
13429
13430         INTL_LIBTOOL_SUFFIX_PREFIX=
13431
13432
13433
13434     INTLLIBS="$LIBINTL"
13435
13436
13437
13438
13439
13440
13441 fi
13442
13443 support_mysql=no
13444 support_sqlite=no
13445 support_sqlite3=no
13446 support_postgresql=no
13447 support_dbi=no
13448 support_smartalloc=yes
13449 support_readline=yes
13450 support_conio=yes
13451 support_gnome=no
13452 support_bat=no
13453 support_wx_console=no
13454 support_tls=no
13455 support_crypto=no
13456 support_libdb=yes
13457 gnome_version=
13458 wx_version=
13459 support_static_tools=no
13460 support_static_fd=no
13461 support_static_sd=no
13462 support_static_dir=no
13463 support_static_cons=no
13464 support_python=no
13465 build_client_only=no
13466 build_dird=yes
13467 build_stored=yes
13468 cats=
13469 db_type=Internal
13470 DB_TYPE=bdb
13471
13472
13473 # -------------------------------------------
13474 # Berkeley DB (default off)
13475 # -------------------------------------------
13476
13477 # Check whether --enable-libdb was given.
13478 if test "${enable_libdb+set}" = set; then
13479   enableval=$enable_libdb; if test x$enableval = xno; then
13480     support_libdb=no
13481   fi
13482 fi
13483
13484
13485 if test x$support_libdb = xyes; then
13486  support_libdb=no
13487
13488     ax_path_bdb_ok=no
13489
13490   # Add --with-bdb-dir option to configure.
13491
13492 # Check whether --with-bdb-dir was given.
13493 if test "${with_bdb_dir+set}" = set; then
13494   withval=$with_bdb_dir;
13495 fi
13496
13497
13498   # Check if --with-bdb-dir was specified.
13499   if test "x$with_bdb_dir" = "x" ; then
13500     # No option specified, so just search the system.
13501
13502     ax_path_bdb_no_options_ok=no
13503
13504   # Values to add to environment to use Berkeley DB.
13505   BDB_VERSION=''
13506   BDB_LIBS=''
13507   BDB_CPPFLAGS=''
13508   BDB_LDFLAGS=''
13509
13510   # Check cross compilation here.
13511   if test "x$cross_compiling" = "xyes" ; then
13512     # If cross compiling, can't use AC_RUN_IFELSE so do these tests.
13513     # The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
13514     # and extracts the version number from it.
13515     { echo "$as_me:$LINENO: checking for db.h" >&5
13516 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13517
13518         ax_path_bdb_no_options_HEADER_VERSION=''
13519     cat >conftest.$ac_ext <<_ACEOF
13520
13521       /* confdefs.h.  */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h.  */
13526
13527 #include <db.h>
13528 AX_PATH_BDB_STUFF DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH
13529
13530
13531 _ACEOF
13532 if { (ac_try="$ac_cpp conftest.$ac_ext"
13533 case "(($ac_try" in
13534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13535   *) ac_try_echo=$ac_try;;
13536 esac
13537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13539   ac_status=$?
13540   grep -v '^ *+' conftest.er1 >conftest.err
13541   rm -f conftest.er1
13542   cat conftest.err >&5
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); } >/dev/null && {
13545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13546          test ! -s conftest.err
13547        }; then
13548
13549       # Extract version from preprocessor output.
13550       ax_path_bdb_no_options_HEADER_VERSION=`eval "$ac_cpp conftest.$ac_ext" 2> /dev/null \
13551         | grep AX_PATH_BDB_STUFF | sed 's/[^0-9,]//g;s/,/./g;1q'`
13552
13553 else
13554   echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13556
13557
13558 fi
13559
13560 rm -f conftest.err conftest.$ac_ext
13561
13562     if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ; then
13563       { echo "$as_me:$LINENO: result: no" >&5
13564 echo "${ECHO_T}no" >&6; }
13565     else
13566       { echo "$as_me:$LINENO: result: $ax_path_bdb_no_options_HEADER_VERSION" >&5
13567 echo "${ECHO_T}$ax_path_bdb_no_options_HEADER_VERSION" >&6; }
13568
13569       # Check that version is high enough.
13570
13571   for ac_prog in gawk mawk nawk awk
13572 do
13573   # Extract the first word of "$ac_prog", so it can be a program name with args.
13574 set dummy $ac_prog; ac_word=$2
13575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13577 if test "${ac_cv_prog_AWK+set}" = set; then
13578   echo $ECHO_N "(cached) $ECHO_C" >&6
13579 else
13580   if test -n "$AWK"; then
13581   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13582 else
13583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584 for as_dir in $PATH
13585 do
13586   IFS=$as_save_IFS
13587   test -z "$as_dir" && as_dir=.
13588   for ac_exec_ext in '' $ac_executable_extensions; do
13589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13590     ac_cv_prog_AWK="$ac_prog"
13591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13592     break 2
13593   fi
13594 done
13595 done
13596 IFS=$as_save_IFS
13597
13598 fi
13599 fi
13600 AWK=$ac_cv_prog_AWK
13601 if test -n "$AWK"; then
13602   { echo "$as_me:$LINENO: result: $AWK" >&5
13603 echo "${ECHO_T}$AWK" >&6; }
13604 else
13605   { echo "$as_me:$LINENO: result: no" >&5
13606 echo "${ECHO_T}no" >&6; }
13607 fi
13608
13609
13610   test -n "$AWK" && break
13611 done
13612
13613
13614   # Used to indicate true or false condition
13615   ax_compare_version=false
13616
13617   # Convert the two version strings to be compared into a format that
13618   # allows a simple string comparison.  The end result is that a version
13619   # string of the form 1.12.5-r617 will be converted to the form
13620   # 0001001200050617.  In other words, each number is zero padded to four
13621   # digits, and non digits are removed.
13622
13623   ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13624                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13625                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13626                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13627                      -e 's/[^0-9]//g'`
13628
13629
13630   ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13631                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13632                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13633                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13634                      -e 's/[^0-9]//g'`
13635
13636
13637     ax_compare_version=`echo "x$ax_compare_version_A
13638 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
13639
13640
13641
13642     if test "$ax_compare_version" = "true" ; then
13643
13644         # get major and minor version numbers
13645                 ax_path_bdb_no_options_MAJOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,\..*,,'`
13646                 ax_path_bdb_no_options_MINOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
13647
13648                 ax_path_bdb_no_options_save_LIBS="$LIBS"
13649
13650         # Check that we can link with the library.
13651         { echo "$as_me:$LINENO: checking for library containing db_version" >&5
13652 echo $ECHO_N "checking for library containing db_version... $ECHO_C" >&6; }
13653 if test "${ac_cv_search_db_version+set}" = set; then
13654   echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656   ac_func_search_save_LIBS=$LIBS
13657 cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h.  */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h.  */
13663
13664 /* Override any GCC internal prototype to avoid an error.
13665    Use char because int might match the return type of a GCC
13666    builtin and then its argument prototype would still apply.  */
13667 #ifdef __cplusplus
13668 extern "C"
13669 #endif
13670 char db_version ();
13671 int
13672 main ()
13673 {
13674 return db_version ();
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 for ac_lib in '' db db-$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR$ax_path_bdb_no_options_MINOR db-$ax_path_bdb_no_options_MAJOR db$ax_path_bdb_no_options_MAJOR; do
13680   if test -z "$ac_lib"; then
13681     ac_res="none required"
13682   else
13683     ac_res=-l$ac_lib
13684     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13685   fi
13686   rm -f conftest.$ac_objext conftest$ac_exeext
13687 if { (ac_try="$ac_link"
13688 case "(($ac_try" in
13689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690   *) ac_try_echo=$ac_try;;
13691 esac
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693   (eval "$ac_link") 2>conftest.er1
13694   ac_status=$?
13695   grep -v '^ *+' conftest.er1 >conftest.err
13696   rm -f conftest.er1
13697   cat conftest.err >&5
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } && {
13700          test -z "$ac_c_werror_flag" ||
13701          test ! -s conftest.err
13702        } && test -s conftest$ac_exeext &&
13703        $as_test_x conftest$ac_exeext; then
13704   ac_cv_search_db_version=$ac_res
13705 else
13706   echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13708
13709
13710 fi
13711
13712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13713       conftest$ac_exeext
13714   if test "${ac_cv_search_db_version+set}" = set; then
13715   break
13716 fi
13717 done
13718 if test "${ac_cv_search_db_version+set}" = set; then
13719   :
13720 else
13721   ac_cv_search_db_version=no
13722 fi
13723 rm conftest.$ac_ext
13724 LIBS=$ac_func_search_save_LIBS
13725 fi
13726 { echo "$as_me:$LINENO: result: $ac_cv_search_db_version" >&5
13727 echo "${ECHO_T}$ac_cv_search_db_version" >&6; }
13728 ac_res=$ac_cv_search_db_version
13729 if test "$ac_res" != no; then
13730   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13731
13732             # Sucessfully found library.
13733             ax_path_bdb_no_options_ok=yes
13734             BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
13735
13736             # Extract library from LIBS
13737             ax_path_bdb_no_options_LEN=` \
13738               echo "x$ax_path_bdb_no_options_save_LIBS" \
13739               | awk '{print(length)}'`
13740             BDB_LIBS=`echo "x$LIBS " \
13741               | sed "s/.\{$ax_path_bdb_no_options_LEN\}\$//;s/^x//;s/ //g"`
13742
13743 fi
13744
13745
13746                 LIBS="$ax_path_bdb_no_options_save_LIBS"
13747
13748
13749       fi
13750
13751     fi
13752
13753       else
13754     # Not cross compiling.
13755     # Check version of Berkeley DB in the current environment.
13756
13757     ax_path_bdb_env_get_version_ok=no
13758
13759   ax_path_bdb_env_get_version_VERSION=''
13760   ax_path_bdb_env_get_version_LIBS=''
13761
13762
13763   # Indicate status of checking for Berkeley DB library.
13764   { echo "$as_me:$LINENO: checking for db.h" >&5
13765 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13766
13767   # Compile and run a program that determines the Berkeley DB version
13768   # in the header file db.h.
13769   ax_path_bdb_env_get_version_HEADER_VERSION=''
13770   if test "$cross_compiling" = yes; then
13771   { echo "$as_me:$LINENO: result: no" >&5
13772 echo "${ECHO_T}no" >&6; }
13773 else
13774   cat >conftest.$ac_ext <<_ACEOF
13775
13776     /* confdefs.h.  */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h.  */
13781
13782 #include <stdio.h>
13783 #include <db.h>
13784 int main(int argc,char **argv)
13785 {
13786   (void) argv;
13787   if (argc > 1)
13788     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
13789   return 0;
13790 }
13791
13792
13793 _ACEOF
13794 rm -f conftest$ac_exeext
13795 if { (ac_try="$ac_link"
13796 case "(($ac_try" in
13797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798   *) ac_try_echo=$ac_try;;
13799 esac
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801   (eval "$ac_link") 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13805   { (case "(($ac_try" in
13806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807   *) ac_try_echo=$ac_try;;
13808 esac
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810   (eval "$ac_try") 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; }; then
13814
13815     # Program compiled and ran, so get version by adding an argument.
13816     ax_path_bdb_env_get_version_HEADER_VERSION=`./conftest$ac_exeext x`
13817     { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
13818 echo "${ECHO_T}$ax_path_bdb_env_get_version_HEADER_VERSION" >&6; }
13819
13820 else
13821   echo "$as_me: program exited with status $ac_status" >&5
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13824
13825 ( exit $ac_status )
13826 { echo "$as_me:$LINENO: result: no" >&5
13827 echo "${ECHO_T}no" >&6; }
13828 fi
13829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13830 fi
13831
13832
13833
13834   # Have header version, so try to find corresponding library.
13835   # Looks for library names in the order:
13836   #   nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
13837   # and stops when it finds the first one that matches the version
13838   # of the header file.
13839   if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ; then
13840     { echo "$as_me:$LINENO: checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
13841 echo $ECHO_N "checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION... $ECHO_C" >&6; }
13842
13843
13844     # get major and minor version numbers
13845     ax_path_bdb_env_get_version_MAJOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,\..*,,'`
13846     ax_path_bdb_env_get_version_MINOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
13847
13848     # see if it is already specified in LIBS
13849     ax_path_bdb_env_get_version_TEST_LIBNAME=''
13850
13851     ax_path_bdb_env_confirm_lib_ok=no
13852
13853     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
13854   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
13855
13856   # Compile and run a program that compares the version defined in
13857   # the header file with a version defined in the library function
13858   # db_version.
13859   if test "$cross_compiling" = yes; then
13860   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13861 See \`config.log' for more details." >&5
13862 echo "$as_me: error: cannot run test program while cross compiling
13863 See \`config.log' for more details." >&2;}
13864    { (exit 1); exit 1; }; }
13865 else
13866   cat >conftest.$ac_ext <<_ACEOF
13867
13868     /* confdefs.h.  */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h.  */
13873
13874 #include <stdio.h>
13875 #include <db.h>
13876 int main(int argc,char **argv)
13877 {
13878   int major,minor,patch;
13879   (void) argv;
13880   db_version(&major,&minor,&patch);
13881   if (argc > 1)
13882     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
13883   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
13884       DB_VERSION_PATCH == patch)
13885     return 0;
13886   else
13887     return 1;
13888 }
13889
13890
13891 _ACEOF
13892 rm -f conftest$ac_exeext
13893 if { (ac_try="$ac_link"
13894 case "(($ac_try" in
13895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896   *) ac_try_echo=$ac_try;;
13897 esac
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899   (eval "$ac_link") 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13903   { (case "(($ac_try" in
13904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905   *) ac_try_echo=$ac_try;;
13906 esac
13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908   (eval "$ac_try") 2>&5
13909   ac_status=$?
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); }; }; then
13912
13913     # Program compiled and ran, so get version by giving an argument,
13914     # which will tell the program to print the output.
13915     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
13916
13917     # If the versions all match up, indicate success.
13918
13919   for ac_prog in gawk mawk nawk awk
13920 do
13921   # Extract the first word of "$ac_prog", so it can be a program name with args.
13922 set dummy $ac_prog; ac_word=$2
13923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13925 if test "${ac_cv_prog_AWK+set}" = set; then
13926   echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928   if test -n "$AWK"; then
13929   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13930 else
13931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13932 for as_dir in $PATH
13933 do
13934   IFS=$as_save_IFS
13935   test -z "$as_dir" && as_dir=.
13936   for ac_exec_ext in '' $ac_executable_extensions; do
13937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13938     ac_cv_prog_AWK="$ac_prog"
13939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13940     break 2
13941   fi
13942 done
13943 done
13944 IFS=$as_save_IFS
13945
13946 fi
13947 fi
13948 AWK=$ac_cv_prog_AWK
13949 if test -n "$AWK"; then
13950   { echo "$as_me:$LINENO: result: $AWK" >&5
13951 echo "${ECHO_T}$AWK" >&6; }
13952 else
13953   { echo "$as_me:$LINENO: result: no" >&5
13954 echo "${ECHO_T}no" >&6; }
13955 fi
13956
13957
13958   test -n "$AWK" && break
13959 done
13960
13961
13962   # Used to indicate true or false condition
13963   ax_compare_version=false
13964
13965   # Convert the two version strings to be compared into a format that
13966   # allows a simple string comparison.  The end result is that a version
13967   # string of the form 1.12.5-r617 will be converted to the form
13968   # 0001001200050617.  In other words, each number is zero padded to four
13969   # digits, and non digits are removed.
13970
13971   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13972                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13973                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13974                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13975                      -e 's/[^0-9]//g'`
13976
13977
13978   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13979                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13980                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13981                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13982                      -e 's/[^0-9]//g'`
13983
13984
13985
13986
13987     # Pad zeros at end of numbers to make same length.
13988     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
13989     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
13990     ax_compare_version_A="$ax_compare_version_tmp_A"
13991
13992     # Check for equality or inequality as necessary.
13993
13994       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
13995
13996
13997
13998
13999     if test "$ax_compare_version" = "true" ; then
14000
14001       ax_path_bdb_env_confirm_lib_ok=yes
14002
14003       fi
14004
14005
14006 else
14007   echo "$as_me: program exited with status $ac_status" >&5
14008 echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14010
14011 fi
14012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14013 fi
14014
14015
14016
14017     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14018
14019
14020
14021     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14022       # try format "db"
14023       ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
14024
14025     ax_path_bdb_env_confirm_lib_ok=no
14026
14027     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14028   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14029
14030   # Compile and run a program that compares the version defined in
14031   # the header file with a version defined in the library function
14032   # db_version.
14033   if test "$cross_compiling" = yes; then
14034   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14035 See \`config.log' for more details." >&5
14036 echo "$as_me: error: cannot run test program while cross compiling
14037 See \`config.log' for more details." >&2;}
14038    { (exit 1); exit 1; }; }
14039 else
14040   cat >conftest.$ac_ext <<_ACEOF
14041
14042     /* confdefs.h.  */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h.  */
14047
14048 #include <stdio.h>
14049 #include <db.h>
14050 int main(int argc,char **argv)
14051 {
14052   int major,minor,patch;
14053   (void) argv;
14054   db_version(&major,&minor,&patch);
14055   if (argc > 1)
14056     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14057   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14058       DB_VERSION_PATCH == patch)
14059     return 0;
14060   else
14061     return 1;
14062 }
14063
14064
14065 _ACEOF
14066 rm -f conftest$ac_exeext
14067 if { (ac_try="$ac_link"
14068 case "(($ac_try" in
14069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070   *) ac_try_echo=$ac_try;;
14071 esac
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073   (eval "$ac_link") 2>&5
14074   ac_status=$?
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14077   { (case "(($ac_try" in
14078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079   *) ac_try_echo=$ac_try;;
14080 esac
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082   (eval "$ac_try") 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); }; }; then
14086
14087     # Program compiled and ran, so get version by giving an argument,
14088     # which will tell the program to print the output.
14089     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14090
14091     # If the versions all match up, indicate success.
14092
14093   for ac_prog in gawk mawk nawk awk
14094 do
14095   # Extract the first word of "$ac_prog", so it can be a program name with args.
14096 set dummy $ac_prog; ac_word=$2
14097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14099 if test "${ac_cv_prog_AWK+set}" = set; then
14100   echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102   if test -n "$AWK"; then
14103   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14104 else
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14107 do
14108   IFS=$as_save_IFS
14109   test -z "$as_dir" && as_dir=.
14110   for ac_exec_ext in '' $ac_executable_extensions; do
14111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112     ac_cv_prog_AWK="$ac_prog"
14113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14114     break 2
14115   fi
14116 done
14117 done
14118 IFS=$as_save_IFS
14119
14120 fi
14121 fi
14122 AWK=$ac_cv_prog_AWK
14123 if test -n "$AWK"; then
14124   { echo "$as_me:$LINENO: result: $AWK" >&5
14125 echo "${ECHO_T}$AWK" >&6; }
14126 else
14127   { echo "$as_me:$LINENO: result: no" >&5
14128 echo "${ECHO_T}no" >&6; }
14129 fi
14130
14131
14132   test -n "$AWK" && break
14133 done
14134
14135
14136   # Used to indicate true or false condition
14137   ax_compare_version=false
14138
14139   # Convert the two version strings to be compared into a format that
14140   # allows a simple string comparison.  The end result is that a version
14141   # string of the form 1.12.5-r617 will be converted to the form
14142   # 0001001200050617.  In other words, each number is zero padded to four
14143   # digits, and non digits are removed.
14144
14145   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14146                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14147                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14148                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14149                      -e 's/[^0-9]//g'`
14150
14151
14152   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14153                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14154                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14155                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14156                      -e 's/[^0-9]//g'`
14157
14158
14159
14160
14161     # Pad zeros at end of numbers to make same length.
14162     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14163     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14164     ax_compare_version_A="$ax_compare_version_tmp_A"
14165
14166     # Check for equality or inequality as necessary.
14167
14168       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14169
14170
14171
14172
14173     if test "$ax_compare_version" = "true" ; then
14174
14175       ax_path_bdb_env_confirm_lib_ok=yes
14176
14177       fi
14178
14179
14180 else
14181   echo "$as_me: program exited with status $ac_status" >&5
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 fi
14186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14187 fi
14188
14189
14190
14191     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14192
14193
14194     fi
14195
14196     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14197       # try format "db-X.Y"
14198       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
14199
14200     ax_path_bdb_env_confirm_lib_ok=no
14201
14202     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14203   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14204
14205   # Compile and run a program that compares the version defined in
14206   # the header file with a version defined in the library function
14207   # db_version.
14208   if test "$cross_compiling" = yes; then
14209   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14210 See \`config.log' for more details." >&5
14211 echo "$as_me: error: cannot run test program while cross compiling
14212 See \`config.log' for more details." >&2;}
14213    { (exit 1); exit 1; }; }
14214 else
14215   cat >conftest.$ac_ext <<_ACEOF
14216
14217     /* confdefs.h.  */
14218 _ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h.  */
14222
14223 #include <stdio.h>
14224 #include <db.h>
14225 int main(int argc,char **argv)
14226 {
14227   int major,minor,patch;
14228   (void) argv;
14229   db_version(&major,&minor,&patch);
14230   if (argc > 1)
14231     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14232   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14233       DB_VERSION_PATCH == patch)
14234     return 0;
14235   else
14236     return 1;
14237 }
14238
14239
14240 _ACEOF
14241 rm -f conftest$ac_exeext
14242 if { (ac_try="$ac_link"
14243 case "(($ac_try" in
14244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245   *) ac_try_echo=$ac_try;;
14246 esac
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248   (eval "$ac_link") 2>&5
14249   ac_status=$?
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14252   { (case "(($ac_try" in
14253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254   *) ac_try_echo=$ac_try;;
14255 esac
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257   (eval "$ac_try") 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }; then
14261
14262     # Program compiled and ran, so get version by giving an argument,
14263     # which will tell the program to print the output.
14264     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14265
14266     # If the versions all match up, indicate success.
14267
14268   for ac_prog in gawk mawk nawk awk
14269 do
14270   # Extract the first word of "$ac_prog", so it can be a program name with args.
14271 set dummy $ac_prog; ac_word=$2
14272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14274 if test "${ac_cv_prog_AWK+set}" = set; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   if test -n "$AWK"; then
14278   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14279 else
14280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281 for as_dir in $PATH
14282 do
14283   IFS=$as_save_IFS
14284   test -z "$as_dir" && as_dir=.
14285   for ac_exec_ext in '' $ac_executable_extensions; do
14286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14287     ac_cv_prog_AWK="$ac_prog"
14288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14289     break 2
14290   fi
14291 done
14292 done
14293 IFS=$as_save_IFS
14294
14295 fi
14296 fi
14297 AWK=$ac_cv_prog_AWK
14298 if test -n "$AWK"; then
14299   { echo "$as_me:$LINENO: result: $AWK" >&5
14300 echo "${ECHO_T}$AWK" >&6; }
14301 else
14302   { echo "$as_me:$LINENO: result: no" >&5
14303 echo "${ECHO_T}no" >&6; }
14304 fi
14305
14306
14307   test -n "$AWK" && break
14308 done
14309
14310
14311   # Used to indicate true or false condition
14312   ax_compare_version=false
14313
14314   # Convert the two version strings to be compared into a format that
14315   # allows a simple string comparison.  The end result is that a version
14316   # string of the form 1.12.5-r617 will be converted to the form
14317   # 0001001200050617.  In other words, each number is zero padded to four
14318   # digits, and non digits are removed.
14319
14320   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14321                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14322                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14323                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14324                      -e 's/[^0-9]//g'`
14325
14326
14327   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14328                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14329                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14330                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14331                      -e 's/[^0-9]//g'`
14332
14333
14334
14335
14336     # Pad zeros at end of numbers to make same length.
14337     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14338     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14339     ax_compare_version_A="$ax_compare_version_tmp_A"
14340
14341     # Check for equality or inequality as necessary.
14342
14343       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14344
14345
14346
14347
14348     if test "$ax_compare_version" = "true" ; then
14349
14350       ax_path_bdb_env_confirm_lib_ok=yes
14351
14352       fi
14353
14354
14355 else
14356   echo "$as_me: program exited with status $ac_status" >&5
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14359
14360 fi
14361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14362 fi
14363
14364
14365
14366     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14367
14368
14369     fi
14370
14371     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14372       # try format "dbX.Y"
14373       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
14374
14375     ax_path_bdb_env_confirm_lib_ok=no
14376
14377     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14378   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14379
14380   # Compile and run a program that compares the version defined in
14381   # the header file with a version defined in the library function
14382   # db_version.
14383   if test "$cross_compiling" = yes; then
14384   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14385 See \`config.log' for more details." >&5
14386 echo "$as_me: error: cannot run test program while cross compiling
14387 See \`config.log' for more details." >&2;}
14388    { (exit 1); exit 1; }; }
14389 else
14390   cat >conftest.$ac_ext <<_ACEOF
14391
14392     /* confdefs.h.  */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h.  */
14397
14398 #include <stdio.h>
14399 #include <db.h>
14400 int main(int argc,char **argv)
14401 {
14402   int major,minor,patch;
14403   (void) argv;
14404   db_version(&major,&minor,&patch);
14405   if (argc > 1)
14406     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14407   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14408       DB_VERSION_PATCH == patch)
14409     return 0;
14410   else
14411     return 1;
14412 }
14413
14414
14415 _ACEOF
14416 rm -f conftest$ac_exeext
14417 if { (ac_try="$ac_link"
14418 case "(($ac_try" in
14419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420   *) ac_try_echo=$ac_try;;
14421 esac
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423   (eval "$ac_link") 2>&5
14424   ac_status=$?
14425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14427   { (case "(($ac_try" in
14428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429   *) ac_try_echo=$ac_try;;
14430 esac
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432   (eval "$ac_try") 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; }; then
14436
14437     # Program compiled and ran, so get version by giving an argument,
14438     # which will tell the program to print the output.
14439     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14440
14441     # If the versions all match up, indicate success.
14442
14443   for ac_prog in gawk mawk nawk awk
14444 do
14445   # Extract the first word of "$ac_prog", so it can be a program name with args.
14446 set dummy $ac_prog; ac_word=$2
14447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14449 if test "${ac_cv_prog_AWK+set}" = set; then
14450   echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452   if test -n "$AWK"; then
14453   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14454 else
14455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456 for as_dir in $PATH
14457 do
14458   IFS=$as_save_IFS
14459   test -z "$as_dir" && as_dir=.
14460   for ac_exec_ext in '' $ac_executable_extensions; do
14461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14462     ac_cv_prog_AWK="$ac_prog"
14463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14464     break 2
14465   fi
14466 done
14467 done
14468 IFS=$as_save_IFS
14469
14470 fi
14471 fi
14472 AWK=$ac_cv_prog_AWK
14473 if test -n "$AWK"; then
14474   { echo "$as_me:$LINENO: result: $AWK" >&5
14475 echo "${ECHO_T}$AWK" >&6; }
14476 else
14477   { echo "$as_me:$LINENO: result: no" >&5
14478 echo "${ECHO_T}no" >&6; }
14479 fi
14480
14481
14482   test -n "$AWK" && break
14483 done
14484
14485
14486   # Used to indicate true or false condition
14487   ax_compare_version=false
14488
14489   # Convert the two version strings to be compared into a format that
14490   # allows a simple string comparison.  The end result is that a version
14491   # string of the form 1.12.5-r617 will be converted to the form
14492   # 0001001200050617.  In other words, each number is zero padded to four
14493   # digits, and non digits are removed.
14494
14495   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14496                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14497                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14498                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14499                      -e 's/[^0-9]//g'`
14500
14501
14502   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14503                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14504                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14505                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14506                      -e 's/[^0-9]//g'`
14507
14508
14509
14510
14511     # Pad zeros at end of numbers to make same length.
14512     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14513     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14514     ax_compare_version_A="$ax_compare_version_tmp_A"
14515
14516     # Check for equality or inequality as necessary.
14517
14518       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14519
14520
14521
14522
14523     if test "$ax_compare_version" = "true" ; then
14524
14525       ax_path_bdb_env_confirm_lib_ok=yes
14526
14527       fi
14528
14529
14530 else
14531   echo "$as_me: program exited with status $ac_status" >&5
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14534
14535 fi
14536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14537 fi
14538
14539
14540
14541     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14542
14543
14544     fi
14545
14546     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14547       # try format "dbXY"
14548       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR$ax_path_bdb_env_get_version_MINOR"
14549
14550     ax_path_bdb_env_confirm_lib_ok=no
14551
14552     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14553   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14554
14555   # Compile and run a program that compares the version defined in
14556   # the header file with a version defined in the library function
14557   # db_version.
14558   if test "$cross_compiling" = yes; then
14559   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14560 See \`config.log' for more details." >&5
14561 echo "$as_me: error: cannot run test program while cross compiling
14562 See \`config.log' for more details." >&2;}
14563    { (exit 1); exit 1; }; }
14564 else
14565   cat >conftest.$ac_ext <<_ACEOF
14566
14567     /* confdefs.h.  */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h.  */
14572
14573 #include <stdio.h>
14574 #include <db.h>
14575 int main(int argc,char **argv)
14576 {
14577   int major,minor,patch;
14578   (void) argv;
14579   db_version(&major,&minor,&patch);
14580   if (argc > 1)
14581     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14582   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14583       DB_VERSION_PATCH == patch)
14584     return 0;
14585   else
14586     return 1;
14587 }
14588
14589
14590 _ACEOF
14591 rm -f conftest$ac_exeext
14592 if { (ac_try="$ac_link"
14593 case "(($ac_try" in
14594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595   *) ac_try_echo=$ac_try;;
14596 esac
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598   (eval "$ac_link") 2>&5
14599   ac_status=$?
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14602   { (case "(($ac_try" in
14603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604   *) ac_try_echo=$ac_try;;
14605 esac
14606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607   (eval "$ac_try") 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); }; }; then
14611
14612     # Program compiled and ran, so get version by giving an argument,
14613     # which will tell the program to print the output.
14614     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14615
14616     # If the versions all match up, indicate success.
14617
14618   for ac_prog in gawk mawk nawk awk
14619 do
14620   # Extract the first word of "$ac_prog", so it can be a program name with args.
14621 set dummy $ac_prog; ac_word=$2
14622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14624 if test "${ac_cv_prog_AWK+set}" = set; then
14625   echo $ECHO_N "(cached) $ECHO_C" >&6
14626 else
14627   if test -n "$AWK"; then
14628   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14629 else
14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14632 do
14633   IFS=$as_save_IFS
14634   test -z "$as_dir" && as_dir=.
14635   for ac_exec_ext in '' $ac_executable_extensions; do
14636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14637     ac_cv_prog_AWK="$ac_prog"
14638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14639     break 2
14640   fi
14641 done
14642 done
14643 IFS=$as_save_IFS
14644
14645 fi
14646 fi
14647 AWK=$ac_cv_prog_AWK
14648 if test -n "$AWK"; then
14649   { echo "$as_me:$LINENO: result: $AWK" >&5
14650 echo "${ECHO_T}$AWK" >&6; }
14651 else
14652   { echo "$as_me:$LINENO: result: no" >&5
14653 echo "${ECHO_T}no" >&6; }
14654 fi
14655
14656
14657   test -n "$AWK" && break
14658 done
14659
14660
14661   # Used to indicate true or false condition
14662   ax_compare_version=false
14663
14664   # Convert the two version strings to be compared into a format that
14665   # allows a simple string comparison.  The end result is that a version
14666   # string of the form 1.12.5-r617 will be converted to the form
14667   # 0001001200050617.  In other words, each number is zero padded to four
14668   # digits, and non digits are removed.
14669
14670   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14671                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14672                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14673                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14674                      -e 's/[^0-9]//g'`
14675
14676
14677   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14678                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14679                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14680                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14681                      -e 's/[^0-9]//g'`
14682
14683
14684
14685
14686     # Pad zeros at end of numbers to make same length.
14687     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14688     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14689     ax_compare_version_A="$ax_compare_version_tmp_A"
14690
14691     # Check for equality or inequality as necessary.
14692
14693       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14694
14695
14696
14697
14698     if test "$ax_compare_version" = "true" ; then
14699
14700       ax_path_bdb_env_confirm_lib_ok=yes
14701
14702       fi
14703
14704
14705 else
14706   echo "$as_me: program exited with status $ac_status" >&5
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14709
14710 fi
14711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14712 fi
14713
14714
14715
14716     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14717
14718
14719     fi
14720
14721     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14722       # try format "db-X"
14723       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-$ax_path_bdb_env_get_version_MAJOR"
14724
14725     ax_path_bdb_env_confirm_lib_ok=no
14726
14727     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14728   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14729
14730   # Compile and run a program that compares the version defined in
14731   # the header file with a version defined in the library function
14732   # db_version.
14733   if test "$cross_compiling" = yes; then
14734   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14735 See \`config.log' for more details." >&5
14736 echo "$as_me: error: cannot run test program while cross compiling
14737 See \`config.log' for more details." >&2;}
14738    { (exit 1); exit 1; }; }
14739 else
14740   cat >conftest.$ac_ext <<_ACEOF
14741
14742     /* confdefs.h.  */
14743 _ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h.  */
14747
14748 #include <stdio.h>
14749 #include <db.h>
14750 int main(int argc,char **argv)
14751 {
14752   int major,minor,patch;
14753   (void) argv;
14754   db_version(&major,&minor,&patch);
14755   if (argc > 1)
14756     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14757   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14758       DB_VERSION_PATCH == patch)
14759     return 0;
14760   else
14761     return 1;
14762 }
14763
14764
14765 _ACEOF
14766 rm -f conftest$ac_exeext
14767 if { (ac_try="$ac_link"
14768 case "(($ac_try" in
14769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770   *) ac_try_echo=$ac_try;;
14771 esac
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773   (eval "$ac_link") 2>&5
14774   ac_status=$?
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14777   { (case "(($ac_try" in
14778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779   *) ac_try_echo=$ac_try;;
14780 esac
14781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782   (eval "$ac_try") 2>&5
14783   ac_status=$?
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); }; }; then
14786
14787     # Program compiled and ran, so get version by giving an argument,
14788     # which will tell the program to print the output.
14789     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14790
14791     # If the versions all match up, indicate success.
14792
14793   for ac_prog in gawk mawk nawk awk
14794 do
14795   # Extract the first word of "$ac_prog", so it can be a program name with args.
14796 set dummy $ac_prog; ac_word=$2
14797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14799 if test "${ac_cv_prog_AWK+set}" = set; then
14800   echo $ECHO_N "(cached) $ECHO_C" >&6
14801 else
14802   if test -n "$AWK"; then
14803   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14804 else
14805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14806 for as_dir in $PATH
14807 do
14808   IFS=$as_save_IFS
14809   test -z "$as_dir" && as_dir=.
14810   for ac_exec_ext in '' $ac_executable_extensions; do
14811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14812     ac_cv_prog_AWK="$ac_prog"
14813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14814     break 2
14815   fi
14816 done
14817 done
14818 IFS=$as_save_IFS
14819
14820 fi
14821 fi
14822 AWK=$ac_cv_prog_AWK
14823 if test -n "$AWK"; then
14824   { echo "$as_me:$LINENO: result: $AWK" >&5
14825 echo "${ECHO_T}$AWK" >&6; }
14826 else
14827   { echo "$as_me:$LINENO: result: no" >&5
14828 echo "${ECHO_T}no" >&6; }
14829 fi
14830
14831
14832   test -n "$AWK" && break
14833 done
14834
14835
14836   # Used to indicate true or false condition
14837   ax_compare_version=false
14838
14839   # Convert the two version strings to be compared into a format that
14840   # allows a simple string comparison.  The end result is that a version
14841   # string of the form 1.12.5-r617 will be converted to the form
14842   # 0001001200050617.  In other words, each number is zero padded to four
14843   # digits, and non digits are removed.
14844
14845   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14846                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14847                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14848                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14849                      -e 's/[^0-9]//g'`
14850
14851
14852   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14853                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14854                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14855                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14856                      -e 's/[^0-9]//g'`
14857
14858
14859
14860
14861     # Pad zeros at end of numbers to make same length.
14862     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14863     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14864     ax_compare_version_A="$ax_compare_version_tmp_A"
14865
14866     # Check for equality or inequality as necessary.
14867
14868       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14869
14870
14871
14872
14873     if test "$ax_compare_version" = "true" ; then
14874
14875       ax_path_bdb_env_confirm_lib_ok=yes
14876
14877       fi
14878
14879
14880 else
14881   echo "$as_me: program exited with status $ac_status" >&5
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885 fi
14886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14887 fi
14888
14889
14890
14891     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14892
14893
14894     fi
14895
14896     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14897       # try format "dbX"
14898       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
14899
14900     ax_path_bdb_env_confirm_lib_ok=no
14901
14902     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14903   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14904
14905   # Compile and run a program that compares the version defined in
14906   # the header file with a version defined in the library function
14907   # db_version.
14908   if test "$cross_compiling" = yes; then
14909   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14910 See \`config.log' for more details." >&5
14911 echo "$as_me: error: cannot run test program while cross compiling
14912 See \`config.log' for more details." >&2;}
14913    { (exit 1); exit 1; }; }
14914 else
14915   cat >conftest.$ac_ext <<_ACEOF
14916
14917     /* confdefs.h.  */
14918 _ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h.  */
14922
14923 #include <stdio.h>
14924 #include <db.h>
14925 int main(int argc,char **argv)
14926 {
14927   int major,minor,patch;
14928   (void) argv;
14929   db_version(&major,&minor,&patch);
14930   if (argc > 1)
14931     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14932   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14933       DB_VERSION_PATCH == patch)
14934     return 0;
14935   else
14936     return 1;
14937 }
14938
14939
14940 _ACEOF
14941 rm -f conftest$ac_exeext
14942 if { (ac_try="$ac_link"
14943 case "(($ac_try" in
14944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945   *) ac_try_echo=$ac_try;;
14946 esac
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948   (eval "$ac_link") 2>&5
14949   ac_status=$?
14950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14952   { (case "(($ac_try" in
14953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954   *) ac_try_echo=$ac_try;;
14955 esac
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957   (eval "$ac_try") 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); }; }; then
14961
14962     # Program compiled and ran, so get version by giving an argument,
14963     # which will tell the program to print the output.
14964     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14965
14966     # If the versions all match up, indicate success.
14967
14968   for ac_prog in gawk mawk nawk awk
14969 do
14970   # Extract the first word of "$ac_prog", so it can be a program name with args.
14971 set dummy $ac_prog; ac_word=$2
14972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14974 if test "${ac_cv_prog_AWK+set}" = set; then
14975   echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977   if test -n "$AWK"; then
14978   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14979 else
14980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14981 for as_dir in $PATH
14982 do
14983   IFS=$as_save_IFS
14984   test -z "$as_dir" && as_dir=.
14985   for ac_exec_ext in '' $ac_executable_extensions; do
14986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14987     ac_cv_prog_AWK="$ac_prog"
14988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14989     break 2
14990   fi
14991 done
14992 done
14993 IFS=$as_save_IFS
14994
14995 fi
14996 fi
14997 AWK=$ac_cv_prog_AWK
14998 if test -n "$AWK"; then
14999   { echo "$as_me:$LINENO: result: $AWK" >&5
15000 echo "${ECHO_T}$AWK" >&6; }
15001 else
15002   { echo "$as_me:$LINENO: result: no" >&5
15003 echo "${ECHO_T}no" >&6; }
15004 fi
15005
15006
15007   test -n "$AWK" && break
15008 done
15009
15010
15011   # Used to indicate true or false condition
15012   ax_compare_version=false
15013
15014   # Convert the two version strings to be compared into a format that
15015   # allows a simple string comparison.  The end result is that a version
15016   # string of the form 1.12.5-r617 will be converted to the form
15017   # 0001001200050617.  In other words, each number is zero padded to four
15018   # digits, and non digits are removed.
15019
15020   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15021                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15022                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15023                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15024                      -e 's/[^0-9]//g'`
15025
15026
15027   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15028                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15029                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15030                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15031                      -e 's/[^0-9]//g'`
15032
15033
15034
15035
15036     # Pad zeros at end of numbers to make same length.
15037     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
15038     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
15039     ax_compare_version_A="$ax_compare_version_tmp_A"
15040
15041     # Check for equality or inequality as necessary.
15042
15043       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
15044
15045
15046
15047
15048     if test "$ax_compare_version" = "true" ; then
15049
15050       ax_path_bdb_env_confirm_lib_ok=yes
15051
15052       fi
15053
15054
15055 else
15056   echo "$as_me: program exited with status $ac_status" >&5
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15059
15060 fi
15061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15062 fi
15063
15064
15065
15066     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
15067
15068
15069     fi
15070
15071         if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
15072       if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x" ; then
15073         { echo "$as_me:$LINENO: result: none required" >&5
15074 echo "${ECHO_T}none required" >&6; }
15075       else
15076         { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_TEST_LIBNAME" >&5
15077 echo "${ECHO_T}$ax_path_bdb_env_get_version_TEST_LIBNAME" >&6; }
15078       fi
15079       ax_path_bdb_env_get_version_VERSION="$ax_path_bdb_env_get_version_HEADER_VERSION"
15080       ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_version_TEST_LIBNAME"
15081       ax_path_bdb_env_get_version_ok=yes
15082     else
15083       { echo "$as_me:$LINENO: result: no" >&5
15084 echo "${ECHO_T}no" >&6; }
15085     fi
15086
15087           fi
15088
15089
15090     if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
15091
15092
15093   for ac_prog in gawk mawk nawk awk
15094 do
15095   # Extract the first word of "$ac_prog", so it can be a program name with args.
15096 set dummy $ac_prog; ac_word=$2
15097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15099 if test "${ac_cv_prog_AWK+set}" = set; then
15100   echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102   if test -n "$AWK"; then
15103   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15104 else
15105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15106 for as_dir in $PATH
15107 do
15108   IFS=$as_save_IFS
15109   test -z "$as_dir" && as_dir=.
15110   for ac_exec_ext in '' $ac_executable_extensions; do
15111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15112     ac_cv_prog_AWK="$ac_prog"
15113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15114     break 2
15115   fi
15116 done
15117 done
15118 IFS=$as_save_IFS
15119
15120 fi
15121 fi
15122 AWK=$ac_cv_prog_AWK
15123 if test -n "$AWK"; then
15124   { echo "$as_me:$LINENO: result: $AWK" >&5
15125 echo "${ECHO_T}$AWK" >&6; }
15126 else
15127   { echo "$as_me:$LINENO: result: no" >&5
15128 echo "${ECHO_T}no" >&6; }
15129 fi
15130
15131
15132   test -n "$AWK" && break
15133 done
15134
15135
15136   # Used to indicate true or false condition
15137   ax_compare_version=false
15138
15139   # Convert the two version strings to be compared into a format that
15140   # allows a simple string comparison.  The end result is that a version
15141   # string of the form 1.12.5-r617 will be converted to the form
15142   # 0001001200050617.  In other words, each number is zero padded to four
15143   # digits, and non digits are removed.
15144
15145   ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15146                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15147                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15148                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15149                      -e 's/[^0-9]//g'`
15150
15151
15152   ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15153                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15154                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15155                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15156                      -e 's/[^0-9]//g'`
15157
15158
15159     ax_compare_version=`echo "x$ax_compare_version_A
15160 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
15161
15162
15163
15164     if test "$ax_compare_version" = "true" ; then
15165
15166         # Found acceptable version in current environment.
15167         ax_path_bdb_no_options_ok=yes
15168         BDB_VERSION="$ax_path_bdb_env_get_version_VERSION"
15169         BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
15170
15171       fi
15172
15173
15174       fi
15175
15176
15177
15178     # Determine if we need to search /usr/local/BerkeleyDB*
15179     ax_path_bdb_no_options_DONE=no
15180     if test "xHIGHEST" = "xENVONLY" ; then
15181       ax_path_bdb_no_options_DONE=yes
15182     elif test "xHIGHEST" = "xENVFIRST" ; then
15183       ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
15184     fi
15185
15186     if test "$ax_path_bdb_no_options_DONE" = "no" ; then
15187       # Check for highest in /usr/local/BerkeleyDB*
15188
15189     ax_path_bdb_path_find_highest_ok=no
15190
15191     ax_path_bdb_path_find_highest_VERSION=''
15192
15193   ax_path_bdb_path_find_highest_DIR=''
15194
15195   # find highest verison in default install directory for Berkeley DB
15196
15197   for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/local/BerkeleyDB* 2> /dev/null`
15198   do
15199
15200     ax_path_bdb_path_get_version_ok=no
15201
15202   # Indicate status of checking for Berkeley DB header.
15203   { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5
15204 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h... $ECHO_C" >&6; }
15205   ax_path_bdb_path_get_version_got_header=no
15206   test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" && ax_path_bdb_path_get_version_got_header=yes
15207   { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_got_header" >&5
15208 echo "${ECHO_T}$ax_path_bdb_path_get_version_got_header" >&6; }
15209
15210   # Indicate status of checking for Berkeley DB library.
15211   { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
15212 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb... $ECHO_C" >&6; }
15213
15214   ax_path_bdb_path_get_version_VERSION=''
15215
15216   if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" && test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
15217      test "$ax_path_bdb_path_get_version_got_header" = "yes" ; then
15218         ax_path_bdb_path_get_version_save_CPPFLAGS="$CPPFLAGS"
15219     CPPFLAGS="-I$ax_path_bdb_path_find_highest_CURDIR/include $CPPFLAGS"
15220
15221     ax_path_bdb_path_get_version_save_LIBS="$LIBS"
15222     LIBS="$LIBS -ldb"
15223
15224     ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
15225     LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LDFLAGS"
15226
15227     # Compile and run a program that compares the version defined in
15228     # the header file with a version defined in the library function
15229     # db_version.
15230     if test "$cross_compiling" = yes; then
15231   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15232 See \`config.log' for more details." >&5
15233 echo "$as_me: error: cannot run test program while cross compiling
15234 See \`config.log' for more details." >&2;}
15235    { (exit 1); exit 1; }; }
15236 else
15237   cat >conftest.$ac_ext <<_ACEOF
15238
15239       /* confdefs.h.  */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h.  */
15244
15245 #include <stdio.h>
15246 #include <db.h>
15247 int main(int argc,char **argv)
15248 {
15249   int major,minor,patch;
15250   (void) argv;
15251   db_version(&major,&minor,&patch);
15252   if (argc > 1)
15253     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
15254   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
15255       DB_VERSION_PATCH == patch)
15256     return 0;
15257   else
15258     return 1;
15259 }
15260
15261
15262 _ACEOF
15263 rm -f conftest$ac_exeext
15264 if { (ac_try="$ac_link"
15265 case "(($ac_try" in
15266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267   *) ac_try_echo=$ac_try;;
15268 esac
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270   (eval "$ac_link") 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15274   { (case "(($ac_try" in
15275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276   *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279   (eval "$ac_try") 2>&5
15280   ac_status=$?
15281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282   (exit $ac_status); }; }; then
15283
15284       # Program compiled and ran, so get version by adding argument.
15285       ax_path_bdb_path_get_version_VERSION=`./conftest$ac_exeext x`
15286       ax_path_bdb_path_get_version_ok=yes
15287
15288 else
15289   echo "$as_me: program exited with status $ac_status" >&5
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15292
15293 fi
15294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15295 fi
15296
15297
15298
15299         CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
15300     LIBS="$ax_path_bdb_path_get_version_save_LIBS"
15301     LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
15302   fi
15303
15304     if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
15305     { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_VERSION" >&5
15306 echo "${ECHO_T}$ax_path_bdb_path_get_version_VERSION" >&6; }
15307
15308
15309   for ac_prog in gawk mawk nawk awk
15310 do
15311   # Extract the first word of "$ac_prog", so it can be a program name with args.
15312 set dummy $ac_prog; ac_word=$2
15313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15315 if test "${ac_cv_prog_AWK+set}" = set; then
15316   echo $ECHO_N "(cached) $ECHO_C" >&6
15317 else
15318   if test -n "$AWK"; then
15319   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15320 else
15321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15322 for as_dir in $PATH
15323 do
15324   IFS=$as_save_IFS
15325   test -z "$as_dir" && as_dir=.
15326   for ac_exec_ext in '' $ac_executable_extensions; do
15327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15328     ac_cv_prog_AWK="$ac_prog"
15329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15330     break 2
15331   fi
15332 done
15333 done
15334 IFS=$as_save_IFS
15335
15336 fi
15337 fi
15338 AWK=$ac_cv_prog_AWK
15339 if test -n "$AWK"; then
15340   { echo "$as_me:$LINENO: result: $AWK" >&5
15341 echo "${ECHO_T}$AWK" >&6; }
15342 else
15343   { echo "$as_me:$LINENO: result: no" >&5
15344 echo "${ECHO_T}no" >&6; }
15345 fi
15346
15347
15348   test -n "$AWK" && break
15349 done
15350
15351
15352   # Used to indicate true or false condition
15353   ax_compare_version=false
15354
15355   # Convert the two version strings to be compared into a format that
15356   # allows a simple string comparison.  The end result is that a version
15357   # string of the form 1.12.5-r617 will be converted to the form
15358   # 0001001200050617.  In other words, each number is zero padded to four
15359   # digits, and non digits are removed.
15360
15361   ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15362                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15363                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15364                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15365                      -e 's/[^0-9]//g'`
15366
15367
15368   ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15369                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15370                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15371                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15372                      -e 's/[^0-9]//g'`
15373
15374
15375     ax_compare_version=`echo "x$ax_compare_version_A
15376 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
15377
15378
15379
15380     if test "$ax_compare_version" = "true" ; then
15381
15382         ax_path_bdb_path_find_highest_ok=yes
15383         ax_path_bdb_path_find_highest_DIR="$ax_path_bdb_path_find_highest_CURDIR"
15384         ax_path_bdb_path_find_highest_VERSION="$ax_path_bdb_path_get_version_VERSION"
15385
15386       fi
15387
15388
15389   else
15390     { echo "$as_me:$LINENO: result: no" >&5
15391 echo "${ECHO_T}no" >&6; }
15392       fi
15393
15394   done
15395
15396
15397     if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
15398
15399         if test "$ax_path_bdb_no_options_ok" = "yes" ; then
15400         # If we already have an acceptable version use this if higher.
15401
15402   for ac_prog in gawk mawk nawk awk
15403 do
15404   # Extract the first word of "$ac_prog", so it can be a program name with args.
15405 set dummy $ac_prog; ac_word=$2
15406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15408 if test "${ac_cv_prog_AWK+set}" = set; then
15409   echo $ECHO_N "(cached) $ECHO_C" >&6
15410 else
15411   if test -n "$AWK"; then
15412   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15413 else
15414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15415 for as_dir in $PATH
15416 do
15417   IFS=$as_save_IFS
15418   test -z "$as_dir" && as_dir=.
15419   for ac_exec_ext in '' $ac_executable_extensions; do
15420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15421     ac_cv_prog_AWK="$ac_prog"
15422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15423     break 2
15424   fi
15425 done
15426 done
15427 IFS=$as_save_IFS
15428
15429 fi
15430 fi
15431 AWK=$ac_cv_prog_AWK
15432 if test -n "$AWK"; then
15433   { echo "$as_me:$LINENO: result: $AWK" >&5
15434 echo "${ECHO_T}$AWK" >&6; }
15435 else
15436   { echo "$as_me:$LINENO: result: no" >&5
15437 echo "${ECHO_T}no" >&6; }
15438 fi
15439
15440
15441   test -n "$AWK" && break
15442 done
15443
15444
15445   # Used to indicate true or false condition
15446   ax_compare_version=false
15447
15448   # Convert the two version strings to be compared into a format that
15449   # allows a simple string comparison.  The end result is that a version
15450   # string of the form 1.12.5-r617 will be converted to the form
15451   # 0001001200050617.  In other words, each number is zero padded to four
15452   # digits, and non digits are removed.
15453
15454   ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15455                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15456                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15457                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15458                      -e 's/[^0-9]//g'`
15459
15460
15461   ax_compare_version_B=`echo "$BDB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15462                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15463                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15464                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15465                      -e 's/[^0-9]//g'`
15466
15467
15468     ax_compare_version=`echo "x$ax_compare_version_A
15469 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
15470
15471
15472
15473     if test "$ax_compare_version" = "true" ; then
15474     :
15475       fi
15476
15477         else
15478           # Since we didn't have an acceptable version check if this one is.
15479
15480   for ac_prog in gawk mawk nawk awk
15481 do
15482   # Extract the first word of "$ac_prog", so it can be a program name with args.
15483 set dummy $ac_prog; ac_word=$2
15484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15486 if test "${ac_cv_prog_AWK+set}" = set; then
15487   echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489   if test -n "$AWK"; then
15490   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15491 else
15492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15493 for as_dir in $PATH
15494 do
15495   IFS=$as_save_IFS
15496   test -z "$as_dir" && as_dir=.
15497   for ac_exec_ext in '' $ac_executable_extensions; do
15498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15499     ac_cv_prog_AWK="$ac_prog"
15500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15501     break 2
15502   fi
15503 done
15504 done
15505 IFS=$as_save_IFS
15506
15507 fi
15508 fi
15509 AWK=$ac_cv_prog_AWK
15510 if test -n "$AWK"; then
15511   { echo "$as_me:$LINENO: result: $AWK" >&5
15512 echo "${ECHO_T}$AWK" >&6; }
15513 else
15514   { echo "$as_me:$LINENO: result: no" >&5
15515 echo "${ECHO_T}no" >&6; }
15516 fi
15517
15518
15519   test -n "$AWK" && break
15520 done
15521
15522
15523   # Used to indicate true or false condition
15524   ax_compare_version=false
15525
15526   # Convert the two version strings to be compared into a format that
15527   # allows a simple string comparison.  The end result is that a version
15528   # string of the form 1.12.5-r617 will be converted to the form
15529   # 0001001200050617.  In other words, each number is zero padded to four
15530   # digits, and non digits are removed.
15531
15532   ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15533                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15534                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15535                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15536                      -e 's/[^0-9]//g'`
15537
15538
15539   ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15540                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15541                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15542                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15543                      -e 's/[^0-9]//g'`
15544
15545
15546     ax_compare_version=`echo "x$ax_compare_version_A
15547 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
15548
15549
15550
15551     if test "$ax_compare_version" = "true" ; then
15552     :
15553       fi
15554
15555         fi
15556
15557       fi
15558
15559
15560
15561             if test "$ax_compare_version" = "true" ; then
15562         ax_path_bdb_no_options_ok=yes
15563         BDB_LIBS="-ldb"
15564         if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
15565           BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
15566           BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
15567         fi
15568         BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
15569       fi
15570     fi
15571   fi
15572
15573     if test "$ax_path_bdb_no_options_ok" = "yes" ; then
15574     { echo "$as_me:$LINENO: using Berkeley DB version $BDB_VERSION" >&5
15575 echo "$as_me: using Berkeley DB version $BDB_VERSION" >&6;}
15576
15577 cat >>confdefs.h <<\_ACEOF
15578 #define HAVE_DB_H 1
15579 _ACEOF
15580
15581
15582       ax_path_bdb_ok=yes
15583
15584   else
15585     { echo "$as_me:$LINENO: no Berkeley DB version 3 or higher found" >&5
15586 echo "$as_me: no Berkeley DB version 3 or higher found" >&6;}
15587       fi
15588
15589    else
15590      # Set --with-bdb-dir option.
15591      ax_path_bdb_INC="$with_bdb_dir/include"
15592      ax_path_bdb_LIB="$with_bdb_dir/lib"
15593
15594           ax_path_bdb_save_CPPFLAGS="$CPPFLAGS"
15595      CPPFLAGS="-I$ax_path_bdb_INC $CPPFLAGS"
15596
15597      ax_path_bdb_save_LDFLAGS=$LDFLAGS
15598      LDFLAGS="-L$ax_path_bdb_LIB $LDFLAGS"
15599
15600      # Check for specific header file db.h
15601      { echo "$as_me:$LINENO: checking db.h presence in $ax_path_bdb_INC" >&5
15602 echo $ECHO_N "checking db.h presence in $ax_path_bdb_INC... $ECHO_C" >&6; }
15603      if test -f "$ax_path_bdb_INC/db.h" ; then
15604        { echo "$as_me:$LINENO: result: yes" >&5
15605 echo "${ECHO_T}yes" >&6; }
15606        # Check for library
15607
15608     ax_path_bdb_no_options_ok=no
15609
15610   # Values to add to environment to use Berkeley DB.
15611   BDB_VERSION=''
15612   BDB_LIBS=''
15613   BDB_CPPFLAGS=''
15614   BDB_LDFLAGS=''
15615
15616   # Check cross compilation here.
15617   if test "x$cross_compiling" = "xyes" ; then
15618     # If cross compiling, can't use AC_RUN_IFELSE so do these tests.
15619     # The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
15620     # and extracts the version number from it.
15621     { echo "$as_me:$LINENO: checking for db.h" >&5
15622 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
15623
15624         ax_path_bdb_no_options_HEADER_VERSION=''
15625     cat >conftest.$ac_ext <<_ACEOF
15626
15627       /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632
15633 #include <db.h>
15634 AX_PATH_BDB_STUFF DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH
15635
15636
15637 _ACEOF
15638 if { (ac_try="$ac_cpp conftest.$ac_ext"
15639 case "(($ac_try" in
15640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641   *) ac_try_echo=$ac_try;;
15642 esac
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15645   ac_status=$?
15646   grep -v '^ *+' conftest.er1 >conftest.err
15647   rm -f conftest.er1
15648   cat conftest.err >&5
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); } >/dev/null && {
15651          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15652          test ! -s conftest.err
15653        }; then
15654
15655       # Extract version from preprocessor output.
15656       ax_path_bdb_no_options_HEADER_VERSION=`eval "$ac_cpp conftest.$ac_ext" 2> /dev/null \
15657         | grep AX_PATH_BDB_STUFF | sed 's/[^0-9,]//g;s/,/./g;1q'`
15658
15659 else
15660   echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15662
15663
15664 fi
15665
15666 rm -f conftest.err conftest.$ac_ext
15667
15668     if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ; then
15669       { echo "$as_me:$LINENO: result: no" >&5
15670 echo "${ECHO_T}no" >&6; }
15671     else
15672       { echo "$as_me:$LINENO: result: $ax_path_bdb_no_options_HEADER_VERSION" >&5
15673 echo "${ECHO_T}$ax_path_bdb_no_options_HEADER_VERSION" >&6; }
15674
15675       # Check that version is high enough.
15676
15677   for ac_prog in gawk mawk nawk awk
15678 do
15679   # Extract the first word of "$ac_prog", so it can be a program name with args.
15680 set dummy $ac_prog; ac_word=$2
15681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15683 if test "${ac_cv_prog_AWK+set}" = set; then
15684   echo $ECHO_N "(cached) $ECHO_C" >&6
15685 else
15686   if test -n "$AWK"; then
15687   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15688 else
15689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15690 for as_dir in $PATH
15691 do
15692   IFS=$as_save_IFS
15693   test -z "$as_dir" && as_dir=.
15694   for ac_exec_ext in '' $ac_executable_extensions; do
15695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15696     ac_cv_prog_AWK="$ac_prog"
15697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15698     break 2
15699   fi
15700 done
15701 done
15702 IFS=$as_save_IFS
15703
15704 fi
15705 fi
15706 AWK=$ac_cv_prog_AWK
15707 if test -n "$AWK"; then
15708   { echo "$as_me:$LINENO: result: $AWK" >&5
15709 echo "${ECHO_T}$AWK" >&6; }
15710 else
15711   { echo "$as_me:$LINENO: result: no" >&5
15712 echo "${ECHO_T}no" >&6; }
15713 fi
15714
15715
15716   test -n "$AWK" && break
15717 done
15718
15719
15720   # Used to indicate true or false condition
15721   ax_compare_version=false
15722
15723   # Convert the two version strings to be compared into a format that
15724   # allows a simple string comparison.  The end result is that a version
15725   # string of the form 1.12.5-r617 will be converted to the form
15726   # 0001001200050617.  In other words, each number is zero padded to four
15727   # digits, and non digits are removed.
15728
15729   ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15730                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15731                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15732                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15733                      -e 's/[^0-9]//g'`
15734
15735
15736   ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15737                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15738                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15739                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15740                      -e 's/[^0-9]//g'`
15741
15742
15743     ax_compare_version=`echo "x$ax_compare_version_A
15744 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
15745
15746
15747
15748     if test "$ax_compare_version" = "true" ; then
15749
15750         # get major and minor version numbers
15751                 ax_path_bdb_no_options_MAJOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,\..*,,'`
15752                 ax_path_bdb_no_options_MINOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
15753
15754                 ax_path_bdb_no_options_save_LIBS="$LIBS"
15755
15756         # Check that we can link with the library.
15757         { echo "$as_me:$LINENO: checking for library containing db_version" >&5
15758 echo $ECHO_N "checking for library containing db_version... $ECHO_C" >&6; }
15759 if test "${ac_cv_search_db_version+set}" = set; then
15760   echo $ECHO_N "(cached) $ECHO_C" >&6
15761 else
15762   ac_func_search_save_LIBS=$LIBS
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h.  */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h.  */
15769
15770 /* Override any GCC internal prototype to avoid an error.
15771    Use char because int might match the return type of a GCC
15772    builtin and then its argument prototype would still apply.  */
15773 #ifdef __cplusplus
15774 extern "C"
15775 #endif
15776 char db_version ();
15777 int
15778 main ()
15779 {
15780 return db_version ();
15781   ;
15782   return 0;
15783 }
15784 _ACEOF
15785 for ac_lib in '' db db-$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR$ax_path_bdb_no_options_MINOR db-$ax_path_bdb_no_options_MAJOR db$ax_path_bdb_no_options_MAJOR; do
15786   if test -z "$ac_lib"; then
15787     ac_res="none required"
15788   else
15789     ac_res=-l$ac_lib
15790     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15791   fi
15792   rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (ac_try="$ac_link"
15794 case "(($ac_try" in
15795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15796   *) ac_try_echo=$ac_try;;
15797 esac
15798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15799   (eval "$ac_link") 2>conftest.er1
15800   ac_status=$?
15801   grep -v '^ *+' conftest.er1 >conftest.err
15802   rm -f conftest.er1
15803   cat conftest.err >&5
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); } && {
15806          test -z "$ac_c_werror_flag" ||
15807          test ! -s conftest.err
15808        } && test -s conftest$ac_exeext &&
15809        $as_test_x conftest$ac_exeext; then
15810   ac_cv_search_db_version=$ac_res
15811 else
15812   echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15814
15815
15816 fi
15817
15818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15819       conftest$ac_exeext
15820   if test "${ac_cv_search_db_version+set}" = set; then
15821   break
15822 fi
15823 done
15824 if test "${ac_cv_search_db_version+set}" = set; then
15825   :
15826 else
15827   ac_cv_search_db_version=no
15828 fi
15829 rm conftest.$ac_ext
15830 LIBS=$ac_func_search_save_LIBS
15831 fi
15832 { echo "$as_me:$LINENO: result: $ac_cv_search_db_version" >&5
15833 echo "${ECHO_T}$ac_cv_search_db_version" >&6; }
15834 ac_res=$ac_cv_search_db_version
15835 if test "$ac_res" != no; then
15836   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15837
15838             # Sucessfully found library.
15839             ax_path_bdb_no_options_ok=yes
15840             BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
15841
15842             # Extract library from LIBS
15843             ax_path_bdb_no_options_LEN=` \
15844               echo "x$ax_path_bdb_no_options_save_LIBS" \
15845               | awk '{print(length)}'`
15846             BDB_LIBS=`echo "x$LIBS " \
15847               | sed "s/.\{$ax_path_bdb_no_options_LEN\}\$//;s/^x//;s/ //g"`
15848
15849 fi
15850
15851
15852                 LIBS="$ax_path_bdb_no_options_save_LIBS"
15853
15854
15855       fi
15856
15857     fi
15858
15859       else
15860     # Not cross compiling.
15861     # Check version of Berkeley DB in the current environment.
15862
15863     ax_path_bdb_env_get_version_ok=no
15864
15865   ax_path_bdb_env_get_version_VERSION=''
15866   ax_path_bdb_env_get_version_LIBS=''
15867
15868
15869   # Indicate status of checking for Berkeley DB library.
15870   { echo "$as_me:$LINENO: checking for db.h" >&5
15871 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
15872
15873   # Compile and run a program that determines the Berkeley DB version
15874   # in the header file db.h.
15875   ax_path_bdb_env_get_version_HEADER_VERSION=''
15876   if test "$cross_compiling" = yes; then
15877   { echo "$as_me:$LINENO: result: no" >&5
15878 echo "${ECHO_T}no" >&6; }
15879 else
15880   cat >conftest.$ac_ext <<_ACEOF
15881
15882     /* confdefs.h.  */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h.  */
15887
15888 #include <stdio.h>
15889 #include <db.h>
15890 int main(int argc,char **argv)
15891 {
15892   (void) argv;
15893   if (argc > 1)
15894     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
15895   return 0;
15896 }
15897
15898
15899 _ACEOF
15900 rm -f conftest$ac_exeext
15901 if { (ac_try="$ac_link"
15902 case "(($ac_try" in
15903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904   *) ac_try_echo=$ac_try;;
15905 esac
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907   (eval "$ac_link") 2>&5
15908   ac_status=$?
15909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15911   { (case "(($ac_try" in
15912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913   *) ac_try_echo=$ac_try;;
15914 esac
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916   (eval "$ac_try") 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); }; }; then
15920
15921     # Program compiled and ran, so get version by adding an argument.
15922     ax_path_bdb_env_get_version_HEADER_VERSION=`./conftest$ac_exeext x`
15923     { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
15924 echo "${ECHO_T}$ax_path_bdb_env_get_version_HEADER_VERSION" >&6; }
15925
15926 else
15927   echo "$as_me: program exited with status $ac_status" >&5
15928 echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15930
15931 ( exit $ac_status )
15932 { echo "$as_me:$LINENO: result: no" >&5
15933 echo "${ECHO_T}no" >&6; }
15934 fi
15935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15936 fi
15937
15938
15939
15940   # Have header version, so try to find corresponding library.
15941   # Looks for library names in the order:
15942   #   nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
15943   # and stops when it finds the first one that matches the version
15944   # of the header file.
15945   if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ; then
15946     { echo "$as_me:$LINENO: checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
15947 echo $ECHO_N "checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION... $ECHO_C" >&6; }
15948
15949
15950     # get major and minor version numbers
15951     ax_path_bdb_env_get_version_MAJOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,\..*,,'`
15952     ax_path_bdb_env_get_version_MINOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
15953
15954     # see if it is already specified in LIBS
15955     ax_path_bdb_env_get_version_TEST_LIBNAME=''
15956
15957     ax_path_bdb_env_confirm_lib_ok=no
15958
15959     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
15960   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
15961
15962   # Compile and run a program that compares the version defined in
15963   # the header file with a version defined in the library function
15964   # db_version.
15965   if test "$cross_compiling" = yes; then
15966   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15967 See \`config.log' for more details." >&5
15968 echo "$as_me: error: cannot run test program while cross compiling
15969 See \`config.log' for more details." >&2;}
15970    { (exit 1); exit 1; }; }
15971 else
15972   cat >conftest.$ac_ext <<_ACEOF
15973
15974     /* confdefs.h.  */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h.  */
15979
15980 #include <stdio.h>
15981 #include <db.h>
15982 int main(int argc,char **argv)
15983 {
15984   int major,minor,patch;
15985   (void) argv;
15986   db_version(&major,&minor,&patch);
15987   if (argc > 1)
15988     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
15989   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
15990       DB_VERSION_PATCH == patch)
15991     return 0;
15992   else
15993     return 1;
15994 }
15995
15996
15997 _ACEOF
15998 rm -f conftest$ac_exeext
15999 if { (ac_try="$ac_link"
16000 case "(($ac_try" in
16001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002   *) ac_try_echo=$ac_try;;
16003 esac
16004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005   (eval "$ac_link") 2>&5
16006   ac_status=$?
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16009   { (case "(($ac_try" in
16010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011   *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014   (eval "$ac_try") 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; }; then
16018
16019     # Program compiled and ran, so get version by giving an argument,
16020     # which will tell the program to print the output.
16021     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16022
16023     # If the versions all match up, indicate success.
16024
16025   for ac_prog in gawk mawk nawk awk
16026 do
16027   # Extract the first word of "$ac_prog", so it can be a program name with args.
16028 set dummy $ac_prog; ac_word=$2
16029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16031 if test "${ac_cv_prog_AWK+set}" = set; then
16032   echo $ECHO_N "(cached) $ECHO_C" >&6
16033 else
16034   if test -n "$AWK"; then
16035   ac_cv_prog_AWK="$AWK" # Let the user override the test.
16036 else
16037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16038 for as_dir in $PATH
16039 do
16040   IFS=$as_save_IFS
16041   test -z "$as_dir" && as_dir=.
16042   for ac_exec_ext in '' $ac_executable_extensions; do
16043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16044     ac_cv_prog_AWK="$ac_prog"
16045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16046     break 2
16047   fi
16048 done
16049 done
16050 IFS=$as_save_IFS
16051
16052 fi
16053 fi
16054 AWK=$ac_cv_prog_AWK
16055 if test -n "$AWK"; then
16056   { echo "$as_me:$LINENO: result: $AWK" >&5
16057 echo "${ECHO_T}$AWK" >&6; }
16058 else
16059   { echo "$as_me:$LINENO: result: no" >&5
16060 echo "${ECHO_T}no" >&6; }
16061 fi
16062
16063
16064   test -n "$AWK" && break
16065 done
16066
16067
16068   # Used to indicate true or false condition
16069   ax_compare_version=false
16070
16071   # Convert the two version strings to be compared into a format that
16072   # allows a simple string comparison.  The end result is that a version
16073   # string of the form 1.12.5-r617 will be converted to the form
16074   # 0001001200050617.  In other words, each number is zero padded to four
16075   # digits, and non digits are removed.
16076
16077   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16078                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16079                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16080                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16081                      -e 's/[^0-9]//g'`
16082
16083
16084   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16085                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16086                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16087                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16088                      -e 's/[^0-9]//g'`
16089
16090
16091
16092
16093     # Pad zeros at end of numbers to make same length.
16094     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16095     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16096     ax_compare_version_A="$ax_compare_version_tmp_A"
16097
16098     # Check for equality or inequality as necessary.
16099
16100       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16101
16102
16103
16104
16105     if test "$ax_compare_version" = "true" ; then
16106
16107       ax_path_bdb_env_confirm_lib_ok=yes
16108
16109       fi
16110
16111
16112 else
16113   echo "$as_me: program exited with status $ac_status" >&5
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16116
16117 fi
16118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16119 fi
16120
16121
16122
16123     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16124
16125
16126
16127     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16128       # try format "db"
16129       ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
16130
16131     ax_path_bdb_env_confirm_lib_ok=no
16132
16133     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16134   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16135
16136   # Compile and run a program that compares the version defined in
16137   # the header file with a version defined in the library function
16138   # db_version.
16139   if test "$cross_compiling" = yes; then
16140   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16141 See \`config.log' for more details." >&5
16142 echo "$as_me: error: cannot run test program while cross compiling
16143 See \`config.log' for more details." >&2;}
16144    { (exit 1); exit 1; }; }
16145 else
16146   cat >conftest.$ac_ext <<_ACEOF
16147
16148     /* confdefs.h.  */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h.  */
16153
16154 #include <stdio.h>
16155 #include <db.h>
16156 int main(int argc,char **argv)
16157 {
16158   int major,minor,patch;
16159   (void) argv;
16160   db_version(&major,&minor,&patch);
16161   if (argc > 1)
16162     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16163   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16164       DB_VERSION_PATCH == patch)
16165     return 0;
16166   else
16167     return 1;
16168 }
16169
16170
16171 _ACEOF
16172 rm -f conftest$ac_exeext
16173 if { (ac_try="$ac_link"
16174 case "(($ac_try" in
16175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176   *) ac_try_echo=$ac_try;;
16177 esac
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179   (eval "$ac_link") 2>&5
16180   ac_status=$?
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16183   { (case "(($ac_try" in
16184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185   *) ac_try_echo=$ac_try;;
16186 esac
16187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188   (eval "$ac_try") 2>&5
16189   ac_status=$?
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); }; }; then
16192
16193     # Program compiled and ran, so get version by giving an argument,
16194     # which will tell the program to print the output.
16195     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16196
16197     # If the versions all match up, indicate success.
16198
16199   for ac_prog in gawk mawk nawk awk
16200 do
16201   # Extract the first word of "$ac_prog", so it can be a program name with args.
16202 set dummy $ac_prog; ac_word=$2
16203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16205 if test "${ac_cv_prog_AWK+set}" = set; then
16206   echo $ECHO_N "(cached) $ECHO_C" >&6
16207 else
16208   if test -n "$AWK"; then
16209   ac_cv_prog_AWK="$AWK" # Let the user override the test.
16210 else
16211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16212 for as_dir in $PATH
16213 do
16214   IFS=$as_save_IFS
16215   test -z "$as_dir" && as_dir=.
16216   for ac_exec_ext in '' $ac_executable_extensions; do
16217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16218     ac_cv_prog_AWK="$ac_prog"
16219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16220     break 2
16221   fi
16222 done
16223 done
16224 IFS=$as_save_IFS
16225
16226 fi
16227 fi
16228 AWK=$ac_cv_prog_AWK
16229 if test -n "$AWK"; then
16230   { echo "$as_me:$LINENO: result: $AWK" >&5
16231 echo "${ECHO_T}$AWK" >&6; }
16232 else
16233   { echo "$as_me:$LINENO: result: no" >&5
16234 echo "${ECHO_T}no" >&6; }
16235 fi
16236
16237
16238   test -n "$AWK" && break
16239 done
16240
16241
16242   # Used to indicate true or false condition
16243   ax_compare_version=false
16244
16245   # Convert the two version strings to be compared into a format that
16246   # allows a simple string comparison.  The end result is that a version
16247   # string of the form 1.12.5-r617 will be converted to the form
16248   # 0001001200050617.  In other words, each number is zero padded to four
16249   # digits, and non digits are removed.
16250
16251   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16252                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16253                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16254                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16255                      -e 's/[^0-9]//g'`
16256
16257
16258   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16259                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16260                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16261                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16262                      -e 's/[^0-9]//g'`
16263
16264
16265
16266
16267     # Pad zeros at end of numbers to make same length.
16268     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16269     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16270     ax_compare_version_A="$ax_compare_version_tmp_A"
16271
16272     # Check for equality or inequality as necessary.
16273
16274       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16275
16276
16277
16278
16279     if test "$ax_compare_version" = "true" ; then
16280
16281       ax_path_bdb_env_confirm_lib_ok=yes
16282
16283       fi
16284
16285
16286 else
16287   echo "$as_me: program exited with status $ac_status" >&5
16288 echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16290
16291 fi
16292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16293 fi
16294
16295
16296
16297     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16298
16299
16300     fi
16301
16302     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16303       # try format "db-X.Y"
16304       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
16305
16306     ax_path_bdb_env_confirm_lib_ok=no
16307
16308     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16309   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16310
16311   # Compile and run a program that compares the version defined in
16312   # the header file with a version defined in the library function
16313   # db_version.
16314   if test "$cross_compiling" = yes; then
16315   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16316 See \`config.log' for more details." >&5
16317 echo "$as_me: error: cannot run test program while cross compiling
16318 See \`config.log' for more details." >&2;}
16319    { (exit 1); exit 1; }; }
16320 else
16321   cat >conftest.$ac_ext <<_ACEOF
16322
16323     /* confdefs.h.  */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h.  */
16328
16329 #include <stdio.h>
16330 #include <db.h>
16331 int main(int argc,char **argv)
16332 {
16333   int major,minor,patch;
16334   (void) argv;
16335   db_version(&major,&minor,&patch);
16336   if (argc > 1)
16337     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16338   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16339       DB_VERSION_PATCH == patch)
16340     return 0;
16341   else
16342     return 1;
16343 }
16344
16345
16346 _ACEOF
16347 rm -f conftest$ac_exeext
16348 if { (ac_try="$ac_link"
16349 case "(($ac_try" in
16350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351   *) ac_try_echo=$ac_try;;
16352 esac
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354   (eval "$ac_link") 2>&5
16355   ac_status=$?
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16358   { (case "(($ac_try" in
16359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360   *) ac_try_echo=$ac_try;;
16361 esac
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363   (eval "$ac_try") 2>&5
16364   ac_status=$?
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); }; }; then
16367
16368     # Program compiled and ran, so get version by giving an argument,
16369     # which will tell the program to print the output.
16370     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16371
16372     # If the versions all match up, indicate success.
16373
16374   for ac_prog in gawk mawk nawk awk
16375 do
16376   # Extract the first word of "$ac_prog", so it can be a program name with args.
16377 set dummy $ac_prog; ac_word=$2
16378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16380 if test "${ac_cv_prog_AWK+set}" = set; then
16381   echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383   if test -n "$AWK"; then
16384   ac_cv_prog_AWK="$AWK" # Let the user override the test.
16385 else
16386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16387 for as_dir in $PATH
16388 do
16389   IFS=$as_save_IFS
16390   test -z "$as_dir" && as_dir=.
16391   for ac_exec_ext in '' $ac_executable_extensions; do
16392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16393     ac_cv_prog_AWK="$ac_prog"
16394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16395     break 2
16396   fi
16397 done
16398 done
16399 IFS=$as_save_IFS
16400
16401 fi
16402 fi
16403 AWK=$ac_cv_prog_AWK
16404 if test -n "$AWK"; then
16405   { echo "$as_me:$LINENO: result: $AWK" >&5
16406 echo "${ECHO_T}$AWK" >&6; }
16407 else
16408   { echo "$as_me:$LINENO: result: no" >&5
16409 echo "${ECHO_T}no" >&6; }
16410 fi
16411
16412
16413   test -n "$AWK" && break
16414 done
16415
16416
16417   # Used to indicate true or false condition
16418   ax_compare_version=false
16419
16420   # Convert the two version strings to be compared into a format that
16421   # allows a simple string comparison.  The end result is that a version
16422   # string of the form 1.12.5-r617 will be converted to the form
16423   # 0001001200050617.  In other words, each number is zero padded to four
16424   # digits, and non digits are removed.
16425
16426   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16427                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16428                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16429                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16430                      -e 's/[^0-9]//g'`
16431
16432
16433   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16434                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16435                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16436                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16437                      -e 's/[^0-9]//g'`
16438
16439
16440
16441
16442     # Pad zeros at end of numbers to make same length.
16443     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16444     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16445     ax_compare_version_A="$ax_compare_version_tmp_A"
16446
16447     # Check for equality or inequality as necessary.
16448
16449       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16450
16451
16452
16453
16454     if test "$ax_compare_version" = "true" ; then
16455
16456       ax_path_bdb_env_confirm_lib_ok=yes
16457
16458       fi
16459
16460
16461 else
16462   echo "$as_me: program exited with status $ac_status" >&5
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16465
16466 fi
16467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16468 fi
16469
16470
16471
16472     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16473
16474
16475     fi
16476
16477     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16478       # try format "dbX.Y"
16479       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
16480
16481     ax_path_bdb_env_confirm_lib_ok=no
16482
16483     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16484   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16485
16486   # Compile and run a program that compares the version defined in
16487   # the header file with a version defined in the library function
16488   # db_version.
16489   if test "$cross_compiling" = yes; then
16490   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16491 See \`config.log' for more details." >&5
16492 echo "$as_me: error: cannot run test program while cross compiling
16493 See \`config.log' for more details." >&2;}
16494    { (exit 1); exit 1; }; }
16495 else
16496   cat >conftest.$ac_ext <<_ACEOF
16497
16498     /* confdefs.h.  */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h.  */
16503
16504 #include <stdio.h>
16505 #include <db.h>
16506 int main(int argc,char **argv)
16507 {
16508   int major,minor,patch;
16509   (void) argv;
16510   db_version(&major,&minor,&patch);
16511   if (argc > 1)
16512     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16513   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16514       DB_VERSION_PATCH == patch)
16515     return 0;
16516   else
16517     return 1;
16518 }
16519
16520
16521 _ACEOF
16522 rm -f conftest$ac_exeext
16523 if { (ac_try="$ac_link"
16524 case "(($ac_try" in
16525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526   *) ac_try_echo=$ac_try;;
16527 esac
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529   (eval "$ac_link") 2>&5
16530   ac_status=$?
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16533   { (case "(($ac_try" in
16534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535   *) ac_try_echo=$ac_try;;
16536 esac
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538   (eval "$ac_try") 2>&5
16539   ac_status=$?
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); }; }; then
16542
16543     # Program compiled and ran, so get version by giving an argument,
16544     # which will tell the program to print the output.
16545     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16546
16547     # If the versions all match up, indicate success.
16548
16549   for ac_prog in gawk mawk nawk awk
16550 do
16551   # Extract the first word of "$ac_prog", so it can be a program name with args.
16552 set dummy $ac_prog; ac_word=$2
16553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16555 if test "${ac_cv_prog_AWK+set}" = set; then
16556   echo $ECHO_N "(cached) $ECHO_C" >&6
16557 else
16558   if test -n "$AWK"; then
16559   ac_cv_prog_AWK="$AWK" # Let the user override the test.
16560 else
16561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16562 for as_dir in $PATH
16563 do
16564   IFS=$as_save_IFS
16565   test -z "$as_dir" && as_dir=.
16566   for ac_exec_ext in '' $ac_executable_extensions; do
16567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16568     ac_cv_prog_AWK="$ac_prog"
16569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16570     break 2
16571   fi
16572 done
16573 done
16574 IFS=$as_save_IFS
16575
16576 fi
16577 fi
16578 AWK=$ac_cv_prog_AWK
16579 if test -n "$AWK"; then
16580   { echo "$as_me:$LINENO: result: $AWK" >&5
16581 echo "${ECHO_T}$AWK" >&6; }
16582 else
16583   { echo "$as_me:$LINENO: result: no" >&5
16584 echo "${ECHO_T}no" >&6; }
16585 fi
16586
16587
16588   test -n "$AWK" && break
16589 done
16590
16591
16592   # Used to indicate true or false condition
16593   ax_compare_version=false
16594
16595   # Convert the two version strings to be compared into a format that
16596   # allows a simple string comparison.  The end result is that a version
16597   # string of the form 1.12.5-r617 will be converted to the form
16598   # 0001001200050617.  In other words, each number is zero padded to four
16599   # digits, and non digits are removed.
16600
16601   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16602                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16603                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16604                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16605                      -e 's/[^0-9]//g'`
16606
16607
16608   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16609                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16610                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16611                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16612                      -e 's/[^0-9]//g'`
16613
16614
16615
16616
16617     # Pad zeros at end of numbers to make same length.
16618     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16619     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16620     ax_compare_version_A="$ax_compare_version_tmp_A"
16621
16622     # Check for equality or inequality as necessary.
16623
16624       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16625
16626
16627
16628
16629     if test "$ax_compare_version" = "true" ; then
16630
16631       ax_path_bdb_env_confirm_lib_ok=yes
16632
16633       fi
16634
16635
16636 else
16637   echo "$as_me: program exited with status $ac_status" >&5
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16640
16641 fi
16642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16643 fi
16644
16645
16646
16647     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16648
16649
16650     fi
16651
16652     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16653       # try format "dbXY"
16654       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR$ax_path_bdb_env_get_version_MINOR"
16655
16656     ax_path_bdb_env_confirm_lib_ok=no
16657
16658     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16659   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16660
16661   # Compile and run a program that compares the version defined in
16662   # the header file with a version defined in the library function
16663   # db_version.
16664   if test "$cross_compiling" = yes; then
16665   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16666 See \`config.log' for more details." >&5
16667 echo "$as_me: error: cannot run test program while cross compiling
16668 See \`config.log' for more details." >&2;}
16669    { (exit 1); exit 1; }; }
16670 else
16671   cat >conftest.$ac_ext <<_ACEOF
16672
16673     /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678
16679 #include <stdio.h>
16680 #include <db.h>
16681 int main(int argc,char **argv)
16682 {
16683   int major,minor,patch;
16684   (void) argv;
16685   db_version(&major,&minor,&patch);
16686   if (argc > 1)
16687     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16688   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16689       DB_VERSION_PATCH == patch)
16690     return 0;
16691   else
16692     return 1;
16693 }
16694
16695
16696 _ACEOF
16697 rm -f conftest$ac_exeext
16698 if { (ac_try="$ac_link"
16699 case "(($ac_try" in
16700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701   *) ac_try_echo=$ac_try;;
16702 esac
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704   (eval "$ac_link") 2>&5
16705   ac_status=$?
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16708   { (case "(($ac_try" in
16709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710   *) ac_try_echo=$ac_try;;
16711 esac
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713   (eval "$ac_try") 2>&5
16714   ac_status=$?
16715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); }; }; then
16717
16718     # Program compiled and ran, so get version by giving an argument,
16719     # which will tell the program to print the output.
16720     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16721
16722     # If the versions all match up, indicate success.
16723
16724   for ac_prog in gawk mawk nawk awk
16725 do
16726   # Extract the first word of "$ac_prog", so it can be a program name with args.
16727 set dummy $ac_prog; ac_word=$2
16728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16730 if test "${ac_cv_prog_AWK+set}" = set; then
16731   echo $ECHO_N "(cached) $ECHO_C" >&6
16732 else
16733   if test -n "$AWK"; then
16734   ac_cv_prog_AWK="$AWK" # Let the user override the test.
16735 else
16736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16737 for as_dir in $PATH
16738 do
16739   IFS=$as_save_IFS
16740   test -z "$as_dir" && as_dir=.
16741   for ac_exec_ext in '' $ac_executable_extensions; do
16742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16743     ac_cv_prog_AWK="$ac_prog"
16744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16745     break 2
16746   fi
16747 done
16748 done
16749 IFS=$as_save_IFS
16750
16751 fi
16752 fi
16753 AWK=$ac_cv_prog_AWK
16754 if test -n "$AWK"; then
16755   { echo "$as_me:$LINENO: result: $AWK" >&5
16756 echo "${ECHO_T}$AWK" >&6; }
16757 else
16758   { echo "$as_me:$LINENO: result: no" >&5
16759 echo "${ECHO_T}no" >&6; }
16760 fi
16761
16762
16763   test -n "$AWK" && break
16764 done
16765
16766
16767   # Used to indicate true or false condition
16768   ax_compare_version=false
16769
16770   # Convert the two version strings to be compared into a format that
16771   # allows a simple string comparison.  The end result is that a version
16772   # string of the form 1.12.5-r617 will be converted to the form
16773   # 0001001200050617.  In other words, each number is zero padded to four
16774   # digits, and non digits are removed.
16775
16776   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16777                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16778                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16779                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16780                      -e 's/[^0-9]//g'`
16781
16782
16783   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16784                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16785                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16786                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16787                      -e 's/[^0-9]//g'`
16788
16789
16790
16791
16792     # Pad zeros at end of numbers to make same length.
16793     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16794     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16795     ax_compare_version_A="$ax_compare_version_tmp_A"
16796
16797     # Check for equality or inequality as necessary.
16798
16799       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16800
16801
16802
16803
16804     if test "$ax_compare_version" = "true" ; then
16805
16806       ax_path_bdb_env_confirm_lib_ok=yes
16807
16808       fi
16809
16810
16811 else
16812   echo "$as_me: program exited with status $ac_status" >&5
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16815
16816 fi
16817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16818 fi
16819
16820
16821
16822     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16823
16824
16825     fi
16826
16827     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16828       # try format "db-X"
16829       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-$ax_path_bdb_env_get_version_MAJOR"
16830
16831     ax_path_bdb_env_confirm_lib_ok=no
16832
16833     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16834   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16835
16836   # Compile and run a program that compares the version defined in
16837   # the header file with a version defined in the library function
16838   # db_version.
16839   if test "$cross_compiling" = yes; then
16840   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16841 See \`config.log' for more details." >&5
16842 echo "$as_me: error: cannot run test program while cross compiling
16843 See \`config.log' for more details." >&2;}
16844    { (exit 1); exit 1; }; }
16845 else
16846   cat >conftest.$ac_ext <<_ACEOF
16847
16848     /* confdefs.h.  */
16849 _ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h.  */
16853
16854 #include <stdio.h>
16855 #include <db.h>
16856 int main(int argc,char **argv)
16857 {
16858   int major,minor,patch;
16859   (void) argv;
16860   db_version(&major,&minor,&patch);
16861   if (argc > 1)
16862     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16863   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16864       DB_VERSION_PATCH == patch)
16865     return 0;
16866   else
16867     return 1;
16868 }
16869
16870
16871 _ACEOF
16872 rm -f conftest$ac_exeext
16873 if { (ac_try="$ac_link"
16874 case "(($ac_try" in
16875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876   *) ac_try_echo=$ac_try;;
16877 esac
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879   (eval "$ac_link") 2>&5
16880   ac_status=$?
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16883   { (case "(($ac_try" in
16884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885   *) ac_try_echo=$ac_try;;
16886 esac
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888   (eval "$ac_try") 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); }; }; then
16892
16893     # Program compiled and ran, so get version by giving an argument,
16894     # which will tell the program to print the output.
16895     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16896
16897     # If the versions all match up, indicate success.
16898
16899   for ac_prog in gawk mawk nawk awk
16900 do
16901   # Extract the first word of "$ac_prog", so it can be a program name with args.
16902 set dummy $ac_prog; ac_word=$2
16903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16905 if test "${ac_cv_prog_AWK+set}" = set; then
16906   echo $ECHO_N "(cached) $ECHO_C" >&6
16907 else
16908   if test -n "$AWK"; then
16909   ac_cv_prog_AWK="$AWK" # Let the user override the test.
16910 else
16911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16912 for as_dir in $PATH
16913 do
16914   IFS=$as_save_IFS
16915   test -z "$as_dir" && as_dir=.
16916   for ac_exec_ext in '' $ac_executable_extensions; do
16917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16918     ac_cv_prog_AWK="$ac_prog"
16919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16920     break 2
16921   fi
16922 done
16923 done
16924 IFS=$as_save_IFS
16925
16926 fi
16927 fi
16928 AWK=$ac_cv_prog_AWK
16929 if test -n "$AWK"; then
16930   { echo "$as_me:$LINENO: result: $AWK" >&5
16931 echo "${ECHO_T}$AWK" >&6; }
16932 else
16933   { echo "$as_me:$LINENO: result: no" >&5
16934 echo "${ECHO_T}no" >&6; }
16935 fi
16936
16937
16938   test -n "$AWK" && break
16939 done
16940
16941
16942   # Used to indicate true or false condition
16943   ax_compare_version=false
16944
16945   # Convert the two version strings to be compared into a format that
16946   # allows a simple string comparison.  The end result is that a version
16947   # string of the form 1.12.5-r617 will be converted to the form
16948   # 0001001200050617.  In other words, each number is zero padded to four
16949   # digits, and non digits are removed.
16950
16951   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16952                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16953                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16954                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16955                      -e 's/[^0-9]//g'`
16956
16957
16958   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16959                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16960                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16961                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16962                      -e 's/[^0-9]//g'`
16963
16964
16965
16966
16967     # Pad zeros at end of numbers to make same length.
16968     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16969     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16970     ax_compare_version_A="$ax_compare_version_tmp_A"
16971
16972     # Check for equality or inequality as necessary.
16973
16974       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16975
16976
16977
16978
16979     if test "$ax_compare_version" = "true" ; then
16980
16981       ax_path_bdb_env_confirm_lib_ok=yes
16982
16983       fi
16984
16985
16986 else
16987   echo "$as_me: program exited with status $ac_status" >&5
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16990
16991 fi
16992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16993 fi
16994
16995
16996
16997     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16998
16999
17000     fi
17001
17002     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
17003       # try format "dbX"
17004       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
17005
17006     ax_path_bdb_env_confirm_lib_ok=no
17007
17008     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
17009   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
17010
17011   # Compile and run a program that compares the version defined in
17012   # the header file with a version defined in the library function
17013   # db_version.
17014   if test "$cross_compiling" = yes; then
17015   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17016 See \`config.log' for more details." >&5
17017 echo "$as_me: error: cannot run test program while cross compiling
17018 See \`config.log' for more details." >&2;}
17019    { (exit 1); exit 1; }; }
17020 else
17021   cat >conftest.$ac_ext <<_ACEOF
17022
17023     /* confdefs.h.  */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h.  */
17028
17029 #include <stdio.h>
17030 #include <db.h>
17031 int main(int argc,char **argv)
17032 {
17033   int major,minor,patch;
17034   (void) argv;
17035   db_version(&major,&minor,&patch);
17036   if (argc > 1)
17037     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
17038   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
17039       DB_VERSION_PATCH == patch)
17040     return 0;
17041   else
17042     return 1;
17043 }
17044
17045
17046 _ACEOF
17047 rm -f conftest$ac_exeext
17048 if { (ac_try="$ac_link"
17049 case "(($ac_try" in
17050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051   *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054   (eval "$ac_link") 2>&5
17055   ac_status=$?
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17058   { (case "(($ac_try" in
17059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060   *) ac_try_echo=$ac_try;;
17061 esac
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063   (eval "$ac_try") 2>&5
17064   ac_status=$?
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); }; }; then
17067
17068     # Program compiled and ran, so get version by giving an argument,
17069     # which will tell the program to print the output.
17070     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
17071
17072     # If the versions all match up, indicate success.
17073
17074   for ac_prog in gawk mawk nawk awk
17075 do
17076   # Extract the first word of "$ac_prog", so it can be a program name with args.
17077 set dummy $ac_prog; ac_word=$2
17078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17080 if test "${ac_cv_prog_AWK+set}" = set; then
17081   echo $ECHO_N "(cached) $ECHO_C" >&6
17082 else
17083   if test -n "$AWK"; then
17084   ac_cv_prog_AWK="$AWK" # Let the user override the test.
17085 else
17086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17087 for as_dir in $PATH
17088 do
17089   IFS=$as_save_IFS
17090   test -z "$as_dir" && as_dir=.
17091   for ac_exec_ext in '' $ac_executable_extensions; do
17092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17093     ac_cv_prog_AWK="$ac_prog"
17094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17095     break 2
17096   fi
17097 done
17098 done
17099 IFS=$as_save_IFS
17100
17101 fi
17102 fi
17103 AWK=$ac_cv_prog_AWK
17104 if test -n "$AWK"; then
17105   { echo "$as_me:$LINENO: result: $AWK" >&5
17106 echo "${ECHO_T}$AWK" >&6; }
17107 else
17108   { echo "$as_me:$LINENO: result: no" >&5
17109 echo "${ECHO_T}no" >&6; }
17110 fi
17111
17112
17113   test -n "$AWK" && break
17114 done
17115
17116
17117   # Used to indicate true or false condition
17118   ax_compare_version=false
17119
17120   # Convert the two version strings to be compared into a format that
17121   # allows a simple string comparison.  The end result is that a version
17122   # string of the form 1.12.5-r617 will be converted to the form
17123   # 0001001200050617.  In other words, each number is zero padded to four
17124   # digits, and non digits are removed.
17125
17126   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17127                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17128                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17129                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17130                      -e 's/[^0-9]//g'`
17131
17132
17133   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17134                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17135                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17136                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17137                      -e 's/[^0-9]//g'`
17138
17139
17140
17141
17142     # Pad zeros at end of numbers to make same length.
17143     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
17144     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
17145     ax_compare_version_A="$ax_compare_version_tmp_A"
17146
17147     # Check for equality or inequality as necessary.
17148
17149       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
17150
17151
17152
17153
17154     if test "$ax_compare_version" = "true" ; then
17155
17156       ax_path_bdb_env_confirm_lib_ok=yes
17157
17158       fi
17159
17160
17161 else
17162   echo "$as_me: program exited with status $ac_status" >&5
17163 echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17165
17166 fi
17167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17168 fi
17169
17170
17171
17172     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
17173
17174
17175     fi
17176
17177         if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
17178       if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x" ; then
17179         { echo "$as_me:$LINENO: result: none required" >&5
17180 echo "${ECHO_T}none required" >&6; }
17181       else
17182         { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_TEST_LIBNAME" >&5
17183 echo "${ECHO_T}$ax_path_bdb_env_get_version_TEST_LIBNAME" >&6; }
17184       fi
17185       ax_path_bdb_env_get_version_VERSION="$ax_path_bdb_env_get_version_HEADER_VERSION"
17186       ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_version_TEST_LIBNAME"
17187       ax_path_bdb_env_get_version_ok=yes
17188     else
17189       { echo "$as_me:$LINENO: result: no" >&5
17190 echo "${ECHO_T}no" >&6; }
17191     fi
17192
17193           fi
17194
17195
17196     if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
17197
17198
17199   for ac_prog in gawk mawk nawk awk
17200 do
17201   # Extract the first word of "$ac_prog", so it can be a program name with args.
17202 set dummy $ac_prog; ac_word=$2
17203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17205 if test "${ac_cv_prog_AWK+set}" = set; then
17206   echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208   if test -n "$AWK"; then
17209   ac_cv_prog_AWK="$AWK" # Let the user override the test.
17210 else
17211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17212 for as_dir in $PATH
17213 do
17214   IFS=$as_save_IFS
17215   test -z "$as_dir" && as_dir=.
17216   for ac_exec_ext in '' $ac_executable_extensions; do
17217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17218     ac_cv_prog_AWK="$ac_prog"
17219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17220     break 2
17221   fi
17222 done
17223 done
17224 IFS=$as_save_IFS
17225
17226 fi
17227 fi
17228 AWK=$ac_cv_prog_AWK
17229 if test -n "$AWK"; then
17230   { echo "$as_me:$LINENO: result: $AWK" >&5
17231 echo "${ECHO_T}$AWK" >&6; }
17232 else
17233   { echo "$as_me:$LINENO: result: no" >&5
17234 echo "${ECHO_T}no" >&6; }
17235 fi
17236
17237
17238   test -n "$AWK" && break
17239 done
17240
17241
17242   # Used to indicate true or false condition
17243   ax_compare_version=false
17244
17245   # Convert the two version strings to be compared into a format that
17246   # allows a simple string comparison.  The end result is that a version
17247   # string of the form 1.12.5-r617 will be converted to the form
17248   # 0001001200050617.  In other words, each number is zero padded to four
17249   # digits, and non digits are removed.
17250
17251   ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17252                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17253                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17254                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17255                      -e 's/[^0-9]//g'`
17256
17257
17258   ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17259                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17260                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17261                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17262                      -e 's/[^0-9]//g'`
17263
17264
17265     ax_compare_version=`echo "x$ax_compare_version_A
17266 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
17267
17268
17269
17270     if test "$ax_compare_version" = "true" ; then
17271
17272         # Found acceptable version in current environment.
17273         ax_path_bdb_no_options_ok=yes
17274         BDB_VERSION="$ax_path_bdb_env_get_version_VERSION"
17275         BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
17276
17277       fi
17278
17279
17280       fi
17281
17282
17283
17284     # Determine if we need to search /usr/local/BerkeleyDB*
17285     ax_path_bdb_no_options_DONE=no
17286     if test "xENVONLY" = "xENVONLY" ; then
17287       ax_path_bdb_no_options_DONE=yes
17288     elif test "xENVONLY" = "xENVFIRST" ; then
17289       ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
17290     fi
17291
17292     if test "$ax_path_bdb_no_options_DONE" = "no" ; then
17293       # Check for highest in /usr/local/BerkeleyDB*
17294
17295     ax_path_bdb_path_find_highest_ok=no
17296
17297     ax_path_bdb_path_find_highest_VERSION=''
17298
17299   ax_path_bdb_path_find_highest_DIR=''
17300
17301   # find highest verison in default install directory for Berkeley DB
17302
17303   for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/local/BerkeleyDB* 2> /dev/null`
17304   do
17305
17306     ax_path_bdb_path_get_version_ok=no
17307
17308   # Indicate status of checking for Berkeley DB header.
17309   { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5
17310 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h... $ECHO_C" >&6; }
17311   ax_path_bdb_path_get_version_got_header=no
17312   test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" && ax_path_bdb_path_get_version_got_header=yes
17313   { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_got_header" >&5
17314 echo "${ECHO_T}$ax_path_bdb_path_get_version_got_header" >&6; }
17315
17316   # Indicate status of checking for Berkeley DB library.
17317   { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
17318 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb... $ECHO_C" >&6; }
17319
17320   ax_path_bdb_path_get_version_VERSION=''
17321
17322   if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" && test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
17323      test "$ax_path_bdb_path_get_version_got_header" = "yes" ; then
17324         ax_path_bdb_path_get_version_save_CPPFLAGS="$CPPFLAGS"
17325     CPPFLAGS="-I$ax_path_bdb_path_find_highest_CURDIR/include $CPPFLAGS"
17326
17327     ax_path_bdb_path_get_version_save_LIBS="$LIBS"
17328     LIBS="$LIBS -ldb"
17329
17330     ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
17331     LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LDFLAGS"
17332
17333     # Compile and run a program that compares the version defined in
17334     # the header file with a version defined in the library function
17335     # db_version.
17336     if test "$cross_compiling" = yes; then
17337   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17338 See \`config.log' for more details." >&5
17339 echo "$as_me: error: cannot run test program while cross compiling
17340 See \`config.log' for more details." >&2;}
17341    { (exit 1); exit 1; }; }
17342 else
17343   cat >conftest.$ac_ext <<_ACEOF
17344
17345       /* confdefs.h.  */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h.  */
17350
17351 #include <stdio.h>
17352 #include <db.h>
17353 int main(int argc,char **argv)
17354 {
17355   int major,minor,patch;
17356   (void) argv;
17357   db_version(&major,&minor,&patch);
17358   if (argc > 1)
17359     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
17360   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
17361       DB_VERSION_PATCH == patch)
17362     return 0;
17363   else
17364     return 1;
17365 }
17366
17367
17368 _ACEOF
17369 rm -f conftest$ac_exeext
17370 if { (ac_try="$ac_link"
17371 case "(($ac_try" in
17372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373   *) ac_try_echo=$ac_try;;
17374 esac
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376   (eval "$ac_link") 2>&5
17377   ac_status=$?
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17380   { (case "(($ac_try" in
17381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382   *) ac_try_echo=$ac_try;;
17383 esac
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385   (eval "$ac_try") 2>&5
17386   ac_status=$?
17387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388   (exit $ac_status); }; }; then
17389
17390       # Program compiled and ran, so get version by adding argument.
17391       ax_path_bdb_path_get_version_VERSION=`./conftest$ac_exeext x`
17392       ax_path_bdb_path_get_version_ok=yes
17393
17394 else
17395   echo "$as_me: program exited with status $ac_status" >&5
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17398
17399 fi
17400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17401 fi
17402
17403
17404
17405         CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
17406     LIBS="$ax_path_bdb_path_get_version_save_LIBS"
17407     LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
17408   fi
17409
17410     if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
17411     { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_VERSION" >&5
17412 echo "${ECHO_T}$ax_path_bdb_path_get_version_VERSION" >&6; }
17413
17414
17415   for ac_prog in gawk mawk nawk awk
17416 do
17417   # Extract the first word of "$ac_prog", so it can be a program name with args.
17418 set dummy $ac_prog; ac_word=$2
17419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17421 if test "${ac_cv_prog_AWK+set}" = set; then
17422   echo $ECHO_N "(cached) $ECHO_C" >&6
17423 else
17424   if test -n "$AWK"; then
17425   ac_cv_prog_AWK="$AWK" # Let the user override the test.
17426 else
17427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17428 for as_dir in $PATH
17429 do
17430   IFS=$as_save_IFS
17431   test -z "$as_dir" && as_dir=.
17432   for ac_exec_ext in '' $ac_executable_extensions; do
17433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17434     ac_cv_prog_AWK="$ac_prog"
17435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17436     break 2
17437   fi
17438 done
17439 done
17440 IFS=$as_save_IFS
17441
17442 fi
17443 fi
17444 AWK=$ac_cv_prog_AWK
17445 if test -n "$AWK"; then
17446   { echo "$as_me:$LINENO: result: $AWK" >&5
17447 echo "${ECHO_T}$AWK" >&6; }
17448 else
17449   { echo "$as_me:$LINENO: result: no" >&5
17450 echo "${ECHO_T}no" >&6; }
17451 fi
17452
17453
17454   test -n "$AWK" && break
17455 done
17456
17457
17458   # Used to indicate true or false condition
17459   ax_compare_version=false
17460
17461   # Convert the two version strings to be compared into a format that
17462   # allows a simple string comparison.  The end result is that a version
17463   # string of the form 1.12.5-r617 will be converted to the form
17464   # 0001001200050617.  In other words, each number is zero padded to four
17465   # digits, and non digits are removed.
17466
17467   ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17468                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17469                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17470                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17471                      -e 's/[^0-9]//g'`
17472
17473
17474   ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17475                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17476                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17477                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17478                      -e 's/[^0-9]//g'`
17479
17480
17481     ax_compare_version=`echo "x$ax_compare_version_A
17482 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
17483
17484
17485
17486     if test "$ax_compare_version" = "true" ; then
17487
17488         ax_path_bdb_path_find_highest_ok=yes
17489         ax_path_bdb_path_find_highest_DIR="$ax_path_bdb_path_find_highest_CURDIR"
17490         ax_path_bdb_path_find_highest_VERSION="$ax_path_bdb_path_get_version_VERSION"
17491
17492       fi
17493
17494
17495   else
17496     { echo "$as_me:$LINENO: result: no" >&5
17497 echo "${ECHO_T}no" >&6; }
17498       fi
17499
17500   done
17501
17502
17503     if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
17504
17505         if test "$ax_path_bdb_no_options_ok" = "yes" ; then
17506         # If we already have an acceptable version use this if higher.
17507
17508   for ac_prog in gawk mawk nawk awk
17509 do
17510   # Extract the first word of "$ac_prog", so it can be a program name with args.
17511 set dummy $ac_prog; ac_word=$2
17512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17514 if test "${ac_cv_prog_AWK+set}" = set; then
17515   echo $ECHO_N "(cached) $ECHO_C" >&6
17516 else
17517   if test -n "$AWK"; then
17518   ac_cv_prog_AWK="$AWK" # Let the user override the test.
17519 else
17520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17521 for as_dir in $PATH
17522 do
17523   IFS=$as_save_IFS
17524   test -z "$as_dir" && as_dir=.
17525   for ac_exec_ext in '' $ac_executable_extensions; do
17526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17527     ac_cv_prog_AWK="$ac_prog"
17528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17529     break 2
17530   fi
17531 done
17532 done
17533 IFS=$as_save_IFS
17534
17535 fi
17536 fi
17537 AWK=$ac_cv_prog_AWK
17538 if test -n "$AWK"; then
17539   { echo "$as_me:$LINENO: result: $AWK" >&5
17540 echo "${ECHO_T}$AWK" >&6; }
17541 else
17542   { echo "$as_me:$LINENO: result: no" >&5
17543 echo "${ECHO_T}no" >&6; }
17544 fi
17545
17546
17547   test -n "$AWK" && break
17548 done
17549
17550
17551   # Used to indicate true or false condition
17552   ax_compare_version=false
17553
17554   # Convert the two version strings to be compared into a format that
17555   # allows a simple string comparison.  The end result is that a version
17556   # string of the form 1.12.5-r617 will be converted to the form
17557   # 0001001200050617.  In other words, each number is zero padded to four
17558   # digits, and non digits are removed.
17559
17560   ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17561                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17562                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17563                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17564                      -e 's/[^0-9]//g'`
17565
17566
17567   ax_compare_version_B=`echo "$BDB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17568                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17569                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17570                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17571                      -e 's/[^0-9]//g'`
17572
17573
17574     ax_compare_version=`echo "x$ax_compare_version_A
17575 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
17576
17577
17578
17579     if test "$ax_compare_version" = "true" ; then
17580     :
17581       fi
17582
17583         else
17584           # Since we didn't have an acceptable version check if this one is.
17585
17586   for ac_prog in gawk mawk nawk awk
17587 do
17588   # Extract the first word of "$ac_prog", so it can be a program name with args.
17589 set dummy $ac_prog; ac_word=$2
17590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17592 if test "${ac_cv_prog_AWK+set}" = set; then
17593   echo $ECHO_N "(cached) $ECHO_C" >&6
17594 else
17595   if test -n "$AWK"; then
17596   ac_cv_prog_AWK="$AWK" # Let the user override the test.
17597 else
17598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17599 for as_dir in $PATH
17600 do
17601   IFS=$as_save_IFS
17602   test -z "$as_dir" && as_dir=.
17603   for ac_exec_ext in '' $ac_executable_extensions; do
17604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17605     ac_cv_prog_AWK="$ac_prog"
17606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17607     break 2
17608   fi
17609 done
17610 done
17611 IFS=$as_save_IFS
17612
17613 fi
17614 fi
17615 AWK=$ac_cv_prog_AWK
17616 if test -n "$AWK"; then
17617   { echo "$as_me:$LINENO: result: $AWK" >&5
17618 echo "${ECHO_T}$AWK" >&6; }
17619 else
17620   { echo "$as_me:$LINENO: result: no" >&5
17621 echo "${ECHO_T}no" >&6; }
17622 fi
17623
17624
17625   test -n "$AWK" && break
17626 done
17627
17628
17629   # Used to indicate true or false condition
17630   ax_compare_version=false
17631
17632   # Convert the two version strings to be compared into a format that
17633   # allows a simple string comparison.  The end result is that a version
17634   # string of the form 1.12.5-r617 will be converted to the form
17635   # 0001001200050617.  In other words, each number is zero padded to four
17636   # digits, and non digits are removed.
17637
17638   ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17639                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17640                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17641                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17642                      -e 's/[^0-9]//g'`
17643
17644
17645   ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17646                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17647                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17648                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17649                      -e 's/[^0-9]//g'`
17650
17651
17652     ax_compare_version=`echo "x$ax_compare_version_A
17653 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
17654
17655
17656
17657     if test "$ax_compare_version" = "true" ; then
17658     :
17659       fi
17660
17661         fi
17662
17663       fi
17664
17665
17666
17667             if test "$ax_compare_version" = "true" ; then
17668         ax_path_bdb_no_options_ok=yes
17669         BDB_LIBS="-ldb"
17670         if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
17671           BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
17672           BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
17673         fi
17674         BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
17675       fi
17676     fi
17677   fi
17678
17679     if test "$ax_path_bdb_no_options_ok" = "yes" ; then
17680     { echo "$as_me:$LINENO: using Berkeley DB version $BDB_VERSION" >&5
17681 echo "$as_me: using Berkeley DB version $BDB_VERSION" >&6;}
17682
17683 cat >>confdefs.h <<\_ACEOF
17684 #define HAVE_DB_H 1
17685 _ACEOF
17686
17687
17688          ax_path_bdb_ok=yes
17689          BDB_CPPFLAGS="-I$ax_path_bdb_INC"
17690          BDB_LDFLAGS="-L$ax_path_bdb_LIB"
17691
17692   else
17693     { echo "$as_me:$LINENO: no Berkeley DB version 3 or higher found" >&5
17694 echo "$as_me: no Berkeley DB version 3 or higher found" >&6;}
17695       fi
17696
17697      else
17698        { echo "$as_me:$LINENO: result: no" >&5
17699 echo "${ECHO_T}no" >&6; }
17700        { echo "$as_me:$LINENO: no usable Berkeley DB not found" >&5
17701 echo "$as_me: no usable Berkeley DB not found" >&6;}
17702      fi
17703
17704           CPPFLAGS="$ax_path_bdb_save_CPPFLAGS"
17705      LDFLAGS="$ax_path_bdb_save_LDFLAGS"
17706
17707   fi
17708
17709     if test "$ax_path_bdb_ok" = "yes" ; then
17710
17711    support_libdb=yes
17712
17713       fi
17714
17715
17716 fi
17717
17718 if test x$support_libdb = xyes; then
17719
17720 cat >>confdefs.h <<\_ACEOF
17721 #define USE_DB 1
17722 _ACEOF
17723
17724
17725
17726 fi
17727
17728 # -------------------------------------------
17729 # gnome (default off)
17730 # -------------------------------------------
17731 # Check whether --enable-gnome was given.
17732 if test "${enable_gnome+set}" = set; then
17733   enableval=$enable_gnome; if test x$enableval = xyes; then
17734     support_gnome=yes
17735   fi
17736 fi
17737
17738
17739 GNOME_DIR=
17740 if test x$support_gnome = xyes; then
17741   abc=`$PKGCONFIG --exists libgnomeui-2.0`
17742   pkg=$?
17743   if test $pkg = 0; then
17744      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
17745      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
17746      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
17747      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
17748
17749
17750
17751
17752      GNOME_DIR=src/gnome2-console
17753      gnome_version="Version 2.x"
17754   else
17755      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
17756 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
17757    { (exit 1); exit 1; }; }
17758   fi
17759 fi
17760
17761
17762 # -------------------------------------------
17763 # bat (default off)
17764 # -------------------------------------------
17765 # Check whether --enable-bat was given.
17766 if test "${enable_bat+set}" = set; then
17767   enableval=$enable_bat; if test x$enableval = xyes; then
17768
17769 cat >>confdefs.h <<\_ACEOF
17770 #define HAVE_BAT 1
17771 _ACEOF
17772
17773     support_bat=yes
17774   fi
17775 fi
17776
17777
17778 BAT_DIR=
17779 if test x$support_bat = xyes; then
17780   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
17781   pkg=$?
17782   if test $pkg = 0; then
17783      BAT_DIR=src/qt-console
17784   else
17785      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
17786 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
17787    { (exit 1); exit 1; }; }
17788   fi
17789 fi
17790
17791 #
17792 #  If bat is enabled, we need the qwt library
17793 got_qwt=no
17794 QWT_INC=
17795 QWT_LDFLAGS=
17796 QWT_LIB=
17797 QWT=
17798 no_qwt=no
17799 if test x$support_bat = xyes; then
17800    { echo "$as_me:$LINENO: checking for qwt support" >&5
17801 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
17802
17803 # Check whether --with-qwt was given.
17804 if test "${with_qwt+set}" = set; then
17805   withval=$with_qwt;
17806         case "$with_qwt" in
17807         no)
17808            no_qwt=yes
17809           ;;
17810         yes|*)
17811           if test -f ${with_qwt}/include/qwt.h; then
17812              QWT_INC="${with_qwt}/include"
17813              QWT_LDFLAGS="-L${with_qwt}/lib"
17814              QWT_LIB="-lqwt"
17815              QWT="qwt"
17816           fi
17817           ;;
17818         esac
17819
17820
17821 fi
17822
17823 #
17824 # Search in standard places, or --with-qwt not specified
17825 #
17826    if test $no_qwt = no; then
17827     if test x$QWT_INC = x; then
17828       for root in /usr /usr/local; do
17829          for ver in qwt qwt5 qwt-qt4; do
17830             if test -f ${root}/include/${ver}/qwt.h; then
17831                QWT_INC="${root}/include/${ver}"
17832                if test -d ${root}/lib64/; then
17833                   QWT_LDFLAGS="-L${root}/lib64"
17834                else
17835                   QWT_LDFLAGS="-L${root}/lib"
17836                fi
17837                QWT_LIB="-lqwt"
17838                QWT="qwt"
17839                got_qwt=yes
17840                break;
17841             fi
17842          done
17843       done
17844     fi
17845    fi
17846    if test x$QWT_INC = x; then
17847       { echo "$as_me:$LINENO: result: no" >&5
17848 echo "${ECHO_T}no" >&6; }
17849    else
17850
17851 cat >>confdefs.h <<\_ACEOF
17852 #define HAVE_QWT 1
17853 _ACEOF
17854
17855       { echo "$as_me:$LINENO: result: yes" >&5
17856 echo "${ECHO_T}yes" >&6; }
17857    fi
17858 fi
17859
17860
17861
17862
17863
17864
17865
17866
17867 # -------------------------------------------
17868 # bwx-console (default off)
17869 # -------------------------------------------
17870 # Check whether --enable-bwx-console was given.
17871 if test "${enable_bwx_console+set}" = set; then
17872   enableval=$enable_bwx_console; if test x$enableval = xyes; then
17873     support_wx_console=yes
17874   fi
17875 fi
17876
17877
17878 WX_DIR=
17879 if test x$support_wx_console = xyes; then
17880   abc=`$WXCONFIG $WXFLAGS --cppflags`
17881   pkg=$?
17882   if test $pkg = 0; then
17883      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
17884      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
17885      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
17886
17887
17888
17889      WX_DIR=src/wx-console
17890   else
17891      echo " "
17892      echo "wx-config program not found. bwx-console disabled."
17893      echo " "
17894      support_wx_console=no
17895   fi
17896 fi
17897
17898
17899
17900 # -------------------------------------------
17901 # tray-monitor (default off)
17902 # -------------------------------------------
17903 # Check whether --enable-tray-monitor was given.
17904 if test "${enable_tray_monitor+set}" = set; then
17905   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
17906     support_tray_monitor=yes
17907   fi
17908 fi
17909
17910
17911 TRAY_MONITOR_DIR=
17912 if test x$support_tray_monitor = xyes; then
17913   abc=`$PKGCONFIG --exists gtk+-2.0`
17914   pkg=$?
17915   if test $pkg = 0; then
17916      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
17917      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
17918
17919
17920      TRAY_MONITOR_DIR=src/tray-monitor
17921      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
17922      pkg=$?
17923      if test $pkg = 0; then
17924
17925 cat >>confdefs.h <<\_ACEOF
17926 #define HAVE_GTK_2_4 1
17927 _ACEOF
17928
17929      fi
17930   fi
17931 fi
17932
17933
17934 # -------------------------------------------
17935 # smartalloc (default off)
17936 # -------------------------------------------
17937 # Check whether --enable-smartalloc was given.
17938 if test "${enable_smartalloc+set}" = set; then
17939   enableval=$enable_smartalloc; if test x$enableval = xno; then
17940     support_smartalloc=no
17941   fi
17942 fi
17943
17944
17945 if test x$support_smartalloc = xyes; then
17946
17947 cat >>confdefs.h <<\_ACEOF
17948 #define SMARTALLOC 1
17949 _ACEOF
17950
17951 fi
17952
17953 # -------------------------------------------
17954 # static-tools (default off)
17955 # -------------------------------------------
17956 # Check whether --enable-static-tools was given.
17957 if test "${enable_static_tools+set}" = set; then
17958   enableval=$enable_static_tools; if test x$enableval = xyes; then
17959      support_static_tools=yes
17960    fi
17961 fi
17962
17963
17964 TTOOL_LDFLAGS=
17965 if test x$support_static_tools = xyes; then
17966    TTOOL_LDFLAGS="-static"
17967 fi
17968
17969
17970 # -------------------------------------------
17971 # static-fd    (default off)
17972 # -------------------------------------------
17973 # Check whether --enable-static-fd was given.
17974 if test "${enable_static_fd+set}" = set; then
17975   enableval=$enable_static_fd; if test x$enableval = xyes; then
17976      support_static_fd=yes
17977    fi
17978 fi
17979
17980
17981 STATIC_FD=
17982 if test x$support_static_fd = xyes; then
17983    STATIC_FD="static-bacula-fd"
17984 fi
17985
17986
17987 # -------------------------------------------
17988 # static-sd    (default off)
17989 # -------------------------------------------
17990 # Check whether --enable-static-sd was given.
17991 if test "${enable_static_sd+set}" = set; then
17992   enableval=$enable_static_sd; if test x$enableval = xyes; then
17993      support_static_sd=yes
17994    fi
17995 fi
17996
17997
17998 STATIC_SD=
17999 if test x$support_static_sd = xyes; then
18000    STATIC_SD="static-bacula-sd"
18001 fi
18002
18003
18004 # -------------------------------------------
18005 # static-dir   (default off)
18006 # -------------------------------------------
18007 # Check whether --enable-static-dir was given.
18008 if test "${enable_static_dir+set}" = set; then
18009   enableval=$enable_static_dir; if test x$enableval = xyes; then
18010      support_static_dir=yes
18011    fi
18012 fi
18013
18014
18015 STATIC_DIR=
18016 if test x$support_static_dir = xyes; then
18017    STATIC_DIR="static-bacula-dir"
18018 fi
18019
18020
18021 # -------------------------------------------
18022 # static-cons  (default off)
18023 # -------------------------------------------
18024 # Check whether --enable-static-cons was given.
18025 if test "${enable_static_cons+set}" = set; then
18026   enableval=$enable_static_cons; if test x$enableval = xyes; then
18027      support_static_cons=yes
18028    fi
18029 fi
18030
18031
18032 STATIC_CONS=
18033 STATIC_GNOME_CONS=
18034 STATIC_WX_CONS=
18035 if test x$support_static_cons = xyes; then
18036    STATIC_CONS="static-bconsole"
18037    STATIC_GNOME_CONS="static-bgnome-console"
18038    STATIC_WX_CONS="static-bwx-console"
18039 fi
18040
18041
18042
18043
18044 # -------------------------------------------
18045 # client_only  (default off)
18046 # -------------------------------------------
18047 # Check whether --enable-client-only was given.
18048 if test "${enable_client_only+set}" = set; then
18049   enableval=$enable_client_only; if test x$enableval = xyes; then
18050       build_client_only=yes
18051       db_type=None
18052       DB_TYPE=none
18053    fi
18054 fi
18055
18056 if test x$build_client_only = xno; then
18057    ALL_DIRS="subdirs"
18058 else
18059    ALL_DIRS=""
18060 fi
18061
18062
18063 # -------------------------------------------
18064 # director  (default on)
18065 # -------------------------------------------
18066 # Check whether --enable-build-dird was given.
18067 if test "${enable_build_dird+set}" = set; then
18068   enableval=$enable_build_dird; if test x$enableval = xno; then
18069       build_dird=no
18070    fi
18071 fi
18072
18073 if test x$build_dird = xyes; then
18074    DIRD_DIR="src/dird"
18075    DIR_TOOLS="DIRTOOLS"
18076 else
18077    DIRD_DIR=""
18078    DIR_TOOLS="NODIRTOOLS"
18079 fi
18080
18081
18082
18083 # -------------------------------------------
18084 # stored  (default on)
18085 # -------------------------------------------
18086 # Check whether --enable-build-stored was given.
18087 if test "${enable_build_stored+set}" = set; then
18088   enableval=$enable_build_stored; if test x$enableval = xno; then
18089       build_stored=no
18090    fi
18091 fi
18092
18093 if test x$build_stored = xyes; then
18094    STORED_DIR="src/stored"
18095 else
18096    STORED_DIR=""
18097 fi
18098
18099
18100 # ---------------------------------------------------
18101 # Check for conio (Bacula readline substitute)(
18102 # ---------------------------------------------------
18103 # this allows you to turn it completely off
18104 # Check whether --enable-conio was given.
18105 if test "${enable_conio+set}" = set; then
18106   enableval=$enable_conio; if test x$enableval = xno; then
18107      support_conio=no
18108   fi
18109
18110 fi
18111
18112
18113
18114 # ---------------------------------------------------
18115 # Check for IPv6 support
18116 # ---------------------------------------------------
18117 # this allows you to turn it completely off
18118 support_ipv6=yes
18119 # Check whether --enable-ipv6 was given.
18120 if test "${enable_ipv6+set}" = set; then
18121   enableval=$enable_ipv6; if test x$enableval = xno; then
18122      support_ipv6=no
18123   fi
18124
18125 fi
18126
18127
18128 if test x$support_ipv6 = xyes; then
18129     cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h.  */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h.  */
18135  #include <sys/types.h>
18136 #include <sys/socket.h>
18137 #include <netinet/in.h>
18138 int
18139 main ()
18140 {
18141 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (ac_try="$ac_link"
18148 case "(($ac_try" in
18149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150   *) ac_try_echo=$ac_try;;
18151 esac
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153   (eval "$ac_link") 2>conftest.er1
18154   ac_status=$?
18155   grep -v '^ *+' conftest.er1 >conftest.err
18156   rm -f conftest.er1
18157   cat conftest.err >&5
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } && {
18160          test -z "$ac_c_werror_flag" ||
18161          test ! -s conftest.err
18162        } && test -s conftest$ac_exeext &&
18163        $as_test_x conftest$ac_exeext; then
18164   support_ipv6=yes
18165 else
18166   echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18168
18169         support_ipv6=no
18170 fi
18171
18172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18173       conftest$ac_exeext conftest.$ac_ext
18174 fi
18175
18176 if test x$support_ipv6 = xyes; then
18177
18178 cat >>confdefs.h <<\_ACEOF
18179 #define HAVE_IPV6 1
18180 _ACEOF
18181
18182 fi
18183
18184
18185
18186 got_conio="no"
18187 if test x$support_conio = xyes; then
18188    if test "${ac_cv_header_termcap_h+set}" = set; then
18189   { echo "$as_me:$LINENO: checking for termcap.h" >&5
18190 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
18191 if test "${ac_cv_header_termcap_h+set}" = set; then
18192   echo $ECHO_N "(cached) $ECHO_C" >&6
18193 fi
18194 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
18195 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
18196 else
18197   # Is the header compilable?
18198 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
18199 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
18200 cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206 $ac_includes_default
18207 #include <termcap.h>
18208 _ACEOF
18209 rm -f conftest.$ac_objext
18210 if { (ac_try="$ac_compile"
18211 case "(($ac_try" in
18212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213   *) ac_try_echo=$ac_try;;
18214 esac
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216   (eval "$ac_compile") 2>conftest.er1
18217   ac_status=$?
18218   grep -v '^ *+' conftest.er1 >conftest.err
18219   rm -f conftest.er1
18220   cat conftest.err >&5
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); } && {
18223          test -z "$ac_c_werror_flag" ||
18224          test ! -s conftest.err
18225        } && test -s conftest.$ac_objext; then
18226   ac_header_compiler=yes
18227 else
18228   echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18230
18231         ac_header_compiler=no
18232 fi
18233
18234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18236 echo "${ECHO_T}$ac_header_compiler" >&6; }
18237
18238 # Is the header present?
18239 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
18240 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
18241 cat >conftest.$ac_ext <<_ACEOF
18242 /* confdefs.h.  */
18243 _ACEOF
18244 cat confdefs.h >>conftest.$ac_ext
18245 cat >>conftest.$ac_ext <<_ACEOF
18246 /* end confdefs.h.  */
18247 #include <termcap.h>
18248 _ACEOF
18249 if { (ac_try="$ac_cpp conftest.$ac_ext"
18250 case "(($ac_try" in
18251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252   *) ac_try_echo=$ac_try;;
18253 esac
18254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18256   ac_status=$?
18257   grep -v '^ *+' conftest.er1 >conftest.err
18258   rm -f conftest.er1
18259   cat conftest.err >&5
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); } >/dev/null && {
18262          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18263          test ! -s conftest.err
18264        }; then
18265   ac_header_preproc=yes
18266 else
18267   echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18269
18270   ac_header_preproc=no
18271 fi
18272
18273 rm -f conftest.err conftest.$ac_ext
18274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18275 echo "${ECHO_T}$ac_header_preproc" >&6; }
18276
18277 # So?  What about this header?
18278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18279   yes:no: )
18280     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
18281 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18282     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
18283 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
18284     ac_header_preproc=yes
18285     ;;
18286   no:yes:* )
18287     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
18288 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
18289     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
18290 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
18291     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
18292 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
18293     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
18294 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18295     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
18296 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
18297     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
18298 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
18299
18300     ;;
18301 esac
18302 { echo "$as_me:$LINENO: checking for termcap.h" >&5
18303 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
18304 if test "${ac_cv_header_termcap_h+set}" = set; then
18305   echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307   ac_cv_header_termcap_h=$ac_header_preproc
18308 fi
18309 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
18310 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
18311
18312 fi
18313 if test $ac_cv_header_termcap_h = yes; then
18314    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
18315 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
18316 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
18317   echo $ECHO_N "(cached) $ECHO_C" >&6
18318 else
18319   ac_check_lib_save_LIBS=$LIBS
18320 LIBS="-ltermcap  $LIBS"
18321 cat >conftest.$ac_ext <<_ACEOF
18322 /* confdefs.h.  */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h.  */
18327
18328 /* Override any GCC internal prototype to avoid an error.
18329    Use char because int might match the return type of a GCC
18330    builtin and then its argument prototype would still apply.  */
18331 #ifdef __cplusplus
18332 extern "C"
18333 #endif
18334 char tgetent ();
18335 int
18336 main ()
18337 {
18338 return tgetent ();
18339   ;
18340   return 0;
18341 }
18342 _ACEOF
18343 rm -f conftest.$ac_objext conftest$ac_exeext
18344 if { (ac_try="$ac_link"
18345 case "(($ac_try" in
18346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347   *) ac_try_echo=$ac_try;;
18348 esac
18349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350   (eval "$ac_link") 2>conftest.er1
18351   ac_status=$?
18352   grep -v '^ *+' conftest.er1 >conftest.err
18353   rm -f conftest.er1
18354   cat conftest.err >&5
18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356   (exit $ac_status); } && {
18357          test -z "$ac_c_werror_flag" ||
18358          test ! -s conftest.err
18359        } && test -s conftest$ac_exeext &&
18360        $as_test_x conftest$ac_exeext; then
18361   ac_cv_lib_termcap_tgetent=yes
18362 else
18363   echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18365
18366         ac_cv_lib_termcap_tgetent=no
18367 fi
18368
18369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18370       conftest$ac_exeext conftest.$ac_ext
18371 LIBS=$ac_check_lib_save_LIBS
18372 fi
18373 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
18374 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
18375 if test $ac_cv_lib_termcap_tgetent = yes; then
18376    CONS_LIBS="-ltermcap"
18377          CONS_OBJ="conio.o"
18378          CONS_SRC="conio.c"
18379          got_conio="yes"
18380          support_readline=no
18381
18382 cat >>confdefs.h <<\_ACEOF
18383 #define HAVE_CONIO 1
18384 _ACEOF
18385
18386
18387 else
18388    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
18389 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
18390 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
18391   echo $ECHO_N "(cached) $ECHO_C" >&6
18392 else
18393   ac_check_lib_save_LIBS=$LIBS
18394 LIBS="-lncurses  $LIBS"
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h.  */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h.  */
18401
18402 /* Override any GCC internal prototype to avoid an error.
18403    Use char because int might match the return type of a GCC
18404    builtin and then its argument prototype would still apply.  */
18405 #ifdef __cplusplus
18406 extern "C"
18407 #endif
18408 char tgetent ();
18409 int
18410 main ()
18411 {
18412 return tgetent ();
18413   ;
18414   return 0;
18415 }
18416 _ACEOF
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (ac_try="$ac_link"
18419 case "(($ac_try" in
18420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421   *) ac_try_echo=$ac_try;;
18422 esac
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424   (eval "$ac_link") 2>conftest.er1
18425   ac_status=$?
18426   grep -v '^ *+' conftest.er1 >conftest.err
18427   rm -f conftest.er1
18428   cat conftest.err >&5
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); } && {
18431          test -z "$ac_c_werror_flag" ||
18432          test ! -s conftest.err
18433        } && test -s conftest$ac_exeext &&
18434        $as_test_x conftest$ac_exeext; then
18435   ac_cv_lib_ncurses_tgetent=yes
18436 else
18437   echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18439
18440         ac_cv_lib_ncurses_tgetent=no
18441 fi
18442
18443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18444       conftest$ac_exeext conftest.$ac_ext
18445 LIBS=$ac_check_lib_save_LIBS
18446 fi
18447 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
18448 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
18449 if test $ac_cv_lib_ncurses_tgetent = yes; then
18450    CONS_LIBS="-lncurses"
18451            CONS_OBJ="conio.o"
18452            CONS_SRC="conio.c"
18453            got_conio="yes"
18454            support_readline=no
18455
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_CONIO 1
18458 _ACEOF
18459
18460
18461 fi
18462
18463
18464 fi
18465
18466
18467 else
18468
18469
18470 for ac_header in curses.h
18471 do
18472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18474   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18477   echo $ECHO_N "(cached) $ECHO_C" >&6
18478 fi
18479 ac_res=`eval echo '${'$as_ac_Header'}'`
18480                { echo "$as_me:$LINENO: result: $ac_res" >&5
18481 echo "${ECHO_T}$ac_res" >&6; }
18482 else
18483   # Is the header compilable?
18484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18486 cat >conftest.$ac_ext <<_ACEOF
18487 /* confdefs.h.  */
18488 _ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h.  */
18492 $ac_includes_default
18493 #include <$ac_header>
18494 _ACEOF
18495 rm -f conftest.$ac_objext
18496 if { (ac_try="$ac_compile"
18497 case "(($ac_try" in
18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499   *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502   (eval "$ac_compile") 2>conftest.er1
18503   ac_status=$?
18504   grep -v '^ *+' conftest.er1 >conftest.err
18505   rm -f conftest.er1
18506   cat conftest.err >&5
18507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508   (exit $ac_status); } && {
18509          test -z "$ac_c_werror_flag" ||
18510          test ! -s conftest.err
18511        } && test -s conftest.$ac_objext; then
18512   ac_header_compiler=yes
18513 else
18514   echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18516
18517         ac_header_compiler=no
18518 fi
18519
18520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18522 echo "${ECHO_T}$ac_header_compiler" >&6; }
18523
18524 # Is the header present?
18525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18527 cat >conftest.$ac_ext <<_ACEOF
18528 /* confdefs.h.  */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h.  */
18533 #include <$ac_header>
18534 _ACEOF
18535 if { (ac_try="$ac_cpp conftest.$ac_ext"
18536 case "(($ac_try" in
18537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538   *) ac_try_echo=$ac_try;;
18539 esac
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18542   ac_status=$?
18543   grep -v '^ *+' conftest.er1 >conftest.err
18544   rm -f conftest.er1
18545   cat conftest.err >&5
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); } >/dev/null && {
18548          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18549          test ! -s conftest.err
18550        }; then
18551   ac_header_preproc=yes
18552 else
18553   echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18555
18556   ac_header_preproc=no
18557 fi
18558
18559 rm -f conftest.err conftest.$ac_ext
18560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18561 echo "${ECHO_T}$ac_header_preproc" >&6; }
18562
18563 # So?  What about this header?
18564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18565   yes:no: )
18566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18570     ac_header_preproc=yes
18571     ;;
18572   no:yes:* )
18573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18575     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18576 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18577     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18579     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18580 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18583     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18585
18586     ;;
18587 esac
18588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18591   echo $ECHO_N "(cached) $ECHO_C" >&6
18592 else
18593   eval "$as_ac_Header=\$ac_header_preproc"
18594 fi
18595 ac_res=`eval echo '${'$as_ac_Header'}'`
18596                { echo "$as_me:$LINENO: result: $ac_res" >&5
18597 echo "${ECHO_T}$ac_res" >&6; }
18598
18599 fi
18600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18601   cat >>confdefs.h <<_ACEOF
18602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18603 _ACEOF
18604
18605 fi
18606
18607 done
18608
18609          { echo "$as_me:$LINENO: checking for term.h" >&5
18610 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
18611 if test "${ac_cv_header_term_h+set}" = set; then
18612   echo $ECHO_N "(cached) $ECHO_C" >&6
18613 else
18614   cat >conftest.$ac_ext <<_ACEOF
18615 /* confdefs.h.  */
18616 _ACEOF
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h.  */
18620 #if HAVE_CURSES_H
18621 #include <curses.h>
18622 #endif
18623
18624
18625 #include <term.h>
18626 _ACEOF
18627 rm -f conftest.$ac_objext
18628 if { (ac_try="$ac_compile"
18629 case "(($ac_try" in
18630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631   *) ac_try_echo=$ac_try;;
18632 esac
18633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18634   (eval "$ac_compile") 2>conftest.er1
18635   ac_status=$?
18636   grep -v '^ *+' conftest.er1 >conftest.err
18637   rm -f conftest.er1
18638   cat conftest.err >&5
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); } && {
18641          test -z "$ac_c_werror_flag" ||
18642          test ! -s conftest.err
18643        } && test -s conftest.$ac_objext; then
18644   ac_cv_header_term_h=yes
18645 else
18646   echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18648
18649         ac_cv_header_term_h=no
18650 fi
18651
18652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18653 fi
18654 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
18655 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
18656 if test $ac_cv_header_term_h = yes; then
18657    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
18658 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
18659 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
18660   echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662   ac_check_lib_save_LIBS=$LIBS
18663 LIBS="-lcurses  $LIBS"
18664 cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h.  */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h.  */
18670
18671 /* Override any GCC internal prototype to avoid an error.
18672    Use char because int might match the return type of a GCC
18673    builtin and then its argument prototype would still apply.  */
18674 #ifdef __cplusplus
18675 extern "C"
18676 #endif
18677 char tgetent ();
18678 int
18679 main ()
18680 {
18681 return tgetent ();
18682   ;
18683   return 0;
18684 }
18685 _ACEOF
18686 rm -f conftest.$ac_objext conftest$ac_exeext
18687 if { (ac_try="$ac_link"
18688 case "(($ac_try" in
18689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690   *) ac_try_echo=$ac_try;;
18691 esac
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693   (eval "$ac_link") 2>conftest.er1
18694   ac_status=$?
18695   grep -v '^ *+' conftest.er1 >conftest.err
18696   rm -f conftest.er1
18697   cat conftest.err >&5
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); } && {
18700          test -z "$ac_c_werror_flag" ||
18701          test ! -s conftest.err
18702        } && test -s conftest$ac_exeext &&
18703        $as_test_x conftest$ac_exeext; then
18704   ac_cv_lib_curses_tgetent=yes
18705 else
18706   echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18708
18709         ac_cv_lib_curses_tgetent=no
18710 fi
18711
18712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18713       conftest$ac_exeext conftest.$ac_ext
18714 LIBS=$ac_check_lib_save_LIBS
18715 fi
18716 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
18717 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
18718 if test $ac_cv_lib_curses_tgetent = yes; then
18719    CONS_LIBS="-lcurses"
18720                    CONS_OBJ="conio.o"
18721                    CONS_SRC="conio.c"
18722                    got_conio="yes"
18723                    support_readline=no
18724
18725 cat >>confdefs.h <<\_ACEOF
18726 #define HAVE_CONIO 1
18727 _ACEOF
18728
18729
18730 fi
18731
18732
18733 else
18734    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
18735 fi
18736
18737
18738
18739 fi
18740
18741
18742 fi
18743
18744
18745 # ---------------------------------------------------
18746 # Check for readline support/directory (default off)
18747 # ---------------------------------------------------
18748 # this allows you to turn it completely off
18749 # Check whether --enable-readline was given.
18750 if test "${enable_readline+set}" = set; then
18751   enableval=$enable_readline; if test x$enableval = xno; then
18752     support_readline=no
18753   fi
18754 fi
18755
18756
18757 got_readline="no"
18758 READLINE_SRC=
18759 if test x$support_readline = xyes; then
18760
18761 # Check whether --with-readline was given.
18762 if test "${with_readline+set}" = set; then
18763   withval=$with_readline;
18764         case "$with_readline" in
18765         no) : ;;
18766         yes|*)
18767           if test -f ${with_readline}/readline.h; then
18768              CONS_INC="-I${with_readline}"
18769              CONS_LDFLAGS="-L$with_readline"
18770           elif test -f ${with_readline}/include/readline/readline.h; then
18771              CONS_INC="-I${with_readline}/include/readline"
18772              CONS_LDFLAGS="-L${with_readline}/lib"
18773              with_readline="${with_readline}/include/readline"
18774           else
18775              with_readline="/usr/include/readline"
18776           fi
18777           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
18778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18779   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
18780 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
18781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18782   echo $ECHO_N "(cached) $ECHO_C" >&6
18783 fi
18784 ac_res=`eval echo '${'$as_ac_Header'}'`
18785                { echo "$as_me:$LINENO: result: $ac_res" >&5
18786 echo "${ECHO_T}$ac_res" >&6; }
18787 else
18788   # Is the header compilable?
18789 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
18790 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
18791 cat >conftest.$ac_ext <<_ACEOF
18792 /* confdefs.h.  */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h.  */
18797 $ac_includes_default
18798 #include <${with_readline}/readline.h>
18799 _ACEOF
18800 rm -f conftest.$ac_objext
18801 if { (ac_try="$ac_compile"
18802 case "(($ac_try" in
18803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804   *) ac_try_echo=$ac_try;;
18805 esac
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807   (eval "$ac_compile") 2>conftest.er1
18808   ac_status=$?
18809   grep -v '^ *+' conftest.er1 >conftest.err
18810   rm -f conftest.er1
18811   cat conftest.err >&5
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); } && {
18814          test -z "$ac_c_werror_flag" ||
18815          test ! -s conftest.err
18816        } && test -s conftest.$ac_objext; then
18817   ac_header_compiler=yes
18818 else
18819   echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18821
18822         ac_header_compiler=no
18823 fi
18824
18825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18827 echo "${ECHO_T}$ac_header_compiler" >&6; }
18828
18829 # Is the header present?
18830 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
18831 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h.  */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h.  */
18838 #include <${with_readline}/readline.h>
18839 _ACEOF
18840 if { (ac_try="$ac_cpp conftest.$ac_ext"
18841 case "(($ac_try" in
18842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843   *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } >/dev/null && {
18853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18854          test ! -s conftest.err
18855        }; then
18856   ac_header_preproc=yes
18857 else
18858   echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18860
18861   ac_header_preproc=no
18862 fi
18863
18864 rm -f conftest.err conftest.$ac_ext
18865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18866 echo "${ECHO_T}$ac_header_preproc" >&6; }
18867
18868 # So?  What about this header?
18869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18870   yes:no: )
18871     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
18872 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18873     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
18874 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
18875     ac_header_preproc=yes
18876     ;;
18877   no:yes:* )
18878     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
18879 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
18880     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
18881 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
18882     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
18883 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
18884     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
18885 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18886     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
18887 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
18888     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
18889 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
18890
18891     ;;
18892 esac
18893 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
18894 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
18895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18896   echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898   eval "$as_ac_Header=\$ac_header_preproc"
18899 fi
18900 ac_res=`eval echo '${'$as_ac_Header'}'`
18901                { echo "$as_me:$LINENO: result: $ac_res" >&5
18902 echo "${ECHO_T}$ac_res" >&6; }
18903
18904 fi
18905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18906
18907 cat >>confdefs.h <<\_ACEOF
18908 #define HAVE_READLINE 1
18909 _ACEOF
18910
18911                CONS_LIBS="-lreadline -lhistory -ltermcap"
18912                got_readline="yes"
18913
18914 else
18915    echo " "
18916                echo "readline.h not found. readline turned off ..."
18917                echo " "
18918
18919
18920 fi
18921
18922
18923           ;;
18924         esac
18925
18926 else
18927
18928        # check for standard readline library
18929        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
18930   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
18931 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
18932 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
18933   echo $ECHO_N "(cached) $ECHO_C" >&6
18934 fi
18935 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
18936 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
18937 else
18938   # Is the header compilable?
18939 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
18940 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h.  */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h.  */
18947 $ac_includes_default
18948 #include </usr/include/readline/readline.h>
18949 _ACEOF
18950 rm -f conftest.$ac_objext
18951 if { (ac_try="$ac_compile"
18952 case "(($ac_try" in
18953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954   *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957   (eval "$ac_compile") 2>conftest.er1
18958   ac_status=$?
18959   grep -v '^ *+' conftest.er1 >conftest.err
18960   rm -f conftest.er1
18961   cat conftest.err >&5
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); } && {
18964          test -z "$ac_c_werror_flag" ||
18965          test ! -s conftest.err
18966        } && test -s conftest.$ac_objext; then
18967   ac_header_compiler=yes
18968 else
18969   echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972         ac_header_compiler=no
18973 fi
18974
18975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18977 echo "${ECHO_T}$ac_header_compiler" >&6; }
18978
18979 # Is the header present?
18980 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
18981 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
18982 cat >conftest.$ac_ext <<_ACEOF
18983 /* confdefs.h.  */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h.  */
18988 #include </usr/include/readline/readline.h>
18989 _ACEOF
18990 if { (ac_try="$ac_cpp conftest.$ac_ext"
18991 case "(($ac_try" in
18992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993   *) ac_try_echo=$ac_try;;
18994 esac
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18997   ac_status=$?
18998   grep -v '^ *+' conftest.er1 >conftest.err
18999   rm -f conftest.er1
19000   cat conftest.err >&5
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); } >/dev/null && {
19003          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19004          test ! -s conftest.err
19005        }; then
19006   ac_header_preproc=yes
19007 else
19008   echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19010
19011   ac_header_preproc=no
19012 fi
19013
19014 rm -f conftest.err conftest.$ac_ext
19015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19016 echo "${ECHO_T}$ac_header_preproc" >&6; }
19017
19018 # So?  What about this header?
19019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19020   yes:no: )
19021     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
19022 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19023     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
19024 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
19025     ac_header_preproc=yes
19026     ;;
19027   no:yes:* )
19028     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
19029 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
19030     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
19031 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
19032     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
19033 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
19034     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
19035 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19036     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
19037 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
19038     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
19039 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
19040
19041     ;;
19042 esac
19043 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
19044 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
19045 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
19046   echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
19049 fi
19050 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
19051 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
19052
19053 fi
19054 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
19055
19056 cat >>confdefs.h <<\_ACEOF
19057 #define HAVE_READLINE 1
19058 _ACEOF
19059
19060            got_readline="yes"
19061            CONS_INC="-I/usr/include/readline"
19062            CONS_LIBS="-lreadline -ltermcap"
19063
19064 else
19065
19066            # Did not find standard library, so try Bacula's default
19067             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
19068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19069   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
19070 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
19071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19072   echo $ECHO_N "(cached) $ECHO_C" >&6
19073 fi
19074 ac_res=`eval echo '${'$as_ac_Header'}'`
19075                { echo "$as_me:$LINENO: result: $ac_res" >&5
19076 echo "${ECHO_T}$ac_res" >&6; }
19077 else
19078   # Is the header compilable?
19079 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
19080 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h.  */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h.  */
19087 $ac_includes_default
19088 #include <${TOP_DIR}/depkgs/readline/readline.h>
19089 _ACEOF
19090 rm -f conftest.$ac_objext
19091 if { (ac_try="$ac_compile"
19092 case "(($ac_try" in
19093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094   *) ac_try_echo=$ac_try;;
19095 esac
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097   (eval "$ac_compile") 2>conftest.er1
19098   ac_status=$?
19099   grep -v '^ *+' conftest.er1 >conftest.err
19100   rm -f conftest.er1
19101   cat conftest.err >&5
19102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103   (exit $ac_status); } && {
19104          test -z "$ac_c_werror_flag" ||
19105          test ! -s conftest.err
19106        } && test -s conftest.$ac_objext; then
19107   ac_header_compiler=yes
19108 else
19109   echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112         ac_header_compiler=no
19113 fi
19114
19115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19117 echo "${ECHO_T}$ac_header_compiler" >&6; }
19118
19119 # Is the header present?
19120 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
19121 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
19122 cat >conftest.$ac_ext <<_ACEOF
19123 /* confdefs.h.  */
19124 _ACEOF
19125 cat confdefs.h >>conftest.$ac_ext
19126 cat >>conftest.$ac_ext <<_ACEOF
19127 /* end confdefs.h.  */
19128 #include <${TOP_DIR}/depkgs/readline/readline.h>
19129 _ACEOF
19130 if { (ac_try="$ac_cpp conftest.$ac_ext"
19131 case "(($ac_try" in
19132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133   *) ac_try_echo=$ac_try;;
19134 esac
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19137   ac_status=$?
19138   grep -v '^ *+' conftest.er1 >conftest.err
19139   rm -f conftest.er1
19140   cat conftest.err >&5
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); } >/dev/null && {
19143          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19144          test ! -s conftest.err
19145        }; then
19146   ac_header_preproc=yes
19147 else
19148   echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19150
19151   ac_header_preproc=no
19152 fi
19153
19154 rm -f conftest.err conftest.$ac_ext
19155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19156 echo "${ECHO_T}$ac_header_preproc" >&6; }
19157
19158 # So?  What about this header?
19159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19160   yes:no: )
19161     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
19162 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19163     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
19164 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
19165     ac_header_preproc=yes
19166     ;;
19167   no:yes:* )
19168     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
19169 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
19170     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
19171 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
19172     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
19173 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
19174     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
19175 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19176     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
19177 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
19178     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
19179 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
19180
19181     ;;
19182 esac
19183 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
19184 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
19185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19186   echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188   eval "$as_ac_Header=\$ac_header_preproc"
19189 fi
19190 ac_res=`eval echo '${'$as_ac_Header'}'`
19191                { echo "$as_me:$LINENO: result: $ac_res" >&5
19192 echo "${ECHO_T}$ac_res" >&6; }
19193
19194 fi
19195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19196
19197 cat >>confdefs.h <<\_ACEOF
19198 #define HAVE_READLINE 1
19199 _ACEOF
19200
19201                  got_readline="yes"
19202                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
19203                  CONS_LIBS="-lreadline -lhistory -ltermcap"
19204                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
19205                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
19206
19207 else
19208    echo " "
19209                 echo "readline.h not found. readline turned off ..."
19210                 echo " "
19211
19212
19213 fi
19214
19215
19216
19217
19218 fi
19219
19220
19221
19222
19223 fi
19224
19225 fi
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236 # Minimal stuff for readline Makefile configuration
19237 MAKE_SHELL=/bin/sh
19238
19239 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19240 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
19241 if test "${ac_cv_header_stat_broken+set}" = set; then
19242   echo $ECHO_N "(cached) $ECHO_C" >&6
19243 else
19244   cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h.  */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h.  */
19250 #include <sys/types.h>
19251 #include <sys/stat.h>
19252
19253 #if defined S_ISBLK && defined S_IFDIR
19254 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19255 #endif
19256
19257 #if defined S_ISBLK && defined S_IFCHR
19258 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19259 #endif
19260
19261 #if defined S_ISLNK && defined S_IFREG
19262 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19263 #endif
19264
19265 #if defined S_ISSOCK && defined S_IFREG
19266 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19267 #endif
19268
19269 _ACEOF
19270 rm -f conftest.$ac_objext
19271 if { (ac_try="$ac_compile"
19272 case "(($ac_try" in
19273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274   *) ac_try_echo=$ac_try;;
19275 esac
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277   (eval "$ac_compile") 2>conftest.er1
19278   ac_status=$?
19279   grep -v '^ *+' conftest.er1 >conftest.err
19280   rm -f conftest.er1
19281   cat conftest.err >&5
19282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283   (exit $ac_status); } && {
19284          test -z "$ac_c_werror_flag" ||
19285          test ! -s conftest.err
19286        } && test -s conftest.$ac_objext; then
19287   ac_cv_header_stat_broken=no
19288 else
19289   echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19291
19292         ac_cv_header_stat_broken=yes
19293 fi
19294
19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296 fi
19297 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19298 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
19299 if test $ac_cv_header_stat_broken = yes; then
19300
19301 cat >>confdefs.h <<\_ACEOF
19302 #define STAT_MACROS_BROKEN 1
19303 _ACEOF
19304
19305 fi
19306
19307
19308
19309
19310
19311
19312 ac_header_dirent=no
19313 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19314   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19315 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19316 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19318   echo $ECHO_N "(cached) $ECHO_C" >&6
19319 else
19320   cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h.  */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h.  */
19326 #include <sys/types.h>
19327 #include <$ac_hdr>
19328
19329 int
19330 main ()
19331 {
19332 if ((DIR *) 0)
19333 return 0;
19334   ;
19335   return 0;
19336 }
19337 _ACEOF
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342   *) ac_try_echo=$ac_try;;
19343 esac
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345   (eval "$ac_compile") 2>conftest.er1
19346   ac_status=$?
19347   grep -v '^ *+' conftest.er1 >conftest.err
19348   rm -f conftest.er1
19349   cat conftest.err >&5
19350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351   (exit $ac_status); } && {
19352          test -z "$ac_c_werror_flag" ||
19353          test ! -s conftest.err
19354        } && test -s conftest.$ac_objext; then
19355   eval "$as_ac_Header=yes"
19356 else
19357   echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19359
19360         eval "$as_ac_Header=no"
19361 fi
19362
19363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19364 fi
19365 ac_res=`eval echo '${'$as_ac_Header'}'`
19366                { echo "$as_me:$LINENO: result: $ac_res" >&5
19367 echo "${ECHO_T}$ac_res" >&6; }
19368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19369   cat >>confdefs.h <<_ACEOF
19370 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19371 _ACEOF
19372
19373 ac_header_dirent=$ac_hdr; break
19374 fi
19375
19376 done
19377 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19378 if test $ac_header_dirent = dirent.h; then
19379   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19380 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19381 if test "${ac_cv_search_opendir+set}" = set; then
19382   echo $ECHO_N "(cached) $ECHO_C" >&6
19383 else
19384   ac_func_search_save_LIBS=$LIBS
19385 cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391
19392 /* Override any GCC internal prototype to avoid an error.
19393    Use char because int might match the return type of a GCC
19394    builtin and then its argument prototype would still apply.  */
19395 #ifdef __cplusplus
19396 extern "C"
19397 #endif
19398 char opendir ();
19399 int
19400 main ()
19401 {
19402 return opendir ();
19403   ;
19404   return 0;
19405 }
19406 _ACEOF
19407 for ac_lib in '' dir; do
19408   if test -z "$ac_lib"; then
19409     ac_res="none required"
19410   else
19411     ac_res=-l$ac_lib
19412     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19413   fi
19414   rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (ac_try="$ac_link"
19416 case "(($ac_try" in
19417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418   *) ac_try_echo=$ac_try;;
19419 esac
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421   (eval "$ac_link") 2>conftest.er1
19422   ac_status=$?
19423   grep -v '^ *+' conftest.er1 >conftest.err
19424   rm -f conftest.er1
19425   cat conftest.err >&5
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); } && {
19428          test -z "$ac_c_werror_flag" ||
19429          test ! -s conftest.err
19430        } && test -s conftest$ac_exeext &&
19431        $as_test_x conftest$ac_exeext; then
19432   ac_cv_search_opendir=$ac_res
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437
19438 fi
19439
19440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19441       conftest$ac_exeext
19442   if test "${ac_cv_search_opendir+set}" = set; then
19443   break
19444 fi
19445 done
19446 if test "${ac_cv_search_opendir+set}" = set; then
19447   :
19448 else
19449   ac_cv_search_opendir=no
19450 fi
19451 rm conftest.$ac_ext
19452 LIBS=$ac_func_search_save_LIBS
19453 fi
19454 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19455 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19456 ac_res=$ac_cv_search_opendir
19457 if test "$ac_res" != no; then
19458   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19459
19460 fi
19461
19462 else
19463   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19464 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19465 if test "${ac_cv_search_opendir+set}" = set; then
19466   echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468   ac_func_search_save_LIBS=$LIBS
19469 cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h.  */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h.  */
19475
19476 /* Override any GCC internal prototype to avoid an error.
19477    Use char because int might match the return type of a GCC
19478    builtin and then its argument prototype would still apply.  */
19479 #ifdef __cplusplus
19480 extern "C"
19481 #endif
19482 char opendir ();
19483 int
19484 main ()
19485 {
19486 return opendir ();
19487   ;
19488   return 0;
19489 }
19490 _ACEOF
19491 for ac_lib in '' x; do
19492   if test -z "$ac_lib"; then
19493     ac_res="none required"
19494   else
19495     ac_res=-l$ac_lib
19496     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19497   fi
19498   rm -f conftest.$ac_objext conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502   *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505   (eval "$ac_link") 2>conftest.er1
19506   ac_status=$?
19507   grep -v '^ *+' conftest.er1 >conftest.err
19508   rm -f conftest.er1
19509   cat conftest.err >&5
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); } && {
19512          test -z "$ac_c_werror_flag" ||
19513          test ! -s conftest.err
19514        } && test -s conftest$ac_exeext &&
19515        $as_test_x conftest$ac_exeext; then
19516   ac_cv_search_opendir=$ac_res
19517 else
19518   echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521
19522 fi
19523
19524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19525       conftest$ac_exeext
19526   if test "${ac_cv_search_opendir+set}" = set; then
19527   break
19528 fi
19529 done
19530 if test "${ac_cv_search_opendir+set}" = set; then
19531   :
19532 else
19533   ac_cv_search_opendir=no
19534 fi
19535 rm conftest.$ac_ext
19536 LIBS=$ac_func_search_save_LIBS
19537 fi
19538 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19539 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19540 ac_res=$ac_cv_search_opendir
19541 if test "$ac_res" != no; then
19542   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19543
19544 fi
19545
19546 fi
19547
19548
19549
19550
19551
19552
19553
19554
19555 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
19556 do
19557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19561   echo $ECHO_N "(cached) $ECHO_C" >&6
19562 else
19563   cat >conftest.$ac_ext <<_ACEOF
19564 /* confdefs.h.  */
19565 _ACEOF
19566 cat confdefs.h >>conftest.$ac_ext
19567 cat >>conftest.$ac_ext <<_ACEOF
19568 /* end confdefs.h.  */
19569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19571 #define $ac_func innocuous_$ac_func
19572
19573 /* System header to define __stub macros and hopefully few prototypes,
19574     which can conflict with char $ac_func (); below.
19575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19576     <limits.h> exists even on freestanding compilers.  */
19577
19578 #ifdef __STDC__
19579 # include <limits.h>
19580 #else
19581 # include <assert.h>
19582 #endif
19583
19584 #undef $ac_func
19585
19586 /* Override any GCC internal prototype to avoid an error.
19587    Use char because int might match the return type of a GCC
19588    builtin and then its argument prototype would still apply.  */
19589 #ifdef __cplusplus
19590 extern "C"
19591 #endif
19592 char $ac_func ();
19593 /* The GNU C library defines this for functions which it implements
19594     to always fail with ENOSYS.  Some functions are actually named
19595     something starting with __ and the normal name is an alias.  */
19596 #if defined __stub_$ac_func || defined __stub___$ac_func
19597 choke me
19598 #endif
19599
19600 int
19601 main ()
19602 {
19603 return $ac_func ();
19604   ;
19605   return 0;
19606 }
19607 _ACEOF
19608 rm -f conftest.$ac_objext conftest$ac_exeext
19609 if { (ac_try="$ac_link"
19610 case "(($ac_try" in
19611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612   *) ac_try_echo=$ac_try;;
19613 esac
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615   (eval "$ac_link") 2>conftest.er1
19616   ac_status=$?
19617   grep -v '^ *+' conftest.er1 >conftest.err
19618   rm -f conftest.er1
19619   cat conftest.err >&5
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); } && {
19622          test -z "$ac_c_werror_flag" ||
19623          test ! -s conftest.err
19624        } && test -s conftest$ac_exeext &&
19625        $as_test_x conftest$ac_exeext; then
19626   eval "$as_ac_var=yes"
19627 else
19628   echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19630
19631         eval "$as_ac_var=no"
19632 fi
19633
19634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19635       conftest$ac_exeext conftest.$ac_ext
19636 fi
19637 ac_res=`eval echo '${'$as_ac_var'}'`
19638                { echo "$as_me:$LINENO: result: $ac_res" >&5
19639 echo "${ECHO_T}$ac_res" >&6; }
19640 if test `eval echo '${'$as_ac_var'}'` = yes; then
19641   cat >>confdefs.h <<_ACEOF
19642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19643 _ACEOF
19644
19645 fi
19646 done
19647
19648
19649
19650 for ac_func in nanosleep nl_langinfo
19651 do
19652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19656   echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658   cat >conftest.$ac_ext <<_ACEOF
19659 /* confdefs.h.  */
19660 _ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h.  */
19664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19666 #define $ac_func innocuous_$ac_func
19667
19668 /* System header to define __stub macros and hopefully few prototypes,
19669     which can conflict with char $ac_func (); below.
19670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19671     <limits.h> exists even on freestanding compilers.  */
19672
19673 #ifdef __STDC__
19674 # include <limits.h>
19675 #else
19676 # include <assert.h>
19677 #endif
19678
19679 #undef $ac_func
19680
19681 /* Override any GCC internal prototype to avoid an error.
19682    Use char because int might match the return type of a GCC
19683    builtin and then its argument prototype would still apply.  */
19684 #ifdef __cplusplus
19685 extern "C"
19686 #endif
19687 char $ac_func ();
19688 /* The GNU C library defines this for functions which it implements
19689     to always fail with ENOSYS.  Some functions are actually named
19690     something starting with __ and the normal name is an alias.  */
19691 #if defined __stub_$ac_func || defined __stub___$ac_func
19692 choke me
19693 #endif
19694
19695 int
19696 main ()
19697 {
19698 return $ac_func ();
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (ac_try="$ac_link"
19705 case "(($ac_try" in
19706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707   *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710   (eval "$ac_link") 2>conftest.er1
19711   ac_status=$?
19712   grep -v '^ *+' conftest.er1 >conftest.err
19713   rm -f conftest.er1
19714   cat conftest.err >&5
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); } && {
19717          test -z "$ac_c_werror_flag" ||
19718          test ! -s conftest.err
19719        } && test -s conftest$ac_exeext &&
19720        $as_test_x conftest$ac_exeext; then
19721   eval "$as_ac_var=yes"
19722 else
19723   echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19725
19726         eval "$as_ac_var=no"
19727 fi
19728
19729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19730       conftest$ac_exeext conftest.$ac_ext
19731 fi
19732 ac_res=`eval echo '${'$as_ac_var'}'`
19733                { echo "$as_me:$LINENO: result: $ac_res" >&5
19734 echo "${ECHO_T}$ac_res" >&6; }
19735 if test `eval echo '${'$as_ac_var'}'` = yes; then
19736   cat >>confdefs.h <<_ACEOF
19737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19738 _ACEOF
19739
19740 fi
19741 done
19742
19743
19744 for ac_header in varargs.h
19745 do
19746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19748   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 fi
19753 ac_res=`eval echo '${'$as_ac_Header'}'`
19754                { echo "$as_me:$LINENO: result: $ac_res" >&5
19755 echo "${ECHO_T}$ac_res" >&6; }
19756 else
19757   # Is the header compilable?
19758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19760 cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h.  */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h.  */
19766 $ac_includes_default
19767 #include <$ac_header>
19768 _ACEOF
19769 rm -f conftest.$ac_objext
19770 if { (ac_try="$ac_compile"
19771 case "(($ac_try" in
19772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773   *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776   (eval "$ac_compile") 2>conftest.er1
19777   ac_status=$?
19778   grep -v '^ *+' conftest.er1 >conftest.err
19779   rm -f conftest.er1
19780   cat conftest.err >&5
19781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782   (exit $ac_status); } && {
19783          test -z "$ac_c_werror_flag" ||
19784          test ! -s conftest.err
19785        } && test -s conftest.$ac_objext; then
19786   ac_header_compiler=yes
19787 else
19788   echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19790
19791         ac_header_compiler=no
19792 fi
19793
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19796 echo "${ECHO_T}$ac_header_compiler" >&6; }
19797
19798 # Is the header present?
19799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19801 cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h.  */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h.  */
19807 #include <$ac_header>
19808 _ACEOF
19809 if { (ac_try="$ac_cpp conftest.$ac_ext"
19810 case "(($ac_try" in
19811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812   *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19816   ac_status=$?
19817   grep -v '^ *+' conftest.er1 >conftest.err
19818   rm -f conftest.er1
19819   cat conftest.err >&5
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); } >/dev/null && {
19822          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19823          test ! -s conftest.err
19824        }; then
19825   ac_header_preproc=yes
19826 else
19827   echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830   ac_header_preproc=no
19831 fi
19832
19833 rm -f conftest.err conftest.$ac_ext
19834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19835 echo "${ECHO_T}$ac_header_preproc" >&6; }
19836
19837 # So?  What about this header?
19838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19839   yes:no: )
19840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19844     ac_header_preproc=yes
19845     ;;
19846   no:yes:* )
19847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19849     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19850 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19851     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19853     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19854 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19857     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19859
19860     ;;
19861 esac
19862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19865   echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867   eval "$as_ac_Header=\$ac_header_preproc"
19868 fi
19869 ac_res=`eval echo '${'$as_ac_Header'}'`
19870                { echo "$as_me:$LINENO: result: $ac_res" >&5
19871 echo "${ECHO_T}$ac_res" >&6; }
19872
19873 fi
19874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19875   cat >>confdefs.h <<_ACEOF
19876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19877 _ACEOF
19878
19879 fi
19880
19881 done
19882
19883
19884 # End of readline/conio stuff
19885 # -----------------------------------------------------------------------
19886
19887 # -----------------------------------------------------------------------
19888 #  Check for Python support
19889 #
19890 { echo "$as_me:$LINENO: checking for Python support" >&5
19891 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
19892
19893 # Check whether --with-python was given.
19894 if test "${with_python+set}" = set; then
19895   withval=$with_python;
19896   PYTHON_INCDIR=
19897   PYTHON_LIBS=
19898   if test "$withval" != "no"; then
19899      if test "$withval" = "yes"; then
19900         for python_root in /usr /usr/local /usr/sfw; do
19901           for ver in python2.2 python2.3 python2.4 python2.5; do
19902              if test -f $python_root/include/${ver}/Python.h; then
19903                 PYTHON_INCDIR=-I$python_root/include/${ver}
19904                 if test -d $python_root/lib64/${ver}/config; then
19905                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
19906                 else
19907                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
19908                 fi
19909                 break
19910              fi
19911           done
19912         done
19913         if test x$PYTHON_INCDIR = x; then
19914           if test -f $prefix/include/Python.h; then
19915              PYTHON_INCDIR=-I$prefix/include
19916              if test -d $prefix/lib64/config; then
19917                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
19918              else
19919                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
19920              fi
19921           else
19922            { echo "$as_me:$LINENO: result: no" >&5
19923 echo "${ECHO_T}no" >&6; }
19924            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
19925 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
19926    { (exit 1); exit 1; }; }
19927           fi
19928         fi
19929      else
19930         if test -f $withval/Python.h; then
19931            PYTHON_INCDIR=-I$withval
19932            PYTHON_LIBS="-L$withval/config -lpython"
19933         elif test -f $withval/include/Python.h; then
19934            PYTHON_INCDIR=-I$withval/include
19935            if test -d $withval/lib64/config; then
19936               PYTHON_LIBS="-L$withval/lib64/config -lpython"
19937            else
19938               PYTHON_LIBS="-L$withval/lib/config -lpython"
19939            fi
19940         elif test -f $withval/include/python/Python.h; then
19941            PYTHON_INCDIR=-I$withval/include/python
19942            if test -d $withval/lib64/python/config; then
19943               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
19944            else
19945               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
19946            fi
19947         else
19948            { echo "$as_me:$LINENO: result: no" >&5
19949 echo "${ECHO_T}no" >&6; }
19950            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
19951 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
19952    { (exit 1); exit 1; }; }
19953         fi
19954      fi
19955      cat >>confdefs.h <<\_ACEOF
19956 #define HAVE_PYTHON 1
19957 _ACEOF
19958
19959      { echo "$as_me:$LINENO: result: yes" >&5
19960 echo "${ECHO_T}yes" >&6; }
19961      support_python=yes
19962      { echo "$as_me:$LINENO: checking for more Python libs" >&5
19963 echo "$as_me: checking for more Python libs" >&6;}
19964      saved_LIBS="$LIBS"; LIBS=
19965      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
19966 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
19967 if test "${ac_cv_search_shm_open+set}" = set; then
19968   echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
19970   ac_func_search_save_LIBS=$LIBS
19971 cat >conftest.$ac_ext <<_ACEOF
19972 /* confdefs.h.  */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h.  */
19977
19978 /* Override any GCC internal prototype to avoid an error.
19979    Use char because int might match the return type of a GCC
19980    builtin and then its argument prototype would still apply.  */
19981 #ifdef __cplusplus
19982 extern "C"
19983 #endif
19984 char shm_open ();
19985 int
19986 main ()
19987 {
19988 return shm_open ();
19989   ;
19990   return 0;
19991 }
19992 _ACEOF
19993 for ac_lib in '' rt; do
19994   if test -z "$ac_lib"; then
19995     ac_res="none required"
19996   else
19997     ac_res=-l$ac_lib
19998     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19999   fi
20000   rm -f conftest.$ac_objext conftest$ac_exeext
20001 if { (ac_try="$ac_link"
20002 case "(($ac_try" in
20003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004   *) ac_try_echo=$ac_try;;
20005 esac
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007   (eval "$ac_link") 2>conftest.er1
20008   ac_status=$?
20009   grep -v '^ *+' conftest.er1 >conftest.err
20010   rm -f conftest.er1
20011   cat conftest.err >&5
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); } && {
20014          test -z "$ac_c_werror_flag" ||
20015          test ! -s conftest.err
20016        } && test -s conftest$ac_exeext &&
20017        $as_test_x conftest$ac_exeext; then
20018   ac_cv_search_shm_open=$ac_res
20019 else
20020   echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20022
20023
20024 fi
20025
20026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20027       conftest$ac_exeext
20028   if test "${ac_cv_search_shm_open+set}" = set; then
20029   break
20030 fi
20031 done
20032 if test "${ac_cv_search_shm_open+set}" = set; then
20033   :
20034 else
20035   ac_cv_search_shm_open=no
20036 fi
20037 rm conftest.$ac_ext
20038 LIBS=$ac_func_search_save_LIBS
20039 fi
20040 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
20041 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
20042 ac_res=$ac_cv_search_shm_open
20043 if test "$ac_res" != no; then
20044   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20045
20046 fi
20047
20048
20049 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
20050 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
20051 if test "${ac_cv_lib_util_openpty+set}" = set; then
20052   echo $ECHO_N "(cached) $ECHO_C" >&6
20053 else
20054   ac_check_lib_save_LIBS=$LIBS
20055 LIBS="-lutil  $LIBS"
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h.  */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h.  */
20062
20063 /* Override any GCC internal prototype to avoid an error.
20064    Use char because int might match the return type of a GCC
20065    builtin and then its argument prototype would still apply.  */
20066 #ifdef __cplusplus
20067 extern "C"
20068 #endif
20069 char openpty ();
20070 int
20071 main ()
20072 {
20073 return openpty ();
20074   ;
20075   return 0;
20076 }
20077 _ACEOF
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082   *) ac_try_echo=$ac_try;;
20083 esac
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085   (eval "$ac_link") 2>conftest.er1
20086   ac_status=$?
20087   grep -v '^ *+' conftest.er1 >conftest.err
20088   rm -f conftest.er1
20089   cat conftest.err >&5
20090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091   (exit $ac_status); } && {
20092          test -z "$ac_c_werror_flag" ||
20093          test ! -s conftest.err
20094        } && test -s conftest$ac_exeext &&
20095        $as_test_x conftest$ac_exeext; then
20096   ac_cv_lib_util_openpty=yes
20097 else
20098   echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101         ac_cv_lib_util_openpty=no
20102 fi
20103
20104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105       conftest$ac_exeext conftest.$ac_ext
20106 LIBS=$ac_check_lib_save_LIBS
20107 fi
20108 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
20109 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
20110 if test $ac_cv_lib_util_openpty = yes; then
20111   cat >>confdefs.h <<_ACEOF
20112 #define HAVE_LIBUTIL 1
20113 _ACEOF
20114
20115   LIBS="-lutil $LIBS"
20116
20117 fi
20118
20119      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
20120      LIBS="$saved_LIBS"
20121   else
20122      { echo "$as_me:$LINENO: result: no" >&5
20123 echo "${ECHO_T}no" >&6; }
20124   fi
20125
20126 else
20127
20128   { echo "$as_me:$LINENO: result: no" >&5
20129 echo "${ECHO_T}no" >&6; }
20130
20131 fi
20132
20133
20134
20135
20136 #
20137 # Find where sockets are (especially for Solaris)
20138 # Do this before the TCP Wrappers test since tcp wrappers
20139 # uses the socket library and some linkers are stupid.
20140 #
20141 { echo "$as_me:$LINENO: checking for socket" >&5
20142 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
20143 if test "${ac_cv_func_socket+set}" = set; then
20144   echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146   cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20154 #define socket innocuous_socket
20155
20156 /* System header to define __stub macros and hopefully few prototypes,
20157     which can conflict with char socket (); below.
20158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20159     <limits.h> exists even on freestanding compilers.  */
20160
20161 #ifdef __STDC__
20162 # include <limits.h>
20163 #else
20164 # include <assert.h>
20165 #endif
20166
20167 #undef socket
20168
20169 /* Override any GCC internal prototype to avoid an error.
20170    Use char because int might match the return type of a GCC
20171    builtin and then its argument prototype would still apply.  */
20172 #ifdef __cplusplus
20173 extern "C"
20174 #endif
20175 char socket ();
20176 /* The GNU C library defines this for functions which it implements
20177     to always fail with ENOSYS.  Some functions are actually named
20178     something starting with __ and the normal name is an alias.  */
20179 #if defined __stub_socket || defined __stub___socket
20180 choke me
20181 #endif
20182
20183 int
20184 main ()
20185 {
20186 return socket ();
20187   ;
20188   return 0;
20189 }
20190 _ACEOF
20191 rm -f conftest.$ac_objext conftest$ac_exeext
20192 if { (ac_try="$ac_link"
20193 case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_link") 2>conftest.er1
20199   ac_status=$?
20200   grep -v '^ *+' conftest.er1 >conftest.err
20201   rm -f conftest.er1
20202   cat conftest.err >&5
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); } && {
20205          test -z "$ac_c_werror_flag" ||
20206          test ! -s conftest.err
20207        } && test -s conftest$ac_exeext &&
20208        $as_test_x conftest$ac_exeext; then
20209   ac_cv_func_socket=yes
20210 else
20211   echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20213
20214         ac_cv_func_socket=no
20215 fi
20216
20217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20218       conftest$ac_exeext conftest.$ac_ext
20219 fi
20220 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20221 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
20222 if test $ac_cv_func_socket = yes; then
20223   { echo "$as_me:$LINENO: result: using libc's socket" >&5
20224 echo "${ECHO_T}using libc's socket" >&6; }
20225 else
20226
20227 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
20228 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
20229 if test "${ac_cv_lib_xnet_socket+set}" = set; then
20230   echo $ECHO_N "(cached) $ECHO_C" >&6
20231 else
20232   ac_check_lib_save_LIBS=$LIBS
20233 LIBS="-lxnet  $LIBS"
20234 cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h.  */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h.  */
20240
20241 /* Override any GCC internal prototype to avoid an error.
20242    Use char because int might match the return type of a GCC
20243    builtin and then its argument prototype would still apply.  */
20244 #ifdef __cplusplus
20245 extern "C"
20246 #endif
20247 char socket ();
20248 int
20249 main ()
20250 {
20251 return socket ();
20252   ;
20253   return 0;
20254 }
20255 _ACEOF
20256 rm -f conftest.$ac_objext conftest$ac_exeext
20257 if { (ac_try="$ac_link"
20258 case "(($ac_try" in
20259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260   *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263   (eval "$ac_link") 2>conftest.er1
20264   ac_status=$?
20265   grep -v '^ *+' conftest.er1 >conftest.err
20266   rm -f conftest.er1
20267   cat conftest.err >&5
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } && {
20270          test -z "$ac_c_werror_flag" ||
20271          test ! -s conftest.err
20272        } && test -s conftest$ac_exeext &&
20273        $as_test_x conftest$ac_exeext; then
20274   ac_cv_lib_xnet_socket=yes
20275 else
20276   echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20278
20279         ac_cv_lib_xnet_socket=no
20280 fi
20281
20282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20283       conftest$ac_exeext conftest.$ac_ext
20284 LIBS=$ac_check_lib_save_LIBS
20285 fi
20286 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
20287 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
20288 if test $ac_cv_lib_xnet_socket = yes; then
20289   cat >>confdefs.h <<_ACEOF
20290 #define HAVE_LIBXNET 1
20291 _ACEOF
20292
20293   LIBS="-lxnet $LIBS"
20294
20295 fi
20296
20297
20298 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20299 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
20300 if test "${ac_cv_lib_socket_socket+set}" = set; then
20301   echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303   ac_check_lib_save_LIBS=$LIBS
20304 LIBS="-lsocket  $LIBS"
20305 cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h.  */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h.  */
20311
20312 /* Override any GCC internal prototype to avoid an error.
20313    Use char because int might match the return type of a GCC
20314    builtin and then its argument prototype would still apply.  */
20315 #ifdef __cplusplus
20316 extern "C"
20317 #endif
20318 char socket ();
20319 int
20320 main ()
20321 {
20322 return socket ();
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (ac_try="$ac_link"
20329 case "(($ac_try" in
20330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331   *) ac_try_echo=$ac_try;;
20332 esac
20333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334   (eval "$ac_link") 2>conftest.er1
20335   ac_status=$?
20336   grep -v '^ *+' conftest.er1 >conftest.err
20337   rm -f conftest.er1
20338   cat conftest.err >&5
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); } && {
20341          test -z "$ac_c_werror_flag" ||
20342          test ! -s conftest.err
20343        } && test -s conftest$ac_exeext &&
20344        $as_test_x conftest$ac_exeext; then
20345   ac_cv_lib_socket_socket=yes
20346 else
20347   echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350         ac_cv_lib_socket_socket=no
20351 fi
20352
20353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20354       conftest$ac_exeext conftest.$ac_ext
20355 LIBS=$ac_check_lib_save_LIBS
20356 fi
20357 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20358 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
20359 if test $ac_cv_lib_socket_socket = yes; then
20360   cat >>confdefs.h <<_ACEOF
20361 #define HAVE_LIBSOCKET 1
20362 _ACEOF
20363
20364   LIBS="-lsocket $LIBS"
20365
20366 fi
20367
20368
20369 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
20370 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
20371 if test "${ac_cv_lib_inet_socket+set}" = set; then
20372   echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20374   ac_check_lib_save_LIBS=$LIBS
20375 LIBS="-linet  $LIBS"
20376 cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h.  */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h.  */
20382
20383 /* Override any GCC internal prototype to avoid an error.
20384    Use char because int might match the return type of a GCC
20385    builtin and then its argument prototype would still apply.  */
20386 #ifdef __cplusplus
20387 extern "C"
20388 #endif
20389 char socket ();
20390 int
20391 main ()
20392 {
20393 return socket ();
20394   ;
20395   return 0;
20396 }
20397 _ACEOF
20398 rm -f conftest.$ac_objext conftest$ac_exeext
20399 if { (ac_try="$ac_link"
20400 case "(($ac_try" in
20401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402   *) ac_try_echo=$ac_try;;
20403 esac
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405   (eval "$ac_link") 2>conftest.er1
20406   ac_status=$?
20407   grep -v '^ *+' conftest.er1 >conftest.err
20408   rm -f conftest.er1
20409   cat conftest.err >&5
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); } && {
20412          test -z "$ac_c_werror_flag" ||
20413          test ! -s conftest.err
20414        } && test -s conftest$ac_exeext &&
20415        $as_test_x conftest$ac_exeext; then
20416   ac_cv_lib_inet_socket=yes
20417 else
20418   echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20420
20421         ac_cv_lib_inet_socket=no
20422 fi
20423
20424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20425       conftest$ac_exeext conftest.$ac_ext
20426 LIBS=$ac_check_lib_save_LIBS
20427 fi
20428 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
20429 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
20430 if test $ac_cv_lib_inet_socket = yes; then
20431   cat >>confdefs.h <<_ACEOF
20432 #define HAVE_LIBINET 1
20433 _ACEOF
20434
20435   LIBS="-linet $LIBS"
20436
20437 fi
20438
20439 fi
20440
20441
20442
20443 # -----------------------------------------------------------
20444 # Check whether user wants TCP wrappers support (default off)
20445 # -----------------------------------------------------------
20446 TCPW_MSG="no"
20447 WRAPLIBS=""
20448
20449 # Check whether --with-tcp-wrappers was given.
20450 if test "${with_tcp_wrappers+set}" = set; then
20451   withval=$with_tcp_wrappers;
20452     if test "x$withval" != "xno" ; then
20453        saved_LIBS="$LIBS"
20454        LIBS="$saved_LIBS -lwrap"
20455        { echo "$as_me:$LINENO: checking for libwrap" >&5
20456 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
20457        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
20458 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
20459 if test "${ac_cv_search_nanosleep+set}" = set; then
20460   echo $ECHO_N "(cached) $ECHO_C" >&6
20461 else
20462   ac_func_search_save_LIBS=$LIBS
20463 cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h.  */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h.  */
20469
20470 /* Override any GCC internal prototype to avoid an error.
20471    Use char because int might match the return type of a GCC
20472    builtin and then its argument prototype would still apply.  */
20473 #ifdef __cplusplus
20474 extern "C"
20475 #endif
20476 char nanosleep ();
20477 int
20478 main ()
20479 {
20480 return nanosleep ();
20481   ;
20482   return 0;
20483 }
20484 _ACEOF
20485 for ac_lib in '' rt; do
20486   if test -z "$ac_lib"; then
20487     ac_res="none required"
20488   else
20489     ac_res=-l$ac_lib
20490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20491   fi
20492   rm -f conftest.$ac_objext conftest$ac_exeext
20493 if { (ac_try="$ac_link"
20494 case "(($ac_try" in
20495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496   *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499   (eval "$ac_link") 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } && {
20506          test -z "$ac_c_werror_flag" ||
20507          test ! -s conftest.err
20508        } && test -s conftest$ac_exeext &&
20509        $as_test_x conftest$ac_exeext; then
20510   ac_cv_search_nanosleep=$ac_res
20511 else
20512   echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20514
20515
20516 fi
20517
20518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20519       conftest$ac_exeext
20520   if test "${ac_cv_search_nanosleep+set}" = set; then
20521   break
20522 fi
20523 done
20524 if test "${ac_cv_search_nanosleep+set}" = set; then
20525   :
20526 else
20527   ac_cv_search_nanosleep=no
20528 fi
20529 rm conftest.$ac_ext
20530 LIBS=$ac_func_search_save_LIBS
20531 fi
20532 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
20533 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
20534 ac_res=$ac_cv_search_nanosleep
20535 if test "$ac_res" != no; then
20536   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20537
20538 fi
20539
20540        cat >conftest.$ac_ext <<_ACEOF
20541 /* confdefs.h.  */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h.  */
20546  #include <sys/types.h>
20547             #include <tcpd.h>
20548              int deny_severity = 0;
20549              int allow_severity = 0;
20550              struct request_info *req;
20551 int
20552 main ()
20553 {
20554  hosts_access(req);
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_link") 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } && {
20573          test -z "$ac_c_werror_flag" ||
20574          test ! -s conftest.err
20575        } && test -s conftest$ac_exeext &&
20576        $as_test_x conftest$ac_exeext; then
20577
20578             { echo "$as_me:$LINENO: result: yes" >&5
20579 echo "${ECHO_T}yes" >&6; }
20580
20581 cat >>confdefs.h <<\_ACEOF
20582 #define HAVE_LIBWRAP 1
20583 _ACEOF
20584
20585             TCPW_MSG="yes"
20586             LIBS="$saved_LIBS"
20587             WRAPLIBS="-lwrap"
20588
20589 else
20590   echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20592
20593
20594             LIBS="$saved_LIBS -lwrap -lnsl"
20595             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
20596             cat >conftest.$ac_ext <<_ACEOF
20597 /* confdefs.h.  */
20598 _ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h.  */
20602  #include <sys/types.h>
20603                  #include <tcpd.h>
20604                  int deny_severity = 0;
20605                  int allow_severity = 0;
20606                  struct request_info *req;
20607 int
20608 main ()
20609 {
20610  hosts_access(req);
20611   ;
20612   return 0;
20613 }
20614 _ACEOF
20615 rm -f conftest.$ac_objext conftest$ac_exeext
20616 if { (ac_try="$ac_link"
20617 case "(($ac_try" in
20618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619   *) ac_try_echo=$ac_try;;
20620 esac
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622   (eval "$ac_link") 2>conftest.er1
20623   ac_status=$?
20624   grep -v '^ *+' conftest.er1 >conftest.err
20625   rm -f conftest.er1
20626   cat conftest.err >&5
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); } && {
20629          test -z "$ac_c_werror_flag" ||
20630          test ! -s conftest.err
20631        } && test -s conftest$ac_exeext &&
20632        $as_test_x conftest$ac_exeext; then
20633
20634                  { echo "$as_me:$LINENO: result: yes" >&5
20635 echo "${ECHO_T}yes" >&6; }
20636
20637 cat >>confdefs.h <<\_ACEOF
20638 #define HAVE_LIBWRAP 1
20639 _ACEOF
20640
20641                  TCPW_MSG="yes"
20642                  LIBS="$saved_LIBS"
20643                  WRAPLIBS="-lwrap"
20644
20645 else
20646   echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
20650 echo "$as_me: error: *** libwrap missing" >&2;}
20651    { (exit 1); exit 1; }; }
20652
20653 fi
20654
20655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20656       conftest$ac_exeext conftest.$ac_ext
20657
20658 fi
20659
20660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20661       conftest$ac_exeext conftest.$ac_ext
20662     fi
20663
20664
20665 fi
20666
20667
20668 # -----------------------------------------------------------
20669 # Check whether OpenSSL is available
20670 # -----------------------------------------------------------
20671 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
20672 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
20673
20674 # Check whether --with-openssl was given.
20675 if test "${with_openssl+set}" = set; then
20676   withval=$with_openssl; with_openssl_directory=${withval}
20677 fi
20678
20679
20680 if test "x$with_openssl_directory" != "x"; then
20681         OPENSSL_LIBS="-lssl -lcrypto"
20682         OPENSSL_INC=""
20683
20684         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
20685                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
20686                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
20687         fi
20688
20689         saved_LIBS="${LIBS}"
20690         saved_CFLAGS="${CFLAGS}"
20691         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
20692         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
20693
20694         cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h.  */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h.  */
20700  #include <openssl/ssl.h>
20701 int
20702 main ()
20703 {
20704  CRYPTO_set_id_callback(NULL);
20705   ;
20706   return 0;
20707 }
20708 _ACEOF
20709 rm -f conftest.$ac_objext conftest$ac_exeext
20710 if { (ac_try="$ac_link"
20711 case "(($ac_try" in
20712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713   *) ac_try_echo=$ac_try;;
20714 esac
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716   (eval "$ac_link") 2>conftest.er1
20717   ac_status=$?
20718   grep -v '^ *+' conftest.er1 >conftest.err
20719   rm -f conftest.er1
20720   cat conftest.err >&5
20721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722   (exit $ac_status); } && {
20723          test -z "$ac_c_werror_flag" ||
20724          test ! -s conftest.err
20725        } && test -s conftest$ac_exeext &&
20726        $as_test_x conftest$ac_exeext; then
20727
20728                         support_tls="yes"
20729                         support_crypto="yes"
20730
20731 else
20732   echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20734
20735          support_tls="no"
20736
20737 fi
20738
20739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20740       conftest$ac_exeext conftest.$ac_ext
20741
20742         cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h.  */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h.  */
20748  #include <openssl/evp.h>
20749 int
20750 main ()
20751 {
20752  EVP_sha512();
20753   ;
20754   return 0;
20755 }
20756 _ACEOF
20757 rm -f conftest.$ac_objext conftest$ac_exeext
20758 if { (ac_try="$ac_link"
20759 case "(($ac_try" in
20760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761   *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764   (eval "$ac_link") 2>conftest.er1
20765   ac_status=$?
20766   grep -v '^ *+' conftest.er1 >conftest.err
20767   rm -f conftest.er1
20768   cat conftest.err >&5
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); } && {
20771          test -z "$ac_c_werror_flag" ||
20772          test ! -s conftest.err
20773        } && test -s conftest$ac_exeext &&
20774        $as_test_x conftest$ac_exeext; then
20775    ac_cv_openssl_sha2="yes"
20776 else
20777   echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20779
20780          ac_cv_openssl_sha2="no"
20781
20782 fi
20783
20784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20785       conftest$ac_exeext conftest.$ac_ext
20786
20787         # Solaris disables greater than 128+ bit encryption in their OpenSSL
20788         # implementation, presumably for export reasons. If 192bit AES
20789         # is available, we assume that we're running with a 'non-export'
20790         # openssl library.
20791         cat >conftest.$ac_ext <<_ACEOF
20792 /* confdefs.h.  */
20793 _ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h.  */
20797  #include <openssl/evp.h>
20798 int
20799 main ()
20800 {
20801  EVP_aes_192_cbc();
20802   ;
20803   return 0;
20804 }
20805 _ACEOF
20806 rm -f conftest.$ac_objext conftest$ac_exeext
20807 if { (ac_try="$ac_link"
20808 case "(($ac_try" in
20809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810   *) ac_try_echo=$ac_try;;
20811 esac
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813   (eval "$ac_link") 2>conftest.er1
20814   ac_status=$?
20815   grep -v '^ *+' conftest.er1 >conftest.err
20816   rm -f conftest.er1
20817   cat conftest.err >&5
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); } && {
20820          test -z "$ac_c_werror_flag" ||
20821          test ! -s conftest.err
20822        } && test -s conftest$ac_exeext &&
20823        $as_test_x conftest$ac_exeext; then
20824    ac_cv_openssl_export="no"
20825 else
20826   echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20828
20829          ac_cv_openssl_export="yes"
20830
20831 fi
20832
20833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20834       conftest$ac_exeext conftest.$ac_ext
20835
20836         LIBS="${saved_LIBS}"
20837         CFLAGS="${saved_CFLAGS}"
20838
20839         if test "$support_tls" = "yes"; then
20840
20841 cat >>confdefs.h <<\_ACEOF
20842 #define HAVE_OPENSSL 1
20843 _ACEOF
20844
20845
20846 cat >>confdefs.h <<\_ACEOF
20847 #define HAVE_TLS 1
20848 _ACEOF
20849
20850
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_CRYPTO 1
20853 _ACEOF
20854
20855         fi
20856
20857         if test "$ac_cv_openssl_sha2" = "yes"; then
20858
20859 cat >>confdefs.h <<\_ACEOF
20860 #define HAVE_SHA2 1
20861 _ACEOF
20862
20863         fi
20864
20865         if test "$ac_cv_openssl_export" = "yes"; then
20866
20867 cat >>confdefs.h <<\_ACEOF
20868 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
20869 _ACEOF
20870
20871         fi
20872 else
20873         support_tls="no"
20874         support_crypto="no"
20875         OPENSSL_LIBS=""
20876         OPENSSL_INC=""
20877 fi
20878
20879 { echo "$as_me:$LINENO: result: $support_tls" >&5
20880 echo "${ECHO_T}$support_tls" >&6; }
20881
20882
20883
20884
20885 # -----------------------------------------------------------
20886 # dlopen is needed for plugins
20887 # -----------------------------------------------------------
20888 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
20889 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
20890 if test "${ac_cv_search_dlopen+set}" = set; then
20891   echo $ECHO_N "(cached) $ECHO_C" >&6
20892 else
20893   ac_func_search_save_LIBS=$LIBS
20894 cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h.  */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h.  */
20900
20901 /* Override any GCC internal prototype to avoid an error.
20902    Use char because int might match the return type of a GCC
20903    builtin and then its argument prototype would still apply.  */
20904 #ifdef __cplusplus
20905 extern "C"
20906 #endif
20907 char dlopen ();
20908 int
20909 main ()
20910 {
20911 return dlopen ();
20912   ;
20913   return 0;
20914 }
20915 _ACEOF
20916 for ac_lib in '' dl; do
20917   if test -z "$ac_lib"; then
20918     ac_res="none required"
20919   else
20920     ac_res=-l$ac_lib
20921     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20922   fi
20923   rm -f conftest.$ac_objext conftest$ac_exeext
20924 if { (ac_try="$ac_link"
20925 case "(($ac_try" in
20926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927   *) ac_try_echo=$ac_try;;
20928 esac
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930   (eval "$ac_link") 2>conftest.er1
20931   ac_status=$?
20932   grep -v '^ *+' conftest.er1 >conftest.err
20933   rm -f conftest.er1
20934   cat conftest.err >&5
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } && {
20937          test -z "$ac_c_werror_flag" ||
20938          test ! -s conftest.err
20939        } && test -s conftest$ac_exeext &&
20940        $as_test_x conftest$ac_exeext; then
20941   ac_cv_search_dlopen=$ac_res
20942 else
20943   echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20945
20946
20947 fi
20948
20949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20950       conftest$ac_exeext
20951   if test "${ac_cv_search_dlopen+set}" = set; then
20952   break
20953 fi
20954 done
20955 if test "${ac_cv_search_dlopen+set}" = set; then
20956   :
20957 else
20958   ac_cv_search_dlopen=no
20959 fi
20960 rm conftest.$ac_ext
20961 LIBS=$ac_func_search_save_LIBS
20962 fi
20963 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
20964 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
20965 ac_res=$ac_cv_search_dlopen
20966 if test "$ac_res" != no; then
20967   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20968
20969 fi
20970
20971
20972 # ------------------------------------------
20973 # Where to place working dir
20974 # ------------------------------------------
20975 working_dir=`eval echo ${prefix}/var/bacula/working`
20976
20977 # Check whether --with-working-dir was given.
20978 if test "${with_working_dir+set}" = set; then
20979   withval=$with_working_dir;
20980        if test "x$withval" != "xno" ; then
20981               working_dir=$withval
20982        fi
20983
20984
20985 fi
20986
20987
20988
20989
20990 # ------------------------------------------------------------------
20991 # If the user has not set archivedir, we set our default as /tmp
20992 # ------------------------------------------------------------------
20993 archive_dir=/tmp
20994
20995 # Check whether --with-archivedir was given.
20996 if test "${with_archivedir+set}" = set; then
20997   withval=$with_archivedir;
20998        if test "x$withval" != "xno" ; then
20999               archivedir=$withval
21000        fi
21001
21002
21003 fi
21004
21005
21006
21007
21008
21009
21010 # ------------------------------------------
21011 # Where to place scriptdir (script files)
21012 # ------------------------------------------
21013 scriptdir=`eval echo ${sysconfdir}`
21014
21015 # Check whether --with-scriptdir was given.
21016 if test "${with_scriptdir+set}" = set; then
21017   withval=$with_scriptdir;
21018        if test "x$withval" != "xno" ; then
21019               scriptdir=$withval
21020        fi
21021
21022
21023 fi
21024
21025
21026
21027
21028
21029 # ------------------------------------------
21030 # Where to place plugindir (script files)
21031 # ------------------------------------------
21032 plugindir=`eval echo ${sysconfdir}`
21033
21034 # Check whether --with-plugindir was given.
21035 if test "${with_plugindir+set}" = set; then
21036   withval=$with_plugindir;
21037        if test "x$withval" != "xno" ; then
21038               plugindir=$withval
21039        fi
21040
21041
21042 fi
21043
21044
21045
21046
21047
21048 # ------------------------------------------
21049 # Where to send dump email
21050 # ------------------------------------------
21051 dump_email=root@localhost
21052
21053 # Check whether --with-dump-email was given.
21054 if test "${with_dump_email+set}" = set; then
21055   withval=$with_dump_email;
21056        if test "x$withval" != "xno" ; then
21057               dump_email=$withval
21058        fi
21059
21060
21061 fi
21062
21063
21064
21065
21066 # ------------------------------------------
21067 # Where to send job email
21068 # ------------------------------------------
21069 job_email=root@localhost
21070
21071 # Check whether --with-job-email was given.
21072 if test "${with_job_email+set}" = set; then
21073   withval=$with_job_email;
21074        if test "x$withval" != "xno" ; then
21075               job_email=$withval
21076        fi
21077
21078
21079 fi
21080
21081
21082
21083
21084 # ------------------------------------------
21085 # Where to find smtp host
21086 # ------------------------------------------
21087 smtp_host=localhost
21088
21089 # Check whether --with-smtp_host was given.
21090 if test "${with_smtp_host+set}" = set; then
21091   withval=$with_smtp_host;
21092        if test "x$withval" != "xno" ; then
21093               smtp_host=$withval
21094        fi
21095
21096
21097 fi
21098
21099
21100
21101
21102
21103 # ------------------------------------
21104 # Where to place pid files
21105 # ------------------------------------
21106 piddir=/var/run
21107
21108 # Check whether --with-pid-dir was given.
21109 if test "${with_pid_dir+set}" = set; then
21110   withval=$with_pid_dir;
21111         if test "x$withval" != "xno" ; then
21112             piddir=$withval
21113         fi
21114
21115
21116 fi
21117
21118
21119 cat >>confdefs.h <<_ACEOF
21120 #define _PATH_BACULA_PIDDIR "$piddir"
21121 _ACEOF
21122
21123
21124
21125
21126 # ------------------------------------
21127 # Where to place subsys "lock file"
21128 # ------------------------------------
21129 subsysdir=/var/run/subsys
21130 if test -d /var/run/subsys; then
21131    subsysdir=/var/run/subsys
21132 elif test -d /var/lock/subsys; then
21133    subsysdir=/var/lock/subsys
21134 else
21135    subsysdir=/var/run/subsys
21136 fi
21137
21138 # Check whether --with-subsys-dir was given.
21139 if test "${with_subsys_dir+set}" = set; then
21140   withval=$with_subsys_dir;
21141         if test "x$withval" != "xno" ; then
21142             subsysdir=$withval
21143         fi
21144
21145
21146 fi
21147
21148
21149
21150
21151
21152
21153 # ------------------------------------
21154 # Where to start assigning ports
21155 # ------------------------------------
21156 baseport=9101
21157
21158 # Check whether --with-baseport was given.
21159 if test "${with_baseport+set}" = set; then
21160   withval=$with_baseport;
21161         if test "x$withval" != "xno" ; then
21162              baseport=$withval
21163         fi
21164
21165
21166 fi
21167
21168
21169
21170 dir_port=`expr $baseport`
21171 fd_port=`expr $baseport + 1`
21172 sd_port=`expr $fd_port + 1`
21173
21174
21175
21176
21177
21178
21179 # ------------------------------------------
21180 # Generate passwords
21181 # ------------------------------------------
21182 dir_password=
21183
21184 # Check whether --with-dir-password was given.
21185 if test "${with_dir_password+set}" = set; then
21186   withval=$with_dir_password;
21187        if test "x$withval" != "xno" ; then
21188            dir_password=$withval
21189        fi
21190
21191
21192 fi
21193
21194
21195 if test "x$dir_password" = "x" ; then
21196    if test "x$OPENSSL" = "xnone" ; then
21197       key=`autoconf/randpass 33`
21198    else
21199       key=`openssl rand -base64 33`
21200    fi
21201    dir_password=$key
21202 fi
21203
21204 fd_password=
21205
21206 # Check whether --with-fd-password was given.
21207 if test "${with_fd_password+set}" = set; then
21208   withval=$with_fd_password;
21209        if test "x$withval" != "xno" ; then
21210            fd_password=$withval
21211        fi
21212
21213
21214 fi
21215
21216
21217 if test "x$fd_password" = "x" ; then
21218    if test "x$OPENSSL" = "xnone" ; then
21219       key=`autoconf/randpass 37`
21220    else
21221       key=`openssl rand -base64 33`
21222    fi
21223    fd_password=$key
21224 fi
21225
21226 sd_password=
21227
21228 # Check whether --with-sd-password was given.
21229 if test "${with_sd_password+set}" = set; then
21230   withval=$with_sd_password;
21231        if test "x$withval" != "xno" ; then
21232            sd_password=$withval
21233        fi
21234
21235
21236 fi
21237
21238
21239 if test "x$sd_password" = "x" ; then
21240    if test "x$OPENSSL" = "xnone" ; then
21241       key=`autoconf/randpass 41`
21242    else
21243       key=`openssl rand -base64 33`
21244    fi
21245    sd_password=$key
21246 fi
21247
21248 mon_dir_password=
21249
21250 # Check whether --with-mon-dir-password was given.
21251 if test "${with_mon_dir_password+set}" = set; then
21252   withval=$with_mon_dir_password;
21253        if test "x$withval" != "xno" ; then
21254            mon_dir_password=$withval
21255        fi
21256
21257
21258 fi
21259
21260
21261 if test "x$mon_dir_password" = "x" ; then
21262    if test "x$OPENSSL" = "xnone" ; then
21263       key=`autoconf/randpass 33`
21264    else
21265       key=`openssl rand -base64 33`
21266    fi
21267    mon_dir_password=$key
21268 fi
21269
21270 mon_fd_password=
21271
21272 # Check whether --with-mon-fd-password was given.
21273 if test "${with_mon_fd_password+set}" = set; then
21274   withval=$with_mon_fd_password;
21275        if test "x$withval" != "xno" ; then
21276            mon_fd_password=$withval
21277        fi
21278
21279
21280 fi
21281
21282
21283 if test "x$mon_fd_password" = "x" ; then
21284    if test "x$OPENSSL" = "xnone" ; then
21285       key=`autoconf/randpass 37`
21286    else
21287       key=`openssl rand -base64 33`
21288    fi
21289    mon_fd_password=$key
21290 fi
21291
21292 mon_sd_password=
21293
21294 # Check whether --with-mon-sd-password was given.
21295 if test "${with_mon_sd_password+set}" = set; then
21296   withval=$with_mon_sd_password;
21297        if test "x$withval" != "xno" ; then
21298            mon_sd_password=$withval
21299        fi
21300
21301
21302 fi
21303
21304
21305 if test "x$mon_sd_password" = "x" ; then
21306    if test "x$OPENSSL" = "xnone" ; then
21307       key=`autoconf/randpass 41`
21308    else
21309       key=`openssl rand -base64 33`
21310    fi
21311    mon_sd_password=$key
21312 fi
21313
21314
21315
21316
21317
21318
21319
21320
21321 #
21322 # Pickup any database name
21323 #
21324 db_name=bacula
21325
21326 # Check whether --with-db_name was given.
21327 if test "${with_db_name+set}" = set; then
21328   withval=$with_db_name;
21329         if test "x$withval" != "x" ; then
21330              db_name=$withval
21331         fi
21332
21333
21334 fi
21335
21336
21337
21338 db_user=bacula
21339
21340 # Check whether --with-db_user was given.
21341 if test "${with_db_user+set}" = set; then
21342   withval=$with_db_user;
21343         if test "x$withval" != "x" ; then
21344              db_user=$withval
21345         fi
21346
21347
21348 fi
21349
21350
21351
21352 db_password=
21353
21354 # Check whether --with-db_password was given.
21355 if test "${with_db_password+set}" = set; then
21356   withval=$with_db_password;
21357         if test "x$withval" != "x" ; then
21358              db_password=$withval
21359         fi
21360
21361
21362 fi
21363
21364
21365
21366 #
21367 # Pickup a database port
21368 #
21369 db_port=" "
21370
21371 # Check whether --with-db_port was given.
21372 if test "${with_db_port+set}" = set; then
21373   withval=$with_db_port;
21374         if test "x$withval" != "x" ; then
21375              db_port=$withval
21376         fi
21377
21378
21379 fi
21380
21381
21382
21383 #
21384 # Handle users and groups for each daemon
21385 #
21386 dir_user=
21387
21388 # Check whether --with-dir_user was given.
21389 if test "${with_dir_user+set}" = set; then
21390   withval=$with_dir_user;
21391         if test "x$withval" != "x" ; then
21392              dir_user=$withval
21393         fi
21394
21395
21396 fi
21397
21398
21399 dir_group=
21400
21401 # Check whether --with-dir_group was given.
21402 if test "${with_dir_group+set}" = set; then
21403   withval=$with_dir_group;
21404         if test "x$withval" != "x" ; then
21405              dir_group=$withval
21406         fi
21407
21408
21409 fi
21410
21411
21412 sd_user=
21413
21414 # Check whether --with-sd_user was given.
21415 if test "${with_sd_user+set}" = set; then
21416   withval=$with_sd_user;
21417         if test "x$withval" != "x" ; then
21418              sd_user=$withval
21419         fi
21420
21421
21422 fi
21423
21424
21425 sd_group=
21426
21427 # Check whether --with-sd_group was given.
21428 if test "${with_sd_group+set}" = set; then
21429   withval=$with_sd_group;
21430         if test "x$withval" != "x" ; then
21431              sd_group=$withval
21432         fi
21433
21434
21435 fi
21436
21437
21438 fd_user=
21439
21440 # Check whether --with-fd_user was given.
21441 if test "${with_fd_user+set}" = set; then
21442   withval=$with_fd_user;
21443         if test "x$withval" != "x" ; then
21444              fd_user=$withval
21445         fi
21446
21447
21448 fi
21449
21450
21451 fd_group=
21452
21453 # Check whether --with-fd_group was given.
21454 if test "${with_fd_group+set}" = set; then
21455   withval=$with_fd_group;
21456         if test "x$withval" != "x" ; then
21457              fd_group=$withval
21458         fi
21459
21460
21461 fi
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471 #
21472 # allow setting default executable permissions
21473 #
21474 SBINPERM=0754
21475
21476 # Check whether --with-sbin-perm was given.
21477 if test "${with_sbin_perm+set}" = set; then
21478   withval=$with_sbin_perm;
21479         if test "x$withval" != "x" ; then
21480             SBINPERM=$withval
21481         fi
21482
21483
21484 fi
21485
21486
21487
21488
21489 # ------------------------------------------------
21490 # Bacula check for various SQL database engines
21491 # ------------------------------------------------
21492 SQL_LIB=
21493
21494 db_found=no
21495 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
21496 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
21497
21498 # Check whether --with-postgresql was given.
21499 if test "${with_postgresql+set}" = set; then
21500   withval=$with_postgresql;
21501   if test "$withval" != "no"; then
21502       if test "$db_found" = "yes"; then
21503           { echo "$as_me:$LINENO: result: error" >&5
21504 echo "${ECHO_T}error" >&6; }
21505           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
21506 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
21507    { (exit 1); exit 1; }; };
21508       fi
21509       if test "$withval" = "yes"; then
21510           PG_CONFIG=`which pg_config`
21511           if test -n "$PG_CONFIG";then
21512               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
21513               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
21514               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
21515           elif test -f /usr/local/include/libpq-fe.h; then
21516               POSTGRESQL_INCDIR=/usr/local/include
21517               if test -d /usr/local/lib64; then
21518                  POSTGRESQL_LIBDIR=/usr/local/lib64
21519               else
21520                  POSTGRESQL_LIBDIR=/usr/local/lib
21521               fi
21522               POSTGRESQL_BINDIR=/usr/local/bin
21523           elif test -f /usr/include/libpq-fe.h; then
21524               POSTGRESQL_INCDIR=/usr/include
21525               if test -d /usr/lib64; then
21526                  POSTGRESQL_LIBDIR=/usr/lib64
21527               else
21528                  POSTGRESQL_LIBDIR=/usr/lib
21529               fi
21530               POSTGRESQL_BINDIR=/usr/bin
21531           elif test -f /usr/include/pgsql/libpq-fe.h; then
21532               POSTGRESQL_INCDIR=/usr/include/pgsql
21533               if test -d /usr/lib64/pgsql; then
21534                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
21535               else
21536                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
21537               fi
21538               POSTGRESQL_BINDIR=/usr/bin
21539           elif test -f /usr/include/postgresql/libpq-fe.h; then
21540               POSTGRESQL_INCDIR=/usr/include/postgresql
21541               if test -d /usr/lib64/postgresql; then
21542                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
21543               else
21544                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
21545               fi
21546               POSTGRESQL_BINDIR=/usr/bin
21547           else
21548               { echo "$as_me:$LINENO: result: no" >&5
21549 echo "${ECHO_T}no" >&6; }
21550               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
21551 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
21552    { (exit 1); exit 1; }; }
21553           fi
21554       elif test -f $withval/include/libpq-fe.h; then
21555           POSTGRESQL_INCDIR=$withval/include
21556           POSTGRESQL_LIBDIR=$withval/lib
21557           POSTGRESQL_BINDIR=$withval/bin
21558       elif test -f $withval/include/postgresql/libpq-fe.h; then
21559           POSTGRESQL_INCDIR=$withval/include/postgresql
21560      if test -d $withval/lib64; then
21561          POSTGRESQL_LIBDIR=$withval/lib64
21562      else
21563          POSTGRESQL_LIBDIR=$withval/lib
21564      fi
21565           POSTGRESQL_BINDIR=$withval/bin
21566       else
21567           { echo "$as_me:$LINENO: result: no" >&5
21568 echo "${ECHO_T}no" >&6; }
21569           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
21570 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
21571    { (exit 1); exit 1; }; }
21572       fi
21573       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
21574       { echo "$as_me:$LINENO: checking for crypt" >&5
21575 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
21576 if test "${ac_cv_func_crypt+set}" = set; then
21577   echo $ECHO_N "(cached) $ECHO_C" >&6
21578 else
21579   cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h.  */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h.  */
21585 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
21586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21587 #define crypt innocuous_crypt
21588
21589 /* System header to define __stub macros and hopefully few prototypes,
21590     which can conflict with char crypt (); below.
21591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21592     <limits.h> exists even on freestanding compilers.  */
21593
21594 #ifdef __STDC__
21595 # include <limits.h>
21596 #else
21597 # include <assert.h>
21598 #endif
21599
21600 #undef crypt
21601
21602 /* Override any GCC internal prototype to avoid an error.
21603    Use char because int might match the return type of a GCC
21604    builtin and then its argument prototype would still apply.  */
21605 #ifdef __cplusplus
21606 extern "C"
21607 #endif
21608 char crypt ();
21609 /* The GNU C library defines this for functions which it implements
21610     to always fail with ENOSYS.  Some functions are actually named
21611     something starting with __ and the normal name is an alias.  */
21612 #if defined __stub_crypt || defined __stub___crypt
21613 choke me
21614 #endif
21615
21616 int
21617 main ()
21618 {
21619 return crypt ();
21620   ;
21621   return 0;
21622 }
21623 _ACEOF
21624 rm -f conftest.$ac_objext conftest$ac_exeext
21625 if { (ac_try="$ac_link"
21626 case "(($ac_try" in
21627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628   *) ac_try_echo=$ac_try;;
21629 esac
21630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631   (eval "$ac_link") 2>conftest.er1
21632   ac_status=$?
21633   grep -v '^ *+' conftest.er1 >conftest.err
21634   rm -f conftest.er1
21635   cat conftest.err >&5
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); } && {
21638          test -z "$ac_c_werror_flag" ||
21639          test ! -s conftest.err
21640        } && test -s conftest$ac_exeext &&
21641        $as_test_x conftest$ac_exeext; then
21642   ac_cv_func_crypt=yes
21643 else
21644   echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21646
21647         ac_cv_func_crypt=no
21648 fi
21649
21650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21651       conftest$ac_exeext conftest.$ac_ext
21652 fi
21653 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
21654 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
21655 if test $ac_cv_func_crypt = yes; then
21656   :
21657 else
21658   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21659 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21660 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21661   echo $ECHO_N "(cached) $ECHO_C" >&6
21662 else
21663   ac_check_lib_save_LIBS=$LIBS
21664 LIBS="-lcrypt  $LIBS"
21665 cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h.  */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h.  */
21671
21672 /* Override any GCC internal prototype to avoid an error.
21673    Use char because int might match the return type of a GCC
21674    builtin and then its argument prototype would still apply.  */
21675 #ifdef __cplusplus
21676 extern "C"
21677 #endif
21678 char crypt ();
21679 int
21680 main ()
21681 {
21682 return crypt ();
21683   ;
21684   return 0;
21685 }
21686 _ACEOF
21687 rm -f conftest.$ac_objext conftest$ac_exeext
21688 if { (ac_try="$ac_link"
21689 case "(($ac_try" in
21690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691   *) ac_try_echo=$ac_try;;
21692 esac
21693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694   (eval "$ac_link") 2>conftest.er1
21695   ac_status=$?
21696   grep -v '^ *+' conftest.er1 >conftest.err
21697   rm -f conftest.er1
21698   cat conftest.err >&5
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); } && {
21701          test -z "$ac_c_werror_flag" ||
21702          test ! -s conftest.err
21703        } && test -s conftest$ac_exeext &&
21704        $as_test_x conftest$ac_exeext; then
21705   ac_cv_lib_crypt_crypt=yes
21706 else
21707   echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21709
21710         ac_cv_lib_crypt_crypt=no
21711 fi
21712
21713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21714       conftest$ac_exeext conftest.$ac_ext
21715 LIBS=$ac_check_lib_save_LIBS
21716 fi
21717 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21718 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21719 if test $ac_cv_lib_crypt_crypt = yes; then
21720   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
21721 fi
21722
21723 fi
21724
21725       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
21726       SQL_LFLAGS=$POSTGRESQL_LFLAGS
21727       SQL_BINDIR=$POSTGRESQL_BINDIR
21728       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
21729
21730       cat >>confdefs.h <<\_ACEOF
21731 #define HAVE_POSTGRESQL 1
21732 _ACEOF
21733
21734       { echo "$as_me:$LINENO: result: yes" >&5
21735 echo "${ECHO_T}yes" >&6; }
21736       db_found=yes
21737       support_postgresql=yes
21738       db_type=PostgreSQL
21739       DB_TYPE=postgresql
21740   else
21741       { echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6; }
21743   fi
21744
21745 else
21746
21747   { echo "$as_me:$LINENO: result: no" >&5
21748 echo "${ECHO_T}no" >&6; }
21749
21750 fi
21751
21752
21753
21754
21755
21756
21757
21758
21759 db_found=no
21760 { echo "$as_me:$LINENO: checking for MySQL support" >&5
21761 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
21762
21763 # Check whether --with-mysql was given.
21764 if test "${with_mysql+set}" = set; then
21765   withval=$with_mysql;
21766   if test "$withval" != "no"; then
21767         if test "$withval" = "yes"; then
21768            if test -f /usr/local/mysql/include/mysql/mysql.h; then
21769                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
21770                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
21771                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
21772                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
21773                    else
21774                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
21775                    fi
21776                    MYSQL_BINDIR=/usr/local/mysql/bin
21777            elif test -f /usr/include/mysql/mysql.h; then
21778                    MYSQL_INCDIR=/usr/include/mysql
21779                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
21780                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
21781                            MYSQL_LIBDIR=/usr/lib64/mysql
21782                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
21783                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
21784                            MYSQL_LIBDIR=/usr/lib/mysql
21785                    else
21786                            MYSQL_LIBDIR=/usr/lib
21787                    fi
21788                    MYSQL_BINDIR=/usr/bin
21789            elif test -f /usr/include/mysql.h; then
21790                    MYSQL_INCDIR=/usr/include
21791                    if test -f /usr/lib64/libmysqlclient_r.a \
21792                         -o -f /usr/lib64/libmysqlclient_r.so; then
21793                            MYSQL_LIBDIR=/usr/lib64
21794                    else
21795                            MYSQL_LIBDIR=/usr/lib
21796                    fi
21797                    MYSQL_BINDIR=/usr/bin
21798            elif test -f /usr/local/include/mysql/mysql.h; then
21799                    MYSQL_INCDIR=/usr/local/include/mysql
21800                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
21801                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
21802                            MYSQL_LIBDIR=/usr/local/lib64/mysql
21803                    else
21804                            MYSQL_LIBDIR=/usr/local/lib/mysql
21805                    fi
21806                    MYSQL_BINDIR=/usr/local/bin
21807            elif test -f /usr/local/include/mysql.h; then
21808                    MYSQL_INCDIR=/usr/local/include
21809                    if test -f /usr/local/lib64/libmysqlclient_r.a \
21810                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
21811                            MYSQL_LIBDIR=/usr/local/lib64
21812                    else
21813                            MYSQL_LIBDIR=/usr/local/lib
21814                    fi
21815                    MYSQL_BINDIR=/usr/local/bin
21816            else
21817               { echo "$as_me:$LINENO: result: no" >&5
21818 echo "${ECHO_T}no" >&6; }
21819               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
21820 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
21821    { (exit 1); exit 1; }; }
21822            fi
21823         else
21824            if test -f $withval/include/mysql/mysql.h; then
21825               MYSQL_INCDIR=$withval/include/mysql
21826               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
21827                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
21828                  MYSQL_LIBDIR=$withval/lib64/mysql
21829               else
21830                  MYSQL_LIBDIR=$withval/lib/mysql
21831                  # Solaris ...
21832                  if test -f $withval/lib/libmysqlclient_r.so; then
21833                     MYSQL_LIBDIR=$withval/lib
21834                  fi
21835               fi
21836               MYSQL_BINDIR=$withval/bin
21837            elif test -f $withval/include/mysql.h; then
21838               MYSQL_INCDIR=$withval/include
21839               if test -f $withval/lib64/libmysqlclient_r.a \
21840                    -o -f $withval/lib64/libmysqlclient_r.so; then
21841                  MYSQL_LIBDIR=$withval/lib64
21842               else
21843                  MYSQL_LIBDIR=$withval/lib
21844               fi
21845               MYSQL_BINDIR=$withval/bin
21846            else
21847               { echo "$as_me:$LINENO: result: no" >&5
21848 echo "${ECHO_T}no" >&6; }
21849               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
21850 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
21851    { (exit 1); exit 1; }; }
21852            fi
21853         fi
21854     SQL_INCLUDE=-I$MYSQL_INCDIR
21855     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
21856          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
21857        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
21858        cat >>confdefs.h <<\_ACEOF
21859 #define HAVE_THREAD_SAFE_MYSQL 1
21860 _ACEOF
21861
21862     fi
21863     SQL_BINDIR=$MYSQL_BINDIR
21864     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
21865
21866     cat >>confdefs.h <<\_ACEOF
21867 #define HAVE_MYSQL 1
21868 _ACEOF
21869
21870     { echo "$as_me:$LINENO: result: yes" >&5
21871 echo "${ECHO_T}yes" >&6; }
21872     db_found=yes
21873     support_mysql=yes
21874     db_type=MySQL
21875     DB_TYPE=mysql
21876
21877   else
21878         { echo "$as_me:$LINENO: result: no" >&5
21879 echo "${ECHO_T}no" >&6; }
21880   fi
21881
21882
21883 fi
21884
21885
21886
21887 # Check whether --with-embedded-mysql was given.
21888 if test "${with_embedded_mysql+set}" = set; then
21889   withval=$with_embedded_mysql;
21890   if test "$withval" != "no"; then
21891         if test "$withval" = "yes"; then
21892                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
21893                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
21894                         if test -d /usr/local/mysql/lib64/mysql; then
21895                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
21896                         else
21897                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
21898                         fi
21899                         MYSQL_BINDIR=/usr/local/mysql/bin
21900                 elif test -f /usr/include/mysql/mysql.h; then
21901                         MYSQL_INCDIR=/usr/include/mysql
21902                         if test -d /usr/lib64/mysql; then
21903                                 MYSQL_LIBDIR=/usr/lib64/mysql
21904                         else
21905                                 MYSQL_LIBDIR=/usr/lib/mysql
21906                         fi
21907                         MYSQL_BINDIR=/usr/bin
21908                 elif test -f /usr/include/mysql.h; then
21909                         MYSQL_INCDIR=/usr/include
21910                         if test -d /usr/lib64; then
21911                                 MYSQL_LIBDIR=/usr/lib64
21912                         else
21913                                 MYSQL_LIBDIR=/usr/lib
21914                         fi
21915                         MYSQL_BINDIR=/usr/bin
21916                 elif test -f /usr/local/include/mysql/mysql.h; then
21917                         MYSQL_INCDIR=/usr/local/include/mysql
21918                         if test -d /usr/local/lib64/mysql; then
21919                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
21920                         else
21921                                 MYSQL_LIBDIR=/usr/local/lib/mysql
21922                         fi
21923                         MYSQL_BINDIR=/usr/local/bin
21924                 elif test -f /usr/local/include/mysql.h; then
21925                         MYSQL_INCDIR=/usr/local/include
21926                         if test -d /usr/local/lib64; then
21927                                 MYSQL_LIBDIR=/usr/local/lib64
21928                         else
21929                                 MYSQL_LIBDIR=/usr/local/lib
21930                         fi
21931                         MYSQL_BINDIR=/usr/local/bin
21932                 else
21933                    { echo "$as_me:$LINENO: result: no" >&5
21934 echo "${ECHO_T}no" >&6; }
21935                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
21936 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
21937    { (exit 1); exit 1; }; }
21938                 fi
21939         else
21940                 if test -f $withval/include/mysql/mysql.h; then
21941                         MYSQL_INCDIR=$withval/include/mysql
21942                         if test -d $withval/lib64/mysql; then
21943                                 MYSQL_LIBDIR=$withval/lib64/mysql
21944                         else
21945                                 MYSQL_LIBDIR=$withval/lib/mysql
21946                         fi
21947                         MYSQL_BINDIR=$withval/bin
21948                 elif test -f $withval/include/mysql.h; then
21949                         MYSQL_INCDIR=$withval/include
21950                         if test -d $withval/lib64; then
21951                                 MYSQL_LIBDIR=$withval/lib64
21952                         else
21953                                 MYSQL_LIBDIR=$withval/lib
21954                         fi
21955                         MYSQL_BINDIR=$withval/bin
21956                 else
21957                    { echo "$as_me:$LINENO: result: no" >&5
21958 echo "${ECHO_T}no" >&6; }
21959                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
21960 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
21961    { (exit 1); exit 1; }; }
21962                 fi
21963         fi
21964     SQL_INCLUDE=-I$MYSQL_INCDIR
21965     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
21966     SQL_BINDIR=$MYSQL_BINDIR
21967     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
21968
21969     cat >>confdefs.h <<\_ACEOF
21970 #define HAVE_MYSQL 1
21971 _ACEOF
21972
21973     cat >>confdefs.h <<\_ACEOF
21974 #define HAVE_EMBEDDED_MYSQL 1
21975 _ACEOF
21976
21977     { echo "$as_me:$LINENO: result: yes" >&5
21978 echo "${ECHO_T}yes" >&6; }
21979     db_found=yes
21980     support_mysql=yes
21981     db_type=MySQL
21982     DB_TYPE=mysql
21983
21984   else
21985         { echo "$as_me:$LINENO: result: no" >&5
21986 echo "${ECHO_T}no" >&6; }
21987   fi
21988
21989
21990 fi
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001 db_found=no
22002 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
22003 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
22004
22005 # Check whether --with-sqlite3 was given.
22006 if test "${with_sqlite3+set}" = set; then
22007   withval=$with_sqlite3;
22008   if test "$withval" != "no"; then
22009      if test "$withval" = "yes"; then
22010         if test -f /usr/local/include/sqlite3.h; then
22011            SQLITE_INCDIR=/usr/local/include
22012            if test -d /usr/local/lib64; then
22013               SQLITE_LIBDIR=/usr/local/lib64
22014            else
22015               SQLITE_LIBDIR=/usr/local/lib
22016            fi
22017            SQLITE_BINDIR=/usr/local/bin
22018         elif test -f /usr/include/sqlite3.h; then
22019            SQLITE_INCDIR=/usr/include
22020            if test -d /usr/lib64; then
22021               SQLITE_LIBDIR=/usr/lib64
22022            else
22023               SQLITE_LIBDIR=/usr/lib
22024            fi
22025            SQLITE_BINDIR=/usr/bin
22026         elif test -f $prefix/include/sqlite3.h; then
22027            SQLITE_INCDIR=$prefix/include
22028            if test -d $prefix/lib64; then
22029               SQLITE_LIBDIR=$prefix/lib64
22030            else
22031               SQLITE_LIBDIR=$prefix/lib
22032            fi
22033            SQLITE_BINDIR=$prefix/bin
22034         else
22035            { echo "$as_me:$LINENO: result: no" >&5
22036 echo "${ECHO_T}no" >&6; }
22037            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
22038 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
22039    { (exit 1); exit 1; }; }
22040         fi
22041      else
22042         if test -f $withval/sqlite3.h; then
22043            SQLITE_INCDIR=$withval
22044            SQLITE_LIBDIR=$withval
22045            SQLITE_BINDIR=$withval
22046         elif test -f $withval/include/sqlite3.h; then
22047            SQLITE_INCDIR=$withval/include
22048            if test -d $withval/lib64; then
22049               SQLITE_LIBDIR=$withval/lib64
22050            else
22051               SQLITE_LIBDIR=$withval/lib
22052            fi
22053            SQLITE_BINDIR=$withval/bin
22054         else
22055            { echo "$as_me:$LINENO: result: no" >&5
22056 echo "${ECHO_T}no" >&6; }
22057            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
22058 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
22059    { (exit 1); exit 1; }; }
22060         fi
22061      fi
22062      SQL_INCLUDE=-I$SQLITE_INCDIR
22063      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
22064      SQL_BINDIR=$SQLITE_BINDIR
22065      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
22066
22067      cat >>confdefs.h <<\_ACEOF
22068 #define HAVE_SQLITE3 1
22069 _ACEOF
22070
22071      { echo "$as_me:$LINENO: result: yes" >&5
22072 echo "${ECHO_T}yes" >&6; }
22073      db_found=yes
22074      support_sqlite3=yes
22075      db_type=SQLite3
22076      DB_TYPE=sqlite3
22077
22078   else
22079      { echo "$as_me:$LINENO: result: no" >&5
22080 echo "${ECHO_T}no" >&6; }
22081   fi
22082
22083 else
22084
22085   { echo "$as_me:$LINENO: result: no" >&5
22086 echo "${ECHO_T}no" >&6; }
22087
22088 fi
22089
22090
22091
22092
22093
22094
22095
22096
22097 db_found=no
22098 { echo "$as_me:$LINENO: checking for SQLite support" >&5
22099 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
22100
22101 # Check whether --with-sqlite was given.
22102 if test "${with_sqlite+set}" = set; then
22103   withval=$with_sqlite;
22104   if test "$withval" != "no"; then
22105      if test "$withval" = "yes"; then
22106         if test -f /usr/local/include/sqlite.h; then
22107            SQLITE_INCDIR=/usr/local/include
22108            if test -d /usr/local/lib64; then
22109               SQLITE_LIBDIR=/usr/local/lib64
22110            else
22111               SQLITE_LIBDIR=/usr/local/lib
22112            fi
22113            SQLITE_BINDIR=/usr/local/bin
22114         elif test -f /usr/include/sqlite.h; then
22115            SQLITE_INCDIR=/usr/include
22116            if test -d /usr/lib64; then
22117               SQLITE_LIBDIR=/usr/lib64
22118            else
22119               SQLITE_LIBDIR=/usr/lib
22120            fi
22121            SQLITE_BINDIR=/usr/bin
22122         elif test -f $prefix/include/sqlite.h; then
22123            SQLITE_INCDIR=$prefix/include
22124            if test -d $prefix/lib64; then
22125               SQLITE_LIBDIR=$prefix/lib64
22126            else
22127               SQLITE_LIBDIR=$prefix/lib
22128            fi
22129            SQLITE_BINDIR=$prefix/bin
22130         else
22131            { echo "$as_me:$LINENO: result: no" >&5
22132 echo "${ECHO_T}no" >&6; }
22133            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
22134 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
22135    { (exit 1); exit 1; }; }
22136         fi
22137      else
22138         if test -f $withval/sqlite.h; then
22139            SQLITE_INCDIR=$withval
22140            SQLITE_LIBDIR=$withval
22141            SQLITE_BINDIR=$withval
22142         elif test -f $withval/include/sqlite.h; then
22143            SQLITE_INCDIR=$withval/include
22144            if test -d $withval/lib64; then
22145               SQLITE_LIBDIR=$withval/lib64
22146            else
22147               SQLITE_LIBDIR=$withval/lib
22148            fi
22149            SQLITE_BINDIR=$withval/bin
22150         else
22151            { echo "$as_me:$LINENO: result: no" >&5
22152 echo "${ECHO_T}no" >&6; }
22153            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
22154 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
22155    { (exit 1); exit 1; }; }
22156         fi
22157      fi
22158      SQL_INCLUDE=-I$SQLITE_INCDIR
22159      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
22160      SQL_BINDIR=$SQLITE_BINDIR
22161      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
22162
22163      cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_SQLITE 1
22165 _ACEOF
22166
22167      { echo "$as_me:$LINENO: result: yes" >&5
22168 echo "${ECHO_T}yes" >&6; }
22169      db_found=yes
22170      support_sqlite=yes
22171      db_type=SQLite
22172      DB_TYPE=sqlite
22173
22174   else
22175      { echo "$as_me:$LINENO: result: no" >&5
22176 echo "${ECHO_T}no" >&6; }
22177   fi
22178
22179 else
22180
22181   { echo "$as_me:$LINENO: result: no" >&5
22182 echo "${ECHO_T}no" >&6; }
22183
22184 fi
22185
22186
22187
22188
22189
22190
22191
22192
22193 db_found=no
22194 { echo "$as_me:$LINENO: checking for DBI support" >&5
22195 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
22196
22197 # Check whether --with-dbi was given.
22198 if test "${with_dbi+set}" = set; then
22199   withval=$with_dbi;
22200   if test "$withval" != "no"; then
22201      if test "$withval" = "yes"; then
22202         if test -f /usr/local/include/dbi/dbi.h; then
22203            DBI_INCDIR=/usr/local/dbi/include
22204            if test -d /usr/local/lib64; then
22205               DBI_LIBDIR=/usr/local/lib64
22206            else
22207               DBI_LIBDIR=/usr/local/lib
22208            fi
22209            DBI_BINDIR=/usr/local/bin
22210         elif test -f /usr/include/dbi/dbi.h; then
22211            DBI_INCDIR=/usr/include
22212            if test -d /usr/lib64; then
22213               DBI_LIBDIR=/usr/lib64
22214            else
22215               DBI_LIBDIR=/usr/lib
22216            fi
22217            DBI_BINDIR=/usr/bin
22218         elif test -f $prefix/include/dbi/dbi.h; then
22219            DBI_INCDIR=$prefix/include
22220            if test -d $prefix/lib64; then
22221               DBI_LIBDIR=$prefix/lib64
22222            else
22223               DBI_LIBDIR=$prefix/lib
22224            fi
22225            DBI_BINDIR=$prefix/bin
22226         else
22227            { echo "$as_me:$LINENO: result: no" >&5
22228 echo "${ECHO_T}no" >&6; }
22229            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
22230 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
22231    { (exit 1); exit 1; }; }
22232         fi
22233         if test -d /usr/local/lib/dbd; then
22234            DRIVERDIR=/usr/local/lib/dbd
22235            if test -d /usr/local/lib64/dbd; then
22236               DRIVERDIR=/usr/local/lib64/dbd
22237            else
22238               DRIVERDIR=/usr/local/lib/dbd
22239            fi
22240         elif test -d /usr/lib/dbd; then
22241            DRIVERDIR=/usr/lib/dbd
22242            if test -d /usr/lib64/dbd; then
22243               DRIVERDIR=/usr/lib64/dbd
22244            else
22245               DRIVERDIR=/usr/lib/dbd
22246            fi
22247         elif test -d $prefix/lib/dbd; then
22248            if test -d $prefix/lib64/dbd; then
22249               DRIVERDIR=$prefix/lib64/dbd
22250            else
22251               DRIVERDIR=$prefix/lib/dbd
22252            fi
22253         else
22254            { echo "$as_me:$LINENO: result: no" >&5
22255 echo "${ECHO_T}no" >&6; }
22256            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
22257 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
22258    { (exit 1); exit 1; }; }
22259         fi
22260      else
22261         if test -f $withval/dbi.h; then
22262            DBI_INCDIR=$withval
22263            DBI_LIBDIR=$withval
22264            DBI_BINDIR=$withval
22265         elif test -f $withval/include/dbi/dbi.h; then
22266            DBI_INCDIR=$withval/include
22267            if test -d $withval/lib64; then
22268               DBI_LIBDIR=$withval/lib64
22269            else
22270               DBI_LIBDIR=$withval/lib
22271            fi
22272            DBI_BINDIR=$withval/bin
22273         else
22274            { echo "$as_me:$LINENO: result: no" >&5
22275 echo "${ECHO_T}no" >&6; }
22276            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
22277 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
22278    { (exit 1); exit 1; }; }
22279         fi
22280         if test -d $withval/dbd; then
22281            DRIVERDIR=$withval/dbd
22282         elif test -d $withval/lib/; then
22283            if test -d $withval/lib64/dbd; then
22284               DRIVERDIR=$withval/lib64/dbd
22285            else
22286               DRIVERDIR=$withval/lib/dbd
22287            fi
22288         else
22289            { echo "$as_me:$LINENO: result: no" >&5
22290 echo "${ECHO_T}no" >&6; }
22291            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
22292 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
22293    { (exit 1); exit 1; }; }
22294         fi
22295      fi
22296      SQL_INCLUDE=-I$DBI_INCDIR
22297      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
22298      SQL_BINDIR=$DBI_BINDIR
22299      SQL_LIB=$DBI_LIBDIR/libdbi.a
22300      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
22301
22302
22303 cat >>confdefs.h <<\_ACEOF
22304 #define HAVE_DBI 1
22305 _ACEOF
22306
22307      { echo "$as_me:$LINENO: result: yes" >&5
22308 echo "${ECHO_T}yes" >&6; }
22309      db_found=yes
22310      support_dbi=yes
22311      db_type=DBI
22312      DB_TYPE=dbi
22313      uncomment_dbi=" "
22314
22315   else
22316      { echo "$as_me:$LINENO: result: no" >&5
22317 echo "${ECHO_T}no" >&6; }
22318   fi
22319
22320 else
22321
22322   { echo "$as_me:$LINENO: result: no" >&5
22323 echo "${ECHO_T}no" >&6; }
22324
22325 fi
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336 db_found=no
22337 db_prog=no
22338 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
22339 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
22340
22341 # Check whether --with-dbi-driver was given.
22342 if test "${with_dbi_driver+set}" = set; then
22343   withval=$with_dbi_driver;
22344   if test "$withval" != "no"; then
22345      case $withval in
22346         "mysql")
22347            db_prog="mysql"
22348            if test -f /usr/local/mysql/bin/mysql; then
22349               SQL_BINDIR=/usr/local/mysql/bin
22350               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22351                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22352                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
22353               else
22354                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
22355               fi
22356            elif test -f /usr/bin/mysql; then
22357               SQL_BINDIR=/usr/bin
22358               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22359                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22360                   SQL_LIBDIR=/usr/lib64/mysql
22361               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22362                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22363                   SQL_LIBDIR=/usr/lib/mysql
22364               else
22365                   SQL_LIBDIR=/usr/lib
22366               fi
22367            elif test -f /usr/local/bin/mysql; then
22368               SQL_BINDIR=/usr/local/bin
22369               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22370                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22371                   SQL_LIBDIR=/usr/local/lib64/mysql
22372               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
22373                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
22374                   SQL_LIBDIR=/usr/local/lib/mysql
22375               else
22376                   SQL_LIBDIR=/usr/local/lib
22377               fi
22378            elif test -f $withval/bin/mysql; then
22379               SQL_BINDIR=$withval/bin
22380               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
22381                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
22382                   SQL_LIBDIR=$withval/lib64/mysql
22383               elif test -f $withval/lib64/libmysqlclient_r.a \
22384                   -o -f $withval/lib64/libmysqlclient_r.so; then
22385                   SQL_LIBDIR=$withval/lib64
22386               elif test -f $withval/lib/libmysqlclient_r.a \
22387                   -o -f $withval/lib/libmysqlclient_r.so; then
22388                   SQL_LIBDIR=$withval/lib/
22389               else
22390                   SQL_LIBDIR=$withval/lib/mysql
22391               fi
22392            else
22393               { echo "$as_me:$LINENO: result: no" >&5
22394 echo "${ECHO_T}no" >&6; }
22395               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
22396 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
22397    { (exit 1); exit 1; }; }
22398            fi
22399            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
22400         ;;
22401         "postgresql")
22402            db_prog="postgresql"
22403            PG_CONFIG=`which pg_config`
22404            if test -n "$PG_CONFIG"; then
22405               SQL_BINDIR=`"$PG_CONFIG" --bindir`
22406               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
22407            elif test -f /usr/local/bin/psql; then
22408               SQL_BINDIR=/usr/local/bin
22409               if test -d /usr/local/lib64; then
22410                  SQL_LIBDIR=/usr/local/lib64
22411               else
22412                  SQL_LIBDIR=/usr/local/lib
22413               fi
22414            elif test -f /usr/bin/psql; then
22415               SQL_BINDIR=/usr/local/bin
22416               if test -d /usr/lib64/postgresql; then
22417                  SQL_LIBDIR=/usr/lib64/postgresql
22418               elif test -d /usr/lib/postgresql; then
22419                  SQL_LIBDIR=/usr/lib/postgresql
22420               elif test -d /usr/lib64; then
22421                  SQL_LIBDIR=/usr/lib64
22422               else
22423                  SQL_LIBDIR=/usr/lib
22424               fi
22425            elif test -f $withval/bin/psql; then
22426               SQL_BINDIR=$withval/bin
22427               if test -d $withval/lib64; then
22428                  SQL_LIBDIR=$withval/lib64
22429               else
22430                  SQL_LIBDIR=$withval/lib
22431               fi
22432            else
22433               { echo "$as_me:$LINENO: result: no" >&5
22434 echo "${ECHO_T}no" >&6; }
22435               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
22436 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
22437    { (exit 1); exit 1; }; }
22438            fi
22439            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
22440         ;;
22441         "sqlite")
22442            db_prog="sqlite"
22443            if test -f /usr/local/bin/sqlite; then
22444               SQL_BINDIR=/usr/local/bin
22445               if test -d /usr/local/lib64; then
22446                  SQL_LIBDIR=/usr/local/lib64
22447               else
22448                  SQL_LIBDIR=/usr/local/lib
22449               fi
22450            elif test -f /usr/bin/sqlite; then
22451               SQL_BINDIR=/usr/bin
22452               if test -d /usr/lib64; then
22453                  SQL_LIBDIR=/usr/lib64
22454               else
22455                  SQL_LIBDIR=/usr/lib
22456               fi
22457            elif test -f $withval/bin/sqlite; then
22458               SQL_BINDIR=$withval/bin
22459               if test -d $withval/lib64; then
22460                  SQL_LIBDIR=$withval/lib64
22461               else
22462                  SQL_LIBDIR=$withval/lib
22463               fi
22464            else
22465               { echo "$as_me:$LINENO: result: no" >&5
22466 echo "${ECHO_T}no" >&6; }
22467               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
22468 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
22469    { (exit 1); exit 1; }; }
22470            fi
22471            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
22472         ;;
22473         "sqlite3")
22474            db_prog="sqlite3"
22475            if test -f /usr/local/bin/sqlite3; then
22476               SQL_BINDIR=/usr/local/bin
22477               if test -d /usr/local/lib64; then
22478                  SQL_LIBDIR=/usr/local/lib64
22479               else
22480                  SQL_LIBDIR=/usr/local/lib
22481               fi
22482            elif test -f /usr/bin/sqlite3; then
22483               SQL_BINDIR=/usr/bin
22484               if test -d /usr/lib64; then
22485                  SQL_LIBDIR=/usr/lib64
22486               else
22487                  SQL_LIBDIR=/usr/lib
22488               fi
22489            elif test -f $withval/bin/sqlite3; then
22490               SQL_BINDIR=$withval/bin
22491               if test -d $withval/lib64; then
22492                  SQL_LIBDIR=$withval/lib64
22493               else
22494                  SQL_LIBDIR=$withval/lib
22495               fi
22496            else
22497               { echo "$as_me:$LINENO: result: no" >&5
22498 echo "${ECHO_T}no" >&6; }
22499               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
22500 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
22501    { (exit 1); exit 1; }; }
22502            fi
22503            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
22504         ;;
22505         *)
22506            { echo "$as_me:$LINENO: result: no" >&5
22507 echo "${ECHO_T}no" >&6; }
22508            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
22509 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
22510    { (exit 1); exit 1; }; }
22511         ;;
22512      esac
22513
22514      { echo "$as_me:$LINENO: result: yes" >&5
22515 echo "${ECHO_T}yes" >&6; }
22516      DB_PROG=$db_prog
22517   else
22518      { echo "$as_me:$LINENO: result: no" >&5
22519 echo "${ECHO_T}no" >&6; }
22520   fi
22521
22522 else
22523
22524   { echo "$as_me:$LINENO: result: no" >&5
22525 echo "${ECHO_T}no" >&6; }
22526
22527 fi
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538 # -------------------------------------------
22539 # enable batch attribute DB insert (default on)
22540 # -------------------------------------------
22541 support_batch_insert=no
22542 A=`nm $SQL_LIB | grep pthread_mutex_lock`
22543 pkg=$?
22544 if test $pkg = 0; then
22545    support_batch_insert=yes
22546    # Check whether --enable-batch-insert was given.
22547 if test "${enable_batch_insert+set}" = set; then
22548   enableval=$enable_batch_insert; if test x$enableval = xno; then
22549        support_batch_insert=no
22550       else
22551        support_batch_insert=yes
22552      fi
22553 fi
22554
22555 fi
22556
22557 # Check if postgresql support batch mode
22558 if test x$DB_TYPE = xpostgresql; then
22559    A=`nm $SQL_LIB | grep PQputCopyData`
22560    pkg=$?
22561    if test $pkg != 0; then
22562       support_batch_insert=no
22563    fi
22564 fi
22565
22566 if test x$DB_TYPE = xdbi; then
22567    DB_TYPE=$DB_PROG
22568    db_type=$DB_PROG
22569    pkg=1
22570    # Check for batch insert
22571    if test $DB_PROG = postgresql; then
22572       A=`nm $DB_PROG_LIB | grep PQputCopyData`
22573       pkg=$?
22574    fi
22575
22576    if test $DB_PROG = mysql; then
22577       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
22578       pkg=$?
22579    fi
22580
22581    if test $DB_PROG = sqlite3; then
22582       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
22583       pkg=$?
22584    fi
22585
22586    if test $pkg = 0; then
22587       # Check whether --enable-batch-insert was given.
22588 if test "${enable_batch_insert+set}" = set; then
22589   enableval=$enable_batch_insert; if test x$enableval = xno; then
22590          support_batch_insert=no
22591        else
22592          support_batch_insert=yes
22593       fi
22594 fi
22595
22596    fi
22597 else
22598 # If dbi was not chosen, let the comment in file
22599 uncomment_dbi="#"
22600 fi
22601
22602
22603
22604 if test $support_batch_insert = yes ; then
22605
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_BATCH_FILE_INSERT 1
22608 _ACEOF
22609
22610 fi
22611
22612
22613 cat >>confdefs.h <<\_ACEOF
22614 #define PROTOTYPES 1
22615 _ACEOF
22616
22617
22618 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
22619     if test -z "$CCOPTS"; then
22620         CCOPTS='-g -O2 -Wall'
22621     fi
22622     CFLAGS="$CCOPTS"
22623 fi
22624
22625
22626
22627
22628 largefile_support="no"
22629
22630    # Check whether --enable-largefile was given.
22631 if test "${enable_largefile+set}" = set; then
22632   enableval=$enable_largefile;
22633 fi
22634
22635    if test "$enable_largefile" != no; then
22636      if test -n "$ac_tool_prefix"; then
22637   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
22638 set dummy ${ac_tool_prefix}getconf; ac_word=$2
22639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22641 if test "${ac_cv_prog_GETCONF+set}" = set; then
22642   echo $ECHO_N "(cached) $ECHO_C" >&6
22643 else
22644   if test -n "$GETCONF"; then
22645   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
22646 else
22647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22648 for as_dir in $PATH
22649 do
22650   IFS=$as_save_IFS
22651   test -z "$as_dir" && as_dir=.
22652   for ac_exec_ext in '' $ac_executable_extensions; do
22653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22654     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
22655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22656     break 2
22657   fi
22658 done
22659 done
22660 IFS=$as_save_IFS
22661
22662 fi
22663 fi
22664 GETCONF=$ac_cv_prog_GETCONF
22665 if test -n "$GETCONF"; then
22666   { echo "$as_me:$LINENO: result: $GETCONF" >&5
22667 echo "${ECHO_T}$GETCONF" >&6; }
22668 else
22669   { echo "$as_me:$LINENO: result: no" >&5
22670 echo "${ECHO_T}no" >&6; }
22671 fi
22672
22673
22674 fi
22675 if test -z "$ac_cv_prog_GETCONF"; then
22676   ac_ct_GETCONF=$GETCONF
22677   # Extract the first word of "getconf", so it can be a program name with args.
22678 set dummy getconf; ac_word=$2
22679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22681 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
22682   echo $ECHO_N "(cached) $ECHO_C" >&6
22683 else
22684   if test -n "$ac_ct_GETCONF"; then
22685   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
22686 else
22687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22688 for as_dir in $PATH
22689 do
22690   IFS=$as_save_IFS
22691   test -z "$as_dir" && as_dir=.
22692   for ac_exec_ext in '' $ac_executable_extensions; do
22693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22694     ac_cv_prog_ac_ct_GETCONF="getconf"
22695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22696     break 2
22697   fi
22698 done
22699 done
22700 IFS=$as_save_IFS
22701
22702 fi
22703 fi
22704 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
22705 if test -n "$ac_ct_GETCONF"; then
22706   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
22707 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
22708 else
22709   { echo "$as_me:$LINENO: result: no" >&5
22710 echo "${ECHO_T}no" >&6; }
22711 fi
22712
22713   if test "x$ac_ct_GETCONF" = x; then
22714     GETCONF=""
22715   else
22716     case $cross_compiling:$ac_tool_warned in
22717 yes:)
22718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22719 whose name does not start with the host triplet.  If you think this
22720 configuration is useful to you, please write to autoconf@gnu.org." >&5
22721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22722 whose name does not start with the host triplet.  If you think this
22723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22724 ac_tool_warned=yes ;;
22725 esac
22726     GETCONF=$ac_ct_GETCONF
22727   fi
22728 else
22729   GETCONF="$ac_cv_prog_GETCONF"
22730 fi
22731
22732      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
22733 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
22734 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
22735   echo $ECHO_N "(cached) $ECHO_C" >&6
22736 else
22737   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
22738         ac_cv_sys_largefile_CFLAGS=no
22739         case "$host_os" in
22740            # IRIX 6.2 and later require cc -n32.
22741            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
22742              if test "$GCC" != yes; then
22743                ac_cv_sys_largefile_CFLAGS=-n32
22744              fi
22745              ac_save_CC="$CC"
22746              CC="$CC $ac_cv_sys_largefile_CFLAGS"
22747              cat >conftest.$ac_ext <<_ACEOF
22748 /* confdefs.h.  */
22749 _ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h.  */
22753
22754 int
22755 main ()
22756 {
22757
22758   ;
22759   return 0;
22760 }
22761 _ACEOF
22762 rm -f conftest.$ac_objext conftest$ac_exeext
22763 if { (ac_try="$ac_link"
22764 case "(($ac_try" in
22765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766   *) ac_try_echo=$ac_try;;
22767 esac
22768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22769   (eval "$ac_link") 2>conftest.er1
22770   ac_status=$?
22771   grep -v '^ *+' conftest.er1 >conftest.err
22772   rm -f conftest.er1
22773   cat conftest.err >&5
22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); } && {
22776          test -z "$ac_c_werror_flag" ||
22777          test ! -s conftest.err
22778        } && test -s conftest$ac_exeext &&
22779        $as_test_x conftest$ac_exeext; then
22780   :
22781 else
22782   echo "$as_me: failed program was:" >&5
22783 sed 's/^/| /' conftest.$ac_ext >&5
22784
22785         ac_cv_sys_largefile_CFLAGS=no
22786 fi
22787
22788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22789       conftest$ac_exeext conftest.$ac_ext
22790              CC="$ac_save_CC"
22791            esac
22792       }
22793 fi
22794 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
22795 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
22796      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
22797 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
22798 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
22799   echo $ECHO_N "(cached) $ECHO_C" >&6
22800 else
22801   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
22802         ac_cv_sys_largefile_LDFLAGS=no
22803
22804       }
22805 fi
22806 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
22807 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
22808      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
22809 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
22810 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
22811   echo $ECHO_N "(cached) $ECHO_C" >&6
22812 else
22813   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
22814         ac_cv_sys_largefile_LIBS=no
22815
22816       }
22817 fi
22818 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
22819 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
22820
22821      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22822        case "$ac_flag" in
22823        no) ;;
22824        -D_FILE_OFFSET_BITS=*) ;;
22825        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
22826        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
22827        -D?* | -I?*)
22828          case "$ac_flag" in
22829    no) ;;
22830    ?*)
22831      case "$CPPFLAGS" in
22832      '') CPPFLAGS="$ac_flag" ;;
22833      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
22834      esac ;;
22835    esac ;;
22836        *)
22837          case "$ac_flag" in
22838    no) ;;
22839    ?*)
22840      case "$CFLAGS" in
22841      '') CFLAGS="$ac_flag" ;;
22842      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
22843      esac ;;
22844    esac ;;
22845        esac
22846      done
22847      case "$ac_cv_sys_largefile_LDFLAGS" in
22848    no) ;;
22849    ?*)
22850      case "$LDFLAGS" in
22851      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
22852      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
22853      esac ;;
22854    esac
22855      case "$ac_cv_sys_largefile_LIBS" in
22856    no) ;;
22857    ?*)
22858      case "$LIBS" in
22859      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
22860      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
22861      esac ;;
22862    esac
22863      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
22864 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
22865 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22866   echo $ECHO_N "(cached) $ECHO_C" >&6
22867 else
22868   ac_cv_sys_file_offset_bits=no
22869       ac_cv_sys_file_offset_bits=64
22870       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22871         case "$ac_flag" in
22872         -D_FILE_OFFSET_BITS)
22873           ac_cv_sys_file_offset_bits=1 ;;
22874         -D_FILE_OFFSET_BITS=*)
22875           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22876         esac
22877       done
22878
22879 fi
22880 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22881 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22882    if test "$ac_cv_sys_file_offset_bits" != no; then
22883
22884 cat >>confdefs.h <<_ACEOF
22885 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22886 _ACEOF
22887
22888    fi
22889      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
22890 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
22891 if test "${ac_cv_sys_largefile_source+set}" = set; then
22892   echo $ECHO_N "(cached) $ECHO_C" >&6
22893 else
22894   ac_cv_sys_largefile_source=no
22895       ac_cv_sys_largefile_source=1
22896       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22897         case "$ac_flag" in
22898         -D_LARGEFILE_SOURCE)
22899           ac_cv_sys_largefile_source=1 ;;
22900         -D_LARGEFILE_SOURCE=*)
22901           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22902         esac
22903       done
22904
22905 fi
22906 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22907 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
22908    if test "$ac_cv_sys_largefile_source" != no; then
22909
22910 cat >>confdefs.h <<_ACEOF
22911 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22912 _ACEOF
22913
22914    fi
22915      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
22916 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
22917 if test "${ac_cv_sys_large_files+set}" = set; then
22918   echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920   ac_cv_sys_large_files=no
22921       ac_cv_sys_large_files=1
22922       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22923         case "$ac_flag" in
22924         -D_LARGE_FILES)
22925           ac_cv_sys_large_files=1 ;;
22926         -D_LARGE_FILES=*)
22927           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22928         esac
22929       done
22930
22931 fi
22932 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22933 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22934    if test "$ac_cv_sys_large_files" != no; then
22935
22936 cat >>confdefs.h <<_ACEOF
22937 #define _LARGE_FILES $ac_cv_sys_large_files
22938 _ACEOF
22939
22940    fi
22941    fi
22942
22943
22944
22945 { echo "$as_me:$LINENO: checking for X" >&5
22946 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
22947
22948
22949 # Check whether --with-x was given.
22950 if test "${with_x+set}" = set; then
22951   withval=$with_x;
22952 fi
22953
22954 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22955 if test "x$with_x" = xno; then
22956   # The user explicitly disabled X.
22957   have_x=disabled
22958 else
22959   case $x_includes,$x_libraries in #(
22960     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22961 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22962    { (exit 1); exit 1; }; };; #(
22963     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22964   echo $ECHO_N "(cached) $ECHO_C" >&6
22965 else
22966   # One or both of the vars are not set, and there is no cached value.
22967 ac_x_includes=no ac_x_libraries=no
22968 rm -f -r conftest.dir
22969 if mkdir conftest.dir; then
22970   cd conftest.dir
22971   cat >Imakefile <<'_ACEOF'
22972 incroot:
22973         @echo incroot='${INCROOT}'
22974 usrlibdir:
22975         @echo usrlibdir='${USRLIBDIR}'
22976 libdir:
22977         @echo libdir='${LIBDIR}'
22978 _ACEOF
22979   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22980     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22981     for ac_var in incroot usrlibdir libdir; do
22982       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22983     done
22984     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22985     for ac_extension in a so sl; do
22986       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22987          test -f "$ac_im_libdir/libX11.$ac_extension"; then
22988         ac_im_usrlibdir=$ac_im_libdir; break
22989       fi
22990     done
22991     # Screen out bogus values from the imake configuration.  They are
22992     # bogus both because they are the default anyway, and because
22993     # using them would break gcc on systems where it needs fixed includes.
22994     case $ac_im_incroot in
22995         /usr/include) ac_x_includes= ;;
22996         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22997     esac
22998     case $ac_im_usrlibdir in
22999         /usr/lib | /lib) ;;
23000         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23001     esac
23002   fi
23003   cd ..
23004   rm -f -r conftest.dir
23005 fi
23006
23007 # Standard set of common directories for X headers.
23008 # Check X11 before X11Rn because it is often a symlink to the current release.
23009 ac_x_header_dirs='
23010 /usr/X11/include
23011 /usr/X11R6/include
23012 /usr/X11R5/include
23013 /usr/X11R4/include
23014
23015 /usr/include/X11
23016 /usr/include/X11R6
23017 /usr/include/X11R5
23018 /usr/include/X11R4
23019
23020 /usr/local/X11/include
23021 /usr/local/X11R6/include
23022 /usr/local/X11R5/include
23023 /usr/local/X11R4/include
23024
23025 /usr/local/include/X11
23026 /usr/local/include/X11R6
23027 /usr/local/include/X11R5
23028 /usr/local/include/X11R4
23029
23030 /usr/X386/include
23031 /usr/x386/include
23032 /usr/XFree86/include/X11
23033
23034 /usr/include
23035 /usr/local/include
23036 /usr/unsupported/include
23037 /usr/athena/include
23038 /usr/local/x11r5/include
23039 /usr/lpp/Xamples/include
23040
23041 /usr/openwin/include
23042 /usr/openwin/share/include'
23043
23044 if test "$ac_x_includes" = no; then
23045   # Guess where to find include files, by looking for Xlib.h.
23046   # First, try using that file with no special directory specified.
23047   cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h.  */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h.  */
23053 #include <X11/Xlib.h>
23054 _ACEOF
23055 if { (ac_try="$ac_cpp conftest.$ac_ext"
23056 case "(($ac_try" in
23057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058   *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23062   ac_status=$?
23063   grep -v '^ *+' conftest.er1 >conftest.err
23064   rm -f conftest.er1
23065   cat conftest.err >&5
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); } >/dev/null && {
23068          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23069          test ! -s conftest.err
23070        }; then
23071   # We can compile using X headers with no special include directory.
23072 ac_x_includes=
23073 else
23074   echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23076
23077   for ac_dir in $ac_x_header_dirs; do
23078   if test -r "$ac_dir/X11/Xlib.h"; then
23079     ac_x_includes=$ac_dir
23080     break
23081   fi
23082 done
23083 fi
23084
23085 rm -f conftest.err conftest.$ac_ext
23086 fi # $ac_x_includes = no
23087
23088 if test "$ac_x_libraries" = no; then
23089   # Check for the libraries.
23090   # See if we find them without any special options.
23091   # Don't add to $LIBS permanently.
23092   ac_save_LIBS=$LIBS
23093   LIBS="-lX11 $LIBS"
23094   cat >conftest.$ac_ext <<_ACEOF
23095 /* confdefs.h.  */
23096 _ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h.  */
23100 #include <X11/Xlib.h>
23101 int
23102 main ()
23103 {
23104 XrmInitialize ()
23105   ;
23106   return 0;
23107 }
23108 _ACEOF
23109 rm -f conftest.$ac_objext conftest$ac_exeext
23110 if { (ac_try="$ac_link"
23111 case "(($ac_try" in
23112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23113   *) ac_try_echo=$ac_try;;
23114 esac
23115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23116   (eval "$ac_link") 2>conftest.er1
23117   ac_status=$?
23118   grep -v '^ *+' conftest.er1 >conftest.err
23119   rm -f conftest.er1
23120   cat conftest.err >&5
23121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122   (exit $ac_status); } && {
23123          test -z "$ac_c_werror_flag" ||
23124          test ! -s conftest.err
23125        } && test -s conftest$ac_exeext &&
23126        $as_test_x conftest$ac_exeext; then
23127   LIBS=$ac_save_LIBS
23128 # We can link X programs with no special library path.
23129 ac_x_libraries=
23130 else
23131   echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23133
23134         LIBS=$ac_save_LIBS
23135 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23136 do
23137   # Don't even attempt the hair of trying to link an X program!
23138   for ac_extension in a so sl; do
23139     if test -r "$ac_dir/libX11.$ac_extension"; then
23140       ac_x_libraries=$ac_dir
23141       break 2
23142     fi
23143   done
23144 done
23145 fi
23146
23147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23148       conftest$ac_exeext conftest.$ac_ext
23149 fi # $ac_x_libraries = no
23150
23151 case $ac_x_includes,$ac_x_libraries in #(
23152   no,* | *,no | *\'*)
23153     # Didn't find X, or a directory has "'" in its name.
23154     ac_cv_have_x="have_x=no";; #(
23155   *)
23156     # Record where we found X for the cache.
23157     ac_cv_have_x="have_x=yes\
23158         ac_x_includes='$ac_x_includes'\
23159         ac_x_libraries='$ac_x_libraries'"
23160 esac
23161 fi
23162 ;; #(
23163     *) have_x=yes;;
23164   esac
23165   eval "$ac_cv_have_x"
23166 fi # $with_x != no
23167
23168 if test "$have_x" != yes; then
23169   { echo "$as_me:$LINENO: result: $have_x" >&5
23170 echo "${ECHO_T}$have_x" >&6; }
23171   no_x=yes
23172 else
23173   # If each of the values was on the command line, it overrides each guess.
23174   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23175   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23176   # Update the cache value to reflect the command line values.
23177   ac_cv_have_x="have_x=yes\
23178         ac_x_includes='$x_includes'\
23179         ac_x_libraries='$x_libraries'"
23180   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23181 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
23182 fi
23183
23184 if test "$no_x" = yes; then
23185   # Not all programs may use this symbol, but it does not hurt to define it.
23186
23187 cat >>confdefs.h <<\_ACEOF
23188 #define X_DISPLAY_MISSING 1
23189 _ACEOF
23190
23191   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23192 else
23193   if test -n "$x_includes"; then
23194     X_CFLAGS="$X_CFLAGS -I$x_includes"
23195   fi
23196
23197   # It would also be nice to do this for all -L options, not just this one.
23198   if test -n "$x_libraries"; then
23199     X_LIBS="$X_LIBS -L$x_libraries"
23200     # For Solaris; some versions of Sun CC require a space after -R and
23201     # others require no space.  Words are not sufficient . . . .
23202     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23203 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
23204     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23205     ac_xsave_c_werror_flag=$ac_c_werror_flag
23206     ac_c_werror_flag=yes
23207     cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213
23214 int
23215 main ()
23216 {
23217
23218   ;
23219   return 0;
23220 }
23221 _ACEOF
23222 rm -f conftest.$ac_objext conftest$ac_exeext
23223 if { (ac_try="$ac_link"
23224 case "(($ac_try" in
23225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226   *) ac_try_echo=$ac_try;;
23227 esac
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229   (eval "$ac_link") 2>conftest.er1
23230   ac_status=$?
23231   grep -v '^ *+' conftest.er1 >conftest.err
23232   rm -f conftest.er1
23233   cat conftest.err >&5
23234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235   (exit $ac_status); } && {
23236          test -z "$ac_c_werror_flag" ||
23237          test ! -s conftest.err
23238        } && test -s conftest$ac_exeext &&
23239        $as_test_x conftest$ac_exeext; then
23240   { echo "$as_me:$LINENO: result: no" >&5
23241 echo "${ECHO_T}no" >&6; }
23242        X_LIBS="$X_LIBS -R$x_libraries"
23243 else
23244   echo "$as_me: failed program was:" >&5
23245 sed 's/^/| /' conftest.$ac_ext >&5
23246
23247         LIBS="$ac_xsave_LIBS -R $x_libraries"
23248        cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h.  */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h.  */
23254
23255 int
23256 main ()
23257 {
23258
23259   ;
23260   return 0;
23261 }
23262 _ACEOF
23263 rm -f conftest.$ac_objext conftest$ac_exeext
23264 if { (ac_try="$ac_link"
23265 case "(($ac_try" in
23266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23267   *) ac_try_echo=$ac_try;;
23268 esac
23269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23270   (eval "$ac_link") 2>conftest.er1
23271   ac_status=$?
23272   grep -v '^ *+' conftest.er1 >conftest.err
23273   rm -f conftest.er1
23274   cat conftest.err >&5
23275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276   (exit $ac_status); } && {
23277          test -z "$ac_c_werror_flag" ||
23278          test ! -s conftest.err
23279        } && test -s conftest$ac_exeext &&
23280        $as_test_x conftest$ac_exeext; then
23281   { echo "$as_me:$LINENO: result: yes" >&5
23282 echo "${ECHO_T}yes" >&6; }
23283           X_LIBS="$X_LIBS -R $x_libraries"
23284 else
23285   echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23287
23288         { echo "$as_me:$LINENO: result: neither works" >&5
23289 echo "${ECHO_T}neither works" >&6; }
23290 fi
23291
23292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23293       conftest$ac_exeext conftest.$ac_ext
23294 fi
23295
23296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23297       conftest$ac_exeext conftest.$ac_ext
23298     ac_c_werror_flag=$ac_xsave_c_werror_flag
23299     LIBS=$ac_xsave_LIBS
23300   fi
23301
23302   # Check for system-dependent libraries X programs must link with.
23303   # Do this before checking for the system-independent R6 libraries
23304   # (-lICE), since we may need -lsocket or whatever for X linking.
23305
23306   if test "$ISC" = yes; then
23307     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23308   else
23309     # Martyn Johnson says this is needed for Ultrix, if the X
23310     # libraries were built with DECnet support.  And Karl Berry says
23311     # the Alpha needs dnet_stub (dnet does not exist).
23312     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23313     cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h.  */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h.  */
23319
23320 /* Override any GCC internal prototype to avoid an error.
23321    Use char because int might match the return type of a GCC
23322    builtin and then its argument prototype would still apply.  */
23323 #ifdef __cplusplus
23324 extern "C"
23325 #endif
23326 char XOpenDisplay ();
23327 int
23328 main ()
23329 {
23330 return XOpenDisplay ();
23331   ;
23332   return 0;
23333 }
23334 _ACEOF
23335 rm -f conftest.$ac_objext conftest$ac_exeext
23336 if { (ac_try="$ac_link"
23337 case "(($ac_try" in
23338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339   *) ac_try_echo=$ac_try;;
23340 esac
23341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23342   (eval "$ac_link") 2>conftest.er1
23343   ac_status=$?
23344   grep -v '^ *+' conftest.er1 >conftest.err
23345   rm -f conftest.er1
23346   cat conftest.err >&5
23347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348   (exit $ac_status); } && {
23349          test -z "$ac_c_werror_flag" ||
23350          test ! -s conftest.err
23351        } && test -s conftest$ac_exeext &&
23352        $as_test_x conftest$ac_exeext; then
23353   :
23354 else
23355   echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23357
23358         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23359 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23360 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23361   echo $ECHO_N "(cached) $ECHO_C" >&6
23362 else
23363   ac_check_lib_save_LIBS=$LIBS
23364 LIBS="-ldnet  $LIBS"
23365 cat >conftest.$ac_ext <<_ACEOF
23366 /* confdefs.h.  */
23367 _ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h.  */
23371
23372 /* Override any GCC internal prototype to avoid an error.
23373    Use char because int might match the return type of a GCC
23374    builtin and then its argument prototype would still apply.  */
23375 #ifdef __cplusplus
23376 extern "C"
23377 #endif
23378 char dnet_ntoa ();
23379 int
23380 main ()
23381 {
23382 return dnet_ntoa ();
23383   ;
23384   return 0;
23385 }
23386 _ACEOF
23387 rm -f conftest.$ac_objext conftest$ac_exeext
23388 if { (ac_try="$ac_link"
23389 case "(($ac_try" in
23390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391   *) ac_try_echo=$ac_try;;
23392 esac
23393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23394   (eval "$ac_link") 2>conftest.er1
23395   ac_status=$?
23396   grep -v '^ *+' conftest.er1 >conftest.err
23397   rm -f conftest.er1
23398   cat conftest.err >&5
23399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); } && {
23401          test -z "$ac_c_werror_flag" ||
23402          test ! -s conftest.err
23403        } && test -s conftest$ac_exeext &&
23404        $as_test_x conftest$ac_exeext; then
23405   ac_cv_lib_dnet_dnet_ntoa=yes
23406 else
23407   echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23409
23410         ac_cv_lib_dnet_dnet_ntoa=no
23411 fi
23412
23413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23414       conftest$ac_exeext conftest.$ac_ext
23415 LIBS=$ac_check_lib_save_LIBS
23416 fi
23417 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23418 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23419 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23420   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23421 fi
23422
23423     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23424       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23425 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23426 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23427   echo $ECHO_N "(cached) $ECHO_C" >&6
23428 else
23429   ac_check_lib_save_LIBS=$LIBS
23430 LIBS="-ldnet_stub  $LIBS"
23431 cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h.  */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h.  */
23437
23438 /* Override any GCC internal prototype to avoid an error.
23439    Use char because int might match the return type of a GCC
23440    builtin and then its argument prototype would still apply.  */
23441 #ifdef __cplusplus
23442 extern "C"
23443 #endif
23444 char dnet_ntoa ();
23445 int
23446 main ()
23447 {
23448 return dnet_ntoa ();
23449   ;
23450   return 0;
23451 }
23452 _ACEOF
23453 rm -f conftest.$ac_objext conftest$ac_exeext
23454 if { (ac_try="$ac_link"
23455 case "(($ac_try" in
23456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457   *) ac_try_echo=$ac_try;;
23458 esac
23459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460   (eval "$ac_link") 2>conftest.er1
23461   ac_status=$?
23462   grep -v '^ *+' conftest.er1 >conftest.err
23463   rm -f conftest.er1
23464   cat conftest.err >&5
23465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466   (exit $ac_status); } && {
23467          test -z "$ac_c_werror_flag" ||
23468          test ! -s conftest.err
23469        } && test -s conftest$ac_exeext &&
23470        $as_test_x conftest$ac_exeext; then
23471   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23472 else
23473   echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476         ac_cv_lib_dnet_stub_dnet_ntoa=no
23477 fi
23478
23479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23480       conftest$ac_exeext conftest.$ac_ext
23481 LIBS=$ac_check_lib_save_LIBS
23482 fi
23483 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23484 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23485 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23486   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23487 fi
23488
23489     fi
23490 fi
23491
23492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23493       conftest$ac_exeext conftest.$ac_ext
23494     LIBS="$ac_xsave_LIBS"
23495
23496     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23497     # to get the SysV transport functions.
23498     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23499     # needs -lnsl.
23500     # The nsl library prevents programs from opening the X display
23501     # on Irix 5.2, according to T.E. Dickey.
23502     # The functions gethostbyname, getservbyname, and inet_addr are
23503     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23504     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23505 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23506 if test "${ac_cv_func_gethostbyname+set}" = set; then
23507   echo $ECHO_N "(cached) $ECHO_C" >&6
23508 else
23509   cat >conftest.$ac_ext <<_ACEOF
23510 /* confdefs.h.  */
23511 _ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h.  */
23515 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23517 #define gethostbyname innocuous_gethostbyname
23518
23519 /* System header to define __stub macros and hopefully few prototypes,
23520     which can conflict with char gethostbyname (); below.
23521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23522     <limits.h> exists even on freestanding compilers.  */
23523
23524 #ifdef __STDC__
23525 # include <limits.h>
23526 #else
23527 # include <assert.h>
23528 #endif
23529
23530 #undef gethostbyname
23531
23532 /* Override any GCC internal prototype to avoid an error.
23533    Use char because int might match the return type of a GCC
23534    builtin and then its argument prototype would still apply.  */
23535 #ifdef __cplusplus
23536 extern "C"
23537 #endif
23538 char gethostbyname ();
23539 /* The GNU C library defines this for functions which it implements
23540     to always fail with ENOSYS.  Some functions are actually named
23541     something starting with __ and the normal name is an alias.  */
23542 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23543 choke me
23544 #endif
23545
23546 int
23547 main ()
23548 {
23549 return gethostbyname ();
23550   ;
23551   return 0;
23552 }
23553 _ACEOF
23554 rm -f conftest.$ac_objext conftest$ac_exeext
23555 if { (ac_try="$ac_link"
23556 case "(($ac_try" in
23557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558   *) ac_try_echo=$ac_try;;
23559 esac
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561   (eval "$ac_link") 2>conftest.er1
23562   ac_status=$?
23563   grep -v '^ *+' conftest.er1 >conftest.err
23564   rm -f conftest.er1
23565   cat conftest.err >&5
23566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567   (exit $ac_status); } && {
23568          test -z "$ac_c_werror_flag" ||
23569          test ! -s conftest.err
23570        } && test -s conftest$ac_exeext &&
23571        $as_test_x conftest$ac_exeext; then
23572   ac_cv_func_gethostbyname=yes
23573 else
23574   echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23576
23577         ac_cv_func_gethostbyname=no
23578 fi
23579
23580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23581       conftest$ac_exeext conftest.$ac_ext
23582 fi
23583 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23584 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23585
23586     if test $ac_cv_func_gethostbyname = no; then
23587       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23588 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23589 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23590   echo $ECHO_N "(cached) $ECHO_C" >&6
23591 else
23592   ac_check_lib_save_LIBS=$LIBS
23593 LIBS="-lnsl  $LIBS"
23594 cat >conftest.$ac_ext <<_ACEOF
23595 /* confdefs.h.  */
23596 _ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h.  */
23600
23601 /* Override any GCC internal prototype to avoid an error.
23602    Use char because int might match the return type of a GCC
23603    builtin and then its argument prototype would still apply.  */
23604 #ifdef __cplusplus
23605 extern "C"
23606 #endif
23607 char gethostbyname ();
23608 int
23609 main ()
23610 {
23611 return gethostbyname ();
23612   ;
23613   return 0;
23614 }
23615 _ACEOF
23616 rm -f conftest.$ac_objext conftest$ac_exeext
23617 if { (ac_try="$ac_link"
23618 case "(($ac_try" in
23619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620   *) ac_try_echo=$ac_try;;
23621 esac
23622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623   (eval "$ac_link") 2>conftest.er1
23624   ac_status=$?
23625   grep -v '^ *+' conftest.er1 >conftest.err
23626   rm -f conftest.er1
23627   cat conftest.err >&5
23628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629   (exit $ac_status); } && {
23630          test -z "$ac_c_werror_flag" ||
23631          test ! -s conftest.err
23632        } && test -s conftest$ac_exeext &&
23633        $as_test_x conftest$ac_exeext; then
23634   ac_cv_lib_nsl_gethostbyname=yes
23635 else
23636   echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23638
23639         ac_cv_lib_nsl_gethostbyname=no
23640 fi
23641
23642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23643       conftest$ac_exeext conftest.$ac_ext
23644 LIBS=$ac_check_lib_save_LIBS
23645 fi
23646 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23647 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23648 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23649   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23650 fi
23651
23652       if test $ac_cv_lib_nsl_gethostbyname = no; then
23653         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23654 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
23655 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23656   echo $ECHO_N "(cached) $ECHO_C" >&6
23657 else
23658   ac_check_lib_save_LIBS=$LIBS
23659 LIBS="-lbsd  $LIBS"
23660 cat >conftest.$ac_ext <<_ACEOF
23661 /* confdefs.h.  */
23662 _ACEOF
23663 cat confdefs.h >>conftest.$ac_ext
23664 cat >>conftest.$ac_ext <<_ACEOF
23665 /* end confdefs.h.  */
23666
23667 /* Override any GCC internal prototype to avoid an error.
23668    Use char because int might match the return type of a GCC
23669    builtin and then its argument prototype would still apply.  */
23670 #ifdef __cplusplus
23671 extern "C"
23672 #endif
23673 char gethostbyname ();
23674 int
23675 main ()
23676 {
23677 return gethostbyname ();
23678   ;
23679   return 0;
23680 }
23681 _ACEOF
23682 rm -f conftest.$ac_objext conftest$ac_exeext
23683 if { (ac_try="$ac_link"
23684 case "(($ac_try" in
23685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686   *) ac_try_echo=$ac_try;;
23687 esac
23688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23689   (eval "$ac_link") 2>conftest.er1
23690   ac_status=$?
23691   grep -v '^ *+' conftest.er1 >conftest.err
23692   rm -f conftest.er1
23693   cat conftest.err >&5
23694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695   (exit $ac_status); } && {
23696          test -z "$ac_c_werror_flag" ||
23697          test ! -s conftest.err
23698        } && test -s conftest$ac_exeext &&
23699        $as_test_x conftest$ac_exeext; then
23700   ac_cv_lib_bsd_gethostbyname=yes
23701 else
23702   echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23704
23705         ac_cv_lib_bsd_gethostbyname=no
23706 fi
23707
23708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23709       conftest$ac_exeext conftest.$ac_ext
23710 LIBS=$ac_check_lib_save_LIBS
23711 fi
23712 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23713 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
23714 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23715   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23716 fi
23717
23718       fi
23719     fi
23720
23721     # lieder@skyler.mavd.honeywell.com says without -lsocket,
23722     # socket/setsockopt and other routines are undefined under SCO ODT
23723     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
23724     # on later versions), says Simon Leinen: it contains gethostby*
23725     # variants that don't use the name server (or something).  -lsocket
23726     # must be given before -lnsl if both are needed.  We assume that
23727     # if connect needs -lnsl, so does gethostbyname.
23728     { echo "$as_me:$LINENO: checking for connect" >&5
23729 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23730 if test "${ac_cv_func_connect+set}" = set; then
23731   echo $ECHO_N "(cached) $ECHO_C" >&6
23732 else
23733   cat >conftest.$ac_ext <<_ACEOF
23734 /* confdefs.h.  */
23735 _ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h.  */
23739 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23741 #define connect innocuous_connect
23742
23743 /* System header to define __stub macros and hopefully few prototypes,
23744     which can conflict with char connect (); below.
23745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23746     <limits.h> exists even on freestanding compilers.  */
23747
23748 #ifdef __STDC__
23749 # include <limits.h>
23750 #else
23751 # include <assert.h>
23752 #endif
23753
23754 #undef connect
23755
23756 /* Override any GCC internal prototype to avoid an error.
23757    Use char because int might match the return type of a GCC
23758    builtin and then its argument prototype would still apply.  */
23759 #ifdef __cplusplus
23760 extern "C"
23761 #endif
23762 char connect ();
23763 /* The GNU C library defines this for functions which it implements
23764     to always fail with ENOSYS.  Some functions are actually named
23765     something starting with __ and the normal name is an alias.  */
23766 #if defined __stub_connect || defined __stub___connect
23767 choke me
23768 #endif
23769
23770 int
23771 main ()
23772 {
23773 return connect ();
23774   ;
23775   return 0;
23776 }
23777 _ACEOF
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (ac_try="$ac_link"
23780 case "(($ac_try" in
23781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782   *) ac_try_echo=$ac_try;;
23783 esac
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785   (eval "$ac_link") 2>conftest.er1
23786   ac_status=$?
23787   grep -v '^ *+' conftest.er1 >conftest.err
23788   rm -f conftest.er1
23789   cat conftest.err >&5
23790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791   (exit $ac_status); } && {
23792          test -z "$ac_c_werror_flag" ||
23793          test ! -s conftest.err
23794        } && test -s conftest$ac_exeext &&
23795        $as_test_x conftest$ac_exeext; then
23796   ac_cv_func_connect=yes
23797 else
23798   echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23800
23801         ac_cv_func_connect=no
23802 fi
23803
23804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23805       conftest$ac_exeext conftest.$ac_ext
23806 fi
23807 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23808 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23809
23810     if test $ac_cv_func_connect = no; then
23811       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23812 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
23813 if test "${ac_cv_lib_socket_connect+set}" = set; then
23814   echo $ECHO_N "(cached) $ECHO_C" >&6
23815 else
23816   ac_check_lib_save_LIBS=$LIBS
23817 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23818 cat >conftest.$ac_ext <<_ACEOF
23819 /* confdefs.h.  */
23820 _ACEOF
23821 cat confdefs.h >>conftest.$ac_ext
23822 cat >>conftest.$ac_ext <<_ACEOF
23823 /* end confdefs.h.  */
23824
23825 /* Override any GCC internal prototype to avoid an error.
23826    Use char because int might match the return type of a GCC
23827    builtin and then its argument prototype would still apply.  */
23828 #ifdef __cplusplus
23829 extern "C"
23830 #endif
23831 char connect ();
23832 int
23833 main ()
23834 {
23835 return connect ();
23836   ;
23837   return 0;
23838 }
23839 _ACEOF
23840 rm -f conftest.$ac_objext conftest$ac_exeext
23841 if { (ac_try="$ac_link"
23842 case "(($ac_try" in
23843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23844   *) ac_try_echo=$ac_try;;
23845 esac
23846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23847   (eval "$ac_link") 2>conftest.er1
23848   ac_status=$?
23849   grep -v '^ *+' conftest.er1 >conftest.err
23850   rm -f conftest.er1
23851   cat conftest.err >&5
23852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853   (exit $ac_status); } && {
23854          test -z "$ac_c_werror_flag" ||
23855          test ! -s conftest.err
23856        } && test -s conftest$ac_exeext &&
23857        $as_test_x conftest$ac_exeext; then
23858   ac_cv_lib_socket_connect=yes
23859 else
23860   echo "$as_me: failed program was:" >&5
23861 sed 's/^/| /' conftest.$ac_ext >&5
23862
23863         ac_cv_lib_socket_connect=no
23864 fi
23865
23866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23867       conftest$ac_exeext conftest.$ac_ext
23868 LIBS=$ac_check_lib_save_LIBS
23869 fi
23870 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23871 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
23872 if test $ac_cv_lib_socket_connect = yes; then
23873   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23874 fi
23875
23876     fi
23877
23878     # Guillermo Gomez says -lposix is necessary on A/UX.
23879     { echo "$as_me:$LINENO: checking for remove" >&5
23880 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
23881 if test "${ac_cv_func_remove+set}" = set; then
23882   echo $ECHO_N "(cached) $ECHO_C" >&6
23883 else
23884   cat >conftest.$ac_ext <<_ACEOF
23885 /* confdefs.h.  */
23886 _ACEOF
23887 cat confdefs.h >>conftest.$ac_ext
23888 cat >>conftest.$ac_ext <<_ACEOF
23889 /* end confdefs.h.  */
23890 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23892 #define remove innocuous_remove
23893
23894 /* System header to define __stub macros and hopefully few prototypes,
23895     which can conflict with char remove (); below.
23896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23897     <limits.h> exists even on freestanding compilers.  */
23898
23899 #ifdef __STDC__
23900 # include <limits.h>
23901 #else
23902 # include <assert.h>
23903 #endif
23904
23905 #undef remove
23906
23907 /* Override any GCC internal prototype to avoid an error.
23908    Use char because int might match the return type of a GCC
23909    builtin and then its argument prototype would still apply.  */
23910 #ifdef __cplusplus
23911 extern "C"
23912 #endif
23913 char remove ();
23914 /* The GNU C library defines this for functions which it implements
23915     to always fail with ENOSYS.  Some functions are actually named
23916     something starting with __ and the normal name is an alias.  */
23917 #if defined __stub_remove || defined __stub___remove
23918 choke me
23919 #endif
23920
23921 int
23922 main ()
23923 {
23924 return remove ();
23925   ;
23926   return 0;
23927 }
23928 _ACEOF
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (ac_try="$ac_link"
23931 case "(($ac_try" in
23932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933   *) ac_try_echo=$ac_try;;
23934 esac
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936   (eval "$ac_link") 2>conftest.er1
23937   ac_status=$?
23938   grep -v '^ *+' conftest.er1 >conftest.err
23939   rm -f conftest.er1
23940   cat conftest.err >&5
23941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942   (exit $ac_status); } && {
23943          test -z "$ac_c_werror_flag" ||
23944          test ! -s conftest.err
23945        } && test -s conftest$ac_exeext &&
23946        $as_test_x conftest$ac_exeext; then
23947   ac_cv_func_remove=yes
23948 else
23949   echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23951
23952         ac_cv_func_remove=no
23953 fi
23954
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956       conftest$ac_exeext conftest.$ac_ext
23957 fi
23958 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23959 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
23960
23961     if test $ac_cv_func_remove = no; then
23962       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23963 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
23964 if test "${ac_cv_lib_posix_remove+set}" = set; then
23965   echo $ECHO_N "(cached) $ECHO_C" >&6
23966 else
23967   ac_check_lib_save_LIBS=$LIBS
23968 LIBS="-lposix  $LIBS"
23969 cat >conftest.$ac_ext <<_ACEOF
23970 /* confdefs.h.  */
23971 _ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h.  */
23975
23976 /* Override any GCC internal prototype to avoid an error.
23977    Use char because int might match the return type of a GCC
23978    builtin and then its argument prototype would still apply.  */
23979 #ifdef __cplusplus
23980 extern "C"
23981 #endif
23982 char remove ();
23983 int
23984 main ()
23985 {
23986 return remove ();
23987   ;
23988   return 0;
23989 }
23990 _ACEOF
23991 rm -f conftest.$ac_objext conftest$ac_exeext
23992 if { (ac_try="$ac_link"
23993 case "(($ac_try" in
23994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23995   *) ac_try_echo=$ac_try;;
23996 esac
23997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23998   (eval "$ac_link") 2>conftest.er1
23999   ac_status=$?
24000   grep -v '^ *+' conftest.er1 >conftest.err
24001   rm -f conftest.er1
24002   cat conftest.err >&5
24003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004   (exit $ac_status); } && {
24005          test -z "$ac_c_werror_flag" ||
24006          test ! -s conftest.err
24007        } && test -s conftest$ac_exeext &&
24008        $as_test_x conftest$ac_exeext; then
24009   ac_cv_lib_posix_remove=yes
24010 else
24011   echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24013
24014         ac_cv_lib_posix_remove=no
24015 fi
24016
24017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24018       conftest$ac_exeext conftest.$ac_ext
24019 LIBS=$ac_check_lib_save_LIBS
24020 fi
24021 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24022 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
24023 if test $ac_cv_lib_posix_remove = yes; then
24024   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24025 fi
24026
24027     fi
24028
24029     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24030     { echo "$as_me:$LINENO: checking for shmat" >&5
24031 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
24032 if test "${ac_cv_func_shmat+set}" = set; then
24033   echo $ECHO_N "(cached) $ECHO_C" >&6
24034 else
24035   cat >conftest.$ac_ext <<_ACEOF
24036 /* confdefs.h.  */
24037 _ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h.  */
24041 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24043 #define shmat innocuous_shmat
24044
24045 /* System header to define __stub macros and hopefully few prototypes,
24046     which can conflict with char shmat (); below.
24047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24048     <limits.h> exists even on freestanding compilers.  */
24049
24050 #ifdef __STDC__
24051 # include <limits.h>
24052 #else
24053 # include <assert.h>
24054 #endif
24055
24056 #undef shmat
24057
24058 /* Override any GCC internal prototype to avoid an error.
24059    Use char because int might match the return type of a GCC
24060    builtin and then its argument prototype would still apply.  */
24061 #ifdef __cplusplus
24062 extern "C"
24063 #endif
24064 char shmat ();
24065 /* The GNU C library defines this for functions which it implements
24066     to always fail with ENOSYS.  Some functions are actually named
24067     something starting with __ and the normal name is an alias.  */
24068 #if defined __stub_shmat || defined __stub___shmat
24069 choke me
24070 #endif
24071
24072 int
24073 main ()
24074 {
24075 return shmat ();
24076   ;
24077   return 0;
24078 }
24079 _ACEOF
24080 rm -f conftest.$ac_objext conftest$ac_exeext
24081 if { (ac_try="$ac_link"
24082 case "(($ac_try" in
24083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24084   *) ac_try_echo=$ac_try;;
24085 esac
24086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24087   (eval "$ac_link") 2>conftest.er1
24088   ac_status=$?
24089   grep -v '^ *+' conftest.er1 >conftest.err
24090   rm -f conftest.er1
24091   cat conftest.err >&5
24092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093   (exit $ac_status); } && {
24094          test -z "$ac_c_werror_flag" ||
24095          test ! -s conftest.err
24096        } && test -s conftest$ac_exeext &&
24097        $as_test_x conftest$ac_exeext; then
24098   ac_cv_func_shmat=yes
24099 else
24100   echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24102
24103         ac_cv_func_shmat=no
24104 fi
24105
24106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24107       conftest$ac_exeext conftest.$ac_ext
24108 fi
24109 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24110 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24111
24112     if test $ac_cv_func_shmat = no; then
24113       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24114 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24115 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24116   echo $ECHO_N "(cached) $ECHO_C" >&6
24117 else
24118   ac_check_lib_save_LIBS=$LIBS
24119 LIBS="-lipc  $LIBS"
24120 cat >conftest.$ac_ext <<_ACEOF
24121 /* confdefs.h.  */
24122 _ACEOF
24123 cat confdefs.h >>conftest.$ac_ext
24124 cat >>conftest.$ac_ext <<_ACEOF
24125 /* end confdefs.h.  */
24126
24127 /* Override any GCC internal prototype to avoid an error.
24128    Use char because int might match the return type of a GCC
24129    builtin and then its argument prototype would still apply.  */
24130 #ifdef __cplusplus
24131 extern "C"
24132 #endif
24133 char shmat ();
24134 int
24135 main ()
24136 {
24137 return shmat ();
24138   ;
24139   return 0;
24140 }
24141 _ACEOF
24142 rm -f conftest.$ac_objext conftest$ac_exeext
24143 if { (ac_try="$ac_link"
24144 case "(($ac_try" in
24145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146   *) ac_try_echo=$ac_try;;
24147 esac
24148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149   (eval "$ac_link") 2>conftest.er1
24150   ac_status=$?
24151   grep -v '^ *+' conftest.er1 >conftest.err
24152   rm -f conftest.er1
24153   cat conftest.err >&5
24154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155   (exit $ac_status); } && {
24156          test -z "$ac_c_werror_flag" ||
24157          test ! -s conftest.err
24158        } && test -s conftest$ac_exeext &&
24159        $as_test_x conftest$ac_exeext; then
24160   ac_cv_lib_ipc_shmat=yes
24161 else
24162   echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24164
24165         ac_cv_lib_ipc_shmat=no
24166 fi
24167
24168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24169       conftest$ac_exeext conftest.$ac_ext
24170 LIBS=$ac_check_lib_save_LIBS
24171 fi
24172 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24173 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24174 if test $ac_cv_lib_ipc_shmat = yes; then
24175   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24176 fi
24177
24178     fi
24179   fi
24180
24181   # Check for libraries that X11R6 Xt/Xaw programs need.
24182   ac_save_LDFLAGS=$LDFLAGS
24183   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24184   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24185   # check for ICE first), but we must link in the order -lSM -lICE or
24186   # we get undefined symbols.  So assume we have SM if we have ICE.
24187   # These have to be linked with before -lX11, unlike the other
24188   # libraries we check for below, so use a different variable.
24189   # John Interrante, Karl Berry
24190   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24191 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
24192 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24193   echo $ECHO_N "(cached) $ECHO_C" >&6
24194 else
24195   ac_check_lib_save_LIBS=$LIBS
24196 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24197 cat >conftest.$ac_ext <<_ACEOF
24198 /* confdefs.h.  */
24199 _ACEOF
24200 cat confdefs.h >>conftest.$ac_ext
24201 cat >>conftest.$ac_ext <<_ACEOF
24202 /* end confdefs.h.  */
24203
24204 /* Override any GCC internal prototype to avoid an error.
24205    Use char because int might match the return type of a GCC
24206    builtin and then its argument prototype would still apply.  */
24207 #ifdef __cplusplus
24208 extern "C"
24209 #endif
24210 char IceConnectionNumber ();
24211 int
24212 main ()
24213 {
24214 return IceConnectionNumber ();
24215   ;
24216   return 0;
24217 }
24218 _ACEOF
24219 rm -f conftest.$ac_objext conftest$ac_exeext
24220 if { (ac_try="$ac_link"
24221 case "(($ac_try" in
24222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24223   *) ac_try_echo=$ac_try;;
24224 esac
24225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24226   (eval "$ac_link") 2>conftest.er1
24227   ac_status=$?
24228   grep -v '^ *+' conftest.er1 >conftest.err
24229   rm -f conftest.er1
24230   cat conftest.err >&5
24231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232   (exit $ac_status); } && {
24233          test -z "$ac_c_werror_flag" ||
24234          test ! -s conftest.err
24235        } && test -s conftest$ac_exeext &&
24236        $as_test_x conftest$ac_exeext; then
24237   ac_cv_lib_ICE_IceConnectionNumber=yes
24238 else
24239   echo "$as_me: failed program was:" >&5
24240 sed 's/^/| /' conftest.$ac_ext >&5
24241
24242         ac_cv_lib_ICE_IceConnectionNumber=no
24243 fi
24244
24245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24246       conftest$ac_exeext conftest.$ac_ext
24247 LIBS=$ac_check_lib_save_LIBS
24248 fi
24249 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24250 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24251 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24252   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24253 fi
24254
24255   LDFLAGS=$ac_save_LDFLAGS
24256
24257 fi
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290 for ac_header in \
24291         assert.h \
24292         fcntl.h \
24293         grp.h \
24294         pwd.h \
24295         libc.h \
24296         limits.h \
24297         stdarg.h \
24298         stdlib.h \
24299         stdint.h \
24300         string.h \
24301         strings.h \
24302         termios.h \
24303         termcap.h \
24304         term.h \
24305         unistd.h \
24306         sys/bitypes.h \
24307         sys/byteorder.h \
24308         sys/ioctl.h \
24309         sys/select.h \
24310         sys/socket.h \
24311         sys/sockio.h \
24312         sys/stat.h \
24313         sys/time.h \
24314         sys/types.h \
24315         arpa/nameser.h \
24316         resolv.h \
24317         mtio.h \
24318         sys/mtio.h \
24319         sys/tape.h \
24320         regex.h \
24321
24322 do
24323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24325   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24328   echo $ECHO_N "(cached) $ECHO_C" >&6
24329 fi
24330 ac_res=`eval echo '${'$as_ac_Header'}'`
24331                { echo "$as_me:$LINENO: result: $ac_res" >&5
24332 echo "${ECHO_T}$ac_res" >&6; }
24333 else
24334   # Is the header compilable?
24335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24337 cat >conftest.$ac_ext <<_ACEOF
24338 /* confdefs.h.  */
24339 _ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h.  */
24343 $ac_includes_default
24344 #include <$ac_header>
24345 _ACEOF
24346 rm -f conftest.$ac_objext
24347 if { (ac_try="$ac_compile"
24348 case "(($ac_try" in
24349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24350   *) ac_try_echo=$ac_try;;
24351 esac
24352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24353   (eval "$ac_compile") 2>conftest.er1
24354   ac_status=$?
24355   grep -v '^ *+' conftest.er1 >conftest.err
24356   rm -f conftest.er1
24357   cat conftest.err >&5
24358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359   (exit $ac_status); } && {
24360          test -z "$ac_c_werror_flag" ||
24361          test ! -s conftest.err
24362        } && test -s conftest.$ac_objext; then
24363   ac_header_compiler=yes
24364 else
24365   echo "$as_me: failed program was:" >&5
24366 sed 's/^/| /' conftest.$ac_ext >&5
24367
24368         ac_header_compiler=no
24369 fi
24370
24371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24373 echo "${ECHO_T}$ac_header_compiler" >&6; }
24374
24375 # Is the header present?
24376 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24378 cat >conftest.$ac_ext <<_ACEOF
24379 /* confdefs.h.  */
24380 _ACEOF
24381 cat confdefs.h >>conftest.$ac_ext
24382 cat >>conftest.$ac_ext <<_ACEOF
24383 /* end confdefs.h.  */
24384 #include <$ac_header>
24385 _ACEOF
24386 if { (ac_try="$ac_cpp conftest.$ac_ext"
24387 case "(($ac_try" in
24388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24389   *) ac_try_echo=$ac_try;;
24390 esac
24391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24392   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24393   ac_status=$?
24394   grep -v '^ *+' conftest.er1 >conftest.err
24395   rm -f conftest.er1
24396   cat conftest.err >&5
24397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398   (exit $ac_status); } >/dev/null && {
24399          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24400          test ! -s conftest.err
24401        }; then
24402   ac_header_preproc=yes
24403 else
24404   echo "$as_me: failed program was:" >&5
24405 sed 's/^/| /' conftest.$ac_ext >&5
24406
24407   ac_header_preproc=no
24408 fi
24409
24410 rm -f conftest.err conftest.$ac_ext
24411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24412 echo "${ECHO_T}$ac_header_preproc" >&6; }
24413
24414 # So?  What about this header?
24415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24416   yes:no: )
24417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24421     ac_header_preproc=yes
24422     ;;
24423   no:yes:* )
24424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24436
24437     ;;
24438 esac
24439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24442   echo $ECHO_N "(cached) $ECHO_C" >&6
24443 else
24444   eval "$as_ac_Header=\$ac_header_preproc"
24445 fi
24446 ac_res=`eval echo '${'$as_ac_Header'}'`
24447                { echo "$as_me:$LINENO: result: $ac_res" >&5
24448 echo "${ECHO_T}$ac_res" >&6; }
24449
24450 fi
24451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24452   cat >>confdefs.h <<_ACEOF
24453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24454 _ACEOF
24455
24456 fi
24457
24458 done
24459
24460 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24461 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
24462 if test "${ac_cv_header_stdc+set}" = set; then
24463   echo $ECHO_N "(cached) $ECHO_C" >&6
24464 else
24465   cat >conftest.$ac_ext <<_ACEOF
24466 /* confdefs.h.  */
24467 _ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h.  */
24471 #include <stdlib.h>
24472 #include <stdarg.h>
24473 #include <string.h>
24474 #include <float.h>
24475
24476 int
24477 main ()
24478 {
24479
24480   ;
24481   return 0;
24482 }
24483 _ACEOF
24484 rm -f conftest.$ac_objext
24485 if { (ac_try="$ac_compile"
24486 case "(($ac_try" in
24487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488   *) ac_try_echo=$ac_try;;
24489 esac
24490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24491   (eval "$ac_compile") 2>conftest.er1
24492   ac_status=$?
24493   grep -v '^ *+' conftest.er1 >conftest.err
24494   rm -f conftest.er1
24495   cat conftest.err >&5
24496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497   (exit $ac_status); } && {
24498          test -z "$ac_c_werror_flag" ||
24499          test ! -s conftest.err
24500        } && test -s conftest.$ac_objext; then
24501   ac_cv_header_stdc=yes
24502 else
24503   echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24505
24506         ac_cv_header_stdc=no
24507 fi
24508
24509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24510
24511 if test $ac_cv_header_stdc = yes; then
24512   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24513   cat >conftest.$ac_ext <<_ACEOF
24514 /* confdefs.h.  */
24515 _ACEOF
24516 cat confdefs.h >>conftest.$ac_ext
24517 cat >>conftest.$ac_ext <<_ACEOF
24518 /* end confdefs.h.  */
24519 #include <string.h>
24520
24521 _ACEOF
24522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24523   $EGREP "memchr" >/dev/null 2>&1; then
24524   :
24525 else
24526   ac_cv_header_stdc=no
24527 fi
24528 rm -f conftest*
24529
24530 fi
24531
24532 if test $ac_cv_header_stdc = yes; then
24533   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24534   cat >conftest.$ac_ext <<_ACEOF
24535 /* confdefs.h.  */
24536 _ACEOF
24537 cat confdefs.h >>conftest.$ac_ext
24538 cat >>conftest.$ac_ext <<_ACEOF
24539 /* end confdefs.h.  */
24540 #include <stdlib.h>
24541
24542 _ACEOF
24543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24544   $EGREP "free" >/dev/null 2>&1; then
24545   :
24546 else
24547   ac_cv_header_stdc=no
24548 fi
24549 rm -f conftest*
24550
24551 fi
24552
24553 if test $ac_cv_header_stdc = yes; then
24554   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24555   if test "$cross_compiling" = yes; then
24556   :
24557 else
24558   cat >conftest.$ac_ext <<_ACEOF
24559 /* confdefs.h.  */
24560 _ACEOF
24561 cat confdefs.h >>conftest.$ac_ext
24562 cat >>conftest.$ac_ext <<_ACEOF
24563 /* end confdefs.h.  */
24564 #include <ctype.h>
24565 #include <stdlib.h>
24566 #if ((' ' & 0x0FF) == 0x020)
24567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24569 #else
24570 # define ISLOWER(c) \
24571                    (('a' <= (c) && (c) <= 'i') \
24572                      || ('j' <= (c) && (c) <= 'r') \
24573                      || ('s' <= (c) && (c) <= 'z'))
24574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24575 #endif
24576
24577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24578 int
24579 main ()
24580 {
24581   int i;
24582   for (i = 0; i < 256; i++)
24583     if (XOR (islower (i), ISLOWER (i))
24584         || toupper (i) != TOUPPER (i))
24585       return 2;
24586   return 0;
24587 }
24588 _ACEOF
24589 rm -f conftest$ac_exeext
24590 if { (ac_try="$ac_link"
24591 case "(($ac_try" in
24592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593   *) ac_try_echo=$ac_try;;
24594 esac
24595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24596   (eval "$ac_link") 2>&5
24597   ac_status=$?
24598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24600   { (case "(($ac_try" in
24601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602   *) ac_try_echo=$ac_try;;
24603 esac
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605   (eval "$ac_try") 2>&5
24606   ac_status=$?
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); }; }; then
24609   :
24610 else
24611   echo "$as_me: program exited with status $ac_status" >&5
24612 echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24614
24615 ( exit $ac_status )
24616 ac_cv_header_stdc=no
24617 fi
24618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24619 fi
24620
24621
24622 fi
24623 fi
24624 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24625 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
24626 if test $ac_cv_header_stdc = yes; then
24627
24628 cat >>confdefs.h <<\_ACEOF
24629 #define STDC_HEADERS 1
24630 _ACEOF
24631
24632 fi
24633
24634 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24635 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
24636 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24637   echo $ECHO_N "(cached) $ECHO_C" >&6
24638 else
24639   cat >conftest.$ac_ext <<_ACEOF
24640 /* confdefs.h.  */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h.  */
24645 #include <sys/types.h>
24646 int
24647 main ()
24648 {
24649 return makedev(0, 0);
24650   ;
24651   return 0;
24652 }
24653 _ACEOF
24654 rm -f conftest.$ac_objext conftest$ac_exeext
24655 if { (ac_try="$ac_link"
24656 case "(($ac_try" in
24657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658   *) ac_try_echo=$ac_try;;
24659 esac
24660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661   (eval "$ac_link") 2>conftest.er1
24662   ac_status=$?
24663   grep -v '^ *+' conftest.er1 >conftest.err
24664   rm -f conftest.er1
24665   cat conftest.err >&5
24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667   (exit $ac_status); } && {
24668          test -z "$ac_c_werror_flag" ||
24669          test ! -s conftest.err
24670        } && test -s conftest$ac_exeext &&
24671        $as_test_x conftest$ac_exeext; then
24672   ac_cv_header_sys_types_h_makedev=yes
24673 else
24674   echo "$as_me: failed program was:" >&5
24675 sed 's/^/| /' conftest.$ac_ext >&5
24676
24677         ac_cv_header_sys_types_h_makedev=no
24678 fi
24679
24680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24681       conftest$ac_exeext conftest.$ac_ext
24682
24683 fi
24684 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24685 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
24686
24687 if test $ac_cv_header_sys_types_h_makedev = no; then
24688 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24689   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24690 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
24691 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24692   echo $ECHO_N "(cached) $ECHO_C" >&6
24693 fi
24694 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24695 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
24696 else
24697   # Is the header compilable?
24698 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24699 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
24700 cat >conftest.$ac_ext <<_ACEOF
24701 /* confdefs.h.  */
24702 _ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h.  */
24706 $ac_includes_default
24707 #include <sys/mkdev.h>
24708 _ACEOF
24709 rm -f conftest.$ac_objext
24710 if { (ac_try="$ac_compile"
24711 case "(($ac_try" in
24712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713   *) ac_try_echo=$ac_try;;
24714 esac
24715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24716   (eval "$ac_compile") 2>conftest.er1
24717   ac_status=$?
24718   grep -v '^ *+' conftest.er1 >conftest.err
24719   rm -f conftest.er1
24720   cat conftest.err >&5
24721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722   (exit $ac_status); } && {
24723          test -z "$ac_c_werror_flag" ||
24724          test ! -s conftest.err
24725        } && test -s conftest.$ac_objext; then
24726   ac_header_compiler=yes
24727 else
24728   echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24730
24731         ac_header_compiler=no
24732 fi
24733
24734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24736 echo "${ECHO_T}$ac_header_compiler" >&6; }
24737
24738 # Is the header present?
24739 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24740 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
24741 cat >conftest.$ac_ext <<_ACEOF
24742 /* confdefs.h.  */
24743 _ACEOF
24744 cat confdefs.h >>conftest.$ac_ext
24745 cat >>conftest.$ac_ext <<_ACEOF
24746 /* end confdefs.h.  */
24747 #include <sys/mkdev.h>
24748 _ACEOF
24749 if { (ac_try="$ac_cpp conftest.$ac_ext"
24750 case "(($ac_try" in
24751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24752   *) ac_try_echo=$ac_try;;
24753 esac
24754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24756   ac_status=$?
24757   grep -v '^ *+' conftest.er1 >conftest.err
24758   rm -f conftest.er1
24759   cat conftest.err >&5
24760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761   (exit $ac_status); } >/dev/null && {
24762          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24763          test ! -s conftest.err
24764        }; then
24765   ac_header_preproc=yes
24766 else
24767   echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24769
24770   ac_header_preproc=no
24771 fi
24772
24773 rm -f conftest.err conftest.$ac_ext
24774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24775 echo "${ECHO_T}$ac_header_preproc" >&6; }
24776
24777 # So?  What about this header?
24778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24779   yes:no: )
24780     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24781 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24782     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24783 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24784     ac_header_preproc=yes
24785     ;;
24786   no:yes:* )
24787     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24788 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24789     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
24790 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
24791     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24792 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24793     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
24794 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24795     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24796 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24797     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24798 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24799
24800     ;;
24801 esac
24802 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24803 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
24804 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24805   echo $ECHO_N "(cached) $ECHO_C" >&6
24806 else
24807   ac_cv_header_sys_mkdev_h=$ac_header_preproc
24808 fi
24809 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24810 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
24811
24812 fi
24813 if test $ac_cv_header_sys_mkdev_h = yes; then
24814
24815 cat >>confdefs.h <<\_ACEOF
24816 #define MAJOR_IN_MKDEV 1
24817 _ACEOF
24818
24819 fi
24820
24821
24822
24823   if test $ac_cv_header_sys_mkdev_h = no; then
24824     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24825   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24826 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
24827 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24828   echo $ECHO_N "(cached) $ECHO_C" >&6
24829 fi
24830 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24831 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
24832 else
24833   # Is the header compilable?
24834 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24835 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
24836 cat >conftest.$ac_ext <<_ACEOF
24837 /* confdefs.h.  */
24838 _ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h.  */
24842 $ac_includes_default
24843 #include <sys/sysmacros.h>
24844 _ACEOF
24845 rm -f conftest.$ac_objext
24846 if { (ac_try="$ac_compile"
24847 case "(($ac_try" in
24848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849   *) ac_try_echo=$ac_try;;
24850 esac
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852   (eval "$ac_compile") 2>conftest.er1
24853   ac_status=$?
24854   grep -v '^ *+' conftest.er1 >conftest.err
24855   rm -f conftest.er1
24856   cat conftest.err >&5
24857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858   (exit $ac_status); } && {
24859          test -z "$ac_c_werror_flag" ||
24860          test ! -s conftest.err
24861        } && test -s conftest.$ac_objext; then
24862   ac_header_compiler=yes
24863 else
24864   echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24866
24867         ac_header_compiler=no
24868 fi
24869
24870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24872 echo "${ECHO_T}$ac_header_compiler" >&6; }
24873
24874 # Is the header present?
24875 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24876 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
24877 cat >conftest.$ac_ext <<_ACEOF
24878 /* confdefs.h.  */
24879 _ACEOF
24880 cat confdefs.h >>conftest.$ac_ext
24881 cat >>conftest.$ac_ext <<_ACEOF
24882 /* end confdefs.h.  */
24883 #include <sys/sysmacros.h>
24884 _ACEOF
24885 if { (ac_try="$ac_cpp conftest.$ac_ext"
24886 case "(($ac_try" in
24887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888   *) ac_try_echo=$ac_try;;
24889 esac
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24892   ac_status=$?
24893   grep -v '^ *+' conftest.er1 >conftest.err
24894   rm -f conftest.er1
24895   cat conftest.err >&5
24896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897   (exit $ac_status); } >/dev/null && {
24898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24899          test ! -s conftest.err
24900        }; then
24901   ac_header_preproc=yes
24902 else
24903   echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24905
24906   ac_header_preproc=no
24907 fi
24908
24909 rm -f conftest.err conftest.$ac_ext
24910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24911 echo "${ECHO_T}$ac_header_preproc" >&6; }
24912
24913 # So?  What about this header?
24914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24915   yes:no: )
24916     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
24917 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24918     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
24919 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
24920     ac_header_preproc=yes
24921     ;;
24922   no:yes:* )
24923     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
24924 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
24925     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
24926 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
24927     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
24928 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
24929     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
24930 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24931     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
24932 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
24933     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
24934 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
24935
24936     ;;
24937 esac
24938 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24939 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
24940 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24941   echo $ECHO_N "(cached) $ECHO_C" >&6
24942 else
24943   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
24944 fi
24945 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24946 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
24947
24948 fi
24949 if test $ac_cv_header_sys_sysmacros_h = yes; then
24950
24951 cat >>confdefs.h <<\_ACEOF
24952 #define MAJOR_IN_SYSMACROS 1
24953 _ACEOF
24954
24955 fi
24956
24957
24958   fi
24959 fi
24960
24961
24962
24963
24964
24965
24966 ac_header_dirent=no
24967 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24968   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24969 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24970 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24972   echo $ECHO_N "(cached) $ECHO_C" >&6
24973 else
24974   cat >conftest.$ac_ext <<_ACEOF
24975 /* confdefs.h.  */
24976 _ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h.  */
24980 #include <sys/types.h>
24981 #include <$ac_hdr>
24982
24983 int
24984 main ()
24985 {
24986 if ((DIR *) 0)
24987 return 0;
24988   ;
24989   return 0;
24990 }
24991 _ACEOF
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996   *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999   (eval "$ac_compile") 2>conftest.er1
25000   ac_status=$?
25001   grep -v '^ *+' conftest.er1 >conftest.err
25002   rm -f conftest.er1
25003   cat conftest.err >&5
25004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); } && {
25006          test -z "$ac_c_werror_flag" ||
25007          test ! -s conftest.err
25008        } && test -s conftest.$ac_objext; then
25009   eval "$as_ac_Header=yes"
25010 else
25011   echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25013
25014         eval "$as_ac_Header=no"
25015 fi
25016
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018 fi
25019 ac_res=`eval echo '${'$as_ac_Header'}'`
25020                { echo "$as_me:$LINENO: result: $ac_res" >&5
25021 echo "${ECHO_T}$ac_res" >&6; }
25022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25023   cat >>confdefs.h <<_ACEOF
25024 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25025 _ACEOF
25026
25027 ac_header_dirent=$ac_hdr; break
25028 fi
25029
25030 done
25031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25032 if test $ac_header_dirent = dirent.h; then
25033   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25034 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25035 if test "${ac_cv_search_opendir+set}" = set; then
25036   echo $ECHO_N "(cached) $ECHO_C" >&6
25037 else
25038   ac_func_search_save_LIBS=$LIBS
25039 cat >conftest.$ac_ext <<_ACEOF
25040 /* confdefs.h.  */
25041 _ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h.  */
25045
25046 /* Override any GCC internal prototype to avoid an error.
25047    Use char because int might match the return type of a GCC
25048    builtin and then its argument prototype would still apply.  */
25049 #ifdef __cplusplus
25050 extern "C"
25051 #endif
25052 char opendir ();
25053 int
25054 main ()
25055 {
25056 return opendir ();
25057   ;
25058   return 0;
25059 }
25060 _ACEOF
25061 for ac_lib in '' dir; do
25062   if test -z "$ac_lib"; then
25063     ac_res="none required"
25064   else
25065     ac_res=-l$ac_lib
25066     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25067   fi
25068   rm -f conftest.$ac_objext conftest$ac_exeext
25069 if { (ac_try="$ac_link"
25070 case "(($ac_try" in
25071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072   *) ac_try_echo=$ac_try;;
25073 esac
25074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25075   (eval "$ac_link") 2>conftest.er1
25076   ac_status=$?
25077   grep -v '^ *+' conftest.er1 >conftest.err
25078   rm -f conftest.er1
25079   cat conftest.err >&5
25080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081   (exit $ac_status); } && {
25082          test -z "$ac_c_werror_flag" ||
25083          test ! -s conftest.err
25084        } && test -s conftest$ac_exeext &&
25085        $as_test_x conftest$ac_exeext; then
25086   ac_cv_search_opendir=$ac_res
25087 else
25088   echo "$as_me: failed program was:" >&5
25089 sed 's/^/| /' conftest.$ac_ext >&5
25090
25091
25092 fi
25093
25094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25095       conftest$ac_exeext
25096   if test "${ac_cv_search_opendir+set}" = set; then
25097   break
25098 fi
25099 done
25100 if test "${ac_cv_search_opendir+set}" = set; then
25101   :
25102 else
25103   ac_cv_search_opendir=no
25104 fi
25105 rm conftest.$ac_ext
25106 LIBS=$ac_func_search_save_LIBS
25107 fi
25108 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25109 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25110 ac_res=$ac_cv_search_opendir
25111 if test "$ac_res" != no; then
25112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25113
25114 fi
25115
25116 else
25117   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25119 if test "${ac_cv_search_opendir+set}" = set; then
25120   echo $ECHO_N "(cached) $ECHO_C" >&6
25121 else
25122   ac_func_search_save_LIBS=$LIBS
25123 cat >conftest.$ac_ext <<_ACEOF
25124 /* confdefs.h.  */
25125 _ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h.  */
25129
25130 /* Override any GCC internal prototype to avoid an error.
25131    Use char because int might match the return type of a GCC
25132    builtin and then its argument prototype would still apply.  */
25133 #ifdef __cplusplus
25134 extern "C"
25135 #endif
25136 char opendir ();
25137 int
25138 main ()
25139 {
25140 return opendir ();
25141   ;
25142   return 0;
25143 }
25144 _ACEOF
25145 for ac_lib in '' x; do
25146   if test -z "$ac_lib"; then
25147     ac_res="none required"
25148   else
25149     ac_res=-l$ac_lib
25150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25151   fi
25152   rm -f conftest.$ac_objext conftest$ac_exeext
25153 if { (ac_try="$ac_link"
25154 case "(($ac_try" in
25155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156   *) ac_try_echo=$ac_try;;
25157 esac
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159   (eval "$ac_link") 2>conftest.er1
25160   ac_status=$?
25161   grep -v '^ *+' conftest.er1 >conftest.err
25162   rm -f conftest.er1
25163   cat conftest.err >&5
25164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165   (exit $ac_status); } && {
25166          test -z "$ac_c_werror_flag" ||
25167          test ! -s conftest.err
25168        } && test -s conftest$ac_exeext &&
25169        $as_test_x conftest$ac_exeext; then
25170   ac_cv_search_opendir=$ac_res
25171 else
25172   echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25174
25175
25176 fi
25177
25178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25179       conftest$ac_exeext
25180   if test "${ac_cv_search_opendir+set}" = set; then
25181   break
25182 fi
25183 done
25184 if test "${ac_cv_search_opendir+set}" = set; then
25185   :
25186 else
25187   ac_cv_search_opendir=no
25188 fi
25189 rm conftest.$ac_ext
25190 LIBS=$ac_func_search_save_LIBS
25191 fi
25192 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25193 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25194 ac_res=$ac_cv_search_opendir
25195 if test "$ac_res" != no; then
25196   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25197
25198 fi
25199
25200 fi
25201
25202 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25203 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25204 if test "${ac_cv_header_stat_broken+set}" = set; then
25205   echo $ECHO_N "(cached) $ECHO_C" >&6
25206 else
25207   cat >conftest.$ac_ext <<_ACEOF
25208 /* confdefs.h.  */
25209 _ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h.  */
25213 #include <sys/types.h>
25214 #include <sys/stat.h>
25215
25216 #if defined S_ISBLK && defined S_IFDIR
25217 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25218 #endif
25219
25220 #if defined S_ISBLK && defined S_IFCHR
25221 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25222 #endif
25223
25224 #if defined S_ISLNK && defined S_IFREG
25225 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25226 #endif
25227
25228 #if defined S_ISSOCK && defined S_IFREG
25229 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25230 #endif
25231
25232 _ACEOF
25233 rm -f conftest.$ac_objext
25234 if { (ac_try="$ac_compile"
25235 case "(($ac_try" in
25236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237   *) ac_try_echo=$ac_try;;
25238 esac
25239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25240   (eval "$ac_compile") 2>conftest.er1
25241   ac_status=$?
25242   grep -v '^ *+' conftest.er1 >conftest.err
25243   rm -f conftest.er1
25244   cat conftest.err >&5
25245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246   (exit $ac_status); } && {
25247          test -z "$ac_c_werror_flag" ||
25248          test ! -s conftest.err
25249        } && test -s conftest.$ac_objext; then
25250   ac_cv_header_stat_broken=no
25251 else
25252   echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25254
25255         ac_cv_header_stat_broken=yes
25256 fi
25257
25258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25259 fi
25260 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25261 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25262 if test $ac_cv_header_stat_broken = yes; then
25263
25264 cat >>confdefs.h <<\_ACEOF
25265 #define STAT_MACROS_BROKEN 1
25266 _ACEOF
25267
25268 fi
25269
25270 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25271 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
25272 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25273   echo $ECHO_N "(cached) $ECHO_C" >&6
25274 else
25275   cat >conftest.$ac_ext <<_ACEOF
25276 /* confdefs.h.  */
25277 _ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h.  */
25281 #include <sys/types.h>
25282 #include <sys/wait.h>
25283 #ifndef WEXITSTATUS
25284 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25285 #endif
25286 #ifndef WIFEXITED
25287 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25288 #endif
25289
25290 int
25291 main ()
25292 {
25293   int s;
25294   wait (&s);
25295   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25296   ;
25297   return 0;
25298 }
25299 _ACEOF
25300 rm -f conftest.$ac_objext
25301 if { (ac_try="$ac_compile"
25302 case "(($ac_try" in
25303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304   *) ac_try_echo=$ac_try;;
25305 esac
25306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25307   (eval "$ac_compile") 2>conftest.er1
25308   ac_status=$?
25309   grep -v '^ *+' conftest.er1 >conftest.err
25310   rm -f conftest.er1
25311   cat conftest.err >&5
25312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313   (exit $ac_status); } && {
25314          test -z "$ac_c_werror_flag" ||
25315          test ! -s conftest.err
25316        } && test -s conftest.$ac_objext; then
25317   ac_cv_header_sys_wait_h=yes
25318 else
25319   echo "$as_me: failed program was:" >&5
25320 sed 's/^/| /' conftest.$ac_ext >&5
25321
25322         ac_cv_header_sys_wait_h=no
25323 fi
25324
25325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25326 fi
25327 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25328 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
25329 if test $ac_cv_header_sys_wait_h = yes; then
25330
25331 cat >>confdefs.h <<\_ACEOF
25332 #define HAVE_SYS_WAIT_H 1
25333 _ACEOF
25334
25335 fi
25336
25337 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25338 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25339 if test "${ac_cv_header_time+set}" = set; then
25340   echo $ECHO_N "(cached) $ECHO_C" >&6
25341 else
25342   cat >conftest.$ac_ext <<_ACEOF
25343 /* confdefs.h.  */
25344 _ACEOF
25345 cat confdefs.h >>conftest.$ac_ext
25346 cat >>conftest.$ac_ext <<_ACEOF
25347 /* end confdefs.h.  */
25348 #include <sys/types.h>
25349 #include <sys/time.h>
25350 #include <time.h>
25351
25352 int
25353 main ()
25354 {
25355 if ((struct tm *) 0)
25356 return 0;
25357   ;
25358   return 0;
25359 }
25360 _ACEOF
25361 rm -f conftest.$ac_objext
25362 if { (ac_try="$ac_compile"
25363 case "(($ac_try" in
25364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25365   *) ac_try_echo=$ac_try;;
25366 esac
25367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25368   (eval "$ac_compile") 2>conftest.er1
25369   ac_status=$?
25370   grep -v '^ *+' conftest.er1 >conftest.err
25371   rm -f conftest.er1
25372   cat conftest.err >&5
25373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374   (exit $ac_status); } && {
25375          test -z "$ac_c_werror_flag" ||
25376          test ! -s conftest.err
25377        } && test -s conftest.$ac_objext; then
25378   ac_cv_header_time=yes
25379 else
25380   echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25382
25383         ac_cv_header_time=no
25384 fi
25385
25386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25387 fi
25388 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25389 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25390 if test $ac_cv_header_time = yes; then
25391
25392 cat >>confdefs.h <<\_ACEOF
25393 #define TIME_WITH_SYS_TIME 1
25394 _ACEOF
25395
25396 fi
25397
25398 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
25399 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
25400 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
25401   echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25403   cat >conftest.$ac_ext <<_ACEOF
25404 /* confdefs.h.  */
25405 _ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h.  */
25409 $ac_includes_default
25410 int
25411 main ()
25412 {
25413 static struct stat ac_aggr;
25414 if (ac_aggr.st_blksize)
25415 return 0;
25416   ;
25417   return 0;
25418 }
25419 _ACEOF
25420 rm -f conftest.$ac_objext
25421 if { (ac_try="$ac_compile"
25422 case "(($ac_try" in
25423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25424   *) ac_try_echo=$ac_try;;
25425 esac
25426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25427   (eval "$ac_compile") 2>conftest.er1
25428   ac_status=$?
25429   grep -v '^ *+' conftest.er1 >conftest.err
25430   rm -f conftest.er1
25431   cat conftest.err >&5
25432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433   (exit $ac_status); } && {
25434          test -z "$ac_c_werror_flag" ||
25435          test ! -s conftest.err
25436        } && test -s conftest.$ac_objext; then
25437   ac_cv_member_struct_stat_st_blksize=yes
25438 else
25439   echo "$as_me: failed program was:" >&5
25440 sed 's/^/| /' conftest.$ac_ext >&5
25441
25442         cat >conftest.$ac_ext <<_ACEOF
25443 /* confdefs.h.  */
25444 _ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h.  */
25448 $ac_includes_default
25449 int
25450 main ()
25451 {
25452 static struct stat ac_aggr;
25453 if (sizeof ac_aggr.st_blksize)
25454 return 0;
25455   ;
25456   return 0;
25457 }
25458 _ACEOF
25459 rm -f conftest.$ac_objext
25460 if { (ac_try="$ac_compile"
25461 case "(($ac_try" in
25462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25463   *) ac_try_echo=$ac_try;;
25464 esac
25465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25466   (eval "$ac_compile") 2>conftest.er1
25467   ac_status=$?
25468   grep -v '^ *+' conftest.er1 >conftest.err
25469   rm -f conftest.er1
25470   cat conftest.err >&5
25471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472   (exit $ac_status); } && {
25473          test -z "$ac_c_werror_flag" ||
25474          test ! -s conftest.err
25475        } && test -s conftest.$ac_objext; then
25476   ac_cv_member_struct_stat_st_blksize=yes
25477 else
25478   echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25480
25481         ac_cv_member_struct_stat_st_blksize=no
25482 fi
25483
25484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25485 fi
25486
25487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25488 fi
25489 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
25490 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
25491 if test $ac_cv_member_struct_stat_st_blksize = yes; then
25492
25493 cat >>confdefs.h <<_ACEOF
25494 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25495 _ACEOF
25496
25497
25498 cat >>confdefs.h <<\_ACEOF
25499 #define HAVE_ST_BLKSIZE 1
25500 _ACEOF
25501
25502 fi
25503
25504
25505 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25506 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25507 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25508   echo $ECHO_N "(cached) $ECHO_C" >&6
25509 else
25510   cat >conftest.$ac_ext <<_ACEOF
25511 /* confdefs.h.  */
25512 _ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h.  */
25516 $ac_includes_default
25517 int
25518 main ()
25519 {
25520 static struct stat ac_aggr;
25521 if (ac_aggr.st_blocks)
25522 return 0;
25523   ;
25524   return 0;
25525 }
25526 _ACEOF
25527 rm -f conftest.$ac_objext
25528 if { (ac_try="$ac_compile"
25529 case "(($ac_try" in
25530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25531   *) ac_try_echo=$ac_try;;
25532 esac
25533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25534   (eval "$ac_compile") 2>conftest.er1
25535   ac_status=$?
25536   grep -v '^ *+' conftest.er1 >conftest.err
25537   rm -f conftest.er1
25538   cat conftest.err >&5
25539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540   (exit $ac_status); } && {
25541          test -z "$ac_c_werror_flag" ||
25542          test ! -s conftest.err
25543        } && test -s conftest.$ac_objext; then
25544   ac_cv_member_struct_stat_st_blocks=yes
25545 else
25546   echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25548
25549         cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h.  */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h.  */
25555 $ac_includes_default
25556 int
25557 main ()
25558 {
25559 static struct stat ac_aggr;
25560 if (sizeof ac_aggr.st_blocks)
25561 return 0;
25562   ;
25563   return 0;
25564 }
25565 _ACEOF
25566 rm -f conftest.$ac_objext
25567 if { (ac_try="$ac_compile"
25568 case "(($ac_try" in
25569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570   *) ac_try_echo=$ac_try;;
25571 esac
25572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25573   (eval "$ac_compile") 2>conftest.er1
25574   ac_status=$?
25575   grep -v '^ *+' conftest.er1 >conftest.err
25576   rm -f conftest.er1
25577   cat conftest.err >&5
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); } && {
25580          test -z "$ac_c_werror_flag" ||
25581          test ! -s conftest.err
25582        } && test -s conftest.$ac_objext; then
25583   ac_cv_member_struct_stat_st_blocks=yes
25584 else
25585   echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25587
25588         ac_cv_member_struct_stat_st_blocks=no
25589 fi
25590
25591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25592 fi
25593
25594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25595 fi
25596 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25597 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25598 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25599
25600 cat >>confdefs.h <<_ACEOF
25601 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25602 _ACEOF
25603
25604
25605 cat >>confdefs.h <<\_ACEOF
25606 #define HAVE_ST_BLOCKS 1
25607 _ACEOF
25608
25609 else
25610   case " $LIBOBJS " in
25611   *" fileblocks.$ac_objext "* ) ;;
25612   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25613  ;;
25614 esac
25615
25616 fi
25617
25618
25619 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25620 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25621 if test "${ac_cv_struct_tm+set}" = set; then
25622   echo $ECHO_N "(cached) $ECHO_C" >&6
25623 else
25624   cat >conftest.$ac_ext <<_ACEOF
25625 /* confdefs.h.  */
25626 _ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h.  */
25630 #include <sys/types.h>
25631 #include <time.h>
25632
25633 int
25634 main ()
25635 {
25636 struct tm tm;
25637                                      int *p = &tm.tm_sec;
25638                                      return !p;
25639   ;
25640   return 0;
25641 }
25642 _ACEOF
25643 rm -f conftest.$ac_objext
25644 if { (ac_try="$ac_compile"
25645 case "(($ac_try" in
25646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25647   *) ac_try_echo=$ac_try;;
25648 esac
25649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25650   (eval "$ac_compile") 2>conftest.er1
25651   ac_status=$?
25652   grep -v '^ *+' conftest.er1 >conftest.err
25653   rm -f conftest.er1
25654   cat conftest.err >&5
25655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); } && {
25657          test -z "$ac_c_werror_flag" ||
25658          test ! -s conftest.err
25659        } && test -s conftest.$ac_objext; then
25660   ac_cv_struct_tm=time.h
25661 else
25662   echo "$as_me: failed program was:" >&5
25663 sed 's/^/| /' conftest.$ac_ext >&5
25664
25665         ac_cv_struct_tm=sys/time.h
25666 fi
25667
25668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25669 fi
25670 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25671 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25672 if test $ac_cv_struct_tm = sys/time.h; then
25673
25674 cat >>confdefs.h <<\_ACEOF
25675 #define TM_IN_SYS_TIME 1
25676 _ACEOF
25677
25678 fi
25679
25680 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25681 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
25682 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25683   echo $ECHO_N "(cached) $ECHO_C" >&6
25684 else
25685   cat >conftest.$ac_ext <<_ACEOF
25686 /* confdefs.h.  */
25687 _ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h.  */
25691 #include <sys/types.h>
25692 #include <$ac_cv_struct_tm>
25693
25694
25695 int
25696 main ()
25697 {
25698 static struct tm ac_aggr;
25699 if (ac_aggr.tm_zone)
25700 return 0;
25701   ;
25702   return 0;
25703 }
25704 _ACEOF
25705 rm -f conftest.$ac_objext
25706 if { (ac_try="$ac_compile"
25707 case "(($ac_try" in
25708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709   *) ac_try_echo=$ac_try;;
25710 esac
25711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25712   (eval "$ac_compile") 2>conftest.er1
25713   ac_status=$?
25714   grep -v '^ *+' conftest.er1 >conftest.err
25715   rm -f conftest.er1
25716   cat conftest.err >&5
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); } && {
25719          test -z "$ac_c_werror_flag" ||
25720          test ! -s conftest.err
25721        } && test -s conftest.$ac_objext; then
25722   ac_cv_member_struct_tm_tm_zone=yes
25723 else
25724   echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25726
25727         cat >conftest.$ac_ext <<_ACEOF
25728 /* confdefs.h.  */
25729 _ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h.  */
25733 #include <sys/types.h>
25734 #include <$ac_cv_struct_tm>
25735
25736
25737 int
25738 main ()
25739 {
25740 static struct tm ac_aggr;
25741 if (sizeof ac_aggr.tm_zone)
25742 return 0;
25743   ;
25744   return 0;
25745 }
25746 _ACEOF
25747 rm -f conftest.$ac_objext
25748 if { (ac_try="$ac_compile"
25749 case "(($ac_try" in
25750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25751   *) ac_try_echo=$ac_try;;
25752 esac
25753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754   (eval "$ac_compile") 2>conftest.er1
25755   ac_status=$?
25756   grep -v '^ *+' conftest.er1 >conftest.err
25757   rm -f conftest.er1
25758   cat conftest.err >&5
25759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760   (exit $ac_status); } && {
25761          test -z "$ac_c_werror_flag" ||
25762          test ! -s conftest.err
25763        } && test -s conftest.$ac_objext; then
25764   ac_cv_member_struct_tm_tm_zone=yes
25765 else
25766   echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25768
25769         ac_cv_member_struct_tm_tm_zone=no
25770 fi
25771
25772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25773 fi
25774
25775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25776 fi
25777 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25778 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
25779 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25780
25781 cat >>confdefs.h <<_ACEOF
25782 #define HAVE_STRUCT_TM_TM_ZONE 1
25783 _ACEOF
25784
25785
25786 fi
25787
25788 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25789
25790 cat >>confdefs.h <<\_ACEOF
25791 #define HAVE_TM_ZONE 1
25792 _ACEOF
25793
25794 else
25795   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
25796 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
25797 if test "${ac_cv_have_decl_tzname+set}" = set; then
25798   echo $ECHO_N "(cached) $ECHO_C" >&6
25799 else
25800   cat >conftest.$ac_ext <<_ACEOF
25801 /* confdefs.h.  */
25802 _ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h.  */
25806 #include <time.h>
25807
25808 int
25809 main ()
25810 {
25811 #ifndef tzname
25812   (void) tzname;
25813 #endif
25814
25815   ;
25816   return 0;
25817 }
25818 _ACEOF
25819 rm -f conftest.$ac_objext
25820 if { (ac_try="$ac_compile"
25821 case "(($ac_try" in
25822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823   *) ac_try_echo=$ac_try;;
25824 esac
25825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25826   (eval "$ac_compile") 2>conftest.er1
25827   ac_status=$?
25828   grep -v '^ *+' conftest.er1 >conftest.err
25829   rm -f conftest.er1
25830   cat conftest.err >&5
25831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832   (exit $ac_status); } && {
25833          test -z "$ac_c_werror_flag" ||
25834          test ! -s conftest.err
25835        } && test -s conftest.$ac_objext; then
25836   ac_cv_have_decl_tzname=yes
25837 else
25838   echo "$as_me: failed program was:" >&5
25839 sed 's/^/| /' conftest.$ac_ext >&5
25840
25841         ac_cv_have_decl_tzname=no
25842 fi
25843
25844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25845 fi
25846 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
25847 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
25848 if test $ac_cv_have_decl_tzname = yes; then
25849
25850 cat >>confdefs.h <<_ACEOF
25851 #define HAVE_DECL_TZNAME 1
25852 _ACEOF
25853
25854
25855 else
25856   cat >>confdefs.h <<_ACEOF
25857 #define HAVE_DECL_TZNAME 0
25858 _ACEOF
25859
25860
25861 fi
25862
25863
25864   { echo "$as_me:$LINENO: checking for tzname" >&5
25865 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
25866 if test "${ac_cv_var_tzname+set}" = set; then
25867   echo $ECHO_N "(cached) $ECHO_C" >&6
25868 else
25869   cat >conftest.$ac_ext <<_ACEOF
25870 /* confdefs.h.  */
25871 _ACEOF
25872 cat confdefs.h >>conftest.$ac_ext
25873 cat >>conftest.$ac_ext <<_ACEOF
25874 /* end confdefs.h.  */
25875 #include <time.h>
25876 #if !HAVE_DECL_TZNAME
25877 extern char *tzname[];
25878 #endif
25879
25880 int
25881 main ()
25882 {
25883 return tzname[0][0];
25884   ;
25885   return 0;
25886 }
25887 _ACEOF
25888 rm -f conftest.$ac_objext conftest$ac_exeext
25889 if { (ac_try="$ac_link"
25890 case "(($ac_try" in
25891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25892   *) ac_try_echo=$ac_try;;
25893 esac
25894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25895   (eval "$ac_link") 2>conftest.er1
25896   ac_status=$?
25897   grep -v '^ *+' conftest.er1 >conftest.err
25898   rm -f conftest.er1
25899   cat conftest.err >&5
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); } && {
25902          test -z "$ac_c_werror_flag" ||
25903          test ! -s conftest.err
25904        } && test -s conftest$ac_exeext &&
25905        $as_test_x conftest$ac_exeext; then
25906   ac_cv_var_tzname=yes
25907 else
25908   echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.$ac_ext >&5
25910
25911         ac_cv_var_tzname=no
25912 fi
25913
25914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25915       conftest$ac_exeext conftest.$ac_ext
25916 fi
25917 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25918 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25919   if test $ac_cv_var_tzname = yes; then
25920
25921 cat >>confdefs.h <<\_ACEOF
25922 #define HAVE_TZNAME 1
25923 _ACEOF
25924
25925   fi
25926 fi
25927
25928
25929 { echo "$as_me:$LINENO: checking for utime.h" >&5
25930 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
25931 if test "${ba_cv_header_utime_h+set}" = set; then
25932   echo $ECHO_N "(cached) $ECHO_C" >&6
25933 else
25934   cat >conftest.$ac_ext <<_ACEOF
25935 /* confdefs.h.  */
25936 _ACEOF
25937 cat confdefs.h >>conftest.$ac_ext
25938 cat >>conftest.$ac_ext <<_ACEOF
25939 /* end confdefs.h.  */
25940
25941 #include <sys/types.h>
25942 #include <utime.h>
25943 int
25944 main ()
25945 {
25946 struct utimbuf foo
25947   ;
25948   return 0;
25949 }
25950 _ACEOF
25951 rm -f conftest.$ac_objext
25952 if { (ac_try="$ac_compile"
25953 case "(($ac_try" in
25954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955   *) ac_try_echo=$ac_try;;
25956 esac
25957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25958   (eval "$ac_compile") 2>conftest.er1
25959   ac_status=$?
25960   grep -v '^ *+' conftest.er1 >conftest.err
25961   rm -f conftest.er1
25962   cat conftest.err >&5
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); } && {
25965          test -z "$ac_c_werror_flag" ||
25966          test ! -s conftest.err
25967        } && test -s conftest.$ac_objext; then
25968   ba_cv_header_utime_h=yes
25969 else
25970   echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25972
25973         ba_cv_header_utime_h=no
25974 fi
25975
25976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25977 fi
25978 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
25979 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
25980 test $ba_cv_header_utime_h = yes &&
25981 cat >>confdefs.h <<\_ACEOF
25982 #define HAVE_UTIME_H 1
25983 _ACEOF
25984
25985
25986 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25987 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25988 if test "${ba_cv_header_socklen_t+set}" = set; then
25989   echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991   cat >conftest.$ac_ext <<_ACEOF
25992 /* confdefs.h.  */
25993 _ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h.  */
25997
25998 #include <sys/types.h>
25999 #include <sys/socket.h>
26000 int
26001 main ()
26002 {
26003 socklen_t x
26004   ;
26005   return 0;
26006 }
26007 _ACEOF
26008 rm -f conftest.$ac_objext
26009 if { (ac_try="$ac_compile"
26010 case "(($ac_try" in
26011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012   *) ac_try_echo=$ac_try;;
26013 esac
26014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26015   (eval "$ac_compile") 2>conftest.er1
26016   ac_status=$?
26017   grep -v '^ *+' conftest.er1 >conftest.err
26018   rm -f conftest.er1
26019   cat conftest.err >&5
26020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021   (exit $ac_status); } && {
26022          test -z "$ac_c_werror_flag" ||
26023          test ! -s conftest.err
26024        } && test -s conftest.$ac_objext; then
26025   ba_cv_header_socklen_t=yes
26026 else
26027   echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26029
26030         ba_cv_header_socklen_t=no
26031 fi
26032
26033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26034 fi
26035 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
26036 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
26037 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
26038 #define HAVE_SOCKLEN_T 1
26039 _ACEOF
26040
26041
26042 { echo "$as_me:$LINENO: checking for bigendian" >&5
26043 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
26044 if test "${ba_cv_bigendian+set}" = set; then
26045   echo $ECHO_N "(cached) $ECHO_C" >&6
26046 else
26047   if test "$cross_compiling" = yes; then
26048   ba_cv_bigendian=no
26049 else
26050   cat >conftest.$ac_ext <<_ACEOF
26051 /* confdefs.h.  */
26052 _ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h.  */
26056 main(){long a=1L; char *p=(char *)&a; exit(*p);}
26057 _ACEOF
26058 rm -f conftest$ac_exeext
26059 if { (ac_try="$ac_link"
26060 case "(($ac_try" in
26061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062   *) ac_try_echo=$ac_try;;
26063 esac
26064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26065   (eval "$ac_link") 2>&5
26066   ac_status=$?
26067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26069   { (case "(($ac_try" in
26070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071   *) ac_try_echo=$ac_try;;
26072 esac
26073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26074   (eval "$ac_try") 2>&5
26075   ac_status=$?
26076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077   (exit $ac_status); }; }; then
26078   ba_cv_bigendian=yes
26079 else
26080   echo "$as_me: program exited with status $ac_status" >&5
26081 echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26083
26084 ( exit $ac_status )
26085 ba_cv_bigendian=no
26086 fi
26087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26088 fi
26089
26090
26091 fi
26092 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
26093 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
26094 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
26095 #define HAVE_BIGENDIAN 1
26096 _ACEOF
26097
26098
26099 ac_ext=cpp
26100 ac_cpp='$CXXCPP $CPPFLAGS'
26101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26104
26105
26106 { echo "$as_me:$LINENO: checking for typeof" >&5
26107 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
26108 if test "${ba_cv_have_typeof+set}" = set; then
26109   echo $ECHO_N "(cached) $ECHO_C" >&6
26110 else
26111   if test "$cross_compiling" = yes; then
26112   ba_cv_have_typeof=no
26113 else
26114   cat >conftest.$ac_ext <<_ACEOF
26115 /* confdefs.h.  */
26116 _ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h.  */
26120 main(){char *a = 0; a = (typeof a)a;}
26121 _ACEOF
26122 rm -f conftest$ac_exeext
26123 if { (ac_try="$ac_link"
26124 case "(($ac_try" in
26125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26126   *) ac_try_echo=$ac_try;;
26127 esac
26128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26129   (eval "$ac_link") 2>&5
26130   ac_status=$?
26131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26133   { (case "(($ac_try" in
26134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26135   *) ac_try_echo=$ac_try;;
26136 esac
26137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26138   (eval "$ac_try") 2>&5
26139   ac_status=$?
26140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141   (exit $ac_status); }; }; then
26142   ba_cv_have_typeof=yes
26143 else
26144   echo "$as_me: program exited with status $ac_status" >&5
26145 echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26147
26148 ( exit $ac_status )
26149 ba_cv_have_typeof=no
26150 fi
26151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26152 fi
26153
26154
26155 fi
26156 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
26157 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
26158 test $ba_cv_have_typeof = yes &&
26159 cat >>confdefs.h <<\_ACEOF
26160 #define HAVE_TYPEOF 1
26161 _ACEOF
26162
26163 ac_ext=c
26164 ac_cpp='$CPP $CPPFLAGS'
26165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26168
26169
26170 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
26171 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
26172 if test "${ac_cv_c_const+set}" = set; then
26173   echo $ECHO_N "(cached) $ECHO_C" >&6
26174 else
26175   cat >conftest.$ac_ext <<_ACEOF
26176 /* confdefs.h.  */
26177 _ACEOF
26178 cat confdefs.h >>conftest.$ac_ext
26179 cat >>conftest.$ac_ext <<_ACEOF
26180 /* end confdefs.h.  */
26181
26182 int
26183 main ()
26184 {
26185 /* FIXME: Include the comments suggested by Paul. */
26186 #ifndef __cplusplus
26187   /* Ultrix mips cc rejects this.  */
26188   typedef int charset[2];
26189   const charset cs;
26190   /* SunOS 4.1.1 cc rejects this.  */
26191   char const *const *pcpcc;
26192   char **ppc;
26193   /* NEC SVR4.0.2 mips cc rejects this.  */
26194   struct point {int x, y;};
26195   static struct point const zero = {0,0};
26196   /* AIX XL C 1.02.0.0 rejects this.
26197      It does not let you subtract one const X* pointer from another in
26198      an arm of an if-expression whose if-part is not a constant
26199      expression */
26200   const char *g = "string";
26201   pcpcc = &g + (g ? g-g : 0);
26202   /* HPUX 7.0 cc rejects these. */
26203   ++pcpcc;
26204   ppc = (char**) pcpcc;
26205   pcpcc = (char const *const *) ppc;
26206   { /* SCO 3.2v4 cc rejects this.  */
26207     char *t;
26208     char const *s = 0 ? (char *) 0 : (char const *) 0;
26209
26210     *t++ = 0;
26211     if (s) return 0;
26212   }
26213   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26214     int x[] = {25, 17};
26215     const int *foo = &x[0];
26216     ++foo;
26217   }
26218   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26219     typedef const int *iptr;
26220     iptr p = 0;
26221     ++p;
26222   }
26223   { /* AIX XL C 1.02.0.0 rejects this saying
26224        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26225     struct s { int j; const int *ap[3]; };
26226     struct s *b; b->j = 5;
26227   }
26228   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26229     const int foo = 10;
26230     if (!foo) return 0;
26231   }
26232   return !cs[0] && !zero.x;
26233 #endif
26234
26235   ;
26236   return 0;
26237 }
26238 _ACEOF
26239 rm -f conftest.$ac_objext
26240 if { (ac_try="$ac_compile"
26241 case "(($ac_try" in
26242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26243   *) ac_try_echo=$ac_try;;
26244 esac
26245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26246   (eval "$ac_compile") 2>conftest.er1
26247   ac_status=$?
26248   grep -v '^ *+' conftest.er1 >conftest.err
26249   rm -f conftest.er1
26250   cat conftest.err >&5
26251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252   (exit $ac_status); } && {
26253          test -z "$ac_c_werror_flag" ||
26254          test ! -s conftest.err
26255        } && test -s conftest.$ac_objext; then
26256   ac_cv_c_const=yes
26257 else
26258   echo "$as_me: failed program was:" >&5
26259 sed 's/^/| /' conftest.$ac_ext >&5
26260
26261         ac_cv_c_const=no
26262 fi
26263
26264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26265 fi
26266 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
26267 echo "${ECHO_T}$ac_cv_c_const" >&6; }
26268 if test $ac_cv_c_const = no; then
26269
26270 cat >>confdefs.h <<\_ACEOF
26271 #define const
26272 _ACEOF
26273
26274 fi
26275
26276
26277
26278 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
26279 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
26280 fstype=no
26281 # The order of these tests is important.
26282 cat >conftest.$ac_ext <<_ACEOF
26283 /* confdefs.h.  */
26284 _ACEOF
26285 cat confdefs.h >>conftest.$ac_ext
26286 cat >>conftest.$ac_ext <<_ACEOF
26287 /* end confdefs.h.  */
26288 #include <sys/statvfs.h>
26289 #include <sys/fstyp.h>
26290 _ACEOF
26291 if { (ac_try="$ac_cpp conftest.$ac_ext"
26292 case "(($ac_try" in
26293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26294   *) ac_try_echo=$ac_try;;
26295 esac
26296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26298   ac_status=$?
26299   grep -v '^ *+' conftest.er1 >conftest.err
26300   rm -f conftest.er1
26301   cat conftest.err >&5
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); } >/dev/null && {
26304          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26305          test ! -s conftest.err
26306        }; then
26307   cat >>confdefs.h <<\_ACEOF
26308 #define FSTYPE_STATVFS 1
26309 _ACEOF
26310  fstype=SVR4
26311 else
26312   echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26314
26315
26316 fi
26317
26318 rm -f conftest.err conftest.$ac_ext
26319 if test $fstype = no; then
26320 cat >conftest.$ac_ext <<_ACEOF
26321 /* confdefs.h.  */
26322 _ACEOF
26323 cat confdefs.h >>conftest.$ac_ext
26324 cat >>conftest.$ac_ext <<_ACEOF
26325 /* end confdefs.h.  */
26326 #include <sys/statfs.h>
26327 #include <sys/fstyp.h>
26328 _ACEOF
26329 if { (ac_try="$ac_cpp conftest.$ac_ext"
26330 case "(($ac_try" in
26331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26332   *) ac_try_echo=$ac_try;;
26333 esac
26334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26335   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26336   ac_status=$?
26337   grep -v '^ *+' conftest.er1 >conftest.err
26338   rm -f conftest.er1
26339   cat conftest.err >&5
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); } >/dev/null && {
26342          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26343          test ! -s conftest.err
26344        }; then
26345   cat >>confdefs.h <<\_ACEOF
26346 #define FSTYPE_USG_STATFS 1
26347 _ACEOF
26348  fstype=SVR3
26349 else
26350   echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26352
26353
26354 fi
26355
26356 rm -f conftest.err conftest.$ac_ext
26357 fi
26358 if test $fstype = no; then
26359 cat >conftest.$ac_ext <<_ACEOF
26360 /* confdefs.h.  */
26361 _ACEOF
26362 cat confdefs.h >>conftest.$ac_ext
26363 cat >>conftest.$ac_ext <<_ACEOF
26364 /* end confdefs.h.  */
26365 #include <sys/statfs.h>
26366 #include <sys/vmount.h>
26367 _ACEOF
26368 if { (ac_try="$ac_cpp conftest.$ac_ext"
26369 case "(($ac_try" in
26370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26371   *) ac_try_echo=$ac_try;;
26372 esac
26373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26375   ac_status=$?
26376   grep -v '^ *+' conftest.er1 >conftest.err
26377   rm -f conftest.er1
26378   cat conftest.err >&5
26379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380   (exit $ac_status); } >/dev/null && {
26381          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26382          test ! -s conftest.err
26383        }; then
26384   cat >>confdefs.h <<\_ACEOF
26385 #define FSTYPE_AIX_STATFS 1
26386 _ACEOF
26387  fstype=AIX
26388 else
26389   echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26391
26392
26393 fi
26394
26395 rm -f conftest.err conftest.$ac_ext
26396 fi
26397 if test $fstype = no; then
26398 cat >conftest.$ac_ext <<_ACEOF
26399 /* confdefs.h.  */
26400 _ACEOF
26401 cat confdefs.h >>conftest.$ac_ext
26402 cat >>conftest.$ac_ext <<_ACEOF
26403 /* end confdefs.h.  */
26404 #include <mntent.h>
26405 _ACEOF
26406 if { (ac_try="$ac_cpp conftest.$ac_ext"
26407 case "(($ac_try" in
26408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26409   *) ac_try_echo=$ac_try;;
26410 esac
26411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26413   ac_status=$?
26414   grep -v '^ *+' conftest.er1 >conftest.err
26415   rm -f conftest.er1
26416   cat conftest.err >&5
26417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418   (exit $ac_status); } >/dev/null && {
26419          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26420          test ! -s conftest.err
26421        }; then
26422   cat >>confdefs.h <<\_ACEOF
26423 #define FSTYPE_MNTENT 1
26424 _ACEOF
26425  fstype=4.3BSD
26426 else
26427   echo "$as_me: failed program was:" >&5
26428 sed 's/^/| /' conftest.$ac_ext >&5
26429
26430
26431 fi
26432
26433 rm -f conftest.err conftest.$ac_ext
26434 fi
26435 if test $fstype = no; then
26436 cat >conftest.$ac_ext <<_ACEOF
26437 /* confdefs.h.  */
26438 _ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h.  */
26442 #include <sys/mount.h>
26443
26444 _ACEOF
26445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26446   $EGREP "f_type;" >/dev/null 2>&1; then
26447   cat >>confdefs.h <<\_ACEOF
26448 #define FSTYPE_STATFS 1
26449 _ACEOF
26450  fstype=4.4BSD/OSF1
26451 fi
26452 rm -f conftest*
26453
26454 fi
26455 if test $fstype = no; then
26456 cat >conftest.$ac_ext <<_ACEOF
26457 /* confdefs.h.  */
26458 _ACEOF
26459 cat confdefs.h >>conftest.$ac_ext
26460 cat >>conftest.$ac_ext <<_ACEOF
26461 /* end confdefs.h.  */
26462 #include <sys/mount.h>
26463 #include <sys/fs_types.h>
26464 _ACEOF
26465 if { (ac_try="$ac_cpp conftest.$ac_ext"
26466 case "(($ac_try" in
26467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26468   *) ac_try_echo=$ac_try;;
26469 esac
26470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26472   ac_status=$?
26473   grep -v '^ *+' conftest.er1 >conftest.err
26474   rm -f conftest.er1
26475   cat conftest.err >&5
26476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477   (exit $ac_status); } >/dev/null && {
26478          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26479          test ! -s conftest.err
26480        }; then
26481   cat >>confdefs.h <<\_ACEOF
26482 #define FSTYPE_GETMNT 1
26483 _ACEOF
26484  fstype=Ultrix
26485 else
26486   echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26488
26489
26490 fi
26491
26492 rm -f conftest.err conftest.$ac_ext
26493 fi
26494 { echo "$as_me:$LINENO: result: $fstype" >&5
26495 echo "${ECHO_T}$fstype" >&6; }
26496
26497 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26498   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
26499 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
26500 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26501   echo $ECHO_N "(cached) $ECHO_C" >&6
26502 fi
26503 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
26504 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
26505 else
26506   # Is the header compilable?
26507 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
26508 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
26509 cat >conftest.$ac_ext <<_ACEOF
26510 /* confdefs.h.  */
26511 _ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h.  */
26515 $ac_includes_default
26516 #include <sys/statvfs.h>
26517 _ACEOF
26518 rm -f conftest.$ac_objext
26519 if { (ac_try="$ac_compile"
26520 case "(($ac_try" in
26521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26522   *) ac_try_echo=$ac_try;;
26523 esac
26524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26525   (eval "$ac_compile") 2>conftest.er1
26526   ac_status=$?
26527   grep -v '^ *+' conftest.er1 >conftest.err
26528   rm -f conftest.er1
26529   cat conftest.err >&5
26530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531   (exit $ac_status); } && {
26532          test -z "$ac_c_werror_flag" ||
26533          test ! -s conftest.err
26534        } && test -s conftest.$ac_objext; then
26535   ac_header_compiler=yes
26536 else
26537   echo "$as_me: failed program was:" >&5
26538 sed 's/^/| /' conftest.$ac_ext >&5
26539
26540         ac_header_compiler=no
26541 fi
26542
26543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26545 echo "${ECHO_T}$ac_header_compiler" >&6; }
26546
26547 # Is the header present?
26548 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
26549 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
26550 cat >conftest.$ac_ext <<_ACEOF
26551 /* confdefs.h.  */
26552 _ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h.  */
26556 #include <sys/statvfs.h>
26557 _ACEOF
26558 if { (ac_try="$ac_cpp conftest.$ac_ext"
26559 case "(($ac_try" in
26560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26561   *) ac_try_echo=$ac_try;;
26562 esac
26563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26565   ac_status=$?
26566   grep -v '^ *+' conftest.er1 >conftest.err
26567   rm -f conftest.er1
26568   cat conftest.err >&5
26569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570   (exit $ac_status); } >/dev/null && {
26571          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26572          test ! -s conftest.err
26573        }; then
26574   ac_header_preproc=yes
26575 else
26576   echo "$as_me: failed program was:" >&5
26577 sed 's/^/| /' conftest.$ac_ext >&5
26578
26579   ac_header_preproc=no
26580 fi
26581
26582 rm -f conftest.err conftest.$ac_ext
26583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26584 echo "${ECHO_T}$ac_header_preproc" >&6; }
26585
26586 # So?  What about this header?
26587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26588   yes:no: )
26589     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26590 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26591     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
26592 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
26593     ac_header_preproc=yes
26594     ;;
26595   no:yes:* )
26596     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
26597 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
26598     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
26599 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
26600     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
26601 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
26602     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
26603 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26604     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
26605 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
26606     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
26607 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
26608
26609     ;;
26610 esac
26611 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
26612 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
26613 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26614   echo $ECHO_N "(cached) $ECHO_C" >&6
26615 else
26616   ac_cv_header_sys_statvfs_h=$ac_header_preproc
26617 fi
26618 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
26619 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
26620
26621 fi
26622 if test $ac_cv_header_sys_statvfs_h = yes; then
26623
26624 cat >>confdefs.h <<\_ACEOF
26625 #define HAVE_SYS_STATVFS_H 1
26626 _ACEOF
26627
26628 fi
26629
26630
26631
26632 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26633 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26634 if test "${ac_cv_type_signal+set}" = set; then
26635   echo $ECHO_N "(cached) $ECHO_C" >&6
26636 else
26637   cat >conftest.$ac_ext <<_ACEOF
26638 /* confdefs.h.  */
26639 _ACEOF
26640 cat confdefs.h >>conftest.$ac_ext
26641 cat >>conftest.$ac_ext <<_ACEOF
26642 /* end confdefs.h.  */
26643 #include <sys/types.h>
26644 #include <signal.h>
26645
26646 int
26647 main ()
26648 {
26649 return *(signal (0, 0)) (0) == 1;
26650   ;
26651   return 0;
26652 }
26653 _ACEOF
26654 rm -f conftest.$ac_objext
26655 if { (ac_try="$ac_compile"
26656 case "(($ac_try" in
26657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26658   *) ac_try_echo=$ac_try;;
26659 esac
26660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26661   (eval "$ac_compile") 2>conftest.er1
26662   ac_status=$?
26663   grep -v '^ *+' conftest.er1 >conftest.err
26664   rm -f conftest.er1
26665   cat conftest.err >&5
26666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667   (exit $ac_status); } && {
26668          test -z "$ac_c_werror_flag" ||
26669          test ! -s conftest.err
26670        } && test -s conftest.$ac_objext; then
26671   ac_cv_type_signal=int
26672 else
26673   echo "$as_me: failed program was:" >&5
26674 sed 's/^/| /' conftest.$ac_ext >&5
26675
26676         ac_cv_type_signal=void
26677 fi
26678
26679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26680 fi
26681 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26682 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26683
26684 cat >>confdefs.h <<_ACEOF
26685 #define RETSIGTYPE $ac_cv_type_signal
26686 _ACEOF
26687
26688
26689
26690   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
26691 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
26692   if test "${bash_cv_signal_vintage+set}" = set; then
26693   echo $ECHO_N "(cached) $ECHO_C" >&6
26694 else
26695
26696     cat >conftest.$ac_ext <<_ACEOF
26697 /* confdefs.h.  */
26698 _ACEOF
26699 cat confdefs.h >>conftest.$ac_ext
26700 cat >>conftest.$ac_ext <<_ACEOF
26701 /* end confdefs.h.  */
26702 #include <signal.h>
26703 int
26704 main ()
26705 {
26706
26707       sigset_t ss;
26708       struct sigaction sa;
26709       sigemptyset(&ss); sigsuspend(&ss);
26710       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26711       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26712
26713   ;
26714   return 0;
26715 }
26716 _ACEOF
26717 rm -f conftest.$ac_objext conftest$ac_exeext
26718 if { (ac_try="$ac_link"
26719 case "(($ac_try" in
26720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26721   *) ac_try_echo=$ac_try;;
26722 esac
26723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26724   (eval "$ac_link") 2>conftest.er1
26725   ac_status=$?
26726   grep -v '^ *+' conftest.er1 >conftest.err
26727   rm -f conftest.er1
26728   cat conftest.err >&5
26729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730   (exit $ac_status); } && {
26731          test -z "$ac_c_werror_flag" ||
26732          test ! -s conftest.err
26733        } && test -s conftest$ac_exeext &&
26734        $as_test_x conftest$ac_exeext; then
26735   bash_cv_signal_vintage="posix"
26736 else
26737   echo "$as_me: failed program was:" >&5
26738 sed 's/^/| /' conftest.$ac_ext >&5
26739
26740
26741       cat >conftest.$ac_ext <<_ACEOF
26742 /* confdefs.h.  */
26743 _ACEOF
26744 cat confdefs.h >>conftest.$ac_ext
26745 cat >>conftest.$ac_ext <<_ACEOF
26746 /* end confdefs.h.  */
26747 #include <signal.h>
26748 int
26749 main ()
26750 {
26751
26752           int mask = sigmask(SIGINT);
26753           sigsetmask(mask); sigblock(mask); sigpause(mask);
26754
26755   ;
26756   return 0;
26757 }
26758 _ACEOF
26759 rm -f conftest.$ac_objext conftest$ac_exeext
26760 if { (ac_try="$ac_link"
26761 case "(($ac_try" in
26762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763   *) ac_try_echo=$ac_try;;
26764 esac
26765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26766   (eval "$ac_link") 2>conftest.er1
26767   ac_status=$?
26768   grep -v '^ *+' conftest.er1 >conftest.err
26769   rm -f conftest.er1
26770   cat conftest.err >&5
26771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772   (exit $ac_status); } && {
26773          test -z "$ac_c_werror_flag" ||
26774          test ! -s conftest.err
26775        } && test -s conftest$ac_exeext &&
26776        $as_test_x conftest$ac_exeext; then
26777   bash_cv_signal_vintage="4.2bsd"
26778 else
26779   echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26781
26782
26783         cat >conftest.$ac_ext <<_ACEOF
26784 /* confdefs.h.  */
26785 _ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h.  */
26789
26790           #include <signal.h>
26791           RETSIGTYPE foo() { }
26792 int
26793 main ()
26794 {
26795
26796                   int mask = sigmask(SIGINT);
26797                   sigset(SIGINT, foo); sigrelse(SIGINT);
26798                   sighold(SIGINT); sigpause(SIGINT);
26799
26800   ;
26801   return 0;
26802 }
26803 _ACEOF
26804 rm -f conftest.$ac_objext conftest$ac_exeext
26805 if { (ac_try="$ac_link"
26806 case "(($ac_try" in
26807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26808   *) ac_try_echo=$ac_try;;
26809 esac
26810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26811   (eval "$ac_link") 2>conftest.er1
26812   ac_status=$?
26813   grep -v '^ *+' conftest.er1 >conftest.err
26814   rm -f conftest.er1
26815   cat conftest.err >&5
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); } && {
26818          test -z "$ac_c_werror_flag" ||
26819          test ! -s conftest.err
26820        } && test -s conftest$ac_exeext &&
26821        $as_test_x conftest$ac_exeext; then
26822   bash_cv_signal_vintage="svr3"
26823 else
26824   echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26826
26827         bash_cv_signal_vintage="v7"
26828
26829 fi
26830
26831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26832       conftest$ac_exeext conftest.$ac_ext
26833
26834 fi
26835
26836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26837       conftest$ac_exeext conftest.$ac_ext
26838
26839 fi
26840
26841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26842       conftest$ac_exeext conftest.$ac_ext
26843
26844 fi
26845
26846   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26847 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
26848   if test "$bash_cv_signal_vintage" = "posix"; then
26849     cat >>confdefs.h <<\_ACEOF
26850 #define HAVE_POSIX_SIGNALS 1
26851 _ACEOF
26852
26853   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26854     cat >>confdefs.h <<\_ACEOF
26855 #define HAVE_BSD_SIGNALS 1
26856 _ACEOF
26857
26858   elif test "$bash_cv_signal_vintage" = "svr3"; then
26859     cat >>confdefs.h <<\_ACEOF
26860 #define HAVE_USG_SIGHOLD 1
26861 _ACEOF
26862
26863   fi
26864
26865 { echo "$as_me:$LINENO: checking for mode_t" >&5
26866 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
26867 if test "${ac_cv_type_mode_t+set}" = set; then
26868   echo $ECHO_N "(cached) $ECHO_C" >&6
26869 else
26870   cat >conftest.$ac_ext <<_ACEOF
26871 /* confdefs.h.  */
26872 _ACEOF
26873 cat confdefs.h >>conftest.$ac_ext
26874 cat >>conftest.$ac_ext <<_ACEOF
26875 /* end confdefs.h.  */
26876 $ac_includes_default
26877 typedef mode_t ac__type_new_;
26878 int
26879 main ()
26880 {
26881 if ((ac__type_new_ *) 0)
26882   return 0;
26883 if (sizeof (ac__type_new_))
26884   return 0;
26885   ;
26886   return 0;
26887 }
26888 _ACEOF
26889 rm -f conftest.$ac_objext
26890 if { (ac_try="$ac_compile"
26891 case "(($ac_try" in
26892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26893   *) ac_try_echo=$ac_try;;
26894 esac
26895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26896   (eval "$ac_compile") 2>conftest.er1
26897   ac_status=$?
26898   grep -v '^ *+' conftest.er1 >conftest.err
26899   rm -f conftest.er1
26900   cat conftest.err >&5
26901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902   (exit $ac_status); } && {
26903          test -z "$ac_c_werror_flag" ||
26904          test ! -s conftest.err
26905        } && test -s conftest.$ac_objext; then
26906   ac_cv_type_mode_t=yes
26907 else
26908   echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26910
26911         ac_cv_type_mode_t=no
26912 fi
26913
26914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26915 fi
26916 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
26917 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
26918 if test $ac_cv_type_mode_t = yes; then
26919   :
26920 else
26921
26922 cat >>confdefs.h <<_ACEOF
26923 #define mode_t int
26924 _ACEOF
26925
26926 fi
26927
26928 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26929 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
26930 if test "${ac_cv_type_uid_t+set}" = set; then
26931   echo $ECHO_N "(cached) $ECHO_C" >&6
26932 else
26933   cat >conftest.$ac_ext <<_ACEOF
26934 /* confdefs.h.  */
26935 _ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h.  */
26939 #include <sys/types.h>
26940
26941 _ACEOF
26942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26943   $EGREP "uid_t" >/dev/null 2>&1; then
26944   ac_cv_type_uid_t=yes
26945 else
26946   ac_cv_type_uid_t=no
26947 fi
26948 rm -f conftest*
26949
26950 fi
26951 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26952 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
26953 if test $ac_cv_type_uid_t = no; then
26954
26955 cat >>confdefs.h <<\_ACEOF
26956 #define uid_t int
26957 _ACEOF
26958
26959
26960 cat >>confdefs.h <<\_ACEOF
26961 #define gid_t int
26962 _ACEOF
26963
26964 fi
26965
26966 { echo "$as_me:$LINENO: checking for size_t" >&5
26967 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
26968 if test "${ac_cv_type_size_t+set}" = set; then
26969   echo $ECHO_N "(cached) $ECHO_C" >&6
26970 else
26971   cat >conftest.$ac_ext <<_ACEOF
26972 /* confdefs.h.  */
26973 _ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h.  */
26977 $ac_includes_default
26978 typedef size_t ac__type_new_;
26979 int
26980 main ()
26981 {
26982 if ((ac__type_new_ *) 0)
26983   return 0;
26984 if (sizeof (ac__type_new_))
26985   return 0;
26986   ;
26987   return 0;
26988 }
26989 _ACEOF
26990 rm -f conftest.$ac_objext
26991 if { (ac_try="$ac_compile"
26992 case "(($ac_try" in
26993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994   *) ac_try_echo=$ac_try;;
26995 esac
26996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997   (eval "$ac_compile") 2>conftest.er1
26998   ac_status=$?
26999   grep -v '^ *+' conftest.er1 >conftest.err
27000   rm -f conftest.er1
27001   cat conftest.err >&5
27002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003   (exit $ac_status); } && {
27004          test -z "$ac_c_werror_flag" ||
27005          test ! -s conftest.err
27006        } && test -s conftest.$ac_objext; then
27007   ac_cv_type_size_t=yes
27008 else
27009   echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27011
27012         ac_cv_type_size_t=no
27013 fi
27014
27015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27016 fi
27017 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27018 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27019 if test $ac_cv_type_size_t = yes; then
27020   :
27021 else
27022
27023 cat >>confdefs.h <<_ACEOF
27024 #define size_t unsigned int
27025 _ACEOF
27026
27027 fi
27028
27029 { echo "$as_me:$LINENO: checking for pid_t" >&5
27030 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
27031 if test "${ac_cv_type_pid_t+set}" = set; then
27032   echo $ECHO_N "(cached) $ECHO_C" >&6
27033 else
27034   cat >conftest.$ac_ext <<_ACEOF
27035 /* confdefs.h.  */
27036 _ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h.  */
27040 $ac_includes_default
27041 typedef pid_t ac__type_new_;
27042 int
27043 main ()
27044 {
27045 if ((ac__type_new_ *) 0)
27046   return 0;
27047 if (sizeof (ac__type_new_))
27048   return 0;
27049   ;
27050   return 0;
27051 }
27052 _ACEOF
27053 rm -f conftest.$ac_objext
27054 if { (ac_try="$ac_compile"
27055 case "(($ac_try" in
27056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27057   *) ac_try_echo=$ac_try;;
27058 esac
27059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27060   (eval "$ac_compile") 2>conftest.er1
27061   ac_status=$?
27062   grep -v '^ *+' conftest.er1 >conftest.err
27063   rm -f conftest.er1
27064   cat conftest.err >&5
27065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066   (exit $ac_status); } && {
27067          test -z "$ac_c_werror_flag" ||
27068          test ! -s conftest.err
27069        } && test -s conftest.$ac_objext; then
27070   ac_cv_type_pid_t=yes
27071 else
27072   echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27074
27075         ac_cv_type_pid_t=no
27076 fi
27077
27078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27079 fi
27080 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27081 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
27082 if test $ac_cv_type_pid_t = yes; then
27083   :
27084 else
27085
27086 cat >>confdefs.h <<_ACEOF
27087 #define pid_t int
27088 _ACEOF
27089
27090 fi
27091
27092 { echo "$as_me:$LINENO: checking for off_t" >&5
27093 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
27094 if test "${ac_cv_type_off_t+set}" = set; then
27095   echo $ECHO_N "(cached) $ECHO_C" >&6
27096 else
27097   cat >conftest.$ac_ext <<_ACEOF
27098 /* confdefs.h.  */
27099 _ACEOF
27100 cat confdefs.h >>conftest.$ac_ext
27101 cat >>conftest.$ac_ext <<_ACEOF
27102 /* end confdefs.h.  */
27103 $ac_includes_default
27104 typedef off_t ac__type_new_;
27105 int
27106 main ()
27107 {
27108 if ((ac__type_new_ *) 0)
27109   return 0;
27110 if (sizeof (ac__type_new_))
27111   return 0;
27112   ;
27113   return 0;
27114 }
27115 _ACEOF
27116 rm -f conftest.$ac_objext
27117 if { (ac_try="$ac_compile"
27118 case "(($ac_try" in
27119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120   *) ac_try_echo=$ac_try;;
27121 esac
27122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123   (eval "$ac_compile") 2>conftest.er1
27124   ac_status=$?
27125   grep -v '^ *+' conftest.er1 >conftest.err
27126   rm -f conftest.er1
27127   cat conftest.err >&5
27128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129   (exit $ac_status); } && {
27130          test -z "$ac_c_werror_flag" ||
27131          test ! -s conftest.err
27132        } && test -s conftest.$ac_objext; then
27133   ac_cv_type_off_t=yes
27134 else
27135   echo "$as_me: failed program was:" >&5
27136 sed 's/^/| /' conftest.$ac_ext >&5
27137
27138         ac_cv_type_off_t=no
27139 fi
27140
27141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27142 fi
27143 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27144 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
27145 if test $ac_cv_type_off_t = yes; then
27146   :
27147 else
27148
27149 cat >>confdefs.h <<_ACEOF
27150 #define off_t long int
27151 _ACEOF
27152
27153 fi
27154
27155 { echo "$as_me:$LINENO: checking for ino_t" >&5
27156 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
27157 if test "${ac_cv_type_ino_t+set}" = set; then
27158   echo $ECHO_N "(cached) $ECHO_C" >&6
27159 else
27160   cat >conftest.$ac_ext <<_ACEOF
27161 /* confdefs.h.  */
27162 _ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h.  */
27166 $ac_includes_default
27167 typedef ino_t ac__type_new_;
27168 int
27169 main ()
27170 {
27171 if ((ac__type_new_ *) 0)
27172   return 0;
27173 if (sizeof (ac__type_new_))
27174   return 0;
27175   ;
27176   return 0;
27177 }
27178 _ACEOF
27179 rm -f conftest.$ac_objext
27180 if { (ac_try="$ac_compile"
27181 case "(($ac_try" in
27182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183   *) ac_try_echo=$ac_try;;
27184 esac
27185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186   (eval "$ac_compile") 2>conftest.er1
27187   ac_status=$?
27188   grep -v '^ *+' conftest.er1 >conftest.err
27189   rm -f conftest.er1
27190   cat conftest.err >&5
27191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); } && {
27193          test -z "$ac_c_werror_flag" ||
27194          test ! -s conftest.err
27195        } && test -s conftest.$ac_objext; then
27196   ac_cv_type_ino_t=yes
27197 else
27198   echo "$as_me: failed program was:" >&5
27199 sed 's/^/| /' conftest.$ac_ext >&5
27200
27201         ac_cv_type_ino_t=no
27202 fi
27203
27204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27205 fi
27206 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
27207 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
27208 if test $ac_cv_type_ino_t = yes; then
27209   :
27210 else
27211
27212 cat >>confdefs.h <<_ACEOF
27213 #define ino_t unsigned long
27214 _ACEOF
27215
27216 fi
27217
27218 { echo "$as_me:$LINENO: checking for dev_t" >&5
27219 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
27220 if test "${ac_cv_type_dev_t+set}" = set; then
27221   echo $ECHO_N "(cached) $ECHO_C" >&6
27222 else
27223   cat >conftest.$ac_ext <<_ACEOF
27224 /* confdefs.h.  */
27225 _ACEOF
27226 cat confdefs.h >>conftest.$ac_ext
27227 cat >>conftest.$ac_ext <<_ACEOF
27228 /* end confdefs.h.  */
27229 $ac_includes_default
27230 typedef dev_t ac__type_new_;
27231 int
27232 main ()
27233 {
27234 if ((ac__type_new_ *) 0)
27235   return 0;
27236 if (sizeof (ac__type_new_))
27237   return 0;
27238   ;
27239   return 0;
27240 }
27241 _ACEOF
27242 rm -f conftest.$ac_objext
27243 if { (ac_try="$ac_compile"
27244 case "(($ac_try" in
27245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27246   *) ac_try_echo=$ac_try;;
27247 esac
27248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27249   (eval "$ac_compile") 2>conftest.er1
27250   ac_status=$?
27251   grep -v '^ *+' conftest.er1 >conftest.err
27252   rm -f conftest.er1
27253   cat conftest.err >&5
27254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255   (exit $ac_status); } && {
27256          test -z "$ac_c_werror_flag" ||
27257          test ! -s conftest.err
27258        } && test -s conftest.$ac_objext; then
27259   ac_cv_type_dev_t=yes
27260 else
27261   echo "$as_me: failed program was:" >&5
27262 sed 's/^/| /' conftest.$ac_ext >&5
27263
27264         ac_cv_type_dev_t=no
27265 fi
27266
27267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27268 fi
27269 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
27270 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
27271 if test $ac_cv_type_dev_t = yes; then
27272   :
27273 else
27274
27275 cat >>confdefs.h <<_ACEOF
27276 #define dev_t unsigned long
27277 _ACEOF
27278
27279 fi
27280
27281 { echo "$as_me:$LINENO: checking for daddr_t" >&5
27282 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
27283 if test "${ac_cv_type_daddr_t+set}" = set; then
27284   echo $ECHO_N "(cached) $ECHO_C" >&6
27285 else
27286   cat >conftest.$ac_ext <<_ACEOF
27287 /* confdefs.h.  */
27288 _ACEOF
27289 cat confdefs.h >>conftest.$ac_ext
27290 cat >>conftest.$ac_ext <<_ACEOF
27291 /* end confdefs.h.  */
27292 $ac_includes_default
27293 typedef daddr_t ac__type_new_;
27294 int
27295 main ()
27296 {
27297 if ((ac__type_new_ *) 0)
27298   return 0;
27299 if (sizeof (ac__type_new_))
27300   return 0;
27301   ;
27302   return 0;
27303 }
27304 _ACEOF
27305 rm -f conftest.$ac_objext
27306 if { (ac_try="$ac_compile"
27307 case "(($ac_try" in
27308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309   *) ac_try_echo=$ac_try;;
27310 esac
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312   (eval "$ac_compile") 2>conftest.er1
27313   ac_status=$?
27314   grep -v '^ *+' conftest.er1 >conftest.err
27315   rm -f conftest.er1
27316   cat conftest.err >&5
27317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318   (exit $ac_status); } && {
27319          test -z "$ac_c_werror_flag" ||
27320          test ! -s conftest.err
27321        } && test -s conftest.$ac_objext; then
27322   ac_cv_type_daddr_t=yes
27323 else
27324   echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27326
27327         ac_cv_type_daddr_t=no
27328 fi
27329
27330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27331 fi
27332 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
27333 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
27334 if test $ac_cv_type_daddr_t = yes; then
27335   :
27336 else
27337
27338 cat >>confdefs.h <<_ACEOF
27339 #define daddr_t long
27340 _ACEOF
27341
27342 fi
27343
27344 { echo "$as_me:$LINENO: checking for major_t" >&5
27345 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
27346 if test "${ac_cv_type_major_t+set}" = set; then
27347   echo $ECHO_N "(cached) $ECHO_C" >&6
27348 else
27349   cat >conftest.$ac_ext <<_ACEOF
27350 /* confdefs.h.  */
27351 _ACEOF
27352 cat confdefs.h >>conftest.$ac_ext
27353 cat >>conftest.$ac_ext <<_ACEOF
27354 /* end confdefs.h.  */
27355 $ac_includes_default
27356 typedef major_t ac__type_new_;
27357 int
27358 main ()
27359 {
27360 if ((ac__type_new_ *) 0)
27361   return 0;
27362 if (sizeof (ac__type_new_))
27363   return 0;
27364   ;
27365   return 0;
27366 }
27367 _ACEOF
27368 rm -f conftest.$ac_objext
27369 if { (ac_try="$ac_compile"
27370 case "(($ac_try" in
27371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27372   *) ac_try_echo=$ac_try;;
27373 esac
27374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27375   (eval "$ac_compile") 2>conftest.er1
27376   ac_status=$?
27377   grep -v '^ *+' conftest.er1 >conftest.err
27378   rm -f conftest.er1
27379   cat conftest.err >&5
27380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381   (exit $ac_status); } && {
27382          test -z "$ac_c_werror_flag" ||
27383          test ! -s conftest.err
27384        } && test -s conftest.$ac_objext; then
27385   ac_cv_type_major_t=yes
27386 else
27387   echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27389
27390         ac_cv_type_major_t=no
27391 fi
27392
27393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27394 fi
27395 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
27396 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
27397 if test $ac_cv_type_major_t = yes; then
27398   :
27399 else
27400
27401 cat >>confdefs.h <<_ACEOF
27402 #define major_t int
27403 _ACEOF
27404
27405 fi
27406
27407 { echo "$as_me:$LINENO: checking for minor_t" >&5
27408 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
27409 if test "${ac_cv_type_minor_t+set}" = set; then
27410   echo $ECHO_N "(cached) $ECHO_C" >&6
27411 else
27412   cat >conftest.$ac_ext <<_ACEOF
27413 /* confdefs.h.  */
27414 _ACEOF
27415 cat confdefs.h >>conftest.$ac_ext
27416 cat >>conftest.$ac_ext <<_ACEOF
27417 /* end confdefs.h.  */
27418 $ac_includes_default
27419 typedef minor_t ac__type_new_;
27420 int
27421 main ()
27422 {
27423 if ((ac__type_new_ *) 0)
27424   return 0;
27425 if (sizeof (ac__type_new_))
27426   return 0;
27427   ;
27428   return 0;
27429 }
27430 _ACEOF
27431 rm -f conftest.$ac_objext
27432 if { (ac_try="$ac_compile"
27433 case "(($ac_try" in
27434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27435   *) ac_try_echo=$ac_try;;
27436 esac
27437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438   (eval "$ac_compile") 2>conftest.er1
27439   ac_status=$?
27440   grep -v '^ *+' conftest.er1 >conftest.err
27441   rm -f conftest.er1
27442   cat conftest.err >&5
27443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444   (exit $ac_status); } && {
27445          test -z "$ac_c_werror_flag" ||
27446          test ! -s conftest.err
27447        } && test -s conftest.$ac_objext; then
27448   ac_cv_type_minor_t=yes
27449 else
27450   echo "$as_me: failed program was:" >&5
27451 sed 's/^/| /' conftest.$ac_ext >&5
27452
27453         ac_cv_type_minor_t=no
27454 fi
27455
27456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27457 fi
27458 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
27459 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
27460 if test $ac_cv_type_minor_t = yes; then
27461   :
27462 else
27463
27464 cat >>confdefs.h <<_ACEOF
27465 #define minor_t int
27466 _ACEOF
27467
27468 fi
27469
27470 { echo "$as_me:$LINENO: checking for ssize_t" >&5
27471 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27472 if test "${ac_cv_type_ssize_t+set}" = set; then
27473   echo $ECHO_N "(cached) $ECHO_C" >&6
27474 else
27475   cat >conftest.$ac_ext <<_ACEOF
27476 /* confdefs.h.  */
27477 _ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h.  */
27481 $ac_includes_default
27482 typedef ssize_t ac__type_new_;
27483 int
27484 main ()
27485 {
27486 if ((ac__type_new_ *) 0)
27487   return 0;
27488 if (sizeof (ac__type_new_))
27489   return 0;
27490   ;
27491   return 0;
27492 }
27493 _ACEOF
27494 rm -f conftest.$ac_objext
27495 if { (ac_try="$ac_compile"
27496 case "(($ac_try" in
27497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498   *) ac_try_echo=$ac_try;;
27499 esac
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501   (eval "$ac_compile") 2>conftest.er1
27502   ac_status=$?
27503   grep -v '^ *+' conftest.er1 >conftest.err
27504   rm -f conftest.er1
27505   cat conftest.err >&5
27506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507   (exit $ac_status); } && {
27508          test -z "$ac_c_werror_flag" ||
27509          test ! -s conftest.err
27510        } && test -s conftest.$ac_objext; then
27511   ac_cv_type_ssize_t=yes
27512 else
27513   echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.$ac_ext >&5
27515
27516         ac_cv_type_ssize_t=no
27517 fi
27518
27519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27520 fi
27521 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27522 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
27523 if test $ac_cv_type_ssize_t = yes; then
27524   :
27525 else
27526
27527 cat >>confdefs.h <<_ACEOF
27528 #define ssize_t int
27529 _ACEOF
27530
27531 fi
27532
27533 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27534 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
27535 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27536   echo $ECHO_N "(cached) $ECHO_C" >&6
27537 else
27538   cat >conftest.$ac_ext <<_ACEOF
27539 /* confdefs.h.  */
27540 _ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h.  */
27544 $ac_includes_default
27545 int
27546 main ()
27547 {
27548 static struct stat ac_aggr;
27549 if (ac_aggr.st_blocks)
27550 return 0;
27551   ;
27552   return 0;
27553 }
27554 _ACEOF
27555 rm -f conftest.$ac_objext
27556 if { (ac_try="$ac_compile"
27557 case "(($ac_try" in
27558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27559   *) ac_try_echo=$ac_try;;
27560 esac
27561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27562   (eval "$ac_compile") 2>conftest.er1
27563   ac_status=$?
27564   grep -v '^ *+' conftest.er1 >conftest.err
27565   rm -f conftest.er1
27566   cat conftest.err >&5
27567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568   (exit $ac_status); } && {
27569          test -z "$ac_c_werror_flag" ||
27570          test ! -s conftest.err
27571        } && test -s conftest.$ac_objext; then
27572   ac_cv_member_struct_stat_st_blocks=yes
27573 else
27574   echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27576
27577         cat >conftest.$ac_ext <<_ACEOF
27578 /* confdefs.h.  */
27579 _ACEOF
27580 cat confdefs.h >>conftest.$ac_ext
27581 cat >>conftest.$ac_ext <<_ACEOF
27582 /* end confdefs.h.  */
27583 $ac_includes_default
27584 int
27585 main ()
27586 {
27587 static struct stat ac_aggr;
27588 if (sizeof ac_aggr.st_blocks)
27589 return 0;
27590   ;
27591   return 0;
27592 }
27593 _ACEOF
27594 rm -f conftest.$ac_objext
27595 if { (ac_try="$ac_compile"
27596 case "(($ac_try" in
27597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598   *) ac_try_echo=$ac_try;;
27599 esac
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601   (eval "$ac_compile") 2>conftest.er1
27602   ac_status=$?
27603   grep -v '^ *+' conftest.er1 >conftest.err
27604   rm -f conftest.er1
27605   cat conftest.err >&5
27606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607   (exit $ac_status); } && {
27608          test -z "$ac_c_werror_flag" ||
27609          test ! -s conftest.err
27610        } && test -s conftest.$ac_objext; then
27611   ac_cv_member_struct_stat_st_blocks=yes
27612 else
27613   echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27615
27616         ac_cv_member_struct_stat_st_blocks=no
27617 fi
27618
27619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27620 fi
27621
27622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27623 fi
27624 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27625 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
27626 if test $ac_cv_member_struct_stat_st_blocks = yes; then
27627
27628 cat >>confdefs.h <<_ACEOF
27629 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27630 _ACEOF
27631
27632
27633 cat >>confdefs.h <<\_ACEOF
27634 #define HAVE_ST_BLOCKS 1
27635 _ACEOF
27636
27637 else
27638   case " $LIBOBJS " in
27639   *" fileblocks.$ac_objext "* ) ;;
27640   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27641  ;;
27642 esac
27643
27644 fi
27645
27646
27647 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
27648 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
27649 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
27650   echo $ECHO_N "(cached) $ECHO_C" >&6
27651 else
27652   cat >conftest.$ac_ext <<_ACEOF
27653 /* confdefs.h.  */
27654 _ACEOF
27655 cat confdefs.h >>conftest.$ac_ext
27656 cat >>conftest.$ac_ext <<_ACEOF
27657 /* end confdefs.h.  */
27658 $ac_includes_default
27659 int
27660 main ()
27661 {
27662 static struct stat ac_aggr;
27663 if (ac_aggr.st_rdev)
27664 return 0;
27665   ;
27666   return 0;
27667 }
27668 _ACEOF
27669 rm -f conftest.$ac_objext
27670 if { (ac_try="$ac_compile"
27671 case "(($ac_try" in
27672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673   *) ac_try_echo=$ac_try;;
27674 esac
27675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676   (eval "$ac_compile") 2>conftest.er1
27677   ac_status=$?
27678   grep -v '^ *+' conftest.er1 >conftest.err
27679   rm -f conftest.er1
27680   cat conftest.err >&5
27681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682   (exit $ac_status); } && {
27683          test -z "$ac_c_werror_flag" ||
27684          test ! -s conftest.err
27685        } && test -s conftest.$ac_objext; then
27686   ac_cv_member_struct_stat_st_rdev=yes
27687 else
27688   echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.$ac_ext >&5
27690
27691         cat >conftest.$ac_ext <<_ACEOF
27692 /* confdefs.h.  */
27693 _ACEOF
27694 cat confdefs.h >>conftest.$ac_ext
27695 cat >>conftest.$ac_ext <<_ACEOF
27696 /* end confdefs.h.  */
27697 $ac_includes_default
27698 int
27699 main ()
27700 {
27701 static struct stat ac_aggr;
27702 if (sizeof ac_aggr.st_rdev)
27703 return 0;
27704   ;
27705   return 0;
27706 }
27707 _ACEOF
27708 rm -f conftest.$ac_objext
27709 if { (ac_try="$ac_compile"
27710 case "(($ac_try" in
27711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27712   *) ac_try_echo=$ac_try;;
27713 esac
27714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27715   (eval "$ac_compile") 2>conftest.er1
27716   ac_status=$?
27717   grep -v '^ *+' conftest.er1 >conftest.err
27718   rm -f conftest.er1
27719   cat conftest.err >&5
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); } && {
27722          test -z "$ac_c_werror_flag" ||
27723          test ! -s conftest.err
27724        } && test -s conftest.$ac_objext; then
27725   ac_cv_member_struct_stat_st_rdev=yes
27726 else
27727   echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27729
27730         ac_cv_member_struct_stat_st_rdev=no
27731 fi
27732
27733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27734 fi
27735
27736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27737 fi
27738 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
27739 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
27740 if test $ac_cv_member_struct_stat_st_rdev = yes; then
27741
27742 cat >>confdefs.h <<_ACEOF
27743 #define HAVE_STRUCT_STAT_ST_RDEV 1
27744 _ACEOF
27745
27746
27747 cat >>confdefs.h <<\_ACEOF
27748 #define HAVE_ST_RDEV 1
27749 _ACEOF
27750
27751 fi
27752
27753
27754 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27755 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
27756 if test "${ac_cv_struct_tm+set}" = set; then
27757   echo $ECHO_N "(cached) $ECHO_C" >&6
27758 else
27759   cat >conftest.$ac_ext <<_ACEOF
27760 /* confdefs.h.  */
27761 _ACEOF
27762 cat confdefs.h >>conftest.$ac_ext
27763 cat >>conftest.$ac_ext <<_ACEOF
27764 /* end confdefs.h.  */
27765 #include <sys/types.h>
27766 #include <time.h>
27767
27768 int
27769 main ()
27770 {
27771 struct tm tm;
27772                                      int *p = &tm.tm_sec;
27773                                      return !p;
27774   ;
27775   return 0;
27776 }
27777 _ACEOF
27778 rm -f conftest.$ac_objext
27779 if { (ac_try="$ac_compile"
27780 case "(($ac_try" in
27781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782   *) ac_try_echo=$ac_try;;
27783 esac
27784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785   (eval "$ac_compile") 2>conftest.er1
27786   ac_status=$?
27787   grep -v '^ *+' conftest.er1 >conftest.err
27788   rm -f conftest.er1
27789   cat conftest.err >&5
27790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); } && {
27792          test -z "$ac_c_werror_flag" ||
27793          test ! -s conftest.err
27794        } && test -s conftest.$ac_objext; then
27795   ac_cv_struct_tm=time.h
27796 else
27797   echo "$as_me: failed program was:" >&5
27798 sed 's/^/| /' conftest.$ac_ext >&5
27799
27800         ac_cv_struct_tm=sys/time.h
27801 fi
27802
27803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27804 fi
27805 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27806 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
27807 if test $ac_cv_struct_tm = sys/time.h; then
27808
27809 cat >>confdefs.h <<\_ACEOF
27810 #define TM_IN_SYS_TIME 1
27811 _ACEOF
27812
27813 fi
27814
27815 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
27816 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
27817 if test "${ac_cv_c_const+set}" = set; then
27818   echo $ECHO_N "(cached) $ECHO_C" >&6
27819 else
27820   cat >conftest.$ac_ext <<_ACEOF
27821 /* confdefs.h.  */
27822 _ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h.  */
27826
27827 int
27828 main ()
27829 {
27830 /* FIXME: Include the comments suggested by Paul. */
27831 #ifndef __cplusplus
27832   /* Ultrix mips cc rejects this.  */
27833   typedef int charset[2];
27834   const charset cs;
27835   /* SunOS 4.1.1 cc rejects this.  */
27836   char const *const *pcpcc;
27837   char **ppc;
27838   /* NEC SVR4.0.2 mips cc rejects this.  */
27839   struct point {int x, y;};
27840   static struct point const zero = {0,0};
27841   /* AIX XL C 1.02.0.0 rejects this.
27842      It does not let you subtract one const X* pointer from another in
27843      an arm of an if-expression whose if-part is not a constant
27844      expression */
27845   const char *g = "string";
27846   pcpcc = &g + (g ? g-g : 0);
27847   /* HPUX 7.0 cc rejects these. */
27848   ++pcpcc;
27849   ppc = (char**) pcpcc;
27850   pcpcc = (char const *const *) ppc;
27851   { /* SCO 3.2v4 cc rejects this.  */
27852     char *t;
27853     char const *s = 0 ? (char *) 0 : (char const *) 0;
27854
27855     *t++ = 0;
27856     if (s) return 0;
27857   }
27858   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27859     int x[] = {25, 17};
27860     const int *foo = &x[0];
27861     ++foo;
27862   }
27863   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27864     typedef const int *iptr;
27865     iptr p = 0;
27866     ++p;
27867   }
27868   { /* AIX XL C 1.02.0.0 rejects this saying
27869        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27870     struct s { int j; const int *ap[3]; };
27871     struct s *b; b->j = 5;
27872   }
27873   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27874     const int foo = 10;
27875     if (!foo) return 0;
27876   }
27877   return !cs[0] && !zero.x;
27878 #endif
27879
27880   ;
27881   return 0;
27882 }
27883 _ACEOF
27884 rm -f conftest.$ac_objext
27885 if { (ac_try="$ac_compile"
27886 case "(($ac_try" in
27887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888   *) ac_try_echo=$ac_try;;
27889 esac
27890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891   (eval "$ac_compile") 2>conftest.er1
27892   ac_status=$?
27893   grep -v '^ *+' conftest.er1 >conftest.err
27894   rm -f conftest.er1
27895   cat conftest.err >&5
27896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897   (exit $ac_status); } && {
27898          test -z "$ac_c_werror_flag" ||
27899          test ! -s conftest.err
27900        } && test -s conftest.$ac_objext; then
27901   ac_cv_c_const=yes
27902 else
27903   echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27905
27906         ac_cv_c_const=no
27907 fi
27908
27909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27910 fi
27911 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
27912 echo "${ECHO_T}$ac_cv_c_const" >&6; }
27913 if test $ac_cv_c_const = no; then
27914
27915 cat >>confdefs.h <<\_ACEOF
27916 #define const
27917 _ACEOF
27918
27919 fi
27920
27921
27922
27923 { echo "$as_me:$LINENO: checking for char" >&5
27924 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
27925 if test "${ac_cv_type_char+set}" = set; then
27926   echo $ECHO_N "(cached) $ECHO_C" >&6
27927 else
27928   cat >conftest.$ac_ext <<_ACEOF
27929 /* confdefs.h.  */
27930 _ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h.  */
27934 $ac_includes_default
27935 typedef char ac__type_new_;
27936 int
27937 main ()
27938 {
27939 if ((ac__type_new_ *) 0)
27940   return 0;
27941 if (sizeof (ac__type_new_))
27942   return 0;
27943   ;
27944   return 0;
27945 }
27946 _ACEOF
27947 rm -f conftest.$ac_objext
27948 if { (ac_try="$ac_compile"
27949 case "(($ac_try" in
27950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951   *) ac_try_echo=$ac_try;;
27952 esac
27953 eval "echo \"\$as_me:$LINENO: $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   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   ac_cv_type_char=yes
27965 else
27966   echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27968
27969         ac_cv_type_char=no
27970 fi
27971
27972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27973 fi
27974 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
27975 echo "${ECHO_T}$ac_cv_type_char" >&6; }
27976
27977 # The cast to long int works around a bug in the HP C Compiler
27978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27980 # This bug is HP SR number 8606223364.
27981 { echo "$as_me:$LINENO: checking size of char" >&5
27982 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
27983 if test "${ac_cv_sizeof_char+set}" = set; then
27984   echo $ECHO_N "(cached) $ECHO_C" >&6
27985 else
27986   if test "$cross_compiling" = yes; then
27987   # Depending upon the size, compute the lo and hi bounds.
27988 cat >conftest.$ac_ext <<_ACEOF
27989 /* confdefs.h.  */
27990 _ACEOF
27991 cat confdefs.h >>conftest.$ac_ext
27992 cat >>conftest.$ac_ext <<_ACEOF
27993 /* end confdefs.h.  */
27994 $ac_includes_default
27995    typedef char ac__type_sizeof_;
27996 int
27997 main ()
27998 {
27999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28000 test_array [0] = 0
28001
28002   ;
28003   return 0;
28004 }
28005 _ACEOF
28006 rm -f conftest.$ac_objext
28007 if { (ac_try="$ac_compile"
28008 case "(($ac_try" in
28009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010   *) ac_try_echo=$ac_try;;
28011 esac
28012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28013   (eval "$ac_compile") 2>conftest.er1
28014   ac_status=$?
28015   grep -v '^ *+' conftest.er1 >conftest.err
28016   rm -f conftest.er1
28017   cat conftest.err >&5
28018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019   (exit $ac_status); } && {
28020          test -z "$ac_c_werror_flag" ||
28021          test ! -s conftest.err
28022        } && test -s conftest.$ac_objext; then
28023   ac_lo=0 ac_mid=0
28024   while :; do
28025     cat >conftest.$ac_ext <<_ACEOF
28026 /* confdefs.h.  */
28027 _ACEOF
28028 cat confdefs.h >>conftest.$ac_ext
28029 cat >>conftest.$ac_ext <<_ACEOF
28030 /* end confdefs.h.  */
28031 $ac_includes_default
28032    typedef char ac__type_sizeof_;
28033 int
28034 main ()
28035 {
28036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28037 test_array [0] = 0
28038
28039   ;
28040   return 0;
28041 }
28042 _ACEOF
28043 rm -f conftest.$ac_objext
28044 if { (ac_try="$ac_compile"
28045 case "(($ac_try" in
28046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047   *) ac_try_echo=$ac_try;;
28048 esac
28049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050   (eval "$ac_compile") 2>conftest.er1
28051   ac_status=$?
28052   grep -v '^ *+' conftest.er1 >conftest.err
28053   rm -f conftest.er1
28054   cat conftest.err >&5
28055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056   (exit $ac_status); } && {
28057          test -z "$ac_c_werror_flag" ||
28058          test ! -s conftest.err
28059        } && test -s conftest.$ac_objext; then
28060   ac_hi=$ac_mid; break
28061 else
28062   echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.$ac_ext >&5
28064
28065         ac_lo=`expr $ac_mid + 1`
28066                         if test $ac_lo -le $ac_mid; then
28067                           ac_lo= ac_hi=
28068                           break
28069                         fi
28070                         ac_mid=`expr 2 '*' $ac_mid + 1`
28071 fi
28072
28073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28074   done
28075 else
28076   echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28078
28079         cat >conftest.$ac_ext <<_ACEOF
28080 /* confdefs.h.  */
28081 _ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h.  */
28085 $ac_includes_default
28086    typedef char ac__type_sizeof_;
28087 int
28088 main ()
28089 {
28090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28091 test_array [0] = 0
28092
28093   ;
28094   return 0;
28095 }
28096 _ACEOF
28097 rm -f conftest.$ac_objext
28098 if { (ac_try="$ac_compile"
28099 case "(($ac_try" in
28100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28101   *) ac_try_echo=$ac_try;;
28102 esac
28103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28104   (eval "$ac_compile") 2>conftest.er1
28105   ac_status=$?
28106   grep -v '^ *+' conftest.er1 >conftest.err
28107   rm -f conftest.er1
28108   cat conftest.err >&5
28109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110   (exit $ac_status); } && {
28111          test -z "$ac_c_werror_flag" ||
28112          test ! -s conftest.err
28113        } && test -s conftest.$ac_objext; then
28114   ac_hi=-1 ac_mid=-1
28115   while :; do
28116     cat >conftest.$ac_ext <<_ACEOF
28117 /* confdefs.h.  */
28118 _ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h.  */
28122 $ac_includes_default
28123    typedef char ac__type_sizeof_;
28124 int
28125 main ()
28126 {
28127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28128 test_array [0] = 0
28129
28130   ;
28131   return 0;
28132 }
28133 _ACEOF
28134 rm -f conftest.$ac_objext
28135 if { (ac_try="$ac_compile"
28136 case "(($ac_try" in
28137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28138   *) ac_try_echo=$ac_try;;
28139 esac
28140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28141   (eval "$ac_compile") 2>conftest.er1
28142   ac_status=$?
28143   grep -v '^ *+' conftest.er1 >conftest.err
28144   rm -f conftest.er1
28145   cat conftest.err >&5
28146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147   (exit $ac_status); } && {
28148          test -z "$ac_c_werror_flag" ||
28149          test ! -s conftest.err
28150        } && test -s conftest.$ac_objext; then
28151   ac_lo=$ac_mid; break
28152 else
28153   echo "$as_me: failed program was:" >&5
28154 sed 's/^/| /' conftest.$ac_ext >&5
28155
28156         ac_hi=`expr '(' $ac_mid ')' - 1`
28157                         if test $ac_mid -le $ac_hi; then
28158                           ac_lo= ac_hi=
28159                           break
28160                         fi
28161                         ac_mid=`expr 2 '*' $ac_mid`
28162 fi
28163
28164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28165   done
28166 else
28167   echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28169
28170         ac_lo= ac_hi=
28171 fi
28172
28173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28174 fi
28175
28176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28177 # Binary search between lo and hi bounds.
28178 while test "x$ac_lo" != "x$ac_hi"; do
28179   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28180   cat >conftest.$ac_ext <<_ACEOF
28181 /* confdefs.h.  */
28182 _ACEOF
28183 cat confdefs.h >>conftest.$ac_ext
28184 cat >>conftest.$ac_ext <<_ACEOF
28185 /* end confdefs.h.  */
28186 $ac_includes_default
28187    typedef char ac__type_sizeof_;
28188 int
28189 main ()
28190 {
28191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28192 test_array [0] = 0
28193
28194   ;
28195   return 0;
28196 }
28197 _ACEOF
28198 rm -f conftest.$ac_objext
28199 if { (ac_try="$ac_compile"
28200 case "(($ac_try" in
28201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28202   *) ac_try_echo=$ac_try;;
28203 esac
28204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28205   (eval "$ac_compile") 2>conftest.er1
28206   ac_status=$?
28207   grep -v '^ *+' conftest.er1 >conftest.err
28208   rm -f conftest.er1
28209   cat conftest.err >&5
28210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211   (exit $ac_status); } && {
28212          test -z "$ac_c_werror_flag" ||
28213          test ! -s conftest.err
28214        } && test -s conftest.$ac_objext; then
28215   ac_hi=$ac_mid
28216 else
28217   echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28219
28220         ac_lo=`expr '(' $ac_mid ')' + 1`
28221 fi
28222
28223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28224 done
28225 case $ac_lo in
28226 ?*) ac_cv_sizeof_char=$ac_lo;;
28227 '') if test "$ac_cv_type_char" = yes; then
28228      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
28229 See \`config.log' for more details." >&5
28230 echo "$as_me: error: cannot compute sizeof (char)
28231 See \`config.log' for more details." >&2;}
28232    { (exit 77); exit 77; }; }
28233    else
28234      ac_cv_sizeof_char=0
28235    fi ;;
28236 esac
28237 else
28238   cat >conftest.$ac_ext <<_ACEOF
28239 /* confdefs.h.  */
28240 _ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h.  */
28244 $ac_includes_default
28245    typedef char ac__type_sizeof_;
28246 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28247 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28248 #include <stdio.h>
28249 #include <stdlib.h>
28250 int
28251 main ()
28252 {
28253
28254   FILE *f = fopen ("conftest.val", "w");
28255   if (! f)
28256     return 1;
28257   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28258     {
28259       long int i = longval ();
28260       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28261         return 1;
28262       fprintf (f, "%ld\n", i);
28263     }
28264   else
28265     {
28266       unsigned long int i = ulongval ();
28267       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28268         return 1;
28269       fprintf (f, "%lu\n", i);
28270     }
28271   return ferror (f) || fclose (f) != 0;
28272
28273   ;
28274   return 0;
28275 }
28276 _ACEOF
28277 rm -f conftest$ac_exeext
28278 if { (ac_try="$ac_link"
28279 case "(($ac_try" in
28280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281   *) ac_try_echo=$ac_try;;
28282 esac
28283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284   (eval "$ac_link") 2>&5
28285   ac_status=$?
28286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28288   { (case "(($ac_try" in
28289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28290   *) ac_try_echo=$ac_try;;
28291 esac
28292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28293   (eval "$ac_try") 2>&5
28294   ac_status=$?
28295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296   (exit $ac_status); }; }; then
28297   ac_cv_sizeof_char=`cat conftest.val`
28298 else
28299   echo "$as_me: program exited with status $ac_status" >&5
28300 echo "$as_me: failed program was:" >&5
28301 sed 's/^/| /' conftest.$ac_ext >&5
28302
28303 ( exit $ac_status )
28304 if test "$ac_cv_type_char" = yes; then
28305      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
28306 See \`config.log' for more details." >&5
28307 echo "$as_me: error: cannot compute sizeof (char)
28308 See \`config.log' for more details." >&2;}
28309    { (exit 77); exit 77; }; }
28310    else
28311      ac_cv_sizeof_char=0
28312    fi
28313 fi
28314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28315 fi
28316 rm -f conftest.val
28317 fi
28318 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
28319 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
28320
28321
28322
28323 cat >>confdefs.h <<_ACEOF
28324 #define SIZEOF_CHAR $ac_cv_sizeof_char
28325 _ACEOF
28326
28327
28328 { echo "$as_me:$LINENO: checking for short int" >&5
28329 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
28330 if test "${ac_cv_type_short_int+set}" = set; then
28331   echo $ECHO_N "(cached) $ECHO_C" >&6
28332 else
28333   cat >conftest.$ac_ext <<_ACEOF
28334 /* confdefs.h.  */
28335 _ACEOF
28336 cat confdefs.h >>conftest.$ac_ext
28337 cat >>conftest.$ac_ext <<_ACEOF
28338 /* end confdefs.h.  */
28339 $ac_includes_default
28340 typedef short int ac__type_new_;
28341 int
28342 main ()
28343 {
28344 if ((ac__type_new_ *) 0)
28345   return 0;
28346 if (sizeof (ac__type_new_))
28347   return 0;
28348   ;
28349   return 0;
28350 }
28351 _ACEOF
28352 rm -f conftest.$ac_objext
28353 if { (ac_try="$ac_compile"
28354 case "(($ac_try" in
28355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28356   *) ac_try_echo=$ac_try;;
28357 esac
28358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28359   (eval "$ac_compile") 2>conftest.er1
28360   ac_status=$?
28361   grep -v '^ *+' conftest.er1 >conftest.err
28362   rm -f conftest.er1
28363   cat conftest.err >&5
28364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365   (exit $ac_status); } && {
28366          test -z "$ac_c_werror_flag" ||
28367          test ! -s conftest.err
28368        } && test -s conftest.$ac_objext; then
28369   ac_cv_type_short_int=yes
28370 else
28371   echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28373
28374         ac_cv_type_short_int=no
28375 fi
28376
28377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28378 fi
28379 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
28380 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
28381
28382 # The cast to long int works around a bug in the HP C Compiler
28383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28385 # This bug is HP SR number 8606223364.
28386 { echo "$as_me:$LINENO: checking size of short int" >&5
28387 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
28388 if test "${ac_cv_sizeof_short_int+set}" = set; then
28389   echo $ECHO_N "(cached) $ECHO_C" >&6
28390 else
28391   if test "$cross_compiling" = yes; then
28392   # Depending upon the size, compute the lo and hi bounds.
28393 cat >conftest.$ac_ext <<_ACEOF
28394 /* confdefs.h.  */
28395 _ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h.  */
28399 $ac_includes_default
28400    typedef short int ac__type_sizeof_;
28401 int
28402 main ()
28403 {
28404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28405 test_array [0] = 0
28406
28407   ;
28408   return 0;
28409 }
28410 _ACEOF
28411 rm -f conftest.$ac_objext
28412 if { (ac_try="$ac_compile"
28413 case "(($ac_try" in
28414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415   *) ac_try_echo=$ac_try;;
28416 esac
28417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418   (eval "$ac_compile") 2>conftest.er1
28419   ac_status=$?
28420   grep -v '^ *+' conftest.er1 >conftest.err
28421   rm -f conftest.er1
28422   cat conftest.err >&5
28423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424   (exit $ac_status); } && {
28425          test -z "$ac_c_werror_flag" ||
28426          test ! -s conftest.err
28427        } && test -s conftest.$ac_objext; then
28428   ac_lo=0 ac_mid=0
28429   while :; do
28430     cat >conftest.$ac_ext <<_ACEOF
28431 /* confdefs.h.  */
28432 _ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h.  */
28436 $ac_includes_default
28437    typedef short int ac__type_sizeof_;
28438 int
28439 main ()
28440 {
28441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28442 test_array [0] = 0
28443
28444   ;
28445   return 0;
28446 }
28447 _ACEOF
28448 rm -f conftest.$ac_objext
28449 if { (ac_try="$ac_compile"
28450 case "(($ac_try" in
28451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452   *) ac_try_echo=$ac_try;;
28453 esac
28454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28455   (eval "$ac_compile") 2>conftest.er1
28456   ac_status=$?
28457   grep -v '^ *+' conftest.er1 >conftest.err
28458   rm -f conftest.er1
28459   cat conftest.err >&5
28460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461   (exit $ac_status); } && {
28462          test -z "$ac_c_werror_flag" ||
28463          test ! -s conftest.err
28464        } && test -s conftest.$ac_objext; then
28465   ac_hi=$ac_mid; break
28466 else
28467   echo "$as_me: failed program was:" >&5
28468 sed 's/^/| /' conftest.$ac_ext >&5
28469
28470         ac_lo=`expr $ac_mid + 1`
28471                         if test $ac_lo -le $ac_mid; then
28472                           ac_lo= ac_hi=
28473                           break
28474                         fi
28475                         ac_mid=`expr 2 '*' $ac_mid + 1`
28476 fi
28477
28478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28479   done
28480 else
28481   echo "$as_me: failed program was:" >&5
28482 sed 's/^/| /' conftest.$ac_ext >&5
28483
28484         cat >conftest.$ac_ext <<_ACEOF
28485 /* confdefs.h.  */
28486 _ACEOF
28487 cat confdefs.h >>conftest.$ac_ext
28488 cat >>conftest.$ac_ext <<_ACEOF
28489 /* end confdefs.h.  */
28490 $ac_includes_default
28491    typedef short int ac__type_sizeof_;
28492 int
28493 main ()
28494 {
28495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28496 test_array [0] = 0
28497
28498   ;
28499   return 0;
28500 }
28501 _ACEOF
28502 rm -f conftest.$ac_objext
28503 if { (ac_try="$ac_compile"
28504 case "(($ac_try" in
28505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28506   *) ac_try_echo=$ac_try;;
28507 esac
28508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28509   (eval "$ac_compile") 2>conftest.er1
28510   ac_status=$?
28511   grep -v '^ *+' conftest.er1 >conftest.err
28512   rm -f conftest.er1
28513   cat conftest.err >&5
28514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515   (exit $ac_status); } && {
28516          test -z "$ac_c_werror_flag" ||
28517          test ! -s conftest.err
28518        } && test -s conftest.$ac_objext; then
28519   ac_hi=-1 ac_mid=-1
28520   while :; do
28521     cat >conftest.$ac_ext <<_ACEOF
28522 /* confdefs.h.  */
28523 _ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h.  */
28527 $ac_includes_default
28528    typedef short int ac__type_sizeof_;
28529 int
28530 main ()
28531 {
28532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28533 test_array [0] = 0
28534
28535   ;
28536   return 0;
28537 }
28538 _ACEOF
28539 rm -f conftest.$ac_objext
28540 if { (ac_try="$ac_compile"
28541 case "(($ac_try" in
28542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543   *) ac_try_echo=$ac_try;;
28544 esac
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546   (eval "$ac_compile") 2>conftest.er1
28547   ac_status=$?
28548   grep -v '^ *+' conftest.er1 >conftest.err
28549   rm -f conftest.er1
28550   cat conftest.err >&5
28551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552   (exit $ac_status); } && {
28553          test -z "$ac_c_werror_flag" ||
28554          test ! -s conftest.err
28555        } && test -s conftest.$ac_objext; then
28556   ac_lo=$ac_mid; break
28557 else
28558   echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28560
28561         ac_hi=`expr '(' $ac_mid ')' - 1`
28562                         if test $ac_mid -le $ac_hi; then
28563                           ac_lo= ac_hi=
28564                           break
28565                         fi
28566                         ac_mid=`expr 2 '*' $ac_mid`
28567 fi
28568
28569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28570   done
28571 else
28572   echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28574
28575         ac_lo= ac_hi=
28576 fi
28577
28578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28579 fi
28580
28581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28582 # Binary search between lo and hi bounds.
28583 while test "x$ac_lo" != "x$ac_hi"; do
28584   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28585   cat >conftest.$ac_ext <<_ACEOF
28586 /* confdefs.h.  */
28587 _ACEOF
28588 cat confdefs.h >>conftest.$ac_ext
28589 cat >>conftest.$ac_ext <<_ACEOF
28590 /* end confdefs.h.  */
28591 $ac_includes_default
28592    typedef short int ac__type_sizeof_;
28593 int
28594 main ()
28595 {
28596 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28597 test_array [0] = 0
28598
28599   ;
28600   return 0;
28601 }
28602 _ACEOF
28603 rm -f conftest.$ac_objext
28604 if { (ac_try="$ac_compile"
28605 case "(($ac_try" in
28606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607   *) ac_try_echo=$ac_try;;
28608 esac
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610   (eval "$ac_compile") 2>conftest.er1
28611   ac_status=$?
28612   grep -v '^ *+' conftest.er1 >conftest.err
28613   rm -f conftest.er1
28614   cat conftest.err >&5
28615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616   (exit $ac_status); } && {
28617          test -z "$ac_c_werror_flag" ||
28618          test ! -s conftest.err
28619        } && test -s conftest.$ac_objext; then
28620   ac_hi=$ac_mid
28621 else
28622   echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28624
28625         ac_lo=`expr '(' $ac_mid ')' + 1`
28626 fi
28627
28628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28629 done
28630 case $ac_lo in
28631 ?*) ac_cv_sizeof_short_int=$ac_lo;;
28632 '') if test "$ac_cv_type_short_int" = yes; then
28633      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
28634 See \`config.log' for more details." >&5
28635 echo "$as_me: error: cannot compute sizeof (short int)
28636 See \`config.log' for more details." >&2;}
28637    { (exit 77); exit 77; }; }
28638    else
28639      ac_cv_sizeof_short_int=0
28640    fi ;;
28641 esac
28642 else
28643   cat >conftest.$ac_ext <<_ACEOF
28644 /* confdefs.h.  */
28645 _ACEOF
28646 cat confdefs.h >>conftest.$ac_ext
28647 cat >>conftest.$ac_ext <<_ACEOF
28648 /* end confdefs.h.  */
28649 $ac_includes_default
28650    typedef short int ac__type_sizeof_;
28651 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28652 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28653 #include <stdio.h>
28654 #include <stdlib.h>
28655 int
28656 main ()
28657 {
28658
28659   FILE *f = fopen ("conftest.val", "w");
28660   if (! f)
28661     return 1;
28662   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28663     {
28664       long int i = longval ();
28665       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28666         return 1;
28667       fprintf (f, "%ld\n", i);
28668     }
28669   else
28670     {
28671       unsigned long int i = ulongval ();
28672       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28673         return 1;
28674       fprintf (f, "%lu\n", i);
28675     }
28676   return ferror (f) || fclose (f) != 0;
28677
28678   ;
28679   return 0;
28680 }
28681 _ACEOF
28682 rm -f conftest$ac_exeext
28683 if { (ac_try="$ac_link"
28684 case "(($ac_try" in
28685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28686   *) ac_try_echo=$ac_try;;
28687 esac
28688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28689   (eval "$ac_link") 2>&5
28690   ac_status=$?
28691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28693   { (case "(($ac_try" in
28694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695   *) ac_try_echo=$ac_try;;
28696 esac
28697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28698   (eval "$ac_try") 2>&5
28699   ac_status=$?
28700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701   (exit $ac_status); }; }; then
28702   ac_cv_sizeof_short_int=`cat conftest.val`
28703 else
28704   echo "$as_me: program exited with status $ac_status" >&5
28705 echo "$as_me: failed program was:" >&5
28706 sed 's/^/| /' conftest.$ac_ext >&5
28707
28708 ( exit $ac_status )
28709 if test "$ac_cv_type_short_int" = yes; then
28710      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
28711 See \`config.log' for more details." >&5
28712 echo "$as_me: error: cannot compute sizeof (short int)
28713 See \`config.log' for more details." >&2;}
28714    { (exit 77); exit 77; }; }
28715    else
28716      ac_cv_sizeof_short_int=0
28717    fi
28718 fi
28719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28720 fi
28721 rm -f conftest.val
28722 fi
28723 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
28724 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
28725
28726
28727
28728 cat >>confdefs.h <<_ACEOF
28729 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
28730 _ACEOF
28731
28732
28733 { echo "$as_me:$LINENO: checking for int" >&5
28734 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28735 if test "${ac_cv_type_int+set}" = set; then
28736   echo $ECHO_N "(cached) $ECHO_C" >&6
28737 else
28738   cat >conftest.$ac_ext <<_ACEOF
28739 /* confdefs.h.  */
28740 _ACEOF
28741 cat confdefs.h >>conftest.$ac_ext
28742 cat >>conftest.$ac_ext <<_ACEOF
28743 /* end confdefs.h.  */
28744 $ac_includes_default
28745 typedef int ac__type_new_;
28746 int
28747 main ()
28748 {
28749 if ((ac__type_new_ *) 0)
28750   return 0;
28751 if (sizeof (ac__type_new_))
28752   return 0;
28753   ;
28754   return 0;
28755 }
28756 _ACEOF
28757 rm -f conftest.$ac_objext
28758 if { (ac_try="$ac_compile"
28759 case "(($ac_try" in
28760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28761   *) ac_try_echo=$ac_try;;
28762 esac
28763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28764   (eval "$ac_compile") 2>conftest.er1
28765   ac_status=$?
28766   grep -v '^ *+' conftest.er1 >conftest.err
28767   rm -f conftest.er1
28768   cat conftest.err >&5
28769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770   (exit $ac_status); } && {
28771          test -z "$ac_c_werror_flag" ||
28772          test ! -s conftest.err
28773        } && test -s conftest.$ac_objext; then
28774   ac_cv_type_int=yes
28775 else
28776   echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.$ac_ext >&5
28778
28779         ac_cv_type_int=no
28780 fi
28781
28782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28783 fi
28784 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28785 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28786
28787 # The cast to long int works around a bug in the HP C Compiler
28788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28790 # This bug is HP SR number 8606223364.
28791 { echo "$as_me:$LINENO: checking size of int" >&5
28792 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28793 if test "${ac_cv_sizeof_int+set}" = set; then
28794   echo $ECHO_N "(cached) $ECHO_C" >&6
28795 else
28796   if test "$cross_compiling" = yes; then
28797   # Depending upon the size, compute the lo and hi bounds.
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 $ac_includes_default
28805    typedef int ac__type_sizeof_;
28806 int
28807 main ()
28808 {
28809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28810 test_array [0] = 0
28811
28812   ;
28813   return 0;
28814 }
28815 _ACEOF
28816 rm -f conftest.$ac_objext
28817 if { (ac_try="$ac_compile"
28818 case "(($ac_try" in
28819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28820   *) ac_try_echo=$ac_try;;
28821 esac
28822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28823   (eval "$ac_compile") 2>conftest.er1
28824   ac_status=$?
28825   grep -v '^ *+' conftest.er1 >conftest.err
28826   rm -f conftest.er1
28827   cat conftest.err >&5
28828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829   (exit $ac_status); } && {
28830          test -z "$ac_c_werror_flag" ||
28831          test ! -s conftest.err
28832        } && test -s conftest.$ac_objext; then
28833   ac_lo=0 ac_mid=0
28834   while :; do
28835     cat >conftest.$ac_ext <<_ACEOF
28836 /* confdefs.h.  */
28837 _ACEOF
28838 cat confdefs.h >>conftest.$ac_ext
28839 cat >>conftest.$ac_ext <<_ACEOF
28840 /* end confdefs.h.  */
28841 $ac_includes_default
28842    typedef int ac__type_sizeof_;
28843 int
28844 main ()
28845 {
28846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28847 test_array [0] = 0
28848
28849   ;
28850   return 0;
28851 }
28852 _ACEOF
28853 rm -f conftest.$ac_objext
28854 if { (ac_try="$ac_compile"
28855 case "(($ac_try" in
28856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857   *) ac_try_echo=$ac_try;;
28858 esac
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860   (eval "$ac_compile") 2>conftest.er1
28861   ac_status=$?
28862   grep -v '^ *+' conftest.er1 >conftest.err
28863   rm -f conftest.er1
28864   cat conftest.err >&5
28865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866   (exit $ac_status); } && {
28867          test -z "$ac_c_werror_flag" ||
28868          test ! -s conftest.err
28869        } && test -s conftest.$ac_objext; then
28870   ac_hi=$ac_mid; break
28871 else
28872   echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28874
28875         ac_lo=`expr $ac_mid + 1`
28876                         if test $ac_lo -le $ac_mid; then
28877                           ac_lo= ac_hi=
28878                           break
28879                         fi
28880                         ac_mid=`expr 2 '*' $ac_mid + 1`
28881 fi
28882
28883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28884   done
28885 else
28886   echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.$ac_ext >&5
28888
28889         cat >conftest.$ac_ext <<_ACEOF
28890 /* confdefs.h.  */
28891 _ACEOF
28892 cat confdefs.h >>conftest.$ac_ext
28893 cat >>conftest.$ac_ext <<_ACEOF
28894 /* end confdefs.h.  */
28895 $ac_includes_default
28896    typedef int ac__type_sizeof_;
28897 int
28898 main ()
28899 {
28900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28901 test_array [0] = 0
28902
28903   ;
28904   return 0;
28905 }
28906 _ACEOF
28907 rm -f conftest.$ac_objext
28908 if { (ac_try="$ac_compile"
28909 case "(($ac_try" in
28910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911   *) ac_try_echo=$ac_try;;
28912 esac
28913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28914   (eval "$ac_compile") 2>conftest.er1
28915   ac_status=$?
28916   grep -v '^ *+' conftest.er1 >conftest.err
28917   rm -f conftest.er1
28918   cat conftest.err >&5
28919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920   (exit $ac_status); } && {
28921          test -z "$ac_c_werror_flag" ||
28922          test ! -s conftest.err
28923        } && test -s conftest.$ac_objext; then
28924   ac_hi=-1 ac_mid=-1
28925   while :; do
28926     cat >conftest.$ac_ext <<_ACEOF
28927 /* confdefs.h.  */
28928 _ACEOF
28929 cat confdefs.h >>conftest.$ac_ext
28930 cat >>conftest.$ac_ext <<_ACEOF
28931 /* end confdefs.h.  */
28932 $ac_includes_default
28933    typedef int ac__type_sizeof_;
28934 int
28935 main ()
28936 {
28937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28938 test_array [0] = 0
28939
28940   ;
28941   return 0;
28942 }
28943 _ACEOF
28944 rm -f conftest.$ac_objext
28945 if { (ac_try="$ac_compile"
28946 case "(($ac_try" in
28947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948   *) ac_try_echo=$ac_try;;
28949 esac
28950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951   (eval "$ac_compile") 2>conftest.er1
28952   ac_status=$?
28953   grep -v '^ *+' conftest.er1 >conftest.err
28954   rm -f conftest.er1
28955   cat conftest.err >&5
28956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957   (exit $ac_status); } && {
28958          test -z "$ac_c_werror_flag" ||
28959          test ! -s conftest.err
28960        } && test -s conftest.$ac_objext; then
28961   ac_lo=$ac_mid; break
28962 else
28963   echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28965
28966         ac_hi=`expr '(' $ac_mid ')' - 1`
28967                         if test $ac_mid -le $ac_hi; then
28968                           ac_lo= ac_hi=
28969                           break
28970                         fi
28971                         ac_mid=`expr 2 '*' $ac_mid`
28972 fi
28973
28974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28975   done
28976 else
28977   echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.$ac_ext >&5
28979
28980         ac_lo= ac_hi=
28981 fi
28982
28983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28984 fi
28985
28986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28987 # Binary search between lo and hi bounds.
28988 while test "x$ac_lo" != "x$ac_hi"; do
28989   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28990   cat >conftest.$ac_ext <<_ACEOF
28991 /* confdefs.h.  */
28992 _ACEOF
28993 cat confdefs.h >>conftest.$ac_ext
28994 cat >>conftest.$ac_ext <<_ACEOF
28995 /* end confdefs.h.  */
28996 $ac_includes_default
28997    typedef int ac__type_sizeof_;
28998 int
28999 main ()
29000 {
29001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29002 test_array [0] = 0
29003
29004   ;
29005   return 0;
29006 }
29007 _ACEOF
29008 rm -f conftest.$ac_objext
29009 if { (ac_try="$ac_compile"
29010 case "(($ac_try" in
29011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012   *) ac_try_echo=$ac_try;;
29013 esac
29014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29015   (eval "$ac_compile") 2>conftest.er1
29016   ac_status=$?
29017   grep -v '^ *+' conftest.er1 >conftest.err
29018   rm -f conftest.er1
29019   cat conftest.err >&5
29020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021   (exit $ac_status); } && {
29022          test -z "$ac_c_werror_flag" ||
29023          test ! -s conftest.err
29024        } && test -s conftest.$ac_objext; then
29025   ac_hi=$ac_mid
29026 else
29027   echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.$ac_ext >&5
29029
29030         ac_lo=`expr '(' $ac_mid ')' + 1`
29031 fi
29032
29033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034 done
29035 case $ac_lo in
29036 ?*) ac_cv_sizeof_int=$ac_lo;;
29037 '') if test "$ac_cv_type_int" = yes; then
29038      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29039 See \`config.log' for more details." >&5
29040 echo "$as_me: error: cannot compute sizeof (int)
29041 See \`config.log' for more details." >&2;}
29042    { (exit 77); exit 77; }; }
29043    else
29044      ac_cv_sizeof_int=0
29045    fi ;;
29046 esac
29047 else
29048   cat >conftest.$ac_ext <<_ACEOF
29049 /* confdefs.h.  */
29050 _ACEOF
29051 cat confdefs.h >>conftest.$ac_ext
29052 cat >>conftest.$ac_ext <<_ACEOF
29053 /* end confdefs.h.  */
29054 $ac_includes_default
29055    typedef int ac__type_sizeof_;
29056 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29057 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29058 #include <stdio.h>
29059 #include <stdlib.h>
29060 int
29061 main ()
29062 {
29063
29064   FILE *f = fopen ("conftest.val", "w");
29065   if (! f)
29066     return 1;
29067   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29068     {
29069       long int i = longval ();
29070       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29071         return 1;
29072       fprintf (f, "%ld\n", i);
29073     }
29074   else
29075     {
29076       unsigned long int i = ulongval ();
29077       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29078         return 1;
29079       fprintf (f, "%lu\n", i);
29080     }
29081   return ferror (f) || fclose (f) != 0;
29082
29083   ;
29084   return 0;
29085 }
29086 _ACEOF
29087 rm -f conftest$ac_exeext
29088 if { (ac_try="$ac_link"
29089 case "(($ac_try" in
29090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091   *) ac_try_echo=$ac_try;;
29092 esac
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094   (eval "$ac_link") 2>&5
29095   ac_status=$?
29096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29098   { (case "(($ac_try" in
29099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29100   *) ac_try_echo=$ac_try;;
29101 esac
29102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29103   (eval "$ac_try") 2>&5
29104   ac_status=$?
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); }; }; then
29107   ac_cv_sizeof_int=`cat conftest.val`
29108 else
29109   echo "$as_me: program exited with status $ac_status" >&5
29110 echo "$as_me: failed program was:" >&5
29111 sed 's/^/| /' conftest.$ac_ext >&5
29112
29113 ( exit $ac_status )
29114 if test "$ac_cv_type_int" = yes; then
29115      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29116 See \`config.log' for more details." >&5
29117 echo "$as_me: error: cannot compute sizeof (int)
29118 See \`config.log' for more details." >&2;}
29119    { (exit 77); exit 77; }; }
29120    else
29121      ac_cv_sizeof_int=0
29122    fi
29123 fi
29124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29125 fi
29126 rm -f conftest.val
29127 fi
29128 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29129 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29130
29131
29132
29133 cat >>confdefs.h <<_ACEOF
29134 #define SIZEOF_INT $ac_cv_sizeof_int
29135 _ACEOF
29136
29137
29138 { echo "$as_me:$LINENO: checking for long int" >&5
29139 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
29140 if test "${ac_cv_type_long_int+set}" = set; then
29141   echo $ECHO_N "(cached) $ECHO_C" >&6
29142 else
29143   cat >conftest.$ac_ext <<_ACEOF
29144 /* confdefs.h.  */
29145 _ACEOF
29146 cat confdefs.h >>conftest.$ac_ext
29147 cat >>conftest.$ac_ext <<_ACEOF
29148 /* end confdefs.h.  */
29149 $ac_includes_default
29150 typedef long int ac__type_new_;
29151 int
29152 main ()
29153 {
29154 if ((ac__type_new_ *) 0)
29155   return 0;
29156 if (sizeof (ac__type_new_))
29157   return 0;
29158   ;
29159   return 0;
29160 }
29161 _ACEOF
29162 rm -f conftest.$ac_objext
29163 if { (ac_try="$ac_compile"
29164 case "(($ac_try" in
29165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29166   *) ac_try_echo=$ac_try;;
29167 esac
29168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29169   (eval "$ac_compile") 2>conftest.er1
29170   ac_status=$?
29171   grep -v '^ *+' conftest.er1 >conftest.err
29172   rm -f conftest.er1
29173   cat conftest.err >&5
29174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175   (exit $ac_status); } && {
29176          test -z "$ac_c_werror_flag" ||
29177          test ! -s conftest.err
29178        } && test -s conftest.$ac_objext; then
29179   ac_cv_type_long_int=yes
29180 else
29181   echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29183
29184         ac_cv_type_long_int=no
29185 fi
29186
29187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29188 fi
29189 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
29190 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
29191
29192 # The cast to long int works around a bug in the HP C Compiler
29193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29195 # This bug is HP SR number 8606223364.
29196 { echo "$as_me:$LINENO: checking size of long int" >&5
29197 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
29198 if test "${ac_cv_sizeof_long_int+set}" = set; then
29199   echo $ECHO_N "(cached) $ECHO_C" >&6
29200 else
29201   if test "$cross_compiling" = yes; then
29202   # Depending upon the size, compute the lo and hi bounds.
29203 cat >conftest.$ac_ext <<_ACEOF
29204 /* confdefs.h.  */
29205 _ACEOF
29206 cat confdefs.h >>conftest.$ac_ext
29207 cat >>conftest.$ac_ext <<_ACEOF
29208 /* end confdefs.h.  */
29209 $ac_includes_default
29210    typedef long int ac__type_sizeof_;
29211 int
29212 main ()
29213 {
29214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29215 test_array [0] = 0
29216
29217   ;
29218   return 0;
29219 }
29220 _ACEOF
29221 rm -f conftest.$ac_objext
29222 if { (ac_try="$ac_compile"
29223 case "(($ac_try" in
29224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29225   *) ac_try_echo=$ac_try;;
29226 esac
29227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29228   (eval "$ac_compile") 2>conftest.er1
29229   ac_status=$?
29230   grep -v '^ *+' conftest.er1 >conftest.err
29231   rm -f conftest.er1
29232   cat conftest.err >&5
29233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); } && {
29235          test -z "$ac_c_werror_flag" ||
29236          test ! -s conftest.err
29237        } && test -s conftest.$ac_objext; then
29238   ac_lo=0 ac_mid=0
29239   while :; do
29240     cat >conftest.$ac_ext <<_ACEOF
29241 /* confdefs.h.  */
29242 _ACEOF
29243 cat confdefs.h >>conftest.$ac_ext
29244 cat >>conftest.$ac_ext <<_ACEOF
29245 /* end confdefs.h.  */
29246 $ac_includes_default
29247    typedef long int ac__type_sizeof_;
29248 int
29249 main ()
29250 {
29251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29252 test_array [0] = 0
29253
29254   ;
29255   return 0;
29256 }
29257 _ACEOF
29258 rm -f conftest.$ac_objext
29259 if { (ac_try="$ac_compile"
29260 case "(($ac_try" in
29261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29262   *) ac_try_echo=$ac_try;;
29263 esac
29264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29265   (eval "$ac_compile") 2>conftest.er1
29266   ac_status=$?
29267   grep -v '^ *+' conftest.er1 >conftest.err
29268   rm -f conftest.er1
29269   cat conftest.err >&5
29270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271   (exit $ac_status); } && {
29272          test -z "$ac_c_werror_flag" ||
29273          test ! -s conftest.err
29274        } && test -s conftest.$ac_objext; then
29275   ac_hi=$ac_mid; break
29276 else
29277   echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29279
29280         ac_lo=`expr $ac_mid + 1`
29281                         if test $ac_lo -le $ac_mid; then
29282                           ac_lo= ac_hi=
29283                           break
29284                         fi
29285                         ac_mid=`expr 2 '*' $ac_mid + 1`
29286 fi
29287
29288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29289   done
29290 else
29291   echo "$as_me: failed program was:" >&5
29292 sed 's/^/| /' conftest.$ac_ext >&5
29293
29294         cat >conftest.$ac_ext <<_ACEOF
29295 /* confdefs.h.  */
29296 _ACEOF
29297 cat confdefs.h >>conftest.$ac_ext
29298 cat >>conftest.$ac_ext <<_ACEOF
29299 /* end confdefs.h.  */
29300 $ac_includes_default
29301    typedef long int ac__type_sizeof_;
29302 int
29303 main ()
29304 {
29305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29306 test_array [0] = 0
29307
29308   ;
29309   return 0;
29310 }
29311 _ACEOF
29312 rm -f conftest.$ac_objext
29313 if { (ac_try="$ac_compile"
29314 case "(($ac_try" in
29315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29316   *) ac_try_echo=$ac_try;;
29317 esac
29318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29319   (eval "$ac_compile") 2>conftest.er1
29320   ac_status=$?
29321   grep -v '^ *+' conftest.er1 >conftest.err
29322   rm -f conftest.er1
29323   cat conftest.err >&5
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); } && {
29326          test -z "$ac_c_werror_flag" ||
29327          test ! -s conftest.err
29328        } && test -s conftest.$ac_objext; then
29329   ac_hi=-1 ac_mid=-1
29330   while :; do
29331     cat >conftest.$ac_ext <<_ACEOF
29332 /* confdefs.h.  */
29333 _ACEOF
29334 cat confdefs.h >>conftest.$ac_ext
29335 cat >>conftest.$ac_ext <<_ACEOF
29336 /* end confdefs.h.  */
29337 $ac_includes_default
29338    typedef long int ac__type_sizeof_;
29339 int
29340 main ()
29341 {
29342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29343 test_array [0] = 0
29344
29345   ;
29346   return 0;
29347 }
29348 _ACEOF
29349 rm -f conftest.$ac_objext
29350 if { (ac_try="$ac_compile"
29351 case "(($ac_try" in
29352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353   *) ac_try_echo=$ac_try;;
29354 esac
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356   (eval "$ac_compile") 2>conftest.er1
29357   ac_status=$?
29358   grep -v '^ *+' conftest.er1 >conftest.err
29359   rm -f conftest.er1
29360   cat conftest.err >&5
29361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362   (exit $ac_status); } && {
29363          test -z "$ac_c_werror_flag" ||
29364          test ! -s conftest.err
29365        } && test -s conftest.$ac_objext; then
29366   ac_lo=$ac_mid; break
29367 else
29368   echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29370
29371         ac_hi=`expr '(' $ac_mid ')' - 1`
29372                         if test $ac_mid -le $ac_hi; then
29373                           ac_lo= ac_hi=
29374                           break
29375                         fi
29376                         ac_mid=`expr 2 '*' $ac_mid`
29377 fi
29378
29379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29380   done
29381 else
29382   echo "$as_me: failed program was:" >&5
29383 sed 's/^/| /' conftest.$ac_ext >&5
29384
29385         ac_lo= ac_hi=
29386 fi
29387
29388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29389 fi
29390
29391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29392 # Binary search between lo and hi bounds.
29393 while test "x$ac_lo" != "x$ac_hi"; do
29394   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29395   cat >conftest.$ac_ext <<_ACEOF
29396 /* confdefs.h.  */
29397 _ACEOF
29398 cat confdefs.h >>conftest.$ac_ext
29399 cat >>conftest.$ac_ext <<_ACEOF
29400 /* end confdefs.h.  */
29401 $ac_includes_default
29402    typedef long int ac__type_sizeof_;
29403 int
29404 main ()
29405 {
29406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29407 test_array [0] = 0
29408
29409   ;
29410   return 0;
29411 }
29412 _ACEOF
29413 rm -f conftest.$ac_objext
29414 if { (ac_try="$ac_compile"
29415 case "(($ac_try" in
29416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417   *) ac_try_echo=$ac_try;;
29418 esac
29419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420   (eval "$ac_compile") 2>conftest.er1
29421   ac_status=$?
29422   grep -v '^ *+' conftest.er1 >conftest.err
29423   rm -f conftest.er1
29424   cat conftest.err >&5
29425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426   (exit $ac_status); } && {
29427          test -z "$ac_c_werror_flag" ||
29428          test ! -s conftest.err
29429        } && test -s conftest.$ac_objext; then
29430   ac_hi=$ac_mid
29431 else
29432   echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29434
29435         ac_lo=`expr '(' $ac_mid ')' + 1`
29436 fi
29437
29438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29439 done
29440 case $ac_lo in
29441 ?*) ac_cv_sizeof_long_int=$ac_lo;;
29442 '') if test "$ac_cv_type_long_int" = yes; then
29443      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
29444 See \`config.log' for more details." >&5
29445 echo "$as_me: error: cannot compute sizeof (long int)
29446 See \`config.log' for more details." >&2;}
29447    { (exit 77); exit 77; }; }
29448    else
29449      ac_cv_sizeof_long_int=0
29450    fi ;;
29451 esac
29452 else
29453   cat >conftest.$ac_ext <<_ACEOF
29454 /* confdefs.h.  */
29455 _ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h.  */
29459 $ac_includes_default
29460    typedef long int ac__type_sizeof_;
29461 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29462 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29463 #include <stdio.h>
29464 #include <stdlib.h>
29465 int
29466 main ()
29467 {
29468
29469   FILE *f = fopen ("conftest.val", "w");
29470   if (! f)
29471     return 1;
29472   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29473     {
29474       long int i = longval ();
29475       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29476         return 1;
29477       fprintf (f, "%ld\n", i);
29478     }
29479   else
29480     {
29481       unsigned long int i = ulongval ();
29482       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29483         return 1;
29484       fprintf (f, "%lu\n", i);
29485     }
29486   return ferror (f) || fclose (f) != 0;
29487
29488   ;
29489   return 0;
29490 }
29491 _ACEOF
29492 rm -f conftest$ac_exeext
29493 if { (ac_try="$ac_link"
29494 case "(($ac_try" in
29495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29496   *) ac_try_echo=$ac_try;;
29497 esac
29498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29499   (eval "$ac_link") 2>&5
29500   ac_status=$?
29501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29503   { (case "(($ac_try" in
29504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29505   *) ac_try_echo=$ac_try;;
29506 esac
29507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29508   (eval "$ac_try") 2>&5
29509   ac_status=$?
29510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511   (exit $ac_status); }; }; then
29512   ac_cv_sizeof_long_int=`cat conftest.val`
29513 else
29514   echo "$as_me: program exited with status $ac_status" >&5
29515 echo "$as_me: failed program was:" >&5
29516 sed 's/^/| /' conftest.$ac_ext >&5
29517
29518 ( exit $ac_status )
29519 if test "$ac_cv_type_long_int" = yes; then
29520      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
29521 See \`config.log' for more details." >&5
29522 echo "$as_me: error: cannot compute sizeof (long int)
29523 See \`config.log' for more details." >&2;}
29524    { (exit 77); exit 77; }; }
29525    else
29526      ac_cv_sizeof_long_int=0
29527    fi
29528 fi
29529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29530 fi
29531 rm -f conftest.val
29532 fi
29533 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
29534 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
29535
29536
29537
29538 cat >>confdefs.h <<_ACEOF
29539 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
29540 _ACEOF
29541
29542
29543 { echo "$as_me:$LINENO: checking for long long int" >&5
29544 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
29545 if test "${ac_cv_type_long_long_int+set}" = set; then
29546   echo $ECHO_N "(cached) $ECHO_C" >&6
29547 else
29548   cat >conftest.$ac_ext <<_ACEOF
29549 /* confdefs.h.  */
29550 _ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h.  */
29554 $ac_includes_default
29555 typedef long long int ac__type_new_;
29556 int
29557 main ()
29558 {
29559 if ((ac__type_new_ *) 0)
29560   return 0;
29561 if (sizeof (ac__type_new_))
29562   return 0;
29563   ;
29564   return 0;
29565 }
29566 _ACEOF
29567 rm -f conftest.$ac_objext
29568 if { (ac_try="$ac_compile"
29569 case "(($ac_try" in
29570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571   *) ac_try_echo=$ac_try;;
29572 esac
29573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574   (eval "$ac_compile") 2>conftest.er1
29575   ac_status=$?
29576   grep -v '^ *+' conftest.er1 >conftest.err
29577   rm -f conftest.er1
29578   cat conftest.err >&5
29579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580   (exit $ac_status); } && {
29581          test -z "$ac_c_werror_flag" ||
29582          test ! -s conftest.err
29583        } && test -s conftest.$ac_objext; then
29584   ac_cv_type_long_long_int=yes
29585 else
29586   echo "$as_me: failed program was:" >&5
29587 sed 's/^/| /' conftest.$ac_ext >&5
29588
29589         ac_cv_type_long_long_int=no
29590 fi
29591
29592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29593 fi
29594 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
29595 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
29596
29597 # The cast to long int works around a bug in the HP C Compiler
29598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29600 # This bug is HP SR number 8606223364.
29601 { echo "$as_me:$LINENO: checking size of long long int" >&5
29602 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
29603 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
29604   echo $ECHO_N "(cached) $ECHO_C" >&6
29605 else
29606   if test "$cross_compiling" = yes; then
29607   # Depending upon the size, compute the lo and hi bounds.
29608 cat >conftest.$ac_ext <<_ACEOF
29609 /* confdefs.h.  */
29610 _ACEOF
29611 cat confdefs.h >>conftest.$ac_ext
29612 cat >>conftest.$ac_ext <<_ACEOF
29613 /* end confdefs.h.  */
29614 $ac_includes_default
29615    typedef long long int ac__type_sizeof_;
29616 int
29617 main ()
29618 {
29619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29620 test_array [0] = 0
29621
29622   ;
29623   return 0;
29624 }
29625 _ACEOF
29626 rm -f conftest.$ac_objext
29627 if { (ac_try="$ac_compile"
29628 case "(($ac_try" in
29629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29630   *) ac_try_echo=$ac_try;;
29631 esac
29632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29633   (eval "$ac_compile") 2>conftest.er1
29634   ac_status=$?
29635   grep -v '^ *+' conftest.er1 >conftest.err
29636   rm -f conftest.er1
29637   cat conftest.err >&5
29638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639   (exit $ac_status); } && {
29640          test -z "$ac_c_werror_flag" ||
29641          test ! -s conftest.err
29642        } && test -s conftest.$ac_objext; then
29643   ac_lo=0 ac_mid=0
29644   while :; do
29645     cat >conftest.$ac_ext <<_ACEOF
29646 /* confdefs.h.  */
29647 _ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h.  */
29651 $ac_includes_default
29652    typedef long long int ac__type_sizeof_;
29653 int
29654 main ()
29655 {
29656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29657 test_array [0] = 0
29658
29659   ;
29660   return 0;
29661 }
29662 _ACEOF
29663 rm -f conftest.$ac_objext
29664 if { (ac_try="$ac_compile"
29665 case "(($ac_try" in
29666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667   *) ac_try_echo=$ac_try;;
29668 esac
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670   (eval "$ac_compile") 2>conftest.er1
29671   ac_status=$?
29672   grep -v '^ *+' conftest.er1 >conftest.err
29673   rm -f conftest.er1
29674   cat conftest.err >&5
29675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676   (exit $ac_status); } && {
29677          test -z "$ac_c_werror_flag" ||
29678          test ! -s conftest.err
29679        } && test -s conftest.$ac_objext; then
29680   ac_hi=$ac_mid; break
29681 else
29682   echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29684
29685         ac_lo=`expr $ac_mid + 1`
29686                         if test $ac_lo -le $ac_mid; then
29687                           ac_lo= ac_hi=
29688                           break
29689                         fi
29690                         ac_mid=`expr 2 '*' $ac_mid + 1`
29691 fi
29692
29693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29694   done
29695 else
29696   echo "$as_me: failed program was:" >&5
29697 sed 's/^/| /' conftest.$ac_ext >&5
29698
29699         cat >conftest.$ac_ext <<_ACEOF
29700 /* confdefs.h.  */
29701 _ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h.  */
29705 $ac_includes_default
29706    typedef long long int ac__type_sizeof_;
29707 int
29708 main ()
29709 {
29710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29711 test_array [0] = 0
29712
29713   ;
29714   return 0;
29715 }
29716 _ACEOF
29717 rm -f conftest.$ac_objext
29718 if { (ac_try="$ac_compile"
29719 case "(($ac_try" in
29720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29721   *) ac_try_echo=$ac_try;;
29722 esac
29723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29724   (eval "$ac_compile") 2>conftest.er1
29725   ac_status=$?
29726   grep -v '^ *+' conftest.er1 >conftest.err
29727   rm -f conftest.er1
29728   cat conftest.err >&5
29729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730   (exit $ac_status); } && {
29731          test -z "$ac_c_werror_flag" ||
29732          test ! -s conftest.err
29733        } && test -s conftest.$ac_objext; then
29734   ac_hi=-1 ac_mid=-1
29735   while :; do
29736     cat >conftest.$ac_ext <<_ACEOF
29737 /* confdefs.h.  */
29738 _ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h.  */
29742 $ac_includes_default
29743    typedef long long int ac__type_sizeof_;
29744 int
29745 main ()
29746 {
29747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29748 test_array [0] = 0
29749
29750   ;
29751   return 0;
29752 }
29753 _ACEOF
29754 rm -f conftest.$ac_objext
29755 if { (ac_try="$ac_compile"
29756 case "(($ac_try" in
29757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758   *) ac_try_echo=$ac_try;;
29759 esac
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761   (eval "$ac_compile") 2>conftest.er1
29762   ac_status=$?
29763   grep -v '^ *+' conftest.er1 >conftest.err
29764   rm -f conftest.er1
29765   cat conftest.err >&5
29766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767   (exit $ac_status); } && {
29768          test -z "$ac_c_werror_flag" ||
29769          test ! -s conftest.err
29770        } && test -s conftest.$ac_objext; then
29771   ac_lo=$ac_mid; break
29772 else
29773   echo "$as_me: failed program was:" >&5
29774 sed 's/^/| /' conftest.$ac_ext >&5
29775
29776         ac_hi=`expr '(' $ac_mid ')' - 1`
29777                         if test $ac_mid -le $ac_hi; then
29778                           ac_lo= ac_hi=
29779                           break
29780                         fi
29781                         ac_mid=`expr 2 '*' $ac_mid`
29782 fi
29783
29784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29785   done
29786 else
29787   echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29789
29790         ac_lo= ac_hi=
29791 fi
29792
29793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29794 fi
29795
29796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29797 # Binary search between lo and hi bounds.
29798 while test "x$ac_lo" != "x$ac_hi"; do
29799   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29800   cat >conftest.$ac_ext <<_ACEOF
29801 /* confdefs.h.  */
29802 _ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h.  */
29806 $ac_includes_default
29807    typedef long long int ac__type_sizeof_;
29808 int
29809 main ()
29810 {
29811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29812 test_array [0] = 0
29813
29814   ;
29815   return 0;
29816 }
29817 _ACEOF
29818 rm -f conftest.$ac_objext
29819 if { (ac_try="$ac_compile"
29820 case "(($ac_try" in
29821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822   *) ac_try_echo=$ac_try;;
29823 esac
29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825   (eval "$ac_compile") 2>conftest.er1
29826   ac_status=$?
29827   grep -v '^ *+' conftest.er1 >conftest.err
29828   rm -f conftest.er1
29829   cat conftest.err >&5
29830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831   (exit $ac_status); } && {
29832          test -z "$ac_c_werror_flag" ||
29833          test ! -s conftest.err
29834        } && test -s conftest.$ac_objext; then
29835   ac_hi=$ac_mid
29836 else
29837   echo "$as_me: failed program was:" >&5
29838 sed 's/^/| /' conftest.$ac_ext >&5
29839
29840         ac_lo=`expr '(' $ac_mid ')' + 1`
29841 fi
29842
29843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29844 done
29845 case $ac_lo in
29846 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
29847 '') if test "$ac_cv_type_long_long_int" = yes; then
29848      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
29849 See \`config.log' for more details." >&5
29850 echo "$as_me: error: cannot compute sizeof (long long int)
29851 See \`config.log' for more details." >&2;}
29852    { (exit 77); exit 77; }; }
29853    else
29854      ac_cv_sizeof_long_long_int=0
29855    fi ;;
29856 esac
29857 else
29858   cat >conftest.$ac_ext <<_ACEOF
29859 /* confdefs.h.  */
29860 _ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h.  */
29864 $ac_includes_default
29865    typedef long long int ac__type_sizeof_;
29866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29868 #include <stdio.h>
29869 #include <stdlib.h>
29870 int
29871 main ()
29872 {
29873
29874   FILE *f = fopen ("conftest.val", "w");
29875   if (! f)
29876     return 1;
29877   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29878     {
29879       long int i = longval ();
29880       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29881         return 1;
29882       fprintf (f, "%ld\n", i);
29883     }
29884   else
29885     {
29886       unsigned long int i = ulongval ();
29887       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29888         return 1;
29889       fprintf (f, "%lu\n", i);
29890     }
29891   return ferror (f) || fclose (f) != 0;
29892
29893   ;
29894   return 0;
29895 }
29896 _ACEOF
29897 rm -f conftest$ac_exeext
29898 if { (ac_try="$ac_link"
29899 case "(($ac_try" in
29900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29901   *) ac_try_echo=$ac_try;;
29902 esac
29903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29904   (eval "$ac_link") 2>&5
29905   ac_status=$?
29906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29908   { (case "(($ac_try" in
29909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29910   *) ac_try_echo=$ac_try;;
29911 esac
29912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29913   (eval "$ac_try") 2>&5
29914   ac_status=$?
29915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916   (exit $ac_status); }; }; then
29917   ac_cv_sizeof_long_long_int=`cat conftest.val`
29918 else
29919   echo "$as_me: program exited with status $ac_status" >&5
29920 echo "$as_me: failed program was:" >&5
29921 sed 's/^/| /' conftest.$ac_ext >&5
29922
29923 ( exit $ac_status )
29924 if test "$ac_cv_type_long_long_int" = yes; then
29925      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
29926 See \`config.log' for more details." >&5
29927 echo "$as_me: error: cannot compute sizeof (long long int)
29928 See \`config.log' for more details." >&2;}
29929    { (exit 77); exit 77; }; }
29930    else
29931      ac_cv_sizeof_long_long_int=0
29932    fi
29933 fi
29934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29935 fi
29936 rm -f conftest.val
29937 fi
29938 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
29939 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
29940
29941
29942
29943 cat >>confdefs.h <<_ACEOF
29944 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
29945 _ACEOF
29946
29947
29948 { echo "$as_me:$LINENO: checking for int *" >&5
29949 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
29950 if test "${ac_cv_type_int_p+set}" = set; then
29951   echo $ECHO_N "(cached) $ECHO_C" >&6
29952 else
29953   cat >conftest.$ac_ext <<_ACEOF
29954 /* confdefs.h.  */
29955 _ACEOF
29956 cat confdefs.h >>conftest.$ac_ext
29957 cat >>conftest.$ac_ext <<_ACEOF
29958 /* end confdefs.h.  */
29959 $ac_includes_default
29960 typedef int * ac__type_new_;
29961 int
29962 main ()
29963 {
29964 if ((ac__type_new_ *) 0)
29965   return 0;
29966 if (sizeof (ac__type_new_))
29967   return 0;
29968   ;
29969   return 0;
29970 }
29971 _ACEOF
29972 rm -f conftest.$ac_objext
29973 if { (ac_try="$ac_compile"
29974 case "(($ac_try" in
29975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976   *) ac_try_echo=$ac_try;;
29977 esac
29978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979   (eval "$ac_compile") 2>conftest.er1
29980   ac_status=$?
29981   grep -v '^ *+' conftest.er1 >conftest.err
29982   rm -f conftest.er1
29983   cat conftest.err >&5
29984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985   (exit $ac_status); } && {
29986          test -z "$ac_c_werror_flag" ||
29987          test ! -s conftest.err
29988        } && test -s conftest.$ac_objext; then
29989   ac_cv_type_int_p=yes
29990 else
29991   echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29993
29994         ac_cv_type_int_p=no
29995 fi
29996
29997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29998 fi
29999 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
30000 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
30001
30002 # The cast to long int works around a bug in the HP C Compiler
30003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30005 # This bug is HP SR number 8606223364.
30006 { echo "$as_me:$LINENO: checking size of int *" >&5
30007 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
30008 if test "${ac_cv_sizeof_int_p+set}" = set; then
30009   echo $ECHO_N "(cached) $ECHO_C" >&6
30010 else
30011   if test "$cross_compiling" = yes; then
30012   # Depending upon the size, compute the lo and hi bounds.
30013 cat >conftest.$ac_ext <<_ACEOF
30014 /* confdefs.h.  */
30015 _ACEOF
30016 cat confdefs.h >>conftest.$ac_ext
30017 cat >>conftest.$ac_ext <<_ACEOF
30018 /* end confdefs.h.  */
30019 $ac_includes_default
30020    typedef int * ac__type_sizeof_;
30021 int
30022 main ()
30023 {
30024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
30025 test_array [0] = 0
30026
30027   ;
30028   return 0;
30029 }
30030 _ACEOF
30031 rm -f conftest.$ac_objext
30032 if { (ac_try="$ac_compile"
30033 case "(($ac_try" in
30034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035   *) ac_try_echo=$ac_try;;
30036 esac
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038   (eval "$ac_compile") 2>conftest.er1
30039   ac_status=$?
30040   grep -v '^ *+' conftest.er1 >conftest.err
30041   rm -f conftest.er1
30042   cat conftest.err >&5
30043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044   (exit $ac_status); } && {
30045          test -z "$ac_c_werror_flag" ||
30046          test ! -s conftest.err
30047        } && test -s conftest.$ac_objext; then
30048   ac_lo=0 ac_mid=0
30049   while :; do
30050     cat >conftest.$ac_ext <<_ACEOF
30051 /* confdefs.h.  */
30052 _ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h.  */
30056 $ac_includes_default
30057    typedef int * ac__type_sizeof_;
30058 int
30059 main ()
30060 {
30061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30062 test_array [0] = 0
30063
30064   ;
30065   return 0;
30066 }
30067 _ACEOF
30068 rm -f conftest.$ac_objext
30069 if { (ac_try="$ac_compile"
30070 case "(($ac_try" in
30071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072   *) ac_try_echo=$ac_try;;
30073 esac
30074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075   (eval "$ac_compile") 2>conftest.er1
30076   ac_status=$?
30077   grep -v '^ *+' conftest.er1 >conftest.err
30078   rm -f conftest.er1
30079   cat conftest.err >&5
30080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081   (exit $ac_status); } && {
30082          test -z "$ac_c_werror_flag" ||
30083          test ! -s conftest.err
30084        } && test -s conftest.$ac_objext; then
30085   ac_hi=$ac_mid; break
30086 else
30087   echo "$as_me: failed program was:" >&5
30088 sed 's/^/| /' conftest.$ac_ext >&5
30089
30090         ac_lo=`expr $ac_mid + 1`
30091                         if test $ac_lo -le $ac_mid; then
30092                           ac_lo= ac_hi=
30093                           break
30094                         fi
30095                         ac_mid=`expr 2 '*' $ac_mid + 1`
30096 fi
30097
30098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30099   done
30100 else
30101   echo "$as_me: failed program was:" >&5
30102 sed 's/^/| /' conftest.$ac_ext >&5
30103
30104         cat >conftest.$ac_ext <<_ACEOF
30105 /* confdefs.h.  */
30106 _ACEOF
30107 cat confdefs.h >>conftest.$ac_ext
30108 cat >>conftest.$ac_ext <<_ACEOF
30109 /* end confdefs.h.  */
30110 $ac_includes_default
30111    typedef int * ac__type_sizeof_;
30112 int
30113 main ()
30114 {
30115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30116 test_array [0] = 0
30117
30118   ;
30119   return 0;
30120 }
30121 _ACEOF
30122 rm -f conftest.$ac_objext
30123 if { (ac_try="$ac_compile"
30124 case "(($ac_try" in
30125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126   *) ac_try_echo=$ac_try;;
30127 esac
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129   (eval "$ac_compile") 2>conftest.er1
30130   ac_status=$?
30131   grep -v '^ *+' conftest.er1 >conftest.err
30132   rm -f conftest.er1
30133   cat conftest.err >&5
30134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135   (exit $ac_status); } && {
30136          test -z "$ac_c_werror_flag" ||
30137          test ! -s conftest.err
30138        } && test -s conftest.$ac_objext; then
30139   ac_hi=-1 ac_mid=-1
30140   while :; do
30141     cat >conftest.$ac_ext <<_ACEOF
30142 /* confdefs.h.  */
30143 _ACEOF
30144 cat confdefs.h >>conftest.$ac_ext
30145 cat >>conftest.$ac_ext <<_ACEOF
30146 /* end confdefs.h.  */
30147 $ac_includes_default
30148    typedef int * ac__type_sizeof_;
30149 int
30150 main ()
30151 {
30152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30153 test_array [0] = 0
30154
30155   ;
30156   return 0;
30157 }
30158 _ACEOF
30159 rm -f conftest.$ac_objext
30160 if { (ac_try="$ac_compile"
30161 case "(($ac_try" in
30162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163   *) ac_try_echo=$ac_try;;
30164 esac
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166   (eval "$ac_compile") 2>conftest.er1
30167   ac_status=$?
30168   grep -v '^ *+' conftest.er1 >conftest.err
30169   rm -f conftest.er1
30170   cat conftest.err >&5
30171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172   (exit $ac_status); } && {
30173          test -z "$ac_c_werror_flag" ||
30174          test ! -s conftest.err
30175        } && test -s conftest.$ac_objext; then
30176   ac_lo=$ac_mid; break
30177 else
30178   echo "$as_me: failed program was:" >&5
30179 sed 's/^/| /' conftest.$ac_ext >&5
30180
30181         ac_hi=`expr '(' $ac_mid ')' - 1`
30182                         if test $ac_mid -le $ac_hi; then
30183                           ac_lo= ac_hi=
30184                           break
30185                         fi
30186                         ac_mid=`expr 2 '*' $ac_mid`
30187 fi
30188
30189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30190   done
30191 else
30192   echo "$as_me: failed program was:" >&5
30193 sed 's/^/| /' conftest.$ac_ext >&5
30194
30195         ac_lo= ac_hi=
30196 fi
30197
30198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30199 fi
30200
30201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30202 # Binary search between lo and hi bounds.
30203 while test "x$ac_lo" != "x$ac_hi"; do
30204   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30205   cat >conftest.$ac_ext <<_ACEOF
30206 /* confdefs.h.  */
30207 _ACEOF
30208 cat confdefs.h >>conftest.$ac_ext
30209 cat >>conftest.$ac_ext <<_ACEOF
30210 /* end confdefs.h.  */
30211 $ac_includes_default
30212    typedef int * ac__type_sizeof_;
30213 int
30214 main ()
30215 {
30216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30217 test_array [0] = 0
30218
30219   ;
30220   return 0;
30221 }
30222 _ACEOF
30223 rm -f conftest.$ac_objext
30224 if { (ac_try="$ac_compile"
30225 case "(($ac_try" in
30226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30227   *) ac_try_echo=$ac_try;;
30228 esac
30229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30230   (eval "$ac_compile") 2>conftest.er1
30231   ac_status=$?
30232   grep -v '^ *+' conftest.er1 >conftest.err
30233   rm -f conftest.er1
30234   cat conftest.err >&5
30235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236   (exit $ac_status); } && {
30237          test -z "$ac_c_werror_flag" ||
30238          test ! -s conftest.err
30239        } && test -s conftest.$ac_objext; then
30240   ac_hi=$ac_mid
30241 else
30242   echo "$as_me: failed program was:" >&5
30243 sed 's/^/| /' conftest.$ac_ext >&5
30244
30245         ac_lo=`expr '(' $ac_mid ')' + 1`
30246 fi
30247
30248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30249 done
30250 case $ac_lo in
30251 ?*) ac_cv_sizeof_int_p=$ac_lo;;
30252 '') if test "$ac_cv_type_int_p" = yes; then
30253      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
30254 See \`config.log' for more details." >&5
30255 echo "$as_me: error: cannot compute sizeof (int *)
30256 See \`config.log' for more details." >&2;}
30257    { (exit 77); exit 77; }; }
30258    else
30259      ac_cv_sizeof_int_p=0
30260    fi ;;
30261 esac
30262 else
30263   cat >conftest.$ac_ext <<_ACEOF
30264 /* confdefs.h.  */
30265 _ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h.  */
30269 $ac_includes_default
30270    typedef int * ac__type_sizeof_;
30271 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30272 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30273 #include <stdio.h>
30274 #include <stdlib.h>
30275 int
30276 main ()
30277 {
30278
30279   FILE *f = fopen ("conftest.val", "w");
30280   if (! f)
30281     return 1;
30282   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30283     {
30284       long int i = longval ();
30285       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30286         return 1;
30287       fprintf (f, "%ld\n", i);
30288     }
30289   else
30290     {
30291       unsigned long int i = ulongval ();
30292       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30293         return 1;
30294       fprintf (f, "%lu\n", i);
30295     }
30296   return ferror (f) || fclose (f) != 0;
30297
30298   ;
30299   return 0;
30300 }
30301 _ACEOF
30302 rm -f conftest$ac_exeext
30303 if { (ac_try="$ac_link"
30304 case "(($ac_try" in
30305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30306   *) ac_try_echo=$ac_try;;
30307 esac
30308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30309   (eval "$ac_link") 2>&5
30310   ac_status=$?
30311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30313   { (case "(($ac_try" in
30314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30315   *) ac_try_echo=$ac_try;;
30316 esac
30317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30318   (eval "$ac_try") 2>&5
30319   ac_status=$?
30320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321   (exit $ac_status); }; }; then
30322   ac_cv_sizeof_int_p=`cat conftest.val`
30323 else
30324   echo "$as_me: program exited with status $ac_status" >&5
30325 echo "$as_me: failed program was:" >&5
30326 sed 's/^/| /' conftest.$ac_ext >&5
30327
30328 ( exit $ac_status )
30329 if test "$ac_cv_type_int_p" = yes; then
30330      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
30331 See \`config.log' for more details." >&5
30332 echo "$as_me: error: cannot compute sizeof (int *)
30333 See \`config.log' for more details." >&2;}
30334    { (exit 77); exit 77; }; }
30335    else
30336      ac_cv_sizeof_int_p=0
30337    fi
30338 fi
30339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30340 fi
30341 rm -f conftest.val
30342 fi
30343 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
30344 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
30345
30346
30347
30348 cat >>confdefs.h <<_ACEOF
30349 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
30350 _ACEOF
30351
30352
30353
30354 # Check for sys/types.h types
30355 { echo "$as_me:$LINENO: checking for u_int type" >&5
30356 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
30357 if test "${ac_cv_have_u_int+set}" = set; then
30358   echo $ECHO_N "(cached) $ECHO_C" >&6
30359 else
30360
30361     cat >conftest.$ac_ext <<_ACEOF
30362 /* confdefs.h.  */
30363 _ACEOF
30364 cat confdefs.h >>conftest.$ac_ext
30365 cat >>conftest.$ac_ext <<_ACEOF
30366 /* end confdefs.h.  */
30367  #include <sys/types.h>
30368 int
30369 main ()
30370 {
30371  u_int a; a = 1;
30372   ;
30373   return 0;
30374 }
30375 _ACEOF
30376 rm -f conftest.$ac_objext
30377 if { (ac_try="$ac_compile"
30378 case "(($ac_try" in
30379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380   *) ac_try_echo=$ac_try;;
30381 esac
30382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383   (eval "$ac_compile") 2>conftest.er1
30384   ac_status=$?
30385   grep -v '^ *+' conftest.er1 >conftest.err
30386   rm -f conftest.er1
30387   cat conftest.err >&5
30388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30389   (exit $ac_status); } && {
30390          test -z "$ac_c_werror_flag" ||
30391          test ! -s conftest.err
30392        } && test -s conftest.$ac_objext; then
30393    ac_cv_have_u_int="yes"
30394 else
30395   echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30397
30398          ac_cv_have_u_int="no"
30399
30400 fi
30401
30402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30403
30404 fi
30405 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
30406 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
30407 if test "x$ac_cv_have_u_int" = "xyes" ; then
30408    cat >>confdefs.h <<\_ACEOF
30409 #define HAVE_U_INT 1
30410 _ACEOF
30411
30412    have_u_int=1
30413 fi
30414
30415 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
30416 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
30417 if test "${ac_cv_have_intmax_t+set}" = set; then
30418   echo $ECHO_N "(cached) $ECHO_C" >&6
30419 else
30420
30421    cat >conftest.$ac_ext <<_ACEOF
30422 /* confdefs.h.  */
30423 _ACEOF
30424 cat confdefs.h >>conftest.$ac_ext
30425 cat >>conftest.$ac_ext <<_ACEOF
30426 /* end confdefs.h.  */
30427  #include <sys/types.h>
30428 int
30429 main ()
30430 {
30431  intmax_t a; a = 1;
30432   ;
30433   return 0;
30434 }
30435 _ACEOF
30436 rm -f conftest.$ac_objext
30437 if { (ac_try="$ac_compile"
30438 case "(($ac_try" in
30439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30440   *) ac_try_echo=$ac_try;;
30441 esac
30442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30443   (eval "$ac_compile") 2>conftest.er1
30444   ac_status=$?
30445   grep -v '^ *+' conftest.er1 >conftest.err
30446   rm -f conftest.er1
30447   cat conftest.err >&5
30448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449   (exit $ac_status); } && {
30450          test -z "$ac_c_werror_flag" ||
30451          test ! -s conftest.err
30452        } && test -s conftest.$ac_objext; then
30453    ac_cv_have_intmax_t="yes"
30454 else
30455   echo "$as_me: failed program was:" >&5
30456 sed 's/^/| /' conftest.$ac_ext >&5
30457
30458
30459          cat >conftest.$ac_ext <<_ACEOF
30460 /* confdefs.h.  */
30461 _ACEOF
30462 cat confdefs.h >>conftest.$ac_ext
30463 cat >>conftest.$ac_ext <<_ACEOF
30464 /* end confdefs.h.  */
30465  #include <stdint.h>
30466 int
30467 main ()
30468 {
30469  intmax_t a; a = 1;
30470   ;
30471   return 0;
30472 }
30473 _ACEOF
30474 rm -f conftest.$ac_objext
30475 if { (ac_try="$ac_compile"
30476 case "(($ac_try" in
30477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478   *) ac_try_echo=$ac_try;;
30479 esac
30480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481   (eval "$ac_compile") 2>conftest.er1
30482   ac_status=$?
30483   grep -v '^ *+' conftest.er1 >conftest.err
30484   rm -f conftest.er1
30485   cat conftest.err >&5
30486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487   (exit $ac_status); } && {
30488          test -z "$ac_c_werror_flag" ||
30489          test ! -s conftest.err
30490        } && test -s conftest.$ac_objext; then
30491    ac_cv_have_intmax_t="yes"
30492 else
30493   echo "$as_me: failed program was:" >&5
30494 sed 's/^/| /' conftest.$ac_ext >&5
30495
30496          ac_cv_have_intmax_t="no"
30497
30498 fi
30499
30500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30501
30502
30503 fi
30504
30505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30506
30507
30508 fi
30509 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
30510 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
30511 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
30512    cat >>confdefs.h <<\_ACEOF
30513 #define HAVE_INTMAX_T 1
30514 _ACEOF
30515
30516    have_intmax_t=1
30517 fi
30518
30519
30520 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
30521 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
30522 if test "${ac_cv_have_u_intmax_t+set}" = set; then
30523   echo $ECHO_N "(cached) $ECHO_C" >&6
30524 else
30525
30526    cat >conftest.$ac_ext <<_ACEOF
30527 /* confdefs.h.  */
30528 _ACEOF
30529 cat confdefs.h >>conftest.$ac_ext
30530 cat >>conftest.$ac_ext <<_ACEOF
30531 /* end confdefs.h.  */
30532  #include <sys/types.h>
30533 int
30534 main ()
30535 {
30536  u_intmax_t a; a = 1;
30537   ;
30538   return 0;
30539 }
30540 _ACEOF
30541 rm -f conftest.$ac_objext
30542 if { (ac_try="$ac_compile"
30543 case "(($ac_try" in
30544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30545   *) ac_try_echo=$ac_try;;
30546 esac
30547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30548   (eval "$ac_compile") 2>conftest.er1
30549   ac_status=$?
30550   grep -v '^ *+' conftest.er1 >conftest.err
30551   rm -f conftest.er1
30552   cat conftest.err >&5
30553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554   (exit $ac_status); } && {
30555          test -z "$ac_c_werror_flag" ||
30556          test ! -s conftest.err
30557        } && test -s conftest.$ac_objext; then
30558    ac_cv_have_u_intmax_t="yes"
30559 else
30560   echo "$as_me: failed program was:" >&5
30561 sed 's/^/| /' conftest.$ac_ext >&5
30562
30563
30564          cat >conftest.$ac_ext <<_ACEOF
30565 /* confdefs.h.  */
30566 _ACEOF
30567 cat confdefs.h >>conftest.$ac_ext
30568 cat >>conftest.$ac_ext <<_ACEOF
30569 /* end confdefs.h.  */
30570  #include <stdint.h>
30571 int
30572 main ()
30573 {
30574  u_intmax_t a; a = 1;
30575   ;
30576   return 0;
30577 }
30578 _ACEOF
30579 rm -f conftest.$ac_objext
30580 if { (ac_try="$ac_compile"
30581 case "(($ac_try" in
30582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30583   *) ac_try_echo=$ac_try;;
30584 esac
30585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30586   (eval "$ac_compile") 2>conftest.er1
30587   ac_status=$?
30588   grep -v '^ *+' conftest.er1 >conftest.err
30589   rm -f conftest.er1
30590   cat conftest.err >&5
30591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592   (exit $ac_status); } && {
30593          test -z "$ac_c_werror_flag" ||
30594          test ! -s conftest.err
30595        } && test -s conftest.$ac_objext; then
30596    ac_cv_have_u_intmax_t="yes"
30597 else
30598   echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.$ac_ext >&5
30600
30601          ac_cv_have_u_intmax_t="no"
30602
30603 fi
30604
30605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30606
30607
30608 fi
30609
30610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30611
30612 fi
30613 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
30614 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
30615 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
30616    cat >>confdefs.h <<\_ACEOF
30617 #define HAVE_U_INTMAX_T 1
30618 _ACEOF
30619
30620    have_u_intmax_t=1
30621 fi
30622
30623
30624 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
30625 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
30626 if test "${ac_cv_have_intxx_t+set}" = set; then
30627   echo $ECHO_N "(cached) $ECHO_C" >&6
30628 else
30629
30630    cat >conftest.$ac_ext <<_ACEOF
30631 /* confdefs.h.  */
30632 _ACEOF
30633 cat confdefs.h >>conftest.$ac_ext
30634 cat >>conftest.$ac_ext <<_ACEOF
30635 /* end confdefs.h.  */
30636  #include <sys/types.h>
30637 int
30638 main ()
30639 {
30640  int8_t a; int16_t b; int32_t c; a = b = c = 1;
30641   ;
30642   return 0;
30643 }
30644 _ACEOF
30645 rm -f conftest.$ac_objext
30646 if { (ac_try="$ac_compile"
30647 case "(($ac_try" in
30648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30649   *) ac_try_echo=$ac_try;;
30650 esac
30651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30652   (eval "$ac_compile") 2>conftest.er1
30653   ac_status=$?
30654   grep -v '^ *+' conftest.er1 >conftest.err
30655   rm -f conftest.er1
30656   cat conftest.err >&5
30657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658   (exit $ac_status); } && {
30659          test -z "$ac_c_werror_flag" ||
30660          test ! -s conftest.err
30661        } && test -s conftest.$ac_objext; then
30662    ac_cv_have_intxx_t="yes"
30663 else
30664   echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30666
30667          ac_cv_have_intxx_t="no"
30668
30669 fi
30670
30671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30672
30673 fi
30674 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
30675 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
30676 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
30677    cat >>confdefs.h <<\_ACEOF
30678 #define HAVE_INTXX_T 1
30679 _ACEOF
30680
30681    have_intxx_t=1
30682 fi
30683
30684 { echo "$as_me:$LINENO: checking for int64_t type" >&5
30685 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
30686 if test "${ac_cv_have_int64_t+set}" = set; then
30687   echo $ECHO_N "(cached) $ECHO_C" >&6
30688 else
30689
30690    cat >conftest.$ac_ext <<_ACEOF
30691 /* confdefs.h.  */
30692 _ACEOF
30693 cat confdefs.h >>conftest.$ac_ext
30694 cat >>conftest.$ac_ext <<_ACEOF
30695 /* end confdefs.h.  */
30696  #include <sys/types.h>
30697 int
30698 main ()
30699 {
30700  int64_t a; a = 1;
30701   ;
30702   return 0;
30703 }
30704 _ACEOF
30705 rm -f conftest.$ac_objext
30706 if { (ac_try="$ac_compile"
30707 case "(($ac_try" in
30708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709   *) ac_try_echo=$ac_try;;
30710 esac
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712   (eval "$ac_compile") 2>conftest.er1
30713   ac_status=$?
30714   grep -v '^ *+' conftest.er1 >conftest.err
30715   rm -f conftest.er1
30716   cat conftest.err >&5
30717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718   (exit $ac_status); } && {
30719          test -z "$ac_c_werror_flag" ||
30720          test ! -s conftest.err
30721        } && test -s conftest.$ac_objext; then
30722    ac_cv_have_int64_t="yes"
30723 else
30724   echo "$as_me: failed program was:" >&5
30725 sed 's/^/| /' conftest.$ac_ext >&5
30726
30727          ac_cv_have_int64_t="no"
30728
30729 fi
30730
30731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30732
30733 fi
30734 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
30735 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
30736 if test "x$ac_cv_have_int64_t" = "xyes" ; then
30737    cat >>confdefs.h <<\_ACEOF
30738 #define HAVE_INT64_T 1
30739 _ACEOF
30740
30741    have_int64_t=1
30742 fi
30743
30744 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
30745 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
30746 if test "${ac_cv_have_u_intxx_t+set}" = set; then
30747   echo $ECHO_N "(cached) $ECHO_C" >&6
30748 else
30749
30750    cat >conftest.$ac_ext <<_ACEOF
30751 /* confdefs.h.  */
30752 _ACEOF
30753 cat confdefs.h >>conftest.$ac_ext
30754 cat >>conftest.$ac_ext <<_ACEOF
30755 /* end confdefs.h.  */
30756  #include <sys/types.h>
30757 int
30758 main ()
30759 {
30760  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
30761   ;
30762   return 0;
30763 }
30764 _ACEOF
30765 rm -f conftest.$ac_objext
30766 if { (ac_try="$ac_compile"
30767 case "(($ac_try" in
30768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769   *) ac_try_echo=$ac_try;;
30770 esac
30771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772   (eval "$ac_compile") 2>conftest.er1
30773   ac_status=$?
30774   grep -v '^ *+' conftest.er1 >conftest.err
30775   rm -f conftest.er1
30776   cat conftest.err >&5
30777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778   (exit $ac_status); } && {
30779          test -z "$ac_c_werror_flag" ||
30780          test ! -s conftest.err
30781        } && test -s conftest.$ac_objext; then
30782    ac_cv_have_u_intxx_t="yes"
30783 else
30784   echo "$as_me: failed program was:" >&5
30785 sed 's/^/| /' conftest.$ac_ext >&5
30786
30787          ac_cv_have_u_intxx_t="no"
30788
30789 fi
30790
30791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30792
30793 fi
30794 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
30795 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
30796 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
30797    cat >>confdefs.h <<\_ACEOF
30798 #define HAVE_U_INTXX_T 1
30799 _ACEOF
30800
30801    have_u_intxx_t=1
30802 fi
30803
30804 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
30805 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
30806 if test "${ac_cv_have_u_int64_t+set}" = set; then
30807   echo $ECHO_N "(cached) $ECHO_C" >&6
30808 else
30809
30810    cat >conftest.$ac_ext <<_ACEOF
30811 /* confdefs.h.  */
30812 _ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h.  */
30816  #include <sys/types.h>
30817 int
30818 main ()
30819 {
30820  u_int64_t a; a = 1;
30821   ;
30822   return 0;
30823 }
30824 _ACEOF
30825 rm -f conftest.$ac_objext
30826 if { (ac_try="$ac_compile"
30827 case "(($ac_try" in
30828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30829   *) ac_try_echo=$ac_try;;
30830 esac
30831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30832   (eval "$ac_compile") 2>conftest.er1
30833   ac_status=$?
30834   grep -v '^ *+' conftest.er1 >conftest.err
30835   rm -f conftest.er1
30836   cat conftest.err >&5
30837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838   (exit $ac_status); } && {
30839          test -z "$ac_c_werror_flag" ||
30840          test ! -s conftest.err
30841        } && test -s conftest.$ac_objext; then
30842    ac_cv_have_u_int64_t="yes"
30843 else
30844   echo "$as_me: failed program was:" >&5
30845 sed 's/^/| /' conftest.$ac_ext >&5
30846
30847          ac_cv_have_u_int64_t="no"
30848
30849 fi
30850
30851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30852
30853 fi
30854 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
30855 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
30856 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
30857    cat >>confdefs.h <<\_ACEOF
30858 #define HAVE_U_INT64_T 1
30859 _ACEOF
30860
30861    have_u_int64_t=1
30862 fi
30863
30864 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
30865            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30866 then
30867    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
30868 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
30869    cat >conftest.$ac_ext <<_ACEOF
30870 /* confdefs.h.  */
30871 _ACEOF
30872 cat confdefs.h >>conftest.$ac_ext
30873 cat >>conftest.$ac_ext <<_ACEOF
30874 /* end confdefs.h.  */
30875  #include <sys/bitypes.h>
30876 int
30877 main ()
30878 {
30879  int8_t a; int16_t b; int32_t c;
30880         u_int8_t e; u_int16_t f; u_int32_t g;
30881         a = b = c = e = f = g = 1;
30882   ;
30883   return 0;
30884 }
30885 _ACEOF
30886 rm -f conftest.$ac_objext
30887 if { (ac_try="$ac_compile"
30888 case "(($ac_try" in
30889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890   *) ac_try_echo=$ac_try;;
30891 esac
30892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893   (eval "$ac_compile") 2>conftest.er1
30894   ac_status=$?
30895   grep -v '^ *+' conftest.er1 >conftest.err
30896   rm -f conftest.er1
30897   cat conftest.err >&5
30898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899   (exit $ac_status); } && {
30900          test -z "$ac_c_werror_flag" ||
30901          test ! -s conftest.err
30902        } && test -s conftest.$ac_objext; then
30903    cat >>confdefs.h <<\_ACEOF
30904 #define HAVE_U_INTXX_T 1
30905 _ACEOF
30906
30907         cat >>confdefs.h <<\_ACEOF
30908 #define HAVE_INTXX_T 1
30909 _ACEOF
30910
30911         cat >>confdefs.h <<\_ACEOF
30912 #define HAVE_SYS_BITYPES_H 1
30913 _ACEOF
30914
30915         { echo "$as_me:$LINENO: result: yes" >&5
30916 echo "${ECHO_T}yes" >&6; }
30917 else
30918   echo "$as_me: failed program was:" >&5
30919 sed 's/^/| /' conftest.$ac_ext >&5
30920
30921          { echo "$as_me:$LINENO: result: no" >&5
30922 echo "${ECHO_T}no" >&6; }
30923
30924 fi
30925
30926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30927 fi
30928
30929 if test -z "$have_u_intxx_t" ; then
30930    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
30931 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
30932 if test "${ac_cv_have_uintxx_t+set}" = set; then
30933   echo $ECHO_N "(cached) $ECHO_C" >&6
30934 else
30935
30936       cat >conftest.$ac_ext <<_ACEOF
30937 /* confdefs.h.  */
30938 _ACEOF
30939 cat confdefs.h >>conftest.$ac_ext
30940 cat >>conftest.$ac_ext <<_ACEOF
30941 /* end confdefs.h.  */
30942  #include <sys/types.h>
30943 int
30944 main ()
30945 {
30946  uint8_t a; uint16_t b;
30947            uint32_t c; a = b = c = 1;
30948   ;
30949   return 0;
30950 }
30951 _ACEOF
30952 rm -f conftest.$ac_objext
30953 if { (ac_try="$ac_compile"
30954 case "(($ac_try" in
30955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30956   *) ac_try_echo=$ac_try;;
30957 esac
30958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30959   (eval "$ac_compile") 2>conftest.er1
30960   ac_status=$?
30961   grep -v '^ *+' conftest.er1 >conftest.err
30962   rm -f conftest.er1
30963   cat conftest.err >&5
30964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965   (exit $ac_status); } && {
30966          test -z "$ac_c_werror_flag" ||
30967          test ! -s conftest.err
30968        } && test -s conftest.$ac_objext; then
30969    ac_cv_have_uintxx_t="yes"
30970 else
30971   echo "$as_me: failed program was:" >&5
30972 sed 's/^/| /' conftest.$ac_ext >&5
30973
30974          ac_cv_have_uintxx_t="no"
30975
30976 fi
30977
30978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30979
30980 fi
30981 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
30982 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
30983    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
30984       cat >>confdefs.h <<\_ACEOF
30985 #define HAVE_UINTXX_T 1
30986 _ACEOF
30987
30988    fi
30989 fi
30990
30991 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
30992           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30993 then
30994    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
30995 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
30996    cat >conftest.$ac_ext <<_ACEOF
30997 /* confdefs.h.  */
30998 _ACEOF
30999 cat confdefs.h >>conftest.$ac_ext
31000 cat >>conftest.$ac_ext <<_ACEOF
31001 /* end confdefs.h.  */
31002  #include <sys/bitypes.h>
31003 int
31004 main ()
31005 {
31006  int64_t a; u_int64_t b;
31007        a = b = 1;
31008   ;
31009   return 0;
31010 }
31011 _ACEOF
31012 rm -f conftest.$ac_objext
31013 if { (ac_try="$ac_compile"
31014 case "(($ac_try" in
31015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016   *) ac_try_echo=$ac_try;;
31017 esac
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019   (eval "$ac_compile") 2>conftest.er1
31020   ac_status=$?
31021   grep -v '^ *+' conftest.er1 >conftest.err
31022   rm -f conftest.er1
31023   cat conftest.err >&5
31024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025   (exit $ac_status); } && {
31026          test -z "$ac_c_werror_flag" ||
31027          test ! -s conftest.err
31028        } && test -s conftest.$ac_objext; then
31029    cat >>confdefs.h <<\_ACEOF
31030 #define HAVE_U_INT64_T 1
31031 _ACEOF
31032
31033        cat >>confdefs.h <<\_ACEOF
31034 #define HAVE_INT64_T 1
31035 _ACEOF
31036
31037        { echo "$as_me:$LINENO: result: yes" >&5
31038 echo "${ECHO_T}yes" >&6; }
31039 else
31040   echo "$as_me: failed program was:" >&5
31041 sed 's/^/| /' conftest.$ac_ext >&5
31042
31043          { echo "$as_me:$LINENO: result: no" >&5
31044 echo "${ECHO_T}no" >&6; }
31045
31046 fi
31047
31048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31049 fi
31050
31051 if (test -z "$have_uintxx_t" && \
31052           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
31053 then
31054    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
31055 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
31056    cat >conftest.$ac_ext <<_ACEOF
31057 /* confdefs.h.  */
31058 _ACEOF
31059 cat confdefs.h >>conftest.$ac_ext
31060 cat >>conftest.$ac_ext <<_ACEOF
31061 /* end confdefs.h.  */
31062  #include <sys/bitypes.h>
31063 int
31064 main ()
31065 {
31066  uint8_t a; uint16_t b;
31067           uint32_t c; a = b = c = 1;
31068   ;
31069   return 0;
31070 }
31071 _ACEOF
31072 rm -f conftest.$ac_objext
31073 if { (ac_try="$ac_compile"
31074 case "(($ac_try" in
31075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076   *) ac_try_echo=$ac_try;;
31077 esac
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079   (eval "$ac_compile") 2>conftest.er1
31080   ac_status=$?
31081   grep -v '^ *+' conftest.er1 >conftest.err
31082   rm -f conftest.er1
31083   cat conftest.err >&5
31084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085   (exit $ac_status); } && {
31086          test -z "$ac_c_werror_flag" ||
31087          test ! -s conftest.err
31088        } && test -s conftest.$ac_objext; then
31089    cat >>confdefs.h <<\_ACEOF
31090 #define HAVE_UINTXX_T 1
31091 _ACEOF
31092
31093        { echo "$as_me:$LINENO: result: yes" >&5
31094 echo "${ECHO_T}yes" >&6; }
31095 else
31096   echo "$as_me: failed program was:" >&5
31097 sed 's/^/| /' conftest.$ac_ext >&5
31098
31099          { echo "$as_me:$LINENO: result: no" >&5
31100 echo "${ECHO_T}no" >&6; }
31101
31102 fi
31103
31104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31105
31106 fi
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122
31123
31124 for ac_func in \
31125         fork \
31126         getcwd \
31127         gethostname \
31128         getpid \
31129         gettimeofday \
31130         setpgid \
31131         setpgrp \
31132         setsid \
31133         signal \
31134         strerror \
31135         strncmp \
31136         strncpy \
31137         vfprintf \
31138
31139 do
31140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31144   echo $ECHO_N "(cached) $ECHO_C" >&6
31145 else
31146   cat >conftest.$ac_ext <<_ACEOF
31147 /* confdefs.h.  */
31148 _ACEOF
31149 cat confdefs.h >>conftest.$ac_ext
31150 cat >>conftest.$ac_ext <<_ACEOF
31151 /* end confdefs.h.  */
31152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31154 #define $ac_func innocuous_$ac_func
31155
31156 /* System header to define __stub macros and hopefully few prototypes,
31157     which can conflict with char $ac_func (); below.
31158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31159     <limits.h> exists even on freestanding compilers.  */
31160
31161 #ifdef __STDC__
31162 # include <limits.h>
31163 #else
31164 # include <assert.h>
31165 #endif
31166
31167 #undef $ac_func
31168
31169 /* Override any GCC internal prototype to avoid an error.
31170    Use char because int might match the return type of a GCC
31171    builtin and then its argument prototype would still apply.  */
31172 #ifdef __cplusplus
31173 extern "C"
31174 #endif
31175 char $ac_func ();
31176 /* The GNU C library defines this for functions which it implements
31177     to always fail with ENOSYS.  Some functions are actually named
31178     something starting with __ and the normal name is an alias.  */
31179 #if defined __stub_$ac_func || defined __stub___$ac_func
31180 choke me
31181 #endif
31182
31183 int
31184 main ()
31185 {
31186 return $ac_func ();
31187   ;
31188   return 0;
31189 }
31190 _ACEOF
31191 rm -f conftest.$ac_objext conftest$ac_exeext
31192 if { (ac_try="$ac_link"
31193 case "(($ac_try" in
31194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31195   *) ac_try_echo=$ac_try;;
31196 esac
31197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31198   (eval "$ac_link") 2>conftest.er1
31199   ac_status=$?
31200   grep -v '^ *+' conftest.er1 >conftest.err
31201   rm -f conftest.er1
31202   cat conftest.err >&5
31203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31204   (exit $ac_status); } && {
31205          test -z "$ac_c_werror_flag" ||
31206          test ! -s conftest.err
31207        } && test -s conftest$ac_exeext &&
31208        $as_test_x conftest$ac_exeext; then
31209   eval "$as_ac_var=yes"
31210 else
31211   echo "$as_me: failed program was:" >&5
31212 sed 's/^/| /' conftest.$ac_ext >&5
31213
31214         eval "$as_ac_var=no"
31215 fi
31216
31217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31218       conftest$ac_exeext conftest.$ac_ext
31219 fi
31220 ac_res=`eval echo '${'$as_ac_var'}'`
31221                { echo "$as_me:$LINENO: result: $ac_res" >&5
31222 echo "${ECHO_T}$ac_res" >&6; }
31223 if test `eval echo '${'$as_ac_var'}'` = yes; then
31224   cat >>confdefs.h <<_ACEOF
31225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31226 _ACEOF
31227
31228 else
31229   echo 'configure: cannot find needed function.'; exit 1
31230
31231 fi
31232 done
31233
31234
31235
31236 for ac_func in fchdir
31237 do
31238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31242   echo $ECHO_N "(cached) $ECHO_C" >&6
31243 else
31244   cat >conftest.$ac_ext <<_ACEOF
31245 /* confdefs.h.  */
31246 _ACEOF
31247 cat confdefs.h >>conftest.$ac_ext
31248 cat >>conftest.$ac_ext <<_ACEOF
31249 /* end confdefs.h.  */
31250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31252 #define $ac_func innocuous_$ac_func
31253
31254 /* System header to define __stub macros and hopefully few prototypes,
31255     which can conflict with char $ac_func (); below.
31256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31257     <limits.h> exists even on freestanding compilers.  */
31258
31259 #ifdef __STDC__
31260 # include <limits.h>
31261 #else
31262 # include <assert.h>
31263 #endif
31264
31265 #undef $ac_func
31266
31267 /* Override any GCC internal prototype to avoid an error.
31268    Use char because int might match the return type of a GCC
31269    builtin and then its argument prototype would still apply.  */
31270 #ifdef __cplusplus
31271 extern "C"
31272 #endif
31273 char $ac_func ();
31274 /* The GNU C library defines this for functions which it implements
31275     to always fail with ENOSYS.  Some functions are actually named
31276     something starting with __ and the normal name is an alias.  */
31277 #if defined __stub_$ac_func || defined __stub___$ac_func
31278 choke me
31279 #endif
31280
31281 int
31282 main ()
31283 {
31284 return $ac_func ();
31285   ;
31286   return 0;
31287 }
31288 _ACEOF
31289 rm -f conftest.$ac_objext conftest$ac_exeext
31290 if { (ac_try="$ac_link"
31291 case "(($ac_try" in
31292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293   *) ac_try_echo=$ac_try;;
31294 esac
31295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296   (eval "$ac_link") 2>conftest.er1
31297   ac_status=$?
31298   grep -v '^ *+' conftest.er1 >conftest.err
31299   rm -f conftest.er1
31300   cat conftest.err >&5
31301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302   (exit $ac_status); } && {
31303          test -z "$ac_c_werror_flag" ||
31304          test ! -s conftest.err
31305        } && test -s conftest$ac_exeext &&
31306        $as_test_x conftest$ac_exeext; then
31307   eval "$as_ac_var=yes"
31308 else
31309   echo "$as_me: failed program was:" >&5
31310 sed 's/^/| /' conftest.$ac_ext >&5
31311
31312         eval "$as_ac_var=no"
31313 fi
31314
31315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31316       conftest$ac_exeext conftest.$ac_ext
31317 fi
31318 ac_res=`eval echo '${'$as_ac_var'}'`
31319                { echo "$as_me:$LINENO: result: $ac_res" >&5
31320 echo "${ECHO_T}$ac_res" >&6; }
31321 if test `eval echo '${'$as_ac_var'}'` = yes; then
31322   cat >>confdefs.h <<_ACEOF
31323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31324 _ACEOF
31325  cat >>confdefs.h <<\_ACEOF
31326 #define HAVE_FCHDIR 1
31327 _ACEOF
31328
31329 fi
31330 done
31331
31332
31333 for ac_func in strtoll
31334 do
31335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31339   echo $ECHO_N "(cached) $ECHO_C" >&6
31340 else
31341   cat >conftest.$ac_ext <<_ACEOF
31342 /* confdefs.h.  */
31343 _ACEOF
31344 cat confdefs.h >>conftest.$ac_ext
31345 cat >>conftest.$ac_ext <<_ACEOF
31346 /* end confdefs.h.  */
31347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31349 #define $ac_func innocuous_$ac_func
31350
31351 /* System header to define __stub macros and hopefully few prototypes,
31352     which can conflict with char $ac_func (); below.
31353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31354     <limits.h> exists even on freestanding compilers.  */
31355
31356 #ifdef __STDC__
31357 # include <limits.h>
31358 #else
31359 # include <assert.h>
31360 #endif
31361
31362 #undef $ac_func
31363
31364 /* Override any GCC internal prototype to avoid an error.
31365    Use char because int might match the return type of a GCC
31366    builtin and then its argument prototype would still apply.  */
31367 #ifdef __cplusplus
31368 extern "C"
31369 #endif
31370 char $ac_func ();
31371 /* The GNU C library defines this for functions which it implements
31372     to always fail with ENOSYS.  Some functions are actually named
31373     something starting with __ and the normal name is an alias.  */
31374 #if defined __stub_$ac_func || defined __stub___$ac_func
31375 choke me
31376 #endif
31377
31378 int
31379 main ()
31380 {
31381 return $ac_func ();
31382   ;
31383   return 0;
31384 }
31385 _ACEOF
31386 rm -f conftest.$ac_objext conftest$ac_exeext
31387 if { (ac_try="$ac_link"
31388 case "(($ac_try" in
31389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390   *) ac_try_echo=$ac_try;;
31391 esac
31392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393   (eval "$ac_link") 2>conftest.er1
31394   ac_status=$?
31395   grep -v '^ *+' conftest.er1 >conftest.err
31396   rm -f conftest.er1
31397   cat conftest.err >&5
31398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399   (exit $ac_status); } && {
31400          test -z "$ac_c_werror_flag" ||
31401          test ! -s conftest.err
31402        } && test -s conftest$ac_exeext &&
31403        $as_test_x conftest$ac_exeext; then
31404   eval "$as_ac_var=yes"
31405 else
31406   echo "$as_me: failed program was:" >&5
31407 sed 's/^/| /' conftest.$ac_ext >&5
31408
31409         eval "$as_ac_var=no"
31410 fi
31411
31412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31413       conftest$ac_exeext conftest.$ac_ext
31414 fi
31415 ac_res=`eval echo '${'$as_ac_var'}'`
31416                { echo "$as_me:$LINENO: result: $ac_res" >&5
31417 echo "${ECHO_T}$ac_res" >&6; }
31418 if test `eval echo '${'$as_ac_var'}'` = yes; then
31419   cat >>confdefs.h <<_ACEOF
31420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31421 _ACEOF
31422  cat >>confdefs.h <<\_ACEOF
31423 #define HAVE_STRTOLL 1
31424 _ACEOF
31425
31426 fi
31427 done
31428
31429
31430 for ac_func in posix_fadvise
31431 do
31432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31436   echo $ECHO_N "(cached) $ECHO_C" >&6
31437 else
31438   cat >conftest.$ac_ext <<_ACEOF
31439 /* confdefs.h.  */
31440 _ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h.  */
31444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31446 #define $ac_func innocuous_$ac_func
31447
31448 /* System header to define __stub macros and hopefully few prototypes,
31449     which can conflict with char $ac_func (); below.
31450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31451     <limits.h> exists even on freestanding compilers.  */
31452
31453 #ifdef __STDC__
31454 # include <limits.h>
31455 #else
31456 # include <assert.h>
31457 #endif
31458
31459 #undef $ac_func
31460
31461 /* Override any GCC internal prototype to avoid an error.
31462    Use char because int might match the return type of a GCC
31463    builtin and then its argument prototype would still apply.  */
31464 #ifdef __cplusplus
31465 extern "C"
31466 #endif
31467 char $ac_func ();
31468 /* The GNU C library defines this for functions which it implements
31469     to always fail with ENOSYS.  Some functions are actually named
31470     something starting with __ and the normal name is an alias.  */
31471 #if defined __stub_$ac_func || defined __stub___$ac_func
31472 choke me
31473 #endif
31474
31475 int
31476 main ()
31477 {
31478 return $ac_func ();
31479   ;
31480   return 0;
31481 }
31482 _ACEOF
31483 rm -f conftest.$ac_objext conftest$ac_exeext
31484 if { (ac_try="$ac_link"
31485 case "(($ac_try" in
31486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31487   *) ac_try_echo=$ac_try;;
31488 esac
31489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31490   (eval "$ac_link") 2>conftest.er1
31491   ac_status=$?
31492   grep -v '^ *+' conftest.er1 >conftest.err
31493   rm -f conftest.er1
31494   cat conftest.err >&5
31495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496   (exit $ac_status); } && {
31497          test -z "$ac_c_werror_flag" ||
31498          test ! -s conftest.err
31499        } && test -s conftest$ac_exeext &&
31500        $as_test_x conftest$ac_exeext; then
31501   eval "$as_ac_var=yes"
31502 else
31503   echo "$as_me: failed program was:" >&5
31504 sed 's/^/| /' conftest.$ac_ext >&5
31505
31506         eval "$as_ac_var=no"
31507 fi
31508
31509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31510       conftest$ac_exeext conftest.$ac_ext
31511 fi
31512 ac_res=`eval echo '${'$as_ac_var'}'`
31513                { echo "$as_me:$LINENO: result: $ac_res" >&5
31514 echo "${ECHO_T}$ac_res" >&6; }
31515 if test `eval echo '${'$as_ac_var'}'` = yes; then
31516   cat >>confdefs.h <<_ACEOF
31517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31518 _ACEOF
31519
31520 fi
31521 done
31522
31523
31524 for ac_func in fdatasync
31525 do
31526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31530   echo $ECHO_N "(cached) $ECHO_C" >&6
31531 else
31532   cat >conftest.$ac_ext <<_ACEOF
31533 /* confdefs.h.  */
31534 _ACEOF
31535 cat confdefs.h >>conftest.$ac_ext
31536 cat >>conftest.$ac_ext <<_ACEOF
31537 /* end confdefs.h.  */
31538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31540 #define $ac_func innocuous_$ac_func
31541
31542 /* System header to define __stub macros and hopefully few prototypes,
31543     which can conflict with char $ac_func (); below.
31544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31545     <limits.h> exists even on freestanding compilers.  */
31546
31547 #ifdef __STDC__
31548 # include <limits.h>
31549 #else
31550 # include <assert.h>
31551 #endif
31552
31553 #undef $ac_func
31554
31555 /* Override any GCC internal prototype to avoid an error.
31556    Use char because int might match the return type of a GCC
31557    builtin and then its argument prototype would still apply.  */
31558 #ifdef __cplusplus
31559 extern "C"
31560 #endif
31561 char $ac_func ();
31562 /* The GNU C library defines this for functions which it implements
31563     to always fail with ENOSYS.  Some functions are actually named
31564     something starting with __ and the normal name is an alias.  */
31565 #if defined __stub_$ac_func || defined __stub___$ac_func
31566 choke me
31567 #endif
31568
31569 int
31570 main ()
31571 {
31572 return $ac_func ();
31573   ;
31574   return 0;
31575 }
31576 _ACEOF
31577 rm -f conftest.$ac_objext conftest$ac_exeext
31578 if { (ac_try="$ac_link"
31579 case "(($ac_try" in
31580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581   *) ac_try_echo=$ac_try;;
31582 esac
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584   (eval "$ac_link") 2>conftest.er1
31585   ac_status=$?
31586   grep -v '^ *+' conftest.er1 >conftest.err
31587   rm -f conftest.er1
31588   cat conftest.err >&5
31589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590   (exit $ac_status); } && {
31591          test -z "$ac_c_werror_flag" ||
31592          test ! -s conftest.err
31593        } && test -s conftest$ac_exeext &&
31594        $as_test_x conftest$ac_exeext; then
31595   eval "$as_ac_var=yes"
31596 else
31597   echo "$as_me: failed program was:" >&5
31598 sed 's/^/| /' conftest.$ac_ext >&5
31599
31600         eval "$as_ac_var=no"
31601 fi
31602
31603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31604       conftest$ac_exeext conftest.$ac_ext
31605 fi
31606 ac_res=`eval echo '${'$as_ac_var'}'`
31607                { echo "$as_me:$LINENO: result: $ac_res" >&5
31608 echo "${ECHO_T}$ac_res" >&6; }
31609 if test `eval echo '${'$as_ac_var'}'` = yes; then
31610   cat >>confdefs.h <<_ACEOF
31611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31612 _ACEOF
31613
31614 fi
31615 done
31616
31617
31618
31619 for ac_func in chflags
31620 do
31621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31625   echo $ECHO_N "(cached) $ECHO_C" >&6
31626 else
31627   cat >conftest.$ac_ext <<_ACEOF
31628 /* confdefs.h.  */
31629 _ACEOF
31630 cat confdefs.h >>conftest.$ac_ext
31631 cat >>conftest.$ac_ext <<_ACEOF
31632 /* end confdefs.h.  */
31633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31635 #define $ac_func innocuous_$ac_func
31636
31637 /* System header to define __stub macros and hopefully few prototypes,
31638     which can conflict with char $ac_func (); below.
31639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31640     <limits.h> exists even on freestanding compilers.  */
31641
31642 #ifdef __STDC__
31643 # include <limits.h>
31644 #else
31645 # include <assert.h>
31646 #endif
31647
31648 #undef $ac_func
31649
31650 /* Override any GCC internal prototype to avoid an error.
31651    Use char because int might match the return type of a GCC
31652    builtin and then its argument prototype would still apply.  */
31653 #ifdef __cplusplus
31654 extern "C"
31655 #endif
31656 char $ac_func ();
31657 /* The GNU C library defines this for functions which it implements
31658     to always fail with ENOSYS.  Some functions are actually named
31659     something starting with __ and the normal name is an alias.  */
31660 #if defined __stub_$ac_func || defined __stub___$ac_func
31661 choke me
31662 #endif
31663
31664 int
31665 main ()
31666 {
31667 return $ac_func ();
31668   ;
31669   return 0;
31670 }
31671 _ACEOF
31672 rm -f conftest.$ac_objext conftest$ac_exeext
31673 if { (ac_try="$ac_link"
31674 case "(($ac_try" in
31675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676   *) ac_try_echo=$ac_try;;
31677 esac
31678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679   (eval "$ac_link") 2>conftest.er1
31680   ac_status=$?
31681   grep -v '^ *+' conftest.er1 >conftest.err
31682   rm -f conftest.er1
31683   cat conftest.err >&5
31684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685   (exit $ac_status); } && {
31686          test -z "$ac_c_werror_flag" ||
31687          test ! -s conftest.err
31688        } && test -s conftest$ac_exeext &&
31689        $as_test_x conftest$ac_exeext; then
31690   eval "$as_ac_var=yes"
31691 else
31692   echo "$as_me: failed program was:" >&5
31693 sed 's/^/| /' conftest.$ac_ext >&5
31694
31695         eval "$as_ac_var=no"
31696 fi
31697
31698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31699       conftest$ac_exeext conftest.$ac_ext
31700 fi
31701 ac_res=`eval echo '${'$as_ac_var'}'`
31702                { echo "$as_me:$LINENO: result: $ac_res" >&5
31703 echo "${ECHO_T}$ac_res" >&6; }
31704 if test `eval echo '${'$as_ac_var'}'` = yes; then
31705   cat >>confdefs.h <<_ACEOF
31706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31707 _ACEOF
31708
31709 fi
31710 done
31711
31712
31713
31714
31715
31716
31717 for ac_func in snprintf vsnprintf gethostid fseeko
31718 do
31719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31723   echo $ECHO_N "(cached) $ECHO_C" >&6
31724 else
31725   cat >conftest.$ac_ext <<_ACEOF
31726 /* confdefs.h.  */
31727 _ACEOF
31728 cat confdefs.h >>conftest.$ac_ext
31729 cat >>conftest.$ac_ext <<_ACEOF
31730 /* end confdefs.h.  */
31731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31733 #define $ac_func innocuous_$ac_func
31734
31735 /* System header to define __stub macros and hopefully few prototypes,
31736     which can conflict with char $ac_func (); below.
31737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31738     <limits.h> exists even on freestanding compilers.  */
31739
31740 #ifdef __STDC__
31741 # include <limits.h>
31742 #else
31743 # include <assert.h>
31744 #endif
31745
31746 #undef $ac_func
31747
31748 /* Override any GCC internal prototype to avoid an error.
31749    Use char because int might match the return type of a GCC
31750    builtin and then its argument prototype would still apply.  */
31751 #ifdef __cplusplus
31752 extern "C"
31753 #endif
31754 char $ac_func ();
31755 /* The GNU C library defines this for functions which it implements
31756     to always fail with ENOSYS.  Some functions are actually named
31757     something starting with __ and the normal name is an alias.  */
31758 #if defined __stub_$ac_func || defined __stub___$ac_func
31759 choke me
31760 #endif
31761
31762 int
31763 main ()
31764 {
31765 return $ac_func ();
31766   ;
31767   return 0;
31768 }
31769 _ACEOF
31770 rm -f conftest.$ac_objext conftest$ac_exeext
31771 if { (ac_try="$ac_link"
31772 case "(($ac_try" in
31773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31774   *) ac_try_echo=$ac_try;;
31775 esac
31776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31777   (eval "$ac_link") 2>conftest.er1
31778   ac_status=$?
31779   grep -v '^ *+' conftest.er1 >conftest.err
31780   rm -f conftest.er1
31781   cat conftest.err >&5
31782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783   (exit $ac_status); } && {
31784          test -z "$ac_c_werror_flag" ||
31785          test ! -s conftest.err
31786        } && test -s conftest$ac_exeext &&
31787        $as_test_x conftest$ac_exeext; then
31788   eval "$as_ac_var=yes"
31789 else
31790   echo "$as_me: failed program was:" >&5
31791 sed 's/^/| /' conftest.$ac_ext >&5
31792
31793         eval "$as_ac_var=no"
31794 fi
31795
31796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31797       conftest$ac_exeext conftest.$ac_ext
31798 fi
31799 ac_res=`eval echo '${'$as_ac_var'}'`
31800                { echo "$as_me:$LINENO: result: $ac_res" >&5
31801 echo "${ECHO_T}$ac_res" >&6; }
31802 if test `eval echo '${'$as_ac_var'}'` = yes; then
31803   cat >>confdefs.h <<_ACEOF
31804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31805 _ACEOF
31806
31807 fi
31808 done
31809
31810
31811 { echo "$as_me:$LINENO: checking for va_copy" >&5
31812 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
31813 if test "${ba_cv_va_copy+set}" = set; then
31814   echo $ECHO_N "(cached) $ECHO_C" >&6
31815 else
31816   cat >conftest.$ac_ext <<_ACEOF
31817 /* confdefs.h.  */
31818 _ACEOF
31819 cat confdefs.h >>conftest.$ac_ext
31820 cat >>conftest.$ac_ext <<_ACEOF
31821 /* end confdefs.h.  */
31822
31823 #include <stdarg.h>
31824 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
31825 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
31826
31827 int
31828 main ()
31829 {
31830 call_use_va_copy(1,2,3)
31831   ;
31832   return 0;
31833 }
31834 _ACEOF
31835 rm -f conftest.$ac_objext conftest$ac_exeext
31836 if { (ac_try="$ac_link"
31837 case "(($ac_try" in
31838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31839   *) ac_try_echo=$ac_try;;
31840 esac
31841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31842   (eval "$ac_link") 2>conftest.er1
31843   ac_status=$?
31844   grep -v '^ *+' conftest.er1 >conftest.err
31845   rm -f conftest.er1
31846   cat conftest.err >&5
31847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848   (exit $ac_status); } && {
31849          test -z "$ac_c_werror_flag" ||
31850          test ! -s conftest.err
31851        } && test -s conftest$ac_exeext &&
31852        $as_test_x conftest$ac_exeext; then
31853   ba_cv_va_copy=yes
31854 else
31855   echo "$as_me: failed program was:" >&5
31856 sed 's/^/| /' conftest.$ac_ext >&5
31857
31858         ba_cv_va_copy=no
31859 fi
31860
31861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31862       conftest$ac_exeext conftest.$ac_ext
31863 fi
31864 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
31865 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
31866 test $ba_cv_va_copy = yes &&
31867 cat >>confdefs.h <<\_ACEOF
31868 #define HAVE_VA_COPY 1
31869 _ACEOF
31870
31871
31872
31873
31874
31875
31876
31877 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
31878 do
31879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31883   echo $ECHO_N "(cached) $ECHO_C" >&6
31884 else
31885   cat >conftest.$ac_ext <<_ACEOF
31886 /* confdefs.h.  */
31887 _ACEOF
31888 cat confdefs.h >>conftest.$ac_ext
31889 cat >>conftest.$ac_ext <<_ACEOF
31890 /* end confdefs.h.  */
31891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31893 #define $ac_func innocuous_$ac_func
31894
31895 /* System header to define __stub macros and hopefully few prototypes,
31896     which can conflict with char $ac_func (); below.
31897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31898     <limits.h> exists even on freestanding compilers.  */
31899
31900 #ifdef __STDC__
31901 # include <limits.h>
31902 #else
31903 # include <assert.h>
31904 #endif
31905
31906 #undef $ac_func
31907
31908 /* Override any GCC internal prototype to avoid an error.
31909    Use char because int might match the return type of a GCC
31910    builtin and then its argument prototype would still apply.  */
31911 #ifdef __cplusplus
31912 extern "C"
31913 #endif
31914 char $ac_func ();
31915 /* The GNU C library defines this for functions which it implements
31916     to always fail with ENOSYS.  Some functions are actually named
31917     something starting with __ and the normal name is an alias.  */
31918 #if defined __stub_$ac_func || defined __stub___$ac_func
31919 choke me
31920 #endif
31921
31922 int
31923 main ()
31924 {
31925 return $ac_func ();
31926   ;
31927   return 0;
31928 }
31929 _ACEOF
31930 rm -f conftest.$ac_objext conftest$ac_exeext
31931 if { (ac_try="$ac_link"
31932 case "(($ac_try" in
31933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934   *) ac_try_echo=$ac_try;;
31935 esac
31936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937   (eval "$ac_link") 2>conftest.er1
31938   ac_status=$?
31939   grep -v '^ *+' conftest.er1 >conftest.err
31940   rm -f conftest.er1
31941   cat conftest.err >&5
31942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943   (exit $ac_status); } && {
31944          test -z "$ac_c_werror_flag" ||
31945          test ! -s conftest.err
31946        } && test -s conftest$ac_exeext &&
31947        $as_test_x conftest$ac_exeext; then
31948   eval "$as_ac_var=yes"
31949 else
31950   echo "$as_me: failed program was:" >&5
31951 sed 's/^/| /' conftest.$ac_ext >&5
31952
31953         eval "$as_ac_var=no"
31954 fi
31955
31956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31957       conftest$ac_exeext conftest.$ac_ext
31958 fi
31959 ac_res=`eval echo '${'$as_ac_var'}'`
31960                { echo "$as_me:$LINENO: result: $ac_res" >&5
31961 echo "${ECHO_T}$ac_res" >&6; }
31962 if test `eval echo '${'$as_ac_var'}'` = yes; then
31963   cat >>confdefs.h <<_ACEOF
31964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31965 _ACEOF
31966
31967 fi
31968 done
31969
31970
31971 # If resolver functions are not in libc check for -lnsl or -lresolv.
31972 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
31973 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
31974 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
31975   echo $ECHO_N "(cached) $ECHO_C" >&6
31976 else
31977   cat >conftest.$ac_ext <<_ACEOF
31978 /* confdefs.h.  */
31979 _ACEOF
31980 cat confdefs.h >>conftest.$ac_ext
31981 cat >>conftest.$ac_ext <<_ACEOF
31982 /* end confdefs.h.  */
31983 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
31984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31985 #define gethostbyname_r innocuous_gethostbyname_r
31986
31987 /* System header to define __stub macros and hopefully few prototypes,
31988     which can conflict with char gethostbyname_r (); below.
31989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31990     <limits.h> exists even on freestanding compilers.  */
31991
31992 #ifdef __STDC__
31993 # include <limits.h>
31994 #else
31995 # include <assert.h>
31996 #endif
31997
31998 #undef gethostbyname_r
31999
32000 /* Override any GCC internal prototype to avoid an error.
32001    Use char because int might match the return type of a GCC
32002    builtin and then its argument prototype would still apply.  */
32003 #ifdef __cplusplus
32004 extern "C"
32005 #endif
32006 char gethostbyname_r ();
32007 /* The GNU C library defines this for functions which it implements
32008     to always fail with ENOSYS.  Some functions are actually named
32009     something starting with __ and the normal name is an alias.  */
32010 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
32011 choke me
32012 #endif
32013
32014 int
32015 main ()
32016 {
32017 return gethostbyname_r ();
32018   ;
32019   return 0;
32020 }
32021 _ACEOF
32022 rm -f conftest.$ac_objext conftest$ac_exeext
32023 if { (ac_try="$ac_link"
32024 case "(($ac_try" in
32025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026   *) ac_try_echo=$ac_try;;
32027 esac
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029   (eval "$ac_link") 2>conftest.er1
32030   ac_status=$?
32031   grep -v '^ *+' conftest.er1 >conftest.err
32032   rm -f conftest.er1
32033   cat conftest.err >&5
32034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035   (exit $ac_status); } && {
32036          test -z "$ac_c_werror_flag" ||
32037          test ! -s conftest.err
32038        } && test -s conftest$ac_exeext &&
32039        $as_test_x conftest$ac_exeext; then
32040   ac_cv_func_gethostbyname_r=yes
32041 else
32042   echo "$as_me: failed program was:" >&5
32043 sed 's/^/| /' conftest.$ac_ext >&5
32044
32045         ac_cv_func_gethostbyname_r=no
32046 fi
32047
32048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32049       conftest$ac_exeext conftest.$ac_ext
32050 fi
32051 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
32052 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
32053 if test $ac_cv_func_gethostbyname_r = yes; then
32054   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
32055 echo "${ECHO_T}using libc's resolver" >&6; }
32056 else
32057
32058 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
32059 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
32060 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
32061   echo $ECHO_N "(cached) $ECHO_C" >&6
32062 else
32063   ac_check_lib_save_LIBS=$LIBS
32064 LIBS="-lnsl  $LIBS"
32065 cat >conftest.$ac_ext <<_ACEOF
32066 /* confdefs.h.  */
32067 _ACEOF
32068 cat confdefs.h >>conftest.$ac_ext
32069 cat >>conftest.$ac_ext <<_ACEOF
32070 /* end confdefs.h.  */
32071
32072 /* Override any GCC internal prototype to avoid an error.
32073    Use char because int might match the return type of a GCC
32074    builtin and then its argument prototype would still apply.  */
32075 #ifdef __cplusplus
32076 extern "C"
32077 #endif
32078 char gethostbyname_r ();
32079 int
32080 main ()
32081 {
32082 return gethostbyname_r ();
32083   ;
32084   return 0;
32085 }
32086 _ACEOF
32087 rm -f conftest.$ac_objext conftest$ac_exeext
32088 if { (ac_try="$ac_link"
32089 case "(($ac_try" in
32090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091   *) ac_try_echo=$ac_try;;
32092 esac
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094   (eval "$ac_link") 2>conftest.er1
32095   ac_status=$?
32096   grep -v '^ *+' conftest.er1 >conftest.err
32097   rm -f conftest.er1
32098   cat conftest.err >&5
32099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100   (exit $ac_status); } && {
32101          test -z "$ac_c_werror_flag" ||
32102          test ! -s conftest.err
32103        } && test -s conftest$ac_exeext &&
32104        $as_test_x conftest$ac_exeext; then
32105   ac_cv_lib_nsl_gethostbyname_r=yes
32106 else
32107   echo "$as_me: failed program was:" >&5
32108 sed 's/^/| /' conftest.$ac_ext >&5
32109
32110         ac_cv_lib_nsl_gethostbyname_r=no
32111 fi
32112
32113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32114       conftest$ac_exeext conftest.$ac_ext
32115 LIBS=$ac_check_lib_save_LIBS
32116 fi
32117 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
32118 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
32119 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
32120   cat >>confdefs.h <<_ACEOF
32121 #define HAVE_LIBNSL 1
32122 _ACEOF
32123
32124   LIBS="-lnsl $LIBS"
32125
32126 fi
32127
32128
32129 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
32130 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
32131 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
32132   echo $ECHO_N "(cached) $ECHO_C" >&6
32133 else
32134   ac_check_lib_save_LIBS=$LIBS
32135 LIBS="-lresolv  $LIBS"
32136 cat >conftest.$ac_ext <<_ACEOF
32137 /* confdefs.h.  */
32138 _ACEOF
32139 cat confdefs.h >>conftest.$ac_ext
32140 cat >>conftest.$ac_ext <<_ACEOF
32141 /* end confdefs.h.  */
32142
32143 /* Override any GCC internal prototype to avoid an error.
32144    Use char because int might match the return type of a GCC
32145    builtin and then its argument prototype would still apply.  */
32146 #ifdef __cplusplus
32147 extern "C"
32148 #endif
32149 char gethostbyname_r ();
32150 int
32151 main ()
32152 {
32153 return gethostbyname_r ();
32154   ;
32155   return 0;
32156 }
32157 _ACEOF
32158 rm -f conftest.$ac_objext conftest$ac_exeext
32159 if { (ac_try="$ac_link"
32160 case "(($ac_try" in
32161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32162   *) ac_try_echo=$ac_try;;
32163 esac
32164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32165   (eval "$ac_link") 2>conftest.er1
32166   ac_status=$?
32167   grep -v '^ *+' conftest.er1 >conftest.err
32168   rm -f conftest.er1
32169   cat conftest.err >&5
32170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171   (exit $ac_status); } && {
32172          test -z "$ac_c_werror_flag" ||
32173          test ! -s conftest.err
32174        } && test -s conftest$ac_exeext &&
32175        $as_test_x conftest$ac_exeext; then
32176   ac_cv_lib_resolv_gethostbyname_r=yes
32177 else
32178   echo "$as_me: failed program was:" >&5
32179 sed 's/^/| /' conftest.$ac_ext >&5
32180
32181         ac_cv_lib_resolv_gethostbyname_r=no
32182 fi
32183
32184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32185       conftest$ac_exeext conftest.$ac_ext
32186 LIBS=$ac_check_lib_save_LIBS
32187 fi
32188 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
32189 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
32190 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
32191   cat >>confdefs.h <<_ACEOF
32192 #define HAVE_LIBRESOLV 1
32193 _ACEOF
32194
32195   LIBS="-lresolv $LIBS"
32196
32197 fi
32198
32199 fi
32200
32201
32202
32203
32204
32205 for ac_func in inet_pton
32206 do
32207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32211   echo $ECHO_N "(cached) $ECHO_C" >&6
32212 else
32213   cat >conftest.$ac_ext <<_ACEOF
32214 /* confdefs.h.  */
32215 _ACEOF
32216 cat confdefs.h >>conftest.$ac_ext
32217 cat >>conftest.$ac_ext <<_ACEOF
32218 /* end confdefs.h.  */
32219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32221 #define $ac_func innocuous_$ac_func
32222
32223 /* System header to define __stub macros and hopefully few prototypes,
32224     which can conflict with char $ac_func (); below.
32225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32226     <limits.h> exists even on freestanding compilers.  */
32227
32228 #ifdef __STDC__
32229 # include <limits.h>
32230 #else
32231 # include <assert.h>
32232 #endif
32233
32234 #undef $ac_func
32235
32236 /* Override any GCC internal prototype to avoid an error.
32237    Use char because int might match the return type of a GCC
32238    builtin and then its argument prototype would still apply.  */
32239 #ifdef __cplusplus
32240 extern "C"
32241 #endif
32242 char $ac_func ();
32243 /* The GNU C library defines this for functions which it implements
32244     to always fail with ENOSYS.  Some functions are actually named
32245     something starting with __ and the normal name is an alias.  */
32246 #if defined __stub_$ac_func || defined __stub___$ac_func
32247 choke me
32248 #endif
32249
32250 int
32251 main ()
32252 {
32253 return $ac_func ();
32254   ;
32255   return 0;
32256 }
32257 _ACEOF
32258 rm -f conftest.$ac_objext conftest$ac_exeext
32259 if { (ac_try="$ac_link"
32260 case "(($ac_try" in
32261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32262   *) ac_try_echo=$ac_try;;
32263 esac
32264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32265   (eval "$ac_link") 2>conftest.er1
32266   ac_status=$?
32267   grep -v '^ *+' conftest.er1 >conftest.err
32268   rm -f conftest.er1
32269   cat conftest.err >&5
32270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271   (exit $ac_status); } && {
32272          test -z "$ac_c_werror_flag" ||
32273          test ! -s conftest.err
32274        } && test -s conftest$ac_exeext &&
32275        $as_test_x conftest$ac_exeext; then
32276   eval "$as_ac_var=yes"
32277 else
32278   echo "$as_me: failed program was:" >&5
32279 sed 's/^/| /' conftest.$ac_ext >&5
32280
32281         eval "$as_ac_var=no"
32282 fi
32283
32284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32285       conftest$ac_exeext conftest.$ac_ext
32286 fi
32287 ac_res=`eval echo '${'$as_ac_var'}'`
32288                { echo "$as_me:$LINENO: result: $ac_res" >&5
32289 echo "${ECHO_T}$ac_res" >&6; }
32290 if test `eval echo '${'$as_ac_var'}'` = yes; then
32291   cat >>confdefs.h <<_ACEOF
32292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32293 _ACEOF
32294  cat >>confdefs.h <<\_ACEOF
32295 #define HAVE_INET_PTON 1
32296 _ACEOF
32297
32298 fi
32299 done
32300
32301
32302 for ac_func in inet_ntop
32303 do
32304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32308   echo $ECHO_N "(cached) $ECHO_C" >&6
32309 else
32310   cat >conftest.$ac_ext <<_ACEOF
32311 /* confdefs.h.  */
32312 _ACEOF
32313 cat confdefs.h >>conftest.$ac_ext
32314 cat >>conftest.$ac_ext <<_ACEOF
32315 /* end confdefs.h.  */
32316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32318 #define $ac_func innocuous_$ac_func
32319
32320 /* System header to define __stub macros and hopefully few prototypes,
32321     which can conflict with char $ac_func (); below.
32322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32323     <limits.h> exists even on freestanding compilers.  */
32324
32325 #ifdef __STDC__
32326 # include <limits.h>
32327 #else
32328 # include <assert.h>
32329 #endif
32330
32331 #undef $ac_func
32332
32333 /* Override any GCC internal prototype to avoid an error.
32334    Use char because int might match the return type of a GCC
32335    builtin and then its argument prototype would still apply.  */
32336 #ifdef __cplusplus
32337 extern "C"
32338 #endif
32339 char $ac_func ();
32340 /* The GNU C library defines this for functions which it implements
32341     to always fail with ENOSYS.  Some functions are actually named
32342     something starting with __ and the normal name is an alias.  */
32343 #if defined __stub_$ac_func || defined __stub___$ac_func
32344 choke me
32345 #endif
32346
32347 int
32348 main ()
32349 {
32350 return $ac_func ();
32351   ;
32352   return 0;
32353 }
32354 _ACEOF
32355 rm -f conftest.$ac_objext conftest$ac_exeext
32356 if { (ac_try="$ac_link"
32357 case "(($ac_try" in
32358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359   *) ac_try_echo=$ac_try;;
32360 esac
32361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362   (eval "$ac_link") 2>conftest.er1
32363   ac_status=$?
32364   grep -v '^ *+' conftest.er1 >conftest.err
32365   rm -f conftest.er1
32366   cat conftest.err >&5
32367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368   (exit $ac_status); } && {
32369          test -z "$ac_c_werror_flag" ||
32370          test ! -s conftest.err
32371        } && test -s conftest$ac_exeext &&
32372        $as_test_x conftest$ac_exeext; then
32373   eval "$as_ac_var=yes"
32374 else
32375   echo "$as_me: failed program was:" >&5
32376 sed 's/^/| /' conftest.$ac_ext >&5
32377
32378         eval "$as_ac_var=no"
32379 fi
32380
32381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32382       conftest$ac_exeext conftest.$ac_ext
32383 fi
32384 ac_res=`eval echo '${'$as_ac_var'}'`
32385                { echo "$as_me:$LINENO: result: $ac_res" >&5
32386 echo "${ECHO_T}$ac_res" >&6; }
32387 if test `eval echo '${'$as_ac_var'}'` = yes; then
32388   cat >>confdefs.h <<_ACEOF
32389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32390 _ACEOF
32391  cat >>confdefs.h <<\_ACEOF
32392 #define HAVE_INET_NTOP 1
32393 _ACEOF
32394
32395 fi
32396 done
32397
32398
32399 for ac_func in gethostbyname2
32400 do
32401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32405   echo $ECHO_N "(cached) $ECHO_C" >&6
32406 else
32407   cat >conftest.$ac_ext <<_ACEOF
32408 /* confdefs.h.  */
32409 _ACEOF
32410 cat confdefs.h >>conftest.$ac_ext
32411 cat >>conftest.$ac_ext <<_ACEOF
32412 /* end confdefs.h.  */
32413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32415 #define $ac_func innocuous_$ac_func
32416
32417 /* System header to define __stub macros and hopefully few prototypes,
32418     which can conflict with char $ac_func (); below.
32419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32420     <limits.h> exists even on freestanding compilers.  */
32421
32422 #ifdef __STDC__
32423 # include <limits.h>
32424 #else
32425 # include <assert.h>
32426 #endif
32427
32428 #undef $ac_func
32429
32430 /* Override any GCC internal prototype to avoid an error.
32431    Use char because int might match the return type of a GCC
32432    builtin and then its argument prototype would still apply.  */
32433 #ifdef __cplusplus
32434 extern "C"
32435 #endif
32436 char $ac_func ();
32437 /* The GNU C library defines this for functions which it implements
32438     to always fail with ENOSYS.  Some functions are actually named
32439     something starting with __ and the normal name is an alias.  */
32440 #if defined __stub_$ac_func || defined __stub___$ac_func
32441 choke me
32442 #endif
32443
32444 int
32445 main ()
32446 {
32447 return $ac_func ();
32448   ;
32449   return 0;
32450 }
32451 _ACEOF
32452 rm -f conftest.$ac_objext conftest$ac_exeext
32453 if { (ac_try="$ac_link"
32454 case "(($ac_try" in
32455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456   *) ac_try_echo=$ac_try;;
32457 esac
32458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459   (eval "$ac_link") 2>conftest.er1
32460   ac_status=$?
32461   grep -v '^ *+' conftest.er1 >conftest.err
32462   rm -f conftest.er1
32463   cat conftest.err >&5
32464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465   (exit $ac_status); } && {
32466          test -z "$ac_c_werror_flag" ||
32467          test ! -s conftest.err
32468        } && test -s conftest$ac_exeext &&
32469        $as_test_x conftest$ac_exeext; then
32470   eval "$as_ac_var=yes"
32471 else
32472   echo "$as_me: failed program was:" >&5
32473 sed 's/^/| /' conftest.$ac_ext >&5
32474
32475         eval "$as_ac_var=no"
32476 fi
32477
32478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32479       conftest$ac_exeext conftest.$ac_ext
32480 fi
32481 ac_res=`eval echo '${'$as_ac_var'}'`
32482                { echo "$as_me:$LINENO: result: $ac_res" >&5
32483 echo "${ECHO_T}$ac_res" >&6; }
32484 if test `eval echo '${'$as_ac_var'}'` = yes; then
32485   cat >>confdefs.h <<_ACEOF
32486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32487 _ACEOF
32488  cat >>confdefs.h <<\_ACEOF
32489 #define HAVE_GETHOSTBYNAME2 1
32490 _ACEOF
32491
32492 fi
32493 done
32494
32495
32496 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
32497 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
32498 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
32499   echo $ECHO_N "(cached) $ECHO_C" >&6
32500 else
32501   cat >conftest.$ac_ext <<_ACEOF
32502 /* confdefs.h.  */
32503 _ACEOF
32504 cat confdefs.h >>conftest.$ac_ext
32505 cat >>conftest.$ac_ext <<_ACEOF
32506 /* end confdefs.h.  */
32507 #include <sys/socket.h>
32508 int
32509 main ()
32510 {
32511 struct sockaddr s; s.sa_len;
32512   ;
32513   return 0;
32514 }
32515 _ACEOF
32516 rm -f conftest.$ac_objext
32517 if { (ac_try="$ac_compile"
32518 case "(($ac_try" in
32519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32520   *) ac_try_echo=$ac_try;;
32521 esac
32522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32523   (eval "$ac_compile") 2>conftest.er1
32524   ac_status=$?
32525   grep -v '^ *+' conftest.er1 >conftest.err
32526   rm -f conftest.er1
32527   cat conftest.err >&5
32528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529   (exit $ac_status); } && {
32530          test -z "$ac_c_werror_flag" ||
32531          test ! -s conftest.err
32532        } && test -s conftest.$ac_objext; then
32533   ac_cv_struct_sockaddr_sa_len=yes
32534 else
32535   echo "$as_me: failed program was:" >&5
32536 sed 's/^/| /' conftest.$ac_ext >&5
32537
32538         ac_cv_struct_sockaddr_sa_len=no
32539 fi
32540
32541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32542 fi
32543 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
32544 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
32545
32546  if test $ac_cv_struct_sockaddr_sa_len = yes; then
32547
32548 cat >>confdefs.h <<\_ACEOF
32549 #define HAVE_SA_LEN 1
32550 _ACEOF
32551
32552  fi
32553
32554
32555
32556
32557
32558 for ac_func in strftime
32559 do
32560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32564   echo $ECHO_N "(cached) $ECHO_C" >&6
32565 else
32566   cat >conftest.$ac_ext <<_ACEOF
32567 /* confdefs.h.  */
32568 _ACEOF
32569 cat confdefs.h >>conftest.$ac_ext
32570 cat >>conftest.$ac_ext <<_ACEOF
32571 /* end confdefs.h.  */
32572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32574 #define $ac_func innocuous_$ac_func
32575
32576 /* System header to define __stub macros and hopefully few prototypes,
32577     which can conflict with char $ac_func (); below.
32578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32579     <limits.h> exists even on freestanding compilers.  */
32580
32581 #ifdef __STDC__
32582 # include <limits.h>
32583 #else
32584 # include <assert.h>
32585 #endif
32586
32587 #undef $ac_func
32588
32589 /* Override any GCC internal prototype to avoid an error.
32590    Use char because int might match the return type of a GCC
32591    builtin and then its argument prototype would still apply.  */
32592 #ifdef __cplusplus
32593 extern "C"
32594 #endif
32595 char $ac_func ();
32596 /* The GNU C library defines this for functions which it implements
32597     to always fail with ENOSYS.  Some functions are actually named
32598     something starting with __ and the normal name is an alias.  */
32599 #if defined __stub_$ac_func || defined __stub___$ac_func
32600 choke me
32601 #endif
32602
32603 int
32604 main ()
32605 {
32606 return $ac_func ();
32607   ;
32608   return 0;
32609 }
32610 _ACEOF
32611 rm -f conftest.$ac_objext conftest$ac_exeext
32612 if { (ac_try="$ac_link"
32613 case "(($ac_try" in
32614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32615   *) ac_try_echo=$ac_try;;
32616 esac
32617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32618   (eval "$ac_link") 2>conftest.er1
32619   ac_status=$?
32620   grep -v '^ *+' conftest.er1 >conftest.err
32621   rm -f conftest.er1
32622   cat conftest.err >&5
32623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624   (exit $ac_status); } && {
32625          test -z "$ac_c_werror_flag" ||
32626          test ! -s conftest.err
32627        } && test -s conftest$ac_exeext &&
32628        $as_test_x conftest$ac_exeext; then
32629   eval "$as_ac_var=yes"
32630 else
32631   echo "$as_me: failed program was:" >&5
32632 sed 's/^/| /' conftest.$ac_ext >&5
32633
32634         eval "$as_ac_var=no"
32635 fi
32636
32637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32638       conftest$ac_exeext conftest.$ac_ext
32639 fi
32640 ac_res=`eval echo '${'$as_ac_var'}'`
32641                { echo "$as_me:$LINENO: result: $ac_res" >&5
32642 echo "${ECHO_T}$ac_res" >&6; }
32643 if test `eval echo '${'$as_ac_var'}'` = yes; then
32644   cat >>confdefs.h <<_ACEOF
32645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32646 _ACEOF
32647
32648 else
32649   # strftime is in -lintl on SCO UNIX.
32650 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
32651 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
32652 if test "${ac_cv_lib_intl_strftime+set}" = set; then
32653   echo $ECHO_N "(cached) $ECHO_C" >&6
32654 else
32655   ac_check_lib_save_LIBS=$LIBS
32656 LIBS="-lintl  $LIBS"
32657 cat >conftest.$ac_ext <<_ACEOF
32658 /* confdefs.h.  */
32659 _ACEOF
32660 cat confdefs.h >>conftest.$ac_ext
32661 cat >>conftest.$ac_ext <<_ACEOF
32662 /* end confdefs.h.  */
32663
32664 /* Override any GCC internal prototype to avoid an error.
32665    Use char because int might match the return type of a GCC
32666    builtin and then its argument prototype would still apply.  */
32667 #ifdef __cplusplus
32668 extern "C"
32669 #endif
32670 char strftime ();
32671 int
32672 main ()
32673 {
32674 return strftime ();
32675   ;
32676   return 0;
32677 }
32678 _ACEOF
32679 rm -f conftest.$ac_objext conftest$ac_exeext
32680 if { (ac_try="$ac_link"
32681 case "(($ac_try" in
32682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32683   *) ac_try_echo=$ac_try;;
32684 esac
32685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32686   (eval "$ac_link") 2>conftest.er1
32687   ac_status=$?
32688   grep -v '^ *+' conftest.er1 >conftest.err
32689   rm -f conftest.er1
32690   cat conftest.err >&5
32691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692   (exit $ac_status); } && {
32693          test -z "$ac_c_werror_flag" ||
32694          test ! -s conftest.err
32695        } && test -s conftest$ac_exeext &&
32696        $as_test_x conftest$ac_exeext; then
32697   ac_cv_lib_intl_strftime=yes
32698 else
32699   echo "$as_me: failed program was:" >&5
32700 sed 's/^/| /' conftest.$ac_ext >&5
32701
32702         ac_cv_lib_intl_strftime=no
32703 fi
32704
32705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32706       conftest$ac_exeext conftest.$ac_ext
32707 LIBS=$ac_check_lib_save_LIBS
32708 fi
32709 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
32710 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
32711 if test $ac_cv_lib_intl_strftime = yes; then
32712   cat >>confdefs.h <<\_ACEOF
32713 #define HAVE_STRFTIME 1
32714 _ACEOF
32715
32716 LIBS="-lintl $LIBS"
32717 fi
32718
32719 fi
32720 done
32721
32722
32723 for ac_func in vprintf
32724 do
32725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32729   echo $ECHO_N "(cached) $ECHO_C" >&6
32730 else
32731   cat >conftest.$ac_ext <<_ACEOF
32732 /* confdefs.h.  */
32733 _ACEOF
32734 cat confdefs.h >>conftest.$ac_ext
32735 cat >>conftest.$ac_ext <<_ACEOF
32736 /* end confdefs.h.  */
32737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32739 #define $ac_func innocuous_$ac_func
32740
32741 /* System header to define __stub macros and hopefully few prototypes,
32742     which can conflict with char $ac_func (); below.
32743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32744     <limits.h> exists even on freestanding compilers.  */
32745
32746 #ifdef __STDC__
32747 # include <limits.h>
32748 #else
32749 # include <assert.h>
32750 #endif
32751
32752 #undef $ac_func
32753
32754 /* Override any GCC internal prototype to avoid an error.
32755    Use char because int might match the return type of a GCC
32756    builtin and then its argument prototype would still apply.  */
32757 #ifdef __cplusplus
32758 extern "C"
32759 #endif
32760 char $ac_func ();
32761 /* The GNU C library defines this for functions which it implements
32762     to always fail with ENOSYS.  Some functions are actually named
32763     something starting with __ and the normal name is an alias.  */
32764 #if defined __stub_$ac_func || defined __stub___$ac_func
32765 choke me
32766 #endif
32767
32768 int
32769 main ()
32770 {
32771 return $ac_func ();
32772   ;
32773   return 0;
32774 }
32775 _ACEOF
32776 rm -f conftest.$ac_objext conftest$ac_exeext
32777 if { (ac_try="$ac_link"
32778 case "(($ac_try" in
32779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32780   *) ac_try_echo=$ac_try;;
32781 esac
32782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32783   (eval "$ac_link") 2>conftest.er1
32784   ac_status=$?
32785   grep -v '^ *+' conftest.er1 >conftest.err
32786   rm -f conftest.er1
32787   cat conftest.err >&5
32788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789   (exit $ac_status); } && {
32790          test -z "$ac_c_werror_flag" ||
32791          test ! -s conftest.err
32792        } && test -s conftest$ac_exeext &&
32793        $as_test_x conftest$ac_exeext; then
32794   eval "$as_ac_var=yes"
32795 else
32796   echo "$as_me: failed program was:" >&5
32797 sed 's/^/| /' conftest.$ac_ext >&5
32798
32799         eval "$as_ac_var=no"
32800 fi
32801
32802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32803       conftest$ac_exeext conftest.$ac_ext
32804 fi
32805 ac_res=`eval echo '${'$as_ac_var'}'`
32806                { echo "$as_me:$LINENO: result: $ac_res" >&5
32807 echo "${ECHO_T}$ac_res" >&6; }
32808 if test `eval echo '${'$as_ac_var'}'` = yes; then
32809   cat >>confdefs.h <<_ACEOF
32810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32811 _ACEOF
32812
32813 { echo "$as_me:$LINENO: checking for _doprnt" >&5
32814 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
32815 if test "${ac_cv_func__doprnt+set}" = set; then
32816   echo $ECHO_N "(cached) $ECHO_C" >&6
32817 else
32818   cat >conftest.$ac_ext <<_ACEOF
32819 /* confdefs.h.  */
32820 _ACEOF
32821 cat confdefs.h >>conftest.$ac_ext
32822 cat >>conftest.$ac_ext <<_ACEOF
32823 /* end confdefs.h.  */
32824 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
32825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32826 #define _doprnt innocuous__doprnt
32827
32828 /* System header to define __stub macros and hopefully few prototypes,
32829     which can conflict with char _doprnt (); below.
32830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32831     <limits.h> exists even on freestanding compilers.  */
32832
32833 #ifdef __STDC__
32834 # include <limits.h>
32835 #else
32836 # include <assert.h>
32837 #endif
32838
32839 #undef _doprnt
32840
32841 /* Override any GCC internal prototype to avoid an error.
32842    Use char because int might match the return type of a GCC
32843    builtin and then its argument prototype would still apply.  */
32844 #ifdef __cplusplus
32845 extern "C"
32846 #endif
32847 char _doprnt ();
32848 /* The GNU C library defines this for functions which it implements
32849     to always fail with ENOSYS.  Some functions are actually named
32850     something starting with __ and the normal name is an alias.  */
32851 #if defined __stub__doprnt || defined __stub____doprnt
32852 choke me
32853 #endif
32854
32855 int
32856 main ()
32857 {
32858 return _doprnt ();
32859   ;
32860   return 0;
32861 }
32862 _ACEOF
32863 rm -f conftest.$ac_objext conftest$ac_exeext
32864 if { (ac_try="$ac_link"
32865 case "(($ac_try" in
32866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32867   *) ac_try_echo=$ac_try;;
32868 esac
32869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32870   (eval "$ac_link") 2>conftest.er1
32871   ac_status=$?
32872   grep -v '^ *+' conftest.er1 >conftest.err
32873   rm -f conftest.er1
32874   cat conftest.err >&5
32875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876   (exit $ac_status); } && {
32877          test -z "$ac_c_werror_flag" ||
32878          test ! -s conftest.err
32879        } && test -s conftest$ac_exeext &&
32880        $as_test_x conftest$ac_exeext; then
32881   ac_cv_func__doprnt=yes
32882 else
32883   echo "$as_me: failed program was:" >&5
32884 sed 's/^/| /' conftest.$ac_ext >&5
32885
32886         ac_cv_func__doprnt=no
32887 fi
32888
32889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32890       conftest$ac_exeext conftest.$ac_ext
32891 fi
32892 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
32893 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
32894 if test $ac_cv_func__doprnt = yes; then
32895
32896 cat >>confdefs.h <<\_ACEOF
32897 #define HAVE_DOPRNT 1
32898 _ACEOF
32899
32900 fi
32901
32902 fi
32903 done
32904
32905
32906 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32907 # for constant arguments.  Useless!
32908 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32909 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32910 if test "${ac_cv_working_alloca_h+set}" = set; then
32911   echo $ECHO_N "(cached) $ECHO_C" >&6
32912 else
32913   cat >conftest.$ac_ext <<_ACEOF
32914 /* confdefs.h.  */
32915 _ACEOF
32916 cat confdefs.h >>conftest.$ac_ext
32917 cat >>conftest.$ac_ext <<_ACEOF
32918 /* end confdefs.h.  */
32919 #include <alloca.h>
32920 int
32921 main ()
32922 {
32923 char *p = (char *) alloca (2 * sizeof (int));
32924                           if (p) return 0;
32925   ;
32926   return 0;
32927 }
32928 _ACEOF
32929 rm -f conftest.$ac_objext conftest$ac_exeext
32930 if { (ac_try="$ac_link"
32931 case "(($ac_try" in
32932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933   *) ac_try_echo=$ac_try;;
32934 esac
32935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936   (eval "$ac_link") 2>conftest.er1
32937   ac_status=$?
32938   grep -v '^ *+' conftest.er1 >conftest.err
32939   rm -f conftest.er1
32940   cat conftest.err >&5
32941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942   (exit $ac_status); } && {
32943          test -z "$ac_c_werror_flag" ||
32944          test ! -s conftest.err
32945        } && test -s conftest$ac_exeext &&
32946        $as_test_x conftest$ac_exeext; then
32947   ac_cv_working_alloca_h=yes
32948 else
32949   echo "$as_me: failed program was:" >&5
32950 sed 's/^/| /' conftest.$ac_ext >&5
32951
32952         ac_cv_working_alloca_h=no
32953 fi
32954
32955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32956       conftest$ac_exeext conftest.$ac_ext
32957 fi
32958 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32959 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32960 if test $ac_cv_working_alloca_h = yes; then
32961
32962 cat >>confdefs.h <<\_ACEOF
32963 #define HAVE_ALLOCA_H 1
32964 _ACEOF
32965
32966 fi
32967
32968 { echo "$as_me:$LINENO: checking for alloca" >&5
32969 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32970 if test "${ac_cv_func_alloca_works+set}" = set; then
32971   echo $ECHO_N "(cached) $ECHO_C" >&6
32972 else
32973   cat >conftest.$ac_ext <<_ACEOF
32974 /* confdefs.h.  */
32975 _ACEOF
32976 cat confdefs.h >>conftest.$ac_ext
32977 cat >>conftest.$ac_ext <<_ACEOF
32978 /* end confdefs.h.  */
32979 #ifdef __GNUC__
32980 # define alloca __builtin_alloca
32981 #else
32982 # ifdef _MSC_VER
32983 #  include <malloc.h>
32984 #  define alloca _alloca
32985 # else
32986 #  ifdef HAVE_ALLOCA_H
32987 #   include <alloca.h>
32988 #  else
32989 #   ifdef _AIX
32990  #pragma alloca
32991 #   else
32992 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32993 char *alloca ();
32994 #    endif
32995 #   endif
32996 #  endif
32997 # endif
32998 #endif
32999
33000 int
33001 main ()
33002 {
33003 char *p = (char *) alloca (1);
33004                                     if (p) return 0;
33005   ;
33006   return 0;
33007 }
33008 _ACEOF
33009 rm -f conftest.$ac_objext conftest$ac_exeext
33010 if { (ac_try="$ac_link"
33011 case "(($ac_try" in
33012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33013   *) ac_try_echo=$ac_try;;
33014 esac
33015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33016   (eval "$ac_link") 2>conftest.er1
33017   ac_status=$?
33018   grep -v '^ *+' conftest.er1 >conftest.err
33019   rm -f conftest.er1
33020   cat conftest.err >&5
33021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022   (exit $ac_status); } && {
33023          test -z "$ac_c_werror_flag" ||
33024          test ! -s conftest.err
33025        } && test -s conftest$ac_exeext &&
33026        $as_test_x conftest$ac_exeext; then
33027   ac_cv_func_alloca_works=yes
33028 else
33029   echo "$as_me: failed program was:" >&5
33030 sed 's/^/| /' conftest.$ac_ext >&5
33031
33032         ac_cv_func_alloca_works=no
33033 fi
33034
33035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33036       conftest$ac_exeext conftest.$ac_ext
33037 fi
33038 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
33039 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
33040
33041 if test $ac_cv_func_alloca_works = yes; then
33042
33043 cat >>confdefs.h <<\_ACEOF
33044 #define HAVE_ALLOCA 1
33045 _ACEOF
33046
33047 else
33048   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
33049 # that cause trouble.  Some versions do not even contain alloca or
33050 # contain a buggy version.  If you still want to use their alloca,
33051 # use ar to extract alloca.o from them instead of compiling alloca.c.
33052
33053 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
33054
33055 cat >>confdefs.h <<\_ACEOF
33056 #define C_ALLOCA 1
33057 _ACEOF
33058
33059
33060 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
33061 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
33062 if test "${ac_cv_os_cray+set}" = set; then
33063   echo $ECHO_N "(cached) $ECHO_C" >&6
33064 else
33065   cat >conftest.$ac_ext <<_ACEOF
33066 /* confdefs.h.  */
33067 _ACEOF
33068 cat confdefs.h >>conftest.$ac_ext
33069 cat >>conftest.$ac_ext <<_ACEOF
33070 /* end confdefs.h.  */
33071 #if defined CRAY && ! defined CRAY2
33072 webecray
33073 #else
33074 wenotbecray
33075 #endif
33076
33077 _ACEOF
33078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33079   $EGREP "webecray" >/dev/null 2>&1; then
33080   ac_cv_os_cray=yes
33081 else
33082   ac_cv_os_cray=no
33083 fi
33084 rm -f conftest*
33085
33086 fi
33087 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
33088 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
33089 if test $ac_cv_os_cray = yes; then
33090   for ac_func in _getb67 GETB67 getb67; do
33091     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33095   echo $ECHO_N "(cached) $ECHO_C" >&6
33096 else
33097   cat >conftest.$ac_ext <<_ACEOF
33098 /* confdefs.h.  */
33099 _ACEOF
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h.  */
33103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33105 #define $ac_func innocuous_$ac_func
33106
33107 /* System header to define __stub macros and hopefully few prototypes,
33108     which can conflict with char $ac_func (); below.
33109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33110     <limits.h> exists even on freestanding compilers.  */
33111
33112 #ifdef __STDC__
33113 # include <limits.h>
33114 #else
33115 # include <assert.h>
33116 #endif
33117
33118 #undef $ac_func
33119
33120 /* Override any GCC internal prototype to avoid an error.
33121    Use char because int might match the return type of a GCC
33122    builtin and then its argument prototype would still apply.  */
33123 #ifdef __cplusplus
33124 extern "C"
33125 #endif
33126 char $ac_func ();
33127 /* The GNU C library defines this for functions which it implements
33128     to always fail with ENOSYS.  Some functions are actually named
33129     something starting with __ and the normal name is an alias.  */
33130 #if defined __stub_$ac_func || defined __stub___$ac_func
33131 choke me
33132 #endif
33133
33134 int
33135 main ()
33136 {
33137 return $ac_func ();
33138   ;
33139   return 0;
33140 }
33141 _ACEOF
33142 rm -f conftest.$ac_objext conftest$ac_exeext
33143 if { (ac_try="$ac_link"
33144 case "(($ac_try" in
33145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146   *) ac_try_echo=$ac_try;;
33147 esac
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149   (eval "$ac_link") 2>conftest.er1
33150   ac_status=$?
33151   grep -v '^ *+' conftest.er1 >conftest.err
33152   rm -f conftest.er1
33153   cat conftest.err >&5
33154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155   (exit $ac_status); } && {
33156          test -z "$ac_c_werror_flag" ||
33157          test ! -s conftest.err
33158        } && test -s conftest$ac_exeext &&
33159        $as_test_x conftest$ac_exeext; then
33160   eval "$as_ac_var=yes"
33161 else
33162   echo "$as_me: failed program was:" >&5
33163 sed 's/^/| /' conftest.$ac_ext >&5
33164
33165         eval "$as_ac_var=no"
33166 fi
33167
33168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33169       conftest$ac_exeext conftest.$ac_ext
33170 fi
33171 ac_res=`eval echo '${'$as_ac_var'}'`
33172                { echo "$as_me:$LINENO: result: $ac_res" >&5
33173 echo "${ECHO_T}$ac_res" >&6; }
33174 if test `eval echo '${'$as_ac_var'}'` = yes; then
33175
33176 cat >>confdefs.h <<_ACEOF
33177 #define CRAY_STACKSEG_END $ac_func
33178 _ACEOF
33179
33180     break
33181 fi
33182
33183   done
33184 fi
33185
33186 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33187 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33188 if test "${ac_cv_c_stack_direction+set}" = set; then
33189   echo $ECHO_N "(cached) $ECHO_C" >&6
33190 else
33191   if test "$cross_compiling" = yes; then
33192   ac_cv_c_stack_direction=0
33193 else
33194   cat >conftest.$ac_ext <<_ACEOF
33195 /* confdefs.h.  */
33196 _ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h.  */
33200 $ac_includes_default
33201 int
33202 find_stack_direction ()
33203 {
33204   static char *addr = 0;
33205   auto char dummy;
33206   if (addr == 0)
33207     {
33208       addr = &dummy;
33209       return find_stack_direction ();
33210     }
33211   else
33212     return (&dummy > addr) ? 1 : -1;
33213 }
33214
33215 int
33216 main ()
33217 {
33218   return find_stack_direction () < 0;
33219 }
33220 _ACEOF
33221 rm -f conftest$ac_exeext
33222 if { (ac_try="$ac_link"
33223 case "(($ac_try" in
33224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33225   *) ac_try_echo=$ac_try;;
33226 esac
33227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33228   (eval "$ac_link") 2>&5
33229   ac_status=$?
33230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33232   { (case "(($ac_try" in
33233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234   *) ac_try_echo=$ac_try;;
33235 esac
33236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237   (eval "$ac_try") 2>&5
33238   ac_status=$?
33239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240   (exit $ac_status); }; }; then
33241   ac_cv_c_stack_direction=1
33242 else
33243   echo "$as_me: program exited with status $ac_status" >&5
33244 echo "$as_me: failed program was:" >&5
33245 sed 's/^/| /' conftest.$ac_ext >&5
33246
33247 ( exit $ac_status )
33248 ac_cv_c_stack_direction=-1
33249 fi
33250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33251 fi
33252
33253
33254 fi
33255 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33256 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33257
33258 cat >>confdefs.h <<_ACEOF
33259 #define STACK_DIRECTION $ac_cv_c_stack_direction
33260 _ACEOF
33261
33262
33263 fi
33264
33265 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
33266 # -lseq on Dynix/PTX, -lgen on Unixware.
33267 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
33268 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
33269 if test "${ac_cv_search_getmntent+set}" = set; then
33270   echo $ECHO_N "(cached) $ECHO_C" >&6
33271 else
33272   ac_func_search_save_LIBS=$LIBS
33273 cat >conftest.$ac_ext <<_ACEOF
33274 /* confdefs.h.  */
33275 _ACEOF
33276 cat confdefs.h >>conftest.$ac_ext
33277 cat >>conftest.$ac_ext <<_ACEOF
33278 /* end confdefs.h.  */
33279
33280 /* Override any GCC internal prototype to avoid an error.
33281    Use char because int might match the return type of a GCC
33282    builtin and then its argument prototype would still apply.  */
33283 #ifdef __cplusplus
33284 extern "C"
33285 #endif
33286 char getmntent ();
33287 int
33288 main ()
33289 {
33290 return getmntent ();
33291   ;
33292   return 0;
33293 }
33294 _ACEOF
33295 for ac_lib in '' sun seq gen; do
33296   if test -z "$ac_lib"; then
33297     ac_res="none required"
33298   else
33299     ac_res=-l$ac_lib
33300     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33301   fi
33302   rm -f conftest.$ac_objext conftest$ac_exeext
33303 if { (ac_try="$ac_link"
33304 case "(($ac_try" in
33305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33306   *) ac_try_echo=$ac_try;;
33307 esac
33308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33309   (eval "$ac_link") 2>conftest.er1
33310   ac_status=$?
33311   grep -v '^ *+' conftest.er1 >conftest.err
33312   rm -f conftest.er1
33313   cat conftest.err >&5
33314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315   (exit $ac_status); } && {
33316          test -z "$ac_c_werror_flag" ||
33317          test ! -s conftest.err
33318        } && test -s conftest$ac_exeext &&
33319        $as_test_x conftest$ac_exeext; then
33320   ac_cv_search_getmntent=$ac_res
33321 else
33322   echo "$as_me: failed program was:" >&5
33323 sed 's/^/| /' conftest.$ac_ext >&5
33324
33325
33326 fi
33327
33328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33329       conftest$ac_exeext
33330   if test "${ac_cv_search_getmntent+set}" = set; then
33331   break
33332 fi
33333 done
33334 if test "${ac_cv_search_getmntent+set}" = set; then
33335   :
33336 else
33337   ac_cv_search_getmntent=no
33338 fi
33339 rm conftest.$ac_ext
33340 LIBS=$ac_func_search_save_LIBS
33341 fi
33342 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
33343 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
33344 ac_res=$ac_cv_search_getmntent
33345 if test "$ac_res" != no; then
33346   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33347   ac_cv_func_getmntent=yes
33348
33349 cat >>confdefs.h <<\_ACEOF
33350 #define HAVE_GETMNTENT 1
33351 _ACEOF
33352
33353 else
33354   ac_cv_func_getmntent=no
33355 fi
33356
33357
33358 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
33359 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
33360 if test "${ac_cv_func_closedir_void+set}" = set; then
33361   echo $ECHO_N "(cached) $ECHO_C" >&6
33362 else
33363   if test "$cross_compiling" = yes; then
33364   ac_cv_func_closedir_void=yes
33365 else
33366   cat >conftest.$ac_ext <<_ACEOF
33367 /* confdefs.h.  */
33368 _ACEOF
33369 cat confdefs.h >>conftest.$ac_ext
33370 cat >>conftest.$ac_ext <<_ACEOF
33371 /* end confdefs.h.  */
33372 $ac_includes_default
33373 #include <$ac_header_dirent>
33374 #ifndef __cplusplus
33375 int closedir ();
33376 #endif
33377
33378 int
33379 main ()
33380 {
33381 return closedir (opendir (".")) != 0;
33382   ;
33383   return 0;
33384 }
33385 _ACEOF
33386 rm -f conftest$ac_exeext
33387 if { (ac_try="$ac_link"
33388 case "(($ac_try" in
33389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33390   *) ac_try_echo=$ac_try;;
33391 esac
33392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33393   (eval "$ac_link") 2>&5
33394   ac_status=$?
33395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33397   { (case "(($ac_try" in
33398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33399   *) ac_try_echo=$ac_try;;
33400 esac
33401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33402   (eval "$ac_try") 2>&5
33403   ac_status=$?
33404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405   (exit $ac_status); }; }; then
33406   ac_cv_func_closedir_void=no
33407 else
33408   echo "$as_me: program exited with status $ac_status" >&5
33409 echo "$as_me: failed program was:" >&5
33410 sed 's/^/| /' conftest.$ac_ext >&5
33411
33412 ( exit $ac_status )
33413 ac_cv_func_closedir_void=yes
33414 fi
33415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33416 fi
33417
33418
33419 fi
33420 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
33421 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
33422 if test $ac_cv_func_closedir_void = yes; then
33423
33424 cat >>confdefs.h <<\_ACEOF
33425 #define CLOSEDIR_VOID 1
33426 _ACEOF
33427
33428 fi
33429
33430 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
33431 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
33432 if test "${ac_cv_func_setpgrp_void+set}" = set; then
33433   echo $ECHO_N "(cached) $ECHO_C" >&6
33434 else
33435   if test "$cross_compiling" = yes; then
33436   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
33437 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
33438    { (exit 1); exit 1; }; }
33439 else
33440   cat >conftest.$ac_ext <<_ACEOF
33441 /* confdefs.h.  */
33442 _ACEOF
33443 cat confdefs.h >>conftest.$ac_ext
33444 cat >>conftest.$ac_ext <<_ACEOF
33445 /* end confdefs.h.  */
33446 $ac_includes_default
33447 int
33448 main ()
33449 {
33450 /* If this system has a BSD-style setpgrp which takes arguments,
33451   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
33452   exit successfully. */
33453   return setpgrp (1,1) != -1;
33454   ;
33455   return 0;
33456 }
33457 _ACEOF
33458 rm -f conftest$ac_exeext
33459 if { (ac_try="$ac_link"
33460 case "(($ac_try" in
33461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33462   *) ac_try_echo=$ac_try;;
33463 esac
33464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33465   (eval "$ac_link") 2>&5
33466   ac_status=$?
33467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33469   { (case "(($ac_try" in
33470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33471   *) ac_try_echo=$ac_try;;
33472 esac
33473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33474   (eval "$ac_try") 2>&5
33475   ac_status=$?
33476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477   (exit $ac_status); }; }; then
33478   ac_cv_func_setpgrp_void=no
33479 else
33480   echo "$as_me: program exited with status $ac_status" >&5
33481 echo "$as_me: failed program was:" >&5
33482 sed 's/^/| /' conftest.$ac_ext >&5
33483
33484 ( exit $ac_status )
33485 ac_cv_func_setpgrp_void=yes
33486 fi
33487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33488 fi
33489
33490
33491 fi
33492 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
33493 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
33494 if test $ac_cv_func_setpgrp_void = yes; then
33495
33496 cat >>confdefs.h <<\_ACEOF
33497 #define SETPGRP_VOID 1
33498 _ACEOF
33499
33500 fi
33501                       # AC_FUNC_FNMATCH    dnl use local version
33502
33503
33504 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
33505 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
33506 if test "${ac_cv_lib_intl_gettext+set}" = set; then
33507   echo $ECHO_N "(cached) $ECHO_C" >&6
33508 else
33509   ac_check_lib_save_LIBS=$LIBS
33510 LIBS="-lintl  $LIBS"
33511 cat >conftest.$ac_ext <<_ACEOF
33512 /* confdefs.h.  */
33513 _ACEOF
33514 cat confdefs.h >>conftest.$ac_ext
33515 cat >>conftest.$ac_ext <<_ACEOF
33516 /* end confdefs.h.  */
33517
33518 /* Override any GCC internal prototype to avoid an error.
33519    Use char because int might match the return type of a GCC
33520    builtin and then its argument prototype would still apply.  */
33521 #ifdef __cplusplus
33522 extern "C"
33523 #endif
33524 char gettext ();
33525 int
33526 main ()
33527 {
33528 return gettext ();
33529   ;
33530   return 0;
33531 }
33532 _ACEOF
33533 rm -f conftest.$ac_objext conftest$ac_exeext
33534 if { (ac_try="$ac_link"
33535 case "(($ac_try" in
33536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33537   *) ac_try_echo=$ac_try;;
33538 esac
33539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33540   (eval "$ac_link") 2>conftest.er1
33541   ac_status=$?
33542   grep -v '^ *+' conftest.er1 >conftest.err
33543   rm -f conftest.er1
33544   cat conftest.err >&5
33545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546   (exit $ac_status); } && {
33547          test -z "$ac_c_werror_flag" ||
33548          test ! -s conftest.err
33549        } && test -s conftest$ac_exeext &&
33550        $as_test_x conftest$ac_exeext; then
33551   ac_cv_lib_intl_gettext=yes
33552 else
33553   echo "$as_me: failed program was:" >&5
33554 sed 's/^/| /' conftest.$ac_ext >&5
33555
33556         ac_cv_lib_intl_gettext=no
33557 fi
33558
33559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33560       conftest$ac_exeext conftest.$ac_ext
33561 LIBS=$ac_check_lib_save_LIBS
33562 fi
33563 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
33564 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
33565 if test $ac_cv_lib_intl_gettext = yes; then
33566   LIBS="$LIBS -lintl"
33567 fi
33568
33569
33570
33571
33572 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
33573 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
33574 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
33575   echo $ECHO_N "(cached) $ECHO_C" >&6
33576 else
33577   ac_check_lib_save_LIBS=$LIBS
33578 LIBS="-lsun  $LIBS"
33579 cat >conftest.$ac_ext <<_ACEOF
33580 /* confdefs.h.  */
33581 _ACEOF
33582 cat confdefs.h >>conftest.$ac_ext
33583 cat >>conftest.$ac_ext <<_ACEOF
33584 /* end confdefs.h.  */
33585
33586 /* Override any GCC internal prototype to avoid an error.
33587    Use char because int might match the return type of a GCC
33588    builtin and then its argument prototype would still apply.  */
33589 #ifdef __cplusplus
33590 extern "C"
33591 #endif
33592 char getpwnam ();
33593 int
33594 main ()
33595 {
33596 return getpwnam ();
33597   ;
33598   return 0;
33599 }
33600 _ACEOF
33601 rm -f conftest.$ac_objext conftest$ac_exeext
33602 if { (ac_try="$ac_link"
33603 case "(($ac_try" in
33604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33605   *) ac_try_echo=$ac_try;;
33606 esac
33607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33608   (eval "$ac_link") 2>conftest.er1
33609   ac_status=$?
33610   grep -v '^ *+' conftest.er1 >conftest.err
33611   rm -f conftest.er1
33612   cat conftest.err >&5
33613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614   (exit $ac_status); } && {
33615          test -z "$ac_c_werror_flag" ||
33616          test ! -s conftest.err
33617        } && test -s conftest$ac_exeext &&
33618        $as_test_x conftest$ac_exeext; then
33619   ac_cv_lib_sun_getpwnam=yes
33620 else
33621   echo "$as_me: failed program was:" >&5
33622 sed 's/^/| /' conftest.$ac_ext >&5
33623
33624         ac_cv_lib_sun_getpwnam=no
33625 fi
33626
33627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33628       conftest$ac_exeext conftest.$ac_ext
33629 LIBS=$ac_check_lib_save_LIBS
33630 fi
33631 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
33632 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
33633 if test $ac_cv_lib_sun_getpwnam = yes; then
33634   cat >>confdefs.h <<_ACEOF
33635 #define HAVE_LIBSUN 1
33636 _ACEOF
33637
33638   LIBS="-lsun $LIBS"
33639
33640 fi
33641
33642
33643
33644 for ac_header in zlib.h
33645 do
33646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33651   echo $ECHO_N "(cached) $ECHO_C" >&6
33652 fi
33653 ac_res=`eval echo '${'$as_ac_Header'}'`
33654                { echo "$as_me:$LINENO: result: $ac_res" >&5
33655 echo "${ECHO_T}$ac_res" >&6; }
33656 else
33657   # Is the header compilable?
33658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33660 cat >conftest.$ac_ext <<_ACEOF
33661 /* confdefs.h.  */
33662 _ACEOF
33663 cat confdefs.h >>conftest.$ac_ext
33664 cat >>conftest.$ac_ext <<_ACEOF
33665 /* end confdefs.h.  */
33666 $ac_includes_default
33667 #include <$ac_header>
33668 _ACEOF
33669 rm -f conftest.$ac_objext
33670 if { (ac_try="$ac_compile"
33671 case "(($ac_try" in
33672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673   *) ac_try_echo=$ac_try;;
33674 esac
33675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676   (eval "$ac_compile") 2>conftest.er1
33677   ac_status=$?
33678   grep -v '^ *+' conftest.er1 >conftest.err
33679   rm -f conftest.er1
33680   cat conftest.err >&5
33681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682   (exit $ac_status); } && {
33683          test -z "$ac_c_werror_flag" ||
33684          test ! -s conftest.err
33685        } && test -s conftest.$ac_objext; then
33686   ac_header_compiler=yes
33687 else
33688   echo "$as_me: failed program was:" >&5
33689 sed 's/^/| /' conftest.$ac_ext >&5
33690
33691         ac_header_compiler=no
33692 fi
33693
33694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33696 echo "${ECHO_T}$ac_header_compiler" >&6; }
33697
33698 # Is the header present?
33699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33701 cat >conftest.$ac_ext <<_ACEOF
33702 /* confdefs.h.  */
33703 _ACEOF
33704 cat confdefs.h >>conftest.$ac_ext
33705 cat >>conftest.$ac_ext <<_ACEOF
33706 /* end confdefs.h.  */
33707 #include <$ac_header>
33708 _ACEOF
33709 if { (ac_try="$ac_cpp conftest.$ac_ext"
33710 case "(($ac_try" in
33711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33712   *) ac_try_echo=$ac_try;;
33713 esac
33714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33716   ac_status=$?
33717   grep -v '^ *+' conftest.er1 >conftest.err
33718   rm -f conftest.er1
33719   cat conftest.err >&5
33720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721   (exit $ac_status); } >/dev/null && {
33722          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33723          test ! -s conftest.err
33724        }; then
33725   ac_header_preproc=yes
33726 else
33727   echo "$as_me: failed program was:" >&5
33728 sed 's/^/| /' conftest.$ac_ext >&5
33729
33730   ac_header_preproc=no
33731 fi
33732
33733 rm -f conftest.err conftest.$ac_ext
33734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33735 echo "${ECHO_T}$ac_header_preproc" >&6; }
33736
33737 # So?  What about this header?
33738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33739   yes:no: )
33740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33744     ac_header_preproc=yes
33745     ;;
33746   no:yes:* )
33747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33759
33760     ;;
33761 esac
33762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33765   echo $ECHO_N "(cached) $ECHO_C" >&6
33766 else
33767   eval "$as_ac_Header=\$ac_header_preproc"
33768 fi
33769 ac_res=`eval echo '${'$as_ac_Header'}'`
33770                { echo "$as_me:$LINENO: result: $ac_res" >&5
33771 echo "${ECHO_T}$ac_res" >&6; }
33772
33773 fi
33774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33775   cat >>confdefs.h <<_ACEOF
33776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33777 _ACEOF
33778
33779 fi
33780
33781 done
33782
33783 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33784 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33785 if test "${ac_cv_lib_z_deflate+set}" = set; then
33786   echo $ECHO_N "(cached) $ECHO_C" >&6
33787 else
33788   ac_check_lib_save_LIBS=$LIBS
33789 LIBS="-lz  $LIBS"
33790 cat >conftest.$ac_ext <<_ACEOF
33791 /* confdefs.h.  */
33792 _ACEOF
33793 cat confdefs.h >>conftest.$ac_ext
33794 cat >>conftest.$ac_ext <<_ACEOF
33795 /* end confdefs.h.  */
33796
33797 /* Override any GCC internal prototype to avoid an error.
33798    Use char because int might match the return type of a GCC
33799    builtin and then its argument prototype would still apply.  */
33800 #ifdef __cplusplus
33801 extern "C"
33802 #endif
33803 char deflate ();
33804 int
33805 main ()
33806 {
33807 return deflate ();
33808   ;
33809   return 0;
33810 }
33811 _ACEOF
33812 rm -f conftest.$ac_objext conftest$ac_exeext
33813 if { (ac_try="$ac_link"
33814 case "(($ac_try" in
33815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33816   *) ac_try_echo=$ac_try;;
33817 esac
33818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33819   (eval "$ac_link") 2>conftest.er1
33820   ac_status=$?
33821   grep -v '^ *+' conftest.er1 >conftest.err
33822   rm -f conftest.er1
33823   cat conftest.err >&5
33824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825   (exit $ac_status); } && {
33826          test -z "$ac_c_werror_flag" ||
33827          test ! -s conftest.err
33828        } && test -s conftest$ac_exeext &&
33829        $as_test_x conftest$ac_exeext; then
33830   ac_cv_lib_z_deflate=yes
33831 else
33832   echo "$as_me: failed program was:" >&5
33833 sed 's/^/| /' conftest.$ac_ext >&5
33834
33835         ac_cv_lib_z_deflate=no
33836 fi
33837
33838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33839       conftest$ac_exeext conftest.$ac_ext
33840 LIBS=$ac_check_lib_save_LIBS
33841 fi
33842 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33843 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33844 if test $ac_cv_lib_z_deflate = yes; then
33845   FDLIBS="-lz"
33846 fi
33847
33848 have_zlib=no
33849 if test x$FDLIBS = x-lz; then
33850   cat >>confdefs.h <<\_ACEOF
33851 #define HAVE_LIBZ 1
33852 _ACEOF
33853
33854   have_zlib=yes
33855 fi
33856
33857 #
33858 # Check for ACL libraries
33859 #
33860 have_acl=no
33861 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33862   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33863 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33864 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33865   echo $ECHO_N "(cached) $ECHO_C" >&6
33866 fi
33867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33868 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33869 else
33870   # Is the header compilable?
33871 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33872 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33873 cat >conftest.$ac_ext <<_ACEOF
33874 /* confdefs.h.  */
33875 _ACEOF
33876 cat confdefs.h >>conftest.$ac_ext
33877 cat >>conftest.$ac_ext <<_ACEOF
33878 /* end confdefs.h.  */
33879 $ac_includes_default
33880 #include <sys/acl.h>
33881 _ACEOF
33882 rm -f conftest.$ac_objext
33883 if { (ac_try="$ac_compile"
33884 case "(($ac_try" in
33885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886   *) ac_try_echo=$ac_try;;
33887 esac
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889   (eval "$ac_compile") 2>conftest.er1
33890   ac_status=$?
33891   grep -v '^ *+' conftest.er1 >conftest.err
33892   rm -f conftest.er1
33893   cat conftest.err >&5
33894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895   (exit $ac_status); } && {
33896          test -z "$ac_c_werror_flag" ||
33897          test ! -s conftest.err
33898        } && test -s conftest.$ac_objext; then
33899   ac_header_compiler=yes
33900 else
33901   echo "$as_me: failed program was:" >&5
33902 sed 's/^/| /' conftest.$ac_ext >&5
33903
33904         ac_header_compiler=no
33905 fi
33906
33907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33909 echo "${ECHO_T}$ac_header_compiler" >&6; }
33910
33911 # Is the header present?
33912 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33913 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33914 cat >conftest.$ac_ext <<_ACEOF
33915 /* confdefs.h.  */
33916 _ACEOF
33917 cat confdefs.h >>conftest.$ac_ext
33918 cat >>conftest.$ac_ext <<_ACEOF
33919 /* end confdefs.h.  */
33920 #include <sys/acl.h>
33921 _ACEOF
33922 if { (ac_try="$ac_cpp conftest.$ac_ext"
33923 case "(($ac_try" in
33924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33925   *) ac_try_echo=$ac_try;;
33926 esac
33927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33929   ac_status=$?
33930   grep -v '^ *+' conftest.er1 >conftest.err
33931   rm -f conftest.er1
33932   cat conftest.err >&5
33933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934   (exit $ac_status); } >/dev/null && {
33935          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33936          test ! -s conftest.err
33937        }; then
33938   ac_header_preproc=yes
33939 else
33940   echo "$as_me: failed program was:" >&5
33941 sed 's/^/| /' conftest.$ac_ext >&5
33942
33943   ac_header_preproc=no
33944 fi
33945
33946 rm -f conftest.err conftest.$ac_ext
33947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33948 echo "${ECHO_T}$ac_header_preproc" >&6; }
33949
33950 # So?  What about this header?
33951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33952   yes:no: )
33953     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33954 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33955     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33956 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33957     ac_header_preproc=yes
33958     ;;
33959   no:yes:* )
33960     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33961 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33962     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
33963 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
33964     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33965 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33966     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
33967 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33968     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33969 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33970     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33971 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33972
33973     ;;
33974 esac
33975 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33976 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33977 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33978   echo $ECHO_N "(cached) $ECHO_C" >&6
33979 else
33980   ac_cv_header_sys_acl_h=$ac_header_preproc
33981 fi
33982 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33983 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33984
33985 fi
33986
33987
33988 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33989 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33990 if test "${ac_cv_func_acl_get_file+set}" = set; then
33991   echo $ECHO_N "(cached) $ECHO_C" >&6
33992 else
33993   cat >conftest.$ac_ext <<_ACEOF
33994 /* confdefs.h.  */
33995 _ACEOF
33996 cat confdefs.h >>conftest.$ac_ext
33997 cat >>conftest.$ac_ext <<_ACEOF
33998 /* end confdefs.h.  */
33999 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
34000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34001 #define acl_get_file innocuous_acl_get_file
34002
34003 /* System header to define __stub macros and hopefully few prototypes,
34004     which can conflict with char acl_get_file (); below.
34005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34006     <limits.h> exists even on freestanding compilers.  */
34007
34008 #ifdef __STDC__
34009 # include <limits.h>
34010 #else
34011 # include <assert.h>
34012 #endif
34013
34014 #undef acl_get_file
34015
34016 /* Override any GCC internal prototype to avoid an error.
34017    Use char because int might match the return type of a GCC
34018    builtin and then its argument prototype would still apply.  */
34019 #ifdef __cplusplus
34020 extern "C"
34021 #endif
34022 char acl_get_file ();
34023 /* The GNU C library defines this for functions which it implements
34024     to always fail with ENOSYS.  Some functions are actually named
34025     something starting with __ and the normal name is an alias.  */
34026 #if defined __stub_acl_get_file || defined __stub___acl_get_file
34027 choke me
34028 #endif
34029
34030 int
34031 main ()
34032 {
34033 return acl_get_file ();
34034   ;
34035   return 0;
34036 }
34037 _ACEOF
34038 rm -f conftest.$ac_objext conftest$ac_exeext
34039 if { (ac_try="$ac_link"
34040 case "(($ac_try" in
34041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34042   *) ac_try_echo=$ac_try;;
34043 esac
34044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34045   (eval "$ac_link") 2>conftest.er1
34046   ac_status=$?
34047   grep -v '^ *+' conftest.er1 >conftest.err
34048   rm -f conftest.er1
34049   cat conftest.err >&5
34050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051   (exit $ac_status); } && {
34052          test -z "$ac_c_werror_flag" ||
34053          test ! -s conftest.err
34054        } && test -s conftest$ac_exeext &&
34055        $as_test_x conftest$ac_exeext; then
34056   ac_cv_func_acl_get_file=yes
34057 else
34058   echo "$as_me: failed program was:" >&5
34059 sed 's/^/| /' conftest.$ac_ext >&5
34060
34061         ac_cv_func_acl_get_file=no
34062 fi
34063
34064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34065       conftest$ac_exeext conftest.$ac_ext
34066 fi
34067 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
34068 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
34069 if test $ac_cv_func_acl_get_file = yes; then
34070   have_acl=yes
34071 else
34072   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
34073 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
34074 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
34075   echo $ECHO_N "(cached) $ECHO_C" >&6
34076 else
34077   ac_check_lib_save_LIBS=$LIBS
34078 LIBS="-lacl  $LIBS"
34079 cat >conftest.$ac_ext <<_ACEOF
34080 /* confdefs.h.  */
34081 _ACEOF
34082 cat confdefs.h >>conftest.$ac_ext
34083 cat >>conftest.$ac_ext <<_ACEOF
34084 /* end confdefs.h.  */
34085
34086 /* Override any GCC internal prototype to avoid an error.
34087    Use char because int might match the return type of a GCC
34088    builtin and then its argument prototype would still apply.  */
34089 #ifdef __cplusplus
34090 extern "C"
34091 #endif
34092 char acl_get_file ();
34093 int
34094 main ()
34095 {
34096 return acl_get_file ();
34097   ;
34098   return 0;
34099 }
34100 _ACEOF
34101 rm -f conftest.$ac_objext conftest$ac_exeext
34102 if { (ac_try="$ac_link"
34103 case "(($ac_try" in
34104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34105   *) ac_try_echo=$ac_try;;
34106 esac
34107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34108   (eval "$ac_link") 2>conftest.er1
34109   ac_status=$?
34110   grep -v '^ *+' conftest.er1 >conftest.err
34111   rm -f conftest.er1
34112   cat conftest.err >&5
34113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114   (exit $ac_status); } && {
34115          test -z "$ac_c_werror_flag" ||
34116          test ! -s conftest.err
34117        } && test -s conftest$ac_exeext &&
34118        $as_test_x conftest$ac_exeext; then
34119   ac_cv_lib_acl_acl_get_file=yes
34120 else
34121   echo "$as_me: failed program was:" >&5
34122 sed 's/^/| /' conftest.$ac_ext >&5
34123
34124         ac_cv_lib_acl_acl_get_file=no
34125 fi
34126
34127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34128       conftest$ac_exeext conftest.$ac_ext
34129 LIBS=$ac_check_lib_save_LIBS
34130 fi
34131 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
34132 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
34133 if test $ac_cv_lib_acl_acl_get_file = yes; then
34134   have_acl=yes; FDLIBS="-lacl $FDLIBS"
34135 else
34136   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
34137 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
34138 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
34139   echo $ECHO_N "(cached) $ECHO_C" >&6
34140 else
34141   ac_check_lib_save_LIBS=$LIBS
34142 LIBS="-lsec  $LIBS"
34143 cat >conftest.$ac_ext <<_ACEOF
34144 /* confdefs.h.  */
34145 _ACEOF
34146 cat confdefs.h >>conftest.$ac_ext
34147 cat >>conftest.$ac_ext <<_ACEOF
34148 /* end confdefs.h.  */
34149
34150 /* Override any GCC internal prototype to avoid an error.
34151    Use char because int might match the return type of a GCC
34152    builtin and then its argument prototype would still apply.  */
34153 #ifdef __cplusplus
34154 extern "C"
34155 #endif
34156 char acltotext ();
34157 int
34158 main ()
34159 {
34160 return acltotext ();
34161   ;
34162   return 0;
34163 }
34164 _ACEOF
34165 rm -f conftest.$ac_objext conftest$ac_exeext
34166 if { (ac_try="$ac_link"
34167 case "(($ac_try" in
34168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34169   *) ac_try_echo=$ac_try;;
34170 esac
34171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34172   (eval "$ac_link") 2>conftest.er1
34173   ac_status=$?
34174   grep -v '^ *+' conftest.er1 >conftest.err
34175   rm -f conftest.er1
34176   cat conftest.err >&5
34177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34178   (exit $ac_status); } && {
34179          test -z "$ac_c_werror_flag" ||
34180          test ! -s conftest.err
34181        } && test -s conftest$ac_exeext &&
34182        $as_test_x conftest$ac_exeext; then
34183   ac_cv_lib_sec_acltotext=yes
34184 else
34185   echo "$as_me: failed program was:" >&5
34186 sed 's/^/| /' conftest.$ac_ext >&5
34187
34188         ac_cv_lib_sec_acltotext=no
34189 fi
34190
34191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34192       conftest$ac_exeext conftest.$ac_ext
34193 LIBS=$ac_check_lib_save_LIBS
34194 fi
34195 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
34196 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
34197 if test $ac_cv_lib_sec_acltotext = yes; then
34198   have_acl=yes; FDLIBS="-lsec $FDLIBS"
34199 fi
34200
34201
34202 fi
34203
34204
34205 fi
34206
34207 if test $have_acl = yes; then
34208    cat >>confdefs.h <<\_ACEOF
34209 #define HAVE_ACL 1
34210 _ACEOF
34211
34212 fi
34213
34214 PTHREAD_LIB=""
34215 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
34216 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
34217 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
34218   echo $ECHO_N "(cached) $ECHO_C" >&6
34219 else
34220   ac_check_lib_save_LIBS=$LIBS
34221 LIBS="-lpthread  $LIBS"
34222 cat >conftest.$ac_ext <<_ACEOF
34223 /* confdefs.h.  */
34224 _ACEOF
34225 cat confdefs.h >>conftest.$ac_ext
34226 cat >>conftest.$ac_ext <<_ACEOF
34227 /* end confdefs.h.  */
34228
34229 /* Override any GCC internal prototype to avoid an error.
34230    Use char because int might match the return type of a GCC
34231    builtin and then its argument prototype would still apply.  */
34232 #ifdef __cplusplus
34233 extern "C"
34234 #endif
34235 char pthread_create ();
34236 int
34237 main ()
34238 {
34239 return pthread_create ();
34240   ;
34241   return 0;
34242 }
34243 _ACEOF
34244 rm -f conftest.$ac_objext conftest$ac_exeext
34245 if { (ac_try="$ac_link"
34246 case "(($ac_try" in
34247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34248   *) ac_try_echo=$ac_try;;
34249 esac
34250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34251   (eval "$ac_link") 2>conftest.er1
34252   ac_status=$?
34253   grep -v '^ *+' conftest.er1 >conftest.err
34254   rm -f conftest.er1
34255   cat conftest.err >&5
34256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257   (exit $ac_status); } && {
34258          test -z "$ac_c_werror_flag" ||
34259          test ! -s conftest.err
34260        } && test -s conftest$ac_exeext &&
34261        $as_test_x conftest$ac_exeext; then
34262   ac_cv_lib_pthread_pthread_create=yes
34263 else
34264   echo "$as_me: failed program was:" >&5
34265 sed 's/^/| /' conftest.$ac_ext >&5
34266
34267         ac_cv_lib_pthread_pthread_create=no
34268 fi
34269
34270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34271       conftest$ac_exeext conftest.$ac_ext
34272 LIBS=$ac_check_lib_save_LIBS
34273 fi
34274 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
34275 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
34276 if test $ac_cv_lib_pthread_pthread_create = yes; then
34277   PTHREAD_LIB="-lpthread"
34278 else
34279   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
34280 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
34281 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
34282   echo $ECHO_N "(cached) $ECHO_C" >&6
34283 else
34284   ac_check_lib_save_LIBS=$LIBS
34285 LIBS="-lpthreads  $LIBS"
34286 cat >conftest.$ac_ext <<_ACEOF
34287 /* confdefs.h.  */
34288 _ACEOF
34289 cat confdefs.h >>conftest.$ac_ext
34290 cat >>conftest.$ac_ext <<_ACEOF
34291 /* end confdefs.h.  */
34292
34293 /* Override any GCC internal prototype to avoid an error.
34294    Use char because int might match the return type of a GCC
34295    builtin and then its argument prototype would still apply.  */
34296 #ifdef __cplusplus
34297 extern "C"
34298 #endif
34299 char pthread_create ();
34300 int
34301 main ()
34302 {
34303 return pthread_create ();
34304   ;
34305   return 0;
34306 }
34307 _ACEOF
34308 rm -f conftest.$ac_objext conftest$ac_exeext
34309 if { (ac_try="$ac_link"
34310 case "(($ac_try" in
34311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34312   *) ac_try_echo=$ac_try;;
34313 esac
34314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34315   (eval "$ac_link") 2>conftest.er1
34316   ac_status=$?
34317   grep -v '^ *+' conftest.er1 >conftest.err
34318   rm -f conftest.er1
34319   cat conftest.err >&5
34320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321   (exit $ac_status); } && {
34322          test -z "$ac_c_werror_flag" ||
34323          test ! -s conftest.err
34324        } && test -s conftest$ac_exeext &&
34325        $as_test_x conftest$ac_exeext; then
34326   ac_cv_lib_pthreads_pthread_create=yes
34327 else
34328   echo "$as_me: failed program was:" >&5
34329 sed 's/^/| /' conftest.$ac_ext >&5
34330
34331         ac_cv_lib_pthreads_pthread_create=no
34332 fi
34333
34334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34335       conftest$ac_exeext conftest.$ac_ext
34336 LIBS=$ac_check_lib_save_LIBS
34337 fi
34338 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
34339 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
34340 if test $ac_cv_lib_pthreads_pthread_create = yes; then
34341   PTHREAD_LIB="-lpthreads"
34342 else
34343   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
34344 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
34345 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
34346   echo $ECHO_N "(cached) $ECHO_C" >&6
34347 else
34348   ac_check_lib_save_LIBS=$LIBS
34349 LIBS="-lc_r  $LIBS"
34350 cat >conftest.$ac_ext <<_ACEOF
34351 /* confdefs.h.  */
34352 _ACEOF
34353 cat confdefs.h >>conftest.$ac_ext
34354 cat >>conftest.$ac_ext <<_ACEOF
34355 /* end confdefs.h.  */
34356
34357 /* Override any GCC internal prototype to avoid an error.
34358    Use char because int might match the return type of a GCC
34359    builtin and then its argument prototype would still apply.  */
34360 #ifdef __cplusplus
34361 extern "C"
34362 #endif
34363 char pthread_create ();
34364 int
34365 main ()
34366 {
34367 return pthread_create ();
34368   ;
34369   return 0;
34370 }
34371 _ACEOF
34372 rm -f conftest.$ac_objext conftest$ac_exeext
34373 if { (ac_try="$ac_link"
34374 case "(($ac_try" in
34375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34376   *) ac_try_echo=$ac_try;;
34377 esac
34378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34379   (eval "$ac_link") 2>conftest.er1
34380   ac_status=$?
34381   grep -v '^ *+' conftest.er1 >conftest.err
34382   rm -f conftest.er1
34383   cat conftest.err >&5
34384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385   (exit $ac_status); } && {
34386          test -z "$ac_c_werror_flag" ||
34387          test ! -s conftest.err
34388        } && test -s conftest$ac_exeext &&
34389        $as_test_x conftest$ac_exeext; then
34390   ac_cv_lib_c_r_pthread_create=yes
34391 else
34392   echo "$as_me: failed program was:" >&5
34393 sed 's/^/| /' conftest.$ac_ext >&5
34394
34395         ac_cv_lib_c_r_pthread_create=no
34396 fi
34397
34398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34399       conftest$ac_exeext conftest.$ac_ext
34400 LIBS=$ac_check_lib_save_LIBS
34401 fi
34402 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
34403 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
34404 if test $ac_cv_lib_c_r_pthread_create = yes; then
34405   PTHREAD_LIB="-lc_r"
34406 else
34407   { echo "$as_me:$LINENO: checking for pthread_create" >&5
34408 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
34409 if test "${ac_cv_func_pthread_create+set}" = set; then
34410   echo $ECHO_N "(cached) $ECHO_C" >&6
34411 else
34412   cat >conftest.$ac_ext <<_ACEOF
34413 /* confdefs.h.  */
34414 _ACEOF
34415 cat confdefs.h >>conftest.$ac_ext
34416 cat >>conftest.$ac_ext <<_ACEOF
34417 /* end confdefs.h.  */
34418 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
34419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34420 #define pthread_create innocuous_pthread_create
34421
34422 /* System header to define __stub macros and hopefully few prototypes,
34423     which can conflict with char pthread_create (); below.
34424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34425     <limits.h> exists even on freestanding compilers.  */
34426
34427 #ifdef __STDC__
34428 # include <limits.h>
34429 #else
34430 # include <assert.h>
34431 #endif
34432
34433 #undef pthread_create
34434
34435 /* Override any GCC internal prototype to avoid an error.
34436    Use char because int might match the return type of a GCC
34437    builtin and then its argument prototype would still apply.  */
34438 #ifdef __cplusplus
34439 extern "C"
34440 #endif
34441 char pthread_create ();
34442 /* The GNU C library defines this for functions which it implements
34443     to always fail with ENOSYS.  Some functions are actually named
34444     something starting with __ and the normal name is an alias.  */
34445 #if defined __stub_pthread_create || defined __stub___pthread_create
34446 choke me
34447 #endif
34448
34449 int
34450 main ()
34451 {
34452 return pthread_create ();
34453   ;
34454   return 0;
34455 }
34456 _ACEOF
34457 rm -f conftest.$ac_objext conftest$ac_exeext
34458 if { (ac_try="$ac_link"
34459 case "(($ac_try" in
34460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34461   *) ac_try_echo=$ac_try;;
34462 esac
34463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34464   (eval "$ac_link") 2>conftest.er1
34465   ac_status=$?
34466   grep -v '^ *+' conftest.er1 >conftest.err
34467   rm -f conftest.er1
34468   cat conftest.err >&5
34469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34470   (exit $ac_status); } && {
34471          test -z "$ac_c_werror_flag" ||
34472          test ! -s conftest.err
34473        } && test -s conftest$ac_exeext &&
34474        $as_test_x conftest$ac_exeext; then
34475   ac_cv_func_pthread_create=yes
34476 else
34477   echo "$as_me: failed program was:" >&5
34478 sed 's/^/| /' conftest.$ac_ext >&5
34479
34480         ac_cv_func_pthread_create=no
34481 fi
34482
34483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34484       conftest$ac_exeext conftest.$ac_ext
34485 fi
34486 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
34487 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
34488
34489
34490 fi
34491
34492
34493 fi
34494
34495
34496 fi
34497
34498
34499
34500 cat >>confdefs.h <<\_ACEOF
34501 #define FDLIBS 1
34502 _ACEOF
34503
34504
34505
34506 CFLAGS=${CFLAGS--O}
34507
34508 if test x$have_gcc = xyes ; then
34509    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
34510    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
34511 fi
34512 LDFLAGS=${LDFLAGS--O}
34513 DB_LIBS="${SQL_LFLAGS}"
34514 CPPFLAGS="$CPPFLAGS"
34515 CFLAGS="$CFLAGS"
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
34532 OBJLIST=
34533
34534
34535 lld="lld"
34536 llu="llu"
34537
34538 WCFLAGS=
34539 WLDFLAGS=
34540
34541 #
34542 # Finally we set appropriate distribution specific
34543 #  variables and defaults
34544 #
34545 # PFILES are platform specific files
34546 PFILES="platforms/Makefile"
34547 PSCMD="ps -e"
34548 WIN32=
34549 MACOSX=
34550 hostname=`uname -n | cut -d '.' -f 1`
34551 if test x${hostname} = x ; then
34552   hostname="localhost"
34553 fi
34554 case "$DISTNAME" in
34555 aix)
34556         DISTVER=`uname -r`
34557         PSCMD="ps -e -o pid,comm"
34558         PFILES="${PFILES} \
34559            platforms/aix/Makefile"
34560         TAPEDRIVE="/dev/rmt0.1"
34561   ;;
34562 alpha)
34563         DISTVER=`uname -r`
34564         PTHREAD_LIB="-lpthread -lexc"
34565         if test "${CC}" = "gcc" ; then
34566            lld="lld"
34567            llu="llu"
34568         else
34569            lld="ld"
34570            llu="lu"
34571         fi
34572         TAPEDRIVE="/dev/nrmt0"
34573   ;;
34574 bsdi)
34575         DISTVER=`uname -a |awk '{print $3}'`
34576         TAPEDRIVE="/dev/nrmt0"
34577         PTHREAD_LIB="-pthread"
34578         CFLAGS="${CFLAGS} -pthread"
34579         PSCMD="ps -ax -o pid,command"
34580         lld="qd"
34581         llu="qu"
34582         PFILES="${PFILES} \
34583             platforms/bsdi/Makefile \
34584             platforms/bsdi/bacula-fd \
34585             platforms/bsdi/bacula-sd \
34586             platforms/bsdi/bacula-dir"
34587         largefile_support="yes"
34588   ;;
34589 cygwin)
34590         DISTVER=`uname -a |awk '{print $3}'`
34591         TAPEDRIVE="/dev/nrst0"
34592         WIN32=win32
34593         WCFLAGS="-mwindows"
34594         WLDFLAGS="-mwindows"
34595   ;;
34596 darwin)
34597         DISTVER=`uname -r`
34598         TAPEDRIVE="/dev/nst0"
34599         PSCMD="ps -e -o pid,command"
34600         MACOSX=macosx
34601         PFILES="${PFILES} \
34602            platforms/darwin/Makefile"
34603   ;;
34604 debian)
34605 #       Make sure hostname is resolved
34606         ping -c 1 $hostname 2>&1 1>/dev/null
34607         if test ! $? = 0; then
34608            hostname="localhost"
34609         }
34610         if `grep -q ubuntu /etc/apt/sources.list`; then
34611            DISTNAME="ubuntu"
34612         fi
34613         DISTVER=`cat /etc/debian_version`
34614         if test -f /etc/lsb-release ; then
34615            . /etc/lsb-release
34616            if test "x$DISTRIB_ID" != "x" ; then
34617               DISTNAME=$DISTRIB_ID
34618            fi
34619            if test "x$DISTRIB_RELEASE" != "x" ; then
34620               DISTVER=$DISTRIB_RELEASE
34621            fi
34622         fi
34623         if test "$DISTNAME" = "Ubuntu" ; then
34624            DISTNAME="ubuntu"
34625         fi
34626         TAPEDRIVE="/dev/nst0"
34627         PSCMD="ps -e -o pid,command"
34628         if test "$DISTNAME" = "ubuntu" ; then
34629            PFILES="${PFILES} \
34630               platforms/ubuntu/Makefile \
34631               platforms/ubuntu/bacula-fd \
34632               platforms/ubuntu/bacula-sd \
34633               platforms/ubuntu/bacula-dir"
34634         else
34635            PFILES="${PFILES} \
34636               platforms/debian/Makefile \
34637               platforms/debian/bacula-fd \
34638               platforms/debian/bacula-sd \
34639               platforms/debian/bacula-dir"
34640         fi
34641   ;;
34642 freebsd)
34643 #       Make sure hostname is resolved
34644         ping -c 1 $hostname 2>&1 1>/dev/null
34645         if test ! $? = 0; then
34646            hostname="localhost"
34647         }
34648         if `grep -q ubuntu /etc/apt/sources.list`; then
34649            DISTNAME="ubuntu"
34650         fi
34651         DISTVER=`uname -a |awk '{print $3}'`
34652         VER=`echo $DISTVER | cut -c 1`
34653         if test x$VER = x4 ; then
34654            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
34655            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
34656         fi
34657         lld="qd"
34658         llu="qu"
34659         TAPEDRIVE="/dev/nrsa0"
34660         PSCMD="ps -ax -o pid,command"
34661         PFILES="${PFILES} \
34662             platforms/freebsd/Makefile \
34663             platforms/freebsd/bacula-fd \
34664             platforms/freebsd/bacula-sd \
34665             platforms/freebsd/bacula-dir"
34666         largefile_support="yes"
34667   ;;
34668 hpux)
34669         PSCMD="UNIX95=1; ps -e -o pid,comm"
34670         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34671         DISTVER=`uname -r`
34672         TAPEDRIVE="/dev/rmt/0hnb"
34673         PTHREAD_LIB="-lpthread"
34674         cat >>confdefs.h <<\_ACEOF
34675 #define _INCLUDE_LONGLONG 1
34676 _ACEOF
34677
34678   ;;
34679 irix)
34680         DISTVER=`uname -r`
34681         TAPEDRIVE="/dev/rmt/0cbn"
34682         PSCMD="ps -e -o pid,comm"
34683         PFILES="${PFILES} \
34684             platforms/irix/Makefile \
34685             platforms/irix/bacula-fd \
34686             platforms/irix/bacula-sd \
34687             platforms/irix/bacula-dir"
34688   ;;
34689 netbsd)
34690         DISTVER=`uname -a |awk '{print $3}'`
34691         lld="qd"
34692         llu="qu"
34693         TAPEDRIVE="/dev/nrst0"
34694         PSCMD="ps -ax -o pid,command"
34695         PTHREAD_LIB="-pthread"
34696         CFLAGS="${CFLAGS} -pthread"
34697   ;;
34698 openbsd)
34699         DISTVER=`uname -a |awk '{print $3}'`
34700         lld="qd"
34701         llu="qu"
34702         TAPEDRIVE="/dev/nrst0"
34703         PSCMD="ps -ax -o pid,command"
34704         PTHREAD_LIB="-pthread"
34705         CFLAGS="${CFLAGS} -pthread"
34706         PFILES="${PFILES} \
34707             platforms/openbsd/Makefile \
34708             platforms/openbsd/bacula-fd \
34709             platforms/openbsd/bacula-sd \
34710             platforms/openbsd/bacula-dir"
34711   ;;
34712 redhat)
34713 #       Make sure hostname is resolved
34714         ping -c 1 $hostname 2>&1 1>/dev/null
34715         if test ! $? = 0; then
34716            hostname="localhost"
34717         }
34718         if `grep -q ubuntu /etc/apt/sources.list`; then
34719            DISTNAME="ubuntu"
34720         fi
34721         if test -f /etc/whitebox-release ; then
34722            f=/etc/whitebox-release
34723         else
34724            f=/etc/redhat-release
34725         fi
34726         if test `cat $f | grep release |\
34727                    cut -f 3 -d ' '`x = "Enterprise"x ; then
34728            DISTVER="Enterprise "`cat $f | grep release |\
34729                     cut -f 6 -d ' '`
34730         else
34731             DISTVER=`cat /etc/redhat-release | grep release |\
34732                      cut -f 5 -d ' '`
34733         fi
34734         TAPEDRIVE="/dev/nst0"
34735         PSCMD="ps -e -o pid,command"
34736         PFILES="${PFILES} \
34737             platforms/redhat/Makefile \
34738             platforms/redhat/bacula-fd \
34739             platforms/redhat/bacula-sd \
34740             platforms/redhat/bacula-dir \
34741             platforms/redhat/bacula.spec \
34742             "
34743   ;;
34744 mandrake)
34745 #       Make sure hostname is resolved
34746         ping -c 1 $hostname 2>&1 1>/dev/null
34747         if test ! $? = 0; then
34748            hostname="localhost"
34749         }
34750         if `grep -q ubuntu /etc/apt/sources.list`; then
34751            DISTNAME="ubuntu"
34752         fi
34753         DISTVER=`cat /etc/mandrake-release | grep release |\
34754            cut -f 5 -d ' '`
34755         TAPEDRIVE="/dev/nst0"
34756         PSCMD="ps -e -o pid,command"
34757         PFILES="${PFILES} \
34758             platforms/mandrake/Makefile \
34759             platforms/mandrake/bacula-fd \
34760             platforms/mandrake/bacula-sd \
34761             platforms/mandrake/bacula-dir \
34762             platforms/mandrake/bacula.spec \
34763             "
34764   ;;
34765 gentoo)
34766 #       Make sure hostname is resolved
34767         ping -c 1 $hostname 2>&1 1>/dev/null
34768         if test ! $? = 0; then
34769            hostname="localhost"
34770         }
34771         if `grep -q ubuntu /etc/apt/sources.list`; then
34772            DISTNAME="ubuntu"
34773         fi
34774         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34775         TAPEDRIVE="/dev/nst0"
34776         PSCMD="ps -e -o pid,command"
34777         PFILES="${PFILES} \
34778             platforms/gentoo/Makefile \
34779          platforms/gentoo/bacula-init \
34780             platforms/gentoo/bacula-fd \
34781             platforms/gentoo/bacula-sd \
34782             platforms/gentoo/bacula-dir"
34783   ;;
34784 slackware)
34785 #       Make sure hostname is resolved
34786         ping -c 1 $hostname 2>&1 1>/dev/null
34787         if test ! $? = 0; then
34788            hostname="localhost"
34789         }
34790         if `grep -q ubuntu /etc/apt/sources.list`; then
34791            DISTNAME="ubuntu"
34792         fi
34793         DISTVER=`cat /etc/slackware-version`
34794         TAPEDRIVE="/dev/nst0"
34795         PSCMD="ps -e -o pid,command"
34796         PFILES="${PFILES} \
34797             platforms/slackware/Makefile \
34798             platforms/slackware/rc.bacula-fd \
34799             platforms/slackware/rc.bacula-sd \
34800             platforms/slackware/rc.bacula-dir\
34801             platforms/slackware/functions.bacula"
34802   ;;
34803 solaris)
34804         DISTVER=`uname -r`
34805         TAPEDRIVE="/dev/rmt/0cbn"
34806         PSCMD="ps -e -o pid,comm"
34807         PFILES="${PFILES} \
34808             platforms/solaris/Makefile \
34809             platforms/solaris/bacula-fd \
34810             platforms/solaris/bacula-sd \
34811             platforms/solaris/bacula-dir"
34812         if test x$DISTVER = x5.6 ; then
34813             cat >>confdefs.h <<\_ACEOF
34814 #define HAVE_OLD_SOCKOPT 1
34815 _ACEOF
34816
34817         fi
34818         LIBS="$LIBS -lresolv"
34819   ;;
34820 suse)
34821 #       Make sure hostname is resolved
34822         ping -c 1 $hostname 2>&1 1>/dev/null
34823         if test ! $? = 0; then
34824            hostname="localhost"
34825         }
34826         if `grep -q ubuntu /etc/apt/sources.list`; then
34827            DISTNAME="ubuntu"
34828         fi
34829         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34830             cut -f 3 -d ' '`
34831         TAPEDRIVE="/dev/nst0"
34832         PSCMD="ps -e -o pid,command"
34833         PFILES="${PFILES} \
34834             platforms/suse/Makefile \
34835             platforms/suse/bacula-fd \
34836             platforms/suse/bacula-sd \
34837             platforms/suse/bacula-dir \
34838             platforms/suse/bacula \
34839             platforms/suse/bacula.spec"
34840   ;;
34841 suse5)
34842 #       Make sure hostname is resolved
34843         ping -c 1 $hostname 2>&1 1>/dev/null
34844         if test ! $? = 0; then
34845            hostname="localhost"
34846         }
34847         if `grep -q ubuntu /etc/apt/sources.list`; then
34848            DISTNAME="ubuntu"
34849         fi
34850         DISTNAME=suse
34851         DISTVER=5.x
34852         TAPEDRIVE="/dev/nst0"
34853         PSCMD="ps -e -o pid,command"
34854         PFILES="${PFILES} \
34855             platforms/suse/Makefile \
34856             platforms/suse/bacula-fd \
34857             platforms/suse/bacula-sd \
34858             platforms/suse/bacula-dir"
34859   ;;
34860 unknown)
34861         DISTVER=unknown
34862         TAPEDRIVE="/dev/nst0"
34863   ;;
34864 *)
34865   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34866   ;;
34867 esac
34868
34869
34870
34871 LIBS="$PTHREAD_LIB $LIBS"
34872
34873 cat >>confdefs.h <<_ACEOF
34874 #define lld "$lld"
34875 _ACEOF
34876
34877 cat >>confdefs.h <<_ACEOF
34878 #define llu "$llu"
34879 _ACEOF
34880
34881
34882
34883
34884
34885
34886
34887
34888 MCOMMON=./autoconf/Make.common
34889
34890
34891 if test "x${subsysdir}" = "x${sbindir}" ; then
34892    echo " "
34893    echo " "
34894    echo "You have set both --sbindir and --with-subsys-dir"
34895    echo "  equal to: ${subsysdir} "
34896    echo "This is not permitted. Please reconfigure."
34897    echo " "
34898    echo "Aborting configuration ..."
34899    echo " "
34900    echo " "
34901    exit 1
34902 fi
34903
34904 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
34905
34906 ac_config_commands="$ac_config_commands default"
34907
34908 cat >confcache <<\_ACEOF
34909 # This file is a shell script that caches the results of configure
34910 # tests run on this system so they can be shared between configure
34911 # scripts and configure runs, see configure's option --config-cache.
34912 # It is not useful on other systems.  If it contains results you don't
34913 # want to keep, you may remove or edit it.
34914 #
34915 # config.status only pays attention to the cache file if you give it
34916 # the --recheck option to rerun configure.
34917 #
34918 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34919 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34920 # following values.
34921
34922 _ACEOF
34923
34924 # The following way of writing the cache mishandles newlines in values,
34925 # but we know of no workaround that is simple, portable, and efficient.
34926 # So, we kill variables containing newlines.
34927 # Ultrix sh set writes to stderr and can't be redirected directly,
34928 # and sets the high bit in the cache file unless we assign to the vars.
34929 (
34930   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34931     eval ac_val=\$$ac_var
34932     case $ac_val in #(
34933     *${as_nl}*)
34934       case $ac_var in #(
34935       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34936 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34937       esac
34938       case $ac_var in #(
34939       _ | IFS | as_nl) ;; #(
34940       *) $as_unset $ac_var ;;
34941       esac ;;
34942     esac
34943   done
34944
34945   (set) 2>&1 |
34946     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34947     *${as_nl}ac_space=\ *)
34948       # `set' does not quote correctly, so add quotes (double-quote
34949       # substitution turns \\\\ into \\, and sed turns \\ into \).
34950       sed -n \
34951         "s/'/'\\\\''/g;
34952           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34953       ;; #(
34954     *)
34955       # `set' quotes correctly as required by POSIX, so do not add quotes.
34956       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34957       ;;
34958     esac |
34959     sort
34960 ) |
34961   sed '
34962      /^ac_cv_env_/b end
34963      t clear
34964      :clear
34965      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34966      t end
34967      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34968      :end' >>confcache
34969 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34970   if test -w "$cache_file"; then
34971     test "x$cache_file" != "x/dev/null" &&
34972       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34973 echo "$as_me: updating cache $cache_file" >&6;}
34974     cat confcache >$cache_file
34975   else
34976     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34977 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34978   fi
34979 fi
34980 rm -f confcache
34981
34982 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34983 # Let make expand exec_prefix.
34984 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34985
34986 DEFS=-DHAVE_CONFIG_H
34987
34988 ac_libobjs=
34989 ac_ltlibobjs=
34990 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34991   # 1. Remove the extension, and $U if already installed.
34992   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34993   ac_i=`echo "$ac_i" | sed "$ac_script"`
34994   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34995   #    will be set to the directory where LIBOBJS objects are built.
34996   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34997   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34998 done
34999 LIBOBJS=$ac_libobjs
35000
35001 LTLIBOBJS=$ac_ltlibobjs
35002
35003
35004
35005 : ${CONFIG_STATUS=./config.status}
35006 ac_clean_files_save=$ac_clean_files
35007 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35008 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35009 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35010 cat >$CONFIG_STATUS <<_ACEOF
35011 #! $SHELL
35012 # Generated by $as_me.
35013 # Run this file to recreate the current configuration.
35014 # Compiler output produced by configure, useful for debugging
35015 # configure, is in config.log if it exists.
35016
35017 debug=false
35018 ac_cs_recheck=false
35019 ac_cs_silent=false
35020 SHELL=\${CONFIG_SHELL-$SHELL}
35021 _ACEOF
35022
35023 cat >>$CONFIG_STATUS <<\_ACEOF
35024 ## --------------------- ##
35025 ## M4sh Initialization.  ##
35026 ## --------------------- ##
35027
35028 # Be more Bourne compatible
35029 DUALCASE=1; export DUALCASE # for MKS sh
35030 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35031   emulate sh
35032   NULLCMD=:
35033   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35034   # is contrary to our usage.  Disable this feature.
35035   alias -g '${1+"$@"}'='"$@"'
35036   setopt NO_GLOB_SUBST
35037 else
35038   case `(set -o) 2>/dev/null` in
35039   *posix*) set -o posix ;;
35040 esac
35041
35042 fi
35043
35044
35045
35046
35047 # PATH needs CR
35048 # Avoid depending upon Character Ranges.
35049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35052 as_cr_digits='0123456789'
35053 as_cr_alnum=$as_cr_Letters$as_cr_digits
35054
35055 # The user is always right.
35056 if test "${PATH_SEPARATOR+set}" != set; then
35057   echo "#! /bin/sh" >conf$$.sh
35058   echo  "exit 0"   >>conf$$.sh
35059   chmod +x conf$$.sh
35060   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35061     PATH_SEPARATOR=';'
35062   else
35063     PATH_SEPARATOR=:
35064   fi
35065   rm -f conf$$.sh
35066 fi
35067
35068 # Support unset when possible.
35069 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35070   as_unset=unset
35071 else
35072   as_unset=false
35073 fi
35074
35075
35076 # IFS
35077 # We need space, tab and new line, in precisely that order.  Quoting is
35078 # there to prevent editors from complaining about space-tab.
35079 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35080 # splitting by setting IFS to empty value.)
35081 as_nl='
35082 '
35083 IFS=" ""        $as_nl"
35084
35085 # Find who we are.  Look in the path if we contain no directory separator.
35086 case $0 in
35087   *[\\/]* ) as_myself=$0 ;;
35088   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35089 for as_dir in $PATH
35090 do
35091   IFS=$as_save_IFS
35092   test -z "$as_dir" && as_dir=.
35093   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35094 done
35095 IFS=$as_save_IFS
35096
35097      ;;
35098 esac
35099 # We did not find ourselves, most probably we were run as `sh COMMAND'
35100 # in which case we are not to be found in the path.
35101 if test "x$as_myself" = x; then
35102   as_myself=$0
35103 fi
35104 if test ! -f "$as_myself"; then
35105   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35106   { (exit 1); exit 1; }
35107 fi
35108
35109 # Work around bugs in pre-3.0 UWIN ksh.
35110 for as_var in ENV MAIL MAILPATH
35111 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35112 done
35113 PS1='$ '
35114 PS2='> '
35115 PS4='+ '
35116
35117 # NLS nuisances.
35118 for as_var in \
35119   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35120   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35121   LC_TELEPHONE LC_TIME
35122 do
35123   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35124     eval $as_var=C; export $as_var
35125   else
35126     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35127   fi
35128 done
35129
35130 # Required to use basename.
35131 if expr a : '\(a\)' >/dev/null 2>&1 &&
35132    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35133   as_expr=expr
35134 else
35135   as_expr=false
35136 fi
35137
35138 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35139   as_basename=basename
35140 else
35141   as_basename=false
35142 fi
35143
35144
35145 # Name of the executable.
35146 as_me=`$as_basename -- "$0" ||
35147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35148          X"$0" : 'X\(//\)$' \| \
35149          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35150 echo X/"$0" |
35151     sed '/^.*\/\([^/][^/]*\)\/*$/{
35152             s//\1/
35153             q
35154           }
35155           /^X\/\(\/\/\)$/{
35156             s//\1/
35157             q
35158           }
35159           /^X\/\(\/\).*/{
35160             s//\1/
35161             q
35162           }
35163           s/.*/./; q'`
35164
35165 # CDPATH.
35166 $as_unset CDPATH
35167
35168
35169
35170   as_lineno_1=$LINENO
35171   as_lineno_2=$LINENO
35172   test "x$as_lineno_1" != "x$as_lineno_2" &&
35173   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35174
35175   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35176   # uniformly replaced by the line number.  The first 'sed' inserts a
35177   # line-number line after each line using $LINENO; the second 'sed'
35178   # does the real work.  The second script uses 'N' to pair each
35179   # line-number line with the line containing $LINENO, and appends
35180   # trailing '-' during substitution so that $LINENO is not a special
35181   # case at line end.
35182   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35183   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35184   # E. McMahon (1931-1989) for sed's syntax.  :-)
35185   sed -n '
35186     p
35187     /[$]LINENO/=
35188   ' <$as_myself |
35189     sed '
35190       s/[$]LINENO.*/&-/
35191       t lineno
35192       b
35193       :lineno
35194       N
35195       :loop
35196       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35197       t loop
35198       s/-\n.*//
35199     ' >$as_me.lineno &&
35200   chmod +x "$as_me.lineno" ||
35201     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35202    { (exit 1); exit 1; }; }
35203
35204   # Don't try to exec as it changes $[0], causing all sort of problems
35205   # (the dirname of $[0] is not the place where we might find the
35206   # original and so on.  Autoconf is especially sensitive to this).
35207   . "./$as_me.lineno"
35208   # Exit status is that of the last command.
35209   exit
35210 }
35211
35212
35213 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35214   as_dirname=dirname
35215 else
35216   as_dirname=false
35217 fi
35218
35219 ECHO_C= ECHO_N= ECHO_T=
35220 case `echo -n x` in
35221 -n*)
35222   case `echo 'x\c'` in
35223   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35224   *)   ECHO_C='\c';;
35225   esac;;
35226 *)
35227   ECHO_N='-n';;
35228 esac
35229
35230 if expr a : '\(a\)' >/dev/null 2>&1 &&
35231    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35232   as_expr=expr
35233 else
35234   as_expr=false
35235 fi
35236
35237 rm -f conf$$ conf$$.exe conf$$.file
35238 if test -d conf$$.dir; then
35239   rm -f conf$$.dir/conf$$.file
35240 else
35241   rm -f conf$$.dir
35242   mkdir conf$$.dir
35243 fi
35244 echo >conf$$.file
35245 if ln -s conf$$.file conf$$ 2>/dev/null; then
35246   as_ln_s='ln -s'
35247   # ... but there are two gotchas:
35248   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35249   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35250   # In both cases, we have to default to `cp -p'.
35251   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35252     as_ln_s='cp -p'
35253 elif ln conf$$.file conf$$ 2>/dev/null; then
35254   as_ln_s=ln
35255 else
35256   as_ln_s='cp -p'
35257 fi
35258 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35259 rmdir conf$$.dir 2>/dev/null
35260
35261 if mkdir -p . 2>/dev/null; then
35262   as_mkdir_p=:
35263 else
35264   test -d ./-p && rmdir ./-p
35265   as_mkdir_p=false
35266 fi
35267
35268 if test -x / >/dev/null 2>&1; then
35269   as_test_x='test -x'
35270 else
35271   if ls -dL / >/dev/null 2>&1; then
35272     as_ls_L_option=L
35273   else
35274     as_ls_L_option=
35275   fi
35276   as_test_x='
35277     eval sh -c '\''
35278       if test -d "$1"; then
35279         test -d "$1/.";
35280       else
35281         case $1 in
35282         -*)set "./$1";;
35283         esac;
35284         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35285         ???[sx]*):;;*)false;;esac;fi
35286     '\'' sh
35287   '
35288 fi
35289 as_executable_p=$as_test_x
35290
35291 # Sed expression to map a string onto a valid CPP name.
35292 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35293
35294 # Sed expression to map a string onto a valid variable name.
35295 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35296
35297
35298 exec 6>&1
35299
35300 # Save the log message, to keep $[0] and so on meaningful, and to
35301 # report actual input values of CONFIG_FILES etc. instead of their
35302 # values after options handling.
35303 ac_log="
35304 This file was extended by $as_me, which was
35305 generated by GNU Autoconf 2.61.  Invocation command line was
35306
35307   CONFIG_FILES    = $CONFIG_FILES
35308   CONFIG_HEADERS  = $CONFIG_HEADERS
35309   CONFIG_LINKS    = $CONFIG_LINKS
35310   CONFIG_COMMANDS = $CONFIG_COMMANDS
35311   $ $0 $@
35312
35313 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35314 "
35315
35316 _ACEOF
35317
35318 cat >>$CONFIG_STATUS <<_ACEOF
35319 # Files that config.status was made for.
35320 config_files="$ac_config_files"
35321 config_headers="$ac_config_headers"
35322 config_commands="$ac_config_commands"
35323
35324 _ACEOF
35325
35326 cat >>$CONFIG_STATUS <<\_ACEOF
35327 ac_cs_usage="\
35328 \`$as_me' instantiates files from templates according to the
35329 current configuration.
35330
35331 Usage: $0 [OPTIONS] [FILE]...
35332
35333   -h, --help       print this help, then exit
35334   -V, --version    print version number and configuration settings, then exit
35335   -q, --quiet      do not print progress messages
35336   -d, --debug      don't remove temporary files
35337       --recheck    update $as_me by reconfiguring in the same conditions
35338   --file=FILE[:TEMPLATE]
35339                    instantiate the configuration file FILE
35340   --header=FILE[:TEMPLATE]
35341                    instantiate the configuration header FILE
35342
35343 Configuration files:
35344 $config_files
35345
35346 Configuration headers:
35347 $config_headers
35348
35349 Configuration commands:
35350 $config_commands
35351
35352 Report bugs to <bug-autoconf@gnu.org>."
35353
35354 _ACEOF
35355 cat >>$CONFIG_STATUS <<_ACEOF
35356 ac_cs_version="\\
35357 config.status
35358 configured by $0, generated by GNU Autoconf 2.61,
35359   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35360
35361 Copyright (C) 2006 Free Software Foundation, Inc.
35362 This config.status script is free software; the Free Software Foundation
35363 gives unlimited permission to copy, distribute and modify it."
35364
35365 ac_pwd='$ac_pwd'
35366 srcdir='$srcdir'
35367 INSTALL='$INSTALL'
35368 _ACEOF
35369
35370 cat >>$CONFIG_STATUS <<\_ACEOF
35371 # If no file are specified by the user, then we need to provide default
35372 # value.  By we need to know if files were specified by the user.
35373 ac_need_defaults=:
35374 while test $# != 0
35375 do
35376   case $1 in
35377   --*=*)
35378     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35379     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35380     ac_shift=:
35381     ;;
35382   *)
35383     ac_option=$1
35384     ac_optarg=$2
35385     ac_shift=shift
35386     ;;
35387   esac
35388
35389   case $ac_option in
35390   # Handling of the options.
35391   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35392     ac_cs_recheck=: ;;
35393   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35394     echo "$ac_cs_version"; exit ;;
35395   --debug | --debu | --deb | --de | --d | -d )
35396     debug=: ;;
35397   --file | --fil | --fi | --f )
35398     $ac_shift
35399     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35400     ac_need_defaults=false;;
35401   --header | --heade | --head | --hea )
35402     $ac_shift
35403     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35404     ac_need_defaults=false;;
35405   --he | --h)
35406     # Conflict between --help and --header
35407     { echo "$as_me: error: ambiguous option: $1
35408 Try \`$0 --help' for more information." >&2
35409    { (exit 1); exit 1; }; };;
35410   --help | --hel | -h )
35411     echo "$ac_cs_usage"; exit ;;
35412   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35413   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35414     ac_cs_silent=: ;;
35415
35416   # This is an error.
35417   -*) { echo "$as_me: error: unrecognized option: $1
35418 Try \`$0 --help' for more information." >&2
35419    { (exit 1); exit 1; }; } ;;
35420
35421   *) ac_config_targets="$ac_config_targets $1"
35422      ac_need_defaults=false ;;
35423
35424   esac
35425   shift
35426 done
35427
35428 ac_configure_extra_args=
35429
35430 if $ac_cs_silent; then
35431   exec 6>/dev/null
35432   ac_configure_extra_args="$ac_configure_extra_args --silent"
35433 fi
35434
35435 _ACEOF
35436 cat >>$CONFIG_STATUS <<_ACEOF
35437 if \$ac_cs_recheck; then
35438   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35439   CONFIG_SHELL=$SHELL
35440   export CONFIG_SHELL
35441   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35442 fi
35443
35444 _ACEOF
35445 cat >>$CONFIG_STATUS <<\_ACEOF
35446 exec 5>>config.log
35447 {
35448   echo
35449   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35450 ## Running $as_me. ##
35451 _ASBOX
35452   echo "$ac_log"
35453 } >&5
35454
35455 _ACEOF
35456 cat >>$CONFIG_STATUS <<_ACEOF
35457 #
35458 # INIT-COMMANDS
35459 #
35460 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35461     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
35462     # from automake.
35463     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35464     # Capture the value of LINGUAS because we need it to compute CATALOGS.
35465     LINGUAS="${LINGUAS-%UNSET%}"
35466
35467
35468 _ACEOF
35469
35470 cat >>$CONFIG_STATUS <<\_ACEOF
35471
35472 # Handling of arguments.
35473 for ac_config_target in $ac_config_targets
35474 do
35475   case $ac_config_target in
35476     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
35477     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35478     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
35479     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35480     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
35481     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
35482     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
35483     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
35484     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
35485     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
35486     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
35487     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
35488     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
35489     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
35490     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
35491     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
35492     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
35493     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
35494     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
35495     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
35496     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
35497     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
35498     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
35499     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
35500     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
35501     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
35502     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
35503     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
35504     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
35505     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
35506     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
35507     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
35508     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
35509     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
35510     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
35511     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
35512     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
35513     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
35514     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
35515     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
35516     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
35517     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
35518     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
35519     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
35520     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
35521     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
35522     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
35523     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
35524     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
35525     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
35526     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
35527     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
35528     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
35529     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
35530     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
35531     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
35532     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
35533     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
35534     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
35535     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
35536     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
35537     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
35538     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
35539     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
35540     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
35541     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
35542     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
35543     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
35544     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
35545     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
35546     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
35547     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
35548     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
35549     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
35550     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
35551     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
35552     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
35553     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
35554     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
35555     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
35556     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
35557     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
35558     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
35559     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
35560     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
35561     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
35562     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
35563     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
35564     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
35565     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
35566     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
35567     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
35568     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
35569     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
35570     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
35571     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
35572     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
35573     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
35574     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
35575     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
35576     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
35577     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
35578     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
35579     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
35580     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
35581     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
35582     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
35583     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
35584     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
35585     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
35586     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35587
35588   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35589 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35590    { (exit 1); exit 1; }; };;
35591   esac
35592 done
35593
35594
35595 # If the user did not use the arguments to specify the items to instantiate,
35596 # then the envvar interface is used.  Set only those that are not.
35597 # We use the long form for the default assignment because of an extremely
35598 # bizarre bug on SunOS 4.1.3.
35599 if $ac_need_defaults; then
35600   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35601   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35602   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35603 fi
35604
35605 # Have a temporary directory for convenience.  Make it in the build tree
35606 # simply because there is no reason against having it here, and in addition,
35607 # creating and moving files from /tmp can sometimes cause problems.
35608 # Hook for its removal unless debugging.
35609 # Note that there is a small window in which the directory will not be cleaned:
35610 # after its creation but before its name has been assigned to `$tmp'.
35611 $debug ||
35612 {
35613   tmp=
35614   trap 'exit_status=$?
35615   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35616 ' 0
35617   trap '{ (exit 1); exit 1; }' 1 2 13 15
35618 }
35619 # Create a (secure) tmp directory for tmp files.
35620
35621 {
35622   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35623   test -n "$tmp" && test -d "$tmp"
35624 }  ||
35625 {
35626   tmp=./conf$$-$RANDOM
35627   (umask 077 && mkdir "$tmp")
35628 } ||
35629 {
35630    echo "$me: cannot create a temporary directory in ." >&2
35631    { (exit 1); exit 1; }
35632 }
35633
35634 #
35635 # Set up the sed scripts for CONFIG_FILES section.
35636 #
35637
35638 # No need to generate the scripts if there are no CONFIG_FILES.
35639 # This happens for instance when ./config.status config.h
35640 if test -n "$CONFIG_FILES"; then
35641
35642 _ACEOF
35643
35644 # Create sed commands to just substitute file output variables.
35645
35646 # Remaining file output variables are in a fragment that also has non-file
35647 # output varibles.
35648
35649
35650
35651 ac_delim='%!_!# '
35652 for ac_last_try in false false false false false :; do
35653   cat >conf$$subs.sed <<_ACEOF
35654 SHELL!$SHELL$ac_delim
35655 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35656 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35657 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35658 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35659 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35660 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35661 exec_prefix!$exec_prefix$ac_delim
35662 prefix!$prefix$ac_delim
35663 program_transform_name!$program_transform_name$ac_delim
35664 bindir!$bindir$ac_delim
35665 sbindir!$sbindir$ac_delim
35666 libexecdir!$libexecdir$ac_delim
35667 datarootdir!$datarootdir$ac_delim
35668 datadir!$datadir$ac_delim
35669 sysconfdir!$sysconfdir$ac_delim
35670 sharedstatedir!$sharedstatedir$ac_delim
35671 localstatedir!$localstatedir$ac_delim
35672 includedir!$includedir$ac_delim
35673 oldincludedir!$oldincludedir$ac_delim
35674 docdir!$docdir$ac_delim
35675 infodir!$infodir$ac_delim
35676 htmldir!$htmldir$ac_delim
35677 dvidir!$dvidir$ac_delim
35678 pdfdir!$pdfdir$ac_delim
35679 psdir!$psdir$ac_delim
35680 libdir!$libdir$ac_delim
35681 localedir!$localedir$ac_delim
35682 mandir!$mandir$ac_delim
35683 DEFS!$DEFS$ac_delim
35684 ECHO_C!$ECHO_C$ac_delim
35685 ECHO_N!$ECHO_N$ac_delim
35686 ECHO_T!$ECHO_T$ac_delim
35687 LIBS!$LIBS$ac_delim
35688 build_alias!$build_alias$ac_delim
35689 host_alias!$host_alias$ac_delim
35690 target_alias!$target_alias$ac_delim
35691 BUILD_DIR!$BUILD_DIR$ac_delim
35692 TOP_DIR!$TOP_DIR$ac_delim
35693 TRUEPRG!$TRUEPRG$ac_delim
35694 FALSEPRG!$FALSEPRG$ac_delim
35695 VERSION!$VERSION$ac_delim
35696 DATE!$DATE$ac_delim
35697 LSMDATE!$LSMDATE$ac_delim
35698 CC!$CC$ac_delim
35699 CFLAGS!$CFLAGS$ac_delim
35700 LDFLAGS!$LDFLAGS$ac_delim
35701 CPPFLAGS!$CPPFLAGS$ac_delim
35702 ac_ct_CC!$ac_ct_CC$ac_delim
35703 EXEEXT!$EXEEXT$ac_delim
35704 OBJEXT!$OBJEXT$ac_delim
35705 CXX!$CXX$ac_delim
35706 CXXFLAGS!$CXXFLAGS$ac_delim
35707 ac_ct_CXX!$ac_ct_CXX$ac_delim
35708 CPP!$CPP$ac_delim
35709 GREP!$GREP$ac_delim
35710 EGREP!$EGREP$ac_delim
35711 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35712 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35713 INSTALL_DATA!$INSTALL_DATA$ac_delim
35714 RANLIB!$RANLIB$ac_delim
35715 MV!$MV$ac_delim
35716 RM!$RM$ac_delim
35717 CP!$CP$ac_delim
35718 SED!$SED$ac_delim
35719 ECHO!$ECHO$ac_delim
35720 CMP!$CMP$ac_delim
35721 TBL!$TBL$ac_delim
35722 AR!$AR$ac_delim
35723 OPENSSL!$OPENSSL$ac_delim
35724 MTX!$MTX$ac_delim
35725 DD!$DD$ac_delim
35726 MKISOFS!$MKISOFS$ac_delim
35727 PYTHON!$PYTHON$ac_delim
35728 GROWISOFS!$GROWISOFS$ac_delim
35729 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35730 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35731 PKGCONFIG!$PKGCONFIG$ac_delim
35732 QMAKE!$QMAKE$ac_delim
35733 QMAKEQT4!$QMAKEQT4$ac_delim
35734 WXCONFIG!$WXCONFIG$ac_delim
35735 WXFLAGS!$WXFLAGS$ac_delim
35736 CDRECORD!$CDRECORD$ac_delim
35737 PIDOF!$PIDOF$ac_delim
35738 AWK!$AWK$ac_delim
35739 ARFLAGS!$ARFLAGS$ac_delim
35740 MAKE_SHELL!$MAKE_SHELL$ac_delim
35741 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35742 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35743 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35744 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35745 build!$build$ac_delim
35746 build_cpu!$build_cpu$ac_delim
35747 build_vendor!$build_vendor$ac_delim
35748 _ACEOF
35749
35750   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35751     break
35752   elif $ac_last_try; then
35753     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35754 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35755    { (exit 1); exit 1; }; }
35756   else
35757     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35758   fi
35759 done
35760
35761 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35762 if test -n "$ac_eof"; then
35763   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35764   ac_eof=`expr $ac_eof + 1`
35765 fi
35766
35767 cat >>$CONFIG_STATUS <<_ACEOF
35768 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35770 /^[      ]*@MCOMMON@[    ]*$/{
35771 r $MCOMMON
35772 d
35773 }
35774 _ACEOF
35775 sed '
35776 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35777 s/^/s,@/; s/!/@,|#_!!_#|/
35778 :n
35779 t n
35780 s/'"$ac_delim"'$/,g/; t
35781 s/$/\\/; p
35782 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35783 ' >>$CONFIG_STATUS <conf$$subs.sed
35784 rm -f conf$$subs.sed
35785 cat >>$CONFIG_STATUS <<_ACEOF
35786 CEOF$ac_eof
35787 _ACEOF
35788
35789
35790 ac_delim='%!_!# '
35791 for ac_last_try in false false false false false :; do
35792   cat >conf$$subs.sed <<_ACEOF
35793 build_os!$build_os$ac_delim
35794 host!$host$ac_delim
35795 host_cpu!$host_cpu$ac_delim
35796 host_vendor!$host_vendor$ac_delim
35797 host_os!$host_os$ac_delim
35798 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35799 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35800 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35801 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35802 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35803 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35804 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35805 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35806 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35807 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35808 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35809 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35810 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35811 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35812 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35813 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35814 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35815 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35816 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35817 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35818 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35819 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35820 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35821 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35822 SET_MAKE!$SET_MAKE$ac_delim
35823 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35824 USE_NLS!$USE_NLS$ac_delim
35825 MSGFMT!$MSGFMT$ac_delim
35826 GMSGFMT!$GMSGFMT$ac_delim
35827 XGETTEXT!$XGETTEXT$ac_delim
35828 MSGMERGE!$MSGMERGE$ac_delim
35829 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35830 LIBICONV!$LIBICONV$ac_delim
35831 LTLIBICONV!$LTLIBICONV$ac_delim
35832 INTLLIBS!$INTLLIBS$ac_delim
35833 LIBINTL!$LIBINTL$ac_delim
35834 LTLIBINTL!$LTLIBINTL$ac_delim
35835 POSUB!$POSUB$ac_delim
35836 GLIBC2!$GLIBC2$ac_delim
35837 ALLOCA!$ALLOCA$ac_delim
35838 GLIBC21!$GLIBC21$ac_delim
35839 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35840 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35841 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35842 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35843 INTLBISON!$INTLBISON$ac_delim
35844 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35845 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35846 CATOBJEXT!$CATOBJEXT$ac_delim
35847 DATADIRNAME!$DATADIRNAME$ac_delim
35848 INSTOBJEXT!$INSTOBJEXT$ac_delim
35849 GENCAT!$GENCAT$ac_delim
35850 INTLOBJS!$INTLOBJS$ac_delim
35851 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35852 BDB_CPPFLAGS!$BDB_CPPFLAGS$ac_delim
35853 BDB_LIBS!$BDB_LIBS$ac_delim
35854 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35855 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35856 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35857 GNOME_LIBS!$GNOME_LIBS$ac_delim
35858 GNOME_DIR!$GNOME_DIR$ac_delim
35859 BAT_DIR!$BAT_DIR$ac_delim
35860 QWT_INC!$QWT_INC$ac_delim
35861 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
35862 QWT_LIB!$QWT_LIB$ac_delim
35863 QWT!$QWT$ac_delim
35864 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35865 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35866 WX_DIR!$WX_DIR$ac_delim
35867 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35868 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35869 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35870 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35871 STATIC_FD!$STATIC_FD$ac_delim
35872 STATIC_SD!$STATIC_SD$ac_delim
35873 STATIC_DIR!$STATIC_DIR$ac_delim
35874 STATIC_CONS!$STATIC_CONS$ac_delim
35875 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35876 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35877 ALL_DIRS!$ALL_DIRS$ac_delim
35878 DIRD_DIR!$DIRD_DIR$ac_delim
35879 DIR_TOOLS!$DIR_TOOLS$ac_delim
35880 STORED_DIR!$STORED_DIR$ac_delim
35881 CONS_INC!$CONS_INC$ac_delim
35882 CONS_OBJ!$CONS_OBJ$ac_delim
35883 CONS_SRC!$CONS_SRC$ac_delim
35884 CONS_LIBS!$CONS_LIBS$ac_delim
35885 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35886 READLINE_SRC!$READLINE_SRC$ac_delim
35887 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35888 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35889 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35890 _ACEOF
35891
35892   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35893     break
35894   elif $ac_last_try; then
35895     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35896 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35897    { (exit 1); exit 1; }; }
35898   else
35899     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35900   fi
35901 done
35902
35903 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35904 if test -n "$ac_eof"; then
35905   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35906   ac_eof=`expr $ac_eof + 1`
35907 fi
35908
35909 cat >>$CONFIG_STATUS <<_ACEOF
35910 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35912 _ACEOF
35913 sed '
35914 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35915 s/^/s,@/; s/!/@,|#_!!_#|/
35916 :n
35917 t n
35918 s/'"$ac_delim"'$/,g/; t
35919 s/$/\\/; p
35920 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35921 ' >>$CONFIG_STATUS <conf$$subs.sed
35922 rm -f conf$$subs.sed
35923 cat >>$CONFIG_STATUS <<_ACEOF
35924 CEOF$ac_eof
35925 _ACEOF
35926
35927
35928 ac_delim='%!_!# '
35929 for ac_last_try in false false false false false :; do
35930   cat >conf$$subs.sed <<_ACEOF
35931 OPENSSL_INC!$OPENSSL_INC$ac_delim
35932 working_dir!$working_dir$ac_delim
35933 archivedir!$archivedir$ac_delim
35934 scriptdir!$scriptdir$ac_delim
35935 plugindir!$plugindir$ac_delim
35936 dump_email!$dump_email$ac_delim
35937 job_email!$job_email$ac_delim
35938 smtp_host!$smtp_host$ac_delim
35939 piddir!$piddir$ac_delim
35940 subsysdir!$subsysdir$ac_delim
35941 baseport!$baseport$ac_delim
35942 dir_port!$dir_port$ac_delim
35943 fd_port!$fd_port$ac_delim
35944 sd_port!$sd_port$ac_delim
35945 dir_password!$dir_password$ac_delim
35946 fd_password!$fd_password$ac_delim
35947 sd_password!$sd_password$ac_delim
35948 mon_dir_password!$mon_dir_password$ac_delim
35949 mon_fd_password!$mon_fd_password$ac_delim
35950 mon_sd_password!$mon_sd_password$ac_delim
35951 db_name!$db_name$ac_delim
35952 db_user!$db_user$ac_delim
35953 db_password!$db_password$ac_delim
35954 db_port!$db_port$ac_delim
35955 dir_user!$dir_user$ac_delim
35956 dir_group!$dir_group$ac_delim
35957 sd_user!$sd_user$ac_delim
35958 sd_group!$sd_group$ac_delim
35959 fd_user!$fd_user$ac_delim
35960 fd_group!$fd_group$ac_delim
35961 SBINPERM!$SBINPERM$ac_delim
35962 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35963 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35964 SQL_BINDIR!$SQL_BINDIR$ac_delim
35965 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
35966 uncomment_dbi!$uncomment_dbi$ac_delim
35967 DB_PROG!$DB_PROG$ac_delim
35968 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
35969 cats!$cats$ac_delim
35970 DB_TYPE!$DB_TYPE$ac_delim
35971 GETCONF!$GETCONF$ac_delim
35972 XMKMF!$XMKMF$ac_delim
35973 X_CFLAGS!$X_CFLAGS$ac_delim
35974 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35975 X_LIBS!$X_LIBS$ac_delim
35976 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35977 LIBOBJS!$LIBOBJS$ac_delim
35978 FDLIBS!$FDLIBS$ac_delim
35979 DEBUG!$DEBUG$ac_delim
35980 DINCLUDE!$DINCLUDE$ac_delim
35981 DLIB!$DLIB$ac_delim
35982 DB_LIBS!$DB_LIBS$ac_delim
35983 WCFLAGS!$WCFLAGS$ac_delim
35984 WLDFLAGS!$WLDFLAGS$ac_delim
35985 WRAPLIBS!$WRAPLIBS$ac_delim
35986 OBJLIST!$OBJLIST$ac_delim
35987 hostname!$hostname$ac_delim
35988 TAPEDRIVE!$TAPEDRIVE$ac_delim
35989 PSCMD!$PSCMD$ac_delim
35990 WIN32!$WIN32$ac_delim
35991 MACOSX!$MACOSX$ac_delim
35992 DISTNAME!$DISTNAME$ac_delim
35993 DISTVER!$DISTVER$ac_delim
35994 LTLIBOBJS!$LTLIBOBJS$ac_delim
35995 _ACEOF
35996
35997   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
35998     break
35999   elif $ac_last_try; then
36000     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36001 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36002    { (exit 1); exit 1; }; }
36003   else
36004     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36005   fi
36006 done
36007
36008 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36009 if test -n "$ac_eof"; then
36010   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36011   ac_eof=`expr $ac_eof + 1`
36012 fi
36013
36014 cat >>$CONFIG_STATUS <<_ACEOF
36015 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
36016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36017 _ACEOF
36018 sed '
36019 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36020 s/^/s,@/; s/!/@,|#_!!_#|/
36021 :n
36022 t n
36023 s/'"$ac_delim"'$/,g/; t
36024 s/$/\\/; p
36025 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36026 ' >>$CONFIG_STATUS <conf$$subs.sed
36027 rm -f conf$$subs.sed
36028 cat >>$CONFIG_STATUS <<_ACEOF
36029 :end
36030 s/|#_!!_#|//g
36031 CEOF$ac_eof
36032 _ACEOF
36033
36034
36035 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36036 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36037 # trailing colons and then remove the whole line if VPATH becomes empty
36038 # (actually we leave an empty line to preserve line numbers).
36039 if test "x$srcdir" = x.; then
36040   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36041 s/:*\$(srcdir):*/:/
36042 s/:*\${srcdir}:*/:/
36043 s/:*@srcdir@:*/:/
36044 s/^\([^=]*=[     ]*\):*/\1/
36045 s/:*$//
36046 s/^[^=]*=[       ]*$//
36047 }'
36048 fi
36049
36050 cat >>$CONFIG_STATUS <<\_ACEOF
36051 fi # test -n "$CONFIG_FILES"
36052
36053
36054 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36055 do
36056   case $ac_tag in
36057   :[FHLC]) ac_mode=$ac_tag; continue;;
36058   esac
36059   case $ac_mode$ac_tag in
36060   :[FHL]*:*);;
36061   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36062 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36063    { (exit 1); exit 1; }; };;
36064   :[FH]-) ac_tag=-:-;;
36065   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36066   esac
36067   ac_save_IFS=$IFS
36068   IFS=:
36069   set x $ac_tag
36070   IFS=$ac_save_IFS
36071   shift
36072   ac_file=$1
36073   shift
36074
36075   case $ac_mode in
36076   :L) ac_source=$1;;
36077   :[FH])
36078     ac_file_inputs=
36079     for ac_f
36080     do
36081       case $ac_f in
36082       -) ac_f="$tmp/stdin";;
36083       *) # Look for the file first in the build tree, then in the source tree
36084          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36085          # because $ac_f cannot contain `:'.
36086          test -f "$ac_f" ||
36087            case $ac_f in
36088            [\\/$]*) false;;
36089            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36090            esac ||
36091            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36092 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36093    { (exit 1); exit 1; }; };;
36094       esac
36095       ac_file_inputs="$ac_file_inputs $ac_f"
36096     done
36097
36098     # Let's still pretend it is `configure' which instantiates (i.e., don't
36099     # use $as_me), people would be surprised to read:
36100     #    /* config.h.  Generated by config.status.  */
36101     configure_input="Generated from "`IFS=:
36102           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36103     if test x"$ac_file" != x-; then
36104       configure_input="$ac_file.  $configure_input"
36105       { echo "$as_me:$LINENO: creating $ac_file" >&5
36106 echo "$as_me: creating $ac_file" >&6;}
36107     fi
36108
36109     case $ac_tag in
36110     *:-:* | *:-) cat >"$tmp/stdin";;
36111     esac
36112     ;;
36113   esac
36114
36115   ac_dir=`$as_dirname -- "$ac_file" ||
36116 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36117          X"$ac_file" : 'X\(//\)[^/]' \| \
36118          X"$ac_file" : 'X\(//\)$' \| \
36119          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36120 echo X"$ac_file" |
36121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36122             s//\1/
36123             q
36124           }
36125           /^X\(\/\/\)[^/].*/{
36126             s//\1/
36127             q
36128           }
36129           /^X\(\/\/\)$/{
36130             s//\1/
36131             q
36132           }
36133           /^X\(\/\).*/{
36134             s//\1/
36135             q
36136           }
36137           s/.*/./; q'`
36138   { as_dir="$ac_dir"
36139   case $as_dir in #(
36140   -*) as_dir=./$as_dir;;
36141   esac
36142   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36143     as_dirs=
36144     while :; do
36145       case $as_dir in #(
36146       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36147       *) as_qdir=$as_dir;;
36148       esac
36149       as_dirs="'$as_qdir' $as_dirs"
36150       as_dir=`$as_dirname -- "$as_dir" ||
36151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36152          X"$as_dir" : 'X\(//\)[^/]' \| \
36153          X"$as_dir" : 'X\(//\)$' \| \
36154          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36155 echo X"$as_dir" |
36156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36157             s//\1/
36158             q
36159           }
36160           /^X\(\/\/\)[^/].*/{
36161             s//\1/
36162             q
36163           }
36164           /^X\(\/\/\)$/{
36165             s//\1/
36166             q
36167           }
36168           /^X\(\/\).*/{
36169             s//\1/
36170             q
36171           }
36172           s/.*/./; q'`
36173       test -d "$as_dir" && break
36174     done
36175     test -z "$as_dirs" || eval "mkdir $as_dirs"
36176   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36177 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36178    { (exit 1); exit 1; }; }; }
36179   ac_builddir=.
36180
36181 case "$ac_dir" in
36182 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36183 *)
36184   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36185   # A ".." for each directory in $ac_dir_suffix.
36186   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36187   case $ac_top_builddir_sub in
36188   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36189   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36190   esac ;;
36191 esac
36192 ac_abs_top_builddir=$ac_pwd
36193 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36194 # for backward compatibility:
36195 ac_top_builddir=$ac_top_build_prefix
36196
36197 case $srcdir in
36198   .)  # We are building in place.
36199     ac_srcdir=.
36200     ac_top_srcdir=$ac_top_builddir_sub
36201     ac_abs_top_srcdir=$ac_pwd ;;
36202   [\\/]* | ?:[\\/]* )  # Absolute name.
36203     ac_srcdir=$srcdir$ac_dir_suffix;
36204     ac_top_srcdir=$srcdir
36205     ac_abs_top_srcdir=$srcdir ;;
36206   *) # Relative name.
36207     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36208     ac_top_srcdir=$ac_top_build_prefix$srcdir
36209     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36210 esac
36211 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36212
36213
36214   case $ac_mode in
36215   :F)
36216   #
36217   # CONFIG_FILE
36218   #
36219
36220   case $INSTALL in
36221   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36222   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36223   esac
36224 _ACEOF
36225
36226 cat >>$CONFIG_STATUS <<\_ACEOF
36227 # If the template does not know about datarootdir, expand it.
36228 # FIXME: This hack should be removed a few years after 2.60.
36229 ac_datarootdir_hack=; ac_datarootdir_seen=
36230
36231 case `sed -n '/datarootdir/ {
36232   p
36233   q
36234 }
36235 /@datadir@/p
36236 /@docdir@/p
36237 /@infodir@/p
36238 /@localedir@/p
36239 /@mandir@/p
36240 ' $ac_file_inputs` in
36241 *datarootdir*) ac_datarootdir_seen=yes;;
36242 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36243   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36244 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36245 _ACEOF
36246 cat >>$CONFIG_STATUS <<_ACEOF
36247   ac_datarootdir_hack='
36248   s&@datadir@&$datadir&g
36249   s&@docdir@&$docdir&g
36250   s&@infodir@&$infodir&g
36251   s&@localedir@&$localedir&g
36252   s&@mandir@&$mandir&g
36253     s&\\\${datarootdir}&$datarootdir&g' ;;
36254 esac
36255 _ACEOF
36256
36257 # Neutralize VPATH when `$srcdir' = `.'.
36258 # Shell code in configure.ac might set extrasub.
36259 # FIXME: do we really want to maintain this feature?
36260 cat >>$CONFIG_STATUS <<_ACEOF
36261   sed "$ac_vpsub
36262 $extrasub
36263 _ACEOF
36264 cat >>$CONFIG_STATUS <<\_ACEOF
36265 :t
36266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36267 s&@configure_input@&$configure_input&;t t
36268 s&@top_builddir@&$ac_top_builddir_sub&;t t
36269 s&@srcdir@&$ac_srcdir&;t t
36270 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36271 s&@top_srcdir@&$ac_top_srcdir&;t t
36272 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36273 s&@builddir@&$ac_builddir&;t t
36274 s&@abs_builddir@&$ac_abs_builddir&;t t
36275 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36276 s&@INSTALL@&$ac_INSTALL&;t t
36277 $ac_datarootdir_hack
36278 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
36279
36280 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36281   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36282   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36283   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36284 which seems to be undefined.  Please make sure it is defined." >&5
36285 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36286 which seems to be undefined.  Please make sure it is defined." >&2;}
36287
36288   rm -f "$tmp/stdin"
36289   case $ac_file in
36290   -) cat "$tmp/out"; rm -f "$tmp/out";;
36291   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36292   esac
36293  ;;
36294   :H)
36295   #
36296   # CONFIG_HEADER
36297   #
36298 _ACEOF
36299
36300 # Transform confdefs.h into a sed script `conftest.defines', that
36301 # substitutes the proper values into config.h.in to produce config.h.
36302 rm -f conftest.defines conftest.tail
36303 # First, append a space to every undef/define line, to ease matching.
36304 echo 's/$/ /' >conftest.defines
36305 # Then, protect against being on the right side of a sed subst, or in
36306 # an unquoted here document, in config.status.  If some macros were
36307 # called several times there might be several #defines for the same
36308 # symbol, which is useless.  But do not sort them, since the last
36309 # AC_DEFINE must be honored.
36310 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36311 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36312 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36313 # PARAMS is the parameter list in the macro definition--in most cases, it's
36314 # just an empty string.
36315 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36316 ac_dB='\\)[      (].*,\\1define\\2'
36317 ac_dC=' '
36318 ac_dD=' ,'
36319
36320 uniq confdefs.h |
36321   sed -n '
36322         t rset
36323         :rset
36324         s/^[     ]*#[    ]*define[       ][      ]*//
36325         t ok
36326         d
36327         :ok
36328         s/[\\&,]/\\&/g
36329         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36330         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36331   ' >>conftest.defines
36332
36333 # Remove the space that was appended to ease matching.
36334 # Then replace #undef with comments.  This is necessary, for
36335 # example, in the case of _POSIX_SOURCE, which is predefined and required
36336 # on some systems where configure will not decide to define it.
36337 # (The regexp can be short, since the line contains either #define or #undef.)
36338 echo 's/ $//
36339 s,^[     #]*u.*,/* & */,' >>conftest.defines
36340
36341 # Break up conftest.defines:
36342 ac_max_sed_lines=50
36343
36344 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36345 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36346 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36347 # et cetera.
36348 ac_in='$ac_file_inputs'
36349 ac_out='"$tmp/out1"'
36350 ac_nxt='"$tmp/out2"'
36351
36352 while :
36353 do
36354   # Write a here document:
36355     cat >>$CONFIG_STATUS <<_ACEOF
36356     # First, check the format of the line:
36357     cat >"\$tmp/defines.sed" <<\\CEOF
36358 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36359 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36360 b
36361 :def
36362 _ACEOF
36363   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36364   echo 'CEOF
36365     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36366   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36367   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36368   grep . conftest.tail >/dev/null || break
36369   rm -f conftest.defines
36370   mv conftest.tail conftest.defines
36371 done
36372 rm -f conftest.defines conftest.tail
36373
36374 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36375 cat >>$CONFIG_STATUS <<\_ACEOF
36376   if test x"$ac_file" != x-; then
36377     echo "/* $configure_input  */" >"$tmp/config.h"
36378     cat "$ac_result" >>"$tmp/config.h"
36379     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36380       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36381 echo "$as_me: $ac_file is unchanged" >&6;}
36382     else
36383       rm -f $ac_file
36384       mv "$tmp/config.h" $ac_file
36385     fi
36386   else
36387     echo "/* $configure_input  */"
36388     cat "$ac_result"
36389   fi
36390   rm -f "$tmp/out12"
36391  ;;
36392
36393   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36394 echo "$as_me: executing $ac_file commands" >&6;}
36395  ;;
36396   esac
36397
36398
36399   case $ac_file$ac_mode in
36400     "default-1":C)
36401     for ac_file in $CONFIG_FILES; do
36402       # Support "outfile[:infile[:infile...]]"
36403       case "$ac_file" in
36404         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36405       esac
36406       # PO directories have a Makefile.in generated from Makefile.in.in.
36407       case "$ac_file" in */Makefile.in)
36408         # Adjust a relative srcdir.
36409         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36410         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
36411         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36412         # In autoconf-2.13 it is called $ac_given_srcdir.
36413         # In autoconf-2.50 it is called $srcdir.
36414         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36415         case "$ac_given_srcdir" in
36416           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36417           /*) top_srcdir="$ac_given_srcdir" ;;
36418           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
36419         esac
36420         # Treat a directory as a PO directory if and only if it has a
36421         # POTFILES.in file. This allows packages to have multiple PO
36422         # directories under different names or in different locations.
36423         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36424           rm -f "$ac_dir/POTFILES"
36425           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36426           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36427           POMAKEFILEDEPS="POTFILES.in"
36428           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
36429           # on $ac_dir but don't depend on user-specified configuration
36430           # parameters.
36431           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36432             # The LINGUAS file contains the set of available languages.
36433             if test -n "$OBSOLETE_ALL_LINGUAS"; then
36434               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
36435             fi
36436             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36437             # Hide the ALL_LINGUAS assigment from automake.
36438             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36439             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36440           else
36441             # The set of available languages was given in configure.in.
36442             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36443           fi
36444           # Compute POFILES
36445           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
36446           # Compute UPDATEPOFILES
36447           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
36448           # Compute DUMMYPOFILES
36449           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
36450           # Compute GMOFILES
36451           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
36452           case "$ac_given_srcdir" in
36453             .) srcdirpre= ;;
36454             *) srcdirpre='$(srcdir)/' ;;
36455           esac
36456           POFILES=
36457           UPDATEPOFILES=
36458           DUMMYPOFILES=
36459           GMOFILES=
36460           for lang in $ALL_LINGUAS; do
36461             POFILES="$POFILES $srcdirpre$lang.po"
36462             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36463             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36464             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36465           done
36466           # CATALOGS depends on both $ac_dir and the user's LINGUAS
36467           # environment variable.
36468           INST_LINGUAS=
36469           if test -n "$ALL_LINGUAS"; then
36470             for presentlang in $ALL_LINGUAS; do
36471               useit=no
36472               if test "%UNSET%" != "$LINGUAS"; then
36473                 desiredlanguages="$LINGUAS"
36474               else
36475                 desiredlanguages="$ALL_LINGUAS"
36476               fi
36477               for desiredlang in $desiredlanguages; do
36478                 # Use the presentlang catalog if desiredlang is
36479                 #   a. equal to presentlang, or
36480                 #   b. a variant of presentlang (because in this case,
36481                 #      presentlang can be used as a fallback for messages
36482                 #      which are not translated in the desiredlang catalog).
36483                 case "$desiredlang" in
36484                   "$presentlang"*) useit=yes;;
36485                 esac
36486               done
36487               if test $useit = yes; then
36488                 INST_LINGUAS="$INST_LINGUAS $presentlang"
36489               fi
36490             done
36491           fi
36492           CATALOGS=
36493           if test -n "$INST_LINGUAS"; then
36494             for lang in $INST_LINGUAS; do
36495               CATALOGS="$CATALOGS $lang.gmo"
36496             done
36497           fi
36498           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36499           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36500           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36501             if test -f "$f"; then
36502               case "$f" in
36503                 *.orig | *.bak | *~) ;;
36504                 *) cat "$f" >> "$ac_dir/Makefile" ;;
36505               esac
36506             fi
36507           done
36508         fi
36509         ;;
36510       esac
36511     done ;;
36512     "default":C)
36513  ;;
36514
36515   esac
36516 done # for ac_tag
36517
36518
36519 { (exit 0); exit 0; }
36520 _ACEOF
36521 chmod +x $CONFIG_STATUS
36522 ac_clean_files=$ac_clean_files_save
36523
36524
36525 # configure is writing to config.log, and then calls config.status.
36526 # config.status does its own redirection, appending to config.log.
36527 # Unfortunately, on DOS this fails, as config.log is still kept open
36528 # by configure, so config.status won't be able to write to it; its
36529 # output is simply discarded.  So we exec the FD to /dev/null,
36530 # effectively closing config.log, so it can be properly (re)opened and
36531 # appended to by config.status.  When coming back to configure, we
36532 # need to make the FD available again.
36533 if test "$no_create" != yes; then
36534   ac_cs_success=:
36535   ac_config_status_args=
36536   test "$silent" = yes &&
36537     ac_config_status_args="$ac_config_status_args --quiet"
36538   exec 5>/dev/null
36539   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36540   exec 5>>config.log
36541   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36542   # would make configure fail if this is the last instruction.
36543   $ac_cs_success || { (exit 1); exit 1; }
36544 fi
36545
36546
36547 if test "${support_bat}" = "yes" ; then
36548   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
36549   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
36550   exit 1
36551   fi
36552
36553   QMAKEBIN="qmake"
36554
36555   if test "x$QMAKEQT4" != "xnone"; then
36556     QMAKEBIN=qmake-qt4
36557   fi
36558
36559   cd src/qt-console
36560   chmod 755 install_conf_file build-depkgs-qt-console
36561   echo "Creating bat Makefile"
36562   $QMAKEBIN
36563   make clean
36564   cd ${BUILD_DIR}
36565 fi
36566
36567 echo "Doing make of dependencies"
36568 ${MAKE:-make} depend
36569
36570 cd scripts
36571 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
36572 chmod 755 dvd-handler dvd-simulator
36573 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
36574 cd ..
36575
36576 c=updatedb
36577 chmod 755 $c/update_mysql_tables_10_to_11       $c/update_sqlite3_tables_10_to_11
36578 chmod 755 $c/update_postgresql_tables_10_to_11  $c/update_sqlite_tables_10_to_11
36579
36580 c=src/cats
36581
36582 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
36583 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
36584
36585 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
36586 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
36587
36588 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
36589 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
36590
36591 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
36592 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
36593
36594 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
36595 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
36596
36597 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
36598 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
36599
36600 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
36601 chmod 755 $c/sqlite
36602 chmod 755 $c/mysql
36603
36604 chmod 755 src/win32/build-depkgs-mingw32
36605
36606
36607
36608 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
36609    largefile_support="yes"
36610 fi
36611
36612 #
36613 # A whole lot of hand springs to get the compiler version.
36614 #  This is because gcc changed the output in version 3.0
36615 #
36616 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
36617 if test "x${CCVERSION}" = "x" ; then
36618   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
36619 fi
36620 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
36621 if test x"${CXXVERSION}" = x ; then
36622   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
36623 fi
36624
36625 if test "x${subsysdir}" = "x${sbindir}" ; then
36626    echo " "
36627    echo " "
36628    echo "You have set --sbindir and --with-subsys-dir"
36629    echo "  both equal to: ${subsysdir} "
36630    echo "  This is not permitted. Please reconfigure."
36631    echo " "
36632    echo "Aborting configuration ..."
36633    echo " "
36634    echo " "
36635    exit 1
36636 fi
36637
36638 if test "x${db_type}" = "xInternal" ; then
36639    echo " "
36640    echo " "
36641    echo "You have not specified either --enable-client-only or one of the"
36642    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
36643    echo "  This is not permitted. Please reconfigure."
36644    echo " "
36645    echo "Aborting the configuration ..."
36646    echo " "
36647    echo " "
36648    exit 1
36649 fi
36650
36651 echo "
36652 Configuration on `date`:
36653
36654   Host:                       $host -- ${DISTNAME} ${DISTVER}
36655   Bacula version:             ${VERSION} (${DATE})
36656   Source code location:       ${srcdir}
36657   Install binaries:           ${sbindir}
36658   Install config files:       ${sysconfdir}
36659   Scripts directory:          ${scriptdir}
36660   Archive directory:          ${archivedir}
36661   Working directory:          ${working_dir}
36662   PID directory:              ${piddir}
36663   Subsys directory:           ${subsysdir}
36664   Man directory:              ${mandir}
36665   Data directory:             ${datadir}
36666   C Compiler:                 ${CC} ${CCVERSION}
36667   C++ Compiler:               ${CXX} ${CXXVERSION}
36668   Compiler flags:             ${WCFLAGS} ${CFLAGS}
36669   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
36670   Libraries:                  ${LIBS}
36671   Statically Linked Tools:    ${support_static_tools}
36672   Statically Linked FD:       ${support_static_fd}
36673   Statically Linked SD:       ${support_static_sd}
36674   Statically Linked DIR:      ${support_static_dir}
36675   Statically Linked CONS:     ${support_static_cons}
36676   Database type:              ${db_type}
36677   Database port:              ${db_port}
36678   Database lib:               ${DB_LIBS}
36679   Database name:              ${db_name}
36680   Database user:              ${db_user}
36681
36682   Job Output Email:           ${job_email}
36683   Traceback Email:            ${dump_email}
36684   SMTP Host Address:          ${smtp_host}
36685
36686   Director Port:              ${dir_port}
36687   File daemon Port:           ${fd_port}
36688   Storage daemon Port:        ${sd_port}
36689
36690   Director User:              ${dir_user}
36691   Director Group:             ${dir_group}
36692   Storage Daemon User:        ${sd_user}
36693   Storage DaemonGroup:        ${sd_group}
36694   File Daemon User:           ${fd_user}
36695   File Daemon Group:          ${fd_group}
36696
36697   SQL binaries Directory      ${SQL_BINDIR}
36698
36699   Large file support:         $largefile_support
36700   Bacula conio support:       ${got_conio} ${CONS_LIBS}
36701   readline support:           ${got_readline} ${PRTREADLINE_SRC}
36702   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
36703   TLS support:                ${support_tls}
36704   Encryption support:         ${support_crypto}
36705   ZLIB support:               ${have_zlib}
36706   enable-smartalloc:          ${support_smartalloc}
36707   bat support:                ${support_bat} ${QWT_LDFLAGS}
36708   enable-gnome:               ${support_gnome} ${gnome_version}
36709   enable-bwx-console:         ${support_wx_console} ${wx_version}
36710   enable-tray-monitor:        ${support_tray_monitor}
36711   client-only:                ${build_client_only}
36712   build-dird:                 ${build_dird}
36713   build-stored:               ${build_stored}
36714   ACL support:                ${have_acl}
36715   Python support:             ${support_python} ${PYTHON_LIBS}
36716   Batch insert enabled:       ${support_batch_insert}
36717   Berkeley DB support:        ${support_libdb} ${BDB_LIBS}
36718
36719   " > config.out
36720
36721 cat config.out