]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
kes Add cmd_plugin flag to jcr so we can globally know if a
[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         *)
22442            { echo "$as_me:$LINENO: result: no" >&5
22443 echo "${ECHO_T}no" >&6; }
22444            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
22445 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
22446    { (exit 1); exit 1; }; }
22447         ;;
22448      esac
22449
22450      { echo "$as_me:$LINENO: result: yes" >&5
22451 echo "${ECHO_T}yes" >&6; }
22452      DB_PROG=$db_prog
22453   else
22454      { echo "$as_me:$LINENO: result: no" >&5
22455 echo "${ECHO_T}no" >&6; }
22456   fi
22457
22458 else
22459
22460   { echo "$as_me:$LINENO: result: no" >&5
22461 echo "${ECHO_T}no" >&6; }
22462
22463 fi
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474 # -------------------------------------------
22475 # enable batch attribute DB insert (default on)
22476 # -------------------------------------------
22477 support_batch_insert=no
22478 A=`nm $SQL_LIB | grep pthread_mutex_lock`
22479 pkg=$?
22480 if test $pkg = 0; then
22481    support_batch_insert=yes
22482    # Check whether --enable-batch-insert was given.
22483 if test "${enable_batch_insert+set}" = set; then
22484   enableval=$enable_batch_insert; if test x$enableval = xno; then
22485        support_batch_insert=no
22486       else
22487        support_batch_insert=yes
22488      fi
22489 fi
22490
22491 fi
22492
22493 # Check if postgresql support batch mode
22494 if test x$DB_TYPE = xpostgresql; then
22495    A=`nm $SQL_LIB | grep PQputCopyData`
22496    pkg=$?
22497    if test $pkg != 0; then
22498       support_batch_insert=no
22499    fi
22500 fi
22501
22502 if test x$DB_TYPE = xdbi; then
22503    DB_TYPE=$DB_PROG
22504    db_type=$DB_PROG
22505    pkg=1
22506    # Check for batch insert
22507    if test $DB_PROG = postgresql; then
22508       A=`nm $DB_PROG_LIB | grep PQputCopyData`
22509       pkg=$?
22510    fi
22511
22512    if test $DB_PROG = mysql; then
22513       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
22514       pkg=$?
22515    fi
22516
22517    if test $pkg = 0; then
22518       # Check whether --enable-batch-insert was given.
22519 if test "${enable_batch_insert+set}" = set; then
22520   enableval=$enable_batch_insert; if test x$enableval = xno; then
22521          support_batch_insert=no
22522        else
22523          support_batch_insert=yes
22524       fi
22525 fi
22526
22527    fi
22528 else
22529 # If dbi was not chosen, let the comment in file
22530 uncomment_dbi="#"
22531 fi
22532
22533
22534
22535 if test $support_batch_insert = yes ; then
22536
22537 cat >>confdefs.h <<\_ACEOF
22538 #define HAVE_BATCH_FILE_INSERT 1
22539 _ACEOF
22540
22541 fi
22542
22543
22544 cat >>confdefs.h <<\_ACEOF
22545 #define PROTOTYPES 1
22546 _ACEOF
22547
22548
22549 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
22550     if test -z "$CCOPTS"; then
22551         CCOPTS='-g -O2 -Wall'
22552     fi
22553     CFLAGS="$CCOPTS"
22554 fi
22555
22556
22557
22558
22559 largefile_support="no"
22560
22561    # Check whether --enable-largefile was given.
22562 if test "${enable_largefile+set}" = set; then
22563   enableval=$enable_largefile;
22564 fi
22565
22566    if test "$enable_largefile" != no; then
22567      if test -n "$ac_tool_prefix"; then
22568   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
22569 set dummy ${ac_tool_prefix}getconf; ac_word=$2
22570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22572 if test "${ac_cv_prog_GETCONF+set}" = set; then
22573   echo $ECHO_N "(cached) $ECHO_C" >&6
22574 else
22575   if test -n "$GETCONF"; then
22576   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
22577 else
22578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22579 for as_dir in $PATH
22580 do
22581   IFS=$as_save_IFS
22582   test -z "$as_dir" && as_dir=.
22583   for ac_exec_ext in '' $ac_executable_extensions; do
22584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22585     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
22586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22587     break 2
22588   fi
22589 done
22590 done
22591 IFS=$as_save_IFS
22592
22593 fi
22594 fi
22595 GETCONF=$ac_cv_prog_GETCONF
22596 if test -n "$GETCONF"; then
22597   { echo "$as_me:$LINENO: result: $GETCONF" >&5
22598 echo "${ECHO_T}$GETCONF" >&6; }
22599 else
22600   { echo "$as_me:$LINENO: result: no" >&5
22601 echo "${ECHO_T}no" >&6; }
22602 fi
22603
22604
22605 fi
22606 if test -z "$ac_cv_prog_GETCONF"; then
22607   ac_ct_GETCONF=$GETCONF
22608   # Extract the first word of "getconf", so it can be a program name with args.
22609 set dummy getconf; ac_word=$2
22610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22612 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
22613   echo $ECHO_N "(cached) $ECHO_C" >&6
22614 else
22615   if test -n "$ac_ct_GETCONF"; then
22616   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
22617 else
22618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22619 for as_dir in $PATH
22620 do
22621   IFS=$as_save_IFS
22622   test -z "$as_dir" && as_dir=.
22623   for ac_exec_ext in '' $ac_executable_extensions; do
22624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22625     ac_cv_prog_ac_ct_GETCONF="getconf"
22626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22627     break 2
22628   fi
22629 done
22630 done
22631 IFS=$as_save_IFS
22632
22633 fi
22634 fi
22635 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
22636 if test -n "$ac_ct_GETCONF"; then
22637   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
22638 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
22639 else
22640   { echo "$as_me:$LINENO: result: no" >&5
22641 echo "${ECHO_T}no" >&6; }
22642 fi
22643
22644   if test "x$ac_ct_GETCONF" = x; then
22645     GETCONF=""
22646   else
22647     case $cross_compiling:$ac_tool_warned in
22648 yes:)
22649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22650 whose name does not start with the host triplet.  If you think this
22651 configuration is useful to you, please write to autoconf@gnu.org." >&5
22652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22653 whose name does not start with the host triplet.  If you think this
22654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22655 ac_tool_warned=yes ;;
22656 esac
22657     GETCONF=$ac_ct_GETCONF
22658   fi
22659 else
22660   GETCONF="$ac_cv_prog_GETCONF"
22661 fi
22662
22663      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
22664 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
22665 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
22666   echo $ECHO_N "(cached) $ECHO_C" >&6
22667 else
22668   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
22669         ac_cv_sys_largefile_CFLAGS=no
22670         case "$host_os" in
22671            # IRIX 6.2 and later require cc -n32.
22672            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
22673              if test "$GCC" != yes; then
22674                ac_cv_sys_largefile_CFLAGS=-n32
22675              fi
22676              ac_save_CC="$CC"
22677              CC="$CC $ac_cv_sys_largefile_CFLAGS"
22678              cat >conftest.$ac_ext <<_ACEOF
22679 /* confdefs.h.  */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h.  */
22684
22685 int
22686 main ()
22687 {
22688
22689   ;
22690   return 0;
22691 }
22692 _ACEOF
22693 rm -f conftest.$ac_objext conftest$ac_exeext
22694 if { (ac_try="$ac_link"
22695 case "(($ac_try" in
22696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22697   *) ac_try_echo=$ac_try;;
22698 esac
22699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22700   (eval "$ac_link") 2>conftest.er1
22701   ac_status=$?
22702   grep -v '^ *+' conftest.er1 >conftest.err
22703   rm -f conftest.er1
22704   cat conftest.err >&5
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); } && {
22707          test -z "$ac_c_werror_flag" ||
22708          test ! -s conftest.err
22709        } && test -s conftest$ac_exeext &&
22710        $as_test_x conftest$ac_exeext; then
22711   :
22712 else
22713   echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22715
22716         ac_cv_sys_largefile_CFLAGS=no
22717 fi
22718
22719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22720       conftest$ac_exeext conftest.$ac_ext
22721              CC="$ac_save_CC"
22722            esac
22723       }
22724 fi
22725 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
22726 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
22727      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
22728 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
22729 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
22730   echo $ECHO_N "(cached) $ECHO_C" >&6
22731 else
22732   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
22733         ac_cv_sys_largefile_LDFLAGS=no
22734
22735       }
22736 fi
22737 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
22738 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
22739      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
22740 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
22741 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
22742   echo $ECHO_N "(cached) $ECHO_C" >&6
22743 else
22744   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
22745         ac_cv_sys_largefile_LIBS=no
22746
22747       }
22748 fi
22749 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
22750 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
22751
22752      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22753        case "$ac_flag" in
22754        no) ;;
22755        -D_FILE_OFFSET_BITS=*) ;;
22756        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
22757        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
22758        -D?* | -I?*)
22759          case "$ac_flag" in
22760    no) ;;
22761    ?*)
22762      case "$CPPFLAGS" in
22763      '') CPPFLAGS="$ac_flag" ;;
22764      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
22765      esac ;;
22766    esac ;;
22767        *)
22768          case "$ac_flag" in
22769    no) ;;
22770    ?*)
22771      case "$CFLAGS" in
22772      '') CFLAGS="$ac_flag" ;;
22773      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
22774      esac ;;
22775    esac ;;
22776        esac
22777      done
22778      case "$ac_cv_sys_largefile_LDFLAGS" in
22779    no) ;;
22780    ?*)
22781      case "$LDFLAGS" in
22782      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
22783      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
22784      esac ;;
22785    esac
22786      case "$ac_cv_sys_largefile_LIBS" in
22787    no) ;;
22788    ?*)
22789      case "$LIBS" in
22790      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
22791      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
22792      esac ;;
22793    esac
22794      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
22795 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
22796 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22797   echo $ECHO_N "(cached) $ECHO_C" >&6
22798 else
22799   ac_cv_sys_file_offset_bits=no
22800       ac_cv_sys_file_offset_bits=64
22801       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22802         case "$ac_flag" in
22803         -D_FILE_OFFSET_BITS)
22804           ac_cv_sys_file_offset_bits=1 ;;
22805         -D_FILE_OFFSET_BITS=*)
22806           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22807         esac
22808       done
22809
22810 fi
22811 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22812 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22813    if test "$ac_cv_sys_file_offset_bits" != no; then
22814
22815 cat >>confdefs.h <<_ACEOF
22816 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22817 _ACEOF
22818
22819    fi
22820      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
22821 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
22822 if test "${ac_cv_sys_largefile_source+set}" = set; then
22823   echo $ECHO_N "(cached) $ECHO_C" >&6
22824 else
22825   ac_cv_sys_largefile_source=no
22826       ac_cv_sys_largefile_source=1
22827       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22828         case "$ac_flag" in
22829         -D_LARGEFILE_SOURCE)
22830           ac_cv_sys_largefile_source=1 ;;
22831         -D_LARGEFILE_SOURCE=*)
22832           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22833         esac
22834       done
22835
22836 fi
22837 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22838 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
22839    if test "$ac_cv_sys_largefile_source" != no; then
22840
22841 cat >>confdefs.h <<_ACEOF
22842 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22843 _ACEOF
22844
22845    fi
22846      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
22847 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
22848 if test "${ac_cv_sys_large_files+set}" = set; then
22849   echo $ECHO_N "(cached) $ECHO_C" >&6
22850 else
22851   ac_cv_sys_large_files=no
22852       ac_cv_sys_large_files=1
22853       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22854         case "$ac_flag" in
22855         -D_LARGE_FILES)
22856           ac_cv_sys_large_files=1 ;;
22857         -D_LARGE_FILES=*)
22858           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22859         esac
22860       done
22861
22862 fi
22863 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22864 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22865    if test "$ac_cv_sys_large_files" != no; then
22866
22867 cat >>confdefs.h <<_ACEOF
22868 #define _LARGE_FILES $ac_cv_sys_large_files
22869 _ACEOF
22870
22871    fi
22872    fi
22873
22874
22875
22876 { echo "$as_me:$LINENO: checking for X" >&5
22877 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
22878
22879
22880 # Check whether --with-x was given.
22881 if test "${with_x+set}" = set; then
22882   withval=$with_x;
22883 fi
22884
22885 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22886 if test "x$with_x" = xno; then
22887   # The user explicitly disabled X.
22888   have_x=disabled
22889 else
22890   case $x_includes,$x_libraries in #(
22891     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22892 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22893    { (exit 1); exit 1; }; };; #(
22894     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22895   echo $ECHO_N "(cached) $ECHO_C" >&6
22896 else
22897   # One or both of the vars are not set, and there is no cached value.
22898 ac_x_includes=no ac_x_libraries=no
22899 rm -f -r conftest.dir
22900 if mkdir conftest.dir; then
22901   cd conftest.dir
22902   cat >Imakefile <<'_ACEOF'
22903 incroot:
22904         @echo incroot='${INCROOT}'
22905 usrlibdir:
22906         @echo usrlibdir='${USRLIBDIR}'
22907 libdir:
22908         @echo libdir='${LIBDIR}'
22909 _ACEOF
22910   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22911     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22912     for ac_var in incroot usrlibdir libdir; do
22913       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22914     done
22915     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22916     for ac_extension in a so sl; do
22917       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22918          test -f "$ac_im_libdir/libX11.$ac_extension"; then
22919         ac_im_usrlibdir=$ac_im_libdir; break
22920       fi
22921     done
22922     # Screen out bogus values from the imake configuration.  They are
22923     # bogus both because they are the default anyway, and because
22924     # using them would break gcc on systems where it needs fixed includes.
22925     case $ac_im_incroot in
22926         /usr/include) ac_x_includes= ;;
22927         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22928     esac
22929     case $ac_im_usrlibdir in
22930         /usr/lib | /lib) ;;
22931         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22932     esac
22933   fi
22934   cd ..
22935   rm -f -r conftest.dir
22936 fi
22937
22938 # Standard set of common directories for X headers.
22939 # Check X11 before X11Rn because it is often a symlink to the current release.
22940 ac_x_header_dirs='
22941 /usr/X11/include
22942 /usr/X11R6/include
22943 /usr/X11R5/include
22944 /usr/X11R4/include
22945
22946 /usr/include/X11
22947 /usr/include/X11R6
22948 /usr/include/X11R5
22949 /usr/include/X11R4
22950
22951 /usr/local/X11/include
22952 /usr/local/X11R6/include
22953 /usr/local/X11R5/include
22954 /usr/local/X11R4/include
22955
22956 /usr/local/include/X11
22957 /usr/local/include/X11R6
22958 /usr/local/include/X11R5
22959 /usr/local/include/X11R4
22960
22961 /usr/X386/include
22962 /usr/x386/include
22963 /usr/XFree86/include/X11
22964
22965 /usr/include
22966 /usr/local/include
22967 /usr/unsupported/include
22968 /usr/athena/include
22969 /usr/local/x11r5/include
22970 /usr/lpp/Xamples/include
22971
22972 /usr/openwin/include
22973 /usr/openwin/share/include'
22974
22975 if test "$ac_x_includes" = no; then
22976   # Guess where to find include files, by looking for Xlib.h.
22977   # First, try using that file with no special directory specified.
22978   cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984 #include <X11/Xlib.h>
22985 _ACEOF
22986 if { (ac_try="$ac_cpp conftest.$ac_ext"
22987 case "(($ac_try" in
22988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989   *) ac_try_echo=$ac_try;;
22990 esac
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22993   ac_status=$?
22994   grep -v '^ *+' conftest.er1 >conftest.err
22995   rm -f conftest.er1
22996   cat conftest.err >&5
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); } >/dev/null && {
22999          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23000          test ! -s conftest.err
23001        }; then
23002   # We can compile using X headers with no special include directory.
23003 ac_x_includes=
23004 else
23005   echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23007
23008   for ac_dir in $ac_x_header_dirs; do
23009   if test -r "$ac_dir/X11/Xlib.h"; then
23010     ac_x_includes=$ac_dir
23011     break
23012   fi
23013 done
23014 fi
23015
23016 rm -f conftest.err conftest.$ac_ext
23017 fi # $ac_x_includes = no
23018
23019 if test "$ac_x_libraries" = no; then
23020   # Check for the libraries.
23021   # See if we find them without any special options.
23022   # Don't add to $LIBS permanently.
23023   ac_save_LIBS=$LIBS
23024   LIBS="-lX11 $LIBS"
23025   cat >conftest.$ac_ext <<_ACEOF
23026 /* confdefs.h.  */
23027 _ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h.  */
23031 #include <X11/Xlib.h>
23032 int
23033 main ()
23034 {
23035 XrmInitialize ()
23036   ;
23037   return 0;
23038 }
23039 _ACEOF
23040 rm -f conftest.$ac_objext conftest$ac_exeext
23041 if { (ac_try="$ac_link"
23042 case "(($ac_try" in
23043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044   *) ac_try_echo=$ac_try;;
23045 esac
23046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23047   (eval "$ac_link") 2>conftest.er1
23048   ac_status=$?
23049   grep -v '^ *+' conftest.er1 >conftest.err
23050   rm -f conftest.er1
23051   cat conftest.err >&5
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); } && {
23054          test -z "$ac_c_werror_flag" ||
23055          test ! -s conftest.err
23056        } && test -s conftest$ac_exeext &&
23057        $as_test_x conftest$ac_exeext; then
23058   LIBS=$ac_save_LIBS
23059 # We can link X programs with no special library path.
23060 ac_x_libraries=
23061 else
23062   echo "$as_me: failed program was:" >&5
23063 sed 's/^/| /' conftest.$ac_ext >&5
23064
23065         LIBS=$ac_save_LIBS
23066 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23067 do
23068   # Don't even attempt the hair of trying to link an X program!
23069   for ac_extension in a so sl; do
23070     if test -r "$ac_dir/libX11.$ac_extension"; then
23071       ac_x_libraries=$ac_dir
23072       break 2
23073     fi
23074   done
23075 done
23076 fi
23077
23078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23079       conftest$ac_exeext conftest.$ac_ext
23080 fi # $ac_x_libraries = no
23081
23082 case $ac_x_includes,$ac_x_libraries in #(
23083   no,* | *,no | *\'*)
23084     # Didn't find X, or a directory has "'" in its name.
23085     ac_cv_have_x="have_x=no";; #(
23086   *)
23087     # Record where we found X for the cache.
23088     ac_cv_have_x="have_x=yes\
23089         ac_x_includes='$ac_x_includes'\
23090         ac_x_libraries='$ac_x_libraries'"
23091 esac
23092 fi
23093 ;; #(
23094     *) have_x=yes;;
23095   esac
23096   eval "$ac_cv_have_x"
23097 fi # $with_x != no
23098
23099 if test "$have_x" != yes; then
23100   { echo "$as_me:$LINENO: result: $have_x" >&5
23101 echo "${ECHO_T}$have_x" >&6; }
23102   no_x=yes
23103 else
23104   # If each of the values was on the command line, it overrides each guess.
23105   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23106   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23107   # Update the cache value to reflect the command line values.
23108   ac_cv_have_x="have_x=yes\
23109         ac_x_includes='$x_includes'\
23110         ac_x_libraries='$x_libraries'"
23111   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23112 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
23113 fi
23114
23115 if test "$no_x" = yes; then
23116   # Not all programs may use this symbol, but it does not hurt to define it.
23117
23118 cat >>confdefs.h <<\_ACEOF
23119 #define X_DISPLAY_MISSING 1
23120 _ACEOF
23121
23122   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23123 else
23124   if test -n "$x_includes"; then
23125     X_CFLAGS="$X_CFLAGS -I$x_includes"
23126   fi
23127
23128   # It would also be nice to do this for all -L options, not just this one.
23129   if test -n "$x_libraries"; then
23130     X_LIBS="$X_LIBS -L$x_libraries"
23131     # For Solaris; some versions of Sun CC require a space after -R and
23132     # others require no space.  Words are not sufficient . . . .
23133     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23134 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
23135     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23136     ac_xsave_c_werror_flag=$ac_c_werror_flag
23137     ac_c_werror_flag=yes
23138     cat >conftest.$ac_ext <<_ACEOF
23139 /* confdefs.h.  */
23140 _ACEOF
23141 cat confdefs.h >>conftest.$ac_ext
23142 cat >>conftest.$ac_ext <<_ACEOF
23143 /* end confdefs.h.  */
23144
23145 int
23146 main ()
23147 {
23148
23149   ;
23150   return 0;
23151 }
23152 _ACEOF
23153 rm -f conftest.$ac_objext conftest$ac_exeext
23154 if { (ac_try="$ac_link"
23155 case "(($ac_try" in
23156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157   *) ac_try_echo=$ac_try;;
23158 esac
23159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160   (eval "$ac_link") 2>conftest.er1
23161   ac_status=$?
23162   grep -v '^ *+' conftest.er1 >conftest.err
23163   rm -f conftest.er1
23164   cat conftest.err >&5
23165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166   (exit $ac_status); } && {
23167          test -z "$ac_c_werror_flag" ||
23168          test ! -s conftest.err
23169        } && test -s conftest$ac_exeext &&
23170        $as_test_x conftest$ac_exeext; then
23171   { echo "$as_me:$LINENO: result: no" >&5
23172 echo "${ECHO_T}no" >&6; }
23173        X_LIBS="$X_LIBS -R$x_libraries"
23174 else
23175   echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.$ac_ext >&5
23177
23178         LIBS="$ac_xsave_LIBS -R $x_libraries"
23179        cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h.  */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h.  */
23185
23186 int
23187 main ()
23188 {
23189
23190   ;
23191   return 0;
23192 }
23193 _ACEOF
23194 rm -f conftest.$ac_objext conftest$ac_exeext
23195 if { (ac_try="$ac_link"
23196 case "(($ac_try" in
23197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198   *) ac_try_echo=$ac_try;;
23199 esac
23200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201   (eval "$ac_link") 2>conftest.er1
23202   ac_status=$?
23203   grep -v '^ *+' conftest.er1 >conftest.err
23204   rm -f conftest.er1
23205   cat conftest.err >&5
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); } && {
23208          test -z "$ac_c_werror_flag" ||
23209          test ! -s conftest.err
23210        } && test -s conftest$ac_exeext &&
23211        $as_test_x conftest$ac_exeext; then
23212   { echo "$as_me:$LINENO: result: yes" >&5
23213 echo "${ECHO_T}yes" >&6; }
23214           X_LIBS="$X_LIBS -R $x_libraries"
23215 else
23216   echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23218
23219         { echo "$as_me:$LINENO: result: neither works" >&5
23220 echo "${ECHO_T}neither works" >&6; }
23221 fi
23222
23223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23224       conftest$ac_exeext conftest.$ac_ext
23225 fi
23226
23227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23228       conftest$ac_exeext conftest.$ac_ext
23229     ac_c_werror_flag=$ac_xsave_c_werror_flag
23230     LIBS=$ac_xsave_LIBS
23231   fi
23232
23233   # Check for system-dependent libraries X programs must link with.
23234   # Do this before checking for the system-independent R6 libraries
23235   # (-lICE), since we may need -lsocket or whatever for X linking.
23236
23237   if test "$ISC" = yes; then
23238     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23239   else
23240     # Martyn Johnson says this is needed for Ultrix, if the X
23241     # libraries were built with DECnet support.  And Karl Berry says
23242     # the Alpha needs dnet_stub (dnet does not exist).
23243     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23244     cat >conftest.$ac_ext <<_ACEOF
23245 /* confdefs.h.  */
23246 _ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h.  */
23250
23251 /* Override any GCC internal prototype to avoid an error.
23252    Use char because int might match the return type of a GCC
23253    builtin and then its argument prototype would still apply.  */
23254 #ifdef __cplusplus
23255 extern "C"
23256 #endif
23257 char XOpenDisplay ();
23258 int
23259 main ()
23260 {
23261 return XOpenDisplay ();
23262   ;
23263   return 0;
23264 }
23265 _ACEOF
23266 rm -f conftest.$ac_objext conftest$ac_exeext
23267 if { (ac_try="$ac_link"
23268 case "(($ac_try" in
23269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270   *) ac_try_echo=$ac_try;;
23271 esac
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273   (eval "$ac_link") 2>conftest.er1
23274   ac_status=$?
23275   grep -v '^ *+' conftest.er1 >conftest.err
23276   rm -f conftest.er1
23277   cat conftest.err >&5
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); } && {
23280          test -z "$ac_c_werror_flag" ||
23281          test ! -s conftest.err
23282        } && test -s conftest$ac_exeext &&
23283        $as_test_x conftest$ac_exeext; then
23284   :
23285 else
23286   echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23288
23289         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23290 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23291 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23292   echo $ECHO_N "(cached) $ECHO_C" >&6
23293 else
23294   ac_check_lib_save_LIBS=$LIBS
23295 LIBS="-ldnet  $LIBS"
23296 cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h.  */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h.  */
23302
23303 /* Override any GCC internal prototype to avoid an error.
23304    Use char because int might match the return type of a GCC
23305    builtin and then its argument prototype would still apply.  */
23306 #ifdef __cplusplus
23307 extern "C"
23308 #endif
23309 char dnet_ntoa ();
23310 int
23311 main ()
23312 {
23313 return dnet_ntoa ();
23314   ;
23315   return 0;
23316 }
23317 _ACEOF
23318 rm -f conftest.$ac_objext conftest$ac_exeext
23319 if { (ac_try="$ac_link"
23320 case "(($ac_try" in
23321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322   *) ac_try_echo=$ac_try;;
23323 esac
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325   (eval "$ac_link") 2>conftest.er1
23326   ac_status=$?
23327   grep -v '^ *+' conftest.er1 >conftest.err
23328   rm -f conftest.er1
23329   cat conftest.err >&5
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); } && {
23332          test -z "$ac_c_werror_flag" ||
23333          test ! -s conftest.err
23334        } && test -s conftest$ac_exeext &&
23335        $as_test_x conftest$ac_exeext; then
23336   ac_cv_lib_dnet_dnet_ntoa=yes
23337 else
23338   echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23340
23341         ac_cv_lib_dnet_dnet_ntoa=no
23342 fi
23343
23344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23345       conftest$ac_exeext conftest.$ac_ext
23346 LIBS=$ac_check_lib_save_LIBS
23347 fi
23348 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23349 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23350 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23351   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23352 fi
23353
23354     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23355       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23356 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23357 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23358   echo $ECHO_N "(cached) $ECHO_C" >&6
23359 else
23360   ac_check_lib_save_LIBS=$LIBS
23361 LIBS="-ldnet_stub  $LIBS"
23362 cat >conftest.$ac_ext <<_ACEOF
23363 /* confdefs.h.  */
23364 _ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h.  */
23368
23369 /* Override any GCC internal prototype to avoid an error.
23370    Use char because int might match the return type of a GCC
23371    builtin and then its argument prototype would still apply.  */
23372 #ifdef __cplusplus
23373 extern "C"
23374 #endif
23375 char dnet_ntoa ();
23376 int
23377 main ()
23378 {
23379 return dnet_ntoa ();
23380   ;
23381   return 0;
23382 }
23383 _ACEOF
23384 rm -f conftest.$ac_objext conftest$ac_exeext
23385 if { (ac_try="$ac_link"
23386 case "(($ac_try" in
23387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388   *) ac_try_echo=$ac_try;;
23389 esac
23390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23391   (eval "$ac_link") 2>conftest.er1
23392   ac_status=$?
23393   grep -v '^ *+' conftest.er1 >conftest.err
23394   rm -f conftest.er1
23395   cat conftest.err >&5
23396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397   (exit $ac_status); } && {
23398          test -z "$ac_c_werror_flag" ||
23399          test ! -s conftest.err
23400        } && test -s conftest$ac_exeext &&
23401        $as_test_x conftest$ac_exeext; then
23402   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23403 else
23404   echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23406
23407         ac_cv_lib_dnet_stub_dnet_ntoa=no
23408 fi
23409
23410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23411       conftest$ac_exeext conftest.$ac_ext
23412 LIBS=$ac_check_lib_save_LIBS
23413 fi
23414 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23415 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23416 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23417   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23418 fi
23419
23420     fi
23421 fi
23422
23423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23424       conftest$ac_exeext conftest.$ac_ext
23425     LIBS="$ac_xsave_LIBS"
23426
23427     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23428     # to get the SysV transport functions.
23429     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23430     # needs -lnsl.
23431     # The nsl library prevents programs from opening the X display
23432     # on Irix 5.2, according to T.E. Dickey.
23433     # The functions gethostbyname, getservbyname, and inet_addr are
23434     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23435     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23436 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23437 if test "${ac_cv_func_gethostbyname+set}" = set; then
23438   echo $ECHO_N "(cached) $ECHO_C" >&6
23439 else
23440   cat >conftest.$ac_ext <<_ACEOF
23441 /* confdefs.h.  */
23442 _ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h.  */
23446 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23448 #define gethostbyname innocuous_gethostbyname
23449
23450 /* System header to define __stub macros and hopefully few prototypes,
23451     which can conflict with char gethostbyname (); below.
23452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23453     <limits.h> exists even on freestanding compilers.  */
23454
23455 #ifdef __STDC__
23456 # include <limits.h>
23457 #else
23458 # include <assert.h>
23459 #endif
23460
23461 #undef gethostbyname
23462
23463 /* Override any GCC internal prototype to avoid an error.
23464    Use char because int might match the return type of a GCC
23465    builtin and then its argument prototype would still apply.  */
23466 #ifdef __cplusplus
23467 extern "C"
23468 #endif
23469 char gethostbyname ();
23470 /* The GNU C library defines this for functions which it implements
23471     to always fail with ENOSYS.  Some functions are actually named
23472     something starting with __ and the normal name is an alias.  */
23473 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23474 choke me
23475 #endif
23476
23477 int
23478 main ()
23479 {
23480 return gethostbyname ();
23481   ;
23482   return 0;
23483 }
23484 _ACEOF
23485 rm -f conftest.$ac_objext conftest$ac_exeext
23486 if { (ac_try="$ac_link"
23487 case "(($ac_try" in
23488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23489   *) ac_try_echo=$ac_try;;
23490 esac
23491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23492   (eval "$ac_link") 2>conftest.er1
23493   ac_status=$?
23494   grep -v '^ *+' conftest.er1 >conftest.err
23495   rm -f conftest.er1
23496   cat conftest.err >&5
23497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); } && {
23499          test -z "$ac_c_werror_flag" ||
23500          test ! -s conftest.err
23501        } && test -s conftest$ac_exeext &&
23502        $as_test_x conftest$ac_exeext; then
23503   ac_cv_func_gethostbyname=yes
23504 else
23505   echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23507
23508         ac_cv_func_gethostbyname=no
23509 fi
23510
23511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23512       conftest$ac_exeext conftest.$ac_ext
23513 fi
23514 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23515 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23516
23517     if test $ac_cv_func_gethostbyname = no; then
23518       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23519 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23520 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23521   echo $ECHO_N "(cached) $ECHO_C" >&6
23522 else
23523   ac_check_lib_save_LIBS=$LIBS
23524 LIBS="-lnsl  $LIBS"
23525 cat >conftest.$ac_ext <<_ACEOF
23526 /* confdefs.h.  */
23527 _ACEOF
23528 cat confdefs.h >>conftest.$ac_ext
23529 cat >>conftest.$ac_ext <<_ACEOF
23530 /* end confdefs.h.  */
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 int
23540 main ()
23541 {
23542 return gethostbyname ();
23543   ;
23544   return 0;
23545 }
23546 _ACEOF
23547 rm -f conftest.$ac_objext conftest$ac_exeext
23548 if { (ac_try="$ac_link"
23549 case "(($ac_try" in
23550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551   *) ac_try_echo=$ac_try;;
23552 esac
23553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554   (eval "$ac_link") 2>conftest.er1
23555   ac_status=$?
23556   grep -v '^ *+' conftest.er1 >conftest.err
23557   rm -f conftest.er1
23558   cat conftest.err >&5
23559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560   (exit $ac_status); } && {
23561          test -z "$ac_c_werror_flag" ||
23562          test ! -s conftest.err
23563        } && test -s conftest$ac_exeext &&
23564        $as_test_x conftest$ac_exeext; then
23565   ac_cv_lib_nsl_gethostbyname=yes
23566 else
23567   echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23569
23570         ac_cv_lib_nsl_gethostbyname=no
23571 fi
23572
23573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23574       conftest$ac_exeext conftest.$ac_ext
23575 LIBS=$ac_check_lib_save_LIBS
23576 fi
23577 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23578 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23579 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23580   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23581 fi
23582
23583       if test $ac_cv_lib_nsl_gethostbyname = no; then
23584         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23585 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
23586 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23587   echo $ECHO_N "(cached) $ECHO_C" >&6
23588 else
23589   ac_check_lib_save_LIBS=$LIBS
23590 LIBS="-lbsd  $LIBS"
23591 cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h.  */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h.  */
23597
23598 /* Override any GCC internal prototype to avoid an error.
23599    Use char because int might match the return type of a GCC
23600    builtin and then its argument prototype would still apply.  */
23601 #ifdef __cplusplus
23602 extern "C"
23603 #endif
23604 char gethostbyname ();
23605 int
23606 main ()
23607 {
23608 return gethostbyname ();
23609   ;
23610   return 0;
23611 }
23612 _ACEOF
23613 rm -f conftest.$ac_objext conftest$ac_exeext
23614 if { (ac_try="$ac_link"
23615 case "(($ac_try" in
23616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617   *) ac_try_echo=$ac_try;;
23618 esac
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620   (eval "$ac_link") 2>conftest.er1
23621   ac_status=$?
23622   grep -v '^ *+' conftest.er1 >conftest.err
23623   rm -f conftest.er1
23624   cat conftest.err >&5
23625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626   (exit $ac_status); } && {
23627          test -z "$ac_c_werror_flag" ||
23628          test ! -s conftest.err
23629        } && test -s conftest$ac_exeext &&
23630        $as_test_x conftest$ac_exeext; then
23631   ac_cv_lib_bsd_gethostbyname=yes
23632 else
23633   echo "$as_me: failed program was:" >&5
23634 sed 's/^/| /' conftest.$ac_ext >&5
23635
23636         ac_cv_lib_bsd_gethostbyname=no
23637 fi
23638
23639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23640       conftest$ac_exeext conftest.$ac_ext
23641 LIBS=$ac_check_lib_save_LIBS
23642 fi
23643 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23644 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
23645 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23646   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23647 fi
23648
23649       fi
23650     fi
23651
23652     # lieder@skyler.mavd.honeywell.com says without -lsocket,
23653     # socket/setsockopt and other routines are undefined under SCO ODT
23654     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
23655     # on later versions), says Simon Leinen: it contains gethostby*
23656     # variants that don't use the name server (or something).  -lsocket
23657     # must be given before -lnsl if both are needed.  We assume that
23658     # if connect needs -lnsl, so does gethostbyname.
23659     { echo "$as_me:$LINENO: checking for connect" >&5
23660 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23661 if test "${ac_cv_func_connect+set}" = set; then
23662   echo $ECHO_N "(cached) $ECHO_C" >&6
23663 else
23664   cat >conftest.$ac_ext <<_ACEOF
23665 /* confdefs.h.  */
23666 _ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h.  */
23670 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23672 #define connect innocuous_connect
23673
23674 /* System header to define __stub macros and hopefully few prototypes,
23675     which can conflict with char connect (); below.
23676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23677     <limits.h> exists even on freestanding compilers.  */
23678
23679 #ifdef __STDC__
23680 # include <limits.h>
23681 #else
23682 # include <assert.h>
23683 #endif
23684
23685 #undef connect
23686
23687 /* Override any GCC internal prototype to avoid an error.
23688    Use char because int might match the return type of a GCC
23689    builtin and then its argument prototype would still apply.  */
23690 #ifdef __cplusplus
23691 extern "C"
23692 #endif
23693 char connect ();
23694 /* The GNU C library defines this for functions which it implements
23695     to always fail with ENOSYS.  Some functions are actually named
23696     something starting with __ and the normal name is an alias.  */
23697 #if defined __stub_connect || defined __stub___connect
23698 choke me
23699 #endif
23700
23701 int
23702 main ()
23703 {
23704 return connect ();
23705   ;
23706   return 0;
23707 }
23708 _ACEOF
23709 rm -f conftest.$ac_objext conftest$ac_exeext
23710 if { (ac_try="$ac_link"
23711 case "(($ac_try" in
23712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713   *) ac_try_echo=$ac_try;;
23714 esac
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716   (eval "$ac_link") 2>conftest.er1
23717   ac_status=$?
23718   grep -v '^ *+' conftest.er1 >conftest.err
23719   rm -f conftest.er1
23720   cat conftest.err >&5
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); } && {
23723          test -z "$ac_c_werror_flag" ||
23724          test ! -s conftest.err
23725        } && test -s conftest$ac_exeext &&
23726        $as_test_x conftest$ac_exeext; then
23727   ac_cv_func_connect=yes
23728 else
23729   echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23731
23732         ac_cv_func_connect=no
23733 fi
23734
23735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23736       conftest$ac_exeext conftest.$ac_ext
23737 fi
23738 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23739 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23740
23741     if test $ac_cv_func_connect = no; then
23742       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23743 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
23744 if test "${ac_cv_lib_socket_connect+set}" = set; then
23745   echo $ECHO_N "(cached) $ECHO_C" >&6
23746 else
23747   ac_check_lib_save_LIBS=$LIBS
23748 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23749 cat >conftest.$ac_ext <<_ACEOF
23750 /* confdefs.h.  */
23751 _ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.h.  */
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 int
23764 main ()
23765 {
23766 return connect ();
23767   ;
23768   return 0;
23769 }
23770 _ACEOF
23771 rm -f conftest.$ac_objext conftest$ac_exeext
23772 if { (ac_try="$ac_link"
23773 case "(($ac_try" in
23774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775   *) ac_try_echo=$ac_try;;
23776 esac
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778   (eval "$ac_link") 2>conftest.er1
23779   ac_status=$?
23780   grep -v '^ *+' conftest.er1 >conftest.err
23781   rm -f conftest.er1
23782   cat conftest.err >&5
23783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784   (exit $ac_status); } && {
23785          test -z "$ac_c_werror_flag" ||
23786          test ! -s conftest.err
23787        } && test -s conftest$ac_exeext &&
23788        $as_test_x conftest$ac_exeext; then
23789   ac_cv_lib_socket_connect=yes
23790 else
23791   echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23793
23794         ac_cv_lib_socket_connect=no
23795 fi
23796
23797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23798       conftest$ac_exeext conftest.$ac_ext
23799 LIBS=$ac_check_lib_save_LIBS
23800 fi
23801 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23802 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
23803 if test $ac_cv_lib_socket_connect = yes; then
23804   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23805 fi
23806
23807     fi
23808
23809     # Guillermo Gomez says -lposix is necessary on A/UX.
23810     { echo "$as_me:$LINENO: checking for remove" >&5
23811 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
23812 if test "${ac_cv_func_remove+set}" = set; then
23813   echo $ECHO_N "(cached) $ECHO_C" >&6
23814 else
23815   cat >conftest.$ac_ext <<_ACEOF
23816 /* confdefs.h.  */
23817 _ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h.  */
23821 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23823 #define remove innocuous_remove
23824
23825 /* System header to define __stub macros and hopefully few prototypes,
23826     which can conflict with char remove (); below.
23827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23828     <limits.h> exists even on freestanding compilers.  */
23829
23830 #ifdef __STDC__
23831 # include <limits.h>
23832 #else
23833 # include <assert.h>
23834 #endif
23835
23836 #undef remove
23837
23838 /* Override any GCC internal prototype to avoid an error.
23839    Use char because int might match the return type of a GCC
23840    builtin and then its argument prototype would still apply.  */
23841 #ifdef __cplusplus
23842 extern "C"
23843 #endif
23844 char remove ();
23845 /* The GNU C library defines this for functions which it implements
23846     to always fail with ENOSYS.  Some functions are actually named
23847     something starting with __ and the normal name is an alias.  */
23848 #if defined __stub_remove || defined __stub___remove
23849 choke me
23850 #endif
23851
23852 int
23853 main ()
23854 {
23855 return remove ();
23856   ;
23857   return 0;
23858 }
23859 _ACEOF
23860 rm -f conftest.$ac_objext conftest$ac_exeext
23861 if { (ac_try="$ac_link"
23862 case "(($ac_try" in
23863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864   *) ac_try_echo=$ac_try;;
23865 esac
23866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867   (eval "$ac_link") 2>conftest.er1
23868   ac_status=$?
23869   grep -v '^ *+' conftest.er1 >conftest.err
23870   rm -f conftest.er1
23871   cat conftest.err >&5
23872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873   (exit $ac_status); } && {
23874          test -z "$ac_c_werror_flag" ||
23875          test ! -s conftest.err
23876        } && test -s conftest$ac_exeext &&
23877        $as_test_x conftest$ac_exeext; then
23878   ac_cv_func_remove=yes
23879 else
23880   echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23882
23883         ac_cv_func_remove=no
23884 fi
23885
23886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23887       conftest$ac_exeext conftest.$ac_ext
23888 fi
23889 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23890 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
23891
23892     if test $ac_cv_func_remove = no; then
23893       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23894 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
23895 if test "${ac_cv_lib_posix_remove+set}" = set; then
23896   echo $ECHO_N "(cached) $ECHO_C" >&6
23897 else
23898   ac_check_lib_save_LIBS=$LIBS
23899 LIBS="-lposix  $LIBS"
23900 cat >conftest.$ac_ext <<_ACEOF
23901 /* confdefs.h.  */
23902 _ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h.  */
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 int
23915 main ()
23916 {
23917 return remove ();
23918   ;
23919   return 0;
23920 }
23921 _ACEOF
23922 rm -f conftest.$ac_objext conftest$ac_exeext
23923 if { (ac_try="$ac_link"
23924 case "(($ac_try" in
23925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23926   *) ac_try_echo=$ac_try;;
23927 esac
23928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23929   (eval "$ac_link") 2>conftest.er1
23930   ac_status=$?
23931   grep -v '^ *+' conftest.er1 >conftest.err
23932   rm -f conftest.er1
23933   cat conftest.err >&5
23934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935   (exit $ac_status); } && {
23936          test -z "$ac_c_werror_flag" ||
23937          test ! -s conftest.err
23938        } && test -s conftest$ac_exeext &&
23939        $as_test_x conftest$ac_exeext; then
23940   ac_cv_lib_posix_remove=yes
23941 else
23942   echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23944
23945         ac_cv_lib_posix_remove=no
23946 fi
23947
23948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23949       conftest$ac_exeext conftest.$ac_ext
23950 LIBS=$ac_check_lib_save_LIBS
23951 fi
23952 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23953 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
23954 if test $ac_cv_lib_posix_remove = yes; then
23955   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23956 fi
23957
23958     fi
23959
23960     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23961     { echo "$as_me:$LINENO: checking for shmat" >&5
23962 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
23963 if test "${ac_cv_func_shmat+set}" = set; then
23964   echo $ECHO_N "(cached) $ECHO_C" >&6
23965 else
23966   cat >conftest.$ac_ext <<_ACEOF
23967 /* confdefs.h.  */
23968 _ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h.  */
23972 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23974 #define shmat innocuous_shmat
23975
23976 /* System header to define __stub macros and hopefully few prototypes,
23977     which can conflict with char shmat (); below.
23978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23979     <limits.h> exists even on freestanding compilers.  */
23980
23981 #ifdef __STDC__
23982 # include <limits.h>
23983 #else
23984 # include <assert.h>
23985 #endif
23986
23987 #undef shmat
23988
23989 /* Override any GCC internal prototype to avoid an error.
23990    Use char because int might match the return type of a GCC
23991    builtin and then its argument prototype would still apply.  */
23992 #ifdef __cplusplus
23993 extern "C"
23994 #endif
23995 char shmat ();
23996 /* The GNU C library defines this for functions which it implements
23997     to always fail with ENOSYS.  Some functions are actually named
23998     something starting with __ and the normal name is an alias.  */
23999 #if defined __stub_shmat || defined __stub___shmat
24000 choke me
24001 #endif
24002
24003 int
24004 main ()
24005 {
24006 return shmat ();
24007   ;
24008   return 0;
24009 }
24010 _ACEOF
24011 rm -f conftest.$ac_objext conftest$ac_exeext
24012 if { (ac_try="$ac_link"
24013 case "(($ac_try" in
24014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24015   *) ac_try_echo=$ac_try;;
24016 esac
24017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24018   (eval "$ac_link") 2>conftest.er1
24019   ac_status=$?
24020   grep -v '^ *+' conftest.er1 >conftest.err
24021   rm -f conftest.er1
24022   cat conftest.err >&5
24023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024   (exit $ac_status); } && {
24025          test -z "$ac_c_werror_flag" ||
24026          test ! -s conftest.err
24027        } && test -s conftest$ac_exeext &&
24028        $as_test_x conftest$ac_exeext; then
24029   ac_cv_func_shmat=yes
24030 else
24031   echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24033
24034         ac_cv_func_shmat=no
24035 fi
24036
24037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24038       conftest$ac_exeext conftest.$ac_ext
24039 fi
24040 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24041 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24042
24043     if test $ac_cv_func_shmat = no; then
24044       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24045 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24046 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24047   echo $ECHO_N "(cached) $ECHO_C" >&6
24048 else
24049   ac_check_lib_save_LIBS=$LIBS
24050 LIBS="-lipc  $LIBS"
24051 cat >conftest.$ac_ext <<_ACEOF
24052 /* confdefs.h.  */
24053 _ACEOF
24054 cat confdefs.h >>conftest.$ac_ext
24055 cat >>conftest.$ac_ext <<_ACEOF
24056 /* end confdefs.h.  */
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 int
24066 main ()
24067 {
24068 return shmat ();
24069   ;
24070   return 0;
24071 }
24072 _ACEOF
24073 rm -f conftest.$ac_objext conftest$ac_exeext
24074 if { (ac_try="$ac_link"
24075 case "(($ac_try" in
24076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077   *) ac_try_echo=$ac_try;;
24078 esac
24079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24080   (eval "$ac_link") 2>conftest.er1
24081   ac_status=$?
24082   grep -v '^ *+' conftest.er1 >conftest.err
24083   rm -f conftest.er1
24084   cat conftest.err >&5
24085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086   (exit $ac_status); } && {
24087          test -z "$ac_c_werror_flag" ||
24088          test ! -s conftest.err
24089        } && test -s conftest$ac_exeext &&
24090        $as_test_x conftest$ac_exeext; then
24091   ac_cv_lib_ipc_shmat=yes
24092 else
24093   echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24095
24096         ac_cv_lib_ipc_shmat=no
24097 fi
24098
24099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24100       conftest$ac_exeext conftest.$ac_ext
24101 LIBS=$ac_check_lib_save_LIBS
24102 fi
24103 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24104 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24105 if test $ac_cv_lib_ipc_shmat = yes; then
24106   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24107 fi
24108
24109     fi
24110   fi
24111
24112   # Check for libraries that X11R6 Xt/Xaw programs need.
24113   ac_save_LDFLAGS=$LDFLAGS
24114   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24115   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24116   # check for ICE first), but we must link in the order -lSM -lICE or
24117   # we get undefined symbols.  So assume we have SM if we have ICE.
24118   # These have to be linked with before -lX11, unlike the other
24119   # libraries we check for below, so use a different variable.
24120   # John Interrante, Karl Berry
24121   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24122 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
24123 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24124   echo $ECHO_N "(cached) $ECHO_C" >&6
24125 else
24126   ac_check_lib_save_LIBS=$LIBS
24127 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24128 cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h.  */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h.  */
24134
24135 /* Override any GCC internal prototype to avoid an error.
24136    Use char because int might match the return type of a GCC
24137    builtin and then its argument prototype would still apply.  */
24138 #ifdef __cplusplus
24139 extern "C"
24140 #endif
24141 char IceConnectionNumber ();
24142 int
24143 main ()
24144 {
24145 return IceConnectionNumber ();
24146   ;
24147   return 0;
24148 }
24149 _ACEOF
24150 rm -f conftest.$ac_objext conftest$ac_exeext
24151 if { (ac_try="$ac_link"
24152 case "(($ac_try" in
24153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154   *) ac_try_echo=$ac_try;;
24155 esac
24156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24157   (eval "$ac_link") 2>conftest.er1
24158   ac_status=$?
24159   grep -v '^ *+' conftest.er1 >conftest.err
24160   rm -f conftest.er1
24161   cat conftest.err >&5
24162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163   (exit $ac_status); } && {
24164          test -z "$ac_c_werror_flag" ||
24165          test ! -s conftest.err
24166        } && test -s conftest$ac_exeext &&
24167        $as_test_x conftest$ac_exeext; then
24168   ac_cv_lib_ICE_IceConnectionNumber=yes
24169 else
24170   echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24172
24173         ac_cv_lib_ICE_IceConnectionNumber=no
24174 fi
24175
24176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24177       conftest$ac_exeext conftest.$ac_ext
24178 LIBS=$ac_check_lib_save_LIBS
24179 fi
24180 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24181 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24182 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24183   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24184 fi
24185
24186   LDFLAGS=$ac_save_LDFLAGS
24187
24188 fi
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221 for ac_header in \
24222         assert.h \
24223         fcntl.h \
24224         grp.h \
24225         pwd.h \
24226         libc.h \
24227         limits.h \
24228         stdarg.h \
24229         stdlib.h \
24230         stdint.h \
24231         string.h \
24232         strings.h \
24233         termios.h \
24234         termcap.h \
24235         term.h \
24236         unistd.h \
24237         sys/bitypes.h \
24238         sys/byteorder.h \
24239         sys/ioctl.h \
24240         sys/select.h \
24241         sys/socket.h \
24242         sys/sockio.h \
24243         sys/stat.h \
24244         sys/time.h \
24245         sys/types.h \
24246         arpa/nameser.h \
24247         resolv.h \
24248         mtio.h \
24249         sys/mtio.h \
24250         sys/tape.h \
24251         regex.h \
24252
24253 do
24254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24256   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24259   echo $ECHO_N "(cached) $ECHO_C" >&6
24260 fi
24261 ac_res=`eval echo '${'$as_ac_Header'}'`
24262                { echo "$as_me:$LINENO: result: $ac_res" >&5
24263 echo "${ECHO_T}$ac_res" >&6; }
24264 else
24265   # Is the header compilable?
24266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24268 cat >conftest.$ac_ext <<_ACEOF
24269 /* confdefs.h.  */
24270 _ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h.  */
24274 $ac_includes_default
24275 #include <$ac_header>
24276 _ACEOF
24277 rm -f conftest.$ac_objext
24278 if { (ac_try="$ac_compile"
24279 case "(($ac_try" in
24280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24281   *) ac_try_echo=$ac_try;;
24282 esac
24283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24284   (eval "$ac_compile") 2>conftest.er1
24285   ac_status=$?
24286   grep -v '^ *+' conftest.er1 >conftest.err
24287   rm -f conftest.er1
24288   cat conftest.err >&5
24289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290   (exit $ac_status); } && {
24291          test -z "$ac_c_werror_flag" ||
24292          test ! -s conftest.err
24293        } && test -s conftest.$ac_objext; then
24294   ac_header_compiler=yes
24295 else
24296   echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24298
24299         ac_header_compiler=no
24300 fi
24301
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24304 echo "${ECHO_T}$ac_header_compiler" >&6; }
24305
24306 # Is the header present?
24307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24309 cat >conftest.$ac_ext <<_ACEOF
24310 /* confdefs.h.  */
24311 _ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h.  */
24315 #include <$ac_header>
24316 _ACEOF
24317 if { (ac_try="$ac_cpp conftest.$ac_ext"
24318 case "(($ac_try" in
24319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320   *) ac_try_echo=$ac_try;;
24321 esac
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24324   ac_status=$?
24325   grep -v '^ *+' conftest.er1 >conftest.err
24326   rm -f conftest.er1
24327   cat conftest.err >&5
24328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329   (exit $ac_status); } >/dev/null && {
24330          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24331          test ! -s conftest.err
24332        }; then
24333   ac_header_preproc=yes
24334 else
24335   echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24337
24338   ac_header_preproc=no
24339 fi
24340
24341 rm -f conftest.err conftest.$ac_ext
24342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24343 echo "${ECHO_T}$ac_header_preproc" >&6; }
24344
24345 # So?  What about this header?
24346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24347   yes:no: )
24348     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24352     ac_header_preproc=yes
24353     ;;
24354   no:yes:* )
24355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24357     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24358 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24359     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24361     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24362 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24365     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24367
24368     ;;
24369 esac
24370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24373   echo $ECHO_N "(cached) $ECHO_C" >&6
24374 else
24375   eval "$as_ac_Header=\$ac_header_preproc"
24376 fi
24377 ac_res=`eval echo '${'$as_ac_Header'}'`
24378                { echo "$as_me:$LINENO: result: $ac_res" >&5
24379 echo "${ECHO_T}$ac_res" >&6; }
24380
24381 fi
24382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24383   cat >>confdefs.h <<_ACEOF
24384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24385 _ACEOF
24386
24387 fi
24388
24389 done
24390
24391 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24392 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
24393 if test "${ac_cv_header_stdc+set}" = set; then
24394   echo $ECHO_N "(cached) $ECHO_C" >&6
24395 else
24396   cat >conftest.$ac_ext <<_ACEOF
24397 /* confdefs.h.  */
24398 _ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h.  */
24402 #include <stdlib.h>
24403 #include <stdarg.h>
24404 #include <string.h>
24405 #include <float.h>
24406
24407 int
24408 main ()
24409 {
24410
24411   ;
24412   return 0;
24413 }
24414 _ACEOF
24415 rm -f conftest.$ac_objext
24416 if { (ac_try="$ac_compile"
24417 case "(($ac_try" in
24418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419   *) ac_try_echo=$ac_try;;
24420 esac
24421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24422   (eval "$ac_compile") 2>conftest.er1
24423   ac_status=$?
24424   grep -v '^ *+' conftest.er1 >conftest.err
24425   rm -f conftest.er1
24426   cat conftest.err >&5
24427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428   (exit $ac_status); } && {
24429          test -z "$ac_c_werror_flag" ||
24430          test ! -s conftest.err
24431        } && test -s conftest.$ac_objext; then
24432   ac_cv_header_stdc=yes
24433 else
24434   echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24436
24437         ac_cv_header_stdc=no
24438 fi
24439
24440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24441
24442 if test $ac_cv_header_stdc = yes; then
24443   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24444   cat >conftest.$ac_ext <<_ACEOF
24445 /* confdefs.h.  */
24446 _ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h.  */
24450 #include <string.h>
24451
24452 _ACEOF
24453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24454   $EGREP "memchr" >/dev/null 2>&1; then
24455   :
24456 else
24457   ac_cv_header_stdc=no
24458 fi
24459 rm -f conftest*
24460
24461 fi
24462
24463 if test $ac_cv_header_stdc = yes; then
24464   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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
24473 _ACEOF
24474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24475   $EGREP "free" >/dev/null 2>&1; then
24476   :
24477 else
24478   ac_cv_header_stdc=no
24479 fi
24480 rm -f conftest*
24481
24482 fi
24483
24484 if test $ac_cv_header_stdc = yes; then
24485   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24486   if test "$cross_compiling" = yes; then
24487   :
24488 else
24489   cat >conftest.$ac_ext <<_ACEOF
24490 /* confdefs.h.  */
24491 _ACEOF
24492 cat confdefs.h >>conftest.$ac_ext
24493 cat >>conftest.$ac_ext <<_ACEOF
24494 /* end confdefs.h.  */
24495 #include <ctype.h>
24496 #include <stdlib.h>
24497 #if ((' ' & 0x0FF) == 0x020)
24498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24500 #else
24501 # define ISLOWER(c) \
24502                    (('a' <= (c) && (c) <= 'i') \
24503                      || ('j' <= (c) && (c) <= 'r') \
24504                      || ('s' <= (c) && (c) <= 'z'))
24505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24506 #endif
24507
24508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24509 int
24510 main ()
24511 {
24512   int i;
24513   for (i = 0; i < 256; i++)
24514     if (XOR (islower (i), ISLOWER (i))
24515         || toupper (i) != TOUPPER (i))
24516       return 2;
24517   return 0;
24518 }
24519 _ACEOF
24520 rm -f conftest$ac_exeext
24521 if { (ac_try="$ac_link"
24522 case "(($ac_try" in
24523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24524   *) ac_try_echo=$ac_try;;
24525 esac
24526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24527   (eval "$ac_link") 2>&5
24528   ac_status=$?
24529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24531   { (case "(($ac_try" in
24532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533   *) ac_try_echo=$ac_try;;
24534 esac
24535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24536   (eval "$ac_try") 2>&5
24537   ac_status=$?
24538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539   (exit $ac_status); }; }; then
24540   :
24541 else
24542   echo "$as_me: program exited with status $ac_status" >&5
24543 echo "$as_me: failed program was:" >&5
24544 sed 's/^/| /' conftest.$ac_ext >&5
24545
24546 ( exit $ac_status )
24547 ac_cv_header_stdc=no
24548 fi
24549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24550 fi
24551
24552
24553 fi
24554 fi
24555 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24556 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
24557 if test $ac_cv_header_stdc = yes; then
24558
24559 cat >>confdefs.h <<\_ACEOF
24560 #define STDC_HEADERS 1
24561 _ACEOF
24562
24563 fi
24564
24565 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24566 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
24567 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24568   echo $ECHO_N "(cached) $ECHO_C" >&6
24569 else
24570   cat >conftest.$ac_ext <<_ACEOF
24571 /* confdefs.h.  */
24572 _ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h.  */
24576 #include <sys/types.h>
24577 int
24578 main ()
24579 {
24580 return makedev(0, 0);
24581   ;
24582   return 0;
24583 }
24584 _ACEOF
24585 rm -f conftest.$ac_objext conftest$ac_exeext
24586 if { (ac_try="$ac_link"
24587 case "(($ac_try" in
24588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589   *) ac_try_echo=$ac_try;;
24590 esac
24591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592   (eval "$ac_link") 2>conftest.er1
24593   ac_status=$?
24594   grep -v '^ *+' conftest.er1 >conftest.err
24595   rm -f conftest.er1
24596   cat conftest.err >&5
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); } && {
24599          test -z "$ac_c_werror_flag" ||
24600          test ! -s conftest.err
24601        } && test -s conftest$ac_exeext &&
24602        $as_test_x conftest$ac_exeext; then
24603   ac_cv_header_sys_types_h_makedev=yes
24604 else
24605   echo "$as_me: failed program was:" >&5
24606 sed 's/^/| /' conftest.$ac_ext >&5
24607
24608         ac_cv_header_sys_types_h_makedev=no
24609 fi
24610
24611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24612       conftest$ac_exeext conftest.$ac_ext
24613
24614 fi
24615 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24616 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
24617
24618 if test $ac_cv_header_sys_types_h_makedev = no; then
24619 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24620   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24621 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
24622 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24623   echo $ECHO_N "(cached) $ECHO_C" >&6
24624 fi
24625 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24626 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
24627 else
24628   # Is the header compilable?
24629 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24630 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
24631 cat >conftest.$ac_ext <<_ACEOF
24632 /* confdefs.h.  */
24633 _ACEOF
24634 cat confdefs.h >>conftest.$ac_ext
24635 cat >>conftest.$ac_ext <<_ACEOF
24636 /* end confdefs.h.  */
24637 $ac_includes_default
24638 #include <sys/mkdev.h>
24639 _ACEOF
24640 rm -f conftest.$ac_objext
24641 if { (ac_try="$ac_compile"
24642 case "(($ac_try" in
24643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644   *) ac_try_echo=$ac_try;;
24645 esac
24646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647   (eval "$ac_compile") 2>conftest.er1
24648   ac_status=$?
24649   grep -v '^ *+' conftest.er1 >conftest.err
24650   rm -f conftest.er1
24651   cat conftest.err >&5
24652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653   (exit $ac_status); } && {
24654          test -z "$ac_c_werror_flag" ||
24655          test ! -s conftest.err
24656        } && test -s conftest.$ac_objext; then
24657   ac_header_compiler=yes
24658 else
24659   echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24661
24662         ac_header_compiler=no
24663 fi
24664
24665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24667 echo "${ECHO_T}$ac_header_compiler" >&6; }
24668
24669 # Is the header present?
24670 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24671 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
24672 cat >conftest.$ac_ext <<_ACEOF
24673 /* confdefs.h.  */
24674 _ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h.  */
24678 #include <sys/mkdev.h>
24679 _ACEOF
24680 if { (ac_try="$ac_cpp conftest.$ac_ext"
24681 case "(($ac_try" in
24682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683   *) ac_try_echo=$ac_try;;
24684 esac
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24687   ac_status=$?
24688   grep -v '^ *+' conftest.er1 >conftest.err
24689   rm -f conftest.er1
24690   cat conftest.err >&5
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); } >/dev/null && {
24693          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24694          test ! -s conftest.err
24695        }; then
24696   ac_header_preproc=yes
24697 else
24698   echo "$as_me: failed program was:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24700
24701   ac_header_preproc=no
24702 fi
24703
24704 rm -f conftest.err conftest.$ac_ext
24705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24706 echo "${ECHO_T}$ac_header_preproc" >&6; }
24707
24708 # So?  What about this header?
24709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24710   yes:no: )
24711     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24712 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24713     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24714 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24715     ac_header_preproc=yes
24716     ;;
24717   no:yes:* )
24718     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24719 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24720     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
24721 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
24722     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24723 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24724     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
24725 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24726     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24727 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24728     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24729 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24730
24731     ;;
24732 esac
24733 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24734 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
24735 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24736   echo $ECHO_N "(cached) $ECHO_C" >&6
24737 else
24738   ac_cv_header_sys_mkdev_h=$ac_header_preproc
24739 fi
24740 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24741 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
24742
24743 fi
24744 if test $ac_cv_header_sys_mkdev_h = yes; then
24745
24746 cat >>confdefs.h <<\_ACEOF
24747 #define MAJOR_IN_MKDEV 1
24748 _ACEOF
24749
24750 fi
24751
24752
24753
24754   if test $ac_cv_header_sys_mkdev_h = no; then
24755     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24756   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24757 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
24758 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24759   echo $ECHO_N "(cached) $ECHO_C" >&6
24760 fi
24761 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24762 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
24763 else
24764   # Is the header compilable?
24765 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24766 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
24767 cat >conftest.$ac_ext <<_ACEOF
24768 /* confdefs.h.  */
24769 _ACEOF
24770 cat confdefs.h >>conftest.$ac_ext
24771 cat >>conftest.$ac_ext <<_ACEOF
24772 /* end confdefs.h.  */
24773 $ac_includes_default
24774 #include <sys/sysmacros.h>
24775 _ACEOF
24776 rm -f conftest.$ac_objext
24777 if { (ac_try="$ac_compile"
24778 case "(($ac_try" in
24779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780   *) ac_try_echo=$ac_try;;
24781 esac
24782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24783   (eval "$ac_compile") 2>conftest.er1
24784   ac_status=$?
24785   grep -v '^ *+' conftest.er1 >conftest.err
24786   rm -f conftest.er1
24787   cat conftest.err >&5
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); } && {
24790          test -z "$ac_c_werror_flag" ||
24791          test ! -s conftest.err
24792        } && test -s conftest.$ac_objext; then
24793   ac_header_compiler=yes
24794 else
24795   echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24797
24798         ac_header_compiler=no
24799 fi
24800
24801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24803 echo "${ECHO_T}$ac_header_compiler" >&6; }
24804
24805 # Is the header present?
24806 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24807 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
24808 cat >conftest.$ac_ext <<_ACEOF
24809 /* confdefs.h.  */
24810 _ACEOF
24811 cat confdefs.h >>conftest.$ac_ext
24812 cat >>conftest.$ac_ext <<_ACEOF
24813 /* end confdefs.h.  */
24814 #include <sys/sysmacros.h>
24815 _ACEOF
24816 if { (ac_try="$ac_cpp conftest.$ac_ext"
24817 case "(($ac_try" in
24818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24819   *) ac_try_echo=$ac_try;;
24820 esac
24821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24823   ac_status=$?
24824   grep -v '^ *+' conftest.er1 >conftest.err
24825   rm -f conftest.er1
24826   cat conftest.err >&5
24827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828   (exit $ac_status); } >/dev/null && {
24829          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24830          test ! -s conftest.err
24831        }; then
24832   ac_header_preproc=yes
24833 else
24834   echo "$as_me: failed program was:" >&5
24835 sed 's/^/| /' conftest.$ac_ext >&5
24836
24837   ac_header_preproc=no
24838 fi
24839
24840 rm -f conftest.err conftest.$ac_ext
24841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24842 echo "${ECHO_T}$ac_header_preproc" >&6; }
24843
24844 # So?  What about this header?
24845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24846   yes:no: )
24847     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
24848 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24849     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
24850 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
24851     ac_header_preproc=yes
24852     ;;
24853   no:yes:* )
24854     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
24855 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
24856     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
24857 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
24858     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
24859 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
24860     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
24861 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24862     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
24863 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
24864     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
24865 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
24866
24867     ;;
24868 esac
24869 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24870 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
24871 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24872   echo $ECHO_N "(cached) $ECHO_C" >&6
24873 else
24874   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
24875 fi
24876 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24877 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
24878
24879 fi
24880 if test $ac_cv_header_sys_sysmacros_h = yes; then
24881
24882 cat >>confdefs.h <<\_ACEOF
24883 #define MAJOR_IN_SYSMACROS 1
24884 _ACEOF
24885
24886 fi
24887
24888
24889   fi
24890 fi
24891
24892
24893
24894
24895
24896
24897 ac_header_dirent=no
24898 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24899   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24900 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24901 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24903   echo $ECHO_N "(cached) $ECHO_C" >&6
24904 else
24905   cat >conftest.$ac_ext <<_ACEOF
24906 /* confdefs.h.  */
24907 _ACEOF
24908 cat confdefs.h >>conftest.$ac_ext
24909 cat >>conftest.$ac_ext <<_ACEOF
24910 /* end confdefs.h.  */
24911 #include <sys/types.h>
24912 #include <$ac_hdr>
24913
24914 int
24915 main ()
24916 {
24917 if ((DIR *) 0)
24918 return 0;
24919   ;
24920   return 0;
24921 }
24922 _ACEOF
24923 rm -f conftest.$ac_objext
24924 if { (ac_try="$ac_compile"
24925 case "(($ac_try" in
24926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24927   *) ac_try_echo=$ac_try;;
24928 esac
24929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24930   (eval "$ac_compile") 2>conftest.er1
24931   ac_status=$?
24932   grep -v '^ *+' conftest.er1 >conftest.err
24933   rm -f conftest.er1
24934   cat conftest.err >&5
24935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); } && {
24937          test -z "$ac_c_werror_flag" ||
24938          test ! -s conftest.err
24939        } && test -s conftest.$ac_objext; then
24940   eval "$as_ac_Header=yes"
24941 else
24942   echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24944
24945         eval "$as_ac_Header=no"
24946 fi
24947
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24949 fi
24950 ac_res=`eval echo '${'$as_ac_Header'}'`
24951                { echo "$as_me:$LINENO: result: $ac_res" >&5
24952 echo "${ECHO_T}$ac_res" >&6; }
24953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24954   cat >>confdefs.h <<_ACEOF
24955 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24956 _ACEOF
24957
24958 ac_header_dirent=$ac_hdr; break
24959 fi
24960
24961 done
24962 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24963 if test $ac_header_dirent = dirent.h; then
24964   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24965 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24966 if test "${ac_cv_search_opendir+set}" = set; then
24967   echo $ECHO_N "(cached) $ECHO_C" >&6
24968 else
24969   ac_func_search_save_LIBS=$LIBS
24970 cat >conftest.$ac_ext <<_ACEOF
24971 /* confdefs.h.  */
24972 _ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h.  */
24976
24977 /* Override any GCC internal prototype to avoid an error.
24978    Use char because int might match the return type of a GCC
24979    builtin and then its argument prototype would still apply.  */
24980 #ifdef __cplusplus
24981 extern "C"
24982 #endif
24983 char opendir ();
24984 int
24985 main ()
24986 {
24987 return opendir ();
24988   ;
24989   return 0;
24990 }
24991 _ACEOF
24992 for ac_lib in '' dir; do
24993   if test -z "$ac_lib"; then
24994     ac_res="none required"
24995   else
24996     ac_res=-l$ac_lib
24997     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24998   fi
24999   rm -f conftest.$ac_objext conftest$ac_exeext
25000 if { (ac_try="$ac_link"
25001 case "(($ac_try" in
25002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003   *) ac_try_echo=$ac_try;;
25004 esac
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006   (eval "$ac_link") 2>conftest.er1
25007   ac_status=$?
25008   grep -v '^ *+' conftest.er1 >conftest.err
25009   rm -f conftest.er1
25010   cat conftest.err >&5
25011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012   (exit $ac_status); } && {
25013          test -z "$ac_c_werror_flag" ||
25014          test ! -s conftest.err
25015        } && test -s conftest$ac_exeext &&
25016        $as_test_x conftest$ac_exeext; then
25017   ac_cv_search_opendir=$ac_res
25018 else
25019   echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25021
25022
25023 fi
25024
25025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25026       conftest$ac_exeext
25027   if test "${ac_cv_search_opendir+set}" = set; then
25028   break
25029 fi
25030 done
25031 if test "${ac_cv_search_opendir+set}" = set; then
25032   :
25033 else
25034   ac_cv_search_opendir=no
25035 fi
25036 rm conftest.$ac_ext
25037 LIBS=$ac_func_search_save_LIBS
25038 fi
25039 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25040 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25041 ac_res=$ac_cv_search_opendir
25042 if test "$ac_res" != no; then
25043   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25044
25045 fi
25046
25047 else
25048   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25049 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25050 if test "${ac_cv_search_opendir+set}" = set; then
25051   echo $ECHO_N "(cached) $ECHO_C" >&6
25052 else
25053   ac_func_search_save_LIBS=$LIBS
25054 cat >conftest.$ac_ext <<_ACEOF
25055 /* confdefs.h.  */
25056 _ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h.  */
25060
25061 /* Override any GCC internal prototype to avoid an error.
25062    Use char because int might match the return type of a GCC
25063    builtin and then its argument prototype would still apply.  */
25064 #ifdef __cplusplus
25065 extern "C"
25066 #endif
25067 char opendir ();
25068 int
25069 main ()
25070 {
25071 return opendir ();
25072   ;
25073   return 0;
25074 }
25075 _ACEOF
25076 for ac_lib in '' x; do
25077   if test -z "$ac_lib"; then
25078     ac_res="none required"
25079   else
25080     ac_res=-l$ac_lib
25081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25082   fi
25083   rm -f conftest.$ac_objext conftest$ac_exeext
25084 if { (ac_try="$ac_link"
25085 case "(($ac_try" in
25086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25087   *) ac_try_echo=$ac_try;;
25088 esac
25089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25090   (eval "$ac_link") 2>conftest.er1
25091   ac_status=$?
25092   grep -v '^ *+' conftest.er1 >conftest.err
25093   rm -f conftest.er1
25094   cat conftest.err >&5
25095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096   (exit $ac_status); } && {
25097          test -z "$ac_c_werror_flag" ||
25098          test ! -s conftest.err
25099        } && test -s conftest$ac_exeext &&
25100        $as_test_x conftest$ac_exeext; then
25101   ac_cv_search_opendir=$ac_res
25102 else
25103   echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25105
25106
25107 fi
25108
25109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25110       conftest$ac_exeext
25111   if test "${ac_cv_search_opendir+set}" = set; then
25112   break
25113 fi
25114 done
25115 if test "${ac_cv_search_opendir+set}" = set; then
25116   :
25117 else
25118   ac_cv_search_opendir=no
25119 fi
25120 rm conftest.$ac_ext
25121 LIBS=$ac_func_search_save_LIBS
25122 fi
25123 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25124 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25125 ac_res=$ac_cv_search_opendir
25126 if test "$ac_res" != no; then
25127   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25128
25129 fi
25130
25131 fi
25132
25133 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25134 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25135 if test "${ac_cv_header_stat_broken+set}" = set; then
25136   echo $ECHO_N "(cached) $ECHO_C" >&6
25137 else
25138   cat >conftest.$ac_ext <<_ACEOF
25139 /* confdefs.h.  */
25140 _ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h.  */
25144 #include <sys/types.h>
25145 #include <sys/stat.h>
25146
25147 #if defined S_ISBLK && defined S_IFDIR
25148 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25149 #endif
25150
25151 #if defined S_ISBLK && defined S_IFCHR
25152 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25153 #endif
25154
25155 #if defined S_ISLNK && defined S_IFREG
25156 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25157 #endif
25158
25159 #if defined S_ISSOCK && defined S_IFREG
25160 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25161 #endif
25162
25163 _ACEOF
25164 rm -f conftest.$ac_objext
25165 if { (ac_try="$ac_compile"
25166 case "(($ac_try" in
25167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25168   *) ac_try_echo=$ac_try;;
25169 esac
25170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25171   (eval "$ac_compile") 2>conftest.er1
25172   ac_status=$?
25173   grep -v '^ *+' conftest.er1 >conftest.err
25174   rm -f conftest.er1
25175   cat conftest.err >&5
25176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177   (exit $ac_status); } && {
25178          test -z "$ac_c_werror_flag" ||
25179          test ! -s conftest.err
25180        } && test -s conftest.$ac_objext; then
25181   ac_cv_header_stat_broken=no
25182 else
25183   echo "$as_me: failed program was:" >&5
25184 sed 's/^/| /' conftest.$ac_ext >&5
25185
25186         ac_cv_header_stat_broken=yes
25187 fi
25188
25189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25190 fi
25191 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25192 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25193 if test $ac_cv_header_stat_broken = yes; then
25194
25195 cat >>confdefs.h <<\_ACEOF
25196 #define STAT_MACROS_BROKEN 1
25197 _ACEOF
25198
25199 fi
25200
25201 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25202 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
25203 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25204   echo $ECHO_N "(cached) $ECHO_C" >&6
25205 else
25206   cat >conftest.$ac_ext <<_ACEOF
25207 /* confdefs.h.  */
25208 _ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h.  */
25212 #include <sys/types.h>
25213 #include <sys/wait.h>
25214 #ifndef WEXITSTATUS
25215 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25216 #endif
25217 #ifndef WIFEXITED
25218 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25219 #endif
25220
25221 int
25222 main ()
25223 {
25224   int s;
25225   wait (&s);
25226   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25227   ;
25228   return 0;
25229 }
25230 _ACEOF
25231 rm -f conftest.$ac_objext
25232 if { (ac_try="$ac_compile"
25233 case "(($ac_try" in
25234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25235   *) ac_try_echo=$ac_try;;
25236 esac
25237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25238   (eval "$ac_compile") 2>conftest.er1
25239   ac_status=$?
25240   grep -v '^ *+' conftest.er1 >conftest.err
25241   rm -f conftest.er1
25242   cat conftest.err >&5
25243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244   (exit $ac_status); } && {
25245          test -z "$ac_c_werror_flag" ||
25246          test ! -s conftest.err
25247        } && test -s conftest.$ac_objext; then
25248   ac_cv_header_sys_wait_h=yes
25249 else
25250   echo "$as_me: failed program was:" >&5
25251 sed 's/^/| /' conftest.$ac_ext >&5
25252
25253         ac_cv_header_sys_wait_h=no
25254 fi
25255
25256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25257 fi
25258 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25259 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
25260 if test $ac_cv_header_sys_wait_h = yes; then
25261
25262 cat >>confdefs.h <<\_ACEOF
25263 #define HAVE_SYS_WAIT_H 1
25264 _ACEOF
25265
25266 fi
25267
25268 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25269 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25270 if test "${ac_cv_header_time+set}" = set; then
25271   echo $ECHO_N "(cached) $ECHO_C" >&6
25272 else
25273   cat >conftest.$ac_ext <<_ACEOF
25274 /* confdefs.h.  */
25275 _ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h.  */
25279 #include <sys/types.h>
25280 #include <sys/time.h>
25281 #include <time.h>
25282
25283 int
25284 main ()
25285 {
25286 if ((struct tm *) 0)
25287 return 0;
25288   ;
25289   return 0;
25290 }
25291 _ACEOF
25292 rm -f conftest.$ac_objext
25293 if { (ac_try="$ac_compile"
25294 case "(($ac_try" in
25295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296   *) ac_try_echo=$ac_try;;
25297 esac
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299   (eval "$ac_compile") 2>conftest.er1
25300   ac_status=$?
25301   grep -v '^ *+' conftest.er1 >conftest.err
25302   rm -f conftest.er1
25303   cat conftest.err >&5
25304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305   (exit $ac_status); } && {
25306          test -z "$ac_c_werror_flag" ||
25307          test ! -s conftest.err
25308        } && test -s conftest.$ac_objext; then
25309   ac_cv_header_time=yes
25310 else
25311   echo "$as_me: failed program was:" >&5
25312 sed 's/^/| /' conftest.$ac_ext >&5
25313
25314         ac_cv_header_time=no
25315 fi
25316
25317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25318 fi
25319 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25320 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25321 if test $ac_cv_header_time = yes; then
25322
25323 cat >>confdefs.h <<\_ACEOF
25324 #define TIME_WITH_SYS_TIME 1
25325 _ACEOF
25326
25327 fi
25328
25329 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
25330 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
25331 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
25332   echo $ECHO_N "(cached) $ECHO_C" >&6
25333 else
25334   cat >conftest.$ac_ext <<_ACEOF
25335 /* confdefs.h.  */
25336 _ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h.  */
25340 $ac_includes_default
25341 int
25342 main ()
25343 {
25344 static struct stat ac_aggr;
25345 if (ac_aggr.st_blksize)
25346 return 0;
25347   ;
25348   return 0;
25349 }
25350 _ACEOF
25351 rm -f conftest.$ac_objext
25352 if { (ac_try="$ac_compile"
25353 case "(($ac_try" in
25354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355   *) ac_try_echo=$ac_try;;
25356 esac
25357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25358   (eval "$ac_compile") 2>conftest.er1
25359   ac_status=$?
25360   grep -v '^ *+' conftest.er1 >conftest.err
25361   rm -f conftest.er1
25362   cat conftest.err >&5
25363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364   (exit $ac_status); } && {
25365          test -z "$ac_c_werror_flag" ||
25366          test ! -s conftest.err
25367        } && test -s conftest.$ac_objext; then
25368   ac_cv_member_struct_stat_st_blksize=yes
25369 else
25370   echo "$as_me: failed program was:" >&5
25371 sed 's/^/| /' conftest.$ac_ext >&5
25372
25373         cat >conftest.$ac_ext <<_ACEOF
25374 /* confdefs.h.  */
25375 _ACEOF
25376 cat confdefs.h >>conftest.$ac_ext
25377 cat >>conftest.$ac_ext <<_ACEOF
25378 /* end confdefs.h.  */
25379 $ac_includes_default
25380 int
25381 main ()
25382 {
25383 static struct stat ac_aggr;
25384 if (sizeof ac_aggr.st_blksize)
25385 return 0;
25386   ;
25387   return 0;
25388 }
25389 _ACEOF
25390 rm -f conftest.$ac_objext
25391 if { (ac_try="$ac_compile"
25392 case "(($ac_try" in
25393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394   *) ac_try_echo=$ac_try;;
25395 esac
25396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25397   (eval "$ac_compile") 2>conftest.er1
25398   ac_status=$?
25399   grep -v '^ *+' conftest.er1 >conftest.err
25400   rm -f conftest.er1
25401   cat conftest.err >&5
25402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403   (exit $ac_status); } && {
25404          test -z "$ac_c_werror_flag" ||
25405          test ! -s conftest.err
25406        } && test -s conftest.$ac_objext; then
25407   ac_cv_member_struct_stat_st_blksize=yes
25408 else
25409   echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25411
25412         ac_cv_member_struct_stat_st_blksize=no
25413 fi
25414
25415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 fi
25417
25418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25419 fi
25420 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
25421 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
25422 if test $ac_cv_member_struct_stat_st_blksize = yes; then
25423
25424 cat >>confdefs.h <<_ACEOF
25425 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25426 _ACEOF
25427
25428
25429 cat >>confdefs.h <<\_ACEOF
25430 #define HAVE_ST_BLKSIZE 1
25431 _ACEOF
25432
25433 fi
25434
25435
25436 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25437 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25438 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25439   echo $ECHO_N "(cached) $ECHO_C" >&6
25440 else
25441   cat >conftest.$ac_ext <<_ACEOF
25442 /* confdefs.h.  */
25443 _ACEOF
25444 cat confdefs.h >>conftest.$ac_ext
25445 cat >>conftest.$ac_ext <<_ACEOF
25446 /* end confdefs.h.  */
25447 $ac_includes_default
25448 int
25449 main ()
25450 {
25451 static struct stat ac_aggr;
25452 if (ac_aggr.st_blocks)
25453 return 0;
25454   ;
25455   return 0;
25456 }
25457 _ACEOF
25458 rm -f conftest.$ac_objext
25459 if { (ac_try="$ac_compile"
25460 case "(($ac_try" in
25461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462   *) ac_try_echo=$ac_try;;
25463 esac
25464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465   (eval "$ac_compile") 2>conftest.er1
25466   ac_status=$?
25467   grep -v '^ *+' conftest.er1 >conftest.err
25468   rm -f conftest.er1
25469   cat conftest.err >&5
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); } && {
25472          test -z "$ac_c_werror_flag" ||
25473          test ! -s conftest.err
25474        } && test -s conftest.$ac_objext; then
25475   ac_cv_member_struct_stat_st_blocks=yes
25476 else
25477   echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25479
25480         cat >conftest.$ac_ext <<_ACEOF
25481 /* confdefs.h.  */
25482 _ACEOF
25483 cat confdefs.h >>conftest.$ac_ext
25484 cat >>conftest.$ac_ext <<_ACEOF
25485 /* end confdefs.h.  */
25486 $ac_includes_default
25487 int
25488 main ()
25489 {
25490 static struct stat ac_aggr;
25491 if (sizeof ac_aggr.st_blocks)
25492 return 0;
25493   ;
25494   return 0;
25495 }
25496 _ACEOF
25497 rm -f conftest.$ac_objext
25498 if { (ac_try="$ac_compile"
25499 case "(($ac_try" in
25500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501   *) ac_try_echo=$ac_try;;
25502 esac
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504   (eval "$ac_compile") 2>conftest.er1
25505   ac_status=$?
25506   grep -v '^ *+' conftest.er1 >conftest.err
25507   rm -f conftest.er1
25508   cat conftest.err >&5
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); } && {
25511          test -z "$ac_c_werror_flag" ||
25512          test ! -s conftest.err
25513        } && test -s conftest.$ac_objext; then
25514   ac_cv_member_struct_stat_st_blocks=yes
25515 else
25516   echo "$as_me: failed program was:" >&5
25517 sed 's/^/| /' conftest.$ac_ext >&5
25518
25519         ac_cv_member_struct_stat_st_blocks=no
25520 fi
25521
25522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25523 fi
25524
25525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25526 fi
25527 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25528 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25529 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25530
25531 cat >>confdefs.h <<_ACEOF
25532 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25533 _ACEOF
25534
25535
25536 cat >>confdefs.h <<\_ACEOF
25537 #define HAVE_ST_BLOCKS 1
25538 _ACEOF
25539
25540 else
25541   case " $LIBOBJS " in
25542   *" fileblocks.$ac_objext "* ) ;;
25543   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25544  ;;
25545 esac
25546
25547 fi
25548
25549
25550 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25551 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25552 if test "${ac_cv_struct_tm+set}" = set; then
25553   echo $ECHO_N "(cached) $ECHO_C" >&6
25554 else
25555   cat >conftest.$ac_ext <<_ACEOF
25556 /* confdefs.h.  */
25557 _ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h.  */
25561 #include <sys/types.h>
25562 #include <time.h>
25563
25564 int
25565 main ()
25566 {
25567 struct tm tm;
25568                                      int *p = &tm.tm_sec;
25569                                      return !p;
25570   ;
25571   return 0;
25572 }
25573 _ACEOF
25574 rm -f conftest.$ac_objext
25575 if { (ac_try="$ac_compile"
25576 case "(($ac_try" in
25577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25578   *) ac_try_echo=$ac_try;;
25579 esac
25580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25581   (eval "$ac_compile") 2>conftest.er1
25582   ac_status=$?
25583   grep -v '^ *+' conftest.er1 >conftest.err
25584   rm -f conftest.er1
25585   cat conftest.err >&5
25586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587   (exit $ac_status); } && {
25588          test -z "$ac_c_werror_flag" ||
25589          test ! -s conftest.err
25590        } && test -s conftest.$ac_objext; then
25591   ac_cv_struct_tm=time.h
25592 else
25593   echo "$as_me: failed program was:" >&5
25594 sed 's/^/| /' conftest.$ac_ext >&5
25595
25596         ac_cv_struct_tm=sys/time.h
25597 fi
25598
25599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25600 fi
25601 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25602 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25603 if test $ac_cv_struct_tm = sys/time.h; then
25604
25605 cat >>confdefs.h <<\_ACEOF
25606 #define TM_IN_SYS_TIME 1
25607 _ACEOF
25608
25609 fi
25610
25611 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25612 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
25613 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25614   echo $ECHO_N "(cached) $ECHO_C" >&6
25615 else
25616   cat >conftest.$ac_ext <<_ACEOF
25617 /* confdefs.h.  */
25618 _ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h.  */
25622 #include <sys/types.h>
25623 #include <$ac_cv_struct_tm>
25624
25625
25626 int
25627 main ()
25628 {
25629 static struct tm ac_aggr;
25630 if (ac_aggr.tm_zone)
25631 return 0;
25632   ;
25633   return 0;
25634 }
25635 _ACEOF
25636 rm -f conftest.$ac_objext
25637 if { (ac_try="$ac_compile"
25638 case "(($ac_try" in
25639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640   *) ac_try_echo=$ac_try;;
25641 esac
25642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25643   (eval "$ac_compile") 2>conftest.er1
25644   ac_status=$?
25645   grep -v '^ *+' conftest.er1 >conftest.err
25646   rm -f conftest.er1
25647   cat conftest.err >&5
25648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649   (exit $ac_status); } && {
25650          test -z "$ac_c_werror_flag" ||
25651          test ! -s conftest.err
25652        } && test -s conftest.$ac_objext; then
25653   ac_cv_member_struct_tm_tm_zone=yes
25654 else
25655   echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25657
25658         cat >conftest.$ac_ext <<_ACEOF
25659 /* confdefs.h.  */
25660 _ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h.  */
25664 #include <sys/types.h>
25665 #include <$ac_cv_struct_tm>
25666
25667
25668 int
25669 main ()
25670 {
25671 static struct tm ac_aggr;
25672 if (sizeof ac_aggr.tm_zone)
25673 return 0;
25674   ;
25675   return 0;
25676 }
25677 _ACEOF
25678 rm -f conftest.$ac_objext
25679 if { (ac_try="$ac_compile"
25680 case "(($ac_try" in
25681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25682   *) ac_try_echo=$ac_try;;
25683 esac
25684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25685   (eval "$ac_compile") 2>conftest.er1
25686   ac_status=$?
25687   grep -v '^ *+' conftest.er1 >conftest.err
25688   rm -f conftest.er1
25689   cat conftest.err >&5
25690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691   (exit $ac_status); } && {
25692          test -z "$ac_c_werror_flag" ||
25693          test ! -s conftest.err
25694        } && test -s conftest.$ac_objext; then
25695   ac_cv_member_struct_tm_tm_zone=yes
25696 else
25697   echo "$as_me: failed program was:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25699
25700         ac_cv_member_struct_tm_tm_zone=no
25701 fi
25702
25703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25704 fi
25705
25706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25707 fi
25708 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25709 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
25710 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25711
25712 cat >>confdefs.h <<_ACEOF
25713 #define HAVE_STRUCT_TM_TM_ZONE 1
25714 _ACEOF
25715
25716
25717 fi
25718
25719 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25720
25721 cat >>confdefs.h <<\_ACEOF
25722 #define HAVE_TM_ZONE 1
25723 _ACEOF
25724
25725 else
25726   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
25727 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
25728 if test "${ac_cv_have_decl_tzname+set}" = set; then
25729   echo $ECHO_N "(cached) $ECHO_C" >&6
25730 else
25731   cat >conftest.$ac_ext <<_ACEOF
25732 /* confdefs.h.  */
25733 _ACEOF
25734 cat confdefs.h >>conftest.$ac_ext
25735 cat >>conftest.$ac_ext <<_ACEOF
25736 /* end confdefs.h.  */
25737 #include <time.h>
25738
25739 int
25740 main ()
25741 {
25742 #ifndef tzname
25743   (void) tzname;
25744 #endif
25745
25746   ;
25747   return 0;
25748 }
25749 _ACEOF
25750 rm -f conftest.$ac_objext
25751 if { (ac_try="$ac_compile"
25752 case "(($ac_try" in
25753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25754   *) ac_try_echo=$ac_try;;
25755 esac
25756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25757   (eval "$ac_compile") 2>conftest.er1
25758   ac_status=$?
25759   grep -v '^ *+' conftest.er1 >conftest.err
25760   rm -f conftest.er1
25761   cat conftest.err >&5
25762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763   (exit $ac_status); } && {
25764          test -z "$ac_c_werror_flag" ||
25765          test ! -s conftest.err
25766        } && test -s conftest.$ac_objext; then
25767   ac_cv_have_decl_tzname=yes
25768 else
25769   echo "$as_me: failed program was:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25771
25772         ac_cv_have_decl_tzname=no
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_have_decl_tzname" >&5
25778 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
25779 if test $ac_cv_have_decl_tzname = yes; then
25780
25781 cat >>confdefs.h <<_ACEOF
25782 #define HAVE_DECL_TZNAME 1
25783 _ACEOF
25784
25785
25786 else
25787   cat >>confdefs.h <<_ACEOF
25788 #define HAVE_DECL_TZNAME 0
25789 _ACEOF
25790
25791
25792 fi
25793
25794
25795   { echo "$as_me:$LINENO: checking for tzname" >&5
25796 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
25797 if test "${ac_cv_var_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 #if !HAVE_DECL_TZNAME
25808 extern char *tzname[];
25809 #endif
25810
25811 int
25812 main ()
25813 {
25814 return tzname[0][0];
25815   ;
25816   return 0;
25817 }
25818 _ACEOF
25819 rm -f conftest.$ac_objext conftest$ac_exeext
25820 if { (ac_try="$ac_link"
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_link") 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_exeext &&
25836        $as_test_x conftest$ac_exeext; then
25837   ac_cv_var_tzname=yes
25838 else
25839   echo "$as_me: failed program was:" >&5
25840 sed 's/^/| /' conftest.$ac_ext >&5
25841
25842         ac_cv_var_tzname=no
25843 fi
25844
25845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25846       conftest$ac_exeext conftest.$ac_ext
25847 fi
25848 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25849 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25850   if test $ac_cv_var_tzname = yes; then
25851
25852 cat >>confdefs.h <<\_ACEOF
25853 #define HAVE_TZNAME 1
25854 _ACEOF
25855
25856   fi
25857 fi
25858
25859
25860 { echo "$as_me:$LINENO: checking for utime.h" >&5
25861 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
25862 if test "${ba_cv_header_utime_h+set}" = set; then
25863   echo $ECHO_N "(cached) $ECHO_C" >&6
25864 else
25865   cat >conftest.$ac_ext <<_ACEOF
25866 /* confdefs.h.  */
25867 _ACEOF
25868 cat confdefs.h >>conftest.$ac_ext
25869 cat >>conftest.$ac_ext <<_ACEOF
25870 /* end confdefs.h.  */
25871
25872 #include <sys/types.h>
25873 #include <utime.h>
25874 int
25875 main ()
25876 {
25877 struct utimbuf foo
25878   ;
25879   return 0;
25880 }
25881 _ACEOF
25882 rm -f conftest.$ac_objext
25883 if { (ac_try="$ac_compile"
25884 case "(($ac_try" in
25885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25886   *) ac_try_echo=$ac_try;;
25887 esac
25888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25889   (eval "$ac_compile") 2>conftest.er1
25890   ac_status=$?
25891   grep -v '^ *+' conftest.er1 >conftest.err
25892   rm -f conftest.er1
25893   cat conftest.err >&5
25894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895   (exit $ac_status); } && {
25896          test -z "$ac_c_werror_flag" ||
25897          test ! -s conftest.err
25898        } && test -s conftest.$ac_objext; then
25899   ba_cv_header_utime_h=yes
25900 else
25901   echo "$as_me: failed program was:" >&5
25902 sed 's/^/| /' conftest.$ac_ext >&5
25903
25904         ba_cv_header_utime_h=no
25905 fi
25906
25907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25908 fi
25909 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
25910 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
25911 test $ba_cv_header_utime_h = yes &&
25912 cat >>confdefs.h <<\_ACEOF
25913 #define HAVE_UTIME_H 1
25914 _ACEOF
25915
25916
25917 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25918 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25919 if test "${ba_cv_header_socklen_t+set}" = set; then
25920   echo $ECHO_N "(cached) $ECHO_C" >&6
25921 else
25922   cat >conftest.$ac_ext <<_ACEOF
25923 /* confdefs.h.  */
25924 _ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h.  */
25928
25929 #include <sys/types.h>
25930 #include <sys/socket.h>
25931 int
25932 main ()
25933 {
25934 socklen_t x
25935   ;
25936   return 0;
25937 }
25938 _ACEOF
25939 rm -f conftest.$ac_objext
25940 if { (ac_try="$ac_compile"
25941 case "(($ac_try" in
25942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25943   *) ac_try_echo=$ac_try;;
25944 esac
25945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25946   (eval "$ac_compile") 2>conftest.er1
25947   ac_status=$?
25948   grep -v '^ *+' conftest.er1 >conftest.err
25949   rm -f conftest.er1
25950   cat conftest.err >&5
25951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952   (exit $ac_status); } && {
25953          test -z "$ac_c_werror_flag" ||
25954          test ! -s conftest.err
25955        } && test -s conftest.$ac_objext; then
25956   ba_cv_header_socklen_t=yes
25957 else
25958   echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25960
25961         ba_cv_header_socklen_t=no
25962 fi
25963
25964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965 fi
25966 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
25967 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
25968 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
25969 #define HAVE_SOCKLEN_T 1
25970 _ACEOF
25971
25972
25973 { echo "$as_me:$LINENO: checking for bigendian" >&5
25974 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
25975 if test "${ba_cv_bigendian+set}" = set; then
25976   echo $ECHO_N "(cached) $ECHO_C" >&6
25977 else
25978   if test "$cross_compiling" = yes; then
25979   ba_cv_bigendian=no
25980 else
25981   cat >conftest.$ac_ext <<_ACEOF
25982 /* confdefs.h.  */
25983 _ACEOF
25984 cat confdefs.h >>conftest.$ac_ext
25985 cat >>conftest.$ac_ext <<_ACEOF
25986 /* end confdefs.h.  */
25987 main(){long a=1L; char *p=(char *)&a; exit(*p);}
25988 _ACEOF
25989 rm -f conftest$ac_exeext
25990 if { (ac_try="$ac_link"
25991 case "(($ac_try" in
25992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993   *) ac_try_echo=$ac_try;;
25994 esac
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996   (eval "$ac_link") 2>&5
25997   ac_status=$?
25998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26000   { (case "(($ac_try" in
26001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002   *) ac_try_echo=$ac_try;;
26003 esac
26004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005   (eval "$ac_try") 2>&5
26006   ac_status=$?
26007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008   (exit $ac_status); }; }; then
26009   ba_cv_bigendian=yes
26010 else
26011   echo "$as_me: program exited with status $ac_status" >&5
26012 echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26014
26015 ( exit $ac_status )
26016 ba_cv_bigendian=no
26017 fi
26018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26019 fi
26020
26021
26022 fi
26023 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
26024 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
26025 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
26026 #define HAVE_BIGENDIAN 1
26027 _ACEOF
26028
26029
26030 ac_ext=cpp
26031 ac_cpp='$CXXCPP $CPPFLAGS'
26032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26035
26036
26037 { echo "$as_me:$LINENO: checking for typeof" >&5
26038 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
26039 if test "${ba_cv_have_typeof+set}" = set; then
26040   echo $ECHO_N "(cached) $ECHO_C" >&6
26041 else
26042   if test "$cross_compiling" = yes; then
26043   ba_cv_have_typeof=no
26044 else
26045   cat >conftest.$ac_ext <<_ACEOF
26046 /* confdefs.h.  */
26047 _ACEOF
26048 cat confdefs.h >>conftest.$ac_ext
26049 cat >>conftest.$ac_ext <<_ACEOF
26050 /* end confdefs.h.  */
26051 main(){char *a = 0; a = (typeof a)a;}
26052 _ACEOF
26053 rm -f conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057   *) ac_try_echo=$ac_try;;
26058 esac
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060   (eval "$ac_link") 2>&5
26061   ac_status=$?
26062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26064   { (case "(($ac_try" in
26065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066   *) ac_try_echo=$ac_try;;
26067 esac
26068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26069   (eval "$ac_try") 2>&5
26070   ac_status=$?
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); }; }; then
26073   ba_cv_have_typeof=yes
26074 else
26075   echo "$as_me: program exited with status $ac_status" >&5
26076 echo "$as_me: failed program was:" >&5
26077 sed 's/^/| /' conftest.$ac_ext >&5
26078
26079 ( exit $ac_status )
26080 ba_cv_have_typeof=no
26081 fi
26082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26083 fi
26084
26085
26086 fi
26087 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
26088 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
26089 test $ba_cv_have_typeof = yes &&
26090 cat >>confdefs.h <<\_ACEOF
26091 #define HAVE_TYPEOF 1
26092 _ACEOF
26093
26094 ac_ext=c
26095 ac_cpp='$CPP $CPPFLAGS'
26096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26099
26100
26101 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
26102 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
26103 if test "${ac_cv_c_const+set}" = set; then
26104   echo $ECHO_N "(cached) $ECHO_C" >&6
26105 else
26106   cat >conftest.$ac_ext <<_ACEOF
26107 /* confdefs.h.  */
26108 _ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h.  */
26112
26113 int
26114 main ()
26115 {
26116 /* FIXME: Include the comments suggested by Paul. */
26117 #ifndef __cplusplus
26118   /* Ultrix mips cc rejects this.  */
26119   typedef int charset[2];
26120   const charset cs;
26121   /* SunOS 4.1.1 cc rejects this.  */
26122   char const *const *pcpcc;
26123   char **ppc;
26124   /* NEC SVR4.0.2 mips cc rejects this.  */
26125   struct point {int x, y;};
26126   static struct point const zero = {0,0};
26127   /* AIX XL C 1.02.0.0 rejects this.
26128      It does not let you subtract one const X* pointer from another in
26129      an arm of an if-expression whose if-part is not a constant
26130      expression */
26131   const char *g = "string";
26132   pcpcc = &g + (g ? g-g : 0);
26133   /* HPUX 7.0 cc rejects these. */
26134   ++pcpcc;
26135   ppc = (char**) pcpcc;
26136   pcpcc = (char const *const *) ppc;
26137   { /* SCO 3.2v4 cc rejects this.  */
26138     char *t;
26139     char const *s = 0 ? (char *) 0 : (char const *) 0;
26140
26141     *t++ = 0;
26142     if (s) return 0;
26143   }
26144   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26145     int x[] = {25, 17};
26146     const int *foo = &x[0];
26147     ++foo;
26148   }
26149   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26150     typedef const int *iptr;
26151     iptr p = 0;
26152     ++p;
26153   }
26154   { /* AIX XL C 1.02.0.0 rejects this saying
26155        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26156     struct s { int j; const int *ap[3]; };
26157     struct s *b; b->j = 5;
26158   }
26159   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26160     const int foo = 10;
26161     if (!foo) return 0;
26162   }
26163   return !cs[0] && !zero.x;
26164 #endif
26165
26166   ;
26167   return 0;
26168 }
26169 _ACEOF
26170 rm -f conftest.$ac_objext
26171 if { (ac_try="$ac_compile"
26172 case "(($ac_try" in
26173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26174   *) ac_try_echo=$ac_try;;
26175 esac
26176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26177   (eval "$ac_compile") 2>conftest.er1
26178   ac_status=$?
26179   grep -v '^ *+' conftest.er1 >conftest.err
26180   rm -f conftest.er1
26181   cat conftest.err >&5
26182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183   (exit $ac_status); } && {
26184          test -z "$ac_c_werror_flag" ||
26185          test ! -s conftest.err
26186        } && test -s conftest.$ac_objext; then
26187   ac_cv_c_const=yes
26188 else
26189   echo "$as_me: failed program was:" >&5
26190 sed 's/^/| /' conftest.$ac_ext >&5
26191
26192         ac_cv_c_const=no
26193 fi
26194
26195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26196 fi
26197 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
26198 echo "${ECHO_T}$ac_cv_c_const" >&6; }
26199 if test $ac_cv_c_const = no; then
26200
26201 cat >>confdefs.h <<\_ACEOF
26202 #define const
26203 _ACEOF
26204
26205 fi
26206
26207
26208
26209 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
26210 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
26211 fstype=no
26212 # The order of these tests is important.
26213 cat >conftest.$ac_ext <<_ACEOF
26214 /* confdefs.h.  */
26215 _ACEOF
26216 cat confdefs.h >>conftest.$ac_ext
26217 cat >>conftest.$ac_ext <<_ACEOF
26218 /* end confdefs.h.  */
26219 #include <sys/statvfs.h>
26220 #include <sys/fstyp.h>
26221 _ACEOF
26222 if { (ac_try="$ac_cpp conftest.$ac_ext"
26223 case "(($ac_try" in
26224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225   *) ac_try_echo=$ac_try;;
26226 esac
26227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26228   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26229   ac_status=$?
26230   grep -v '^ *+' conftest.er1 >conftest.err
26231   rm -f conftest.er1
26232   cat conftest.err >&5
26233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234   (exit $ac_status); } >/dev/null && {
26235          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26236          test ! -s conftest.err
26237        }; then
26238   cat >>confdefs.h <<\_ACEOF
26239 #define FSTYPE_STATVFS 1
26240 _ACEOF
26241  fstype=SVR4
26242 else
26243   echo "$as_me: failed program was:" >&5
26244 sed 's/^/| /' conftest.$ac_ext >&5
26245
26246
26247 fi
26248
26249 rm -f conftest.err conftest.$ac_ext
26250 if test $fstype = no; then
26251 cat >conftest.$ac_ext <<_ACEOF
26252 /* confdefs.h.  */
26253 _ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h.  */
26257 #include <sys/statfs.h>
26258 #include <sys/fstyp.h>
26259 _ACEOF
26260 if { (ac_try="$ac_cpp conftest.$ac_ext"
26261 case "(($ac_try" in
26262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26263   *) ac_try_echo=$ac_try;;
26264 esac
26265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26266   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26267   ac_status=$?
26268   grep -v '^ *+' conftest.er1 >conftest.err
26269   rm -f conftest.er1
26270   cat conftest.err >&5
26271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272   (exit $ac_status); } >/dev/null && {
26273          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26274          test ! -s conftest.err
26275        }; then
26276   cat >>confdefs.h <<\_ACEOF
26277 #define FSTYPE_USG_STATFS 1
26278 _ACEOF
26279  fstype=SVR3
26280 else
26281   echo "$as_me: failed program was:" >&5
26282 sed 's/^/| /' conftest.$ac_ext >&5
26283
26284
26285 fi
26286
26287 rm -f conftest.err conftest.$ac_ext
26288 fi
26289 if test $fstype = no; then
26290 cat >conftest.$ac_ext <<_ACEOF
26291 /* confdefs.h.  */
26292 _ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h.  */
26296 #include <sys/statfs.h>
26297 #include <sys/vmount.h>
26298 _ACEOF
26299 if { (ac_try="$ac_cpp conftest.$ac_ext"
26300 case "(($ac_try" in
26301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302   *) ac_try_echo=$ac_try;;
26303 esac
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26306   ac_status=$?
26307   grep -v '^ *+' conftest.er1 >conftest.err
26308   rm -f conftest.er1
26309   cat conftest.err >&5
26310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311   (exit $ac_status); } >/dev/null && {
26312          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26313          test ! -s conftest.err
26314        }; then
26315   cat >>confdefs.h <<\_ACEOF
26316 #define FSTYPE_AIX_STATFS 1
26317 _ACEOF
26318  fstype=AIX
26319 else
26320   echo "$as_me: failed program was:" >&5
26321 sed 's/^/| /' conftest.$ac_ext >&5
26322
26323
26324 fi
26325
26326 rm -f conftest.err conftest.$ac_ext
26327 fi
26328 if test $fstype = no; then
26329 cat >conftest.$ac_ext <<_ACEOF
26330 /* confdefs.h.  */
26331 _ACEOF
26332 cat confdefs.h >>conftest.$ac_ext
26333 cat >>conftest.$ac_ext <<_ACEOF
26334 /* end confdefs.h.  */
26335 #include <mntent.h>
26336 _ACEOF
26337 if { (ac_try="$ac_cpp conftest.$ac_ext"
26338 case "(($ac_try" in
26339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26340   *) ac_try_echo=$ac_try;;
26341 esac
26342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26344   ac_status=$?
26345   grep -v '^ *+' conftest.er1 >conftest.err
26346   rm -f conftest.er1
26347   cat conftest.err >&5
26348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349   (exit $ac_status); } >/dev/null && {
26350          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26351          test ! -s conftest.err
26352        }; then
26353   cat >>confdefs.h <<\_ACEOF
26354 #define FSTYPE_MNTENT 1
26355 _ACEOF
26356  fstype=4.3BSD
26357 else
26358   echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26360
26361
26362 fi
26363
26364 rm -f conftest.err conftest.$ac_ext
26365 fi
26366 if test $fstype = no; then
26367 cat >conftest.$ac_ext <<_ACEOF
26368 /* confdefs.h.  */
26369 _ACEOF
26370 cat confdefs.h >>conftest.$ac_ext
26371 cat >>conftest.$ac_ext <<_ACEOF
26372 /* end confdefs.h.  */
26373 #include <sys/mount.h>
26374
26375 _ACEOF
26376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26377   $EGREP "f_type;" >/dev/null 2>&1; then
26378   cat >>confdefs.h <<\_ACEOF
26379 #define FSTYPE_STATFS 1
26380 _ACEOF
26381  fstype=4.4BSD/OSF1
26382 fi
26383 rm -f conftest*
26384
26385 fi
26386 if test $fstype = no; then
26387 cat >conftest.$ac_ext <<_ACEOF
26388 /* confdefs.h.  */
26389 _ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h.  */
26393 #include <sys/mount.h>
26394 #include <sys/fs_types.h>
26395 _ACEOF
26396 if { (ac_try="$ac_cpp conftest.$ac_ext"
26397 case "(($ac_try" in
26398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399   *) ac_try_echo=$ac_try;;
26400 esac
26401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26402   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26403   ac_status=$?
26404   grep -v '^ *+' conftest.er1 >conftest.err
26405   rm -f conftest.er1
26406   cat conftest.err >&5
26407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408   (exit $ac_status); } >/dev/null && {
26409          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26410          test ! -s conftest.err
26411        }; then
26412   cat >>confdefs.h <<\_ACEOF
26413 #define FSTYPE_GETMNT 1
26414 _ACEOF
26415  fstype=Ultrix
26416 else
26417   echo "$as_me: failed program was:" >&5
26418 sed 's/^/| /' conftest.$ac_ext >&5
26419
26420
26421 fi
26422
26423 rm -f conftest.err conftest.$ac_ext
26424 fi
26425 { echo "$as_me:$LINENO: result: $fstype" >&5
26426 echo "${ECHO_T}$fstype" >&6; }
26427
26428 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26429   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
26430 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
26431 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26432   echo $ECHO_N "(cached) $ECHO_C" >&6
26433 fi
26434 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
26435 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
26436 else
26437   # Is the header compilable?
26438 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
26439 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
26440 cat >conftest.$ac_ext <<_ACEOF
26441 /* confdefs.h.  */
26442 _ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h.  */
26446 $ac_includes_default
26447 #include <sys/statvfs.h>
26448 _ACEOF
26449 rm -f conftest.$ac_objext
26450 if { (ac_try="$ac_compile"
26451 case "(($ac_try" in
26452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26453   *) ac_try_echo=$ac_try;;
26454 esac
26455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26456   (eval "$ac_compile") 2>conftest.er1
26457   ac_status=$?
26458   grep -v '^ *+' conftest.er1 >conftest.err
26459   rm -f conftest.er1
26460   cat conftest.err >&5
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); } && {
26463          test -z "$ac_c_werror_flag" ||
26464          test ! -s conftest.err
26465        } && test -s conftest.$ac_objext; then
26466   ac_header_compiler=yes
26467 else
26468   echo "$as_me: failed program was:" >&5
26469 sed 's/^/| /' conftest.$ac_ext >&5
26470
26471         ac_header_compiler=no
26472 fi
26473
26474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26476 echo "${ECHO_T}$ac_header_compiler" >&6; }
26477
26478 # Is the header present?
26479 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
26480 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
26481 cat >conftest.$ac_ext <<_ACEOF
26482 /* confdefs.h.  */
26483 _ACEOF
26484 cat confdefs.h >>conftest.$ac_ext
26485 cat >>conftest.$ac_ext <<_ACEOF
26486 /* end confdefs.h.  */
26487 #include <sys/statvfs.h>
26488 _ACEOF
26489 if { (ac_try="$ac_cpp conftest.$ac_ext"
26490 case "(($ac_try" in
26491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492   *) ac_try_echo=$ac_try;;
26493 esac
26494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26496   ac_status=$?
26497   grep -v '^ *+' conftest.er1 >conftest.err
26498   rm -f conftest.er1
26499   cat conftest.err >&5
26500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501   (exit $ac_status); } >/dev/null && {
26502          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26503          test ! -s conftest.err
26504        }; then
26505   ac_header_preproc=yes
26506 else
26507   echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26509
26510   ac_header_preproc=no
26511 fi
26512
26513 rm -f conftest.err conftest.$ac_ext
26514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26515 echo "${ECHO_T}$ac_header_preproc" >&6; }
26516
26517 # So?  What about this header?
26518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26519   yes:no: )
26520     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26521 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26522     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
26523 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
26524     ac_header_preproc=yes
26525     ;;
26526   no:yes:* )
26527     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
26528 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
26529     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
26530 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
26531     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
26532 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
26533     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
26534 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26535     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
26536 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
26537     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
26538 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
26539
26540     ;;
26541 esac
26542 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
26543 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
26544 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26545   echo $ECHO_N "(cached) $ECHO_C" >&6
26546 else
26547   ac_cv_header_sys_statvfs_h=$ac_header_preproc
26548 fi
26549 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
26550 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
26551
26552 fi
26553 if test $ac_cv_header_sys_statvfs_h = yes; then
26554
26555 cat >>confdefs.h <<\_ACEOF
26556 #define HAVE_SYS_STATVFS_H 1
26557 _ACEOF
26558
26559 fi
26560
26561
26562
26563 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26564 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26565 if test "${ac_cv_type_signal+set}" = set; then
26566   echo $ECHO_N "(cached) $ECHO_C" >&6
26567 else
26568   cat >conftest.$ac_ext <<_ACEOF
26569 /* confdefs.h.  */
26570 _ACEOF
26571 cat confdefs.h >>conftest.$ac_ext
26572 cat >>conftest.$ac_ext <<_ACEOF
26573 /* end confdefs.h.  */
26574 #include <sys/types.h>
26575 #include <signal.h>
26576
26577 int
26578 main ()
26579 {
26580 return *(signal (0, 0)) (0) == 1;
26581   ;
26582   return 0;
26583 }
26584 _ACEOF
26585 rm -f conftest.$ac_objext
26586 if { (ac_try="$ac_compile"
26587 case "(($ac_try" in
26588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26589   *) ac_try_echo=$ac_try;;
26590 esac
26591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26592   (eval "$ac_compile") 2>conftest.er1
26593   ac_status=$?
26594   grep -v '^ *+' conftest.er1 >conftest.err
26595   rm -f conftest.er1
26596   cat conftest.err >&5
26597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598   (exit $ac_status); } && {
26599          test -z "$ac_c_werror_flag" ||
26600          test ! -s conftest.err
26601        } && test -s conftest.$ac_objext; then
26602   ac_cv_type_signal=int
26603 else
26604   echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26606
26607         ac_cv_type_signal=void
26608 fi
26609
26610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26611 fi
26612 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26613 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26614
26615 cat >>confdefs.h <<_ACEOF
26616 #define RETSIGTYPE $ac_cv_type_signal
26617 _ACEOF
26618
26619
26620
26621   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
26622 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
26623   if test "${bash_cv_signal_vintage+set}" = set; then
26624   echo $ECHO_N "(cached) $ECHO_C" >&6
26625 else
26626
26627     cat >conftest.$ac_ext <<_ACEOF
26628 /* confdefs.h.  */
26629 _ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h.  */
26633 #include <signal.h>
26634 int
26635 main ()
26636 {
26637
26638       sigset_t ss;
26639       struct sigaction sa;
26640       sigemptyset(&ss); sigsuspend(&ss);
26641       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26642       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26643
26644   ;
26645   return 0;
26646 }
26647 _ACEOF
26648 rm -f conftest.$ac_objext conftest$ac_exeext
26649 if { (ac_try="$ac_link"
26650 case "(($ac_try" in
26651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26652   *) ac_try_echo=$ac_try;;
26653 esac
26654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26655   (eval "$ac_link") 2>conftest.er1
26656   ac_status=$?
26657   grep -v '^ *+' conftest.er1 >conftest.err
26658   rm -f conftest.er1
26659   cat conftest.err >&5
26660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661   (exit $ac_status); } && {
26662          test -z "$ac_c_werror_flag" ||
26663          test ! -s conftest.err
26664        } && test -s conftest$ac_exeext &&
26665        $as_test_x conftest$ac_exeext; then
26666   bash_cv_signal_vintage="posix"
26667 else
26668   echo "$as_me: failed program was:" >&5
26669 sed 's/^/| /' conftest.$ac_ext >&5
26670
26671
26672       cat >conftest.$ac_ext <<_ACEOF
26673 /* confdefs.h.  */
26674 _ACEOF
26675 cat confdefs.h >>conftest.$ac_ext
26676 cat >>conftest.$ac_ext <<_ACEOF
26677 /* end confdefs.h.  */
26678 #include <signal.h>
26679 int
26680 main ()
26681 {
26682
26683           int mask = sigmask(SIGINT);
26684           sigsetmask(mask); sigblock(mask); sigpause(mask);
26685
26686   ;
26687   return 0;
26688 }
26689 _ACEOF
26690 rm -f conftest.$ac_objext conftest$ac_exeext
26691 if { (ac_try="$ac_link"
26692 case "(($ac_try" in
26693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26694   *) ac_try_echo=$ac_try;;
26695 esac
26696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26697   (eval "$ac_link") 2>conftest.er1
26698   ac_status=$?
26699   grep -v '^ *+' conftest.er1 >conftest.err
26700   rm -f conftest.er1
26701   cat conftest.err >&5
26702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703   (exit $ac_status); } && {
26704          test -z "$ac_c_werror_flag" ||
26705          test ! -s conftest.err
26706        } && test -s conftest$ac_exeext &&
26707        $as_test_x conftest$ac_exeext; then
26708   bash_cv_signal_vintage="4.2bsd"
26709 else
26710   echo "$as_me: failed program was:" >&5
26711 sed 's/^/| /' conftest.$ac_ext >&5
26712
26713
26714         cat >conftest.$ac_ext <<_ACEOF
26715 /* confdefs.h.  */
26716 _ACEOF
26717 cat confdefs.h >>conftest.$ac_ext
26718 cat >>conftest.$ac_ext <<_ACEOF
26719 /* end confdefs.h.  */
26720
26721           #include <signal.h>
26722           RETSIGTYPE foo() { }
26723 int
26724 main ()
26725 {
26726
26727                   int mask = sigmask(SIGINT);
26728                   sigset(SIGINT, foo); sigrelse(SIGINT);
26729                   sighold(SIGINT); sigpause(SIGINT);
26730
26731   ;
26732   return 0;
26733 }
26734 _ACEOF
26735 rm -f conftest.$ac_objext conftest$ac_exeext
26736 if { (ac_try="$ac_link"
26737 case "(($ac_try" in
26738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739   *) ac_try_echo=$ac_try;;
26740 esac
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742   (eval "$ac_link") 2>conftest.er1
26743   ac_status=$?
26744   grep -v '^ *+' conftest.er1 >conftest.err
26745   rm -f conftest.er1
26746   cat conftest.err >&5
26747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748   (exit $ac_status); } && {
26749          test -z "$ac_c_werror_flag" ||
26750          test ! -s conftest.err
26751        } && test -s conftest$ac_exeext &&
26752        $as_test_x conftest$ac_exeext; then
26753   bash_cv_signal_vintage="svr3"
26754 else
26755   echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26757
26758         bash_cv_signal_vintage="v7"
26759
26760 fi
26761
26762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26763       conftest$ac_exeext conftest.$ac_ext
26764
26765 fi
26766
26767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26768       conftest$ac_exeext conftest.$ac_ext
26769
26770 fi
26771
26772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26773       conftest$ac_exeext conftest.$ac_ext
26774
26775 fi
26776
26777   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26778 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
26779   if test "$bash_cv_signal_vintage" = "posix"; then
26780     cat >>confdefs.h <<\_ACEOF
26781 #define HAVE_POSIX_SIGNALS 1
26782 _ACEOF
26783
26784   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26785     cat >>confdefs.h <<\_ACEOF
26786 #define HAVE_BSD_SIGNALS 1
26787 _ACEOF
26788
26789   elif test "$bash_cv_signal_vintage" = "svr3"; then
26790     cat >>confdefs.h <<\_ACEOF
26791 #define HAVE_USG_SIGHOLD 1
26792 _ACEOF
26793
26794   fi
26795
26796 { echo "$as_me:$LINENO: checking for mode_t" >&5
26797 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
26798 if test "${ac_cv_type_mode_t+set}" = set; then
26799   echo $ECHO_N "(cached) $ECHO_C" >&6
26800 else
26801   cat >conftest.$ac_ext <<_ACEOF
26802 /* confdefs.h.  */
26803 _ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h.  */
26807 $ac_includes_default
26808 typedef mode_t ac__type_new_;
26809 int
26810 main ()
26811 {
26812 if ((ac__type_new_ *) 0)
26813   return 0;
26814 if (sizeof (ac__type_new_))
26815   return 0;
26816   ;
26817   return 0;
26818 }
26819 _ACEOF
26820 rm -f conftest.$ac_objext
26821 if { (ac_try="$ac_compile"
26822 case "(($ac_try" in
26823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824   *) ac_try_echo=$ac_try;;
26825 esac
26826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26827   (eval "$ac_compile") 2>conftest.er1
26828   ac_status=$?
26829   grep -v '^ *+' conftest.er1 >conftest.err
26830   rm -f conftest.er1
26831   cat conftest.err >&5
26832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833   (exit $ac_status); } && {
26834          test -z "$ac_c_werror_flag" ||
26835          test ! -s conftest.err
26836        } && test -s conftest.$ac_objext; then
26837   ac_cv_type_mode_t=yes
26838 else
26839   echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26841
26842         ac_cv_type_mode_t=no
26843 fi
26844
26845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26846 fi
26847 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
26848 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
26849 if test $ac_cv_type_mode_t = yes; then
26850   :
26851 else
26852
26853 cat >>confdefs.h <<_ACEOF
26854 #define mode_t int
26855 _ACEOF
26856
26857 fi
26858
26859 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26860 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
26861 if test "${ac_cv_type_uid_t+set}" = set; then
26862   echo $ECHO_N "(cached) $ECHO_C" >&6
26863 else
26864   cat >conftest.$ac_ext <<_ACEOF
26865 /* confdefs.h.  */
26866 _ACEOF
26867 cat confdefs.h >>conftest.$ac_ext
26868 cat >>conftest.$ac_ext <<_ACEOF
26869 /* end confdefs.h.  */
26870 #include <sys/types.h>
26871
26872 _ACEOF
26873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26874   $EGREP "uid_t" >/dev/null 2>&1; then
26875   ac_cv_type_uid_t=yes
26876 else
26877   ac_cv_type_uid_t=no
26878 fi
26879 rm -f conftest*
26880
26881 fi
26882 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26883 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
26884 if test $ac_cv_type_uid_t = no; then
26885
26886 cat >>confdefs.h <<\_ACEOF
26887 #define uid_t int
26888 _ACEOF
26889
26890
26891 cat >>confdefs.h <<\_ACEOF
26892 #define gid_t int
26893 _ACEOF
26894
26895 fi
26896
26897 { echo "$as_me:$LINENO: checking for size_t" >&5
26898 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
26899 if test "${ac_cv_type_size_t+set}" = set; then
26900   echo $ECHO_N "(cached) $ECHO_C" >&6
26901 else
26902   cat >conftest.$ac_ext <<_ACEOF
26903 /* confdefs.h.  */
26904 _ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h.  */
26908 $ac_includes_default
26909 typedef size_t ac__type_new_;
26910 int
26911 main ()
26912 {
26913 if ((ac__type_new_ *) 0)
26914   return 0;
26915 if (sizeof (ac__type_new_))
26916   return 0;
26917   ;
26918   return 0;
26919 }
26920 _ACEOF
26921 rm -f conftest.$ac_objext
26922 if { (ac_try="$ac_compile"
26923 case "(($ac_try" in
26924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925   *) ac_try_echo=$ac_try;;
26926 esac
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928   (eval "$ac_compile") 2>conftest.er1
26929   ac_status=$?
26930   grep -v '^ *+' conftest.er1 >conftest.err
26931   rm -f conftest.er1
26932   cat conftest.err >&5
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); } && {
26935          test -z "$ac_c_werror_flag" ||
26936          test ! -s conftest.err
26937        } && test -s conftest.$ac_objext; then
26938   ac_cv_type_size_t=yes
26939 else
26940   echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26942
26943         ac_cv_type_size_t=no
26944 fi
26945
26946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26947 fi
26948 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26949 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
26950 if test $ac_cv_type_size_t = yes; then
26951   :
26952 else
26953
26954 cat >>confdefs.h <<_ACEOF
26955 #define size_t unsigned int
26956 _ACEOF
26957
26958 fi
26959
26960 { echo "$as_me:$LINENO: checking for pid_t" >&5
26961 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
26962 if test "${ac_cv_type_pid_t+set}" = set; then
26963   echo $ECHO_N "(cached) $ECHO_C" >&6
26964 else
26965   cat >conftest.$ac_ext <<_ACEOF
26966 /* confdefs.h.  */
26967 _ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h.  */
26971 $ac_includes_default
26972 typedef pid_t ac__type_new_;
26973 int
26974 main ()
26975 {
26976 if ((ac__type_new_ *) 0)
26977   return 0;
26978 if (sizeof (ac__type_new_))
26979   return 0;
26980   ;
26981   return 0;
26982 }
26983 _ACEOF
26984 rm -f conftest.$ac_objext
26985 if { (ac_try="$ac_compile"
26986 case "(($ac_try" in
26987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26988   *) ac_try_echo=$ac_try;;
26989 esac
26990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26991   (eval "$ac_compile") 2>conftest.er1
26992   ac_status=$?
26993   grep -v '^ *+' conftest.er1 >conftest.err
26994   rm -f conftest.er1
26995   cat conftest.err >&5
26996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997   (exit $ac_status); } && {
26998          test -z "$ac_c_werror_flag" ||
26999          test ! -s conftest.err
27000        } && test -s conftest.$ac_objext; then
27001   ac_cv_type_pid_t=yes
27002 else
27003   echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27005
27006         ac_cv_type_pid_t=no
27007 fi
27008
27009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27010 fi
27011 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27012 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
27013 if test $ac_cv_type_pid_t = yes; then
27014   :
27015 else
27016
27017 cat >>confdefs.h <<_ACEOF
27018 #define pid_t int
27019 _ACEOF
27020
27021 fi
27022
27023 { echo "$as_me:$LINENO: checking for off_t" >&5
27024 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
27025 if test "${ac_cv_type_off_t+set}" = set; then
27026   echo $ECHO_N "(cached) $ECHO_C" >&6
27027 else
27028   cat >conftest.$ac_ext <<_ACEOF
27029 /* confdefs.h.  */
27030 _ACEOF
27031 cat confdefs.h >>conftest.$ac_ext
27032 cat >>conftest.$ac_ext <<_ACEOF
27033 /* end confdefs.h.  */
27034 $ac_includes_default
27035 typedef off_t ac__type_new_;
27036 int
27037 main ()
27038 {
27039 if ((ac__type_new_ *) 0)
27040   return 0;
27041 if (sizeof (ac__type_new_))
27042   return 0;
27043   ;
27044   return 0;
27045 }
27046 _ACEOF
27047 rm -f conftest.$ac_objext
27048 if { (ac_try="$ac_compile"
27049 case "(($ac_try" in
27050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051   *) ac_try_echo=$ac_try;;
27052 esac
27053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054   (eval "$ac_compile") 2>conftest.er1
27055   ac_status=$?
27056   grep -v '^ *+' conftest.er1 >conftest.err
27057   rm -f conftest.er1
27058   cat conftest.err >&5
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); } && {
27061          test -z "$ac_c_werror_flag" ||
27062          test ! -s conftest.err
27063        } && test -s conftest.$ac_objext; then
27064   ac_cv_type_off_t=yes
27065 else
27066   echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27068
27069         ac_cv_type_off_t=no
27070 fi
27071
27072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27073 fi
27074 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27075 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
27076 if test $ac_cv_type_off_t = yes; then
27077   :
27078 else
27079
27080 cat >>confdefs.h <<_ACEOF
27081 #define off_t long int
27082 _ACEOF
27083
27084 fi
27085
27086 { echo "$as_me:$LINENO: checking for ino_t" >&5
27087 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
27088 if test "${ac_cv_type_ino_t+set}" = set; then
27089   echo $ECHO_N "(cached) $ECHO_C" >&6
27090 else
27091   cat >conftest.$ac_ext <<_ACEOF
27092 /* confdefs.h.  */
27093 _ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h.  */
27097 $ac_includes_default
27098 typedef ino_t ac__type_new_;
27099 int
27100 main ()
27101 {
27102 if ((ac__type_new_ *) 0)
27103   return 0;
27104 if (sizeof (ac__type_new_))
27105   return 0;
27106   ;
27107   return 0;
27108 }
27109 _ACEOF
27110 rm -f conftest.$ac_objext
27111 if { (ac_try="$ac_compile"
27112 case "(($ac_try" in
27113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27114   *) ac_try_echo=$ac_try;;
27115 esac
27116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27117   (eval "$ac_compile") 2>conftest.er1
27118   ac_status=$?
27119   grep -v '^ *+' conftest.er1 >conftest.err
27120   rm -f conftest.er1
27121   cat conftest.err >&5
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); } && {
27124          test -z "$ac_c_werror_flag" ||
27125          test ! -s conftest.err
27126        } && test -s conftest.$ac_objext; then
27127   ac_cv_type_ino_t=yes
27128 else
27129   echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27131
27132         ac_cv_type_ino_t=no
27133 fi
27134
27135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27136 fi
27137 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
27138 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
27139 if test $ac_cv_type_ino_t = yes; then
27140   :
27141 else
27142
27143 cat >>confdefs.h <<_ACEOF
27144 #define ino_t unsigned long
27145 _ACEOF
27146
27147 fi
27148
27149 { echo "$as_me:$LINENO: checking for dev_t" >&5
27150 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
27151 if test "${ac_cv_type_dev_t+set}" = set; then
27152   echo $ECHO_N "(cached) $ECHO_C" >&6
27153 else
27154   cat >conftest.$ac_ext <<_ACEOF
27155 /* confdefs.h.  */
27156 _ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h.  */
27160 $ac_includes_default
27161 typedef dev_t ac__type_new_;
27162 int
27163 main ()
27164 {
27165 if ((ac__type_new_ *) 0)
27166   return 0;
27167 if (sizeof (ac__type_new_))
27168   return 0;
27169   ;
27170   return 0;
27171 }
27172 _ACEOF
27173 rm -f conftest.$ac_objext
27174 if { (ac_try="$ac_compile"
27175 case "(($ac_try" in
27176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27177   *) ac_try_echo=$ac_try;;
27178 esac
27179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27180   (eval "$ac_compile") 2>conftest.er1
27181   ac_status=$?
27182   grep -v '^ *+' conftest.er1 >conftest.err
27183   rm -f conftest.er1
27184   cat conftest.err >&5
27185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186   (exit $ac_status); } && {
27187          test -z "$ac_c_werror_flag" ||
27188          test ! -s conftest.err
27189        } && test -s conftest.$ac_objext; then
27190   ac_cv_type_dev_t=yes
27191 else
27192   echo "$as_me: failed program was:" >&5
27193 sed 's/^/| /' conftest.$ac_ext >&5
27194
27195         ac_cv_type_dev_t=no
27196 fi
27197
27198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27199 fi
27200 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
27201 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
27202 if test $ac_cv_type_dev_t = yes; then
27203   :
27204 else
27205
27206 cat >>confdefs.h <<_ACEOF
27207 #define dev_t unsigned long
27208 _ACEOF
27209
27210 fi
27211
27212 { echo "$as_me:$LINENO: checking for daddr_t" >&5
27213 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
27214 if test "${ac_cv_type_daddr_t+set}" = set; then
27215   echo $ECHO_N "(cached) $ECHO_C" >&6
27216 else
27217   cat >conftest.$ac_ext <<_ACEOF
27218 /* confdefs.h.  */
27219 _ACEOF
27220 cat confdefs.h >>conftest.$ac_ext
27221 cat >>conftest.$ac_ext <<_ACEOF
27222 /* end confdefs.h.  */
27223 $ac_includes_default
27224 typedef daddr_t ac__type_new_;
27225 int
27226 main ()
27227 {
27228 if ((ac__type_new_ *) 0)
27229   return 0;
27230 if (sizeof (ac__type_new_))
27231   return 0;
27232   ;
27233   return 0;
27234 }
27235 _ACEOF
27236 rm -f conftest.$ac_objext
27237 if { (ac_try="$ac_compile"
27238 case "(($ac_try" in
27239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240   *) ac_try_echo=$ac_try;;
27241 esac
27242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243   (eval "$ac_compile") 2>conftest.er1
27244   ac_status=$?
27245   grep -v '^ *+' conftest.er1 >conftest.err
27246   rm -f conftest.er1
27247   cat conftest.err >&5
27248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249   (exit $ac_status); } && {
27250          test -z "$ac_c_werror_flag" ||
27251          test ! -s conftest.err
27252        } && test -s conftest.$ac_objext; then
27253   ac_cv_type_daddr_t=yes
27254 else
27255   echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.$ac_ext >&5
27257
27258         ac_cv_type_daddr_t=no
27259 fi
27260
27261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27262 fi
27263 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
27264 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
27265 if test $ac_cv_type_daddr_t = yes; then
27266   :
27267 else
27268
27269 cat >>confdefs.h <<_ACEOF
27270 #define daddr_t long
27271 _ACEOF
27272
27273 fi
27274
27275 { echo "$as_me:$LINENO: checking for major_t" >&5
27276 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
27277 if test "${ac_cv_type_major_t+set}" = set; then
27278   echo $ECHO_N "(cached) $ECHO_C" >&6
27279 else
27280   cat >conftest.$ac_ext <<_ACEOF
27281 /* confdefs.h.  */
27282 _ACEOF
27283 cat confdefs.h >>conftest.$ac_ext
27284 cat >>conftest.$ac_ext <<_ACEOF
27285 /* end confdefs.h.  */
27286 $ac_includes_default
27287 typedef major_t ac__type_new_;
27288 int
27289 main ()
27290 {
27291 if ((ac__type_new_ *) 0)
27292   return 0;
27293 if (sizeof (ac__type_new_))
27294   return 0;
27295   ;
27296   return 0;
27297 }
27298 _ACEOF
27299 rm -f conftest.$ac_objext
27300 if { (ac_try="$ac_compile"
27301 case "(($ac_try" in
27302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303   *) ac_try_echo=$ac_try;;
27304 esac
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306   (eval "$ac_compile") 2>conftest.er1
27307   ac_status=$?
27308   grep -v '^ *+' conftest.er1 >conftest.err
27309   rm -f conftest.er1
27310   cat conftest.err >&5
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); } && {
27313          test -z "$ac_c_werror_flag" ||
27314          test ! -s conftest.err
27315        } && test -s conftest.$ac_objext; then
27316   ac_cv_type_major_t=yes
27317 else
27318   echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27320
27321         ac_cv_type_major_t=no
27322 fi
27323
27324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27325 fi
27326 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
27327 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
27328 if test $ac_cv_type_major_t = yes; then
27329   :
27330 else
27331
27332 cat >>confdefs.h <<_ACEOF
27333 #define major_t int
27334 _ACEOF
27335
27336 fi
27337
27338 { echo "$as_me:$LINENO: checking for minor_t" >&5
27339 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
27340 if test "${ac_cv_type_minor_t+set}" = set; then
27341   echo $ECHO_N "(cached) $ECHO_C" >&6
27342 else
27343   cat >conftest.$ac_ext <<_ACEOF
27344 /* confdefs.h.  */
27345 _ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h.  */
27349 $ac_includes_default
27350 typedef minor_t ac__type_new_;
27351 int
27352 main ()
27353 {
27354 if ((ac__type_new_ *) 0)
27355   return 0;
27356 if (sizeof (ac__type_new_))
27357   return 0;
27358   ;
27359   return 0;
27360 }
27361 _ACEOF
27362 rm -f conftest.$ac_objext
27363 if { (ac_try="$ac_compile"
27364 case "(($ac_try" in
27365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27366   *) ac_try_echo=$ac_try;;
27367 esac
27368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27369   (eval "$ac_compile") 2>conftest.er1
27370   ac_status=$?
27371   grep -v '^ *+' conftest.er1 >conftest.err
27372   rm -f conftest.er1
27373   cat conftest.err >&5
27374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375   (exit $ac_status); } && {
27376          test -z "$ac_c_werror_flag" ||
27377          test ! -s conftest.err
27378        } && test -s conftest.$ac_objext; then
27379   ac_cv_type_minor_t=yes
27380 else
27381   echo "$as_me: failed program was:" >&5
27382 sed 's/^/| /' conftest.$ac_ext >&5
27383
27384         ac_cv_type_minor_t=no
27385 fi
27386
27387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27388 fi
27389 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
27390 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
27391 if test $ac_cv_type_minor_t = yes; then
27392   :
27393 else
27394
27395 cat >>confdefs.h <<_ACEOF
27396 #define minor_t int
27397 _ACEOF
27398
27399 fi
27400
27401 { echo "$as_me:$LINENO: checking for ssize_t" >&5
27402 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27403 if test "${ac_cv_type_ssize_t+set}" = set; then
27404   echo $ECHO_N "(cached) $ECHO_C" >&6
27405 else
27406   cat >conftest.$ac_ext <<_ACEOF
27407 /* confdefs.h.  */
27408 _ACEOF
27409 cat confdefs.h >>conftest.$ac_ext
27410 cat >>conftest.$ac_ext <<_ACEOF
27411 /* end confdefs.h.  */
27412 $ac_includes_default
27413 typedef ssize_t ac__type_new_;
27414 int
27415 main ()
27416 {
27417 if ((ac__type_new_ *) 0)
27418   return 0;
27419 if (sizeof (ac__type_new_))
27420   return 0;
27421   ;
27422   return 0;
27423 }
27424 _ACEOF
27425 rm -f conftest.$ac_objext
27426 if { (ac_try="$ac_compile"
27427 case "(($ac_try" in
27428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27429   *) ac_try_echo=$ac_try;;
27430 esac
27431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27432   (eval "$ac_compile") 2>conftest.er1
27433   ac_status=$?
27434   grep -v '^ *+' conftest.er1 >conftest.err
27435   rm -f conftest.er1
27436   cat conftest.err >&5
27437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438   (exit $ac_status); } && {
27439          test -z "$ac_c_werror_flag" ||
27440          test ! -s conftest.err
27441        } && test -s conftest.$ac_objext; then
27442   ac_cv_type_ssize_t=yes
27443 else
27444   echo "$as_me: failed program was:" >&5
27445 sed 's/^/| /' conftest.$ac_ext >&5
27446
27447         ac_cv_type_ssize_t=no
27448 fi
27449
27450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27451 fi
27452 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27453 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
27454 if test $ac_cv_type_ssize_t = yes; then
27455   :
27456 else
27457
27458 cat >>confdefs.h <<_ACEOF
27459 #define ssize_t int
27460 _ACEOF
27461
27462 fi
27463
27464 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27465 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
27466 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27467   echo $ECHO_N "(cached) $ECHO_C" >&6
27468 else
27469   cat >conftest.$ac_ext <<_ACEOF
27470 /* confdefs.h.  */
27471 _ACEOF
27472 cat confdefs.h >>conftest.$ac_ext
27473 cat >>conftest.$ac_ext <<_ACEOF
27474 /* end confdefs.h.  */
27475 $ac_includes_default
27476 int
27477 main ()
27478 {
27479 static struct stat ac_aggr;
27480 if (ac_aggr.st_blocks)
27481 return 0;
27482   ;
27483   return 0;
27484 }
27485 _ACEOF
27486 rm -f conftest.$ac_objext
27487 if { (ac_try="$ac_compile"
27488 case "(($ac_try" in
27489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490   *) ac_try_echo=$ac_try;;
27491 esac
27492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493   (eval "$ac_compile") 2>conftest.er1
27494   ac_status=$?
27495   grep -v '^ *+' conftest.er1 >conftest.err
27496   rm -f conftest.er1
27497   cat conftest.err >&5
27498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499   (exit $ac_status); } && {
27500          test -z "$ac_c_werror_flag" ||
27501          test ! -s conftest.err
27502        } && test -s conftest.$ac_objext; then
27503   ac_cv_member_struct_stat_st_blocks=yes
27504 else
27505   echo "$as_me: failed program was:" >&5
27506 sed 's/^/| /' conftest.$ac_ext >&5
27507
27508         cat >conftest.$ac_ext <<_ACEOF
27509 /* confdefs.h.  */
27510 _ACEOF
27511 cat confdefs.h >>conftest.$ac_ext
27512 cat >>conftest.$ac_ext <<_ACEOF
27513 /* end confdefs.h.  */
27514 $ac_includes_default
27515 int
27516 main ()
27517 {
27518 static struct stat ac_aggr;
27519 if (sizeof ac_aggr.st_blocks)
27520 return 0;
27521   ;
27522   return 0;
27523 }
27524 _ACEOF
27525 rm -f conftest.$ac_objext
27526 if { (ac_try="$ac_compile"
27527 case "(($ac_try" in
27528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27529   *) ac_try_echo=$ac_try;;
27530 esac
27531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27532   (eval "$ac_compile") 2>conftest.er1
27533   ac_status=$?
27534   grep -v '^ *+' conftest.er1 >conftest.err
27535   rm -f conftest.er1
27536   cat conftest.err >&5
27537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538   (exit $ac_status); } && {
27539          test -z "$ac_c_werror_flag" ||
27540          test ! -s conftest.err
27541        } && test -s conftest.$ac_objext; then
27542   ac_cv_member_struct_stat_st_blocks=yes
27543 else
27544   echo "$as_me: failed program was:" >&5
27545 sed 's/^/| /' conftest.$ac_ext >&5
27546
27547         ac_cv_member_struct_stat_st_blocks=no
27548 fi
27549
27550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27551 fi
27552
27553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27554 fi
27555 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27556 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
27557 if test $ac_cv_member_struct_stat_st_blocks = yes; then
27558
27559 cat >>confdefs.h <<_ACEOF
27560 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27561 _ACEOF
27562
27563
27564 cat >>confdefs.h <<\_ACEOF
27565 #define HAVE_ST_BLOCKS 1
27566 _ACEOF
27567
27568 else
27569   case " $LIBOBJS " in
27570   *" fileblocks.$ac_objext "* ) ;;
27571   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27572  ;;
27573 esac
27574
27575 fi
27576
27577
27578 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
27579 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
27580 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
27581   echo $ECHO_N "(cached) $ECHO_C" >&6
27582 else
27583   cat >conftest.$ac_ext <<_ACEOF
27584 /* confdefs.h.  */
27585 _ACEOF
27586 cat confdefs.h >>conftest.$ac_ext
27587 cat >>conftest.$ac_ext <<_ACEOF
27588 /* end confdefs.h.  */
27589 $ac_includes_default
27590 int
27591 main ()
27592 {
27593 static struct stat ac_aggr;
27594 if (ac_aggr.st_rdev)
27595 return 0;
27596   ;
27597   return 0;
27598 }
27599 _ACEOF
27600 rm -f conftest.$ac_objext
27601 if { (ac_try="$ac_compile"
27602 case "(($ac_try" in
27603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27604   *) ac_try_echo=$ac_try;;
27605 esac
27606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27607   (eval "$ac_compile") 2>conftest.er1
27608   ac_status=$?
27609   grep -v '^ *+' conftest.er1 >conftest.err
27610   rm -f conftest.er1
27611   cat conftest.err >&5
27612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613   (exit $ac_status); } && {
27614          test -z "$ac_c_werror_flag" ||
27615          test ! -s conftest.err
27616        } && test -s conftest.$ac_objext; then
27617   ac_cv_member_struct_stat_st_rdev=yes
27618 else
27619   echo "$as_me: failed program was:" >&5
27620 sed 's/^/| /' conftest.$ac_ext >&5
27621
27622         cat >conftest.$ac_ext <<_ACEOF
27623 /* confdefs.h.  */
27624 _ACEOF
27625 cat confdefs.h >>conftest.$ac_ext
27626 cat >>conftest.$ac_ext <<_ACEOF
27627 /* end confdefs.h.  */
27628 $ac_includes_default
27629 int
27630 main ()
27631 {
27632 static struct stat ac_aggr;
27633 if (sizeof ac_aggr.st_rdev)
27634 return 0;
27635   ;
27636   return 0;
27637 }
27638 _ACEOF
27639 rm -f conftest.$ac_objext
27640 if { (ac_try="$ac_compile"
27641 case "(($ac_try" in
27642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643   *) ac_try_echo=$ac_try;;
27644 esac
27645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27646   (eval "$ac_compile") 2>conftest.er1
27647   ac_status=$?
27648   grep -v '^ *+' conftest.er1 >conftest.err
27649   rm -f conftest.er1
27650   cat conftest.err >&5
27651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652   (exit $ac_status); } && {
27653          test -z "$ac_c_werror_flag" ||
27654          test ! -s conftest.err
27655        } && test -s conftest.$ac_objext; then
27656   ac_cv_member_struct_stat_st_rdev=yes
27657 else
27658   echo "$as_me: failed program was:" >&5
27659 sed 's/^/| /' conftest.$ac_ext >&5
27660
27661         ac_cv_member_struct_stat_st_rdev=no
27662 fi
27663
27664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27665 fi
27666
27667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27668 fi
27669 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
27670 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
27671 if test $ac_cv_member_struct_stat_st_rdev = yes; then
27672
27673 cat >>confdefs.h <<_ACEOF
27674 #define HAVE_STRUCT_STAT_ST_RDEV 1
27675 _ACEOF
27676
27677
27678 cat >>confdefs.h <<\_ACEOF
27679 #define HAVE_ST_RDEV 1
27680 _ACEOF
27681
27682 fi
27683
27684
27685 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27686 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
27687 if test "${ac_cv_struct_tm+set}" = set; then
27688   echo $ECHO_N "(cached) $ECHO_C" >&6
27689 else
27690   cat >conftest.$ac_ext <<_ACEOF
27691 /* confdefs.h.  */
27692 _ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h.  */
27696 #include <sys/types.h>
27697 #include <time.h>
27698
27699 int
27700 main ()
27701 {
27702 struct tm tm;
27703                                      int *p = &tm.tm_sec;
27704                                      return !p;
27705   ;
27706   return 0;
27707 }
27708 _ACEOF
27709 rm -f conftest.$ac_objext
27710 if { (ac_try="$ac_compile"
27711 case "(($ac_try" in
27712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713   *) ac_try_echo=$ac_try;;
27714 esac
27715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716   (eval "$ac_compile") 2>conftest.er1
27717   ac_status=$?
27718   grep -v '^ *+' conftest.er1 >conftest.err
27719   rm -f conftest.er1
27720   cat conftest.err >&5
27721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722   (exit $ac_status); } && {
27723          test -z "$ac_c_werror_flag" ||
27724          test ! -s conftest.err
27725        } && test -s conftest.$ac_objext; then
27726   ac_cv_struct_tm=time.h
27727 else
27728   echo "$as_me: failed program was:" >&5
27729 sed 's/^/| /' conftest.$ac_ext >&5
27730
27731         ac_cv_struct_tm=sys/time.h
27732 fi
27733
27734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27735 fi
27736 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27737 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
27738 if test $ac_cv_struct_tm = sys/time.h; then
27739
27740 cat >>confdefs.h <<\_ACEOF
27741 #define TM_IN_SYS_TIME 1
27742 _ACEOF
27743
27744 fi
27745
27746 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
27747 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
27748 if test "${ac_cv_c_const+set}" = set; then
27749   echo $ECHO_N "(cached) $ECHO_C" >&6
27750 else
27751   cat >conftest.$ac_ext <<_ACEOF
27752 /* confdefs.h.  */
27753 _ACEOF
27754 cat confdefs.h >>conftest.$ac_ext
27755 cat >>conftest.$ac_ext <<_ACEOF
27756 /* end confdefs.h.  */
27757
27758 int
27759 main ()
27760 {
27761 /* FIXME: Include the comments suggested by Paul. */
27762 #ifndef __cplusplus
27763   /* Ultrix mips cc rejects this.  */
27764   typedef int charset[2];
27765   const charset cs;
27766   /* SunOS 4.1.1 cc rejects this.  */
27767   char const *const *pcpcc;
27768   char **ppc;
27769   /* NEC SVR4.0.2 mips cc rejects this.  */
27770   struct point {int x, y;};
27771   static struct point const zero = {0,0};
27772   /* AIX XL C 1.02.0.0 rejects this.
27773      It does not let you subtract one const X* pointer from another in
27774      an arm of an if-expression whose if-part is not a constant
27775      expression */
27776   const char *g = "string";
27777   pcpcc = &g + (g ? g-g : 0);
27778   /* HPUX 7.0 cc rejects these. */
27779   ++pcpcc;
27780   ppc = (char**) pcpcc;
27781   pcpcc = (char const *const *) ppc;
27782   { /* SCO 3.2v4 cc rejects this.  */
27783     char *t;
27784     char const *s = 0 ? (char *) 0 : (char const *) 0;
27785
27786     *t++ = 0;
27787     if (s) return 0;
27788   }
27789   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27790     int x[] = {25, 17};
27791     const int *foo = &x[0];
27792     ++foo;
27793   }
27794   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27795     typedef const int *iptr;
27796     iptr p = 0;
27797     ++p;
27798   }
27799   { /* AIX XL C 1.02.0.0 rejects this saying
27800        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27801     struct s { int j; const int *ap[3]; };
27802     struct s *b; b->j = 5;
27803   }
27804   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27805     const int foo = 10;
27806     if (!foo) return 0;
27807   }
27808   return !cs[0] && !zero.x;
27809 #endif
27810
27811   ;
27812   return 0;
27813 }
27814 _ACEOF
27815 rm -f conftest.$ac_objext
27816 if { (ac_try="$ac_compile"
27817 case "(($ac_try" in
27818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27819   *) ac_try_echo=$ac_try;;
27820 esac
27821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27822   (eval "$ac_compile") 2>conftest.er1
27823   ac_status=$?
27824   grep -v '^ *+' conftest.er1 >conftest.err
27825   rm -f conftest.er1
27826   cat conftest.err >&5
27827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828   (exit $ac_status); } && {
27829          test -z "$ac_c_werror_flag" ||
27830          test ! -s conftest.err
27831        } && test -s conftest.$ac_objext; then
27832   ac_cv_c_const=yes
27833 else
27834   echo "$as_me: failed program was:" >&5
27835 sed 's/^/| /' conftest.$ac_ext >&5
27836
27837         ac_cv_c_const=no
27838 fi
27839
27840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27841 fi
27842 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
27843 echo "${ECHO_T}$ac_cv_c_const" >&6; }
27844 if test $ac_cv_c_const = no; then
27845
27846 cat >>confdefs.h <<\_ACEOF
27847 #define const
27848 _ACEOF
27849
27850 fi
27851
27852
27853
27854 { echo "$as_me:$LINENO: checking for char" >&5
27855 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
27856 if test "${ac_cv_type_char+set}" = set; then
27857   echo $ECHO_N "(cached) $ECHO_C" >&6
27858 else
27859   cat >conftest.$ac_ext <<_ACEOF
27860 /* confdefs.h.  */
27861 _ACEOF
27862 cat confdefs.h >>conftest.$ac_ext
27863 cat >>conftest.$ac_ext <<_ACEOF
27864 /* end confdefs.h.  */
27865 $ac_includes_default
27866 typedef char ac__type_new_;
27867 int
27868 main ()
27869 {
27870 if ((ac__type_new_ *) 0)
27871   return 0;
27872 if (sizeof (ac__type_new_))
27873   return 0;
27874   ;
27875   return 0;
27876 }
27877 _ACEOF
27878 rm -f conftest.$ac_objext
27879 if { (ac_try="$ac_compile"
27880 case "(($ac_try" in
27881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882   *) ac_try_echo=$ac_try;;
27883 esac
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885   (eval "$ac_compile") 2>conftest.er1
27886   ac_status=$?
27887   grep -v '^ *+' conftest.er1 >conftest.err
27888   rm -f conftest.er1
27889   cat conftest.err >&5
27890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891   (exit $ac_status); } && {
27892          test -z "$ac_c_werror_flag" ||
27893          test ! -s conftest.err
27894        } && test -s conftest.$ac_objext; then
27895   ac_cv_type_char=yes
27896 else
27897   echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27899
27900         ac_cv_type_char=no
27901 fi
27902
27903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27904 fi
27905 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
27906 echo "${ECHO_T}$ac_cv_type_char" >&6; }
27907
27908 # The cast to long int works around a bug in the HP C Compiler
27909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27911 # This bug is HP SR number 8606223364.
27912 { echo "$as_me:$LINENO: checking size of char" >&5
27913 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
27914 if test "${ac_cv_sizeof_char+set}" = set; then
27915   echo $ECHO_N "(cached) $ECHO_C" >&6
27916 else
27917   if test "$cross_compiling" = yes; then
27918   # Depending upon the size, compute the lo and hi bounds.
27919 cat >conftest.$ac_ext <<_ACEOF
27920 /* confdefs.h.  */
27921 _ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h.  */
27925 $ac_includes_default
27926    typedef char ac__type_sizeof_;
27927 int
27928 main ()
27929 {
27930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27931 test_array [0] = 0
27932
27933   ;
27934   return 0;
27935 }
27936 _ACEOF
27937 rm -f conftest.$ac_objext
27938 if { (ac_try="$ac_compile"
27939 case "(($ac_try" in
27940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27941   *) ac_try_echo=$ac_try;;
27942 esac
27943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27944   (eval "$ac_compile") 2>conftest.er1
27945   ac_status=$?
27946   grep -v '^ *+' conftest.er1 >conftest.err
27947   rm -f conftest.er1
27948   cat conftest.err >&5
27949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950   (exit $ac_status); } && {
27951          test -z "$ac_c_werror_flag" ||
27952          test ! -s conftest.err
27953        } && test -s conftest.$ac_objext; then
27954   ac_lo=0 ac_mid=0
27955   while :; do
27956     cat >conftest.$ac_ext <<_ACEOF
27957 /* confdefs.h.  */
27958 _ACEOF
27959 cat confdefs.h >>conftest.$ac_ext
27960 cat >>conftest.$ac_ext <<_ACEOF
27961 /* end confdefs.h.  */
27962 $ac_includes_default
27963    typedef char ac__type_sizeof_;
27964 int
27965 main ()
27966 {
27967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27968 test_array [0] = 0
27969
27970   ;
27971   return 0;
27972 }
27973 _ACEOF
27974 rm -f conftest.$ac_objext
27975 if { (ac_try="$ac_compile"
27976 case "(($ac_try" in
27977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27978   *) ac_try_echo=$ac_try;;
27979 esac
27980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27981   (eval "$ac_compile") 2>conftest.er1
27982   ac_status=$?
27983   grep -v '^ *+' conftest.er1 >conftest.err
27984   rm -f conftest.er1
27985   cat conftest.err >&5
27986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987   (exit $ac_status); } && {
27988          test -z "$ac_c_werror_flag" ||
27989          test ! -s conftest.err
27990        } && test -s conftest.$ac_objext; then
27991   ac_hi=$ac_mid; break
27992 else
27993   echo "$as_me: failed program was:" >&5
27994 sed 's/^/| /' conftest.$ac_ext >&5
27995
27996         ac_lo=`expr $ac_mid + 1`
27997                         if test $ac_lo -le $ac_mid; then
27998                           ac_lo= ac_hi=
27999                           break
28000                         fi
28001                         ac_mid=`expr 2 '*' $ac_mid + 1`
28002 fi
28003
28004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28005   done
28006 else
28007   echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28009
28010         cat >conftest.$ac_ext <<_ACEOF
28011 /* confdefs.h.  */
28012 _ACEOF
28013 cat confdefs.h >>conftest.$ac_ext
28014 cat >>conftest.$ac_ext <<_ACEOF
28015 /* end confdefs.h.  */
28016 $ac_includes_default
28017    typedef char ac__type_sizeof_;
28018 int
28019 main ()
28020 {
28021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28022 test_array [0] = 0
28023
28024   ;
28025   return 0;
28026 }
28027 _ACEOF
28028 rm -f conftest.$ac_objext
28029 if { (ac_try="$ac_compile"
28030 case "(($ac_try" in
28031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28032   *) ac_try_echo=$ac_try;;
28033 esac
28034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28035   (eval "$ac_compile") 2>conftest.er1
28036   ac_status=$?
28037   grep -v '^ *+' conftest.er1 >conftest.err
28038   rm -f conftest.er1
28039   cat conftest.err >&5
28040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041   (exit $ac_status); } && {
28042          test -z "$ac_c_werror_flag" ||
28043          test ! -s conftest.err
28044        } && test -s conftest.$ac_objext; then
28045   ac_hi=-1 ac_mid=-1
28046   while :; do
28047     cat >conftest.$ac_ext <<_ACEOF
28048 /* confdefs.h.  */
28049 _ACEOF
28050 cat confdefs.h >>conftest.$ac_ext
28051 cat >>conftest.$ac_ext <<_ACEOF
28052 /* end confdefs.h.  */
28053 $ac_includes_default
28054    typedef char ac__type_sizeof_;
28055 int
28056 main ()
28057 {
28058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28059 test_array [0] = 0
28060
28061   ;
28062   return 0;
28063 }
28064 _ACEOF
28065 rm -f conftest.$ac_objext
28066 if { (ac_try="$ac_compile"
28067 case "(($ac_try" in
28068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069   *) ac_try_echo=$ac_try;;
28070 esac
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072   (eval "$ac_compile") 2>conftest.er1
28073   ac_status=$?
28074   grep -v '^ *+' conftest.er1 >conftest.err
28075   rm -f conftest.er1
28076   cat conftest.err >&5
28077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078   (exit $ac_status); } && {
28079          test -z "$ac_c_werror_flag" ||
28080          test ! -s conftest.err
28081        } && test -s conftest.$ac_objext; then
28082   ac_lo=$ac_mid; break
28083 else
28084   echo "$as_me: failed program was:" >&5
28085 sed 's/^/| /' conftest.$ac_ext >&5
28086
28087         ac_hi=`expr '(' $ac_mid ')' - 1`
28088                         if test $ac_mid -le $ac_hi; then
28089                           ac_lo= ac_hi=
28090                           break
28091                         fi
28092                         ac_mid=`expr 2 '*' $ac_mid`
28093 fi
28094
28095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28096   done
28097 else
28098   echo "$as_me: failed program was:" >&5
28099 sed 's/^/| /' conftest.$ac_ext >&5
28100
28101         ac_lo= ac_hi=
28102 fi
28103
28104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28105 fi
28106
28107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28108 # Binary search between lo and hi bounds.
28109 while test "x$ac_lo" != "x$ac_hi"; do
28110   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28111   cat >conftest.$ac_ext <<_ACEOF
28112 /* confdefs.h.  */
28113 _ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h.  */
28117 $ac_includes_default
28118    typedef char ac__type_sizeof_;
28119 int
28120 main ()
28121 {
28122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28123 test_array [0] = 0
28124
28125   ;
28126   return 0;
28127 }
28128 _ACEOF
28129 rm -f conftest.$ac_objext
28130 if { (ac_try="$ac_compile"
28131 case "(($ac_try" in
28132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133   *) ac_try_echo=$ac_try;;
28134 esac
28135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136   (eval "$ac_compile") 2>conftest.er1
28137   ac_status=$?
28138   grep -v '^ *+' conftest.er1 >conftest.err
28139   rm -f conftest.er1
28140   cat conftest.err >&5
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); } && {
28143          test -z "$ac_c_werror_flag" ||
28144          test ! -s conftest.err
28145        } && test -s conftest.$ac_objext; then
28146   ac_hi=$ac_mid
28147 else
28148   echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28150
28151         ac_lo=`expr '(' $ac_mid ')' + 1`
28152 fi
28153
28154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28155 done
28156 case $ac_lo in
28157 ?*) ac_cv_sizeof_char=$ac_lo;;
28158 '') if test "$ac_cv_type_char" = yes; then
28159      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
28160 See \`config.log' for more details." >&5
28161 echo "$as_me: error: cannot compute sizeof (char)
28162 See \`config.log' for more details." >&2;}
28163    { (exit 77); exit 77; }; }
28164    else
28165      ac_cv_sizeof_char=0
28166    fi ;;
28167 esac
28168 else
28169   cat >conftest.$ac_ext <<_ACEOF
28170 /* confdefs.h.  */
28171 _ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h.  */
28175 $ac_includes_default
28176    typedef char ac__type_sizeof_;
28177 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28178 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28179 #include <stdio.h>
28180 #include <stdlib.h>
28181 int
28182 main ()
28183 {
28184
28185   FILE *f = fopen ("conftest.val", "w");
28186   if (! f)
28187     return 1;
28188   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28189     {
28190       long int i = longval ();
28191       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28192         return 1;
28193       fprintf (f, "%ld\n", i);
28194     }
28195   else
28196     {
28197       unsigned long int i = ulongval ();
28198       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28199         return 1;
28200       fprintf (f, "%lu\n", i);
28201     }
28202   return ferror (f) || fclose (f) != 0;
28203
28204   ;
28205   return 0;
28206 }
28207 _ACEOF
28208 rm -f conftest$ac_exeext
28209 if { (ac_try="$ac_link"
28210 case "(($ac_try" in
28211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28212   *) ac_try_echo=$ac_try;;
28213 esac
28214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28215   (eval "$ac_link") 2>&5
28216   ac_status=$?
28217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28219   { (case "(($ac_try" in
28220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28221   *) ac_try_echo=$ac_try;;
28222 esac
28223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28224   (eval "$ac_try") 2>&5
28225   ac_status=$?
28226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); }; }; then
28228   ac_cv_sizeof_char=`cat conftest.val`
28229 else
28230   echo "$as_me: program exited with status $ac_status" >&5
28231 echo "$as_me: failed program was:" >&5
28232 sed 's/^/| /' conftest.$ac_ext >&5
28233
28234 ( exit $ac_status )
28235 if test "$ac_cv_type_char" = yes; then
28236      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
28237 See \`config.log' for more details." >&5
28238 echo "$as_me: error: cannot compute sizeof (char)
28239 See \`config.log' for more details." >&2;}
28240    { (exit 77); exit 77; }; }
28241    else
28242      ac_cv_sizeof_char=0
28243    fi
28244 fi
28245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28246 fi
28247 rm -f conftest.val
28248 fi
28249 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
28250 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
28251
28252
28253
28254 cat >>confdefs.h <<_ACEOF
28255 #define SIZEOF_CHAR $ac_cv_sizeof_char
28256 _ACEOF
28257
28258
28259 { echo "$as_me:$LINENO: checking for short int" >&5
28260 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
28261 if test "${ac_cv_type_short_int+set}" = set; then
28262   echo $ECHO_N "(cached) $ECHO_C" >&6
28263 else
28264   cat >conftest.$ac_ext <<_ACEOF
28265 /* confdefs.h.  */
28266 _ACEOF
28267 cat confdefs.h >>conftest.$ac_ext
28268 cat >>conftest.$ac_ext <<_ACEOF
28269 /* end confdefs.h.  */
28270 $ac_includes_default
28271 typedef short int ac__type_new_;
28272 int
28273 main ()
28274 {
28275 if ((ac__type_new_ *) 0)
28276   return 0;
28277 if (sizeof (ac__type_new_))
28278   return 0;
28279   ;
28280   return 0;
28281 }
28282 _ACEOF
28283 rm -f conftest.$ac_objext
28284 if { (ac_try="$ac_compile"
28285 case "(($ac_try" in
28286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287   *) ac_try_echo=$ac_try;;
28288 esac
28289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290   (eval "$ac_compile") 2>conftest.er1
28291   ac_status=$?
28292   grep -v '^ *+' conftest.er1 >conftest.err
28293   rm -f conftest.er1
28294   cat conftest.err >&5
28295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296   (exit $ac_status); } && {
28297          test -z "$ac_c_werror_flag" ||
28298          test ! -s conftest.err
28299        } && test -s conftest.$ac_objext; then
28300   ac_cv_type_short_int=yes
28301 else
28302   echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28304
28305         ac_cv_type_short_int=no
28306 fi
28307
28308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28309 fi
28310 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
28311 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
28312
28313 # The cast to long int works around a bug in the HP C Compiler
28314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28316 # This bug is HP SR number 8606223364.
28317 { echo "$as_me:$LINENO: checking size of short int" >&5
28318 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
28319 if test "${ac_cv_sizeof_short_int+set}" = set; then
28320   echo $ECHO_N "(cached) $ECHO_C" >&6
28321 else
28322   if test "$cross_compiling" = yes; then
28323   # Depending upon the size, compute the lo and hi bounds.
28324 cat >conftest.$ac_ext <<_ACEOF
28325 /* confdefs.h.  */
28326 _ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h.  */
28330 $ac_includes_default
28331    typedef short int ac__type_sizeof_;
28332 int
28333 main ()
28334 {
28335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28336 test_array [0] = 0
28337
28338   ;
28339   return 0;
28340 }
28341 _ACEOF
28342 rm -f conftest.$ac_objext
28343 if { (ac_try="$ac_compile"
28344 case "(($ac_try" in
28345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346   *) ac_try_echo=$ac_try;;
28347 esac
28348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28349   (eval "$ac_compile") 2>conftest.er1
28350   ac_status=$?
28351   grep -v '^ *+' conftest.er1 >conftest.err
28352   rm -f conftest.er1
28353   cat conftest.err >&5
28354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355   (exit $ac_status); } && {
28356          test -z "$ac_c_werror_flag" ||
28357          test ! -s conftest.err
28358        } && test -s conftest.$ac_objext; then
28359   ac_lo=0 ac_mid=0
28360   while :; do
28361     cat >conftest.$ac_ext <<_ACEOF
28362 /* confdefs.h.  */
28363 _ACEOF
28364 cat confdefs.h >>conftest.$ac_ext
28365 cat >>conftest.$ac_ext <<_ACEOF
28366 /* end confdefs.h.  */
28367 $ac_includes_default
28368    typedef short int ac__type_sizeof_;
28369 int
28370 main ()
28371 {
28372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28373 test_array [0] = 0
28374
28375   ;
28376   return 0;
28377 }
28378 _ACEOF
28379 rm -f conftest.$ac_objext
28380 if { (ac_try="$ac_compile"
28381 case "(($ac_try" in
28382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28383   *) ac_try_echo=$ac_try;;
28384 esac
28385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386   (eval "$ac_compile") 2>conftest.er1
28387   ac_status=$?
28388   grep -v '^ *+' conftest.er1 >conftest.err
28389   rm -f conftest.er1
28390   cat conftest.err >&5
28391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392   (exit $ac_status); } && {
28393          test -z "$ac_c_werror_flag" ||
28394          test ! -s conftest.err
28395        } && test -s conftest.$ac_objext; then
28396   ac_hi=$ac_mid; break
28397 else
28398   echo "$as_me: failed program was:" >&5
28399 sed 's/^/| /' conftest.$ac_ext >&5
28400
28401         ac_lo=`expr $ac_mid + 1`
28402                         if test $ac_lo -le $ac_mid; then
28403                           ac_lo= ac_hi=
28404                           break
28405                         fi
28406                         ac_mid=`expr 2 '*' $ac_mid + 1`
28407 fi
28408
28409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28410   done
28411 else
28412   echo "$as_me: failed program was:" >&5
28413 sed 's/^/| /' conftest.$ac_ext >&5
28414
28415         cat >conftest.$ac_ext <<_ACEOF
28416 /* confdefs.h.  */
28417 _ACEOF
28418 cat confdefs.h >>conftest.$ac_ext
28419 cat >>conftest.$ac_ext <<_ACEOF
28420 /* end confdefs.h.  */
28421 $ac_includes_default
28422    typedef short int ac__type_sizeof_;
28423 int
28424 main ()
28425 {
28426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28427 test_array [0] = 0
28428
28429   ;
28430   return 0;
28431 }
28432 _ACEOF
28433 rm -f conftest.$ac_objext
28434 if { (ac_try="$ac_compile"
28435 case "(($ac_try" in
28436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28437   *) ac_try_echo=$ac_try;;
28438 esac
28439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28440   (eval "$ac_compile") 2>conftest.er1
28441   ac_status=$?
28442   grep -v '^ *+' conftest.er1 >conftest.err
28443   rm -f conftest.er1
28444   cat conftest.err >&5
28445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446   (exit $ac_status); } && {
28447          test -z "$ac_c_werror_flag" ||
28448          test ! -s conftest.err
28449        } && test -s conftest.$ac_objext; then
28450   ac_hi=-1 ac_mid=-1
28451   while :; do
28452     cat >conftest.$ac_ext <<_ACEOF
28453 /* confdefs.h.  */
28454 _ACEOF
28455 cat confdefs.h >>conftest.$ac_ext
28456 cat >>conftest.$ac_ext <<_ACEOF
28457 /* end confdefs.h.  */
28458 $ac_includes_default
28459    typedef short int ac__type_sizeof_;
28460 int
28461 main ()
28462 {
28463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28464 test_array [0] = 0
28465
28466   ;
28467   return 0;
28468 }
28469 _ACEOF
28470 rm -f conftest.$ac_objext
28471 if { (ac_try="$ac_compile"
28472 case "(($ac_try" in
28473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28474   *) ac_try_echo=$ac_try;;
28475 esac
28476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28477   (eval "$ac_compile") 2>conftest.er1
28478   ac_status=$?
28479   grep -v '^ *+' conftest.er1 >conftest.err
28480   rm -f conftest.er1
28481   cat conftest.err >&5
28482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483   (exit $ac_status); } && {
28484          test -z "$ac_c_werror_flag" ||
28485          test ! -s conftest.err
28486        } && test -s conftest.$ac_objext; then
28487   ac_lo=$ac_mid; break
28488 else
28489   echo "$as_me: failed program was:" >&5
28490 sed 's/^/| /' conftest.$ac_ext >&5
28491
28492         ac_hi=`expr '(' $ac_mid ')' - 1`
28493                         if test $ac_mid -le $ac_hi; then
28494                           ac_lo= ac_hi=
28495                           break
28496                         fi
28497                         ac_mid=`expr 2 '*' $ac_mid`
28498 fi
28499
28500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28501   done
28502 else
28503   echo "$as_me: failed program was:" >&5
28504 sed 's/^/| /' conftest.$ac_ext >&5
28505
28506         ac_lo= ac_hi=
28507 fi
28508
28509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28510 fi
28511
28512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28513 # Binary search between lo and hi bounds.
28514 while test "x$ac_lo" != "x$ac_hi"; do
28515   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28516   cat >conftest.$ac_ext <<_ACEOF
28517 /* confdefs.h.  */
28518 _ACEOF
28519 cat confdefs.h >>conftest.$ac_ext
28520 cat >>conftest.$ac_ext <<_ACEOF
28521 /* end confdefs.h.  */
28522 $ac_includes_default
28523    typedef short int ac__type_sizeof_;
28524 int
28525 main ()
28526 {
28527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28528 test_array [0] = 0
28529
28530   ;
28531   return 0;
28532 }
28533 _ACEOF
28534 rm -f conftest.$ac_objext
28535 if { (ac_try="$ac_compile"
28536 case "(($ac_try" in
28537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28538   *) ac_try_echo=$ac_try;;
28539 esac
28540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28541   (eval "$ac_compile") 2>conftest.er1
28542   ac_status=$?
28543   grep -v '^ *+' conftest.er1 >conftest.err
28544   rm -f conftest.er1
28545   cat conftest.err >&5
28546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547   (exit $ac_status); } && {
28548          test -z "$ac_c_werror_flag" ||
28549          test ! -s conftest.err
28550        } && test -s conftest.$ac_objext; then
28551   ac_hi=$ac_mid
28552 else
28553   echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28555
28556         ac_lo=`expr '(' $ac_mid ')' + 1`
28557 fi
28558
28559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28560 done
28561 case $ac_lo in
28562 ?*) ac_cv_sizeof_short_int=$ac_lo;;
28563 '') if test "$ac_cv_type_short_int" = yes; then
28564      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
28565 See \`config.log' for more details." >&5
28566 echo "$as_me: error: cannot compute sizeof (short int)
28567 See \`config.log' for more details." >&2;}
28568    { (exit 77); exit 77; }; }
28569    else
28570      ac_cv_sizeof_short_int=0
28571    fi ;;
28572 esac
28573 else
28574   cat >conftest.$ac_ext <<_ACEOF
28575 /* confdefs.h.  */
28576 _ACEOF
28577 cat confdefs.h >>conftest.$ac_ext
28578 cat >>conftest.$ac_ext <<_ACEOF
28579 /* end confdefs.h.  */
28580 $ac_includes_default
28581    typedef short int ac__type_sizeof_;
28582 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28583 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28584 #include <stdio.h>
28585 #include <stdlib.h>
28586 int
28587 main ()
28588 {
28589
28590   FILE *f = fopen ("conftest.val", "w");
28591   if (! f)
28592     return 1;
28593   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28594     {
28595       long int i = longval ();
28596       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28597         return 1;
28598       fprintf (f, "%ld\n", i);
28599     }
28600   else
28601     {
28602       unsigned long int i = ulongval ();
28603       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28604         return 1;
28605       fprintf (f, "%lu\n", i);
28606     }
28607   return ferror (f) || fclose (f) != 0;
28608
28609   ;
28610   return 0;
28611 }
28612 _ACEOF
28613 rm -f conftest$ac_exeext
28614 if { (ac_try="$ac_link"
28615 case "(($ac_try" in
28616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28617   *) ac_try_echo=$ac_try;;
28618 esac
28619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28620   (eval "$ac_link") 2>&5
28621   ac_status=$?
28622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28624   { (case "(($ac_try" in
28625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28626   *) ac_try_echo=$ac_try;;
28627 esac
28628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28629   (eval "$ac_try") 2>&5
28630   ac_status=$?
28631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632   (exit $ac_status); }; }; then
28633   ac_cv_sizeof_short_int=`cat conftest.val`
28634 else
28635   echo "$as_me: program exited with status $ac_status" >&5
28636 echo "$as_me: failed program was:" >&5
28637 sed 's/^/| /' conftest.$ac_ext >&5
28638
28639 ( exit $ac_status )
28640 if test "$ac_cv_type_short_int" = yes; then
28641      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
28642 See \`config.log' for more details." >&5
28643 echo "$as_me: error: cannot compute sizeof (short int)
28644 See \`config.log' for more details." >&2;}
28645    { (exit 77); exit 77; }; }
28646    else
28647      ac_cv_sizeof_short_int=0
28648    fi
28649 fi
28650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28651 fi
28652 rm -f conftest.val
28653 fi
28654 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
28655 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
28656
28657
28658
28659 cat >>confdefs.h <<_ACEOF
28660 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
28661 _ACEOF
28662
28663
28664 { echo "$as_me:$LINENO: checking for int" >&5
28665 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28666 if test "${ac_cv_type_int+set}" = set; then
28667   echo $ECHO_N "(cached) $ECHO_C" >&6
28668 else
28669   cat >conftest.$ac_ext <<_ACEOF
28670 /* confdefs.h.  */
28671 _ACEOF
28672 cat confdefs.h >>conftest.$ac_ext
28673 cat >>conftest.$ac_ext <<_ACEOF
28674 /* end confdefs.h.  */
28675 $ac_includes_default
28676 typedef int ac__type_new_;
28677 int
28678 main ()
28679 {
28680 if ((ac__type_new_ *) 0)
28681   return 0;
28682 if (sizeof (ac__type_new_))
28683   return 0;
28684   ;
28685   return 0;
28686 }
28687 _ACEOF
28688 rm -f conftest.$ac_objext
28689 if { (ac_try="$ac_compile"
28690 case "(($ac_try" in
28691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692   *) ac_try_echo=$ac_try;;
28693 esac
28694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695   (eval "$ac_compile") 2>conftest.er1
28696   ac_status=$?
28697   grep -v '^ *+' conftest.er1 >conftest.err
28698   rm -f conftest.er1
28699   cat conftest.err >&5
28700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701   (exit $ac_status); } && {
28702          test -z "$ac_c_werror_flag" ||
28703          test ! -s conftest.err
28704        } && test -s conftest.$ac_objext; then
28705   ac_cv_type_int=yes
28706 else
28707   echo "$as_me: failed program was:" >&5
28708 sed 's/^/| /' conftest.$ac_ext >&5
28709
28710         ac_cv_type_int=no
28711 fi
28712
28713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28714 fi
28715 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28716 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28717
28718 # The cast to long int works around a bug in the HP C Compiler
28719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28721 # This bug is HP SR number 8606223364.
28722 { echo "$as_me:$LINENO: checking size of int" >&5
28723 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28724 if test "${ac_cv_sizeof_int+set}" = set; then
28725   echo $ECHO_N "(cached) $ECHO_C" >&6
28726 else
28727   if test "$cross_compiling" = yes; then
28728   # Depending upon the size, compute the lo and hi bounds.
28729 cat >conftest.$ac_ext <<_ACEOF
28730 /* confdefs.h.  */
28731 _ACEOF
28732 cat confdefs.h >>conftest.$ac_ext
28733 cat >>conftest.$ac_ext <<_ACEOF
28734 /* end confdefs.h.  */
28735 $ac_includes_default
28736    typedef int ac__type_sizeof_;
28737 int
28738 main ()
28739 {
28740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28741 test_array [0] = 0
28742
28743   ;
28744   return 0;
28745 }
28746 _ACEOF
28747 rm -f conftest.$ac_objext
28748 if { (ac_try="$ac_compile"
28749 case "(($ac_try" in
28750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28751   *) ac_try_echo=$ac_try;;
28752 esac
28753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28754   (eval "$ac_compile") 2>conftest.er1
28755   ac_status=$?
28756   grep -v '^ *+' conftest.er1 >conftest.err
28757   rm -f conftest.er1
28758   cat conftest.err >&5
28759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760   (exit $ac_status); } && {
28761          test -z "$ac_c_werror_flag" ||
28762          test ! -s conftest.err
28763        } && test -s conftest.$ac_objext; then
28764   ac_lo=0 ac_mid=0
28765   while :; do
28766     cat >conftest.$ac_ext <<_ACEOF
28767 /* confdefs.h.  */
28768 _ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h.  */
28772 $ac_includes_default
28773    typedef int ac__type_sizeof_;
28774 int
28775 main ()
28776 {
28777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28778 test_array [0] = 0
28779
28780   ;
28781   return 0;
28782 }
28783 _ACEOF
28784 rm -f conftest.$ac_objext
28785 if { (ac_try="$ac_compile"
28786 case "(($ac_try" in
28787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28788   *) ac_try_echo=$ac_try;;
28789 esac
28790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28791   (eval "$ac_compile") 2>conftest.er1
28792   ac_status=$?
28793   grep -v '^ *+' conftest.er1 >conftest.err
28794   rm -f conftest.er1
28795   cat conftest.err >&5
28796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797   (exit $ac_status); } && {
28798          test -z "$ac_c_werror_flag" ||
28799          test ! -s conftest.err
28800        } && test -s conftest.$ac_objext; then
28801   ac_hi=$ac_mid; break
28802 else
28803   echo "$as_me: failed program was:" >&5
28804 sed 's/^/| /' conftest.$ac_ext >&5
28805
28806         ac_lo=`expr $ac_mid + 1`
28807                         if test $ac_lo -le $ac_mid; then
28808                           ac_lo= ac_hi=
28809                           break
28810                         fi
28811                         ac_mid=`expr 2 '*' $ac_mid + 1`
28812 fi
28813
28814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28815   done
28816 else
28817   echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28819
28820         cat >conftest.$ac_ext <<_ACEOF
28821 /* confdefs.h.  */
28822 _ACEOF
28823 cat confdefs.h >>conftest.$ac_ext
28824 cat >>conftest.$ac_ext <<_ACEOF
28825 /* end confdefs.h.  */
28826 $ac_includes_default
28827    typedef int ac__type_sizeof_;
28828 int
28829 main ()
28830 {
28831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28832 test_array [0] = 0
28833
28834   ;
28835   return 0;
28836 }
28837 _ACEOF
28838 rm -f conftest.$ac_objext
28839 if { (ac_try="$ac_compile"
28840 case "(($ac_try" in
28841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842   *) ac_try_echo=$ac_try;;
28843 esac
28844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845   (eval "$ac_compile") 2>conftest.er1
28846   ac_status=$?
28847   grep -v '^ *+' conftest.er1 >conftest.err
28848   rm -f conftest.er1
28849   cat conftest.err >&5
28850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851   (exit $ac_status); } && {
28852          test -z "$ac_c_werror_flag" ||
28853          test ! -s conftest.err
28854        } && test -s conftest.$ac_objext; then
28855   ac_hi=-1 ac_mid=-1
28856   while :; do
28857     cat >conftest.$ac_ext <<_ACEOF
28858 /* confdefs.h.  */
28859 _ACEOF
28860 cat confdefs.h >>conftest.$ac_ext
28861 cat >>conftest.$ac_ext <<_ACEOF
28862 /* end confdefs.h.  */
28863 $ac_includes_default
28864    typedef int ac__type_sizeof_;
28865 int
28866 main ()
28867 {
28868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28869 test_array [0] = 0
28870
28871   ;
28872   return 0;
28873 }
28874 _ACEOF
28875 rm -f conftest.$ac_objext
28876 if { (ac_try="$ac_compile"
28877 case "(($ac_try" in
28878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28879   *) ac_try_echo=$ac_try;;
28880 esac
28881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28882   (eval "$ac_compile") 2>conftest.er1
28883   ac_status=$?
28884   grep -v '^ *+' conftest.er1 >conftest.err
28885   rm -f conftest.er1
28886   cat conftest.err >&5
28887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888   (exit $ac_status); } && {
28889          test -z "$ac_c_werror_flag" ||
28890          test ! -s conftest.err
28891        } && test -s conftest.$ac_objext; then
28892   ac_lo=$ac_mid; break
28893 else
28894   echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.$ac_ext >&5
28896
28897         ac_hi=`expr '(' $ac_mid ')' - 1`
28898                         if test $ac_mid -le $ac_hi; then
28899                           ac_lo= ac_hi=
28900                           break
28901                         fi
28902                         ac_mid=`expr 2 '*' $ac_mid`
28903 fi
28904
28905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28906   done
28907 else
28908   echo "$as_me: failed program was:" >&5
28909 sed 's/^/| /' conftest.$ac_ext >&5
28910
28911         ac_lo= ac_hi=
28912 fi
28913
28914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28915 fi
28916
28917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28918 # Binary search between lo and hi bounds.
28919 while test "x$ac_lo" != "x$ac_hi"; do
28920   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28921   cat >conftest.$ac_ext <<_ACEOF
28922 /* confdefs.h.  */
28923 _ACEOF
28924 cat confdefs.h >>conftest.$ac_ext
28925 cat >>conftest.$ac_ext <<_ACEOF
28926 /* end confdefs.h.  */
28927 $ac_includes_default
28928    typedef int ac__type_sizeof_;
28929 int
28930 main ()
28931 {
28932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28933 test_array [0] = 0
28934
28935   ;
28936   return 0;
28937 }
28938 _ACEOF
28939 rm -f conftest.$ac_objext
28940 if { (ac_try="$ac_compile"
28941 case "(($ac_try" in
28942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943   *) ac_try_echo=$ac_try;;
28944 esac
28945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28946   (eval "$ac_compile") 2>conftest.er1
28947   ac_status=$?
28948   grep -v '^ *+' conftest.er1 >conftest.err
28949   rm -f conftest.er1
28950   cat conftest.err >&5
28951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); } && {
28953          test -z "$ac_c_werror_flag" ||
28954          test ! -s conftest.err
28955        } && test -s conftest.$ac_objext; then
28956   ac_hi=$ac_mid
28957 else
28958   echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.$ac_ext >&5
28960
28961         ac_lo=`expr '(' $ac_mid ')' + 1`
28962 fi
28963
28964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28965 done
28966 case $ac_lo in
28967 ?*) ac_cv_sizeof_int=$ac_lo;;
28968 '') if test "$ac_cv_type_int" = yes; then
28969      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28970 See \`config.log' for more details." >&5
28971 echo "$as_me: error: cannot compute sizeof (int)
28972 See \`config.log' for more details." >&2;}
28973    { (exit 77); exit 77; }; }
28974    else
28975      ac_cv_sizeof_int=0
28976    fi ;;
28977 esac
28978 else
28979   cat >conftest.$ac_ext <<_ACEOF
28980 /* confdefs.h.  */
28981 _ACEOF
28982 cat confdefs.h >>conftest.$ac_ext
28983 cat >>conftest.$ac_ext <<_ACEOF
28984 /* end confdefs.h.  */
28985 $ac_includes_default
28986    typedef int ac__type_sizeof_;
28987 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28988 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28989 #include <stdio.h>
28990 #include <stdlib.h>
28991 int
28992 main ()
28993 {
28994
28995   FILE *f = fopen ("conftest.val", "w");
28996   if (! f)
28997     return 1;
28998   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28999     {
29000       long int i = longval ();
29001       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29002         return 1;
29003       fprintf (f, "%ld\n", i);
29004     }
29005   else
29006     {
29007       unsigned long int i = ulongval ();
29008       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29009         return 1;
29010       fprintf (f, "%lu\n", i);
29011     }
29012   return ferror (f) || fclose (f) != 0;
29013
29014   ;
29015   return 0;
29016 }
29017 _ACEOF
29018 rm -f conftest$ac_exeext
29019 if { (ac_try="$ac_link"
29020 case "(($ac_try" in
29021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29022   *) ac_try_echo=$ac_try;;
29023 esac
29024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29025   (eval "$ac_link") 2>&5
29026   ac_status=$?
29027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29029   { (case "(($ac_try" in
29030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29031   *) ac_try_echo=$ac_try;;
29032 esac
29033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29034   (eval "$ac_try") 2>&5
29035   ac_status=$?
29036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037   (exit $ac_status); }; }; then
29038   ac_cv_sizeof_int=`cat conftest.val`
29039 else
29040   echo "$as_me: program exited with status $ac_status" >&5
29041 echo "$as_me: failed program was:" >&5
29042 sed 's/^/| /' conftest.$ac_ext >&5
29043
29044 ( exit $ac_status )
29045 if test "$ac_cv_type_int" = yes; then
29046      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29047 See \`config.log' for more details." >&5
29048 echo "$as_me: error: cannot compute sizeof (int)
29049 See \`config.log' for more details." >&2;}
29050    { (exit 77); exit 77; }; }
29051    else
29052      ac_cv_sizeof_int=0
29053    fi
29054 fi
29055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29056 fi
29057 rm -f conftest.val
29058 fi
29059 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29060 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29061
29062
29063
29064 cat >>confdefs.h <<_ACEOF
29065 #define SIZEOF_INT $ac_cv_sizeof_int
29066 _ACEOF
29067
29068
29069 { echo "$as_me:$LINENO: checking for long int" >&5
29070 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
29071 if test "${ac_cv_type_long_int+set}" = set; then
29072   echo $ECHO_N "(cached) $ECHO_C" >&6
29073 else
29074   cat >conftest.$ac_ext <<_ACEOF
29075 /* confdefs.h.  */
29076 _ACEOF
29077 cat confdefs.h >>conftest.$ac_ext
29078 cat >>conftest.$ac_ext <<_ACEOF
29079 /* end confdefs.h.  */
29080 $ac_includes_default
29081 typedef long int ac__type_new_;
29082 int
29083 main ()
29084 {
29085 if ((ac__type_new_ *) 0)
29086   return 0;
29087 if (sizeof (ac__type_new_))
29088   return 0;
29089   ;
29090   return 0;
29091 }
29092 _ACEOF
29093 rm -f conftest.$ac_objext
29094 if { (ac_try="$ac_compile"
29095 case "(($ac_try" in
29096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097   *) ac_try_echo=$ac_try;;
29098 esac
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100   (eval "$ac_compile") 2>conftest.er1
29101   ac_status=$?
29102   grep -v '^ *+' conftest.er1 >conftest.err
29103   rm -f conftest.er1
29104   cat conftest.err >&5
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); } && {
29107          test -z "$ac_c_werror_flag" ||
29108          test ! -s conftest.err
29109        } && test -s conftest.$ac_objext; then
29110   ac_cv_type_long_int=yes
29111 else
29112   echo "$as_me: failed program was:" >&5
29113 sed 's/^/| /' conftest.$ac_ext >&5
29114
29115         ac_cv_type_long_int=no
29116 fi
29117
29118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29119 fi
29120 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
29121 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
29122
29123 # The cast to long int works around a bug in the HP C Compiler
29124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29126 # This bug is HP SR number 8606223364.
29127 { echo "$as_me:$LINENO: checking size of long int" >&5
29128 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
29129 if test "${ac_cv_sizeof_long_int+set}" = set; then
29130   echo $ECHO_N "(cached) $ECHO_C" >&6
29131 else
29132   if test "$cross_compiling" = yes; then
29133   # Depending upon the size, compute the lo and hi bounds.
29134 cat >conftest.$ac_ext <<_ACEOF
29135 /* confdefs.h.  */
29136 _ACEOF
29137 cat confdefs.h >>conftest.$ac_ext
29138 cat >>conftest.$ac_ext <<_ACEOF
29139 /* end confdefs.h.  */
29140 $ac_includes_default
29141    typedef long int ac__type_sizeof_;
29142 int
29143 main ()
29144 {
29145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29146 test_array [0] = 0
29147
29148   ;
29149   return 0;
29150 }
29151 _ACEOF
29152 rm -f conftest.$ac_objext
29153 if { (ac_try="$ac_compile"
29154 case "(($ac_try" in
29155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29156   *) ac_try_echo=$ac_try;;
29157 esac
29158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29159   (eval "$ac_compile") 2>conftest.er1
29160   ac_status=$?
29161   grep -v '^ *+' conftest.er1 >conftest.err
29162   rm -f conftest.er1
29163   cat conftest.err >&5
29164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165   (exit $ac_status); } && {
29166          test -z "$ac_c_werror_flag" ||
29167          test ! -s conftest.err
29168        } && test -s conftest.$ac_objext; then
29169   ac_lo=0 ac_mid=0
29170   while :; do
29171     cat >conftest.$ac_ext <<_ACEOF
29172 /* confdefs.h.  */
29173 _ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h.  */
29177 $ac_includes_default
29178    typedef long int ac__type_sizeof_;
29179 int
29180 main ()
29181 {
29182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29183 test_array [0] = 0
29184
29185   ;
29186   return 0;
29187 }
29188 _ACEOF
29189 rm -f conftest.$ac_objext
29190 if { (ac_try="$ac_compile"
29191 case "(($ac_try" in
29192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29193   *) ac_try_echo=$ac_try;;
29194 esac
29195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29196   (eval "$ac_compile") 2>conftest.er1
29197   ac_status=$?
29198   grep -v '^ *+' conftest.er1 >conftest.err
29199   rm -f conftest.er1
29200   cat conftest.err >&5
29201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202   (exit $ac_status); } && {
29203          test -z "$ac_c_werror_flag" ||
29204          test ! -s conftest.err
29205        } && test -s conftest.$ac_objext; then
29206   ac_hi=$ac_mid; break
29207 else
29208   echo "$as_me: failed program was:" >&5
29209 sed 's/^/| /' conftest.$ac_ext >&5
29210
29211         ac_lo=`expr $ac_mid + 1`
29212                         if test $ac_lo -le $ac_mid; then
29213                           ac_lo= ac_hi=
29214                           break
29215                         fi
29216                         ac_mid=`expr 2 '*' $ac_mid + 1`
29217 fi
29218
29219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29220   done
29221 else
29222   echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29224
29225         cat >conftest.$ac_ext <<_ACEOF
29226 /* confdefs.h.  */
29227 _ACEOF
29228 cat confdefs.h >>conftest.$ac_ext
29229 cat >>conftest.$ac_ext <<_ACEOF
29230 /* end confdefs.h.  */
29231 $ac_includes_default
29232    typedef long int ac__type_sizeof_;
29233 int
29234 main ()
29235 {
29236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29237 test_array [0] = 0
29238
29239   ;
29240   return 0;
29241 }
29242 _ACEOF
29243 rm -f conftest.$ac_objext
29244 if { (ac_try="$ac_compile"
29245 case "(($ac_try" in
29246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29247   *) ac_try_echo=$ac_try;;
29248 esac
29249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29250   (eval "$ac_compile") 2>conftest.er1
29251   ac_status=$?
29252   grep -v '^ *+' conftest.er1 >conftest.err
29253   rm -f conftest.er1
29254   cat conftest.err >&5
29255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256   (exit $ac_status); } && {
29257          test -z "$ac_c_werror_flag" ||
29258          test ! -s conftest.err
29259        } && test -s conftest.$ac_objext; then
29260   ac_hi=-1 ac_mid=-1
29261   while :; do
29262     cat >conftest.$ac_ext <<_ACEOF
29263 /* confdefs.h.  */
29264 _ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h.  */
29268 $ac_includes_default
29269    typedef long int ac__type_sizeof_;
29270 int
29271 main ()
29272 {
29273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29274 test_array [0] = 0
29275
29276   ;
29277   return 0;
29278 }
29279 _ACEOF
29280 rm -f conftest.$ac_objext
29281 if { (ac_try="$ac_compile"
29282 case "(($ac_try" in
29283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284   *) ac_try_echo=$ac_try;;
29285 esac
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287   (eval "$ac_compile") 2>conftest.er1
29288   ac_status=$?
29289   grep -v '^ *+' conftest.er1 >conftest.err
29290   rm -f conftest.er1
29291   cat conftest.err >&5
29292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293   (exit $ac_status); } && {
29294          test -z "$ac_c_werror_flag" ||
29295          test ! -s conftest.err
29296        } && test -s conftest.$ac_objext; then
29297   ac_lo=$ac_mid; break
29298 else
29299   echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29301
29302         ac_hi=`expr '(' $ac_mid ')' - 1`
29303                         if test $ac_mid -le $ac_hi; then
29304                           ac_lo= ac_hi=
29305                           break
29306                         fi
29307                         ac_mid=`expr 2 '*' $ac_mid`
29308 fi
29309
29310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29311   done
29312 else
29313   echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29315
29316         ac_lo= ac_hi=
29317 fi
29318
29319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29320 fi
29321
29322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29323 # Binary search between lo and hi bounds.
29324 while test "x$ac_lo" != "x$ac_hi"; do
29325   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29326   cat >conftest.$ac_ext <<_ACEOF
29327 /* confdefs.h.  */
29328 _ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h.  */
29332 $ac_includes_default
29333    typedef long int ac__type_sizeof_;
29334 int
29335 main ()
29336 {
29337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29338 test_array [0] = 0
29339
29340   ;
29341   return 0;
29342 }
29343 _ACEOF
29344 rm -f conftest.$ac_objext
29345 if { (ac_try="$ac_compile"
29346 case "(($ac_try" in
29347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29348   *) ac_try_echo=$ac_try;;
29349 esac
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351   (eval "$ac_compile") 2>conftest.er1
29352   ac_status=$?
29353   grep -v '^ *+' conftest.er1 >conftest.err
29354   rm -f conftest.er1
29355   cat conftest.err >&5
29356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357   (exit $ac_status); } && {
29358          test -z "$ac_c_werror_flag" ||
29359          test ! -s conftest.err
29360        } && test -s conftest.$ac_objext; then
29361   ac_hi=$ac_mid
29362 else
29363   echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29365
29366         ac_lo=`expr '(' $ac_mid ')' + 1`
29367 fi
29368
29369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29370 done
29371 case $ac_lo in
29372 ?*) ac_cv_sizeof_long_int=$ac_lo;;
29373 '') if test "$ac_cv_type_long_int" = yes; then
29374      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
29375 See \`config.log' for more details." >&5
29376 echo "$as_me: error: cannot compute sizeof (long int)
29377 See \`config.log' for more details." >&2;}
29378    { (exit 77); exit 77; }; }
29379    else
29380      ac_cv_sizeof_long_int=0
29381    fi ;;
29382 esac
29383 else
29384   cat >conftest.$ac_ext <<_ACEOF
29385 /* confdefs.h.  */
29386 _ACEOF
29387 cat confdefs.h >>conftest.$ac_ext
29388 cat >>conftest.$ac_ext <<_ACEOF
29389 /* end confdefs.h.  */
29390 $ac_includes_default
29391    typedef long int ac__type_sizeof_;
29392 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29393 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29394 #include <stdio.h>
29395 #include <stdlib.h>
29396 int
29397 main ()
29398 {
29399
29400   FILE *f = fopen ("conftest.val", "w");
29401   if (! f)
29402     return 1;
29403   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29404     {
29405       long int i = longval ();
29406       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29407         return 1;
29408       fprintf (f, "%ld\n", i);
29409     }
29410   else
29411     {
29412       unsigned long int i = ulongval ();
29413       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29414         return 1;
29415       fprintf (f, "%lu\n", i);
29416     }
29417   return ferror (f) || fclose (f) != 0;
29418
29419   ;
29420   return 0;
29421 }
29422 _ACEOF
29423 rm -f conftest$ac_exeext
29424 if { (ac_try="$ac_link"
29425 case "(($ac_try" in
29426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427   *) ac_try_echo=$ac_try;;
29428 esac
29429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430   (eval "$ac_link") 2>&5
29431   ac_status=$?
29432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29434   { (case "(($ac_try" in
29435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29436   *) ac_try_echo=$ac_try;;
29437 esac
29438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29439   (eval "$ac_try") 2>&5
29440   ac_status=$?
29441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442   (exit $ac_status); }; }; then
29443   ac_cv_sizeof_long_int=`cat conftest.val`
29444 else
29445   echo "$as_me: program exited with status $ac_status" >&5
29446 echo "$as_me: failed program was:" >&5
29447 sed 's/^/| /' conftest.$ac_ext >&5
29448
29449 ( exit $ac_status )
29450 if test "$ac_cv_type_long_int" = yes; then
29451      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
29452 See \`config.log' for more details." >&5
29453 echo "$as_me: error: cannot compute sizeof (long int)
29454 See \`config.log' for more details." >&2;}
29455    { (exit 77); exit 77; }; }
29456    else
29457      ac_cv_sizeof_long_int=0
29458    fi
29459 fi
29460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29461 fi
29462 rm -f conftest.val
29463 fi
29464 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
29465 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
29466
29467
29468
29469 cat >>confdefs.h <<_ACEOF
29470 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
29471 _ACEOF
29472
29473
29474 { echo "$as_me:$LINENO: checking for long long int" >&5
29475 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
29476 if test "${ac_cv_type_long_long_int+set}" = set; then
29477   echo $ECHO_N "(cached) $ECHO_C" >&6
29478 else
29479   cat >conftest.$ac_ext <<_ACEOF
29480 /* confdefs.h.  */
29481 _ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h.  */
29485 $ac_includes_default
29486 typedef long long int ac__type_new_;
29487 int
29488 main ()
29489 {
29490 if ((ac__type_new_ *) 0)
29491   return 0;
29492 if (sizeof (ac__type_new_))
29493   return 0;
29494   ;
29495   return 0;
29496 }
29497 _ACEOF
29498 rm -f conftest.$ac_objext
29499 if { (ac_try="$ac_compile"
29500 case "(($ac_try" in
29501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29502   *) ac_try_echo=$ac_try;;
29503 esac
29504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29505   (eval "$ac_compile") 2>conftest.er1
29506   ac_status=$?
29507   grep -v '^ *+' conftest.er1 >conftest.err
29508   rm -f conftest.er1
29509   cat conftest.err >&5
29510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511   (exit $ac_status); } && {
29512          test -z "$ac_c_werror_flag" ||
29513          test ! -s conftest.err
29514        } && test -s conftest.$ac_objext; then
29515   ac_cv_type_long_long_int=yes
29516 else
29517   echo "$as_me: failed program was:" >&5
29518 sed 's/^/| /' conftest.$ac_ext >&5
29519
29520         ac_cv_type_long_long_int=no
29521 fi
29522
29523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29524 fi
29525 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
29526 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
29527
29528 # The cast to long int works around a bug in the HP C Compiler
29529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29530 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29531 # This bug is HP SR number 8606223364.
29532 { echo "$as_me:$LINENO: checking size of long long int" >&5
29533 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
29534 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
29535   echo $ECHO_N "(cached) $ECHO_C" >&6
29536 else
29537   if test "$cross_compiling" = yes; then
29538   # Depending upon the size, compute the lo and hi bounds.
29539 cat >conftest.$ac_ext <<_ACEOF
29540 /* confdefs.h.  */
29541 _ACEOF
29542 cat confdefs.h >>conftest.$ac_ext
29543 cat >>conftest.$ac_ext <<_ACEOF
29544 /* end confdefs.h.  */
29545 $ac_includes_default
29546    typedef long long int ac__type_sizeof_;
29547 int
29548 main ()
29549 {
29550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29551 test_array [0] = 0
29552
29553   ;
29554   return 0;
29555 }
29556 _ACEOF
29557 rm -f conftest.$ac_objext
29558 if { (ac_try="$ac_compile"
29559 case "(($ac_try" in
29560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29561   *) ac_try_echo=$ac_try;;
29562 esac
29563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29564   (eval "$ac_compile") 2>conftest.er1
29565   ac_status=$?
29566   grep -v '^ *+' conftest.er1 >conftest.err
29567   rm -f conftest.er1
29568   cat conftest.err >&5
29569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570   (exit $ac_status); } && {
29571          test -z "$ac_c_werror_flag" ||
29572          test ! -s conftest.err
29573        } && test -s conftest.$ac_objext; then
29574   ac_lo=0 ac_mid=0
29575   while :; do
29576     cat >conftest.$ac_ext <<_ACEOF
29577 /* confdefs.h.  */
29578 _ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h.  */
29582 $ac_includes_default
29583    typedef long long int ac__type_sizeof_;
29584 int
29585 main ()
29586 {
29587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29588 test_array [0] = 0
29589
29590   ;
29591   return 0;
29592 }
29593 _ACEOF
29594 rm -f conftest.$ac_objext
29595 if { (ac_try="$ac_compile"
29596 case "(($ac_try" in
29597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29598   *) ac_try_echo=$ac_try;;
29599 esac
29600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29601   (eval "$ac_compile") 2>conftest.er1
29602   ac_status=$?
29603   grep -v '^ *+' conftest.er1 >conftest.err
29604   rm -f conftest.er1
29605   cat conftest.err >&5
29606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607   (exit $ac_status); } && {
29608          test -z "$ac_c_werror_flag" ||
29609          test ! -s conftest.err
29610        } && test -s conftest.$ac_objext; then
29611   ac_hi=$ac_mid; break
29612 else
29613   echo "$as_me: failed program was:" >&5
29614 sed 's/^/| /' conftest.$ac_ext >&5
29615
29616         ac_lo=`expr $ac_mid + 1`
29617                         if test $ac_lo -le $ac_mid; then
29618                           ac_lo= ac_hi=
29619                           break
29620                         fi
29621                         ac_mid=`expr 2 '*' $ac_mid + 1`
29622 fi
29623
29624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29625   done
29626 else
29627   echo "$as_me: failed program was:" >&5
29628 sed 's/^/| /' conftest.$ac_ext >&5
29629
29630         cat >conftest.$ac_ext <<_ACEOF
29631 /* confdefs.h.  */
29632 _ACEOF
29633 cat confdefs.h >>conftest.$ac_ext
29634 cat >>conftest.$ac_ext <<_ACEOF
29635 /* end confdefs.h.  */
29636 $ac_includes_default
29637    typedef long long int ac__type_sizeof_;
29638 int
29639 main ()
29640 {
29641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29642 test_array [0] = 0
29643
29644   ;
29645   return 0;
29646 }
29647 _ACEOF
29648 rm -f conftest.$ac_objext
29649 if { (ac_try="$ac_compile"
29650 case "(($ac_try" in
29651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652   *) ac_try_echo=$ac_try;;
29653 esac
29654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29655   (eval "$ac_compile") 2>conftest.er1
29656   ac_status=$?
29657   grep -v '^ *+' conftest.er1 >conftest.err
29658   rm -f conftest.er1
29659   cat conftest.err >&5
29660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661   (exit $ac_status); } && {
29662          test -z "$ac_c_werror_flag" ||
29663          test ! -s conftest.err
29664        } && test -s conftest.$ac_objext; then
29665   ac_hi=-1 ac_mid=-1
29666   while :; do
29667     cat >conftest.$ac_ext <<_ACEOF
29668 /* confdefs.h.  */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h.  */
29673 $ac_includes_default
29674    typedef long long int ac__type_sizeof_;
29675 int
29676 main ()
29677 {
29678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29679 test_array [0] = 0
29680
29681   ;
29682   return 0;
29683 }
29684 _ACEOF
29685 rm -f conftest.$ac_objext
29686 if { (ac_try="$ac_compile"
29687 case "(($ac_try" in
29688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689   *) ac_try_echo=$ac_try;;
29690 esac
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692   (eval "$ac_compile") 2>conftest.er1
29693   ac_status=$?
29694   grep -v '^ *+' conftest.er1 >conftest.err
29695   rm -f conftest.er1
29696   cat conftest.err >&5
29697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698   (exit $ac_status); } && {
29699          test -z "$ac_c_werror_flag" ||
29700          test ! -s conftest.err
29701        } && test -s conftest.$ac_objext; then
29702   ac_lo=$ac_mid; break
29703 else
29704   echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29706
29707         ac_hi=`expr '(' $ac_mid ')' - 1`
29708                         if test $ac_mid -le $ac_hi; then
29709                           ac_lo= ac_hi=
29710                           break
29711                         fi
29712                         ac_mid=`expr 2 '*' $ac_mid`
29713 fi
29714
29715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29716   done
29717 else
29718   echo "$as_me: failed program was:" >&5
29719 sed 's/^/| /' conftest.$ac_ext >&5
29720
29721         ac_lo= ac_hi=
29722 fi
29723
29724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29725 fi
29726
29727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29728 # Binary search between lo and hi bounds.
29729 while test "x$ac_lo" != "x$ac_hi"; do
29730   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29731   cat >conftest.$ac_ext <<_ACEOF
29732 /* confdefs.h.  */
29733 _ACEOF
29734 cat confdefs.h >>conftest.$ac_ext
29735 cat >>conftest.$ac_ext <<_ACEOF
29736 /* end confdefs.h.  */
29737 $ac_includes_default
29738    typedef long long int ac__type_sizeof_;
29739 int
29740 main ()
29741 {
29742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29743 test_array [0] = 0
29744
29745   ;
29746   return 0;
29747 }
29748 _ACEOF
29749 rm -f conftest.$ac_objext
29750 if { (ac_try="$ac_compile"
29751 case "(($ac_try" in
29752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753   *) ac_try_echo=$ac_try;;
29754 esac
29755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756   (eval "$ac_compile") 2>conftest.er1
29757   ac_status=$?
29758   grep -v '^ *+' conftest.er1 >conftest.err
29759   rm -f conftest.er1
29760   cat conftest.err >&5
29761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762   (exit $ac_status); } && {
29763          test -z "$ac_c_werror_flag" ||
29764          test ! -s conftest.err
29765        } && test -s conftest.$ac_objext; then
29766   ac_hi=$ac_mid
29767 else
29768   echo "$as_me: failed program was:" >&5
29769 sed 's/^/| /' conftest.$ac_ext >&5
29770
29771         ac_lo=`expr '(' $ac_mid ')' + 1`
29772 fi
29773
29774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29775 done
29776 case $ac_lo in
29777 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
29778 '') if test "$ac_cv_type_long_long_int" = yes; then
29779      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
29780 See \`config.log' for more details." >&5
29781 echo "$as_me: error: cannot compute sizeof (long long int)
29782 See \`config.log' for more details." >&2;}
29783    { (exit 77); exit 77; }; }
29784    else
29785      ac_cv_sizeof_long_long_int=0
29786    fi ;;
29787 esac
29788 else
29789   cat >conftest.$ac_ext <<_ACEOF
29790 /* confdefs.h.  */
29791 _ACEOF
29792 cat confdefs.h >>conftest.$ac_ext
29793 cat >>conftest.$ac_ext <<_ACEOF
29794 /* end confdefs.h.  */
29795 $ac_includes_default
29796    typedef long long int ac__type_sizeof_;
29797 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29798 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29799 #include <stdio.h>
29800 #include <stdlib.h>
29801 int
29802 main ()
29803 {
29804
29805   FILE *f = fopen ("conftest.val", "w");
29806   if (! f)
29807     return 1;
29808   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29809     {
29810       long int i = longval ();
29811       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29812         return 1;
29813       fprintf (f, "%ld\n", i);
29814     }
29815   else
29816     {
29817       unsigned long int i = ulongval ();
29818       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29819         return 1;
29820       fprintf (f, "%lu\n", i);
29821     }
29822   return ferror (f) || fclose (f) != 0;
29823
29824   ;
29825   return 0;
29826 }
29827 _ACEOF
29828 rm -f conftest$ac_exeext
29829 if { (ac_try="$ac_link"
29830 case "(($ac_try" in
29831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29832   *) ac_try_echo=$ac_try;;
29833 esac
29834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835   (eval "$ac_link") 2>&5
29836   ac_status=$?
29837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29839   { (case "(($ac_try" in
29840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841   *) ac_try_echo=$ac_try;;
29842 esac
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844   (eval "$ac_try") 2>&5
29845   ac_status=$?
29846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847   (exit $ac_status); }; }; then
29848   ac_cv_sizeof_long_long_int=`cat conftest.val`
29849 else
29850   echo "$as_me: program exited with status $ac_status" >&5
29851 echo "$as_me: failed program was:" >&5
29852 sed 's/^/| /' conftest.$ac_ext >&5
29853
29854 ( exit $ac_status )
29855 if test "$ac_cv_type_long_long_int" = yes; then
29856      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
29857 See \`config.log' for more details." >&5
29858 echo "$as_me: error: cannot compute sizeof (long long int)
29859 See \`config.log' for more details." >&2;}
29860    { (exit 77); exit 77; }; }
29861    else
29862      ac_cv_sizeof_long_long_int=0
29863    fi
29864 fi
29865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29866 fi
29867 rm -f conftest.val
29868 fi
29869 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
29870 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
29871
29872
29873
29874 cat >>confdefs.h <<_ACEOF
29875 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
29876 _ACEOF
29877
29878
29879 { echo "$as_me:$LINENO: checking for int *" >&5
29880 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
29881 if test "${ac_cv_type_int_p+set}" = set; then
29882   echo $ECHO_N "(cached) $ECHO_C" >&6
29883 else
29884   cat >conftest.$ac_ext <<_ACEOF
29885 /* confdefs.h.  */
29886 _ACEOF
29887 cat confdefs.h >>conftest.$ac_ext
29888 cat >>conftest.$ac_ext <<_ACEOF
29889 /* end confdefs.h.  */
29890 $ac_includes_default
29891 typedef int * ac__type_new_;
29892 int
29893 main ()
29894 {
29895 if ((ac__type_new_ *) 0)
29896   return 0;
29897 if (sizeof (ac__type_new_))
29898   return 0;
29899   ;
29900   return 0;
29901 }
29902 _ACEOF
29903 rm -f conftest.$ac_objext
29904 if { (ac_try="$ac_compile"
29905 case "(($ac_try" in
29906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29907   *) ac_try_echo=$ac_try;;
29908 esac
29909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29910   (eval "$ac_compile") 2>conftest.er1
29911   ac_status=$?
29912   grep -v '^ *+' conftest.er1 >conftest.err
29913   rm -f conftest.er1
29914   cat conftest.err >&5
29915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916   (exit $ac_status); } && {
29917          test -z "$ac_c_werror_flag" ||
29918          test ! -s conftest.err
29919        } && test -s conftest.$ac_objext; then
29920   ac_cv_type_int_p=yes
29921 else
29922   echo "$as_me: failed program was:" >&5
29923 sed 's/^/| /' conftest.$ac_ext >&5
29924
29925         ac_cv_type_int_p=no
29926 fi
29927
29928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29929 fi
29930 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
29931 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
29932
29933 # The cast to long int works around a bug in the HP C Compiler
29934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29936 # This bug is HP SR number 8606223364.
29937 { echo "$as_me:$LINENO: checking size of int *" >&5
29938 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
29939 if test "${ac_cv_sizeof_int_p+set}" = set; then
29940   echo $ECHO_N "(cached) $ECHO_C" >&6
29941 else
29942   if test "$cross_compiling" = yes; then
29943   # Depending upon the size, compute the lo and hi bounds.
29944 cat >conftest.$ac_ext <<_ACEOF
29945 /* confdefs.h.  */
29946 _ACEOF
29947 cat confdefs.h >>conftest.$ac_ext
29948 cat >>conftest.$ac_ext <<_ACEOF
29949 /* end confdefs.h.  */
29950 $ac_includes_default
29951    typedef int * ac__type_sizeof_;
29952 int
29953 main ()
29954 {
29955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29956 test_array [0] = 0
29957
29958   ;
29959   return 0;
29960 }
29961 _ACEOF
29962 rm -f conftest.$ac_objext
29963 if { (ac_try="$ac_compile"
29964 case "(($ac_try" in
29965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29966   *) ac_try_echo=$ac_try;;
29967 esac
29968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29969   (eval "$ac_compile") 2>conftest.er1
29970   ac_status=$?
29971   grep -v '^ *+' conftest.er1 >conftest.err
29972   rm -f conftest.er1
29973   cat conftest.err >&5
29974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975   (exit $ac_status); } && {
29976          test -z "$ac_c_werror_flag" ||
29977          test ! -s conftest.err
29978        } && test -s conftest.$ac_objext; then
29979   ac_lo=0 ac_mid=0
29980   while :; do
29981     cat >conftest.$ac_ext <<_ACEOF
29982 /* confdefs.h.  */
29983 _ACEOF
29984 cat confdefs.h >>conftest.$ac_ext
29985 cat >>conftest.$ac_ext <<_ACEOF
29986 /* end confdefs.h.  */
29987 $ac_includes_default
29988    typedef int * ac__type_sizeof_;
29989 int
29990 main ()
29991 {
29992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29993 test_array [0] = 0
29994
29995   ;
29996   return 0;
29997 }
29998 _ACEOF
29999 rm -f conftest.$ac_objext
30000 if { (ac_try="$ac_compile"
30001 case "(($ac_try" in
30002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003   *) ac_try_echo=$ac_try;;
30004 esac
30005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006   (eval "$ac_compile") 2>conftest.er1
30007   ac_status=$?
30008   grep -v '^ *+' conftest.er1 >conftest.err
30009   rm -f conftest.er1
30010   cat conftest.err >&5
30011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012   (exit $ac_status); } && {
30013          test -z "$ac_c_werror_flag" ||
30014          test ! -s conftest.err
30015        } && test -s conftest.$ac_objext; then
30016   ac_hi=$ac_mid; break
30017 else
30018   echo "$as_me: failed program was:" >&5
30019 sed 's/^/| /' conftest.$ac_ext >&5
30020
30021         ac_lo=`expr $ac_mid + 1`
30022                         if test $ac_lo -le $ac_mid; then
30023                           ac_lo= ac_hi=
30024                           break
30025                         fi
30026                         ac_mid=`expr 2 '*' $ac_mid + 1`
30027 fi
30028
30029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30030   done
30031 else
30032   echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30034
30035         cat >conftest.$ac_ext <<_ACEOF
30036 /* confdefs.h.  */
30037 _ACEOF
30038 cat confdefs.h >>conftest.$ac_ext
30039 cat >>conftest.$ac_ext <<_ACEOF
30040 /* end confdefs.h.  */
30041 $ac_includes_default
30042    typedef int * ac__type_sizeof_;
30043 int
30044 main ()
30045 {
30046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30047 test_array [0] = 0
30048
30049   ;
30050   return 0;
30051 }
30052 _ACEOF
30053 rm -f conftest.$ac_objext
30054 if { (ac_try="$ac_compile"
30055 case "(($ac_try" in
30056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057   *) ac_try_echo=$ac_try;;
30058 esac
30059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060   (eval "$ac_compile") 2>conftest.er1
30061   ac_status=$?
30062   grep -v '^ *+' conftest.er1 >conftest.err
30063   rm -f conftest.er1
30064   cat conftest.err >&5
30065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066   (exit $ac_status); } && {
30067          test -z "$ac_c_werror_flag" ||
30068          test ! -s conftest.err
30069        } && test -s conftest.$ac_objext; then
30070   ac_hi=-1 ac_mid=-1
30071   while :; do
30072     cat >conftest.$ac_ext <<_ACEOF
30073 /* confdefs.h.  */
30074 _ACEOF
30075 cat confdefs.h >>conftest.$ac_ext
30076 cat >>conftest.$ac_ext <<_ACEOF
30077 /* end confdefs.h.  */
30078 $ac_includes_default
30079    typedef int * ac__type_sizeof_;
30080 int
30081 main ()
30082 {
30083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30084 test_array [0] = 0
30085
30086   ;
30087   return 0;
30088 }
30089 _ACEOF
30090 rm -f conftest.$ac_objext
30091 if { (ac_try="$ac_compile"
30092 case "(($ac_try" in
30093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30094   *) ac_try_echo=$ac_try;;
30095 esac
30096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30097   (eval "$ac_compile") 2>conftest.er1
30098   ac_status=$?
30099   grep -v '^ *+' conftest.er1 >conftest.err
30100   rm -f conftest.er1
30101   cat conftest.err >&5
30102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103   (exit $ac_status); } && {
30104          test -z "$ac_c_werror_flag" ||
30105          test ! -s conftest.err
30106        } && test -s conftest.$ac_objext; then
30107   ac_lo=$ac_mid; break
30108 else
30109   echo "$as_me: failed program was:" >&5
30110 sed 's/^/| /' conftest.$ac_ext >&5
30111
30112         ac_hi=`expr '(' $ac_mid ')' - 1`
30113                         if test $ac_mid -le $ac_hi; then
30114                           ac_lo= ac_hi=
30115                           break
30116                         fi
30117                         ac_mid=`expr 2 '*' $ac_mid`
30118 fi
30119
30120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30121   done
30122 else
30123   echo "$as_me: failed program was:" >&5
30124 sed 's/^/| /' conftest.$ac_ext >&5
30125
30126         ac_lo= ac_hi=
30127 fi
30128
30129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30130 fi
30131
30132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30133 # Binary search between lo and hi bounds.
30134 while test "x$ac_lo" != "x$ac_hi"; do
30135   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30136   cat >conftest.$ac_ext <<_ACEOF
30137 /* confdefs.h.  */
30138 _ACEOF
30139 cat confdefs.h >>conftest.$ac_ext
30140 cat >>conftest.$ac_ext <<_ACEOF
30141 /* end confdefs.h.  */
30142 $ac_includes_default
30143    typedef int * ac__type_sizeof_;
30144 int
30145 main ()
30146 {
30147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30148 test_array [0] = 0
30149
30150   ;
30151   return 0;
30152 }
30153 _ACEOF
30154 rm -f conftest.$ac_objext
30155 if { (ac_try="$ac_compile"
30156 case "(($ac_try" in
30157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30158   *) ac_try_echo=$ac_try;;
30159 esac
30160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30161   (eval "$ac_compile") 2>conftest.er1
30162   ac_status=$?
30163   grep -v '^ *+' conftest.er1 >conftest.err
30164   rm -f conftest.er1
30165   cat conftest.err >&5
30166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167   (exit $ac_status); } && {
30168          test -z "$ac_c_werror_flag" ||
30169          test ! -s conftest.err
30170        } && test -s conftest.$ac_objext; then
30171   ac_hi=$ac_mid
30172 else
30173   echo "$as_me: failed program was:" >&5
30174 sed 's/^/| /' conftest.$ac_ext >&5
30175
30176         ac_lo=`expr '(' $ac_mid ')' + 1`
30177 fi
30178
30179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30180 done
30181 case $ac_lo in
30182 ?*) ac_cv_sizeof_int_p=$ac_lo;;
30183 '') if test "$ac_cv_type_int_p" = yes; then
30184      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
30185 See \`config.log' for more details." >&5
30186 echo "$as_me: error: cannot compute sizeof (int *)
30187 See \`config.log' for more details." >&2;}
30188    { (exit 77); exit 77; }; }
30189    else
30190      ac_cv_sizeof_int_p=0
30191    fi ;;
30192 esac
30193 else
30194   cat >conftest.$ac_ext <<_ACEOF
30195 /* confdefs.h.  */
30196 _ACEOF
30197 cat confdefs.h >>conftest.$ac_ext
30198 cat >>conftest.$ac_ext <<_ACEOF
30199 /* end confdefs.h.  */
30200 $ac_includes_default
30201    typedef int * ac__type_sizeof_;
30202 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30203 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30204 #include <stdio.h>
30205 #include <stdlib.h>
30206 int
30207 main ()
30208 {
30209
30210   FILE *f = fopen ("conftest.val", "w");
30211   if (! f)
30212     return 1;
30213   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30214     {
30215       long int i = longval ();
30216       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30217         return 1;
30218       fprintf (f, "%ld\n", i);
30219     }
30220   else
30221     {
30222       unsigned long int i = ulongval ();
30223       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30224         return 1;
30225       fprintf (f, "%lu\n", i);
30226     }
30227   return ferror (f) || fclose (f) != 0;
30228
30229   ;
30230   return 0;
30231 }
30232 _ACEOF
30233 rm -f conftest$ac_exeext
30234 if { (ac_try="$ac_link"
30235 case "(($ac_try" in
30236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30237   *) ac_try_echo=$ac_try;;
30238 esac
30239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30240   (eval "$ac_link") 2>&5
30241   ac_status=$?
30242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30244   { (case "(($ac_try" in
30245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246   *) ac_try_echo=$ac_try;;
30247 esac
30248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249   (eval "$ac_try") 2>&5
30250   ac_status=$?
30251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252   (exit $ac_status); }; }; then
30253   ac_cv_sizeof_int_p=`cat conftest.val`
30254 else
30255   echo "$as_me: program exited with status $ac_status" >&5
30256 echo "$as_me: failed program was:" >&5
30257 sed 's/^/| /' conftest.$ac_ext >&5
30258
30259 ( exit $ac_status )
30260 if test "$ac_cv_type_int_p" = yes; then
30261      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
30262 See \`config.log' for more details." >&5
30263 echo "$as_me: error: cannot compute sizeof (int *)
30264 See \`config.log' for more details." >&2;}
30265    { (exit 77); exit 77; }; }
30266    else
30267      ac_cv_sizeof_int_p=0
30268    fi
30269 fi
30270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30271 fi
30272 rm -f conftest.val
30273 fi
30274 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
30275 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
30276
30277
30278
30279 cat >>confdefs.h <<_ACEOF
30280 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
30281 _ACEOF
30282
30283
30284
30285 # Check for sys/types.h types
30286 { echo "$as_me:$LINENO: checking for u_int type" >&5
30287 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
30288 if test "${ac_cv_have_u_int+set}" = set; then
30289   echo $ECHO_N "(cached) $ECHO_C" >&6
30290 else
30291
30292     cat >conftest.$ac_ext <<_ACEOF
30293 /* confdefs.h.  */
30294 _ACEOF
30295 cat confdefs.h >>conftest.$ac_ext
30296 cat >>conftest.$ac_ext <<_ACEOF
30297 /* end confdefs.h.  */
30298  #include <sys/types.h>
30299 int
30300 main ()
30301 {
30302  u_int a; a = 1;
30303   ;
30304   return 0;
30305 }
30306 _ACEOF
30307 rm -f conftest.$ac_objext
30308 if { (ac_try="$ac_compile"
30309 case "(($ac_try" in
30310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311   *) ac_try_echo=$ac_try;;
30312 esac
30313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314   (eval "$ac_compile") 2>conftest.er1
30315   ac_status=$?
30316   grep -v '^ *+' conftest.er1 >conftest.err
30317   rm -f conftest.er1
30318   cat conftest.err >&5
30319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320   (exit $ac_status); } && {
30321          test -z "$ac_c_werror_flag" ||
30322          test ! -s conftest.err
30323        } && test -s conftest.$ac_objext; then
30324    ac_cv_have_u_int="yes"
30325 else
30326   echo "$as_me: failed program was:" >&5
30327 sed 's/^/| /' conftest.$ac_ext >&5
30328
30329          ac_cv_have_u_int="no"
30330
30331 fi
30332
30333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30334
30335 fi
30336 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
30337 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
30338 if test "x$ac_cv_have_u_int" = "xyes" ; then
30339    cat >>confdefs.h <<\_ACEOF
30340 #define HAVE_U_INT 1
30341 _ACEOF
30342
30343    have_u_int=1
30344 fi
30345
30346 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
30347 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
30348 if test "${ac_cv_have_intmax_t+set}" = set; then
30349   echo $ECHO_N "(cached) $ECHO_C" >&6
30350 else
30351
30352    cat >conftest.$ac_ext <<_ACEOF
30353 /* confdefs.h.  */
30354 _ACEOF
30355 cat confdefs.h >>conftest.$ac_ext
30356 cat >>conftest.$ac_ext <<_ACEOF
30357 /* end confdefs.h.  */
30358  #include <sys/types.h>
30359 int
30360 main ()
30361 {
30362  intmax_t a; a = 1;
30363   ;
30364   return 0;
30365 }
30366 _ACEOF
30367 rm -f conftest.$ac_objext
30368 if { (ac_try="$ac_compile"
30369 case "(($ac_try" in
30370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30371   *) ac_try_echo=$ac_try;;
30372 esac
30373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30374   (eval "$ac_compile") 2>conftest.er1
30375   ac_status=$?
30376   grep -v '^ *+' conftest.er1 >conftest.err
30377   rm -f conftest.er1
30378   cat conftest.err >&5
30379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380   (exit $ac_status); } && {
30381          test -z "$ac_c_werror_flag" ||
30382          test ! -s conftest.err
30383        } && test -s conftest.$ac_objext; then
30384    ac_cv_have_intmax_t="yes"
30385 else
30386   echo "$as_me: failed program was:" >&5
30387 sed 's/^/| /' conftest.$ac_ext >&5
30388
30389
30390          cat >conftest.$ac_ext <<_ACEOF
30391 /* confdefs.h.  */
30392 _ACEOF
30393 cat confdefs.h >>conftest.$ac_ext
30394 cat >>conftest.$ac_ext <<_ACEOF
30395 /* end confdefs.h.  */
30396  #include <stdint.h>
30397 int
30398 main ()
30399 {
30400  intmax_t a; a = 1;
30401   ;
30402   return 0;
30403 }
30404 _ACEOF
30405 rm -f conftest.$ac_objext
30406 if { (ac_try="$ac_compile"
30407 case "(($ac_try" in
30408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409   *) ac_try_echo=$ac_try;;
30410 esac
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412   (eval "$ac_compile") 2>conftest.er1
30413   ac_status=$?
30414   grep -v '^ *+' conftest.er1 >conftest.err
30415   rm -f conftest.er1
30416   cat conftest.err >&5
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); } && {
30419          test -z "$ac_c_werror_flag" ||
30420          test ! -s conftest.err
30421        } && test -s conftest.$ac_objext; then
30422    ac_cv_have_intmax_t="yes"
30423 else
30424   echo "$as_me: failed program was:" >&5
30425 sed 's/^/| /' conftest.$ac_ext >&5
30426
30427          ac_cv_have_intmax_t="no"
30428
30429 fi
30430
30431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30432
30433
30434 fi
30435
30436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30437
30438
30439 fi
30440 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
30441 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
30442 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
30443    cat >>confdefs.h <<\_ACEOF
30444 #define HAVE_INTMAX_T 1
30445 _ACEOF
30446
30447    have_intmax_t=1
30448 fi
30449
30450
30451 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
30452 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
30453 if test "${ac_cv_have_u_intmax_t+set}" = set; then
30454   echo $ECHO_N "(cached) $ECHO_C" >&6
30455 else
30456
30457    cat >conftest.$ac_ext <<_ACEOF
30458 /* confdefs.h.  */
30459 _ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h.  */
30463  #include <sys/types.h>
30464 int
30465 main ()
30466 {
30467  u_intmax_t a; a = 1;
30468   ;
30469   return 0;
30470 }
30471 _ACEOF
30472 rm -f conftest.$ac_objext
30473 if { (ac_try="$ac_compile"
30474 case "(($ac_try" in
30475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476   *) ac_try_echo=$ac_try;;
30477 esac
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479   (eval "$ac_compile") 2>conftest.er1
30480   ac_status=$?
30481   grep -v '^ *+' conftest.er1 >conftest.err
30482   rm -f conftest.er1
30483   cat conftest.err >&5
30484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485   (exit $ac_status); } && {
30486          test -z "$ac_c_werror_flag" ||
30487          test ! -s conftest.err
30488        } && test -s conftest.$ac_objext; then
30489    ac_cv_have_u_intmax_t="yes"
30490 else
30491   echo "$as_me: failed program was:" >&5
30492 sed 's/^/| /' conftest.$ac_ext >&5
30493
30494
30495          cat >conftest.$ac_ext <<_ACEOF
30496 /* confdefs.h.  */
30497 _ACEOF
30498 cat confdefs.h >>conftest.$ac_ext
30499 cat >>conftest.$ac_ext <<_ACEOF
30500 /* end confdefs.h.  */
30501  #include <stdint.h>
30502 int
30503 main ()
30504 {
30505  u_intmax_t a; a = 1;
30506   ;
30507   return 0;
30508 }
30509 _ACEOF
30510 rm -f conftest.$ac_objext
30511 if { (ac_try="$ac_compile"
30512 case "(($ac_try" in
30513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514   *) ac_try_echo=$ac_try;;
30515 esac
30516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517   (eval "$ac_compile") 2>conftest.er1
30518   ac_status=$?
30519   grep -v '^ *+' conftest.er1 >conftest.err
30520   rm -f conftest.er1
30521   cat conftest.err >&5
30522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523   (exit $ac_status); } && {
30524          test -z "$ac_c_werror_flag" ||
30525          test ! -s conftest.err
30526        } && test -s conftest.$ac_objext; then
30527    ac_cv_have_u_intmax_t="yes"
30528 else
30529   echo "$as_me: failed program was:" >&5
30530 sed 's/^/| /' conftest.$ac_ext >&5
30531
30532          ac_cv_have_u_intmax_t="no"
30533
30534 fi
30535
30536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30537
30538
30539 fi
30540
30541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30542
30543 fi
30544 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
30545 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
30546 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
30547    cat >>confdefs.h <<\_ACEOF
30548 #define HAVE_U_INTMAX_T 1
30549 _ACEOF
30550
30551    have_u_intmax_t=1
30552 fi
30553
30554
30555 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
30556 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
30557 if test "${ac_cv_have_intxx_t+set}" = set; then
30558   echo $ECHO_N "(cached) $ECHO_C" >&6
30559 else
30560
30561    cat >conftest.$ac_ext <<_ACEOF
30562 /* confdefs.h.  */
30563 _ACEOF
30564 cat confdefs.h >>conftest.$ac_ext
30565 cat >>conftest.$ac_ext <<_ACEOF
30566 /* end confdefs.h.  */
30567  #include <sys/types.h>
30568 int
30569 main ()
30570 {
30571  int8_t a; int16_t b; int32_t c; a = b = c = 1;
30572   ;
30573   return 0;
30574 }
30575 _ACEOF
30576 rm -f conftest.$ac_objext
30577 if { (ac_try="$ac_compile"
30578 case "(($ac_try" in
30579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30580   *) ac_try_echo=$ac_try;;
30581 esac
30582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30583   (eval "$ac_compile") 2>conftest.er1
30584   ac_status=$?
30585   grep -v '^ *+' conftest.er1 >conftest.err
30586   rm -f conftest.er1
30587   cat conftest.err >&5
30588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589   (exit $ac_status); } && {
30590          test -z "$ac_c_werror_flag" ||
30591          test ! -s conftest.err
30592        } && test -s conftest.$ac_objext; then
30593    ac_cv_have_intxx_t="yes"
30594 else
30595   echo "$as_me: failed program was:" >&5
30596 sed 's/^/| /' conftest.$ac_ext >&5
30597
30598          ac_cv_have_intxx_t="no"
30599
30600 fi
30601
30602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30603
30604 fi
30605 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
30606 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
30607 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
30608    cat >>confdefs.h <<\_ACEOF
30609 #define HAVE_INTXX_T 1
30610 _ACEOF
30611
30612    have_intxx_t=1
30613 fi
30614
30615 { echo "$as_me:$LINENO: checking for int64_t type" >&5
30616 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
30617 if test "${ac_cv_have_int64_t+set}" = set; then
30618   echo $ECHO_N "(cached) $ECHO_C" >&6
30619 else
30620
30621    cat >conftest.$ac_ext <<_ACEOF
30622 /* confdefs.h.  */
30623 _ACEOF
30624 cat confdefs.h >>conftest.$ac_ext
30625 cat >>conftest.$ac_ext <<_ACEOF
30626 /* end confdefs.h.  */
30627  #include <sys/types.h>
30628 int
30629 main ()
30630 {
30631  int64_t a; a = 1;
30632   ;
30633   return 0;
30634 }
30635 _ACEOF
30636 rm -f conftest.$ac_objext
30637 if { (ac_try="$ac_compile"
30638 case "(($ac_try" in
30639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30640   *) ac_try_echo=$ac_try;;
30641 esac
30642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30643   (eval "$ac_compile") 2>conftest.er1
30644   ac_status=$?
30645   grep -v '^ *+' conftest.er1 >conftest.err
30646   rm -f conftest.er1
30647   cat conftest.err >&5
30648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649   (exit $ac_status); } && {
30650          test -z "$ac_c_werror_flag" ||
30651          test ! -s conftest.err
30652        } && test -s conftest.$ac_objext; then
30653    ac_cv_have_int64_t="yes"
30654 else
30655   echo "$as_me: failed program was:" >&5
30656 sed 's/^/| /' conftest.$ac_ext >&5
30657
30658          ac_cv_have_int64_t="no"
30659
30660 fi
30661
30662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30663
30664 fi
30665 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
30666 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
30667 if test "x$ac_cv_have_int64_t" = "xyes" ; then
30668    cat >>confdefs.h <<\_ACEOF
30669 #define HAVE_INT64_T 1
30670 _ACEOF
30671
30672    have_int64_t=1
30673 fi
30674
30675 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
30676 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
30677 if test "${ac_cv_have_u_intxx_t+set}" = set; then
30678   echo $ECHO_N "(cached) $ECHO_C" >&6
30679 else
30680
30681    cat >conftest.$ac_ext <<_ACEOF
30682 /* confdefs.h.  */
30683 _ACEOF
30684 cat confdefs.h >>conftest.$ac_ext
30685 cat >>conftest.$ac_ext <<_ACEOF
30686 /* end confdefs.h.  */
30687  #include <sys/types.h>
30688 int
30689 main ()
30690 {
30691  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
30692   ;
30693   return 0;
30694 }
30695 _ACEOF
30696 rm -f conftest.$ac_objext
30697 if { (ac_try="$ac_compile"
30698 case "(($ac_try" in
30699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30700   *) ac_try_echo=$ac_try;;
30701 esac
30702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30703   (eval "$ac_compile") 2>conftest.er1
30704   ac_status=$?
30705   grep -v '^ *+' conftest.er1 >conftest.err
30706   rm -f conftest.er1
30707   cat conftest.err >&5
30708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709   (exit $ac_status); } && {
30710          test -z "$ac_c_werror_flag" ||
30711          test ! -s conftest.err
30712        } && test -s conftest.$ac_objext; then
30713    ac_cv_have_u_intxx_t="yes"
30714 else
30715   echo "$as_me: failed program was:" >&5
30716 sed 's/^/| /' conftest.$ac_ext >&5
30717
30718          ac_cv_have_u_intxx_t="no"
30719
30720 fi
30721
30722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30723
30724 fi
30725 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
30726 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
30727 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
30728    cat >>confdefs.h <<\_ACEOF
30729 #define HAVE_U_INTXX_T 1
30730 _ACEOF
30731
30732    have_u_intxx_t=1
30733 fi
30734
30735 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
30736 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
30737 if test "${ac_cv_have_u_int64_t+set}" = set; then
30738   echo $ECHO_N "(cached) $ECHO_C" >&6
30739 else
30740
30741    cat >conftest.$ac_ext <<_ACEOF
30742 /* confdefs.h.  */
30743 _ACEOF
30744 cat confdefs.h >>conftest.$ac_ext
30745 cat >>conftest.$ac_ext <<_ACEOF
30746 /* end confdefs.h.  */
30747  #include <sys/types.h>
30748 int
30749 main ()
30750 {
30751  u_int64_t a; a = 1;
30752   ;
30753   return 0;
30754 }
30755 _ACEOF
30756 rm -f conftest.$ac_objext
30757 if { (ac_try="$ac_compile"
30758 case "(($ac_try" in
30759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30760   *) ac_try_echo=$ac_try;;
30761 esac
30762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30763   (eval "$ac_compile") 2>conftest.er1
30764   ac_status=$?
30765   grep -v '^ *+' conftest.er1 >conftest.err
30766   rm -f conftest.er1
30767   cat conftest.err >&5
30768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769   (exit $ac_status); } && {
30770          test -z "$ac_c_werror_flag" ||
30771          test ! -s conftest.err
30772        } && test -s conftest.$ac_objext; then
30773    ac_cv_have_u_int64_t="yes"
30774 else
30775   echo "$as_me: failed program was:" >&5
30776 sed 's/^/| /' conftest.$ac_ext >&5
30777
30778          ac_cv_have_u_int64_t="no"
30779
30780 fi
30781
30782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30783
30784 fi
30785 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
30786 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
30787 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
30788    cat >>confdefs.h <<\_ACEOF
30789 #define HAVE_U_INT64_T 1
30790 _ACEOF
30791
30792    have_u_int64_t=1
30793 fi
30794
30795 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
30796            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30797 then
30798    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
30799 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
30800    cat >conftest.$ac_ext <<_ACEOF
30801 /* confdefs.h.  */
30802 _ACEOF
30803 cat confdefs.h >>conftest.$ac_ext
30804 cat >>conftest.$ac_ext <<_ACEOF
30805 /* end confdefs.h.  */
30806  #include <sys/bitypes.h>
30807 int
30808 main ()
30809 {
30810  int8_t a; int16_t b; int32_t c;
30811         u_int8_t e; u_int16_t f; u_int32_t g;
30812         a = b = c = e = f = g = 1;
30813   ;
30814   return 0;
30815 }
30816 _ACEOF
30817 rm -f conftest.$ac_objext
30818 if { (ac_try="$ac_compile"
30819 case "(($ac_try" in
30820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821   *) ac_try_echo=$ac_try;;
30822 esac
30823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30824   (eval "$ac_compile") 2>conftest.er1
30825   ac_status=$?
30826   grep -v '^ *+' conftest.er1 >conftest.err
30827   rm -f conftest.er1
30828   cat conftest.err >&5
30829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830   (exit $ac_status); } && {
30831          test -z "$ac_c_werror_flag" ||
30832          test ! -s conftest.err
30833        } && test -s conftest.$ac_objext; then
30834    cat >>confdefs.h <<\_ACEOF
30835 #define HAVE_U_INTXX_T 1
30836 _ACEOF
30837
30838         cat >>confdefs.h <<\_ACEOF
30839 #define HAVE_INTXX_T 1
30840 _ACEOF
30841
30842         cat >>confdefs.h <<\_ACEOF
30843 #define HAVE_SYS_BITYPES_H 1
30844 _ACEOF
30845
30846         { echo "$as_me:$LINENO: result: yes" >&5
30847 echo "${ECHO_T}yes" >&6; }
30848 else
30849   echo "$as_me: failed program was:" >&5
30850 sed 's/^/| /' conftest.$ac_ext >&5
30851
30852          { echo "$as_me:$LINENO: result: no" >&5
30853 echo "${ECHO_T}no" >&6; }
30854
30855 fi
30856
30857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30858 fi
30859
30860 if test -z "$have_u_intxx_t" ; then
30861    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
30862 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
30863 if test "${ac_cv_have_uintxx_t+set}" = set; then
30864   echo $ECHO_N "(cached) $ECHO_C" >&6
30865 else
30866
30867       cat >conftest.$ac_ext <<_ACEOF
30868 /* confdefs.h.  */
30869 _ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h.  */
30873  #include <sys/types.h>
30874 int
30875 main ()
30876 {
30877  uint8_t a; uint16_t b;
30878            uint32_t c; a = b = c = 1;
30879   ;
30880   return 0;
30881 }
30882 _ACEOF
30883 rm -f conftest.$ac_objext
30884 if { (ac_try="$ac_compile"
30885 case "(($ac_try" in
30886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30887   *) ac_try_echo=$ac_try;;
30888 esac
30889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30890   (eval "$ac_compile") 2>conftest.er1
30891   ac_status=$?
30892   grep -v '^ *+' conftest.er1 >conftest.err
30893   rm -f conftest.er1
30894   cat conftest.err >&5
30895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896   (exit $ac_status); } && {
30897          test -z "$ac_c_werror_flag" ||
30898          test ! -s conftest.err
30899        } && test -s conftest.$ac_objext; then
30900    ac_cv_have_uintxx_t="yes"
30901 else
30902   echo "$as_me: failed program was:" >&5
30903 sed 's/^/| /' conftest.$ac_ext >&5
30904
30905          ac_cv_have_uintxx_t="no"
30906
30907 fi
30908
30909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30910
30911 fi
30912 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
30913 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
30914    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
30915       cat >>confdefs.h <<\_ACEOF
30916 #define HAVE_UINTXX_T 1
30917 _ACEOF
30918
30919    fi
30920 fi
30921
30922 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
30923           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30924 then
30925    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
30926 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
30927    cat >conftest.$ac_ext <<_ACEOF
30928 /* confdefs.h.  */
30929 _ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h.  */
30933  #include <sys/bitypes.h>
30934 int
30935 main ()
30936 {
30937  int64_t a; u_int64_t b;
30938        a = b = 1;
30939   ;
30940   return 0;
30941 }
30942 _ACEOF
30943 rm -f conftest.$ac_objext
30944 if { (ac_try="$ac_compile"
30945 case "(($ac_try" in
30946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30947   *) ac_try_echo=$ac_try;;
30948 esac
30949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30950   (eval "$ac_compile") 2>conftest.er1
30951   ac_status=$?
30952   grep -v '^ *+' conftest.er1 >conftest.err
30953   rm -f conftest.er1
30954   cat conftest.err >&5
30955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30956   (exit $ac_status); } && {
30957          test -z "$ac_c_werror_flag" ||
30958          test ! -s conftest.err
30959        } && test -s conftest.$ac_objext; then
30960    cat >>confdefs.h <<\_ACEOF
30961 #define HAVE_U_INT64_T 1
30962 _ACEOF
30963
30964        cat >>confdefs.h <<\_ACEOF
30965 #define HAVE_INT64_T 1
30966 _ACEOF
30967
30968        { echo "$as_me:$LINENO: result: yes" >&5
30969 echo "${ECHO_T}yes" >&6; }
30970 else
30971   echo "$as_me: failed program was:" >&5
30972 sed 's/^/| /' conftest.$ac_ext >&5
30973
30974          { echo "$as_me:$LINENO: result: no" >&5
30975 echo "${ECHO_T}no" >&6; }
30976
30977 fi
30978
30979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30980 fi
30981
30982 if (test -z "$have_uintxx_t" && \
30983           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30984 then
30985    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
30986 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
30987    cat >conftest.$ac_ext <<_ACEOF
30988 /* confdefs.h.  */
30989 _ACEOF
30990 cat confdefs.h >>conftest.$ac_ext
30991 cat >>conftest.$ac_ext <<_ACEOF
30992 /* end confdefs.h.  */
30993  #include <sys/bitypes.h>
30994 int
30995 main ()
30996 {
30997  uint8_t a; uint16_t b;
30998           uint32_t c; a = b = c = 1;
30999   ;
31000   return 0;
31001 }
31002 _ACEOF
31003 rm -f conftest.$ac_objext
31004 if { (ac_try="$ac_compile"
31005 case "(($ac_try" in
31006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007   *) ac_try_echo=$ac_try;;
31008 esac
31009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010   (eval "$ac_compile") 2>conftest.er1
31011   ac_status=$?
31012   grep -v '^ *+' conftest.er1 >conftest.err
31013   rm -f conftest.er1
31014   cat conftest.err >&5
31015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016   (exit $ac_status); } && {
31017          test -z "$ac_c_werror_flag" ||
31018          test ! -s conftest.err
31019        } && test -s conftest.$ac_objext; then
31020    cat >>confdefs.h <<\_ACEOF
31021 #define HAVE_UINTXX_T 1
31022 _ACEOF
31023
31024        { echo "$as_me:$LINENO: result: yes" >&5
31025 echo "${ECHO_T}yes" >&6; }
31026 else
31027   echo "$as_me: failed program was:" >&5
31028 sed 's/^/| /' conftest.$ac_ext >&5
31029
31030          { echo "$as_me:$LINENO: result: no" >&5
31031 echo "${ECHO_T}no" >&6; }
31032
31033 fi
31034
31035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31036
31037 fi
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055 for ac_func in \
31056         fork \
31057         getcwd \
31058         gethostname \
31059         getpid \
31060         gettimeofday \
31061         setpgid \
31062         setpgrp \
31063         setsid \
31064         signal \
31065         strerror \
31066         strncmp \
31067         strncpy \
31068         vfprintf \
31069
31070 do
31071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31075   echo $ECHO_N "(cached) $ECHO_C" >&6
31076 else
31077   cat >conftest.$ac_ext <<_ACEOF
31078 /* confdefs.h.  */
31079 _ACEOF
31080 cat confdefs.h >>conftest.$ac_ext
31081 cat >>conftest.$ac_ext <<_ACEOF
31082 /* end confdefs.h.  */
31083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31085 #define $ac_func innocuous_$ac_func
31086
31087 /* System header to define __stub macros and hopefully few prototypes,
31088     which can conflict with char $ac_func (); below.
31089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31090     <limits.h> exists even on freestanding compilers.  */
31091
31092 #ifdef __STDC__
31093 # include <limits.h>
31094 #else
31095 # include <assert.h>
31096 #endif
31097
31098 #undef $ac_func
31099
31100 /* Override any GCC internal prototype to avoid an error.
31101    Use char because int might match the return type of a GCC
31102    builtin and then its argument prototype would still apply.  */
31103 #ifdef __cplusplus
31104 extern "C"
31105 #endif
31106 char $ac_func ();
31107 /* The GNU C library defines this for functions which it implements
31108     to always fail with ENOSYS.  Some functions are actually named
31109     something starting with __ and the normal name is an alias.  */
31110 #if defined __stub_$ac_func || defined __stub___$ac_func
31111 choke me
31112 #endif
31113
31114 int
31115 main ()
31116 {
31117 return $ac_func ();
31118   ;
31119   return 0;
31120 }
31121 _ACEOF
31122 rm -f conftest.$ac_objext conftest$ac_exeext
31123 if { (ac_try="$ac_link"
31124 case "(($ac_try" in
31125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31126   *) ac_try_echo=$ac_try;;
31127 esac
31128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31129   (eval "$ac_link") 2>conftest.er1
31130   ac_status=$?
31131   grep -v '^ *+' conftest.er1 >conftest.err
31132   rm -f conftest.er1
31133   cat conftest.err >&5
31134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135   (exit $ac_status); } && {
31136          test -z "$ac_c_werror_flag" ||
31137          test ! -s conftest.err
31138        } && test -s conftest$ac_exeext &&
31139        $as_test_x conftest$ac_exeext; then
31140   eval "$as_ac_var=yes"
31141 else
31142   echo "$as_me: failed program was:" >&5
31143 sed 's/^/| /' conftest.$ac_ext >&5
31144
31145         eval "$as_ac_var=no"
31146 fi
31147
31148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31149       conftest$ac_exeext conftest.$ac_ext
31150 fi
31151 ac_res=`eval echo '${'$as_ac_var'}'`
31152                { echo "$as_me:$LINENO: result: $ac_res" >&5
31153 echo "${ECHO_T}$ac_res" >&6; }
31154 if test `eval echo '${'$as_ac_var'}'` = yes; then
31155   cat >>confdefs.h <<_ACEOF
31156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31157 _ACEOF
31158
31159 else
31160   echo 'configure: cannot find needed function.'; exit 1
31161
31162 fi
31163 done
31164
31165
31166
31167 for ac_func in fchdir
31168 do
31169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31173   echo $ECHO_N "(cached) $ECHO_C" >&6
31174 else
31175   cat >conftest.$ac_ext <<_ACEOF
31176 /* confdefs.h.  */
31177 _ACEOF
31178 cat confdefs.h >>conftest.$ac_ext
31179 cat >>conftest.$ac_ext <<_ACEOF
31180 /* end confdefs.h.  */
31181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31183 #define $ac_func innocuous_$ac_func
31184
31185 /* System header to define __stub macros and hopefully few prototypes,
31186     which can conflict with char $ac_func (); below.
31187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31188     <limits.h> exists even on freestanding compilers.  */
31189
31190 #ifdef __STDC__
31191 # include <limits.h>
31192 #else
31193 # include <assert.h>
31194 #endif
31195
31196 #undef $ac_func
31197
31198 /* Override any GCC internal prototype to avoid an error.
31199    Use char because int might match the return type of a GCC
31200    builtin and then its argument prototype would still apply.  */
31201 #ifdef __cplusplus
31202 extern "C"
31203 #endif
31204 char $ac_func ();
31205 /* The GNU C library defines this for functions which it implements
31206     to always fail with ENOSYS.  Some functions are actually named
31207     something starting with __ and the normal name is an alias.  */
31208 #if defined __stub_$ac_func || defined __stub___$ac_func
31209 choke me
31210 #endif
31211
31212 int
31213 main ()
31214 {
31215 return $ac_func ();
31216   ;
31217   return 0;
31218 }
31219 _ACEOF
31220 rm -f conftest.$ac_objext conftest$ac_exeext
31221 if { (ac_try="$ac_link"
31222 case "(($ac_try" in
31223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224   *) ac_try_echo=$ac_try;;
31225 esac
31226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227   (eval "$ac_link") 2>conftest.er1
31228   ac_status=$?
31229   grep -v '^ *+' conftest.er1 >conftest.err
31230   rm -f conftest.er1
31231   cat conftest.err >&5
31232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233   (exit $ac_status); } && {
31234          test -z "$ac_c_werror_flag" ||
31235          test ! -s conftest.err
31236        } && test -s conftest$ac_exeext &&
31237        $as_test_x conftest$ac_exeext; then
31238   eval "$as_ac_var=yes"
31239 else
31240   echo "$as_me: failed program was:" >&5
31241 sed 's/^/| /' conftest.$ac_ext >&5
31242
31243         eval "$as_ac_var=no"
31244 fi
31245
31246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31247       conftest$ac_exeext conftest.$ac_ext
31248 fi
31249 ac_res=`eval echo '${'$as_ac_var'}'`
31250                { echo "$as_me:$LINENO: result: $ac_res" >&5
31251 echo "${ECHO_T}$ac_res" >&6; }
31252 if test `eval echo '${'$as_ac_var'}'` = yes; then
31253   cat >>confdefs.h <<_ACEOF
31254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31255 _ACEOF
31256  cat >>confdefs.h <<\_ACEOF
31257 #define HAVE_FCHDIR 1
31258 _ACEOF
31259
31260 fi
31261 done
31262
31263
31264 for ac_func in strtoll
31265 do
31266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31270   echo $ECHO_N "(cached) $ECHO_C" >&6
31271 else
31272   cat >conftest.$ac_ext <<_ACEOF
31273 /* confdefs.h.  */
31274 _ACEOF
31275 cat confdefs.h >>conftest.$ac_ext
31276 cat >>conftest.$ac_ext <<_ACEOF
31277 /* end confdefs.h.  */
31278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31280 #define $ac_func innocuous_$ac_func
31281
31282 /* System header to define __stub macros and hopefully few prototypes,
31283     which can conflict with char $ac_func (); below.
31284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31285     <limits.h> exists even on freestanding compilers.  */
31286
31287 #ifdef __STDC__
31288 # include <limits.h>
31289 #else
31290 # include <assert.h>
31291 #endif
31292
31293 #undef $ac_func
31294
31295 /* Override any GCC internal prototype to avoid an error.
31296    Use char because int might match the return type of a GCC
31297    builtin and then its argument prototype would still apply.  */
31298 #ifdef __cplusplus
31299 extern "C"
31300 #endif
31301 char $ac_func ();
31302 /* The GNU C library defines this for functions which it implements
31303     to always fail with ENOSYS.  Some functions are actually named
31304     something starting with __ and the normal name is an alias.  */
31305 #if defined __stub_$ac_func || defined __stub___$ac_func
31306 choke me
31307 #endif
31308
31309 int
31310 main ()
31311 {
31312 return $ac_func ();
31313   ;
31314   return 0;
31315 }
31316 _ACEOF
31317 rm -f conftest.$ac_objext conftest$ac_exeext
31318 if { (ac_try="$ac_link"
31319 case "(($ac_try" in
31320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31321   *) ac_try_echo=$ac_try;;
31322 esac
31323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31324   (eval "$ac_link") 2>conftest.er1
31325   ac_status=$?
31326   grep -v '^ *+' conftest.er1 >conftest.err
31327   rm -f conftest.er1
31328   cat conftest.err >&5
31329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330   (exit $ac_status); } && {
31331          test -z "$ac_c_werror_flag" ||
31332          test ! -s conftest.err
31333        } && test -s conftest$ac_exeext &&
31334        $as_test_x conftest$ac_exeext; then
31335   eval "$as_ac_var=yes"
31336 else
31337   echo "$as_me: failed program was:" >&5
31338 sed 's/^/| /' conftest.$ac_ext >&5
31339
31340         eval "$as_ac_var=no"
31341 fi
31342
31343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31344       conftest$ac_exeext conftest.$ac_ext
31345 fi
31346 ac_res=`eval echo '${'$as_ac_var'}'`
31347                { echo "$as_me:$LINENO: result: $ac_res" >&5
31348 echo "${ECHO_T}$ac_res" >&6; }
31349 if test `eval echo '${'$as_ac_var'}'` = yes; then
31350   cat >>confdefs.h <<_ACEOF
31351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31352 _ACEOF
31353  cat >>confdefs.h <<\_ACEOF
31354 #define HAVE_STRTOLL 1
31355 _ACEOF
31356
31357 fi
31358 done
31359
31360
31361 for ac_func in posix_fadvise
31362 do
31363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31367   echo $ECHO_N "(cached) $ECHO_C" >&6
31368 else
31369   cat >conftest.$ac_ext <<_ACEOF
31370 /* confdefs.h.  */
31371 _ACEOF
31372 cat confdefs.h >>conftest.$ac_ext
31373 cat >>conftest.$ac_ext <<_ACEOF
31374 /* end confdefs.h.  */
31375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31377 #define $ac_func innocuous_$ac_func
31378
31379 /* System header to define __stub macros and hopefully few prototypes,
31380     which can conflict with char $ac_func (); below.
31381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31382     <limits.h> exists even on freestanding compilers.  */
31383
31384 #ifdef __STDC__
31385 # include <limits.h>
31386 #else
31387 # include <assert.h>
31388 #endif
31389
31390 #undef $ac_func
31391
31392 /* Override any GCC internal prototype to avoid an error.
31393    Use char because int might match the return type of a GCC
31394    builtin and then its argument prototype would still apply.  */
31395 #ifdef __cplusplus
31396 extern "C"
31397 #endif
31398 char $ac_func ();
31399 /* The GNU C library defines this for functions which it implements
31400     to always fail with ENOSYS.  Some functions are actually named
31401     something starting with __ and the normal name is an alias.  */
31402 #if defined __stub_$ac_func || defined __stub___$ac_func
31403 choke me
31404 #endif
31405
31406 int
31407 main ()
31408 {
31409 return $ac_func ();
31410   ;
31411   return 0;
31412 }
31413 _ACEOF
31414 rm -f conftest.$ac_objext conftest$ac_exeext
31415 if { (ac_try="$ac_link"
31416 case "(($ac_try" in
31417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418   *) ac_try_echo=$ac_try;;
31419 esac
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421   (eval "$ac_link") 2>conftest.er1
31422   ac_status=$?
31423   grep -v '^ *+' conftest.er1 >conftest.err
31424   rm -f conftest.er1
31425   cat conftest.err >&5
31426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427   (exit $ac_status); } && {
31428          test -z "$ac_c_werror_flag" ||
31429          test ! -s conftest.err
31430        } && test -s conftest$ac_exeext &&
31431        $as_test_x conftest$ac_exeext; then
31432   eval "$as_ac_var=yes"
31433 else
31434   echo "$as_me: failed program was:" >&5
31435 sed 's/^/| /' conftest.$ac_ext >&5
31436
31437         eval "$as_ac_var=no"
31438 fi
31439
31440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31441       conftest$ac_exeext conftest.$ac_ext
31442 fi
31443 ac_res=`eval echo '${'$as_ac_var'}'`
31444                { echo "$as_me:$LINENO: result: $ac_res" >&5
31445 echo "${ECHO_T}$ac_res" >&6; }
31446 if test `eval echo '${'$as_ac_var'}'` = yes; then
31447   cat >>confdefs.h <<_ACEOF
31448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31449 _ACEOF
31450
31451 fi
31452 done
31453
31454
31455 for ac_func in fdatasync
31456 do
31457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31461   echo $ECHO_N "(cached) $ECHO_C" >&6
31462 else
31463   cat >conftest.$ac_ext <<_ACEOF
31464 /* confdefs.h.  */
31465 _ACEOF
31466 cat confdefs.h >>conftest.$ac_ext
31467 cat >>conftest.$ac_ext <<_ACEOF
31468 /* end confdefs.h.  */
31469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31471 #define $ac_func innocuous_$ac_func
31472
31473 /* System header to define __stub macros and hopefully few prototypes,
31474     which can conflict with char $ac_func (); below.
31475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31476     <limits.h> exists even on freestanding compilers.  */
31477
31478 #ifdef __STDC__
31479 # include <limits.h>
31480 #else
31481 # include <assert.h>
31482 #endif
31483
31484 #undef $ac_func
31485
31486 /* Override any GCC internal prototype to avoid an error.
31487    Use char because int might match the return type of a GCC
31488    builtin and then its argument prototype would still apply.  */
31489 #ifdef __cplusplus
31490 extern "C"
31491 #endif
31492 char $ac_func ();
31493 /* The GNU C library defines this for functions which it implements
31494     to always fail with ENOSYS.  Some functions are actually named
31495     something starting with __ and the normal name is an alias.  */
31496 #if defined __stub_$ac_func || defined __stub___$ac_func
31497 choke me
31498 #endif
31499
31500 int
31501 main ()
31502 {
31503 return $ac_func ();
31504   ;
31505   return 0;
31506 }
31507 _ACEOF
31508 rm -f conftest.$ac_objext conftest$ac_exeext
31509 if { (ac_try="$ac_link"
31510 case "(($ac_try" in
31511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512   *) ac_try_echo=$ac_try;;
31513 esac
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515   (eval "$ac_link") 2>conftest.er1
31516   ac_status=$?
31517   grep -v '^ *+' conftest.er1 >conftest.err
31518   rm -f conftest.er1
31519   cat conftest.err >&5
31520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521   (exit $ac_status); } && {
31522          test -z "$ac_c_werror_flag" ||
31523          test ! -s conftest.err
31524        } && test -s conftest$ac_exeext &&
31525        $as_test_x conftest$ac_exeext; then
31526   eval "$as_ac_var=yes"
31527 else
31528   echo "$as_me: failed program was:" >&5
31529 sed 's/^/| /' conftest.$ac_ext >&5
31530
31531         eval "$as_ac_var=no"
31532 fi
31533
31534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31535       conftest$ac_exeext conftest.$ac_ext
31536 fi
31537 ac_res=`eval echo '${'$as_ac_var'}'`
31538                { echo "$as_me:$LINENO: result: $ac_res" >&5
31539 echo "${ECHO_T}$ac_res" >&6; }
31540 if test `eval echo '${'$as_ac_var'}'` = yes; then
31541   cat >>confdefs.h <<_ACEOF
31542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31543 _ACEOF
31544
31545 fi
31546 done
31547
31548
31549
31550 for ac_func in chflags
31551 do
31552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31556   echo $ECHO_N "(cached) $ECHO_C" >&6
31557 else
31558   cat >conftest.$ac_ext <<_ACEOF
31559 /* confdefs.h.  */
31560 _ACEOF
31561 cat confdefs.h >>conftest.$ac_ext
31562 cat >>conftest.$ac_ext <<_ACEOF
31563 /* end confdefs.h.  */
31564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31566 #define $ac_func innocuous_$ac_func
31567
31568 /* System header to define __stub macros and hopefully few prototypes,
31569     which can conflict with char $ac_func (); below.
31570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31571     <limits.h> exists even on freestanding compilers.  */
31572
31573 #ifdef __STDC__
31574 # include <limits.h>
31575 #else
31576 # include <assert.h>
31577 #endif
31578
31579 #undef $ac_func
31580
31581 /* Override any GCC internal prototype to avoid an error.
31582    Use char because int might match the return type of a GCC
31583    builtin and then its argument prototype would still apply.  */
31584 #ifdef __cplusplus
31585 extern "C"
31586 #endif
31587 char $ac_func ();
31588 /* The GNU C library defines this for functions which it implements
31589     to always fail with ENOSYS.  Some functions are actually named
31590     something starting with __ and the normal name is an alias.  */
31591 #if defined __stub_$ac_func || defined __stub___$ac_func
31592 choke me
31593 #endif
31594
31595 int
31596 main ()
31597 {
31598 return $ac_func ();
31599   ;
31600   return 0;
31601 }
31602 _ACEOF
31603 rm -f conftest.$ac_objext conftest$ac_exeext
31604 if { (ac_try="$ac_link"
31605 case "(($ac_try" in
31606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607   *) ac_try_echo=$ac_try;;
31608 esac
31609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31610   (eval "$ac_link") 2>conftest.er1
31611   ac_status=$?
31612   grep -v '^ *+' conftest.er1 >conftest.err
31613   rm -f conftest.er1
31614   cat conftest.err >&5
31615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616   (exit $ac_status); } && {
31617          test -z "$ac_c_werror_flag" ||
31618          test ! -s conftest.err
31619        } && test -s conftest$ac_exeext &&
31620        $as_test_x conftest$ac_exeext; then
31621   eval "$as_ac_var=yes"
31622 else
31623   echo "$as_me: failed program was:" >&5
31624 sed 's/^/| /' conftest.$ac_ext >&5
31625
31626         eval "$as_ac_var=no"
31627 fi
31628
31629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31630       conftest$ac_exeext conftest.$ac_ext
31631 fi
31632 ac_res=`eval echo '${'$as_ac_var'}'`
31633                { echo "$as_me:$LINENO: result: $ac_res" >&5
31634 echo "${ECHO_T}$ac_res" >&6; }
31635 if test `eval echo '${'$as_ac_var'}'` = yes; then
31636   cat >>confdefs.h <<_ACEOF
31637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31638 _ACEOF
31639
31640 fi
31641 done
31642
31643
31644
31645
31646
31647
31648 for ac_func in snprintf vsnprintf gethostid fseeko
31649 do
31650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31654   echo $ECHO_N "(cached) $ECHO_C" >&6
31655 else
31656   cat >conftest.$ac_ext <<_ACEOF
31657 /* confdefs.h.  */
31658 _ACEOF
31659 cat confdefs.h >>conftest.$ac_ext
31660 cat >>conftest.$ac_ext <<_ACEOF
31661 /* end confdefs.h.  */
31662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31664 #define $ac_func innocuous_$ac_func
31665
31666 /* System header to define __stub macros and hopefully few prototypes,
31667     which can conflict with char $ac_func (); below.
31668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31669     <limits.h> exists even on freestanding compilers.  */
31670
31671 #ifdef __STDC__
31672 # include <limits.h>
31673 #else
31674 # include <assert.h>
31675 #endif
31676
31677 #undef $ac_func
31678
31679 /* Override any GCC internal prototype to avoid an error.
31680    Use char because int might match the return type of a GCC
31681    builtin and then its argument prototype would still apply.  */
31682 #ifdef __cplusplus
31683 extern "C"
31684 #endif
31685 char $ac_func ();
31686 /* The GNU C library defines this for functions which it implements
31687     to always fail with ENOSYS.  Some functions are actually named
31688     something starting with __ and the normal name is an alias.  */
31689 #if defined __stub_$ac_func || defined __stub___$ac_func
31690 choke me
31691 #endif
31692
31693 int
31694 main ()
31695 {
31696 return $ac_func ();
31697   ;
31698   return 0;
31699 }
31700 _ACEOF
31701 rm -f conftest.$ac_objext conftest$ac_exeext
31702 if { (ac_try="$ac_link"
31703 case "(($ac_try" in
31704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31705   *) ac_try_echo=$ac_try;;
31706 esac
31707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31708   (eval "$ac_link") 2>conftest.er1
31709   ac_status=$?
31710   grep -v '^ *+' conftest.er1 >conftest.err
31711   rm -f conftest.er1
31712   cat conftest.err >&5
31713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714   (exit $ac_status); } && {
31715          test -z "$ac_c_werror_flag" ||
31716          test ! -s conftest.err
31717        } && test -s conftest$ac_exeext &&
31718        $as_test_x conftest$ac_exeext; then
31719   eval "$as_ac_var=yes"
31720 else
31721   echo "$as_me: failed program was:" >&5
31722 sed 's/^/| /' conftest.$ac_ext >&5
31723
31724         eval "$as_ac_var=no"
31725 fi
31726
31727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31728       conftest$ac_exeext conftest.$ac_ext
31729 fi
31730 ac_res=`eval echo '${'$as_ac_var'}'`
31731                { echo "$as_me:$LINENO: result: $ac_res" >&5
31732 echo "${ECHO_T}$ac_res" >&6; }
31733 if test `eval echo '${'$as_ac_var'}'` = yes; then
31734   cat >>confdefs.h <<_ACEOF
31735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31736 _ACEOF
31737
31738 fi
31739 done
31740
31741
31742 { echo "$as_me:$LINENO: checking for va_copy" >&5
31743 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
31744 if test "${ba_cv_va_copy+set}" = set; then
31745   echo $ECHO_N "(cached) $ECHO_C" >&6
31746 else
31747   cat >conftest.$ac_ext <<_ACEOF
31748 /* confdefs.h.  */
31749 _ACEOF
31750 cat confdefs.h >>conftest.$ac_ext
31751 cat >>conftest.$ac_ext <<_ACEOF
31752 /* end confdefs.h.  */
31753
31754 #include <stdarg.h>
31755 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
31756 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
31757
31758 int
31759 main ()
31760 {
31761 call_use_va_copy(1,2,3)
31762   ;
31763   return 0;
31764 }
31765 _ACEOF
31766 rm -f conftest.$ac_objext conftest$ac_exeext
31767 if { (ac_try="$ac_link"
31768 case "(($ac_try" in
31769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31770   *) ac_try_echo=$ac_try;;
31771 esac
31772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31773   (eval "$ac_link") 2>conftest.er1
31774   ac_status=$?
31775   grep -v '^ *+' conftest.er1 >conftest.err
31776   rm -f conftest.er1
31777   cat conftest.err >&5
31778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779   (exit $ac_status); } && {
31780          test -z "$ac_c_werror_flag" ||
31781          test ! -s conftest.err
31782        } && test -s conftest$ac_exeext &&
31783        $as_test_x conftest$ac_exeext; then
31784   ba_cv_va_copy=yes
31785 else
31786   echo "$as_me: failed program was:" >&5
31787 sed 's/^/| /' conftest.$ac_ext >&5
31788
31789         ba_cv_va_copy=no
31790 fi
31791
31792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31793       conftest$ac_exeext conftest.$ac_ext
31794 fi
31795 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
31796 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
31797 test $ba_cv_va_copy = yes &&
31798 cat >>confdefs.h <<\_ACEOF
31799 #define HAVE_VA_COPY 1
31800 _ACEOF
31801
31802
31803
31804
31805
31806
31807
31808 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
31809 do
31810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31813 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31824 #define $ac_func innocuous_$ac_func
31825
31826 /* System header to define __stub macros and hopefully few prototypes,
31827     which can conflict with char $ac_func (); below.
31828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31829     <limits.h> exists even on freestanding compilers.  */
31830
31831 #ifdef __STDC__
31832 # include <limits.h>
31833 #else
31834 # include <assert.h>
31835 #endif
31836
31837 #undef $ac_func
31838
31839 /* Override any GCC internal prototype to avoid an error.
31840    Use char because int might match the return type of a GCC
31841    builtin and then its argument prototype would still apply.  */
31842 #ifdef __cplusplus
31843 extern "C"
31844 #endif
31845 char $ac_func ();
31846 /* The GNU C library defines this for functions which it implements
31847     to always fail with ENOSYS.  Some functions are actually named
31848     something starting with __ and the normal name is an alias.  */
31849 #if defined __stub_$ac_func || defined __stub___$ac_func
31850 choke me
31851 #endif
31852
31853 int
31854 main ()
31855 {
31856 return $ac_func ();
31857   ;
31858   return 0;
31859 }
31860 _ACEOF
31861 rm -f conftest.$ac_objext conftest$ac_exeext
31862 if { (ac_try="$ac_link"
31863 case "(($ac_try" in
31864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31865   *) ac_try_echo=$ac_try;;
31866 esac
31867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31868   (eval "$ac_link") 2>conftest.er1
31869   ac_status=$?
31870   grep -v '^ *+' conftest.er1 >conftest.err
31871   rm -f conftest.er1
31872   cat conftest.err >&5
31873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874   (exit $ac_status); } && {
31875          test -z "$ac_c_werror_flag" ||
31876          test ! -s conftest.err
31877        } && test -s conftest$ac_exeext &&
31878        $as_test_x conftest$ac_exeext; then
31879   eval "$as_ac_var=yes"
31880 else
31881   echo "$as_me: failed program was:" >&5
31882 sed 's/^/| /' conftest.$ac_ext >&5
31883
31884         eval "$as_ac_var=no"
31885 fi
31886
31887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31888       conftest$ac_exeext conftest.$ac_ext
31889 fi
31890 ac_res=`eval echo '${'$as_ac_var'}'`
31891                { echo "$as_me:$LINENO: result: $ac_res" >&5
31892 echo "${ECHO_T}$ac_res" >&6; }
31893 if test `eval echo '${'$as_ac_var'}'` = yes; then
31894   cat >>confdefs.h <<_ACEOF
31895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31896 _ACEOF
31897
31898 fi
31899 done
31900
31901
31902 # If resolver functions are not in libc check for -lnsl or -lresolv.
31903 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
31904 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
31905 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
31906   echo $ECHO_N "(cached) $ECHO_C" >&6
31907 else
31908   cat >conftest.$ac_ext <<_ACEOF
31909 /* confdefs.h.  */
31910 _ACEOF
31911 cat confdefs.h >>conftest.$ac_ext
31912 cat >>conftest.$ac_ext <<_ACEOF
31913 /* end confdefs.h.  */
31914 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
31915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31916 #define gethostbyname_r innocuous_gethostbyname_r
31917
31918 /* System header to define __stub macros and hopefully few prototypes,
31919     which can conflict with char gethostbyname_r (); below.
31920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31921     <limits.h> exists even on freestanding compilers.  */
31922
31923 #ifdef __STDC__
31924 # include <limits.h>
31925 #else
31926 # include <assert.h>
31927 #endif
31928
31929 #undef gethostbyname_r
31930
31931 /* Override any GCC internal prototype to avoid an error.
31932    Use char because int might match the return type of a GCC
31933    builtin and then its argument prototype would still apply.  */
31934 #ifdef __cplusplus
31935 extern "C"
31936 #endif
31937 char gethostbyname_r ();
31938 /* The GNU C library defines this for functions which it implements
31939     to always fail with ENOSYS.  Some functions are actually named
31940     something starting with __ and the normal name is an alias.  */
31941 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
31942 choke me
31943 #endif
31944
31945 int
31946 main ()
31947 {
31948 return gethostbyname_r ();
31949   ;
31950   return 0;
31951 }
31952 _ACEOF
31953 rm -f conftest.$ac_objext conftest$ac_exeext
31954 if { (ac_try="$ac_link"
31955 case "(($ac_try" in
31956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31957   *) ac_try_echo=$ac_try;;
31958 esac
31959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31960   (eval "$ac_link") 2>conftest.er1
31961   ac_status=$?
31962   grep -v '^ *+' conftest.er1 >conftest.err
31963   rm -f conftest.er1
31964   cat conftest.err >&5
31965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966   (exit $ac_status); } && {
31967          test -z "$ac_c_werror_flag" ||
31968          test ! -s conftest.err
31969        } && test -s conftest$ac_exeext &&
31970        $as_test_x conftest$ac_exeext; then
31971   ac_cv_func_gethostbyname_r=yes
31972 else
31973   echo "$as_me: failed program was:" >&5
31974 sed 's/^/| /' conftest.$ac_ext >&5
31975
31976         ac_cv_func_gethostbyname_r=no
31977 fi
31978
31979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31980       conftest$ac_exeext conftest.$ac_ext
31981 fi
31982 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
31983 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
31984 if test $ac_cv_func_gethostbyname_r = yes; then
31985   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
31986 echo "${ECHO_T}using libc's resolver" >&6; }
31987 else
31988
31989 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
31990 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
31991 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
31992   echo $ECHO_N "(cached) $ECHO_C" >&6
31993 else
31994   ac_check_lib_save_LIBS=$LIBS
31995 LIBS="-lnsl  $LIBS"
31996 cat >conftest.$ac_ext <<_ACEOF
31997 /* confdefs.h.  */
31998 _ACEOF
31999 cat confdefs.h >>conftest.$ac_ext
32000 cat >>conftest.$ac_ext <<_ACEOF
32001 /* end confdefs.h.  */
32002
32003 /* Override any GCC internal prototype to avoid an error.
32004    Use char because int might match the return type of a GCC
32005    builtin and then its argument prototype would still apply.  */
32006 #ifdef __cplusplus
32007 extern "C"
32008 #endif
32009 char gethostbyname_r ();
32010 int
32011 main ()
32012 {
32013 return gethostbyname_r ();
32014   ;
32015   return 0;
32016 }
32017 _ACEOF
32018 rm -f conftest.$ac_objext conftest$ac_exeext
32019 if { (ac_try="$ac_link"
32020 case "(($ac_try" in
32021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022   *) ac_try_echo=$ac_try;;
32023 esac
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025   (eval "$ac_link") 2>conftest.er1
32026   ac_status=$?
32027   grep -v '^ *+' conftest.er1 >conftest.err
32028   rm -f conftest.er1
32029   cat conftest.err >&5
32030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031   (exit $ac_status); } && {
32032          test -z "$ac_c_werror_flag" ||
32033          test ! -s conftest.err
32034        } && test -s conftest$ac_exeext &&
32035        $as_test_x conftest$ac_exeext; then
32036   ac_cv_lib_nsl_gethostbyname_r=yes
32037 else
32038   echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32040
32041         ac_cv_lib_nsl_gethostbyname_r=no
32042 fi
32043
32044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32045       conftest$ac_exeext conftest.$ac_ext
32046 LIBS=$ac_check_lib_save_LIBS
32047 fi
32048 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
32049 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
32050 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
32051   cat >>confdefs.h <<_ACEOF
32052 #define HAVE_LIBNSL 1
32053 _ACEOF
32054
32055   LIBS="-lnsl $LIBS"
32056
32057 fi
32058
32059
32060 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
32061 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
32062 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
32063   echo $ECHO_N "(cached) $ECHO_C" >&6
32064 else
32065   ac_check_lib_save_LIBS=$LIBS
32066 LIBS="-lresolv  $LIBS"
32067 cat >conftest.$ac_ext <<_ACEOF
32068 /* confdefs.h.  */
32069 _ACEOF
32070 cat confdefs.h >>conftest.$ac_ext
32071 cat >>conftest.$ac_ext <<_ACEOF
32072 /* end confdefs.h.  */
32073
32074 /* Override any GCC internal prototype to avoid an error.
32075    Use char because int might match the return type of a GCC
32076    builtin and then its argument prototype would still apply.  */
32077 #ifdef __cplusplus
32078 extern "C"
32079 #endif
32080 char gethostbyname_r ();
32081 int
32082 main ()
32083 {
32084 return gethostbyname_r ();
32085   ;
32086   return 0;
32087 }
32088 _ACEOF
32089 rm -f conftest.$ac_objext conftest$ac_exeext
32090 if { (ac_try="$ac_link"
32091 case "(($ac_try" in
32092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093   *) ac_try_echo=$ac_try;;
32094 esac
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096   (eval "$ac_link") 2>conftest.er1
32097   ac_status=$?
32098   grep -v '^ *+' conftest.er1 >conftest.err
32099   rm -f conftest.er1
32100   cat conftest.err >&5
32101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102   (exit $ac_status); } && {
32103          test -z "$ac_c_werror_flag" ||
32104          test ! -s conftest.err
32105        } && test -s conftest$ac_exeext &&
32106        $as_test_x conftest$ac_exeext; then
32107   ac_cv_lib_resolv_gethostbyname_r=yes
32108 else
32109   echo "$as_me: failed program was:" >&5
32110 sed 's/^/| /' conftest.$ac_ext >&5
32111
32112         ac_cv_lib_resolv_gethostbyname_r=no
32113 fi
32114
32115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32116       conftest$ac_exeext conftest.$ac_ext
32117 LIBS=$ac_check_lib_save_LIBS
32118 fi
32119 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
32120 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
32121 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
32122   cat >>confdefs.h <<_ACEOF
32123 #define HAVE_LIBRESOLV 1
32124 _ACEOF
32125
32126   LIBS="-lresolv $LIBS"
32127
32128 fi
32129
32130 fi
32131
32132
32133
32134
32135
32136 for ac_func in inet_pton
32137 do
32138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32142   echo $ECHO_N "(cached) $ECHO_C" >&6
32143 else
32144   cat >conftest.$ac_ext <<_ACEOF
32145 /* confdefs.h.  */
32146 _ACEOF
32147 cat confdefs.h >>conftest.$ac_ext
32148 cat >>conftest.$ac_ext <<_ACEOF
32149 /* end confdefs.h.  */
32150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32152 #define $ac_func innocuous_$ac_func
32153
32154 /* System header to define __stub macros and hopefully few prototypes,
32155     which can conflict with char $ac_func (); below.
32156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32157     <limits.h> exists even on freestanding compilers.  */
32158
32159 #ifdef __STDC__
32160 # include <limits.h>
32161 #else
32162 # include <assert.h>
32163 #endif
32164
32165 #undef $ac_func
32166
32167 /* Override any GCC internal prototype to avoid an error.
32168    Use char because int might match the return type of a GCC
32169    builtin and then its argument prototype would still apply.  */
32170 #ifdef __cplusplus
32171 extern "C"
32172 #endif
32173 char $ac_func ();
32174 /* The GNU C library defines this for functions which it implements
32175     to always fail with ENOSYS.  Some functions are actually named
32176     something starting with __ and the normal name is an alias.  */
32177 #if defined __stub_$ac_func || defined __stub___$ac_func
32178 choke me
32179 #endif
32180
32181 int
32182 main ()
32183 {
32184 return $ac_func ();
32185   ;
32186   return 0;
32187 }
32188 _ACEOF
32189 rm -f conftest.$ac_objext conftest$ac_exeext
32190 if { (ac_try="$ac_link"
32191 case "(($ac_try" in
32192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32193   *) ac_try_echo=$ac_try;;
32194 esac
32195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32196   (eval "$ac_link") 2>conftest.er1
32197   ac_status=$?
32198   grep -v '^ *+' conftest.er1 >conftest.err
32199   rm -f conftest.er1
32200   cat conftest.err >&5
32201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202   (exit $ac_status); } && {
32203          test -z "$ac_c_werror_flag" ||
32204          test ! -s conftest.err
32205        } && test -s conftest$ac_exeext &&
32206        $as_test_x conftest$ac_exeext; then
32207   eval "$as_ac_var=yes"
32208 else
32209   echo "$as_me: failed program was:" >&5
32210 sed 's/^/| /' conftest.$ac_ext >&5
32211
32212         eval "$as_ac_var=no"
32213 fi
32214
32215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32216       conftest$ac_exeext conftest.$ac_ext
32217 fi
32218 ac_res=`eval echo '${'$as_ac_var'}'`
32219                { echo "$as_me:$LINENO: result: $ac_res" >&5
32220 echo "${ECHO_T}$ac_res" >&6; }
32221 if test `eval echo '${'$as_ac_var'}'` = yes; then
32222   cat >>confdefs.h <<_ACEOF
32223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32224 _ACEOF
32225  cat >>confdefs.h <<\_ACEOF
32226 #define HAVE_INET_PTON 1
32227 _ACEOF
32228
32229 fi
32230 done
32231
32232
32233 for ac_func in inet_ntop
32234 do
32235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32239   echo $ECHO_N "(cached) $ECHO_C" >&6
32240 else
32241   cat >conftest.$ac_ext <<_ACEOF
32242 /* confdefs.h.  */
32243 _ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h.  */
32247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32249 #define $ac_func innocuous_$ac_func
32250
32251 /* System header to define __stub macros and hopefully few prototypes,
32252     which can conflict with char $ac_func (); below.
32253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32254     <limits.h> exists even on freestanding compilers.  */
32255
32256 #ifdef __STDC__
32257 # include <limits.h>
32258 #else
32259 # include <assert.h>
32260 #endif
32261
32262 #undef $ac_func
32263
32264 /* Override any GCC internal prototype to avoid an error.
32265    Use char because int might match the return type of a GCC
32266    builtin and then its argument prototype would still apply.  */
32267 #ifdef __cplusplus
32268 extern "C"
32269 #endif
32270 char $ac_func ();
32271 /* The GNU C library defines this for functions which it implements
32272     to always fail with ENOSYS.  Some functions are actually named
32273     something starting with __ and the normal name is an alias.  */
32274 #if defined __stub_$ac_func || defined __stub___$ac_func
32275 choke me
32276 #endif
32277
32278 int
32279 main ()
32280 {
32281 return $ac_func ();
32282   ;
32283   return 0;
32284 }
32285 _ACEOF
32286 rm -f conftest.$ac_objext conftest$ac_exeext
32287 if { (ac_try="$ac_link"
32288 case "(($ac_try" in
32289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32290   *) ac_try_echo=$ac_try;;
32291 esac
32292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32293   (eval "$ac_link") 2>conftest.er1
32294   ac_status=$?
32295   grep -v '^ *+' conftest.er1 >conftest.err
32296   rm -f conftest.er1
32297   cat conftest.err >&5
32298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299   (exit $ac_status); } && {
32300          test -z "$ac_c_werror_flag" ||
32301          test ! -s conftest.err
32302        } && test -s conftest$ac_exeext &&
32303        $as_test_x conftest$ac_exeext; then
32304   eval "$as_ac_var=yes"
32305 else
32306   echo "$as_me: failed program was:" >&5
32307 sed 's/^/| /' conftest.$ac_ext >&5
32308
32309         eval "$as_ac_var=no"
32310 fi
32311
32312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32313       conftest$ac_exeext conftest.$ac_ext
32314 fi
32315 ac_res=`eval echo '${'$as_ac_var'}'`
32316                { echo "$as_me:$LINENO: result: $ac_res" >&5
32317 echo "${ECHO_T}$ac_res" >&6; }
32318 if test `eval echo '${'$as_ac_var'}'` = yes; then
32319   cat >>confdefs.h <<_ACEOF
32320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32321 _ACEOF
32322  cat >>confdefs.h <<\_ACEOF
32323 #define HAVE_INET_NTOP 1
32324 _ACEOF
32325
32326 fi
32327 done
32328
32329
32330 for ac_func in gethostbyname2
32331 do
32332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32336   echo $ECHO_N "(cached) $ECHO_C" >&6
32337 else
32338   cat >conftest.$ac_ext <<_ACEOF
32339 /* confdefs.h.  */
32340 _ACEOF
32341 cat confdefs.h >>conftest.$ac_ext
32342 cat >>conftest.$ac_ext <<_ACEOF
32343 /* end confdefs.h.  */
32344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32346 #define $ac_func innocuous_$ac_func
32347
32348 /* System header to define __stub macros and hopefully few prototypes,
32349     which can conflict with char $ac_func (); below.
32350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32351     <limits.h> exists even on freestanding compilers.  */
32352
32353 #ifdef __STDC__
32354 # include <limits.h>
32355 #else
32356 # include <assert.h>
32357 #endif
32358
32359 #undef $ac_func
32360
32361 /* Override any GCC internal prototype to avoid an error.
32362    Use char because int might match the return type of a GCC
32363    builtin and then its argument prototype would still apply.  */
32364 #ifdef __cplusplus
32365 extern "C"
32366 #endif
32367 char $ac_func ();
32368 /* The GNU C library defines this for functions which it implements
32369     to always fail with ENOSYS.  Some functions are actually named
32370     something starting with __ and the normal name is an alias.  */
32371 #if defined __stub_$ac_func || defined __stub___$ac_func
32372 choke me
32373 #endif
32374
32375 int
32376 main ()
32377 {
32378 return $ac_func ();
32379   ;
32380   return 0;
32381 }
32382 _ACEOF
32383 rm -f conftest.$ac_objext conftest$ac_exeext
32384 if { (ac_try="$ac_link"
32385 case "(($ac_try" in
32386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32387   *) ac_try_echo=$ac_try;;
32388 esac
32389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32390   (eval "$ac_link") 2>conftest.er1
32391   ac_status=$?
32392   grep -v '^ *+' conftest.er1 >conftest.err
32393   rm -f conftest.er1
32394   cat conftest.err >&5
32395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396   (exit $ac_status); } && {
32397          test -z "$ac_c_werror_flag" ||
32398          test ! -s conftest.err
32399        } && test -s conftest$ac_exeext &&
32400        $as_test_x conftest$ac_exeext; then
32401   eval "$as_ac_var=yes"
32402 else
32403   echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32405
32406         eval "$as_ac_var=no"
32407 fi
32408
32409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32410       conftest$ac_exeext conftest.$ac_ext
32411 fi
32412 ac_res=`eval echo '${'$as_ac_var'}'`
32413                { echo "$as_me:$LINENO: result: $ac_res" >&5
32414 echo "${ECHO_T}$ac_res" >&6; }
32415 if test `eval echo '${'$as_ac_var'}'` = yes; then
32416   cat >>confdefs.h <<_ACEOF
32417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32418 _ACEOF
32419  cat >>confdefs.h <<\_ACEOF
32420 #define HAVE_GETHOSTBYNAME2 1
32421 _ACEOF
32422
32423 fi
32424 done
32425
32426
32427 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
32428 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
32429 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
32430   echo $ECHO_N "(cached) $ECHO_C" >&6
32431 else
32432   cat >conftest.$ac_ext <<_ACEOF
32433 /* confdefs.h.  */
32434 _ACEOF
32435 cat confdefs.h >>conftest.$ac_ext
32436 cat >>conftest.$ac_ext <<_ACEOF
32437 /* end confdefs.h.  */
32438 #include <sys/socket.h>
32439 int
32440 main ()
32441 {
32442 struct sockaddr s; s.sa_len;
32443   ;
32444   return 0;
32445 }
32446 _ACEOF
32447 rm -f conftest.$ac_objext
32448 if { (ac_try="$ac_compile"
32449 case "(($ac_try" in
32450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32451   *) ac_try_echo=$ac_try;;
32452 esac
32453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32454   (eval "$ac_compile") 2>conftest.er1
32455   ac_status=$?
32456   grep -v '^ *+' conftest.er1 >conftest.err
32457   rm -f conftest.er1
32458   cat conftest.err >&5
32459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460   (exit $ac_status); } && {
32461          test -z "$ac_c_werror_flag" ||
32462          test ! -s conftest.err
32463        } && test -s conftest.$ac_objext; then
32464   ac_cv_struct_sockaddr_sa_len=yes
32465 else
32466   echo "$as_me: failed program was:" >&5
32467 sed 's/^/| /' conftest.$ac_ext >&5
32468
32469         ac_cv_struct_sockaddr_sa_len=no
32470 fi
32471
32472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32473 fi
32474 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
32475 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
32476
32477  if test $ac_cv_struct_sockaddr_sa_len = yes; then
32478
32479 cat >>confdefs.h <<\_ACEOF
32480 #define HAVE_SA_LEN 1
32481 _ACEOF
32482
32483  fi
32484
32485
32486
32487
32488
32489 for ac_func in strftime
32490 do
32491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32495   echo $ECHO_N "(cached) $ECHO_C" >&6
32496 else
32497   cat >conftest.$ac_ext <<_ACEOF
32498 /* confdefs.h.  */
32499 _ACEOF
32500 cat confdefs.h >>conftest.$ac_ext
32501 cat >>conftest.$ac_ext <<_ACEOF
32502 /* end confdefs.h.  */
32503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32505 #define $ac_func innocuous_$ac_func
32506
32507 /* System header to define __stub macros and hopefully few prototypes,
32508     which can conflict with char $ac_func (); below.
32509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32510     <limits.h> exists even on freestanding compilers.  */
32511
32512 #ifdef __STDC__
32513 # include <limits.h>
32514 #else
32515 # include <assert.h>
32516 #endif
32517
32518 #undef $ac_func
32519
32520 /* Override any GCC internal prototype to avoid an error.
32521    Use char because int might match the return type of a GCC
32522    builtin and then its argument prototype would still apply.  */
32523 #ifdef __cplusplus
32524 extern "C"
32525 #endif
32526 char $ac_func ();
32527 /* The GNU C library defines this for functions which it implements
32528     to always fail with ENOSYS.  Some functions are actually named
32529     something starting with __ and the normal name is an alias.  */
32530 #if defined __stub_$ac_func || defined __stub___$ac_func
32531 choke me
32532 #endif
32533
32534 int
32535 main ()
32536 {
32537 return $ac_func ();
32538   ;
32539   return 0;
32540 }
32541 _ACEOF
32542 rm -f conftest.$ac_objext conftest$ac_exeext
32543 if { (ac_try="$ac_link"
32544 case "(($ac_try" in
32545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32546   *) ac_try_echo=$ac_try;;
32547 esac
32548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32549   (eval "$ac_link") 2>conftest.er1
32550   ac_status=$?
32551   grep -v '^ *+' conftest.er1 >conftest.err
32552   rm -f conftest.er1
32553   cat conftest.err >&5
32554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555   (exit $ac_status); } && {
32556          test -z "$ac_c_werror_flag" ||
32557          test ! -s conftest.err
32558        } && test -s conftest$ac_exeext &&
32559        $as_test_x conftest$ac_exeext; then
32560   eval "$as_ac_var=yes"
32561 else
32562   echo "$as_me: failed program was:" >&5
32563 sed 's/^/| /' conftest.$ac_ext >&5
32564
32565         eval "$as_ac_var=no"
32566 fi
32567
32568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32569       conftest$ac_exeext conftest.$ac_ext
32570 fi
32571 ac_res=`eval echo '${'$as_ac_var'}'`
32572                { echo "$as_me:$LINENO: result: $ac_res" >&5
32573 echo "${ECHO_T}$ac_res" >&6; }
32574 if test `eval echo '${'$as_ac_var'}'` = yes; then
32575   cat >>confdefs.h <<_ACEOF
32576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32577 _ACEOF
32578
32579 else
32580   # strftime is in -lintl on SCO UNIX.
32581 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
32582 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
32583 if test "${ac_cv_lib_intl_strftime+set}" = set; then
32584   echo $ECHO_N "(cached) $ECHO_C" >&6
32585 else
32586   ac_check_lib_save_LIBS=$LIBS
32587 LIBS="-lintl  $LIBS"
32588 cat >conftest.$ac_ext <<_ACEOF
32589 /* confdefs.h.  */
32590 _ACEOF
32591 cat confdefs.h >>conftest.$ac_ext
32592 cat >>conftest.$ac_ext <<_ACEOF
32593 /* end confdefs.h.  */
32594
32595 /* Override any GCC internal prototype to avoid an error.
32596    Use char because int might match the return type of a GCC
32597    builtin and then its argument prototype would still apply.  */
32598 #ifdef __cplusplus
32599 extern "C"
32600 #endif
32601 char strftime ();
32602 int
32603 main ()
32604 {
32605 return strftime ();
32606   ;
32607   return 0;
32608 }
32609 _ACEOF
32610 rm -f conftest.$ac_objext conftest$ac_exeext
32611 if { (ac_try="$ac_link"
32612 case "(($ac_try" in
32613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32614   *) ac_try_echo=$ac_try;;
32615 esac
32616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32617   (eval "$ac_link") 2>conftest.er1
32618   ac_status=$?
32619   grep -v '^ *+' conftest.er1 >conftest.err
32620   rm -f conftest.er1
32621   cat conftest.err >&5
32622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623   (exit $ac_status); } && {
32624          test -z "$ac_c_werror_flag" ||
32625          test ! -s conftest.err
32626        } && test -s conftest$ac_exeext &&
32627        $as_test_x conftest$ac_exeext; then
32628   ac_cv_lib_intl_strftime=yes
32629 else
32630   echo "$as_me: failed program was:" >&5
32631 sed 's/^/| /' conftest.$ac_ext >&5
32632
32633         ac_cv_lib_intl_strftime=no
32634 fi
32635
32636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32637       conftest$ac_exeext conftest.$ac_ext
32638 LIBS=$ac_check_lib_save_LIBS
32639 fi
32640 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
32641 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
32642 if test $ac_cv_lib_intl_strftime = yes; then
32643   cat >>confdefs.h <<\_ACEOF
32644 #define HAVE_STRFTIME 1
32645 _ACEOF
32646
32647 LIBS="-lintl $LIBS"
32648 fi
32649
32650 fi
32651 done
32652
32653
32654 for ac_func in vprintf
32655 do
32656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32660   echo $ECHO_N "(cached) $ECHO_C" >&6
32661 else
32662   cat >conftest.$ac_ext <<_ACEOF
32663 /* confdefs.h.  */
32664 _ACEOF
32665 cat confdefs.h >>conftest.$ac_ext
32666 cat >>conftest.$ac_ext <<_ACEOF
32667 /* end confdefs.h.  */
32668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32670 #define $ac_func innocuous_$ac_func
32671
32672 /* System header to define __stub macros and hopefully few prototypes,
32673     which can conflict with char $ac_func (); below.
32674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32675     <limits.h> exists even on freestanding compilers.  */
32676
32677 #ifdef __STDC__
32678 # include <limits.h>
32679 #else
32680 # include <assert.h>
32681 #endif
32682
32683 #undef $ac_func
32684
32685 /* Override any GCC internal prototype to avoid an error.
32686    Use char because int might match the return type of a GCC
32687    builtin and then its argument prototype would still apply.  */
32688 #ifdef __cplusplus
32689 extern "C"
32690 #endif
32691 char $ac_func ();
32692 /* The GNU C library defines this for functions which it implements
32693     to always fail with ENOSYS.  Some functions are actually named
32694     something starting with __ and the normal name is an alias.  */
32695 #if defined __stub_$ac_func || defined __stub___$ac_func
32696 choke me
32697 #endif
32698
32699 int
32700 main ()
32701 {
32702 return $ac_func ();
32703   ;
32704   return 0;
32705 }
32706 _ACEOF
32707 rm -f conftest.$ac_objext conftest$ac_exeext
32708 if { (ac_try="$ac_link"
32709 case "(($ac_try" in
32710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32711   *) ac_try_echo=$ac_try;;
32712 esac
32713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32714   (eval "$ac_link") 2>conftest.er1
32715   ac_status=$?
32716   grep -v '^ *+' conftest.er1 >conftest.err
32717   rm -f conftest.er1
32718   cat conftest.err >&5
32719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720   (exit $ac_status); } && {
32721          test -z "$ac_c_werror_flag" ||
32722          test ! -s conftest.err
32723        } && test -s conftest$ac_exeext &&
32724        $as_test_x conftest$ac_exeext; then
32725   eval "$as_ac_var=yes"
32726 else
32727   echo "$as_me: failed program was:" >&5
32728 sed 's/^/| /' conftest.$ac_ext >&5
32729
32730         eval "$as_ac_var=no"
32731 fi
32732
32733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32734       conftest$ac_exeext conftest.$ac_ext
32735 fi
32736 ac_res=`eval echo '${'$as_ac_var'}'`
32737                { echo "$as_me:$LINENO: result: $ac_res" >&5
32738 echo "${ECHO_T}$ac_res" >&6; }
32739 if test `eval echo '${'$as_ac_var'}'` = yes; then
32740   cat >>confdefs.h <<_ACEOF
32741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32742 _ACEOF
32743
32744 { echo "$as_me:$LINENO: checking for _doprnt" >&5
32745 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
32746 if test "${ac_cv_func__doprnt+set}" = set; then
32747   echo $ECHO_N "(cached) $ECHO_C" >&6
32748 else
32749   cat >conftest.$ac_ext <<_ACEOF
32750 /* confdefs.h.  */
32751 _ACEOF
32752 cat confdefs.h >>conftest.$ac_ext
32753 cat >>conftest.$ac_ext <<_ACEOF
32754 /* end confdefs.h.  */
32755 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
32756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32757 #define _doprnt innocuous__doprnt
32758
32759 /* System header to define __stub macros and hopefully few prototypes,
32760     which can conflict with char _doprnt (); below.
32761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32762     <limits.h> exists even on freestanding compilers.  */
32763
32764 #ifdef __STDC__
32765 # include <limits.h>
32766 #else
32767 # include <assert.h>
32768 #endif
32769
32770 #undef _doprnt
32771
32772 /* Override any GCC internal prototype to avoid an error.
32773    Use char because int might match the return type of a GCC
32774    builtin and then its argument prototype would still apply.  */
32775 #ifdef __cplusplus
32776 extern "C"
32777 #endif
32778 char _doprnt ();
32779 /* The GNU C library defines this for functions which it implements
32780     to always fail with ENOSYS.  Some functions are actually named
32781     something starting with __ and the normal name is an alias.  */
32782 #if defined __stub__doprnt || defined __stub____doprnt
32783 choke me
32784 #endif
32785
32786 int
32787 main ()
32788 {
32789 return _doprnt ();
32790   ;
32791   return 0;
32792 }
32793 _ACEOF
32794 rm -f conftest.$ac_objext conftest$ac_exeext
32795 if { (ac_try="$ac_link"
32796 case "(($ac_try" in
32797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32798   *) ac_try_echo=$ac_try;;
32799 esac
32800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32801   (eval "$ac_link") 2>conftest.er1
32802   ac_status=$?
32803   grep -v '^ *+' conftest.er1 >conftest.err
32804   rm -f conftest.er1
32805   cat conftest.err >&5
32806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807   (exit $ac_status); } && {
32808          test -z "$ac_c_werror_flag" ||
32809          test ! -s conftest.err
32810        } && test -s conftest$ac_exeext &&
32811        $as_test_x conftest$ac_exeext; then
32812   ac_cv_func__doprnt=yes
32813 else
32814   echo "$as_me: failed program was:" >&5
32815 sed 's/^/| /' conftest.$ac_ext >&5
32816
32817         ac_cv_func__doprnt=no
32818 fi
32819
32820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32821       conftest$ac_exeext conftest.$ac_ext
32822 fi
32823 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
32824 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
32825 if test $ac_cv_func__doprnt = yes; then
32826
32827 cat >>confdefs.h <<\_ACEOF
32828 #define HAVE_DOPRNT 1
32829 _ACEOF
32830
32831 fi
32832
32833 fi
32834 done
32835
32836
32837 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32838 # for constant arguments.  Useless!
32839 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32840 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32841 if test "${ac_cv_working_alloca_h+set}" = set; then
32842   echo $ECHO_N "(cached) $ECHO_C" >&6
32843 else
32844   cat >conftest.$ac_ext <<_ACEOF
32845 /* confdefs.h.  */
32846 _ACEOF
32847 cat confdefs.h >>conftest.$ac_ext
32848 cat >>conftest.$ac_ext <<_ACEOF
32849 /* end confdefs.h.  */
32850 #include <alloca.h>
32851 int
32852 main ()
32853 {
32854 char *p = (char *) alloca (2 * sizeof (int));
32855                           if (p) return 0;
32856   ;
32857   return 0;
32858 }
32859 _ACEOF
32860 rm -f conftest.$ac_objext conftest$ac_exeext
32861 if { (ac_try="$ac_link"
32862 case "(($ac_try" in
32863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32864   *) ac_try_echo=$ac_try;;
32865 esac
32866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32867   (eval "$ac_link") 2>conftest.er1
32868   ac_status=$?
32869   grep -v '^ *+' conftest.er1 >conftest.err
32870   rm -f conftest.er1
32871   cat conftest.err >&5
32872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873   (exit $ac_status); } && {
32874          test -z "$ac_c_werror_flag" ||
32875          test ! -s conftest.err
32876        } && test -s conftest$ac_exeext &&
32877        $as_test_x conftest$ac_exeext; then
32878   ac_cv_working_alloca_h=yes
32879 else
32880   echo "$as_me: failed program was:" >&5
32881 sed 's/^/| /' conftest.$ac_ext >&5
32882
32883         ac_cv_working_alloca_h=no
32884 fi
32885
32886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32887       conftest$ac_exeext conftest.$ac_ext
32888 fi
32889 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32890 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32891 if test $ac_cv_working_alloca_h = yes; then
32892
32893 cat >>confdefs.h <<\_ACEOF
32894 #define HAVE_ALLOCA_H 1
32895 _ACEOF
32896
32897 fi
32898
32899 { echo "$as_me:$LINENO: checking for alloca" >&5
32900 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32901 if test "${ac_cv_func_alloca_works+set}" = set; then
32902   echo $ECHO_N "(cached) $ECHO_C" >&6
32903 else
32904   cat >conftest.$ac_ext <<_ACEOF
32905 /* confdefs.h.  */
32906 _ACEOF
32907 cat confdefs.h >>conftest.$ac_ext
32908 cat >>conftest.$ac_ext <<_ACEOF
32909 /* end confdefs.h.  */
32910 #ifdef __GNUC__
32911 # define alloca __builtin_alloca
32912 #else
32913 # ifdef _MSC_VER
32914 #  include <malloc.h>
32915 #  define alloca _alloca
32916 # else
32917 #  ifdef HAVE_ALLOCA_H
32918 #   include <alloca.h>
32919 #  else
32920 #   ifdef _AIX
32921  #pragma alloca
32922 #   else
32923 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32924 char *alloca ();
32925 #    endif
32926 #   endif
32927 #  endif
32928 # endif
32929 #endif
32930
32931 int
32932 main ()
32933 {
32934 char *p = (char *) alloca (1);
32935                                     if (p) return 0;
32936   ;
32937   return 0;
32938 }
32939 _ACEOF
32940 rm -f conftest.$ac_objext conftest$ac_exeext
32941 if { (ac_try="$ac_link"
32942 case "(($ac_try" in
32943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944   *) ac_try_echo=$ac_try;;
32945 esac
32946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947   (eval "$ac_link") 2>conftest.er1
32948   ac_status=$?
32949   grep -v '^ *+' conftest.er1 >conftest.err
32950   rm -f conftest.er1
32951   cat conftest.err >&5
32952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953   (exit $ac_status); } && {
32954          test -z "$ac_c_werror_flag" ||
32955          test ! -s conftest.err
32956        } && test -s conftest$ac_exeext &&
32957        $as_test_x conftest$ac_exeext; then
32958   ac_cv_func_alloca_works=yes
32959 else
32960   echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32962
32963         ac_cv_func_alloca_works=no
32964 fi
32965
32966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32967       conftest$ac_exeext conftest.$ac_ext
32968 fi
32969 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32970 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32971
32972 if test $ac_cv_func_alloca_works = yes; then
32973
32974 cat >>confdefs.h <<\_ACEOF
32975 #define HAVE_ALLOCA 1
32976 _ACEOF
32977
32978 else
32979   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32980 # that cause trouble.  Some versions do not even contain alloca or
32981 # contain a buggy version.  If you still want to use their alloca,
32982 # use ar to extract alloca.o from them instead of compiling alloca.c.
32983
32984 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32985
32986 cat >>confdefs.h <<\_ACEOF
32987 #define C_ALLOCA 1
32988 _ACEOF
32989
32990
32991 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32992 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32993 if test "${ac_cv_os_cray+set}" = set; then
32994   echo $ECHO_N "(cached) $ECHO_C" >&6
32995 else
32996   cat >conftest.$ac_ext <<_ACEOF
32997 /* confdefs.h.  */
32998 _ACEOF
32999 cat confdefs.h >>conftest.$ac_ext
33000 cat >>conftest.$ac_ext <<_ACEOF
33001 /* end confdefs.h.  */
33002 #if defined CRAY && ! defined CRAY2
33003 webecray
33004 #else
33005 wenotbecray
33006 #endif
33007
33008 _ACEOF
33009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33010   $EGREP "webecray" >/dev/null 2>&1; then
33011   ac_cv_os_cray=yes
33012 else
33013   ac_cv_os_cray=no
33014 fi
33015 rm -f conftest*
33016
33017 fi
33018 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
33019 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
33020 if test $ac_cv_os_cray = yes; then
33021   for ac_func in _getb67 GETB67 getb67; do
33022     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33023 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33026   echo $ECHO_N "(cached) $ECHO_C" >&6
33027 else
33028   cat >conftest.$ac_ext <<_ACEOF
33029 /* confdefs.h.  */
33030 _ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h.  */
33034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33036 #define $ac_func innocuous_$ac_func
33037
33038 /* System header to define __stub macros and hopefully few prototypes,
33039     which can conflict with char $ac_func (); below.
33040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33041     <limits.h> exists even on freestanding compilers.  */
33042
33043 #ifdef __STDC__
33044 # include <limits.h>
33045 #else
33046 # include <assert.h>
33047 #endif
33048
33049 #undef $ac_func
33050
33051 /* Override any GCC internal prototype to avoid an error.
33052    Use char because int might match the return type of a GCC
33053    builtin and then its argument prototype would still apply.  */
33054 #ifdef __cplusplus
33055 extern "C"
33056 #endif
33057 char $ac_func ();
33058 /* The GNU C library defines this for functions which it implements
33059     to always fail with ENOSYS.  Some functions are actually named
33060     something starting with __ and the normal name is an alias.  */
33061 #if defined __stub_$ac_func || defined __stub___$ac_func
33062 choke me
33063 #endif
33064
33065 int
33066 main ()
33067 {
33068 return $ac_func ();
33069   ;
33070   return 0;
33071 }
33072 _ACEOF
33073 rm -f conftest.$ac_objext conftest$ac_exeext
33074 if { (ac_try="$ac_link"
33075 case "(($ac_try" in
33076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33077   *) ac_try_echo=$ac_try;;
33078 esac
33079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33080   (eval "$ac_link") 2>conftest.er1
33081   ac_status=$?
33082   grep -v '^ *+' conftest.er1 >conftest.err
33083   rm -f conftest.er1
33084   cat conftest.err >&5
33085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33086   (exit $ac_status); } && {
33087          test -z "$ac_c_werror_flag" ||
33088          test ! -s conftest.err
33089        } && test -s conftest$ac_exeext &&
33090        $as_test_x conftest$ac_exeext; then
33091   eval "$as_ac_var=yes"
33092 else
33093   echo "$as_me: failed program was:" >&5
33094 sed 's/^/| /' conftest.$ac_ext >&5
33095
33096         eval "$as_ac_var=no"
33097 fi
33098
33099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33100       conftest$ac_exeext conftest.$ac_ext
33101 fi
33102 ac_res=`eval echo '${'$as_ac_var'}'`
33103                { echo "$as_me:$LINENO: result: $ac_res" >&5
33104 echo "${ECHO_T}$ac_res" >&6; }
33105 if test `eval echo '${'$as_ac_var'}'` = yes; then
33106
33107 cat >>confdefs.h <<_ACEOF
33108 #define CRAY_STACKSEG_END $ac_func
33109 _ACEOF
33110
33111     break
33112 fi
33113
33114   done
33115 fi
33116
33117 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33118 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33119 if test "${ac_cv_c_stack_direction+set}" = set; then
33120   echo $ECHO_N "(cached) $ECHO_C" >&6
33121 else
33122   if test "$cross_compiling" = yes; then
33123   ac_cv_c_stack_direction=0
33124 else
33125   cat >conftest.$ac_ext <<_ACEOF
33126 /* confdefs.h.  */
33127 _ACEOF
33128 cat confdefs.h >>conftest.$ac_ext
33129 cat >>conftest.$ac_ext <<_ACEOF
33130 /* end confdefs.h.  */
33131 $ac_includes_default
33132 int
33133 find_stack_direction ()
33134 {
33135   static char *addr = 0;
33136   auto char dummy;
33137   if (addr == 0)
33138     {
33139       addr = &dummy;
33140       return find_stack_direction ();
33141     }
33142   else
33143     return (&dummy > addr) ? 1 : -1;
33144 }
33145
33146 int
33147 main ()
33148 {
33149   return find_stack_direction () < 0;
33150 }
33151 _ACEOF
33152 rm -f conftest$ac_exeext
33153 if { (ac_try="$ac_link"
33154 case "(($ac_try" in
33155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33156   *) ac_try_echo=$ac_try;;
33157 esac
33158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33159   (eval "$ac_link") 2>&5
33160   ac_status=$?
33161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33163   { (case "(($ac_try" in
33164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165   *) ac_try_echo=$ac_try;;
33166 esac
33167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168   (eval "$ac_try") 2>&5
33169   ac_status=$?
33170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171   (exit $ac_status); }; }; then
33172   ac_cv_c_stack_direction=1
33173 else
33174   echo "$as_me: program exited with status $ac_status" >&5
33175 echo "$as_me: failed program was:" >&5
33176 sed 's/^/| /' conftest.$ac_ext >&5
33177
33178 ( exit $ac_status )
33179 ac_cv_c_stack_direction=-1
33180 fi
33181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33182 fi
33183
33184
33185 fi
33186 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33187 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33188
33189 cat >>confdefs.h <<_ACEOF
33190 #define STACK_DIRECTION $ac_cv_c_stack_direction
33191 _ACEOF
33192
33193
33194 fi
33195
33196 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
33197 # -lseq on Dynix/PTX, -lgen on Unixware.
33198 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
33199 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
33200 if test "${ac_cv_search_getmntent+set}" = set; then
33201   echo $ECHO_N "(cached) $ECHO_C" >&6
33202 else
33203   ac_func_search_save_LIBS=$LIBS
33204 cat >conftest.$ac_ext <<_ACEOF
33205 /* confdefs.h.  */
33206 _ACEOF
33207 cat confdefs.h >>conftest.$ac_ext
33208 cat >>conftest.$ac_ext <<_ACEOF
33209 /* end confdefs.h.  */
33210
33211 /* Override any GCC internal prototype to avoid an error.
33212    Use char because int might match the return type of a GCC
33213    builtin and then its argument prototype would still apply.  */
33214 #ifdef __cplusplus
33215 extern "C"
33216 #endif
33217 char getmntent ();
33218 int
33219 main ()
33220 {
33221 return getmntent ();
33222   ;
33223   return 0;
33224 }
33225 _ACEOF
33226 for ac_lib in '' sun seq gen; do
33227   if test -z "$ac_lib"; then
33228     ac_res="none required"
33229   else
33230     ac_res=-l$ac_lib
33231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33232   fi
33233   rm -f conftest.$ac_objext conftest$ac_exeext
33234 if { (ac_try="$ac_link"
33235 case "(($ac_try" in
33236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237   *) ac_try_echo=$ac_try;;
33238 esac
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240   (eval "$ac_link") 2>conftest.er1
33241   ac_status=$?
33242   grep -v '^ *+' conftest.er1 >conftest.err
33243   rm -f conftest.er1
33244   cat conftest.err >&5
33245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246   (exit $ac_status); } && {
33247          test -z "$ac_c_werror_flag" ||
33248          test ! -s conftest.err
33249        } && test -s conftest$ac_exeext &&
33250        $as_test_x conftest$ac_exeext; then
33251   ac_cv_search_getmntent=$ac_res
33252 else
33253   echo "$as_me: failed program was:" >&5
33254 sed 's/^/| /' conftest.$ac_ext >&5
33255
33256
33257 fi
33258
33259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33260       conftest$ac_exeext
33261   if test "${ac_cv_search_getmntent+set}" = set; then
33262   break
33263 fi
33264 done
33265 if test "${ac_cv_search_getmntent+set}" = set; then
33266   :
33267 else
33268   ac_cv_search_getmntent=no
33269 fi
33270 rm conftest.$ac_ext
33271 LIBS=$ac_func_search_save_LIBS
33272 fi
33273 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
33274 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
33275 ac_res=$ac_cv_search_getmntent
33276 if test "$ac_res" != no; then
33277   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33278   ac_cv_func_getmntent=yes
33279
33280 cat >>confdefs.h <<\_ACEOF
33281 #define HAVE_GETMNTENT 1
33282 _ACEOF
33283
33284 else
33285   ac_cv_func_getmntent=no
33286 fi
33287
33288
33289 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
33290 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
33291 if test "${ac_cv_func_closedir_void+set}" = set; then
33292   echo $ECHO_N "(cached) $ECHO_C" >&6
33293 else
33294   if test "$cross_compiling" = yes; then
33295   ac_cv_func_closedir_void=yes
33296 else
33297   cat >conftest.$ac_ext <<_ACEOF
33298 /* confdefs.h.  */
33299 _ACEOF
33300 cat confdefs.h >>conftest.$ac_ext
33301 cat >>conftest.$ac_ext <<_ACEOF
33302 /* end confdefs.h.  */
33303 $ac_includes_default
33304 #include <$ac_header_dirent>
33305 #ifndef __cplusplus
33306 int closedir ();
33307 #endif
33308
33309 int
33310 main ()
33311 {
33312 return closedir (opendir (".")) != 0;
33313   ;
33314   return 0;
33315 }
33316 _ACEOF
33317 rm -f conftest$ac_exeext
33318 if { (ac_try="$ac_link"
33319 case "(($ac_try" in
33320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33321   *) ac_try_echo=$ac_try;;
33322 esac
33323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33324   (eval "$ac_link") 2>&5
33325   ac_status=$?
33326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33328   { (case "(($ac_try" in
33329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33330   *) ac_try_echo=$ac_try;;
33331 esac
33332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33333   (eval "$ac_try") 2>&5
33334   ac_status=$?
33335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336   (exit $ac_status); }; }; then
33337   ac_cv_func_closedir_void=no
33338 else
33339   echo "$as_me: program exited with status $ac_status" >&5
33340 echo "$as_me: failed program was:" >&5
33341 sed 's/^/| /' conftest.$ac_ext >&5
33342
33343 ( exit $ac_status )
33344 ac_cv_func_closedir_void=yes
33345 fi
33346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33347 fi
33348
33349
33350 fi
33351 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
33352 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
33353 if test $ac_cv_func_closedir_void = yes; then
33354
33355 cat >>confdefs.h <<\_ACEOF
33356 #define CLOSEDIR_VOID 1
33357 _ACEOF
33358
33359 fi
33360
33361 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
33362 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
33363 if test "${ac_cv_func_setpgrp_void+set}" = set; then
33364   echo $ECHO_N "(cached) $ECHO_C" >&6
33365 else
33366   if test "$cross_compiling" = yes; then
33367   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
33368 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
33369    { (exit 1); exit 1; }; }
33370 else
33371   cat >conftest.$ac_ext <<_ACEOF
33372 /* confdefs.h.  */
33373 _ACEOF
33374 cat confdefs.h >>conftest.$ac_ext
33375 cat >>conftest.$ac_ext <<_ACEOF
33376 /* end confdefs.h.  */
33377 $ac_includes_default
33378 int
33379 main ()
33380 {
33381 /* If this system has a BSD-style setpgrp which takes arguments,
33382   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
33383   exit successfully. */
33384   return setpgrp (1,1) != -1;
33385   ;
33386   return 0;
33387 }
33388 _ACEOF
33389 rm -f conftest$ac_exeext
33390 if { (ac_try="$ac_link"
33391 case "(($ac_try" in
33392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33393   *) ac_try_echo=$ac_try;;
33394 esac
33395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33396   (eval "$ac_link") 2>&5
33397   ac_status=$?
33398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33400   { (case "(($ac_try" in
33401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402   *) ac_try_echo=$ac_try;;
33403 esac
33404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33405   (eval "$ac_try") 2>&5
33406   ac_status=$?
33407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408   (exit $ac_status); }; }; then
33409   ac_cv_func_setpgrp_void=no
33410 else
33411   echo "$as_me: program exited with status $ac_status" >&5
33412 echo "$as_me: failed program was:" >&5
33413 sed 's/^/| /' conftest.$ac_ext >&5
33414
33415 ( exit $ac_status )
33416 ac_cv_func_setpgrp_void=yes
33417 fi
33418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33419 fi
33420
33421
33422 fi
33423 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
33424 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
33425 if test $ac_cv_func_setpgrp_void = yes; then
33426
33427 cat >>confdefs.h <<\_ACEOF
33428 #define SETPGRP_VOID 1
33429 _ACEOF
33430
33431 fi
33432                       # AC_FUNC_FNMATCH    dnl use local version
33433
33434
33435 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
33436 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
33437 if test "${ac_cv_lib_intl_gettext+set}" = set; then
33438   echo $ECHO_N "(cached) $ECHO_C" >&6
33439 else
33440   ac_check_lib_save_LIBS=$LIBS
33441 LIBS="-lintl  $LIBS"
33442 cat >conftest.$ac_ext <<_ACEOF
33443 /* confdefs.h.  */
33444 _ACEOF
33445 cat confdefs.h >>conftest.$ac_ext
33446 cat >>conftest.$ac_ext <<_ACEOF
33447 /* end confdefs.h.  */
33448
33449 /* Override any GCC internal prototype to avoid an error.
33450    Use char because int might match the return type of a GCC
33451    builtin and then its argument prototype would still apply.  */
33452 #ifdef __cplusplus
33453 extern "C"
33454 #endif
33455 char gettext ();
33456 int
33457 main ()
33458 {
33459 return gettext ();
33460   ;
33461   return 0;
33462 }
33463 _ACEOF
33464 rm -f conftest.$ac_objext conftest$ac_exeext
33465 if { (ac_try="$ac_link"
33466 case "(($ac_try" in
33467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33468   *) ac_try_echo=$ac_try;;
33469 esac
33470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33471   (eval "$ac_link") 2>conftest.er1
33472   ac_status=$?
33473   grep -v '^ *+' conftest.er1 >conftest.err
33474   rm -f conftest.er1
33475   cat conftest.err >&5
33476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477   (exit $ac_status); } && {
33478          test -z "$ac_c_werror_flag" ||
33479          test ! -s conftest.err
33480        } && test -s conftest$ac_exeext &&
33481        $as_test_x conftest$ac_exeext; then
33482   ac_cv_lib_intl_gettext=yes
33483 else
33484   echo "$as_me: failed program was:" >&5
33485 sed 's/^/| /' conftest.$ac_ext >&5
33486
33487         ac_cv_lib_intl_gettext=no
33488 fi
33489
33490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33491       conftest$ac_exeext conftest.$ac_ext
33492 LIBS=$ac_check_lib_save_LIBS
33493 fi
33494 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
33495 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
33496 if test $ac_cv_lib_intl_gettext = yes; then
33497   LIBS="$LIBS -lintl"
33498 fi
33499
33500
33501
33502
33503 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
33504 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
33505 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
33506   echo $ECHO_N "(cached) $ECHO_C" >&6
33507 else
33508   ac_check_lib_save_LIBS=$LIBS
33509 LIBS="-lsun  $LIBS"
33510 cat >conftest.$ac_ext <<_ACEOF
33511 /* confdefs.h.  */
33512 _ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h.  */
33516
33517 /* Override any GCC internal prototype to avoid an error.
33518    Use char because int might match the return type of a GCC
33519    builtin and then its argument prototype would still apply.  */
33520 #ifdef __cplusplus
33521 extern "C"
33522 #endif
33523 char getpwnam ();
33524 int
33525 main ()
33526 {
33527 return getpwnam ();
33528   ;
33529   return 0;
33530 }
33531 _ACEOF
33532 rm -f conftest.$ac_objext conftest$ac_exeext
33533 if { (ac_try="$ac_link"
33534 case "(($ac_try" in
33535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536   *) ac_try_echo=$ac_try;;
33537 esac
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539   (eval "$ac_link") 2>conftest.er1
33540   ac_status=$?
33541   grep -v '^ *+' conftest.er1 >conftest.err
33542   rm -f conftest.er1
33543   cat conftest.err >&5
33544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545   (exit $ac_status); } && {
33546          test -z "$ac_c_werror_flag" ||
33547          test ! -s conftest.err
33548        } && test -s conftest$ac_exeext &&
33549        $as_test_x conftest$ac_exeext; then
33550   ac_cv_lib_sun_getpwnam=yes
33551 else
33552   echo "$as_me: failed program was:" >&5
33553 sed 's/^/| /' conftest.$ac_ext >&5
33554
33555         ac_cv_lib_sun_getpwnam=no
33556 fi
33557
33558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33559       conftest$ac_exeext conftest.$ac_ext
33560 LIBS=$ac_check_lib_save_LIBS
33561 fi
33562 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
33563 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
33564 if test $ac_cv_lib_sun_getpwnam = yes; then
33565   cat >>confdefs.h <<_ACEOF
33566 #define HAVE_LIBSUN 1
33567 _ACEOF
33568
33569   LIBS="-lsun $LIBS"
33570
33571 fi
33572
33573
33574
33575 for ac_header in zlib.h
33576 do
33577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33579   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33582   echo $ECHO_N "(cached) $ECHO_C" >&6
33583 fi
33584 ac_res=`eval echo '${'$as_ac_Header'}'`
33585                { echo "$as_me:$LINENO: result: $ac_res" >&5
33586 echo "${ECHO_T}$ac_res" >&6; }
33587 else
33588   # Is the header compilable?
33589 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33591 cat >conftest.$ac_ext <<_ACEOF
33592 /* confdefs.h.  */
33593 _ACEOF
33594 cat confdefs.h >>conftest.$ac_ext
33595 cat >>conftest.$ac_ext <<_ACEOF
33596 /* end confdefs.h.  */
33597 $ac_includes_default
33598 #include <$ac_header>
33599 _ACEOF
33600 rm -f conftest.$ac_objext
33601 if { (ac_try="$ac_compile"
33602 case "(($ac_try" in
33603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33604   *) ac_try_echo=$ac_try;;
33605 esac
33606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33607   (eval "$ac_compile") 2>conftest.er1
33608   ac_status=$?
33609   grep -v '^ *+' conftest.er1 >conftest.err
33610   rm -f conftest.er1
33611   cat conftest.err >&5
33612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613   (exit $ac_status); } && {
33614          test -z "$ac_c_werror_flag" ||
33615          test ! -s conftest.err
33616        } && test -s conftest.$ac_objext; then
33617   ac_header_compiler=yes
33618 else
33619   echo "$as_me: failed program was:" >&5
33620 sed 's/^/| /' conftest.$ac_ext >&5
33621
33622         ac_header_compiler=no
33623 fi
33624
33625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33627 echo "${ECHO_T}$ac_header_compiler" >&6; }
33628
33629 # Is the header present?
33630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33632 cat >conftest.$ac_ext <<_ACEOF
33633 /* confdefs.h.  */
33634 _ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h.  */
33638 #include <$ac_header>
33639 _ACEOF
33640 if { (ac_try="$ac_cpp conftest.$ac_ext"
33641 case "(($ac_try" in
33642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643   *) ac_try_echo=$ac_try;;
33644 esac
33645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33647   ac_status=$?
33648   grep -v '^ *+' conftest.er1 >conftest.err
33649   rm -f conftest.er1
33650   cat conftest.err >&5
33651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652   (exit $ac_status); } >/dev/null && {
33653          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33654          test ! -s conftest.err
33655        }; then
33656   ac_header_preproc=yes
33657 else
33658   echo "$as_me: failed program was:" >&5
33659 sed 's/^/| /' conftest.$ac_ext >&5
33660
33661   ac_header_preproc=no
33662 fi
33663
33664 rm -f conftest.err conftest.$ac_ext
33665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33666 echo "${ECHO_T}$ac_header_preproc" >&6; }
33667
33668 # So?  What about this header?
33669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33670   yes:no: )
33671     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33675     ac_header_preproc=yes
33676     ;;
33677   no:yes:* )
33678     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33680     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33681 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33682     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33684     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33685 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33688     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33690
33691     ;;
33692 esac
33693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33696   echo $ECHO_N "(cached) $ECHO_C" >&6
33697 else
33698   eval "$as_ac_Header=\$ac_header_preproc"
33699 fi
33700 ac_res=`eval echo '${'$as_ac_Header'}'`
33701                { echo "$as_me:$LINENO: result: $ac_res" >&5
33702 echo "${ECHO_T}$ac_res" >&6; }
33703
33704 fi
33705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33706   cat >>confdefs.h <<_ACEOF
33707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33708 _ACEOF
33709
33710 fi
33711
33712 done
33713
33714 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33715 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33716 if test "${ac_cv_lib_z_deflate+set}" = set; then
33717   echo $ECHO_N "(cached) $ECHO_C" >&6
33718 else
33719   ac_check_lib_save_LIBS=$LIBS
33720 LIBS="-lz  $LIBS"
33721 cat >conftest.$ac_ext <<_ACEOF
33722 /* confdefs.h.  */
33723 _ACEOF
33724 cat confdefs.h >>conftest.$ac_ext
33725 cat >>conftest.$ac_ext <<_ACEOF
33726 /* end confdefs.h.  */
33727
33728 /* Override any GCC internal prototype to avoid an error.
33729    Use char because int might match the return type of a GCC
33730    builtin and then its argument prototype would still apply.  */
33731 #ifdef __cplusplus
33732 extern "C"
33733 #endif
33734 char deflate ();
33735 int
33736 main ()
33737 {
33738 return deflate ();
33739   ;
33740   return 0;
33741 }
33742 _ACEOF
33743 rm -f conftest.$ac_objext conftest$ac_exeext
33744 if { (ac_try="$ac_link"
33745 case "(($ac_try" in
33746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33747   *) ac_try_echo=$ac_try;;
33748 esac
33749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33750   (eval "$ac_link") 2>conftest.er1
33751   ac_status=$?
33752   grep -v '^ *+' conftest.er1 >conftest.err
33753   rm -f conftest.er1
33754   cat conftest.err >&5
33755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756   (exit $ac_status); } && {
33757          test -z "$ac_c_werror_flag" ||
33758          test ! -s conftest.err
33759        } && test -s conftest$ac_exeext &&
33760        $as_test_x conftest$ac_exeext; then
33761   ac_cv_lib_z_deflate=yes
33762 else
33763   echo "$as_me: failed program was:" >&5
33764 sed 's/^/| /' conftest.$ac_ext >&5
33765
33766         ac_cv_lib_z_deflate=no
33767 fi
33768
33769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33770       conftest$ac_exeext conftest.$ac_ext
33771 LIBS=$ac_check_lib_save_LIBS
33772 fi
33773 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33774 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33775 if test $ac_cv_lib_z_deflate = yes; then
33776   FDLIBS="-lz"
33777 fi
33778
33779 have_zlib=no
33780 if test x$FDLIBS = x-lz; then
33781   cat >>confdefs.h <<\_ACEOF
33782 #define HAVE_LIBZ 1
33783 _ACEOF
33784
33785   have_zlib=yes
33786 fi
33787
33788 #
33789 # Check for ACL libraries
33790 #
33791 have_acl=no
33792 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33793   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33794 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33795 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33796   echo $ECHO_N "(cached) $ECHO_C" >&6
33797 fi
33798 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33799 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33800 else
33801   # Is the header compilable?
33802 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33803 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33804 cat >conftest.$ac_ext <<_ACEOF
33805 /* confdefs.h.  */
33806 _ACEOF
33807 cat confdefs.h >>conftest.$ac_ext
33808 cat >>conftest.$ac_ext <<_ACEOF
33809 /* end confdefs.h.  */
33810 $ac_includes_default
33811 #include <sys/acl.h>
33812 _ACEOF
33813 rm -f conftest.$ac_objext
33814 if { (ac_try="$ac_compile"
33815 case "(($ac_try" in
33816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33817   *) ac_try_echo=$ac_try;;
33818 esac
33819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33820   (eval "$ac_compile") 2>conftest.er1
33821   ac_status=$?
33822   grep -v '^ *+' conftest.er1 >conftest.err
33823   rm -f conftest.er1
33824   cat conftest.err >&5
33825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33826   (exit $ac_status); } && {
33827          test -z "$ac_c_werror_flag" ||
33828          test ! -s conftest.err
33829        } && test -s conftest.$ac_objext; then
33830   ac_header_compiler=yes
33831 else
33832   echo "$as_me: failed program was:" >&5
33833 sed 's/^/| /' conftest.$ac_ext >&5
33834
33835         ac_header_compiler=no
33836 fi
33837
33838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33840 echo "${ECHO_T}$ac_header_compiler" >&6; }
33841
33842 # Is the header present?
33843 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33844 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33845 cat >conftest.$ac_ext <<_ACEOF
33846 /* confdefs.h.  */
33847 _ACEOF
33848 cat confdefs.h >>conftest.$ac_ext
33849 cat >>conftest.$ac_ext <<_ACEOF
33850 /* end confdefs.h.  */
33851 #include <sys/acl.h>
33852 _ACEOF
33853 if { (ac_try="$ac_cpp conftest.$ac_ext"
33854 case "(($ac_try" in
33855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33856   *) ac_try_echo=$ac_try;;
33857 esac
33858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33860   ac_status=$?
33861   grep -v '^ *+' conftest.er1 >conftest.err
33862   rm -f conftest.er1
33863   cat conftest.err >&5
33864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865   (exit $ac_status); } >/dev/null && {
33866          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33867          test ! -s conftest.err
33868        }; then
33869   ac_header_preproc=yes
33870 else
33871   echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.$ac_ext >&5
33873
33874   ac_header_preproc=no
33875 fi
33876
33877 rm -f conftest.err conftest.$ac_ext
33878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33879 echo "${ECHO_T}$ac_header_preproc" >&6; }
33880
33881 # So?  What about this header?
33882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33883   yes:no: )
33884     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33885 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33886     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33887 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33888     ac_header_preproc=yes
33889     ;;
33890   no:yes:* )
33891     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33892 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33893     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
33894 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
33895     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33896 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33897     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
33898 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33899     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33900 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33901     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33902 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33903
33904     ;;
33905 esac
33906 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33907 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33908 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33909   echo $ECHO_N "(cached) $ECHO_C" >&6
33910 else
33911   ac_cv_header_sys_acl_h=$ac_header_preproc
33912 fi
33913 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33914 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33915
33916 fi
33917
33918
33919 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33920 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33921 if test "${ac_cv_func_acl_get_file+set}" = set; then
33922   echo $ECHO_N "(cached) $ECHO_C" >&6
33923 else
33924   cat >conftest.$ac_ext <<_ACEOF
33925 /* confdefs.h.  */
33926 _ACEOF
33927 cat confdefs.h >>conftest.$ac_ext
33928 cat >>conftest.$ac_ext <<_ACEOF
33929 /* end confdefs.h.  */
33930 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33932 #define acl_get_file innocuous_acl_get_file
33933
33934 /* System header to define __stub macros and hopefully few prototypes,
33935     which can conflict with char acl_get_file (); below.
33936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33937     <limits.h> exists even on freestanding compilers.  */
33938
33939 #ifdef __STDC__
33940 # include <limits.h>
33941 #else
33942 # include <assert.h>
33943 #endif
33944
33945 #undef acl_get_file
33946
33947 /* Override any GCC internal prototype to avoid an error.
33948    Use char because int might match the return type of a GCC
33949    builtin and then its argument prototype would still apply.  */
33950 #ifdef __cplusplus
33951 extern "C"
33952 #endif
33953 char acl_get_file ();
33954 /* The GNU C library defines this for functions which it implements
33955     to always fail with ENOSYS.  Some functions are actually named
33956     something starting with __ and the normal name is an alias.  */
33957 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33958 choke me
33959 #endif
33960
33961 int
33962 main ()
33963 {
33964 return acl_get_file ();
33965   ;
33966   return 0;
33967 }
33968 _ACEOF
33969 rm -f conftest.$ac_objext conftest$ac_exeext
33970 if { (ac_try="$ac_link"
33971 case "(($ac_try" in
33972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33973   *) ac_try_echo=$ac_try;;
33974 esac
33975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33976   (eval "$ac_link") 2>conftest.er1
33977   ac_status=$?
33978   grep -v '^ *+' conftest.er1 >conftest.err
33979   rm -f conftest.er1
33980   cat conftest.err >&5
33981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982   (exit $ac_status); } && {
33983          test -z "$ac_c_werror_flag" ||
33984          test ! -s conftest.err
33985        } && test -s conftest$ac_exeext &&
33986        $as_test_x conftest$ac_exeext; then
33987   ac_cv_func_acl_get_file=yes
33988 else
33989   echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33991
33992         ac_cv_func_acl_get_file=no
33993 fi
33994
33995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33996       conftest$ac_exeext conftest.$ac_ext
33997 fi
33998 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33999 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
34000 if test $ac_cv_func_acl_get_file = yes; then
34001   have_acl=yes
34002 else
34003   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
34004 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
34005 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
34006   echo $ECHO_N "(cached) $ECHO_C" >&6
34007 else
34008   ac_check_lib_save_LIBS=$LIBS
34009 LIBS="-lacl  $LIBS"
34010 cat >conftest.$ac_ext <<_ACEOF
34011 /* confdefs.h.  */
34012 _ACEOF
34013 cat confdefs.h >>conftest.$ac_ext
34014 cat >>conftest.$ac_ext <<_ACEOF
34015 /* end confdefs.h.  */
34016
34017 /* Override any GCC internal prototype to avoid an error.
34018    Use char because int might match the return type of a GCC
34019    builtin and then its argument prototype would still apply.  */
34020 #ifdef __cplusplus
34021 extern "C"
34022 #endif
34023 char acl_get_file ();
34024 int
34025 main ()
34026 {
34027 return acl_get_file ();
34028   ;
34029   return 0;
34030 }
34031 _ACEOF
34032 rm -f conftest.$ac_objext conftest$ac_exeext
34033 if { (ac_try="$ac_link"
34034 case "(($ac_try" in
34035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34036   *) ac_try_echo=$ac_try;;
34037 esac
34038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34039   (eval "$ac_link") 2>conftest.er1
34040   ac_status=$?
34041   grep -v '^ *+' conftest.er1 >conftest.err
34042   rm -f conftest.er1
34043   cat conftest.err >&5
34044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045   (exit $ac_status); } && {
34046          test -z "$ac_c_werror_flag" ||
34047          test ! -s conftest.err
34048        } && test -s conftest$ac_exeext &&
34049        $as_test_x conftest$ac_exeext; then
34050   ac_cv_lib_acl_acl_get_file=yes
34051 else
34052   echo "$as_me: failed program was:" >&5
34053 sed 's/^/| /' conftest.$ac_ext >&5
34054
34055         ac_cv_lib_acl_acl_get_file=no
34056 fi
34057
34058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34059       conftest$ac_exeext conftest.$ac_ext
34060 LIBS=$ac_check_lib_save_LIBS
34061 fi
34062 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
34063 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
34064 if test $ac_cv_lib_acl_acl_get_file = yes; then
34065   have_acl=yes; FDLIBS="-lacl $FDLIBS"
34066 else
34067   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
34068 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
34069 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
34070   echo $ECHO_N "(cached) $ECHO_C" >&6
34071 else
34072   ac_check_lib_save_LIBS=$LIBS
34073 LIBS="-lsec  $LIBS"
34074 cat >conftest.$ac_ext <<_ACEOF
34075 /* confdefs.h.  */
34076 _ACEOF
34077 cat confdefs.h >>conftest.$ac_ext
34078 cat >>conftest.$ac_ext <<_ACEOF
34079 /* end confdefs.h.  */
34080
34081 /* Override any GCC internal prototype to avoid an error.
34082    Use char because int might match the return type of a GCC
34083    builtin and then its argument prototype would still apply.  */
34084 #ifdef __cplusplus
34085 extern "C"
34086 #endif
34087 char acltotext ();
34088 int
34089 main ()
34090 {
34091 return acltotext ();
34092   ;
34093   return 0;
34094 }
34095 _ACEOF
34096 rm -f conftest.$ac_objext conftest$ac_exeext
34097 if { (ac_try="$ac_link"
34098 case "(($ac_try" in
34099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34100   *) ac_try_echo=$ac_try;;
34101 esac
34102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103   (eval "$ac_link") 2>conftest.er1
34104   ac_status=$?
34105   grep -v '^ *+' conftest.er1 >conftest.err
34106   rm -f conftest.er1
34107   cat conftest.err >&5
34108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109   (exit $ac_status); } && {
34110          test -z "$ac_c_werror_flag" ||
34111          test ! -s conftest.err
34112        } && test -s conftest$ac_exeext &&
34113        $as_test_x conftest$ac_exeext; then
34114   ac_cv_lib_sec_acltotext=yes
34115 else
34116   echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34118
34119         ac_cv_lib_sec_acltotext=no
34120 fi
34121
34122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34123       conftest$ac_exeext conftest.$ac_ext
34124 LIBS=$ac_check_lib_save_LIBS
34125 fi
34126 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
34127 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
34128 if test $ac_cv_lib_sec_acltotext = yes; then
34129   have_acl=yes; FDLIBS="-lsec $FDLIBS"
34130 fi
34131
34132
34133 fi
34134
34135
34136 fi
34137
34138 if test $have_acl = yes; then
34139    cat >>confdefs.h <<\_ACEOF
34140 #define HAVE_ACL 1
34141 _ACEOF
34142
34143 fi
34144
34145 PTHREAD_LIB=""
34146 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
34147 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
34148 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
34149   echo $ECHO_N "(cached) $ECHO_C" >&6
34150 else
34151   ac_check_lib_save_LIBS=$LIBS
34152 LIBS="-lpthread  $LIBS"
34153 cat >conftest.$ac_ext <<_ACEOF
34154 /* confdefs.h.  */
34155 _ACEOF
34156 cat confdefs.h >>conftest.$ac_ext
34157 cat >>conftest.$ac_ext <<_ACEOF
34158 /* end confdefs.h.  */
34159
34160 /* Override any GCC internal prototype to avoid an error.
34161    Use char because int might match the return type of a GCC
34162    builtin and then its argument prototype would still apply.  */
34163 #ifdef __cplusplus
34164 extern "C"
34165 #endif
34166 char pthread_create ();
34167 int
34168 main ()
34169 {
34170 return pthread_create ();
34171   ;
34172   return 0;
34173 }
34174 _ACEOF
34175 rm -f conftest.$ac_objext conftest$ac_exeext
34176 if { (ac_try="$ac_link"
34177 case "(($ac_try" in
34178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34179   *) ac_try_echo=$ac_try;;
34180 esac
34181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34182   (eval "$ac_link") 2>conftest.er1
34183   ac_status=$?
34184   grep -v '^ *+' conftest.er1 >conftest.err
34185   rm -f conftest.er1
34186   cat conftest.err >&5
34187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188   (exit $ac_status); } && {
34189          test -z "$ac_c_werror_flag" ||
34190          test ! -s conftest.err
34191        } && test -s conftest$ac_exeext &&
34192        $as_test_x conftest$ac_exeext; then
34193   ac_cv_lib_pthread_pthread_create=yes
34194 else
34195   echo "$as_me: failed program was:" >&5
34196 sed 's/^/| /' conftest.$ac_ext >&5
34197
34198         ac_cv_lib_pthread_pthread_create=no
34199 fi
34200
34201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34202       conftest$ac_exeext conftest.$ac_ext
34203 LIBS=$ac_check_lib_save_LIBS
34204 fi
34205 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
34206 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
34207 if test $ac_cv_lib_pthread_pthread_create = yes; then
34208   PTHREAD_LIB="-lpthread"
34209 else
34210   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
34211 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
34212 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
34213   echo $ECHO_N "(cached) $ECHO_C" >&6
34214 else
34215   ac_check_lib_save_LIBS=$LIBS
34216 LIBS="-lpthreads  $LIBS"
34217 cat >conftest.$ac_ext <<_ACEOF
34218 /* confdefs.h.  */
34219 _ACEOF
34220 cat confdefs.h >>conftest.$ac_ext
34221 cat >>conftest.$ac_ext <<_ACEOF
34222 /* end confdefs.h.  */
34223
34224 /* Override any GCC internal prototype to avoid an error.
34225    Use char because int might match the return type of a GCC
34226    builtin and then its argument prototype would still apply.  */
34227 #ifdef __cplusplus
34228 extern "C"
34229 #endif
34230 char pthread_create ();
34231 int
34232 main ()
34233 {
34234 return pthread_create ();
34235   ;
34236   return 0;
34237 }
34238 _ACEOF
34239 rm -f conftest.$ac_objext conftest$ac_exeext
34240 if { (ac_try="$ac_link"
34241 case "(($ac_try" in
34242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34243   *) ac_try_echo=$ac_try;;
34244 esac
34245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34246   (eval "$ac_link") 2>conftest.er1
34247   ac_status=$?
34248   grep -v '^ *+' conftest.er1 >conftest.err
34249   rm -f conftest.er1
34250   cat conftest.err >&5
34251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252   (exit $ac_status); } && {
34253          test -z "$ac_c_werror_flag" ||
34254          test ! -s conftest.err
34255        } && test -s conftest$ac_exeext &&
34256        $as_test_x conftest$ac_exeext; then
34257   ac_cv_lib_pthreads_pthread_create=yes
34258 else
34259   echo "$as_me: failed program was:" >&5
34260 sed 's/^/| /' conftest.$ac_ext >&5
34261
34262         ac_cv_lib_pthreads_pthread_create=no
34263 fi
34264
34265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34266       conftest$ac_exeext conftest.$ac_ext
34267 LIBS=$ac_check_lib_save_LIBS
34268 fi
34269 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
34270 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
34271 if test $ac_cv_lib_pthreads_pthread_create = yes; then
34272   PTHREAD_LIB="-lpthreads"
34273 else
34274   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
34275 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
34276 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
34277   echo $ECHO_N "(cached) $ECHO_C" >&6
34278 else
34279   ac_check_lib_save_LIBS=$LIBS
34280 LIBS="-lc_r  $LIBS"
34281 cat >conftest.$ac_ext <<_ACEOF
34282 /* confdefs.h.  */
34283 _ACEOF
34284 cat confdefs.h >>conftest.$ac_ext
34285 cat >>conftest.$ac_ext <<_ACEOF
34286 /* end confdefs.h.  */
34287
34288 /* Override any GCC internal prototype to avoid an error.
34289    Use char because int might match the return type of a GCC
34290    builtin and then its argument prototype would still apply.  */
34291 #ifdef __cplusplus
34292 extern "C"
34293 #endif
34294 char pthread_create ();
34295 int
34296 main ()
34297 {
34298 return pthread_create ();
34299   ;
34300   return 0;
34301 }
34302 _ACEOF
34303 rm -f conftest.$ac_objext conftest$ac_exeext
34304 if { (ac_try="$ac_link"
34305 case "(($ac_try" in
34306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34307   *) ac_try_echo=$ac_try;;
34308 esac
34309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34310   (eval "$ac_link") 2>conftest.er1
34311   ac_status=$?
34312   grep -v '^ *+' conftest.er1 >conftest.err
34313   rm -f conftest.er1
34314   cat conftest.err >&5
34315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316   (exit $ac_status); } && {
34317          test -z "$ac_c_werror_flag" ||
34318          test ! -s conftest.err
34319        } && test -s conftest$ac_exeext &&
34320        $as_test_x conftest$ac_exeext; then
34321   ac_cv_lib_c_r_pthread_create=yes
34322 else
34323   echo "$as_me: failed program was:" >&5
34324 sed 's/^/| /' conftest.$ac_ext >&5
34325
34326         ac_cv_lib_c_r_pthread_create=no
34327 fi
34328
34329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34330       conftest$ac_exeext conftest.$ac_ext
34331 LIBS=$ac_check_lib_save_LIBS
34332 fi
34333 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
34334 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
34335 if test $ac_cv_lib_c_r_pthread_create = yes; then
34336   PTHREAD_LIB="-lc_r"
34337 else
34338   { echo "$as_me:$LINENO: checking for pthread_create" >&5
34339 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
34340 if test "${ac_cv_func_pthread_create+set}" = set; then
34341   echo $ECHO_N "(cached) $ECHO_C" >&6
34342 else
34343   cat >conftest.$ac_ext <<_ACEOF
34344 /* confdefs.h.  */
34345 _ACEOF
34346 cat confdefs.h >>conftest.$ac_ext
34347 cat >>conftest.$ac_ext <<_ACEOF
34348 /* end confdefs.h.  */
34349 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
34350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34351 #define pthread_create innocuous_pthread_create
34352
34353 /* System header to define __stub macros and hopefully few prototypes,
34354     which can conflict with char pthread_create (); below.
34355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34356     <limits.h> exists even on freestanding compilers.  */
34357
34358 #ifdef __STDC__
34359 # include <limits.h>
34360 #else
34361 # include <assert.h>
34362 #endif
34363
34364 #undef pthread_create
34365
34366 /* Override any GCC internal prototype to avoid an error.
34367    Use char because int might match the return type of a GCC
34368    builtin and then its argument prototype would still apply.  */
34369 #ifdef __cplusplus
34370 extern "C"
34371 #endif
34372 char pthread_create ();
34373 /* The GNU C library defines this for functions which it implements
34374     to always fail with ENOSYS.  Some functions are actually named
34375     something starting with __ and the normal name is an alias.  */
34376 #if defined __stub_pthread_create || defined __stub___pthread_create
34377 choke me
34378 #endif
34379
34380 int
34381 main ()
34382 {
34383 return pthread_create ();
34384   ;
34385   return 0;
34386 }
34387 _ACEOF
34388 rm -f conftest.$ac_objext conftest$ac_exeext
34389 if { (ac_try="$ac_link"
34390 case "(($ac_try" in
34391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34392   *) ac_try_echo=$ac_try;;
34393 esac
34394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34395   (eval "$ac_link") 2>conftest.er1
34396   ac_status=$?
34397   grep -v '^ *+' conftest.er1 >conftest.err
34398   rm -f conftest.er1
34399   cat conftest.err >&5
34400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401   (exit $ac_status); } && {
34402          test -z "$ac_c_werror_flag" ||
34403          test ! -s conftest.err
34404        } && test -s conftest$ac_exeext &&
34405        $as_test_x conftest$ac_exeext; then
34406   ac_cv_func_pthread_create=yes
34407 else
34408   echo "$as_me: failed program was:" >&5
34409 sed 's/^/| /' conftest.$ac_ext >&5
34410
34411         ac_cv_func_pthread_create=no
34412 fi
34413
34414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34415       conftest$ac_exeext conftest.$ac_ext
34416 fi
34417 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
34418 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
34419
34420
34421 fi
34422
34423
34424 fi
34425
34426
34427 fi
34428
34429
34430
34431 cat >>confdefs.h <<\_ACEOF
34432 #define FDLIBS 1
34433 _ACEOF
34434
34435
34436
34437 CFLAGS=${CFLAGS--O}
34438
34439 if test x$have_gcc = xyes ; then
34440    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
34441    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
34442 fi
34443 LDFLAGS=${LDFLAGS--O}
34444 DB_LIBS="${SQL_LFLAGS}"
34445 CPPFLAGS="$CPPFLAGS"
34446 CFLAGS="$CFLAGS"
34447
34448
34449
34450
34451
34452
34453
34454
34455
34456
34457
34458
34459
34460
34461
34462
34463 OBJLIST=
34464
34465
34466 lld="lld"
34467 llu="llu"
34468
34469 WCFLAGS=
34470 WLDFLAGS=
34471
34472 #
34473 # Finally we set appropriate distribution specific
34474 #  variables and defaults
34475 #
34476 # PFILES are platform specific files
34477 PFILES="platforms/Makefile"
34478 PSCMD="ps -e"
34479 WIN32=
34480 MACOSX=
34481 hostname=`uname -n | cut -d '.' -f 1`
34482 if test x${hostname} = x ; then
34483   hostname="localhost"
34484 fi
34485 case "$DISTNAME" in
34486 aix)
34487         DISTVER=`uname -r`
34488         PSCMD="ps -e -o pid,comm"
34489         PFILES="${PFILES} \
34490            platforms/aix/Makefile"
34491         TAPEDRIVE="/dev/rmt0.1"
34492   ;;
34493 alpha)
34494         DISTVER=`uname -r`
34495         PTHREAD_LIB="-lpthread -lexc"
34496         if test "${CC}" = "gcc" ; then
34497            lld="lld"
34498            llu="llu"
34499         else
34500            lld="ld"
34501            llu="lu"
34502         fi
34503         TAPEDRIVE="/dev/nrmt0"
34504   ;;
34505 bsdi)
34506         DISTVER=`uname -a |awk '{print $3}'`
34507         TAPEDRIVE="/dev/nrmt0"
34508         PTHREAD_LIB="-pthread"
34509         CFLAGS="${CFLAGS} -pthread"
34510         PSCMD="ps -ax -o pid,command"
34511         lld="qd"
34512         llu="qu"
34513         PFILES="${PFILES} \
34514             platforms/bsdi/Makefile \
34515             platforms/bsdi/bacula-fd \
34516             platforms/bsdi/bacula-sd \
34517             platforms/bsdi/bacula-dir"
34518         largefile_support="yes"
34519   ;;
34520 cygwin)
34521         DISTVER=`uname -a |awk '{print $3}'`
34522         TAPEDRIVE="/dev/nrst0"
34523         WIN32=win32
34524         WCFLAGS="-mwindows"
34525         WLDFLAGS="-mwindows"
34526   ;;
34527 darwin)
34528         DISTVER=`uname -r`
34529         TAPEDRIVE="/dev/nst0"
34530         PSCMD="ps -e -o pid,command"
34531         MACOSX=macosx
34532         PFILES="${PFILES} \
34533            platforms/darwin/Makefile"
34534   ;;
34535 debian)
34536         if `grep -q ubuntu /etc/apt/sources.list`; then
34537            DISTNAME="ubuntu"
34538         fi
34539         DISTVER=`cat /etc/debian_version`
34540         if test -f /etc/lsb-release ; then
34541            . /etc/lsb-release
34542            if test "x$DISTRIB_ID" != "x" ; then
34543               DISTNAME=$DISTRIB_ID
34544            fi
34545            if test "x$DISTRIB_RELEASE" != "x" ; then
34546               DISTVER=$DISTRIB_RELEASE
34547            fi
34548         fi
34549         if test "$DISTNAME" = "Ubuntu" ; then
34550            DISTNAME="ubuntu"
34551         fi
34552         TAPEDRIVE="/dev/nst0"
34553         PSCMD="ps -e -o pid,command"
34554         if test "$DISTNAME" = "ubuntu" ; then
34555            PFILES="${PFILES} \
34556               platforms/ubuntu/Makefile \
34557               platforms/ubuntu/bacula-fd \
34558               platforms/ubuntu/bacula-sd \
34559               platforms/ubuntu/bacula-dir"
34560         else
34561            PFILES="${PFILES} \
34562               platforms/debian/Makefile \
34563               platforms/debian/bacula-fd \
34564               platforms/debian/bacula-sd \
34565               platforms/debian/bacula-dir"
34566         fi
34567   ;;
34568 freebsd)
34569         DISTVER=`uname -a |awk '{print $3}'`
34570         VER=`echo $DISTVER | cut -c 1`
34571         if test x$VER = x4 ; then
34572            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
34573            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
34574         fi
34575         lld="qd"
34576         llu="qu"
34577         TAPEDRIVE="/dev/nrsa0"
34578         PSCMD="ps -ax -o pid,command"
34579         PFILES="${PFILES} \
34580             platforms/freebsd/Makefile \
34581             platforms/freebsd/bacula-fd \
34582             platforms/freebsd/bacula-sd \
34583             platforms/freebsd/bacula-dir"
34584         largefile_support="yes"
34585   ;;
34586 hpux)
34587         PSCMD="UNIX95=1; ps -e -o pid,comm"
34588         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34589         DISTVER=`uname -r`
34590         TAPEDRIVE="/dev/rmt/0hnb"
34591         PTHREAD_LIB="-lpthread"
34592         cat >>confdefs.h <<\_ACEOF
34593 #define _INCLUDE_LONGLONG 1
34594 _ACEOF
34595
34596   ;;
34597 irix)
34598         DISTVER=`uname -r`
34599         TAPEDRIVE="/dev/rmt/0cbn"
34600         PSCMD="ps -e -o pid,comm"
34601         PFILES="${PFILES} \
34602             platforms/irix/Makefile \
34603             platforms/irix/bacula-fd \
34604             platforms/irix/bacula-sd \
34605             platforms/irix/bacula-dir"
34606   ;;
34607 netbsd)
34608         DISTVER=`uname -a |awk '{print $3}'`
34609         lld="qd"
34610         llu="qu"
34611         TAPEDRIVE="/dev/nrst0"
34612         PSCMD="ps -ax -o pid,command"
34613         PTHREAD_LIB="-pthread"
34614         CFLAGS="${CFLAGS} -pthread"
34615   ;;
34616 openbsd)
34617         DISTVER=`uname -a |awk '{print $3}'`
34618         lld="qd"
34619         llu="qu"
34620         TAPEDRIVE="/dev/nrst0"
34621         PSCMD="ps -ax -o pid,command"
34622         PTHREAD_LIB="-pthread"
34623         CFLAGS="${CFLAGS} -pthread"
34624         PFILES="${PFILES} \
34625             platforms/openbsd/Makefile \
34626             platforms/openbsd/bacula-fd \
34627             platforms/openbsd/bacula-sd \
34628             platforms/openbsd/bacula-dir"
34629   ;;
34630 redhat)
34631         if test -f /etc/whitebox-release ; then
34632            f=/etc/whitebox-release
34633         else
34634            f=/etc/redhat-release
34635         fi
34636         if test `cat $f | grep release |\
34637                    cut -f 3 -d ' '`x = "Enterprise"x ; then
34638            DISTVER="Enterprise "`cat $f | grep release |\
34639                     cut -f 6 -d ' '`
34640         else
34641             DISTVER=`cat /etc/redhat-release | grep release |\
34642                      cut -f 5 -d ' '`
34643         fi
34644         TAPEDRIVE="/dev/nst0"
34645         PSCMD="ps -e -o pid,command"
34646         PFILES="${PFILES} \
34647             platforms/redhat/Makefile \
34648             platforms/redhat/bacula-fd \
34649             platforms/redhat/bacula-sd \
34650             platforms/redhat/bacula-dir \
34651             platforms/redhat/bacula.spec \
34652             "
34653   ;;
34654 mandrake)
34655         DISTVER=`cat /etc/mandrake-release | grep release |\
34656            cut -f 5 -d ' '`
34657         TAPEDRIVE="/dev/nst0"
34658         PSCMD="ps -e -o pid,command"
34659         PFILES="${PFILES} \
34660             platforms/mandrake/Makefile \
34661             platforms/mandrake/bacula-fd \
34662             platforms/mandrake/bacula-sd \
34663             platforms/mandrake/bacula-dir \
34664             platforms/mandrake/bacula.spec \
34665             "
34666   ;;
34667 gentoo)
34668         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34669         TAPEDRIVE="/dev/nst0"
34670         PSCMD="ps -e -o pid,command"
34671         PFILES="${PFILES} \
34672             platforms/gentoo/Makefile \
34673          platforms/gentoo/bacula-init \
34674             platforms/gentoo/bacula-fd \
34675             platforms/gentoo/bacula-sd \
34676             platforms/gentoo/bacula-dir"
34677   ;;
34678 slackware)
34679         DISTVER=`cat /etc/slackware-version`
34680         TAPEDRIVE="/dev/nst0"
34681         PSCMD="ps -e -o pid,command"
34682         PFILES="${PFILES} \
34683             platforms/slackware/Makefile \
34684             platforms/slackware/rc.bacula-fd \
34685             platforms/slackware/rc.bacula-sd \
34686             platforms/slackware/rc.bacula-dir\
34687             platforms/slackware/functions.bacula"
34688   ;;
34689 solaris)
34690         DISTVER=`uname -r`
34691         TAPEDRIVE="/dev/rmt/0cbn"
34692         PSCMD="ps -e -o pid,comm"
34693         PFILES="${PFILES} \
34694             platforms/solaris/Makefile \
34695             platforms/solaris/bacula-fd \
34696             platforms/solaris/bacula-sd \
34697             platforms/solaris/bacula-dir"
34698         if test x$DISTVER = x5.6 ; then
34699             cat >>confdefs.h <<\_ACEOF
34700 #define HAVE_OLD_SOCKOPT 1
34701 _ACEOF
34702
34703         fi
34704         LIBS="$LIBS -lresolv"
34705   ;;
34706 suse)
34707         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34708             cut -f 3 -d ' '`
34709         TAPEDRIVE="/dev/nst0"
34710         PSCMD="ps -e -o pid,command"
34711         PFILES="${PFILES} \
34712             platforms/suse/Makefile \
34713             platforms/suse/bacula-fd \
34714             platforms/suse/bacula-sd \
34715             platforms/suse/bacula-dir \
34716             platforms/suse/bacula \
34717             platforms/suse/bacula.spec"
34718   ;;
34719 suse5)
34720         DISTNAME=suse
34721         DISTVER=5.x
34722         TAPEDRIVE="/dev/nst0"
34723         PSCMD="ps -e -o pid,command"
34724         PFILES="${PFILES} \
34725             platforms/suse/Makefile \
34726             platforms/suse/bacula-fd \
34727             platforms/suse/bacula-sd \
34728             platforms/suse/bacula-dir"
34729   ;;
34730 unknown)
34731         DISTVER=unknown
34732         TAPEDRIVE="/dev/nst0"
34733   ;;
34734 *)
34735   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34736   ;;
34737 esac
34738
34739
34740
34741 LIBS="$PTHREAD_LIB $LIBS"
34742
34743 cat >>confdefs.h <<_ACEOF
34744 #define lld "$lld"
34745 _ACEOF
34746
34747 cat >>confdefs.h <<_ACEOF
34748 #define llu "$llu"
34749 _ACEOF
34750
34751
34752
34753
34754
34755
34756
34757
34758 MCOMMON=./autoconf/Make.common
34759
34760
34761 if test "x${subsysdir}" = "x${sbindir}" ; then
34762    echo " "
34763    echo " "
34764    echo "You have set both --sbindir and --with-subsys-dir"
34765    echo "  equal to: ${subsysdir} "
34766    echo "This is not permitted. Please reconfigure."
34767    echo " "
34768    echo "Aborting configuration ..."
34769    echo " "
34770    echo " "
34771    exit 1
34772 fi
34773
34774 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"
34775
34776 ac_config_commands="$ac_config_commands default"
34777
34778 cat >confcache <<\_ACEOF
34779 # This file is a shell script that caches the results of configure
34780 # tests run on this system so they can be shared between configure
34781 # scripts and configure runs, see configure's option --config-cache.
34782 # It is not useful on other systems.  If it contains results you don't
34783 # want to keep, you may remove or edit it.
34784 #
34785 # config.status only pays attention to the cache file if you give it
34786 # the --recheck option to rerun configure.
34787 #
34788 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34790 # following values.
34791
34792 _ACEOF
34793
34794 # The following way of writing the cache mishandles newlines in values,
34795 # but we know of no workaround that is simple, portable, and efficient.
34796 # So, we kill variables containing newlines.
34797 # Ultrix sh set writes to stderr and can't be redirected directly,
34798 # and sets the high bit in the cache file unless we assign to the vars.
34799 (
34800   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34801     eval ac_val=\$$ac_var
34802     case $ac_val in #(
34803     *${as_nl}*)
34804       case $ac_var in #(
34805       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34806 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34807       esac
34808       case $ac_var in #(
34809       _ | IFS | as_nl) ;; #(
34810       *) $as_unset $ac_var ;;
34811       esac ;;
34812     esac
34813   done
34814
34815   (set) 2>&1 |
34816     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34817     *${as_nl}ac_space=\ *)
34818       # `set' does not quote correctly, so add quotes (double-quote
34819       # substitution turns \\\\ into \\, and sed turns \\ into \).
34820       sed -n \
34821         "s/'/'\\\\''/g;
34822           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34823       ;; #(
34824     *)
34825       # `set' quotes correctly as required by POSIX, so do not add quotes.
34826       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34827       ;;
34828     esac |
34829     sort
34830 ) |
34831   sed '
34832      /^ac_cv_env_/b end
34833      t clear
34834      :clear
34835      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34836      t end
34837      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34838      :end' >>confcache
34839 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34840   if test -w "$cache_file"; then
34841     test "x$cache_file" != "x/dev/null" &&
34842       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34843 echo "$as_me: updating cache $cache_file" >&6;}
34844     cat confcache >$cache_file
34845   else
34846     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34847 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34848   fi
34849 fi
34850 rm -f confcache
34851
34852 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34853 # Let make expand exec_prefix.
34854 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34855
34856 DEFS=-DHAVE_CONFIG_H
34857
34858 ac_libobjs=
34859 ac_ltlibobjs=
34860 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34861   # 1. Remove the extension, and $U if already installed.
34862   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34863   ac_i=`echo "$ac_i" | sed "$ac_script"`
34864   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34865   #    will be set to the directory where LIBOBJS objects are built.
34866   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34867   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34868 done
34869 LIBOBJS=$ac_libobjs
34870
34871 LTLIBOBJS=$ac_ltlibobjs
34872
34873
34874
34875 : ${CONFIG_STATUS=./config.status}
34876 ac_clean_files_save=$ac_clean_files
34877 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34878 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34879 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34880 cat >$CONFIG_STATUS <<_ACEOF
34881 #! $SHELL
34882 # Generated by $as_me.
34883 # Run this file to recreate the current configuration.
34884 # Compiler output produced by configure, useful for debugging
34885 # configure, is in config.log if it exists.
34886
34887 debug=false
34888 ac_cs_recheck=false
34889 ac_cs_silent=false
34890 SHELL=\${CONFIG_SHELL-$SHELL}
34891 _ACEOF
34892
34893 cat >>$CONFIG_STATUS <<\_ACEOF
34894 ## --------------------- ##
34895 ## M4sh Initialization.  ##
34896 ## --------------------- ##
34897
34898 # Be more Bourne compatible
34899 DUALCASE=1; export DUALCASE # for MKS sh
34900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34901   emulate sh
34902   NULLCMD=:
34903   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34904   # is contrary to our usage.  Disable this feature.
34905   alias -g '${1+"$@"}'='"$@"'
34906   setopt NO_GLOB_SUBST
34907 else
34908   case `(set -o) 2>/dev/null` in
34909   *posix*) set -o posix ;;
34910 esac
34911
34912 fi
34913
34914
34915
34916
34917 # PATH needs CR
34918 # Avoid depending upon Character Ranges.
34919 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34920 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34921 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34922 as_cr_digits='0123456789'
34923 as_cr_alnum=$as_cr_Letters$as_cr_digits
34924
34925 # The user is always right.
34926 if test "${PATH_SEPARATOR+set}" != set; then
34927   echo "#! /bin/sh" >conf$$.sh
34928   echo  "exit 0"   >>conf$$.sh
34929   chmod +x conf$$.sh
34930   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34931     PATH_SEPARATOR=';'
34932   else
34933     PATH_SEPARATOR=:
34934   fi
34935   rm -f conf$$.sh
34936 fi
34937
34938 # Support unset when possible.
34939 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34940   as_unset=unset
34941 else
34942   as_unset=false
34943 fi
34944
34945
34946 # IFS
34947 # We need space, tab and new line, in precisely that order.  Quoting is
34948 # there to prevent editors from complaining about space-tab.
34949 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34950 # splitting by setting IFS to empty value.)
34951 as_nl='
34952 '
34953 IFS=" ""        $as_nl"
34954
34955 # Find who we are.  Look in the path if we contain no directory separator.
34956 case $0 in
34957   *[\\/]* ) as_myself=$0 ;;
34958   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34959 for as_dir in $PATH
34960 do
34961   IFS=$as_save_IFS
34962   test -z "$as_dir" && as_dir=.
34963   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34964 done
34965 IFS=$as_save_IFS
34966
34967      ;;
34968 esac
34969 # We did not find ourselves, most probably we were run as `sh COMMAND'
34970 # in which case we are not to be found in the path.
34971 if test "x$as_myself" = x; then
34972   as_myself=$0
34973 fi
34974 if test ! -f "$as_myself"; then
34975   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34976   { (exit 1); exit 1; }
34977 fi
34978
34979 # Work around bugs in pre-3.0 UWIN ksh.
34980 for as_var in ENV MAIL MAILPATH
34981 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34982 done
34983 PS1='$ '
34984 PS2='> '
34985 PS4='+ '
34986
34987 # NLS nuisances.
34988 for as_var in \
34989   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34990   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34991   LC_TELEPHONE LC_TIME
34992 do
34993   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34994     eval $as_var=C; export $as_var
34995   else
34996     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34997   fi
34998 done
34999
35000 # Required to use basename.
35001 if expr a : '\(a\)' >/dev/null 2>&1 &&
35002    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35003   as_expr=expr
35004 else
35005   as_expr=false
35006 fi
35007
35008 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35009   as_basename=basename
35010 else
35011   as_basename=false
35012 fi
35013
35014
35015 # Name of the executable.
35016 as_me=`$as_basename -- "$0" ||
35017 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35018          X"$0" : 'X\(//\)$' \| \
35019          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35020 echo X/"$0" |
35021     sed '/^.*\/\([^/][^/]*\)\/*$/{
35022             s//\1/
35023             q
35024           }
35025           /^X\/\(\/\/\)$/{
35026             s//\1/
35027             q
35028           }
35029           /^X\/\(\/\).*/{
35030             s//\1/
35031             q
35032           }
35033           s/.*/./; q'`
35034
35035 # CDPATH.
35036 $as_unset CDPATH
35037
35038
35039
35040   as_lineno_1=$LINENO
35041   as_lineno_2=$LINENO
35042   test "x$as_lineno_1" != "x$as_lineno_2" &&
35043   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35044
35045   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35046   # uniformly replaced by the line number.  The first 'sed' inserts a
35047   # line-number line after each line using $LINENO; the second 'sed'
35048   # does the real work.  The second script uses 'N' to pair each
35049   # line-number line with the line containing $LINENO, and appends
35050   # trailing '-' during substitution so that $LINENO is not a special
35051   # case at line end.
35052   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35053   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35054   # E. McMahon (1931-1989) for sed's syntax.  :-)
35055   sed -n '
35056     p
35057     /[$]LINENO/=
35058   ' <$as_myself |
35059     sed '
35060       s/[$]LINENO.*/&-/
35061       t lineno
35062       b
35063       :lineno
35064       N
35065       :loop
35066       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35067       t loop
35068       s/-\n.*//
35069     ' >$as_me.lineno &&
35070   chmod +x "$as_me.lineno" ||
35071     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35072    { (exit 1); exit 1; }; }
35073
35074   # Don't try to exec as it changes $[0], causing all sort of problems
35075   # (the dirname of $[0] is not the place where we might find the
35076   # original and so on.  Autoconf is especially sensitive to this).
35077   . "./$as_me.lineno"
35078   # Exit status is that of the last command.
35079   exit
35080 }
35081
35082
35083 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35084   as_dirname=dirname
35085 else
35086   as_dirname=false
35087 fi
35088
35089 ECHO_C= ECHO_N= ECHO_T=
35090 case `echo -n x` in
35091 -n*)
35092   case `echo 'x\c'` in
35093   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35094   *)   ECHO_C='\c';;
35095   esac;;
35096 *)
35097   ECHO_N='-n';;
35098 esac
35099
35100 if expr a : '\(a\)' >/dev/null 2>&1 &&
35101    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35102   as_expr=expr
35103 else
35104   as_expr=false
35105 fi
35106
35107 rm -f conf$$ conf$$.exe conf$$.file
35108 if test -d conf$$.dir; then
35109   rm -f conf$$.dir/conf$$.file
35110 else
35111   rm -f conf$$.dir
35112   mkdir conf$$.dir
35113 fi
35114 echo >conf$$.file
35115 if ln -s conf$$.file conf$$ 2>/dev/null; then
35116   as_ln_s='ln -s'
35117   # ... but there are two gotchas:
35118   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35119   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35120   # In both cases, we have to default to `cp -p'.
35121   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35122     as_ln_s='cp -p'
35123 elif ln conf$$.file conf$$ 2>/dev/null; then
35124   as_ln_s=ln
35125 else
35126   as_ln_s='cp -p'
35127 fi
35128 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35129 rmdir conf$$.dir 2>/dev/null
35130
35131 if mkdir -p . 2>/dev/null; then
35132   as_mkdir_p=:
35133 else
35134   test -d ./-p && rmdir ./-p
35135   as_mkdir_p=false
35136 fi
35137
35138 if test -x / >/dev/null 2>&1; then
35139   as_test_x='test -x'
35140 else
35141   if ls -dL / >/dev/null 2>&1; then
35142     as_ls_L_option=L
35143   else
35144     as_ls_L_option=
35145   fi
35146   as_test_x='
35147     eval sh -c '\''
35148       if test -d "$1"; then
35149         test -d "$1/.";
35150       else
35151         case $1 in
35152         -*)set "./$1";;
35153         esac;
35154         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35155         ???[sx]*):;;*)false;;esac;fi
35156     '\'' sh
35157   '
35158 fi
35159 as_executable_p=$as_test_x
35160
35161 # Sed expression to map a string onto a valid CPP name.
35162 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35163
35164 # Sed expression to map a string onto a valid variable name.
35165 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35166
35167
35168 exec 6>&1
35169
35170 # Save the log message, to keep $[0] and so on meaningful, and to
35171 # report actual input values of CONFIG_FILES etc. instead of their
35172 # values after options handling.
35173 ac_log="
35174 This file was extended by $as_me, which was
35175 generated by GNU Autoconf 2.61.  Invocation command line was
35176
35177   CONFIG_FILES    = $CONFIG_FILES
35178   CONFIG_HEADERS  = $CONFIG_HEADERS
35179   CONFIG_LINKS    = $CONFIG_LINKS
35180   CONFIG_COMMANDS = $CONFIG_COMMANDS
35181   $ $0 $@
35182
35183 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35184 "
35185
35186 _ACEOF
35187
35188 cat >>$CONFIG_STATUS <<_ACEOF
35189 # Files that config.status was made for.
35190 config_files="$ac_config_files"
35191 config_headers="$ac_config_headers"
35192 config_commands="$ac_config_commands"
35193
35194 _ACEOF
35195
35196 cat >>$CONFIG_STATUS <<\_ACEOF
35197 ac_cs_usage="\
35198 \`$as_me' instantiates files from templates according to the
35199 current configuration.
35200
35201 Usage: $0 [OPTIONS] [FILE]...
35202
35203   -h, --help       print this help, then exit
35204   -V, --version    print version number and configuration settings, then exit
35205   -q, --quiet      do not print progress messages
35206   -d, --debug      don't remove temporary files
35207       --recheck    update $as_me by reconfiguring in the same conditions
35208   --file=FILE[:TEMPLATE]
35209                    instantiate the configuration file FILE
35210   --header=FILE[:TEMPLATE]
35211                    instantiate the configuration header FILE
35212
35213 Configuration files:
35214 $config_files
35215
35216 Configuration headers:
35217 $config_headers
35218
35219 Configuration commands:
35220 $config_commands
35221
35222 Report bugs to <bug-autoconf@gnu.org>."
35223
35224 _ACEOF
35225 cat >>$CONFIG_STATUS <<_ACEOF
35226 ac_cs_version="\\
35227 config.status
35228 configured by $0, generated by GNU Autoconf 2.61,
35229   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35230
35231 Copyright (C) 2006 Free Software Foundation, Inc.
35232 This config.status script is free software; the Free Software Foundation
35233 gives unlimited permission to copy, distribute and modify it."
35234
35235 ac_pwd='$ac_pwd'
35236 srcdir='$srcdir'
35237 INSTALL='$INSTALL'
35238 _ACEOF
35239
35240 cat >>$CONFIG_STATUS <<\_ACEOF
35241 # If no file are specified by the user, then we need to provide default
35242 # value.  By we need to know if files were specified by the user.
35243 ac_need_defaults=:
35244 while test $# != 0
35245 do
35246   case $1 in
35247   --*=*)
35248     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35249     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35250     ac_shift=:
35251     ;;
35252   *)
35253     ac_option=$1
35254     ac_optarg=$2
35255     ac_shift=shift
35256     ;;
35257   esac
35258
35259   case $ac_option in
35260   # Handling of the options.
35261   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35262     ac_cs_recheck=: ;;
35263   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35264     echo "$ac_cs_version"; exit ;;
35265   --debug | --debu | --deb | --de | --d | -d )
35266     debug=: ;;
35267   --file | --fil | --fi | --f )
35268     $ac_shift
35269     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35270     ac_need_defaults=false;;
35271   --header | --heade | --head | --hea )
35272     $ac_shift
35273     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35274     ac_need_defaults=false;;
35275   --he | --h)
35276     # Conflict between --help and --header
35277     { echo "$as_me: error: ambiguous option: $1
35278 Try \`$0 --help' for more information." >&2
35279    { (exit 1); exit 1; }; };;
35280   --help | --hel | -h )
35281     echo "$ac_cs_usage"; exit ;;
35282   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35283   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35284     ac_cs_silent=: ;;
35285
35286   # This is an error.
35287   -*) { echo "$as_me: error: unrecognized option: $1
35288 Try \`$0 --help' for more information." >&2
35289    { (exit 1); exit 1; }; } ;;
35290
35291   *) ac_config_targets="$ac_config_targets $1"
35292      ac_need_defaults=false ;;
35293
35294   esac
35295   shift
35296 done
35297
35298 ac_configure_extra_args=
35299
35300 if $ac_cs_silent; then
35301   exec 6>/dev/null
35302   ac_configure_extra_args="$ac_configure_extra_args --silent"
35303 fi
35304
35305 _ACEOF
35306 cat >>$CONFIG_STATUS <<_ACEOF
35307 if \$ac_cs_recheck; then
35308   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35309   CONFIG_SHELL=$SHELL
35310   export CONFIG_SHELL
35311   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35312 fi
35313
35314 _ACEOF
35315 cat >>$CONFIG_STATUS <<\_ACEOF
35316 exec 5>>config.log
35317 {
35318   echo
35319   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35320 ## Running $as_me. ##
35321 _ASBOX
35322   echo "$ac_log"
35323 } >&5
35324
35325 _ACEOF
35326 cat >>$CONFIG_STATUS <<_ACEOF
35327 #
35328 # INIT-COMMANDS
35329 #
35330 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35331     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
35332     # from automake.
35333     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35334     # Capture the value of LINGUAS because we need it to compute CATALOGS.
35335     LINGUAS="${LINGUAS-%UNSET%}"
35336
35337
35338 _ACEOF
35339
35340 cat >>$CONFIG_STATUS <<\_ACEOF
35341
35342 # Handling of arguments.
35343 for ac_config_target in $ac_config_targets
35344 do
35345   case $ac_config_target in
35346     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
35347     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35348     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
35349     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35350     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
35351     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
35352     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
35353     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
35354     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
35355     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
35356     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
35357     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
35358     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
35359     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
35360     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
35361     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
35362     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
35363     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
35364     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
35365     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
35366     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
35367     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
35368     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
35369     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
35370     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
35371     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
35372     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
35373     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
35374     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
35375     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
35376     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
35377     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
35378     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
35379     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
35380     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
35381     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
35382     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
35383     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
35384     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
35385     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
35386     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
35387     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
35388     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
35389     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
35390     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
35391     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
35392     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
35393     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
35394     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
35395     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
35396     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
35397     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
35398     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
35399     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
35400     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
35401     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
35402     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
35403     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
35404     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
35405     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
35406     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
35407     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
35408     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
35409     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
35410     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
35411     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
35412     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
35413     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
35414     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
35415     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
35416     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
35417     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
35418     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
35419     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
35420     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
35421     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
35422     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
35423     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
35424     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
35425     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
35426     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
35427     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
35428     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
35429     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
35430     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
35431     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
35432     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
35433     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
35434     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
35435     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
35436     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
35437     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
35438     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
35439     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
35440     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
35441     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
35442     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
35443     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
35444     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
35445     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
35446     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
35447     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
35448     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
35449     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
35450     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
35451     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
35452     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
35453     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
35454     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
35455     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
35456     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35457
35458   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35459 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35460    { (exit 1); exit 1; }; };;
35461   esac
35462 done
35463
35464
35465 # If the user did not use the arguments to specify the items to instantiate,
35466 # then the envvar interface is used.  Set only those that are not.
35467 # We use the long form for the default assignment because of an extremely
35468 # bizarre bug on SunOS 4.1.3.
35469 if $ac_need_defaults; then
35470   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35471   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35472   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35473 fi
35474
35475 # Have a temporary directory for convenience.  Make it in the build tree
35476 # simply because there is no reason against having it here, and in addition,
35477 # creating and moving files from /tmp can sometimes cause problems.
35478 # Hook for its removal unless debugging.
35479 # Note that there is a small window in which the directory will not be cleaned:
35480 # after its creation but before its name has been assigned to `$tmp'.
35481 $debug ||
35482 {
35483   tmp=
35484   trap 'exit_status=$?
35485   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35486 ' 0
35487   trap '{ (exit 1); exit 1; }' 1 2 13 15
35488 }
35489 # Create a (secure) tmp directory for tmp files.
35490
35491 {
35492   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35493   test -n "$tmp" && test -d "$tmp"
35494 }  ||
35495 {
35496   tmp=./conf$$-$RANDOM
35497   (umask 077 && mkdir "$tmp")
35498 } ||
35499 {
35500    echo "$me: cannot create a temporary directory in ." >&2
35501    { (exit 1); exit 1; }
35502 }
35503
35504 #
35505 # Set up the sed scripts for CONFIG_FILES section.
35506 #
35507
35508 # No need to generate the scripts if there are no CONFIG_FILES.
35509 # This happens for instance when ./config.status config.h
35510 if test -n "$CONFIG_FILES"; then
35511
35512 _ACEOF
35513
35514 # Create sed commands to just substitute file output variables.
35515
35516 # Remaining file output variables are in a fragment that also has non-file
35517 # output varibles.
35518
35519
35520
35521 ac_delim='%!_!# '
35522 for ac_last_try in false false false false false :; do
35523   cat >conf$$subs.sed <<_ACEOF
35524 SHELL!$SHELL$ac_delim
35525 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35526 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35527 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35528 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35529 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35530 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35531 exec_prefix!$exec_prefix$ac_delim
35532 prefix!$prefix$ac_delim
35533 program_transform_name!$program_transform_name$ac_delim
35534 bindir!$bindir$ac_delim
35535 sbindir!$sbindir$ac_delim
35536 libexecdir!$libexecdir$ac_delim
35537 datarootdir!$datarootdir$ac_delim
35538 datadir!$datadir$ac_delim
35539 sysconfdir!$sysconfdir$ac_delim
35540 sharedstatedir!$sharedstatedir$ac_delim
35541 localstatedir!$localstatedir$ac_delim
35542 includedir!$includedir$ac_delim
35543 oldincludedir!$oldincludedir$ac_delim
35544 docdir!$docdir$ac_delim
35545 infodir!$infodir$ac_delim
35546 htmldir!$htmldir$ac_delim
35547 dvidir!$dvidir$ac_delim
35548 pdfdir!$pdfdir$ac_delim
35549 psdir!$psdir$ac_delim
35550 libdir!$libdir$ac_delim
35551 localedir!$localedir$ac_delim
35552 mandir!$mandir$ac_delim
35553 DEFS!$DEFS$ac_delim
35554 ECHO_C!$ECHO_C$ac_delim
35555 ECHO_N!$ECHO_N$ac_delim
35556 ECHO_T!$ECHO_T$ac_delim
35557 LIBS!$LIBS$ac_delim
35558 build_alias!$build_alias$ac_delim
35559 host_alias!$host_alias$ac_delim
35560 target_alias!$target_alias$ac_delim
35561 BUILD_DIR!$BUILD_DIR$ac_delim
35562 TOP_DIR!$TOP_DIR$ac_delim
35563 TRUEPRG!$TRUEPRG$ac_delim
35564 FALSEPRG!$FALSEPRG$ac_delim
35565 VERSION!$VERSION$ac_delim
35566 DATE!$DATE$ac_delim
35567 LSMDATE!$LSMDATE$ac_delim
35568 CC!$CC$ac_delim
35569 CFLAGS!$CFLAGS$ac_delim
35570 LDFLAGS!$LDFLAGS$ac_delim
35571 CPPFLAGS!$CPPFLAGS$ac_delim
35572 ac_ct_CC!$ac_ct_CC$ac_delim
35573 EXEEXT!$EXEEXT$ac_delim
35574 OBJEXT!$OBJEXT$ac_delim
35575 CXX!$CXX$ac_delim
35576 CXXFLAGS!$CXXFLAGS$ac_delim
35577 ac_ct_CXX!$ac_ct_CXX$ac_delim
35578 CPP!$CPP$ac_delim
35579 GREP!$GREP$ac_delim
35580 EGREP!$EGREP$ac_delim
35581 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35582 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35583 INSTALL_DATA!$INSTALL_DATA$ac_delim
35584 RANLIB!$RANLIB$ac_delim
35585 MV!$MV$ac_delim
35586 RM!$RM$ac_delim
35587 CP!$CP$ac_delim
35588 SED!$SED$ac_delim
35589 ECHO!$ECHO$ac_delim
35590 CMP!$CMP$ac_delim
35591 TBL!$TBL$ac_delim
35592 AR!$AR$ac_delim
35593 OPENSSL!$OPENSSL$ac_delim
35594 MTX!$MTX$ac_delim
35595 DD!$DD$ac_delim
35596 MKISOFS!$MKISOFS$ac_delim
35597 PYTHON!$PYTHON$ac_delim
35598 GROWISOFS!$GROWISOFS$ac_delim
35599 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35600 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35601 PKGCONFIG!$PKGCONFIG$ac_delim
35602 QMAKE!$QMAKE$ac_delim
35603 QMAKEQT4!$QMAKEQT4$ac_delim
35604 WXCONFIG!$WXCONFIG$ac_delim
35605 WXFLAGS!$WXFLAGS$ac_delim
35606 CDRECORD!$CDRECORD$ac_delim
35607 PIDOF!$PIDOF$ac_delim
35608 AWK!$AWK$ac_delim
35609 ARFLAGS!$ARFLAGS$ac_delim
35610 MAKE_SHELL!$MAKE_SHELL$ac_delim
35611 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35612 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35613 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35614 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35615 build!$build$ac_delim
35616 build_cpu!$build_cpu$ac_delim
35617 build_vendor!$build_vendor$ac_delim
35618 _ACEOF
35619
35620   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35621     break
35622   elif $ac_last_try; then
35623     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35624 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35625    { (exit 1); exit 1; }; }
35626   else
35627     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35628   fi
35629 done
35630
35631 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35632 if test -n "$ac_eof"; then
35633   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35634   ac_eof=`expr $ac_eof + 1`
35635 fi
35636
35637 cat >>$CONFIG_STATUS <<_ACEOF
35638 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35640 /^[      ]*@MCOMMON@[    ]*$/{
35641 r $MCOMMON
35642 d
35643 }
35644 _ACEOF
35645 sed '
35646 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35647 s/^/s,@/; s/!/@,|#_!!_#|/
35648 :n
35649 t n
35650 s/'"$ac_delim"'$/,g/; t
35651 s/$/\\/; p
35652 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35653 ' >>$CONFIG_STATUS <conf$$subs.sed
35654 rm -f conf$$subs.sed
35655 cat >>$CONFIG_STATUS <<_ACEOF
35656 CEOF$ac_eof
35657 _ACEOF
35658
35659
35660 ac_delim='%!_!# '
35661 for ac_last_try in false false false false false :; do
35662   cat >conf$$subs.sed <<_ACEOF
35663 build_os!$build_os$ac_delim
35664 host!$host$ac_delim
35665 host_cpu!$host_cpu$ac_delim
35666 host_vendor!$host_vendor$ac_delim
35667 host_os!$host_os$ac_delim
35668 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35669 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35670 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35671 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35672 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35673 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35674 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35675 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35676 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35677 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35678 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35679 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35680 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35681 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35682 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35683 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35684 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35685 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35686 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35687 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35688 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35689 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35690 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35691 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35692 SET_MAKE!$SET_MAKE$ac_delim
35693 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35694 USE_NLS!$USE_NLS$ac_delim
35695 MSGFMT!$MSGFMT$ac_delim
35696 GMSGFMT!$GMSGFMT$ac_delim
35697 XGETTEXT!$XGETTEXT$ac_delim
35698 MSGMERGE!$MSGMERGE$ac_delim
35699 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35700 LIBICONV!$LIBICONV$ac_delim
35701 LTLIBICONV!$LTLIBICONV$ac_delim
35702 INTLLIBS!$INTLLIBS$ac_delim
35703 LIBINTL!$LIBINTL$ac_delim
35704 LTLIBINTL!$LTLIBINTL$ac_delim
35705 POSUB!$POSUB$ac_delim
35706 GLIBC2!$GLIBC2$ac_delim
35707 ALLOCA!$ALLOCA$ac_delim
35708 GLIBC21!$GLIBC21$ac_delim
35709 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35710 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35711 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35712 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35713 INTLBISON!$INTLBISON$ac_delim
35714 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35715 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35716 CATOBJEXT!$CATOBJEXT$ac_delim
35717 DATADIRNAME!$DATADIRNAME$ac_delim
35718 INSTOBJEXT!$INSTOBJEXT$ac_delim
35719 GENCAT!$GENCAT$ac_delim
35720 INTLOBJS!$INTLOBJS$ac_delim
35721 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35722 BDB_CPPFLAGS!$BDB_CPPFLAGS$ac_delim
35723 BDB_LIBS!$BDB_LIBS$ac_delim
35724 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35725 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35726 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35727 GNOME_LIBS!$GNOME_LIBS$ac_delim
35728 GNOME_DIR!$GNOME_DIR$ac_delim
35729 BAT_DIR!$BAT_DIR$ac_delim
35730 QWT_INC!$QWT_INC$ac_delim
35731 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
35732 QWT_LIB!$QWT_LIB$ac_delim
35733 QWT!$QWT$ac_delim
35734 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35735 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35736 WX_DIR!$WX_DIR$ac_delim
35737 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35738 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35739 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35740 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35741 STATIC_FD!$STATIC_FD$ac_delim
35742 STATIC_SD!$STATIC_SD$ac_delim
35743 STATIC_DIR!$STATIC_DIR$ac_delim
35744 STATIC_CONS!$STATIC_CONS$ac_delim
35745 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35746 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35747 ALL_DIRS!$ALL_DIRS$ac_delim
35748 DIRD_DIR!$DIRD_DIR$ac_delim
35749 DIR_TOOLS!$DIR_TOOLS$ac_delim
35750 STORED_DIR!$STORED_DIR$ac_delim
35751 CONS_INC!$CONS_INC$ac_delim
35752 CONS_OBJ!$CONS_OBJ$ac_delim
35753 CONS_SRC!$CONS_SRC$ac_delim
35754 CONS_LIBS!$CONS_LIBS$ac_delim
35755 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35756 READLINE_SRC!$READLINE_SRC$ac_delim
35757 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35758 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35759 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35760 _ACEOF
35761
35762   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35763     break
35764   elif $ac_last_try; then
35765     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35766 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35767    { (exit 1); exit 1; }; }
35768   else
35769     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35770   fi
35771 done
35772
35773 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35774 if test -n "$ac_eof"; then
35775   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35776   ac_eof=`expr $ac_eof + 1`
35777 fi
35778
35779 cat >>$CONFIG_STATUS <<_ACEOF
35780 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35782 _ACEOF
35783 sed '
35784 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35785 s/^/s,@/; s/!/@,|#_!!_#|/
35786 :n
35787 t n
35788 s/'"$ac_delim"'$/,g/; t
35789 s/$/\\/; p
35790 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35791 ' >>$CONFIG_STATUS <conf$$subs.sed
35792 rm -f conf$$subs.sed
35793 cat >>$CONFIG_STATUS <<_ACEOF
35794 CEOF$ac_eof
35795 _ACEOF
35796
35797
35798 ac_delim='%!_!# '
35799 for ac_last_try in false false false false false :; do
35800   cat >conf$$subs.sed <<_ACEOF
35801 OPENSSL_INC!$OPENSSL_INC$ac_delim
35802 working_dir!$working_dir$ac_delim
35803 archivedir!$archivedir$ac_delim
35804 scriptdir!$scriptdir$ac_delim
35805 plugindir!$plugindir$ac_delim
35806 dump_email!$dump_email$ac_delim
35807 job_email!$job_email$ac_delim
35808 smtp_host!$smtp_host$ac_delim
35809 piddir!$piddir$ac_delim
35810 subsysdir!$subsysdir$ac_delim
35811 baseport!$baseport$ac_delim
35812 dir_port!$dir_port$ac_delim
35813 fd_port!$fd_port$ac_delim
35814 sd_port!$sd_port$ac_delim
35815 dir_password!$dir_password$ac_delim
35816 fd_password!$fd_password$ac_delim
35817 sd_password!$sd_password$ac_delim
35818 mon_dir_password!$mon_dir_password$ac_delim
35819 mon_fd_password!$mon_fd_password$ac_delim
35820 mon_sd_password!$mon_sd_password$ac_delim
35821 db_name!$db_name$ac_delim
35822 db_user!$db_user$ac_delim
35823 db_password!$db_password$ac_delim
35824 db_port!$db_port$ac_delim
35825 dir_user!$dir_user$ac_delim
35826 dir_group!$dir_group$ac_delim
35827 sd_user!$sd_user$ac_delim
35828 sd_group!$sd_group$ac_delim
35829 fd_user!$fd_user$ac_delim
35830 fd_group!$fd_group$ac_delim
35831 SBINPERM!$SBINPERM$ac_delim
35832 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35833 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35834 SQL_BINDIR!$SQL_BINDIR$ac_delim
35835 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
35836 uncomment_dbi!$uncomment_dbi$ac_delim
35837 DB_PROG!$DB_PROG$ac_delim
35838 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
35839 cats!$cats$ac_delim
35840 DB_TYPE!$DB_TYPE$ac_delim
35841 GETCONF!$GETCONF$ac_delim
35842 XMKMF!$XMKMF$ac_delim
35843 X_CFLAGS!$X_CFLAGS$ac_delim
35844 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35845 X_LIBS!$X_LIBS$ac_delim
35846 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35847 LIBOBJS!$LIBOBJS$ac_delim
35848 FDLIBS!$FDLIBS$ac_delim
35849 DEBUG!$DEBUG$ac_delim
35850 DINCLUDE!$DINCLUDE$ac_delim
35851 DLIB!$DLIB$ac_delim
35852 DB_LIBS!$DB_LIBS$ac_delim
35853 WCFLAGS!$WCFLAGS$ac_delim
35854 WLDFLAGS!$WLDFLAGS$ac_delim
35855 WRAPLIBS!$WRAPLIBS$ac_delim
35856 OBJLIST!$OBJLIST$ac_delim
35857 hostname!$hostname$ac_delim
35858 TAPEDRIVE!$TAPEDRIVE$ac_delim
35859 PSCMD!$PSCMD$ac_delim
35860 WIN32!$WIN32$ac_delim
35861 MACOSX!$MACOSX$ac_delim
35862 DISTNAME!$DISTNAME$ac_delim
35863 DISTVER!$DISTVER$ac_delim
35864 LTLIBOBJS!$LTLIBOBJS$ac_delim
35865 _ACEOF
35866
35867   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
35868     break
35869   elif $ac_last_try; then
35870     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35871 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35872    { (exit 1); exit 1; }; }
35873   else
35874     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35875   fi
35876 done
35877
35878 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35879 if test -n "$ac_eof"; then
35880   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35881   ac_eof=`expr $ac_eof + 1`
35882 fi
35883
35884 cat >>$CONFIG_STATUS <<_ACEOF
35885 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35887 _ACEOF
35888 sed '
35889 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35890 s/^/s,@/; s/!/@,|#_!!_#|/
35891 :n
35892 t n
35893 s/'"$ac_delim"'$/,g/; t
35894 s/$/\\/; p
35895 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35896 ' >>$CONFIG_STATUS <conf$$subs.sed
35897 rm -f conf$$subs.sed
35898 cat >>$CONFIG_STATUS <<_ACEOF
35899 :end
35900 s/|#_!!_#|//g
35901 CEOF$ac_eof
35902 _ACEOF
35903
35904
35905 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35906 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35907 # trailing colons and then remove the whole line if VPATH becomes empty
35908 # (actually we leave an empty line to preserve line numbers).
35909 if test "x$srcdir" = x.; then
35910   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35911 s/:*\$(srcdir):*/:/
35912 s/:*\${srcdir}:*/:/
35913 s/:*@srcdir@:*/:/
35914 s/^\([^=]*=[     ]*\):*/\1/
35915 s/:*$//
35916 s/^[^=]*=[       ]*$//
35917 }'
35918 fi
35919
35920 cat >>$CONFIG_STATUS <<\_ACEOF
35921 fi # test -n "$CONFIG_FILES"
35922
35923
35924 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35925 do
35926   case $ac_tag in
35927   :[FHLC]) ac_mode=$ac_tag; continue;;
35928   esac
35929   case $ac_mode$ac_tag in
35930   :[FHL]*:*);;
35931   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35932 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35933    { (exit 1); exit 1; }; };;
35934   :[FH]-) ac_tag=-:-;;
35935   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35936   esac
35937   ac_save_IFS=$IFS
35938   IFS=:
35939   set x $ac_tag
35940   IFS=$ac_save_IFS
35941   shift
35942   ac_file=$1
35943   shift
35944
35945   case $ac_mode in
35946   :L) ac_source=$1;;
35947   :[FH])
35948     ac_file_inputs=
35949     for ac_f
35950     do
35951       case $ac_f in
35952       -) ac_f="$tmp/stdin";;
35953       *) # Look for the file first in the build tree, then in the source tree
35954          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35955          # because $ac_f cannot contain `:'.
35956          test -f "$ac_f" ||
35957            case $ac_f in
35958            [\\/$]*) false;;
35959            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35960            esac ||
35961            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35962 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35963    { (exit 1); exit 1; }; };;
35964       esac
35965       ac_file_inputs="$ac_file_inputs $ac_f"
35966     done
35967
35968     # Let's still pretend it is `configure' which instantiates (i.e., don't
35969     # use $as_me), people would be surprised to read:
35970     #    /* config.h.  Generated by config.status.  */
35971     configure_input="Generated from "`IFS=:
35972           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35973     if test x"$ac_file" != x-; then
35974       configure_input="$ac_file.  $configure_input"
35975       { echo "$as_me:$LINENO: creating $ac_file" >&5
35976 echo "$as_me: creating $ac_file" >&6;}
35977     fi
35978
35979     case $ac_tag in
35980     *:-:* | *:-) cat >"$tmp/stdin";;
35981     esac
35982     ;;
35983   esac
35984
35985   ac_dir=`$as_dirname -- "$ac_file" ||
35986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35987          X"$ac_file" : 'X\(//\)[^/]' \| \
35988          X"$ac_file" : 'X\(//\)$' \| \
35989          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35990 echo X"$ac_file" |
35991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35992             s//\1/
35993             q
35994           }
35995           /^X\(\/\/\)[^/].*/{
35996             s//\1/
35997             q
35998           }
35999           /^X\(\/\/\)$/{
36000             s//\1/
36001             q
36002           }
36003           /^X\(\/\).*/{
36004             s//\1/
36005             q
36006           }
36007           s/.*/./; q'`
36008   { as_dir="$ac_dir"
36009   case $as_dir in #(
36010   -*) as_dir=./$as_dir;;
36011   esac
36012   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36013     as_dirs=
36014     while :; do
36015       case $as_dir in #(
36016       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36017       *) as_qdir=$as_dir;;
36018       esac
36019       as_dirs="'$as_qdir' $as_dirs"
36020       as_dir=`$as_dirname -- "$as_dir" ||
36021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36022          X"$as_dir" : 'X\(//\)[^/]' \| \
36023          X"$as_dir" : 'X\(//\)$' \| \
36024          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36025 echo X"$as_dir" |
36026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36027             s//\1/
36028             q
36029           }
36030           /^X\(\/\/\)[^/].*/{
36031             s//\1/
36032             q
36033           }
36034           /^X\(\/\/\)$/{
36035             s//\1/
36036             q
36037           }
36038           /^X\(\/\).*/{
36039             s//\1/
36040             q
36041           }
36042           s/.*/./; q'`
36043       test -d "$as_dir" && break
36044     done
36045     test -z "$as_dirs" || eval "mkdir $as_dirs"
36046   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36047 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36048    { (exit 1); exit 1; }; }; }
36049   ac_builddir=.
36050
36051 case "$ac_dir" in
36052 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36053 *)
36054   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36055   # A ".." for each directory in $ac_dir_suffix.
36056   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36057   case $ac_top_builddir_sub in
36058   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36059   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36060   esac ;;
36061 esac
36062 ac_abs_top_builddir=$ac_pwd
36063 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36064 # for backward compatibility:
36065 ac_top_builddir=$ac_top_build_prefix
36066
36067 case $srcdir in
36068   .)  # We are building in place.
36069     ac_srcdir=.
36070     ac_top_srcdir=$ac_top_builddir_sub
36071     ac_abs_top_srcdir=$ac_pwd ;;
36072   [\\/]* | ?:[\\/]* )  # Absolute name.
36073     ac_srcdir=$srcdir$ac_dir_suffix;
36074     ac_top_srcdir=$srcdir
36075     ac_abs_top_srcdir=$srcdir ;;
36076   *) # Relative name.
36077     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36078     ac_top_srcdir=$ac_top_build_prefix$srcdir
36079     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36080 esac
36081 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36082
36083
36084   case $ac_mode in
36085   :F)
36086   #
36087   # CONFIG_FILE
36088   #
36089
36090   case $INSTALL in
36091   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36092   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36093   esac
36094 _ACEOF
36095
36096 cat >>$CONFIG_STATUS <<\_ACEOF
36097 # If the template does not know about datarootdir, expand it.
36098 # FIXME: This hack should be removed a few years after 2.60.
36099 ac_datarootdir_hack=; ac_datarootdir_seen=
36100
36101 case `sed -n '/datarootdir/ {
36102   p
36103   q
36104 }
36105 /@datadir@/p
36106 /@docdir@/p
36107 /@infodir@/p
36108 /@localedir@/p
36109 /@mandir@/p
36110 ' $ac_file_inputs` in
36111 *datarootdir*) ac_datarootdir_seen=yes;;
36112 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36113   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36114 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36115 _ACEOF
36116 cat >>$CONFIG_STATUS <<_ACEOF
36117   ac_datarootdir_hack='
36118   s&@datadir@&$datadir&g
36119   s&@docdir@&$docdir&g
36120   s&@infodir@&$infodir&g
36121   s&@localedir@&$localedir&g
36122   s&@mandir@&$mandir&g
36123     s&\\\${datarootdir}&$datarootdir&g' ;;
36124 esac
36125 _ACEOF
36126
36127 # Neutralize VPATH when `$srcdir' = `.'.
36128 # Shell code in configure.ac might set extrasub.
36129 # FIXME: do we really want to maintain this feature?
36130 cat >>$CONFIG_STATUS <<_ACEOF
36131   sed "$ac_vpsub
36132 $extrasub
36133 _ACEOF
36134 cat >>$CONFIG_STATUS <<\_ACEOF
36135 :t
36136 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36137 s&@configure_input@&$configure_input&;t t
36138 s&@top_builddir@&$ac_top_builddir_sub&;t t
36139 s&@srcdir@&$ac_srcdir&;t t
36140 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36141 s&@top_srcdir@&$ac_top_srcdir&;t t
36142 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36143 s&@builddir@&$ac_builddir&;t t
36144 s&@abs_builddir@&$ac_abs_builddir&;t t
36145 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36146 s&@INSTALL@&$ac_INSTALL&;t t
36147 $ac_datarootdir_hack
36148 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
36149
36150 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36151   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36152   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36153   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36154 which seems to be undefined.  Please make sure it is defined." >&5
36155 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36156 which seems to be undefined.  Please make sure it is defined." >&2;}
36157
36158   rm -f "$tmp/stdin"
36159   case $ac_file in
36160   -) cat "$tmp/out"; rm -f "$tmp/out";;
36161   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36162   esac
36163  ;;
36164   :H)
36165   #
36166   # CONFIG_HEADER
36167   #
36168 _ACEOF
36169
36170 # Transform confdefs.h into a sed script `conftest.defines', that
36171 # substitutes the proper values into config.h.in to produce config.h.
36172 rm -f conftest.defines conftest.tail
36173 # First, append a space to every undef/define line, to ease matching.
36174 echo 's/$/ /' >conftest.defines
36175 # Then, protect against being on the right side of a sed subst, or in
36176 # an unquoted here document, in config.status.  If some macros were
36177 # called several times there might be several #defines for the same
36178 # symbol, which is useless.  But do not sort them, since the last
36179 # AC_DEFINE must be honored.
36180 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36181 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36182 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36183 # PARAMS is the parameter list in the macro definition--in most cases, it's
36184 # just an empty string.
36185 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36186 ac_dB='\\)[      (].*,\\1define\\2'
36187 ac_dC=' '
36188 ac_dD=' ,'
36189
36190 uniq confdefs.h |
36191   sed -n '
36192         t rset
36193         :rset
36194         s/^[     ]*#[    ]*define[       ][      ]*//
36195         t ok
36196         d
36197         :ok
36198         s/[\\&,]/\\&/g
36199         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36200         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36201   ' >>conftest.defines
36202
36203 # Remove the space that was appended to ease matching.
36204 # Then replace #undef with comments.  This is necessary, for
36205 # example, in the case of _POSIX_SOURCE, which is predefined and required
36206 # on some systems where configure will not decide to define it.
36207 # (The regexp can be short, since the line contains either #define or #undef.)
36208 echo 's/ $//
36209 s,^[     #]*u.*,/* & */,' >>conftest.defines
36210
36211 # Break up conftest.defines:
36212 ac_max_sed_lines=50
36213
36214 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36215 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36216 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36217 # et cetera.
36218 ac_in='$ac_file_inputs'
36219 ac_out='"$tmp/out1"'
36220 ac_nxt='"$tmp/out2"'
36221
36222 while :
36223 do
36224   # Write a here document:
36225     cat >>$CONFIG_STATUS <<_ACEOF
36226     # First, check the format of the line:
36227     cat >"\$tmp/defines.sed" <<\\CEOF
36228 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36229 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36230 b
36231 :def
36232 _ACEOF
36233   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36234   echo 'CEOF
36235     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36236   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36237   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36238   grep . conftest.tail >/dev/null || break
36239   rm -f conftest.defines
36240   mv conftest.tail conftest.defines
36241 done
36242 rm -f conftest.defines conftest.tail
36243
36244 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36245 cat >>$CONFIG_STATUS <<\_ACEOF
36246   if test x"$ac_file" != x-; then
36247     echo "/* $configure_input  */" >"$tmp/config.h"
36248     cat "$ac_result" >>"$tmp/config.h"
36249     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36250       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36251 echo "$as_me: $ac_file is unchanged" >&6;}
36252     else
36253       rm -f $ac_file
36254       mv "$tmp/config.h" $ac_file
36255     fi
36256   else
36257     echo "/* $configure_input  */"
36258     cat "$ac_result"
36259   fi
36260   rm -f "$tmp/out12"
36261  ;;
36262
36263   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36264 echo "$as_me: executing $ac_file commands" >&6;}
36265  ;;
36266   esac
36267
36268
36269   case $ac_file$ac_mode in
36270     "default-1":C)
36271     for ac_file in $CONFIG_FILES; do
36272       # Support "outfile[:infile[:infile...]]"
36273       case "$ac_file" in
36274         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36275       esac
36276       # PO directories have a Makefile.in generated from Makefile.in.in.
36277       case "$ac_file" in */Makefile.in)
36278         # Adjust a relative srcdir.
36279         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36280         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
36281         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36282         # In autoconf-2.13 it is called $ac_given_srcdir.
36283         # In autoconf-2.50 it is called $srcdir.
36284         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36285         case "$ac_given_srcdir" in
36286           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36287           /*) top_srcdir="$ac_given_srcdir" ;;
36288           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
36289         esac
36290         # Treat a directory as a PO directory if and only if it has a
36291         # POTFILES.in file. This allows packages to have multiple PO
36292         # directories under different names or in different locations.
36293         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36294           rm -f "$ac_dir/POTFILES"
36295           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36296           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36297           POMAKEFILEDEPS="POTFILES.in"
36298           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
36299           # on $ac_dir but don't depend on user-specified configuration
36300           # parameters.
36301           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36302             # The LINGUAS file contains the set of available languages.
36303             if test -n "$OBSOLETE_ALL_LINGUAS"; then
36304               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
36305             fi
36306             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36307             # Hide the ALL_LINGUAS assigment from automake.
36308             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36309             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36310           else
36311             # The set of available languages was given in configure.in.
36312             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36313           fi
36314           # Compute POFILES
36315           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
36316           # Compute UPDATEPOFILES
36317           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
36318           # Compute DUMMYPOFILES
36319           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
36320           # Compute GMOFILES
36321           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
36322           case "$ac_given_srcdir" in
36323             .) srcdirpre= ;;
36324             *) srcdirpre='$(srcdir)/' ;;
36325           esac
36326           POFILES=
36327           UPDATEPOFILES=
36328           DUMMYPOFILES=
36329           GMOFILES=
36330           for lang in $ALL_LINGUAS; do
36331             POFILES="$POFILES $srcdirpre$lang.po"
36332             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36333             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36334             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36335           done
36336           # CATALOGS depends on both $ac_dir and the user's LINGUAS
36337           # environment variable.
36338           INST_LINGUAS=
36339           if test -n "$ALL_LINGUAS"; then
36340             for presentlang in $ALL_LINGUAS; do
36341               useit=no
36342               if test "%UNSET%" != "$LINGUAS"; then
36343                 desiredlanguages="$LINGUAS"
36344               else
36345                 desiredlanguages="$ALL_LINGUAS"
36346               fi
36347               for desiredlang in $desiredlanguages; do
36348                 # Use the presentlang catalog if desiredlang is
36349                 #   a. equal to presentlang, or
36350                 #   b. a variant of presentlang (because in this case,
36351                 #      presentlang can be used as a fallback for messages
36352                 #      which are not translated in the desiredlang catalog).
36353                 case "$desiredlang" in
36354                   "$presentlang"*) useit=yes;;
36355                 esac
36356               done
36357               if test $useit = yes; then
36358                 INST_LINGUAS="$INST_LINGUAS $presentlang"
36359               fi
36360             done
36361           fi
36362           CATALOGS=
36363           if test -n "$INST_LINGUAS"; then
36364             for lang in $INST_LINGUAS; do
36365               CATALOGS="$CATALOGS $lang.gmo"
36366             done
36367           fi
36368           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36369           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"
36370           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36371             if test -f "$f"; then
36372               case "$f" in
36373                 *.orig | *.bak | *~) ;;
36374                 *) cat "$f" >> "$ac_dir/Makefile" ;;
36375               esac
36376             fi
36377           done
36378         fi
36379         ;;
36380       esac
36381     done ;;
36382     "default":C)
36383  ;;
36384
36385   esac
36386 done # for ac_tag
36387
36388
36389 { (exit 0); exit 0; }
36390 _ACEOF
36391 chmod +x $CONFIG_STATUS
36392 ac_clean_files=$ac_clean_files_save
36393
36394
36395 # configure is writing to config.log, and then calls config.status.
36396 # config.status does its own redirection, appending to config.log.
36397 # Unfortunately, on DOS this fails, as config.log is still kept open
36398 # by configure, so config.status won't be able to write to it; its
36399 # output is simply discarded.  So we exec the FD to /dev/null,
36400 # effectively closing config.log, so it can be properly (re)opened and
36401 # appended to by config.status.  When coming back to configure, we
36402 # need to make the FD available again.
36403 if test "$no_create" != yes; then
36404   ac_cs_success=:
36405   ac_config_status_args=
36406   test "$silent" = yes &&
36407     ac_config_status_args="$ac_config_status_args --quiet"
36408   exec 5>/dev/null
36409   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36410   exec 5>>config.log
36411   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36412   # would make configure fail if this is the last instruction.
36413   $ac_cs_success || { (exit 1); exit 1; }
36414 fi
36415
36416
36417 if test "${support_bat}" = "yes" ; then
36418   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
36419   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
36420   exit 1
36421   fi
36422
36423   QMAKEBIN="qmake"
36424
36425   if test "x$QMAKEQT4" != "xnone"; then
36426     QMAKEBIN=qmake-qt4
36427   fi
36428
36429   cd src/qt-console
36430   chmod 755 install_conf_file build-depkgs-qt-console
36431   echo "Creating bat Makefile"
36432   $QMAKEBIN
36433   make clean
36434   cd ${BUILD_DIR}
36435 fi
36436
36437 echo "Doing make of dependencies"
36438 ${MAKE:-make} depend
36439
36440 cd scripts
36441 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
36442 chmod 755 dvd-handler dvd-simulator
36443 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
36444 cd ..
36445
36446 c=updatedb
36447 chmod 755 $c/update_mysql_tables_10_to_11       $c/update_sqlite3_tables_10_to_11
36448 chmod 755 $c/update_postgresql_tables_10_to_11  $c/update_sqlite_tables_10_to_11
36449
36450 c=src/cats
36451
36452 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
36453 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
36454
36455 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
36456 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
36457
36458 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
36459 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
36460
36461 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
36462 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
36463
36464 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
36465 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
36466
36467 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
36468 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
36469
36470 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
36471 chmod 755 $c/sqlite
36472 chmod 755 $c/mysql
36473
36474 chmod 755 src/win32/build-depkgs-mingw32
36475
36476
36477
36478 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
36479    largefile_support="yes"
36480 fi
36481
36482 #
36483 # A whole lot of hand springs to get the compiler version.
36484 #  This is because gcc changed the output in version 3.0
36485 #
36486 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
36487 if test "x${CCVERSION}" = "x" ; then
36488   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
36489 fi
36490 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
36491 if test x"${CXXVERSION}" = x ; then
36492   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
36493 fi
36494
36495 if test "x${subsysdir}" = "x${sbindir}" ; then
36496    echo " "
36497    echo " "
36498    echo "You have set --sbindir and --with-subsys-dir"
36499    echo "  both equal to: ${subsysdir} "
36500    echo "  This is not permitted. Please reconfigure."
36501    echo " "
36502    echo "Aborting configuration ..."
36503    echo " "
36504    echo " "
36505    exit 1
36506 fi
36507
36508 if test "x${db_type}" = "xInternal" ; then
36509    echo " "
36510    echo " "
36511    echo "You have not specified either --enable-client-only or one of the"
36512    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
36513    echo "  This is not permitted. Please reconfigure."
36514    echo " "
36515    echo "Aborting the configuration ..."
36516    echo " "
36517    echo " "
36518    exit 1
36519 fi
36520
36521 echo "
36522 Configuration on `date`:
36523
36524   Host:                       $host -- ${DISTNAME} ${DISTVER}
36525   Bacula version:             ${VERSION} (${DATE})
36526   Source code location:       ${srcdir}
36527   Install binaries:           ${sbindir}
36528   Install config files:       ${sysconfdir}
36529   Scripts directory:          ${scriptdir}
36530   Archive directory:          ${archivedir}
36531   Working directory:          ${working_dir}
36532   PID directory:              ${piddir}
36533   Subsys directory:           ${subsysdir}
36534   Man directory:              ${mandir}
36535   Data directory:             ${datadir}
36536   C Compiler:                 ${CC} ${CCVERSION}
36537   C++ Compiler:               ${CXX} ${CXXVERSION}
36538   Compiler flags:             ${WCFLAGS} ${CFLAGS}
36539   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
36540   Libraries:                  ${LIBS}
36541   Statically Linked Tools:    ${support_static_tools}
36542   Statically Linked FD:       ${support_static_fd}
36543   Statically Linked SD:       ${support_static_sd}
36544   Statically Linked DIR:      ${support_static_dir}
36545   Statically Linked CONS:     ${support_static_cons}
36546   Database type:              ${db_type}
36547   Database port:              ${db_port}
36548   Database lib:               ${DB_LIBS}
36549   Database name:              ${db_name}
36550   Database user:              ${db_user}
36551
36552   Job Output Email:           ${job_email}
36553   Traceback Email:            ${dump_email}
36554   SMTP Host Address:          ${smtp_host}
36555
36556   Director Port:              ${dir_port}
36557   File daemon Port:           ${fd_port}
36558   Storage daemon Port:        ${sd_port}
36559
36560   Director User:              ${dir_user}
36561   Director Group:             ${dir_group}
36562   Storage Daemon User:        ${sd_user}
36563   Storage DaemonGroup:        ${sd_group}
36564   File Daemon User:           ${fd_user}
36565   File Daemon Group:          ${fd_group}
36566
36567   SQL binaries Directory      ${SQL_BINDIR}
36568
36569   Large file support:         $largefile_support
36570   Bacula conio support:       ${got_conio} ${CONS_LIBS}
36571   readline support:           ${got_readline} ${PRTREADLINE_SRC}
36572   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
36573   TLS support:                ${support_tls}
36574   Encryption support:         ${support_crypto}
36575   ZLIB support:               ${have_zlib}
36576   enable-smartalloc:          ${support_smartalloc}
36577   bat support:                ${support_bat} ${QWT_LDFLAGS}
36578   enable-gnome:               ${support_gnome} ${gnome_version}
36579   enable-bwx-console:         ${support_wx_console} ${wx_version}
36580   enable-tray-monitor:        ${support_tray_monitor}
36581   client-only:                ${build_client_only}
36582   build-dird:                 ${build_dird}
36583   build-stored:               ${build_stored}
36584   ACL support:                ${have_acl}
36585   Python support:             ${support_python} ${PYTHON_LIBS}
36586   Batch insert enabled:       ${support_batch_insert}
36587   Berkeley DB support:        ${support_libdb} ${BDB_LIBS}
36588
36589   " > config.out
36590
36591 cat config.out