]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
57ab373d82252a464c52794dc75270eba2f3d412
[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 GNOME_INCLUDEDIR
770 GNOMEUI_LIBS
771 GNOME_LIBDIR
772 GNOME_LIBS
773 GNOME_DIR
774 BAT_DIR
775 QWT_INC
776 QWT_LDFLAGS
777 QWT_LIB
778 QWT
779 WXCONS_CPPFLAGS
780 WXCONS_LDFLAGS
781 WX_DIR
782 TRAY_MONITOR_CPPFLAGS
783 TRAY_MONITOR_LDFLAGS
784 TRAY_MONITOR_DIR
785 TTOOL_LDFLAGS
786 STATIC_FD
787 STATIC_SD
788 STATIC_DIR
789 STATIC_CONS
790 STATIC_GNOME_CONS
791 STATIC_WX_CONS
792 ALL_DIRS
793 DIRD_DIR
794 DIR_TOOLS
795 STORED_DIR
796 CONS_INC
797 CONS_OBJ
798 CONS_SRC
799 CONS_LIBS
800 CONS_LDFLAGS
801 READLINE_SRC
802 PYTHON_LIBS
803 PYTHON_INCDIR
804 OPENSSL_LIBS
805 OPENSSL_INC
806 working_dir
807 archivedir
808 scriptdir
809 plugindir
810 dump_email
811 job_email
812 smtp_host
813 piddir
814 subsysdir
815 baseport
816 dir_port
817 fd_port
818 sd_port
819 dir_password
820 fd_password
821 sd_password
822 mon_dir_password
823 mon_fd_password
824 mon_sd_password
825 db_name
826 db_user
827 db_password
828 db_port
829 dir_user
830 dir_group
831 sd_user
832 sd_group
833 fd_user
834 fd_group
835 SBINPERM
836 cats
837 DB_TYPE
838 uncomment_dbi
839 GETCONF
840 XMKMF
841 X_CFLAGS
842 X_PRE_LIBS
843 X_LIBS
844 X_EXTRA_LIBS
845 LIBOBJS
846 FDLIBS
847 DEBUG
848 DINCLUDE
849 DLIB
850 DB_LIBS
851 WCFLAGS
852 WLDFLAGS
853 WRAPLIBS
854 OBJLIST
855 hostname
856 TAPEDRIVE
857 PSCMD
858 WIN32
859 MACOSX
860 DISTNAME
861 DISTVER
862 LTLIBOBJS'
863 ac_subst_files='MCOMMON'
864       ac_precious_vars='build_alias
865 host_alias
866 target_alias
867 CC
868 CFLAGS
869 LDFLAGS
870 LIBS
871 CPPFLAGS
872 CXX
873 CXXFLAGS
874 CCC
875 CPP
876 WXCONFIG
877 WXFLAGS
878 XMKMF'
879
880
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
900
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931   # If the previous option needs an argument, assign it.
932   if test -n "$ac_prev"; then
933     eval $ac_prev=\$ac_option
934     ac_prev=
935     continue
936   fi
937
938   case $ac_option in
939   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940   *)    ac_optarg=yes ;;
941   esac
942
943   # Accept the important Cygnus configure options, so we can diagnose typos.
944
945   case $ac_dashdash$ac_option in
946   --)
947     ac_dashdash=yes ;;
948
949   -bindir | --bindir | --bindi | --bind | --bin | --bi)
950     ac_prev=bindir ;;
951   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952     bindir=$ac_optarg ;;
953
954   -build | --build | --buil | --bui | --bu)
955     ac_prev=build_alias ;;
956   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957     build_alias=$ac_optarg ;;
958
959   -cache-file | --cache-file | --cache-fil | --cache-fi \
960   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961     ac_prev=cache_file ;;
962   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964     cache_file=$ac_optarg ;;
965
966   --config-cache | -C)
967     cache_file=config.cache ;;
968
969   -datadir | --datadir | --datadi | --datad)
970     ac_prev=datadir ;;
971   -datadir=* | --datadir=* | --datadi=* | --datad=*)
972     datadir=$ac_optarg ;;
973
974   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975   | --dataroo | --dataro | --datar)
976     ac_prev=datarootdir ;;
977   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979     datarootdir=$ac_optarg ;;
980
981   -disable-* | --disable-*)
982     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983     # Reject names that are not valid shell variable names.
984     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
985       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
986    { (exit 1); exit 1; }; }
987     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
988     eval enable_$ac_feature=no ;;
989
990   -docdir | --docdir | --docdi | --doc | --do)
991     ac_prev=docdir ;;
992   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993     docdir=$ac_optarg ;;
994
995   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996     ac_prev=dvidir ;;
997   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998     dvidir=$ac_optarg ;;
999
1000   -enable-* | --enable-*)
1001     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002     # Reject names that are not valid shell variable names.
1003     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1004       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1005    { (exit 1); exit 1; }; }
1006     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1007     eval enable_$ac_feature=\$ac_optarg ;;
1008
1009   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011   | --exec | --exe | --ex)
1012     ac_prev=exec_prefix ;;
1013   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015   | --exec=* | --exe=* | --ex=*)
1016     exec_prefix=$ac_optarg ;;
1017
1018   -gas | --gas | --ga | --g)
1019     # Obsolete; use --with-gas.
1020     with_gas=yes ;;
1021
1022   -help | --help | --hel | --he | -h)
1023     ac_init_help=long ;;
1024   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025     ac_init_help=recursive ;;
1026   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027     ac_init_help=short ;;
1028
1029   -host | --host | --hos | --ho)
1030     ac_prev=host_alias ;;
1031   -host=* | --host=* | --hos=* | --ho=*)
1032     host_alias=$ac_optarg ;;
1033
1034   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035     ac_prev=htmldir ;;
1036   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037   | --ht=*)
1038     htmldir=$ac_optarg ;;
1039
1040   -includedir | --includedir | --includedi | --included | --include \
1041   | --includ | --inclu | --incl | --inc)
1042     ac_prev=includedir ;;
1043   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044   | --includ=* | --inclu=* | --incl=* | --inc=*)
1045     includedir=$ac_optarg ;;
1046
1047   -infodir | --infodir | --infodi | --infod | --info | --inf)
1048     ac_prev=infodir ;;
1049   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050     infodir=$ac_optarg ;;
1051
1052   -libdir | --libdir | --libdi | --libd)
1053     ac_prev=libdir ;;
1054   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055     libdir=$ac_optarg ;;
1056
1057   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058   | --libexe | --libex | --libe)
1059     ac_prev=libexecdir ;;
1060   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061   | --libexe=* | --libex=* | --libe=*)
1062     libexecdir=$ac_optarg ;;
1063
1064   -localedir | --localedir | --localedi | --localed | --locale)
1065     ac_prev=localedir ;;
1066   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067     localedir=$ac_optarg ;;
1068
1069   -localstatedir | --localstatedir | --localstatedi | --localstated \
1070   | --localstate | --localstat | --localsta | --localst | --locals)
1071     ac_prev=localstatedir ;;
1072   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074     localstatedir=$ac_optarg ;;
1075
1076   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077     ac_prev=mandir ;;
1078   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079     mandir=$ac_optarg ;;
1080
1081   -nfp | --nfp | --nf)
1082     # Obsolete; use --without-fp.
1083     with_fp=no ;;
1084
1085   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086   | --no-cr | --no-c | -n)
1087     no_create=yes ;;
1088
1089   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091     no_recursion=yes ;;
1092
1093   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095   | --oldin | --oldi | --old | --ol | --o)
1096     ac_prev=oldincludedir ;;
1097   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100     oldincludedir=$ac_optarg ;;
1101
1102   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103     ac_prev=prefix ;;
1104   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105     prefix=$ac_optarg ;;
1106
1107   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108   | --program-pre | --program-pr | --program-p)
1109     ac_prev=program_prefix ;;
1110   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112     program_prefix=$ac_optarg ;;
1113
1114   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115   | --program-suf | --program-su | --program-s)
1116     ac_prev=program_suffix ;;
1117   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119     program_suffix=$ac_optarg ;;
1120
1121   -program-transform-name | --program-transform-name \
1122   | --program-transform-nam | --program-transform-na \
1123   | --program-transform-n | --program-transform- \
1124   | --program-transform | --program-transfor \
1125   | --program-transfo | --program-transf \
1126   | --program-trans | --program-tran \
1127   | --progr-tra | --program-tr | --program-t)
1128     ac_prev=program_transform_name ;;
1129   -program-transform-name=* | --program-transform-name=* \
1130   | --program-transform-nam=* | --program-transform-na=* \
1131   | --program-transform-n=* | --program-transform-=* \
1132   | --program-transform=* | --program-transfor=* \
1133   | --program-transfo=* | --program-transf=* \
1134   | --program-trans=* | --program-tran=* \
1135   | --progr-tra=* | --program-tr=* | --program-t=*)
1136     program_transform_name=$ac_optarg ;;
1137
1138   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139     ac_prev=pdfdir ;;
1140   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141     pdfdir=$ac_optarg ;;
1142
1143   -psdir | --psdir | --psdi | --psd | --ps)
1144     ac_prev=psdir ;;
1145   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146     psdir=$ac_optarg ;;
1147
1148   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149   | -silent | --silent | --silen | --sile | --sil)
1150     silent=yes ;;
1151
1152   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153     ac_prev=sbindir ;;
1154   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155   | --sbi=* | --sb=*)
1156     sbindir=$ac_optarg ;;
1157
1158   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160   | --sharedst | --shareds | --shared | --share | --shar \
1161   | --sha | --sh)
1162     ac_prev=sharedstatedir ;;
1163   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166   | --sha=* | --sh=*)
1167     sharedstatedir=$ac_optarg ;;
1168
1169   -site | --site | --sit)
1170     ac_prev=site ;;
1171   -site=* | --site=* | --sit=*)
1172     site=$ac_optarg ;;
1173
1174   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175     ac_prev=srcdir ;;
1176   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177     srcdir=$ac_optarg ;;
1178
1179   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180   | --syscon | --sysco | --sysc | --sys | --sy)
1181     ac_prev=sysconfdir ;;
1182   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184     sysconfdir=$ac_optarg ;;
1185
1186   -target | --target | --targe | --targ | --tar | --ta | --t)
1187     ac_prev=target_alias ;;
1188   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189     target_alias=$ac_optarg ;;
1190
1191   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192     verbose=yes ;;
1193
1194   -version | --version | --versio | --versi | --vers | -V)
1195     ac_init_version=: ;;
1196
1197   -with-* | --with-*)
1198     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199     # Reject names that are not valid shell variable names.
1200     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201       { echo "$as_me: error: invalid package name: $ac_package" >&2
1202    { (exit 1); exit 1; }; }
1203     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1204     eval with_$ac_package=\$ac_optarg ;;
1205
1206   -without-* | --without-*)
1207     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208     # Reject names that are not valid shell variable names.
1209     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210       { echo "$as_me: error: invalid package name: $ac_package" >&2
1211    { (exit 1); exit 1; }; }
1212     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1213     eval with_$ac_package=no ;;
1214
1215   --x)
1216     # Obsolete; use --with-x.
1217     with_x=yes ;;
1218
1219   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220   | --x-incl | --x-inc | --x-in | --x-i)
1221     ac_prev=x_includes ;;
1222   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224     x_includes=$ac_optarg ;;
1225
1226   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228     ac_prev=x_libraries ;;
1229   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231     x_libraries=$ac_optarg ;;
1232
1233   -*) { echo "$as_me: error: unrecognized option: $ac_option
1234 Try \`$0 --help' for more information." >&2
1235    { (exit 1); exit 1; }; }
1236     ;;
1237
1238   *=*)
1239     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1242       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1243    { (exit 1); exit 1; }; }
1244     eval $ac_envvar=\$ac_optarg
1245     export $ac_envvar ;;
1246
1247   *)
1248     # FIXME: should be removed in autoconf 3.0.
1249     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1253     ;;
1254
1255   esac
1256 done
1257
1258 if test -n "$ac_prev"; then
1259   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260   { echo "$as_me: error: missing argument to $ac_option" >&2
1261    { (exit 1); exit 1; }; }
1262 fi
1263
1264 # Be sure to have absolute directory names.
1265 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266                 datadir sysconfdir sharedstatedir localstatedir includedir \
1267                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268                 libdir localedir mandir
1269 do
1270   eval ac_val=\$$ac_var
1271   case $ac_val in
1272     [\\/$]* | ?:[\\/]* )  continue;;
1273     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274   esac
1275   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1276    { (exit 1); exit 1; }; }
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288   if test "x$build_alias" = x; then
1289     cross_compiling=maybe
1290     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291     If a cross compiler is detected then cross compile mode will be used." >&2
1292   elif test "x$build_alias" != "x$host_alias"; then
1293     cross_compiling=yes
1294   fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306   { echo "$as_me: error: Working directory cannot be determined" >&2
1307    { (exit 1); exit 1; }; }
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309   { echo "$as_me: error: pwd does not report name of working directory" >&2
1310    { (exit 1); exit 1; }; }
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315   ac_srcdir_defaulted=yes
1316   # Try the directory containing this script, then the parent directory.
1317   ac_confdir=`$as_dirname -- "$0" ||
1318 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319          X"$0" : 'X\(//\)[^/]' \| \
1320          X"$0" : 'X\(//\)$' \| \
1321          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1322 echo X"$0" |
1323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)[^/].*/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\).*/{
1336             s//\1/
1337             q
1338           }
1339           s/.*/./; q'`
1340   srcdir=$ac_confdir
1341   if test ! -r "$srcdir/$ac_unique_file"; then
1342     srcdir=..
1343   fi
1344 else
1345   ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1350    { (exit 1); exit 1; }; }
1351 fi
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1355    { (exit 1); exit 1; }; }
1356         pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359   srcdir=.
1360 fi
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_env_${ac_var}_value=\$${ac_var}
1370   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1373
1374 #
1375 # Report the --help message.
1376 #
1377 if test "$ac_init_help" = "long"; then
1378   # Omit some internal or obsolete options to make the list less imposing.
1379   # This message is too long to be a string in the A/UX 3.1 sh.
1380   cat <<_ACEOF
1381 \`configure' configures this package to adapt to many kinds of systems.
1382
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE.  See below for descriptions of some of the useful variables.
1387
1388 Defaults for the options are specified in brackets.
1389
1390 Configuration:
1391   -h, --help              display this help and exit
1392       --help=short        display options specific to this package
1393       --help=recursive    display the short help of all the included packages
1394   -V, --version           display version information and exit
1395   -q, --quiet, --silent   do not print \`checking...' messages
1396       --cache-file=FILE   cache test results in FILE [disabled]
1397   -C, --config-cache      alias for \`--cache-file=config.cache'
1398   -n, --no-create         do not create output files
1399       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1400
1401 Installation directories:
1402   --prefix=PREFIX         install architecture-independent files in PREFIX
1403                           [$ac_default_prefix]
1404   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1405                           [PREFIX]
1406
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1411
1412 For better control, use the options below.
1413
1414 Fine tuning of the installation directories:
1415   --bindir=DIR           user executables [EPREFIX/bin]
1416   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1417   --libexecdir=DIR       program executables [EPREFIX/libexec]
1418   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1419   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1420   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1421   --libdir=DIR           object code libraries [EPREFIX/lib]
1422   --includedir=DIR       C header files [PREFIX/include]
1423   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1424   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1425   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1426   --infodir=DIR          info documentation [DATAROOTDIR/info]
1427   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1428   --mandir=DIR           man documentation [DATAROOTDIR/man]
1429   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1430   --htmldir=DIR          html documentation [DOCDIR]
1431   --dvidir=DIR           dvi documentation [DOCDIR]
1432   --pdfdir=DIR           pdf documentation [DOCDIR]
1433   --psdir=DIR            ps documentation [DOCDIR]
1434 _ACEOF
1435
1436   cat <<\_ACEOF
1437
1438 X features:
1439   --x-includes=DIR    X include files are in DIR
1440   --x-libraries=DIR   X library files are in DIR
1441
1442 System types:
1443   --build=BUILD     configure for building on BUILD [guessed]
1444   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449
1450   cat <<\_ACEOF
1451
1452 Optional Features:
1453   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455   --disable-nls           do not use Native Language Support
1456   --disable-rpath         do not hardcode runtime library paths
1457   --enable-gnome          enable build of bgnome-console GUI disabled
1458   --enable-bat  enable build of bat Qt4 GUI disabled
1459   --enable-bwx-console     enable build of wxWidgets console disabled
1460   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1461   --enable-smartalloc     enable smartalloc debugging support disabled
1462   --enable-static-tools   enable static tape tools disabled
1463   --enable-static-fd      enable static File daemon disabled
1464   --enable-static-sd      enable static Storage daemon disabled
1465   --enable-static-dir     enable static Director disabled
1466   --enable-static-cons    enable static Console disabled
1467   --enable-client-only    build client (File daemon) only disabled
1468   --enable-build-dird     enable building of dird (Director) enabled
1469   --enable-build-stored   enable building of stored (Storage daemon) enabled
1470  --disable-conio disable conio support enabled
1471
1472   --enable-ipv6             enable ipv6 support enabled
1473
1474   --disable-readline      disable readline support disable
1475
1476         --enable-batch-insert       enable the DB batch insert code disabled
1477  --enable-batch-insert      enable the DB batch insert code disabled
1478   --disable-largefile     omit support for large files
1479
1480 Optional Packages:
1481   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1484   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1485   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1486   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1487   --without-libintl-prefix     don't search for libintl in includedir and libdir
1488   --with-included-gettext use the GNU gettext library included here
1489  --with-qwt[=DIR]                 specify qwt library directory
1490  --with-readline[=DIR]         specify readline library directory
1491
1492   --with-python[=DIR]   Include Python support.  DIR is the Python base
1493                           install directory, default is to search through
1494                           a number of common places for the Python files.
1495   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1496   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1497   --with-working-dir=PATH        specify path of Bacula working directory
1498   --with-archivedir=PATH        specify path of SD archive directory
1499   --with-scriptdir=PATH    specify path of Bacula scripts directory
1500   --with-plugindir=PATH    specify path of Bacula plugins directory
1501   --with-dump-email=EMAIL        dump email address
1502   --with-job-email=EMAIL         job output email address
1503   --with-smtp-host=HOST          SMTP mail host address
1504   --with-pid-dir=PATH            specify location of Bacula pid files
1505   --with-subsys-dir=PATH         specify location of Bacula subsys file
1506   --with-baseport=PORT           specify base port address for daemons
1507   --with-dir-password=PASSWORD   specify Director's password
1508   --with-fd-password=PASSWORD    specify Client's password
1509   --with-sd-password=PASSWORD    specify Storage daemon's password
1510   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1511   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1512   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1513   --with-db-name=DBNAME        specify database name (default bacula)
1514   --with-db-user=UNAME         specify database user (default bacula)
1515   --with-db-password=UNAME         specify database password (default *none*)
1516   --with-db-port=DBPORT         specify a database port (default null)
1517   --with-dir-user=USER           specify user for Director daemon
1518   --with-dir-group=GROUP                 specify group for Director daemon
1519   --with-sd-user=USER            specify user for Storage daemon
1520   --with-sd-group=GROUP          specify group for Storage daemon
1521   --with-fd-user=USER            specify user for File daemon
1522   --with-fd-group=GROUP          specify group for File daemon
1523   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1524   --with-x                use the X Window System
1525
1526 Some influential environment variables:
1527   CC          C compiler command
1528   CFLAGS      C compiler flags
1529   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1530               nonstandard directory <lib dir>
1531   LIBS        libraries to pass to the linker, e.g. -l<library>
1532   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1533               you have headers in a nonstandard directory <include dir>
1534   CXX         C++ compiler command
1535   CXXFLAGS    C++ compiler flags
1536   CPP         C preprocessor
1537   WXCONFIG    wx-config command. On some systems, you must set it to
1538               wx-config-2.6 to use wxWidgets 2.6.
1539   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1540   XMKMF       Path to xmkmf, Makefile generator for X Window System
1541
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1544
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550   # If there are subdirs, report their specific --help.
1551   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552     test -d "$ac_dir" || continue
1553     ac_builddir=.
1554
1555 case "$ac_dir" in
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *)
1558   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1559   # A ".." for each directory in $ac_dir_suffix.
1560   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1561   case $ac_top_builddir_sub in
1562   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564   esac ;;
1565 esac
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1570
1571 case $srcdir in
1572   .)  # We are building in place.
1573     ac_srcdir=.
1574     ac_top_srcdir=$ac_top_builddir_sub
1575     ac_abs_top_srcdir=$ac_pwd ;;
1576   [\\/]* | ?:[\\/]* )  # Absolute name.
1577     ac_srcdir=$srcdir$ac_dir_suffix;
1578     ac_top_srcdir=$srcdir
1579     ac_abs_top_srcdir=$srcdir ;;
1580   *) # Relative name.
1581     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582     ac_top_srcdir=$ac_top_build_prefix$srcdir
1583     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 esac
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587     cd "$ac_dir" || { ac_status=$?; continue; }
1588     # Check for guested configure.
1589     if test -f "$ac_srcdir/configure.gnu"; then
1590       echo &&
1591       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592     elif test -f "$ac_srcdir/configure"; then
1593       echo &&
1594       $SHELL "$ac_srcdir/configure" --help=recursive
1595     else
1596       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597     fi || ac_status=$?
1598     cd "$ac_pwd" || { ac_status=$?; break; }
1599   done
1600 fi
1601
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1604   cat <<\_ACEOF
1605 configure
1606 generated by GNU Autoconf 2.61
1607
1608 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1609 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1612 _ACEOF
1613   exit
1614 fi
1615 cat >config.log <<_ACEOF
1616 This file contains any messages produced by compilers while
1617 running configure, to aid debugging if configure makes a mistake.
1618
1619 It was created by $as_me, which was
1620 generated by GNU Autoconf 2.61.  Invocation command line was
1621
1622   $ $0 $@
1623
1624 _ACEOF
1625 exec 5>>config.log
1626 {
1627 cat <<_ASUNAME
1628 ## --------- ##
1629 ## Platform. ##
1630 ## --------- ##
1631
1632 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1633 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1634 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1635 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1636 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1637
1638 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1639 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1640
1641 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1642 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1643 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1644 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1645 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1646 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1647 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1648
1649 _ASUNAME
1650
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1653 do
1654   IFS=$as_save_IFS
1655   test -z "$as_dir" && as_dir=.
1656   echo "PATH: $as_dir"
1657 done
1658 IFS=$as_save_IFS
1659
1660 } >&5
1661
1662 cat >&5 <<_ACEOF
1663
1664
1665 ## ----------- ##
1666 ## Core tests. ##
1667 ## ----------- ##
1668
1669 _ACEOF
1670
1671
1672 # Keep a trace of the command line.
1673 # Strip out --no-create and --no-recursion so they do not pile up.
1674 # Strip out --silent because we don't want to record it for future runs.
1675 # Also quote any args containing shell meta-characters.
1676 # Make two passes to allow for proper duplicate-argument suppression.
1677 ac_configure_args=
1678 ac_configure_args0=
1679 ac_configure_args1=
1680 ac_must_keep_next=false
1681 for ac_pass in 1 2
1682 do
1683   for ac_arg
1684   do
1685     case $ac_arg in
1686     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1687     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1688     | -silent | --silent | --silen | --sile | --sil)
1689       continue ;;
1690     *\'*)
1691       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1692     esac
1693     case $ac_pass in
1694     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1695     2)
1696       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1697       if test $ac_must_keep_next = true; then
1698         ac_must_keep_next=false # Got value, back to normal.
1699       else
1700         case $ac_arg in
1701           *=* | --config-cache | -C | -disable-* | --disable-* \
1702           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1703           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1704           | -with-* | --with-* | -without-* | --without-* | --x)
1705             case "$ac_configure_args0 " in
1706               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1707             esac
1708             ;;
1709           -* ) ac_must_keep_next=true ;;
1710         esac
1711       fi
1712       ac_configure_args="$ac_configure_args '$ac_arg'"
1713       ;;
1714     esac
1715   done
1716 done
1717 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1718 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1719
1720 # When interrupted or exit'd, cleanup temporary files, and complete
1721 # config.log.  We remove comments because anyway the quotes in there
1722 # would cause problems or look ugly.
1723 # WARNING: Use '\'' to represent an apostrophe within the trap.
1724 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1725 trap 'exit_status=$?
1726   # Save into config.log some information that might help in debugging.
1727   {
1728     echo
1729
1730     cat <<\_ASBOX
1731 ## ---------------- ##
1732 ## Cache variables. ##
1733 ## ---------------- ##
1734 _ASBOX
1735     echo
1736     # The following way of writing the cache mishandles newlines in values,
1737 (
1738   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1739     eval ac_val=\$$ac_var
1740     case $ac_val in #(
1741     *${as_nl}*)
1742       case $ac_var in #(
1743       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1744 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1745       esac
1746       case $ac_var in #(
1747       _ | IFS | as_nl) ;; #(
1748       *) $as_unset $ac_var ;;
1749       esac ;;
1750     esac
1751   done
1752   (set) 2>&1 |
1753     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1754     *${as_nl}ac_space=\ *)
1755       sed -n \
1756         "s/'\''/'\''\\\\'\'''\''/g;
1757           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1758       ;; #(
1759     *)
1760       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1761       ;;
1762     esac |
1763     sort
1764 )
1765     echo
1766
1767     cat <<\_ASBOX
1768 ## ----------------- ##
1769 ## Output variables. ##
1770 ## ----------------- ##
1771 _ASBOX
1772     echo
1773     for ac_var in $ac_subst_vars
1774     do
1775       eval ac_val=\$$ac_var
1776       case $ac_val in
1777       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778       esac
1779       echo "$ac_var='\''$ac_val'\''"
1780     done | sort
1781     echo
1782
1783     if test -n "$ac_subst_files"; then
1784       cat <<\_ASBOX
1785 ## ------------------- ##
1786 ## File substitutions. ##
1787 ## ------------------- ##
1788 _ASBOX
1789       echo
1790       for ac_var in $ac_subst_files
1791       do
1792         eval ac_val=\$$ac_var
1793         case $ac_val in
1794         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1795         esac
1796         echo "$ac_var='\''$ac_val'\''"
1797       done | sort
1798       echo
1799     fi
1800
1801     if test -s confdefs.h; then
1802       cat <<\_ASBOX
1803 ## ----------- ##
1804 ## confdefs.h. ##
1805 ## ----------- ##
1806 _ASBOX
1807       echo
1808       cat confdefs.h
1809       echo
1810     fi
1811     test "$ac_signal" != 0 &&
1812       echo "$as_me: caught signal $ac_signal"
1813     echo "$as_me: exit $exit_status"
1814   } >&5
1815   rm -f core *.core core.conftest.* &&
1816     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1817     exit $exit_status
1818 ' 0
1819 for ac_signal in 1 2 13 15; do
1820   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1821 done
1822 ac_signal=0
1823
1824 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1825 rm -f -r conftest* confdefs.h
1826
1827 # Predefined preprocessor variables.
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_NAME "$PACKAGE_NAME"
1831 _ACEOF
1832
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1836 _ACEOF
1837
1838
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1841 _ACEOF
1842
1843
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_STRING "$PACKAGE_STRING"
1846 _ACEOF
1847
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1851 _ACEOF
1852
1853
1854 # Let the site file select an alternate cache file if it wants to.
1855 # Prefer explicitly selected file to automatically selected ones.
1856 if test -n "$CONFIG_SITE"; then
1857   set x "$CONFIG_SITE"
1858 elif test "x$prefix" != xNONE; then
1859   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1860 else
1861   set x "$ac_default_prefix/share/config.site" \
1862         "$ac_default_prefix/etc/config.site"
1863 fi
1864 shift
1865 for ac_site_file
1866 do
1867   if test -r "$ac_site_file"; then
1868     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1869 echo "$as_me: loading site script $ac_site_file" >&6;}
1870     sed 's/^/| /' "$ac_site_file" >&5
1871     . "$ac_site_file"
1872   fi
1873 done
1874
1875 if test -r "$cache_file"; then
1876   # Some versions of bash will fail to source /dev/null (special
1877   # files actually), so we avoid doing that.
1878   if test -f "$cache_file"; then
1879     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1880 echo "$as_me: loading cache $cache_file" >&6;}
1881     case $cache_file in
1882       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1883       *)                      . "./$cache_file";;
1884     esac
1885   fi
1886 else
1887   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1888 echo "$as_me: creating cache $cache_file" >&6;}
1889   >$cache_file
1890 fi
1891
1892 # Check that the precious variables saved in the cache have kept the same
1893 # value.
1894 ac_cache_corrupted=false
1895 for ac_var in $ac_precious_vars; do
1896   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1897   eval ac_new_set=\$ac_env_${ac_var}_set
1898   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1899   eval ac_new_val=\$ac_env_${ac_var}_value
1900   case $ac_old_set,$ac_new_set in
1901     set,)
1902       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1903 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1904       ac_cache_corrupted=: ;;
1905     ,set)
1906       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1907 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1908       ac_cache_corrupted=: ;;
1909     ,);;
1910     *)
1911       if test "x$ac_old_val" != "x$ac_new_val"; then
1912         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1913 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1914         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1915 echo "$as_me:   former value:  $ac_old_val" >&2;}
1916         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1917 echo "$as_me:   current value: $ac_new_val" >&2;}
1918         ac_cache_corrupted=:
1919       fi;;
1920   esac
1921   # Pass precious variables to config.status.
1922   if test "$ac_new_set" = set; then
1923     case $ac_new_val in
1924     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1925     *) ac_arg=$ac_var=$ac_new_val ;;
1926     esac
1927     case " $ac_configure_args " in
1928       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1929       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1930     esac
1931   fi
1932 done
1933 if $ac_cache_corrupted; then
1934   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1935 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1936   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1937 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1938    { (exit 1); exit 1; }; }
1939 fi
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957 ac_ext=c
1958 ac_cpp='$CPP $CPPFLAGS'
1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962
1963
1964 BUILD_DIR=`pwd`
1965 cd ..
1966 TOP_DIR=`pwd`
1967 cd ${BUILD_DIR}
1968
1969
1970 ac_aux_dir=
1971 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1972   if test -f "$ac_dir/install-sh"; then
1973     ac_aux_dir=$ac_dir
1974     ac_install_sh="$ac_aux_dir/install-sh -c"
1975     break
1976   elif test -f "$ac_dir/install.sh"; then
1977     ac_aux_dir=$ac_dir
1978     ac_install_sh="$ac_aux_dir/install.sh -c"
1979     break
1980   elif test -f "$ac_dir/shtool"; then
1981     ac_aux_dir=$ac_dir
1982     ac_install_sh="$ac_aux_dir/shtool install -c"
1983     break
1984   fi
1985 done
1986 if test -z "$ac_aux_dir"; then
1987   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1988 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992 # These three variables are undocumented and unsupported,
1993 # and are intended to be withdrawn in a future Autoconf release.
1994 # They can cause serious problems if a builder's source tree is in a directory
1995 # whose full name contains unusual characters.
1996 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1997 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1998 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1999
2000
2001 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2002
2003
2004
2005
2006
2007 for ac_prog in true
2008 do
2009   # Extract the first word of "$ac_prog", so it can be a program name with args.
2010 set dummy $ac_prog; ac_word=$2
2011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2013 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   case $TRUEPRG in
2017   [\\/]* | ?:[\\/]*)
2018   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2019   ;;
2020   *)
2021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036   ;;
2037 esac
2038 fi
2039 TRUEPRG=$ac_cv_path_TRUEPRG
2040 if test -n "$TRUEPRG"; then
2041   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2042 echo "${ECHO_T}$TRUEPRG" >&6; }
2043 else
2044   { echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6; }
2046 fi
2047
2048
2049   test -n "$TRUEPRG" && break
2050 done
2051 test -n "$TRUEPRG" || TRUEPRG=":"
2052
2053 for ac_prog in false
2054 do
2055   # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   case $FALSEPRG in
2063   [\\/]* | ?:[\\/]*)
2064   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2065   ;;
2066   *)
2067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
2070   IFS=$as_save_IFS
2071   test -z "$as_dir" && as_dir=.
2072   for ac_exec_ext in '' $ac_executable_extensions; do
2073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2074     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076     break 2
2077   fi
2078 done
2079 done
2080 IFS=$as_save_IFS
2081
2082   ;;
2083 esac
2084 fi
2085 FALSEPRG=$ac_cv_path_FALSEPRG
2086 if test -n "$FALSEPRG"; then
2087   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2088 echo "${ECHO_T}$FALSEPRG" >&6; }
2089 else
2090   { echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6; }
2092 fi
2093
2094
2095   test -n "$FALSEPRG" && break
2096 done
2097 test -n "$FALSEPRG" || FALSEPRG=":"
2098
2099
2100
2101 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2102 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2103 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2104 echo "configuring for bacula $VERSION ($DATE)"
2105
2106
2107
2108 ac_ext=c
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113 if test -n "$ac_tool_prefix"; then
2114   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2118 if test "${ac_cv_prog_CC+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   if test -n "$CC"; then
2122   ac_cv_prog_CC="$CC" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127   IFS=$as_save_IFS
2128   test -z "$as_dir" && as_dir=.
2129   for ac_exec_ext in '' $ac_executable_extensions; do
2130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2131     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133     break 2
2134   fi
2135 done
2136 done
2137 IFS=$as_save_IFS
2138
2139 fi
2140 fi
2141 CC=$ac_cv_prog_CC
2142 if test -n "$CC"; then
2143   { echo "$as_me:$LINENO: result: $CC" >&5
2144 echo "${ECHO_T}$CC" >&6; }
2145 else
2146   { echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6; }
2148 fi
2149
2150
2151 fi
2152 if test -z "$ac_cv_prog_CC"; then
2153   ac_ct_CC=$CC
2154   # Extract the first word of "gcc", so it can be a program name with args.
2155 set dummy gcc; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   if test -n "$ac_ct_CC"; then
2162   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167   IFS=$as_save_IFS
2168   test -z "$as_dir" && as_dir=.
2169   for ac_exec_ext in '' $ac_executable_extensions; do
2170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171     ac_cv_prog_ac_ct_CC="gcc"
2172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173     break 2
2174   fi
2175 done
2176 done
2177 IFS=$as_save_IFS
2178
2179 fi
2180 fi
2181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184 echo "${ECHO_T}$ac_ct_CC" >&6; }
2185 else
2186   { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2188 fi
2189
2190   if test "x$ac_ct_CC" = x; then
2191     CC=""
2192   else
2193     case $cross_compiling:$ac_tool_warned in
2194 yes:)
2195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2196 whose name does not start with the host triplet.  If you think this
2197 configuration is useful to you, please write to autoconf@gnu.org." >&5
2198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2199 whose name does not start with the host triplet.  If you think this
2200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2201 ac_tool_warned=yes ;;
2202 esac
2203     CC=$ac_ct_CC
2204   fi
2205 else
2206   CC="$ac_cv_prog_CC"
2207 fi
2208
2209 if test -z "$CC"; then
2210           if test -n "$ac_tool_prefix"; then
2211     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2212 set dummy ${ac_tool_prefix}cc; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   if test -n "$CC"; then
2219   ac_cv_prog_CC="$CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224   IFS=$as_save_IFS
2225   test -z "$as_dir" && as_dir=.
2226   for ac_exec_ext in '' $ac_executable_extensions; do
2227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228     ac_cv_prog_CC="${ac_tool_prefix}cc"
2229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230     break 2
2231   fi
2232 done
2233 done
2234 IFS=$as_save_IFS
2235
2236 fi
2237 fi
2238 CC=$ac_cv_prog_CC
2239 if test -n "$CC"; then
2240   { echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6; }
2242 else
2243   { echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6; }
2245 fi
2246
2247
2248   fi
2249 fi
2250 if test -z "$CC"; then
2251   # Extract the first word of "cc", so it can be a program name with args.
2252 set dummy cc; ac_word=$2
2253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255 if test "${ac_cv_prog_CC+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   if test -n "$CC"; then
2259   ac_cv_prog_CC="$CC" # Let the user override the test.
2260 else
2261   ac_prog_rejected=no
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2264 do
2265   IFS=$as_save_IFS
2266   test -z "$as_dir" && as_dir=.
2267   for ac_exec_ext in '' $ac_executable_extensions; do
2268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2270        ac_prog_rejected=yes
2271        continue
2272      fi
2273     ac_cv_prog_CC="cc"
2274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275     break 2
2276   fi
2277 done
2278 done
2279 IFS=$as_save_IFS
2280
2281 if test $ac_prog_rejected = yes; then
2282   # We found a bogon in the path, so make sure we never use it.
2283   set dummy $ac_cv_prog_CC
2284   shift
2285   if test $# != 0; then
2286     # We chose a different compiler from the bogus one.
2287     # However, it has the same basename, so the bogon will be chosen
2288     # first if we set CC to just the basename; use the full file name.
2289     shift
2290     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2291   fi
2292 fi
2293 fi
2294 fi
2295 CC=$ac_cv_prog_CC
2296 if test -n "$CC"; then
2297   { echo "$as_me:$LINENO: result: $CC" >&5
2298 echo "${ECHO_T}$CC" >&6; }
2299 else
2300   { echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6; }
2302 fi
2303
2304
2305 fi
2306 if test -z "$CC"; then
2307   if test -n "$ac_tool_prefix"; then
2308   for ac_prog in cl.exe
2309   do
2310     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_CC+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   if test -n "$CC"; then
2318   ac_cv_prog_CC="$CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325   for ac_exec_ext in '' $ac_executable_extensions; do
2326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329     break 2
2330   fi
2331 done
2332 done
2333 IFS=$as_save_IFS
2334
2335 fi
2336 fi
2337 CC=$ac_cv_prog_CC
2338 if test -n "$CC"; then
2339   { echo "$as_me:$LINENO: result: $CC" >&5
2340 echo "${ECHO_T}$CC" >&6; }
2341 else
2342   { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2344 fi
2345
2346
2347     test -n "$CC" && break
2348   done
2349 fi
2350 if test -z "$CC"; then
2351   ac_ct_CC=$CC
2352   for ac_prog in cl.exe
2353 do
2354   # Extract the first word of "$ac_prog", so it can be a program name with args.
2355 set dummy $ac_prog; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   if test -n "$ac_ct_CC"; then
2362   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367   IFS=$as_save_IFS
2368   test -z "$as_dir" && as_dir=.
2369   for ac_exec_ext in '' $ac_executable_extensions; do
2370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371     ac_cv_prog_ac_ct_CC="$ac_prog"
2372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373     break 2
2374   fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2382 if test -n "$ac_ct_CC"; then
2383   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2384 echo "${ECHO_T}$ac_ct_CC" >&6; }
2385 else
2386   { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2388 fi
2389
2390
2391   test -n "$ac_ct_CC" && break
2392 done
2393
2394   if test "x$ac_ct_CC" = x; then
2395     CC=""
2396   else
2397     case $cross_compiling:$ac_tool_warned in
2398 yes:)
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet.  If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet.  If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned=yes ;;
2406 esac
2407     CC=$ac_ct_CC
2408   fi
2409 fi
2410
2411 fi
2412
2413
2414 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: no acceptable C compiler found in \$PATH
2417 See \`config.log' for more details." >&2;}
2418    { (exit 1); exit 1; }; }
2419
2420 # Provide some information about the compiler.
2421 echo "$as_me:$LINENO: checking for C compiler version" >&5
2422 ac_compiler=`set X $ac_compile; echo $2`
2423 { (ac_try="$ac_compiler --version >&5"
2424 case "(($ac_try" in
2425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426   *) ac_try_echo=$ac_try;;
2427 esac
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429   (eval "$ac_compiler --version >&5") 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }
2433 { (ac_try="$ac_compiler -v >&5"
2434 case "(($ac_try" in
2435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436   *) ac_try_echo=$ac_try;;
2437 esac
2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439   (eval "$ac_compiler -v >&5") 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }
2443 { (ac_try="$ac_compiler -V >&5"
2444 case "(($ac_try" in
2445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446   *) ac_try_echo=$ac_try;;
2447 esac
2448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449   (eval "$ac_compiler -V >&5") 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }
2453
2454 cat >conftest.$ac_ext <<_ACEOF
2455 /* confdefs.h.  */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h.  */
2460
2461 int
2462 main ()
2463 {
2464
2465   ;
2466   return 0;
2467 }
2468 _ACEOF
2469 ac_clean_files_save=$ac_clean_files
2470 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2471 # Try to create an executable without -o first, disregard a.out.
2472 # It will help us diagnose broken compilers, and finding out an intuition
2473 # of exeext.
2474 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2475 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2476 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2477 #
2478 # List of possible output files, starting from the most likely.
2479 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2480 # only as a last resort.  b.out is created by i960 compilers.
2481 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2482 #
2483 # The IRIX 6 linker writes into existing files which may not be
2484 # executable, retaining their permissions.  Remove them first so a
2485 # subsequent execution test works.
2486 ac_rmfiles=
2487 for ac_file in $ac_files
2488 do
2489   case $ac_file in
2490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2491     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2492   esac
2493 done
2494 rm -f $ac_rmfiles
2495
2496 if { (ac_try="$ac_link_default"
2497 case "(($ac_try" in
2498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499   *) ac_try_echo=$ac_try;;
2500 esac
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502   (eval "$ac_link_default") 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }; then
2506   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2507 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2508 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2509 # so that the user can short-circuit this test for compilers unknown to
2510 # Autoconf.
2511 for ac_file in $ac_files ''
2512 do
2513   test -f "$ac_file" || continue
2514   case $ac_file in
2515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2516         ;;
2517     [ab].out )
2518         # We found the default executable, but exeext='' is most
2519         # certainly right.
2520         break;;
2521     *.* )
2522         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2523         then :; else
2524            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2525         fi
2526         # We set ac_cv_exeext here because the later test for it is not
2527         # safe: cross compilers may not add the suffix if given an `-o'
2528         # argument, so we may need to know it at that point already.
2529         # Even if this section looks crufty: it has the advantage of
2530         # actually working.
2531         break;;
2532     * )
2533         break;;
2534   esac
2535 done
2536 test "$ac_cv_exeext" = no && ac_cv_exeext=
2537
2538 else
2539   ac_file=''
2540 fi
2541
2542 { echo "$as_me:$LINENO: result: $ac_file" >&5
2543 echo "${ECHO_T}$ac_file" >&6; }
2544 if test -z "$ac_file"; then
2545   echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2549 See \`config.log' for more details." >&5
2550 echo "$as_me: error: C compiler cannot create executables
2551 See \`config.log' for more details." >&2;}
2552    { (exit 77); exit 77; }; }
2553 fi
2554
2555 ac_exeext=$ac_cv_exeext
2556
2557 # Check that the compiler produces executables we can run.  If not, either
2558 # the compiler is broken, or we cross compile.
2559 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2560 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2561 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2562 # If not cross compiling, check that we can run a simple program.
2563 if test "$cross_compiling" != yes; then
2564   if { ac_try='./$ac_file'
2565   { (case "(($ac_try" in
2566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567   *) ac_try_echo=$ac_try;;
2568 esac
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570   (eval "$ac_try") 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }; }; then
2574     cross_compiling=no
2575   else
2576     if test "$cross_compiling" = maybe; then
2577         cross_compiling=yes
2578     else
2579         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2580 If you meant to cross compile, use \`--host'.
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: cannot run C compiled programs.
2583 If you meant to cross compile, use \`--host'.
2584 See \`config.log' for more details." >&2;}
2585    { (exit 1); exit 1; }; }
2586     fi
2587   fi
2588 fi
2589 { echo "$as_me:$LINENO: result: yes" >&5
2590 echo "${ECHO_T}yes" >&6; }
2591
2592 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2593 ac_clean_files=$ac_clean_files_save
2594 # Check that the compiler produces executables we can run.  If not, either
2595 # the compiler is broken, or we cross compile.
2596 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2597 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2598 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2599 echo "${ECHO_T}$cross_compiling" >&6; }
2600
2601 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2602 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2603 if { (ac_try="$ac_link"
2604 case "(($ac_try" in
2605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606   *) ac_try_echo=$ac_try;;
2607 esac
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609   (eval "$ac_link") 2>&5
2610   ac_status=$?
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); }; then
2613   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2614 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2615 # work properly (i.e., refer to `conftest.exe'), while it won't with
2616 # `rm'.
2617 for ac_file in conftest.exe conftest conftest.*; do
2618   test -f "$ac_file" || continue
2619   case $ac_file in
2620     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2621     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2622           break;;
2623     * ) break;;
2624   esac
2625 done
2626 else
2627   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2628 See \`config.log' for more details." >&5
2629 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2630 See \`config.log' for more details." >&2;}
2631    { (exit 1); exit 1; }; }
2632 fi
2633
2634 rm -f conftest$ac_cv_exeext
2635 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2636 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2637
2638 rm -f conftest.$ac_ext
2639 EXEEXT=$ac_cv_exeext
2640 ac_exeext=$EXEEXT
2641 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2642 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2643 if test "${ac_cv_objext+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h.  */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h.  */
2652
2653 int
2654 main ()
2655 {
2656
2657   ;
2658   return 0;
2659 }
2660 _ACEOF
2661 rm -f conftest.o conftest.obj
2662 if { (ac_try="$ac_compile"
2663 case "(($ac_try" in
2664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665   *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668   (eval "$ac_compile") 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; then
2672   for ac_file in conftest.o conftest.obj conftest.*; do
2673   test -f "$ac_file" || continue;
2674   case $ac_file in
2675     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2676     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2677        break;;
2678   esac
2679 done
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2685 See \`config.log' for more details." >&5
2686 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details." >&2;}
2688    { (exit 1); exit 1; }; }
2689 fi
2690
2691 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2692 fi
2693 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2694 echo "${ECHO_T}$ac_cv_objext" >&6; }
2695 OBJEXT=$ac_cv_objext
2696 ac_objext=$OBJEXT
2697 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2698 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2699 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2700   echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702   cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708
2709 int
2710 main ()
2711 {
2712 #ifndef __GNUC__
2713        choke me
2714 #endif
2715
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (ac_try="$ac_compile"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_compile") 2>conftest.er1
2728   ac_status=$?
2729   grep -v '^ *+' conftest.er1 >conftest.err
2730   rm -f conftest.er1
2731   cat conftest.err >&5
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); } && {
2734          test -z "$ac_c_werror_flag" ||
2735          test ! -s conftest.err
2736        } && test -s conftest.$ac_objext; then
2737   ac_compiler_gnu=yes
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742         ac_compiler_gnu=no
2743 fi
2744
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2747
2748 fi
2749 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2750 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2751 GCC=`test $ac_compiler_gnu = yes && echo yes`
2752 ac_test_CFLAGS=${CFLAGS+set}
2753 ac_save_CFLAGS=$CFLAGS
2754 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2755 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2756 if test "${ac_cv_prog_cc_g+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   ac_save_c_werror_flag=$ac_c_werror_flag
2760    ac_c_werror_flag=yes
2761    ac_cv_prog_cc_g=no
2762    CFLAGS="-g"
2763    cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h.  */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h.  */
2769
2770 int
2771 main ()
2772 {
2773
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 rm -f conftest.$ac_objext
2779 if { (ac_try="$ac_compile"
2780 case "(($ac_try" in
2781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782   *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785   (eval "$ac_compile") 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } && {
2792          test -z "$ac_c_werror_flag" ||
2793          test ! -s conftest.err
2794        } && test -s conftest.$ac_objext; then
2795   ac_cv_prog_cc_g=yes
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800         CFLAGS=""
2801       cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h.  */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h.  */
2807
2808 int
2809 main ()
2810 {
2811
2812   ;
2813   return 0;
2814 }
2815 _ACEOF
2816 rm -f conftest.$ac_objext
2817 if { (ac_try="$ac_compile"
2818 case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823   (eval "$ac_compile") 2>conftest.er1
2824   ac_status=$?
2825   grep -v '^ *+' conftest.er1 >conftest.err
2826   rm -f conftest.er1
2827   cat conftest.err >&5
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); } && {
2830          test -z "$ac_c_werror_flag" ||
2831          test ! -s conftest.err
2832        } && test -s conftest.$ac_objext; then
2833   :
2834 else
2835   echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2837
2838         ac_c_werror_flag=$ac_save_c_werror_flag
2839          CFLAGS="-g"
2840          cat >conftest.$ac_ext <<_ACEOF
2841 /* confdefs.h.  */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h.  */
2846
2847 int
2848 main ()
2849 {
2850
2851   ;
2852   return 0;
2853 }
2854 _ACEOF
2855 rm -f conftest.$ac_objext
2856 if { (ac_try="$ac_compile"
2857 case "(($ac_try" in
2858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859   *) ac_try_echo=$ac_try;;
2860 esac
2861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862   (eval "$ac_compile") 2>conftest.er1
2863   ac_status=$?
2864   grep -v '^ *+' conftest.er1 >conftest.err
2865   rm -f conftest.er1
2866   cat conftest.err >&5
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); } && {
2869          test -z "$ac_c_werror_flag" ||
2870          test ! -s conftest.err
2871        } && test -s conftest.$ac_objext; then
2872   ac_cv_prog_cc_g=yes
2873 else
2874   echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2876
2877
2878 fi
2879
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881 fi
2882
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884 fi
2885
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887    ac_c_werror_flag=$ac_save_c_werror_flag
2888 fi
2889 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2890 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2891 if test "$ac_test_CFLAGS" = set; then
2892   CFLAGS=$ac_save_CFLAGS
2893 elif test $ac_cv_prog_cc_g = yes; then
2894   if test "$GCC" = yes; then
2895     CFLAGS="-g -O2"
2896   else
2897     CFLAGS="-g"
2898   fi
2899 else
2900   if test "$GCC" = yes; then
2901     CFLAGS="-O2"
2902   else
2903     CFLAGS=
2904   fi
2905 fi
2906 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2907 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2908 if test "${ac_cv_prog_cc_c89+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911   ac_cv_prog_cc_c89=no
2912 ac_save_CC=$CC
2913 cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h.  */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h.  */
2919 #include <stdarg.h>
2920 #include <stdio.h>
2921 #include <sys/types.h>
2922 #include <sys/stat.h>
2923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2924 struct buf { int x; };
2925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2926 static char *e (p, i)
2927      char **p;
2928      int i;
2929 {
2930   return p[i];
2931 }
2932 static char *f (char * (*g) (char **, int), char **p, ...)
2933 {
2934   char *s;
2935   va_list v;
2936   va_start (v,p);
2937   s = g (p, va_arg (v,int));
2938   va_end (v);
2939   return s;
2940 }
2941
2942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2943    function prototypes and stuff, but not '\xHH' hex character constants.
2944    These don't provoke an error unfortunately, instead are silently treated
2945    as 'x'.  The following induces an error, until -std is added to get
2946    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2947    array size at least.  It's necessary to write '\x00'==0 to get something
2948    that's true only with -std.  */
2949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2950
2951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2952    inside strings and character constants.  */
2953 #define FOO(x) 'x'
2954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2955
2956 int test (int i, double x);
2957 struct s1 {int (*f) (int a);};
2958 struct s2 {int (*f) (double a);};
2959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2960 int argc;
2961 char **argv;
2962 int
2963 main ()
2964 {
2965 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2966   ;
2967   return 0;
2968 }
2969 _ACEOF
2970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2971         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2972 do
2973   CC="$ac_save_CC $ac_arg"
2974   rm -f conftest.$ac_objext
2975 if { (ac_try="$ac_compile"
2976 case "(($ac_try" in
2977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978   *) ac_try_echo=$ac_try;;
2979 esac
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981   (eval "$ac_compile") 2>conftest.er1
2982   ac_status=$?
2983   grep -v '^ *+' conftest.er1 >conftest.err
2984   rm -f conftest.er1
2985   cat conftest.err >&5
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); } && {
2988          test -z "$ac_c_werror_flag" ||
2989          test ! -s conftest.err
2990        } && test -s conftest.$ac_objext; then
2991   ac_cv_prog_cc_c89=$ac_arg
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996
2997 fi
2998
2999 rm -f core conftest.err conftest.$ac_objext
3000   test "x$ac_cv_prog_cc_c89" != "xno" && break
3001 done
3002 rm -f conftest.$ac_ext
3003 CC=$ac_save_CC
3004
3005 fi
3006 # AC_CACHE_VAL
3007 case "x$ac_cv_prog_cc_c89" in
3008   x)
3009     { echo "$as_me:$LINENO: result: none needed" >&5
3010 echo "${ECHO_T}none needed" >&6; } ;;
3011   xno)
3012     { echo "$as_me:$LINENO: result: unsupported" >&5
3013 echo "${ECHO_T}unsupported" >&6; } ;;
3014   *)
3015     CC="$CC $ac_cv_prog_cc_c89"
3016     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3017 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3018 esac
3019
3020
3021 ac_ext=c
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026
3027 ac_ext=cpp
3028 ac_cpp='$CXXCPP $CPPFLAGS'
3029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3032 if test -z "$CXX"; then
3033   if test -n "$CCC"; then
3034     CXX=$CCC
3035   else
3036     if test -n "$ac_tool_prefix"; then
3037   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3038   do
3039     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3043 if test "${ac_cv_prog_CXX+set}" = set; then
3044   echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046   if test -n "$CXX"; then
3047   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054   for ac_exec_ext in '' $ac_executable_extensions; do
3055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061 done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 CXX=$ac_cv_prog_CXX
3067 if test -n "$CXX"; then
3068   { echo "$as_me:$LINENO: result: $CXX" >&5
3069 echo "${ECHO_T}$CXX" >&6; }
3070 else
3071   { echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6; }
3073 fi
3074
3075
3076     test -n "$CXX" && break
3077   done
3078 fi
3079 if test -z "$CXX"; then
3080   ac_ct_CXX=$CXX
3081   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3082 do
3083   # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy $ac_prog; ac_word=$2
3085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3087 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3088   echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090   if test -n "$ac_ct_CXX"; then
3091   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096   IFS=$as_save_IFS
3097   test -z "$as_dir" && as_dir=.
3098   for ac_exec_ext in '' $ac_executable_extensions; do
3099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100     ac_cv_prog_ac_ct_CXX="$ac_prog"
3101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102     break 2
3103   fi
3104 done
3105 done
3106 IFS=$as_save_IFS
3107
3108 fi
3109 fi
3110 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3111 if test -n "$ac_ct_CXX"; then
3112   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3113 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3114 else
3115   { echo "$as_me:$LINENO: result: no" >&5
3116 echo "${ECHO_T}no" >&6; }
3117 fi
3118
3119
3120   test -n "$ac_ct_CXX" && break
3121 done
3122
3123   if test "x$ac_ct_CXX" = x; then
3124     CXX="g++"
3125   else
3126     case $cross_compiling:$ac_tool_warned in
3127 yes:)
3128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3129 whose name does not start with the host triplet.  If you think this
3130 configuration is useful to you, please write to autoconf@gnu.org." >&5
3131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3132 whose name does not start with the host triplet.  If you think this
3133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3134 ac_tool_warned=yes ;;
3135 esac
3136     CXX=$ac_ct_CXX
3137   fi
3138 fi
3139
3140   fi
3141 fi
3142 # Provide some information about the compiler.
3143 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3144 ac_compiler=`set X $ac_compile; echo $2`
3145 { (ac_try="$ac_compiler --version >&5"
3146 case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_compiler --version >&5") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }
3155 { (ac_try="$ac_compiler -v >&5"
3156 case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_compiler -v >&5") 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }
3165 { (ac_try="$ac_compiler -V >&5"
3166 case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_compiler -V >&5") 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }
3175
3176 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3177 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3178 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181   cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h.  */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h.  */
3187
3188 int
3189 main ()
3190 {
3191 #ifndef __GNUC__
3192        choke me
3193 #endif
3194
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_compile") 2>conftest.er1
3207   ac_status=$?
3208   grep -v '^ *+' conftest.er1 >conftest.err
3209   rm -f conftest.er1
3210   cat conftest.err >&5
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); } && {
3213          test -z "$ac_cxx_werror_flag" ||
3214          test ! -s conftest.err
3215        } && test -s conftest.$ac_objext; then
3216   ac_compiler_gnu=yes
3217 else
3218   echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3220
3221         ac_compiler_gnu=no
3222 fi
3223
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3226
3227 fi
3228 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3229 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3230 GXX=`test $ac_compiler_gnu = yes && echo yes`
3231 ac_test_CXXFLAGS=${CXXFLAGS+set}
3232 ac_save_CXXFLAGS=$CXXFLAGS
3233 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3234 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3235 if test "${ac_cv_prog_cxx_g+set}" = set; then
3236   echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3239    ac_cxx_werror_flag=yes
3240    ac_cv_prog_cxx_g=no
3241    CXXFLAGS="-g"
3242    cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h.  */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h.  */
3248
3249 int
3250 main ()
3251 {
3252
3253   ;
3254   return 0;
3255 }
3256 _ACEOF
3257 rm -f conftest.$ac_objext
3258 if { (ac_try="$ac_compile"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264   (eval "$ac_compile") 2>conftest.er1
3265   ac_status=$?
3266   grep -v '^ *+' conftest.er1 >conftest.err
3267   rm -f conftest.er1
3268   cat conftest.err >&5
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); } && {
3271          test -z "$ac_cxx_werror_flag" ||
3272          test ! -s conftest.err
3273        } && test -s conftest.$ac_objext; then
3274   ac_cv_prog_cxx_g=yes
3275 else
3276   echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3278
3279         CXXFLAGS=""
3280       cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h.  */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h.  */
3286
3287 int
3288 main ()
3289 {
3290
3291   ;
3292   return 0;
3293 }
3294 _ACEOF
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3297 case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_compile") 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } && {
3309          test -z "$ac_cxx_werror_flag" ||
3310          test ! -s conftest.err
3311        } && test -s conftest.$ac_objext; then
3312   :
3313 else
3314   echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3318          CXXFLAGS="-g"
3319          cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h.  */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h.  */
3325
3326 int
3327 main ()
3328 {
3329
3330   ;
3331   return 0;
3332 }
3333 _ACEOF
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_compile") 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } && {
3348          test -z "$ac_cxx_werror_flag" ||
3349          test ! -s conftest.err
3350        } && test -s conftest.$ac_objext; then
3351   ac_cv_prog_cxx_g=yes
3352 else
3353   echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356
3357 fi
3358
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 fi
3361
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 fi
3364
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3367 fi
3368 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3369 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3370 if test "$ac_test_CXXFLAGS" = set; then
3371   CXXFLAGS=$ac_save_CXXFLAGS
3372 elif test $ac_cv_prog_cxx_g = yes; then
3373   if test "$GXX" = yes; then
3374     CXXFLAGS="-g -O2"
3375   else
3376     CXXFLAGS="-g"
3377   fi
3378 else
3379   if test "$GXX" = yes; then
3380     CXXFLAGS="-O2"
3381   else
3382     CXXFLAGS=
3383   fi
3384 fi
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391 if test "x$CC" != xcc; then
3392   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3393 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3394 else
3395   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3396 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3397 fi
3398 set dummy $CC; ac_cc=`echo $2 |
3399                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3400 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409
3410 int
3411 main ()
3412 {
3413
3414   ;
3415   return 0;
3416 }
3417 _ACEOF
3418 # Make sure it works both with $CC and with simple cc.
3419 # We do the test twice because some compilers refuse to overwrite an
3420 # existing .o file with -o, though they will create one.
3421 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3422 rm -f conftest2.*
3423 if { (case "(($ac_try" in
3424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425   *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428   (eval "$ac_try") 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } &&
3432    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437   (eval "$ac_try") 2>&5
3438   ac_status=$?
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); };
3441 then
3442   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3443   if test "x$CC" != xcc; then
3444     # Test first that cc exists at all.
3445     if { ac_try='cc -c conftest.$ac_ext >&5'
3446   { (case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451   (eval "$ac_try") 2>&5
3452   ac_status=$?
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); }; }; then
3455       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3456       rm -f conftest2.*
3457       if { (case "(($ac_try" in
3458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459   *) ac_try_echo=$ac_try;;
3460 esac
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462   (eval "$ac_try") 2>&5
3463   ac_status=$?
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); } &&
3466          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471   (eval "$ac_try") 2>&5
3472   ac_status=$?
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); };
3475       then
3476         # cc works too.
3477         :
3478       else
3479         # cc exists but doesn't like -o.
3480         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3481       fi
3482     fi
3483   fi
3484 else
3485   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3486 fi
3487 rm -f core conftest*
3488
3489 fi
3490 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3491   { echo "$as_me:$LINENO: result: yes" >&5
3492 echo "${ECHO_T}yes" >&6; }
3493 else
3494   { echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6; }
3496
3497 cat >>confdefs.h <<\_ACEOF
3498 #define NO_MINUS_C_MINUS_O 1
3499 _ACEOF
3500
3501 fi
3502
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3509 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3510 # On Suns, sometimes $CPP names a directory.
3511 if test -n "$CPP" && test -d "$CPP"; then
3512   CPP=
3513 fi
3514 if test -z "$CPP"; then
3515   if test "${ac_cv_prog_CPP+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518       # Double quotes because CPP needs to be expanded
3519     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3520     do
3521       ac_preproc_ok=false
3522 for ac_c_preproc_warn_flag in '' yes
3523 do
3524   # Use a header file that comes with gcc, so configuring glibc
3525   # with a fresh cross-compiler works.
3526   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3527   # <limits.h> exists even on freestanding compilers.
3528   # On the NeXT, cc -E runs the code through the compiler's parser,
3529   # not just through cpp. "Syntax error" is here to catch this case.
3530   cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h.  */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h.  */
3536 #ifdef __STDC__
3537 # include <limits.h>
3538 #else
3539 # include <assert.h>
3540 #endif
3541                      Syntax error
3542 _ACEOF
3543 if { (ac_try="$ac_cpp conftest.$ac_ext"
3544 case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } >/dev/null && {
3556          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3557          test ! -s conftest.err
3558        }; then
3559   :
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564   # Broken: fails on valid input.
3565 continue
3566 fi
3567
3568 rm -f conftest.err conftest.$ac_ext
3569
3570   # OK, works on sane cases.  Now check whether nonexistent headers
3571   # can be detected and how.
3572   cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h.  */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h.  */
3578 #include <ac_nonexistent.h>
3579 _ACEOF
3580 if { (ac_try="$ac_cpp conftest.$ac_ext"
3581 case "(($ac_try" in
3582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583   *) ac_try_echo=$ac_try;;
3584 esac
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3587   ac_status=$?
3588   grep -v '^ *+' conftest.er1 >conftest.err
3589   rm -f conftest.er1
3590   cat conftest.err >&5
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); } >/dev/null && {
3593          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3594          test ! -s conftest.err
3595        }; then
3596   # Broken: success on invalid input.
3597 continue
3598 else
3599   echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602   # Passes both tests.
3603 ac_preproc_ok=:
3604 break
3605 fi
3606
3607 rm -f conftest.err conftest.$ac_ext
3608
3609 done
3610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611 rm -f conftest.err conftest.$ac_ext
3612 if $ac_preproc_ok; then
3613   break
3614 fi
3615
3616     done
3617     ac_cv_prog_CPP=$CPP
3618
3619 fi
3620   CPP=$ac_cv_prog_CPP
3621 else
3622   ac_cv_prog_CPP=$CPP
3623 fi
3624 { echo "$as_me:$LINENO: result: $CPP" >&5
3625 echo "${ECHO_T}$CPP" >&6; }
3626 ac_preproc_ok=false
3627 for ac_c_preproc_warn_flag in '' yes
3628 do
3629   # Use a header file that comes with gcc, so configuring glibc
3630   # with a fresh cross-compiler works.
3631   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3632   # <limits.h> exists even on freestanding compilers.
3633   # On the NeXT, cc -E runs the code through the compiler's parser,
3634   # not just through cpp. "Syntax error" is here to catch this case.
3635   cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h.  */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h.  */
3641 #ifdef __STDC__
3642 # include <limits.h>
3643 #else
3644 # include <assert.h>
3645 #endif
3646                      Syntax error
3647 _ACEOF
3648 if { (ac_try="$ac_cpp conftest.$ac_ext"
3649 case "(($ac_try" in
3650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651   *) ac_try_echo=$ac_try;;
3652 esac
3653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3655   ac_status=$?
3656   grep -v '^ *+' conftest.er1 >conftest.err
3657   rm -f conftest.er1
3658   cat conftest.err >&5
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); } >/dev/null && {
3661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3662          test ! -s conftest.err
3663        }; then
3664   :
3665 else
3666   echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669   # Broken: fails on valid input.
3670 continue
3671 fi
3672
3673 rm -f conftest.err conftest.$ac_ext
3674
3675   # OK, works on sane cases.  Now check whether nonexistent headers
3676   # can be detected and how.
3677   cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h.  */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h.  */
3683 #include <ac_nonexistent.h>
3684 _ACEOF
3685 if { (ac_try="$ac_cpp conftest.$ac_ext"
3686 case "(($ac_try" in
3687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688   *) ac_try_echo=$ac_try;;
3689 esac
3690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3692   ac_status=$?
3693   grep -v '^ *+' conftest.er1 >conftest.err
3694   rm -f conftest.er1
3695   cat conftest.err >&5
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); } >/dev/null && {
3698          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3699          test ! -s conftest.err
3700        }; then
3701   # Broken: success on invalid input.
3702 continue
3703 else
3704   echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707   # Passes both tests.
3708 ac_preproc_ok=:
3709 break
3710 fi
3711
3712 rm -f conftest.err conftest.$ac_ext
3713
3714 done
3715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3716 rm -f conftest.err conftest.$ac_ext
3717 if $ac_preproc_ok; then
3718   :
3719 else
3720   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3721 See \`config.log' for more details." >&5
3722 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3723 See \`config.log' for more details." >&2;}
3724    { (exit 1); exit 1; }; }
3725 fi
3726
3727 ac_ext=c
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732
3733
3734 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3735 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3736 if test "${ac_cv_path_GREP+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   # Extract the first word of "grep ggrep" to use in msg output
3740 if test -z "$GREP"; then
3741 set dummy grep ggrep; ac_prog_name=$2
3742 if test "${ac_cv_path_GREP+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   ac_path_GREP_found=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752   for ac_prog in grep ggrep; do
3753   for ac_exec_ext in '' $ac_executable_extensions; do
3754     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3755     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3756     # Check for GNU ac_path_GREP and select it if it is found.
3757   # Check for GNU $ac_path_GREP
3758 case `"$ac_path_GREP" --version 2>&1` in
3759 *GNU*)
3760   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3761 *)
3762   ac_count=0
3763   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3764   while :
3765   do
3766     cat "conftest.in" "conftest.in" >"conftest.tmp"
3767     mv "conftest.tmp" "conftest.in"
3768     cp "conftest.in" "conftest.nl"
3769     echo 'GREP' >> "conftest.nl"
3770     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772     ac_count=`expr $ac_count + 1`
3773     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3774       # Best one so far, save it but keep looking for a better one
3775       ac_cv_path_GREP="$ac_path_GREP"
3776       ac_path_GREP_max=$ac_count
3777     fi
3778     # 10*(2^10) chars as input seems more than enough
3779     test $ac_count -gt 10 && break
3780   done
3781   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782 esac
3783
3784
3785     $ac_path_GREP_found && break 3
3786   done
3787 done
3788
3789 done
3790 IFS=$as_save_IFS
3791
3792
3793 fi
3794
3795 GREP="$ac_cv_path_GREP"
3796 if test -z "$GREP"; then
3797   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799    { (exit 1); exit 1; }; }
3800 fi
3801
3802 else
3803   ac_cv_path_GREP=$GREP
3804 fi
3805
3806
3807 fi
3808 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3809 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3810  GREP="$ac_cv_path_GREP"
3811
3812
3813 { echo "$as_me:$LINENO: checking for egrep" >&5
3814 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3815 if test "${ac_cv_path_EGREP+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3819    then ac_cv_path_EGREP="$GREP -E"
3820    else
3821      # Extract the first word of "egrep" to use in msg output
3822 if test -z "$EGREP"; then
3823 set dummy egrep; ac_prog_name=$2
3824 if test "${ac_cv_path_EGREP+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   ac_path_EGREP_found=false
3828 # Loop through the user's path and test for each of PROGNAME-LIST
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3831 do
3832   IFS=$as_save_IFS
3833   test -z "$as_dir" && as_dir=.
3834   for ac_prog in egrep; do
3835   for ac_exec_ext in '' $ac_executable_extensions; do
3836     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3837     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3838     # Check for GNU ac_path_EGREP and select it if it is found.
3839   # Check for GNU $ac_path_EGREP
3840 case `"$ac_path_EGREP" --version 2>&1` in
3841 *GNU*)
3842   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3843 *)
3844   ac_count=0
3845   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3846   while :
3847   do
3848     cat "conftest.in" "conftest.in" >"conftest.tmp"
3849     mv "conftest.tmp" "conftest.in"
3850     cp "conftest.in" "conftest.nl"
3851     echo 'EGREP' >> "conftest.nl"
3852     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3853     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3854     ac_count=`expr $ac_count + 1`
3855     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3856       # Best one so far, save it but keep looking for a better one
3857       ac_cv_path_EGREP="$ac_path_EGREP"
3858       ac_path_EGREP_max=$ac_count
3859     fi
3860     # 10*(2^10) chars as input seems more than enough
3861     test $ac_count -gt 10 && break
3862   done
3863   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3864 esac
3865
3866
3867     $ac_path_EGREP_found && break 3
3868   done
3869 done
3870
3871 done
3872 IFS=$as_save_IFS
3873
3874
3875 fi
3876
3877 EGREP="$ac_cv_path_EGREP"
3878 if test -z "$EGREP"; then
3879   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3880 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3881    { (exit 1); exit 1; }; }
3882 fi
3883
3884 else
3885   ac_cv_path_EGREP=$EGREP
3886 fi
3887
3888
3889    fi
3890 fi
3891 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3892 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3893  EGREP="$ac_cv_path_EGREP"
3894
3895
3896 if test $ac_cv_c_compiler_gnu = yes; then
3897     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3898 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3899 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902     ac_pattern="Autoconf.*'x'"
3903   cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909 #include <sgtty.h>
3910 Autoconf TIOCGETP
3911 _ACEOF
3912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3913   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3914   ac_cv_prog_gcc_traditional=yes
3915 else
3916   ac_cv_prog_gcc_traditional=no
3917 fi
3918 rm -f conftest*
3919
3920
3921   if test $ac_cv_prog_gcc_traditional = no; then
3922     cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928 #include <termio.h>
3929 Autoconf TCGETA
3930 _ACEOF
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3933   ac_cv_prog_gcc_traditional=yes
3934 fi
3935 rm -f conftest*
3936
3937   fi
3938 fi
3939 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3940 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3941   if test $ac_cv_prog_gcc_traditional = yes; then
3942     CC="$CC -traditional"
3943   fi
3944 fi
3945
3946 BASECC=`basename $CC`
3947 have_gcc=no
3948 if test "x$BASECC" = xgcc; then
3949    cat >>confdefs.h <<\_ACEOF
3950 #define HAVE_GCC 1
3951 _ACEOF
3952
3953    have_gcc=yes
3954 fi
3955 # Extract the first word of "$CXX", so it can be a program name with args.
3956 set dummy $CXX; ac_word=$2
3957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_CXX+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   case $CXX in
3963   [\\/]* | ?:[\\/]*)
3964   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3965   ;;
3966   *)
3967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_exec_ext in '' $ac_executable_extensions; do
3973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3974     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979 done
3980 IFS=$as_save_IFS
3981
3982   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3983   ;;
3984 esac
3985 fi
3986 CXX=$ac_cv_path_CXX
3987 if test -n "$CXX"; then
3988   { echo "$as_me:$LINENO: result: $CXX" >&5
3989 echo "${ECHO_T}$CXX" >&6; }
3990 else
3991   { echo "$as_me:$LINENO: result: no" >&5
3992 echo "${ECHO_T}no" >&6; }
3993 fi
3994
3995
3996 if test ! -e $CXX; then
3997    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3998 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3999    { (exit 1); exit 1; }; }
4000 fi
4001
4002 # Find a good install program.  We prefer a C program (faster),
4003 # so one script is as good as another.  But avoid the broken or
4004 # incompatible versions:
4005 # SysV /etc/install, /usr/sbin/install
4006 # SunOS /usr/etc/install
4007 # IRIX /sbin/install
4008 # AIX /bin/install
4009 # AmigaOS /C/install, which installs bootblocks on floppy discs
4010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4013 # OS/2's system install, which has a completely different semantic
4014 # ./install, which can be erroneously created by make from ./install.sh.
4015 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4016 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4017 if test -z "$INSTALL"; then
4018 if test "${ac_cv_path_install+set}" = set; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024   IFS=$as_save_IFS
4025   test -z "$as_dir" && as_dir=.
4026   # Account for people who put trailing slashes in PATH elements.
4027 case $as_dir/ in
4028   ./ | .// | /cC/* | \
4029   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4030   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4031   /usr/ucb/* ) ;;
4032   *)
4033     # OSF1 and SCO ODT 3.0 have their own names for install.
4034     # Don't use installbsd from OSF since it installs stuff as root
4035     # by default.
4036     for ac_prog in ginstall scoinst install; do
4037       for ac_exec_ext in '' $ac_executable_extensions; do
4038         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4039           if test $ac_prog = install &&
4040             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4041             # AIX install.  It has an incompatible calling convention.
4042             :
4043           elif test $ac_prog = install &&
4044             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4045             # program-specific install script used by HP pwplus--don't use.
4046             :
4047           else
4048             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4049             break 3
4050           fi
4051         fi
4052       done
4053     done
4054     ;;
4055 esac
4056 done
4057 IFS=$as_save_IFS
4058
4059
4060 fi
4061   if test "${ac_cv_path_install+set}" = set; then
4062     INSTALL=$ac_cv_path_install
4063   else
4064     # As a last resort, use the slow shell script.  Don't cache a
4065     # value for INSTALL within a source directory, because that will
4066     # break other packages using the cache if that directory is
4067     # removed, or if the value is a relative name.
4068     INSTALL=$ac_install_sh
4069   fi
4070 fi
4071 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4072 echo "${ECHO_T}$INSTALL" >&6; }
4073
4074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4075 # It thinks the first close brace ends the variable substitution.
4076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4077
4078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4079
4080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4081
4082 if test -n "$ac_tool_prefix"; then
4083   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4087 if test "${ac_cv_prog_RANLIB+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   if test -n "$RANLIB"; then
4091   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098   for ac_exec_ext in '' $ac_executable_extensions; do
4099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105 done
4106 IFS=$as_save_IFS
4107
4108 fi
4109 fi
4110 RANLIB=$ac_cv_prog_RANLIB
4111 if test -n "$RANLIB"; then
4112   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4113 echo "${ECHO_T}$RANLIB" >&6; }
4114 else
4115   { echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6; }
4117 fi
4118
4119
4120 fi
4121 if test -z "$ac_cv_prog_RANLIB"; then
4122   ac_ct_RANLIB=$RANLIB
4123   # Extract the first word of "ranlib", so it can be a program name with args.
4124 set dummy ranlib; ac_word=$2
4125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4127 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   if test -n "$ac_ct_RANLIB"; then
4131   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4132 else
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136   IFS=$as_save_IFS
4137   test -z "$as_dir" && as_dir=.
4138   for ac_exec_ext in '' $ac_executable_extensions; do
4139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140     ac_cv_prog_ac_ct_RANLIB="ranlib"
4141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142     break 2
4143   fi
4144 done
4145 done
4146 IFS=$as_save_IFS
4147
4148 fi
4149 fi
4150 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4151 if test -n "$ac_ct_RANLIB"; then
4152   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4153 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4154 else
4155   { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4157 fi
4158
4159   if test "x$ac_ct_RANLIB" = x; then
4160     RANLIB=":"
4161   else
4162     case $cross_compiling:$ac_tool_warned in
4163 yes:)
4164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4165 whose name does not start with the host triplet.  If you think this
4166 configuration is useful to you, please write to autoconf@gnu.org." >&5
4167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4168 whose name does not start with the host triplet.  If you think this
4169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4170 ac_tool_warned=yes ;;
4171 esac
4172     RANLIB=$ac_ct_RANLIB
4173   fi
4174 else
4175   RANLIB="$ac_cv_prog_RANLIB"
4176 fi
4177
4178 # Extract the first word of "mv", so it can be a program name with args.
4179 set dummy mv; ac_word=$2
4180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4182 if test "${ac_cv_path_MV+set}" = set; then
4183   echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185   case $MV in
4186   [\\/]* | ?:[\\/]*)
4187   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4188   ;;
4189   *)
4190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195   for ac_exec_ext in '' $ac_executable_extensions; do
4196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4206   ;;
4207 esac
4208 fi
4209 MV=$ac_cv_path_MV
4210 if test -n "$MV"; then
4211   { echo "$as_me:$LINENO: result: $MV" >&5
4212 echo "${ECHO_T}$MV" >&6; }
4213 else
4214   { echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6; }
4216 fi
4217
4218
4219 # Extract the first word of "rm", so it can be a program name with args.
4220 set dummy rm; ac_word=$2
4221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4223 if test "${ac_cv_path_RM+set}" = set; then
4224   echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226   case $RM in
4227   [\\/]* | ?:[\\/]*)
4228   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4229   ;;
4230   *)
4231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234   IFS=$as_save_IFS
4235   test -z "$as_dir" && as_dir=.
4236   for ac_exec_ext in '' $ac_executable_extensions; do
4237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240     break 2
4241   fi
4242 done
4243 done
4244 IFS=$as_save_IFS
4245
4246   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4247   ;;
4248 esac
4249 fi
4250 RM=$ac_cv_path_RM
4251 if test -n "$RM"; then
4252   { echo "$as_me:$LINENO: result: $RM" >&5
4253 echo "${ECHO_T}$RM" >&6; }
4254 else
4255   { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4257 fi
4258
4259
4260 # Extract the first word of "cp", so it can be a program name with args.
4261 set dummy cp; ac_word=$2
4262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264 if test "${ac_cv_path_CP+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   case $CP in
4268   [\\/]* | ?:[\\/]*)
4269   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4270   ;;
4271   *)
4272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275   IFS=$as_save_IFS
4276   test -z "$as_dir" && as_dir=.
4277   for ac_exec_ext in '' $ac_executable_extensions; do
4278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281     break 2
4282   fi
4283 done
4284 done
4285 IFS=$as_save_IFS
4286
4287   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4288   ;;
4289 esac
4290 fi
4291 CP=$ac_cv_path_CP
4292 if test -n "$CP"; then
4293   { echo "$as_me:$LINENO: result: $CP" >&5
4294 echo "${ECHO_T}$CP" >&6; }
4295 else
4296   { echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6; }
4298 fi
4299
4300
4301 # Extract the first word of "sed", so it can be a program name with args.
4302 set dummy sed; ac_word=$2
4303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4305 if test "${ac_cv_path_SED+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   case $SED in
4309   [\\/]* | ?:[\\/]*)
4310   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4311   ;;
4312   *)
4313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316   IFS=$as_save_IFS
4317   test -z "$as_dir" && as_dir=.
4318   for ac_exec_ext in '' $ac_executable_extensions; do
4319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322     break 2
4323   fi
4324 done
4325 done
4326 IFS=$as_save_IFS
4327
4328   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4329   ;;
4330 esac
4331 fi
4332 SED=$ac_cv_path_SED
4333 if test -n "$SED"; then
4334   { echo "$as_me:$LINENO: result: $SED" >&5
4335 echo "${ECHO_T}$SED" >&6; }
4336 else
4337   { echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6; }
4339 fi
4340
4341
4342 # Extract the first word of "echo", so it can be a program name with args.
4343 set dummy echo; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_path_ECHO+set}" = set; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349   case $ECHO in
4350   [\\/]* | ?:[\\/]*)
4351   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4352   ;;
4353   *)
4354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH
4356 do
4357   IFS=$as_save_IFS
4358   test -z "$as_dir" && as_dir=.
4359   for ac_exec_ext in '' $ac_executable_extensions; do
4360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4361     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363     break 2
4364   fi
4365 done
4366 done
4367 IFS=$as_save_IFS
4368
4369   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4370   ;;
4371 esac
4372 fi
4373 ECHO=$ac_cv_path_ECHO
4374 if test -n "$ECHO"; then
4375   { echo "$as_me:$LINENO: result: $ECHO" >&5
4376 echo "${ECHO_T}$ECHO" >&6; }
4377 else
4378   { echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6; }
4380 fi
4381
4382
4383 # Extract the first word of "cmp", so it can be a program name with args.
4384 set dummy cmp; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_path_CMP+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   case $CMP in
4391   [\\/]* | ?:[\\/]*)
4392   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4393   ;;
4394   *)
4395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398   IFS=$as_save_IFS
4399   test -z "$as_dir" && as_dir=.
4400   for ac_exec_ext in '' $ac_executable_extensions; do
4401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404     break 2
4405   fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4411   ;;
4412 esac
4413 fi
4414 CMP=$ac_cv_path_CMP
4415 if test -n "$CMP"; then
4416   { echo "$as_me:$LINENO: result: $CMP" >&5
4417 echo "${ECHO_T}$CMP" >&6; }
4418 else
4419   { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4421 fi
4422
4423
4424 # Extract the first word of "tbl", so it can be a program name with args.
4425 set dummy tbl; ac_word=$2
4426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4428 if test "${ac_cv_path_TBL+set}" = set; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431   case $TBL in
4432   [\\/]* | ?:[\\/]*)
4433   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4434   ;;
4435   *)
4436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439   IFS=$as_save_IFS
4440   test -z "$as_dir" && as_dir=.
4441   for ac_exec_ext in '' $ac_executable_extensions; do
4442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445     break 2
4446   fi
4447 done
4448 done
4449 IFS=$as_save_IFS
4450
4451   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4452   ;;
4453 esac
4454 fi
4455 TBL=$ac_cv_path_TBL
4456 if test -n "$TBL"; then
4457   { echo "$as_me:$LINENO: result: $TBL" >&5
4458 echo "${ECHO_T}$TBL" >&6; }
4459 else
4460   { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4462 fi
4463
4464
4465 # Extract the first word of "ar", so it can be a program name with args.
4466 set dummy ar; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_path_AR+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   case $AR in
4473   [\\/]* | ?:[\\/]*)
4474   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4475   ;;
4476   *)
4477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482   for ac_exec_ext in '' $ac_executable_extensions; do
4483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4484     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486     break 2
4487   fi
4488 done
4489 done
4490 IFS=$as_save_IFS
4491
4492   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4493   ;;
4494 esac
4495 fi
4496 AR=$ac_cv_path_AR
4497 if test -n "$AR"; then
4498   { echo "$as_me:$LINENO: result: $AR" >&5
4499 echo "${ECHO_T}$AR" >&6; }
4500 else
4501   { echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6; }
4503 fi
4504
4505
4506 # Extract the first word of "openssl", so it can be a program name with args.
4507 set dummy openssl; ac_word=$2
4508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510 if test "${ac_cv_path_OPENSSL+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   case $OPENSSL in
4514   [\\/]* | ?:[\\/]*)
4515   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4516   ;;
4517   *)
4518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523   for ac_exec_ext in '' $ac_executable_extensions; do
4524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530 done
4531 IFS=$as_save_IFS
4532
4533   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4534   ;;
4535 esac
4536 fi
4537 OPENSSL=$ac_cv_path_OPENSSL
4538 if test -n "$OPENSSL"; then
4539   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4540 echo "${ECHO_T}$OPENSSL" >&6; }
4541 else
4542   { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4544 fi
4545
4546
4547 # Extract the first word of "mtx", so it can be a program name with args.
4548 set dummy mtx; ac_word=$2
4549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4551 if test "${ac_cv_path_MTX+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   case $MTX in
4555   [\\/]* | ?:[\\/]*)
4556   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4557   ;;
4558   *)
4559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564   for ac_exec_ext in '' $ac_executable_extensions; do
4565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571 done
4572 IFS=$as_save_IFS
4573
4574   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4575   ;;
4576 esac
4577 fi
4578 MTX=$ac_cv_path_MTX
4579 if test -n "$MTX"; then
4580   { echo "$as_me:$LINENO: result: $MTX" >&5
4581 echo "${ECHO_T}$MTX" >&6; }
4582 else
4583   { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4585 fi
4586
4587
4588 # Extract the first word of "dd", so it can be a program name with args.
4589 set dummy dd; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_path_DD+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   case $DD in
4596   [\\/]* | ?:[\\/]*)
4597   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4598   ;;
4599   *)
4600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605   for ac_exec_ext in '' $ac_executable_extensions; do
4606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609     break 2
4610   fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4616   ;;
4617 esac
4618 fi
4619 DD=$ac_cv_path_DD
4620 if test -n "$DD"; then
4621   { echo "$as_me:$LINENO: result: $DD" >&5
4622 echo "${ECHO_T}$DD" >&6; }
4623 else
4624   { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4626 fi
4627
4628
4629 # Extract the first word of "mkisofs", so it can be a program name with args.
4630 set dummy mkisofs; ac_word=$2
4631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4633 if test "${ac_cv_path_MKISOFS+set}" = set; then
4634   echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636   case $MKISOFS in
4637   [\\/]* | ?:[\\/]*)
4638   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4639   ;;
4640   *)
4641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644   IFS=$as_save_IFS
4645   test -z "$as_dir" && as_dir=.
4646   for ac_exec_ext in '' $ac_executable_extensions; do
4647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4648     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650     break 2
4651   fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4657   ;;
4658 esac
4659 fi
4660 MKISOFS=$ac_cv_path_MKISOFS
4661 if test -n "$MKISOFS"; then
4662   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4663 echo "${ECHO_T}$MKISOFS" >&6; }
4664 else
4665   { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4667 fi
4668
4669
4670 # Extract the first word of "python", so it can be a program name with args.
4671 set dummy python; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_path_PYTHON+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   case $PYTHON in
4678   [\\/]* | ?:[\\/]*)
4679   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4680   ;;
4681   *)
4682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_exec_ext in '' $ac_executable_extensions; do
4688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691     break 2
4692   fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4698   ;;
4699 esac
4700 fi
4701 PYTHON=$ac_cv_path_PYTHON
4702 if test -n "$PYTHON"; then
4703   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4704 echo "${ECHO_T}$PYTHON" >&6; }
4705 else
4706   { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4708 fi
4709
4710
4711 # Extract the first word of "growisofs", so it can be a program name with args.
4712 set dummy growisofs; ac_word=$2
4713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4715 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   case $GROWISOFS in
4719   [\\/]* | ?:[\\/]*)
4720   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4721   ;;
4722   *)
4723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726   IFS=$as_save_IFS
4727   test -z "$as_dir" && as_dir=.
4728   for ac_exec_ext in '' $ac_executable_extensions; do
4729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732     break 2
4733   fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4739   ;;
4740 esac
4741 fi
4742 GROWISOFS=$ac_cv_path_GROWISOFS
4743 if test -n "$GROWISOFS"; then
4744   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4745 echo "${ECHO_T}$GROWISOFS" >&6; }
4746 else
4747   { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4749 fi
4750
4751
4752 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4753 set dummy dvd+rw-mediainfo; ac_word=$2
4754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4756 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4757   echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759   case $DVDRWMEDIAINFO in
4760   [\\/]* | ?:[\\/]*)
4761   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4762   ;;
4763   *)
4764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769   for ac_exec_ext in '' $ac_executable_extensions; do
4770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776 done
4777 IFS=$as_save_IFS
4778
4779   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4780   ;;
4781 esac
4782 fi
4783 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4784 if test -n "$DVDRWMEDIAINFO"; then
4785   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4786 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4787 else
4788   { echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6; }
4790 fi
4791
4792
4793 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4794 set dummy dvd+rw-format; ac_word=$2
4795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4797 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4798   echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800   case $DVDRWFORMAT in
4801   [\\/]* | ?:[\\/]*)
4802   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4803   ;;
4804   *)
4805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808   IFS=$as_save_IFS
4809   test -z "$as_dir" && as_dir=.
4810   for ac_exec_ext in '' $ac_executable_extensions; do
4811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814     break 2
4815   fi
4816 done
4817 done
4818 IFS=$as_save_IFS
4819
4820   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4821   ;;
4822 esac
4823 fi
4824 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4825 if test -n "$DVDRWFORMAT"; then
4826   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4827 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4828 else
4829   { echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6; }
4831 fi
4832
4833
4834 # Extract the first word of "pkg-config", so it can be a program name with args.
4835 set dummy pkg-config; ac_word=$2
4836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4838 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   case $PKGCONFIG in
4842   [\\/]* | ?:[\\/]*)
4843   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4844   ;;
4845   *)
4846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4848 do
4849   IFS=$as_save_IFS
4850   test -z "$as_dir" && as_dir=.
4851   for ac_exec_ext in '' $ac_executable_extensions; do
4852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855     break 2
4856   fi
4857 done
4858 done
4859 IFS=$as_save_IFS
4860
4861   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4862   ;;
4863 esac
4864 fi
4865 PKGCONFIG=$ac_cv_path_PKGCONFIG
4866 if test -n "$PKGCONFIG"; then
4867   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4868 echo "${ECHO_T}$PKGCONFIG" >&6; }
4869 else
4870   { echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6; }
4872 fi
4873
4874
4875 # Extract the first word of "qmake", so it can be a program name with args.
4876 set dummy qmake; ac_word=$2
4877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4879 if test "${ac_cv_path_QMAKE+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   case $QMAKE in
4883   [\\/]* | ?:[\\/]*)
4884   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4885   ;;
4886   *)
4887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890   IFS=$as_save_IFS
4891   test -z "$as_dir" && as_dir=.
4892   for ac_exec_ext in '' $ac_executable_extensions; do
4893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896     break 2
4897   fi
4898 done
4899 done
4900 IFS=$as_save_IFS
4901
4902   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4903   ;;
4904 esac
4905 fi
4906 QMAKE=$ac_cv_path_QMAKE
4907 if test -n "$QMAKE"; then
4908   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4909 echo "${ECHO_T}$QMAKE" >&6; }
4910 else
4911   { echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6; }
4913 fi
4914
4915
4916 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4917 set dummy qmake-qt4; ac_word=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923   case $QMAKEQT4 in
4924   [\\/]* | ?:[\\/]*)
4925   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4926   ;;
4927   *)
4928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931   IFS=$as_save_IFS
4932   test -z "$as_dir" && as_dir=.
4933   for ac_exec_ext in '' $ac_executable_extensions; do
4934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937     break 2
4938   fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942
4943   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4944   ;;
4945 esac
4946 fi
4947 QMAKEQT4=$ac_cv_path_QMAKEQT4
4948 if test -n "$QMAKEQT4"; then
4949   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4950 echo "${ECHO_T}$QMAKEQT4" >&6; }
4951 else
4952   { echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6; }
4954 fi
4955
4956
4957
4958 if test "x$WXCONFIG" = x; then
4959   WXCONFIG=wx-config
4960 fi
4961 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4962 set dummy ${WXCONFIG}; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   case $WXCONFIG in
4969   [\\/]* | ?:[\\/]*)
4970   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4971   ;;
4972   *)
4973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   test -z "$as_dir" && as_dir=.
4978   for ac_exec_ext in '' $ac_executable_extensions; do
4979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983   fi
4984 done
4985 done
4986 IFS=$as_save_IFS
4987
4988   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4989   ;;
4990 esac
4991 fi
4992 WXCONFIG=$ac_cv_path_WXCONFIG
4993 if test -n "$WXCONFIG"; then
4994   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4995 echo "${ECHO_T}$WXCONFIG" >&6; }
4996 else
4997   { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
4999 fi
5000
5001
5002
5003 # Extract the first word of "cdrecord", so it can be a program name with args.
5004 set dummy cdrecord; ac_word=$2
5005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5007 if test "${ac_cv_path_CDRECORD+set}" = set; then
5008   echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010   case $CDRECORD in
5011   [\\/]* | ?:[\\/]*)
5012   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5013   ;;
5014   *)
5015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020   for ac_exec_ext in '' $ac_executable_extensions; do
5021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024     break 2
5025   fi
5026 done
5027 done
5028 IFS=$as_save_IFS
5029
5030   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5031   ;;
5032 esac
5033 fi
5034 CDRECORD=$ac_cv_path_CDRECORD
5035 if test -n "$CDRECORD"; then
5036   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5037 echo "${ECHO_T}$CDRECORD" >&6; }
5038 else
5039   { echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6; }
5041 fi
5042
5043
5044 # Extract the first word of "pidof", so it can be a program name with args.
5045 set dummy pidof; ac_word=$2
5046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048 if test "${ac_cv_path_PIDOF+set}" = set; then
5049   echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051   case $PIDOF in
5052   [\\/]* | ?:[\\/]*)
5053   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5054   ;;
5055   *)
5056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061   for ac_exec_ext in '' $ac_executable_extensions; do
5062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5072   ;;
5073 esac
5074 fi
5075 PIDOF=$ac_cv_path_PIDOF
5076 if test -n "$PIDOF"; then
5077   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5078 echo "${ECHO_T}$PIDOF" >&6; }
5079 else
5080   { echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6; }
5082 fi
5083
5084
5085 for ac_prog in gawk mawk nawk awk
5086 do
5087   # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5091 if test "${ac_cv_prog_AWK+set}" = set; then
5092   echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094   if test -n "$AWK"; then
5095   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100   IFS=$as_save_IFS
5101   test -z "$as_dir" && as_dir=.
5102   for ac_exec_ext in '' $ac_executable_extensions; do
5103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104     ac_cv_prog_AWK="$ac_prog"
5105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106     break 2
5107   fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 AWK=$ac_cv_prog_AWK
5115 if test -n "$AWK"; then
5116   { echo "$as_me:$LINENO: result: $AWK" >&5
5117 echo "${ECHO_T}$AWK" >&6; }
5118 else
5119   { echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6; }
5121 fi
5122
5123
5124   test -n "$AWK" && break
5125 done
5126
5127 # Some AWK programs fail, so test it and warn the user
5128 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5129       { if ((prog == $2) || (("(" prog ")") == $2) ||
5130            (("" prog "") == $2) ||
5131            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5132 else
5133   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5134    The regex engine of $AWK is too broken to be used you
5135    might want to install GNU AWK.
5136    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5137 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5138    The regex engine of $AWK is too broken to be used you
5139    might want to install GNU AWK.
5140    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5141    { (exit 1); exit 1; }; }
5142 fi
5143 THE_AWK=$AWK
5144 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5145 set dummy $THE_AWK; ac_word=$2
5146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5148 if test "${ac_cv_path_AWK+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   case $AWK in
5152   [\\/]* | ?:[\\/]*)
5153   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5154   ;;
5155   *)
5156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161   for ac_exec_ext in '' $ac_executable_extensions; do
5162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168 done
5169 IFS=$as_save_IFS
5170
5171   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5172   ;;
5173 esac
5174 fi
5175 AWK=$ac_cv_path_AWK
5176 if test -n "$AWK"; then
5177   { echo "$as_me:$LINENO: result: $AWK" >&5
5178 echo "${ECHO_T}$AWK" >&6; }
5179 else
5180   { echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6; }
5182 fi
5183
5184
5185
5186
5187 test -n "$ARFLAG" || ARFLAGS="cr"
5188
5189
5190 MAKE_SHELL=/bin/sh
5191
5192
5193
5194
5195
5196
5197
5198 # Make sure we can run config.sub.
5199 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5200   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5201 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5202    { (exit 1); exit 1; }; }
5203
5204 { echo "$as_me:$LINENO: checking build system type" >&5
5205 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5206 if test "${ac_cv_build+set}" = set; then
5207   echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209   ac_build_alias=$build_alias
5210 test "x$ac_build_alias" = x &&
5211   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5212 test "x$ac_build_alias" = x &&
5213   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5214 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5215    { (exit 1); exit 1; }; }
5216 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5217   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5218 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5219    { (exit 1); exit 1; }; }
5220
5221 fi
5222 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5223 echo "${ECHO_T}$ac_cv_build" >&6; }
5224 case $ac_cv_build in
5225 *-*-*) ;;
5226 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5227 echo "$as_me: error: invalid value of canonical build" >&2;}
5228    { (exit 1); exit 1; }; };;
5229 esac
5230 build=$ac_cv_build
5231 ac_save_IFS=$IFS; IFS='-'
5232 set x $ac_cv_build
5233 shift
5234 build_cpu=$1
5235 build_vendor=$2
5236 shift; shift
5237 # Remember, the first character of IFS is used to create $*,
5238 # except with old shells:
5239 build_os=$*
5240 IFS=$ac_save_IFS
5241 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5242
5243
5244
5245 { echo "$as_me:$LINENO: checking host system type" >&5
5246 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5247 if test "${ac_cv_host+set}" = set; then
5248   echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250   if test "x$host_alias" = x; then
5251   ac_cv_host=$ac_cv_build
5252 else
5253   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5254     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5255 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5256    { (exit 1); exit 1; }; }
5257 fi
5258
5259 fi
5260 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5261 echo "${ECHO_T}$ac_cv_host" >&6; }
5262 case $ac_cv_host in
5263 *-*-*) ;;
5264 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5265 echo "$as_me: error: invalid value of canonical host" >&2;}
5266    { (exit 1); exit 1; }; };;
5267 esac
5268 host=$ac_cv_host
5269 ac_save_IFS=$IFS; IFS='-'
5270 set x $ac_cv_host
5271 shift
5272 host_cpu=$1
5273 host_vendor=$2
5274 shift; shift
5275 # Remember, the first character of IFS is used to create $*,
5276 # except with old shells:
5277 host_os=$*
5278 IFS=$ac_save_IFS
5279 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5280
5281
5282 case $host_os in
5283   *cygwin* ) CYGWIN=yes;;
5284          * ) CYGWIN=no;;
5285 esac
5286
5287 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5288 then
5289
5290
5291 if $TRUEPRG; then
5292   HAVE_SUN_OS_TRUE=
5293   HAVE_SUN_OS_FALSE='#'
5294 else
5295   HAVE_SUN_OS_TRUE='#'
5296   HAVE_SUN_OS_FALSE=
5297 fi
5298         cat >>confdefs.h <<\_ACEOF
5299 #define HAVE_SUN_OS 1
5300 _ACEOF
5301
5302 else
5303
5304
5305 if $FALSEPRG; then
5306   HAVE_SUN_OS_TRUE=
5307   HAVE_SUN_OS_FALSE='#'
5308 else
5309   HAVE_SUN_OS_TRUE='#'
5310   HAVE_SUN_OS_FALSE=
5311 fi
5312 fi
5313
5314 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5315 then
5316
5317
5318 if $TRUEPRG; then
5319   HAVE_OSF1_OS_TRUE=
5320   HAVE_OSF1_OS_FALSE='#'
5321 else
5322   HAVE_OSF1_OS_TRUE='#'
5323   HAVE_OSF1_OS_FALSE=
5324 fi
5325         cat >>confdefs.h <<\_ACEOF
5326 #define HAVE_OSF1_OS 1
5327 _ACEOF
5328
5329 else
5330
5331
5332 if $FALSEPRG; then
5333   HAVE_OSF1_OS_TRUE=
5334   HAVE_OSF1_OS_FALSE='#'
5335 else
5336   HAVE_OSF1_OS_TRUE='#'
5337   HAVE_OSF1_OS_FALSE=
5338 fi
5339 fi
5340
5341 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5342 then
5343
5344
5345 if $TRUEPRG; then
5346   HAVE_AIX_OS_TRUE=
5347   HAVE_AIX_OS_FALSE='#'
5348 else
5349   HAVE_AIX_OS_TRUE='#'
5350   HAVE_AIX_OS_FALSE=
5351 fi
5352         cat >>confdefs.h <<\_ACEOF
5353 #define HAVE_AIX_OS 1
5354 _ACEOF
5355
5356 else
5357
5358
5359 if $FALSEPRG; then
5360   HAVE_AIX_OS_TRUE=
5361   HAVE_AIX_OS_FALSE='#'
5362 else
5363   HAVE_AIX_OS_TRUE='#'
5364   HAVE_AIX_OS_FALSE=
5365 fi
5366 fi
5367
5368 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5369 then
5370
5371
5372 if $TRUEPRG; then
5373   HAVE_HPUX_OS_TRUE=
5374   HAVE_HPUX_OS_FALSE='#'
5375 else
5376   HAVE_HPUX_OS_TRUE='#'
5377   HAVE_HPUX_OS_FALSE=
5378 fi
5379         cat >>confdefs.h <<\_ACEOF
5380 #define HAVE_HPUX_OS 1
5381 _ACEOF
5382
5383 else
5384
5385
5386 if $FALSEPRG; then
5387   HAVE_HPUX_OS_TRUE=
5388   HAVE_HPUX_OS_FALSE='#'
5389 else
5390   HAVE_HPUX_OS_TRUE='#'
5391   HAVE_HPUX_OS_FALSE=
5392 fi
5393 fi
5394
5395 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5396 then
5397
5398
5399 if $TRUEPRG; then
5400   HAVE_LINUX_OS_TRUE=
5401   HAVE_LINUX_OS_FALSE='#'
5402 else
5403   HAVE_LINUX_OS_TRUE='#'
5404   HAVE_LINUX_OS_FALSE=
5405 fi
5406         cat >>confdefs.h <<\_ACEOF
5407 #define HAVE_LINUX_OS 1
5408 _ACEOF
5409
5410 else
5411
5412
5413 if $FALSEPRG; then
5414   HAVE_LINUX_OS_TRUE=
5415   HAVE_LINUX_OS_FALSE='#'
5416 else
5417   HAVE_LINUX_OS_TRUE='#'
5418   HAVE_LINUX_OS_FALSE=
5419 fi
5420 fi
5421
5422 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5423 then
5424
5425
5426 if $TRUEPRG; then
5427   HAVE_FREEBSD_OS_TRUE=
5428   HAVE_FREEBSD_OS_FALSE='#'
5429 else
5430   HAVE_FREEBSD_OS_TRUE='#'
5431   HAVE_FREEBSD_OS_FALSE=
5432 fi
5433         cat >>confdefs.h <<\_ACEOF
5434 #define HAVE_FREEBSD_OS 1
5435 _ACEOF
5436
5437 else
5438
5439
5440 if $FALSEPRG; then
5441   HAVE_FREEBSD_OS_TRUE=
5442   HAVE_FREEBSD_OS_FALSE='#'
5443 else
5444   HAVE_FREEBSD_OS_TRUE='#'
5445   HAVE_FREEBSD_OS_FALSE=
5446 fi
5447 fi
5448
5449 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5450 then
5451
5452
5453 if $TRUEPRG; then
5454   HAVE_NETBSD_OS_TRUE=
5455   HAVE_NETBSD_OS_FALSE='#'
5456 else
5457   HAVE_NETBSD_OS_TRUE='#'
5458   HAVE_NETBSD_OS_FALSE=
5459 fi
5460         cat >>confdefs.h <<\_ACEOF
5461 #define HAVE_NETBSD_OS 1
5462 _ACEOF
5463
5464 else
5465
5466
5467 if $FALSEPRG; then
5468   HAVE_NETBSD_OS_TRUE=
5469   HAVE_NETBSD_OS_FALSE='#'
5470 else
5471   HAVE_NETBSD_OS_TRUE='#'
5472   HAVE_NETBSD_OS_FALSE=
5473 fi
5474 fi
5475
5476 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5477 then
5478
5479
5480 if $TRUEPRG; then
5481   HAVE_OPENBSD_OS_TRUE=
5482   HAVE_OPENBSD_OS_FALSE='#'
5483 else
5484   HAVE_OPENBSD_OS_TRUE='#'
5485   HAVE_OPENBSD_OS_FALSE=
5486 fi
5487         cat >>confdefs.h <<\_ACEOF
5488 #define HAVE_OPENBSD_OS 1
5489 _ACEOF
5490
5491 else
5492
5493
5494 if $FALSEPRG; then
5495   HAVE_OPENBSD_OS_TRUE=
5496   HAVE_OPENBSD_OS_FALSE='#'
5497 else
5498   HAVE_OPENBSD_OS_TRUE='#'
5499   HAVE_OPENBSD_OS_FALSE=
5500 fi
5501 fi
5502
5503 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5504 then
5505
5506
5507 if $TRUEPRG; then
5508   HAVE_BSDI_OS_TRUE=
5509   HAVE_BSDI_OS_FALSE='#'
5510 else
5511   HAVE_BSDI_OS_TRUE='#'
5512   HAVE_BSDI_OS_FALSE=
5513 fi
5514         cat >>confdefs.h <<\_ACEOF
5515 #define HAVE_BSDI_OS 1
5516 _ACEOF
5517
5518 else
5519
5520
5521 if $FALSEPRG; then
5522   HAVE_BSDI_OS_TRUE=
5523   HAVE_BSDI_OS_FALSE='#'
5524 else
5525   HAVE_BSDI_OS_TRUE='#'
5526   HAVE_BSDI_OS_FALSE=
5527 fi
5528 fi
5529
5530 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5531 then
5532
5533
5534 if $TRUEPRG; then
5535   HAVE_SGI_OS_TRUE=
5536   HAVE_SGI_OS_FALSE='#'
5537 else
5538   HAVE_SGI_OS_TRUE='#'
5539   HAVE_SGI_OS_FALSE=
5540 fi
5541         cat >>confdefs.h <<\_ACEOF
5542 #define HAVE_SGI_OS 1
5543 _ACEOF
5544
5545 else
5546
5547
5548 if $FALSEPRG; then
5549   HAVE_SGI_OS_TRUE=
5550   HAVE_SGI_OS_FALSE='#'
5551 else
5552   HAVE_SGI_OS_TRUE='#'
5553   HAVE_SGI_OS_FALSE=
5554 fi
5555 fi
5556
5557 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5558 then
5559
5560
5561 if $TRUEPRG; then
5562   HAVE_IRIX_OS_TRUE=
5563   HAVE_IRIX_OS_FALSE='#'
5564 else
5565   HAVE_IRIX_OS_TRUE='#'
5566   HAVE_IRIX_OS_FALSE=
5567 fi
5568         cat >>confdefs.h <<\_ACEOF
5569 #define HAVE_IRIX_OS 1
5570 _ACEOF
5571
5572 else
5573
5574
5575 if $FALSEPRG; then
5576   HAVE_IRIX_OS_TRUE=
5577   HAVE_IRIX_OS_FALSE='#'
5578 else
5579   HAVE_IRIX_OS_TRUE='#'
5580   HAVE_IRIX_OS_FALSE=
5581 fi
5582 fi
5583
5584 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5585 then
5586
5587
5588 if $TRUEPRG; then
5589   HAVE_DARWIN_OS_TRUE=
5590   HAVE_DARWIN_OS_FALSE='#'
5591 else
5592   HAVE_DARWIN_OS_TRUE='#'
5593   HAVE_DARWIN_OS_FALSE=
5594 fi
5595
5596     cat >>confdefs.h <<\_ACEOF
5597 #define HAVE_DARWIN_OS 1
5598 _ACEOF
5599
5600 else
5601
5602
5603 if $FALSEPRG; then
5604   HAVE_DARWIN_OS_TRUE=
5605   HAVE_DARWIN_OS_FALSE='#'
5606 else
5607   HAVE_DARWIN_OS_TRUE='#'
5608   HAVE_DARWIN_OS_FALSE=
5609 fi
5610
5611 fi
5612
5613
5614 # -----------------------------------------------------------
5615 # ----------------------------------------------------------
5616 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5617 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5618 if test "x$DISTNAME" != "x"
5619 then
5620         echo "distname set to $DISTNAME"
5621 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5622 then
5623         DISTNAME=alpha
5624 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5625 then
5626         DISTNAME=aix
5627 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5628 then
5629         DISTNAME=hpux
5630 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5631 then
5632         DISTNAME=solaris
5633 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5634 then
5635         DISTNAME=freebsd
5636 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5637 then
5638         DISTNAME=netbsd
5639 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5640 then
5641         DISTNAME=openbsd
5642 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5643 then
5644         DISTNAME=irix
5645 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5646 then
5647         DISTNAME=bsdi
5648 elif test -f /etc/SuSE-release
5649 then
5650         DISTNAME=suse
5651 elif test -d /etc/SuSEconfig
5652 then
5653         DISTNAME=suse5
5654 elif test -f /etc/mandrake-release
5655 then
5656         DISTNAME=mandrake
5657 elif test -f /etc/whitebox-release
5658 then
5659        DISTNAME=redhat
5660 elif test -f /etc/redhat-release
5661 then
5662         DISTNAME=redhat
5663 elif test -f /etc/gentoo-release
5664 then
5665         DISTNAME=gentoo
5666 elif test -f /etc/debian_version
5667 then
5668         DISTNAME=debian
5669 elif test -f /etc/slackware-version
5670 then
5671         DISTNAME=slackware
5672 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5673 then
5674     DISTNAME=darwin
5675 elif test -f /etc/engarde-version
5676 then
5677         DISTNAME=engarde
5678 elif test "$CYGWIN" = yes
5679 then
5680         DISTNAME=cygwin
5681         cat >>confdefs.h <<\_ACEOF
5682 #define HAVE_CYGWIN 1
5683 _ACEOF
5684
5685 else
5686         DISTNAME=unknown
5687 fi
5688 { echo "$as_me:$LINENO: result: done" >&5
5689 echo "${ECHO_T}done" >&6; }
5690
5691
5692 # --------------------------------------------------
5693 # Suppport for gettext (translations)
5694 # By default, $datadir is ${prefix}/share
5695 # --------------------------------------------------
5696 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5697 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5698 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5699 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   cat >conftest.make <<\_ACEOF
5703 SHELL = /bin/sh
5704 all:
5705         @echo '@@@%%%=$(MAKE)=@@@%%%'
5706 _ACEOF
5707 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5708 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5709   *@@@%%%=?*=@@@%%%*)
5710     eval ac_cv_prog_make_${ac_make}_set=yes;;
5711   *)
5712     eval ac_cv_prog_make_${ac_make}_set=no;;
5713 esac
5714 rm -f conftest.make
5715 fi
5716 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5717   { echo "$as_me:$LINENO: result: yes" >&5
5718 echo "${ECHO_T}yes" >&6; }
5719   SET_MAKE=
5720 else
5721   { echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6; }
5723   SET_MAKE="MAKE=${MAKE-make}"
5724 fi
5725
5726
5727
5728         MKINSTALLDIRS=
5729   if test -n "$ac_aux_dir"; then
5730     case "$ac_aux_dir" in
5731       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5732       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5733     esac
5734   fi
5735   if test -z "$MKINSTALLDIRS"; then
5736     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5737   fi
5738
5739
5740
5741   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5742 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5743     # Check whether --enable-nls was given.
5744 if test "${enable_nls+set}" = set; then
5745   enableval=$enable_nls; USE_NLS=$enableval
5746 else
5747   USE_NLS=yes
5748 fi
5749
5750   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5751 echo "${ECHO_T}$USE_NLS" >&6; }
5752
5753
5754
5755
5756
5757
5758 # Prepare PATH_SEPARATOR.
5759 # The user is always right.
5760 if test "${PATH_SEPARATOR+set}" != set; then
5761   echo "#! /bin/sh" >conf$$.sh
5762   echo  "exit 0"   >>conf$$.sh
5763   chmod +x conf$$.sh
5764   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5765     PATH_SEPARATOR=';'
5766   else
5767     PATH_SEPARATOR=:
5768   fi
5769   rm -f conf$$.sh
5770 fi
5771
5772 # Find out how to test for executable files. Don't use a zero-byte file,
5773 # as systems may use methods other than mode bits to determine executability.
5774 cat >conf$$.file <<_ASEOF
5775 #! /bin/sh
5776 exit 0
5777 _ASEOF
5778 chmod +x conf$$.file
5779 if test -x conf$$.file >/dev/null 2>&1; then
5780   ac_executable_p="test -x"
5781 else
5782   ac_executable_p="test -f"
5783 fi
5784 rm -f conf$$.file
5785
5786 # Extract the first word of "msgfmt", so it can be a program name with args.
5787 set dummy msgfmt; ac_word=$2
5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790 if test "${ac_cv_path_MSGFMT+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   case "$MSGFMT" in
5794   [\\/]* | ?:[\\/]*)
5795     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5796     ;;
5797   *)
5798     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5799     for ac_dir in $PATH; do
5800       IFS="$ac_save_IFS"
5801       test -z "$ac_dir" && ac_dir=.
5802       for ac_exec_ext in '' $ac_executable_extensions; do
5803         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5804           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5805           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5806      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5807             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5808             break 2
5809           fi
5810         fi
5811       done
5812     done
5813     IFS="$ac_save_IFS"
5814   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5815     ;;
5816 esac
5817 fi
5818 MSGFMT="$ac_cv_path_MSGFMT"
5819 if test "$MSGFMT" != ":"; then
5820   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5821 echo "${ECHO_T}$MSGFMT" >&6; }
5822 else
5823   { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5825 fi
5826
5827   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5828 set dummy gmsgfmt; ac_word=$2
5829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   case $GMSGFMT in
5835   [\\/]* | ?:[\\/]*)
5836   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5837   ;;
5838   *)
5839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844   for ac_exec_ext in '' $ac_executable_extensions; do
5845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851 done
5852 IFS=$as_save_IFS
5853
5854   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5855   ;;
5856 esac
5857 fi
5858 GMSGFMT=$ac_cv_path_GMSGFMT
5859 if test -n "$GMSGFMT"; then
5860   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5861 echo "${ECHO_T}$GMSGFMT" >&6; }
5862 else
5863   { echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6; }
5865 fi
5866
5867
5868
5869
5870 # Prepare PATH_SEPARATOR.
5871 # The user is always right.
5872 if test "${PATH_SEPARATOR+set}" != set; then
5873   echo "#! /bin/sh" >conf$$.sh
5874   echo  "exit 0"   >>conf$$.sh
5875   chmod +x conf$$.sh
5876   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5877     PATH_SEPARATOR=';'
5878   else
5879     PATH_SEPARATOR=:
5880   fi
5881   rm -f conf$$.sh
5882 fi
5883
5884 # Find out how to test for executable files. Don't use a zero-byte file,
5885 # as systems may use methods other than mode bits to determine executability.
5886 cat >conf$$.file <<_ASEOF
5887 #! /bin/sh
5888 exit 0
5889 _ASEOF
5890 chmod +x conf$$.file
5891 if test -x conf$$.file >/dev/null 2>&1; then
5892   ac_executable_p="test -x"
5893 else
5894   ac_executable_p="test -f"
5895 fi
5896 rm -f conf$$.file
5897
5898 # Extract the first word of "xgettext", so it can be a program name with args.
5899 set dummy xgettext; ac_word=$2
5900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5902 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   case "$XGETTEXT" in
5906   [\\/]* | ?:[\\/]*)
5907     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5908     ;;
5909   *)
5910     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5911     for ac_dir in $PATH; do
5912       IFS="$ac_save_IFS"
5913       test -z "$ac_dir" && ac_dir=.
5914       for ac_exec_ext in '' $ac_executable_extensions; do
5915         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5916           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5917           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5918      (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
5919             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5920             break 2
5921           fi
5922         fi
5923       done
5924     done
5925     IFS="$ac_save_IFS"
5926   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5927     ;;
5928 esac
5929 fi
5930 XGETTEXT="$ac_cv_path_XGETTEXT"
5931 if test "$XGETTEXT" != ":"; then
5932   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5933 echo "${ECHO_T}$XGETTEXT" >&6; }
5934 else
5935   { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5937 fi
5938
5939     rm -f messages.po
5940
5941
5942 # Prepare PATH_SEPARATOR.
5943 # The user is always right.
5944 if test "${PATH_SEPARATOR+set}" != set; then
5945   echo "#! /bin/sh" >conf$$.sh
5946   echo  "exit 0"   >>conf$$.sh
5947   chmod +x conf$$.sh
5948   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5949     PATH_SEPARATOR=';'
5950   else
5951     PATH_SEPARATOR=:
5952   fi
5953   rm -f conf$$.sh
5954 fi
5955
5956 # Find out how to test for executable files. Don't use a zero-byte file,
5957 # as systems may use methods other than mode bits to determine executability.
5958 cat >conf$$.file <<_ASEOF
5959 #! /bin/sh
5960 exit 0
5961 _ASEOF
5962 chmod +x conf$$.file
5963 if test -x conf$$.file >/dev/null 2>&1; then
5964   ac_executable_p="test -x"
5965 else
5966   ac_executable_p="test -f"
5967 fi
5968 rm -f conf$$.file
5969
5970 # Extract the first word of "msgmerge", so it can be a program name with args.
5971 set dummy msgmerge; ac_word=$2
5972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5974 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5975   echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977   case "$MSGMERGE" in
5978   [\\/]* | ?:[\\/]*)
5979     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5980     ;;
5981   *)
5982     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5983     for ac_dir in $PATH; do
5984       IFS="$ac_save_IFS"
5985       test -z "$ac_dir" && ac_dir=.
5986       for ac_exec_ext in '' $ac_executable_extensions; do
5987         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5988           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5989           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5990             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5991             break 2
5992           fi
5993         fi
5994       done
5995     done
5996     IFS="$ac_save_IFS"
5997   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5998     ;;
5999 esac
6000 fi
6001 MSGMERGE="$ac_cv_path_MSGMERGE"
6002 if test "$MSGMERGE" != ":"; then
6003   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6004 echo "${ECHO_T}$MSGMERGE" >&6; }
6005 else
6006   { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6008 fi
6009
6010
6011       if test "$GMSGFMT" != ":"; then
6012             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6013        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6014       : ;
6015     else
6016       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6017       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6018 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6019       GMSGFMT=":"
6020     fi
6021   fi
6022
6023       if test "$XGETTEXT" != ":"; then
6024             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6025        (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
6026       : ;
6027     else
6028       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6029 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6030       XGETTEXT=":"
6031     fi
6032         rm -f messages.po
6033   fi
6034
6035   ac_config_commands="$ac_config_commands default-1"
6036
6037
6038
6039       if test "X$prefix" = "XNONE"; then
6040     acl_final_prefix="$ac_default_prefix"
6041   else
6042     acl_final_prefix="$prefix"
6043   fi
6044   if test "X$exec_prefix" = "XNONE"; then
6045     acl_final_exec_prefix='${prefix}'
6046   else
6047     acl_final_exec_prefix="$exec_prefix"
6048   fi
6049   acl_save_prefix="$prefix"
6050   prefix="$acl_final_prefix"
6051   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6052   prefix="$acl_save_prefix"
6053
6054
6055 # Check whether --with-gnu-ld was given.
6056 if test "${with_gnu_ld+set}" = set; then
6057   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6058 else
6059   with_gnu_ld=no
6060 fi
6061
6062 # Prepare PATH_SEPARATOR.
6063 # The user is always right.
6064 if test "${PATH_SEPARATOR+set}" != set; then
6065   echo "#! /bin/sh" >conf$$.sh
6066   echo  "exit 0"   >>conf$$.sh
6067   chmod +x conf$$.sh
6068   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6069     PATH_SEPARATOR=';'
6070   else
6071     PATH_SEPARATOR=:
6072   fi
6073   rm -f conf$$.sh
6074 fi
6075 ac_prog=ld
6076 if test "$GCC" = yes; then
6077   # Check if gcc -print-prog-name=ld gives a path.
6078   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6079 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6080   case $host in
6081   *-*-mingw*)
6082     # gcc leaves a trailing carriage return which upsets mingw
6083     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6084   *)
6085     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6086   esac
6087   case $ac_prog in
6088     # Accept absolute paths.
6089     [\\/]* | [A-Za-z]:[\\/]*)
6090       re_direlt='/[^/][^/]*/\.\./'
6091       # Canonicalize the path of ld
6092       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6093       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6094         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6095       done
6096       test -z "$LD" && LD="$ac_prog"
6097       ;;
6098   "")
6099     # If it fails, then pretend we aren't using GCC.
6100     ac_prog=ld
6101     ;;
6102   *)
6103     # If it is relative, then search for the first ld in PATH.
6104     with_gnu_ld=unknown
6105     ;;
6106   esac
6107 elif test "$with_gnu_ld" = yes; then
6108   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6109 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6110 else
6111   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6112 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6113 fi
6114 if test "${acl_cv_path_LD+set}" = set; then
6115   echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117   if test -z "$LD"; then
6118   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6119   for ac_dir in $PATH; do
6120     test -z "$ac_dir" && ac_dir=.
6121     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6122       acl_cv_path_LD="$ac_dir/$ac_prog"
6123       # Check to see if the program is GNU ld.  I'd rather use --version,
6124       # but apparently some GNU ld's only accept -v.
6125       # Break only if it was the GNU/non-GNU ld that we prefer.
6126       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6127       *GNU* | *'with BFD'*)
6128         test "$with_gnu_ld" != no && break ;;
6129       *)
6130         test "$with_gnu_ld" != yes && break ;;
6131       esac
6132     fi
6133   done
6134   IFS="$ac_save_ifs"
6135 else
6136   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6137 fi
6138 fi
6139
6140 LD="$acl_cv_path_LD"
6141 if test -n "$LD"; then
6142   { echo "$as_me:$LINENO: result: $LD" >&5
6143 echo "${ECHO_T}$LD" >&6; }
6144 else
6145   { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6147 fi
6148 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6149 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6150    { (exit 1); exit 1; }; }
6151 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6152 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6153 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6157 case `$LD -v 2>&1 </dev/null` in
6158 *GNU* | *'with BFD'*)
6159   acl_cv_prog_gnu_ld=yes ;;
6160 *)
6161   acl_cv_prog_gnu_ld=no ;;
6162 esac
6163 fi
6164 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6165 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6166 with_gnu_ld=$acl_cv_prog_gnu_ld
6167
6168
6169
6170
6171                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6172 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6173 if test "${acl_cv_rpath+set}" = set; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176
6177     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6178     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6179     . ./conftest.sh
6180     rm -f ./conftest.sh
6181     acl_cv_rpath=done
6182
6183 fi
6184 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6185 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6186   wl="$acl_cv_wl"
6187   libext="$acl_cv_libext"
6188   shlibext="$acl_cv_shlibext"
6189   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6190   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6191   hardcode_direct="$acl_cv_hardcode_direct"
6192   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6193     # Check whether --enable-rpath was given.
6194 if test "${enable_rpath+set}" = set; then
6195   enableval=$enable_rpath; :
6196 else
6197   enable_rpath=yes
6198 fi
6199
6200
6201
6202
6203
6204
6205
6206
6207     use_additional=yes
6208
6209   acl_save_prefix="$prefix"
6210   prefix="$acl_final_prefix"
6211   acl_save_exec_prefix="$exec_prefix"
6212   exec_prefix="$acl_final_exec_prefix"
6213
6214     eval additional_includedir=\"$includedir\"
6215     eval additional_libdir=\"$libdir\"
6216
6217   exec_prefix="$acl_save_exec_prefix"
6218   prefix="$acl_save_prefix"
6219
6220
6221 # Check whether --with-libiconv-prefix was given.
6222 if test "${with_libiconv_prefix+set}" = set; then
6223   withval=$with_libiconv_prefix;
6224     if test "X$withval" = "Xno"; then
6225       use_additional=no
6226     else
6227       if test "X$withval" = "X"; then
6228
6229   acl_save_prefix="$prefix"
6230   prefix="$acl_final_prefix"
6231   acl_save_exec_prefix="$exec_prefix"
6232   exec_prefix="$acl_final_exec_prefix"
6233
6234           eval additional_includedir=\"$includedir\"
6235           eval additional_libdir=\"$libdir\"
6236
6237   exec_prefix="$acl_save_exec_prefix"
6238   prefix="$acl_save_prefix"
6239
6240       else
6241         additional_includedir="$withval/include"
6242         additional_libdir="$withval/lib"
6243       fi
6244     fi
6245
6246 fi
6247
6248       LIBICONV=
6249   LTLIBICONV=
6250   INCICONV=
6251   rpathdirs=
6252   ltrpathdirs=
6253   names_already_handled=
6254   names_next_round='iconv '
6255   while test -n "$names_next_round"; do
6256     names_this_round="$names_next_round"
6257     names_next_round=
6258     for name in $names_this_round; do
6259       already_handled=
6260       for n in $names_already_handled; do
6261         if test "$n" = "$name"; then
6262           already_handled=yes
6263           break
6264         fi
6265       done
6266       if test -z "$already_handled"; then
6267         names_already_handled="$names_already_handled $name"
6268                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6269         eval value=\"\$HAVE_LIB$uppername\"
6270         if test -n "$value"; then
6271           if test "$value" = yes; then
6272             eval value=\"\$LIB$uppername\"
6273             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6274             eval value=\"\$LTLIB$uppername\"
6275             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6276           else
6277                                     :
6278           fi
6279         else
6280                               found_dir=
6281           found_la=
6282           found_so=
6283           found_a=
6284           if test $use_additional = yes; then
6285             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6286               found_dir="$additional_libdir"
6287               found_so="$additional_libdir/lib$name.$shlibext"
6288               if test -f "$additional_libdir/lib$name.la"; then
6289                 found_la="$additional_libdir/lib$name.la"
6290               fi
6291             else
6292               if test -f "$additional_libdir/lib$name.$libext"; then
6293                 found_dir="$additional_libdir"
6294                 found_a="$additional_libdir/lib$name.$libext"
6295                 if test -f "$additional_libdir/lib$name.la"; then
6296                   found_la="$additional_libdir/lib$name.la"
6297                 fi
6298               fi
6299             fi
6300           fi
6301           if test "X$found_dir" = "X"; then
6302             for x in $LDFLAGS $LTLIBICONV; do
6303
6304   acl_save_prefix="$prefix"
6305   prefix="$acl_final_prefix"
6306   acl_save_exec_prefix="$exec_prefix"
6307   exec_prefix="$acl_final_exec_prefix"
6308   eval x=\"$x\"
6309   exec_prefix="$acl_save_exec_prefix"
6310   prefix="$acl_save_prefix"
6311
6312               case "$x" in
6313                 -L*)
6314                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6315                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6316                     found_dir="$dir"
6317                     found_so="$dir/lib$name.$shlibext"
6318                     if test -f "$dir/lib$name.la"; then
6319                       found_la="$dir/lib$name.la"
6320                     fi
6321                   else
6322                     if test -f "$dir/lib$name.$libext"; then
6323                       found_dir="$dir"
6324                       found_a="$dir/lib$name.$libext"
6325                       if test -f "$dir/lib$name.la"; then
6326                         found_la="$dir/lib$name.la"
6327                       fi
6328                     fi
6329                   fi
6330                   ;;
6331               esac
6332               if test "X$found_dir" != "X"; then
6333                 break
6334               fi
6335             done
6336           fi
6337           if test "X$found_dir" != "X"; then
6338                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6339             if test "X$found_so" != "X"; then
6340                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6341                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6342               else
6343                                                                                 haveit=
6344                 for x in $ltrpathdirs; do
6345                   if test "X$x" = "X$found_dir"; then
6346                     haveit=yes
6347                     break
6348                   fi
6349                 done
6350                 if test -z "$haveit"; then
6351                   ltrpathdirs="$ltrpathdirs $found_dir"
6352                 fi
6353                                 if test "$hardcode_direct" = yes; then
6354                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6355                 else
6356                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6357                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6358                                                             haveit=
6359                     for x in $rpathdirs; do
6360                       if test "X$x" = "X$found_dir"; then
6361                         haveit=yes
6362                         break
6363                       fi
6364                     done
6365                     if test -z "$haveit"; then
6366                       rpathdirs="$rpathdirs $found_dir"
6367                     fi
6368                   else
6369                                                                                 haveit=
6370                     for x in $LDFLAGS $LIBICONV; do
6371
6372   acl_save_prefix="$prefix"
6373   prefix="$acl_final_prefix"
6374   acl_save_exec_prefix="$exec_prefix"
6375   exec_prefix="$acl_final_exec_prefix"
6376   eval x=\"$x\"
6377   exec_prefix="$acl_save_exec_prefix"
6378   prefix="$acl_save_prefix"
6379
6380                       if test "X$x" = "X-L$found_dir"; then
6381                         haveit=yes
6382                         break
6383                       fi
6384                     done
6385                     if test -z "$haveit"; then
6386                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6387                     fi
6388                     if test "$hardcode_minus_L" != no; then
6389                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6390                     else
6391                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6392                     fi
6393                   fi
6394                 fi
6395               fi
6396             else
6397               if test "X$found_a" != "X"; then
6398                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6399               else
6400                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6401               fi
6402             fi
6403                         additional_includedir=
6404             case "$found_dir" in
6405               */lib | */lib/)
6406                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6407                 additional_includedir="$basedir/include"
6408                 ;;
6409             esac
6410             if test "X$additional_includedir" != "X"; then
6411                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6412                 haveit=
6413                 if test "X$additional_includedir" = "X/usr/local/include"; then
6414                   if test -n "$GCC"; then
6415                     case $host_os in
6416                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6417                     esac
6418                   fi
6419                 fi
6420                 if test -z "$haveit"; then
6421                   for x in $CPPFLAGS $INCICONV; do
6422
6423   acl_save_prefix="$prefix"
6424   prefix="$acl_final_prefix"
6425   acl_save_exec_prefix="$exec_prefix"
6426   exec_prefix="$acl_final_exec_prefix"
6427   eval x=\"$x\"
6428   exec_prefix="$acl_save_exec_prefix"
6429   prefix="$acl_save_prefix"
6430
6431                     if test "X$x" = "X-I$additional_includedir"; then
6432                       haveit=yes
6433                       break
6434                     fi
6435                   done
6436                   if test -z "$haveit"; then
6437                     if test -d "$additional_includedir"; then
6438                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6439                     fi
6440                   fi
6441                 fi
6442               fi
6443             fi
6444                         if test -n "$found_la"; then
6445                                                         save_libdir="$libdir"
6446               case "$found_la" in
6447                 */* | *\\*) . "$found_la" ;;
6448                 *) . "./$found_la" ;;
6449               esac
6450               libdir="$save_libdir"
6451                             for dep in $dependency_libs; do
6452                 case "$dep" in
6453                   -L*)
6454                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6455                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6456                       haveit=
6457                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6458                         if test -n "$GCC"; then
6459                           case $host_os in
6460                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6461                           esac
6462                         fi
6463                       fi
6464                       if test -z "$haveit"; then
6465                         haveit=
6466                         for x in $LDFLAGS $LIBICONV; do
6467
6468   acl_save_prefix="$prefix"
6469   prefix="$acl_final_prefix"
6470   acl_save_exec_prefix="$exec_prefix"
6471   exec_prefix="$acl_final_exec_prefix"
6472   eval x=\"$x\"
6473   exec_prefix="$acl_save_exec_prefix"
6474   prefix="$acl_save_prefix"
6475
6476                           if test "X$x" = "X-L$additional_libdir"; then
6477                             haveit=yes
6478                             break
6479                           fi
6480                         done
6481                         if test -z "$haveit"; then
6482                           if test -d "$additional_libdir"; then
6483                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6484                           fi
6485                         fi
6486                         haveit=
6487                         for x in $LDFLAGS $LTLIBICONV; do
6488
6489   acl_save_prefix="$prefix"
6490   prefix="$acl_final_prefix"
6491   acl_save_exec_prefix="$exec_prefix"
6492   exec_prefix="$acl_final_exec_prefix"
6493   eval x=\"$x\"
6494   exec_prefix="$acl_save_exec_prefix"
6495   prefix="$acl_save_prefix"
6496
6497                           if test "X$x" = "X-L$additional_libdir"; then
6498                             haveit=yes
6499                             break
6500                           fi
6501                         done
6502                         if test -z "$haveit"; then
6503                           if test -d "$additional_libdir"; then
6504                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6505                           fi
6506                         fi
6507                       fi
6508                     fi
6509                     ;;
6510                   -R*)
6511                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6512                     if test "$enable_rpath" != no; then
6513                                                                   haveit=
6514                       for x in $rpathdirs; do
6515                         if test "X$x" = "X$dir"; then
6516                           haveit=yes
6517                           break
6518                         fi
6519                       done
6520                       if test -z "$haveit"; then
6521                         rpathdirs="$rpathdirs $dir"
6522                       fi
6523                                                                   haveit=
6524                       for x in $ltrpathdirs; do
6525                         if test "X$x" = "X$dir"; then
6526                           haveit=yes
6527                           break
6528                         fi
6529                       done
6530                       if test -z "$haveit"; then
6531                         ltrpathdirs="$ltrpathdirs $dir"
6532                       fi
6533                     fi
6534                     ;;
6535                   -l*)
6536                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6537                     ;;
6538                   *.la)
6539                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6540                     ;;
6541                   *)
6542                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6543                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6544                     ;;
6545                 esac
6546               done
6547             fi
6548           else
6549                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6550             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6551           fi
6552         fi
6553       fi
6554     done
6555   done
6556   if test "X$rpathdirs" != "X"; then
6557     if test -n "$hardcode_libdir_separator"; then
6558                         alldirs=
6559       for found_dir in $rpathdirs; do
6560         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6561       done
6562             acl_save_libdir="$libdir"
6563       libdir="$alldirs"
6564       eval flag=\"$hardcode_libdir_flag_spec\"
6565       libdir="$acl_save_libdir"
6566       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6567     else
6568             for found_dir in $rpathdirs; do
6569         acl_save_libdir="$libdir"
6570         libdir="$found_dir"
6571         eval flag=\"$hardcode_libdir_flag_spec\"
6572         libdir="$acl_save_libdir"
6573         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6574       done
6575     fi
6576   fi
6577   if test "X$ltrpathdirs" != "X"; then
6578             for found_dir in $ltrpathdirs; do
6579       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6580     done
6581   fi
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6601 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6602 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605   gt_save_CPPFLAGS="$CPPFLAGS"
6606      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6607      gt_save_LIBS="$LIBS"
6608      LIBS="$LIBS -framework CoreFoundation"
6609      cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h.  */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h.  */
6615 #include <CFPreferences.h>
6616 int
6617 main ()
6618 {
6619 CFPreferencesCopyAppValue(NULL, NULL)
6620   ;
6621   return 0;
6622 }
6623 _ACEOF
6624 rm -f conftest.$ac_objext conftest$ac_exeext
6625 if { (ac_try="$ac_link"
6626 case "(($ac_try" in
6627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628   *) ac_try_echo=$ac_try;;
6629 esac
6630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631   (eval "$ac_link") 2>conftest.er1
6632   ac_status=$?
6633   grep -v '^ *+' conftest.er1 >conftest.err
6634   rm -f conftest.er1
6635   cat conftest.err >&5
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); } && {
6638          test -z "$ac_c_werror_flag" ||
6639          test ! -s conftest.err
6640        } && test -s conftest$ac_exeext &&
6641        $as_test_x conftest$ac_exeext; then
6642   gt_cv_func_CFPreferencesCopyAppValue=yes
6643 else
6644   echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6646
6647         gt_cv_func_CFPreferencesCopyAppValue=no
6648 fi
6649
6650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6651       conftest$ac_exeext conftest.$ac_ext
6652      CPPFLAGS="$gt_save_CPPFLAGS"
6653      LIBS="$gt_save_LIBS"
6654 fi
6655 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6656 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6657   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6658
6659 cat >>confdefs.h <<\_ACEOF
6660 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6661 _ACEOF
6662
6663   fi
6664     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6665 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6666 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   gt_save_CPPFLAGS="$CPPFLAGS"
6670      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6671      gt_save_LIBS="$LIBS"
6672      LIBS="$LIBS -framework CoreFoundation"
6673      cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h.  */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h.  */
6679 #include <CFLocale.h>
6680 int
6681 main ()
6682 {
6683 CFLocaleCopyCurrent();
6684   ;
6685   return 0;
6686 }
6687 _ACEOF
6688 rm -f conftest.$ac_objext conftest$ac_exeext
6689 if { (ac_try="$ac_link"
6690 case "(($ac_try" in
6691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692   *) ac_try_echo=$ac_try;;
6693 esac
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695   (eval "$ac_link") 2>conftest.er1
6696   ac_status=$?
6697   grep -v '^ *+' conftest.er1 >conftest.err
6698   rm -f conftest.er1
6699   cat conftest.err >&5
6700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701   (exit $ac_status); } && {
6702          test -z "$ac_c_werror_flag" ||
6703          test ! -s conftest.err
6704        } && test -s conftest$ac_exeext &&
6705        $as_test_x conftest$ac_exeext; then
6706   gt_cv_func_CFLocaleCopyCurrent=yes
6707 else
6708   echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711         gt_cv_func_CFLocaleCopyCurrent=no
6712 fi
6713
6714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6715       conftest$ac_exeext conftest.$ac_ext
6716      CPPFLAGS="$gt_save_CPPFLAGS"
6717      LIBS="$gt_save_LIBS"
6718 fi
6719 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6720 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6721   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6722
6723 cat >>confdefs.h <<\_ACEOF
6724 #define HAVE_CFLOCALECOPYCURRENT 1
6725 _ACEOF
6726
6727   fi
6728   INTL_MACOSX_LIBS=
6729   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6730     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6731   fi
6732
6733
6734
6735
6736   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6737 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6738     # Check whether --enable-nls was given.
6739 if test "${enable_nls+set}" = set; then
6740   enableval=$enable_nls; USE_NLS=$enableval
6741 else
6742   USE_NLS=yes
6743 fi
6744
6745   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6746 echo "${ECHO_T}$USE_NLS" >&6; }
6747
6748
6749
6750
6751   LIBINTL=
6752   LTLIBINTL=
6753   POSUB=
6754
6755     if test "$USE_NLS" = "yes"; then
6756     gt_use_preinstalled_gnugettext=no
6757
6758
6759
6760
6761
6762
6763         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6764 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6765 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h.  */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h.  */
6774 #include <libintl.h>
6775 extern int _nl_msg_cat_cntr;
6776 extern int *_nl_domain_bindings;
6777 int
6778 main ()
6779 {
6780 bindtextdomain ("", "");
6781 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6782   ;
6783   return 0;
6784 }
6785 _ACEOF
6786 rm -f conftest.$ac_objext conftest$ac_exeext
6787 if { (ac_try="$ac_link"
6788 case "(($ac_try" in
6789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790   *) ac_try_echo=$ac_try;;
6791 esac
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793   (eval "$ac_link") 2>conftest.er1
6794   ac_status=$?
6795   grep -v '^ *+' conftest.er1 >conftest.err
6796   rm -f conftest.er1
6797   cat conftest.err >&5
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); } && {
6800          test -z "$ac_c_werror_flag" ||
6801          test ! -s conftest.err
6802        } && test -s conftest$ac_exeext &&
6803        $as_test_x conftest$ac_exeext; then
6804   gt_cv_func_gnugettext1_libc=yes
6805 else
6806   echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6808
6809         gt_cv_func_gnugettext1_libc=no
6810 fi
6811
6812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6813       conftest$ac_exeext conftest.$ac_ext
6814 fi
6815 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6816 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6817
6818         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6819
6820
6821
6822
6823
6824           am_save_CPPFLAGS="$CPPFLAGS"
6825
6826   for element in $INCICONV; do
6827     haveit=
6828     for x in $CPPFLAGS; do
6829
6830   acl_save_prefix="$prefix"
6831   prefix="$acl_final_prefix"
6832   acl_save_exec_prefix="$exec_prefix"
6833   exec_prefix="$acl_final_exec_prefix"
6834   eval x=\"$x\"
6835   exec_prefix="$acl_save_exec_prefix"
6836   prefix="$acl_save_prefix"
6837
6838       if test "X$x" = "X$element"; then
6839         haveit=yes
6840         break
6841       fi
6842     done
6843     if test -z "$haveit"; then
6844       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6845     fi
6846   done
6847
6848
6849   { echo "$as_me:$LINENO: checking for iconv" >&5
6850 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6851 if test "${am_cv_func_iconv+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854
6855     am_cv_func_iconv="no, consider installing GNU libiconv"
6856     am_cv_lib_iconv=no
6857     cat >conftest.$ac_ext <<_ACEOF
6858 /* confdefs.h.  */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h.  */
6863 #include <stdlib.h>
6864 #include <iconv.h>
6865 int
6866 main ()
6867 {
6868 iconv_t cd = iconv_open("","");
6869        iconv(cd,NULL,NULL,NULL,NULL);
6870        iconv_close(cd);
6871   ;
6872   return 0;
6873 }
6874 _ACEOF
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (ac_try="$ac_link"
6877 case "(($ac_try" in
6878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879   *) ac_try_echo=$ac_try;;
6880 esac
6881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882   (eval "$ac_link") 2>conftest.er1
6883   ac_status=$?
6884   grep -v '^ *+' conftest.er1 >conftest.err
6885   rm -f conftest.er1
6886   cat conftest.err >&5
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); } && {
6889          test -z "$ac_c_werror_flag" ||
6890          test ! -s conftest.err
6891        } && test -s conftest$ac_exeext &&
6892        $as_test_x conftest$ac_exeext; then
6893   am_cv_func_iconv=yes
6894 else
6895   echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898
6899 fi
6900
6901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6902       conftest$ac_exeext conftest.$ac_ext
6903     if test "$am_cv_func_iconv" != yes; then
6904       am_save_LIBS="$LIBS"
6905       LIBS="$LIBS $LIBICONV"
6906       cat >conftest.$ac_ext <<_ACEOF
6907 /* confdefs.h.  */
6908 _ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h.  */
6912 #include <stdlib.h>
6913 #include <iconv.h>
6914 int
6915 main ()
6916 {
6917 iconv_t cd = iconv_open("","");
6918          iconv(cd,NULL,NULL,NULL,NULL);
6919          iconv_close(cd);
6920   ;
6921   return 0;
6922 }
6923 _ACEOF
6924 rm -f conftest.$ac_objext conftest$ac_exeext
6925 if { (ac_try="$ac_link"
6926 case "(($ac_try" in
6927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928   *) ac_try_echo=$ac_try;;
6929 esac
6930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931   (eval "$ac_link") 2>conftest.er1
6932   ac_status=$?
6933   grep -v '^ *+' conftest.er1 >conftest.err
6934   rm -f conftest.er1
6935   cat conftest.err >&5
6936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937   (exit $ac_status); } && {
6938          test -z "$ac_c_werror_flag" ||
6939          test ! -s conftest.err
6940        } && test -s conftest$ac_exeext &&
6941        $as_test_x conftest$ac_exeext; then
6942   am_cv_lib_iconv=yes
6943         am_cv_func_iconv=yes
6944 else
6945   echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6947
6948
6949 fi
6950
6951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6952       conftest$ac_exeext conftest.$ac_ext
6953       LIBS="$am_save_LIBS"
6954     fi
6955
6956 fi
6957 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6958 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6959   if test "$am_cv_func_iconv" = yes; then
6960
6961 cat >>confdefs.h <<\_ACEOF
6962 #define HAVE_ICONV 1
6963 _ACEOF
6964
6965   fi
6966   if test "$am_cv_lib_iconv" = yes; then
6967     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6968 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6969     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6970 echo "${ECHO_T}$LIBICONV" >&6; }
6971   else
6972             CPPFLAGS="$am_save_CPPFLAGS"
6973     LIBICONV=
6974     LTLIBICONV=
6975   fi
6976
6977
6978
6979
6980
6981
6982     use_additional=yes
6983
6984   acl_save_prefix="$prefix"
6985   prefix="$acl_final_prefix"
6986   acl_save_exec_prefix="$exec_prefix"
6987   exec_prefix="$acl_final_exec_prefix"
6988
6989     eval additional_includedir=\"$includedir\"
6990     eval additional_libdir=\"$libdir\"
6991
6992   exec_prefix="$acl_save_exec_prefix"
6993   prefix="$acl_save_prefix"
6994
6995
6996 # Check whether --with-libintl-prefix was given.
6997 if test "${with_libintl_prefix+set}" = set; then
6998   withval=$with_libintl_prefix;
6999     if test "X$withval" = "Xno"; then
7000       use_additional=no
7001     else
7002       if test "X$withval" = "X"; then
7003
7004   acl_save_prefix="$prefix"
7005   prefix="$acl_final_prefix"
7006   acl_save_exec_prefix="$exec_prefix"
7007   exec_prefix="$acl_final_exec_prefix"
7008
7009           eval additional_includedir=\"$includedir\"
7010           eval additional_libdir=\"$libdir\"
7011
7012   exec_prefix="$acl_save_exec_prefix"
7013   prefix="$acl_save_prefix"
7014
7015       else
7016         additional_includedir="$withval/include"
7017         additional_libdir="$withval/lib"
7018       fi
7019     fi
7020
7021 fi
7022
7023       LIBINTL=
7024   LTLIBINTL=
7025   INCINTL=
7026   rpathdirs=
7027   ltrpathdirs=
7028   names_already_handled=
7029   names_next_round='intl '
7030   while test -n "$names_next_round"; do
7031     names_this_round="$names_next_round"
7032     names_next_round=
7033     for name in $names_this_round; do
7034       already_handled=
7035       for n in $names_already_handled; do
7036         if test "$n" = "$name"; then
7037           already_handled=yes
7038           break
7039         fi
7040       done
7041       if test -z "$already_handled"; then
7042         names_already_handled="$names_already_handled $name"
7043                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7044         eval value=\"\$HAVE_LIB$uppername\"
7045         if test -n "$value"; then
7046           if test "$value" = yes; then
7047             eval value=\"\$LIB$uppername\"
7048             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7049             eval value=\"\$LTLIB$uppername\"
7050             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7051           else
7052                                     :
7053           fi
7054         else
7055                               found_dir=
7056           found_la=
7057           found_so=
7058           found_a=
7059           if test $use_additional = yes; then
7060             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7061               found_dir="$additional_libdir"
7062               found_so="$additional_libdir/lib$name.$shlibext"
7063               if test -f "$additional_libdir/lib$name.la"; then
7064                 found_la="$additional_libdir/lib$name.la"
7065               fi
7066             else
7067               if test -f "$additional_libdir/lib$name.$libext"; then
7068                 found_dir="$additional_libdir"
7069                 found_a="$additional_libdir/lib$name.$libext"
7070                 if test -f "$additional_libdir/lib$name.la"; then
7071                   found_la="$additional_libdir/lib$name.la"
7072                 fi
7073               fi
7074             fi
7075           fi
7076           if test "X$found_dir" = "X"; then
7077             for x in $LDFLAGS $LTLIBINTL; do
7078
7079   acl_save_prefix="$prefix"
7080   prefix="$acl_final_prefix"
7081   acl_save_exec_prefix="$exec_prefix"
7082   exec_prefix="$acl_final_exec_prefix"
7083   eval x=\"$x\"
7084   exec_prefix="$acl_save_exec_prefix"
7085   prefix="$acl_save_prefix"
7086
7087               case "$x" in
7088                 -L*)
7089                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7090                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7091                     found_dir="$dir"
7092                     found_so="$dir/lib$name.$shlibext"
7093                     if test -f "$dir/lib$name.la"; then
7094                       found_la="$dir/lib$name.la"
7095                     fi
7096                   else
7097                     if test -f "$dir/lib$name.$libext"; then
7098                       found_dir="$dir"
7099                       found_a="$dir/lib$name.$libext"
7100                       if test -f "$dir/lib$name.la"; then
7101                         found_la="$dir/lib$name.la"
7102                       fi
7103                     fi
7104                   fi
7105                   ;;
7106               esac
7107               if test "X$found_dir" != "X"; then
7108                 break
7109               fi
7110             done
7111           fi
7112           if test "X$found_dir" != "X"; then
7113                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7114             if test "X$found_so" != "X"; then
7115                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7116                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7117               else
7118                                                                                 haveit=
7119                 for x in $ltrpathdirs; do
7120                   if test "X$x" = "X$found_dir"; then
7121                     haveit=yes
7122                     break
7123                   fi
7124                 done
7125                 if test -z "$haveit"; then
7126                   ltrpathdirs="$ltrpathdirs $found_dir"
7127                 fi
7128                                 if test "$hardcode_direct" = yes; then
7129                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7130                 else
7131                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7132                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7133                                                             haveit=
7134                     for x in $rpathdirs; do
7135                       if test "X$x" = "X$found_dir"; then
7136                         haveit=yes
7137                         break
7138                       fi
7139                     done
7140                     if test -z "$haveit"; then
7141                       rpathdirs="$rpathdirs $found_dir"
7142                     fi
7143                   else
7144                                                                                 haveit=
7145                     for x in $LDFLAGS $LIBINTL; do
7146
7147   acl_save_prefix="$prefix"
7148   prefix="$acl_final_prefix"
7149   acl_save_exec_prefix="$exec_prefix"
7150   exec_prefix="$acl_final_exec_prefix"
7151   eval x=\"$x\"
7152   exec_prefix="$acl_save_exec_prefix"
7153   prefix="$acl_save_prefix"
7154
7155                       if test "X$x" = "X-L$found_dir"; then
7156                         haveit=yes
7157                         break
7158                       fi
7159                     done
7160                     if test -z "$haveit"; then
7161                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7162                     fi
7163                     if test "$hardcode_minus_L" != no; then
7164                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7165                     else
7166                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7167                     fi
7168                   fi
7169                 fi
7170               fi
7171             else
7172               if test "X$found_a" != "X"; then
7173                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7174               else
7175                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7176               fi
7177             fi
7178                         additional_includedir=
7179             case "$found_dir" in
7180               */lib | */lib/)
7181                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7182                 additional_includedir="$basedir/include"
7183                 ;;
7184             esac
7185             if test "X$additional_includedir" != "X"; then
7186                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7187                 haveit=
7188                 if test "X$additional_includedir" = "X/usr/local/include"; then
7189                   if test -n "$GCC"; then
7190                     case $host_os in
7191                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7192                     esac
7193                   fi
7194                 fi
7195                 if test -z "$haveit"; then
7196                   for x in $CPPFLAGS $INCINTL; do
7197
7198   acl_save_prefix="$prefix"
7199   prefix="$acl_final_prefix"
7200   acl_save_exec_prefix="$exec_prefix"
7201   exec_prefix="$acl_final_exec_prefix"
7202   eval x=\"$x\"
7203   exec_prefix="$acl_save_exec_prefix"
7204   prefix="$acl_save_prefix"
7205
7206                     if test "X$x" = "X-I$additional_includedir"; then
7207                       haveit=yes
7208                       break
7209                     fi
7210                   done
7211                   if test -z "$haveit"; then
7212                     if test -d "$additional_includedir"; then
7213                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7214                     fi
7215                   fi
7216                 fi
7217               fi
7218             fi
7219                         if test -n "$found_la"; then
7220                                                         save_libdir="$libdir"
7221               case "$found_la" in
7222                 */* | *\\*) . "$found_la" ;;
7223                 *) . "./$found_la" ;;
7224               esac
7225               libdir="$save_libdir"
7226                             for dep in $dependency_libs; do
7227                 case "$dep" in
7228                   -L*)
7229                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7230                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7231                       haveit=
7232                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7233                         if test -n "$GCC"; then
7234                           case $host_os in
7235                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7236                           esac
7237                         fi
7238                       fi
7239                       if test -z "$haveit"; then
7240                         haveit=
7241                         for x in $LDFLAGS $LIBINTL; do
7242
7243   acl_save_prefix="$prefix"
7244   prefix="$acl_final_prefix"
7245   acl_save_exec_prefix="$exec_prefix"
7246   exec_prefix="$acl_final_exec_prefix"
7247   eval x=\"$x\"
7248   exec_prefix="$acl_save_exec_prefix"
7249   prefix="$acl_save_prefix"
7250
7251                           if test "X$x" = "X-L$additional_libdir"; then
7252                             haveit=yes
7253                             break
7254                           fi
7255                         done
7256                         if test -z "$haveit"; then
7257                           if test -d "$additional_libdir"; then
7258                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7259                           fi
7260                         fi
7261                         haveit=
7262                         for x in $LDFLAGS $LTLIBINTL; do
7263
7264   acl_save_prefix="$prefix"
7265   prefix="$acl_final_prefix"
7266   acl_save_exec_prefix="$exec_prefix"
7267   exec_prefix="$acl_final_exec_prefix"
7268   eval x=\"$x\"
7269   exec_prefix="$acl_save_exec_prefix"
7270   prefix="$acl_save_prefix"
7271
7272                           if test "X$x" = "X-L$additional_libdir"; then
7273                             haveit=yes
7274                             break
7275                           fi
7276                         done
7277                         if test -z "$haveit"; then
7278                           if test -d "$additional_libdir"; then
7279                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7280                           fi
7281                         fi
7282                       fi
7283                     fi
7284                     ;;
7285                   -R*)
7286                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7287                     if test "$enable_rpath" != no; then
7288                                                                   haveit=
7289                       for x in $rpathdirs; do
7290                         if test "X$x" = "X$dir"; then
7291                           haveit=yes
7292                           break
7293                         fi
7294                       done
7295                       if test -z "$haveit"; then
7296                         rpathdirs="$rpathdirs $dir"
7297                       fi
7298                                                                   haveit=
7299                       for x in $ltrpathdirs; do
7300                         if test "X$x" = "X$dir"; then
7301                           haveit=yes
7302                           break
7303                         fi
7304                       done
7305                       if test -z "$haveit"; then
7306                         ltrpathdirs="$ltrpathdirs $dir"
7307                       fi
7308                     fi
7309                     ;;
7310                   -l*)
7311                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7312                     ;;
7313                   *.la)
7314                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7315                     ;;
7316                   *)
7317                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7318                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7319                     ;;
7320                 esac
7321               done
7322             fi
7323           else
7324                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7325             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7326           fi
7327         fi
7328       fi
7329     done
7330   done
7331   if test "X$rpathdirs" != "X"; then
7332     if test -n "$hardcode_libdir_separator"; then
7333                         alldirs=
7334       for found_dir in $rpathdirs; do
7335         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7336       done
7337             acl_save_libdir="$libdir"
7338       libdir="$alldirs"
7339       eval flag=\"$hardcode_libdir_flag_spec\"
7340       libdir="$acl_save_libdir"
7341       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7342     else
7343             for found_dir in $rpathdirs; do
7344         acl_save_libdir="$libdir"
7345         libdir="$found_dir"
7346         eval flag=\"$hardcode_libdir_flag_spec\"
7347         libdir="$acl_save_libdir"
7348         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7349       done
7350     fi
7351   fi
7352   if test "X$ltrpathdirs" != "X"; then
7353             for found_dir in $ltrpathdirs; do
7354       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7355     done
7356   fi
7357
7358           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7359 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7360 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   gt_save_CPPFLAGS="$CPPFLAGS"
7364             CPPFLAGS="$CPPFLAGS $INCINTL"
7365             gt_save_LIBS="$LIBS"
7366             LIBS="$LIBS $LIBINTL"
7367                         cat >conftest.$ac_ext <<_ACEOF
7368 /* confdefs.h.  */
7369 _ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h.  */
7373 #include <libintl.h>
7374 extern int _nl_msg_cat_cntr;
7375 extern
7376 #ifdef __cplusplus
7377 "C"
7378 #endif
7379 const char *_nl_expand_alias (const char *);
7380 int
7381 main ()
7382 {
7383 bindtextdomain ("", "");
7384 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7385   ;
7386   return 0;
7387 }
7388 _ACEOF
7389 rm -f conftest.$ac_objext conftest$ac_exeext
7390 if { (ac_try="$ac_link"
7391 case "(($ac_try" in
7392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393   *) ac_try_echo=$ac_try;;
7394 esac
7395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7396   (eval "$ac_link") 2>conftest.er1
7397   ac_status=$?
7398   grep -v '^ *+' conftest.er1 >conftest.err
7399   rm -f conftest.er1
7400   cat conftest.err >&5
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); } && {
7403          test -z "$ac_c_werror_flag" ||
7404          test ! -s conftest.err
7405        } && test -s conftest$ac_exeext &&
7406        $as_test_x conftest$ac_exeext; then
7407   gt_cv_func_gnugettext1_libintl=yes
7408 else
7409   echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7411
7412         gt_cv_func_gnugettext1_libintl=no
7413 fi
7414
7415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7416       conftest$ac_exeext conftest.$ac_ext
7417                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7418               LIBS="$LIBS $LIBICONV"
7419               cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h.  */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h.  */
7425 #include <libintl.h>
7426 extern int _nl_msg_cat_cntr;
7427 extern
7428 #ifdef __cplusplus
7429 "C"
7430 #endif
7431 const char *_nl_expand_alias (const char *);
7432 int
7433 main ()
7434 {
7435 bindtextdomain ("", "");
7436 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (ac_try="$ac_link"
7443 case "(($ac_try" in
7444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445   *) ac_try_echo=$ac_try;;
7446 esac
7447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7448   (eval "$ac_link") 2>conftest.er1
7449   ac_status=$?
7450   grep -v '^ *+' conftest.er1 >conftest.err
7451   rm -f conftest.er1
7452   cat conftest.err >&5
7453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454   (exit $ac_status); } && {
7455          test -z "$ac_c_werror_flag" ||
7456          test ! -s conftest.err
7457        } && test -s conftest$ac_exeext &&
7458        $as_test_x conftest$ac_exeext; then
7459   LIBINTL="$LIBINTL $LIBICONV"
7460                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7461                 gt_cv_func_gnugettext1_libintl=yes
7462
7463 else
7464   echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7466
7467
7468 fi
7469
7470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7471       conftest$ac_exeext conftest.$ac_ext
7472             fi
7473             CPPFLAGS="$gt_save_CPPFLAGS"
7474             LIBS="$gt_save_LIBS"
7475 fi
7476 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7477 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7478         fi
7479
7480                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7481            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7482                 && test "$PACKAGE" != gettext-runtime \
7483                 && test "$PACKAGE" != gettext-tools; }; then
7484           gt_use_preinstalled_gnugettext=yes
7485         else
7486                     LIBINTL=
7487           LTLIBINTL=
7488           INCINTL=
7489         fi
7490
7491
7492
7493     if test -n "$INTL_MACOSX_LIBS"; then
7494       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7495          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7496                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7497         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7498       fi
7499     fi
7500
7501     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7502        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7503
7504 cat >>confdefs.h <<\_ACEOF
7505 #define ENABLE_NLS 1
7506 _ACEOF
7507
7508     else
7509       USE_NLS=no
7510     fi
7511   fi
7512
7513   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7514 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7515   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7516 echo "${ECHO_T}$USE_NLS" >&6; }
7517   if test "$USE_NLS" = "yes"; then
7518     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7519 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7520     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7521       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7522         gt_source="external libintl"
7523       else
7524         gt_source="libc"
7525       fi
7526     else
7527       gt_source="included intl directory"
7528     fi
7529     { echo "$as_me:$LINENO: result: $gt_source" >&5
7530 echo "${ECHO_T}$gt_source" >&6; }
7531   fi
7532
7533   if test "$USE_NLS" = "yes"; then
7534
7535     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7536       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7537         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7538 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7539         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7540 echo "${ECHO_T}$LIBINTL" >&6; }
7541
7542   for element in $INCINTL; do
7543     haveit=
7544     for x in $CPPFLAGS; do
7545
7546   acl_save_prefix="$prefix"
7547   prefix="$acl_final_prefix"
7548   acl_save_exec_prefix="$exec_prefix"
7549   exec_prefix="$acl_final_exec_prefix"
7550   eval x=\"$x\"
7551   exec_prefix="$acl_save_exec_prefix"
7552   prefix="$acl_save_prefix"
7553
7554       if test "X$x" = "X$element"; then
7555         haveit=yes
7556         break
7557       fi
7558     done
7559     if test -z "$haveit"; then
7560       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7561     fi
7562   done
7563
7564       fi
7565
7566
7567 cat >>confdefs.h <<\_ACEOF
7568 #define HAVE_GETTEXT 1
7569 _ACEOF
7570
7571
7572 cat >>confdefs.h <<\_ACEOF
7573 #define HAVE_DCGETTEXT 1
7574 _ACEOF
7575
7576     fi
7577
7578         POSUB=po
7579   fi
7580
7581
7582
7583     INTLLIBS="$LIBINTL"
7584
7585
7586
7587
7588
7589
7590 if test x${prefix} = xNONE ; then
7591    if test `eval echo ${datadir}` = NONE/share ; then
7592       datadir=/usr/share
7593    fi
7594 fi
7595
7596 # ------------------------------------------------------------------
7597 #  If the user has not set --prefix, we set our default to nothing.
7598 #  In this case, if the user has not set --sysconfdir, we set it
7599 #  to the package default of /etc/bacula.  If either --prefix or
7600 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7601 # ------------------------------------------------------------------
7602 if test x${prefix} = xNONE ; then
7603     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7604         sysconfdir=/etc/bacula
7605     fi
7606     prefix=
7607 fi
7608 sysconfdir=`eval echo ${sysconfdir}`
7609 datadir=`eval echo ${datadir}`
7610 localedir=`eval echo ${datadir}/locale`
7611 cat >>confdefs.h <<_ACEOF
7612 #define LOCALEDIR "$localedir"
7613 _ACEOF
7614
7615 cat >>confdefs.h <<_ACEOF
7616 #define SYSCONFDIR "$sysconfdir"
7617 _ACEOF
7618
7619
7620 # -------------------------------------------------------------------------
7621 #  If the user has not set --exec-prefix, we default to ${prefix}
7622 # -------------------------------------------------------------------------
7623 if test x${exec_prefix} = xNONE ; then
7624     exec_prefix=${prefix}
7625 fi
7626
7627 # ------------------------------------------------------------------
7628 # If the user has not set --sbindir, we set our default as /sbin
7629 # ------------------------------------------------------------------
7630 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7631     sbindir=${exec_prefix}/sbin
7632 fi
7633 sbindir=`eval echo ${sbindir}`
7634
7635
7636 # -------------------------------------------------------------------------
7637 #  If the user has not set --mandir, we default to /usr/share/man
7638 # -------------------------------------------------------------------------
7639 if test x$mandir = x'${prefix}/man' ; then
7640    mandir=/usr/share/man
7641 fi
7642
7643
7644 for ac_prog in msgfmt
7645 do
7646   # Extract the first word of "$ac_prog", so it can be a program name with args.
7647 set dummy $ac_prog; ac_word=$2
7648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7650 if test "${ac_cv_path_MSGFMT+set}" = set; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653   case $MSGFMT in
7654   [\\/]* | ?:[\\/]*)
7655   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7656   ;;
7657   *)
7658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661   IFS=$as_save_IFS
7662   test -z "$as_dir" && as_dir=.
7663   for ac_exec_ext in '' $ac_executable_extensions; do
7664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7667     break 2
7668   fi
7669 done
7670 done
7671 IFS=$as_save_IFS
7672
7673   ;;
7674 esac
7675 fi
7676 MSGFMT=$ac_cv_path_MSGFMT
7677 if test -n "$MSGFMT"; then
7678   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7679 echo "${ECHO_T}$MSGFMT" >&6; }
7680 else
7681   { echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6; }
7683 fi
7684
7685
7686   test -n "$MSGFMT" && break
7687 done
7688 test -n "$MSGFMT" || MSGFMT="no"
7689
7690 if test "$MSGFMT" = "no"
7691 then
7692    echo 'msgfmt program not found, disabling NLS !'
7693    USE_NLS=no
7694    USE_INCLUDED_LIBINTL=no
7695 #else
7696
7697     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7698 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7699 if test "${ac_cv_gnu_library_2+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702   cat >conftest.$ac_ext <<_ACEOF
7703 /* confdefs.h.  */
7704 _ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h.  */
7708
7709 #include <features.h>
7710 #ifdef __GNU_LIBRARY__
7711  #if (__GLIBC__ >= 2)
7712   Lucky GNU user
7713  #endif
7714 #endif
7715
7716 _ACEOF
7717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7718   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7719   ac_cv_gnu_library_2=yes
7720 else
7721   ac_cv_gnu_library_2=no
7722 fi
7723 rm -f conftest*
7724
7725
7726
7727 fi
7728 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7729 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7730
7731     GLIBC2="$ac_cv_gnu_library_2"
7732
7733
7734
7735         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7736 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7737 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7738   echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740   ac_check_lib_save_LIBS=$LIBS
7741 LIBS="-lcposix  $LIBS"
7742 cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h.  */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h.  */
7748
7749 /* Override any GCC internal prototype to avoid an error.
7750    Use char because int might match the return type of a GCC
7751    builtin and then its argument prototype would still apply.  */
7752 #ifdef __cplusplus
7753 extern "C"
7754 #endif
7755 char strerror ();
7756 int
7757 main ()
7758 {
7759 return strerror ();
7760   ;
7761   return 0;
7762 }
7763 _ACEOF
7764 rm -f conftest.$ac_objext conftest$ac_exeext
7765 if { (ac_try="$ac_link"
7766 case "(($ac_try" in
7767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768   *) ac_try_echo=$ac_try;;
7769 esac
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771   (eval "$ac_link") 2>conftest.er1
7772   ac_status=$?
7773   grep -v '^ *+' conftest.er1 >conftest.err
7774   rm -f conftest.er1
7775   cat conftest.err >&5
7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); } && {
7778          test -z "$ac_c_werror_flag" ||
7779          test ! -s conftest.err
7780        } && test -s conftest$ac_exeext &&
7781        $as_test_x conftest$ac_exeext; then
7782   ac_cv_lib_cposix_strerror=yes
7783 else
7784   echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7786
7787         ac_cv_lib_cposix_strerror=no
7788 fi
7789
7790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7791       conftest$ac_exeext conftest.$ac_ext
7792 LIBS=$ac_check_lib_save_LIBS
7793 fi
7794 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7795 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7796 if test $ac_cv_lib_cposix_strerror = yes; then
7797   LIBS="$LIBS -lcposix"
7798 fi
7799
7800
7801
7802 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7804 if test "${ac_cv_header_stdc+set}" = set; then
7805   echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807   cat >conftest.$ac_ext <<_ACEOF
7808 /* confdefs.h.  */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h.  */
7813 #include <stdlib.h>
7814 #include <stdarg.h>
7815 #include <string.h>
7816 #include <float.h>
7817
7818 int
7819 main ()
7820 {
7821
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext
7827 if { (ac_try="$ac_compile"
7828 case "(($ac_try" in
7829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830   *) ac_try_echo=$ac_try;;
7831 esac
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833   (eval "$ac_compile") 2>conftest.er1
7834   ac_status=$?
7835   grep -v '^ *+' conftest.er1 >conftest.err
7836   rm -f conftest.er1
7837   cat conftest.err >&5
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); } && {
7840          test -z "$ac_c_werror_flag" ||
7841          test ! -s conftest.err
7842        } && test -s conftest.$ac_objext; then
7843   ac_cv_header_stdc=yes
7844 else
7845   echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848         ac_cv_header_stdc=no
7849 fi
7850
7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852
7853 if test $ac_cv_header_stdc = yes; then
7854   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7855   cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h.  */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h.  */
7861 #include <string.h>
7862
7863 _ACEOF
7864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7865   $EGREP "memchr" >/dev/null 2>&1; then
7866   :
7867 else
7868   ac_cv_header_stdc=no
7869 fi
7870 rm -f conftest*
7871
7872 fi
7873
7874 if test $ac_cv_header_stdc = yes; then
7875   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7876   cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h.  */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h.  */
7882 #include <stdlib.h>
7883
7884 _ACEOF
7885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7886   $EGREP "free" >/dev/null 2>&1; then
7887   :
7888 else
7889   ac_cv_header_stdc=no
7890 fi
7891 rm -f conftest*
7892
7893 fi
7894
7895 if test $ac_cv_header_stdc = yes; then
7896   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7897   if test "$cross_compiling" = yes; then
7898   :
7899 else
7900   cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h.  */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h.  */
7906 #include <ctype.h>
7907 #include <stdlib.h>
7908 #if ((' ' & 0x0FF) == 0x020)
7909 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7910 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7911 #else
7912 # define ISLOWER(c) \
7913                    (('a' <= (c) && (c) <= 'i') \
7914                      || ('j' <= (c) && (c) <= 'r') \
7915                      || ('s' <= (c) && (c) <= 'z'))
7916 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7917 #endif
7918
7919 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7920 int
7921 main ()
7922 {
7923   int i;
7924   for (i = 0; i < 256; i++)
7925     if (XOR (islower (i), ISLOWER (i))
7926         || toupper (i) != TOUPPER (i))
7927       return 2;
7928   return 0;
7929 }
7930 _ACEOF
7931 rm -f conftest$ac_exeext
7932 if { (ac_try="$ac_link"
7933 case "(($ac_try" in
7934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935   *) ac_try_echo=$ac_try;;
7936 esac
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938   (eval "$ac_link") 2>&5
7939   ac_status=$?
7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7942   { (case "(($ac_try" in
7943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944   *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947   (eval "$ac_try") 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; }; then
7951   :
7952 else
7953   echo "$as_me: program exited with status $ac_status" >&5
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7956
7957 ( exit $ac_status )
7958 ac_cv_header_stdc=no
7959 fi
7960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7961 fi
7962
7963
7964 fi
7965 fi
7966 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7967 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7968 if test $ac_cv_header_stdc = yes; then
7969
7970 cat >>confdefs.h <<\_ACEOF
7971 #define STDC_HEADERS 1
7972 _ACEOF
7973
7974 fi
7975
7976 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7977 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7978 if test "${ac_cv_c_const+set}" = set; then
7979   echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981   cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h.  */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h.  */
7987
7988 int
7989 main ()
7990 {
7991 /* FIXME: Include the comments suggested by Paul. */
7992 #ifndef __cplusplus
7993   /* Ultrix mips cc rejects this.  */
7994   typedef int charset[2];
7995   const charset cs;
7996   /* SunOS 4.1.1 cc rejects this.  */
7997   char const *const *pcpcc;
7998   char **ppc;
7999   /* NEC SVR4.0.2 mips cc rejects this.  */
8000   struct point {int x, y;};
8001   static struct point const zero = {0,0};
8002   /* AIX XL C 1.02.0.0 rejects this.
8003      It does not let you subtract one const X* pointer from another in
8004      an arm of an if-expression whose if-part is not a constant
8005      expression */
8006   const char *g = "string";
8007   pcpcc = &g + (g ? g-g : 0);
8008   /* HPUX 7.0 cc rejects these. */
8009   ++pcpcc;
8010   ppc = (char**) pcpcc;
8011   pcpcc = (char const *const *) ppc;
8012   { /* SCO 3.2v4 cc rejects this.  */
8013     char *t;
8014     char const *s = 0 ? (char *) 0 : (char const *) 0;
8015
8016     *t++ = 0;
8017     if (s) return 0;
8018   }
8019   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8020     int x[] = {25, 17};
8021     const int *foo = &x[0];
8022     ++foo;
8023   }
8024   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8025     typedef const int *iptr;
8026     iptr p = 0;
8027     ++p;
8028   }
8029   { /* AIX XL C 1.02.0.0 rejects this saying
8030        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8031     struct s { int j; const int *ap[3]; };
8032     struct s *b; b->j = 5;
8033   }
8034   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8035     const int foo = 10;
8036     if (!foo) return 0;
8037   }
8038   return !cs[0] && !zero.x;
8039 #endif
8040
8041   ;
8042   return 0;
8043 }
8044 _ACEOF
8045 rm -f conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8047 case "(($ac_try" in
8048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049   *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052   (eval "$ac_compile") 2>conftest.er1
8053   ac_status=$?
8054   grep -v '^ *+' conftest.er1 >conftest.err
8055   rm -f conftest.er1
8056   cat conftest.err >&5
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); } && {
8059          test -z "$ac_c_werror_flag" ||
8060          test ! -s conftest.err
8061        } && test -s conftest.$ac_objext; then
8062   ac_cv_c_const=yes
8063 else
8064   echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067         ac_cv_c_const=no
8068 fi
8069
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 fi
8072 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8073 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8074 if test $ac_cv_c_const = no; then
8075
8076 cat >>confdefs.h <<\_ACEOF
8077 #define const
8078 _ACEOF
8079
8080 fi
8081
8082
8083   { echo "$as_me:$LINENO: checking for signed" >&5
8084 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8085 if test "${bh_cv_c_signed+set}" = set; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088   cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094
8095 int
8096 main ()
8097 {
8098 signed char x;
8099   ;
8100   return 0;
8101 }
8102 _ACEOF
8103 rm -f conftest.$ac_objext
8104 if { (ac_try="$ac_compile"
8105 case "(($ac_try" in
8106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107   *) ac_try_echo=$ac_try;;
8108 esac
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110   (eval "$ac_compile") 2>conftest.er1
8111   ac_status=$?
8112   grep -v '^ *+' conftest.er1 >conftest.err
8113   rm -f conftest.er1
8114   cat conftest.err >&5
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); } && {
8117          test -z "$ac_c_werror_flag" ||
8118          test ! -s conftest.err
8119        } && test -s conftest.$ac_objext; then
8120   bh_cv_c_signed=yes
8121 else
8122   echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8124
8125         bh_cv_c_signed=no
8126 fi
8127
8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129 fi
8130 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8131 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8132   if test $bh_cv_c_signed = no; then
8133
8134 cat >>confdefs.h <<\_ACEOF
8135 #define signed
8136 _ACEOF
8137
8138   fi
8139
8140 { echo "$as_me:$LINENO: checking for inline" >&5
8141 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8142 if test "${ac_cv_c_inline+set}" = set; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145   ac_cv_c_inline=no
8146 for ac_kw in inline __inline__ __inline; do
8147   cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h.  */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h.  */
8153 #ifndef __cplusplus
8154 typedef int foo_t;
8155 static $ac_kw foo_t static_foo () {return 0; }
8156 $ac_kw foo_t foo () {return 0; }
8157 #endif
8158
8159 _ACEOF
8160 rm -f conftest.$ac_objext
8161 if { (ac_try="$ac_compile"
8162 case "(($ac_try" in
8163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164   *) ac_try_echo=$ac_try;;
8165 esac
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167   (eval "$ac_compile") 2>conftest.er1
8168   ac_status=$?
8169   grep -v '^ *+' conftest.er1 >conftest.err
8170   rm -f conftest.er1
8171   cat conftest.err >&5
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); } && {
8174          test -z "$ac_c_werror_flag" ||
8175          test ! -s conftest.err
8176        } && test -s conftest.$ac_objext; then
8177   ac_cv_c_inline=$ac_kw
8178 else
8179   echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182
8183 fi
8184
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186   test "$ac_cv_c_inline" != no && break
8187 done
8188
8189 fi
8190 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8191 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8192
8193
8194 case $ac_cv_c_inline in
8195   inline | yes) ;;
8196   *)
8197     case $ac_cv_c_inline in
8198       no) ac_val=;;
8199       *) ac_val=$ac_cv_c_inline;;
8200     esac
8201     cat >>confdefs.h <<_ACEOF
8202 #ifndef __cplusplus
8203 #define inline $ac_val
8204 #endif
8205 _ACEOF
8206     ;;
8207 esac
8208
8209 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8220                   inttypes.h stdint.h unistd.h
8221 do
8222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234 $ac_includes_default
8235
8236 #include <$ac_header>
8237 _ACEOF
8238 rm -f conftest.$ac_objext
8239 if { (ac_try="$ac_compile"
8240 case "(($ac_try" in
8241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242   *) ac_try_echo=$ac_try;;
8243 esac
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245   (eval "$ac_compile") 2>conftest.er1
8246   ac_status=$?
8247   grep -v '^ *+' conftest.er1 >conftest.err
8248   rm -f conftest.er1
8249   cat conftest.err >&5
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } && {
8252          test -z "$ac_c_werror_flag" ||
8253          test ! -s conftest.err
8254        } && test -s conftest.$ac_objext; then
8255   eval "$as_ac_Header=yes"
8256 else
8257   echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8259
8260         eval "$as_ac_Header=no"
8261 fi
8262
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264 fi
8265 ac_res=`eval echo '${'$as_ac_Header'}'`
8266                { echo "$as_me:$LINENO: result: $ac_res" >&5
8267 echo "${ECHO_T}$ac_res" >&6; }
8268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8269   cat >>confdefs.h <<_ACEOF
8270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8271 _ACEOF
8272
8273 fi
8274
8275 done
8276
8277
8278 { echo "$as_me:$LINENO: checking for off_t" >&5
8279 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8280 if test "${ac_cv_type_off_t+set}" = set; then
8281   echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283   cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h.  */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h.  */
8289 $ac_includes_default
8290 typedef off_t ac__type_new_;
8291 int
8292 main ()
8293 {
8294 if ((ac__type_new_ *) 0)
8295   return 0;
8296 if (sizeof (ac__type_new_))
8297   return 0;
8298   ;
8299   return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext
8303 if { (ac_try="$ac_compile"
8304 case "(($ac_try" in
8305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306   *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309   (eval "$ac_compile") 2>conftest.er1
8310   ac_status=$?
8311   grep -v '^ *+' conftest.er1 >conftest.err
8312   rm -f conftest.er1
8313   cat conftest.err >&5
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } && {
8316          test -z "$ac_c_werror_flag" ||
8317          test ! -s conftest.err
8318        } && test -s conftest.$ac_objext; then
8319   ac_cv_type_off_t=yes
8320 else
8321   echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324         ac_cv_type_off_t=no
8325 fi
8326
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 fi
8329 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8330 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8331 if test $ac_cv_type_off_t = yes; then
8332   :
8333 else
8334
8335 cat >>confdefs.h <<_ACEOF
8336 #define off_t long int
8337 _ACEOF
8338
8339 fi
8340
8341 { echo "$as_me:$LINENO: checking for size_t" >&5
8342 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8343 if test "${ac_cv_type_size_t+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h.  */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h.  */
8352 $ac_includes_default
8353 typedef size_t ac__type_new_;
8354 int
8355 main ()
8356 {
8357 if ((ac__type_new_ *) 0)
8358   return 0;
8359 if (sizeof (ac__type_new_))
8360   return 0;
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (ac_try="$ac_compile"
8367 case "(($ac_try" in
8368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369   *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372   (eval "$ac_compile") 2>conftest.er1
8373   ac_status=$?
8374   grep -v '^ *+' conftest.er1 >conftest.err
8375   rm -f conftest.er1
8376   cat conftest.err >&5
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); } && {
8379          test -z "$ac_c_werror_flag" ||
8380          test ! -s conftest.err
8381        } && test -s conftest.$ac_objext; then
8382   ac_cv_type_size_t=yes
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387         ac_cv_type_size_t=no
8388 fi
8389
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 fi
8392 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8393 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8394 if test $ac_cv_type_size_t = yes; then
8395   :
8396 else
8397
8398 cat >>confdefs.h <<_ACEOF
8399 #define size_t unsigned int
8400 _ACEOF
8401
8402 fi
8403
8404
8405   { echo "$as_me:$LINENO: checking for long long" >&5
8406 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8407 if test "${ac_cv_type_long_long+set}" = set; then
8408   echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410   cat >conftest.$ac_ext <<_ACEOF
8411 /* confdefs.h.  */
8412 _ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h.  */
8416 long long ll = 1LL; int i = 63;
8417 int
8418 main ()
8419 {
8420 long long llmax = (long long) -1;
8421      return ll << i | ll >> i | llmax / ll | llmax % ll;
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (ac_try="$ac_link"
8428 case "(($ac_try" in
8429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430   *) ac_try_echo=$ac_try;;
8431 esac
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433   (eval "$ac_link") 2>conftest.er1
8434   ac_status=$?
8435   grep -v '^ *+' conftest.er1 >conftest.err
8436   rm -f conftest.er1
8437   cat conftest.err >&5
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); } && {
8440          test -z "$ac_c_werror_flag" ||
8441          test ! -s conftest.err
8442        } && test -s conftest$ac_exeext &&
8443        $as_test_x conftest$ac_exeext; then
8444   ac_cv_type_long_long=yes
8445 else
8446   echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449         ac_cv_type_long_long=no
8450 fi
8451
8452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8453       conftest$ac_exeext conftest.$ac_ext
8454 fi
8455 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8456 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8457   if test $ac_cv_type_long_long = yes; then
8458
8459 cat >>confdefs.h <<\_ACEOF
8460 #define HAVE_LONG_LONG 1
8461 _ACEOF
8462
8463   fi
8464
8465
8466   { echo "$as_me:$LINENO: checking for long double" >&5
8467 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8468 if test "${gt_cv_c_long_double+set}" = set; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471   if test "$GCC" = yes; then
8472        gt_cv_c_long_double=yes
8473      else
8474        cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h.  */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h.  */
8480
8481          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8482          long double foo = 0.0;
8483          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8484          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8485
8486 int
8487 main ()
8488 {
8489
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (ac_try="$ac_compile"
8496 case "(($ac_try" in
8497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498   *) ac_try_echo=$ac_try;;
8499 esac
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501   (eval "$ac_compile") 2>conftest.er1
8502   ac_status=$?
8503   grep -v '^ *+' conftest.er1 >conftest.err
8504   rm -f conftest.er1
8505   cat conftest.err >&5
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); } && {
8508          test -z "$ac_c_werror_flag" ||
8509          test ! -s conftest.err
8510        } && test -s conftest.$ac_objext; then
8511   gt_cv_c_long_double=yes
8512 else
8513   echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516         gt_cv_c_long_double=no
8517 fi
8518
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520      fi
8521 fi
8522 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8523 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8524   if test $gt_cv_c_long_double = yes; then
8525
8526 cat >>confdefs.h <<\_ACEOF
8527 #define HAVE_LONG_DOUBLE 1
8528 _ACEOF
8529
8530   fi
8531
8532
8533   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8534 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8535 if test "${gt_cv_c_wchar_t+set}" = set; then
8536   echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538   cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h.  */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h.  */
8544 #include <stddef.h>
8545        wchar_t foo = (wchar_t)'\0';
8546 int
8547 main ()
8548 {
8549
8550   ;
8551   return 0;
8552 }
8553 _ACEOF
8554 rm -f conftest.$ac_objext
8555 if { (ac_try="$ac_compile"
8556 case "(($ac_try" in
8557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558   *) ac_try_echo=$ac_try;;
8559 esac
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561   (eval "$ac_compile") 2>conftest.er1
8562   ac_status=$?
8563   grep -v '^ *+' conftest.er1 >conftest.err
8564   rm -f conftest.er1
8565   cat conftest.err >&5
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); } && {
8568          test -z "$ac_c_werror_flag" ||
8569          test ! -s conftest.err
8570        } && test -s conftest.$ac_objext; then
8571   gt_cv_c_wchar_t=yes
8572 else
8573   echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8575
8576         gt_cv_c_wchar_t=no
8577 fi
8578
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 fi
8581 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8582 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8583   if test $gt_cv_c_wchar_t = yes; then
8584
8585 cat >>confdefs.h <<\_ACEOF
8586 #define HAVE_WCHAR_T 1
8587 _ACEOF
8588
8589   fi
8590
8591
8592   { echo "$as_me:$LINENO: checking for wint_t" >&5
8593 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8594 if test "${gt_cv_c_wint_t+set}" = set; then
8595   echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597   cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8603 #include <wchar.h>
8604        wint_t foo = (wchar_t)'\0';
8605 int
8606 main ()
8607 {
8608
8609   ;
8610   return 0;
8611 }
8612 _ACEOF
8613 rm -f conftest.$ac_objext
8614 if { (ac_try="$ac_compile"
8615 case "(($ac_try" in
8616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617   *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620   (eval "$ac_compile") 2>conftest.er1
8621   ac_status=$?
8622   grep -v '^ *+' conftest.er1 >conftest.err
8623   rm -f conftest.er1
8624   cat conftest.err >&5
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } && {
8627          test -z "$ac_c_werror_flag" ||
8628          test ! -s conftest.err
8629        } && test -s conftest.$ac_objext; then
8630   gt_cv_c_wint_t=yes
8631 else
8632   echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635         gt_cv_c_wint_t=no
8636 fi
8637
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 fi
8640 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8641 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8642   if test $gt_cv_c_wint_t = yes; then
8643
8644 cat >>confdefs.h <<\_ACEOF
8645 #define HAVE_WINT_T 1
8646 _ACEOF
8647
8648   fi
8649
8650
8651   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8652 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8653 if test "${gl_cv_header_inttypes_h+set}" = set; then
8654   echo $ECHO_N "(cached) $ECHO_C" >&6
8655 else
8656   cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662 #include <sys/types.h>
8663 #include <inttypes.h>
8664 int
8665 main ()
8666 {
8667 uintmax_t i = (uintmax_t) -1;
8668   ;
8669   return 0;
8670 }
8671 _ACEOF
8672 rm -f conftest.$ac_objext
8673 if { (ac_try="$ac_compile"
8674 case "(($ac_try" in
8675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676   *) ac_try_echo=$ac_try;;
8677 esac
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679   (eval "$ac_compile") 2>conftest.er1
8680   ac_status=$?
8681   grep -v '^ *+' conftest.er1 >conftest.err
8682   rm -f conftest.er1
8683   cat conftest.err >&5
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); } && {
8686          test -z "$ac_c_werror_flag" ||
8687          test ! -s conftest.err
8688        } && test -s conftest.$ac_objext; then
8689   gl_cv_header_inttypes_h=yes
8690 else
8691   echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694         gl_cv_header_inttypes_h=no
8695 fi
8696
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698 fi
8699 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8700 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8701   if test $gl_cv_header_inttypes_h = yes; then
8702
8703 cat >>confdefs.h <<_ACEOF
8704 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8705 _ACEOF
8706
8707   fi
8708
8709
8710   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8711 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8712 if test "${gl_cv_header_stdint_h+set}" = set; then
8713   echo $ECHO_N "(cached) $ECHO_C" >&6
8714 else
8715   cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h.  */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h.  */
8721 #include <sys/types.h>
8722 #include <stdint.h>
8723 int
8724 main ()
8725 {
8726 uintmax_t i = (uintmax_t) -1;
8727   ;
8728   return 0;
8729 }
8730 _ACEOF
8731 rm -f conftest.$ac_objext
8732 if { (ac_try="$ac_compile"
8733 case "(($ac_try" in
8734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735   *) ac_try_echo=$ac_try;;
8736 esac
8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738   (eval "$ac_compile") 2>conftest.er1
8739   ac_status=$?
8740   grep -v '^ *+' conftest.er1 >conftest.err
8741   rm -f conftest.er1
8742   cat conftest.err >&5
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); } && {
8745          test -z "$ac_c_werror_flag" ||
8746          test ! -s conftest.err
8747        } && test -s conftest.$ac_objext; then
8748   gl_cv_header_stdint_h=yes
8749 else
8750   echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8752
8753         gl_cv_header_stdint_h=no
8754 fi
8755
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 fi
8758 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8759 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8760   if test $gl_cv_header_stdint_h = yes; then
8761
8762 cat >>confdefs.h <<_ACEOF
8763 #define HAVE_STDINT_H_WITH_UINTMAX 1
8764 _ACEOF
8765
8766   fi
8767
8768
8769
8770
8771   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8772 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8773 if test "${gt_cv_c_intmax_t+set}" = set; then
8774   echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776   cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h.  */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h.  */
8782
8783 #include <stddef.h>
8784 #include <stdlib.h>
8785 #if HAVE_STDINT_H_WITH_UINTMAX
8786 #include <stdint.h>
8787 #endif
8788 #if HAVE_INTTYPES_H_WITH_UINTMAX
8789 #include <inttypes.h>
8790 #endif
8791
8792 int
8793 main ()
8794 {
8795 intmax_t x = -1;
8796   ;
8797   return 0;
8798 }
8799 _ACEOF
8800 rm -f conftest.$ac_objext
8801 if { (ac_try="$ac_compile"
8802 case "(($ac_try" in
8803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804   *) ac_try_echo=$ac_try;;
8805 esac
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807   (eval "$ac_compile") 2>conftest.er1
8808   ac_status=$?
8809   grep -v '^ *+' conftest.er1 >conftest.err
8810   rm -f conftest.er1
8811   cat conftest.err >&5
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); } && {
8814          test -z "$ac_c_werror_flag" ||
8815          test ! -s conftest.err
8816        } && test -s conftest.$ac_objext; then
8817   gt_cv_c_intmax_t=yes
8818 else
8819   echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8821
8822         gt_cv_c_intmax_t=no
8823 fi
8824
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 fi
8827 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8828 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8829   if test $gt_cv_c_intmax_t = yes; then
8830
8831 cat >>confdefs.h <<\_ACEOF
8832 #define HAVE_INTMAX_T 1
8833 _ACEOF
8834
8835   fi
8836
8837
8838
8839   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8840 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8841 if test "${gt_cv_func_printf_posix+set}" = set; then
8842   echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844
8845       if test "$cross_compiling" = yes; then
8846
8847         cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h.  */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h.  */
8853
8854 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8855   notposix
8856 #endif
8857
8858 _ACEOF
8859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8860   $EGREP "notposix" >/dev/null 2>&1; then
8861   gt_cv_func_printf_posix="guessing no"
8862 else
8863   gt_cv_func_printf_posix="guessing yes"
8864 fi
8865 rm -f conftest*
8866
8867
8868 else
8869   cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h.  */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h.  */
8875
8876 #include <stdio.h>
8877 #include <string.h>
8878 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8879    dollar expansion (possibly an autoconf bug).  */
8880 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8881 static char buf[100];
8882 int main ()
8883 {
8884   sprintf (buf, format, 33, 55);
8885   return (strcmp (buf, "55 33") != 0);
8886 }
8887 _ACEOF
8888 rm -f conftest$ac_exeext
8889 if { (ac_try="$ac_link"
8890 case "(($ac_try" in
8891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892   *) ac_try_echo=$ac_try;;
8893 esac
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895   (eval "$ac_link") 2>&5
8896   ac_status=$?
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8899   { (case "(($ac_try" in
8900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901   *) ac_try_echo=$ac_try;;
8902 esac
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904   (eval "$ac_try") 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); }; }; then
8908   gt_cv_func_printf_posix=yes
8909 else
8910   echo "$as_me: program exited with status $ac_status" >&5
8911 echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8913
8914 ( exit $ac_status )
8915 gt_cv_func_printf_posix=no
8916 fi
8917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8918 fi
8919
8920
8921
8922 fi
8923 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8924 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8925   case $gt_cv_func_printf_posix in
8926     *yes)
8927
8928 cat >>confdefs.h <<\_ACEOF
8929 #define HAVE_POSIX_PRINTF 1
8930 _ACEOF
8931
8932       ;;
8933   esac
8934
8935 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8936 # for constant arguments.  Useless!
8937 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8938 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8939 if test "${ac_cv_working_alloca_h+set}" = set; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942   cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h.  */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h.  */
8948 #include <alloca.h>
8949 int
8950 main ()
8951 {
8952 char *p = (char *) alloca (2 * sizeof (int));
8953                           if (p) return 0;
8954   ;
8955   return 0;
8956 }
8957 _ACEOF
8958 rm -f conftest.$ac_objext conftest$ac_exeext
8959 if { (ac_try="$ac_link"
8960 case "(($ac_try" in
8961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962   *) ac_try_echo=$ac_try;;
8963 esac
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965   (eval "$ac_link") 2>conftest.er1
8966   ac_status=$?
8967   grep -v '^ *+' conftest.er1 >conftest.err
8968   rm -f conftest.er1
8969   cat conftest.err >&5
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); } && {
8972          test -z "$ac_c_werror_flag" ||
8973          test ! -s conftest.err
8974        } && test -s conftest$ac_exeext &&
8975        $as_test_x conftest$ac_exeext; then
8976   ac_cv_working_alloca_h=yes
8977 else
8978   echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981         ac_cv_working_alloca_h=no
8982 fi
8983
8984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8985       conftest$ac_exeext conftest.$ac_ext
8986 fi
8987 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8988 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8989 if test $ac_cv_working_alloca_h = yes; then
8990
8991 cat >>confdefs.h <<\_ACEOF
8992 #define HAVE_ALLOCA_H 1
8993 _ACEOF
8994
8995 fi
8996
8997 { echo "$as_me:$LINENO: checking for alloca" >&5
8998 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8999 if test "${ac_cv_func_alloca_works+set}" = set; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002   cat >conftest.$ac_ext <<_ACEOF
9003 /* confdefs.h.  */
9004 _ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h.  */
9008 #ifdef __GNUC__
9009 # define alloca __builtin_alloca
9010 #else
9011 # ifdef _MSC_VER
9012 #  include <malloc.h>
9013 #  define alloca _alloca
9014 # else
9015 #  ifdef HAVE_ALLOCA_H
9016 #   include <alloca.h>
9017 #  else
9018 #   ifdef _AIX
9019  #pragma alloca
9020 #   else
9021 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9022 char *alloca ();
9023 #    endif
9024 #   endif
9025 #  endif
9026 # endif
9027 #endif
9028
9029 int
9030 main ()
9031 {
9032 char *p = (char *) alloca (1);
9033                                     if (p) return 0;
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (ac_try="$ac_link"
9040 case "(($ac_try" in
9041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042   *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045   (eval "$ac_link") 2>conftest.er1
9046   ac_status=$?
9047   grep -v '^ *+' conftest.er1 >conftest.err
9048   rm -f conftest.er1
9049   cat conftest.err >&5
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } && {
9052          test -z "$ac_c_werror_flag" ||
9053          test ! -s conftest.err
9054        } && test -s conftest$ac_exeext &&
9055        $as_test_x conftest$ac_exeext; then
9056   ac_cv_func_alloca_works=yes
9057 else
9058   echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9060
9061         ac_cv_func_alloca_works=no
9062 fi
9063
9064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9065       conftest$ac_exeext conftest.$ac_ext
9066 fi
9067 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9068 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9069
9070 if test $ac_cv_func_alloca_works = yes; then
9071
9072 cat >>confdefs.h <<\_ACEOF
9073 #define HAVE_ALLOCA 1
9074 _ACEOF
9075
9076 else
9077   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9078 # that cause trouble.  Some versions do not even contain alloca or
9079 # contain a buggy version.  If you still want to use their alloca,
9080 # use ar to extract alloca.o from them instead of compiling alloca.c.
9081
9082 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9083
9084 cat >>confdefs.h <<\_ACEOF
9085 #define C_ALLOCA 1
9086 _ACEOF
9087
9088
9089 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9090 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9091 if test "${ac_cv_os_cray+set}" = set; then
9092   echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094   cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h.  */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h.  */
9100 #if defined CRAY && ! defined CRAY2
9101 webecray
9102 #else
9103 wenotbecray
9104 #endif
9105
9106 _ACEOF
9107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9108   $EGREP "webecray" >/dev/null 2>&1; then
9109   ac_cv_os_cray=yes
9110 else
9111   ac_cv_os_cray=no
9112 fi
9113 rm -f conftest*
9114
9115 fi
9116 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9117 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9118 if test $ac_cv_os_cray = yes; then
9119   for ac_func in _getb67 GETB67 getb67; do
9120     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h.  */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h.  */
9132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9134 #define $ac_func innocuous_$ac_func
9135
9136 /* System header to define __stub macros and hopefully few prototypes,
9137     which can conflict with char $ac_func (); below.
9138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9139     <limits.h> exists even on freestanding compilers.  */
9140
9141 #ifdef __STDC__
9142 # include <limits.h>
9143 #else
9144 # include <assert.h>
9145 #endif
9146
9147 #undef $ac_func
9148
9149 /* Override any GCC internal prototype to avoid an error.
9150    Use char because int might match the return type of a GCC
9151    builtin and then its argument prototype would still apply.  */
9152 #ifdef __cplusplus
9153 extern "C"
9154 #endif
9155 char $ac_func ();
9156 /* The GNU C library defines this for functions which it implements
9157     to always fail with ENOSYS.  Some functions are actually named
9158     something starting with __ and the normal name is an alias.  */
9159 #if defined __stub_$ac_func || defined __stub___$ac_func
9160 choke me
9161 #endif
9162
9163 int
9164 main ()
9165 {
9166 return $ac_func ();
9167   ;
9168   return 0;
9169 }
9170 _ACEOF
9171 rm -f conftest.$ac_objext conftest$ac_exeext
9172 if { (ac_try="$ac_link"
9173 case "(($ac_try" in
9174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175   *) ac_try_echo=$ac_try;;
9176 esac
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178   (eval "$ac_link") 2>conftest.er1
9179   ac_status=$?
9180   grep -v '^ *+' conftest.er1 >conftest.err
9181   rm -f conftest.er1
9182   cat conftest.err >&5
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); } && {
9185          test -z "$ac_c_werror_flag" ||
9186          test ! -s conftest.err
9187        } && test -s conftest$ac_exeext &&
9188        $as_test_x conftest$ac_exeext; then
9189   eval "$as_ac_var=yes"
9190 else
9191   echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194         eval "$as_ac_var=no"
9195 fi
9196
9197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9198       conftest$ac_exeext conftest.$ac_ext
9199 fi
9200 ac_res=`eval echo '${'$as_ac_var'}'`
9201                { echo "$as_me:$LINENO: result: $ac_res" >&5
9202 echo "${ECHO_T}$ac_res" >&6; }
9203 if test `eval echo '${'$as_ac_var'}'` = yes; then
9204
9205 cat >>confdefs.h <<_ACEOF
9206 #define CRAY_STACKSEG_END $ac_func
9207 _ACEOF
9208
9209     break
9210 fi
9211
9212   done
9213 fi
9214
9215 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9216 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9217 if test "${ac_cv_c_stack_direction+set}" = set; then
9218   echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220   if test "$cross_compiling" = yes; then
9221   ac_cv_c_stack_direction=0
9222 else
9223   cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h.  */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h.  */
9229 $ac_includes_default
9230 int
9231 find_stack_direction ()
9232 {
9233   static char *addr = 0;
9234   auto char dummy;
9235   if (addr == 0)
9236     {
9237       addr = &dummy;
9238       return find_stack_direction ();
9239     }
9240   else
9241     return (&dummy > addr) ? 1 : -1;
9242 }
9243
9244 int
9245 main ()
9246 {
9247   return find_stack_direction () < 0;
9248 }
9249 _ACEOF
9250 rm -f conftest$ac_exeext
9251 if { (ac_try="$ac_link"
9252 case "(($ac_try" in
9253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254   *) ac_try_echo=$ac_try;;
9255 esac
9256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257   (eval "$ac_link") 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9261   { (case "(($ac_try" in
9262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263   *) ac_try_echo=$ac_try;;
9264 esac
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266   (eval "$ac_try") 2>&5
9267   ac_status=$?
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); }; }; then
9270   ac_cv_c_stack_direction=1
9271 else
9272   echo "$as_me: program exited with status $ac_status" >&5
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9275
9276 ( exit $ac_status )
9277 ac_cv_c_stack_direction=-1
9278 fi
9279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9280 fi
9281
9282
9283 fi
9284 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9285 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9286
9287 cat >>confdefs.h <<_ACEOF
9288 #define STACK_DIRECTION $ac_cv_c_stack_direction
9289 _ACEOF
9290
9291
9292 fi
9293
9294
9295
9296 for ac_header in stdlib.h unistd.h
9297 do
9298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9300   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9303   echo $ECHO_N "(cached) $ECHO_C" >&6
9304 fi
9305 ac_res=`eval echo '${'$as_ac_Header'}'`
9306                { echo "$as_me:$LINENO: result: $ac_res" >&5
9307 echo "${ECHO_T}$ac_res" >&6; }
9308 else
9309   # Is the header compilable?
9310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9312 cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h.  */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h.  */
9318 $ac_includes_default
9319 #include <$ac_header>
9320 _ACEOF
9321 rm -f conftest.$ac_objext
9322 if { (ac_try="$ac_compile"
9323 case "(($ac_try" in
9324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325   *) ac_try_echo=$ac_try;;
9326 esac
9327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328   (eval "$ac_compile") 2>conftest.er1
9329   ac_status=$?
9330   grep -v '^ *+' conftest.er1 >conftest.err
9331   rm -f conftest.er1
9332   cat conftest.err >&5
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); } && {
9335          test -z "$ac_c_werror_flag" ||
9336          test ! -s conftest.err
9337        } && test -s conftest.$ac_objext; then
9338   ac_header_compiler=yes
9339 else
9340   echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9342
9343         ac_header_compiler=no
9344 fi
9345
9346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9348 echo "${ECHO_T}$ac_header_compiler" >&6; }
9349
9350 # Is the header present?
9351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h.  */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h.  */
9359 #include <$ac_header>
9360 _ACEOF
9361 if { (ac_try="$ac_cpp conftest.$ac_ext"
9362 case "(($ac_try" in
9363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364   *) ac_try_echo=$ac_try;;
9365 esac
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9368   ac_status=$?
9369   grep -v '^ *+' conftest.er1 >conftest.err
9370   rm -f conftest.er1
9371   cat conftest.err >&5
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); } >/dev/null && {
9374          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9375          test ! -s conftest.err
9376        }; then
9377   ac_header_preproc=yes
9378 else
9379   echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382   ac_header_preproc=no
9383 fi
9384
9385 rm -f conftest.err conftest.$ac_ext
9386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9387 echo "${ECHO_T}$ac_header_preproc" >&6; }
9388
9389 # So?  What about this header?
9390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9391   yes:no: )
9392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9396     ac_header_preproc=yes
9397     ;;
9398   no:yes:* )
9399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9411
9412     ;;
9413 esac
9414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419   eval "$as_ac_Header=\$ac_header_preproc"
9420 fi
9421 ac_res=`eval echo '${'$as_ac_Header'}'`
9422                { echo "$as_me:$LINENO: result: $ac_res" >&5
9423 echo "${ECHO_T}$ac_res" >&6; }
9424
9425 fi
9426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9427   cat >>confdefs.h <<_ACEOF
9428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9429 _ACEOF
9430
9431 fi
9432
9433 done
9434
9435
9436 for ac_func in getpagesize
9437 do
9438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9439 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444   cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9452 #define $ac_func innocuous_$ac_func
9453
9454 /* System header to define __stub macros and hopefully few prototypes,
9455     which can conflict with char $ac_func (); below.
9456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9457     <limits.h> exists even on freestanding compilers.  */
9458
9459 #ifdef __STDC__
9460 # include <limits.h>
9461 #else
9462 # include <assert.h>
9463 #endif
9464
9465 #undef $ac_func
9466
9467 /* Override any GCC internal prototype to avoid an error.
9468    Use char because int might match the return type of a GCC
9469    builtin and then its argument prototype would still apply.  */
9470 #ifdef __cplusplus
9471 extern "C"
9472 #endif
9473 char $ac_func ();
9474 /* The GNU C library defines this for functions which it implements
9475     to always fail with ENOSYS.  Some functions are actually named
9476     something starting with __ and the normal name is an alias.  */
9477 #if defined __stub_$ac_func || defined __stub___$ac_func
9478 choke me
9479 #endif
9480
9481 int
9482 main ()
9483 {
9484 return $ac_func ();
9485   ;
9486   return 0;
9487 }
9488 _ACEOF
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (ac_try="$ac_link"
9491 case "(($ac_try" in
9492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493   *) ac_try_echo=$ac_try;;
9494 esac
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496   (eval "$ac_link") 2>conftest.er1
9497   ac_status=$?
9498   grep -v '^ *+' conftest.er1 >conftest.err
9499   rm -f conftest.er1
9500   cat conftest.err >&5
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); } && {
9503          test -z "$ac_c_werror_flag" ||
9504          test ! -s conftest.err
9505        } && test -s conftest$ac_exeext &&
9506        $as_test_x conftest$ac_exeext; then
9507   eval "$as_ac_var=yes"
9508 else
9509   echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9511
9512         eval "$as_ac_var=no"
9513 fi
9514
9515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9516       conftest$ac_exeext conftest.$ac_ext
9517 fi
9518 ac_res=`eval echo '${'$as_ac_var'}'`
9519                { echo "$as_me:$LINENO: result: $ac_res" >&5
9520 echo "${ECHO_T}$ac_res" >&6; }
9521 if test `eval echo '${'$as_ac_var'}'` = yes; then
9522   cat >>confdefs.h <<_ACEOF
9523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9524 _ACEOF
9525
9526 fi
9527 done
9528
9529 { echo "$as_me:$LINENO: checking for working mmap" >&5
9530 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9531 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9532   echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534   if test "$cross_compiling" = yes; then
9535   ac_cv_func_mmap_fixed_mapped=no
9536 else
9537   cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h.  */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h.  */
9543 $ac_includes_default
9544 /* malloc might have been renamed as rpl_malloc. */
9545 #undef malloc
9546
9547 /* Thanks to Mike Haertel and Jim Avera for this test.
9548    Here is a matrix of mmap possibilities:
9549         mmap private not fixed
9550         mmap private fixed at somewhere currently unmapped
9551         mmap private fixed at somewhere already mapped
9552         mmap shared not fixed
9553         mmap shared fixed at somewhere currently unmapped
9554         mmap shared fixed at somewhere already mapped
9555    For private mappings, we should verify that changes cannot be read()
9556    back from the file, nor mmap's back from the file at a different
9557    address.  (There have been systems where private was not correctly
9558    implemented like the infamous i386 svr4.0, and systems where the
9559    VM page cache was not coherent with the file system buffer cache
9560    like early versions of FreeBSD and possibly contemporary NetBSD.)
9561    For shared mappings, we should conversely verify that changes get
9562    propagated back to all the places they're supposed to be.
9563
9564    Grep wants private fixed already mapped.
9565    The main things grep needs to know about mmap are:
9566    * does it exist and is it safe to write into the mmap'd area
9567    * how to use it (BSD variants)  */
9568
9569 #include <fcntl.h>
9570 #include <sys/mman.h>
9571
9572 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9573 char *malloc ();
9574 #endif
9575
9576 /* This mess was copied from the GNU getpagesize.h.  */
9577 #ifndef HAVE_GETPAGESIZE
9578 /* Assume that all systems that can run configure have sys/param.h.  */
9579 # ifndef HAVE_SYS_PARAM_H
9580 #  define HAVE_SYS_PARAM_H 1
9581 # endif
9582
9583 # ifdef _SC_PAGESIZE
9584 #  define getpagesize() sysconf(_SC_PAGESIZE)
9585 # else /* no _SC_PAGESIZE */
9586 #  ifdef HAVE_SYS_PARAM_H
9587 #   include <sys/param.h>
9588 #   ifdef EXEC_PAGESIZE
9589 #    define getpagesize() EXEC_PAGESIZE
9590 #   else /* no EXEC_PAGESIZE */
9591 #    ifdef NBPG
9592 #     define getpagesize() NBPG * CLSIZE
9593 #     ifndef CLSIZE
9594 #      define CLSIZE 1
9595 #     endif /* no CLSIZE */
9596 #    else /* no NBPG */
9597 #     ifdef NBPC
9598 #      define getpagesize() NBPC
9599 #     else /* no NBPC */
9600 #      ifdef PAGESIZE
9601 #       define getpagesize() PAGESIZE
9602 #      endif /* PAGESIZE */
9603 #     endif /* no NBPC */
9604 #    endif /* no NBPG */
9605 #   endif /* no EXEC_PAGESIZE */
9606 #  else /* no HAVE_SYS_PARAM_H */
9607 #   define getpagesize() 8192   /* punt totally */
9608 #  endif /* no HAVE_SYS_PARAM_H */
9609 # endif /* no _SC_PAGESIZE */
9610
9611 #endif /* no HAVE_GETPAGESIZE */
9612
9613 int
9614 main ()
9615 {
9616   char *data, *data2, *data3;
9617   int i, pagesize;
9618   int fd;
9619
9620   pagesize = getpagesize ();
9621
9622   /* First, make a file with some known garbage in it. */
9623   data = (char *) malloc (pagesize);
9624   if (!data)
9625     return 1;
9626   for (i = 0; i < pagesize; ++i)
9627     *(data + i) = rand ();
9628   umask (0);
9629   fd = creat ("conftest.mmap", 0600);
9630   if (fd < 0)
9631     return 1;
9632   if (write (fd, data, pagesize) != pagesize)
9633     return 1;
9634   close (fd);
9635
9636   /* Next, try to mmap the file at a fixed address which already has
9637      something else allocated at it.  If we can, also make sure that
9638      we see the same garbage.  */
9639   fd = open ("conftest.mmap", O_RDWR);
9640   if (fd < 0)
9641     return 1;
9642   data2 = (char *) malloc (2 * pagesize);
9643   if (!data2)
9644     return 1;
9645   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9646   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9647                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9648     return 1;
9649   for (i = 0; i < pagesize; ++i)
9650     if (*(data + i) != *(data2 + i))
9651       return 1;
9652
9653   /* Finally, make sure that changes to the mapped area do not
9654      percolate back to the file as seen by read().  (This is a bug on
9655      some variants of i386 svr4.0.)  */
9656   for (i = 0; i < pagesize; ++i)
9657     *(data2 + i) = *(data2 + i) + 1;
9658   data3 = (char *) malloc (pagesize);
9659   if (!data3)
9660     return 1;
9661   if (read (fd, data3, pagesize) != pagesize)
9662     return 1;
9663   for (i = 0; i < pagesize; ++i)
9664     if (*(data + i) != *(data3 + i))
9665       return 1;
9666   close (fd);
9667   return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest$ac_exeext
9671 if { (ac_try="$ac_link"
9672 case "(($ac_try" in
9673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674   *) ac_try_echo=$ac_try;;
9675 esac
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677   (eval "$ac_link") 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9681   { (case "(($ac_try" in
9682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683   *) ac_try_echo=$ac_try;;
9684 esac
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686   (eval "$ac_try") 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; }; then
9690   ac_cv_func_mmap_fixed_mapped=yes
9691 else
9692   echo "$as_me: program exited with status $ac_status" >&5
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 ( exit $ac_status )
9697 ac_cv_func_mmap_fixed_mapped=no
9698 fi
9699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9700 fi
9701
9702
9703 fi
9704 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9705 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9706 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9707
9708 cat >>confdefs.h <<\_ACEOF
9709 #define HAVE_MMAP 1
9710 _ACEOF
9711
9712 fi
9713 rm -f conftest.mmap
9714
9715
9716     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9717 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9718 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9719   echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721   cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727
9728 #include <features.h>
9729 #ifdef __GNU_LIBRARY__
9730  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9731   Lucky GNU user
9732  #endif
9733 #endif
9734
9735 _ACEOF
9736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9737   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9738   ac_cv_gnu_library_2_1=yes
9739 else
9740   ac_cv_gnu_library_2_1=no
9741 fi
9742 rm -f conftest*
9743
9744
9745
9746 fi
9747 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9748 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9749
9750     GLIBC21="$ac_cv_gnu_library_2_1"
9751
9752
9753
9754
9755   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9756 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9757 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760
9761       if test "$cross_compiling" = yes; then
9762
9763           # Guess based on the CPU.
9764           case "$host_cpu" in
9765             alpha* | i3456786 | m68k | s390*)
9766               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9767             *)
9768               gt_cv_int_divbyzero_sigfpe="guessing no";;
9769           esac
9770
9771 else
9772   cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778
9779 #include <stdlib.h>
9780 #include <signal.h>
9781
9782 static void
9783 #ifdef __cplusplus
9784 sigfpe_handler (int sig)
9785 #else
9786 sigfpe_handler (sig) int sig;
9787 #endif
9788 {
9789   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9790   exit (sig != SIGFPE);
9791 }
9792
9793 int x = 1;
9794 int y = 0;
9795 int z;
9796 int nan;
9797
9798 int main ()
9799 {
9800   signal (SIGFPE, sigfpe_handler);
9801 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9802 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9803   signal (SIGTRAP, sigfpe_handler);
9804 #endif
9805 /* Linux/SPARC yields signal SIGILL.  */
9806 #if defined (__sparc__) && defined (__linux__)
9807   signal (SIGILL, sigfpe_handler);
9808 #endif
9809
9810   z = x / y;
9811   nan = y / y;
9812   exit (1);
9813 }
9814
9815 _ACEOF
9816 rm -f conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9818 case "(($ac_try" in
9819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820   *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823   (eval "$ac_link") 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9827   { (case "(($ac_try" in
9828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829   *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832   (eval "$ac_try") 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; }; then
9836   gt_cv_int_divbyzero_sigfpe=yes
9837 else
9838   echo "$as_me: program exited with status $ac_status" >&5
9839 echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9841
9842 ( exit $ac_status )
9843 gt_cv_int_divbyzero_sigfpe=no
9844 fi
9845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9846 fi
9847
9848
9849
9850 fi
9851 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9852 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9853   case "$gt_cv_int_divbyzero_sigfpe" in
9854     *yes) value=1;;
9855     *) value=0;;
9856   esac
9857
9858 cat >>confdefs.h <<_ACEOF
9859 #define INTDIV0_RAISES_SIGFPE $value
9860 _ACEOF
9861
9862
9863
9864   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9865 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9866 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869   cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h.  */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h.  */
9875 unsigned long long ull = 1ULL; int i = 63;
9876 int
9877 main ()
9878 {
9879 unsigned long long ullmax = (unsigned long long) -1;
9880      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9881   ;
9882   return 0;
9883 }
9884 _ACEOF
9885 rm -f conftest.$ac_objext conftest$ac_exeext
9886 if { (ac_try="$ac_link"
9887 case "(($ac_try" in
9888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889   *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892   (eval "$ac_link") 2>conftest.er1
9893   ac_status=$?
9894   grep -v '^ *+' conftest.er1 >conftest.err
9895   rm -f conftest.er1
9896   cat conftest.err >&5
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); } && {
9899          test -z "$ac_c_werror_flag" ||
9900          test ! -s conftest.err
9901        } && test -s conftest$ac_exeext &&
9902        $as_test_x conftest$ac_exeext; then
9903   ac_cv_type_unsigned_long_long=yes
9904 else
9905   echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9907
9908         ac_cv_type_unsigned_long_long=no
9909 fi
9910
9911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9912       conftest$ac_exeext conftest.$ac_ext
9913 fi
9914 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9915 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9916   if test $ac_cv_type_unsigned_long_long = yes; then
9917
9918 cat >>confdefs.h <<\_ACEOF
9919 #define HAVE_UNSIGNED_LONG_LONG 1
9920 _ACEOF
9921
9922   fi
9923
9924
9925
9926
9927   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9928
9929     test $ac_cv_type_unsigned_long_long = yes \
9930       && ac_type='unsigned long long' \
9931       || ac_type='unsigned long'
9932
9933 cat >>confdefs.h <<_ACEOF
9934 #define uintmax_t $ac_type
9935 _ACEOF
9936
9937   else
9938
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_UINTMAX_T 1
9941 _ACEOF
9942
9943   fi
9944
9945
9946   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9947 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9948 if test "${gt_cv_header_inttypes_h+set}" = set; then
9949   echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951
9952     cat >conftest.$ac_ext <<_ACEOF
9953 /* confdefs.h.  */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h.  */
9958 #include <sys/types.h>
9959 #include <inttypes.h>
9960 int
9961 main ()
9962 {
9963
9964   ;
9965   return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest.$ac_objext
9969 if { (ac_try="$ac_compile"
9970 case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975   (eval "$ac_compile") 2>conftest.er1
9976   ac_status=$?
9977   grep -v '^ *+' conftest.er1 >conftest.err
9978   rm -f conftest.er1
9979   cat conftest.err >&5
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); } && {
9982          test -z "$ac_c_werror_flag" ||
9983          test ! -s conftest.err
9984        } && test -s conftest.$ac_objext; then
9985   gt_cv_header_inttypes_h=yes
9986 else
9987   echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990         gt_cv_header_inttypes_h=no
9991 fi
9992
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994
9995 fi
9996 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9997 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
9998   if test $gt_cv_header_inttypes_h = yes; then
9999
10000 cat >>confdefs.h <<_ACEOF
10001 #define HAVE_INTTYPES_H 1
10002 _ACEOF
10003
10004   fi
10005
10006
10007
10008   if test $gt_cv_header_inttypes_h = yes; then
10009     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10010 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10011 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10012   echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014
10015         cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h.  */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h.  */
10021 #include <inttypes.h>
10022 #ifdef PRId32
10023 char *p = PRId32;
10024 #endif
10025
10026 int
10027 main ()
10028 {
10029
10030   ;
10031   return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext
10035 if { (ac_try="$ac_compile"
10036 case "(($ac_try" in
10037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038   *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041   (eval "$ac_compile") 2>conftest.er1
10042   ac_status=$?
10043   grep -v '^ *+' conftest.er1 >conftest.err
10044   rm -f conftest.er1
10045   cat conftest.err >&5
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); } && {
10048          test -z "$ac_c_werror_flag" ||
10049          test ! -s conftest.err
10050        } && test -s conftest.$ac_objext; then
10051   gt_cv_inttypes_pri_broken=no
10052 else
10053   echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10055
10056         gt_cv_inttypes_pri_broken=yes
10057 fi
10058
10059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10060
10061 fi
10062 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10063 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10064   fi
10065   if test "$gt_cv_inttypes_pri_broken" = yes; then
10066
10067 cat >>confdefs.h <<_ACEOF
10068 #define PRI_MACROS_BROKEN 1
10069 _ACEOF
10070
10071   fi
10072
10073
10074
10075 for ac_header in stdint.h
10076 do
10077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10079   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 fi
10084 ac_res=`eval echo '${'$as_ac_Header'}'`
10085                { echo "$as_me:$LINENO: result: $ac_res" >&5
10086 echo "${ECHO_T}$ac_res" >&6; }
10087 else
10088   # Is the header compilable?
10089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h.  */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h.  */
10097 $ac_includes_default
10098 #include <$ac_header>
10099 _ACEOF
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104   *) ac_try_echo=$ac_try;;
10105 esac
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107   (eval "$ac_compile") 2>conftest.er1
10108   ac_status=$?
10109   grep -v '^ *+' conftest.er1 >conftest.err
10110   rm -f conftest.er1
10111   cat conftest.err >&5
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); } && {
10114          test -z "$ac_c_werror_flag" ||
10115          test ! -s conftest.err
10116        } && test -s conftest.$ac_objext; then
10117   ac_header_compiler=yes
10118 else
10119   echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10121
10122         ac_header_compiler=no
10123 fi
10124
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10127 echo "${ECHO_T}$ac_header_compiler" >&6; }
10128
10129 # Is the header present?
10130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h.  */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h.  */
10138 #include <$ac_header>
10139 _ACEOF
10140 if { (ac_try="$ac_cpp conftest.$ac_ext"
10141 case "(($ac_try" in
10142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143   *) ac_try_echo=$ac_try;;
10144 esac
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10147   ac_status=$?
10148   grep -v '^ *+' conftest.er1 >conftest.err
10149   rm -f conftest.er1
10150   cat conftest.err >&5
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); } >/dev/null && {
10153          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10154          test ! -s conftest.err
10155        }; then
10156   ac_header_preproc=yes
10157 else
10158   echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161   ac_header_preproc=no
10162 fi
10163
10164 rm -f conftest.err conftest.$ac_ext
10165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10166 echo "${ECHO_T}$ac_header_preproc" >&6; }
10167
10168 # So?  What about this header?
10169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10170   yes:no: )
10171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10175     ac_header_preproc=yes
10176     ;;
10177   no:yes:* )
10178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10190
10191     ;;
10192 esac
10193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10196   echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198   eval "$as_ac_Header=\$ac_header_preproc"
10199 fi
10200 ac_res=`eval echo '${'$as_ac_Header'}'`
10201                { echo "$as_me:$LINENO: result: $ac_res" >&5
10202 echo "${ECHO_T}$ac_res" >&6; }
10203
10204 fi
10205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10206   cat >>confdefs.h <<_ACEOF
10207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10208 _ACEOF
10209
10210 fi
10211
10212 done
10213
10214     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10215 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10216   result=
10217   cat >conftest.$ac_ext <<_ACEOF
10218 /* confdefs.h.  */
10219 _ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h.  */
10223
10224 #include <limits.h>
10225 #if HAVE_STDINT_H
10226 #include <stdint.h>
10227 #endif
10228 #ifdef SIZE_MAX
10229 Found it
10230 #endif
10231
10232 _ACEOF
10233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10234   $EGREP "Found it" >/dev/null 2>&1; then
10235   result=yes
10236 fi
10237 rm -f conftest*
10238
10239   if test -z "$result"; then
10240                     if test "$cross_compiling" = yes; then
10241   # Depending upon the size, compute the lo and hi bounds.
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248 #include <stddef.h>
10249 int
10250 main ()
10251 {
10252 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10253 test_array [0] = 0
10254
10255   ;
10256   return 0;
10257 }
10258 _ACEOF
10259 rm -f conftest.$ac_objext
10260 if { (ac_try="$ac_compile"
10261 case "(($ac_try" in
10262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263   *) ac_try_echo=$ac_try;;
10264 esac
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266   (eval "$ac_compile") 2>conftest.er1
10267   ac_status=$?
10268   grep -v '^ *+' conftest.er1 >conftest.err
10269   rm -f conftest.er1
10270   cat conftest.err >&5
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); } && {
10273          test -z "$ac_c_werror_flag" ||
10274          test ! -s conftest.err
10275        } && test -s conftest.$ac_objext; then
10276   ac_lo=0 ac_mid=0
10277   while :; do
10278     cat >conftest.$ac_ext <<_ACEOF
10279 /* confdefs.h.  */
10280 _ACEOF
10281 cat confdefs.h >>conftest.$ac_ext
10282 cat >>conftest.$ac_ext <<_ACEOF
10283 /* end confdefs.h.  */
10284 #include <stddef.h>
10285 int
10286 main ()
10287 {
10288 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10289 test_array [0] = 0
10290
10291   ;
10292   return 0;
10293 }
10294 _ACEOF
10295 rm -f conftest.$ac_objext
10296 if { (ac_try="$ac_compile"
10297 case "(($ac_try" in
10298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299   *) ac_try_echo=$ac_try;;
10300 esac
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302   (eval "$ac_compile") 2>conftest.er1
10303   ac_status=$?
10304   grep -v '^ *+' conftest.er1 >conftest.err
10305   rm -f conftest.er1
10306   cat conftest.err >&5
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); } && {
10309          test -z "$ac_c_werror_flag" ||
10310          test ! -s conftest.err
10311        } && test -s conftest.$ac_objext; then
10312   ac_hi=$ac_mid; break
10313 else
10314   echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10316
10317         ac_lo=`expr $ac_mid + 1`
10318                         if test $ac_lo -le $ac_mid; then
10319                           ac_lo= ac_hi=
10320                           break
10321                         fi
10322                         ac_mid=`expr 2 '*' $ac_mid + 1`
10323 fi
10324
10325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10326   done
10327 else
10328   echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331         cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h.  */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h.  */
10337 #include <stddef.h>
10338 int
10339 main ()
10340 {
10341 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10342 test_array [0] = 0
10343
10344   ;
10345   return 0;
10346 }
10347 _ACEOF
10348 rm -f conftest.$ac_objext
10349 if { (ac_try="$ac_compile"
10350 case "(($ac_try" in
10351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352   *) ac_try_echo=$ac_try;;
10353 esac
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355   (eval "$ac_compile") 2>conftest.er1
10356   ac_status=$?
10357   grep -v '^ *+' conftest.er1 >conftest.err
10358   rm -f conftest.er1
10359   cat conftest.err >&5
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); } && {
10362          test -z "$ac_c_werror_flag" ||
10363          test ! -s conftest.err
10364        } && test -s conftest.$ac_objext; then
10365   ac_hi=-1 ac_mid=-1
10366   while :; do
10367     cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h.  */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h.  */
10373 #include <stddef.h>
10374 int
10375 main ()
10376 {
10377 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10378 test_array [0] = 0
10379
10380   ;
10381   return 0;
10382 }
10383 _ACEOF
10384 rm -f conftest.$ac_objext
10385 if { (ac_try="$ac_compile"
10386 case "(($ac_try" in
10387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388   *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391   (eval "$ac_compile") 2>conftest.er1
10392   ac_status=$?
10393   grep -v '^ *+' conftest.er1 >conftest.err
10394   rm -f conftest.er1
10395   cat conftest.err >&5
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); } && {
10398          test -z "$ac_c_werror_flag" ||
10399          test ! -s conftest.err
10400        } && test -s conftest.$ac_objext; then
10401   ac_lo=$ac_mid; break
10402 else
10403   echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10405
10406         ac_hi=`expr '(' $ac_mid ')' - 1`
10407                         if test $ac_mid -le $ac_hi; then
10408                           ac_lo= ac_hi=
10409                           break
10410                         fi
10411                         ac_mid=`expr 2 '*' $ac_mid`
10412 fi
10413
10414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10415   done
10416 else
10417   echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420         ac_lo= ac_hi=
10421 fi
10422
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10424 fi
10425
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 # Binary search between lo and hi bounds.
10428 while test "x$ac_lo" != "x$ac_hi"; do
10429   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10430   cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h.  */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h.  */
10436 #include <stddef.h>
10437 int
10438 main ()
10439 {
10440 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10441 test_array [0] = 0
10442
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 rm -f conftest.$ac_objext
10448 if { (ac_try="$ac_compile"
10449 case "(($ac_try" in
10450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451   *) ac_try_echo=$ac_try;;
10452 esac
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454   (eval "$ac_compile") 2>conftest.er1
10455   ac_status=$?
10456   grep -v '^ *+' conftest.er1 >conftest.err
10457   rm -f conftest.er1
10458   cat conftest.err >&5
10459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460   (exit $ac_status); } && {
10461          test -z "$ac_c_werror_flag" ||
10462          test ! -s conftest.err
10463        } && test -s conftest.$ac_objext; then
10464   ac_hi=$ac_mid
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469         ac_lo=`expr '(' $ac_mid ')' + 1`
10470 fi
10471
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473 done
10474 case $ac_lo in
10475 ?*) res_hi=$ac_lo;;
10476 '') result=? ;;
10477 esac
10478 else
10479   cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h.  */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h.  */
10485 #include <stddef.h>
10486 static long int longval () { return ~(size_t)0 / 10; }
10487 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10488 #include <stdio.h>
10489 #include <stdlib.h>
10490 int
10491 main ()
10492 {
10493
10494   FILE *f = fopen ("conftest.val", "w");
10495   if (! f)
10496     return 1;
10497   if ((~(size_t)0 / 10) < 0)
10498     {
10499       long int i = longval ();
10500       if (i != (~(size_t)0 / 10))
10501         return 1;
10502       fprintf (f, "%ld\n", i);
10503     }
10504   else
10505     {
10506       unsigned long int i = ulongval ();
10507       if (i != (~(size_t)0 / 10))
10508         return 1;
10509       fprintf (f, "%lu\n", i);
10510     }
10511   return ferror (f) || fclose (f) != 0;
10512
10513   ;
10514   return 0;
10515 }
10516 _ACEOF
10517 rm -f conftest$ac_exeext
10518 if { (ac_try="$ac_link"
10519 case "(($ac_try" in
10520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521   *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524   (eval "$ac_link") 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10528   { (case "(($ac_try" in
10529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530   *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533   (eval "$ac_try") 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; }; then
10537   res_hi=`cat conftest.val`
10538 else
10539   echo "$as_me: program exited with status $ac_status" >&5
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10542
10543 ( exit $ac_status )
10544 result=?
10545 fi
10546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10547 fi
10548 rm -f conftest.val
10549
10550     if test "$cross_compiling" = yes; then
10551   # Depending upon the size, compute the lo and hi bounds.
10552 cat >conftest.$ac_ext <<_ACEOF
10553 /* confdefs.h.  */
10554 _ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h.  */
10558 #include <stddef.h>
10559 int
10560 main ()
10561 {
10562 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10563 test_array [0] = 0
10564
10565   ;
10566   return 0;
10567 }
10568 _ACEOF
10569 rm -f conftest.$ac_objext
10570 if { (ac_try="$ac_compile"
10571 case "(($ac_try" in
10572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573   *) ac_try_echo=$ac_try;;
10574 esac
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576   (eval "$ac_compile") 2>conftest.er1
10577   ac_status=$?
10578   grep -v '^ *+' conftest.er1 >conftest.err
10579   rm -f conftest.er1
10580   cat conftest.err >&5
10581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582   (exit $ac_status); } && {
10583          test -z "$ac_c_werror_flag" ||
10584          test ! -s conftest.err
10585        } && test -s conftest.$ac_objext; then
10586   ac_lo=0 ac_mid=0
10587   while :; do
10588     cat >conftest.$ac_ext <<_ACEOF
10589 /* confdefs.h.  */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h.  */
10594 #include <stddef.h>
10595 int
10596 main ()
10597 {
10598 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10599 test_array [0] = 0
10600
10601   ;
10602   return 0;
10603 }
10604 _ACEOF
10605 rm -f conftest.$ac_objext
10606 if { (ac_try="$ac_compile"
10607 case "(($ac_try" in
10608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609   *) ac_try_echo=$ac_try;;
10610 esac
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612   (eval "$ac_compile") 2>conftest.er1
10613   ac_status=$?
10614   grep -v '^ *+' conftest.er1 >conftest.err
10615   rm -f conftest.er1
10616   cat conftest.err >&5
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); } && {
10619          test -z "$ac_c_werror_flag" ||
10620          test ! -s conftest.err
10621        } && test -s conftest.$ac_objext; then
10622   ac_hi=$ac_mid; break
10623 else
10624   echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10626
10627         ac_lo=`expr $ac_mid + 1`
10628                         if test $ac_lo -le $ac_mid; then
10629                           ac_lo= ac_hi=
10630                           break
10631                         fi
10632                         ac_mid=`expr 2 '*' $ac_mid + 1`
10633 fi
10634
10635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636   done
10637 else
10638   echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10640
10641         cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h.  */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h.  */
10647 #include <stddef.h>
10648 int
10649 main ()
10650 {
10651 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10652 test_array [0] = 0
10653
10654   ;
10655   return 0;
10656 }
10657 _ACEOF
10658 rm -f conftest.$ac_objext
10659 if { (ac_try="$ac_compile"
10660 case "(($ac_try" in
10661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662   *) ac_try_echo=$ac_try;;
10663 esac
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665   (eval "$ac_compile") 2>conftest.er1
10666   ac_status=$?
10667   grep -v '^ *+' conftest.er1 >conftest.err
10668   rm -f conftest.er1
10669   cat conftest.err >&5
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); } && {
10672          test -z "$ac_c_werror_flag" ||
10673          test ! -s conftest.err
10674        } && test -s conftest.$ac_objext; then
10675   ac_hi=-1 ac_mid=-1
10676   while :; do
10677     cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h.  */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h.  */
10683 #include <stddef.h>
10684 int
10685 main ()
10686 {
10687 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10688 test_array [0] = 0
10689
10690   ;
10691   return 0;
10692 }
10693 _ACEOF
10694 rm -f conftest.$ac_objext
10695 if { (ac_try="$ac_compile"
10696 case "(($ac_try" in
10697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698   *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701   (eval "$ac_compile") 2>conftest.er1
10702   ac_status=$?
10703   grep -v '^ *+' conftest.er1 >conftest.err
10704   rm -f conftest.er1
10705   cat conftest.err >&5
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } && {
10708          test -z "$ac_c_werror_flag" ||
10709          test ! -s conftest.err
10710        } && test -s conftest.$ac_objext; then
10711   ac_lo=$ac_mid; break
10712 else
10713   echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716         ac_hi=`expr '(' $ac_mid ')' - 1`
10717                         if test $ac_mid -le $ac_hi; then
10718                           ac_lo= ac_hi=
10719                           break
10720                         fi
10721                         ac_mid=`expr 2 '*' $ac_mid`
10722 fi
10723
10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725   done
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730         ac_lo= ac_hi=
10731 fi
10732
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734 fi
10735
10736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10737 # Binary search between lo and hi bounds.
10738 while test "x$ac_lo" != "x$ac_hi"; do
10739   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10740   cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h.  */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h.  */
10746 #include <stddef.h>
10747 int
10748 main ()
10749 {
10750 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10751 test_array [0] = 0
10752
10753   ;
10754   return 0;
10755 }
10756 _ACEOF
10757 rm -f conftest.$ac_objext
10758 if { (ac_try="$ac_compile"
10759 case "(($ac_try" in
10760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761   *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764   (eval "$ac_compile") 2>conftest.er1
10765   ac_status=$?
10766   grep -v '^ *+' conftest.er1 >conftest.err
10767   rm -f conftest.er1
10768   cat conftest.err >&5
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); } && {
10771          test -z "$ac_c_werror_flag" ||
10772          test ! -s conftest.err
10773        } && test -s conftest.$ac_objext; then
10774   ac_hi=$ac_mid
10775 else
10776   echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779         ac_lo=`expr '(' $ac_mid ')' + 1`
10780 fi
10781
10782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10783 done
10784 case $ac_lo in
10785 ?*) res_lo=$ac_lo;;
10786 '') result=? ;;
10787 esac
10788 else
10789   cat >conftest.$ac_ext <<_ACEOF
10790 /* confdefs.h.  */
10791 _ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h.  */
10795 #include <stddef.h>
10796 static long int longval () { return ~(size_t)0 % 10; }
10797 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10798 #include <stdio.h>
10799 #include <stdlib.h>
10800 int
10801 main ()
10802 {
10803
10804   FILE *f = fopen ("conftest.val", "w");
10805   if (! f)
10806     return 1;
10807   if ((~(size_t)0 % 10) < 0)
10808     {
10809       long int i = longval ();
10810       if (i != (~(size_t)0 % 10))
10811         return 1;
10812       fprintf (f, "%ld\n", i);
10813     }
10814   else
10815     {
10816       unsigned long int i = ulongval ();
10817       if (i != (~(size_t)0 % 10))
10818         return 1;
10819       fprintf (f, "%lu\n", i);
10820     }
10821   return ferror (f) || fclose (f) != 0;
10822
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 rm -f conftest$ac_exeext
10828 if { (ac_try="$ac_link"
10829 case "(($ac_try" in
10830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831   *) ac_try_echo=$ac_try;;
10832 esac
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834   (eval "$ac_link") 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10838   { (case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_try") 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; }; then
10847   res_lo=`cat conftest.val`
10848 else
10849   echo "$as_me: program exited with status $ac_status" >&5
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853 ( exit $ac_status )
10854 result=?
10855 fi
10856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10857 fi
10858 rm -f conftest.val
10859
10860     if test "$cross_compiling" = yes; then
10861   # Depending upon the size, compute the lo and hi bounds.
10862 cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h.  */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h.  */
10868 #include <stddef.h>
10869 int
10870 main ()
10871 {
10872 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10873 test_array [0] = 0
10874
10875   ;
10876   return 0;
10877 }
10878 _ACEOF
10879 rm -f conftest.$ac_objext
10880 if { (ac_try="$ac_compile"
10881 case "(($ac_try" in
10882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883   *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886   (eval "$ac_compile") 2>conftest.er1
10887   ac_status=$?
10888   grep -v '^ *+' conftest.er1 >conftest.err
10889   rm -f conftest.er1
10890   cat conftest.err >&5
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); } && {
10893          test -z "$ac_c_werror_flag" ||
10894          test ! -s conftest.err
10895        } && test -s conftest.$ac_objext; then
10896   ac_lo=0 ac_mid=0
10897   while :; do
10898     cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h.  */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h.  */
10904 #include <stddef.h>
10905 int
10906 main ()
10907 {
10908 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10909 test_array [0] = 0
10910
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 rm -f conftest.$ac_objext
10916 if { (ac_try="$ac_compile"
10917 case "(($ac_try" in
10918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919   *) ac_try_echo=$ac_try;;
10920 esac
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922   (eval "$ac_compile") 2>conftest.er1
10923   ac_status=$?
10924   grep -v '^ *+' conftest.er1 >conftest.err
10925   rm -f conftest.er1
10926   cat conftest.err >&5
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); } && {
10929          test -z "$ac_c_werror_flag" ||
10930          test ! -s conftest.err
10931        } && test -s conftest.$ac_objext; then
10932   ac_hi=$ac_mid; break
10933 else
10934   echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10936
10937         ac_lo=`expr $ac_mid + 1`
10938                         if test $ac_lo -le $ac_mid; then
10939                           ac_lo= ac_hi=
10940                           break
10941                         fi
10942                         ac_mid=`expr 2 '*' $ac_mid + 1`
10943 fi
10944
10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10946   done
10947 else
10948   echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951         cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h.  */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h.  */
10957 #include <stddef.h>
10958 int
10959 main ()
10960 {
10961 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10962 test_array [0] = 0
10963
10964   ;
10965   return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext
10969 if { (ac_try="$ac_compile"
10970 case "(($ac_try" in
10971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972   *) ac_try_echo=$ac_try;;
10973 esac
10974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975   (eval "$ac_compile") 2>conftest.er1
10976   ac_status=$?
10977   grep -v '^ *+' conftest.er1 >conftest.err
10978   rm -f conftest.er1
10979   cat conftest.err >&5
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); } && {
10982          test -z "$ac_c_werror_flag" ||
10983          test ! -s conftest.err
10984        } && test -s conftest.$ac_objext; then
10985   ac_hi=-1 ac_mid=-1
10986   while :; do
10987     cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h.  */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h.  */
10993 #include <stddef.h>
10994 int
10995 main ()
10996 {
10997 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10998 test_array [0] = 0
10999
11000   ;
11001   return 0;
11002 }
11003 _ACEOF
11004 rm -f conftest.$ac_objext
11005 if { (ac_try="$ac_compile"
11006 case "(($ac_try" in
11007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008   *) ac_try_echo=$ac_try;;
11009 esac
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011   (eval "$ac_compile") 2>conftest.er1
11012   ac_status=$?
11013   grep -v '^ *+' conftest.er1 >conftest.err
11014   rm -f conftest.er1
11015   cat conftest.err >&5
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); } && {
11018          test -z "$ac_c_werror_flag" ||
11019          test ! -s conftest.err
11020        } && test -s conftest.$ac_objext; then
11021   ac_lo=$ac_mid; break
11022 else
11023   echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11025
11026         ac_hi=`expr '(' $ac_mid ')' - 1`
11027                         if test $ac_mid -le $ac_hi; then
11028                           ac_lo= ac_hi=
11029                           break
11030                         fi
11031                         ac_mid=`expr 2 '*' $ac_mid`
11032 fi
11033
11034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11035   done
11036 else
11037   echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040         ac_lo= ac_hi=
11041 fi
11042
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 fi
11045
11046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11047 # Binary search between lo and hi bounds.
11048 while test "x$ac_lo" != "x$ac_hi"; do
11049   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11050   cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h.  */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h.  */
11056 #include <stddef.h>
11057 int
11058 main ()
11059 {
11060 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11061 test_array [0] = 0
11062
11063   ;
11064   return 0;
11065 }
11066 _ACEOF
11067 rm -f conftest.$ac_objext
11068 if { (ac_try="$ac_compile"
11069 case "(($ac_try" in
11070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071   *) ac_try_echo=$ac_try;;
11072 esac
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074   (eval "$ac_compile") 2>conftest.er1
11075   ac_status=$?
11076   grep -v '^ *+' conftest.er1 >conftest.err
11077   rm -f conftest.er1
11078   cat conftest.err >&5
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); } && {
11081          test -z "$ac_c_werror_flag" ||
11082          test ! -s conftest.err
11083        } && test -s conftest.$ac_objext; then
11084   ac_hi=$ac_mid
11085 else
11086   echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089         ac_lo=`expr '(' $ac_mid ')' + 1`
11090 fi
11091
11092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11093 done
11094 case $ac_lo in
11095 ?*) fits_in_uint=$ac_lo;;
11096 '') result=? ;;
11097 esac
11098 else
11099   cat >conftest.$ac_ext <<_ACEOF
11100 /* confdefs.h.  */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h.  */
11105 #include <stddef.h>
11106 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11107 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11108 #include <stdio.h>
11109 #include <stdlib.h>
11110 int
11111 main ()
11112 {
11113
11114   FILE *f = fopen ("conftest.val", "w");
11115   if (! f)
11116     return 1;
11117   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11118     {
11119       long int i = longval ();
11120       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11121         return 1;
11122       fprintf (f, "%ld\n", i);
11123     }
11124   else
11125     {
11126       unsigned long int i = ulongval ();
11127       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11128         return 1;
11129       fprintf (f, "%lu\n", i);
11130     }
11131   return ferror (f) || fclose (f) != 0;
11132
11133   ;
11134   return 0;
11135 }
11136 _ACEOF
11137 rm -f conftest$ac_exeext
11138 if { (ac_try="$ac_link"
11139 case "(($ac_try" in
11140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141   *) ac_try_echo=$ac_try;;
11142 esac
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144   (eval "$ac_link") 2>&5
11145   ac_status=$?
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11148   { (case "(($ac_try" in
11149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150   *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153   (eval "$ac_try") 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); }; }; then
11157   fits_in_uint=`cat conftest.val`
11158 else
11159   echo "$as_me: program exited with status $ac_status" >&5
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11162
11163 ( exit $ac_status )
11164 result=?
11165 fi
11166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11167 fi
11168 rm -f conftest.val
11169
11170     if test "$fits_in_uint" = 1; then
11171                   cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h.  */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h.  */
11177 #include <stddef.h>
11178         extern size_t foo;
11179         extern unsigned long foo;
11180
11181 int
11182 main ()
11183 {
11184
11185   ;
11186   return 0;
11187 }
11188 _ACEOF
11189 rm -f conftest.$ac_objext
11190 if { (ac_try="$ac_compile"
11191 case "(($ac_try" in
11192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193   *) ac_try_echo=$ac_try;;
11194 esac
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196   (eval "$ac_compile") 2>conftest.er1
11197   ac_status=$?
11198   grep -v '^ *+' conftest.er1 >conftest.err
11199   rm -f conftest.er1
11200   cat conftest.err >&5
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } && {
11203          test -z "$ac_c_werror_flag" ||
11204          test ! -s conftest.err
11205        } && test -s conftest.$ac_objext; then
11206   fits_in_uint=0
11207 else
11208   echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211
11212 fi
11213
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215     fi
11216     if test -z "$result"; then
11217       if test "$fits_in_uint" = 1; then
11218         result="$res_hi$res_lo"U
11219       else
11220         result="$res_hi$res_lo"UL
11221       fi
11222     else
11223             result='~(size_t)0'
11224     fi
11225   fi
11226   { echo "$as_me:$LINENO: result: $result" >&5
11227 echo "${ECHO_T}$result" >&6; }
11228   if test "$result" != yes; then
11229
11230 cat >>confdefs.h <<_ACEOF
11231 #define SIZE_MAX $result
11232 _ACEOF
11233
11234   fi
11235
11236
11237
11238
11239
11240 for ac_header in stdint.h
11241 do
11242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11244   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11247   echo $ECHO_N "(cached) $ECHO_C" >&6
11248 fi
11249 ac_res=`eval echo '${'$as_ac_Header'}'`
11250                { echo "$as_me:$LINENO: result: $ac_res" >&5
11251 echo "${ECHO_T}$ac_res" >&6; }
11252 else
11253   # Is the header compilable?
11254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11256 cat >conftest.$ac_ext <<_ACEOF
11257 /* confdefs.h.  */
11258 _ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h.  */
11262 $ac_includes_default
11263 #include <$ac_header>
11264 _ACEOF
11265 rm -f conftest.$ac_objext
11266 if { (ac_try="$ac_compile"
11267 case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_compile") 2>conftest.er1
11273   ac_status=$?
11274   grep -v '^ *+' conftest.er1 >conftest.err
11275   rm -f conftest.er1
11276   cat conftest.err >&5
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); } && {
11279          test -z "$ac_c_werror_flag" ||
11280          test ! -s conftest.err
11281        } && test -s conftest.$ac_objext; then
11282   ac_header_compiler=yes
11283 else
11284   echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11286
11287         ac_header_compiler=no
11288 fi
11289
11290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11292 echo "${ECHO_T}$ac_header_compiler" >&6; }
11293
11294 # Is the header present?
11295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11297 cat >conftest.$ac_ext <<_ACEOF
11298 /* confdefs.h.  */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h.  */
11303 #include <$ac_header>
11304 _ACEOF
11305 if { (ac_try="$ac_cpp conftest.$ac_ext"
11306 case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11312   ac_status=$?
11313   grep -v '^ *+' conftest.er1 >conftest.err
11314   rm -f conftest.er1
11315   cat conftest.err >&5
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); } >/dev/null && {
11318          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11319          test ! -s conftest.err
11320        }; then
11321   ac_header_preproc=yes
11322 else
11323   echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326   ac_header_preproc=no
11327 fi
11328
11329 rm -f conftest.err conftest.$ac_ext
11330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11331 echo "${ECHO_T}$ac_header_preproc" >&6; }
11332
11333 # So?  What about this header?
11334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11335   yes:no: )
11336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11340     ac_header_preproc=yes
11341     ;;
11342   no:yes:* )
11343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11355
11356     ;;
11357 esac
11358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11361   echo $ECHO_N "(cached) $ECHO_C" >&6
11362 else
11363   eval "$as_ac_Header=\$ac_header_preproc"
11364 fi
11365 ac_res=`eval echo '${'$as_ac_Header'}'`
11366                { echo "$as_me:$LINENO: result: $ac_res" >&5
11367 echo "${ECHO_T}$ac_res" >&6; }
11368
11369 fi
11370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11371   cat >>confdefs.h <<_ACEOF
11372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11373 _ACEOF
11374
11375 fi
11376
11377 done
11378
11379
11380
11381
11382
11383
11384
11385
11386   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11387 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11388 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11389   echo $ECHO_N "(cached) $ECHO_C" >&6
11390 else
11391   cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h.  */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h.  */
11397 $ac_includes_default
11398 typedef ptrdiff_t ac__type_new_;
11399 int
11400 main ()
11401 {
11402 if ((ac__type_new_ *) 0)
11403   return 0;
11404 if (sizeof (ac__type_new_))
11405   return 0;
11406   ;
11407   return 0;
11408 }
11409 _ACEOF
11410 rm -f conftest.$ac_objext
11411 if { (ac_try="$ac_compile"
11412 case "(($ac_try" in
11413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414   *) ac_try_echo=$ac_try;;
11415 esac
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417   (eval "$ac_compile") 2>conftest.er1
11418   ac_status=$?
11419   grep -v '^ *+' conftest.er1 >conftest.err
11420   rm -f conftest.er1
11421   cat conftest.err >&5
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); } && {
11424          test -z "$ac_c_werror_flag" ||
11425          test ! -s conftest.err
11426        } && test -s conftest.$ac_objext; then
11427   ac_cv_type_ptrdiff_t=yes
11428 else
11429   echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432         ac_cv_type_ptrdiff_t=no
11433 fi
11434
11435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11436 fi
11437 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11438 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11439 if test $ac_cv_type_ptrdiff_t = yes; then
11440   :
11441 else
11442
11443 cat >>confdefs.h <<\_ACEOF
11444 #define ptrdiff_t long
11445 _ACEOF
11446
11447
11448 fi
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11461 stdlib.h string.h unistd.h sys/param.h
11462 do
11463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11465   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468   echo $ECHO_N "(cached) $ECHO_C" >&6
11469 fi
11470 ac_res=`eval echo '${'$as_ac_Header'}'`
11471                { echo "$as_me:$LINENO: result: $ac_res" >&5
11472 echo "${ECHO_T}$ac_res" >&6; }
11473 else
11474   # Is the header compilable?
11475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h.  */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h.  */
11483 $ac_includes_default
11484 #include <$ac_header>
11485 _ACEOF
11486 rm -f conftest.$ac_objext
11487 if { (ac_try="$ac_compile"
11488 case "(($ac_try" in
11489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490   *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493   (eval "$ac_compile") 2>conftest.er1
11494   ac_status=$?
11495   grep -v '^ *+' conftest.er1 >conftest.err
11496   rm -f conftest.er1
11497   cat conftest.err >&5
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); } && {
11500          test -z "$ac_c_werror_flag" ||
11501          test ! -s conftest.err
11502        } && test -s conftest.$ac_objext; then
11503   ac_header_compiler=yes
11504 else
11505   echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11507
11508         ac_header_compiler=no
11509 fi
11510
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11513 echo "${ECHO_T}$ac_header_compiler" >&6; }
11514
11515 # Is the header present?
11516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h.  */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h.  */
11524 #include <$ac_header>
11525 _ACEOF
11526 if { (ac_try="$ac_cpp conftest.$ac_ext"
11527 case "(($ac_try" in
11528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529   *) ac_try_echo=$ac_try;;
11530 esac
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11533   ac_status=$?
11534   grep -v '^ *+' conftest.er1 >conftest.err
11535   rm -f conftest.er1
11536   cat conftest.err >&5
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); } >/dev/null && {
11539          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11540          test ! -s conftest.err
11541        }; then
11542   ac_header_preproc=yes
11543 else
11544   echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547   ac_header_preproc=no
11548 fi
11549
11550 rm -f conftest.err conftest.$ac_ext
11551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11552 echo "${ECHO_T}$ac_header_preproc" >&6; }
11553
11554 # So?  What about this header?
11555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11556   yes:no: )
11557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11561     ac_header_preproc=yes
11562     ;;
11563   no:yes:* )
11564     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11566     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11567 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11568     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11570     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11571 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11574     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11576
11577     ;;
11578 esac
11579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11582   echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584   eval "$as_ac_Header=\$ac_header_preproc"
11585 fi
11586 ac_res=`eval echo '${'$as_ac_Header'}'`
11587                { echo "$as_me:$LINENO: result: $ac_res" >&5
11588 echo "${ECHO_T}$ac_res" >&6; }
11589
11590 fi
11591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11592   cat >>confdefs.h <<_ACEOF
11593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11594 _ACEOF
11595
11596 fi
11597
11598 done
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11624 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11625 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11626 __fsetlocking
11627 do
11628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11632   echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634   cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h.  */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h.  */
11640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11642 #define $ac_func innocuous_$ac_func
11643
11644 /* System header to define __stub macros and hopefully few prototypes,
11645     which can conflict with char $ac_func (); below.
11646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11647     <limits.h> exists even on freestanding compilers.  */
11648
11649 #ifdef __STDC__
11650 # include <limits.h>
11651 #else
11652 # include <assert.h>
11653 #endif
11654
11655 #undef $ac_func
11656
11657 /* Override any GCC internal prototype to avoid an error.
11658    Use char because int might match the return type of a GCC
11659    builtin and then its argument prototype would still apply.  */
11660 #ifdef __cplusplus
11661 extern "C"
11662 #endif
11663 char $ac_func ();
11664 /* The GNU C library defines this for functions which it implements
11665     to always fail with ENOSYS.  Some functions are actually named
11666     something starting with __ and the normal name is an alias.  */
11667 #if defined __stub_$ac_func || defined __stub___$ac_func
11668 choke me
11669 #endif
11670
11671 int
11672 main ()
11673 {
11674 return $ac_func ();
11675   ;
11676   return 0;
11677 }
11678 _ACEOF
11679 rm -f conftest.$ac_objext conftest$ac_exeext
11680 if { (ac_try="$ac_link"
11681 case "(($ac_try" in
11682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683   *) ac_try_echo=$ac_try;;
11684 esac
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686   (eval "$ac_link") 2>conftest.er1
11687   ac_status=$?
11688   grep -v '^ *+' conftest.er1 >conftest.err
11689   rm -f conftest.er1
11690   cat conftest.err >&5
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); } && {
11693          test -z "$ac_c_werror_flag" ||
11694          test ! -s conftest.err
11695        } && test -s conftest$ac_exeext &&
11696        $as_test_x conftest$ac_exeext; then
11697   eval "$as_ac_var=yes"
11698 else
11699   echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702         eval "$as_ac_var=no"
11703 fi
11704
11705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11706       conftest$ac_exeext conftest.$ac_ext
11707 fi
11708 ac_res=`eval echo '${'$as_ac_var'}'`
11709                { echo "$as_me:$LINENO: result: $ac_res" >&5
11710 echo "${ECHO_T}$ac_res" >&6; }
11711 if test `eval echo '${'$as_ac_var'}'` = yes; then
11712   cat >>confdefs.h <<_ACEOF
11713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11714 _ACEOF
11715
11716 fi
11717 done
11718
11719
11720
11721   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11722 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11723 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11724   echo $ECHO_N "(cached) $ECHO_C" >&6
11725 else
11726   cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h.  */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h.  */
11732 #include <stdio.h>
11733 int
11734 main ()
11735 {
11736
11737 #ifndef _snprintf
11738   char *p = (char *) _snprintf;
11739 #endif
11740
11741   ;
11742   return 0;
11743 }
11744 _ACEOF
11745 rm -f conftest.$ac_objext
11746 if { (ac_try="$ac_compile"
11747 case "(($ac_try" in
11748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749   *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752   (eval "$ac_compile") 2>conftest.er1
11753   ac_status=$?
11754   grep -v '^ *+' conftest.er1 >conftest.err
11755   rm -f conftest.er1
11756   cat conftest.err >&5
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); } && {
11759          test -z "$ac_c_werror_flag" ||
11760          test ! -s conftest.err
11761        } && test -s conftest.$ac_objext; then
11762   ac_cv_have_decl__snprintf=yes
11763 else
11764   echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11766
11767         ac_cv_have_decl__snprintf=no
11768 fi
11769
11770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11771 fi
11772 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11773 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11774   if test $ac_cv_have_decl__snprintf = yes; then
11775     gt_value=1
11776   else
11777     gt_value=0
11778   fi
11779
11780 cat >>confdefs.h <<_ACEOF
11781 #define HAVE_DECL__SNPRINTF $gt_value
11782 _ACEOF
11783
11784
11785
11786   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11787 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11788 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11789   echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791   cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h.  */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h.  */
11797 #include <stdio.h>
11798 int
11799 main ()
11800 {
11801
11802 #ifndef _snwprintf
11803   char *p = (char *) _snwprintf;
11804 #endif
11805
11806   ;
11807   return 0;
11808 }
11809 _ACEOF
11810 rm -f conftest.$ac_objext
11811 if { (ac_try="$ac_compile"
11812 case "(($ac_try" in
11813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814   *) ac_try_echo=$ac_try;;
11815 esac
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817   (eval "$ac_compile") 2>conftest.er1
11818   ac_status=$?
11819   grep -v '^ *+' conftest.er1 >conftest.err
11820   rm -f conftest.er1
11821   cat conftest.err >&5
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); } && {
11824          test -z "$ac_c_werror_flag" ||
11825          test ! -s conftest.err
11826        } && test -s conftest.$ac_objext; then
11827   ac_cv_have_decl__snwprintf=yes
11828 else
11829   echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832         ac_cv_have_decl__snwprintf=no
11833 fi
11834
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 fi
11837 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11838 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11839   if test $ac_cv_have_decl__snwprintf = yes; then
11840     gt_value=1
11841   else
11842     gt_value=0
11843   fi
11844
11845 cat >>confdefs.h <<_ACEOF
11846 #define HAVE_DECL__SNWPRINTF $gt_value
11847 _ACEOF
11848
11849
11850
11851
11852   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11853 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11854 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11855   echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857   cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h.  */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h.  */
11863 #include <stdio.h>
11864 int
11865 main ()
11866 {
11867
11868 #ifndef feof_unlocked
11869   char *p = (char *) feof_unlocked;
11870 #endif
11871
11872   ;
11873   return 0;
11874 }
11875 _ACEOF
11876 rm -f conftest.$ac_objext
11877 if { (ac_try="$ac_compile"
11878 case "(($ac_try" in
11879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880   *) ac_try_echo=$ac_try;;
11881 esac
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883   (eval "$ac_compile") 2>conftest.er1
11884   ac_status=$?
11885   grep -v '^ *+' conftest.er1 >conftest.err
11886   rm -f conftest.er1
11887   cat conftest.err >&5
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); } && {
11890          test -z "$ac_c_werror_flag" ||
11891          test ! -s conftest.err
11892        } && test -s conftest.$ac_objext; then
11893   ac_cv_have_decl_feof_unlocked=yes
11894 else
11895   echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11897
11898         ac_cv_have_decl_feof_unlocked=no
11899 fi
11900
11901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902 fi
11903 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11904 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11905   if test $ac_cv_have_decl_feof_unlocked = yes; then
11906     gt_value=1
11907   else
11908     gt_value=0
11909   fi
11910
11911 cat >>confdefs.h <<_ACEOF
11912 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11913 _ACEOF
11914
11915
11916
11917   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11918 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11919 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11920   echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922   cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h.  */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h.  */
11928 #include <stdio.h>
11929 int
11930 main ()
11931 {
11932
11933 #ifndef fgets_unlocked
11934   char *p = (char *) fgets_unlocked;
11935 #endif
11936
11937   ;
11938   return 0;
11939 }
11940 _ACEOF
11941 rm -f conftest.$ac_objext
11942 if { (ac_try="$ac_compile"
11943 case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948   (eval "$ac_compile") 2>conftest.er1
11949   ac_status=$?
11950   grep -v '^ *+' conftest.er1 >conftest.err
11951   rm -f conftest.er1
11952   cat conftest.err >&5
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); } && {
11955          test -z "$ac_c_werror_flag" ||
11956          test ! -s conftest.err
11957        } && test -s conftest.$ac_objext; then
11958   ac_cv_have_decl_fgets_unlocked=yes
11959 else
11960   echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11962
11963         ac_cv_have_decl_fgets_unlocked=no
11964 fi
11965
11966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 fi
11968 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11969 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11970   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11971     gt_value=1
11972   else
11973     gt_value=0
11974   fi
11975
11976 cat >>confdefs.h <<_ACEOF
11977 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11978 _ACEOF
11979
11980
11981
11982   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11983 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11984 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h.  */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h.  */
11993 #include <stdio.h>
11994 int
11995 main ()
11996 {
11997
11998 #ifndef getc_unlocked
11999   char *p = (char *) getc_unlocked;
12000 #endif
12001
12002   ;
12003   return 0;
12004 }
12005 _ACEOF
12006 rm -f conftest.$ac_objext
12007 if { (ac_try="$ac_compile"
12008 case "(($ac_try" in
12009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010   *) ac_try_echo=$ac_try;;
12011 esac
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013   (eval "$ac_compile") 2>conftest.er1
12014   ac_status=$?
12015   grep -v '^ *+' conftest.er1 >conftest.err
12016   rm -f conftest.er1
12017   cat conftest.err >&5
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); } && {
12020          test -z "$ac_c_werror_flag" ||
12021          test ! -s conftest.err
12022        } && test -s conftest.$ac_objext; then
12023   ac_cv_have_decl_getc_unlocked=yes
12024 else
12025   echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028         ac_cv_have_decl_getc_unlocked=no
12029 fi
12030
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12032 fi
12033 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12034 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12035   if test $ac_cv_have_decl_getc_unlocked = yes; then
12036     gt_value=1
12037   else
12038     gt_value=0
12039   fi
12040
12041 cat >>confdefs.h <<_ACEOF
12042 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12043 _ACEOF
12044
12045
12046
12047   case $gt_cv_func_printf_posix in
12048     *yes) HAVE_POSIX_PRINTF=1 ;;
12049     *) HAVE_POSIX_PRINTF=0 ;;
12050   esac
12051
12052   if test "$ac_cv_func_asprintf" = yes; then
12053     HAVE_ASPRINTF=1
12054   else
12055     HAVE_ASPRINTF=0
12056   fi
12057
12058   if test "$ac_cv_func_snprintf" = yes; then
12059     HAVE_SNPRINTF=1
12060   else
12061     HAVE_SNPRINTF=0
12062   fi
12063
12064   if test "$ac_cv_func_wprintf" = yes; then
12065     HAVE_WPRINTF=1
12066   else
12067     HAVE_WPRINTF=0
12068   fi
12069
12070
12071
12072
12073
12074
12075
12076           am_save_CPPFLAGS="$CPPFLAGS"
12077
12078   for element in $INCICONV; do
12079     haveit=
12080     for x in $CPPFLAGS; do
12081
12082   acl_save_prefix="$prefix"
12083   prefix="$acl_final_prefix"
12084   acl_save_exec_prefix="$exec_prefix"
12085   exec_prefix="$acl_final_exec_prefix"
12086   eval x=\"$x\"
12087   exec_prefix="$acl_save_exec_prefix"
12088   prefix="$acl_save_prefix"
12089
12090       if test "X$x" = "X$element"; then
12091         haveit=yes
12092         break
12093       fi
12094     done
12095     if test -z "$haveit"; then
12096       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12097     fi
12098   done
12099
12100
12101   { echo "$as_me:$LINENO: checking for iconv" >&5
12102 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12103 if test "${am_cv_func_iconv+set}" = set; then
12104   echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106
12107     am_cv_func_iconv="no, consider installing GNU libiconv"
12108     am_cv_lib_iconv=no
12109     cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h.  */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h.  */
12115 #include <stdlib.h>
12116 #include <iconv.h>
12117 int
12118 main ()
12119 {
12120 iconv_t cd = iconv_open("","");
12121        iconv(cd,NULL,NULL,NULL,NULL);
12122        iconv_close(cd);
12123   ;
12124   return 0;
12125 }
12126 _ACEOF
12127 rm -f conftest.$ac_objext conftest$ac_exeext
12128 if { (ac_try="$ac_link"
12129 case "(($ac_try" in
12130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131   *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134   (eval "$ac_link") 2>conftest.er1
12135   ac_status=$?
12136   grep -v '^ *+' conftest.er1 >conftest.err
12137   rm -f conftest.er1
12138   cat conftest.err >&5
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); } && {
12141          test -z "$ac_c_werror_flag" ||
12142          test ! -s conftest.err
12143        } && test -s conftest$ac_exeext &&
12144        $as_test_x conftest$ac_exeext; then
12145   am_cv_func_iconv=yes
12146 else
12147   echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12149
12150
12151 fi
12152
12153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12154       conftest$ac_exeext conftest.$ac_ext
12155     if test "$am_cv_func_iconv" != yes; then
12156       am_save_LIBS="$LIBS"
12157       LIBS="$LIBS $LIBICONV"
12158       cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h.  */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h.  */
12164 #include <stdlib.h>
12165 #include <iconv.h>
12166 int
12167 main ()
12168 {
12169 iconv_t cd = iconv_open("","");
12170          iconv(cd,NULL,NULL,NULL,NULL);
12171          iconv_close(cd);
12172   ;
12173   return 0;
12174 }
12175 _ACEOF
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (ac_try="$ac_link"
12178 case "(($ac_try" in
12179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180   *) ac_try_echo=$ac_try;;
12181 esac
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183   (eval "$ac_link") 2>conftest.er1
12184   ac_status=$?
12185   grep -v '^ *+' conftest.er1 >conftest.err
12186   rm -f conftest.er1
12187   cat conftest.err >&5
12188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189   (exit $ac_status); } && {
12190          test -z "$ac_c_werror_flag" ||
12191          test ! -s conftest.err
12192        } && test -s conftest$ac_exeext &&
12193        $as_test_x conftest$ac_exeext; then
12194   am_cv_lib_iconv=yes
12195         am_cv_func_iconv=yes
12196 else
12197   echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12199
12200
12201 fi
12202
12203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12204       conftest$ac_exeext conftest.$ac_ext
12205       LIBS="$am_save_LIBS"
12206     fi
12207
12208 fi
12209 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12210 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12211   if test "$am_cv_func_iconv" = yes; then
12212
12213 cat >>confdefs.h <<\_ACEOF
12214 #define HAVE_ICONV 1
12215 _ACEOF
12216
12217   fi
12218   if test "$am_cv_lib_iconv" = yes; then
12219     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12220 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12221     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12222 echo "${ECHO_T}$LIBICONV" >&6; }
12223   else
12224             CPPFLAGS="$am_save_CPPFLAGS"
12225     LIBICONV=
12226     LTLIBICONV=
12227   fi
12228
12229
12230
12231   if test "$am_cv_func_iconv" = yes; then
12232     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12233 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12234     if test "${am_cv_proto_iconv+set}" = set; then
12235   echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237
12238       cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h.  */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h.  */
12244
12245 #include <stdlib.h>
12246 #include <iconv.h>
12247 extern
12248 #ifdef __cplusplus
12249 "C"
12250 #endif
12251 #if defined(__STDC__) || defined(__cplusplus)
12252 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12253 #else
12254 size_t iconv();
12255 #endif
12256
12257 int
12258 main ()
12259 {
12260
12261   ;
12262   return 0;
12263 }
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (ac_try="$ac_compile"
12267 case "(($ac_try" in
12268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269   *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272   (eval "$ac_compile") 2>conftest.er1
12273   ac_status=$?
12274   grep -v '^ *+' conftest.er1 >conftest.err
12275   rm -f conftest.er1
12276   cat conftest.err >&5
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); } && {
12279          test -z "$ac_c_werror_flag" ||
12280          test ! -s conftest.err
12281        } && test -s conftest.$ac_objext; then
12282   am_cv_proto_iconv_arg1=""
12283 else
12284   echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287         am_cv_proto_iconv_arg1="const"
12288 fi
12289
12290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291       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);"
12292 fi
12293
12294     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12295     { echo "$as_me:$LINENO: result: ${ac_t:-
12296          }$am_cv_proto_iconv" >&5
12297 echo "${ECHO_T}${ac_t:-
12298          }$am_cv_proto_iconv" >&6; }
12299
12300 cat >>confdefs.h <<_ACEOF
12301 #define ICONV_CONST $am_cv_proto_iconv_arg1
12302 _ACEOF
12303
12304   fi
12305
12306
12307   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12308 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12309 if test "${am_cv_langinfo_codeset+set}" = set; then
12310   echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312   cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h.  */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h.  */
12318 #include <langinfo.h>
12319 int
12320 main ()
12321 {
12322 char* cs = nl_langinfo(CODESET);
12323   ;
12324   return 0;
12325 }
12326 _ACEOF
12327 rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (ac_try="$ac_link"
12329 case "(($ac_try" in
12330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331   *) ac_try_echo=$ac_try;;
12332 esac
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334   (eval "$ac_link") 2>conftest.er1
12335   ac_status=$?
12336   grep -v '^ *+' conftest.er1 >conftest.err
12337   rm -f conftest.er1
12338   cat conftest.err >&5
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); } && {
12341          test -z "$ac_c_werror_flag" ||
12342          test ! -s conftest.err
12343        } && test -s conftest$ac_exeext &&
12344        $as_test_x conftest$ac_exeext; then
12345   am_cv_langinfo_codeset=yes
12346 else
12347   echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12349
12350         am_cv_langinfo_codeset=no
12351 fi
12352
12353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12354       conftest$ac_exeext conftest.$ac_ext
12355
12356 fi
12357 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12358 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12359   if test $am_cv_langinfo_codeset = yes; then
12360
12361 cat >>confdefs.h <<\_ACEOF
12362 #define HAVE_LANGINFO_CODESET 1
12363 _ACEOF
12364
12365   fi
12366
12367   if test $ac_cv_header_locale_h = yes; then
12368
12369   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12370 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12371 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h.  */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h.  */
12380 #include <locale.h>
12381 int
12382 main ()
12383 {
12384 return LC_MESSAGES
12385   ;
12386   return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext conftest$ac_exeext
12390 if { (ac_try="$ac_link"
12391 case "(($ac_try" in
12392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393   *) ac_try_echo=$ac_try;;
12394 esac
12395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396   (eval "$ac_link") 2>conftest.er1
12397   ac_status=$?
12398   grep -v '^ *+' conftest.er1 >conftest.err
12399   rm -f conftest.er1
12400   cat conftest.err >&5
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); } && {
12403          test -z "$ac_c_werror_flag" ||
12404          test ! -s conftest.err
12405        } && test -s conftest$ac_exeext &&
12406        $as_test_x conftest$ac_exeext; then
12407   gt_cv_val_LC_MESSAGES=yes
12408 else
12409   echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412         gt_cv_val_LC_MESSAGES=no
12413 fi
12414
12415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12416       conftest$ac_exeext conftest.$ac_ext
12417 fi
12418 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12419 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12420   if test $gt_cv_val_LC_MESSAGES = yes; then
12421
12422 cat >>confdefs.h <<\_ACEOF
12423 #define HAVE_LC_MESSAGES 1
12424 _ACEOF
12425
12426   fi
12427
12428   fi
12429
12430   if test -n "$INTL_MACOSX_LIBS"; then
12431     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12432   fi
12433
12434                       for ac_prog in bison
12435 do
12436   # Extract the first word of "$ac_prog", so it can be a program name with args.
12437 set dummy $ac_prog; ac_word=$2
12438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12440 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443   if test -n "$INTLBISON"; then
12444   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12445 else
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $PATH
12448 do
12449   IFS=$as_save_IFS
12450   test -z "$as_dir" && as_dir=.
12451   for ac_exec_ext in '' $ac_executable_extensions; do
12452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12453     ac_cv_prog_INTLBISON="$ac_prog"
12454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12455     break 2
12456   fi
12457 done
12458 done
12459 IFS=$as_save_IFS
12460
12461 fi
12462 fi
12463 INTLBISON=$ac_cv_prog_INTLBISON
12464 if test -n "$INTLBISON"; then
12465   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12466 echo "${ECHO_T}$INTLBISON" >&6; }
12467 else
12468   { echo "$as_me:$LINENO: result: no" >&5
12469 echo "${ECHO_T}no" >&6; }
12470 fi
12471
12472
12473   test -n "$INTLBISON" && break
12474 done
12475
12476   if test -z "$INTLBISON"; then
12477     ac_verc_fail=yes
12478   else
12479         { echo "$as_me:$LINENO: checking version of bison" >&5
12480 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12481     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12482     case $ac_prog_version in
12483       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12484       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12485          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12486       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12487     esac
12488     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12489 echo "${ECHO_T}$ac_prog_version" >&6; }
12490   fi
12491   if test $ac_verc_fail = yes; then
12492     INTLBISON=:
12493   fi
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12511 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12512 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12513   echo $ECHO_N "(cached) $ECHO_C" >&6
12514 else
12515   gt_save_CPPFLAGS="$CPPFLAGS"
12516      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12517      gt_save_LIBS="$LIBS"
12518      LIBS="$LIBS -framework CoreFoundation"
12519      cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525 #include <CFPreferences.h>
12526 int
12527 main ()
12528 {
12529 CFPreferencesCopyAppValue(NULL, NULL)
12530   ;
12531   return 0;
12532 }
12533 _ACEOF
12534 rm -f conftest.$ac_objext conftest$ac_exeext
12535 if { (ac_try="$ac_link"
12536 case "(($ac_try" in
12537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538   *) ac_try_echo=$ac_try;;
12539 esac
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541   (eval "$ac_link") 2>conftest.er1
12542   ac_status=$?
12543   grep -v '^ *+' conftest.er1 >conftest.err
12544   rm -f conftest.er1
12545   cat conftest.err >&5
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); } && {
12548          test -z "$ac_c_werror_flag" ||
12549          test ! -s conftest.err
12550        } && test -s conftest$ac_exeext &&
12551        $as_test_x conftest$ac_exeext; then
12552   gt_cv_func_CFPreferencesCopyAppValue=yes
12553 else
12554   echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557         gt_cv_func_CFPreferencesCopyAppValue=no
12558 fi
12559
12560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12561       conftest$ac_exeext conftest.$ac_ext
12562      CPPFLAGS="$gt_save_CPPFLAGS"
12563      LIBS="$gt_save_LIBS"
12564 fi
12565 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12566 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12567   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12568
12569 cat >>confdefs.h <<\_ACEOF
12570 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12571 _ACEOF
12572
12573   fi
12574     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12575 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12576 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12577   echo $ECHO_N "(cached) $ECHO_C" >&6
12578 else
12579   gt_save_CPPFLAGS="$CPPFLAGS"
12580      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12581      gt_save_LIBS="$LIBS"
12582      LIBS="$LIBS -framework CoreFoundation"
12583      cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h.  */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h.  */
12589 #include <CFLocale.h>
12590 int
12591 main ()
12592 {
12593 CFLocaleCopyCurrent();
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (ac_try="$ac_link"
12600 case "(($ac_try" in
12601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602   *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605   (eval "$ac_link") 2>conftest.er1
12606   ac_status=$?
12607   grep -v '^ *+' conftest.er1 >conftest.err
12608   rm -f conftest.er1
12609   cat conftest.err >&5
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); } && {
12612          test -z "$ac_c_werror_flag" ||
12613          test ! -s conftest.err
12614        } && test -s conftest$ac_exeext &&
12615        $as_test_x conftest$ac_exeext; then
12616   gt_cv_func_CFLocaleCopyCurrent=yes
12617 else
12618   echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621         gt_cv_func_CFLocaleCopyCurrent=no
12622 fi
12623
12624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12625       conftest$ac_exeext conftest.$ac_ext
12626      CPPFLAGS="$gt_save_CPPFLAGS"
12627      LIBS="$gt_save_LIBS"
12628 fi
12629 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12630 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12631   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12632
12633 cat >>confdefs.h <<\_ACEOF
12634 #define HAVE_CFLOCALECOPYCURRENT 1
12635 _ACEOF
12636
12637   fi
12638   INTL_MACOSX_LIBS=
12639   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12640     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12641   fi
12642
12643
12644
12645
12646   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12647 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12648     # Check whether --enable-nls was given.
12649 if test "${enable_nls+set}" = set; then
12650   enableval=$enable_nls; USE_NLS=$enableval
12651 else
12652   USE_NLS=yes
12653 fi
12654
12655   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12656 echo "${ECHO_T}$USE_NLS" >&6; }
12657
12658
12659
12660
12661     BUILD_INCLUDED_LIBINTL=no
12662     USE_INCLUDED_LIBINTL=no
12663
12664   LIBINTL=
12665   LTLIBINTL=
12666   POSUB=
12667
12668     if test "$USE_NLS" = "yes"; then
12669     gt_use_preinstalled_gnugettext=no
12670
12671       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12672 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12673
12674 # Check whether --with-included-gettext was given.
12675 if test "${with_included_gettext+set}" = set; then
12676   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12677 else
12678   nls_cv_force_use_gnu_gettext=no
12679 fi
12680
12681       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12682 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12683
12684       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12685       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12686
12687
12688
12689
12690
12691
12692         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12693 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12694 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12695   echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697   cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h.  */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h.  */
12703 #include <libintl.h>
12704 extern int _nl_msg_cat_cntr;
12705 extern int *_nl_domain_bindings;
12706 int
12707 main ()
12708 {
12709 bindtextdomain ("", "");
12710 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12711   ;
12712   return 0;
12713 }
12714 _ACEOF
12715 rm -f conftest.$ac_objext conftest$ac_exeext
12716 if { (ac_try="$ac_link"
12717 case "(($ac_try" in
12718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719   *) ac_try_echo=$ac_try;;
12720 esac
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722   (eval "$ac_link") 2>conftest.er1
12723   ac_status=$?
12724   grep -v '^ *+' conftest.er1 >conftest.err
12725   rm -f conftest.er1
12726   cat conftest.err >&5
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); } && {
12729          test -z "$ac_c_werror_flag" ||
12730          test ! -s conftest.err
12731        } && test -s conftest$ac_exeext &&
12732        $as_test_x conftest$ac_exeext; then
12733   gt_cv_func_gnugettext1_libc=yes
12734 else
12735   echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738         gt_cv_func_gnugettext1_libc=no
12739 fi
12740
12741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12742       conftest$ac_exeext conftest.$ac_ext
12743 fi
12744 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12745 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12746
12747         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12748
12749
12750
12751     use_additional=yes
12752
12753   acl_save_prefix="$prefix"
12754   prefix="$acl_final_prefix"
12755   acl_save_exec_prefix="$exec_prefix"
12756   exec_prefix="$acl_final_exec_prefix"
12757
12758     eval additional_includedir=\"$includedir\"
12759     eval additional_libdir=\"$libdir\"
12760
12761   exec_prefix="$acl_save_exec_prefix"
12762   prefix="$acl_save_prefix"
12763
12764
12765 # Check whether --with-libintl-prefix was given.
12766 if test "${with_libintl_prefix+set}" = set; then
12767   withval=$with_libintl_prefix;
12768     if test "X$withval" = "Xno"; then
12769       use_additional=no
12770     else
12771       if test "X$withval" = "X"; then
12772
12773   acl_save_prefix="$prefix"
12774   prefix="$acl_final_prefix"
12775   acl_save_exec_prefix="$exec_prefix"
12776   exec_prefix="$acl_final_exec_prefix"
12777
12778           eval additional_includedir=\"$includedir\"
12779           eval additional_libdir=\"$libdir\"
12780
12781   exec_prefix="$acl_save_exec_prefix"
12782   prefix="$acl_save_prefix"
12783
12784       else
12785         additional_includedir="$withval/include"
12786         additional_libdir="$withval/lib"
12787       fi
12788     fi
12789
12790 fi
12791
12792       LIBINTL=
12793   LTLIBINTL=
12794   INCINTL=
12795   rpathdirs=
12796   ltrpathdirs=
12797   names_already_handled=
12798   names_next_round='intl '
12799   while test -n "$names_next_round"; do
12800     names_this_round="$names_next_round"
12801     names_next_round=
12802     for name in $names_this_round; do
12803       already_handled=
12804       for n in $names_already_handled; do
12805         if test "$n" = "$name"; then
12806           already_handled=yes
12807           break
12808         fi
12809       done
12810       if test -z "$already_handled"; then
12811         names_already_handled="$names_already_handled $name"
12812                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12813         eval value=\"\$HAVE_LIB$uppername\"
12814         if test -n "$value"; then
12815           if test "$value" = yes; then
12816             eval value=\"\$LIB$uppername\"
12817             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12818             eval value=\"\$LTLIB$uppername\"
12819             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12820           else
12821                                     :
12822           fi
12823         else
12824                               found_dir=
12825           found_la=
12826           found_so=
12827           found_a=
12828           if test $use_additional = yes; then
12829             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12830               found_dir="$additional_libdir"
12831               found_so="$additional_libdir/lib$name.$shlibext"
12832               if test -f "$additional_libdir/lib$name.la"; then
12833                 found_la="$additional_libdir/lib$name.la"
12834               fi
12835             else
12836               if test -f "$additional_libdir/lib$name.$libext"; then
12837                 found_dir="$additional_libdir"
12838                 found_a="$additional_libdir/lib$name.$libext"
12839                 if test -f "$additional_libdir/lib$name.la"; then
12840                   found_la="$additional_libdir/lib$name.la"
12841                 fi
12842               fi
12843             fi
12844           fi
12845           if test "X$found_dir" = "X"; then
12846             for x in $LDFLAGS $LTLIBINTL; do
12847
12848   acl_save_prefix="$prefix"
12849   prefix="$acl_final_prefix"
12850   acl_save_exec_prefix="$exec_prefix"
12851   exec_prefix="$acl_final_exec_prefix"
12852   eval x=\"$x\"
12853   exec_prefix="$acl_save_exec_prefix"
12854   prefix="$acl_save_prefix"
12855
12856               case "$x" in
12857                 -L*)
12858                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12859                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12860                     found_dir="$dir"
12861                     found_so="$dir/lib$name.$shlibext"
12862                     if test -f "$dir/lib$name.la"; then
12863                       found_la="$dir/lib$name.la"
12864                     fi
12865                   else
12866                     if test -f "$dir/lib$name.$libext"; then
12867                       found_dir="$dir"
12868                       found_a="$dir/lib$name.$libext"
12869                       if test -f "$dir/lib$name.la"; then
12870                         found_la="$dir/lib$name.la"
12871                       fi
12872                     fi
12873                   fi
12874                   ;;
12875               esac
12876               if test "X$found_dir" != "X"; then
12877                 break
12878               fi
12879             done
12880           fi
12881           if test "X$found_dir" != "X"; then
12882                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12883             if test "X$found_so" != "X"; then
12884                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12885                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12886               else
12887                                                                                 haveit=
12888                 for x in $ltrpathdirs; do
12889                   if test "X$x" = "X$found_dir"; then
12890                     haveit=yes
12891                     break
12892                   fi
12893                 done
12894                 if test -z "$haveit"; then
12895                   ltrpathdirs="$ltrpathdirs $found_dir"
12896                 fi
12897                                 if test "$hardcode_direct" = yes; then
12898                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12899                 else
12900                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12901                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12902                                                             haveit=
12903                     for x in $rpathdirs; do
12904                       if test "X$x" = "X$found_dir"; then
12905                         haveit=yes
12906                         break
12907                       fi
12908                     done
12909                     if test -z "$haveit"; then
12910                       rpathdirs="$rpathdirs $found_dir"
12911                     fi
12912                   else
12913                                                                                 haveit=
12914                     for x in $LDFLAGS $LIBINTL; do
12915
12916   acl_save_prefix="$prefix"
12917   prefix="$acl_final_prefix"
12918   acl_save_exec_prefix="$exec_prefix"
12919   exec_prefix="$acl_final_exec_prefix"
12920   eval x=\"$x\"
12921   exec_prefix="$acl_save_exec_prefix"
12922   prefix="$acl_save_prefix"
12923
12924                       if test "X$x" = "X-L$found_dir"; then
12925                         haveit=yes
12926                         break
12927                       fi
12928                     done
12929                     if test -z "$haveit"; then
12930                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12931                     fi
12932                     if test "$hardcode_minus_L" != no; then
12933                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12934                     else
12935                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12936                     fi
12937                   fi
12938                 fi
12939               fi
12940             else
12941               if test "X$found_a" != "X"; then
12942                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12943               else
12944                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12945               fi
12946             fi
12947                         additional_includedir=
12948             case "$found_dir" in
12949               */lib | */lib/)
12950                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12951                 additional_includedir="$basedir/include"
12952                 ;;
12953             esac
12954             if test "X$additional_includedir" != "X"; then
12955                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12956                 haveit=
12957                 if test "X$additional_includedir" = "X/usr/local/include"; then
12958                   if test -n "$GCC"; then
12959                     case $host_os in
12960                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12961                     esac
12962                   fi
12963                 fi
12964                 if test -z "$haveit"; then
12965                   for x in $CPPFLAGS $INCINTL; do
12966
12967   acl_save_prefix="$prefix"
12968   prefix="$acl_final_prefix"
12969   acl_save_exec_prefix="$exec_prefix"
12970   exec_prefix="$acl_final_exec_prefix"
12971   eval x=\"$x\"
12972   exec_prefix="$acl_save_exec_prefix"
12973   prefix="$acl_save_prefix"
12974
12975                     if test "X$x" = "X-I$additional_includedir"; then
12976                       haveit=yes
12977                       break
12978                     fi
12979                   done
12980                   if test -z "$haveit"; then
12981                     if test -d "$additional_includedir"; then
12982                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12983                     fi
12984                   fi
12985                 fi
12986               fi
12987             fi
12988                         if test -n "$found_la"; then
12989                                                         save_libdir="$libdir"
12990               case "$found_la" in
12991                 */* | *\\*) . "$found_la" ;;
12992                 *) . "./$found_la" ;;
12993               esac
12994               libdir="$save_libdir"
12995                             for dep in $dependency_libs; do
12996                 case "$dep" in
12997                   -L*)
12998                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12999                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13000                       haveit=
13001                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13002                         if test -n "$GCC"; then
13003                           case $host_os in
13004                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13005                           esac
13006                         fi
13007                       fi
13008                       if test -z "$haveit"; then
13009                         haveit=
13010                         for x in $LDFLAGS $LIBINTL; do
13011
13012   acl_save_prefix="$prefix"
13013   prefix="$acl_final_prefix"
13014   acl_save_exec_prefix="$exec_prefix"
13015   exec_prefix="$acl_final_exec_prefix"
13016   eval x=\"$x\"
13017   exec_prefix="$acl_save_exec_prefix"
13018   prefix="$acl_save_prefix"
13019
13020                           if test "X$x" = "X-L$additional_libdir"; then
13021                             haveit=yes
13022                             break
13023                           fi
13024                         done
13025                         if test -z "$haveit"; then
13026                           if test -d "$additional_libdir"; then
13027                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13028                           fi
13029                         fi
13030                         haveit=
13031                         for x in $LDFLAGS $LTLIBINTL; do
13032
13033   acl_save_prefix="$prefix"
13034   prefix="$acl_final_prefix"
13035   acl_save_exec_prefix="$exec_prefix"
13036   exec_prefix="$acl_final_exec_prefix"
13037   eval x=\"$x\"
13038   exec_prefix="$acl_save_exec_prefix"
13039   prefix="$acl_save_prefix"
13040
13041                           if test "X$x" = "X-L$additional_libdir"; then
13042                             haveit=yes
13043                             break
13044                           fi
13045                         done
13046                         if test -z "$haveit"; then
13047                           if test -d "$additional_libdir"; then
13048                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13049                           fi
13050                         fi
13051                       fi
13052                     fi
13053                     ;;
13054                   -R*)
13055                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13056                     if test "$enable_rpath" != no; then
13057                                                                   haveit=
13058                       for x in $rpathdirs; do
13059                         if test "X$x" = "X$dir"; then
13060                           haveit=yes
13061                           break
13062                         fi
13063                       done
13064                       if test -z "$haveit"; then
13065                         rpathdirs="$rpathdirs $dir"
13066                       fi
13067                                                                   haveit=
13068                       for x in $ltrpathdirs; do
13069                         if test "X$x" = "X$dir"; then
13070                           haveit=yes
13071                           break
13072                         fi
13073                       done
13074                       if test -z "$haveit"; then
13075                         ltrpathdirs="$ltrpathdirs $dir"
13076                       fi
13077                     fi
13078                     ;;
13079                   -l*)
13080                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13081                     ;;
13082                   *.la)
13083                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13084                     ;;
13085                   *)
13086                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13087                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13088                     ;;
13089                 esac
13090               done
13091             fi
13092           else
13093                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13094             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13095           fi
13096         fi
13097       fi
13098     done
13099   done
13100   if test "X$rpathdirs" != "X"; then
13101     if test -n "$hardcode_libdir_separator"; then
13102                         alldirs=
13103       for found_dir in $rpathdirs; do
13104         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13105       done
13106             acl_save_libdir="$libdir"
13107       libdir="$alldirs"
13108       eval flag=\"$hardcode_libdir_flag_spec\"
13109       libdir="$acl_save_libdir"
13110       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13111     else
13112             for found_dir in $rpathdirs; do
13113         acl_save_libdir="$libdir"
13114         libdir="$found_dir"
13115         eval flag=\"$hardcode_libdir_flag_spec\"
13116         libdir="$acl_save_libdir"
13117         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13118       done
13119     fi
13120   fi
13121   if test "X$ltrpathdirs" != "X"; then
13122             for found_dir in $ltrpathdirs; do
13123       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13124     done
13125   fi
13126
13127           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13128 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13129 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13130   echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132   gt_save_CPPFLAGS="$CPPFLAGS"
13133             CPPFLAGS="$CPPFLAGS $INCINTL"
13134             gt_save_LIBS="$LIBS"
13135             LIBS="$LIBS $LIBINTL"
13136                         cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h.  */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h.  */
13142 #include <libintl.h>
13143 extern int _nl_msg_cat_cntr;
13144 extern
13145 #ifdef __cplusplus
13146 "C"
13147 #endif
13148 const char *_nl_expand_alias (const char *);
13149 int
13150 main ()
13151 {
13152 bindtextdomain ("", "");
13153 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 rm -f conftest.$ac_objext conftest$ac_exeext
13159 if { (ac_try="$ac_link"
13160 case "(($ac_try" in
13161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162   *) ac_try_echo=$ac_try;;
13163 esac
13164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165   (eval "$ac_link") 2>conftest.er1
13166   ac_status=$?
13167   grep -v '^ *+' conftest.er1 >conftest.err
13168   rm -f conftest.er1
13169   cat conftest.err >&5
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); } && {
13172          test -z "$ac_c_werror_flag" ||
13173          test ! -s conftest.err
13174        } && test -s conftest$ac_exeext &&
13175        $as_test_x conftest$ac_exeext; then
13176   gt_cv_func_gnugettext1_libintl=yes
13177 else
13178   echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181         gt_cv_func_gnugettext1_libintl=no
13182 fi
13183
13184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13185       conftest$ac_exeext conftest.$ac_ext
13186                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13187               LIBS="$LIBS $LIBICONV"
13188               cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13194 #include <libintl.h>
13195 extern int _nl_msg_cat_cntr;
13196 extern
13197 #ifdef __cplusplus
13198 "C"
13199 #endif
13200 const char *_nl_expand_alias (const char *);
13201 int
13202 main ()
13203 {
13204 bindtextdomain ("", "");
13205 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13206   ;
13207   return 0;
13208 }
13209 _ACEOF
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (ac_try="$ac_link"
13212 case "(($ac_try" in
13213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214   *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217   (eval "$ac_link") 2>conftest.er1
13218   ac_status=$?
13219   grep -v '^ *+' conftest.er1 >conftest.err
13220   rm -f conftest.er1
13221   cat conftest.err >&5
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); } && {
13224          test -z "$ac_c_werror_flag" ||
13225          test ! -s conftest.err
13226        } && test -s conftest$ac_exeext &&
13227        $as_test_x conftest$ac_exeext; then
13228   LIBINTL="$LIBINTL $LIBICONV"
13229                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13230                 gt_cv_func_gnugettext1_libintl=yes
13231
13232 else
13233   echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13235
13236
13237 fi
13238
13239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13240       conftest$ac_exeext conftest.$ac_ext
13241             fi
13242             CPPFLAGS="$gt_save_CPPFLAGS"
13243             LIBS="$gt_save_LIBS"
13244 fi
13245 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13246 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13247         fi
13248
13249                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13250            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13251                 && test "$PACKAGE" != gettext-runtime \
13252                 && test "$PACKAGE" != gettext-tools; }; then
13253           gt_use_preinstalled_gnugettext=yes
13254         else
13255                     LIBINTL=
13256           LTLIBINTL=
13257           INCINTL=
13258         fi
13259
13260
13261         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13262                               nls_cv_use_gnu_gettext=yes
13263         fi
13264       fi
13265
13266       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13267                 BUILD_INCLUDED_LIBINTL=yes
13268         USE_INCLUDED_LIBINTL=yes
13269         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13270         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13271         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13272       fi
13273
13274       CATOBJEXT=
13275       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13276          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13277                 CATOBJEXT=.gmo
13278       fi
13279
13280
13281     if test -n "$INTL_MACOSX_LIBS"; then
13282       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13283          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13284                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13285         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13286       fi
13287     fi
13288
13289     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13290        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13291
13292 cat >>confdefs.h <<\_ACEOF
13293 #define ENABLE_NLS 1
13294 _ACEOF
13295
13296     else
13297       USE_NLS=no
13298     fi
13299   fi
13300
13301   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13302 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13303   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13304 echo "${ECHO_T}$USE_NLS" >&6; }
13305   if test "$USE_NLS" = "yes"; then
13306     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13307 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13308     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13309       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13310         gt_source="external libintl"
13311       else
13312         gt_source="libc"
13313       fi
13314     else
13315       gt_source="included intl directory"
13316     fi
13317     { echo "$as_me:$LINENO: result: $gt_source" >&5
13318 echo "${ECHO_T}$gt_source" >&6; }
13319   fi
13320
13321   if test "$USE_NLS" = "yes"; then
13322
13323     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13324       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13325         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13326 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13327         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13328 echo "${ECHO_T}$LIBINTL" >&6; }
13329
13330   for element in $INCINTL; do
13331     haveit=
13332     for x in $CPPFLAGS; do
13333
13334   acl_save_prefix="$prefix"
13335   prefix="$acl_final_prefix"
13336   acl_save_exec_prefix="$exec_prefix"
13337   exec_prefix="$acl_final_exec_prefix"
13338   eval x=\"$x\"
13339   exec_prefix="$acl_save_exec_prefix"
13340   prefix="$acl_save_prefix"
13341
13342       if test "X$x" = "X$element"; then
13343         haveit=yes
13344         break
13345       fi
13346     done
13347     if test -z "$haveit"; then
13348       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13349     fi
13350   done
13351
13352       fi
13353
13354
13355 cat >>confdefs.h <<\_ACEOF
13356 #define HAVE_GETTEXT 1
13357 _ACEOF
13358
13359
13360 cat >>confdefs.h <<\_ACEOF
13361 #define HAVE_DCGETTEXT 1
13362 _ACEOF
13363
13364     fi
13365
13366         POSUB=po
13367   fi
13368
13369
13370             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13371       BUILD_INCLUDED_LIBINTL=yes
13372     fi
13373
13374
13375
13376
13377
13378         nls_cv_header_intl=
13379     nls_cv_header_libgt=
13380
13381         DATADIRNAME=share
13382
13383
13384         INSTOBJEXT=.mo
13385
13386
13387         GENCAT=gencat
13388
13389
13390         INTLOBJS=
13391     if test "$USE_INCLUDED_LIBINTL" = yes; then
13392       INTLOBJS="\$(GETTOBJS)"
13393     fi
13394
13395
13396         INTL_LIBTOOL_SUFFIX_PREFIX=
13397
13398
13399
13400     INTLLIBS="$LIBINTL"
13401
13402
13403
13404
13405
13406
13407 fi
13408
13409 support_mysql=no
13410 support_sqlite=no
13411 support_sqlite3=no
13412 support_postgresql=no
13413 support_dbi=no
13414 support_smartalloc=yes
13415 support_readline=yes
13416 support_conio=yes
13417 support_gnome=no
13418 support_bat=no
13419 support_wx_console=no
13420 support_tls=no
13421 support_crypto=no
13422 gnome_version=
13423 wx_version=
13424 support_static_tools=no
13425 support_static_fd=no
13426 support_static_sd=no
13427 support_static_dir=no
13428 support_static_cons=no
13429 support_python=no
13430 build_client_only=no
13431 build_dird=yes
13432 build_stored=yes
13433 cats=
13434 db_type=Internal
13435 DB_TYPE=bdb
13436
13437
13438 # -------------------------------------------
13439 # gnome (default off)
13440 # -------------------------------------------
13441 # Check whether --enable-gnome was given.
13442 if test "${enable_gnome+set}" = set; then
13443   enableval=$enable_gnome; if test x$enableval = xyes; then
13444     support_gnome=yes
13445   fi
13446 fi
13447
13448
13449 GNOME_DIR=
13450 if test x$support_gnome = xyes; then
13451   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13452   pkg=$?
13453   if test $pkg = 0; then
13454      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13455      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13456      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13457      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13458
13459
13460
13461
13462      GNOME_DIR=src/gnome2-console
13463      gnome_version="Version 2.x"
13464   else
13465      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13466 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13467    { (exit 1); exit 1; }; }
13468   fi
13469 fi
13470
13471
13472 # -------------------------------------------
13473 # bat (default off)
13474 # -------------------------------------------
13475 # Check whether --enable-bat was given.
13476 if test "${enable_bat+set}" = set; then
13477   enableval=$enable_bat; if test x$enableval = xyes; then
13478
13479 cat >>confdefs.h <<\_ACEOF
13480 #define HAVE_BAT 1
13481 _ACEOF
13482
13483     support_bat=yes
13484   fi
13485 fi
13486
13487
13488 BAT_DIR=
13489 if test x$support_bat = xyes; then
13490   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13491   pkg=$?
13492   if test $pkg = 0; then
13493      BAT_DIR=src/qt-console
13494   else
13495      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13496 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13497    { (exit 1); exit 1; }; }
13498   fi
13499 fi
13500
13501 #
13502 #  If bat is enabled, we need the qwt library
13503 got_qwt=no
13504 QWT_INC=
13505 QWT_LDFLAGS=
13506 QWT_LIB=
13507 QWT=
13508 no_qwt=no
13509 if test x$support_bat = xyes; then
13510    { echo "$as_me:$LINENO: checking for qwt support" >&5
13511 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13512
13513 # Check whether --with-qwt was given.
13514 if test "${with_qwt+set}" = set; then
13515   withval=$with_qwt;
13516         case "$with_qwt" in
13517         no)
13518            no_qwt=yes
13519           ;;
13520         yes|*)
13521           if test -f ${with_qwt}/include/qwt.h; then
13522              QWT_INC="${with_qwt}/include"
13523              QWT_LDFLAGS="-L${with_qwt}/lib"
13524              QWT_LIB="-lqwt"
13525              QWT="qwt"
13526           fi
13527           ;;
13528         esac
13529
13530
13531 fi
13532
13533 #
13534 # Search in standard places, or --with-qwt not specified
13535 #
13536    if test $no_qwt = no; then
13537     if test x$QWT_INC = x; then
13538       for root in /usr /usr/local; do
13539          for ver in qwt qwt5 qwt-qt4; do
13540             if test -f ${root}/include/${ver}/qwt.h; then
13541                QWT_INC="${root}/include/${ver}"
13542                if test -d ${root}/lib64/; then
13543                   QWT_LDFLAGS="-L${root}/lib64"
13544                else
13545                   QWT_LDFLAGS="-L${root}/lib"
13546                fi
13547                QWT_LIB="-lqwt"
13548                QWT="qwt"
13549                got_qwt=yes
13550                break;
13551             fi
13552          done
13553       done
13554     fi
13555    fi
13556    if test x$QWT_INC = x; then
13557       { echo "$as_me:$LINENO: result: no" >&5
13558 echo "${ECHO_T}no" >&6; }
13559    else
13560
13561 cat >>confdefs.h <<\_ACEOF
13562 #define HAVE_QWT 1
13563 _ACEOF
13564
13565       { echo "$as_me:$LINENO: result: yes" >&5
13566 echo "${ECHO_T}yes" >&6; }
13567    fi
13568 fi
13569
13570
13571
13572
13573
13574
13575
13576
13577 # -------------------------------------------
13578 # bwx-console (default off)
13579 # -------------------------------------------
13580 # Check whether --enable-bwx-console was given.
13581 if test "${enable_bwx_console+set}" = set; then
13582   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13583     support_wx_console=yes
13584   fi
13585 fi
13586
13587
13588 WX_DIR=
13589 if test x$support_wx_console = xyes; then
13590   abc=`$WXCONFIG $WXFLAGS --cppflags`
13591   pkg=$?
13592   if test $pkg = 0; then
13593      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13594      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13595      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13596
13597
13598
13599      WX_DIR=src/wx-console
13600   else
13601      echo " "
13602      echo "wx-config program not found. bwx-console disabled."
13603      echo " "
13604      support_wx_console=no
13605   fi
13606 fi
13607
13608
13609
13610 # -------------------------------------------
13611 # tray-monitor (default off)
13612 # -------------------------------------------
13613 # Check whether --enable-tray-monitor was given.
13614 if test "${enable_tray_monitor+set}" = set; then
13615   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13616     support_tray_monitor=yes
13617   fi
13618 fi
13619
13620
13621 TRAY_MONITOR_DIR=
13622 if test x$support_tray_monitor = xyes; then
13623   abc=`$PKGCONFIG --exists gtk+-2.0`
13624   pkg=$?
13625   if test $pkg = 0; then
13626      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13627      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13628
13629
13630      TRAY_MONITOR_DIR=src/tray-monitor
13631      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13632      pkg=$?
13633      if test $pkg = 0; then
13634
13635 cat >>confdefs.h <<\_ACEOF
13636 #define HAVE_GTK_2_4 1
13637 _ACEOF
13638
13639      fi
13640   fi
13641 fi
13642
13643
13644 # -------------------------------------------
13645 # smartalloc (default off)
13646 # -------------------------------------------
13647 # Check whether --enable-smartalloc was given.
13648 if test "${enable_smartalloc+set}" = set; then
13649   enableval=$enable_smartalloc; if test x$enableval = xno; then
13650     support_smartalloc=no
13651   fi
13652 fi
13653
13654
13655 if test x$support_smartalloc = xyes; then
13656
13657 cat >>confdefs.h <<\_ACEOF
13658 #define SMARTALLOC 1
13659 _ACEOF
13660
13661 fi
13662
13663 # -------------------------------------------
13664 # static-tools (default off)
13665 # -------------------------------------------
13666 # Check whether --enable-static-tools was given.
13667 if test "${enable_static_tools+set}" = set; then
13668   enableval=$enable_static_tools; if test x$enableval = xyes; then
13669      support_static_tools=yes
13670    fi
13671 fi
13672
13673
13674 TTOOL_LDFLAGS=
13675 if test x$support_static_tools = xyes; then
13676    TTOOL_LDFLAGS="-static"
13677 fi
13678
13679
13680 # -------------------------------------------
13681 # static-fd    (default off)
13682 # -------------------------------------------
13683 # Check whether --enable-static-fd was given.
13684 if test "${enable_static_fd+set}" = set; then
13685   enableval=$enable_static_fd; if test x$enableval = xyes; then
13686      support_static_fd=yes
13687    fi
13688 fi
13689
13690
13691 STATIC_FD=
13692 if test x$support_static_fd = xyes; then
13693    STATIC_FD="static-bacula-fd"
13694 fi
13695
13696
13697 # -------------------------------------------
13698 # static-sd    (default off)
13699 # -------------------------------------------
13700 # Check whether --enable-static-sd was given.
13701 if test "${enable_static_sd+set}" = set; then
13702   enableval=$enable_static_sd; if test x$enableval = xyes; then
13703      support_static_sd=yes
13704    fi
13705 fi
13706
13707
13708 STATIC_SD=
13709 if test x$support_static_sd = xyes; then
13710    STATIC_SD="static-bacula-sd"
13711 fi
13712
13713
13714 # -------------------------------------------
13715 # static-dir   (default off)
13716 # -------------------------------------------
13717 # Check whether --enable-static-dir was given.
13718 if test "${enable_static_dir+set}" = set; then
13719   enableval=$enable_static_dir; if test x$enableval = xyes; then
13720      support_static_dir=yes
13721    fi
13722 fi
13723
13724
13725 STATIC_DIR=
13726 if test x$support_static_dir = xyes; then
13727    STATIC_DIR="static-bacula-dir"
13728 fi
13729
13730
13731 # -------------------------------------------
13732 # static-cons  (default off)
13733 # -------------------------------------------
13734 # Check whether --enable-static-cons was given.
13735 if test "${enable_static_cons+set}" = set; then
13736   enableval=$enable_static_cons; if test x$enableval = xyes; then
13737      support_static_cons=yes
13738    fi
13739 fi
13740
13741
13742 STATIC_CONS=
13743 STATIC_GNOME_CONS=
13744 STATIC_WX_CONS=
13745 if test x$support_static_cons = xyes; then
13746    STATIC_CONS="static-bconsole"
13747    STATIC_GNOME_CONS="static-bgnome-console"
13748    STATIC_WX_CONS="static-bwx-console"
13749 fi
13750
13751
13752
13753
13754 # -------------------------------------------
13755 # client_only  (default off)
13756 # -------------------------------------------
13757 # Check whether --enable-client-only was given.
13758 if test "${enable_client_only+set}" = set; then
13759   enableval=$enable_client_only; if test x$enableval = xyes; then
13760       build_client_only=yes
13761       db_type=None
13762       DB_TYPE=none
13763    fi
13764 fi
13765
13766 if test x$build_client_only = xno; then
13767    ALL_DIRS="subdirs"
13768 else
13769    ALL_DIRS=""
13770 fi
13771
13772
13773 # -------------------------------------------
13774 # director  (default on)
13775 # -------------------------------------------
13776 # Check whether --enable-build-dird was given.
13777 if test "${enable_build_dird+set}" = set; then
13778   enableval=$enable_build_dird; if test x$enableval = xno; then
13779       build_dird=no
13780    fi
13781 fi
13782
13783 if test x$build_dird = xyes; then
13784    DIRD_DIR="src/dird"
13785    DIR_TOOLS="DIRTOOLS"
13786 else
13787    DIRD_DIR=""
13788    DIR_TOOLS="NODIRTOOLS"
13789 fi
13790
13791
13792
13793 # -------------------------------------------
13794 # stored  (default on)
13795 # -------------------------------------------
13796 # Check whether --enable-build-stored was given.
13797 if test "${enable_build_stored+set}" = set; then
13798   enableval=$enable_build_stored; if test x$enableval = xno; then
13799       build_stored=no
13800    fi
13801 fi
13802
13803 if test x$build_stored = xyes; then
13804    STORED_DIR="src/stored"
13805 else
13806    STORED_DIR=""
13807 fi
13808
13809
13810 # ---------------------------------------------------
13811 # Check for conio (Bacula readline substitute)(
13812 # ---------------------------------------------------
13813 # this allows you to turn it completely off
13814 # Check whether --enable-conio was given.
13815 if test "${enable_conio+set}" = set; then
13816   enableval=$enable_conio; if test x$enableval = xno; then
13817      support_conio=no
13818   fi
13819
13820 fi
13821
13822
13823
13824 # ---------------------------------------------------
13825 # Check for IPv6 support
13826 # ---------------------------------------------------
13827 # this allows you to turn it completely off
13828 support_ipv6=yes
13829 # Check whether --enable-ipv6 was given.
13830 if test "${enable_ipv6+set}" = set; then
13831   enableval=$enable_ipv6; if test x$enableval = xno; then
13832      support_ipv6=no
13833   fi
13834
13835 fi
13836
13837
13838 if test x$support_ipv6 = xyes; then
13839     cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h.  */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h.  */
13845  #include <sys/types.h>
13846 #include <sys/socket.h>
13847 #include <netinet/in.h>
13848 int
13849 main ()
13850 {
13851 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13852   ;
13853   return 0;
13854 }
13855 _ACEOF
13856 rm -f conftest.$ac_objext conftest$ac_exeext
13857 if { (ac_try="$ac_link"
13858 case "(($ac_try" in
13859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860   *) ac_try_echo=$ac_try;;
13861 esac
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863   (eval "$ac_link") 2>conftest.er1
13864   ac_status=$?
13865   grep -v '^ *+' conftest.er1 >conftest.err
13866   rm -f conftest.er1
13867   cat conftest.err >&5
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); } && {
13870          test -z "$ac_c_werror_flag" ||
13871          test ! -s conftest.err
13872        } && test -s conftest$ac_exeext &&
13873        $as_test_x conftest$ac_exeext; then
13874   support_ipv6=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879         support_ipv6=no
13880 fi
13881
13882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13883       conftest$ac_exeext conftest.$ac_ext
13884 fi
13885
13886 if test x$support_ipv6 = xyes; then
13887
13888 cat >>confdefs.h <<\_ACEOF
13889 #define HAVE_IPV6 1
13890 _ACEOF
13891
13892 fi
13893
13894
13895
13896 got_conio="no"
13897 if test x$support_conio = xyes; then
13898    if test "${ac_cv_header_termcap_h+set}" = set; then
13899   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13900 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13901 if test "${ac_cv_header_termcap_h+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 fi
13904 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13905 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13906 else
13907   # Is the header compilable?
13908 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13909 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13910 cat >conftest.$ac_ext <<_ACEOF
13911 /* confdefs.h.  */
13912 _ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h.  */
13916 $ac_includes_default
13917 #include <termcap.h>
13918 _ACEOF
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923   *) ac_try_echo=$ac_try;;
13924 esac
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926   (eval "$ac_compile") 2>conftest.er1
13927   ac_status=$?
13928   grep -v '^ *+' conftest.er1 >conftest.err
13929   rm -f conftest.er1
13930   cat conftest.err >&5
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } && {
13933          test -z "$ac_c_werror_flag" ||
13934          test ! -s conftest.err
13935        } && test -s conftest.$ac_objext; then
13936   ac_header_compiler=yes
13937 else
13938   echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941         ac_header_compiler=no
13942 fi
13943
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13946 echo "${ECHO_T}$ac_header_compiler" >&6; }
13947
13948 # Is the header present?
13949 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13950 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13951 cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h.  */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h.  */
13957 #include <termcap.h>
13958 _ACEOF
13959 if { (ac_try="$ac_cpp conftest.$ac_ext"
13960 case "(($ac_try" in
13961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962   *) ac_try_echo=$ac_try;;
13963 esac
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13966   ac_status=$?
13967   grep -v '^ *+' conftest.er1 >conftest.err
13968   rm -f conftest.er1
13969   cat conftest.err >&5
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); } >/dev/null && {
13972          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13973          test ! -s conftest.err
13974        }; then
13975   ac_header_preproc=yes
13976 else
13977   echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980   ac_header_preproc=no
13981 fi
13982
13983 rm -f conftest.err conftest.$ac_ext
13984 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13985 echo "${ECHO_T}$ac_header_preproc" >&6; }
13986
13987 # So?  What about this header?
13988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13989   yes:no: )
13990     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13991 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13992     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13993 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13994     ac_header_preproc=yes
13995     ;;
13996   no:yes:* )
13997     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13998 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13999     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
14000 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
14001     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14002 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14003     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14004 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14005     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14006 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14007     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14008 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14009
14010     ;;
14011 esac
14012 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14013 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14014 if test "${ac_cv_header_termcap_h+set}" = set; then
14015   echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017   ac_cv_header_termcap_h=$ac_header_preproc
14018 fi
14019 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14020 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14021
14022 fi
14023 if test $ac_cv_header_termcap_h = yes; then
14024    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14025 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14026 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14027   echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029   ac_check_lib_save_LIBS=$LIBS
14030 LIBS="-ltermcap  $LIBS"
14031 cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h.  */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h.  */
14037
14038 /* Override any GCC internal prototype to avoid an error.
14039    Use char because int might match the return type of a GCC
14040    builtin and then its argument prototype would still apply.  */
14041 #ifdef __cplusplus
14042 extern "C"
14043 #endif
14044 char tgetent ();
14045 int
14046 main ()
14047 {
14048 return tgetent ();
14049   ;
14050   return 0;
14051 }
14052 _ACEOF
14053 rm -f conftest.$ac_objext conftest$ac_exeext
14054 if { (ac_try="$ac_link"
14055 case "(($ac_try" in
14056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057   *) ac_try_echo=$ac_try;;
14058 esac
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060   (eval "$ac_link") 2>conftest.er1
14061   ac_status=$?
14062   grep -v '^ *+' conftest.er1 >conftest.err
14063   rm -f conftest.er1
14064   cat conftest.err >&5
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); } && {
14067          test -z "$ac_c_werror_flag" ||
14068          test ! -s conftest.err
14069        } && test -s conftest$ac_exeext &&
14070        $as_test_x conftest$ac_exeext; then
14071   ac_cv_lib_termcap_tgetent=yes
14072 else
14073   echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14075
14076         ac_cv_lib_termcap_tgetent=no
14077 fi
14078
14079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14080       conftest$ac_exeext conftest.$ac_ext
14081 LIBS=$ac_check_lib_save_LIBS
14082 fi
14083 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14084 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14085 if test $ac_cv_lib_termcap_tgetent = yes; then
14086    CONS_LIBS="-ltermcap"
14087          CONS_OBJ="conio.o"
14088          CONS_SRC="conio.c"
14089          got_conio="yes"
14090          support_readline=no
14091
14092 cat >>confdefs.h <<\_ACEOF
14093 #define HAVE_CONIO 1
14094 _ACEOF
14095
14096
14097 else
14098    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14099 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14100 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14101   echo $ECHO_N "(cached) $ECHO_C" >&6
14102 else
14103   ac_check_lib_save_LIBS=$LIBS
14104 LIBS="-lncurses  $LIBS"
14105 cat >conftest.$ac_ext <<_ACEOF
14106 /* confdefs.h.  */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h.  */
14111
14112 /* Override any GCC internal prototype to avoid an error.
14113    Use char because int might match the return type of a GCC
14114    builtin and then its argument prototype would still apply.  */
14115 #ifdef __cplusplus
14116 extern "C"
14117 #endif
14118 char tgetent ();
14119 int
14120 main ()
14121 {
14122 return tgetent ();
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127 rm -f conftest.$ac_objext conftest$ac_exeext
14128 if { (ac_try="$ac_link"
14129 case "(($ac_try" in
14130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131   *) ac_try_echo=$ac_try;;
14132 esac
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134   (eval "$ac_link") 2>conftest.er1
14135   ac_status=$?
14136   grep -v '^ *+' conftest.er1 >conftest.err
14137   rm -f conftest.er1
14138   cat conftest.err >&5
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } && {
14141          test -z "$ac_c_werror_flag" ||
14142          test ! -s conftest.err
14143        } && test -s conftest$ac_exeext &&
14144        $as_test_x conftest$ac_exeext; then
14145   ac_cv_lib_ncurses_tgetent=yes
14146 else
14147   echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14149
14150         ac_cv_lib_ncurses_tgetent=no
14151 fi
14152
14153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14154       conftest$ac_exeext conftest.$ac_ext
14155 LIBS=$ac_check_lib_save_LIBS
14156 fi
14157 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14158 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14159 if test $ac_cv_lib_ncurses_tgetent = yes; then
14160    CONS_LIBS="-lncurses"
14161            CONS_OBJ="conio.o"
14162            CONS_SRC="conio.c"
14163            got_conio="yes"
14164            support_readline=no
14165
14166 cat >>confdefs.h <<\_ACEOF
14167 #define HAVE_CONIO 1
14168 _ACEOF
14169
14170
14171 fi
14172
14173
14174 fi
14175
14176
14177 else
14178
14179
14180 for ac_header in curses.h
14181 do
14182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14184   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14187   echo $ECHO_N "(cached) $ECHO_C" >&6
14188 fi
14189 ac_res=`eval echo '${'$as_ac_Header'}'`
14190                { echo "$as_me:$LINENO: result: $ac_res" >&5
14191 echo "${ECHO_T}$ac_res" >&6; }
14192 else
14193   # Is the header compilable?
14194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14196 cat >conftest.$ac_ext <<_ACEOF
14197 /* confdefs.h.  */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h.  */
14202 $ac_includes_default
14203 #include <$ac_header>
14204 _ACEOF
14205 rm -f conftest.$ac_objext
14206 if { (ac_try="$ac_compile"
14207 case "(($ac_try" in
14208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209   *) ac_try_echo=$ac_try;;
14210 esac
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212   (eval "$ac_compile") 2>conftest.er1
14213   ac_status=$?
14214   grep -v '^ *+' conftest.er1 >conftest.err
14215   rm -f conftest.er1
14216   cat conftest.err >&5
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); } && {
14219          test -z "$ac_c_werror_flag" ||
14220          test ! -s conftest.err
14221        } && test -s conftest.$ac_objext; then
14222   ac_header_compiler=yes
14223 else
14224   echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14226
14227         ac_header_compiler=no
14228 fi
14229
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14232 echo "${ECHO_T}$ac_header_compiler" >&6; }
14233
14234 # Is the header present?
14235 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14237 cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h.  */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h.  */
14243 #include <$ac_header>
14244 _ACEOF
14245 if { (ac_try="$ac_cpp conftest.$ac_ext"
14246 case "(($ac_try" in
14247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248   *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14252   ac_status=$?
14253   grep -v '^ *+' conftest.er1 >conftest.err
14254   rm -f conftest.er1
14255   cat conftest.err >&5
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); } >/dev/null && {
14258          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14259          test ! -s conftest.err
14260        }; then
14261   ac_header_preproc=yes
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266   ac_header_preproc=no
14267 fi
14268
14269 rm -f conftest.err conftest.$ac_ext
14270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14271 echo "${ECHO_T}$ac_header_preproc" >&6; }
14272
14273 # So?  What about this header?
14274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14275   yes:no: )
14276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14280     ac_header_preproc=yes
14281     ;;
14282   no:yes:* )
14283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14295
14296     ;;
14297 esac
14298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14301   echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303   eval "$as_ac_Header=\$ac_header_preproc"
14304 fi
14305 ac_res=`eval echo '${'$as_ac_Header'}'`
14306                { echo "$as_me:$LINENO: result: $ac_res" >&5
14307 echo "${ECHO_T}$ac_res" >&6; }
14308
14309 fi
14310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14311   cat >>confdefs.h <<_ACEOF
14312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14313 _ACEOF
14314
14315 fi
14316
14317 done
14318
14319          { echo "$as_me:$LINENO: checking for term.h" >&5
14320 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14321 if test "${ac_cv_header_term_h+set}" = set; then
14322   echo $ECHO_N "(cached) $ECHO_C" >&6
14323 else
14324   cat >conftest.$ac_ext <<_ACEOF
14325 /* confdefs.h.  */
14326 _ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h.  */
14330 #if HAVE_CURSES_H
14331 #include <curses.h>
14332 #endif
14333
14334
14335 #include <term.h>
14336 _ACEOF
14337 rm -f conftest.$ac_objext
14338 if { (ac_try="$ac_compile"
14339 case "(($ac_try" in
14340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341   *) ac_try_echo=$ac_try;;
14342 esac
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344   (eval "$ac_compile") 2>conftest.er1
14345   ac_status=$?
14346   grep -v '^ *+' conftest.er1 >conftest.err
14347   rm -f conftest.er1
14348   cat conftest.err >&5
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); } && {
14351          test -z "$ac_c_werror_flag" ||
14352          test ! -s conftest.err
14353        } && test -s conftest.$ac_objext; then
14354   ac_cv_header_term_h=yes
14355 else
14356   echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14358
14359         ac_cv_header_term_h=no
14360 fi
14361
14362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14363 fi
14364 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14365 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14366 if test $ac_cv_header_term_h = yes; then
14367    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14368 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14369 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14370   echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372   ac_check_lib_save_LIBS=$LIBS
14373 LIBS="-lcurses  $LIBS"
14374 cat >conftest.$ac_ext <<_ACEOF
14375 /* confdefs.h.  */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h.  */
14380
14381 /* Override any GCC internal prototype to avoid an error.
14382    Use char because int might match the return type of a GCC
14383    builtin and then its argument prototype would still apply.  */
14384 #ifdef __cplusplus
14385 extern "C"
14386 #endif
14387 char tgetent ();
14388 int
14389 main ()
14390 {
14391 return tgetent ();
14392   ;
14393   return 0;
14394 }
14395 _ACEOF
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (ac_try="$ac_link"
14398 case "(($ac_try" in
14399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400   *) ac_try_echo=$ac_try;;
14401 esac
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403   (eval "$ac_link") 2>conftest.er1
14404   ac_status=$?
14405   grep -v '^ *+' conftest.er1 >conftest.err
14406   rm -f conftest.er1
14407   cat conftest.err >&5
14408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409   (exit $ac_status); } && {
14410          test -z "$ac_c_werror_flag" ||
14411          test ! -s conftest.err
14412        } && test -s conftest$ac_exeext &&
14413        $as_test_x conftest$ac_exeext; then
14414   ac_cv_lib_curses_tgetent=yes
14415 else
14416   echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14418
14419         ac_cv_lib_curses_tgetent=no
14420 fi
14421
14422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14423       conftest$ac_exeext conftest.$ac_ext
14424 LIBS=$ac_check_lib_save_LIBS
14425 fi
14426 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14427 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14428 if test $ac_cv_lib_curses_tgetent = yes; then
14429    CONS_LIBS="-lcurses"
14430                    CONS_OBJ="conio.o"
14431                    CONS_SRC="conio.c"
14432                    got_conio="yes"
14433                    support_readline=no
14434
14435 cat >>confdefs.h <<\_ACEOF
14436 #define HAVE_CONIO 1
14437 _ACEOF
14438
14439
14440 fi
14441
14442
14443 else
14444    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14445 fi
14446
14447
14448
14449 fi
14450
14451
14452 fi
14453
14454
14455 # ---------------------------------------------------
14456 # Check for readline support/directory (default off)
14457 # ---------------------------------------------------
14458 # this allows you to turn it completely off
14459 # Check whether --enable-readline was given.
14460 if test "${enable_readline+set}" = set; then
14461   enableval=$enable_readline; if test x$enableval = xno; then
14462     support_readline=no
14463   fi
14464 fi
14465
14466
14467 got_readline="no"
14468 READLINE_SRC=
14469 if test x$support_readline = xyes; then
14470
14471 # Check whether --with-readline was given.
14472 if test "${with_readline+set}" = set; then
14473   withval=$with_readline;
14474         case "$with_readline" in
14475         no) : ;;
14476         yes|*)
14477           if test -f ${with_readline}/readline.h; then
14478              CONS_INC="-I${with_readline}"
14479              CONS_LDFLAGS="-L$with_readline"
14480           elif test -f ${with_readline}/include/readline/readline.h; then
14481              CONS_INC="-I${with_readline}/include/readline"
14482              CONS_LDFLAGS="-L${with_readline}/lib"
14483              with_readline="${with_readline}/include/readline"
14484           else
14485              with_readline="/usr/include/readline"
14486           fi
14487           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14489   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14490 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14492   echo $ECHO_N "(cached) $ECHO_C" >&6
14493 fi
14494 ac_res=`eval echo '${'$as_ac_Header'}'`
14495                { echo "$as_me:$LINENO: result: $ac_res" >&5
14496 echo "${ECHO_T}$ac_res" >&6; }
14497 else
14498   # Is the header compilable?
14499 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14500 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14501 cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h.  */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h.  */
14507 $ac_includes_default
14508 #include <${with_readline}/readline.h>
14509 _ACEOF
14510 rm -f conftest.$ac_objext
14511 if { (ac_try="$ac_compile"
14512 case "(($ac_try" in
14513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514   *) ac_try_echo=$ac_try;;
14515 esac
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517   (eval "$ac_compile") 2>conftest.er1
14518   ac_status=$?
14519   grep -v '^ *+' conftest.er1 >conftest.err
14520   rm -f conftest.er1
14521   cat conftest.err >&5
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); } && {
14524          test -z "$ac_c_werror_flag" ||
14525          test ! -s conftest.err
14526        } && test -s conftest.$ac_objext; then
14527   ac_header_compiler=yes
14528 else
14529   echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14531
14532         ac_header_compiler=no
14533 fi
14534
14535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14537 echo "${ECHO_T}$ac_header_compiler" >&6; }
14538
14539 # Is the header present?
14540 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14541 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h.  */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h.  */
14548 #include <${with_readline}/readline.h>
14549 _ACEOF
14550 if { (ac_try="$ac_cpp conftest.$ac_ext"
14551 case "(($ac_try" in
14552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553   *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14557   ac_status=$?
14558   grep -v '^ *+' conftest.er1 >conftest.err
14559   rm -f conftest.er1
14560   cat conftest.err >&5
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); } >/dev/null && {
14563          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14564          test ! -s conftest.err
14565        }; then
14566   ac_header_preproc=yes
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571   ac_header_preproc=no
14572 fi
14573
14574 rm -f conftest.err conftest.$ac_ext
14575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14576 echo "${ECHO_T}$ac_header_preproc" >&6; }
14577
14578 # So?  What about this header?
14579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14580   yes:no: )
14581     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14582 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14583     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14584 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14585     ac_header_preproc=yes
14586     ;;
14587   no:yes:* )
14588     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14589 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14590     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14591 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14592     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14593 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14594     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14595 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14596     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14597 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14598     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14599 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14600
14601     ;;
14602 esac
14603 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14604 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14606   echo $ECHO_N "(cached) $ECHO_C" >&6
14607 else
14608   eval "$as_ac_Header=\$ac_header_preproc"
14609 fi
14610 ac_res=`eval echo '${'$as_ac_Header'}'`
14611                { echo "$as_me:$LINENO: result: $ac_res" >&5
14612 echo "${ECHO_T}$ac_res" >&6; }
14613
14614 fi
14615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14616
14617 cat >>confdefs.h <<\_ACEOF
14618 #define HAVE_READLINE 1
14619 _ACEOF
14620
14621                CONS_LIBS="-lreadline -lhistory -ltermcap"
14622                got_readline="yes"
14623
14624 else
14625    echo " "
14626                echo "readline.h not found. readline turned off ..."
14627                echo " "
14628
14629
14630 fi
14631
14632
14633           ;;
14634         esac
14635
14636 else
14637
14638        # check for standard readline library
14639        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14640   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14641 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14642 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14643   echo $ECHO_N "(cached) $ECHO_C" >&6
14644 fi
14645 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14646 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14647 else
14648   # Is the header compilable?
14649 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14650 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14651 cat >conftest.$ac_ext <<_ACEOF
14652 /* confdefs.h.  */
14653 _ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h.  */
14657 $ac_includes_default
14658 #include </usr/include/readline/readline.h>
14659 _ACEOF
14660 rm -f conftest.$ac_objext
14661 if { (ac_try="$ac_compile"
14662 case "(($ac_try" in
14663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664   *) ac_try_echo=$ac_try;;
14665 esac
14666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667   (eval "$ac_compile") 2>conftest.er1
14668   ac_status=$?
14669   grep -v '^ *+' conftest.er1 >conftest.err
14670   rm -f conftest.er1
14671   cat conftest.err >&5
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); } && {
14674          test -z "$ac_c_werror_flag" ||
14675          test ! -s conftest.err
14676        } && test -s conftest.$ac_objext; then
14677   ac_header_compiler=yes
14678 else
14679   echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682         ac_header_compiler=no
14683 fi
14684
14685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14687 echo "${ECHO_T}$ac_header_compiler" >&6; }
14688
14689 # Is the header present?
14690 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14691 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14692 cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h.  */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h.  */
14698 #include </usr/include/readline/readline.h>
14699 _ACEOF
14700 if { (ac_try="$ac_cpp conftest.$ac_ext"
14701 case "(($ac_try" in
14702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703   *) ac_try_echo=$ac_try;;
14704 esac
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14707   ac_status=$?
14708   grep -v '^ *+' conftest.er1 >conftest.err
14709   rm -f conftest.er1
14710   cat conftest.err >&5
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } >/dev/null && {
14713          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14714          test ! -s conftest.err
14715        }; then
14716   ac_header_preproc=yes
14717 else
14718   echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14720
14721   ac_header_preproc=no
14722 fi
14723
14724 rm -f conftest.err conftest.$ac_ext
14725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14726 echo "${ECHO_T}$ac_header_preproc" >&6; }
14727
14728 # So?  What about this header?
14729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14730   yes:no: )
14731     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14732 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14733     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14734 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14735     ac_header_preproc=yes
14736     ;;
14737   no:yes:* )
14738     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14739 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14740     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14741 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14742     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14743 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14744     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14745 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14746     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14747 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14748     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14749 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14750
14751     ;;
14752 esac
14753 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14754 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14755 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14756   echo $ECHO_N "(cached) $ECHO_C" >&6
14757 else
14758   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14759 fi
14760 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14761 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14762
14763 fi
14764 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14765
14766 cat >>confdefs.h <<\_ACEOF
14767 #define HAVE_READLINE 1
14768 _ACEOF
14769
14770            got_readline="yes"
14771            CONS_INC="-I/usr/include/readline"
14772            CONS_LIBS="-lreadline -ltermcap"
14773
14774 else
14775
14776            # Did not find standard library, so try Bacula's default
14777             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14779   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14780 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14782   echo $ECHO_N "(cached) $ECHO_C" >&6
14783 fi
14784 ac_res=`eval echo '${'$as_ac_Header'}'`
14785                { echo "$as_me:$LINENO: result: $ac_res" >&5
14786 echo "${ECHO_T}$ac_res" >&6; }
14787 else
14788   # Is the header compilable?
14789 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14790 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14791 cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h.  */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h.  */
14797 $ac_includes_default
14798 #include <${TOP_DIR}/depkgs/readline/readline.h>
14799 _ACEOF
14800 rm -f conftest.$ac_objext
14801 if { (ac_try="$ac_compile"
14802 case "(($ac_try" in
14803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804   *) ac_try_echo=$ac_try;;
14805 esac
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807   (eval "$ac_compile") 2>conftest.er1
14808   ac_status=$?
14809   grep -v '^ *+' conftest.er1 >conftest.err
14810   rm -f conftest.er1
14811   cat conftest.err >&5
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); } && {
14814          test -z "$ac_c_werror_flag" ||
14815          test ! -s conftest.err
14816        } && test -s conftest.$ac_objext; then
14817   ac_header_compiler=yes
14818 else
14819   echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14821
14822         ac_header_compiler=no
14823 fi
14824
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14827 echo "${ECHO_T}$ac_header_compiler" >&6; }
14828
14829 # Is the header present?
14830 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14831 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14832 cat >conftest.$ac_ext <<_ACEOF
14833 /* confdefs.h.  */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h.  */
14838 #include <${TOP_DIR}/depkgs/readline/readline.h>
14839 _ACEOF
14840 if { (ac_try="$ac_cpp conftest.$ac_ext"
14841 case "(($ac_try" in
14842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843   *) ac_try_echo=$ac_try;;
14844 esac
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14847   ac_status=$?
14848   grep -v '^ *+' conftest.er1 >conftest.err
14849   rm -f conftest.er1
14850   cat conftest.err >&5
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); } >/dev/null && {
14853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14854          test ! -s conftest.err
14855        }; then
14856   ac_header_preproc=yes
14857 else
14858   echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14860
14861   ac_header_preproc=no
14862 fi
14863
14864 rm -f conftest.err conftest.$ac_ext
14865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14866 echo "${ECHO_T}$ac_header_preproc" >&6; }
14867
14868 # So?  What about this header?
14869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14870   yes:no: )
14871     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14872 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14873     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14874 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14875     ac_header_preproc=yes
14876     ;;
14877   no:yes:* )
14878     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14879 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14880     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14881 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14882     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14883 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14884     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14885 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14886     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14887 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14888     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14889 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14890
14891     ;;
14892 esac
14893 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14894 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14896   echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898   eval "$as_ac_Header=\$ac_header_preproc"
14899 fi
14900 ac_res=`eval echo '${'$as_ac_Header'}'`
14901                { echo "$as_me:$LINENO: result: $ac_res" >&5
14902 echo "${ECHO_T}$ac_res" >&6; }
14903
14904 fi
14905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14906
14907 cat >>confdefs.h <<\_ACEOF
14908 #define HAVE_READLINE 1
14909 _ACEOF
14910
14911                  got_readline="yes"
14912                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14913                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14914                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14915                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14916
14917 else
14918    echo " "
14919                 echo "readline.h not found. readline turned off ..."
14920                 echo " "
14921
14922
14923 fi
14924
14925
14926
14927
14928 fi
14929
14930
14931
14932
14933 fi
14934
14935 fi
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946 # Minimal stuff for readline Makefile configuration
14947 MAKE_SHELL=/bin/sh
14948
14949 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14950 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14951 if test "${ac_cv_header_stat_broken+set}" = set; then
14952   echo $ECHO_N "(cached) $ECHO_C" >&6
14953 else
14954   cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h.  */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h.  */
14960 #include <sys/types.h>
14961 #include <sys/stat.h>
14962
14963 #if defined S_ISBLK && defined S_IFDIR
14964 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14965 #endif
14966
14967 #if defined S_ISBLK && defined S_IFCHR
14968 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14969 #endif
14970
14971 #if defined S_ISLNK && defined S_IFREG
14972 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14973 #endif
14974
14975 #if defined S_ISSOCK && defined S_IFREG
14976 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14977 #endif
14978
14979 _ACEOF
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984   *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987   (eval "$ac_compile") 2>conftest.er1
14988   ac_status=$?
14989   grep -v '^ *+' conftest.er1 >conftest.err
14990   rm -f conftest.er1
14991   cat conftest.err >&5
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); } && {
14994          test -z "$ac_c_werror_flag" ||
14995          test ! -s conftest.err
14996        } && test -s conftest.$ac_objext; then
14997   ac_cv_header_stat_broken=no
14998 else
14999   echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002         ac_cv_header_stat_broken=yes
15003 fi
15004
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15006 fi
15007 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15008 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15009 if test $ac_cv_header_stat_broken = yes; then
15010
15011 cat >>confdefs.h <<\_ACEOF
15012 #define STAT_MACROS_BROKEN 1
15013 _ACEOF
15014
15015 fi
15016
15017
15018
15019
15020
15021
15022 ac_header_dirent=no
15023 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15024   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15025 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15026 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028   echo $ECHO_N "(cached) $ECHO_C" >&6
15029 else
15030   cat >conftest.$ac_ext <<_ACEOF
15031 /* confdefs.h.  */
15032 _ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h.  */
15036 #include <sys/types.h>
15037 #include <$ac_hdr>
15038
15039 int
15040 main ()
15041 {
15042 if ((DIR *) 0)
15043 return 0;
15044   ;
15045   return 0;
15046 }
15047 _ACEOF
15048 rm -f conftest.$ac_objext
15049 if { (ac_try="$ac_compile"
15050 case "(($ac_try" in
15051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052   *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055   (eval "$ac_compile") 2>conftest.er1
15056   ac_status=$?
15057   grep -v '^ *+' conftest.er1 >conftest.err
15058   rm -f conftest.er1
15059   cat conftest.err >&5
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } && {
15062          test -z "$ac_c_werror_flag" ||
15063          test ! -s conftest.err
15064        } && test -s conftest.$ac_objext; then
15065   eval "$as_ac_Header=yes"
15066 else
15067   echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15069
15070         eval "$as_ac_Header=no"
15071 fi
15072
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074 fi
15075 ac_res=`eval echo '${'$as_ac_Header'}'`
15076                { echo "$as_me:$LINENO: result: $ac_res" >&5
15077 echo "${ECHO_T}$ac_res" >&6; }
15078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15079   cat >>confdefs.h <<_ACEOF
15080 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15081 _ACEOF
15082
15083 ac_header_dirent=$ac_hdr; break
15084 fi
15085
15086 done
15087 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15088 if test $ac_header_dirent = dirent.h; then
15089   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15090 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15091 if test "${ac_cv_search_opendir+set}" = set; then
15092   echo $ECHO_N "(cached) $ECHO_C" >&6
15093 else
15094   ac_func_search_save_LIBS=$LIBS
15095 cat >conftest.$ac_ext <<_ACEOF
15096 /* confdefs.h.  */
15097 _ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h.  */
15101
15102 /* Override any GCC internal prototype to avoid an error.
15103    Use char because int might match the return type of a GCC
15104    builtin and then its argument prototype would still apply.  */
15105 #ifdef __cplusplus
15106 extern "C"
15107 #endif
15108 char opendir ();
15109 int
15110 main ()
15111 {
15112 return opendir ();
15113   ;
15114   return 0;
15115 }
15116 _ACEOF
15117 for ac_lib in '' dir; do
15118   if test -z "$ac_lib"; then
15119     ac_res="none required"
15120   else
15121     ac_res=-l$ac_lib
15122     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15123   fi
15124   rm -f conftest.$ac_objext conftest$ac_exeext
15125 if { (ac_try="$ac_link"
15126 case "(($ac_try" in
15127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128   *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131   (eval "$ac_link") 2>conftest.er1
15132   ac_status=$?
15133   grep -v '^ *+' conftest.er1 >conftest.err
15134   rm -f conftest.er1
15135   cat conftest.err >&5
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); } && {
15138          test -z "$ac_c_werror_flag" ||
15139          test ! -s conftest.err
15140        } && test -s conftest$ac_exeext &&
15141        $as_test_x conftest$ac_exeext; then
15142   ac_cv_search_opendir=$ac_res
15143 else
15144   echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15146
15147
15148 fi
15149
15150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15151       conftest$ac_exeext
15152   if test "${ac_cv_search_opendir+set}" = set; then
15153   break
15154 fi
15155 done
15156 if test "${ac_cv_search_opendir+set}" = set; then
15157   :
15158 else
15159   ac_cv_search_opendir=no
15160 fi
15161 rm conftest.$ac_ext
15162 LIBS=$ac_func_search_save_LIBS
15163 fi
15164 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15165 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15166 ac_res=$ac_cv_search_opendir
15167 if test "$ac_res" != no; then
15168   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15169
15170 fi
15171
15172 else
15173   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15174 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15175 if test "${ac_cv_search_opendir+set}" = set; then
15176   echo $ECHO_N "(cached) $ECHO_C" >&6
15177 else
15178   ac_func_search_save_LIBS=$LIBS
15179 cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h.  */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h.  */
15185
15186 /* Override any GCC internal prototype to avoid an error.
15187    Use char because int might match the return type of a GCC
15188    builtin and then its argument prototype would still apply.  */
15189 #ifdef __cplusplus
15190 extern "C"
15191 #endif
15192 char opendir ();
15193 int
15194 main ()
15195 {
15196 return opendir ();
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 for ac_lib in '' x; do
15202   if test -z "$ac_lib"; then
15203     ac_res="none required"
15204   else
15205     ac_res=-l$ac_lib
15206     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15207   fi
15208   rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (ac_try="$ac_link"
15210 case "(($ac_try" in
15211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212   *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215   (eval "$ac_link") 2>conftest.er1
15216   ac_status=$?
15217   grep -v '^ *+' conftest.er1 >conftest.err
15218   rm -f conftest.er1
15219   cat conftest.err >&5
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); } && {
15222          test -z "$ac_c_werror_flag" ||
15223          test ! -s conftest.err
15224        } && test -s conftest$ac_exeext &&
15225        $as_test_x conftest$ac_exeext; then
15226   ac_cv_search_opendir=$ac_res
15227 else
15228   echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15230
15231
15232 fi
15233
15234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15235       conftest$ac_exeext
15236   if test "${ac_cv_search_opendir+set}" = set; then
15237   break
15238 fi
15239 done
15240 if test "${ac_cv_search_opendir+set}" = set; then
15241   :
15242 else
15243   ac_cv_search_opendir=no
15244 fi
15245 rm conftest.$ac_ext
15246 LIBS=$ac_func_search_save_LIBS
15247 fi
15248 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15249 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15250 ac_res=$ac_cv_search_opendir
15251 if test "$ac_res" != no; then
15252   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15253
15254 fi
15255
15256 fi
15257
15258
15259
15260
15261
15262
15263
15264
15265 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15266 do
15267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15268 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15271   echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273   cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15281 #define $ac_func innocuous_$ac_func
15282
15283 /* System header to define __stub macros and hopefully few prototypes,
15284     which can conflict with char $ac_func (); below.
15285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15286     <limits.h> exists even on freestanding compilers.  */
15287
15288 #ifdef __STDC__
15289 # include <limits.h>
15290 #else
15291 # include <assert.h>
15292 #endif
15293
15294 #undef $ac_func
15295
15296 /* Override any GCC internal prototype to avoid an error.
15297    Use char because int might match the return type of a GCC
15298    builtin and then its argument prototype would still apply.  */
15299 #ifdef __cplusplus
15300 extern "C"
15301 #endif
15302 char $ac_func ();
15303 /* The GNU C library defines this for functions which it implements
15304     to always fail with ENOSYS.  Some functions are actually named
15305     something starting with __ and the normal name is an alias.  */
15306 #if defined __stub_$ac_func || defined __stub___$ac_func
15307 choke me
15308 #endif
15309
15310 int
15311 main ()
15312 {
15313 return $ac_func ();
15314   ;
15315   return 0;
15316 }
15317 _ACEOF
15318 rm -f conftest.$ac_objext conftest$ac_exeext
15319 if { (ac_try="$ac_link"
15320 case "(($ac_try" in
15321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322   *) ac_try_echo=$ac_try;;
15323 esac
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325   (eval "$ac_link") 2>conftest.er1
15326   ac_status=$?
15327   grep -v '^ *+' conftest.er1 >conftest.err
15328   rm -f conftest.er1
15329   cat conftest.err >&5
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); } && {
15332          test -z "$ac_c_werror_flag" ||
15333          test ! -s conftest.err
15334        } && test -s conftest$ac_exeext &&
15335        $as_test_x conftest$ac_exeext; then
15336   eval "$as_ac_var=yes"
15337 else
15338   echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15340
15341         eval "$as_ac_var=no"
15342 fi
15343
15344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15345       conftest$ac_exeext conftest.$ac_ext
15346 fi
15347 ac_res=`eval echo '${'$as_ac_var'}'`
15348                { echo "$as_me:$LINENO: result: $ac_res" >&5
15349 echo "${ECHO_T}$ac_res" >&6; }
15350 if test `eval echo '${'$as_ac_var'}'` = yes; then
15351   cat >>confdefs.h <<_ACEOF
15352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15353 _ACEOF
15354
15355 fi
15356 done
15357
15358
15359
15360 for ac_func in nanosleep nl_langinfo
15361 do
15362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15376 #define $ac_func innocuous_$ac_func
15377
15378 /* System header to define __stub macros and hopefully few prototypes,
15379     which can conflict with char $ac_func (); below.
15380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15381     <limits.h> exists even on freestanding compilers.  */
15382
15383 #ifdef __STDC__
15384 # include <limits.h>
15385 #else
15386 # include <assert.h>
15387 #endif
15388
15389 #undef $ac_func
15390
15391 /* Override any GCC internal prototype to avoid an error.
15392    Use char because int might match the return type of a GCC
15393    builtin and then its argument prototype would still apply.  */
15394 #ifdef __cplusplus
15395 extern "C"
15396 #endif
15397 char $ac_func ();
15398 /* The GNU C library defines this for functions which it implements
15399     to always fail with ENOSYS.  Some functions are actually named
15400     something starting with __ and the normal name is an alias.  */
15401 #if defined __stub_$ac_func || defined __stub___$ac_func
15402 choke me
15403 #endif
15404
15405 int
15406 main ()
15407 {
15408 return $ac_func ();
15409   ;
15410   return 0;
15411 }
15412 _ACEOF
15413 rm -f conftest.$ac_objext conftest$ac_exeext
15414 if { (ac_try="$ac_link"
15415 case "(($ac_try" in
15416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417   *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420   (eval "$ac_link") 2>conftest.er1
15421   ac_status=$?
15422   grep -v '^ *+' conftest.er1 >conftest.err
15423   rm -f conftest.er1
15424   cat conftest.err >&5
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); } && {
15427          test -z "$ac_c_werror_flag" ||
15428          test ! -s conftest.err
15429        } && test -s conftest$ac_exeext &&
15430        $as_test_x conftest$ac_exeext; then
15431   eval "$as_ac_var=yes"
15432 else
15433   echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15435
15436         eval "$as_ac_var=no"
15437 fi
15438
15439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15440       conftest$ac_exeext conftest.$ac_ext
15441 fi
15442 ac_res=`eval echo '${'$as_ac_var'}'`
15443                { echo "$as_me:$LINENO: result: $ac_res" >&5
15444 echo "${ECHO_T}$ac_res" >&6; }
15445 if test `eval echo '${'$as_ac_var'}'` = yes; then
15446   cat >>confdefs.h <<_ACEOF
15447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15448 _ACEOF
15449
15450 fi
15451 done
15452
15453
15454 for ac_header in varargs.h
15455 do
15456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15461   echo $ECHO_N "(cached) $ECHO_C" >&6
15462 fi
15463 ac_res=`eval echo '${'$as_ac_Header'}'`
15464                { echo "$as_me:$LINENO: result: $ac_res" >&5
15465 echo "${ECHO_T}$ac_res" >&6; }
15466 else
15467   # Is the header compilable?
15468 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15470 cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h.  */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h.  */
15476 $ac_includes_default
15477 #include <$ac_header>
15478 _ACEOF
15479 rm -f conftest.$ac_objext
15480 if { (ac_try="$ac_compile"
15481 case "(($ac_try" in
15482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483   *) ac_try_echo=$ac_try;;
15484 esac
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486   (eval "$ac_compile") 2>conftest.er1
15487   ac_status=$?
15488   grep -v '^ *+' conftest.er1 >conftest.err
15489   rm -f conftest.er1
15490   cat conftest.err >&5
15491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492   (exit $ac_status); } && {
15493          test -z "$ac_c_werror_flag" ||
15494          test ! -s conftest.err
15495        } && test -s conftest.$ac_objext; then
15496   ac_header_compiler=yes
15497 else
15498   echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15500
15501         ac_header_compiler=no
15502 fi
15503
15504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15506 echo "${ECHO_T}$ac_header_compiler" >&6; }
15507
15508 # Is the header present?
15509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15511 cat >conftest.$ac_ext <<_ACEOF
15512 /* confdefs.h.  */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h.  */
15517 #include <$ac_header>
15518 _ACEOF
15519 if { (ac_try="$ac_cpp conftest.$ac_ext"
15520 case "(($ac_try" in
15521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522   *) ac_try_echo=$ac_try;;
15523 esac
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15526   ac_status=$?
15527   grep -v '^ *+' conftest.er1 >conftest.err
15528   rm -f conftest.er1
15529   cat conftest.err >&5
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); } >/dev/null && {
15532          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15533          test ! -s conftest.err
15534        }; then
15535   ac_header_preproc=yes
15536 else
15537   echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15539
15540   ac_header_preproc=no
15541 fi
15542
15543 rm -f conftest.err conftest.$ac_ext
15544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15545 echo "${ECHO_T}$ac_header_preproc" >&6; }
15546
15547 # So?  What about this header?
15548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15549   yes:no: )
15550     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15554     ac_header_preproc=yes
15555     ;;
15556   no:yes:* )
15557     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15559     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15560 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15561     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15563     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15564 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15567     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15569
15570     ;;
15571 esac
15572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15575   echo $ECHO_N "(cached) $ECHO_C" >&6
15576 else
15577   eval "$as_ac_Header=\$ac_header_preproc"
15578 fi
15579 ac_res=`eval echo '${'$as_ac_Header'}'`
15580                { echo "$as_me:$LINENO: result: $ac_res" >&5
15581 echo "${ECHO_T}$ac_res" >&6; }
15582
15583 fi
15584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15585   cat >>confdefs.h <<_ACEOF
15586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15587 _ACEOF
15588
15589 fi
15590
15591 done
15592
15593
15594 # End of readline/conio stuff
15595 # -----------------------------------------------------------------------
15596
15597 # -----------------------------------------------------------------------
15598 #  Check for Python support
15599 #
15600 { echo "$as_me:$LINENO: checking for Python support" >&5
15601 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15602
15603 # Check whether --with-python was given.
15604 if test "${with_python+set}" = set; then
15605   withval=$with_python;
15606   PYTHON_INCDIR=
15607   PYTHON_LIBS=
15608   if test "$withval" != "no"; then
15609      if test "$withval" = "yes"; then
15610         for python_root in /usr /usr/local /usr/sfw; do
15611           for ver in python2.2 python2.3 python2.4 python2.5; do
15612              if test -f $python_root/include/${ver}/Python.h; then
15613                 PYTHON_INCDIR=-I$python_root/include/${ver}
15614                 if test -d $python_root/lib64/${ver}/config; then
15615                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15616                 else
15617                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15618                 fi
15619                 break
15620              fi
15621           done
15622         done
15623         if test x$PYTHON_INCDIR = x; then
15624           if test -f $prefix/include/Python.h; then
15625              PYTHON_INCDIR=-I$prefix/include
15626              if test -d $prefix/lib64/config; then
15627                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15628              else
15629                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15630              fi
15631           else
15632            { echo "$as_me:$LINENO: result: no" >&5
15633 echo "${ECHO_T}no" >&6; }
15634            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15635 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15636    { (exit 1); exit 1; }; }
15637           fi
15638         fi
15639      else
15640         if test -f $withval/Python.h; then
15641            PYTHON_INCDIR=-I$withval
15642            PYTHON_LIBS="-L$withval/config -lpython"
15643         elif test -f $withval/include/Python.h; then
15644            PYTHON_INCDIR=-I$withval/include
15645            if test -d $withval/lib64/config; then
15646               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15647            else
15648               PYTHON_LIBS="-L$withval/lib/config -lpython"
15649            fi
15650         elif test -f $withval/include/python/Python.h; then
15651            PYTHON_INCDIR=-I$withval/include/python
15652            if test -d $withval/lib64/python/config; then
15653               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15654            else
15655               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15656            fi
15657         else
15658            { echo "$as_me:$LINENO: result: no" >&5
15659 echo "${ECHO_T}no" >&6; }
15660            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15661 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15662    { (exit 1); exit 1; }; }
15663         fi
15664      fi
15665      cat >>confdefs.h <<\_ACEOF
15666 #define HAVE_PYTHON 1
15667 _ACEOF
15668
15669      { echo "$as_me:$LINENO: result: yes" >&5
15670 echo "${ECHO_T}yes" >&6; }
15671      support_python=yes
15672      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15673 echo "$as_me: checking for more Python libs" >&6;}
15674      saved_LIBS="$LIBS"; LIBS=
15675      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15676 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15677 if test "${ac_cv_search_shm_open+set}" = set; then
15678   echo $ECHO_N "(cached) $ECHO_C" >&6
15679 else
15680   ac_func_search_save_LIBS=$LIBS
15681 cat >conftest.$ac_ext <<_ACEOF
15682 /* confdefs.h.  */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h.  */
15687
15688 /* Override any GCC internal prototype to avoid an error.
15689    Use char because int might match the return type of a GCC
15690    builtin and then its argument prototype would still apply.  */
15691 #ifdef __cplusplus
15692 extern "C"
15693 #endif
15694 char shm_open ();
15695 int
15696 main ()
15697 {
15698 return shm_open ();
15699   ;
15700   return 0;
15701 }
15702 _ACEOF
15703 for ac_lib in '' rt; do
15704   if test -z "$ac_lib"; then
15705     ac_res="none required"
15706   else
15707     ac_res=-l$ac_lib
15708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15709   fi
15710   rm -f conftest.$ac_objext conftest$ac_exeext
15711 if { (ac_try="$ac_link"
15712 case "(($ac_try" in
15713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714   *) ac_try_echo=$ac_try;;
15715 esac
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717   (eval "$ac_link") 2>conftest.er1
15718   ac_status=$?
15719   grep -v '^ *+' conftest.er1 >conftest.err
15720   rm -f conftest.er1
15721   cat conftest.err >&5
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); } && {
15724          test -z "$ac_c_werror_flag" ||
15725          test ! -s conftest.err
15726        } && test -s conftest$ac_exeext &&
15727        $as_test_x conftest$ac_exeext; then
15728   ac_cv_search_shm_open=$ac_res
15729 else
15730   echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15732
15733
15734 fi
15735
15736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15737       conftest$ac_exeext
15738   if test "${ac_cv_search_shm_open+set}" = set; then
15739   break
15740 fi
15741 done
15742 if test "${ac_cv_search_shm_open+set}" = set; then
15743   :
15744 else
15745   ac_cv_search_shm_open=no
15746 fi
15747 rm conftest.$ac_ext
15748 LIBS=$ac_func_search_save_LIBS
15749 fi
15750 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15751 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15752 ac_res=$ac_cv_search_shm_open
15753 if test "$ac_res" != no; then
15754   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15755
15756 fi
15757
15758
15759 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15760 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15761 if test "${ac_cv_lib_util_openpty+set}" = set; then
15762   echo $ECHO_N "(cached) $ECHO_C" >&6
15763 else
15764   ac_check_lib_save_LIBS=$LIBS
15765 LIBS="-lutil  $LIBS"
15766 cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h.  */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h.  */
15772
15773 /* Override any GCC internal prototype to avoid an error.
15774    Use char because int might match the return type of a GCC
15775    builtin and then its argument prototype would still apply.  */
15776 #ifdef __cplusplus
15777 extern "C"
15778 #endif
15779 char openpty ();
15780 int
15781 main ()
15782 {
15783 return openpty ();
15784   ;
15785   return 0;
15786 }
15787 _ACEOF
15788 rm -f conftest.$ac_objext conftest$ac_exeext
15789 if { (ac_try="$ac_link"
15790 case "(($ac_try" in
15791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792   *) ac_try_echo=$ac_try;;
15793 esac
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795   (eval "$ac_link") 2>conftest.er1
15796   ac_status=$?
15797   grep -v '^ *+' conftest.er1 >conftest.err
15798   rm -f conftest.er1
15799   cat conftest.err >&5
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); } && {
15802          test -z "$ac_c_werror_flag" ||
15803          test ! -s conftest.err
15804        } && test -s conftest$ac_exeext &&
15805        $as_test_x conftest$ac_exeext; then
15806   ac_cv_lib_util_openpty=yes
15807 else
15808   echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15810
15811         ac_cv_lib_util_openpty=no
15812 fi
15813
15814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15815       conftest$ac_exeext conftest.$ac_ext
15816 LIBS=$ac_check_lib_save_LIBS
15817 fi
15818 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15819 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15820 if test $ac_cv_lib_util_openpty = yes; then
15821   cat >>confdefs.h <<_ACEOF
15822 #define HAVE_LIBUTIL 1
15823 _ACEOF
15824
15825   LIBS="-lutil $LIBS"
15826
15827 fi
15828
15829      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15830      LIBS="$saved_LIBS"
15831   else
15832      { echo "$as_me:$LINENO: result: no" >&5
15833 echo "${ECHO_T}no" >&6; }
15834   fi
15835
15836 else
15837
15838   { echo "$as_me:$LINENO: result: no" >&5
15839 echo "${ECHO_T}no" >&6; }
15840
15841 fi
15842
15843
15844
15845
15846 #
15847 # Find where sockets are (especially for Solaris)
15848 # Do this before the TCP Wrappers test since tcp wrappers
15849 # uses the socket library and some linkers are stupid.
15850 #
15851 { echo "$as_me:$LINENO: checking for socket" >&5
15852 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15853 if test "${ac_cv_func_socket+set}" = set; then
15854   echo $ECHO_N "(cached) $ECHO_C" >&6
15855 else
15856   cat >conftest.$ac_ext <<_ACEOF
15857 /* confdefs.h.  */
15858 _ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h.  */
15862 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15864 #define socket innocuous_socket
15865
15866 /* System header to define __stub macros and hopefully few prototypes,
15867     which can conflict with char socket (); below.
15868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15869     <limits.h> exists even on freestanding compilers.  */
15870
15871 #ifdef __STDC__
15872 # include <limits.h>
15873 #else
15874 # include <assert.h>
15875 #endif
15876
15877 #undef socket
15878
15879 /* Override any GCC internal prototype to avoid an error.
15880    Use char because int might match the return type of a GCC
15881    builtin and then its argument prototype would still apply.  */
15882 #ifdef __cplusplus
15883 extern "C"
15884 #endif
15885 char socket ();
15886 /* The GNU C library defines this for functions which it implements
15887     to always fail with ENOSYS.  Some functions are actually named
15888     something starting with __ and the normal name is an alias.  */
15889 #if defined __stub_socket || defined __stub___socket
15890 choke me
15891 #endif
15892
15893 int
15894 main ()
15895 {
15896 return socket ();
15897   ;
15898   return 0;
15899 }
15900 _ACEOF
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (ac_try="$ac_link"
15903 case "(($ac_try" in
15904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905   *) ac_try_echo=$ac_try;;
15906 esac
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908   (eval "$ac_link") 2>conftest.er1
15909   ac_status=$?
15910   grep -v '^ *+' conftest.er1 >conftest.err
15911   rm -f conftest.er1
15912   cat conftest.err >&5
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); } && {
15915          test -z "$ac_c_werror_flag" ||
15916          test ! -s conftest.err
15917        } && test -s conftest$ac_exeext &&
15918        $as_test_x conftest$ac_exeext; then
15919   ac_cv_func_socket=yes
15920 else
15921   echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15923
15924         ac_cv_func_socket=no
15925 fi
15926
15927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15928       conftest$ac_exeext conftest.$ac_ext
15929 fi
15930 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15931 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15932 if test $ac_cv_func_socket = yes; then
15933   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15934 echo "${ECHO_T}using libc's socket" >&6; }
15935 else
15936
15937 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15938 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15939 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15940   echo $ECHO_N "(cached) $ECHO_C" >&6
15941 else
15942   ac_check_lib_save_LIBS=$LIBS
15943 LIBS="-lxnet  $LIBS"
15944 cat >conftest.$ac_ext <<_ACEOF
15945 /* confdefs.h.  */
15946 _ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h.  */
15950
15951 /* Override any GCC internal prototype to avoid an error.
15952    Use char because int might match the return type of a GCC
15953    builtin and then its argument prototype would still apply.  */
15954 #ifdef __cplusplus
15955 extern "C"
15956 #endif
15957 char socket ();
15958 int
15959 main ()
15960 {
15961 return socket ();
15962   ;
15963   return 0;
15964 }
15965 _ACEOF
15966 rm -f conftest.$ac_objext conftest$ac_exeext
15967 if { (ac_try="$ac_link"
15968 case "(($ac_try" in
15969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970   *) ac_try_echo=$ac_try;;
15971 esac
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973   (eval "$ac_link") 2>conftest.er1
15974   ac_status=$?
15975   grep -v '^ *+' conftest.er1 >conftest.err
15976   rm -f conftest.er1
15977   cat conftest.err >&5
15978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979   (exit $ac_status); } && {
15980          test -z "$ac_c_werror_flag" ||
15981          test ! -s conftest.err
15982        } && test -s conftest$ac_exeext &&
15983        $as_test_x conftest$ac_exeext; then
15984   ac_cv_lib_xnet_socket=yes
15985 else
15986   echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15988
15989         ac_cv_lib_xnet_socket=no
15990 fi
15991
15992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15993       conftest$ac_exeext conftest.$ac_ext
15994 LIBS=$ac_check_lib_save_LIBS
15995 fi
15996 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15997 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
15998 if test $ac_cv_lib_xnet_socket = yes; then
15999   cat >>confdefs.h <<_ACEOF
16000 #define HAVE_LIBXNET 1
16001 _ACEOF
16002
16003   LIBS="-lxnet $LIBS"
16004
16005 fi
16006
16007
16008 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16009 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16010 if test "${ac_cv_lib_socket_socket+set}" = set; then
16011   echo $ECHO_N "(cached) $ECHO_C" >&6
16012 else
16013   ac_check_lib_save_LIBS=$LIBS
16014 LIBS="-lsocket  $LIBS"
16015 cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h.  */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h.  */
16021
16022 /* Override any GCC internal prototype to avoid an error.
16023    Use char because int might match the return type of a GCC
16024    builtin and then its argument prototype would still apply.  */
16025 #ifdef __cplusplus
16026 extern "C"
16027 #endif
16028 char socket ();
16029 int
16030 main ()
16031 {
16032 return socket ();
16033   ;
16034   return 0;
16035 }
16036 _ACEOF
16037 rm -f conftest.$ac_objext conftest$ac_exeext
16038 if { (ac_try="$ac_link"
16039 case "(($ac_try" in
16040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041   *) ac_try_echo=$ac_try;;
16042 esac
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044   (eval "$ac_link") 2>conftest.er1
16045   ac_status=$?
16046   grep -v '^ *+' conftest.er1 >conftest.err
16047   rm -f conftest.er1
16048   cat conftest.err >&5
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); } && {
16051          test -z "$ac_c_werror_flag" ||
16052          test ! -s conftest.err
16053        } && test -s conftest$ac_exeext &&
16054        $as_test_x conftest$ac_exeext; then
16055   ac_cv_lib_socket_socket=yes
16056 else
16057   echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16059
16060         ac_cv_lib_socket_socket=no
16061 fi
16062
16063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16064       conftest$ac_exeext conftest.$ac_ext
16065 LIBS=$ac_check_lib_save_LIBS
16066 fi
16067 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16068 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16069 if test $ac_cv_lib_socket_socket = yes; then
16070   cat >>confdefs.h <<_ACEOF
16071 #define HAVE_LIBSOCKET 1
16072 _ACEOF
16073
16074   LIBS="-lsocket $LIBS"
16075
16076 fi
16077
16078
16079 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16080 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16081 if test "${ac_cv_lib_inet_socket+set}" = set; then
16082   echo $ECHO_N "(cached) $ECHO_C" >&6
16083 else
16084   ac_check_lib_save_LIBS=$LIBS
16085 LIBS="-linet  $LIBS"
16086 cat >conftest.$ac_ext <<_ACEOF
16087 /* confdefs.h.  */
16088 _ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h.  */
16092
16093 /* Override any GCC internal prototype to avoid an error.
16094    Use char because int might match the return type of a GCC
16095    builtin and then its argument prototype would still apply.  */
16096 #ifdef __cplusplus
16097 extern "C"
16098 #endif
16099 char socket ();
16100 int
16101 main ()
16102 {
16103 return socket ();
16104   ;
16105   return 0;
16106 }
16107 _ACEOF
16108 rm -f conftest.$ac_objext conftest$ac_exeext
16109 if { (ac_try="$ac_link"
16110 case "(($ac_try" in
16111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112   *) ac_try_echo=$ac_try;;
16113 esac
16114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16115   (eval "$ac_link") 2>conftest.er1
16116   ac_status=$?
16117   grep -v '^ *+' conftest.er1 >conftest.err
16118   rm -f conftest.er1
16119   cat conftest.err >&5
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); } && {
16122          test -z "$ac_c_werror_flag" ||
16123          test ! -s conftest.err
16124        } && test -s conftest$ac_exeext &&
16125        $as_test_x conftest$ac_exeext; then
16126   ac_cv_lib_inet_socket=yes
16127 else
16128   echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16130
16131         ac_cv_lib_inet_socket=no
16132 fi
16133
16134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16135       conftest$ac_exeext conftest.$ac_ext
16136 LIBS=$ac_check_lib_save_LIBS
16137 fi
16138 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16139 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16140 if test $ac_cv_lib_inet_socket = yes; then
16141   cat >>confdefs.h <<_ACEOF
16142 #define HAVE_LIBINET 1
16143 _ACEOF
16144
16145   LIBS="-linet $LIBS"
16146
16147 fi
16148
16149 fi
16150
16151
16152
16153 # -----------------------------------------------------------
16154 # Check whether user wants TCP wrappers support (default off)
16155 # -----------------------------------------------------------
16156 TCPW_MSG="no"
16157 WRAPLIBS=""
16158
16159 # Check whether --with-tcp-wrappers was given.
16160 if test "${with_tcp_wrappers+set}" = set; then
16161   withval=$with_tcp_wrappers;
16162     if test "x$withval" != "xno" ; then
16163        saved_LIBS="$LIBS"
16164        LIBS="$saved_LIBS -lwrap"
16165        { echo "$as_me:$LINENO: checking for libwrap" >&5
16166 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16167        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16168 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16169 if test "${ac_cv_search_nanosleep+set}" = set; then
16170   echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172   ac_func_search_save_LIBS=$LIBS
16173 cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h.  */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h.  */
16179
16180 /* Override any GCC internal prototype to avoid an error.
16181    Use char because int might match the return type of a GCC
16182    builtin and then its argument prototype would still apply.  */
16183 #ifdef __cplusplus
16184 extern "C"
16185 #endif
16186 char nanosleep ();
16187 int
16188 main ()
16189 {
16190 return nanosleep ();
16191   ;
16192   return 0;
16193 }
16194 _ACEOF
16195 for ac_lib in '' rt; do
16196   if test -z "$ac_lib"; then
16197     ac_res="none required"
16198   else
16199     ac_res=-l$ac_lib
16200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16201   fi
16202   rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (ac_try="$ac_link"
16204 case "(($ac_try" in
16205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206   *) ac_try_echo=$ac_try;;
16207 esac
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209   (eval "$ac_link") 2>conftest.er1
16210   ac_status=$?
16211   grep -v '^ *+' conftest.er1 >conftest.err
16212   rm -f conftest.er1
16213   cat conftest.err >&5
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } && {
16216          test -z "$ac_c_werror_flag" ||
16217          test ! -s conftest.err
16218        } && test -s conftest$ac_exeext &&
16219        $as_test_x conftest$ac_exeext; then
16220   ac_cv_search_nanosleep=$ac_res
16221 else
16222   echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16224
16225
16226 fi
16227
16228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16229       conftest$ac_exeext
16230   if test "${ac_cv_search_nanosleep+set}" = set; then
16231   break
16232 fi
16233 done
16234 if test "${ac_cv_search_nanosleep+set}" = set; then
16235   :
16236 else
16237   ac_cv_search_nanosleep=no
16238 fi
16239 rm conftest.$ac_ext
16240 LIBS=$ac_func_search_save_LIBS
16241 fi
16242 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16243 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16244 ac_res=$ac_cv_search_nanosleep
16245 if test "$ac_res" != no; then
16246   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16247
16248 fi
16249
16250        cat >conftest.$ac_ext <<_ACEOF
16251 /* confdefs.h.  */
16252 _ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h.  */
16256  #include <sys/types.h>
16257             #include <tcpd.h>
16258              int deny_severity = 0;
16259              int allow_severity = 0;
16260              struct request_info *req;
16261 int
16262 main ()
16263 {
16264  hosts_access(req);
16265   ;
16266   return 0;
16267 }
16268 _ACEOF
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (ac_try="$ac_link"
16271 case "(($ac_try" in
16272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273   *) ac_try_echo=$ac_try;;
16274 esac
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276   (eval "$ac_link") 2>conftest.er1
16277   ac_status=$?
16278   grep -v '^ *+' conftest.er1 >conftest.err
16279   rm -f conftest.er1
16280   cat conftest.err >&5
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); } && {
16283          test -z "$ac_c_werror_flag" ||
16284          test ! -s conftest.err
16285        } && test -s conftest$ac_exeext &&
16286        $as_test_x conftest$ac_exeext; then
16287
16288             { echo "$as_me:$LINENO: result: yes" >&5
16289 echo "${ECHO_T}yes" >&6; }
16290
16291 cat >>confdefs.h <<\_ACEOF
16292 #define HAVE_LIBWRAP 1
16293 _ACEOF
16294
16295             TCPW_MSG="yes"
16296             LIBS="$saved_LIBS"
16297             WRAPLIBS="-lwrap"
16298
16299 else
16300   echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303
16304             LIBS="$saved_LIBS -lwrap -lnsl"
16305             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16306             cat >conftest.$ac_ext <<_ACEOF
16307 /* confdefs.h.  */
16308 _ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h.  */
16312  #include <sys/types.h>
16313                  #include <tcpd.h>
16314                  int deny_severity = 0;
16315                  int allow_severity = 0;
16316                  struct request_info *req;
16317 int
16318 main ()
16319 {
16320  hosts_access(req);
16321   ;
16322   return 0;
16323 }
16324 _ACEOF
16325 rm -f conftest.$ac_objext conftest$ac_exeext
16326 if { (ac_try="$ac_link"
16327 case "(($ac_try" in
16328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329   *) ac_try_echo=$ac_try;;
16330 esac
16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332   (eval "$ac_link") 2>conftest.er1
16333   ac_status=$?
16334   grep -v '^ *+' conftest.er1 >conftest.err
16335   rm -f conftest.er1
16336   cat conftest.err >&5
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); } && {
16339          test -z "$ac_c_werror_flag" ||
16340          test ! -s conftest.err
16341        } && test -s conftest$ac_exeext &&
16342        $as_test_x conftest$ac_exeext; then
16343
16344                  { echo "$as_me:$LINENO: result: yes" >&5
16345 echo "${ECHO_T}yes" >&6; }
16346
16347 cat >>confdefs.h <<\_ACEOF
16348 #define HAVE_LIBWRAP 1
16349 _ACEOF
16350
16351                  TCPW_MSG="yes"
16352                  LIBS="$saved_LIBS"
16353                  WRAPLIBS="-lwrap"
16354
16355 else
16356   echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16358
16359         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16360 echo "$as_me: error: *** libwrap missing" >&2;}
16361    { (exit 1); exit 1; }; }
16362
16363 fi
16364
16365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16366       conftest$ac_exeext conftest.$ac_ext
16367
16368 fi
16369
16370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16371       conftest$ac_exeext conftest.$ac_ext
16372     fi
16373
16374
16375 fi
16376
16377
16378 # -----------------------------------------------------------
16379 # Check whether OpenSSL is available
16380 # -----------------------------------------------------------
16381 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16382 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16383
16384 # Check whether --with-openssl was given.
16385 if test "${with_openssl+set}" = set; then
16386   withval=$with_openssl; with_openssl_directory=${withval}
16387 fi
16388
16389
16390 if test "x$with_openssl_directory" != "x"; then
16391         OPENSSL_LIBS="-lssl -lcrypto"
16392         OPENSSL_INC=""
16393
16394         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16395                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16396                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16397         fi
16398
16399         saved_LIBS="${LIBS}"
16400         saved_CFLAGS="${CFLAGS}"
16401         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16402         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16403
16404         cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h.  */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h.  */
16410  #include <openssl/ssl.h>
16411 int
16412 main ()
16413 {
16414  CRYPTO_set_id_callback(NULL);
16415   ;
16416   return 0;
16417 }
16418 _ACEOF
16419 rm -f conftest.$ac_objext conftest$ac_exeext
16420 if { (ac_try="$ac_link"
16421 case "(($ac_try" in
16422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423   *) ac_try_echo=$ac_try;;
16424 esac
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426   (eval "$ac_link") 2>conftest.er1
16427   ac_status=$?
16428   grep -v '^ *+' conftest.er1 >conftest.err
16429   rm -f conftest.er1
16430   cat conftest.err >&5
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); } && {
16433          test -z "$ac_c_werror_flag" ||
16434          test ! -s conftest.err
16435        } && test -s conftest$ac_exeext &&
16436        $as_test_x conftest$ac_exeext; then
16437
16438                         support_tls="yes"
16439                         support_crypto="yes"
16440
16441 else
16442   echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16444
16445          support_tls="no"
16446
16447 fi
16448
16449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16450       conftest$ac_exeext conftest.$ac_ext
16451
16452         cat >conftest.$ac_ext <<_ACEOF
16453 /* confdefs.h.  */
16454 _ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h.  */
16458  #include <openssl/evp.h>
16459 int
16460 main ()
16461 {
16462  EVP_sha512();
16463   ;
16464   return 0;
16465 }
16466 _ACEOF
16467 rm -f conftest.$ac_objext conftest$ac_exeext
16468 if { (ac_try="$ac_link"
16469 case "(($ac_try" in
16470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471   *) ac_try_echo=$ac_try;;
16472 esac
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474   (eval "$ac_link") 2>conftest.er1
16475   ac_status=$?
16476   grep -v '^ *+' conftest.er1 >conftest.err
16477   rm -f conftest.er1
16478   cat conftest.err >&5
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); } && {
16481          test -z "$ac_c_werror_flag" ||
16482          test ! -s conftest.err
16483        } && test -s conftest$ac_exeext &&
16484        $as_test_x conftest$ac_exeext; then
16485    ac_cv_openssl_sha2="yes"
16486 else
16487   echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16489
16490          ac_cv_openssl_sha2="no"
16491
16492 fi
16493
16494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16495       conftest$ac_exeext conftest.$ac_ext
16496
16497         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16498         # implementation, presumably for export reasons. If 192bit AES
16499         # is available, we assume that we're running with a 'non-export'
16500         # openssl library.
16501         cat >conftest.$ac_ext <<_ACEOF
16502 /* confdefs.h.  */
16503 _ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h.  */
16507  #include <openssl/evp.h>
16508 int
16509 main ()
16510 {
16511  EVP_aes_192_cbc();
16512   ;
16513   return 0;
16514 }
16515 _ACEOF
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (ac_try="$ac_link"
16518 case "(($ac_try" in
16519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520   *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523   (eval "$ac_link") 2>conftest.er1
16524   ac_status=$?
16525   grep -v '^ *+' conftest.er1 >conftest.err
16526   rm -f conftest.er1
16527   cat conftest.err >&5
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); } && {
16530          test -z "$ac_c_werror_flag" ||
16531          test ! -s conftest.err
16532        } && test -s conftest$ac_exeext &&
16533        $as_test_x conftest$ac_exeext; then
16534    ac_cv_openssl_export="no"
16535 else
16536   echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16538
16539          ac_cv_openssl_export="yes"
16540
16541 fi
16542
16543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16544       conftest$ac_exeext conftest.$ac_ext
16545
16546         LIBS="${saved_LIBS}"
16547         CFLAGS="${saved_CFLAGS}"
16548
16549         if test "$support_tls" = "yes"; then
16550
16551 cat >>confdefs.h <<\_ACEOF
16552 #define HAVE_OPENSSL 1
16553 _ACEOF
16554
16555
16556 cat >>confdefs.h <<\_ACEOF
16557 #define HAVE_TLS 1
16558 _ACEOF
16559
16560
16561 cat >>confdefs.h <<\_ACEOF
16562 #define HAVE_CRYPTO 1
16563 _ACEOF
16564
16565         fi
16566
16567         if test "$ac_cv_openssl_sha2" = "yes"; then
16568
16569 cat >>confdefs.h <<\_ACEOF
16570 #define HAVE_SHA2 1
16571 _ACEOF
16572
16573         fi
16574
16575         if test "$ac_cv_openssl_export" = "yes"; then
16576
16577 cat >>confdefs.h <<\_ACEOF
16578 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16579 _ACEOF
16580
16581         fi
16582 else
16583         support_tls="no"
16584         support_crypto="no"
16585         OPENSSL_LIBS=""
16586         OPENSSL_INC=""
16587 fi
16588
16589 { echo "$as_me:$LINENO: result: $support_tls" >&5
16590 echo "${ECHO_T}$support_tls" >&6; }
16591
16592
16593
16594
16595 # -----------------------------------------------------------
16596 # dlopen is needed for plugins
16597 # -----------------------------------------------------------
16598 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16599 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16600 if test "${ac_cv_search_dlopen+set}" = set; then
16601   echo $ECHO_N "(cached) $ECHO_C" >&6
16602 else
16603   ac_func_search_save_LIBS=$LIBS
16604 cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h.  */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h.  */
16610
16611 /* Override any GCC internal prototype to avoid an error.
16612    Use char because int might match the return type of a GCC
16613    builtin and then its argument prototype would still apply.  */
16614 #ifdef __cplusplus
16615 extern "C"
16616 #endif
16617 char dlopen ();
16618 int
16619 main ()
16620 {
16621 return dlopen ();
16622   ;
16623   return 0;
16624 }
16625 _ACEOF
16626 for ac_lib in '' dl; do
16627   if test -z "$ac_lib"; then
16628     ac_res="none required"
16629   else
16630     ac_res=-l$ac_lib
16631     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16632   fi
16633   rm -f conftest.$ac_objext conftest$ac_exeext
16634 if { (ac_try="$ac_link"
16635 case "(($ac_try" in
16636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637   *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640   (eval "$ac_link") 2>conftest.er1
16641   ac_status=$?
16642   grep -v '^ *+' conftest.er1 >conftest.err
16643   rm -f conftest.er1
16644   cat conftest.err >&5
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } && {
16647          test -z "$ac_c_werror_flag" ||
16648          test ! -s conftest.err
16649        } && test -s conftest$ac_exeext &&
16650        $as_test_x conftest$ac_exeext; then
16651   ac_cv_search_dlopen=$ac_res
16652 else
16653   echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656
16657 fi
16658
16659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16660       conftest$ac_exeext
16661   if test "${ac_cv_search_dlopen+set}" = set; then
16662   break
16663 fi
16664 done
16665 if test "${ac_cv_search_dlopen+set}" = set; then
16666   :
16667 else
16668   ac_cv_search_dlopen=no
16669 fi
16670 rm conftest.$ac_ext
16671 LIBS=$ac_func_search_save_LIBS
16672 fi
16673 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16674 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16675 ac_res=$ac_cv_search_dlopen
16676 if test "$ac_res" != no; then
16677   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16678
16679 fi
16680
16681
16682 # ------------------------------------------
16683 # Where to place working dir
16684 # ------------------------------------------
16685 working_dir=`eval echo ${prefix}/var/bacula/working`
16686
16687 # Check whether --with-working-dir was given.
16688 if test "${with_working_dir+set}" = set; then
16689   withval=$with_working_dir;
16690        if test "x$withval" != "xno" ; then
16691               working_dir=$withval
16692        fi
16693
16694
16695 fi
16696
16697
16698
16699
16700 # ------------------------------------------------------------------
16701 # If the user has not set archivedir, we set our default as /tmp
16702 # ------------------------------------------------------------------
16703 archive_dir=/tmp
16704
16705 # Check whether --with-archivedir was given.
16706 if test "${with_archivedir+set}" = set; then
16707   withval=$with_archivedir;
16708        if test "x$withval" != "xno" ; then
16709               archivedir=$withval
16710        fi
16711
16712
16713 fi
16714
16715
16716
16717
16718
16719
16720 # ------------------------------------------
16721 # Where to place scriptdir (script files)
16722 # ------------------------------------------
16723 scriptdir=`eval echo ${sysconfdir}`
16724
16725 # Check whether --with-scriptdir was given.
16726 if test "${with_scriptdir+set}" = set; then
16727   withval=$with_scriptdir;
16728        if test "x$withval" != "xno" ; then
16729               scriptdir=$withval
16730        fi
16731
16732
16733 fi
16734
16735
16736
16737
16738
16739 # ------------------------------------------
16740 # Where to place plugindir (script files)
16741 # ------------------------------------------
16742 plugindir=`eval echo ${sysconfdir}`
16743
16744 # Check whether --with-plugindir was given.
16745 if test "${with_plugindir+set}" = set; then
16746   withval=$with_plugindir;
16747        if test "x$withval" != "xno" ; then
16748               plugindir=$withval
16749        fi
16750
16751
16752 fi
16753
16754
16755
16756
16757
16758 # ------------------------------------------
16759 # Where to send dump email
16760 # ------------------------------------------
16761 dump_email=root@localhost
16762
16763 # Check whether --with-dump-email was given.
16764 if test "${with_dump_email+set}" = set; then
16765   withval=$with_dump_email;
16766        if test "x$withval" != "xno" ; then
16767               dump_email=$withval
16768        fi
16769
16770
16771 fi
16772
16773
16774
16775
16776 # ------------------------------------------
16777 # Where to send job email
16778 # ------------------------------------------
16779 job_email=root@localhost
16780
16781 # Check whether --with-job-email was given.
16782 if test "${with_job_email+set}" = set; then
16783   withval=$with_job_email;
16784        if test "x$withval" != "xno" ; then
16785               job_email=$withval
16786        fi
16787
16788
16789 fi
16790
16791
16792
16793
16794 # ------------------------------------------
16795 # Where to find smtp host
16796 # ------------------------------------------
16797 smtp_host=localhost
16798
16799 # Check whether --with-smtp_host was given.
16800 if test "${with_smtp_host+set}" = set; then
16801   withval=$with_smtp_host;
16802        if test "x$withval" != "xno" ; then
16803               smtp_host=$withval
16804        fi
16805
16806
16807 fi
16808
16809
16810
16811
16812
16813 # ------------------------------------
16814 # Where to place pid files
16815 # ------------------------------------
16816 piddir=/var/run
16817
16818 # Check whether --with-pid-dir was given.
16819 if test "${with_pid_dir+set}" = set; then
16820   withval=$with_pid_dir;
16821         if test "x$withval" != "xno" ; then
16822             piddir=$withval
16823         fi
16824
16825
16826 fi
16827
16828
16829 cat >>confdefs.h <<_ACEOF
16830 #define _PATH_BACULA_PIDDIR "$piddir"
16831 _ACEOF
16832
16833
16834
16835
16836 # ------------------------------------
16837 # Where to place subsys "lock file"
16838 # ------------------------------------
16839 subsysdir=/var/run/subsys
16840 if test -d /var/run/subsys; then
16841    subsysdir=/var/run/subsys
16842 elif test -d /var/lock/subsys; then
16843    subsysdir=/var/lock/subsys
16844 else
16845    subsysdir=/var/run/subsys
16846 fi
16847
16848 # Check whether --with-subsys-dir was given.
16849 if test "${with_subsys_dir+set}" = set; then
16850   withval=$with_subsys_dir;
16851         if test "x$withval" != "xno" ; then
16852             subsysdir=$withval
16853         fi
16854
16855
16856 fi
16857
16858
16859
16860
16861
16862
16863 # ------------------------------------
16864 # Where to start assigning ports
16865 # ------------------------------------
16866 baseport=9101
16867
16868 # Check whether --with-baseport was given.
16869 if test "${with_baseport+set}" = set; then
16870   withval=$with_baseport;
16871         if test "x$withval" != "xno" ; then
16872              baseport=$withval
16873         fi
16874
16875
16876 fi
16877
16878
16879
16880 dir_port=`expr $baseport`
16881 fd_port=`expr $baseport + 1`
16882 sd_port=`expr $fd_port + 1`
16883
16884
16885
16886
16887
16888
16889 # ------------------------------------------
16890 # Generate passwords
16891 # ------------------------------------------
16892 dir_password=
16893
16894 # Check whether --with-dir-password was given.
16895 if test "${with_dir_password+set}" = set; then
16896   withval=$with_dir_password;
16897        if test "x$withval" != "xno" ; then
16898            dir_password=$withval
16899        fi
16900
16901
16902 fi
16903
16904
16905 if test "x$dir_password" = "x" ; then
16906    if test "x$OPENSSL" = "xnone" ; then
16907       key=`autoconf/randpass 33`
16908    else
16909       key=`openssl rand -base64 33`
16910    fi
16911    dir_password=$key
16912 fi
16913
16914 fd_password=
16915
16916 # Check whether --with-fd-password was given.
16917 if test "${with_fd_password+set}" = set; then
16918   withval=$with_fd_password;
16919        if test "x$withval" != "xno" ; then
16920            fd_password=$withval
16921        fi
16922
16923
16924 fi
16925
16926
16927 if test "x$fd_password" = "x" ; then
16928    if test "x$OPENSSL" = "xnone" ; then
16929       key=`autoconf/randpass 37`
16930    else
16931       key=`openssl rand -base64 33`
16932    fi
16933    fd_password=$key
16934 fi
16935
16936 sd_password=
16937
16938 # Check whether --with-sd-password was given.
16939 if test "${with_sd_password+set}" = set; then
16940   withval=$with_sd_password;
16941        if test "x$withval" != "xno" ; then
16942            sd_password=$withval
16943        fi
16944
16945
16946 fi
16947
16948
16949 if test "x$sd_password" = "x" ; then
16950    if test "x$OPENSSL" = "xnone" ; then
16951       key=`autoconf/randpass 41`
16952    else
16953       key=`openssl rand -base64 33`
16954    fi
16955    sd_password=$key
16956 fi
16957
16958 mon_dir_password=
16959
16960 # Check whether --with-mon-dir-password was given.
16961 if test "${with_mon_dir_password+set}" = set; then
16962   withval=$with_mon_dir_password;
16963        if test "x$withval" != "xno" ; then
16964            mon_dir_password=$withval
16965        fi
16966
16967
16968 fi
16969
16970
16971 if test "x$mon_dir_password" = "x" ; then
16972    if test "x$OPENSSL" = "xnone" ; then
16973       key=`autoconf/randpass 33`
16974    else
16975       key=`openssl rand -base64 33`
16976    fi
16977    mon_dir_password=$key
16978 fi
16979
16980 mon_fd_password=
16981
16982 # Check whether --with-mon-fd-password was given.
16983 if test "${with_mon_fd_password+set}" = set; then
16984   withval=$with_mon_fd_password;
16985        if test "x$withval" != "xno" ; then
16986            mon_fd_password=$withval
16987        fi
16988
16989
16990 fi
16991
16992
16993 if test "x$mon_fd_password" = "x" ; then
16994    if test "x$OPENSSL" = "xnone" ; then
16995       key=`autoconf/randpass 37`
16996    else
16997       key=`openssl rand -base64 33`
16998    fi
16999    mon_fd_password=$key
17000 fi
17001
17002 mon_sd_password=
17003
17004 # Check whether --with-mon-sd-password was given.
17005 if test "${with_mon_sd_password+set}" = set; then
17006   withval=$with_mon_sd_password;
17007        if test "x$withval" != "xno" ; then
17008            mon_sd_password=$withval
17009        fi
17010
17011
17012 fi
17013
17014
17015 if test "x$mon_sd_password" = "x" ; then
17016    if test "x$OPENSSL" = "xnone" ; then
17017       key=`autoconf/randpass 41`
17018    else
17019       key=`openssl rand -base64 33`
17020    fi
17021    mon_sd_password=$key
17022 fi
17023
17024
17025
17026
17027
17028
17029
17030
17031 #
17032 # Pickup any database name
17033 #
17034 db_name=bacula
17035
17036 # Check whether --with-db_name was given.
17037 if test "${with_db_name+set}" = set; then
17038   withval=$with_db_name;
17039         if test "x$withval" != "x" ; then
17040              db_name=$withval
17041         fi
17042
17043
17044 fi
17045
17046
17047
17048 db_user=bacula
17049
17050 # Check whether --with-db_user was given.
17051 if test "${with_db_user+set}" = set; then
17052   withval=$with_db_user;
17053         if test "x$withval" != "x" ; then
17054              db_user=$withval
17055         fi
17056
17057
17058 fi
17059
17060
17061
17062 db_password=
17063
17064 # Check whether --with-db_password was given.
17065 if test "${with_db_password+set}" = set; then
17066   withval=$with_db_password;
17067         if test "x$withval" != "x" ; then
17068              db_password=$withval
17069         fi
17070
17071
17072 fi
17073
17074
17075
17076 #
17077 # Pickup a database port
17078 #
17079 db_port=" "
17080
17081 # Check whether --with-db_port was given.
17082 if test "${with_db_port+set}" = set; then
17083   withval=$with_db_port;
17084         if test "x$withval" != "x" ; then
17085              db_port=$withval
17086         fi
17087
17088
17089 fi
17090
17091
17092
17093 #
17094 # Handle users and groups for each daemon
17095 #
17096 dir_user=
17097
17098 # Check whether --with-dir_user was given.
17099 if test "${with_dir_user+set}" = set; then
17100   withval=$with_dir_user;
17101         if test "x$withval" != "x" ; then
17102              dir_user=$withval
17103         fi
17104
17105
17106 fi
17107
17108
17109 dir_group=
17110
17111 # Check whether --with-dir_group was given.
17112 if test "${with_dir_group+set}" = set; then
17113   withval=$with_dir_group;
17114         if test "x$withval" != "x" ; then
17115              dir_group=$withval
17116         fi
17117
17118
17119 fi
17120
17121
17122 sd_user=
17123
17124 # Check whether --with-sd_user was given.
17125 if test "${with_sd_user+set}" = set; then
17126   withval=$with_sd_user;
17127         if test "x$withval" != "x" ; then
17128              sd_user=$withval
17129         fi
17130
17131
17132 fi
17133
17134
17135 sd_group=
17136
17137 # Check whether --with-sd_group was given.
17138 if test "${with_sd_group+set}" = set; then
17139   withval=$with_sd_group;
17140         if test "x$withval" != "x" ; then
17141              sd_group=$withval
17142         fi
17143
17144
17145 fi
17146
17147
17148 fd_user=
17149
17150 # Check whether --with-fd_user was given.
17151 if test "${with_fd_user+set}" = set; then
17152   withval=$with_fd_user;
17153         if test "x$withval" != "x" ; then
17154              fd_user=$withval
17155         fi
17156
17157
17158 fi
17159
17160
17161 fd_group=
17162
17163 # Check whether --with-fd_group was given.
17164 if test "${with_fd_group+set}" = set; then
17165   withval=$with_fd_group;
17166         if test "x$withval" != "x" ; then
17167              fd_group=$withval
17168         fi
17169
17170
17171 fi
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181 #
17182 # allow setting default executable permissions
17183 #
17184 SBINPERM=0754
17185
17186 # Check whether --with-sbin-perm was given.
17187 if test "${with_sbin_perm+set}" = set; then
17188   withval=$with_sbin_perm;
17189         if test "x$withval" != "x" ; then
17190             SBINPERM=$withval
17191         fi
17192
17193
17194 fi
17195
17196
17197
17198
17199 # ------------------------------------------------
17200 # Bacula check for various SQL database engines
17201 # ------------------------------------------------
17202 SQL_LIB=
17203 BA_CHECK_POSTGRESQL_DB
17204
17205 BA_CHECK_MYSQL_DB
17206
17207 BA_CHECK_SQLITE3_DB
17208
17209 BA_CHECK_SQLITE_DB
17210
17211 BA_CHECK_DBI_DB
17212
17213 BA_CHECK_DBI_DRIVER
17214
17215
17216
17217
17218 # -------------------------------------------
17219 # enable batch attribute DB insert (default on)
17220 # -------------------------------------------
17221 support_batch_insert=no
17222 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17223 pkg=$?
17224 if test $pkg = 0; then
17225    support_batch_insert=yes
17226    # Check whether --enable-batch-insert was given.
17227 if test "${enable_batch_insert+set}" = set; then
17228   enableval=$enable_batch_insert; if test x$enableval = xno; then
17229        support_batch_insert=no
17230       else
17231        support_batch_insert=yes
17232      fi
17233 fi
17234
17235 fi
17236
17237 # Check if postgresql support batch mode
17238 if test x$DB_TYPE = xpostgresql; then
17239    A=`nm $SQL_LIB | grep PQputCopyData`
17240    pkg=$?
17241    if test $pkg != 0; then
17242       support_batch_insert=no
17243    fi
17244 fi
17245
17246 if test x$DB_TYPE = xdbi; then
17247    DB_TYPE=$DB_PROG
17248    db_type=$DB_PROG
17249    pkg=1
17250    # Check for batch insert
17251    if test $DB_PROG = postgresql; then
17252       A=`nm $DB_PROG_LIB | grep PQputCopyData`
17253       pkg=$?
17254    fi
17255
17256    if test $DB_PROG = mysql; then
17257       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
17258       pkg=$?
17259    fi
17260
17261    if test $DB_PROG = sqlite3; then
17262       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
17263       pkg=$?
17264    fi
17265
17266    if test $pkg = 0; then
17267       # Check whether --enable-batch-insert was given.
17268 if test "${enable_batch_insert+set}" = set; then
17269   enableval=$enable_batch_insert; if test x$enableval = xno; then
17270          support_batch_insert=no
17271        else
17272          support_batch_insert=yes
17273       fi
17274 fi
17275
17276    fi
17277 else
17278 # If dbi was not chosen, let the comment in file
17279 uncomment_dbi="#"
17280 fi
17281
17282
17283
17284 if test $support_batch_insert = yes ; then
17285
17286 cat >>confdefs.h <<\_ACEOF
17287 #define HAVE_BATCH_FILE_INSERT 1
17288 _ACEOF
17289
17290 fi
17291
17292
17293 cat >>confdefs.h <<\_ACEOF
17294 #define PROTOTYPES 1
17295 _ACEOF
17296
17297
17298 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17299     if test -z "$CCOPTS"; then
17300         CCOPTS='-g -O2 -Wall'
17301     fi
17302     CFLAGS="$CCOPTS"
17303 fi
17304
17305
17306
17307
17308 largefile_support="no"
17309
17310    # Check whether --enable-largefile was given.
17311 if test "${enable_largefile+set}" = set; then
17312   enableval=$enable_largefile;
17313 fi
17314
17315    if test "$enable_largefile" != no; then
17316      if test -n "$ac_tool_prefix"; then
17317   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17318 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17321 if test "${ac_cv_prog_GETCONF+set}" = set; then
17322   echo $ECHO_N "(cached) $ECHO_C" >&6
17323 else
17324   if test -n "$GETCONF"; then
17325   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17326 else
17327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17328 for as_dir in $PATH
17329 do
17330   IFS=$as_save_IFS
17331   test -z "$as_dir" && as_dir=.
17332   for ac_exec_ext in '' $ac_executable_extensions; do
17333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17334     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17336     break 2
17337   fi
17338 done
17339 done
17340 IFS=$as_save_IFS
17341
17342 fi
17343 fi
17344 GETCONF=$ac_cv_prog_GETCONF
17345 if test -n "$GETCONF"; then
17346   { echo "$as_me:$LINENO: result: $GETCONF" >&5
17347 echo "${ECHO_T}$GETCONF" >&6; }
17348 else
17349   { echo "$as_me:$LINENO: result: no" >&5
17350 echo "${ECHO_T}no" >&6; }
17351 fi
17352
17353
17354 fi
17355 if test -z "$ac_cv_prog_GETCONF"; then
17356   ac_ct_GETCONF=$GETCONF
17357   # Extract the first word of "getconf", so it can be a program name with args.
17358 set dummy getconf; ac_word=$2
17359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17361 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17362   echo $ECHO_N "(cached) $ECHO_C" >&6
17363 else
17364   if test -n "$ac_ct_GETCONF"; then
17365   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17366 else
17367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17368 for as_dir in $PATH
17369 do
17370   IFS=$as_save_IFS
17371   test -z "$as_dir" && as_dir=.
17372   for ac_exec_ext in '' $ac_executable_extensions; do
17373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17374     ac_cv_prog_ac_ct_GETCONF="getconf"
17375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17376     break 2
17377   fi
17378 done
17379 done
17380 IFS=$as_save_IFS
17381
17382 fi
17383 fi
17384 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17385 if test -n "$ac_ct_GETCONF"; then
17386   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17387 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
17388 else
17389   { echo "$as_me:$LINENO: result: no" >&5
17390 echo "${ECHO_T}no" >&6; }
17391 fi
17392
17393   if test "x$ac_ct_GETCONF" = x; then
17394     GETCONF=""
17395   else
17396     case $cross_compiling:$ac_tool_warned in
17397 yes:)
17398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17399 whose name does not start with the host triplet.  If you think this
17400 configuration is useful to you, please write to autoconf@gnu.org." >&5
17401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17402 whose name does not start with the host triplet.  If you think this
17403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17404 ac_tool_warned=yes ;;
17405 esac
17406     GETCONF=$ac_ct_GETCONF
17407   fi
17408 else
17409   GETCONF="$ac_cv_prog_GETCONF"
17410 fi
17411
17412      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17413 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
17414 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17415   echo $ECHO_N "(cached) $ECHO_C" >&6
17416 else
17417   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17418         ac_cv_sys_largefile_CFLAGS=no
17419         case "$host_os" in
17420            # IRIX 6.2 and later require cc -n32.
17421            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17422              if test "$GCC" != yes; then
17423                ac_cv_sys_largefile_CFLAGS=-n32
17424              fi
17425              ac_save_CC="$CC"
17426              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17427              cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h.  */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h.  */
17433
17434 int
17435 main ()
17436 {
17437
17438   ;
17439   return 0;
17440 }
17441 _ACEOF
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446   *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449   (eval "$ac_link") 2>conftest.er1
17450   ac_status=$?
17451   grep -v '^ *+' conftest.er1 >conftest.err
17452   rm -f conftest.er1
17453   cat conftest.err >&5
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); } && {
17456          test -z "$ac_c_werror_flag" ||
17457          test ! -s conftest.err
17458        } && test -s conftest$ac_exeext &&
17459        $as_test_x conftest$ac_exeext; then
17460   :
17461 else
17462   echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464
17465         ac_cv_sys_largefile_CFLAGS=no
17466 fi
17467
17468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17469       conftest$ac_exeext conftest.$ac_ext
17470              CC="$ac_save_CC"
17471            esac
17472       }
17473 fi
17474 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17475 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
17476      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17477 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
17478 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17479   echo $ECHO_N "(cached) $ECHO_C" >&6
17480 else
17481   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17482         ac_cv_sys_largefile_LDFLAGS=no
17483
17484       }
17485 fi
17486 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17487 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
17488      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17489 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
17490 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17491   echo $ECHO_N "(cached) $ECHO_C" >&6
17492 else
17493   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17494         ac_cv_sys_largefile_LIBS=no
17495
17496       }
17497 fi
17498 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17499 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
17500
17501      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17502        case "$ac_flag" in
17503        no) ;;
17504        -D_FILE_OFFSET_BITS=*) ;;
17505        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17506        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17507        -D?* | -I?*)
17508          case "$ac_flag" in
17509    no) ;;
17510    ?*)
17511      case "$CPPFLAGS" in
17512      '') CPPFLAGS="$ac_flag" ;;
17513      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17514      esac ;;
17515    esac ;;
17516        *)
17517          case "$ac_flag" in
17518    no) ;;
17519    ?*)
17520      case "$CFLAGS" in
17521      '') CFLAGS="$ac_flag" ;;
17522      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17523      esac ;;
17524    esac ;;
17525        esac
17526      done
17527      case "$ac_cv_sys_largefile_LDFLAGS" in
17528    no) ;;
17529    ?*)
17530      case "$LDFLAGS" in
17531      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17532      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17533      esac ;;
17534    esac
17535      case "$ac_cv_sys_largefile_LIBS" in
17536    no) ;;
17537    ?*)
17538      case "$LIBS" in
17539      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17540      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17541      esac ;;
17542    esac
17543      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17544 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
17545 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17546   echo $ECHO_N "(cached) $ECHO_C" >&6
17547 else
17548   ac_cv_sys_file_offset_bits=no
17549       ac_cv_sys_file_offset_bits=64
17550       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17551         case "$ac_flag" in
17552         -D_FILE_OFFSET_BITS)
17553           ac_cv_sys_file_offset_bits=1 ;;
17554         -D_FILE_OFFSET_BITS=*)
17555           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17556         esac
17557       done
17558
17559 fi
17560 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17561 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
17562    if test "$ac_cv_sys_file_offset_bits" != no; then
17563
17564 cat >>confdefs.h <<_ACEOF
17565 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17566 _ACEOF
17567
17568    fi
17569      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17570 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
17571 if test "${ac_cv_sys_largefile_source+set}" = set; then
17572   echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574   ac_cv_sys_largefile_source=no
17575       ac_cv_sys_largefile_source=1
17576       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17577         case "$ac_flag" in
17578         -D_LARGEFILE_SOURCE)
17579           ac_cv_sys_largefile_source=1 ;;
17580         -D_LARGEFILE_SOURCE=*)
17581           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17582         esac
17583       done
17584
17585 fi
17586 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17587 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17588    if test "$ac_cv_sys_largefile_source" != no; then
17589
17590 cat >>confdefs.h <<_ACEOF
17591 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17592 _ACEOF
17593
17594    fi
17595      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17596 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
17597 if test "${ac_cv_sys_large_files+set}" = set; then
17598   echo $ECHO_N "(cached) $ECHO_C" >&6
17599 else
17600   ac_cv_sys_large_files=no
17601       ac_cv_sys_large_files=1
17602       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17603         case "$ac_flag" in
17604         -D_LARGE_FILES)
17605           ac_cv_sys_large_files=1 ;;
17606         -D_LARGE_FILES=*)
17607           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17608         esac
17609       done
17610
17611 fi
17612 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17613 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
17614    if test "$ac_cv_sys_large_files" != no; then
17615
17616 cat >>confdefs.h <<_ACEOF
17617 #define _LARGE_FILES $ac_cv_sys_large_files
17618 _ACEOF
17619
17620    fi
17621    fi
17622
17623
17624
17625 { echo "$as_me:$LINENO: checking for X" >&5
17626 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
17627
17628
17629 # Check whether --with-x was given.
17630 if test "${with_x+set}" = set; then
17631   withval=$with_x;
17632 fi
17633
17634 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17635 if test "x$with_x" = xno; then
17636   # The user explicitly disabled X.
17637   have_x=disabled
17638 else
17639   case $x_includes,$x_libraries in #(
17640     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
17641 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
17642    { (exit 1); exit 1; }; };; #(
17643     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
17644   echo $ECHO_N "(cached) $ECHO_C" >&6
17645 else
17646   # One or both of the vars are not set, and there is no cached value.
17647 ac_x_includes=no ac_x_libraries=no
17648 rm -f -r conftest.dir
17649 if mkdir conftest.dir; then
17650   cd conftest.dir
17651   cat >Imakefile <<'_ACEOF'
17652 incroot:
17653         @echo incroot='${INCROOT}'
17654 usrlibdir:
17655         @echo usrlibdir='${USRLIBDIR}'
17656 libdir:
17657         @echo libdir='${LIBDIR}'
17658 _ACEOF
17659   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17660     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17661     for ac_var in incroot usrlibdir libdir; do
17662       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17663     done
17664     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17665     for ac_extension in a so sl; do
17666       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17667          test -f "$ac_im_libdir/libX11.$ac_extension"; then
17668         ac_im_usrlibdir=$ac_im_libdir; break
17669       fi
17670     done
17671     # Screen out bogus values from the imake configuration.  They are
17672     # bogus both because they are the default anyway, and because
17673     # using them would break gcc on systems where it needs fixed includes.
17674     case $ac_im_incroot in
17675         /usr/include) ac_x_includes= ;;
17676         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17677     esac
17678     case $ac_im_usrlibdir in
17679         /usr/lib | /lib) ;;
17680         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17681     esac
17682   fi
17683   cd ..
17684   rm -f -r conftest.dir
17685 fi
17686
17687 # Standard set of common directories for X headers.
17688 # Check X11 before X11Rn because it is often a symlink to the current release.
17689 ac_x_header_dirs='
17690 /usr/X11/include
17691 /usr/X11R6/include
17692 /usr/X11R5/include
17693 /usr/X11R4/include
17694
17695 /usr/include/X11
17696 /usr/include/X11R6
17697 /usr/include/X11R5
17698 /usr/include/X11R4
17699
17700 /usr/local/X11/include
17701 /usr/local/X11R6/include
17702 /usr/local/X11R5/include
17703 /usr/local/X11R4/include
17704
17705 /usr/local/include/X11
17706 /usr/local/include/X11R6
17707 /usr/local/include/X11R5
17708 /usr/local/include/X11R4
17709
17710 /usr/X386/include
17711 /usr/x386/include
17712 /usr/XFree86/include/X11
17713
17714 /usr/include
17715 /usr/local/include
17716 /usr/unsupported/include
17717 /usr/athena/include
17718 /usr/local/x11r5/include
17719 /usr/lpp/Xamples/include
17720
17721 /usr/openwin/include
17722 /usr/openwin/share/include'
17723
17724 if test "$ac_x_includes" = no; then
17725   # Guess where to find include files, by looking for Xlib.h.
17726   # First, try using that file with no special directory specified.
17727   cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h.  */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h.  */
17733 #include <X11/Xlib.h>
17734 _ACEOF
17735 if { (ac_try="$ac_cpp conftest.$ac_ext"
17736 case "(($ac_try" in
17737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738   *) ac_try_echo=$ac_try;;
17739 esac
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17742   ac_status=$?
17743   grep -v '^ *+' conftest.er1 >conftest.err
17744   rm -f conftest.er1
17745   cat conftest.err >&5
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); } >/dev/null && {
17748          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17749          test ! -s conftest.err
17750        }; then
17751   # We can compile using X headers with no special include directory.
17752 ac_x_includes=
17753 else
17754   echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757   for ac_dir in $ac_x_header_dirs; do
17758   if test -r "$ac_dir/X11/Xlib.h"; then
17759     ac_x_includes=$ac_dir
17760     break
17761   fi
17762 done
17763 fi
17764
17765 rm -f conftest.err conftest.$ac_ext
17766 fi # $ac_x_includes = no
17767
17768 if test "$ac_x_libraries" = no; then
17769   # Check for the libraries.
17770   # See if we find them without any special options.
17771   # Don't add to $LIBS permanently.
17772   ac_save_LIBS=$LIBS
17773   LIBS="-lX11 $LIBS"
17774   cat >conftest.$ac_ext <<_ACEOF
17775 /* confdefs.h.  */
17776 _ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h.  */
17780 #include <X11/Xlib.h>
17781 int
17782 main ()
17783 {
17784 XrmInitialize ()
17785   ;
17786   return 0;
17787 }
17788 _ACEOF
17789 rm -f conftest.$ac_objext conftest$ac_exeext
17790 if { (ac_try="$ac_link"
17791 case "(($ac_try" in
17792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793   *) ac_try_echo=$ac_try;;
17794 esac
17795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796   (eval "$ac_link") 2>conftest.er1
17797   ac_status=$?
17798   grep -v '^ *+' conftest.er1 >conftest.err
17799   rm -f conftest.er1
17800   cat conftest.err >&5
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); } && {
17803          test -z "$ac_c_werror_flag" ||
17804          test ! -s conftest.err
17805        } && test -s conftest$ac_exeext &&
17806        $as_test_x conftest$ac_exeext; then
17807   LIBS=$ac_save_LIBS
17808 # We can link X programs with no special library path.
17809 ac_x_libraries=
17810 else
17811   echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17813
17814         LIBS=$ac_save_LIBS
17815 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17816 do
17817   # Don't even attempt the hair of trying to link an X program!
17818   for ac_extension in a so sl; do
17819     if test -r "$ac_dir/libX11.$ac_extension"; then
17820       ac_x_libraries=$ac_dir
17821       break 2
17822     fi
17823   done
17824 done
17825 fi
17826
17827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17828       conftest$ac_exeext conftest.$ac_ext
17829 fi # $ac_x_libraries = no
17830
17831 case $ac_x_includes,$ac_x_libraries in #(
17832   no,* | *,no | *\'*)
17833     # Didn't find X, or a directory has "'" in its name.
17834     ac_cv_have_x="have_x=no";; #(
17835   *)
17836     # Record where we found X for the cache.
17837     ac_cv_have_x="have_x=yes\
17838         ac_x_includes='$ac_x_includes'\
17839         ac_x_libraries='$ac_x_libraries'"
17840 esac
17841 fi
17842 ;; #(
17843     *) have_x=yes;;
17844   esac
17845   eval "$ac_cv_have_x"
17846 fi # $with_x != no
17847
17848 if test "$have_x" != yes; then
17849   { echo "$as_me:$LINENO: result: $have_x" >&5
17850 echo "${ECHO_T}$have_x" >&6; }
17851   no_x=yes
17852 else
17853   # If each of the values was on the command line, it overrides each guess.
17854   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17855   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17856   # Update the cache value to reflect the command line values.
17857   ac_cv_have_x="have_x=yes\
17858         ac_x_includes='$x_includes'\
17859         ac_x_libraries='$x_libraries'"
17860   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17861 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
17862 fi
17863
17864 if test "$no_x" = yes; then
17865   # Not all programs may use this symbol, but it does not hurt to define it.
17866
17867 cat >>confdefs.h <<\_ACEOF
17868 #define X_DISPLAY_MISSING 1
17869 _ACEOF
17870
17871   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17872 else
17873   if test -n "$x_includes"; then
17874     X_CFLAGS="$X_CFLAGS -I$x_includes"
17875   fi
17876
17877   # It would also be nice to do this for all -L options, not just this one.
17878   if test -n "$x_libraries"; then
17879     X_LIBS="$X_LIBS -L$x_libraries"
17880     # For Solaris; some versions of Sun CC require a space after -R and
17881     # others require no space.  Words are not sufficient . . . .
17882     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17883 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
17884     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17885     ac_xsave_c_werror_flag=$ac_c_werror_flag
17886     ac_c_werror_flag=yes
17887     cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h.  */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h.  */
17893
17894 int
17895 main ()
17896 {
17897
17898   ;
17899   return 0;
17900 }
17901 _ACEOF
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (ac_try="$ac_link"
17904 case "(($ac_try" in
17905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906   *) ac_try_echo=$ac_try;;
17907 esac
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909   (eval "$ac_link") 2>conftest.er1
17910   ac_status=$?
17911   grep -v '^ *+' conftest.er1 >conftest.err
17912   rm -f conftest.er1
17913   cat conftest.err >&5
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); } && {
17916          test -z "$ac_c_werror_flag" ||
17917          test ! -s conftest.err
17918        } && test -s conftest$ac_exeext &&
17919        $as_test_x conftest$ac_exeext; then
17920   { echo "$as_me:$LINENO: result: no" >&5
17921 echo "${ECHO_T}no" >&6; }
17922        X_LIBS="$X_LIBS -R$x_libraries"
17923 else
17924   echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17926
17927         LIBS="$ac_xsave_LIBS -R $x_libraries"
17928        cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h.  */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h.  */
17934
17935 int
17936 main ()
17937 {
17938
17939   ;
17940   return 0;
17941 }
17942 _ACEOF
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (ac_try="$ac_link"
17945 case "(($ac_try" in
17946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947   *) ac_try_echo=$ac_try;;
17948 esac
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950   (eval "$ac_link") 2>conftest.er1
17951   ac_status=$?
17952   grep -v '^ *+' conftest.er1 >conftest.err
17953   rm -f conftest.er1
17954   cat conftest.err >&5
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); } && {
17957          test -z "$ac_c_werror_flag" ||
17958          test ! -s conftest.err
17959        } && test -s conftest$ac_exeext &&
17960        $as_test_x conftest$ac_exeext; then
17961   { echo "$as_me:$LINENO: result: yes" >&5
17962 echo "${ECHO_T}yes" >&6; }
17963           X_LIBS="$X_LIBS -R $x_libraries"
17964 else
17965   echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968         { echo "$as_me:$LINENO: result: neither works" >&5
17969 echo "${ECHO_T}neither works" >&6; }
17970 fi
17971
17972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17973       conftest$ac_exeext conftest.$ac_ext
17974 fi
17975
17976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17977       conftest$ac_exeext conftest.$ac_ext
17978     ac_c_werror_flag=$ac_xsave_c_werror_flag
17979     LIBS=$ac_xsave_LIBS
17980   fi
17981
17982   # Check for system-dependent libraries X programs must link with.
17983   # Do this before checking for the system-independent R6 libraries
17984   # (-lICE), since we may need -lsocket or whatever for X linking.
17985
17986   if test "$ISC" = yes; then
17987     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17988   else
17989     # Martyn Johnson says this is needed for Ultrix, if the X
17990     # libraries were built with DECnet support.  And Karl Berry says
17991     # the Alpha needs dnet_stub (dnet does not exist).
17992     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17993     cat >conftest.$ac_ext <<_ACEOF
17994 /* confdefs.h.  */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h.  */
17999
18000 /* Override any GCC internal prototype to avoid an error.
18001    Use char because int might match the return type of a GCC
18002    builtin and then its argument prototype would still apply.  */
18003 #ifdef __cplusplus
18004 extern "C"
18005 #endif
18006 char XOpenDisplay ();
18007 int
18008 main ()
18009 {
18010 return XOpenDisplay ();
18011   ;
18012   return 0;
18013 }
18014 _ACEOF
18015 rm -f conftest.$ac_objext conftest$ac_exeext
18016 if { (ac_try="$ac_link"
18017 case "(($ac_try" in
18018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019   *) ac_try_echo=$ac_try;;
18020 esac
18021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18022   (eval "$ac_link") 2>conftest.er1
18023   ac_status=$?
18024   grep -v '^ *+' conftest.er1 >conftest.err
18025   rm -f conftest.er1
18026   cat conftest.err >&5
18027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028   (exit $ac_status); } && {
18029          test -z "$ac_c_werror_flag" ||
18030          test ! -s conftest.err
18031        } && test -s conftest$ac_exeext &&
18032        $as_test_x conftest$ac_exeext; then
18033   :
18034 else
18035   echo "$as_me: failed program was:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18037
18038         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18039 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18040 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18041   echo $ECHO_N "(cached) $ECHO_C" >&6
18042 else
18043   ac_check_lib_save_LIBS=$LIBS
18044 LIBS="-ldnet  $LIBS"
18045 cat >conftest.$ac_ext <<_ACEOF
18046 /* confdefs.h.  */
18047 _ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h.  */
18051
18052 /* Override any GCC internal prototype to avoid an error.
18053    Use char because int might match the return type of a GCC
18054    builtin and then its argument prototype would still apply.  */
18055 #ifdef __cplusplus
18056 extern "C"
18057 #endif
18058 char dnet_ntoa ();
18059 int
18060 main ()
18061 {
18062 return dnet_ntoa ();
18063   ;
18064   return 0;
18065 }
18066 _ACEOF
18067 rm -f conftest.$ac_objext conftest$ac_exeext
18068 if { (ac_try="$ac_link"
18069 case "(($ac_try" in
18070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071   *) ac_try_echo=$ac_try;;
18072 esac
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074   (eval "$ac_link") 2>conftest.er1
18075   ac_status=$?
18076   grep -v '^ *+' conftest.er1 >conftest.err
18077   rm -f conftest.er1
18078   cat conftest.err >&5
18079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080   (exit $ac_status); } && {
18081          test -z "$ac_c_werror_flag" ||
18082          test ! -s conftest.err
18083        } && test -s conftest$ac_exeext &&
18084        $as_test_x conftest$ac_exeext; then
18085   ac_cv_lib_dnet_dnet_ntoa=yes
18086 else
18087   echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18089
18090         ac_cv_lib_dnet_dnet_ntoa=no
18091 fi
18092
18093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18094       conftest$ac_exeext conftest.$ac_ext
18095 LIBS=$ac_check_lib_save_LIBS
18096 fi
18097 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18098 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18099 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18100   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18101 fi
18102
18103     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18104       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18105 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18106 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18107   echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109   ac_check_lib_save_LIBS=$LIBS
18110 LIBS="-ldnet_stub  $LIBS"
18111 cat >conftest.$ac_ext <<_ACEOF
18112 /* confdefs.h.  */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h.  */
18117
18118 /* Override any GCC internal prototype to avoid an error.
18119    Use char because int might match the return type of a GCC
18120    builtin and then its argument prototype would still apply.  */
18121 #ifdef __cplusplus
18122 extern "C"
18123 #endif
18124 char dnet_ntoa ();
18125 int
18126 main ()
18127 {
18128 return dnet_ntoa ();
18129   ;
18130   return 0;
18131 }
18132 _ACEOF
18133 rm -f conftest.$ac_objext conftest$ac_exeext
18134 if { (ac_try="$ac_link"
18135 case "(($ac_try" in
18136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137   *) ac_try_echo=$ac_try;;
18138 esac
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140   (eval "$ac_link") 2>conftest.er1
18141   ac_status=$?
18142   grep -v '^ *+' conftest.er1 >conftest.err
18143   rm -f conftest.er1
18144   cat conftest.err >&5
18145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146   (exit $ac_status); } && {
18147          test -z "$ac_c_werror_flag" ||
18148          test ! -s conftest.err
18149        } && test -s conftest$ac_exeext &&
18150        $as_test_x conftest$ac_exeext; then
18151   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18152 else
18153   echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18155
18156         ac_cv_lib_dnet_stub_dnet_ntoa=no
18157 fi
18158
18159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160       conftest$ac_exeext conftest.$ac_ext
18161 LIBS=$ac_check_lib_save_LIBS
18162 fi
18163 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18164 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18165 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18166   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18167 fi
18168
18169     fi
18170 fi
18171
18172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18173       conftest$ac_exeext conftest.$ac_ext
18174     LIBS="$ac_xsave_LIBS"
18175
18176     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18177     # to get the SysV transport functions.
18178     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18179     # needs -lnsl.
18180     # The nsl library prevents programs from opening the X display
18181     # on Irix 5.2, according to T.E. Dickey.
18182     # The functions gethostbyname, getservbyname, and inet_addr are
18183     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18184     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
18185 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
18186 if test "${ac_cv_func_gethostbyname+set}" = set; then
18187   echo $ECHO_N "(cached) $ECHO_C" >&6
18188 else
18189   cat >conftest.$ac_ext <<_ACEOF
18190 /* confdefs.h.  */
18191 _ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h.  */
18195 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18197 #define gethostbyname innocuous_gethostbyname
18198
18199 /* System header to define __stub macros and hopefully few prototypes,
18200     which can conflict with char gethostbyname (); below.
18201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18202     <limits.h> exists even on freestanding compilers.  */
18203
18204 #ifdef __STDC__
18205 # include <limits.h>
18206 #else
18207 # include <assert.h>
18208 #endif
18209
18210 #undef gethostbyname
18211
18212 /* Override any GCC internal prototype to avoid an error.
18213    Use char because int might match the return type of a GCC
18214    builtin and then its argument prototype would still apply.  */
18215 #ifdef __cplusplus
18216 extern "C"
18217 #endif
18218 char gethostbyname ();
18219 /* The GNU C library defines this for functions which it implements
18220     to always fail with ENOSYS.  Some functions are actually named
18221     something starting with __ and the normal name is an alias.  */
18222 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18223 choke me
18224 #endif
18225
18226 int
18227 main ()
18228 {
18229 return gethostbyname ();
18230   ;
18231   return 0;
18232 }
18233 _ACEOF
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (ac_try="$ac_link"
18236 case "(($ac_try" in
18237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238   *) ac_try_echo=$ac_try;;
18239 esac
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241   (eval "$ac_link") 2>conftest.er1
18242   ac_status=$?
18243   grep -v '^ *+' conftest.er1 >conftest.err
18244   rm -f conftest.er1
18245   cat conftest.err >&5
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); } && {
18248          test -z "$ac_c_werror_flag" ||
18249          test ! -s conftest.err
18250        } && test -s conftest$ac_exeext &&
18251        $as_test_x conftest$ac_exeext; then
18252   ac_cv_func_gethostbyname=yes
18253 else
18254   echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18256
18257         ac_cv_func_gethostbyname=no
18258 fi
18259
18260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18261       conftest$ac_exeext conftest.$ac_ext
18262 fi
18263 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18264 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
18265
18266     if test $ac_cv_func_gethostbyname = no; then
18267       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18268 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18269 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18270   echo $ECHO_N "(cached) $ECHO_C" >&6
18271 else
18272   ac_check_lib_save_LIBS=$LIBS
18273 LIBS="-lnsl  $LIBS"
18274 cat >conftest.$ac_ext <<_ACEOF
18275 /* confdefs.h.  */
18276 _ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h.  */
18280
18281 /* Override any GCC internal prototype to avoid an error.
18282    Use char because int might match the return type of a GCC
18283    builtin and then its argument prototype would still apply.  */
18284 #ifdef __cplusplus
18285 extern "C"
18286 #endif
18287 char gethostbyname ();
18288 int
18289 main ()
18290 {
18291 return gethostbyname ();
18292   ;
18293   return 0;
18294 }
18295 _ACEOF
18296 rm -f conftest.$ac_objext conftest$ac_exeext
18297 if { (ac_try="$ac_link"
18298 case "(($ac_try" in
18299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300   *) ac_try_echo=$ac_try;;
18301 esac
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303   (eval "$ac_link") 2>conftest.er1
18304   ac_status=$?
18305   grep -v '^ *+' conftest.er1 >conftest.err
18306   rm -f conftest.er1
18307   cat conftest.err >&5
18308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309   (exit $ac_status); } && {
18310          test -z "$ac_c_werror_flag" ||
18311          test ! -s conftest.err
18312        } && test -s conftest$ac_exeext &&
18313        $as_test_x conftest$ac_exeext; then
18314   ac_cv_lib_nsl_gethostbyname=yes
18315 else
18316   echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18318
18319         ac_cv_lib_nsl_gethostbyname=no
18320 fi
18321
18322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18323       conftest$ac_exeext conftest.$ac_ext
18324 LIBS=$ac_check_lib_save_LIBS
18325 fi
18326 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18327 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
18328 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18329   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18330 fi
18331
18332       if test $ac_cv_lib_nsl_gethostbyname = no; then
18333         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18334 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
18335 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18336   echo $ECHO_N "(cached) $ECHO_C" >&6
18337 else
18338   ac_check_lib_save_LIBS=$LIBS
18339 LIBS="-lbsd  $LIBS"
18340 cat >conftest.$ac_ext <<_ACEOF
18341 /* confdefs.h.  */
18342 _ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h.  */
18346
18347 /* Override any GCC internal prototype to avoid an error.
18348    Use char because int might match the return type of a GCC
18349    builtin and then its argument prototype would still apply.  */
18350 #ifdef __cplusplus
18351 extern "C"
18352 #endif
18353 char gethostbyname ();
18354 int
18355 main ()
18356 {
18357 return gethostbyname ();
18358   ;
18359   return 0;
18360 }
18361 _ACEOF
18362 rm -f conftest.$ac_objext conftest$ac_exeext
18363 if { (ac_try="$ac_link"
18364 case "(($ac_try" in
18365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366   *) ac_try_echo=$ac_try;;
18367 esac
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369   (eval "$ac_link") 2>conftest.er1
18370   ac_status=$?
18371   grep -v '^ *+' conftest.er1 >conftest.err
18372   rm -f conftest.er1
18373   cat conftest.err >&5
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); } && {
18376          test -z "$ac_c_werror_flag" ||
18377          test ! -s conftest.err
18378        } && test -s conftest$ac_exeext &&
18379        $as_test_x conftest$ac_exeext; then
18380   ac_cv_lib_bsd_gethostbyname=yes
18381 else
18382   echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18384
18385         ac_cv_lib_bsd_gethostbyname=no
18386 fi
18387
18388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18389       conftest$ac_exeext conftest.$ac_ext
18390 LIBS=$ac_check_lib_save_LIBS
18391 fi
18392 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18393 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
18394 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18395   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18396 fi
18397
18398       fi
18399     fi
18400
18401     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18402     # socket/setsockopt and other routines are undefined under SCO ODT
18403     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18404     # on later versions), says Simon Leinen: it contains gethostby*
18405     # variants that don't use the name server (or something).  -lsocket
18406     # must be given before -lnsl if both are needed.  We assume that
18407     # if connect needs -lnsl, so does gethostbyname.
18408     { echo "$as_me:$LINENO: checking for connect" >&5
18409 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
18410 if test "${ac_cv_func_connect+set}" = set; then
18411   echo $ECHO_N "(cached) $ECHO_C" >&6
18412 else
18413   cat >conftest.$ac_ext <<_ACEOF
18414 /* confdefs.h.  */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h.  */
18419 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18421 #define connect innocuous_connect
18422
18423 /* System header to define __stub macros and hopefully few prototypes,
18424     which can conflict with char connect (); below.
18425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18426     <limits.h> exists even on freestanding compilers.  */
18427
18428 #ifdef __STDC__
18429 # include <limits.h>
18430 #else
18431 # include <assert.h>
18432 #endif
18433
18434 #undef connect
18435
18436 /* Override any GCC internal prototype to avoid an error.
18437    Use char because int might match the return type of a GCC
18438    builtin and then its argument prototype would still apply.  */
18439 #ifdef __cplusplus
18440 extern "C"
18441 #endif
18442 char connect ();
18443 /* The GNU C library defines this for functions which it implements
18444     to always fail with ENOSYS.  Some functions are actually named
18445     something starting with __ and the normal name is an alias.  */
18446 #if defined __stub_connect || defined __stub___connect
18447 choke me
18448 #endif
18449
18450 int
18451 main ()
18452 {
18453 return connect ();
18454   ;
18455   return 0;
18456 }
18457 _ACEOF
18458 rm -f conftest.$ac_objext conftest$ac_exeext
18459 if { (ac_try="$ac_link"
18460 case "(($ac_try" in
18461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462   *) ac_try_echo=$ac_try;;
18463 esac
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465   (eval "$ac_link") 2>conftest.er1
18466   ac_status=$?
18467   grep -v '^ *+' conftest.er1 >conftest.err
18468   rm -f conftest.er1
18469   cat conftest.err >&5
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); } && {
18472          test -z "$ac_c_werror_flag" ||
18473          test ! -s conftest.err
18474        } && test -s conftest$ac_exeext &&
18475        $as_test_x conftest$ac_exeext; then
18476   ac_cv_func_connect=yes
18477 else
18478   echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18480
18481         ac_cv_func_connect=no
18482 fi
18483
18484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18485       conftest$ac_exeext conftest.$ac_ext
18486 fi
18487 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18488 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
18489
18490     if test $ac_cv_func_connect = no; then
18491       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18492 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
18493 if test "${ac_cv_lib_socket_connect+set}" = set; then
18494   echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496   ac_check_lib_save_LIBS=$LIBS
18497 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18498 cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h.  */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h.  */
18504
18505 /* Override any GCC internal prototype to avoid an error.
18506    Use char because int might match the return type of a GCC
18507    builtin and then its argument prototype would still apply.  */
18508 #ifdef __cplusplus
18509 extern "C"
18510 #endif
18511 char connect ();
18512 int
18513 main ()
18514 {
18515 return connect ();
18516   ;
18517   return 0;
18518 }
18519 _ACEOF
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (ac_try="$ac_link"
18522 case "(($ac_try" in
18523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524   *) ac_try_echo=$ac_try;;
18525 esac
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527   (eval "$ac_link") 2>conftest.er1
18528   ac_status=$?
18529   grep -v '^ *+' conftest.er1 >conftest.err
18530   rm -f conftest.er1
18531   cat conftest.err >&5
18532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533   (exit $ac_status); } && {
18534          test -z "$ac_c_werror_flag" ||
18535          test ! -s conftest.err
18536        } && test -s conftest$ac_exeext &&
18537        $as_test_x conftest$ac_exeext; then
18538   ac_cv_lib_socket_connect=yes
18539 else
18540   echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18542
18543         ac_cv_lib_socket_connect=no
18544 fi
18545
18546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18547       conftest$ac_exeext conftest.$ac_ext
18548 LIBS=$ac_check_lib_save_LIBS
18549 fi
18550 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18551 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
18552 if test $ac_cv_lib_socket_connect = yes; then
18553   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18554 fi
18555
18556     fi
18557
18558     # Guillermo Gomez says -lposix is necessary on A/UX.
18559     { echo "$as_me:$LINENO: checking for remove" >&5
18560 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
18561 if test "${ac_cv_func_remove+set}" = set; then
18562   echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564   cat >conftest.$ac_ext <<_ACEOF
18565 /* confdefs.h.  */
18566 _ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h.  */
18570 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18572 #define remove innocuous_remove
18573
18574 /* System header to define __stub macros and hopefully few prototypes,
18575     which can conflict with char remove (); below.
18576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18577     <limits.h> exists even on freestanding compilers.  */
18578
18579 #ifdef __STDC__
18580 # include <limits.h>
18581 #else
18582 # include <assert.h>
18583 #endif
18584
18585 #undef remove
18586
18587 /* Override any GCC internal prototype to avoid an error.
18588    Use char because int might match the return type of a GCC
18589    builtin and then its argument prototype would still apply.  */
18590 #ifdef __cplusplus
18591 extern "C"
18592 #endif
18593 char remove ();
18594 /* The GNU C library defines this for functions which it implements
18595     to always fail with ENOSYS.  Some functions are actually named
18596     something starting with __ and the normal name is an alias.  */
18597 #if defined __stub_remove || defined __stub___remove
18598 choke me
18599 #endif
18600
18601 int
18602 main ()
18603 {
18604 return remove ();
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613   *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616   (eval "$ac_link") 2>conftest.er1
18617   ac_status=$?
18618   grep -v '^ *+' conftest.er1 >conftest.err
18619   rm -f conftest.er1
18620   cat conftest.err >&5
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); } && {
18623          test -z "$ac_c_werror_flag" ||
18624          test ! -s conftest.err
18625        } && test -s conftest$ac_exeext &&
18626        $as_test_x conftest$ac_exeext; then
18627   ac_cv_func_remove=yes
18628 else
18629   echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18631
18632         ac_cv_func_remove=no
18633 fi
18634
18635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18636       conftest$ac_exeext conftest.$ac_ext
18637 fi
18638 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18639 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
18640
18641     if test $ac_cv_func_remove = no; then
18642       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18643 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
18644 if test "${ac_cv_lib_posix_remove+set}" = set; then
18645   echo $ECHO_N "(cached) $ECHO_C" >&6
18646 else
18647   ac_check_lib_save_LIBS=$LIBS
18648 LIBS="-lposix  $LIBS"
18649 cat >conftest.$ac_ext <<_ACEOF
18650 /* confdefs.h.  */
18651 _ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h.  */
18655
18656 /* Override any GCC internal prototype to avoid an error.
18657    Use char because int might match the return type of a GCC
18658    builtin and then its argument prototype would still apply.  */
18659 #ifdef __cplusplus
18660 extern "C"
18661 #endif
18662 char remove ();
18663 int
18664 main ()
18665 {
18666 return remove ();
18667   ;
18668   return 0;
18669 }
18670 _ACEOF
18671 rm -f conftest.$ac_objext conftest$ac_exeext
18672 if { (ac_try="$ac_link"
18673 case "(($ac_try" in
18674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675   *) ac_try_echo=$ac_try;;
18676 esac
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678   (eval "$ac_link") 2>conftest.er1
18679   ac_status=$?
18680   grep -v '^ *+' conftest.er1 >conftest.err
18681   rm -f conftest.er1
18682   cat conftest.err >&5
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); } && {
18685          test -z "$ac_c_werror_flag" ||
18686          test ! -s conftest.err
18687        } && test -s conftest$ac_exeext &&
18688        $as_test_x conftest$ac_exeext; then
18689   ac_cv_lib_posix_remove=yes
18690 else
18691   echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18693
18694         ac_cv_lib_posix_remove=no
18695 fi
18696
18697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18698       conftest$ac_exeext conftest.$ac_ext
18699 LIBS=$ac_check_lib_save_LIBS
18700 fi
18701 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18702 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
18703 if test $ac_cv_lib_posix_remove = yes; then
18704   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18705 fi
18706
18707     fi
18708
18709     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18710     { echo "$as_me:$LINENO: checking for shmat" >&5
18711 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
18712 if test "${ac_cv_func_shmat+set}" = set; then
18713   echo $ECHO_N "(cached) $ECHO_C" >&6
18714 else
18715   cat >conftest.$ac_ext <<_ACEOF
18716 /* confdefs.h.  */
18717 _ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h.  */
18721 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18723 #define shmat innocuous_shmat
18724
18725 /* System header to define __stub macros and hopefully few prototypes,
18726     which can conflict with char shmat (); below.
18727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18728     <limits.h> exists even on freestanding compilers.  */
18729
18730 #ifdef __STDC__
18731 # include <limits.h>
18732 #else
18733 # include <assert.h>
18734 #endif
18735
18736 #undef shmat
18737
18738 /* Override any GCC internal prototype to avoid an error.
18739    Use char because int might match the return type of a GCC
18740    builtin and then its argument prototype would still apply.  */
18741 #ifdef __cplusplus
18742 extern "C"
18743 #endif
18744 char shmat ();
18745 /* The GNU C library defines this for functions which it implements
18746     to always fail with ENOSYS.  Some functions are actually named
18747     something starting with __ and the normal name is an alias.  */
18748 #if defined __stub_shmat || defined __stub___shmat
18749 choke me
18750 #endif
18751
18752 int
18753 main ()
18754 {
18755 return shmat ();
18756   ;
18757   return 0;
18758 }
18759 _ACEOF
18760 rm -f conftest.$ac_objext conftest$ac_exeext
18761 if { (ac_try="$ac_link"
18762 case "(($ac_try" in
18763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764   *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767   (eval "$ac_link") 2>conftest.er1
18768   ac_status=$?
18769   grep -v '^ *+' conftest.er1 >conftest.err
18770   rm -f conftest.er1
18771   cat conftest.err >&5
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); } && {
18774          test -z "$ac_c_werror_flag" ||
18775          test ! -s conftest.err
18776        } && test -s conftest$ac_exeext &&
18777        $as_test_x conftest$ac_exeext; then
18778   ac_cv_func_shmat=yes
18779 else
18780   echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18782
18783         ac_cv_func_shmat=no
18784 fi
18785
18786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18787       conftest$ac_exeext conftest.$ac_ext
18788 fi
18789 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18790 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
18791
18792     if test $ac_cv_func_shmat = no; then
18793       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18794 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
18795 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18796   echo $ECHO_N "(cached) $ECHO_C" >&6
18797 else
18798   ac_check_lib_save_LIBS=$LIBS
18799 LIBS="-lipc  $LIBS"
18800 cat >conftest.$ac_ext <<_ACEOF
18801 /* confdefs.h.  */
18802 _ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h.  */
18806
18807 /* Override any GCC internal prototype to avoid an error.
18808    Use char because int might match the return type of a GCC
18809    builtin and then its argument prototype would still apply.  */
18810 #ifdef __cplusplus
18811 extern "C"
18812 #endif
18813 char shmat ();
18814 int
18815 main ()
18816 {
18817 return shmat ();
18818   ;
18819   return 0;
18820 }
18821 _ACEOF
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826   *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829   (eval "$ac_link") 2>conftest.er1
18830   ac_status=$?
18831   grep -v '^ *+' conftest.er1 >conftest.err
18832   rm -f conftest.er1
18833   cat conftest.err >&5
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); } && {
18836          test -z "$ac_c_werror_flag" ||
18837          test ! -s conftest.err
18838        } && test -s conftest$ac_exeext &&
18839        $as_test_x conftest$ac_exeext; then
18840   ac_cv_lib_ipc_shmat=yes
18841 else
18842   echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18844
18845         ac_cv_lib_ipc_shmat=no
18846 fi
18847
18848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18849       conftest$ac_exeext conftest.$ac_ext
18850 LIBS=$ac_check_lib_save_LIBS
18851 fi
18852 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18853 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
18854 if test $ac_cv_lib_ipc_shmat = yes; then
18855   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18856 fi
18857
18858     fi
18859   fi
18860
18861   # Check for libraries that X11R6 Xt/Xaw programs need.
18862   ac_save_LDFLAGS=$LDFLAGS
18863   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18864   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18865   # check for ICE first), but we must link in the order -lSM -lICE or
18866   # we get undefined symbols.  So assume we have SM if we have ICE.
18867   # These have to be linked with before -lX11, unlike the other
18868   # libraries we check for below, so use a different variable.
18869   # John Interrante, Karl Berry
18870   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18871 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
18872 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18873   echo $ECHO_N "(cached) $ECHO_C" >&6
18874 else
18875   ac_check_lib_save_LIBS=$LIBS
18876 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18877 cat >conftest.$ac_ext <<_ACEOF
18878 /* confdefs.h.  */
18879 _ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h.  */
18883
18884 /* Override any GCC internal prototype to avoid an error.
18885    Use char because int might match the return type of a GCC
18886    builtin and then its argument prototype would still apply.  */
18887 #ifdef __cplusplus
18888 extern "C"
18889 #endif
18890 char IceConnectionNumber ();
18891 int
18892 main ()
18893 {
18894 return IceConnectionNumber ();
18895   ;
18896   return 0;
18897 }
18898 _ACEOF
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903   *) ac_try_echo=$ac_try;;
18904 esac
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906   (eval "$ac_link") 2>conftest.er1
18907   ac_status=$?
18908   grep -v '^ *+' conftest.er1 >conftest.err
18909   rm -f conftest.er1
18910   cat conftest.err >&5
18911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); } && {
18913          test -z "$ac_c_werror_flag" ||
18914          test ! -s conftest.err
18915        } && test -s conftest$ac_exeext &&
18916        $as_test_x conftest$ac_exeext; then
18917   ac_cv_lib_ICE_IceConnectionNumber=yes
18918 else
18919   echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18921
18922         ac_cv_lib_ICE_IceConnectionNumber=no
18923 fi
18924
18925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18926       conftest$ac_exeext conftest.$ac_ext
18927 LIBS=$ac_check_lib_save_LIBS
18928 fi
18929 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18930 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18931 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18932   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18933 fi
18934
18935   LDFLAGS=$ac_save_LDFLAGS
18936
18937 fi
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970 for ac_header in \
18971         assert.h \
18972         fcntl.h \
18973         grp.h \
18974         pwd.h \
18975         libc.h \
18976         limits.h \
18977         stdarg.h \
18978         stdlib.h \
18979         stdint.h \
18980         string.h \
18981         strings.h \
18982         termios.h \
18983         termcap.h \
18984         term.h \
18985         unistd.h \
18986         sys/bitypes.h \
18987         sys/byteorder.h \
18988         sys/ioctl.h \
18989         sys/select.h \
18990         sys/socket.h \
18991         sys/sockio.h \
18992         sys/stat.h \
18993         sys/time.h \
18994         sys/types.h \
18995         arpa/nameser.h \
18996         resolv.h \
18997         mtio.h \
18998         sys/mtio.h \
18999         sys/tape.h \
19000         regex.h \
19001
19002 do
19003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19005   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19008   echo $ECHO_N "(cached) $ECHO_C" >&6
19009 fi
19010 ac_res=`eval echo '${'$as_ac_Header'}'`
19011                { echo "$as_me:$LINENO: result: $ac_res" >&5
19012 echo "${ECHO_T}$ac_res" >&6; }
19013 else
19014   # Is the header compilable?
19015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023 $ac_includes_default
19024 #include <$ac_header>
19025 _ACEOF
19026 rm -f conftest.$ac_objext
19027 if { (ac_try="$ac_compile"
19028 case "(($ac_try" in
19029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030   *) ac_try_echo=$ac_try;;
19031 esac
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033   (eval "$ac_compile") 2>conftest.er1
19034   ac_status=$?
19035   grep -v '^ *+' conftest.er1 >conftest.err
19036   rm -f conftest.er1
19037   cat conftest.err >&5
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); } && {
19040          test -z "$ac_c_werror_flag" ||
19041          test ! -s conftest.err
19042        } && test -s conftest.$ac_objext; then
19043   ac_header_compiler=yes
19044 else
19045   echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19047
19048         ac_header_compiler=no
19049 fi
19050
19051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19053 echo "${ECHO_T}$ac_header_compiler" >&6; }
19054
19055 # Is the header present?
19056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19058 cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h.  */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h.  */
19064 #include <$ac_header>
19065 _ACEOF
19066 if { (ac_try="$ac_cpp conftest.$ac_ext"
19067 case "(($ac_try" in
19068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069   *) ac_try_echo=$ac_try;;
19070 esac
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19073   ac_status=$?
19074   grep -v '^ *+' conftest.er1 >conftest.err
19075   rm -f conftest.er1
19076   cat conftest.err >&5
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); } >/dev/null && {
19079          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19080          test ! -s conftest.err
19081        }; then
19082   ac_header_preproc=yes
19083 else
19084   echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087   ac_header_preproc=no
19088 fi
19089
19090 rm -f conftest.err conftest.$ac_ext
19091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19092 echo "${ECHO_T}$ac_header_preproc" >&6; }
19093
19094 # So?  What about this header?
19095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19096   yes:no: )
19097     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19101     ac_header_preproc=yes
19102     ;;
19103   no:yes:* )
19104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19106     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19107 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19108     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19110     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19111 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19114     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19116
19117     ;;
19118 esac
19119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19122   echo $ECHO_N "(cached) $ECHO_C" >&6
19123 else
19124   eval "$as_ac_Header=\$ac_header_preproc"
19125 fi
19126 ac_res=`eval echo '${'$as_ac_Header'}'`
19127                { echo "$as_me:$LINENO: result: $ac_res" >&5
19128 echo "${ECHO_T}$ac_res" >&6; }
19129
19130 fi
19131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19132   cat >>confdefs.h <<_ACEOF
19133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19134 _ACEOF
19135
19136 fi
19137
19138 done
19139
19140 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19142 if test "${ac_cv_header_stdc+set}" = set; then
19143   echo $ECHO_N "(cached) $ECHO_C" >&6
19144 else
19145   cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h.  */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h.  */
19151 #include <stdlib.h>
19152 #include <stdarg.h>
19153 #include <string.h>
19154 #include <float.h>
19155
19156 int
19157 main ()
19158 {
19159
19160   ;
19161   return 0;
19162 }
19163 _ACEOF
19164 rm -f conftest.$ac_objext
19165 if { (ac_try="$ac_compile"
19166 case "(($ac_try" in
19167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168   *) ac_try_echo=$ac_try;;
19169 esac
19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171   (eval "$ac_compile") 2>conftest.er1
19172   ac_status=$?
19173   grep -v '^ *+' conftest.er1 >conftest.err
19174   rm -f conftest.er1
19175   cat conftest.err >&5
19176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177   (exit $ac_status); } && {
19178          test -z "$ac_c_werror_flag" ||
19179          test ! -s conftest.err
19180        } && test -s conftest.$ac_objext; then
19181   ac_cv_header_stdc=yes
19182 else
19183   echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19185
19186         ac_cv_header_stdc=no
19187 fi
19188
19189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19190
19191 if test $ac_cv_header_stdc = yes; then
19192   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19193   cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h.  */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h.  */
19199 #include <string.h>
19200
19201 _ACEOF
19202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19203   $EGREP "memchr" >/dev/null 2>&1; then
19204   :
19205 else
19206   ac_cv_header_stdc=no
19207 fi
19208 rm -f conftest*
19209
19210 fi
19211
19212 if test $ac_cv_header_stdc = yes; then
19213   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19214   cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h.  */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h.  */
19220 #include <stdlib.h>
19221
19222 _ACEOF
19223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19224   $EGREP "free" >/dev/null 2>&1; then
19225   :
19226 else
19227   ac_cv_header_stdc=no
19228 fi
19229 rm -f conftest*
19230
19231 fi
19232
19233 if test $ac_cv_header_stdc = yes; then
19234   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19235   if test "$cross_compiling" = yes; then
19236   :
19237 else
19238   cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h.  */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h.  */
19244 #include <ctype.h>
19245 #include <stdlib.h>
19246 #if ((' ' & 0x0FF) == 0x020)
19247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19249 #else
19250 # define ISLOWER(c) \
19251                    (('a' <= (c) && (c) <= 'i') \
19252                      || ('j' <= (c) && (c) <= 'r') \
19253                      || ('s' <= (c) && (c) <= 'z'))
19254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19255 #endif
19256
19257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19258 int
19259 main ()
19260 {
19261   int i;
19262   for (i = 0; i < 256; i++)
19263     if (XOR (islower (i), ISLOWER (i))
19264         || toupper (i) != TOUPPER (i))
19265       return 2;
19266   return 0;
19267 }
19268 _ACEOF
19269 rm -f conftest$ac_exeext
19270 if { (ac_try="$ac_link"
19271 case "(($ac_try" in
19272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273   *) ac_try_echo=$ac_try;;
19274 esac
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276   (eval "$ac_link") 2>&5
19277   ac_status=$?
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19280   { (case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_try") 2>&5
19286   ac_status=$?
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); }; }; then
19289   :
19290 else
19291   echo "$as_me: program exited with status $ac_status" >&5
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19294
19295 ( exit $ac_status )
19296 ac_cv_header_stdc=no
19297 fi
19298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19299 fi
19300
19301
19302 fi
19303 fi
19304 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19305 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19306 if test $ac_cv_header_stdc = yes; then
19307
19308 cat >>confdefs.h <<\_ACEOF
19309 #define STDC_HEADERS 1
19310 _ACEOF
19311
19312 fi
19313
19314 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19315 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
19316 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19317   echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319   cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h.  */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h.  */
19325 #include <sys/types.h>
19326 int
19327 main ()
19328 {
19329 return makedev(0, 0);
19330   ;
19331   return 0;
19332 }
19333 _ACEOF
19334 rm -f conftest.$ac_objext conftest$ac_exeext
19335 if { (ac_try="$ac_link"
19336 case "(($ac_try" in
19337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338   *) ac_try_echo=$ac_try;;
19339 esac
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341   (eval "$ac_link") 2>conftest.er1
19342   ac_status=$?
19343   grep -v '^ *+' conftest.er1 >conftest.err
19344   rm -f conftest.er1
19345   cat conftest.err >&5
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); } && {
19348          test -z "$ac_c_werror_flag" ||
19349          test ! -s conftest.err
19350        } && test -s conftest$ac_exeext &&
19351        $as_test_x conftest$ac_exeext; then
19352   ac_cv_header_sys_types_h_makedev=yes
19353 else
19354   echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19356
19357         ac_cv_header_sys_types_h_makedev=no
19358 fi
19359
19360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19361       conftest$ac_exeext conftest.$ac_ext
19362
19363 fi
19364 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19365 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
19366
19367 if test $ac_cv_header_sys_types_h_makedev = no; then
19368 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19369   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19370 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
19371 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19372   echo $ECHO_N "(cached) $ECHO_C" >&6
19373 fi
19374 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19375 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
19376 else
19377   # Is the header compilable?
19378 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19379 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
19380 cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h.  */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h.  */
19386 $ac_includes_default
19387 #include <sys/mkdev.h>
19388 _ACEOF
19389 rm -f conftest.$ac_objext
19390 if { (ac_try="$ac_compile"
19391 case "(($ac_try" in
19392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393   *) ac_try_echo=$ac_try;;
19394 esac
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396   (eval "$ac_compile") 2>conftest.er1
19397   ac_status=$?
19398   grep -v '^ *+' conftest.er1 >conftest.err
19399   rm -f conftest.er1
19400   cat conftest.err >&5
19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402   (exit $ac_status); } && {
19403          test -z "$ac_c_werror_flag" ||
19404          test ! -s conftest.err
19405        } && test -s conftest.$ac_objext; then
19406   ac_header_compiler=yes
19407 else
19408   echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19410
19411         ac_header_compiler=no
19412 fi
19413
19414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19416 echo "${ECHO_T}$ac_header_compiler" >&6; }
19417
19418 # Is the header present?
19419 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19420 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
19421 cat >conftest.$ac_ext <<_ACEOF
19422 /* confdefs.h.  */
19423 _ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h.  */
19427 #include <sys/mkdev.h>
19428 _ACEOF
19429 if { (ac_try="$ac_cpp conftest.$ac_ext"
19430 case "(($ac_try" in
19431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432   *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19436   ac_status=$?
19437   grep -v '^ *+' conftest.er1 >conftest.err
19438   rm -f conftest.er1
19439   cat conftest.err >&5
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); } >/dev/null && {
19442          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19443          test ! -s conftest.err
19444        }; then
19445   ac_header_preproc=yes
19446 else
19447   echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19449
19450   ac_header_preproc=no
19451 fi
19452
19453 rm -f conftest.err conftest.$ac_ext
19454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19455 echo "${ECHO_T}$ac_header_preproc" >&6; }
19456
19457 # So?  What about this header?
19458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19459   yes:no: )
19460     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19461 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19462     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19463 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19464     ac_header_preproc=yes
19465     ;;
19466   no:yes:* )
19467     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19468 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19469     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19470 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19471     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19472 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19473     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19474 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19475     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19476 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19477     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19478 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19479
19480     ;;
19481 esac
19482 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19483 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
19484 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19485   echo $ECHO_N "(cached) $ECHO_C" >&6
19486 else
19487   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19488 fi
19489 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19490 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
19491
19492 fi
19493 if test $ac_cv_header_sys_mkdev_h = yes; then
19494
19495 cat >>confdefs.h <<\_ACEOF
19496 #define MAJOR_IN_MKDEV 1
19497 _ACEOF
19498
19499 fi
19500
19501
19502
19503   if test $ac_cv_header_sys_mkdev_h = no; then
19504     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19505   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19506 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
19507 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 fi
19510 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19511 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
19512 else
19513   # Is the header compilable?
19514 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19515 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h.  */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h.  */
19522 $ac_includes_default
19523 #include <sys/sysmacros.h>
19524 _ACEOF
19525 rm -f conftest.$ac_objext
19526 if { (ac_try="$ac_compile"
19527 case "(($ac_try" in
19528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529   *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532   (eval "$ac_compile") 2>conftest.er1
19533   ac_status=$?
19534   grep -v '^ *+' conftest.er1 >conftest.err
19535   rm -f conftest.er1
19536   cat conftest.err >&5
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); } && {
19539          test -z "$ac_c_werror_flag" ||
19540          test ! -s conftest.err
19541        } && test -s conftest.$ac_objext; then
19542   ac_header_compiler=yes
19543 else
19544   echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19546
19547         ac_header_compiler=no
19548 fi
19549
19550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19552 echo "${ECHO_T}$ac_header_compiler" >&6; }
19553
19554 # Is the header present?
19555 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19556 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h.  */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h.  */
19563 #include <sys/sysmacros.h>
19564 _ACEOF
19565 if { (ac_try="$ac_cpp conftest.$ac_ext"
19566 case "(($ac_try" in
19567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568   *) ac_try_echo=$ac_try;;
19569 esac
19570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19572   ac_status=$?
19573   grep -v '^ *+' conftest.er1 >conftest.err
19574   rm -f conftest.er1
19575   cat conftest.err >&5
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); } >/dev/null && {
19578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19579          test ! -s conftest.err
19580        }; then
19581   ac_header_preproc=yes
19582 else
19583   echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19585
19586   ac_header_preproc=no
19587 fi
19588
19589 rm -f conftest.err conftest.$ac_ext
19590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19591 echo "${ECHO_T}$ac_header_preproc" >&6; }
19592
19593 # So?  What about this header?
19594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19595   yes:no: )
19596     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19597 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19598     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19599 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19600     ac_header_preproc=yes
19601     ;;
19602   no:yes:* )
19603     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19604 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19605     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19606 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19607     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19608 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19609     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19610 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19611     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19612 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19613     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19614 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19615
19616     ;;
19617 esac
19618 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19619 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
19620 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19621   echo $ECHO_N "(cached) $ECHO_C" >&6
19622 else
19623   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19624 fi
19625 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19626 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
19627
19628 fi
19629 if test $ac_cv_header_sys_sysmacros_h = yes; then
19630
19631 cat >>confdefs.h <<\_ACEOF
19632 #define MAJOR_IN_SYSMACROS 1
19633 _ACEOF
19634
19635 fi
19636
19637
19638   fi
19639 fi
19640
19641
19642
19643
19644
19645
19646 ac_header_dirent=no
19647 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19648   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19649 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19650 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19652   echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654   cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h.  */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h.  */
19660 #include <sys/types.h>
19661 #include <$ac_hdr>
19662
19663 int
19664 main ()
19665 {
19666 if ((DIR *) 0)
19667 return 0;
19668   ;
19669   return 0;
19670 }
19671 _ACEOF
19672 rm -f conftest.$ac_objext
19673 if { (ac_try="$ac_compile"
19674 case "(($ac_try" in
19675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676   *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679   (eval "$ac_compile") 2>conftest.er1
19680   ac_status=$?
19681   grep -v '^ *+' conftest.er1 >conftest.err
19682   rm -f conftest.er1
19683   cat conftest.err >&5
19684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); } && {
19686          test -z "$ac_c_werror_flag" ||
19687          test ! -s conftest.err
19688        } && test -s conftest.$ac_objext; then
19689   eval "$as_ac_Header=yes"
19690 else
19691   echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19693
19694         eval "$as_ac_Header=no"
19695 fi
19696
19697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19698 fi
19699 ac_res=`eval echo '${'$as_ac_Header'}'`
19700                { echo "$as_me:$LINENO: result: $ac_res" >&5
19701 echo "${ECHO_T}$ac_res" >&6; }
19702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19703   cat >>confdefs.h <<_ACEOF
19704 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19705 _ACEOF
19706
19707 ac_header_dirent=$ac_hdr; break
19708 fi
19709
19710 done
19711 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19712 if test $ac_header_dirent = dirent.h; then
19713   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19714 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19715 if test "${ac_cv_search_opendir+set}" = set; then
19716   echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718   ac_func_search_save_LIBS=$LIBS
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h.  */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h.  */
19725
19726 /* Override any GCC internal prototype to avoid an error.
19727    Use char because int might match the return type of a GCC
19728    builtin and then its argument prototype would still apply.  */
19729 #ifdef __cplusplus
19730 extern "C"
19731 #endif
19732 char opendir ();
19733 int
19734 main ()
19735 {
19736 return opendir ();
19737   ;
19738   return 0;
19739 }
19740 _ACEOF
19741 for ac_lib in '' dir; do
19742   if test -z "$ac_lib"; then
19743     ac_res="none required"
19744   else
19745     ac_res=-l$ac_lib
19746     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19747   fi
19748   rm -f conftest.$ac_objext conftest$ac_exeext
19749 if { (ac_try="$ac_link"
19750 case "(($ac_try" in
19751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752   *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755   (eval "$ac_link") 2>conftest.er1
19756   ac_status=$?
19757   grep -v '^ *+' conftest.er1 >conftest.err
19758   rm -f conftest.er1
19759   cat conftest.err >&5
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); } && {
19762          test -z "$ac_c_werror_flag" ||
19763          test ! -s conftest.err
19764        } && test -s conftest$ac_exeext &&
19765        $as_test_x conftest$ac_exeext; then
19766   ac_cv_search_opendir=$ac_res
19767 else
19768   echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19770
19771
19772 fi
19773
19774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19775       conftest$ac_exeext
19776   if test "${ac_cv_search_opendir+set}" = set; then
19777   break
19778 fi
19779 done
19780 if test "${ac_cv_search_opendir+set}" = set; then
19781   :
19782 else
19783   ac_cv_search_opendir=no
19784 fi
19785 rm conftest.$ac_ext
19786 LIBS=$ac_func_search_save_LIBS
19787 fi
19788 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19789 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19790 ac_res=$ac_cv_search_opendir
19791 if test "$ac_res" != no; then
19792   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19793
19794 fi
19795
19796 else
19797   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19798 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19799 if test "${ac_cv_search_opendir+set}" = set; then
19800   echo $ECHO_N "(cached) $ECHO_C" >&6
19801 else
19802   ac_func_search_save_LIBS=$LIBS
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h.  */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h.  */
19809
19810 /* Override any GCC internal prototype to avoid an error.
19811    Use char because int might match the return type of a GCC
19812    builtin and then its argument prototype would still apply.  */
19813 #ifdef __cplusplus
19814 extern "C"
19815 #endif
19816 char opendir ();
19817 int
19818 main ()
19819 {
19820 return opendir ();
19821   ;
19822   return 0;
19823 }
19824 _ACEOF
19825 for ac_lib in '' x; do
19826   if test -z "$ac_lib"; then
19827     ac_res="none required"
19828   else
19829     ac_res=-l$ac_lib
19830     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19831   fi
19832   rm -f conftest.$ac_objext conftest$ac_exeext
19833 if { (ac_try="$ac_link"
19834 case "(($ac_try" in
19835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836   *) ac_try_echo=$ac_try;;
19837 esac
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839   (eval "$ac_link") 2>conftest.er1
19840   ac_status=$?
19841   grep -v '^ *+' conftest.er1 >conftest.err
19842   rm -f conftest.er1
19843   cat conftest.err >&5
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); } && {
19846          test -z "$ac_c_werror_flag" ||
19847          test ! -s conftest.err
19848        } && test -s conftest$ac_exeext &&
19849        $as_test_x conftest$ac_exeext; then
19850   ac_cv_search_opendir=$ac_res
19851 else
19852   echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19854
19855
19856 fi
19857
19858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19859       conftest$ac_exeext
19860   if test "${ac_cv_search_opendir+set}" = set; then
19861   break
19862 fi
19863 done
19864 if test "${ac_cv_search_opendir+set}" = set; then
19865   :
19866 else
19867   ac_cv_search_opendir=no
19868 fi
19869 rm conftest.$ac_ext
19870 LIBS=$ac_func_search_save_LIBS
19871 fi
19872 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19873 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19874 ac_res=$ac_cv_search_opendir
19875 if test "$ac_res" != no; then
19876   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19877
19878 fi
19879
19880 fi
19881
19882 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19883 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
19884 if test "${ac_cv_header_stat_broken+set}" = set; then
19885   echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887   cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h.  */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h.  */
19893 #include <sys/types.h>
19894 #include <sys/stat.h>
19895
19896 #if defined S_ISBLK && defined S_IFDIR
19897 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19898 #endif
19899
19900 #if defined S_ISBLK && defined S_IFCHR
19901 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19902 #endif
19903
19904 #if defined S_ISLNK && defined S_IFREG
19905 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19906 #endif
19907
19908 #if defined S_ISSOCK && defined S_IFREG
19909 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19910 #endif
19911
19912 _ACEOF
19913 rm -f conftest.$ac_objext
19914 if { (ac_try="$ac_compile"
19915 case "(($ac_try" in
19916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917   *) ac_try_echo=$ac_try;;
19918 esac
19919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19920   (eval "$ac_compile") 2>conftest.er1
19921   ac_status=$?
19922   grep -v '^ *+' conftest.er1 >conftest.err
19923   rm -f conftest.er1
19924   cat conftest.err >&5
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); } && {
19927          test -z "$ac_c_werror_flag" ||
19928          test ! -s conftest.err
19929        } && test -s conftest.$ac_objext; then
19930   ac_cv_header_stat_broken=no
19931 else
19932   echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935         ac_cv_header_stat_broken=yes
19936 fi
19937
19938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19939 fi
19940 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19941 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
19942 if test $ac_cv_header_stat_broken = yes; then
19943
19944 cat >>confdefs.h <<\_ACEOF
19945 #define STAT_MACROS_BROKEN 1
19946 _ACEOF
19947
19948 fi
19949
19950 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19951 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
19952 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19953   echo $ECHO_N "(cached) $ECHO_C" >&6
19954 else
19955   cat >conftest.$ac_ext <<_ACEOF
19956 /* confdefs.h.  */
19957 _ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h.  */
19961 #include <sys/types.h>
19962 #include <sys/wait.h>
19963 #ifndef WEXITSTATUS
19964 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19965 #endif
19966 #ifndef WIFEXITED
19967 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19968 #endif
19969
19970 int
19971 main ()
19972 {
19973   int s;
19974   wait (&s);
19975   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19976   ;
19977   return 0;
19978 }
19979 _ACEOF
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987   (eval "$ac_compile") 2>conftest.er1
19988   ac_status=$?
19989   grep -v '^ *+' conftest.er1 >conftest.err
19990   rm -f conftest.er1
19991   cat conftest.err >&5
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); } && {
19994          test -z "$ac_c_werror_flag" ||
19995          test ! -s conftest.err
19996        } && test -s conftest.$ac_objext; then
19997   ac_cv_header_sys_wait_h=yes
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002         ac_cv_header_sys_wait_h=no
20003 fi
20004
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20006 fi
20007 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20008 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20009 if test $ac_cv_header_sys_wait_h = yes; then
20010
20011 cat >>confdefs.h <<\_ACEOF
20012 #define HAVE_SYS_WAIT_H 1
20013 _ACEOF
20014
20015 fi
20016
20017 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20018 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20019 if test "${ac_cv_header_time+set}" = set; then
20020   echo $ECHO_N "(cached) $ECHO_C" >&6
20021 else
20022   cat >conftest.$ac_ext <<_ACEOF
20023 /* confdefs.h.  */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h.  */
20028 #include <sys/types.h>
20029 #include <sys/time.h>
20030 #include <time.h>
20031
20032 int
20033 main ()
20034 {
20035 if ((struct tm *) 0)
20036 return 0;
20037   ;
20038   return 0;
20039 }
20040 _ACEOF
20041 rm -f conftest.$ac_objext
20042 if { (ac_try="$ac_compile"
20043 case "(($ac_try" in
20044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045   *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048   (eval "$ac_compile") 2>conftest.er1
20049   ac_status=$?
20050   grep -v '^ *+' conftest.er1 >conftest.err
20051   rm -f conftest.er1
20052   cat conftest.err >&5
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); } && {
20055          test -z "$ac_c_werror_flag" ||
20056          test ! -s conftest.err
20057        } && test -s conftest.$ac_objext; then
20058   ac_cv_header_time=yes
20059 else
20060   echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063         ac_cv_header_time=no
20064 fi
20065
20066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20067 fi
20068 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20069 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20070 if test $ac_cv_header_time = yes; then
20071
20072 cat >>confdefs.h <<\_ACEOF
20073 #define TIME_WITH_SYS_TIME 1
20074 _ACEOF
20075
20076 fi
20077
20078 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20079 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20080 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20081   echo $ECHO_N "(cached) $ECHO_C" >&6
20082 else
20083   cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089 $ac_includes_default
20090 int
20091 main ()
20092 {
20093 static struct stat ac_aggr;
20094 if (ac_aggr.st_blksize)
20095 return 0;
20096   ;
20097   return 0;
20098 }
20099 _ACEOF
20100 rm -f conftest.$ac_objext
20101 if { (ac_try="$ac_compile"
20102 case "(($ac_try" in
20103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104   *) ac_try_echo=$ac_try;;
20105 esac
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107   (eval "$ac_compile") 2>conftest.er1
20108   ac_status=$?
20109   grep -v '^ *+' conftest.er1 >conftest.err
20110   rm -f conftest.er1
20111   cat conftest.err >&5
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); } && {
20114          test -z "$ac_c_werror_flag" ||
20115          test ! -s conftest.err
20116        } && test -s conftest.$ac_objext; then
20117   ac_cv_member_struct_stat_st_blksize=yes
20118 else
20119   echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20121
20122         cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128 $ac_includes_default
20129 int
20130 main ()
20131 {
20132 static struct stat ac_aggr;
20133 if (sizeof ac_aggr.st_blksize)
20134 return 0;
20135   ;
20136   return 0;
20137 }
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (ac_try="$ac_compile"
20141 case "(($ac_try" in
20142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143   *) ac_try_echo=$ac_try;;
20144 esac
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146   (eval "$ac_compile") 2>conftest.er1
20147   ac_status=$?
20148   grep -v '^ *+' conftest.er1 >conftest.err
20149   rm -f conftest.er1
20150   cat conftest.err >&5
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); } && {
20153          test -z "$ac_c_werror_flag" ||
20154          test ! -s conftest.err
20155        } && test -s conftest.$ac_objext; then
20156   ac_cv_member_struct_stat_st_blksize=yes
20157 else
20158   echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20160
20161         ac_cv_member_struct_stat_st_blksize=no
20162 fi
20163
20164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 fi
20166
20167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20168 fi
20169 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20170 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20171 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20172
20173 cat >>confdefs.h <<_ACEOF
20174 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20175 _ACEOF
20176
20177
20178 cat >>confdefs.h <<\_ACEOF
20179 #define HAVE_ST_BLKSIZE 1
20180 _ACEOF
20181
20182 fi
20183
20184
20185 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20186 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20187 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20188   echo $ECHO_N "(cached) $ECHO_C" >&6
20189 else
20190   cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h.  */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h.  */
20196 $ac_includes_default
20197 int
20198 main ()
20199 {
20200 static struct stat ac_aggr;
20201 if (ac_aggr.st_blocks)
20202 return 0;
20203   ;
20204   return 0;
20205 }
20206 _ACEOF
20207 rm -f conftest.$ac_objext
20208 if { (ac_try="$ac_compile"
20209 case "(($ac_try" in
20210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211   *) ac_try_echo=$ac_try;;
20212 esac
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214   (eval "$ac_compile") 2>conftest.er1
20215   ac_status=$?
20216   grep -v '^ *+' conftest.er1 >conftest.err
20217   rm -f conftest.er1
20218   cat conftest.err >&5
20219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); } && {
20221          test -z "$ac_c_werror_flag" ||
20222          test ! -s conftest.err
20223        } && test -s conftest.$ac_objext; then
20224   ac_cv_member_struct_stat_st_blocks=yes
20225 else
20226   echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20228
20229         cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h.  */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h.  */
20235 $ac_includes_default
20236 int
20237 main ()
20238 {
20239 static struct stat ac_aggr;
20240 if (sizeof ac_aggr.st_blocks)
20241 return 0;
20242   ;
20243   return 0;
20244 }
20245 _ACEOF
20246 rm -f conftest.$ac_objext
20247 if { (ac_try="$ac_compile"
20248 case "(($ac_try" in
20249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250   *) ac_try_echo=$ac_try;;
20251 esac
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253   (eval "$ac_compile") 2>conftest.er1
20254   ac_status=$?
20255   grep -v '^ *+' conftest.er1 >conftest.err
20256   rm -f conftest.er1
20257   cat conftest.err >&5
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); } && {
20260          test -z "$ac_c_werror_flag" ||
20261          test ! -s conftest.err
20262        } && test -s conftest.$ac_objext; then
20263   ac_cv_member_struct_stat_st_blocks=yes
20264 else
20265   echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20267
20268         ac_cv_member_struct_stat_st_blocks=no
20269 fi
20270
20271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272 fi
20273
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20275 fi
20276 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20277 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20278 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20279
20280 cat >>confdefs.h <<_ACEOF
20281 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20282 _ACEOF
20283
20284
20285 cat >>confdefs.h <<\_ACEOF
20286 #define HAVE_ST_BLOCKS 1
20287 _ACEOF
20288
20289 else
20290   case " $LIBOBJS " in
20291   *" fileblocks.$ac_objext "* ) ;;
20292   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20293  ;;
20294 esac
20295
20296 fi
20297
20298
20299 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20300 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20301 if test "${ac_cv_struct_tm+set}" = set; then
20302   echo $ECHO_N "(cached) $ECHO_C" >&6
20303 else
20304   cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310 #include <sys/types.h>
20311 #include <time.h>
20312
20313 int
20314 main ()
20315 {
20316 struct tm tm;
20317                                      int *p = &tm.tm_sec;
20318                                      return !p;
20319   ;
20320   return 0;
20321 }
20322 _ACEOF
20323 rm -f conftest.$ac_objext
20324 if { (ac_try="$ac_compile"
20325 case "(($ac_try" in
20326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327   *) ac_try_echo=$ac_try;;
20328 esac
20329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20330   (eval "$ac_compile") 2>conftest.er1
20331   ac_status=$?
20332   grep -v '^ *+' conftest.er1 >conftest.err
20333   rm -f conftest.er1
20334   cat conftest.err >&5
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); } && {
20337          test -z "$ac_c_werror_flag" ||
20338          test ! -s conftest.err
20339        } && test -s conftest.$ac_objext; then
20340   ac_cv_struct_tm=time.h
20341 else
20342   echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345         ac_cv_struct_tm=sys/time.h
20346 fi
20347
20348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20349 fi
20350 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20351 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20352 if test $ac_cv_struct_tm = sys/time.h; then
20353
20354 cat >>confdefs.h <<\_ACEOF
20355 #define TM_IN_SYS_TIME 1
20356 _ACEOF
20357
20358 fi
20359
20360 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20361 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20362 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20363   echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365   cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h.  */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h.  */
20371 #include <sys/types.h>
20372 #include <$ac_cv_struct_tm>
20373
20374
20375 int
20376 main ()
20377 {
20378 static struct tm ac_aggr;
20379 if (ac_aggr.tm_zone)
20380 return 0;
20381   ;
20382   return 0;
20383 }
20384 _ACEOF
20385 rm -f conftest.$ac_objext
20386 if { (ac_try="$ac_compile"
20387 case "(($ac_try" in
20388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389   *) ac_try_echo=$ac_try;;
20390 esac
20391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20392   (eval "$ac_compile") 2>conftest.er1
20393   ac_status=$?
20394   grep -v '^ *+' conftest.er1 >conftest.err
20395   rm -f conftest.er1
20396   cat conftest.err >&5
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); } && {
20399          test -z "$ac_c_werror_flag" ||
20400          test ! -s conftest.err
20401        } && test -s conftest.$ac_objext; then
20402   ac_cv_member_struct_tm_tm_zone=yes
20403 else
20404   echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20406
20407         cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 #include <sys/types.h>
20414 #include <$ac_cv_struct_tm>
20415
20416
20417 int
20418 main ()
20419 {
20420 static struct tm ac_aggr;
20421 if (sizeof ac_aggr.tm_zone)
20422 return 0;
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 rm -f conftest.$ac_objext
20428 if { (ac_try="$ac_compile"
20429 case "(($ac_try" in
20430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431   *) ac_try_echo=$ac_try;;
20432 esac
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434   (eval "$ac_compile") 2>conftest.er1
20435   ac_status=$?
20436   grep -v '^ *+' conftest.er1 >conftest.err
20437   rm -f conftest.er1
20438   cat conftest.err >&5
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); } && {
20441          test -z "$ac_c_werror_flag" ||
20442          test ! -s conftest.err
20443        } && test -s conftest.$ac_objext; then
20444   ac_cv_member_struct_tm_tm_zone=yes
20445 else
20446   echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20448
20449         ac_cv_member_struct_tm_tm_zone=no
20450 fi
20451
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453 fi
20454
20455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20456 fi
20457 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20458 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
20459 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20460
20461 cat >>confdefs.h <<_ACEOF
20462 #define HAVE_STRUCT_TM_TM_ZONE 1
20463 _ACEOF
20464
20465
20466 fi
20467
20468 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20469
20470 cat >>confdefs.h <<\_ACEOF
20471 #define HAVE_TM_ZONE 1
20472 _ACEOF
20473
20474 else
20475   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20476 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
20477 if test "${ac_cv_have_decl_tzname+set}" = set; then
20478   echo $ECHO_N "(cached) $ECHO_C" >&6
20479 else
20480   cat >conftest.$ac_ext <<_ACEOF
20481 /* confdefs.h.  */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h.  */
20486 #include <time.h>
20487
20488 int
20489 main ()
20490 {
20491 #ifndef tzname
20492   (void) tzname;
20493 #endif
20494
20495   ;
20496   return 0;
20497 }
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (ac_try="$ac_compile"
20501 case "(($ac_try" in
20502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503   *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506   (eval "$ac_compile") 2>conftest.er1
20507   ac_status=$?
20508   grep -v '^ *+' conftest.er1 >conftest.err
20509   rm -f conftest.er1
20510   cat conftest.err >&5
20511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); } && {
20513          test -z "$ac_c_werror_flag" ||
20514          test ! -s conftest.err
20515        } && test -s conftest.$ac_objext; then
20516   ac_cv_have_decl_tzname=yes
20517 else
20518   echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20520
20521         ac_cv_have_decl_tzname=no
20522 fi
20523
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525 fi
20526 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
20527 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
20528 if test $ac_cv_have_decl_tzname = yes; then
20529
20530 cat >>confdefs.h <<_ACEOF
20531 #define HAVE_DECL_TZNAME 1
20532 _ACEOF
20533
20534
20535 else
20536   cat >>confdefs.h <<_ACEOF
20537 #define HAVE_DECL_TZNAME 0
20538 _ACEOF
20539
20540
20541 fi
20542
20543
20544   { echo "$as_me:$LINENO: checking for tzname" >&5
20545 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
20546 if test "${ac_cv_var_tzname+set}" = set; then
20547   echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549   cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h.  */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h.  */
20555 #include <time.h>
20556 #if !HAVE_DECL_TZNAME
20557 extern char *tzname[];
20558 #endif
20559
20560 int
20561 main ()
20562 {
20563 return tzname[0][0];
20564   ;
20565   return 0;
20566 }
20567 _ACEOF
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575   (eval "$ac_link") 2>conftest.er1
20576   ac_status=$?
20577   grep -v '^ *+' conftest.er1 >conftest.err
20578   rm -f conftest.er1
20579   cat conftest.err >&5
20580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581   (exit $ac_status); } && {
20582          test -z "$ac_c_werror_flag" ||
20583          test ! -s conftest.err
20584        } && test -s conftest$ac_exeext &&
20585        $as_test_x conftest$ac_exeext; then
20586   ac_cv_var_tzname=yes
20587 else
20588   echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591         ac_cv_var_tzname=no
20592 fi
20593
20594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20595       conftest$ac_exeext conftest.$ac_ext
20596 fi
20597 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20598 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
20599   if test $ac_cv_var_tzname = yes; then
20600
20601 cat >>confdefs.h <<\_ACEOF
20602 #define HAVE_TZNAME 1
20603 _ACEOF
20604
20605   fi
20606 fi
20607
20608
20609 { echo "$as_me:$LINENO: checking for utime.h" >&5
20610 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
20611 if test "${ba_cv_header_utime_h+set}" = set; then
20612   echo $ECHO_N "(cached) $ECHO_C" >&6
20613 else
20614   cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h.  */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h.  */
20620
20621 #include <sys/types.h>
20622 #include <utime.h>
20623 int
20624 main ()
20625 {
20626 struct utimbuf foo
20627   ;
20628   return 0;
20629 }
20630 _ACEOF
20631 rm -f conftest.$ac_objext
20632 if { (ac_try="$ac_compile"
20633 case "(($ac_try" in
20634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635   *) ac_try_echo=$ac_try;;
20636 esac
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638   (eval "$ac_compile") 2>conftest.er1
20639   ac_status=$?
20640   grep -v '^ *+' conftest.er1 >conftest.err
20641   rm -f conftest.er1
20642   cat conftest.err >&5
20643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644   (exit $ac_status); } && {
20645          test -z "$ac_c_werror_flag" ||
20646          test ! -s conftest.err
20647        } && test -s conftest.$ac_objext; then
20648   ba_cv_header_utime_h=yes
20649 else
20650   echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20652
20653         ba_cv_header_utime_h=no
20654 fi
20655
20656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20657 fi
20658 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20659 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
20660 test $ba_cv_header_utime_h = yes &&
20661 cat >>confdefs.h <<\_ACEOF
20662 #define HAVE_UTIME_H 1
20663 _ACEOF
20664
20665
20666 { echo "$as_me:$LINENO: checking for socklen_t" >&5
20667 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
20668 if test "${ba_cv_header_socklen_t+set}" = set; then
20669   echo $ECHO_N "(cached) $ECHO_C" >&6
20670 else
20671   cat >conftest.$ac_ext <<_ACEOF
20672 /* confdefs.h.  */
20673 _ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h.  */
20677
20678 #include <sys/types.h>
20679 #include <sys/socket.h>
20680 int
20681 main ()
20682 {
20683 socklen_t x
20684   ;
20685   return 0;
20686 }
20687 _ACEOF
20688 rm -f conftest.$ac_objext
20689 if { (ac_try="$ac_compile"
20690 case "(($ac_try" in
20691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692   *) ac_try_echo=$ac_try;;
20693 esac
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695   (eval "$ac_compile") 2>conftest.er1
20696   ac_status=$?
20697   grep -v '^ *+' conftest.er1 >conftest.err
20698   rm -f conftest.er1
20699   cat conftest.err >&5
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); } && {
20702          test -z "$ac_c_werror_flag" ||
20703          test ! -s conftest.err
20704        } && test -s conftest.$ac_objext; then
20705   ba_cv_header_socklen_t=yes
20706 else
20707   echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20709
20710         ba_cv_header_socklen_t=no
20711 fi
20712
20713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20714 fi
20715 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20716 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
20717 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20718 #define HAVE_SOCKLEN_T 1
20719 _ACEOF
20720
20721
20722 { echo "$as_me:$LINENO: checking for bigendian" >&5
20723 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
20724 if test "${ba_cv_bigendian+set}" = set; then
20725   echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727   if test "$cross_compiling" = yes; then
20728   ba_cv_bigendian=no
20729 else
20730   cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h.  */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h.  */
20736 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20737 _ACEOF
20738 rm -f conftest$ac_exeext
20739 if { (ac_try="$ac_link"
20740 case "(($ac_try" in
20741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742   *) ac_try_echo=$ac_try;;
20743 esac
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745   (eval "$ac_link") 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20749   { (case "(($ac_try" in
20750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751   *) ac_try_echo=$ac_try;;
20752 esac
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754   (eval "$ac_try") 2>&5
20755   ac_status=$?
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); }; }; then
20758   ba_cv_bigendian=yes
20759 else
20760   echo "$as_me: program exited with status $ac_status" >&5
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20763
20764 ( exit $ac_status )
20765 ba_cv_bigendian=no
20766 fi
20767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20768 fi
20769
20770
20771 fi
20772 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20773 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
20774 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20775 #define HAVE_BIGENDIAN 1
20776 _ACEOF
20777
20778
20779 ac_ext=cpp
20780 ac_cpp='$CXXCPP $CPPFLAGS'
20781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20784
20785
20786 { echo "$as_me:$LINENO: checking for typeof" >&5
20787 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
20788 if test "${ba_cv_have_typeof+set}" = set; then
20789   echo $ECHO_N "(cached) $ECHO_C" >&6
20790 else
20791   if test "$cross_compiling" = yes; then
20792   ba_cv_have_typeof=no
20793 else
20794   cat >conftest.$ac_ext <<_ACEOF
20795 /* confdefs.h.  */
20796 _ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h.  */
20800 main(){char *a = 0; a = (typeof a)a;}
20801 _ACEOF
20802 rm -f conftest$ac_exeext
20803 if { (ac_try="$ac_link"
20804 case "(($ac_try" in
20805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806   *) ac_try_echo=$ac_try;;
20807 esac
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809   (eval "$ac_link") 2>&5
20810   ac_status=$?
20811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20813   { (case "(($ac_try" in
20814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815   *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818   (eval "$ac_try") 2>&5
20819   ac_status=$?
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); }; }; then
20822   ba_cv_have_typeof=yes
20823 else
20824   echo "$as_me: program exited with status $ac_status" >&5
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20827
20828 ( exit $ac_status )
20829 ba_cv_have_typeof=no
20830 fi
20831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20832 fi
20833
20834
20835 fi
20836 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
20837 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
20838 test $ba_cv_have_typeof = yes &&
20839 cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_TYPEOF 1
20841 _ACEOF
20842
20843 ac_ext=c
20844 ac_cpp='$CPP $CPPFLAGS'
20845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20848
20849
20850 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20851 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20852 if test "${ac_cv_c_const+set}" = set; then
20853   echo $ECHO_N "(cached) $ECHO_C" >&6
20854 else
20855   cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861
20862 int
20863 main ()
20864 {
20865 /* FIXME: Include the comments suggested by Paul. */
20866 #ifndef __cplusplus
20867   /* Ultrix mips cc rejects this.  */
20868   typedef int charset[2];
20869   const charset cs;
20870   /* SunOS 4.1.1 cc rejects this.  */
20871   char const *const *pcpcc;
20872   char **ppc;
20873   /* NEC SVR4.0.2 mips cc rejects this.  */
20874   struct point {int x, y;};
20875   static struct point const zero = {0,0};
20876   /* AIX XL C 1.02.0.0 rejects this.
20877      It does not let you subtract one const X* pointer from another in
20878      an arm of an if-expression whose if-part is not a constant
20879      expression */
20880   const char *g = "string";
20881   pcpcc = &g + (g ? g-g : 0);
20882   /* HPUX 7.0 cc rejects these. */
20883   ++pcpcc;
20884   ppc = (char**) pcpcc;
20885   pcpcc = (char const *const *) ppc;
20886   { /* SCO 3.2v4 cc rejects this.  */
20887     char *t;
20888     char const *s = 0 ? (char *) 0 : (char const *) 0;
20889
20890     *t++ = 0;
20891     if (s) return 0;
20892   }
20893   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20894     int x[] = {25, 17};
20895     const int *foo = &x[0];
20896     ++foo;
20897   }
20898   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20899     typedef const int *iptr;
20900     iptr p = 0;
20901     ++p;
20902   }
20903   { /* AIX XL C 1.02.0.0 rejects this saying
20904        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20905     struct s { int j; const int *ap[3]; };
20906     struct s *b; b->j = 5;
20907   }
20908   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20909     const int foo = 10;
20910     if (!foo) return 0;
20911   }
20912   return !cs[0] && !zero.x;
20913 #endif
20914
20915   ;
20916   return 0;
20917 }
20918 _ACEOF
20919 rm -f conftest.$ac_objext
20920 if { (ac_try="$ac_compile"
20921 case "(($ac_try" in
20922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923   *) ac_try_echo=$ac_try;;
20924 esac
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926   (eval "$ac_compile") 2>conftest.er1
20927   ac_status=$?
20928   grep -v '^ *+' conftest.er1 >conftest.err
20929   rm -f conftest.er1
20930   cat conftest.err >&5
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); } && {
20933          test -z "$ac_c_werror_flag" ||
20934          test ! -s conftest.err
20935        } && test -s conftest.$ac_objext; then
20936   ac_cv_c_const=yes
20937 else
20938   echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20940
20941         ac_cv_c_const=no
20942 fi
20943
20944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20945 fi
20946 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20947 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20948 if test $ac_cv_c_const = no; then
20949
20950 cat >>confdefs.h <<\_ACEOF
20951 #define const
20952 _ACEOF
20953
20954 fi
20955
20956
20957
20958 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
20959 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
20960 fstype=no
20961 # The order of these tests is important.
20962 cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h.  */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h.  */
20968 #include <sys/statvfs.h>
20969 #include <sys/fstyp.h>
20970 _ACEOF
20971 if { (ac_try="$ac_cpp conftest.$ac_ext"
20972 case "(($ac_try" in
20973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974   *) ac_try_echo=$ac_try;;
20975 esac
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20978   ac_status=$?
20979   grep -v '^ *+' conftest.er1 >conftest.err
20980   rm -f conftest.er1
20981   cat conftest.err >&5
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); } >/dev/null && {
20984          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20985          test ! -s conftest.err
20986        }; then
20987   cat >>confdefs.h <<\_ACEOF
20988 #define FSTYPE_STATVFS 1
20989 _ACEOF
20990  fstype=SVR4
20991 else
20992   echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20994
20995
20996 fi
20997
20998 rm -f conftest.err conftest.$ac_ext
20999 if test $fstype = no; then
21000 cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h.  */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h.  */
21006 #include <sys/statfs.h>
21007 #include <sys/fstyp.h>
21008 _ACEOF
21009 if { (ac_try="$ac_cpp conftest.$ac_ext"
21010 case "(($ac_try" in
21011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012   *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21016   ac_status=$?
21017   grep -v '^ *+' conftest.er1 >conftest.err
21018   rm -f conftest.er1
21019   cat conftest.err >&5
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); } >/dev/null && {
21022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21023          test ! -s conftest.err
21024        }; then
21025   cat >>confdefs.h <<\_ACEOF
21026 #define FSTYPE_USG_STATFS 1
21027 _ACEOF
21028  fstype=SVR3
21029 else
21030   echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21032
21033
21034 fi
21035
21036 rm -f conftest.err conftest.$ac_ext
21037 fi
21038 if test $fstype = no; then
21039 cat >conftest.$ac_ext <<_ACEOF
21040 /* confdefs.h.  */
21041 _ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h.  */
21045 #include <sys/statfs.h>
21046 #include <sys/vmount.h>
21047 _ACEOF
21048 if { (ac_try="$ac_cpp conftest.$ac_ext"
21049 case "(($ac_try" in
21050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051   *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21055   ac_status=$?
21056   grep -v '^ *+' conftest.er1 >conftest.err
21057   rm -f conftest.er1
21058   cat conftest.err >&5
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } >/dev/null && {
21061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21062          test ! -s conftest.err
21063        }; then
21064   cat >>confdefs.h <<\_ACEOF
21065 #define FSTYPE_AIX_STATFS 1
21066 _ACEOF
21067  fstype=AIX
21068 else
21069   echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21071
21072
21073 fi
21074
21075 rm -f conftest.err conftest.$ac_ext
21076 fi
21077 if test $fstype = no; then
21078 cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h.  */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h.  */
21084 #include <mntent.h>
21085 _ACEOF
21086 if { (ac_try="$ac_cpp conftest.$ac_ext"
21087 case "(($ac_try" in
21088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089   *) ac_try_echo=$ac_try;;
21090 esac
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21093   ac_status=$?
21094   grep -v '^ *+' conftest.er1 >conftest.err
21095   rm -f conftest.er1
21096   cat conftest.err >&5
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); } >/dev/null && {
21099          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21100          test ! -s conftest.err
21101        }; then
21102   cat >>confdefs.h <<\_ACEOF
21103 #define FSTYPE_MNTENT 1
21104 _ACEOF
21105  fstype=4.3BSD
21106 else
21107   echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110
21111 fi
21112
21113 rm -f conftest.err conftest.$ac_ext
21114 fi
21115 if test $fstype = no; then
21116 cat >conftest.$ac_ext <<_ACEOF
21117 /* confdefs.h.  */
21118 _ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h.  */
21122 #include <sys/mount.h>
21123
21124 _ACEOF
21125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21126   $EGREP "f_type;" >/dev/null 2>&1; then
21127   cat >>confdefs.h <<\_ACEOF
21128 #define FSTYPE_STATFS 1
21129 _ACEOF
21130  fstype=4.4BSD/OSF1
21131 fi
21132 rm -f conftest*
21133
21134 fi
21135 if test $fstype = no; then
21136 cat >conftest.$ac_ext <<_ACEOF
21137 /* confdefs.h.  */
21138 _ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h.  */
21142 #include <sys/mount.h>
21143 #include <sys/fs_types.h>
21144 _ACEOF
21145 if { (ac_try="$ac_cpp conftest.$ac_ext"
21146 case "(($ac_try" in
21147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148   *) ac_try_echo=$ac_try;;
21149 esac
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21152   ac_status=$?
21153   grep -v '^ *+' conftest.er1 >conftest.err
21154   rm -f conftest.er1
21155   cat conftest.err >&5
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); } >/dev/null && {
21158          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21159          test ! -s conftest.err
21160        }; then
21161   cat >>confdefs.h <<\_ACEOF
21162 #define FSTYPE_GETMNT 1
21163 _ACEOF
21164  fstype=Ultrix
21165 else
21166   echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169
21170 fi
21171
21172 rm -f conftest.err conftest.$ac_ext
21173 fi
21174 { echo "$as_me:$LINENO: result: $fstype" >&5
21175 echo "${ECHO_T}$fstype" >&6; }
21176
21177 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21178   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21179 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21180 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21181   echo $ECHO_N "(cached) $ECHO_C" >&6
21182 fi
21183 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21184 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21185 else
21186   # Is the header compilable?
21187 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21188 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
21189 cat >conftest.$ac_ext <<_ACEOF
21190 /* confdefs.h.  */
21191 _ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h.  */
21195 $ac_includes_default
21196 #include <sys/statvfs.h>
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (ac_try="$ac_compile"
21200 case "(($ac_try" in
21201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202   *) ac_try_echo=$ac_try;;
21203 esac
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205   (eval "$ac_compile") 2>conftest.er1
21206   ac_status=$?
21207   grep -v '^ *+' conftest.er1 >conftest.err
21208   rm -f conftest.er1
21209   cat conftest.err >&5
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); } && {
21212          test -z "$ac_c_werror_flag" ||
21213          test ! -s conftest.err
21214        } && test -s conftest.$ac_objext; then
21215   ac_header_compiler=yes
21216 else
21217   echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21219
21220         ac_header_compiler=no
21221 fi
21222
21223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21225 echo "${ECHO_T}$ac_header_compiler" >&6; }
21226
21227 # Is the header present?
21228 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21229 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h.  */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h.  */
21236 #include <sys/statvfs.h>
21237 _ACEOF
21238 if { (ac_try="$ac_cpp conftest.$ac_ext"
21239 case "(($ac_try" in
21240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241   *) ac_try_echo=$ac_try;;
21242 esac
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21245   ac_status=$?
21246   grep -v '^ *+' conftest.er1 >conftest.err
21247   rm -f conftest.er1
21248   cat conftest.err >&5
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); } >/dev/null && {
21251          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21252          test ! -s conftest.err
21253        }; then
21254   ac_header_preproc=yes
21255 else
21256   echo "$as_me: failed program was:" >&5
21257 sed 's/^/| /' conftest.$ac_ext >&5
21258
21259   ac_header_preproc=no
21260 fi
21261
21262 rm -f conftest.err conftest.$ac_ext
21263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21264 echo "${ECHO_T}$ac_header_preproc" >&6; }
21265
21266 # So?  What about this header?
21267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21268   yes:no: )
21269     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21270 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21271     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21272 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21273     ac_header_preproc=yes
21274     ;;
21275   no:yes:* )
21276     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21277 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21278     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21279 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21280     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21281 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21282     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21283 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21284     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21285 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21286     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21287 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21288
21289     ;;
21290 esac
21291 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21292 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21293 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21294   echo $ECHO_N "(cached) $ECHO_C" >&6
21295 else
21296   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21297 fi
21298 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21299 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21300
21301 fi
21302 if test $ac_cv_header_sys_statvfs_h = yes; then
21303
21304 cat >>confdefs.h <<\_ACEOF
21305 #define HAVE_SYS_STATVFS_H 1
21306 _ACEOF
21307
21308 fi
21309
21310
21311
21312 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21313 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21314 if test "${ac_cv_type_signal+set}" = set; then
21315   echo $ECHO_N "(cached) $ECHO_C" >&6
21316 else
21317   cat >conftest.$ac_ext <<_ACEOF
21318 /* confdefs.h.  */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h.  */
21323 #include <sys/types.h>
21324 #include <signal.h>
21325
21326 int
21327 main ()
21328 {
21329 return *(signal (0, 0)) (0) == 1;
21330   ;
21331   return 0;
21332 }
21333 _ACEOF
21334 rm -f conftest.$ac_objext
21335 if { (ac_try="$ac_compile"
21336 case "(($ac_try" in
21337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338   *) ac_try_echo=$ac_try;;
21339 esac
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341   (eval "$ac_compile") 2>conftest.er1
21342   ac_status=$?
21343   grep -v '^ *+' conftest.er1 >conftest.err
21344   rm -f conftest.er1
21345   cat conftest.err >&5
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); } && {
21348          test -z "$ac_c_werror_flag" ||
21349          test ! -s conftest.err
21350        } && test -s conftest.$ac_objext; then
21351   ac_cv_type_signal=int
21352 else
21353   echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356         ac_cv_type_signal=void
21357 fi
21358
21359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21360 fi
21361 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21362 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21363
21364 cat >>confdefs.h <<_ACEOF
21365 #define RETSIGTYPE $ac_cv_type_signal
21366 _ACEOF
21367
21368
21369
21370   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
21371 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
21372   if test "${bash_cv_signal_vintage+set}" = set; then
21373   echo $ECHO_N "(cached) $ECHO_C" >&6
21374 else
21375
21376     cat >conftest.$ac_ext <<_ACEOF
21377 /* confdefs.h.  */
21378 _ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h.  */
21382 #include <signal.h>
21383 int
21384 main ()
21385 {
21386
21387       sigset_t ss;
21388       struct sigaction sa;
21389       sigemptyset(&ss); sigsuspend(&ss);
21390       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21391       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21392
21393   ;
21394   return 0;
21395 }
21396 _ACEOF
21397 rm -f conftest.$ac_objext conftest$ac_exeext
21398 if { (ac_try="$ac_link"
21399 case "(($ac_try" in
21400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401   *) ac_try_echo=$ac_try;;
21402 esac
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404   (eval "$ac_link") 2>conftest.er1
21405   ac_status=$?
21406   grep -v '^ *+' conftest.er1 >conftest.err
21407   rm -f conftest.er1
21408   cat conftest.err >&5
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); } && {
21411          test -z "$ac_c_werror_flag" ||
21412          test ! -s conftest.err
21413        } && test -s conftest$ac_exeext &&
21414        $as_test_x conftest$ac_exeext; then
21415   bash_cv_signal_vintage="posix"
21416 else
21417   echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21419
21420
21421       cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h.  */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h.  */
21427 #include <signal.h>
21428 int
21429 main ()
21430 {
21431
21432           int mask = sigmask(SIGINT);
21433           sigsetmask(mask); sigblock(mask); sigpause(mask);
21434
21435   ;
21436   return 0;
21437 }
21438 _ACEOF
21439 rm -f conftest.$ac_objext conftest$ac_exeext
21440 if { (ac_try="$ac_link"
21441 case "(($ac_try" in
21442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443   *) ac_try_echo=$ac_try;;
21444 esac
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446   (eval "$ac_link") 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } && {
21453          test -z "$ac_c_werror_flag" ||
21454          test ! -s conftest.err
21455        } && test -s conftest$ac_exeext &&
21456        $as_test_x conftest$ac_exeext; then
21457   bash_cv_signal_vintage="4.2bsd"
21458 else
21459   echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21461
21462
21463         cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h.  */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h.  */
21469
21470           #include <signal.h>
21471           RETSIGTYPE foo() { }
21472 int
21473 main ()
21474 {
21475
21476                   int mask = sigmask(SIGINT);
21477                   sigset(SIGINT, foo); sigrelse(SIGINT);
21478                   sighold(SIGINT); sigpause(SIGINT);
21479
21480   ;
21481   return 0;
21482 }
21483 _ACEOF
21484 rm -f conftest.$ac_objext conftest$ac_exeext
21485 if { (ac_try="$ac_link"
21486 case "(($ac_try" in
21487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488   *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491   (eval "$ac_link") 2>conftest.er1
21492   ac_status=$?
21493   grep -v '^ *+' conftest.er1 >conftest.err
21494   rm -f conftest.er1
21495   cat conftest.err >&5
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); } && {
21498          test -z "$ac_c_werror_flag" ||
21499          test ! -s conftest.err
21500        } && test -s conftest$ac_exeext &&
21501        $as_test_x conftest$ac_exeext; then
21502   bash_cv_signal_vintage="svr3"
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507         bash_cv_signal_vintage="v7"
21508
21509 fi
21510
21511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21512       conftest$ac_exeext conftest.$ac_ext
21513
21514 fi
21515
21516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21517       conftest$ac_exeext conftest.$ac_ext
21518
21519 fi
21520
21521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21522       conftest$ac_exeext conftest.$ac_ext
21523
21524 fi
21525
21526   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21527 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
21528   if test "$bash_cv_signal_vintage" = "posix"; then
21529     cat >>confdefs.h <<\_ACEOF
21530 #define HAVE_POSIX_SIGNALS 1
21531 _ACEOF
21532
21533   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21534     cat >>confdefs.h <<\_ACEOF
21535 #define HAVE_BSD_SIGNALS 1
21536 _ACEOF
21537
21538   elif test "$bash_cv_signal_vintage" = "svr3"; then
21539     cat >>confdefs.h <<\_ACEOF
21540 #define HAVE_USG_SIGHOLD 1
21541 _ACEOF
21542
21543   fi
21544
21545 { echo "$as_me:$LINENO: checking for mode_t" >&5
21546 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
21547 if test "${ac_cv_type_mode_t+set}" = set; then
21548   echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550   cat >conftest.$ac_ext <<_ACEOF
21551 /* confdefs.h.  */
21552 _ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h.  */
21556 $ac_includes_default
21557 typedef mode_t ac__type_new_;
21558 int
21559 main ()
21560 {
21561 if ((ac__type_new_ *) 0)
21562   return 0;
21563 if (sizeof (ac__type_new_))
21564   return 0;
21565   ;
21566   return 0;
21567 }
21568 _ACEOF
21569 rm -f conftest.$ac_objext
21570 if { (ac_try="$ac_compile"
21571 case "(($ac_try" in
21572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573   *) ac_try_echo=$ac_try;;
21574 esac
21575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21576   (eval "$ac_compile") 2>conftest.er1
21577   ac_status=$?
21578   grep -v '^ *+' conftest.er1 >conftest.err
21579   rm -f conftest.er1
21580   cat conftest.err >&5
21581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582   (exit $ac_status); } && {
21583          test -z "$ac_c_werror_flag" ||
21584          test ! -s conftest.err
21585        } && test -s conftest.$ac_objext; then
21586   ac_cv_type_mode_t=yes
21587 else
21588   echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21590
21591         ac_cv_type_mode_t=no
21592 fi
21593
21594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21595 fi
21596 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21597 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
21598 if test $ac_cv_type_mode_t = yes; then
21599   :
21600 else
21601
21602 cat >>confdefs.h <<_ACEOF
21603 #define mode_t int
21604 _ACEOF
21605
21606 fi
21607
21608 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21609 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21610 if test "${ac_cv_type_uid_t+set}" = set; then
21611   echo $ECHO_N "(cached) $ECHO_C" >&6
21612 else
21613   cat >conftest.$ac_ext <<_ACEOF
21614 /* confdefs.h.  */
21615 _ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h.  */
21619 #include <sys/types.h>
21620
21621 _ACEOF
21622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21623   $EGREP "uid_t" >/dev/null 2>&1; then
21624   ac_cv_type_uid_t=yes
21625 else
21626   ac_cv_type_uid_t=no
21627 fi
21628 rm -f conftest*
21629
21630 fi
21631 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21632 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21633 if test $ac_cv_type_uid_t = no; then
21634
21635 cat >>confdefs.h <<\_ACEOF
21636 #define uid_t int
21637 _ACEOF
21638
21639
21640 cat >>confdefs.h <<\_ACEOF
21641 #define gid_t int
21642 _ACEOF
21643
21644 fi
21645
21646 { echo "$as_me:$LINENO: checking for size_t" >&5
21647 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21648 if test "${ac_cv_type_size_t+set}" = set; then
21649   echo $ECHO_N "(cached) $ECHO_C" >&6
21650 else
21651   cat >conftest.$ac_ext <<_ACEOF
21652 /* confdefs.h.  */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h.  */
21657 $ac_includes_default
21658 typedef size_t ac__type_new_;
21659 int
21660 main ()
21661 {
21662 if ((ac__type_new_ *) 0)
21663   return 0;
21664 if (sizeof (ac__type_new_))
21665   return 0;
21666   ;
21667   return 0;
21668 }
21669 _ACEOF
21670 rm -f conftest.$ac_objext
21671 if { (ac_try="$ac_compile"
21672 case "(($ac_try" in
21673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21674   *) ac_try_echo=$ac_try;;
21675 esac
21676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21677   (eval "$ac_compile") 2>conftest.er1
21678   ac_status=$?
21679   grep -v '^ *+' conftest.er1 >conftest.err
21680   rm -f conftest.er1
21681   cat conftest.err >&5
21682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683   (exit $ac_status); } && {
21684          test -z "$ac_c_werror_flag" ||
21685          test ! -s conftest.err
21686        } && test -s conftest.$ac_objext; then
21687   ac_cv_type_size_t=yes
21688 else
21689   echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21691
21692         ac_cv_type_size_t=no
21693 fi
21694
21695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21696 fi
21697 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21698 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21699 if test $ac_cv_type_size_t = yes; then
21700   :
21701 else
21702
21703 cat >>confdefs.h <<_ACEOF
21704 #define size_t unsigned int
21705 _ACEOF
21706
21707 fi
21708
21709 { echo "$as_me:$LINENO: checking for pid_t" >&5
21710 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21711 if test "${ac_cv_type_pid_t+set}" = set; then
21712   echo $ECHO_N "(cached) $ECHO_C" >&6
21713 else
21714   cat >conftest.$ac_ext <<_ACEOF
21715 /* confdefs.h.  */
21716 _ACEOF
21717 cat confdefs.h >>conftest.$ac_ext
21718 cat >>conftest.$ac_ext <<_ACEOF
21719 /* end confdefs.h.  */
21720 $ac_includes_default
21721 typedef pid_t ac__type_new_;
21722 int
21723 main ()
21724 {
21725 if ((ac__type_new_ *) 0)
21726   return 0;
21727 if (sizeof (ac__type_new_))
21728   return 0;
21729   ;
21730   return 0;
21731 }
21732 _ACEOF
21733 rm -f conftest.$ac_objext
21734 if { (ac_try="$ac_compile"
21735 case "(($ac_try" in
21736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737   *) ac_try_echo=$ac_try;;
21738 esac
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740   (eval "$ac_compile") 2>conftest.er1
21741   ac_status=$?
21742   grep -v '^ *+' conftest.er1 >conftest.err
21743   rm -f conftest.er1
21744   cat conftest.err >&5
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); } && {
21747          test -z "$ac_c_werror_flag" ||
21748          test ! -s conftest.err
21749        } && test -s conftest.$ac_objext; then
21750   ac_cv_type_pid_t=yes
21751 else
21752   echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21754
21755         ac_cv_type_pid_t=no
21756 fi
21757
21758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21759 fi
21760 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21761 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21762 if test $ac_cv_type_pid_t = yes; then
21763   :
21764 else
21765
21766 cat >>confdefs.h <<_ACEOF
21767 #define pid_t int
21768 _ACEOF
21769
21770 fi
21771
21772 { echo "$as_me:$LINENO: checking for off_t" >&5
21773 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21774 if test "${ac_cv_type_off_t+set}" = set; then
21775   echo $ECHO_N "(cached) $ECHO_C" >&6
21776 else
21777   cat >conftest.$ac_ext <<_ACEOF
21778 /* confdefs.h.  */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h.  */
21783 $ac_includes_default
21784 typedef off_t ac__type_new_;
21785 int
21786 main ()
21787 {
21788 if ((ac__type_new_ *) 0)
21789   return 0;
21790 if (sizeof (ac__type_new_))
21791   return 0;
21792   ;
21793   return 0;
21794 }
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800   *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803   (eval "$ac_compile") 2>conftest.er1
21804   ac_status=$?
21805   grep -v '^ *+' conftest.er1 >conftest.err
21806   rm -f conftest.er1
21807   cat conftest.err >&5
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); } && {
21810          test -z "$ac_c_werror_flag" ||
21811          test ! -s conftest.err
21812        } && test -s conftest.$ac_objext; then
21813   ac_cv_type_off_t=yes
21814 else
21815   echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21817
21818         ac_cv_type_off_t=no
21819 fi
21820
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21822 fi
21823 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21824 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21825 if test $ac_cv_type_off_t = yes; then
21826   :
21827 else
21828
21829 cat >>confdefs.h <<_ACEOF
21830 #define off_t long int
21831 _ACEOF
21832
21833 fi
21834
21835 { echo "$as_me:$LINENO: checking for ino_t" >&5
21836 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
21837 if test "${ac_cv_type_ino_t+set}" = set; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840   cat >conftest.$ac_ext <<_ACEOF
21841 /* confdefs.h.  */
21842 _ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h.  */
21846 $ac_includes_default
21847 typedef ino_t ac__type_new_;
21848 int
21849 main ()
21850 {
21851 if ((ac__type_new_ *) 0)
21852   return 0;
21853 if (sizeof (ac__type_new_))
21854   return 0;
21855   ;
21856   return 0;
21857 }
21858 _ACEOF
21859 rm -f conftest.$ac_objext
21860 if { (ac_try="$ac_compile"
21861 case "(($ac_try" in
21862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863   *) ac_try_echo=$ac_try;;
21864 esac
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866   (eval "$ac_compile") 2>conftest.er1
21867   ac_status=$?
21868   grep -v '^ *+' conftest.er1 >conftest.err
21869   rm -f conftest.er1
21870   cat conftest.err >&5
21871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872   (exit $ac_status); } && {
21873          test -z "$ac_c_werror_flag" ||
21874          test ! -s conftest.err
21875        } && test -s conftest.$ac_objext; then
21876   ac_cv_type_ino_t=yes
21877 else
21878   echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21880
21881         ac_cv_type_ino_t=no
21882 fi
21883
21884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885 fi
21886 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
21887 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
21888 if test $ac_cv_type_ino_t = yes; then
21889   :
21890 else
21891
21892 cat >>confdefs.h <<_ACEOF
21893 #define ino_t unsigned long
21894 _ACEOF
21895
21896 fi
21897
21898 { echo "$as_me:$LINENO: checking for dev_t" >&5
21899 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
21900 if test "${ac_cv_type_dev_t+set}" = set; then
21901   echo $ECHO_N "(cached) $ECHO_C" >&6
21902 else
21903   cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h.  */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h.  */
21909 $ac_includes_default
21910 typedef dev_t ac__type_new_;
21911 int
21912 main ()
21913 {
21914 if ((ac__type_new_ *) 0)
21915   return 0;
21916 if (sizeof (ac__type_new_))
21917   return 0;
21918   ;
21919   return 0;
21920 }
21921 _ACEOF
21922 rm -f conftest.$ac_objext
21923 if { (ac_try="$ac_compile"
21924 case "(($ac_try" in
21925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926   *) ac_try_echo=$ac_try;;
21927 esac
21928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929   (eval "$ac_compile") 2>conftest.er1
21930   ac_status=$?
21931   grep -v '^ *+' conftest.er1 >conftest.err
21932   rm -f conftest.er1
21933   cat conftest.err >&5
21934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935   (exit $ac_status); } && {
21936          test -z "$ac_c_werror_flag" ||
21937          test ! -s conftest.err
21938        } && test -s conftest.$ac_objext; then
21939   ac_cv_type_dev_t=yes
21940 else
21941   echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944         ac_cv_type_dev_t=no
21945 fi
21946
21947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948 fi
21949 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
21950 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
21951 if test $ac_cv_type_dev_t = yes; then
21952   :
21953 else
21954
21955 cat >>confdefs.h <<_ACEOF
21956 #define dev_t unsigned long
21957 _ACEOF
21958
21959 fi
21960
21961 { echo "$as_me:$LINENO: checking for daddr_t" >&5
21962 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
21963 if test "${ac_cv_type_daddr_t+set}" = set; then
21964   echo $ECHO_N "(cached) $ECHO_C" >&6
21965 else
21966   cat >conftest.$ac_ext <<_ACEOF
21967 /* confdefs.h.  */
21968 _ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h.  */
21972 $ac_includes_default
21973 typedef daddr_t ac__type_new_;
21974 int
21975 main ()
21976 {
21977 if ((ac__type_new_ *) 0)
21978   return 0;
21979 if (sizeof (ac__type_new_))
21980   return 0;
21981   ;
21982   return 0;
21983 }
21984 _ACEOF
21985 rm -f conftest.$ac_objext
21986 if { (ac_try="$ac_compile"
21987 case "(($ac_try" in
21988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989   *) ac_try_echo=$ac_try;;
21990 esac
21991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992   (eval "$ac_compile") 2>conftest.er1
21993   ac_status=$?
21994   grep -v '^ *+' conftest.er1 >conftest.err
21995   rm -f conftest.er1
21996   cat conftest.err >&5
21997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998   (exit $ac_status); } && {
21999          test -z "$ac_c_werror_flag" ||
22000          test ! -s conftest.err
22001        } && test -s conftest.$ac_objext; then
22002   ac_cv_type_daddr_t=yes
22003 else
22004   echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22006
22007         ac_cv_type_daddr_t=no
22008 fi
22009
22010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22011 fi
22012 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22013 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22014 if test $ac_cv_type_daddr_t = yes; then
22015   :
22016 else
22017
22018 cat >>confdefs.h <<_ACEOF
22019 #define daddr_t long
22020 _ACEOF
22021
22022 fi
22023
22024 { echo "$as_me:$LINENO: checking for major_t" >&5
22025 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22026 if test "${ac_cv_type_major_t+set}" = set; then
22027   echo $ECHO_N "(cached) $ECHO_C" >&6
22028 else
22029   cat >conftest.$ac_ext <<_ACEOF
22030 /* confdefs.h.  */
22031 _ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h.  */
22035 $ac_includes_default
22036 typedef major_t ac__type_new_;
22037 int
22038 main ()
22039 {
22040 if ((ac__type_new_ *) 0)
22041   return 0;
22042 if (sizeof (ac__type_new_))
22043   return 0;
22044   ;
22045   return 0;
22046 }
22047 _ACEOF
22048 rm -f conftest.$ac_objext
22049 if { (ac_try="$ac_compile"
22050 case "(($ac_try" in
22051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052   *) ac_try_echo=$ac_try;;
22053 esac
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055   (eval "$ac_compile") 2>conftest.er1
22056   ac_status=$?
22057   grep -v '^ *+' conftest.er1 >conftest.err
22058   rm -f conftest.er1
22059   cat conftest.err >&5
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); } && {
22062          test -z "$ac_c_werror_flag" ||
22063          test ! -s conftest.err
22064        } && test -s conftest.$ac_objext; then
22065   ac_cv_type_major_t=yes
22066 else
22067   echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22069
22070         ac_cv_type_major_t=no
22071 fi
22072
22073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22074 fi
22075 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22076 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22077 if test $ac_cv_type_major_t = yes; then
22078   :
22079 else
22080
22081 cat >>confdefs.h <<_ACEOF
22082 #define major_t int
22083 _ACEOF
22084
22085 fi
22086
22087 { echo "$as_me:$LINENO: checking for minor_t" >&5
22088 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22089 if test "${ac_cv_type_minor_t+set}" = set; then
22090   echo $ECHO_N "(cached) $ECHO_C" >&6
22091 else
22092   cat >conftest.$ac_ext <<_ACEOF
22093 /* confdefs.h.  */
22094 _ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h.  */
22098 $ac_includes_default
22099 typedef minor_t ac__type_new_;
22100 int
22101 main ()
22102 {
22103 if ((ac__type_new_ *) 0)
22104   return 0;
22105 if (sizeof (ac__type_new_))
22106   return 0;
22107   ;
22108   return 0;
22109 }
22110 _ACEOF
22111 rm -f conftest.$ac_objext
22112 if { (ac_try="$ac_compile"
22113 case "(($ac_try" in
22114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115   *) ac_try_echo=$ac_try;;
22116 esac
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118   (eval "$ac_compile") 2>conftest.er1
22119   ac_status=$?
22120   grep -v '^ *+' conftest.er1 >conftest.err
22121   rm -f conftest.er1
22122   cat conftest.err >&5
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); } && {
22125          test -z "$ac_c_werror_flag" ||
22126          test ! -s conftest.err
22127        } && test -s conftest.$ac_objext; then
22128   ac_cv_type_minor_t=yes
22129 else
22130   echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22132
22133         ac_cv_type_minor_t=no
22134 fi
22135
22136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137 fi
22138 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22139 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22140 if test $ac_cv_type_minor_t = yes; then
22141   :
22142 else
22143
22144 cat >>confdefs.h <<_ACEOF
22145 #define minor_t int
22146 _ACEOF
22147
22148 fi
22149
22150 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22151 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22152 if test "${ac_cv_type_ssize_t+set}" = set; then
22153   echo $ECHO_N "(cached) $ECHO_C" >&6
22154 else
22155   cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h.  */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h.  */
22161 $ac_includes_default
22162 typedef ssize_t ac__type_new_;
22163 int
22164 main ()
22165 {
22166 if ((ac__type_new_ *) 0)
22167   return 0;
22168 if (sizeof (ac__type_new_))
22169   return 0;
22170   ;
22171   return 0;
22172 }
22173 _ACEOF
22174 rm -f conftest.$ac_objext
22175 if { (ac_try="$ac_compile"
22176 case "(($ac_try" in
22177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178   *) ac_try_echo=$ac_try;;
22179 esac
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181   (eval "$ac_compile") 2>conftest.er1
22182   ac_status=$?
22183   grep -v '^ *+' conftest.er1 >conftest.err
22184   rm -f conftest.er1
22185   cat conftest.err >&5
22186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187   (exit $ac_status); } && {
22188          test -z "$ac_c_werror_flag" ||
22189          test ! -s conftest.err
22190        } && test -s conftest.$ac_objext; then
22191   ac_cv_type_ssize_t=yes
22192 else
22193   echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22195
22196         ac_cv_type_ssize_t=no
22197 fi
22198
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200 fi
22201 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22202 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22203 if test $ac_cv_type_ssize_t = yes; then
22204   :
22205 else
22206
22207 cat >>confdefs.h <<_ACEOF
22208 #define ssize_t int
22209 _ACEOF
22210
22211 fi
22212
22213 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22214 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22215 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22216   echo $ECHO_N "(cached) $ECHO_C" >&6
22217 else
22218   cat >conftest.$ac_ext <<_ACEOF
22219 /* confdefs.h.  */
22220 _ACEOF
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h.  */
22224 $ac_includes_default
22225 int
22226 main ()
22227 {
22228 static struct stat ac_aggr;
22229 if (ac_aggr.st_blocks)
22230 return 0;
22231   ;
22232   return 0;
22233 }
22234 _ACEOF
22235 rm -f conftest.$ac_objext
22236 if { (ac_try="$ac_compile"
22237 case "(($ac_try" in
22238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239   *) ac_try_echo=$ac_try;;
22240 esac
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242   (eval "$ac_compile") 2>conftest.er1
22243   ac_status=$?
22244   grep -v '^ *+' conftest.er1 >conftest.err
22245   rm -f conftest.er1
22246   cat conftest.err >&5
22247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); } && {
22249          test -z "$ac_c_werror_flag" ||
22250          test ! -s conftest.err
22251        } && test -s conftest.$ac_objext; then
22252   ac_cv_member_struct_stat_st_blocks=yes
22253 else
22254   echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22256
22257         cat >conftest.$ac_ext <<_ACEOF
22258 /* confdefs.h.  */
22259 _ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h.  */
22263 $ac_includes_default
22264 int
22265 main ()
22266 {
22267 static struct stat ac_aggr;
22268 if (sizeof ac_aggr.st_blocks)
22269 return 0;
22270   ;
22271   return 0;
22272 }
22273 _ACEOF
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278   *) ac_try_echo=$ac_try;;
22279 esac
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281   (eval "$ac_compile") 2>conftest.er1
22282   ac_status=$?
22283   grep -v '^ *+' conftest.er1 >conftest.err
22284   rm -f conftest.er1
22285   cat conftest.err >&5
22286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287   (exit $ac_status); } && {
22288          test -z "$ac_c_werror_flag" ||
22289          test ! -s conftest.err
22290        } && test -s conftest.$ac_objext; then
22291   ac_cv_member_struct_stat_st_blocks=yes
22292 else
22293   echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22295
22296         ac_cv_member_struct_stat_st_blocks=no
22297 fi
22298
22299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22300 fi
22301
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303 fi
22304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22305 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22306 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22307
22308 cat >>confdefs.h <<_ACEOF
22309 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22310 _ACEOF
22311
22312
22313 cat >>confdefs.h <<\_ACEOF
22314 #define HAVE_ST_BLOCKS 1
22315 _ACEOF
22316
22317 else
22318   case " $LIBOBJS " in
22319   *" fileblocks.$ac_objext "* ) ;;
22320   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22321  ;;
22322 esac
22323
22324 fi
22325
22326
22327 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22328 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
22329 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22330   echo $ECHO_N "(cached) $ECHO_C" >&6
22331 else
22332   cat >conftest.$ac_ext <<_ACEOF
22333 /* confdefs.h.  */
22334 _ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h.  */
22338 $ac_includes_default
22339 int
22340 main ()
22341 {
22342 static struct stat ac_aggr;
22343 if (ac_aggr.st_rdev)
22344 return 0;
22345   ;
22346   return 0;
22347 }
22348 _ACEOF
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353   *) ac_try_echo=$ac_try;;
22354 esac
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356   (eval "$ac_compile") 2>conftest.er1
22357   ac_status=$?
22358   grep -v '^ *+' conftest.er1 >conftest.err
22359   rm -f conftest.er1
22360   cat conftest.err >&5
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); } && {
22363          test -z "$ac_c_werror_flag" ||
22364          test ! -s conftest.err
22365        } && test -s conftest.$ac_objext; then
22366   ac_cv_member_struct_stat_st_rdev=yes
22367 else
22368   echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371         cat >conftest.$ac_ext <<_ACEOF
22372 /* confdefs.h.  */
22373 _ACEOF
22374 cat confdefs.h >>conftest.$ac_ext
22375 cat >>conftest.$ac_ext <<_ACEOF
22376 /* end confdefs.h.  */
22377 $ac_includes_default
22378 int
22379 main ()
22380 {
22381 static struct stat ac_aggr;
22382 if (sizeof ac_aggr.st_rdev)
22383 return 0;
22384   ;
22385   return 0;
22386 }
22387 _ACEOF
22388 rm -f conftest.$ac_objext
22389 if { (ac_try="$ac_compile"
22390 case "(($ac_try" in
22391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392   *) ac_try_echo=$ac_try;;
22393 esac
22394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395   (eval "$ac_compile") 2>conftest.er1
22396   ac_status=$?
22397   grep -v '^ *+' conftest.er1 >conftest.err
22398   rm -f conftest.er1
22399   cat conftest.err >&5
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); } && {
22402          test -z "$ac_c_werror_flag" ||
22403          test ! -s conftest.err
22404        } && test -s conftest.$ac_objext; then
22405   ac_cv_member_struct_stat_st_rdev=yes
22406 else
22407   echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22409
22410         ac_cv_member_struct_stat_st_rdev=no
22411 fi
22412
22413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22414 fi
22415
22416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22417 fi
22418 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22419 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
22420 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22421
22422 cat >>confdefs.h <<_ACEOF
22423 #define HAVE_STRUCT_STAT_ST_RDEV 1
22424 _ACEOF
22425
22426
22427 cat >>confdefs.h <<\_ACEOF
22428 #define HAVE_ST_RDEV 1
22429 _ACEOF
22430
22431 fi
22432
22433
22434 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22435 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22436 if test "${ac_cv_struct_tm+set}" = set; then
22437   echo $ECHO_N "(cached) $ECHO_C" >&6
22438 else
22439   cat >conftest.$ac_ext <<_ACEOF
22440 /* confdefs.h.  */
22441 _ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h.  */
22445 #include <sys/types.h>
22446 #include <time.h>
22447
22448 int
22449 main ()
22450 {
22451 struct tm tm;
22452                                      int *p = &tm.tm_sec;
22453                                      return !p;
22454   ;
22455   return 0;
22456 }
22457 _ACEOF
22458 rm -f conftest.$ac_objext
22459 if { (ac_try="$ac_compile"
22460 case "(($ac_try" in
22461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462   *) ac_try_echo=$ac_try;;
22463 esac
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465   (eval "$ac_compile") 2>conftest.er1
22466   ac_status=$?
22467   grep -v '^ *+' conftest.er1 >conftest.err
22468   rm -f conftest.er1
22469   cat conftest.err >&5
22470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471   (exit $ac_status); } && {
22472          test -z "$ac_c_werror_flag" ||
22473          test ! -s conftest.err
22474        } && test -s conftest.$ac_objext; then
22475   ac_cv_struct_tm=time.h
22476 else
22477   echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22479
22480         ac_cv_struct_tm=sys/time.h
22481 fi
22482
22483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22484 fi
22485 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22486 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22487 if test $ac_cv_struct_tm = sys/time.h; then
22488
22489 cat >>confdefs.h <<\_ACEOF
22490 #define TM_IN_SYS_TIME 1
22491 _ACEOF
22492
22493 fi
22494
22495 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22496 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22497 if test "${ac_cv_c_const+set}" = set; then
22498   echo $ECHO_N "(cached) $ECHO_C" >&6
22499 else
22500   cat >conftest.$ac_ext <<_ACEOF
22501 /* confdefs.h.  */
22502 _ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h.  */
22506
22507 int
22508 main ()
22509 {
22510 /* FIXME: Include the comments suggested by Paul. */
22511 #ifndef __cplusplus
22512   /* Ultrix mips cc rejects this.  */
22513   typedef int charset[2];
22514   const charset cs;
22515   /* SunOS 4.1.1 cc rejects this.  */
22516   char const *const *pcpcc;
22517   char **ppc;
22518   /* NEC SVR4.0.2 mips cc rejects this.  */
22519   struct point {int x, y;};
22520   static struct point const zero = {0,0};
22521   /* AIX XL C 1.02.0.0 rejects this.
22522      It does not let you subtract one const X* pointer from another in
22523      an arm of an if-expression whose if-part is not a constant
22524      expression */
22525   const char *g = "string";
22526   pcpcc = &g + (g ? g-g : 0);
22527   /* HPUX 7.0 cc rejects these. */
22528   ++pcpcc;
22529   ppc = (char**) pcpcc;
22530   pcpcc = (char const *const *) ppc;
22531   { /* SCO 3.2v4 cc rejects this.  */
22532     char *t;
22533     char const *s = 0 ? (char *) 0 : (char const *) 0;
22534
22535     *t++ = 0;
22536     if (s) return 0;
22537   }
22538   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22539     int x[] = {25, 17};
22540     const int *foo = &x[0];
22541     ++foo;
22542   }
22543   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22544     typedef const int *iptr;
22545     iptr p = 0;
22546     ++p;
22547   }
22548   { /* AIX XL C 1.02.0.0 rejects this saying
22549        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22550     struct s { int j; const int *ap[3]; };
22551     struct s *b; b->j = 5;
22552   }
22553   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22554     const int foo = 10;
22555     if (!foo) return 0;
22556   }
22557   return !cs[0] && !zero.x;
22558 #endif
22559
22560   ;
22561   return 0;
22562 }
22563 _ACEOF
22564 rm -f conftest.$ac_objext
22565 if { (ac_try="$ac_compile"
22566 case "(($ac_try" in
22567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568   *) ac_try_echo=$ac_try;;
22569 esac
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571   (eval "$ac_compile") 2>conftest.er1
22572   ac_status=$?
22573   grep -v '^ *+' conftest.er1 >conftest.err
22574   rm -f conftest.er1
22575   cat conftest.err >&5
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); } && {
22578          test -z "$ac_c_werror_flag" ||
22579          test ! -s conftest.err
22580        } && test -s conftest.$ac_objext; then
22581   ac_cv_c_const=yes
22582 else
22583   echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22585
22586         ac_cv_c_const=no
22587 fi
22588
22589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22590 fi
22591 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22592 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22593 if test $ac_cv_c_const = no; then
22594
22595 cat >>confdefs.h <<\_ACEOF
22596 #define const
22597 _ACEOF
22598
22599 fi
22600
22601
22602
22603 { echo "$as_me:$LINENO: checking for char" >&5
22604 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
22605 if test "${ac_cv_type_char+set}" = set; then
22606   echo $ECHO_N "(cached) $ECHO_C" >&6
22607 else
22608   cat >conftest.$ac_ext <<_ACEOF
22609 /* confdefs.h.  */
22610 _ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h.  */
22614 $ac_includes_default
22615 typedef char ac__type_new_;
22616 int
22617 main ()
22618 {
22619 if ((ac__type_new_ *) 0)
22620   return 0;
22621 if (sizeof (ac__type_new_))
22622   return 0;
22623   ;
22624   return 0;
22625 }
22626 _ACEOF
22627 rm -f conftest.$ac_objext
22628 if { (ac_try="$ac_compile"
22629 case "(($ac_try" in
22630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631   *) ac_try_echo=$ac_try;;
22632 esac
22633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634   (eval "$ac_compile") 2>conftest.er1
22635   ac_status=$?
22636   grep -v '^ *+' conftest.er1 >conftest.err
22637   rm -f conftest.er1
22638   cat conftest.err >&5
22639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640   (exit $ac_status); } && {
22641          test -z "$ac_c_werror_flag" ||
22642          test ! -s conftest.err
22643        } && test -s conftest.$ac_objext; then
22644   ac_cv_type_char=yes
22645 else
22646   echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22648
22649         ac_cv_type_char=no
22650 fi
22651
22652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22653 fi
22654 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22655 echo "${ECHO_T}$ac_cv_type_char" >&6; }
22656
22657 # The cast to long int works around a bug in the HP C Compiler
22658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22660 # This bug is HP SR number 8606223364.
22661 { echo "$as_me:$LINENO: checking size of char" >&5
22662 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22663 if test "${ac_cv_sizeof_char+set}" = set; then
22664   echo $ECHO_N "(cached) $ECHO_C" >&6
22665 else
22666   if test "$cross_compiling" = yes; then
22667   # Depending upon the size, compute the lo and hi bounds.
22668 cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h.  */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h.  */
22674 $ac_includes_default
22675    typedef char ac__type_sizeof_;
22676 int
22677 main ()
22678 {
22679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22680 test_array [0] = 0
22681
22682   ;
22683   return 0;
22684 }
22685 _ACEOF
22686 rm -f conftest.$ac_objext
22687 if { (ac_try="$ac_compile"
22688 case "(($ac_try" in
22689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690   *) ac_try_echo=$ac_try;;
22691 esac
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693   (eval "$ac_compile") 2>conftest.er1
22694   ac_status=$?
22695   grep -v '^ *+' conftest.er1 >conftest.err
22696   rm -f conftest.er1
22697   cat conftest.err >&5
22698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699   (exit $ac_status); } && {
22700          test -z "$ac_c_werror_flag" ||
22701          test ! -s conftest.err
22702        } && test -s conftest.$ac_objext; then
22703   ac_lo=0 ac_mid=0
22704   while :; do
22705     cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h.  */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h.  */
22711 $ac_includes_default
22712    typedef char ac__type_sizeof_;
22713 int
22714 main ()
22715 {
22716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22717 test_array [0] = 0
22718
22719   ;
22720   return 0;
22721 }
22722 _ACEOF
22723 rm -f conftest.$ac_objext
22724 if { (ac_try="$ac_compile"
22725 case "(($ac_try" in
22726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727   *) ac_try_echo=$ac_try;;
22728 esac
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730   (eval "$ac_compile") 2>conftest.er1
22731   ac_status=$?
22732   grep -v '^ *+' conftest.er1 >conftest.err
22733   rm -f conftest.er1
22734   cat conftest.err >&5
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); } && {
22737          test -z "$ac_c_werror_flag" ||
22738          test ! -s conftest.err
22739        } && test -s conftest.$ac_objext; then
22740   ac_hi=$ac_mid; break
22741 else
22742   echo "$as_me: failed program was:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22744
22745         ac_lo=`expr $ac_mid + 1`
22746                         if test $ac_lo -le $ac_mid; then
22747                           ac_lo= ac_hi=
22748                           break
22749                         fi
22750                         ac_mid=`expr 2 '*' $ac_mid + 1`
22751 fi
22752
22753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754   done
22755 else
22756   echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759         cat >conftest.$ac_ext <<_ACEOF
22760 /* confdefs.h.  */
22761 _ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h.  */
22765 $ac_includes_default
22766    typedef char ac__type_sizeof_;
22767 int
22768 main ()
22769 {
22770 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22771 test_array [0] = 0
22772
22773   ;
22774   return 0;
22775 }
22776 _ACEOF
22777 rm -f conftest.$ac_objext
22778 if { (ac_try="$ac_compile"
22779 case "(($ac_try" in
22780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781   *) ac_try_echo=$ac_try;;
22782 esac
22783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784   (eval "$ac_compile") 2>conftest.er1
22785   ac_status=$?
22786   grep -v '^ *+' conftest.er1 >conftest.err
22787   rm -f conftest.er1
22788   cat conftest.err >&5
22789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790   (exit $ac_status); } && {
22791          test -z "$ac_c_werror_flag" ||
22792          test ! -s conftest.err
22793        } && test -s conftest.$ac_objext; then
22794   ac_hi=-1 ac_mid=-1
22795   while :; do
22796     cat >conftest.$ac_ext <<_ACEOF
22797 /* confdefs.h.  */
22798 _ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h.  */
22802 $ac_includes_default
22803    typedef char ac__type_sizeof_;
22804 int
22805 main ()
22806 {
22807 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22808 test_array [0] = 0
22809
22810   ;
22811   return 0;
22812 }
22813 _ACEOF
22814 rm -f conftest.$ac_objext
22815 if { (ac_try="$ac_compile"
22816 case "(($ac_try" in
22817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22818   *) ac_try_echo=$ac_try;;
22819 esac
22820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22821   (eval "$ac_compile") 2>conftest.er1
22822   ac_status=$?
22823   grep -v '^ *+' conftest.er1 >conftest.err
22824   rm -f conftest.er1
22825   cat conftest.err >&5
22826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827   (exit $ac_status); } && {
22828          test -z "$ac_c_werror_flag" ||
22829          test ! -s conftest.err
22830        } && test -s conftest.$ac_objext; then
22831   ac_lo=$ac_mid; break
22832 else
22833   echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22835
22836         ac_hi=`expr '(' $ac_mid ')' - 1`
22837                         if test $ac_mid -le $ac_hi; then
22838                           ac_lo= ac_hi=
22839                           break
22840                         fi
22841                         ac_mid=`expr 2 '*' $ac_mid`
22842 fi
22843
22844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845   done
22846 else
22847   echo "$as_me: failed program was:" >&5
22848 sed 's/^/| /' conftest.$ac_ext >&5
22849
22850         ac_lo= ac_hi=
22851 fi
22852
22853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22854 fi
22855
22856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22857 # Binary search between lo and hi bounds.
22858 while test "x$ac_lo" != "x$ac_hi"; do
22859   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22860   cat >conftest.$ac_ext <<_ACEOF
22861 /* confdefs.h.  */
22862 _ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h.  */
22866 $ac_includes_default
22867    typedef char ac__type_sizeof_;
22868 int
22869 main ()
22870 {
22871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22872 test_array [0] = 0
22873
22874   ;
22875   return 0;
22876 }
22877 _ACEOF
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882   *) ac_try_echo=$ac_try;;
22883 esac
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885   (eval "$ac_compile") 2>conftest.er1
22886   ac_status=$?
22887   grep -v '^ *+' conftest.er1 >conftest.err
22888   rm -f conftest.er1
22889   cat conftest.err >&5
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); } && {
22892          test -z "$ac_c_werror_flag" ||
22893          test ! -s conftest.err
22894        } && test -s conftest.$ac_objext; then
22895   ac_hi=$ac_mid
22896 else
22897   echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22899
22900         ac_lo=`expr '(' $ac_mid ')' + 1`
22901 fi
22902
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904 done
22905 case $ac_lo in
22906 ?*) ac_cv_sizeof_char=$ac_lo;;
22907 '') if test "$ac_cv_type_char" = yes; then
22908      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
22909 See \`config.log' for more details." >&5
22910 echo "$as_me: error: cannot compute sizeof (char)
22911 See \`config.log' for more details." >&2;}
22912    { (exit 77); exit 77; }; }
22913    else
22914      ac_cv_sizeof_char=0
22915    fi ;;
22916 esac
22917 else
22918   cat >conftest.$ac_ext <<_ACEOF
22919 /* confdefs.h.  */
22920 _ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h.  */
22924 $ac_includes_default
22925    typedef char ac__type_sizeof_;
22926 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22927 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22928 #include <stdio.h>
22929 #include <stdlib.h>
22930 int
22931 main ()
22932 {
22933
22934   FILE *f = fopen ("conftest.val", "w");
22935   if (! f)
22936     return 1;
22937   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22938     {
22939       long int i = longval ();
22940       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22941         return 1;
22942       fprintf (f, "%ld\n", i);
22943     }
22944   else
22945     {
22946       unsigned long int i = ulongval ();
22947       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22948         return 1;
22949       fprintf (f, "%lu\n", i);
22950     }
22951   return ferror (f) || fclose (f) != 0;
22952
22953   ;
22954   return 0;
22955 }
22956 _ACEOF
22957 rm -f conftest$ac_exeext
22958 if { (ac_try="$ac_link"
22959 case "(($ac_try" in
22960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961   *) ac_try_echo=$ac_try;;
22962 esac
22963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964   (eval "$ac_link") 2>&5
22965   ac_status=$?
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22968   { (case "(($ac_try" in
22969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970   *) ac_try_echo=$ac_try;;
22971 esac
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973   (eval "$ac_try") 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; }; then
22977   ac_cv_sizeof_char=`cat conftest.val`
22978 else
22979   echo "$as_me: program exited with status $ac_status" >&5
22980 echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22982
22983 ( exit $ac_status )
22984 if test "$ac_cv_type_char" = yes; then
22985      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
22986 See \`config.log' for more details." >&5
22987 echo "$as_me: error: cannot compute sizeof (char)
22988 See \`config.log' for more details." >&2;}
22989    { (exit 77); exit 77; }; }
22990    else
22991      ac_cv_sizeof_char=0
22992    fi
22993 fi
22994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22995 fi
22996 rm -f conftest.val
22997 fi
22998 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22999 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23000
23001
23002
23003 cat >>confdefs.h <<_ACEOF
23004 #define SIZEOF_CHAR $ac_cv_sizeof_char
23005 _ACEOF
23006
23007
23008 { echo "$as_me:$LINENO: checking for short int" >&5
23009 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23010 if test "${ac_cv_type_short_int+set}" = set; then
23011   echo $ECHO_N "(cached) $ECHO_C" >&6
23012 else
23013   cat >conftest.$ac_ext <<_ACEOF
23014 /* confdefs.h.  */
23015 _ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h.  */
23019 $ac_includes_default
23020 typedef short int ac__type_new_;
23021 int
23022 main ()
23023 {
23024 if ((ac__type_new_ *) 0)
23025   return 0;
23026 if (sizeof (ac__type_new_))
23027   return 0;
23028   ;
23029   return 0;
23030 }
23031 _ACEOF
23032 rm -f conftest.$ac_objext
23033 if { (ac_try="$ac_compile"
23034 case "(($ac_try" in
23035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036   *) ac_try_echo=$ac_try;;
23037 esac
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039   (eval "$ac_compile") 2>conftest.er1
23040   ac_status=$?
23041   grep -v '^ *+' conftest.er1 >conftest.err
23042   rm -f conftest.er1
23043   cat conftest.err >&5
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); } && {
23046          test -z "$ac_c_werror_flag" ||
23047          test ! -s conftest.err
23048        } && test -s conftest.$ac_objext; then
23049   ac_cv_type_short_int=yes
23050 else
23051   echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23053
23054         ac_cv_type_short_int=no
23055 fi
23056
23057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23058 fi
23059 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23060 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23061
23062 # The cast to long int works around a bug in the HP C Compiler
23063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23065 # This bug is HP SR number 8606223364.
23066 { echo "$as_me:$LINENO: checking size of short int" >&5
23067 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23068 if test "${ac_cv_sizeof_short_int+set}" = set; then
23069   echo $ECHO_N "(cached) $ECHO_C" >&6
23070 else
23071   if test "$cross_compiling" = yes; then
23072   # Depending upon the size, compute the lo and hi bounds.
23073 cat >conftest.$ac_ext <<_ACEOF
23074 /* confdefs.h.  */
23075 _ACEOF
23076 cat confdefs.h >>conftest.$ac_ext
23077 cat >>conftest.$ac_ext <<_ACEOF
23078 /* end confdefs.h.  */
23079 $ac_includes_default
23080    typedef short int ac__type_sizeof_;
23081 int
23082 main ()
23083 {
23084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23085 test_array [0] = 0
23086
23087   ;
23088   return 0;
23089 }
23090 _ACEOF
23091 rm -f conftest.$ac_objext
23092 if { (ac_try="$ac_compile"
23093 case "(($ac_try" in
23094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095   *) ac_try_echo=$ac_try;;
23096 esac
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098   (eval "$ac_compile") 2>conftest.er1
23099   ac_status=$?
23100   grep -v '^ *+' conftest.er1 >conftest.err
23101   rm -f conftest.er1
23102   cat conftest.err >&5
23103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104   (exit $ac_status); } && {
23105          test -z "$ac_c_werror_flag" ||
23106          test ! -s conftest.err
23107        } && test -s conftest.$ac_objext; then
23108   ac_lo=0 ac_mid=0
23109   while :; do
23110     cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116 $ac_includes_default
23117    typedef short int ac__type_sizeof_;
23118 int
23119 main ()
23120 {
23121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23122 test_array [0] = 0
23123
23124   ;
23125   return 0;
23126 }
23127 _ACEOF
23128 rm -f conftest.$ac_objext
23129 if { (ac_try="$ac_compile"
23130 case "(($ac_try" in
23131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132   *) ac_try_echo=$ac_try;;
23133 esac
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135   (eval "$ac_compile") 2>conftest.er1
23136   ac_status=$?
23137   grep -v '^ *+' conftest.er1 >conftest.err
23138   rm -f conftest.er1
23139   cat conftest.err >&5
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); } && {
23142          test -z "$ac_c_werror_flag" ||
23143          test ! -s conftest.err
23144        } && test -s conftest.$ac_objext; then
23145   ac_hi=$ac_mid; break
23146 else
23147   echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.$ac_ext >&5
23149
23150         ac_lo=`expr $ac_mid + 1`
23151                         if test $ac_lo -le $ac_mid; then
23152                           ac_lo= ac_hi=
23153                           break
23154                         fi
23155                         ac_mid=`expr 2 '*' $ac_mid + 1`
23156 fi
23157
23158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23159   done
23160 else
23161   echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23163
23164         cat >conftest.$ac_ext <<_ACEOF
23165 /* confdefs.h.  */
23166 _ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h.  */
23170 $ac_includes_default
23171    typedef short int ac__type_sizeof_;
23172 int
23173 main ()
23174 {
23175 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23176 test_array [0] = 0
23177
23178   ;
23179   return 0;
23180 }
23181 _ACEOF
23182 rm -f conftest.$ac_objext
23183 if { (ac_try="$ac_compile"
23184 case "(($ac_try" in
23185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186   *) ac_try_echo=$ac_try;;
23187 esac
23188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189   (eval "$ac_compile") 2>conftest.er1
23190   ac_status=$?
23191   grep -v '^ *+' conftest.er1 >conftest.err
23192   rm -f conftest.er1
23193   cat conftest.err >&5
23194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195   (exit $ac_status); } && {
23196          test -z "$ac_c_werror_flag" ||
23197          test ! -s conftest.err
23198        } && test -s conftest.$ac_objext; then
23199   ac_hi=-1 ac_mid=-1
23200   while :; do
23201     cat >conftest.$ac_ext <<_ACEOF
23202 /* confdefs.h.  */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h.  */
23207 $ac_includes_default
23208    typedef short int ac__type_sizeof_;
23209 int
23210 main ()
23211 {
23212 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23213 test_array [0] = 0
23214
23215   ;
23216   return 0;
23217 }
23218 _ACEOF
23219 rm -f conftest.$ac_objext
23220 if { (ac_try="$ac_compile"
23221 case "(($ac_try" in
23222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223   *) ac_try_echo=$ac_try;;
23224 esac
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226   (eval "$ac_compile") 2>conftest.er1
23227   ac_status=$?
23228   grep -v '^ *+' conftest.er1 >conftest.err
23229   rm -f conftest.er1
23230   cat conftest.err >&5
23231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232   (exit $ac_status); } && {
23233          test -z "$ac_c_werror_flag" ||
23234          test ! -s conftest.err
23235        } && test -s conftest.$ac_objext; then
23236   ac_lo=$ac_mid; break
23237 else
23238   echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241         ac_hi=`expr '(' $ac_mid ')' - 1`
23242                         if test $ac_mid -le $ac_hi; then
23243                           ac_lo= ac_hi=
23244                           break
23245                         fi
23246                         ac_mid=`expr 2 '*' $ac_mid`
23247 fi
23248
23249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23250   done
23251 else
23252   echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23254
23255         ac_lo= ac_hi=
23256 fi
23257
23258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23259 fi
23260
23261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23262 # Binary search between lo and hi bounds.
23263 while test "x$ac_lo" != "x$ac_hi"; do
23264   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23265   cat >conftest.$ac_ext <<_ACEOF
23266 /* confdefs.h.  */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h.  */
23271 $ac_includes_default
23272    typedef short int ac__type_sizeof_;
23273 int
23274 main ()
23275 {
23276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23277 test_array [0] = 0
23278
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287   *) ac_try_echo=$ac_try;;
23288 esac
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290   (eval "$ac_compile") 2>conftest.er1
23291   ac_status=$?
23292   grep -v '^ *+' conftest.er1 >conftest.err
23293   rm -f conftest.er1
23294   cat conftest.err >&5
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); } && {
23297          test -z "$ac_c_werror_flag" ||
23298          test ! -s conftest.err
23299        } && test -s conftest.$ac_objext; then
23300   ac_hi=$ac_mid
23301 else
23302   echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23304
23305         ac_lo=`expr '(' $ac_mid ')' + 1`
23306 fi
23307
23308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23309 done
23310 case $ac_lo in
23311 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23312 '') if test "$ac_cv_type_short_int" = yes; then
23313      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23314 See \`config.log' for more details." >&5
23315 echo "$as_me: error: cannot compute sizeof (short int)
23316 See \`config.log' for more details." >&2;}
23317    { (exit 77); exit 77; }; }
23318    else
23319      ac_cv_sizeof_short_int=0
23320    fi ;;
23321 esac
23322 else
23323   cat >conftest.$ac_ext <<_ACEOF
23324 /* confdefs.h.  */
23325 _ACEOF
23326 cat confdefs.h >>conftest.$ac_ext
23327 cat >>conftest.$ac_ext <<_ACEOF
23328 /* end confdefs.h.  */
23329 $ac_includes_default
23330    typedef short int ac__type_sizeof_;
23331 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23332 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23333 #include <stdio.h>
23334 #include <stdlib.h>
23335 int
23336 main ()
23337 {
23338
23339   FILE *f = fopen ("conftest.val", "w");
23340   if (! f)
23341     return 1;
23342   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23343     {
23344       long int i = longval ();
23345       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23346         return 1;
23347       fprintf (f, "%ld\n", i);
23348     }
23349   else
23350     {
23351       unsigned long int i = ulongval ();
23352       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23353         return 1;
23354       fprintf (f, "%lu\n", i);
23355     }
23356   return ferror (f) || fclose (f) != 0;
23357
23358   ;
23359   return 0;
23360 }
23361 _ACEOF
23362 rm -f conftest$ac_exeext
23363 if { (ac_try="$ac_link"
23364 case "(($ac_try" in
23365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366   *) ac_try_echo=$ac_try;;
23367 esac
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369   (eval "$ac_link") 2>&5
23370   ac_status=$?
23371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23373   { (case "(($ac_try" in
23374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375   *) ac_try_echo=$ac_try;;
23376 esac
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378   (eval "$ac_try") 2>&5
23379   ac_status=$?
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); }; }; then
23382   ac_cv_sizeof_short_int=`cat conftest.val`
23383 else
23384   echo "$as_me: program exited with status $ac_status" >&5
23385 echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23387
23388 ( exit $ac_status )
23389 if test "$ac_cv_type_short_int" = yes; then
23390      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23391 See \`config.log' for more details." >&5
23392 echo "$as_me: error: cannot compute sizeof (short int)
23393 See \`config.log' for more details." >&2;}
23394    { (exit 77); exit 77; }; }
23395    else
23396      ac_cv_sizeof_short_int=0
23397    fi
23398 fi
23399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23400 fi
23401 rm -f conftest.val
23402 fi
23403 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23404 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
23405
23406
23407
23408 cat >>confdefs.h <<_ACEOF
23409 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23410 _ACEOF
23411
23412
23413 { echo "$as_me:$LINENO: checking for int" >&5
23414 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
23415 if test "${ac_cv_type_int+set}" = set; then
23416   echo $ECHO_N "(cached) $ECHO_C" >&6
23417 else
23418   cat >conftest.$ac_ext <<_ACEOF
23419 /* confdefs.h.  */
23420 _ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h.  */
23424 $ac_includes_default
23425 typedef int ac__type_new_;
23426 int
23427 main ()
23428 {
23429 if ((ac__type_new_ *) 0)
23430   return 0;
23431 if (sizeof (ac__type_new_))
23432   return 0;
23433   ;
23434   return 0;
23435 }
23436 _ACEOF
23437 rm -f conftest.$ac_objext
23438 if { (ac_try="$ac_compile"
23439 case "(($ac_try" in
23440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441   *) ac_try_echo=$ac_try;;
23442 esac
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444   (eval "$ac_compile") 2>conftest.er1
23445   ac_status=$?
23446   grep -v '^ *+' conftest.er1 >conftest.err
23447   rm -f conftest.er1
23448   cat conftest.err >&5
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); } && {
23451          test -z "$ac_c_werror_flag" ||
23452          test ! -s conftest.err
23453        } && test -s conftest.$ac_objext; then
23454   ac_cv_type_int=yes
23455 else
23456   echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23458
23459         ac_cv_type_int=no
23460 fi
23461
23462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23463 fi
23464 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23465 echo "${ECHO_T}$ac_cv_type_int" >&6; }
23466
23467 # The cast to long int works around a bug in the HP C Compiler
23468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23470 # This bug is HP SR number 8606223364.
23471 { echo "$as_me:$LINENO: checking size of int" >&5
23472 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23473 if test "${ac_cv_sizeof_int+set}" = set; then
23474   echo $ECHO_N "(cached) $ECHO_C" >&6
23475 else
23476   if test "$cross_compiling" = yes; then
23477   # Depending upon the size, compute the lo and hi bounds.
23478 cat >conftest.$ac_ext <<_ACEOF
23479 /* confdefs.h.  */
23480 _ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h.  */
23484 $ac_includes_default
23485    typedef int ac__type_sizeof_;
23486 int
23487 main ()
23488 {
23489 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23490 test_array [0] = 0
23491
23492   ;
23493   return 0;
23494 }
23495 _ACEOF
23496 rm -f conftest.$ac_objext
23497 if { (ac_try="$ac_compile"
23498 case "(($ac_try" in
23499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500   *) ac_try_echo=$ac_try;;
23501 esac
23502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23503   (eval "$ac_compile") 2>conftest.er1
23504   ac_status=$?
23505   grep -v '^ *+' conftest.er1 >conftest.err
23506   rm -f conftest.er1
23507   cat conftest.err >&5
23508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509   (exit $ac_status); } && {
23510          test -z "$ac_c_werror_flag" ||
23511          test ! -s conftest.err
23512        } && test -s conftest.$ac_objext; then
23513   ac_lo=0 ac_mid=0
23514   while :; do
23515     cat >conftest.$ac_ext <<_ACEOF
23516 /* confdefs.h.  */
23517 _ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h.  */
23521 $ac_includes_default
23522    typedef int ac__type_sizeof_;
23523 int
23524 main ()
23525 {
23526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23527 test_array [0] = 0
23528
23529   ;
23530   return 0;
23531 }
23532 _ACEOF
23533 rm -f conftest.$ac_objext
23534 if { (ac_try="$ac_compile"
23535 case "(($ac_try" in
23536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23537   *) ac_try_echo=$ac_try;;
23538 esac
23539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23540   (eval "$ac_compile") 2>conftest.er1
23541   ac_status=$?
23542   grep -v '^ *+' conftest.er1 >conftest.err
23543   rm -f conftest.er1
23544   cat conftest.err >&5
23545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546   (exit $ac_status); } && {
23547          test -z "$ac_c_werror_flag" ||
23548          test ! -s conftest.err
23549        } && test -s conftest.$ac_objext; then
23550   ac_hi=$ac_mid; break
23551 else
23552   echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23554
23555         ac_lo=`expr $ac_mid + 1`
23556                         if test $ac_lo -le $ac_mid; then
23557                           ac_lo= ac_hi=
23558                           break
23559                         fi
23560                         ac_mid=`expr 2 '*' $ac_mid + 1`
23561 fi
23562
23563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23564   done
23565 else
23566   echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23568
23569         cat >conftest.$ac_ext <<_ACEOF
23570 /* confdefs.h.  */
23571 _ACEOF
23572 cat confdefs.h >>conftest.$ac_ext
23573 cat >>conftest.$ac_ext <<_ACEOF
23574 /* end confdefs.h.  */
23575 $ac_includes_default
23576    typedef int ac__type_sizeof_;
23577 int
23578 main ()
23579 {
23580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23581 test_array [0] = 0
23582
23583   ;
23584   return 0;
23585 }
23586 _ACEOF
23587 rm -f conftest.$ac_objext
23588 if { (ac_try="$ac_compile"
23589 case "(($ac_try" in
23590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591   *) ac_try_echo=$ac_try;;
23592 esac
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594   (eval "$ac_compile") 2>conftest.er1
23595   ac_status=$?
23596   grep -v '^ *+' conftest.er1 >conftest.err
23597   rm -f conftest.er1
23598   cat conftest.err >&5
23599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600   (exit $ac_status); } && {
23601          test -z "$ac_c_werror_flag" ||
23602          test ! -s conftest.err
23603        } && test -s conftest.$ac_objext; then
23604   ac_hi=-1 ac_mid=-1
23605   while :; do
23606     cat >conftest.$ac_ext <<_ACEOF
23607 /* confdefs.h.  */
23608 _ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h.  */
23612 $ac_includes_default
23613    typedef int ac__type_sizeof_;
23614 int
23615 main ()
23616 {
23617 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23618 test_array [0] = 0
23619
23620   ;
23621   return 0;
23622 }
23623 _ACEOF
23624 rm -f conftest.$ac_objext
23625 if { (ac_try="$ac_compile"
23626 case "(($ac_try" in
23627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628   *) ac_try_echo=$ac_try;;
23629 esac
23630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23631   (eval "$ac_compile") 2>conftest.er1
23632   ac_status=$?
23633   grep -v '^ *+' conftest.er1 >conftest.err
23634   rm -f conftest.er1
23635   cat conftest.err >&5
23636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637   (exit $ac_status); } && {
23638          test -z "$ac_c_werror_flag" ||
23639          test ! -s conftest.err
23640        } && test -s conftest.$ac_objext; then
23641   ac_lo=$ac_mid; break
23642 else
23643   echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23645
23646         ac_hi=`expr '(' $ac_mid ')' - 1`
23647                         if test $ac_mid -le $ac_hi; then
23648                           ac_lo= ac_hi=
23649                           break
23650                         fi
23651                         ac_mid=`expr 2 '*' $ac_mid`
23652 fi
23653
23654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23655   done
23656 else
23657   echo "$as_me: failed program was:" >&5
23658 sed 's/^/| /' conftest.$ac_ext >&5
23659
23660         ac_lo= ac_hi=
23661 fi
23662
23663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23664 fi
23665
23666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23667 # Binary search between lo and hi bounds.
23668 while test "x$ac_lo" != "x$ac_hi"; do
23669   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23670   cat >conftest.$ac_ext <<_ACEOF
23671 /* confdefs.h.  */
23672 _ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h.  */
23676 $ac_includes_default
23677    typedef int ac__type_sizeof_;
23678 int
23679 main ()
23680 {
23681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23682 test_array [0] = 0
23683
23684   ;
23685   return 0;
23686 }
23687 _ACEOF
23688 rm -f conftest.$ac_objext
23689 if { (ac_try="$ac_compile"
23690 case "(($ac_try" in
23691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692   *) ac_try_echo=$ac_try;;
23693 esac
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695   (eval "$ac_compile") 2>conftest.er1
23696   ac_status=$?
23697   grep -v '^ *+' conftest.er1 >conftest.err
23698   rm -f conftest.er1
23699   cat conftest.err >&5
23700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701   (exit $ac_status); } && {
23702          test -z "$ac_c_werror_flag" ||
23703          test ! -s conftest.err
23704        } && test -s conftest.$ac_objext; then
23705   ac_hi=$ac_mid
23706 else
23707   echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23709
23710         ac_lo=`expr '(' $ac_mid ')' + 1`
23711 fi
23712
23713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23714 done
23715 case $ac_lo in
23716 ?*) ac_cv_sizeof_int=$ac_lo;;
23717 '') if test "$ac_cv_type_int" = yes; then
23718      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23719 See \`config.log' for more details." >&5
23720 echo "$as_me: error: cannot compute sizeof (int)
23721 See \`config.log' for more details." >&2;}
23722    { (exit 77); exit 77; }; }
23723    else
23724      ac_cv_sizeof_int=0
23725    fi ;;
23726 esac
23727 else
23728   cat >conftest.$ac_ext <<_ACEOF
23729 /* confdefs.h.  */
23730 _ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h.  */
23734 $ac_includes_default
23735    typedef int ac__type_sizeof_;
23736 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23737 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23738 #include <stdio.h>
23739 #include <stdlib.h>
23740 int
23741 main ()
23742 {
23743
23744   FILE *f = fopen ("conftest.val", "w");
23745   if (! f)
23746     return 1;
23747   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23748     {
23749       long int i = longval ();
23750       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23751         return 1;
23752       fprintf (f, "%ld\n", i);
23753     }
23754   else
23755     {
23756       unsigned long int i = ulongval ();
23757       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23758         return 1;
23759       fprintf (f, "%lu\n", i);
23760     }
23761   return ferror (f) || fclose (f) != 0;
23762
23763   ;
23764   return 0;
23765 }
23766 _ACEOF
23767 rm -f conftest$ac_exeext
23768 if { (ac_try="$ac_link"
23769 case "(($ac_try" in
23770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23771   *) ac_try_echo=$ac_try;;
23772 esac
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774   (eval "$ac_link") 2>&5
23775   ac_status=$?
23776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23778   { (case "(($ac_try" in
23779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23780   *) ac_try_echo=$ac_try;;
23781 esac
23782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23783   (eval "$ac_try") 2>&5
23784   ac_status=$?
23785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); }; }; then
23787   ac_cv_sizeof_int=`cat conftest.val`
23788 else
23789   echo "$as_me: program exited with status $ac_status" >&5
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23792
23793 ( exit $ac_status )
23794 if test "$ac_cv_type_int" = yes; then
23795      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23796 See \`config.log' for more details." >&5
23797 echo "$as_me: error: cannot compute sizeof (int)
23798 See \`config.log' for more details." >&2;}
23799    { (exit 77); exit 77; }; }
23800    else
23801      ac_cv_sizeof_int=0
23802    fi
23803 fi
23804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23805 fi
23806 rm -f conftest.val
23807 fi
23808 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23809 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23810
23811
23812
23813 cat >>confdefs.h <<_ACEOF
23814 #define SIZEOF_INT $ac_cv_sizeof_int
23815 _ACEOF
23816
23817
23818 { echo "$as_me:$LINENO: checking for long int" >&5
23819 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
23820 if test "${ac_cv_type_long_int+set}" = set; then
23821   echo $ECHO_N "(cached) $ECHO_C" >&6
23822 else
23823   cat >conftest.$ac_ext <<_ACEOF
23824 /* confdefs.h.  */
23825 _ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h.  */
23829 $ac_includes_default
23830 typedef long int ac__type_new_;
23831 int
23832 main ()
23833 {
23834 if ((ac__type_new_ *) 0)
23835   return 0;
23836 if (sizeof (ac__type_new_))
23837   return 0;
23838   ;
23839   return 0;
23840 }
23841 _ACEOF
23842 rm -f conftest.$ac_objext
23843 if { (ac_try="$ac_compile"
23844 case "(($ac_try" in
23845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23846   *) ac_try_echo=$ac_try;;
23847 esac
23848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23849   (eval "$ac_compile") 2>conftest.er1
23850   ac_status=$?
23851   grep -v '^ *+' conftest.er1 >conftest.err
23852   rm -f conftest.er1
23853   cat conftest.err >&5
23854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855   (exit $ac_status); } && {
23856          test -z "$ac_c_werror_flag" ||
23857          test ! -s conftest.err
23858        } && test -s conftest.$ac_objext; then
23859   ac_cv_type_long_int=yes
23860 else
23861   echo "$as_me: failed program was:" >&5
23862 sed 's/^/| /' conftest.$ac_ext >&5
23863
23864         ac_cv_type_long_int=no
23865 fi
23866
23867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23868 fi
23869 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
23870 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
23871
23872 # The cast to long int works around a bug in the HP C Compiler
23873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23875 # This bug is HP SR number 8606223364.
23876 { echo "$as_me:$LINENO: checking size of long int" >&5
23877 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23878 if test "${ac_cv_sizeof_long_int+set}" = set; then
23879   echo $ECHO_N "(cached) $ECHO_C" >&6
23880 else
23881   if test "$cross_compiling" = yes; then
23882   # Depending upon the size, compute the lo and hi bounds.
23883 cat >conftest.$ac_ext <<_ACEOF
23884 /* confdefs.h.  */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h.  */
23889 $ac_includes_default
23890    typedef long int ac__type_sizeof_;
23891 int
23892 main ()
23893 {
23894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23895 test_array [0] = 0
23896
23897   ;
23898   return 0;
23899 }
23900 _ACEOF
23901 rm -f conftest.$ac_objext
23902 if { (ac_try="$ac_compile"
23903 case "(($ac_try" in
23904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905   *) ac_try_echo=$ac_try;;
23906 esac
23907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23908   (eval "$ac_compile") 2>conftest.er1
23909   ac_status=$?
23910   grep -v '^ *+' conftest.er1 >conftest.err
23911   rm -f conftest.er1
23912   cat conftest.err >&5
23913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914   (exit $ac_status); } && {
23915          test -z "$ac_c_werror_flag" ||
23916          test ! -s conftest.err
23917        } && test -s conftest.$ac_objext; then
23918   ac_lo=0 ac_mid=0
23919   while :; do
23920     cat >conftest.$ac_ext <<_ACEOF
23921 /* confdefs.h.  */
23922 _ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h.  */
23926 $ac_includes_default
23927    typedef long int ac__type_sizeof_;
23928 int
23929 main ()
23930 {
23931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23932 test_array [0] = 0
23933
23934   ;
23935   return 0;
23936 }
23937 _ACEOF
23938 rm -f conftest.$ac_objext
23939 if { (ac_try="$ac_compile"
23940 case "(($ac_try" in
23941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23942   *) ac_try_echo=$ac_try;;
23943 esac
23944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23945   (eval "$ac_compile") 2>conftest.er1
23946   ac_status=$?
23947   grep -v '^ *+' conftest.er1 >conftest.err
23948   rm -f conftest.er1
23949   cat conftest.err >&5
23950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951   (exit $ac_status); } && {
23952          test -z "$ac_c_werror_flag" ||
23953          test ! -s conftest.err
23954        } && test -s conftest.$ac_objext; then
23955   ac_hi=$ac_mid; break
23956 else
23957   echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23959
23960         ac_lo=`expr $ac_mid + 1`
23961                         if test $ac_lo -le $ac_mid; then
23962                           ac_lo= ac_hi=
23963                           break
23964                         fi
23965                         ac_mid=`expr 2 '*' $ac_mid + 1`
23966 fi
23967
23968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23969   done
23970 else
23971   echo "$as_me: failed program was:" >&5
23972 sed 's/^/| /' conftest.$ac_ext >&5
23973
23974         cat >conftest.$ac_ext <<_ACEOF
23975 /* confdefs.h.  */
23976 _ACEOF
23977 cat confdefs.h >>conftest.$ac_ext
23978 cat >>conftest.$ac_ext <<_ACEOF
23979 /* end confdefs.h.  */
23980 $ac_includes_default
23981    typedef long int ac__type_sizeof_;
23982 int
23983 main ()
23984 {
23985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23986 test_array [0] = 0
23987
23988   ;
23989   return 0;
23990 }
23991 _ACEOF
23992 rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996   *) ac_try_echo=$ac_try;;
23997 esac
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999   (eval "$ac_compile") 2>conftest.er1
24000   ac_status=$?
24001   grep -v '^ *+' conftest.er1 >conftest.err
24002   rm -f conftest.er1
24003   cat conftest.err >&5
24004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005   (exit $ac_status); } && {
24006          test -z "$ac_c_werror_flag" ||
24007          test ! -s conftest.err
24008        } && test -s conftest.$ac_objext; then
24009   ac_hi=-1 ac_mid=-1
24010   while :; do
24011     cat >conftest.$ac_ext <<_ACEOF
24012 /* confdefs.h.  */
24013 _ACEOF
24014 cat confdefs.h >>conftest.$ac_ext
24015 cat >>conftest.$ac_ext <<_ACEOF
24016 /* end confdefs.h.  */
24017 $ac_includes_default
24018    typedef long int ac__type_sizeof_;
24019 int
24020 main ()
24021 {
24022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24023 test_array [0] = 0
24024
24025   ;
24026   return 0;
24027 }
24028 _ACEOF
24029 rm -f conftest.$ac_objext
24030 if { (ac_try="$ac_compile"
24031 case "(($ac_try" in
24032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24033   *) ac_try_echo=$ac_try;;
24034 esac
24035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24036   (eval "$ac_compile") 2>conftest.er1
24037   ac_status=$?
24038   grep -v '^ *+' conftest.er1 >conftest.err
24039   rm -f conftest.er1
24040   cat conftest.err >&5
24041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042   (exit $ac_status); } && {
24043          test -z "$ac_c_werror_flag" ||
24044          test ! -s conftest.err
24045        } && test -s conftest.$ac_objext; then
24046   ac_lo=$ac_mid; break
24047 else
24048   echo "$as_me: failed program was:" >&5
24049 sed 's/^/| /' conftest.$ac_ext >&5
24050
24051         ac_hi=`expr '(' $ac_mid ')' - 1`
24052                         if test $ac_mid -le $ac_hi; then
24053                           ac_lo= ac_hi=
24054                           break
24055                         fi
24056                         ac_mid=`expr 2 '*' $ac_mid`
24057 fi
24058
24059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24060   done
24061 else
24062   echo "$as_me: failed program was:" >&5
24063 sed 's/^/| /' conftest.$ac_ext >&5
24064
24065         ac_lo= ac_hi=
24066 fi
24067
24068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24069 fi
24070
24071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24072 # Binary search between lo and hi bounds.
24073 while test "x$ac_lo" != "x$ac_hi"; do
24074   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24075   cat >conftest.$ac_ext <<_ACEOF
24076 /* confdefs.h.  */
24077 _ACEOF
24078 cat confdefs.h >>conftest.$ac_ext
24079 cat >>conftest.$ac_ext <<_ACEOF
24080 /* end confdefs.h.  */
24081 $ac_includes_default
24082    typedef long int ac__type_sizeof_;
24083 int
24084 main ()
24085 {
24086 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24087 test_array [0] = 0
24088
24089   ;
24090   return 0;
24091 }
24092 _ACEOF
24093 rm -f conftest.$ac_objext
24094 if { (ac_try="$ac_compile"
24095 case "(($ac_try" in
24096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097   *) ac_try_echo=$ac_try;;
24098 esac
24099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24100   (eval "$ac_compile") 2>conftest.er1
24101   ac_status=$?
24102   grep -v '^ *+' conftest.er1 >conftest.err
24103   rm -f conftest.er1
24104   cat conftest.err >&5
24105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106   (exit $ac_status); } && {
24107          test -z "$ac_c_werror_flag" ||
24108          test ! -s conftest.err
24109        } && test -s conftest.$ac_objext; then
24110   ac_hi=$ac_mid
24111 else
24112   echo "$as_me: failed program was:" >&5
24113 sed 's/^/| /' conftest.$ac_ext >&5
24114
24115         ac_lo=`expr '(' $ac_mid ')' + 1`
24116 fi
24117
24118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24119 done
24120 case $ac_lo in
24121 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24122 '') if test "$ac_cv_type_long_int" = yes; then
24123      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24124 See \`config.log' for more details." >&5
24125 echo "$as_me: error: cannot compute sizeof (long int)
24126 See \`config.log' for more details." >&2;}
24127    { (exit 77); exit 77; }; }
24128    else
24129      ac_cv_sizeof_long_int=0
24130    fi ;;
24131 esac
24132 else
24133   cat >conftest.$ac_ext <<_ACEOF
24134 /* confdefs.h.  */
24135 _ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h.  */
24139 $ac_includes_default
24140    typedef long int ac__type_sizeof_;
24141 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24142 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24143 #include <stdio.h>
24144 #include <stdlib.h>
24145 int
24146 main ()
24147 {
24148
24149   FILE *f = fopen ("conftest.val", "w");
24150   if (! f)
24151     return 1;
24152   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24153     {
24154       long int i = longval ();
24155       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24156         return 1;
24157       fprintf (f, "%ld\n", i);
24158     }
24159   else
24160     {
24161       unsigned long int i = ulongval ();
24162       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24163         return 1;
24164       fprintf (f, "%lu\n", i);
24165     }
24166   return ferror (f) || fclose (f) != 0;
24167
24168   ;
24169   return 0;
24170 }
24171 _ACEOF
24172 rm -f conftest$ac_exeext
24173 if { (ac_try="$ac_link"
24174 case "(($ac_try" in
24175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176   *) ac_try_echo=$ac_try;;
24177 esac
24178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24179   (eval "$ac_link") 2>&5
24180   ac_status=$?
24181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24183   { (case "(($ac_try" in
24184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185   *) ac_try_echo=$ac_try;;
24186 esac
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188   (eval "$ac_try") 2>&5
24189   ac_status=$?
24190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191   (exit $ac_status); }; }; then
24192   ac_cv_sizeof_long_int=`cat conftest.val`
24193 else
24194   echo "$as_me: program exited with status $ac_status" >&5
24195 echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24197
24198 ( exit $ac_status )
24199 if test "$ac_cv_type_long_int" = yes; then
24200      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24201 See \`config.log' for more details." >&5
24202 echo "$as_me: error: cannot compute sizeof (long int)
24203 See \`config.log' for more details." >&2;}
24204    { (exit 77); exit 77; }; }
24205    else
24206      ac_cv_sizeof_long_int=0
24207    fi
24208 fi
24209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24210 fi
24211 rm -f conftest.val
24212 fi
24213 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24214 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
24215
24216
24217
24218 cat >>confdefs.h <<_ACEOF
24219 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24220 _ACEOF
24221
24222
24223 { echo "$as_me:$LINENO: checking for long long int" >&5
24224 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
24225 if test "${ac_cv_type_long_long_int+set}" = set; then
24226   echo $ECHO_N "(cached) $ECHO_C" >&6
24227 else
24228   cat >conftest.$ac_ext <<_ACEOF
24229 /* confdefs.h.  */
24230 _ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h.  */
24234 $ac_includes_default
24235 typedef long long int ac__type_new_;
24236 int
24237 main ()
24238 {
24239 if ((ac__type_new_ *) 0)
24240   return 0;
24241 if (sizeof (ac__type_new_))
24242   return 0;
24243   ;
24244   return 0;
24245 }
24246 _ACEOF
24247 rm -f conftest.$ac_objext
24248 if { (ac_try="$ac_compile"
24249 case "(($ac_try" in
24250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24251   *) ac_try_echo=$ac_try;;
24252 esac
24253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24254   (eval "$ac_compile") 2>conftest.er1
24255   ac_status=$?
24256   grep -v '^ *+' conftest.er1 >conftest.err
24257   rm -f conftest.er1
24258   cat conftest.err >&5
24259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260   (exit $ac_status); } && {
24261          test -z "$ac_c_werror_flag" ||
24262          test ! -s conftest.err
24263        } && test -s conftest.$ac_objext; then
24264   ac_cv_type_long_long_int=yes
24265 else
24266   echo "$as_me: failed program was:" >&5
24267 sed 's/^/| /' conftest.$ac_ext >&5
24268
24269         ac_cv_type_long_long_int=no
24270 fi
24271
24272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24273 fi
24274 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24275 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
24276
24277 # The cast to long int works around a bug in the HP C Compiler
24278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24280 # This bug is HP SR number 8606223364.
24281 { echo "$as_me:$LINENO: checking size of long long int" >&5
24282 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
24283 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24284   echo $ECHO_N "(cached) $ECHO_C" >&6
24285 else
24286   if test "$cross_compiling" = yes; then
24287   # Depending upon the size, compute the lo and hi bounds.
24288 cat >conftest.$ac_ext <<_ACEOF
24289 /* confdefs.h.  */
24290 _ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h.  */
24294 $ac_includes_default
24295    typedef long long int ac__type_sizeof_;
24296 int
24297 main ()
24298 {
24299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24300 test_array [0] = 0
24301
24302   ;
24303   return 0;
24304 }
24305 _ACEOF
24306 rm -f conftest.$ac_objext
24307 if { (ac_try="$ac_compile"
24308 case "(($ac_try" in
24309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310   *) ac_try_echo=$ac_try;;
24311 esac
24312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24313   (eval "$ac_compile") 2>conftest.er1
24314   ac_status=$?
24315   grep -v '^ *+' conftest.er1 >conftest.err
24316   rm -f conftest.er1
24317   cat conftest.err >&5
24318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319   (exit $ac_status); } && {
24320          test -z "$ac_c_werror_flag" ||
24321          test ! -s conftest.err
24322        } && test -s conftest.$ac_objext; then
24323   ac_lo=0 ac_mid=0
24324   while :; do
24325     cat >conftest.$ac_ext <<_ACEOF
24326 /* confdefs.h.  */
24327 _ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h.  */
24331 $ac_includes_default
24332    typedef long long int ac__type_sizeof_;
24333 int
24334 main ()
24335 {
24336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24337 test_array [0] = 0
24338
24339   ;
24340   return 0;
24341 }
24342 _ACEOF
24343 rm -f conftest.$ac_objext
24344 if { (ac_try="$ac_compile"
24345 case "(($ac_try" in
24346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347   *) ac_try_echo=$ac_try;;
24348 esac
24349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24350   (eval "$ac_compile") 2>conftest.er1
24351   ac_status=$?
24352   grep -v '^ *+' conftest.er1 >conftest.err
24353   rm -f conftest.er1
24354   cat conftest.err >&5
24355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356   (exit $ac_status); } && {
24357          test -z "$ac_c_werror_flag" ||
24358          test ! -s conftest.err
24359        } && test -s conftest.$ac_objext; then
24360   ac_hi=$ac_mid; break
24361 else
24362   echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24364
24365         ac_lo=`expr $ac_mid + 1`
24366                         if test $ac_lo -le $ac_mid; then
24367                           ac_lo= ac_hi=
24368                           break
24369                         fi
24370                         ac_mid=`expr 2 '*' $ac_mid + 1`
24371 fi
24372
24373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24374   done
24375 else
24376   echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24378
24379         cat >conftest.$ac_ext <<_ACEOF
24380 /* confdefs.h.  */
24381 _ACEOF
24382 cat confdefs.h >>conftest.$ac_ext
24383 cat >>conftest.$ac_ext <<_ACEOF
24384 /* end confdefs.h.  */
24385 $ac_includes_default
24386    typedef long long int ac__type_sizeof_;
24387 int
24388 main ()
24389 {
24390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24391 test_array [0] = 0
24392
24393   ;
24394   return 0;
24395 }
24396 _ACEOF
24397 rm -f conftest.$ac_objext
24398 if { (ac_try="$ac_compile"
24399 case "(($ac_try" in
24400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401   *) ac_try_echo=$ac_try;;
24402 esac
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404   (eval "$ac_compile") 2>conftest.er1
24405   ac_status=$?
24406   grep -v '^ *+' conftest.er1 >conftest.err
24407   rm -f conftest.er1
24408   cat conftest.err >&5
24409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410   (exit $ac_status); } && {
24411          test -z "$ac_c_werror_flag" ||
24412          test ! -s conftest.err
24413        } && test -s conftest.$ac_objext; then
24414   ac_hi=-1 ac_mid=-1
24415   while :; do
24416     cat >conftest.$ac_ext <<_ACEOF
24417 /* confdefs.h.  */
24418 _ACEOF
24419 cat confdefs.h >>conftest.$ac_ext
24420 cat >>conftest.$ac_ext <<_ACEOF
24421 /* end confdefs.h.  */
24422 $ac_includes_default
24423    typedef long long int ac__type_sizeof_;
24424 int
24425 main ()
24426 {
24427 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24428 test_array [0] = 0
24429
24430   ;
24431   return 0;
24432 }
24433 _ACEOF
24434 rm -f conftest.$ac_objext
24435 if { (ac_try="$ac_compile"
24436 case "(($ac_try" in
24437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438   *) ac_try_echo=$ac_try;;
24439 esac
24440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24441   (eval "$ac_compile") 2>conftest.er1
24442   ac_status=$?
24443   grep -v '^ *+' conftest.er1 >conftest.err
24444   rm -f conftest.er1
24445   cat conftest.err >&5
24446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447   (exit $ac_status); } && {
24448          test -z "$ac_c_werror_flag" ||
24449          test ! -s conftest.err
24450        } && test -s conftest.$ac_objext; then
24451   ac_lo=$ac_mid; break
24452 else
24453   echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24455
24456         ac_hi=`expr '(' $ac_mid ')' - 1`
24457                         if test $ac_mid -le $ac_hi; then
24458                           ac_lo= ac_hi=
24459                           break
24460                         fi
24461                         ac_mid=`expr 2 '*' $ac_mid`
24462 fi
24463
24464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24465   done
24466 else
24467   echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.$ac_ext >&5
24469
24470         ac_lo= ac_hi=
24471 fi
24472
24473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24474 fi
24475
24476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24477 # Binary search between lo and hi bounds.
24478 while test "x$ac_lo" != "x$ac_hi"; do
24479   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24480   cat >conftest.$ac_ext <<_ACEOF
24481 /* confdefs.h.  */
24482 _ACEOF
24483 cat confdefs.h >>conftest.$ac_ext
24484 cat >>conftest.$ac_ext <<_ACEOF
24485 /* end confdefs.h.  */
24486 $ac_includes_default
24487    typedef long long int ac__type_sizeof_;
24488 int
24489 main ()
24490 {
24491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24492 test_array [0] = 0
24493
24494   ;
24495   return 0;
24496 }
24497 _ACEOF
24498 rm -f conftest.$ac_objext
24499 if { (ac_try="$ac_compile"
24500 case "(($ac_try" in
24501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502   *) ac_try_echo=$ac_try;;
24503 esac
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505   (eval "$ac_compile") 2>conftest.er1
24506   ac_status=$?
24507   grep -v '^ *+' conftest.er1 >conftest.err
24508   rm -f conftest.er1
24509   cat conftest.err >&5
24510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511   (exit $ac_status); } && {
24512          test -z "$ac_c_werror_flag" ||
24513          test ! -s conftest.err
24514        } && test -s conftest.$ac_objext; then
24515   ac_hi=$ac_mid
24516 else
24517   echo "$as_me: failed program was:" >&5
24518 sed 's/^/| /' conftest.$ac_ext >&5
24519
24520         ac_lo=`expr '(' $ac_mid ')' + 1`
24521 fi
24522
24523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24524 done
24525 case $ac_lo in
24526 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24527 '') if test "$ac_cv_type_long_long_int" = yes; then
24528      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
24529 See \`config.log' for more details." >&5
24530 echo "$as_me: error: cannot compute sizeof (long long int)
24531 See \`config.log' for more details." >&2;}
24532    { (exit 77); exit 77; }; }
24533    else
24534      ac_cv_sizeof_long_long_int=0
24535    fi ;;
24536 esac
24537 else
24538   cat >conftest.$ac_ext <<_ACEOF
24539 /* confdefs.h.  */
24540 _ACEOF
24541 cat confdefs.h >>conftest.$ac_ext
24542 cat >>conftest.$ac_ext <<_ACEOF
24543 /* end confdefs.h.  */
24544 $ac_includes_default
24545    typedef long long int ac__type_sizeof_;
24546 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24547 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24548 #include <stdio.h>
24549 #include <stdlib.h>
24550 int
24551 main ()
24552 {
24553
24554   FILE *f = fopen ("conftest.val", "w");
24555   if (! f)
24556     return 1;
24557   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24558     {
24559       long int i = longval ();
24560       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24561         return 1;
24562       fprintf (f, "%ld\n", i);
24563     }
24564   else
24565     {
24566       unsigned long int i = ulongval ();
24567       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24568         return 1;
24569       fprintf (f, "%lu\n", i);
24570     }
24571   return ferror (f) || fclose (f) != 0;
24572
24573   ;
24574   return 0;
24575 }
24576 _ACEOF
24577 rm -f conftest$ac_exeext
24578 if { (ac_try="$ac_link"
24579 case "(($ac_try" in
24580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581   *) ac_try_echo=$ac_try;;
24582 esac
24583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584   (eval "$ac_link") 2>&5
24585   ac_status=$?
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24588   { (case "(($ac_try" in
24589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590   *) ac_try_echo=$ac_try;;
24591 esac
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593   (eval "$ac_try") 2>&5
24594   ac_status=$?
24595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); }; }; then
24597   ac_cv_sizeof_long_long_int=`cat conftest.val`
24598 else
24599   echo "$as_me: program exited with status $ac_status" >&5
24600 echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24602
24603 ( exit $ac_status )
24604 if test "$ac_cv_type_long_long_int" = yes; then
24605      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
24606 See \`config.log' for more details." >&5
24607 echo "$as_me: error: cannot compute sizeof (long long int)
24608 See \`config.log' for more details." >&2;}
24609    { (exit 77); exit 77; }; }
24610    else
24611      ac_cv_sizeof_long_long_int=0
24612    fi
24613 fi
24614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24615 fi
24616 rm -f conftest.val
24617 fi
24618 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24619 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
24620
24621
24622
24623 cat >>confdefs.h <<_ACEOF
24624 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24625 _ACEOF
24626
24627
24628 { echo "$as_me:$LINENO: checking for int *" >&5
24629 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
24630 if test "${ac_cv_type_int_p+set}" = set; then
24631   echo $ECHO_N "(cached) $ECHO_C" >&6
24632 else
24633   cat >conftest.$ac_ext <<_ACEOF
24634 /* confdefs.h.  */
24635 _ACEOF
24636 cat confdefs.h >>conftest.$ac_ext
24637 cat >>conftest.$ac_ext <<_ACEOF
24638 /* end confdefs.h.  */
24639 $ac_includes_default
24640 typedef int * ac__type_new_;
24641 int
24642 main ()
24643 {
24644 if ((ac__type_new_ *) 0)
24645   return 0;
24646 if (sizeof (ac__type_new_))
24647   return 0;
24648   ;
24649   return 0;
24650 }
24651 _ACEOF
24652 rm -f conftest.$ac_objext
24653 if { (ac_try="$ac_compile"
24654 case "(($ac_try" in
24655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656   *) ac_try_echo=$ac_try;;
24657 esac
24658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659   (eval "$ac_compile") 2>conftest.er1
24660   ac_status=$?
24661   grep -v '^ *+' conftest.er1 >conftest.err
24662   rm -f conftest.er1
24663   cat conftest.err >&5
24664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665   (exit $ac_status); } && {
24666          test -z "$ac_c_werror_flag" ||
24667          test ! -s conftest.err
24668        } && test -s conftest.$ac_objext; then
24669   ac_cv_type_int_p=yes
24670 else
24671   echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24673
24674         ac_cv_type_int_p=no
24675 fi
24676
24677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24678 fi
24679 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24680 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
24681
24682 # The cast to long int works around a bug in the HP C Compiler
24683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24685 # This bug is HP SR number 8606223364.
24686 { echo "$as_me:$LINENO: checking size of int *" >&5
24687 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
24688 if test "${ac_cv_sizeof_int_p+set}" = set; then
24689   echo $ECHO_N "(cached) $ECHO_C" >&6
24690 else
24691   if test "$cross_compiling" = yes; then
24692   # Depending upon the size, compute the lo and hi bounds.
24693 cat >conftest.$ac_ext <<_ACEOF
24694 /* confdefs.h.  */
24695 _ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h.  */
24699 $ac_includes_default
24700    typedef int * ac__type_sizeof_;
24701 int
24702 main ()
24703 {
24704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24705 test_array [0] = 0
24706
24707   ;
24708   return 0;
24709 }
24710 _ACEOF
24711 rm -f conftest.$ac_objext
24712 if { (ac_try="$ac_compile"
24713 case "(($ac_try" in
24714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715   *) ac_try_echo=$ac_try;;
24716 esac
24717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718   (eval "$ac_compile") 2>conftest.er1
24719   ac_status=$?
24720   grep -v '^ *+' conftest.er1 >conftest.err
24721   rm -f conftest.er1
24722   cat conftest.err >&5
24723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724   (exit $ac_status); } && {
24725          test -z "$ac_c_werror_flag" ||
24726          test ! -s conftest.err
24727        } && test -s conftest.$ac_objext; then
24728   ac_lo=0 ac_mid=0
24729   while :; do
24730     cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h.  */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h.  */
24736 $ac_includes_default
24737    typedef int * ac__type_sizeof_;
24738 int
24739 main ()
24740 {
24741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24742 test_array [0] = 0
24743
24744   ;
24745   return 0;
24746 }
24747 _ACEOF
24748 rm -f conftest.$ac_objext
24749 if { (ac_try="$ac_compile"
24750 case "(($ac_try" in
24751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24752   *) ac_try_echo=$ac_try;;
24753 esac
24754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24755   (eval "$ac_compile") 2>conftest.er1
24756   ac_status=$?
24757   grep -v '^ *+' conftest.er1 >conftest.err
24758   rm -f conftest.er1
24759   cat conftest.err >&5
24760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761   (exit $ac_status); } && {
24762          test -z "$ac_c_werror_flag" ||
24763          test ! -s conftest.err
24764        } && test -s conftest.$ac_objext; then
24765   ac_hi=$ac_mid; break
24766 else
24767   echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24769
24770         ac_lo=`expr $ac_mid + 1`
24771                         if test $ac_lo -le $ac_mid; then
24772                           ac_lo= ac_hi=
24773                           break
24774                         fi
24775                         ac_mid=`expr 2 '*' $ac_mid + 1`
24776 fi
24777
24778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24779   done
24780 else
24781   echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24783
24784         cat >conftest.$ac_ext <<_ACEOF
24785 /* confdefs.h.  */
24786 _ACEOF
24787 cat confdefs.h >>conftest.$ac_ext
24788 cat >>conftest.$ac_ext <<_ACEOF
24789 /* end confdefs.h.  */
24790 $ac_includes_default
24791    typedef int * ac__type_sizeof_;
24792 int
24793 main ()
24794 {
24795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24796 test_array [0] = 0
24797
24798   ;
24799   return 0;
24800 }
24801 _ACEOF
24802 rm -f conftest.$ac_objext
24803 if { (ac_try="$ac_compile"
24804 case "(($ac_try" in
24805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806   *) ac_try_echo=$ac_try;;
24807 esac
24808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809   (eval "$ac_compile") 2>conftest.er1
24810   ac_status=$?
24811   grep -v '^ *+' conftest.er1 >conftest.err
24812   rm -f conftest.er1
24813   cat conftest.err >&5
24814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815   (exit $ac_status); } && {
24816          test -z "$ac_c_werror_flag" ||
24817          test ! -s conftest.err
24818        } && test -s conftest.$ac_objext; then
24819   ac_hi=-1 ac_mid=-1
24820   while :; do
24821     cat >conftest.$ac_ext <<_ACEOF
24822 /* confdefs.h.  */
24823 _ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h.  */
24827 $ac_includes_default
24828    typedef int * ac__type_sizeof_;
24829 int
24830 main ()
24831 {
24832 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24833 test_array [0] = 0
24834
24835   ;
24836   return 0;
24837 }
24838 _ACEOF
24839 rm -f conftest.$ac_objext
24840 if { (ac_try="$ac_compile"
24841 case "(($ac_try" in
24842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843   *) ac_try_echo=$ac_try;;
24844 esac
24845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24846   (eval "$ac_compile") 2>conftest.er1
24847   ac_status=$?
24848   grep -v '^ *+' conftest.er1 >conftest.err
24849   rm -f conftest.er1
24850   cat conftest.err >&5
24851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852   (exit $ac_status); } && {
24853          test -z "$ac_c_werror_flag" ||
24854          test ! -s conftest.err
24855        } && test -s conftest.$ac_objext; then
24856   ac_lo=$ac_mid; break
24857 else
24858   echo "$as_me: failed program was:" >&5
24859 sed 's/^/| /' conftest.$ac_ext >&5
24860
24861         ac_hi=`expr '(' $ac_mid ')' - 1`
24862                         if test $ac_mid -le $ac_hi; then
24863                           ac_lo= ac_hi=
24864                           break
24865                         fi
24866                         ac_mid=`expr 2 '*' $ac_mid`
24867 fi
24868
24869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24870   done
24871 else
24872   echo "$as_me: failed program was:" >&5
24873 sed 's/^/| /' conftest.$ac_ext >&5
24874
24875         ac_lo= ac_hi=
24876 fi
24877
24878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24879 fi
24880
24881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24882 # Binary search between lo and hi bounds.
24883 while test "x$ac_lo" != "x$ac_hi"; do
24884   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24885   cat >conftest.$ac_ext <<_ACEOF
24886 /* confdefs.h.  */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h.  */
24891 $ac_includes_default
24892    typedef int * ac__type_sizeof_;
24893 int
24894 main ()
24895 {
24896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24897 test_array [0] = 0
24898
24899   ;
24900   return 0;
24901 }
24902 _ACEOF
24903 rm -f conftest.$ac_objext
24904 if { (ac_try="$ac_compile"
24905 case "(($ac_try" in
24906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907   *) ac_try_echo=$ac_try;;
24908 esac
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910   (eval "$ac_compile") 2>conftest.er1
24911   ac_status=$?
24912   grep -v '^ *+' conftest.er1 >conftest.err
24913   rm -f conftest.er1
24914   cat conftest.err >&5
24915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916   (exit $ac_status); } && {
24917          test -z "$ac_c_werror_flag" ||
24918          test ! -s conftest.err
24919        } && test -s conftest.$ac_objext; then
24920   ac_hi=$ac_mid
24921 else
24922   echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24924
24925         ac_lo=`expr '(' $ac_mid ')' + 1`
24926 fi
24927
24928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24929 done
24930 case $ac_lo in
24931 ?*) ac_cv_sizeof_int_p=$ac_lo;;
24932 '') if test "$ac_cv_type_int_p" = yes; then
24933      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
24934 See \`config.log' for more details." >&5
24935 echo "$as_me: error: cannot compute sizeof (int *)
24936 See \`config.log' for more details." >&2;}
24937    { (exit 77); exit 77; }; }
24938    else
24939      ac_cv_sizeof_int_p=0
24940    fi ;;
24941 esac
24942 else
24943   cat >conftest.$ac_ext <<_ACEOF
24944 /* confdefs.h.  */
24945 _ACEOF
24946 cat confdefs.h >>conftest.$ac_ext
24947 cat >>conftest.$ac_ext <<_ACEOF
24948 /* end confdefs.h.  */
24949 $ac_includes_default
24950    typedef int * ac__type_sizeof_;
24951 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24952 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24953 #include <stdio.h>
24954 #include <stdlib.h>
24955 int
24956 main ()
24957 {
24958
24959   FILE *f = fopen ("conftest.val", "w");
24960   if (! f)
24961     return 1;
24962   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24963     {
24964       long int i = longval ();
24965       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24966         return 1;
24967       fprintf (f, "%ld\n", i);
24968     }
24969   else
24970     {
24971       unsigned long int i = ulongval ();
24972       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24973         return 1;
24974       fprintf (f, "%lu\n", i);
24975     }
24976   return ferror (f) || fclose (f) != 0;
24977
24978   ;
24979   return 0;
24980 }
24981 _ACEOF
24982 rm -f conftest$ac_exeext
24983 if { (ac_try="$ac_link"
24984 case "(($ac_try" in
24985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24986   *) ac_try_echo=$ac_try;;
24987 esac
24988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24989   (eval "$ac_link") 2>&5
24990   ac_status=$?
24991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24993   { (case "(($ac_try" in
24994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24995   *) ac_try_echo=$ac_try;;
24996 esac
24997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24998   (eval "$ac_try") 2>&5
24999   ac_status=$?
25000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); }; }; then
25002   ac_cv_sizeof_int_p=`cat conftest.val`
25003 else
25004   echo "$as_me: program exited with status $ac_status" >&5
25005 echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25007
25008 ( exit $ac_status )
25009 if test "$ac_cv_type_int_p" = yes; then
25010      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25011 See \`config.log' for more details." >&5
25012 echo "$as_me: error: cannot compute sizeof (int *)
25013 See \`config.log' for more details." >&2;}
25014    { (exit 77); exit 77; }; }
25015    else
25016      ac_cv_sizeof_int_p=0
25017    fi
25018 fi
25019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25020 fi
25021 rm -f conftest.val
25022 fi
25023 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25024 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25025
25026
25027
25028 cat >>confdefs.h <<_ACEOF
25029 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25030 _ACEOF
25031
25032
25033
25034 # Check for sys/types.h types
25035 { echo "$as_me:$LINENO: checking for u_int type" >&5
25036 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25037 if test "${ac_cv_have_u_int+set}" = set; then
25038   echo $ECHO_N "(cached) $ECHO_C" >&6
25039 else
25040
25041     cat >conftest.$ac_ext <<_ACEOF
25042 /* confdefs.h.  */
25043 _ACEOF
25044 cat confdefs.h >>conftest.$ac_ext
25045 cat >>conftest.$ac_ext <<_ACEOF
25046 /* end confdefs.h.  */
25047  #include <sys/types.h>
25048 int
25049 main ()
25050 {
25051  u_int a; a = 1;
25052   ;
25053   return 0;
25054 }
25055 _ACEOF
25056 rm -f conftest.$ac_objext
25057 if { (ac_try="$ac_compile"
25058 case "(($ac_try" in
25059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25060   *) ac_try_echo=$ac_try;;
25061 esac
25062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25063   (eval "$ac_compile") 2>conftest.er1
25064   ac_status=$?
25065   grep -v '^ *+' conftest.er1 >conftest.err
25066   rm -f conftest.er1
25067   cat conftest.err >&5
25068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); } && {
25070          test -z "$ac_c_werror_flag" ||
25071          test ! -s conftest.err
25072        } && test -s conftest.$ac_objext; then
25073    ac_cv_have_u_int="yes"
25074 else
25075   echo "$as_me: failed program was:" >&5
25076 sed 's/^/| /' conftest.$ac_ext >&5
25077
25078          ac_cv_have_u_int="no"
25079
25080 fi
25081
25082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25083
25084 fi
25085 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25086 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25087 if test "x$ac_cv_have_u_int" = "xyes" ; then
25088    cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_U_INT 1
25090 _ACEOF
25091
25092    have_u_int=1
25093 fi
25094
25095 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25096 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25097 if test "${ac_cv_have_intmax_t+set}" = set; then
25098   echo $ECHO_N "(cached) $ECHO_C" >&6
25099 else
25100
25101    cat >conftest.$ac_ext <<_ACEOF
25102 /* confdefs.h.  */
25103 _ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h.  */
25107  #include <sys/types.h>
25108 int
25109 main ()
25110 {
25111  intmax_t a; a = 1;
25112   ;
25113   return 0;
25114 }
25115 _ACEOF
25116 rm -f conftest.$ac_objext
25117 if { (ac_try="$ac_compile"
25118 case "(($ac_try" in
25119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25120   *) ac_try_echo=$ac_try;;
25121 esac
25122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25123   (eval "$ac_compile") 2>conftest.er1
25124   ac_status=$?
25125   grep -v '^ *+' conftest.er1 >conftest.err
25126   rm -f conftest.er1
25127   cat conftest.err >&5
25128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129   (exit $ac_status); } && {
25130          test -z "$ac_c_werror_flag" ||
25131          test ! -s conftest.err
25132        } && test -s conftest.$ac_objext; then
25133    ac_cv_have_intmax_t="yes"
25134 else
25135   echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25137
25138
25139          cat >conftest.$ac_ext <<_ACEOF
25140 /* confdefs.h.  */
25141 _ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h.  */
25145  #include <stdint.h>
25146 int
25147 main ()
25148 {
25149  intmax_t a; a = 1;
25150   ;
25151   return 0;
25152 }
25153 _ACEOF
25154 rm -f conftest.$ac_objext
25155 if { (ac_try="$ac_compile"
25156 case "(($ac_try" in
25157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25158   *) ac_try_echo=$ac_try;;
25159 esac
25160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25161   (eval "$ac_compile") 2>conftest.er1
25162   ac_status=$?
25163   grep -v '^ *+' conftest.er1 >conftest.err
25164   rm -f conftest.er1
25165   cat conftest.err >&5
25166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167   (exit $ac_status); } && {
25168          test -z "$ac_c_werror_flag" ||
25169          test ! -s conftest.err
25170        } && test -s conftest.$ac_objext; then
25171    ac_cv_have_intmax_t="yes"
25172 else
25173   echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25175
25176          ac_cv_have_intmax_t="no"
25177
25178 fi
25179
25180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25181
25182
25183 fi
25184
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186
25187
25188 fi
25189 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25190 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
25191 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25192    cat >>confdefs.h <<\_ACEOF
25193 #define HAVE_INTMAX_T 1
25194 _ACEOF
25195
25196    have_intmax_t=1
25197 fi
25198
25199
25200 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25201 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
25202 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25203   echo $ECHO_N "(cached) $ECHO_C" >&6
25204 else
25205
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 int
25214 main ()
25215 {
25216  u_intmax_t a; a = 1;
25217   ;
25218   return 0;
25219 }
25220 _ACEOF
25221 rm -f conftest.$ac_objext
25222 if { (ac_try="$ac_compile"
25223 case "(($ac_try" in
25224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225   *) ac_try_echo=$ac_try;;
25226 esac
25227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25228   (eval "$ac_compile") 2>conftest.er1
25229   ac_status=$?
25230   grep -v '^ *+' conftest.er1 >conftest.err
25231   rm -f conftest.er1
25232   cat conftest.err >&5
25233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234   (exit $ac_status); } && {
25235          test -z "$ac_c_werror_flag" ||
25236          test ! -s conftest.err
25237        } && test -s conftest.$ac_objext; then
25238    ac_cv_have_u_intmax_t="yes"
25239 else
25240   echo "$as_me: failed program was:" >&5
25241 sed 's/^/| /' conftest.$ac_ext >&5
25242
25243
25244          cat >conftest.$ac_ext <<_ACEOF
25245 /* confdefs.h.  */
25246 _ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h.  */
25250  #include <stdint.h>
25251 int
25252 main ()
25253 {
25254  u_intmax_t a; a = 1;
25255   ;
25256   return 0;
25257 }
25258 _ACEOF
25259 rm -f conftest.$ac_objext
25260 if { (ac_try="$ac_compile"
25261 case "(($ac_try" in
25262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25263   *) ac_try_echo=$ac_try;;
25264 esac
25265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25266   (eval "$ac_compile") 2>conftest.er1
25267   ac_status=$?
25268   grep -v '^ *+' conftest.er1 >conftest.err
25269   rm -f conftest.er1
25270   cat conftest.err >&5
25271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272   (exit $ac_status); } && {
25273          test -z "$ac_c_werror_flag" ||
25274          test ! -s conftest.err
25275        } && test -s conftest.$ac_objext; then
25276    ac_cv_have_u_intmax_t="yes"
25277 else
25278   echo "$as_me: failed program was:" >&5
25279 sed 's/^/| /' conftest.$ac_ext >&5
25280
25281          ac_cv_have_u_intmax_t="no"
25282
25283 fi
25284
25285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25286
25287
25288 fi
25289
25290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25291
25292 fi
25293 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25294 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
25295 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25296    cat >>confdefs.h <<\_ACEOF
25297 #define HAVE_U_INTMAX_T 1
25298 _ACEOF
25299
25300    have_u_intmax_t=1
25301 fi
25302
25303
25304 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
25305 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
25306 if test "${ac_cv_have_intxx_t+set}" = set; then
25307   echo $ECHO_N "(cached) $ECHO_C" >&6
25308 else
25309
25310    cat >conftest.$ac_ext <<_ACEOF
25311 /* confdefs.h.  */
25312 _ACEOF
25313 cat confdefs.h >>conftest.$ac_ext
25314 cat >>conftest.$ac_ext <<_ACEOF
25315 /* end confdefs.h.  */
25316  #include <sys/types.h>
25317 int
25318 main ()
25319 {
25320  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25321   ;
25322   return 0;
25323 }
25324 _ACEOF
25325 rm -f conftest.$ac_objext
25326 if { (ac_try="$ac_compile"
25327 case "(($ac_try" in
25328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329   *) ac_try_echo=$ac_try;;
25330 esac
25331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332   (eval "$ac_compile") 2>conftest.er1
25333   ac_status=$?
25334   grep -v '^ *+' conftest.er1 >conftest.err
25335   rm -f conftest.er1
25336   cat conftest.err >&5
25337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338   (exit $ac_status); } && {
25339          test -z "$ac_c_werror_flag" ||
25340          test ! -s conftest.err
25341        } && test -s conftest.$ac_objext; then
25342    ac_cv_have_intxx_t="yes"
25343 else
25344   echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25346
25347          ac_cv_have_intxx_t="no"
25348
25349 fi
25350
25351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25352
25353 fi
25354 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25355 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
25356 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25357    cat >>confdefs.h <<\_ACEOF
25358 #define HAVE_INTXX_T 1
25359 _ACEOF
25360
25361    have_intxx_t=1
25362 fi
25363
25364 { echo "$as_me:$LINENO: checking for int64_t type" >&5
25365 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
25366 if test "${ac_cv_have_int64_t+set}" = set; then
25367   echo $ECHO_N "(cached) $ECHO_C" >&6
25368 else
25369
25370    cat >conftest.$ac_ext <<_ACEOF
25371 /* confdefs.h.  */
25372 _ACEOF
25373 cat confdefs.h >>conftest.$ac_ext
25374 cat >>conftest.$ac_ext <<_ACEOF
25375 /* end confdefs.h.  */
25376  #include <sys/types.h>
25377 int
25378 main ()
25379 {
25380  int64_t a; a = 1;
25381   ;
25382   return 0;
25383 }
25384 _ACEOF
25385 rm -f conftest.$ac_objext
25386 if { (ac_try="$ac_compile"
25387 case "(($ac_try" in
25388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389   *) ac_try_echo=$ac_try;;
25390 esac
25391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25392   (eval "$ac_compile") 2>conftest.er1
25393   ac_status=$?
25394   grep -v '^ *+' conftest.er1 >conftest.err
25395   rm -f conftest.er1
25396   cat conftest.err >&5
25397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398   (exit $ac_status); } && {
25399          test -z "$ac_c_werror_flag" ||
25400          test ! -s conftest.err
25401        } && test -s conftest.$ac_objext; then
25402    ac_cv_have_int64_t="yes"
25403 else
25404   echo "$as_me: failed program was:" >&5
25405 sed 's/^/| /' conftest.$ac_ext >&5
25406
25407          ac_cv_have_int64_t="no"
25408
25409 fi
25410
25411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25412
25413 fi
25414 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25415 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
25416 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25417    cat >>confdefs.h <<\_ACEOF
25418 #define HAVE_INT64_T 1
25419 _ACEOF
25420
25421    have_int64_t=1
25422 fi
25423
25424 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25425 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
25426 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25427   echo $ECHO_N "(cached) $ECHO_C" >&6
25428 else
25429
25430    cat >conftest.$ac_ext <<_ACEOF
25431 /* confdefs.h.  */
25432 _ACEOF
25433 cat confdefs.h >>conftest.$ac_ext
25434 cat >>conftest.$ac_ext <<_ACEOF
25435 /* end confdefs.h.  */
25436  #include <sys/types.h>
25437 int
25438 main ()
25439 {
25440  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25441   ;
25442   return 0;
25443 }
25444 _ACEOF
25445 rm -f conftest.$ac_objext
25446 if { (ac_try="$ac_compile"
25447 case "(($ac_try" in
25448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449   *) ac_try_echo=$ac_try;;
25450 esac
25451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25452   (eval "$ac_compile") 2>conftest.er1
25453   ac_status=$?
25454   grep -v '^ *+' conftest.er1 >conftest.err
25455   rm -f conftest.er1
25456   cat conftest.err >&5
25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458   (exit $ac_status); } && {
25459          test -z "$ac_c_werror_flag" ||
25460          test ! -s conftest.err
25461        } && test -s conftest.$ac_objext; then
25462    ac_cv_have_u_intxx_t="yes"
25463 else
25464   echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25466
25467          ac_cv_have_u_intxx_t="no"
25468
25469 fi
25470
25471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25472
25473 fi
25474 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25475 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
25476 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25477    cat >>confdefs.h <<\_ACEOF
25478 #define HAVE_U_INTXX_T 1
25479 _ACEOF
25480
25481    have_u_intxx_t=1
25482 fi
25483
25484 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25485 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
25486 if test "${ac_cv_have_u_int64_t+set}" = set; then
25487   echo $ECHO_N "(cached) $ECHO_C" >&6
25488 else
25489
25490    cat >conftest.$ac_ext <<_ACEOF
25491 /* confdefs.h.  */
25492 _ACEOF
25493 cat confdefs.h >>conftest.$ac_ext
25494 cat >>conftest.$ac_ext <<_ACEOF
25495 /* end confdefs.h.  */
25496  #include <sys/types.h>
25497 int
25498 main ()
25499 {
25500  u_int64_t a; a = 1;
25501   ;
25502   return 0;
25503 }
25504 _ACEOF
25505 rm -f conftest.$ac_objext
25506 if { (ac_try="$ac_compile"
25507 case "(($ac_try" in
25508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509   *) ac_try_echo=$ac_try;;
25510 esac
25511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25512   (eval "$ac_compile") 2>conftest.er1
25513   ac_status=$?
25514   grep -v '^ *+' conftest.er1 >conftest.err
25515   rm -f conftest.er1
25516   cat conftest.err >&5
25517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518   (exit $ac_status); } && {
25519          test -z "$ac_c_werror_flag" ||
25520          test ! -s conftest.err
25521        } && test -s conftest.$ac_objext; then
25522    ac_cv_have_u_int64_t="yes"
25523 else
25524   echo "$as_me: failed program was:" >&5
25525 sed 's/^/| /' conftest.$ac_ext >&5
25526
25527          ac_cv_have_u_int64_t="no"
25528
25529 fi
25530
25531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25532
25533 fi
25534 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25535 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
25536 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25537    cat >>confdefs.h <<\_ACEOF
25538 #define HAVE_U_INT64_T 1
25539 _ACEOF
25540
25541    have_u_int64_t=1
25542 fi
25543
25544 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25545            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25546 then
25547    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25548 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
25549    cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h.  */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h.  */
25555  #include <sys/bitypes.h>
25556 int
25557 main ()
25558 {
25559  int8_t a; int16_t b; int32_t c;
25560         u_int8_t e; u_int16_t f; u_int32_t g;
25561         a = b = c = e = f = g = 1;
25562   ;
25563   return 0;
25564 }
25565 _ACEOF
25566 rm -f conftest.$ac_objext
25567 if { (ac_try="$ac_compile"
25568 case "(($ac_try" in
25569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570   *) ac_try_echo=$ac_try;;
25571 esac
25572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25573   (eval "$ac_compile") 2>conftest.er1
25574   ac_status=$?
25575   grep -v '^ *+' conftest.er1 >conftest.err
25576   rm -f conftest.er1
25577   cat conftest.err >&5
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); } && {
25580          test -z "$ac_c_werror_flag" ||
25581          test ! -s conftest.err
25582        } && test -s conftest.$ac_objext; then
25583    cat >>confdefs.h <<\_ACEOF
25584 #define HAVE_U_INTXX_T 1
25585 _ACEOF
25586
25587         cat >>confdefs.h <<\_ACEOF
25588 #define HAVE_INTXX_T 1
25589 _ACEOF
25590
25591         cat >>confdefs.h <<\_ACEOF
25592 #define HAVE_SYS_BITYPES_H 1
25593 _ACEOF
25594
25595         { echo "$as_me:$LINENO: result: yes" >&5
25596 echo "${ECHO_T}yes" >&6; }
25597 else
25598   echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25600
25601          { echo "$as_me:$LINENO: result: no" >&5
25602 echo "${ECHO_T}no" >&6; }
25603
25604 fi
25605
25606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25607 fi
25608
25609 if test -z "$have_u_intxx_t" ; then
25610    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25611 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
25612 if test "${ac_cv_have_uintxx_t+set}" = set; then
25613   echo $ECHO_N "(cached) $ECHO_C" >&6
25614 else
25615
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 int
25624 main ()
25625 {
25626  uint8_t a; uint16_t b;
25627            uint32_t c; a = b = c = 1;
25628   ;
25629   return 0;
25630 }
25631 _ACEOF
25632 rm -f conftest.$ac_objext
25633 if { (ac_try="$ac_compile"
25634 case "(($ac_try" in
25635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25636   *) ac_try_echo=$ac_try;;
25637 esac
25638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25639   (eval "$ac_compile") 2>conftest.er1
25640   ac_status=$?
25641   grep -v '^ *+' conftest.er1 >conftest.err
25642   rm -f conftest.er1
25643   cat conftest.err >&5
25644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645   (exit $ac_status); } && {
25646          test -z "$ac_c_werror_flag" ||
25647          test ! -s conftest.err
25648        } && test -s conftest.$ac_objext; then
25649    ac_cv_have_uintxx_t="yes"
25650 else
25651   echo "$as_me: failed program was:" >&5
25652 sed 's/^/| /' conftest.$ac_ext >&5
25653
25654          ac_cv_have_uintxx_t="no"
25655
25656 fi
25657
25658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659
25660 fi
25661 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25662 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
25663    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25664       cat >>confdefs.h <<\_ACEOF
25665 #define HAVE_UINTXX_T 1
25666 _ACEOF
25667
25668    fi
25669 fi
25670
25671 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25672           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25673 then
25674    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25675 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
25676    cat >conftest.$ac_ext <<_ACEOF
25677 /* confdefs.h.  */
25678 _ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h.  */
25682  #include <sys/bitypes.h>
25683 int
25684 main ()
25685 {
25686  int64_t a; u_int64_t b;
25687        a = b = 1;
25688   ;
25689   return 0;
25690 }
25691 _ACEOF
25692 rm -f conftest.$ac_objext
25693 if { (ac_try="$ac_compile"
25694 case "(($ac_try" in
25695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696   *) ac_try_echo=$ac_try;;
25697 esac
25698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699   (eval "$ac_compile") 2>conftest.er1
25700   ac_status=$?
25701   grep -v '^ *+' conftest.er1 >conftest.err
25702   rm -f conftest.er1
25703   cat conftest.err >&5
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); } && {
25706          test -z "$ac_c_werror_flag" ||
25707          test ! -s conftest.err
25708        } && test -s conftest.$ac_objext; then
25709    cat >>confdefs.h <<\_ACEOF
25710 #define HAVE_U_INT64_T 1
25711 _ACEOF
25712
25713        cat >>confdefs.h <<\_ACEOF
25714 #define HAVE_INT64_T 1
25715 _ACEOF
25716
25717        { echo "$as_me:$LINENO: result: yes" >&5
25718 echo "${ECHO_T}yes" >&6; }
25719 else
25720   echo "$as_me: failed program was:" >&5
25721 sed 's/^/| /' conftest.$ac_ext >&5
25722
25723          { echo "$as_me:$LINENO: result: no" >&5
25724 echo "${ECHO_T}no" >&6; }
25725
25726 fi
25727
25728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25729 fi
25730
25731 if (test -z "$have_uintxx_t" && \
25732           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25733 then
25734    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
25735 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
25736    cat >conftest.$ac_ext <<_ACEOF
25737 /* confdefs.h.  */
25738 _ACEOF
25739 cat confdefs.h >>conftest.$ac_ext
25740 cat >>conftest.$ac_ext <<_ACEOF
25741 /* end confdefs.h.  */
25742  #include <sys/bitypes.h>
25743 int
25744 main ()
25745 {
25746  uint8_t a; uint16_t b;
25747           uint32_t c; a = b = c = 1;
25748   ;
25749   return 0;
25750 }
25751 _ACEOF
25752 rm -f conftest.$ac_objext
25753 if { (ac_try="$ac_compile"
25754 case "(($ac_try" in
25755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25756   *) ac_try_echo=$ac_try;;
25757 esac
25758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25759   (eval "$ac_compile") 2>conftest.er1
25760   ac_status=$?
25761   grep -v '^ *+' conftest.er1 >conftest.err
25762   rm -f conftest.er1
25763   cat conftest.err >&5
25764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765   (exit $ac_status); } && {
25766          test -z "$ac_c_werror_flag" ||
25767          test ! -s conftest.err
25768        } && test -s conftest.$ac_objext; then
25769    cat >>confdefs.h <<\_ACEOF
25770 #define HAVE_UINTXX_T 1
25771 _ACEOF
25772
25773        { echo "$as_me:$LINENO: result: yes" >&5
25774 echo "${ECHO_T}yes" >&6; }
25775 else
25776   echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25778
25779          { echo "$as_me:$LINENO: result: no" >&5
25780 echo "${ECHO_T}no" >&6; }
25781
25782 fi
25783
25784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25785
25786 fi
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804 for ac_func in \
25805         fork \
25806         getcwd \
25807         gethostname \
25808         getpid \
25809         gettimeofday \
25810         setpgid \
25811         setpgrp \
25812         setsid \
25813         signal \
25814         strerror \
25815         strncmp \
25816         strncpy \
25817         vfprintf \
25818
25819 do
25820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25824   echo $ECHO_N "(cached) $ECHO_C" >&6
25825 else
25826   cat >conftest.$ac_ext <<_ACEOF
25827 /* confdefs.h.  */
25828 _ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h.  */
25832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25834 #define $ac_func innocuous_$ac_func
25835
25836 /* System header to define __stub macros and hopefully few prototypes,
25837     which can conflict with char $ac_func (); below.
25838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25839     <limits.h> exists even on freestanding compilers.  */
25840
25841 #ifdef __STDC__
25842 # include <limits.h>
25843 #else
25844 # include <assert.h>
25845 #endif
25846
25847 #undef $ac_func
25848
25849 /* Override any GCC internal prototype to avoid an error.
25850    Use char because int might match the return type of a GCC
25851    builtin and then its argument prototype would still apply.  */
25852 #ifdef __cplusplus
25853 extern "C"
25854 #endif
25855 char $ac_func ();
25856 /* The GNU C library defines this for functions which it implements
25857     to always fail with ENOSYS.  Some functions are actually named
25858     something starting with __ and the normal name is an alias.  */
25859 #if defined __stub_$ac_func || defined __stub___$ac_func
25860 choke me
25861 #endif
25862
25863 int
25864 main ()
25865 {
25866 return $ac_func ();
25867   ;
25868   return 0;
25869 }
25870 _ACEOF
25871 rm -f conftest.$ac_objext conftest$ac_exeext
25872 if { (ac_try="$ac_link"
25873 case "(($ac_try" in
25874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25875   *) ac_try_echo=$ac_try;;
25876 esac
25877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25878   (eval "$ac_link") 2>conftest.er1
25879   ac_status=$?
25880   grep -v '^ *+' conftest.er1 >conftest.err
25881   rm -f conftest.er1
25882   cat conftest.err >&5
25883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884   (exit $ac_status); } && {
25885          test -z "$ac_c_werror_flag" ||
25886          test ! -s conftest.err
25887        } && test -s conftest$ac_exeext &&
25888        $as_test_x conftest$ac_exeext; then
25889   eval "$as_ac_var=yes"
25890 else
25891   echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25893
25894         eval "$as_ac_var=no"
25895 fi
25896
25897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25898       conftest$ac_exeext conftest.$ac_ext
25899 fi
25900 ac_res=`eval echo '${'$as_ac_var'}'`
25901                { echo "$as_me:$LINENO: result: $ac_res" >&5
25902 echo "${ECHO_T}$ac_res" >&6; }
25903 if test `eval echo '${'$as_ac_var'}'` = yes; then
25904   cat >>confdefs.h <<_ACEOF
25905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25906 _ACEOF
25907
25908 else
25909   echo 'configure: cannot find needed function.'; exit 1
25910
25911 fi
25912 done
25913
25914
25915
25916 for ac_func in fchdir
25917 do
25918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25922   echo $ECHO_N "(cached) $ECHO_C" >&6
25923 else
25924   cat >conftest.$ac_ext <<_ACEOF
25925 /* confdefs.h.  */
25926 _ACEOF
25927 cat confdefs.h >>conftest.$ac_ext
25928 cat >>conftest.$ac_ext <<_ACEOF
25929 /* end confdefs.h.  */
25930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25932 #define $ac_func innocuous_$ac_func
25933
25934 /* System header to define __stub macros and hopefully few prototypes,
25935     which can conflict with char $ac_func (); below.
25936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25937     <limits.h> exists even on freestanding compilers.  */
25938
25939 #ifdef __STDC__
25940 # include <limits.h>
25941 #else
25942 # include <assert.h>
25943 #endif
25944
25945 #undef $ac_func
25946
25947 /* Override any GCC internal prototype to avoid an error.
25948    Use char because int might match the return type of a GCC
25949    builtin and then its argument prototype would still apply.  */
25950 #ifdef __cplusplus
25951 extern "C"
25952 #endif
25953 char $ac_func ();
25954 /* The GNU C library defines this for functions which it implements
25955     to always fail with ENOSYS.  Some functions are actually named
25956     something starting with __ and the normal name is an alias.  */
25957 #if defined __stub_$ac_func || defined __stub___$ac_func
25958 choke me
25959 #endif
25960
25961 int
25962 main ()
25963 {
25964 return $ac_func ();
25965   ;
25966   return 0;
25967 }
25968 _ACEOF
25969 rm -f conftest.$ac_objext conftest$ac_exeext
25970 if { (ac_try="$ac_link"
25971 case "(($ac_try" in
25972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25973   *) ac_try_echo=$ac_try;;
25974 esac
25975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25976   (eval "$ac_link") 2>conftest.er1
25977   ac_status=$?
25978   grep -v '^ *+' conftest.er1 >conftest.err
25979   rm -f conftest.er1
25980   cat conftest.err >&5
25981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982   (exit $ac_status); } && {
25983          test -z "$ac_c_werror_flag" ||
25984          test ! -s conftest.err
25985        } && test -s conftest$ac_exeext &&
25986        $as_test_x conftest$ac_exeext; then
25987   eval "$as_ac_var=yes"
25988 else
25989   echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25991
25992         eval "$as_ac_var=no"
25993 fi
25994
25995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25996       conftest$ac_exeext conftest.$ac_ext
25997 fi
25998 ac_res=`eval echo '${'$as_ac_var'}'`
25999                { echo "$as_me:$LINENO: result: $ac_res" >&5
26000 echo "${ECHO_T}$ac_res" >&6; }
26001 if test `eval echo '${'$as_ac_var'}'` = yes; then
26002   cat >>confdefs.h <<_ACEOF
26003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26004 _ACEOF
26005  cat >>confdefs.h <<\_ACEOF
26006 #define HAVE_FCHDIR 1
26007 _ACEOF
26008
26009 fi
26010 done
26011
26012
26013 for ac_func in strtoll
26014 do
26015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26019   echo $ECHO_N "(cached) $ECHO_C" >&6
26020 else
26021   cat >conftest.$ac_ext <<_ACEOF
26022 /* confdefs.h.  */
26023 _ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h.  */
26027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26029 #define $ac_func innocuous_$ac_func
26030
26031 /* System header to define __stub macros and hopefully few prototypes,
26032     which can conflict with char $ac_func (); below.
26033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26034     <limits.h> exists even on freestanding compilers.  */
26035
26036 #ifdef __STDC__
26037 # include <limits.h>
26038 #else
26039 # include <assert.h>
26040 #endif
26041
26042 #undef $ac_func
26043
26044 /* Override any GCC internal prototype to avoid an error.
26045    Use char because int might match the return type of a GCC
26046    builtin and then its argument prototype would still apply.  */
26047 #ifdef __cplusplus
26048 extern "C"
26049 #endif
26050 char $ac_func ();
26051 /* The GNU C library defines this for functions which it implements
26052     to always fail with ENOSYS.  Some functions are actually named
26053     something starting with __ and the normal name is an alias.  */
26054 #if defined __stub_$ac_func || defined __stub___$ac_func
26055 choke me
26056 #endif
26057
26058 int
26059 main ()
26060 {
26061 return $ac_func ();
26062   ;
26063   return 0;
26064 }
26065 _ACEOF
26066 rm -f conftest.$ac_objext conftest$ac_exeext
26067 if { (ac_try="$ac_link"
26068 case "(($ac_try" in
26069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070   *) ac_try_echo=$ac_try;;
26071 esac
26072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26073   (eval "$ac_link") 2>conftest.er1
26074   ac_status=$?
26075   grep -v '^ *+' conftest.er1 >conftest.err
26076   rm -f conftest.er1
26077   cat conftest.err >&5
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); } && {
26080          test -z "$ac_c_werror_flag" ||
26081          test ! -s conftest.err
26082        } && test -s conftest$ac_exeext &&
26083        $as_test_x conftest$ac_exeext; then
26084   eval "$as_ac_var=yes"
26085 else
26086   echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26088
26089         eval "$as_ac_var=no"
26090 fi
26091
26092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26093       conftest$ac_exeext conftest.$ac_ext
26094 fi
26095 ac_res=`eval echo '${'$as_ac_var'}'`
26096                { echo "$as_me:$LINENO: result: $ac_res" >&5
26097 echo "${ECHO_T}$ac_res" >&6; }
26098 if test `eval echo '${'$as_ac_var'}'` = yes; then
26099   cat >>confdefs.h <<_ACEOF
26100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26101 _ACEOF
26102  cat >>confdefs.h <<\_ACEOF
26103 #define HAVE_STRTOLL 1
26104 _ACEOF
26105
26106 fi
26107 done
26108
26109
26110 for ac_func in posix_fadvise
26111 do
26112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26116   echo $ECHO_N "(cached) $ECHO_C" >&6
26117 else
26118   cat >conftest.$ac_ext <<_ACEOF
26119 /* confdefs.h.  */
26120 _ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h.  */
26124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26126 #define $ac_func innocuous_$ac_func
26127
26128 /* System header to define __stub macros and hopefully few prototypes,
26129     which can conflict with char $ac_func (); below.
26130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26131     <limits.h> exists even on freestanding compilers.  */
26132
26133 #ifdef __STDC__
26134 # include <limits.h>
26135 #else
26136 # include <assert.h>
26137 #endif
26138
26139 #undef $ac_func
26140
26141 /* Override any GCC internal prototype to avoid an error.
26142    Use char because int might match the return type of a GCC
26143    builtin and then its argument prototype would still apply.  */
26144 #ifdef __cplusplus
26145 extern "C"
26146 #endif
26147 char $ac_func ();
26148 /* The GNU C library defines this for functions which it implements
26149     to always fail with ENOSYS.  Some functions are actually named
26150     something starting with __ and the normal name is an alias.  */
26151 #if defined __stub_$ac_func || defined __stub___$ac_func
26152 choke me
26153 #endif
26154
26155 int
26156 main ()
26157 {
26158 return $ac_func ();
26159   ;
26160   return 0;
26161 }
26162 _ACEOF
26163 rm -f conftest.$ac_objext conftest$ac_exeext
26164 if { (ac_try="$ac_link"
26165 case "(($ac_try" in
26166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167   *) ac_try_echo=$ac_try;;
26168 esac
26169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26170   (eval "$ac_link") 2>conftest.er1
26171   ac_status=$?
26172   grep -v '^ *+' conftest.er1 >conftest.err
26173   rm -f conftest.er1
26174   cat conftest.err >&5
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); } && {
26177          test -z "$ac_c_werror_flag" ||
26178          test ! -s conftest.err
26179        } && test -s conftest$ac_exeext &&
26180        $as_test_x conftest$ac_exeext; then
26181   eval "$as_ac_var=yes"
26182 else
26183   echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26185
26186         eval "$as_ac_var=no"
26187 fi
26188
26189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26190       conftest$ac_exeext conftest.$ac_ext
26191 fi
26192 ac_res=`eval echo '${'$as_ac_var'}'`
26193                { echo "$as_me:$LINENO: result: $ac_res" >&5
26194 echo "${ECHO_T}$ac_res" >&6; }
26195 if test `eval echo '${'$as_ac_var'}'` = yes; then
26196   cat >>confdefs.h <<_ACEOF
26197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26198 _ACEOF
26199
26200 fi
26201 done
26202
26203
26204 for ac_func in fdatasync
26205 do
26206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26210   echo $ECHO_N "(cached) $ECHO_C" >&6
26211 else
26212   cat >conftest.$ac_ext <<_ACEOF
26213 /* confdefs.h.  */
26214 _ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h.  */
26218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26220 #define $ac_func innocuous_$ac_func
26221
26222 /* System header to define __stub macros and hopefully few prototypes,
26223     which can conflict with char $ac_func (); below.
26224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26225     <limits.h> exists even on freestanding compilers.  */
26226
26227 #ifdef __STDC__
26228 # include <limits.h>
26229 #else
26230 # include <assert.h>
26231 #endif
26232
26233 #undef $ac_func
26234
26235 /* Override any GCC internal prototype to avoid an error.
26236    Use char because int might match the return type of a GCC
26237    builtin and then its argument prototype would still apply.  */
26238 #ifdef __cplusplus
26239 extern "C"
26240 #endif
26241 char $ac_func ();
26242 /* The GNU C library defines this for functions which it implements
26243     to always fail with ENOSYS.  Some functions are actually named
26244     something starting with __ and the normal name is an alias.  */
26245 #if defined __stub_$ac_func || defined __stub___$ac_func
26246 choke me
26247 #endif
26248
26249 int
26250 main ()
26251 {
26252 return $ac_func ();
26253   ;
26254   return 0;
26255 }
26256 _ACEOF
26257 rm -f conftest.$ac_objext conftest$ac_exeext
26258 if { (ac_try="$ac_link"
26259 case "(($ac_try" in
26260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261   *) ac_try_echo=$ac_try;;
26262 esac
26263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26264   (eval "$ac_link") 2>conftest.er1
26265   ac_status=$?
26266   grep -v '^ *+' conftest.er1 >conftest.err
26267   rm -f conftest.er1
26268   cat conftest.err >&5
26269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270   (exit $ac_status); } && {
26271          test -z "$ac_c_werror_flag" ||
26272          test ! -s conftest.err
26273        } && test -s conftest$ac_exeext &&
26274        $as_test_x conftest$ac_exeext; then
26275   eval "$as_ac_var=yes"
26276 else
26277   echo "$as_me: failed program was:" >&5
26278 sed 's/^/| /' conftest.$ac_ext >&5
26279
26280         eval "$as_ac_var=no"
26281 fi
26282
26283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26284       conftest$ac_exeext conftest.$ac_ext
26285 fi
26286 ac_res=`eval echo '${'$as_ac_var'}'`
26287                { echo "$as_me:$LINENO: result: $ac_res" >&5
26288 echo "${ECHO_T}$ac_res" >&6; }
26289 if test `eval echo '${'$as_ac_var'}'` = yes; then
26290   cat >>confdefs.h <<_ACEOF
26291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26292 _ACEOF
26293
26294 fi
26295 done
26296
26297
26298
26299 for ac_func in chflags
26300 do
26301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26305   echo $ECHO_N "(cached) $ECHO_C" >&6
26306 else
26307   cat >conftest.$ac_ext <<_ACEOF
26308 /* confdefs.h.  */
26309 _ACEOF
26310 cat confdefs.h >>conftest.$ac_ext
26311 cat >>conftest.$ac_ext <<_ACEOF
26312 /* end confdefs.h.  */
26313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26315 #define $ac_func innocuous_$ac_func
26316
26317 /* System header to define __stub macros and hopefully few prototypes,
26318     which can conflict with char $ac_func (); below.
26319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26320     <limits.h> exists even on freestanding compilers.  */
26321
26322 #ifdef __STDC__
26323 # include <limits.h>
26324 #else
26325 # include <assert.h>
26326 #endif
26327
26328 #undef $ac_func
26329
26330 /* Override any GCC internal prototype to avoid an error.
26331    Use char because int might match the return type of a GCC
26332    builtin and then its argument prototype would still apply.  */
26333 #ifdef __cplusplus
26334 extern "C"
26335 #endif
26336 char $ac_func ();
26337 /* The GNU C library defines this for functions which it implements
26338     to always fail with ENOSYS.  Some functions are actually named
26339     something starting with __ and the normal name is an alias.  */
26340 #if defined __stub_$ac_func || defined __stub___$ac_func
26341 choke me
26342 #endif
26343
26344 int
26345 main ()
26346 {
26347 return $ac_func ();
26348   ;
26349   return 0;
26350 }
26351 _ACEOF
26352 rm -f conftest.$ac_objext conftest$ac_exeext
26353 if { (ac_try="$ac_link"
26354 case "(($ac_try" in
26355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26356   *) ac_try_echo=$ac_try;;
26357 esac
26358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26359   (eval "$ac_link") 2>conftest.er1
26360   ac_status=$?
26361   grep -v '^ *+' conftest.er1 >conftest.err
26362   rm -f conftest.er1
26363   cat conftest.err >&5
26364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365   (exit $ac_status); } && {
26366          test -z "$ac_c_werror_flag" ||
26367          test ! -s conftest.err
26368        } && test -s conftest$ac_exeext &&
26369        $as_test_x conftest$ac_exeext; then
26370   eval "$as_ac_var=yes"
26371 else
26372   echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26374
26375         eval "$as_ac_var=no"
26376 fi
26377
26378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26379       conftest$ac_exeext conftest.$ac_ext
26380 fi
26381 ac_res=`eval echo '${'$as_ac_var'}'`
26382                { echo "$as_me:$LINENO: result: $ac_res" >&5
26383 echo "${ECHO_T}$ac_res" >&6; }
26384 if test `eval echo '${'$as_ac_var'}'` = yes; then
26385   cat >>confdefs.h <<_ACEOF
26386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26387 _ACEOF
26388
26389 fi
26390 done
26391
26392
26393
26394
26395
26396
26397 for ac_func in snprintf vsnprintf gethostid fseeko
26398 do
26399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26403   echo $ECHO_N "(cached) $ECHO_C" >&6
26404 else
26405   cat >conftest.$ac_ext <<_ACEOF
26406 /* confdefs.h.  */
26407 _ACEOF
26408 cat confdefs.h >>conftest.$ac_ext
26409 cat >>conftest.$ac_ext <<_ACEOF
26410 /* end confdefs.h.  */
26411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26413 #define $ac_func innocuous_$ac_func
26414
26415 /* System header to define __stub macros and hopefully few prototypes,
26416     which can conflict with char $ac_func (); below.
26417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26418     <limits.h> exists even on freestanding compilers.  */
26419
26420 #ifdef __STDC__
26421 # include <limits.h>
26422 #else
26423 # include <assert.h>
26424 #endif
26425
26426 #undef $ac_func
26427
26428 /* Override any GCC internal prototype to avoid an error.
26429    Use char because int might match the return type of a GCC
26430    builtin and then its argument prototype would still apply.  */
26431 #ifdef __cplusplus
26432 extern "C"
26433 #endif
26434 char $ac_func ();
26435 /* The GNU C library defines this for functions which it implements
26436     to always fail with ENOSYS.  Some functions are actually named
26437     something starting with __ and the normal name is an alias.  */
26438 #if defined __stub_$ac_func || defined __stub___$ac_func
26439 choke me
26440 #endif
26441
26442 int
26443 main ()
26444 {
26445 return $ac_func ();
26446   ;
26447   return 0;
26448 }
26449 _ACEOF
26450 rm -f conftest.$ac_objext conftest$ac_exeext
26451 if { (ac_try="$ac_link"
26452 case "(($ac_try" in
26453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454   *) ac_try_echo=$ac_try;;
26455 esac
26456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457   (eval "$ac_link") 2>conftest.er1
26458   ac_status=$?
26459   grep -v '^ *+' conftest.er1 >conftest.err
26460   rm -f conftest.er1
26461   cat conftest.err >&5
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); } && {
26464          test -z "$ac_c_werror_flag" ||
26465          test ! -s conftest.err
26466        } && test -s conftest$ac_exeext &&
26467        $as_test_x conftest$ac_exeext; then
26468   eval "$as_ac_var=yes"
26469 else
26470   echo "$as_me: failed program was:" >&5
26471 sed 's/^/| /' conftest.$ac_ext >&5
26472
26473         eval "$as_ac_var=no"
26474 fi
26475
26476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26477       conftest$ac_exeext conftest.$ac_ext
26478 fi
26479 ac_res=`eval echo '${'$as_ac_var'}'`
26480                { echo "$as_me:$LINENO: result: $ac_res" >&5
26481 echo "${ECHO_T}$ac_res" >&6; }
26482 if test `eval echo '${'$as_ac_var'}'` = yes; then
26483   cat >>confdefs.h <<_ACEOF
26484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26485 _ACEOF
26486
26487 fi
26488 done
26489
26490
26491 { echo "$as_me:$LINENO: checking for va_copy" >&5
26492 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
26493 if test "${ba_cv_va_copy+set}" = set; then
26494   echo $ECHO_N "(cached) $ECHO_C" >&6
26495 else
26496   cat >conftest.$ac_ext <<_ACEOF
26497 /* confdefs.h.  */
26498 _ACEOF
26499 cat confdefs.h >>conftest.$ac_ext
26500 cat >>conftest.$ac_ext <<_ACEOF
26501 /* end confdefs.h.  */
26502
26503 #include <stdarg.h>
26504 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
26505 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
26506
26507 int
26508 main ()
26509 {
26510 call_use_va_copy(1,2,3)
26511   ;
26512   return 0;
26513 }
26514 _ACEOF
26515 rm -f conftest.$ac_objext conftest$ac_exeext
26516 if { (ac_try="$ac_link"
26517 case "(($ac_try" in
26518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26519   *) ac_try_echo=$ac_try;;
26520 esac
26521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26522   (eval "$ac_link") 2>conftest.er1
26523   ac_status=$?
26524   grep -v '^ *+' conftest.er1 >conftest.err
26525   rm -f conftest.er1
26526   cat conftest.err >&5
26527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528   (exit $ac_status); } && {
26529          test -z "$ac_c_werror_flag" ||
26530          test ! -s conftest.err
26531        } && test -s conftest$ac_exeext &&
26532        $as_test_x conftest$ac_exeext; then
26533   ba_cv_va_copy=yes
26534 else
26535   echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26537
26538         ba_cv_va_copy=no
26539 fi
26540
26541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26542       conftest$ac_exeext conftest.$ac_ext
26543 fi
26544 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
26545 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
26546 test $ba_cv_va_copy = yes &&
26547 cat >>confdefs.h <<\_ACEOF
26548 #define HAVE_VA_COPY 1
26549 _ACEOF
26550
26551
26552
26553
26554
26555
26556
26557 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26558 do
26559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26563   echo $ECHO_N "(cached) $ECHO_C" >&6
26564 else
26565   cat >conftest.$ac_ext <<_ACEOF
26566 /* confdefs.h.  */
26567 _ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h.  */
26571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26573 #define $ac_func innocuous_$ac_func
26574
26575 /* System header to define __stub macros and hopefully few prototypes,
26576     which can conflict with char $ac_func (); below.
26577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26578     <limits.h> exists even on freestanding compilers.  */
26579
26580 #ifdef __STDC__
26581 # include <limits.h>
26582 #else
26583 # include <assert.h>
26584 #endif
26585
26586 #undef $ac_func
26587
26588 /* Override any GCC internal prototype to avoid an error.
26589    Use char because int might match the return type of a GCC
26590    builtin and then its argument prototype would still apply.  */
26591 #ifdef __cplusplus
26592 extern "C"
26593 #endif
26594 char $ac_func ();
26595 /* The GNU C library defines this for functions which it implements
26596     to always fail with ENOSYS.  Some functions are actually named
26597     something starting with __ and the normal name is an alias.  */
26598 #if defined __stub_$ac_func || defined __stub___$ac_func
26599 choke me
26600 #endif
26601
26602 int
26603 main ()
26604 {
26605 return $ac_func ();
26606   ;
26607   return 0;
26608 }
26609 _ACEOF
26610 rm -f conftest.$ac_objext conftest$ac_exeext
26611 if { (ac_try="$ac_link"
26612 case "(($ac_try" in
26613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26614   *) ac_try_echo=$ac_try;;
26615 esac
26616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26617   (eval "$ac_link") 2>conftest.er1
26618   ac_status=$?
26619   grep -v '^ *+' conftest.er1 >conftest.err
26620   rm -f conftest.er1
26621   cat conftest.err >&5
26622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623   (exit $ac_status); } && {
26624          test -z "$ac_c_werror_flag" ||
26625          test ! -s conftest.err
26626        } && test -s conftest$ac_exeext &&
26627        $as_test_x conftest$ac_exeext; then
26628   eval "$as_ac_var=yes"
26629 else
26630   echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26632
26633         eval "$as_ac_var=no"
26634 fi
26635
26636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26637       conftest$ac_exeext conftest.$ac_ext
26638 fi
26639 ac_res=`eval echo '${'$as_ac_var'}'`
26640                { echo "$as_me:$LINENO: result: $ac_res" >&5
26641 echo "${ECHO_T}$ac_res" >&6; }
26642 if test `eval echo '${'$as_ac_var'}'` = yes; then
26643   cat >>confdefs.h <<_ACEOF
26644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26645 _ACEOF
26646
26647 fi
26648 done
26649
26650
26651 # If resolver functions are not in libc check for -lnsl or -lresolv.
26652 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26653 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
26654 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26655   echo $ECHO_N "(cached) $ECHO_C" >&6
26656 else
26657   cat >conftest.$ac_ext <<_ACEOF
26658 /* confdefs.h.  */
26659 _ACEOF
26660 cat confdefs.h >>conftest.$ac_ext
26661 cat >>conftest.$ac_ext <<_ACEOF
26662 /* end confdefs.h.  */
26663 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26665 #define gethostbyname_r innocuous_gethostbyname_r
26666
26667 /* System header to define __stub macros and hopefully few prototypes,
26668     which can conflict with char gethostbyname_r (); below.
26669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26670     <limits.h> exists even on freestanding compilers.  */
26671
26672 #ifdef __STDC__
26673 # include <limits.h>
26674 #else
26675 # include <assert.h>
26676 #endif
26677
26678 #undef gethostbyname_r
26679
26680 /* Override any GCC internal prototype to avoid an error.
26681    Use char because int might match the return type of a GCC
26682    builtin and then its argument prototype would still apply.  */
26683 #ifdef __cplusplus
26684 extern "C"
26685 #endif
26686 char gethostbyname_r ();
26687 /* The GNU C library defines this for functions which it implements
26688     to always fail with ENOSYS.  Some functions are actually named
26689     something starting with __ and the normal name is an alias.  */
26690 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
26691 choke me
26692 #endif
26693
26694 int
26695 main ()
26696 {
26697 return gethostbyname_r ();
26698   ;
26699   return 0;
26700 }
26701 _ACEOF
26702 rm -f conftest.$ac_objext conftest$ac_exeext
26703 if { (ac_try="$ac_link"
26704 case "(($ac_try" in
26705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706   *) ac_try_echo=$ac_try;;
26707 esac
26708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26709   (eval "$ac_link") 2>conftest.er1
26710   ac_status=$?
26711   grep -v '^ *+' conftest.er1 >conftest.err
26712   rm -f conftest.er1
26713   cat conftest.err >&5
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } && {
26716          test -z "$ac_c_werror_flag" ||
26717          test ! -s conftest.err
26718        } && test -s conftest$ac_exeext &&
26719        $as_test_x conftest$ac_exeext; then
26720   ac_cv_func_gethostbyname_r=yes
26721 else
26722   echo "$as_me: failed program was:" >&5
26723 sed 's/^/| /' conftest.$ac_ext >&5
26724
26725         ac_cv_func_gethostbyname_r=no
26726 fi
26727
26728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26729       conftest$ac_exeext conftest.$ac_ext
26730 fi
26731 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26732 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
26733 if test $ac_cv_func_gethostbyname_r = yes; then
26734   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
26735 echo "${ECHO_T}using libc's resolver" >&6; }
26736 else
26737
26738 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26739 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
26740 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26741   echo $ECHO_N "(cached) $ECHO_C" >&6
26742 else
26743   ac_check_lib_save_LIBS=$LIBS
26744 LIBS="-lnsl  $LIBS"
26745 cat >conftest.$ac_ext <<_ACEOF
26746 /* confdefs.h.  */
26747 _ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h.  */
26751
26752 /* Override any GCC internal prototype to avoid an error.
26753    Use char because int might match the return type of a GCC
26754    builtin and then its argument prototype would still apply.  */
26755 #ifdef __cplusplus
26756 extern "C"
26757 #endif
26758 char gethostbyname_r ();
26759 int
26760 main ()
26761 {
26762 return gethostbyname_r ();
26763   ;
26764   return 0;
26765 }
26766 _ACEOF
26767 rm -f conftest.$ac_objext conftest$ac_exeext
26768 if { (ac_try="$ac_link"
26769 case "(($ac_try" in
26770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26771   *) ac_try_echo=$ac_try;;
26772 esac
26773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26774   (eval "$ac_link") 2>conftest.er1
26775   ac_status=$?
26776   grep -v '^ *+' conftest.er1 >conftest.err
26777   rm -f conftest.er1
26778   cat conftest.err >&5
26779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); } && {
26781          test -z "$ac_c_werror_flag" ||
26782          test ! -s conftest.err
26783        } && test -s conftest$ac_exeext &&
26784        $as_test_x conftest$ac_exeext; then
26785   ac_cv_lib_nsl_gethostbyname_r=yes
26786 else
26787   echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26789
26790         ac_cv_lib_nsl_gethostbyname_r=no
26791 fi
26792
26793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26794       conftest$ac_exeext conftest.$ac_ext
26795 LIBS=$ac_check_lib_save_LIBS
26796 fi
26797 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26798 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
26799 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26800   cat >>confdefs.h <<_ACEOF
26801 #define HAVE_LIBNSL 1
26802 _ACEOF
26803
26804   LIBS="-lnsl $LIBS"
26805
26806 fi
26807
26808
26809 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26810 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
26811 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26812   echo $ECHO_N "(cached) $ECHO_C" >&6
26813 else
26814   ac_check_lib_save_LIBS=$LIBS
26815 LIBS="-lresolv  $LIBS"
26816 cat >conftest.$ac_ext <<_ACEOF
26817 /* confdefs.h.  */
26818 _ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h.  */
26822
26823 /* Override any GCC internal prototype to avoid an error.
26824    Use char because int might match the return type of a GCC
26825    builtin and then its argument prototype would still apply.  */
26826 #ifdef __cplusplus
26827 extern "C"
26828 #endif
26829 char gethostbyname_r ();
26830 int
26831 main ()
26832 {
26833 return gethostbyname_r ();
26834   ;
26835   return 0;
26836 }
26837 _ACEOF
26838 rm -f conftest.$ac_objext conftest$ac_exeext
26839 if { (ac_try="$ac_link"
26840 case "(($ac_try" in
26841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26842   *) ac_try_echo=$ac_try;;
26843 esac
26844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26845   (eval "$ac_link") 2>conftest.er1
26846   ac_status=$?
26847   grep -v '^ *+' conftest.er1 >conftest.err
26848   rm -f conftest.er1
26849   cat conftest.err >&5
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); } && {
26852          test -z "$ac_c_werror_flag" ||
26853          test ! -s conftest.err
26854        } && test -s conftest$ac_exeext &&
26855        $as_test_x conftest$ac_exeext; then
26856   ac_cv_lib_resolv_gethostbyname_r=yes
26857 else
26858   echo "$as_me: failed program was:" >&5
26859 sed 's/^/| /' conftest.$ac_ext >&5
26860
26861         ac_cv_lib_resolv_gethostbyname_r=no
26862 fi
26863
26864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26865       conftest$ac_exeext conftest.$ac_ext
26866 LIBS=$ac_check_lib_save_LIBS
26867 fi
26868 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26869 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
26870 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26871   cat >>confdefs.h <<_ACEOF
26872 #define HAVE_LIBRESOLV 1
26873 _ACEOF
26874
26875   LIBS="-lresolv $LIBS"
26876
26877 fi
26878
26879 fi
26880
26881
26882
26883
26884
26885 for ac_func in inet_pton
26886 do
26887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26891   echo $ECHO_N "(cached) $ECHO_C" >&6
26892 else
26893   cat >conftest.$ac_ext <<_ACEOF
26894 /* confdefs.h.  */
26895 _ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h.  */
26899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26901 #define $ac_func innocuous_$ac_func
26902
26903 /* System header to define __stub macros and hopefully few prototypes,
26904     which can conflict with char $ac_func (); below.
26905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26906     <limits.h> exists even on freestanding compilers.  */
26907
26908 #ifdef __STDC__
26909 # include <limits.h>
26910 #else
26911 # include <assert.h>
26912 #endif
26913
26914 #undef $ac_func
26915
26916 /* Override any GCC internal prototype to avoid an error.
26917    Use char because int might match the return type of a GCC
26918    builtin and then its argument prototype would still apply.  */
26919 #ifdef __cplusplus
26920 extern "C"
26921 #endif
26922 char $ac_func ();
26923 /* The GNU C library defines this for functions which it implements
26924     to always fail with ENOSYS.  Some functions are actually named
26925     something starting with __ and the normal name is an alias.  */
26926 #if defined __stub_$ac_func || defined __stub___$ac_func
26927 choke me
26928 #endif
26929
26930 int
26931 main ()
26932 {
26933 return $ac_func ();
26934   ;
26935   return 0;
26936 }
26937 _ACEOF
26938 rm -f conftest.$ac_objext conftest$ac_exeext
26939 if { (ac_try="$ac_link"
26940 case "(($ac_try" in
26941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942   *) ac_try_echo=$ac_try;;
26943 esac
26944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945   (eval "$ac_link") 2>conftest.er1
26946   ac_status=$?
26947   grep -v '^ *+' conftest.er1 >conftest.err
26948   rm -f conftest.er1
26949   cat conftest.err >&5
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); } && {
26952          test -z "$ac_c_werror_flag" ||
26953          test ! -s conftest.err
26954        } && test -s conftest$ac_exeext &&
26955        $as_test_x conftest$ac_exeext; then
26956   eval "$as_ac_var=yes"
26957 else
26958   echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26960
26961         eval "$as_ac_var=no"
26962 fi
26963
26964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26965       conftest$ac_exeext conftest.$ac_ext
26966 fi
26967 ac_res=`eval echo '${'$as_ac_var'}'`
26968                { echo "$as_me:$LINENO: result: $ac_res" >&5
26969 echo "${ECHO_T}$ac_res" >&6; }
26970 if test `eval echo '${'$as_ac_var'}'` = yes; then
26971   cat >>confdefs.h <<_ACEOF
26972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26973 _ACEOF
26974  cat >>confdefs.h <<\_ACEOF
26975 #define HAVE_INET_PTON 1
26976 _ACEOF
26977
26978 fi
26979 done
26980
26981
26982 for ac_func in inet_ntop
26983 do
26984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26988   echo $ECHO_N "(cached) $ECHO_C" >&6
26989 else
26990   cat >conftest.$ac_ext <<_ACEOF
26991 /* confdefs.h.  */
26992 _ACEOF
26993 cat confdefs.h >>conftest.$ac_ext
26994 cat >>conftest.$ac_ext <<_ACEOF
26995 /* end confdefs.h.  */
26996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26998 #define $ac_func innocuous_$ac_func
26999
27000 /* System header to define __stub macros and hopefully few prototypes,
27001     which can conflict with char $ac_func (); below.
27002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27003     <limits.h> exists even on freestanding compilers.  */
27004
27005 #ifdef __STDC__
27006 # include <limits.h>
27007 #else
27008 # include <assert.h>
27009 #endif
27010
27011 #undef $ac_func
27012
27013 /* Override any GCC internal prototype to avoid an error.
27014    Use char because int might match the return type of a GCC
27015    builtin and then its argument prototype would still apply.  */
27016 #ifdef __cplusplus
27017 extern "C"
27018 #endif
27019 char $ac_func ();
27020 /* The GNU C library defines this for functions which it implements
27021     to always fail with ENOSYS.  Some functions are actually named
27022     something starting with __ and the normal name is an alias.  */
27023 #if defined __stub_$ac_func || defined __stub___$ac_func
27024 choke me
27025 #endif
27026
27027 int
27028 main ()
27029 {
27030 return $ac_func ();
27031   ;
27032   return 0;
27033 }
27034 _ACEOF
27035 rm -f conftest.$ac_objext conftest$ac_exeext
27036 if { (ac_try="$ac_link"
27037 case "(($ac_try" in
27038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27039   *) ac_try_echo=$ac_try;;
27040 esac
27041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27042   (eval "$ac_link") 2>conftest.er1
27043   ac_status=$?
27044   grep -v '^ *+' conftest.er1 >conftest.err
27045   rm -f conftest.er1
27046   cat conftest.err >&5
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); } && {
27049          test -z "$ac_c_werror_flag" ||
27050          test ! -s conftest.err
27051        } && test -s conftest$ac_exeext &&
27052        $as_test_x conftest$ac_exeext; then
27053   eval "$as_ac_var=yes"
27054 else
27055   echo "$as_me: failed program was:" >&5
27056 sed 's/^/| /' conftest.$ac_ext >&5
27057
27058         eval "$as_ac_var=no"
27059 fi
27060
27061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27062       conftest$ac_exeext conftest.$ac_ext
27063 fi
27064 ac_res=`eval echo '${'$as_ac_var'}'`
27065                { echo "$as_me:$LINENO: result: $ac_res" >&5
27066 echo "${ECHO_T}$ac_res" >&6; }
27067 if test `eval echo '${'$as_ac_var'}'` = yes; then
27068   cat >>confdefs.h <<_ACEOF
27069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27070 _ACEOF
27071  cat >>confdefs.h <<\_ACEOF
27072 #define HAVE_INET_NTOP 1
27073 _ACEOF
27074
27075 fi
27076 done
27077
27078
27079 for ac_func in gethostbyname2
27080 do
27081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27085   echo $ECHO_N "(cached) $ECHO_C" >&6
27086 else
27087   cat >conftest.$ac_ext <<_ACEOF
27088 /* confdefs.h.  */
27089 _ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h.  */
27093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27095 #define $ac_func innocuous_$ac_func
27096
27097 /* System header to define __stub macros and hopefully few prototypes,
27098     which can conflict with char $ac_func (); below.
27099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27100     <limits.h> exists even on freestanding compilers.  */
27101
27102 #ifdef __STDC__
27103 # include <limits.h>
27104 #else
27105 # include <assert.h>
27106 #endif
27107
27108 #undef $ac_func
27109
27110 /* Override any GCC internal prototype to avoid an error.
27111    Use char because int might match the return type of a GCC
27112    builtin and then its argument prototype would still apply.  */
27113 #ifdef __cplusplus
27114 extern "C"
27115 #endif
27116 char $ac_func ();
27117 /* The GNU C library defines this for functions which it implements
27118     to always fail with ENOSYS.  Some functions are actually named
27119     something starting with __ and the normal name is an alias.  */
27120 #if defined __stub_$ac_func || defined __stub___$ac_func
27121 choke me
27122 #endif
27123
27124 int
27125 main ()
27126 {
27127 return $ac_func ();
27128   ;
27129   return 0;
27130 }
27131 _ACEOF
27132 rm -f conftest.$ac_objext conftest$ac_exeext
27133 if { (ac_try="$ac_link"
27134 case "(($ac_try" in
27135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136   *) ac_try_echo=$ac_try;;
27137 esac
27138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139   (eval "$ac_link") 2>conftest.er1
27140   ac_status=$?
27141   grep -v '^ *+' conftest.er1 >conftest.err
27142   rm -f conftest.er1
27143   cat conftest.err >&5
27144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145   (exit $ac_status); } && {
27146          test -z "$ac_c_werror_flag" ||
27147          test ! -s conftest.err
27148        } && test -s conftest$ac_exeext &&
27149        $as_test_x conftest$ac_exeext; then
27150   eval "$as_ac_var=yes"
27151 else
27152   echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27154
27155         eval "$as_ac_var=no"
27156 fi
27157
27158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27159       conftest$ac_exeext conftest.$ac_ext
27160 fi
27161 ac_res=`eval echo '${'$as_ac_var'}'`
27162                { echo "$as_me:$LINENO: result: $ac_res" >&5
27163 echo "${ECHO_T}$ac_res" >&6; }
27164 if test `eval echo '${'$as_ac_var'}'` = yes; then
27165   cat >>confdefs.h <<_ACEOF
27166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27167 _ACEOF
27168  cat >>confdefs.h <<\_ACEOF
27169 #define HAVE_GETHOSTBYNAME2 1
27170 _ACEOF
27171
27172 fi
27173 done
27174
27175
27176 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27177 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
27178 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27179   echo $ECHO_N "(cached) $ECHO_C" >&6
27180 else
27181   cat >conftest.$ac_ext <<_ACEOF
27182 /* confdefs.h.  */
27183 _ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h.  */
27187 #include <sys/socket.h>
27188 int
27189 main ()
27190 {
27191 struct sockaddr s; s.sa_len;
27192   ;
27193   return 0;
27194 }
27195 _ACEOF
27196 rm -f conftest.$ac_objext
27197 if { (ac_try="$ac_compile"
27198 case "(($ac_try" in
27199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200   *) ac_try_echo=$ac_try;;
27201 esac
27202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203   (eval "$ac_compile") 2>conftest.er1
27204   ac_status=$?
27205   grep -v '^ *+' conftest.er1 >conftest.err
27206   rm -f conftest.er1
27207   cat conftest.err >&5
27208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209   (exit $ac_status); } && {
27210          test -z "$ac_c_werror_flag" ||
27211          test ! -s conftest.err
27212        } && test -s conftest.$ac_objext; then
27213   ac_cv_struct_sockaddr_sa_len=yes
27214 else
27215   echo "$as_me: failed program was:" >&5
27216 sed 's/^/| /' conftest.$ac_ext >&5
27217
27218         ac_cv_struct_sockaddr_sa_len=no
27219 fi
27220
27221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27222 fi
27223 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27224 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
27225
27226  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27227
27228 cat >>confdefs.h <<\_ACEOF
27229 #define HAVE_SA_LEN 1
27230 _ACEOF
27231
27232  fi
27233
27234
27235
27236
27237
27238 for ac_func in strftime
27239 do
27240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27244   echo $ECHO_N "(cached) $ECHO_C" >&6
27245 else
27246   cat >conftest.$ac_ext <<_ACEOF
27247 /* confdefs.h.  */
27248 _ACEOF
27249 cat confdefs.h >>conftest.$ac_ext
27250 cat >>conftest.$ac_ext <<_ACEOF
27251 /* end confdefs.h.  */
27252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27254 #define $ac_func innocuous_$ac_func
27255
27256 /* System header to define __stub macros and hopefully few prototypes,
27257     which can conflict with char $ac_func (); below.
27258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27259     <limits.h> exists even on freestanding compilers.  */
27260
27261 #ifdef __STDC__
27262 # include <limits.h>
27263 #else
27264 # include <assert.h>
27265 #endif
27266
27267 #undef $ac_func
27268
27269 /* Override any GCC internal prototype to avoid an error.
27270    Use char because int might match the return type of a GCC
27271    builtin and then its argument prototype would still apply.  */
27272 #ifdef __cplusplus
27273 extern "C"
27274 #endif
27275 char $ac_func ();
27276 /* The GNU C library defines this for functions which it implements
27277     to always fail with ENOSYS.  Some functions are actually named
27278     something starting with __ and the normal name is an alias.  */
27279 #if defined __stub_$ac_func || defined __stub___$ac_func
27280 choke me
27281 #endif
27282
27283 int
27284 main ()
27285 {
27286 return $ac_func ();
27287   ;
27288   return 0;
27289 }
27290 _ACEOF
27291 rm -f conftest.$ac_objext conftest$ac_exeext
27292 if { (ac_try="$ac_link"
27293 case "(($ac_try" in
27294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27295   *) ac_try_echo=$ac_try;;
27296 esac
27297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27298   (eval "$ac_link") 2>conftest.er1
27299   ac_status=$?
27300   grep -v '^ *+' conftest.er1 >conftest.err
27301   rm -f conftest.er1
27302   cat conftest.err >&5
27303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304   (exit $ac_status); } && {
27305          test -z "$ac_c_werror_flag" ||
27306          test ! -s conftest.err
27307        } && test -s conftest$ac_exeext &&
27308        $as_test_x conftest$ac_exeext; then
27309   eval "$as_ac_var=yes"
27310 else
27311   echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27313
27314         eval "$as_ac_var=no"
27315 fi
27316
27317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27318       conftest$ac_exeext conftest.$ac_ext
27319 fi
27320 ac_res=`eval echo '${'$as_ac_var'}'`
27321                { echo "$as_me:$LINENO: result: $ac_res" >&5
27322 echo "${ECHO_T}$ac_res" >&6; }
27323 if test `eval echo '${'$as_ac_var'}'` = yes; then
27324   cat >>confdefs.h <<_ACEOF
27325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27326 _ACEOF
27327
27328 else
27329   # strftime is in -lintl on SCO UNIX.
27330 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27331 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
27332 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27333   echo $ECHO_N "(cached) $ECHO_C" >&6
27334 else
27335   ac_check_lib_save_LIBS=$LIBS
27336 LIBS="-lintl  $LIBS"
27337 cat >conftest.$ac_ext <<_ACEOF
27338 /* confdefs.h.  */
27339 _ACEOF
27340 cat confdefs.h >>conftest.$ac_ext
27341 cat >>conftest.$ac_ext <<_ACEOF
27342 /* end confdefs.h.  */
27343
27344 /* Override any GCC internal prototype to avoid an error.
27345    Use char because int might match the return type of a GCC
27346    builtin and then its argument prototype would still apply.  */
27347 #ifdef __cplusplus
27348 extern "C"
27349 #endif
27350 char strftime ();
27351 int
27352 main ()
27353 {
27354 return strftime ();
27355   ;
27356   return 0;
27357 }
27358 _ACEOF
27359 rm -f conftest.$ac_objext conftest$ac_exeext
27360 if { (ac_try="$ac_link"
27361 case "(($ac_try" in
27362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363   *) ac_try_echo=$ac_try;;
27364 esac
27365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366   (eval "$ac_link") 2>conftest.er1
27367   ac_status=$?
27368   grep -v '^ *+' conftest.er1 >conftest.err
27369   rm -f conftest.er1
27370   cat conftest.err >&5
27371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372   (exit $ac_status); } && {
27373          test -z "$ac_c_werror_flag" ||
27374          test ! -s conftest.err
27375        } && test -s conftest$ac_exeext &&
27376        $as_test_x conftest$ac_exeext; then
27377   ac_cv_lib_intl_strftime=yes
27378 else
27379   echo "$as_me: failed program was:" >&5
27380 sed 's/^/| /' conftest.$ac_ext >&5
27381
27382         ac_cv_lib_intl_strftime=no
27383 fi
27384
27385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27386       conftest$ac_exeext conftest.$ac_ext
27387 LIBS=$ac_check_lib_save_LIBS
27388 fi
27389 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27390 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
27391 if test $ac_cv_lib_intl_strftime = yes; then
27392   cat >>confdefs.h <<\_ACEOF
27393 #define HAVE_STRFTIME 1
27394 _ACEOF
27395
27396 LIBS="-lintl $LIBS"
27397 fi
27398
27399 fi
27400 done
27401
27402
27403 for ac_func in vprintf
27404 do
27405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27409   echo $ECHO_N "(cached) $ECHO_C" >&6
27410 else
27411   cat >conftest.$ac_ext <<_ACEOF
27412 /* confdefs.h.  */
27413 _ACEOF
27414 cat confdefs.h >>conftest.$ac_ext
27415 cat >>conftest.$ac_ext <<_ACEOF
27416 /* end confdefs.h.  */
27417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27419 #define $ac_func innocuous_$ac_func
27420
27421 /* System header to define __stub macros and hopefully few prototypes,
27422     which can conflict with char $ac_func (); below.
27423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27424     <limits.h> exists even on freestanding compilers.  */
27425
27426 #ifdef __STDC__
27427 # include <limits.h>
27428 #else
27429 # include <assert.h>
27430 #endif
27431
27432 #undef $ac_func
27433
27434 /* Override any GCC internal prototype to avoid an error.
27435    Use char because int might match the return type of a GCC
27436    builtin and then its argument prototype would still apply.  */
27437 #ifdef __cplusplus
27438 extern "C"
27439 #endif
27440 char $ac_func ();
27441 /* The GNU C library defines this for functions which it implements
27442     to always fail with ENOSYS.  Some functions are actually named
27443     something starting with __ and the normal name is an alias.  */
27444 #if defined __stub_$ac_func || defined __stub___$ac_func
27445 choke me
27446 #endif
27447
27448 int
27449 main ()
27450 {
27451 return $ac_func ();
27452   ;
27453   return 0;
27454 }
27455 _ACEOF
27456 rm -f conftest.$ac_objext conftest$ac_exeext
27457 if { (ac_try="$ac_link"
27458 case "(($ac_try" in
27459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460   *) ac_try_echo=$ac_try;;
27461 esac
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463   (eval "$ac_link") 2>conftest.er1
27464   ac_status=$?
27465   grep -v '^ *+' conftest.er1 >conftest.err
27466   rm -f conftest.er1
27467   cat conftest.err >&5
27468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469   (exit $ac_status); } && {
27470          test -z "$ac_c_werror_flag" ||
27471          test ! -s conftest.err
27472        } && test -s conftest$ac_exeext &&
27473        $as_test_x conftest$ac_exeext; then
27474   eval "$as_ac_var=yes"
27475 else
27476   echo "$as_me: failed program was:" >&5
27477 sed 's/^/| /' conftest.$ac_ext >&5
27478
27479         eval "$as_ac_var=no"
27480 fi
27481
27482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27483       conftest$ac_exeext conftest.$ac_ext
27484 fi
27485 ac_res=`eval echo '${'$as_ac_var'}'`
27486                { echo "$as_me:$LINENO: result: $ac_res" >&5
27487 echo "${ECHO_T}$ac_res" >&6; }
27488 if test `eval echo '${'$as_ac_var'}'` = yes; then
27489   cat >>confdefs.h <<_ACEOF
27490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27491 _ACEOF
27492
27493 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27494 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27495 if test "${ac_cv_func__doprnt+set}" = set; then
27496   echo $ECHO_N "(cached) $ECHO_C" >&6
27497 else
27498   cat >conftest.$ac_ext <<_ACEOF
27499 /* confdefs.h.  */
27500 _ACEOF
27501 cat confdefs.h >>conftest.$ac_ext
27502 cat >>conftest.$ac_ext <<_ACEOF
27503 /* end confdefs.h.  */
27504 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27506 #define _doprnt innocuous__doprnt
27507
27508 /* System header to define __stub macros and hopefully few prototypes,
27509     which can conflict with char _doprnt (); below.
27510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27511     <limits.h> exists even on freestanding compilers.  */
27512
27513 #ifdef __STDC__
27514 # include <limits.h>
27515 #else
27516 # include <assert.h>
27517 #endif
27518
27519 #undef _doprnt
27520
27521 /* Override any GCC internal prototype to avoid an error.
27522    Use char because int might match the return type of a GCC
27523    builtin and then its argument prototype would still apply.  */
27524 #ifdef __cplusplus
27525 extern "C"
27526 #endif
27527 char _doprnt ();
27528 /* The GNU C library defines this for functions which it implements
27529     to always fail with ENOSYS.  Some functions are actually named
27530     something starting with __ and the normal name is an alias.  */
27531 #if defined __stub__doprnt || defined __stub____doprnt
27532 choke me
27533 #endif
27534
27535 int
27536 main ()
27537 {
27538 return _doprnt ();
27539   ;
27540   return 0;
27541 }
27542 _ACEOF
27543 rm -f conftest.$ac_objext conftest$ac_exeext
27544 if { (ac_try="$ac_link"
27545 case "(($ac_try" in
27546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547   *) ac_try_echo=$ac_try;;
27548 esac
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550   (eval "$ac_link") 2>conftest.er1
27551   ac_status=$?
27552   grep -v '^ *+' conftest.er1 >conftest.err
27553   rm -f conftest.er1
27554   cat conftest.err >&5
27555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556   (exit $ac_status); } && {
27557          test -z "$ac_c_werror_flag" ||
27558          test ! -s conftest.err
27559        } && test -s conftest$ac_exeext &&
27560        $as_test_x conftest$ac_exeext; then
27561   ac_cv_func__doprnt=yes
27562 else
27563   echo "$as_me: failed program was:" >&5
27564 sed 's/^/| /' conftest.$ac_ext >&5
27565
27566         ac_cv_func__doprnt=no
27567 fi
27568
27569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27570       conftest$ac_exeext conftest.$ac_ext
27571 fi
27572 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27573 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27574 if test $ac_cv_func__doprnt = yes; then
27575
27576 cat >>confdefs.h <<\_ACEOF
27577 #define HAVE_DOPRNT 1
27578 _ACEOF
27579
27580 fi
27581
27582 fi
27583 done
27584
27585
27586 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27587 # for constant arguments.  Useless!
27588 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
27589 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
27590 if test "${ac_cv_working_alloca_h+set}" = set; then
27591   echo $ECHO_N "(cached) $ECHO_C" >&6
27592 else
27593   cat >conftest.$ac_ext <<_ACEOF
27594 /* confdefs.h.  */
27595 _ACEOF
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h.  */
27599 #include <alloca.h>
27600 int
27601 main ()
27602 {
27603 char *p = (char *) alloca (2 * sizeof (int));
27604                           if (p) return 0;
27605   ;
27606   return 0;
27607 }
27608 _ACEOF
27609 rm -f conftest.$ac_objext conftest$ac_exeext
27610 if { (ac_try="$ac_link"
27611 case "(($ac_try" in
27612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27613   *) ac_try_echo=$ac_try;;
27614 esac
27615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27616   (eval "$ac_link") 2>conftest.er1
27617   ac_status=$?
27618   grep -v '^ *+' conftest.er1 >conftest.err
27619   rm -f conftest.er1
27620   cat conftest.err >&5
27621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622   (exit $ac_status); } && {
27623          test -z "$ac_c_werror_flag" ||
27624          test ! -s conftest.err
27625        } && test -s conftest$ac_exeext &&
27626        $as_test_x conftest$ac_exeext; then
27627   ac_cv_working_alloca_h=yes
27628 else
27629   echo "$as_me: failed program was:" >&5
27630 sed 's/^/| /' conftest.$ac_ext >&5
27631
27632         ac_cv_working_alloca_h=no
27633 fi
27634
27635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27636       conftest$ac_exeext conftest.$ac_ext
27637 fi
27638 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27639 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
27640 if test $ac_cv_working_alloca_h = yes; then
27641
27642 cat >>confdefs.h <<\_ACEOF
27643 #define HAVE_ALLOCA_H 1
27644 _ACEOF
27645
27646 fi
27647
27648 { echo "$as_me:$LINENO: checking for alloca" >&5
27649 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
27650 if test "${ac_cv_func_alloca_works+set}" = set; then
27651   echo $ECHO_N "(cached) $ECHO_C" >&6
27652 else
27653   cat >conftest.$ac_ext <<_ACEOF
27654 /* confdefs.h.  */
27655 _ACEOF
27656 cat confdefs.h >>conftest.$ac_ext
27657 cat >>conftest.$ac_ext <<_ACEOF
27658 /* end confdefs.h.  */
27659 #ifdef __GNUC__
27660 # define alloca __builtin_alloca
27661 #else
27662 # ifdef _MSC_VER
27663 #  include <malloc.h>
27664 #  define alloca _alloca
27665 # else
27666 #  ifdef HAVE_ALLOCA_H
27667 #   include <alloca.h>
27668 #  else
27669 #   ifdef _AIX
27670  #pragma alloca
27671 #   else
27672 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27673 char *alloca ();
27674 #    endif
27675 #   endif
27676 #  endif
27677 # endif
27678 #endif
27679
27680 int
27681 main ()
27682 {
27683 char *p = (char *) alloca (1);
27684                                     if (p) return 0;
27685   ;
27686   return 0;
27687 }
27688 _ACEOF
27689 rm -f conftest.$ac_objext conftest$ac_exeext
27690 if { (ac_try="$ac_link"
27691 case "(($ac_try" in
27692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693   *) ac_try_echo=$ac_try;;
27694 esac
27695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696   (eval "$ac_link") 2>conftest.er1
27697   ac_status=$?
27698   grep -v '^ *+' conftest.er1 >conftest.err
27699   rm -f conftest.er1
27700   cat conftest.err >&5
27701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702   (exit $ac_status); } && {
27703          test -z "$ac_c_werror_flag" ||
27704          test ! -s conftest.err
27705        } && test -s conftest$ac_exeext &&
27706        $as_test_x conftest$ac_exeext; then
27707   ac_cv_func_alloca_works=yes
27708 else
27709   echo "$as_me: failed program was:" >&5
27710 sed 's/^/| /' conftest.$ac_ext >&5
27711
27712         ac_cv_func_alloca_works=no
27713 fi
27714
27715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27716       conftest$ac_exeext conftest.$ac_ext
27717 fi
27718 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27719 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
27720
27721 if test $ac_cv_func_alloca_works = yes; then
27722
27723 cat >>confdefs.h <<\_ACEOF
27724 #define HAVE_ALLOCA 1
27725 _ACEOF
27726
27727 else
27728   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27729 # that cause trouble.  Some versions do not even contain alloca or
27730 # contain a buggy version.  If you still want to use their alloca,
27731 # use ar to extract alloca.o from them instead of compiling alloca.c.
27732
27733 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27734
27735 cat >>confdefs.h <<\_ACEOF
27736 #define C_ALLOCA 1
27737 _ACEOF
27738
27739
27740 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27741 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
27742 if test "${ac_cv_os_cray+set}" = set; then
27743   echo $ECHO_N "(cached) $ECHO_C" >&6
27744 else
27745   cat >conftest.$ac_ext <<_ACEOF
27746 /* confdefs.h.  */
27747 _ACEOF
27748 cat confdefs.h >>conftest.$ac_ext
27749 cat >>conftest.$ac_ext <<_ACEOF
27750 /* end confdefs.h.  */
27751 #if defined CRAY && ! defined CRAY2
27752 webecray
27753 #else
27754 wenotbecray
27755 #endif
27756
27757 _ACEOF
27758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27759   $EGREP "webecray" >/dev/null 2>&1; then
27760   ac_cv_os_cray=yes
27761 else
27762   ac_cv_os_cray=no
27763 fi
27764 rm -f conftest*
27765
27766 fi
27767 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27768 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
27769 if test $ac_cv_os_cray = yes; then
27770   for ac_func in _getb67 GETB67 getb67; do
27771     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27775   echo $ECHO_N "(cached) $ECHO_C" >&6
27776 else
27777   cat >conftest.$ac_ext <<_ACEOF
27778 /* confdefs.h.  */
27779 _ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h.  */
27783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27785 #define $ac_func innocuous_$ac_func
27786
27787 /* System header to define __stub macros and hopefully few prototypes,
27788     which can conflict with char $ac_func (); below.
27789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27790     <limits.h> exists even on freestanding compilers.  */
27791
27792 #ifdef __STDC__
27793 # include <limits.h>
27794 #else
27795 # include <assert.h>
27796 #endif
27797
27798 #undef $ac_func
27799
27800 /* Override any GCC internal prototype to avoid an error.
27801    Use char because int might match the return type of a GCC
27802    builtin and then its argument prototype would still apply.  */
27803 #ifdef __cplusplus
27804 extern "C"
27805 #endif
27806 char $ac_func ();
27807 /* The GNU C library defines this for functions which it implements
27808     to always fail with ENOSYS.  Some functions are actually named
27809     something starting with __ and the normal name is an alias.  */
27810 #if defined __stub_$ac_func || defined __stub___$ac_func
27811 choke me
27812 #endif
27813
27814 int
27815 main ()
27816 {
27817 return $ac_func ();
27818   ;
27819   return 0;
27820 }
27821 _ACEOF
27822 rm -f conftest.$ac_objext conftest$ac_exeext
27823 if { (ac_try="$ac_link"
27824 case "(($ac_try" in
27825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27826   *) ac_try_echo=$ac_try;;
27827 esac
27828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27829   (eval "$ac_link") 2>conftest.er1
27830   ac_status=$?
27831   grep -v '^ *+' conftest.er1 >conftest.err
27832   rm -f conftest.er1
27833   cat conftest.err >&5
27834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835   (exit $ac_status); } && {
27836          test -z "$ac_c_werror_flag" ||
27837          test ! -s conftest.err
27838        } && test -s conftest$ac_exeext &&
27839        $as_test_x conftest$ac_exeext; then
27840   eval "$as_ac_var=yes"
27841 else
27842   echo "$as_me: failed program was:" >&5
27843 sed 's/^/| /' conftest.$ac_ext >&5
27844
27845         eval "$as_ac_var=no"
27846 fi
27847
27848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27849       conftest$ac_exeext conftest.$ac_ext
27850 fi
27851 ac_res=`eval echo '${'$as_ac_var'}'`
27852                { echo "$as_me:$LINENO: result: $ac_res" >&5
27853 echo "${ECHO_T}$ac_res" >&6; }
27854 if test `eval echo '${'$as_ac_var'}'` = yes; then
27855
27856 cat >>confdefs.h <<_ACEOF
27857 #define CRAY_STACKSEG_END $ac_func
27858 _ACEOF
27859
27860     break
27861 fi
27862
27863   done
27864 fi
27865
27866 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27867 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
27868 if test "${ac_cv_c_stack_direction+set}" = set; then
27869   echo $ECHO_N "(cached) $ECHO_C" >&6
27870 else
27871   if test "$cross_compiling" = yes; then
27872   ac_cv_c_stack_direction=0
27873 else
27874   cat >conftest.$ac_ext <<_ACEOF
27875 /* confdefs.h.  */
27876 _ACEOF
27877 cat confdefs.h >>conftest.$ac_ext
27878 cat >>conftest.$ac_ext <<_ACEOF
27879 /* end confdefs.h.  */
27880 $ac_includes_default
27881 int
27882 find_stack_direction ()
27883 {
27884   static char *addr = 0;
27885   auto char dummy;
27886   if (addr == 0)
27887     {
27888       addr = &dummy;
27889       return find_stack_direction ();
27890     }
27891   else
27892     return (&dummy > addr) ? 1 : -1;
27893 }
27894
27895 int
27896 main ()
27897 {
27898   return find_stack_direction () < 0;
27899 }
27900 _ACEOF
27901 rm -f conftest$ac_exeext
27902 if { (ac_try="$ac_link"
27903 case "(($ac_try" in
27904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905   *) ac_try_echo=$ac_try;;
27906 esac
27907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27908   (eval "$ac_link") 2>&5
27909   ac_status=$?
27910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27912   { (case "(($ac_try" in
27913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27914   *) ac_try_echo=$ac_try;;
27915 esac
27916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27917   (eval "$ac_try") 2>&5
27918   ac_status=$?
27919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920   (exit $ac_status); }; }; then
27921   ac_cv_c_stack_direction=1
27922 else
27923   echo "$as_me: program exited with status $ac_status" >&5
27924 echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27926
27927 ( exit $ac_status )
27928 ac_cv_c_stack_direction=-1
27929 fi
27930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27931 fi
27932
27933
27934 fi
27935 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27936 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
27937
27938 cat >>confdefs.h <<_ACEOF
27939 #define STACK_DIRECTION $ac_cv_c_stack_direction
27940 _ACEOF
27941
27942
27943 fi
27944
27945 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27946 # -lseq on Dynix/PTX, -lgen on Unixware.
27947 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
27948 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
27949 if test "${ac_cv_search_getmntent+set}" = set; then
27950   echo $ECHO_N "(cached) $ECHO_C" >&6
27951 else
27952   ac_func_search_save_LIBS=$LIBS
27953 cat >conftest.$ac_ext <<_ACEOF
27954 /* confdefs.h.  */
27955 _ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h.  */
27959
27960 /* Override any GCC internal prototype to avoid an error.
27961    Use char because int might match the return type of a GCC
27962    builtin and then its argument prototype would still apply.  */
27963 #ifdef __cplusplus
27964 extern "C"
27965 #endif
27966 char getmntent ();
27967 int
27968 main ()
27969 {
27970 return getmntent ();
27971   ;
27972   return 0;
27973 }
27974 _ACEOF
27975 for ac_lib in '' sun seq gen; do
27976   if test -z "$ac_lib"; then
27977     ac_res="none required"
27978   else
27979     ac_res=-l$ac_lib
27980     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27981   fi
27982   rm -f conftest.$ac_objext conftest$ac_exeext
27983 if { (ac_try="$ac_link"
27984 case "(($ac_try" in
27985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986   *) ac_try_echo=$ac_try;;
27987 esac
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989   (eval "$ac_link") 2>conftest.er1
27990   ac_status=$?
27991   grep -v '^ *+' conftest.er1 >conftest.err
27992   rm -f conftest.er1
27993   cat conftest.err >&5
27994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995   (exit $ac_status); } && {
27996          test -z "$ac_c_werror_flag" ||
27997          test ! -s conftest.err
27998        } && test -s conftest$ac_exeext &&
27999        $as_test_x conftest$ac_exeext; then
28000   ac_cv_search_getmntent=$ac_res
28001 else
28002   echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28004
28005
28006 fi
28007
28008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28009       conftest$ac_exeext
28010   if test "${ac_cv_search_getmntent+set}" = set; then
28011   break
28012 fi
28013 done
28014 if test "${ac_cv_search_getmntent+set}" = set; then
28015   :
28016 else
28017   ac_cv_search_getmntent=no
28018 fi
28019 rm conftest.$ac_ext
28020 LIBS=$ac_func_search_save_LIBS
28021 fi
28022 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28023 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28024 ac_res=$ac_cv_search_getmntent
28025 if test "$ac_res" != no; then
28026   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28027   ac_cv_func_getmntent=yes
28028
28029 cat >>confdefs.h <<\_ACEOF
28030 #define HAVE_GETMNTENT 1
28031 _ACEOF
28032
28033 else
28034   ac_cv_func_getmntent=no
28035 fi
28036
28037
28038 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28039 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28040 if test "${ac_cv_func_closedir_void+set}" = set; then
28041   echo $ECHO_N "(cached) $ECHO_C" >&6
28042 else
28043   if test "$cross_compiling" = yes; then
28044   ac_cv_func_closedir_void=yes
28045 else
28046   cat >conftest.$ac_ext <<_ACEOF
28047 /* confdefs.h.  */
28048 _ACEOF
28049 cat confdefs.h >>conftest.$ac_ext
28050 cat >>conftest.$ac_ext <<_ACEOF
28051 /* end confdefs.h.  */
28052 $ac_includes_default
28053 #include <$ac_header_dirent>
28054 #ifndef __cplusplus
28055 int closedir ();
28056 #endif
28057
28058 int
28059 main ()
28060 {
28061 return closedir (opendir (".")) != 0;
28062   ;
28063   return 0;
28064 }
28065 _ACEOF
28066 rm -f conftest$ac_exeext
28067 if { (ac_try="$ac_link"
28068 case "(($ac_try" in
28069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28070   *) ac_try_echo=$ac_try;;
28071 esac
28072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28073   (eval "$ac_link") 2>&5
28074   ac_status=$?
28075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28077   { (case "(($ac_try" in
28078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079   *) ac_try_echo=$ac_try;;
28080 esac
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082   (eval "$ac_try") 2>&5
28083   ac_status=$?
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); }; }; then
28086   ac_cv_func_closedir_void=no
28087 else
28088   echo "$as_me: program exited with status $ac_status" >&5
28089 echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28091
28092 ( exit $ac_status )
28093 ac_cv_func_closedir_void=yes
28094 fi
28095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28096 fi
28097
28098
28099 fi
28100 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28101 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28102 if test $ac_cv_func_closedir_void = yes; then
28103
28104 cat >>confdefs.h <<\_ACEOF
28105 #define CLOSEDIR_VOID 1
28106 _ACEOF
28107
28108 fi
28109
28110 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28111 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28112 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28113   echo $ECHO_N "(cached) $ECHO_C" >&6
28114 else
28115   if test "$cross_compiling" = yes; then
28116   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28117 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28118    { (exit 1); exit 1; }; }
28119 else
28120   cat >conftest.$ac_ext <<_ACEOF
28121 /* confdefs.h.  */
28122 _ACEOF
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h.  */
28126 $ac_includes_default
28127 int
28128 main ()
28129 {
28130 /* If this system has a BSD-style setpgrp which takes arguments,
28131   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28132   exit successfully. */
28133   return setpgrp (1,1) != -1;
28134   ;
28135   return 0;
28136 }
28137 _ACEOF
28138 rm -f conftest$ac_exeext
28139 if { (ac_try="$ac_link"
28140 case "(($ac_try" in
28141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28142   *) ac_try_echo=$ac_try;;
28143 esac
28144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28145   (eval "$ac_link") 2>&5
28146   ac_status=$?
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28149   { (case "(($ac_try" in
28150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28151   *) ac_try_echo=$ac_try;;
28152 esac
28153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28154   (eval "$ac_try") 2>&5
28155   ac_status=$?
28156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157   (exit $ac_status); }; }; then
28158   ac_cv_func_setpgrp_void=no
28159 else
28160   echo "$as_me: program exited with status $ac_status" >&5
28161 echo "$as_me: failed program was:" >&5
28162 sed 's/^/| /' conftest.$ac_ext >&5
28163
28164 ( exit $ac_status )
28165 ac_cv_func_setpgrp_void=yes
28166 fi
28167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28168 fi
28169
28170
28171 fi
28172 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28173 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
28174 if test $ac_cv_func_setpgrp_void = yes; then
28175
28176 cat >>confdefs.h <<\_ACEOF
28177 #define SETPGRP_VOID 1
28178 _ACEOF
28179
28180 fi
28181                       # AC_FUNC_FNMATCH    dnl use local version
28182
28183
28184 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28185 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
28186 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28187   echo $ECHO_N "(cached) $ECHO_C" >&6
28188 else
28189   ac_check_lib_save_LIBS=$LIBS
28190 LIBS="-lintl  $LIBS"
28191 cat >conftest.$ac_ext <<_ACEOF
28192 /* confdefs.h.  */
28193 _ACEOF
28194 cat confdefs.h >>conftest.$ac_ext
28195 cat >>conftest.$ac_ext <<_ACEOF
28196 /* end confdefs.h.  */
28197
28198 /* Override any GCC internal prototype to avoid an error.
28199    Use char because int might match the return type of a GCC
28200    builtin and then its argument prototype would still apply.  */
28201 #ifdef __cplusplus
28202 extern "C"
28203 #endif
28204 char gettext ();
28205 int
28206 main ()
28207 {
28208 return gettext ();
28209   ;
28210   return 0;
28211 }
28212 _ACEOF
28213 rm -f conftest.$ac_objext conftest$ac_exeext
28214 if { (ac_try="$ac_link"
28215 case "(($ac_try" in
28216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217   *) ac_try_echo=$ac_try;;
28218 esac
28219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220   (eval "$ac_link") 2>conftest.er1
28221   ac_status=$?
28222   grep -v '^ *+' conftest.er1 >conftest.err
28223   rm -f conftest.er1
28224   cat conftest.err >&5
28225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); } && {
28227          test -z "$ac_c_werror_flag" ||
28228          test ! -s conftest.err
28229        } && test -s conftest$ac_exeext &&
28230        $as_test_x conftest$ac_exeext; then
28231   ac_cv_lib_intl_gettext=yes
28232 else
28233   echo "$as_me: failed program was:" >&5
28234 sed 's/^/| /' conftest.$ac_ext >&5
28235
28236         ac_cv_lib_intl_gettext=no
28237 fi
28238
28239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28240       conftest$ac_exeext conftest.$ac_ext
28241 LIBS=$ac_check_lib_save_LIBS
28242 fi
28243 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28244 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
28245 if test $ac_cv_lib_intl_gettext = yes; then
28246   LIBS="$LIBS -lintl"
28247 fi
28248
28249
28250
28251
28252 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28253 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
28254 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28255   echo $ECHO_N "(cached) $ECHO_C" >&6
28256 else
28257   ac_check_lib_save_LIBS=$LIBS
28258 LIBS="-lsun  $LIBS"
28259 cat >conftest.$ac_ext <<_ACEOF
28260 /* confdefs.h.  */
28261 _ACEOF
28262 cat confdefs.h >>conftest.$ac_ext
28263 cat >>conftest.$ac_ext <<_ACEOF
28264 /* end confdefs.h.  */
28265
28266 /* Override any GCC internal prototype to avoid an error.
28267    Use char because int might match the return type of a GCC
28268    builtin and then its argument prototype would still apply.  */
28269 #ifdef __cplusplus
28270 extern "C"
28271 #endif
28272 char getpwnam ();
28273 int
28274 main ()
28275 {
28276 return getpwnam ();
28277   ;
28278   return 0;
28279 }
28280 _ACEOF
28281 rm -f conftest.$ac_objext conftest$ac_exeext
28282 if { (ac_try="$ac_link"
28283 case "(($ac_try" in
28284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285   *) ac_try_echo=$ac_try;;
28286 esac
28287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28288   (eval "$ac_link") 2>conftest.er1
28289   ac_status=$?
28290   grep -v '^ *+' conftest.er1 >conftest.err
28291   rm -f conftest.er1
28292   cat conftest.err >&5
28293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294   (exit $ac_status); } && {
28295          test -z "$ac_c_werror_flag" ||
28296          test ! -s conftest.err
28297        } && test -s conftest$ac_exeext &&
28298        $as_test_x conftest$ac_exeext; then
28299   ac_cv_lib_sun_getpwnam=yes
28300 else
28301   echo "$as_me: failed program was:" >&5
28302 sed 's/^/| /' conftest.$ac_ext >&5
28303
28304         ac_cv_lib_sun_getpwnam=no
28305 fi
28306
28307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28308       conftest$ac_exeext conftest.$ac_ext
28309 LIBS=$ac_check_lib_save_LIBS
28310 fi
28311 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28312 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
28313 if test $ac_cv_lib_sun_getpwnam = yes; then
28314   cat >>confdefs.h <<_ACEOF
28315 #define HAVE_LIBSUN 1
28316 _ACEOF
28317
28318   LIBS="-lsun $LIBS"
28319
28320 fi
28321
28322
28323
28324 for ac_header in zlib.h
28325 do
28326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28328   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28331   echo $ECHO_N "(cached) $ECHO_C" >&6
28332 fi
28333 ac_res=`eval echo '${'$as_ac_Header'}'`
28334                { echo "$as_me:$LINENO: result: $ac_res" >&5
28335 echo "${ECHO_T}$ac_res" >&6; }
28336 else
28337   # Is the header compilable?
28338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28340 cat >conftest.$ac_ext <<_ACEOF
28341 /* confdefs.h.  */
28342 _ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h.  */
28346 $ac_includes_default
28347 #include <$ac_header>
28348 _ACEOF
28349 rm -f conftest.$ac_objext
28350 if { (ac_try="$ac_compile"
28351 case "(($ac_try" in
28352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353   *) ac_try_echo=$ac_try;;
28354 esac
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356   (eval "$ac_compile") 2>conftest.er1
28357   ac_status=$?
28358   grep -v '^ *+' conftest.er1 >conftest.err
28359   rm -f conftest.er1
28360   cat conftest.err >&5
28361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362   (exit $ac_status); } && {
28363          test -z "$ac_c_werror_flag" ||
28364          test ! -s conftest.err
28365        } && test -s conftest.$ac_objext; then
28366   ac_header_compiler=yes
28367 else
28368   echo "$as_me: failed program was:" >&5
28369 sed 's/^/| /' conftest.$ac_ext >&5
28370
28371         ac_header_compiler=no
28372 fi
28373
28374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28376 echo "${ECHO_T}$ac_header_compiler" >&6; }
28377
28378 # Is the header present?
28379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28381 cat >conftest.$ac_ext <<_ACEOF
28382 /* confdefs.h.  */
28383 _ACEOF
28384 cat confdefs.h >>conftest.$ac_ext
28385 cat >>conftest.$ac_ext <<_ACEOF
28386 /* end confdefs.h.  */
28387 #include <$ac_header>
28388 _ACEOF
28389 if { (ac_try="$ac_cpp conftest.$ac_ext"
28390 case "(($ac_try" in
28391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392   *) ac_try_echo=$ac_try;;
28393 esac
28394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28396   ac_status=$?
28397   grep -v '^ *+' conftest.er1 >conftest.err
28398   rm -f conftest.er1
28399   cat conftest.err >&5
28400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401   (exit $ac_status); } >/dev/null && {
28402          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28403          test ! -s conftest.err
28404        }; then
28405   ac_header_preproc=yes
28406 else
28407   echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.$ac_ext >&5
28409
28410   ac_header_preproc=no
28411 fi
28412
28413 rm -f conftest.err conftest.$ac_ext
28414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28415 echo "${ECHO_T}$ac_header_preproc" >&6; }
28416
28417 # So?  What about this header?
28418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28419   yes:no: )
28420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28424     ac_header_preproc=yes
28425     ;;
28426   no:yes:* )
28427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28439
28440     ;;
28441 esac
28442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28445   echo $ECHO_N "(cached) $ECHO_C" >&6
28446 else
28447   eval "$as_ac_Header=\$ac_header_preproc"
28448 fi
28449 ac_res=`eval echo '${'$as_ac_Header'}'`
28450                { echo "$as_me:$LINENO: result: $ac_res" >&5
28451 echo "${ECHO_T}$ac_res" >&6; }
28452
28453 fi
28454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28455   cat >>confdefs.h <<_ACEOF
28456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28457 _ACEOF
28458
28459 fi
28460
28461 done
28462
28463 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28464 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28465 if test "${ac_cv_lib_z_deflate+set}" = set; then
28466   echo $ECHO_N "(cached) $ECHO_C" >&6
28467 else
28468   ac_check_lib_save_LIBS=$LIBS
28469 LIBS="-lz  $LIBS"
28470 cat >conftest.$ac_ext <<_ACEOF
28471 /* confdefs.h.  */
28472 _ACEOF
28473 cat confdefs.h >>conftest.$ac_ext
28474 cat >>conftest.$ac_ext <<_ACEOF
28475 /* end confdefs.h.  */
28476
28477 /* Override any GCC internal prototype to avoid an error.
28478    Use char because int might match the return type of a GCC
28479    builtin and then its argument prototype would still apply.  */
28480 #ifdef __cplusplus
28481 extern "C"
28482 #endif
28483 char deflate ();
28484 int
28485 main ()
28486 {
28487 return deflate ();
28488   ;
28489   return 0;
28490 }
28491 _ACEOF
28492 rm -f conftest.$ac_objext conftest$ac_exeext
28493 if { (ac_try="$ac_link"
28494 case "(($ac_try" in
28495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496   *) ac_try_echo=$ac_try;;
28497 esac
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499   (eval "$ac_link") 2>conftest.er1
28500   ac_status=$?
28501   grep -v '^ *+' conftest.er1 >conftest.err
28502   rm -f conftest.er1
28503   cat conftest.err >&5
28504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505   (exit $ac_status); } && {
28506          test -z "$ac_c_werror_flag" ||
28507          test ! -s conftest.err
28508        } && test -s conftest$ac_exeext &&
28509        $as_test_x conftest$ac_exeext; then
28510   ac_cv_lib_z_deflate=yes
28511 else
28512   echo "$as_me: failed program was:" >&5
28513 sed 's/^/| /' conftest.$ac_ext >&5
28514
28515         ac_cv_lib_z_deflate=no
28516 fi
28517
28518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28519       conftest$ac_exeext conftest.$ac_ext
28520 LIBS=$ac_check_lib_save_LIBS
28521 fi
28522 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28523 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28524 if test $ac_cv_lib_z_deflate = yes; then
28525   FDLIBS="-lz"
28526 fi
28527
28528 have_zlib=no
28529 if test x$FDLIBS = x-lz; then
28530   cat >>confdefs.h <<\_ACEOF
28531 #define HAVE_LIBZ 1
28532 _ACEOF
28533
28534   have_zlib=yes
28535 fi
28536
28537 #
28538 # Check for ACL libraries
28539 #
28540 have_acl=no
28541 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28542   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28543 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
28544 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28545   echo $ECHO_N "(cached) $ECHO_C" >&6
28546 fi
28547 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28548 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
28549 else
28550   # Is the header compilable?
28551 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28552 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
28553 cat >conftest.$ac_ext <<_ACEOF
28554 /* confdefs.h.  */
28555 _ACEOF
28556 cat confdefs.h >>conftest.$ac_ext
28557 cat >>conftest.$ac_ext <<_ACEOF
28558 /* end confdefs.h.  */
28559 $ac_includes_default
28560 #include <sys/acl.h>
28561 _ACEOF
28562 rm -f conftest.$ac_objext
28563 if { (ac_try="$ac_compile"
28564 case "(($ac_try" in
28565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566   *) ac_try_echo=$ac_try;;
28567 esac
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569   (eval "$ac_compile") 2>conftest.er1
28570   ac_status=$?
28571   grep -v '^ *+' conftest.er1 >conftest.err
28572   rm -f conftest.er1
28573   cat conftest.err >&5
28574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575   (exit $ac_status); } && {
28576          test -z "$ac_c_werror_flag" ||
28577          test ! -s conftest.err
28578        } && test -s conftest.$ac_objext; then
28579   ac_header_compiler=yes
28580 else
28581   echo "$as_me: failed program was:" >&5
28582 sed 's/^/| /' conftest.$ac_ext >&5
28583
28584         ac_header_compiler=no
28585 fi
28586
28587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28589 echo "${ECHO_T}$ac_header_compiler" >&6; }
28590
28591 # Is the header present?
28592 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
28593 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
28594 cat >conftest.$ac_ext <<_ACEOF
28595 /* confdefs.h.  */
28596 _ACEOF
28597 cat confdefs.h >>conftest.$ac_ext
28598 cat >>conftest.$ac_ext <<_ACEOF
28599 /* end confdefs.h.  */
28600 #include <sys/acl.h>
28601 _ACEOF
28602 if { (ac_try="$ac_cpp conftest.$ac_ext"
28603 case "(($ac_try" in
28604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28605   *) ac_try_echo=$ac_try;;
28606 esac
28607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28609   ac_status=$?
28610   grep -v '^ *+' conftest.er1 >conftest.err
28611   rm -f conftest.er1
28612   cat conftest.err >&5
28613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614   (exit $ac_status); } >/dev/null && {
28615          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28616          test ! -s conftest.err
28617        }; then
28618   ac_header_preproc=yes
28619 else
28620   echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28622
28623   ac_header_preproc=no
28624 fi
28625
28626 rm -f conftest.err conftest.$ac_ext
28627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28628 echo "${ECHO_T}$ac_header_preproc" >&6; }
28629
28630 # So?  What about this header?
28631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28632   yes:no: )
28633     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28634 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28635     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
28636 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
28637     ac_header_preproc=yes
28638     ;;
28639   no:yes:* )
28640     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
28641 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
28642     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
28643 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
28644     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
28645 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
28646     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
28647 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28648     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
28649 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
28650     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
28651 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
28652
28653     ;;
28654 esac
28655 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28656 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
28657 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28658   echo $ECHO_N "(cached) $ECHO_C" >&6
28659 else
28660   ac_cv_header_sys_acl_h=$ac_header_preproc
28661 fi
28662 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28663 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
28664
28665 fi
28666
28667
28668 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
28669 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
28670 if test "${ac_cv_func_acl_get_file+set}" = set; then
28671   echo $ECHO_N "(cached) $ECHO_C" >&6
28672 else
28673   cat >conftest.$ac_ext <<_ACEOF
28674 /* confdefs.h.  */
28675 _ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h.  */
28679 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
28680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28681 #define acl_get_file innocuous_acl_get_file
28682
28683 /* System header to define __stub macros and hopefully few prototypes,
28684     which can conflict with char acl_get_file (); below.
28685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28686     <limits.h> exists even on freestanding compilers.  */
28687
28688 #ifdef __STDC__
28689 # include <limits.h>
28690 #else
28691 # include <assert.h>
28692 #endif
28693
28694 #undef acl_get_file
28695
28696 /* Override any GCC internal prototype to avoid an error.
28697    Use char because int might match the return type of a GCC
28698    builtin and then its argument prototype would still apply.  */
28699 #ifdef __cplusplus
28700 extern "C"
28701 #endif
28702 char acl_get_file ();
28703 /* The GNU C library defines this for functions which it implements
28704     to always fail with ENOSYS.  Some functions are actually named
28705     something starting with __ and the normal name is an alias.  */
28706 #if defined __stub_acl_get_file || defined __stub___acl_get_file
28707 choke me
28708 #endif
28709
28710 int
28711 main ()
28712 {
28713 return acl_get_file ();
28714   ;
28715   return 0;
28716 }
28717 _ACEOF
28718 rm -f conftest.$ac_objext conftest$ac_exeext
28719 if { (ac_try="$ac_link"
28720 case "(($ac_try" in
28721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28722   *) ac_try_echo=$ac_try;;
28723 esac
28724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28725   (eval "$ac_link") 2>conftest.er1
28726   ac_status=$?
28727   grep -v '^ *+' conftest.er1 >conftest.err
28728   rm -f conftest.er1
28729   cat conftest.err >&5
28730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731   (exit $ac_status); } && {
28732          test -z "$ac_c_werror_flag" ||
28733          test ! -s conftest.err
28734        } && test -s conftest$ac_exeext &&
28735        $as_test_x conftest$ac_exeext; then
28736   ac_cv_func_acl_get_file=yes
28737 else
28738   echo "$as_me: failed program was:" >&5
28739 sed 's/^/| /' conftest.$ac_ext >&5
28740
28741         ac_cv_func_acl_get_file=no
28742 fi
28743
28744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28745       conftest$ac_exeext conftest.$ac_ext
28746 fi
28747 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
28748 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
28749 if test $ac_cv_func_acl_get_file = yes; then
28750   have_acl=yes
28751 else
28752   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
28753 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
28754 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
28755   echo $ECHO_N "(cached) $ECHO_C" >&6
28756 else
28757   ac_check_lib_save_LIBS=$LIBS
28758 LIBS="-lacl  $LIBS"
28759 cat >conftest.$ac_ext <<_ACEOF
28760 /* confdefs.h.  */
28761 _ACEOF
28762 cat confdefs.h >>conftest.$ac_ext
28763 cat >>conftest.$ac_ext <<_ACEOF
28764 /* end confdefs.h.  */
28765
28766 /* Override any GCC internal prototype to avoid an error.
28767    Use char because int might match the return type of a GCC
28768    builtin and then its argument prototype would still apply.  */
28769 #ifdef __cplusplus
28770 extern "C"
28771 #endif
28772 char acl_get_file ();
28773 int
28774 main ()
28775 {
28776 return acl_get_file ();
28777   ;
28778   return 0;
28779 }
28780 _ACEOF
28781 rm -f conftest.$ac_objext conftest$ac_exeext
28782 if { (ac_try="$ac_link"
28783 case "(($ac_try" in
28784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785   *) ac_try_echo=$ac_try;;
28786 esac
28787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28788   (eval "$ac_link") 2>conftest.er1
28789   ac_status=$?
28790   grep -v '^ *+' conftest.er1 >conftest.err
28791   rm -f conftest.er1
28792   cat conftest.err >&5
28793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794   (exit $ac_status); } && {
28795          test -z "$ac_c_werror_flag" ||
28796          test ! -s conftest.err
28797        } && test -s conftest$ac_exeext &&
28798        $as_test_x conftest$ac_exeext; then
28799   ac_cv_lib_acl_acl_get_file=yes
28800 else
28801   echo "$as_me: failed program was:" >&5
28802 sed 's/^/| /' conftest.$ac_ext >&5
28803
28804         ac_cv_lib_acl_acl_get_file=no
28805 fi
28806
28807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28808       conftest$ac_exeext conftest.$ac_ext
28809 LIBS=$ac_check_lib_save_LIBS
28810 fi
28811 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
28812 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
28813 if test $ac_cv_lib_acl_acl_get_file = yes; then
28814   have_acl=yes; FDLIBS="-lacl $FDLIBS"
28815 else
28816   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
28817 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
28818 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
28819   echo $ECHO_N "(cached) $ECHO_C" >&6
28820 else
28821   ac_check_lib_save_LIBS=$LIBS
28822 LIBS="-lsec  $LIBS"
28823 cat >conftest.$ac_ext <<_ACEOF
28824 /* confdefs.h.  */
28825 _ACEOF
28826 cat confdefs.h >>conftest.$ac_ext
28827 cat >>conftest.$ac_ext <<_ACEOF
28828 /* end confdefs.h.  */
28829
28830 /* Override any GCC internal prototype to avoid an error.
28831    Use char because int might match the return type of a GCC
28832    builtin and then its argument prototype would still apply.  */
28833 #ifdef __cplusplus
28834 extern "C"
28835 #endif
28836 char acltotext ();
28837 int
28838 main ()
28839 {
28840 return acltotext ();
28841   ;
28842   return 0;
28843 }
28844 _ACEOF
28845 rm -f conftest.$ac_objext conftest$ac_exeext
28846 if { (ac_try="$ac_link"
28847 case "(($ac_try" in
28848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849   *) ac_try_echo=$ac_try;;
28850 esac
28851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28852   (eval "$ac_link") 2>conftest.er1
28853   ac_status=$?
28854   grep -v '^ *+' conftest.er1 >conftest.err
28855   rm -f conftest.er1
28856   cat conftest.err >&5
28857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858   (exit $ac_status); } && {
28859          test -z "$ac_c_werror_flag" ||
28860          test ! -s conftest.err
28861        } && test -s conftest$ac_exeext &&
28862        $as_test_x conftest$ac_exeext; then
28863   ac_cv_lib_sec_acltotext=yes
28864 else
28865   echo "$as_me: failed program was:" >&5
28866 sed 's/^/| /' conftest.$ac_ext >&5
28867
28868         ac_cv_lib_sec_acltotext=no
28869 fi
28870
28871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28872       conftest$ac_exeext conftest.$ac_ext
28873 LIBS=$ac_check_lib_save_LIBS
28874 fi
28875 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
28876 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
28877 if test $ac_cv_lib_sec_acltotext = yes; then
28878   have_acl=yes; FDLIBS="-lsec $FDLIBS"
28879 fi
28880
28881
28882 fi
28883
28884
28885 fi
28886
28887 if test $have_acl = yes; then
28888    cat >>confdefs.h <<\_ACEOF
28889 #define HAVE_ACL 1
28890 _ACEOF
28891
28892 fi
28893
28894 PTHREAD_LIB=""
28895 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
28896 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
28897 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
28898   echo $ECHO_N "(cached) $ECHO_C" >&6
28899 else
28900   ac_check_lib_save_LIBS=$LIBS
28901 LIBS="-lpthread  $LIBS"
28902 cat >conftest.$ac_ext <<_ACEOF
28903 /* confdefs.h.  */
28904 _ACEOF
28905 cat confdefs.h >>conftest.$ac_ext
28906 cat >>conftest.$ac_ext <<_ACEOF
28907 /* end confdefs.h.  */
28908
28909 /* Override any GCC internal prototype to avoid an error.
28910    Use char because int might match the return type of a GCC
28911    builtin and then its argument prototype would still apply.  */
28912 #ifdef __cplusplus
28913 extern "C"
28914 #endif
28915 char pthread_create ();
28916 int
28917 main ()
28918 {
28919 return pthread_create ();
28920   ;
28921   return 0;
28922 }
28923 _ACEOF
28924 rm -f conftest.$ac_objext conftest$ac_exeext
28925 if { (ac_try="$ac_link"
28926 case "(($ac_try" in
28927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928   *) ac_try_echo=$ac_try;;
28929 esac
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931   (eval "$ac_link") 2>conftest.er1
28932   ac_status=$?
28933   grep -v '^ *+' conftest.er1 >conftest.err
28934   rm -f conftest.er1
28935   cat conftest.err >&5
28936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937   (exit $ac_status); } && {
28938          test -z "$ac_c_werror_flag" ||
28939          test ! -s conftest.err
28940        } && test -s conftest$ac_exeext &&
28941        $as_test_x conftest$ac_exeext; then
28942   ac_cv_lib_pthread_pthread_create=yes
28943 else
28944   echo "$as_me: failed program was:" >&5
28945 sed 's/^/| /' conftest.$ac_ext >&5
28946
28947         ac_cv_lib_pthread_pthread_create=no
28948 fi
28949
28950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28951       conftest$ac_exeext conftest.$ac_ext
28952 LIBS=$ac_check_lib_save_LIBS
28953 fi
28954 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
28955 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
28956 if test $ac_cv_lib_pthread_pthread_create = yes; then
28957   PTHREAD_LIB="-lpthread"
28958 else
28959   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
28960 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
28961 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
28962   echo $ECHO_N "(cached) $ECHO_C" >&6
28963 else
28964   ac_check_lib_save_LIBS=$LIBS
28965 LIBS="-lpthreads  $LIBS"
28966 cat >conftest.$ac_ext <<_ACEOF
28967 /* confdefs.h.  */
28968 _ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h.  */
28972
28973 /* Override any GCC internal prototype to avoid an error.
28974    Use char because int might match the return type of a GCC
28975    builtin and then its argument prototype would still apply.  */
28976 #ifdef __cplusplus
28977 extern "C"
28978 #endif
28979 char pthread_create ();
28980 int
28981 main ()
28982 {
28983 return pthread_create ();
28984   ;
28985   return 0;
28986 }
28987 _ACEOF
28988 rm -f conftest.$ac_objext conftest$ac_exeext
28989 if { (ac_try="$ac_link"
28990 case "(($ac_try" in
28991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992   *) ac_try_echo=$ac_try;;
28993 esac
28994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995   (eval "$ac_link") 2>conftest.er1
28996   ac_status=$?
28997   grep -v '^ *+' conftest.er1 >conftest.err
28998   rm -f conftest.er1
28999   cat conftest.err >&5
29000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001   (exit $ac_status); } && {
29002          test -z "$ac_c_werror_flag" ||
29003          test ! -s conftest.err
29004        } && test -s conftest$ac_exeext &&
29005        $as_test_x conftest$ac_exeext; then
29006   ac_cv_lib_pthreads_pthread_create=yes
29007 else
29008   echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29010
29011         ac_cv_lib_pthreads_pthread_create=no
29012 fi
29013
29014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29015       conftest$ac_exeext conftest.$ac_ext
29016 LIBS=$ac_check_lib_save_LIBS
29017 fi
29018 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29019 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29020 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29021   PTHREAD_LIB="-lpthreads"
29022 else
29023   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29024 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29025 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29026   echo $ECHO_N "(cached) $ECHO_C" >&6
29027 else
29028   ac_check_lib_save_LIBS=$LIBS
29029 LIBS="-lc_r  $LIBS"
29030 cat >conftest.$ac_ext <<_ACEOF
29031 /* confdefs.h.  */
29032 _ACEOF
29033 cat confdefs.h >>conftest.$ac_ext
29034 cat >>conftest.$ac_ext <<_ACEOF
29035 /* end confdefs.h.  */
29036
29037 /* Override any GCC internal prototype to avoid an error.
29038    Use char because int might match the return type of a GCC
29039    builtin and then its argument prototype would still apply.  */
29040 #ifdef __cplusplus
29041 extern "C"
29042 #endif
29043 char pthread_create ();
29044 int
29045 main ()
29046 {
29047 return pthread_create ();
29048   ;
29049   return 0;
29050 }
29051 _ACEOF
29052 rm -f conftest.$ac_objext conftest$ac_exeext
29053 if { (ac_try="$ac_link"
29054 case "(($ac_try" in
29055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29056   *) ac_try_echo=$ac_try;;
29057 esac
29058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29059   (eval "$ac_link") 2>conftest.er1
29060   ac_status=$?
29061   grep -v '^ *+' conftest.er1 >conftest.err
29062   rm -f conftest.er1
29063   cat conftest.err >&5
29064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065   (exit $ac_status); } && {
29066          test -z "$ac_c_werror_flag" ||
29067          test ! -s conftest.err
29068        } && test -s conftest$ac_exeext &&
29069        $as_test_x conftest$ac_exeext; then
29070   ac_cv_lib_c_r_pthread_create=yes
29071 else
29072   echo "$as_me: failed program was:" >&5
29073 sed 's/^/| /' conftest.$ac_ext >&5
29074
29075         ac_cv_lib_c_r_pthread_create=no
29076 fi
29077
29078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29079       conftest$ac_exeext conftest.$ac_ext
29080 LIBS=$ac_check_lib_save_LIBS
29081 fi
29082 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29083 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29084 if test $ac_cv_lib_c_r_pthread_create = yes; then
29085   PTHREAD_LIB="-lc_r"
29086 else
29087   { echo "$as_me:$LINENO: checking for pthread_create" >&5
29088 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29089 if test "${ac_cv_func_pthread_create+set}" = set; then
29090   echo $ECHO_N "(cached) $ECHO_C" >&6
29091 else
29092   cat >conftest.$ac_ext <<_ACEOF
29093 /* confdefs.h.  */
29094 _ACEOF
29095 cat confdefs.h >>conftest.$ac_ext
29096 cat >>conftest.$ac_ext <<_ACEOF
29097 /* end confdefs.h.  */
29098 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29100 #define pthread_create innocuous_pthread_create
29101
29102 /* System header to define __stub macros and hopefully few prototypes,
29103     which can conflict with char pthread_create (); below.
29104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29105     <limits.h> exists even on freestanding compilers.  */
29106
29107 #ifdef __STDC__
29108 # include <limits.h>
29109 #else
29110 # include <assert.h>
29111 #endif
29112
29113 #undef pthread_create
29114
29115 /* Override any GCC internal prototype to avoid an error.
29116    Use char because int might match the return type of a GCC
29117    builtin and then its argument prototype would still apply.  */
29118 #ifdef __cplusplus
29119 extern "C"
29120 #endif
29121 char pthread_create ();
29122 /* The GNU C library defines this for functions which it implements
29123     to always fail with ENOSYS.  Some functions are actually named
29124     something starting with __ and the normal name is an alias.  */
29125 #if defined __stub_pthread_create || defined __stub___pthread_create
29126 choke me
29127 #endif
29128
29129 int
29130 main ()
29131 {
29132 return pthread_create ();
29133   ;
29134   return 0;
29135 }
29136 _ACEOF
29137 rm -f conftest.$ac_objext conftest$ac_exeext
29138 if { (ac_try="$ac_link"
29139 case "(($ac_try" in
29140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29141   *) ac_try_echo=$ac_try;;
29142 esac
29143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29144   (eval "$ac_link") 2>conftest.er1
29145   ac_status=$?
29146   grep -v '^ *+' conftest.er1 >conftest.err
29147   rm -f conftest.er1
29148   cat conftest.err >&5
29149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150   (exit $ac_status); } && {
29151          test -z "$ac_c_werror_flag" ||
29152          test ! -s conftest.err
29153        } && test -s conftest$ac_exeext &&
29154        $as_test_x conftest$ac_exeext; then
29155   ac_cv_func_pthread_create=yes
29156 else
29157   echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29159
29160         ac_cv_func_pthread_create=no
29161 fi
29162
29163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29164       conftest$ac_exeext conftest.$ac_ext
29165 fi
29166 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29167 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
29168
29169
29170 fi
29171
29172
29173 fi
29174
29175
29176 fi
29177
29178
29179
29180 cat >>confdefs.h <<\_ACEOF
29181 #define FDLIBS 1
29182 _ACEOF
29183
29184
29185
29186 CFLAGS=${CFLAGS--O}
29187
29188 if test x$have_gcc = xyes ; then
29189    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29190    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29191 fi
29192 LDFLAGS=${LDFLAGS--O}
29193 DB_LIBS="${SQL_LFLAGS}"
29194 CPPFLAGS="$CPPFLAGS"
29195 CFLAGS="$CFLAGS"
29196
29197
29198
29199
29200
29201
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212 OBJLIST=
29213
29214
29215 lld="lld"
29216 llu="llu"
29217
29218 WCFLAGS=
29219 WLDFLAGS=
29220
29221 #
29222 # Finally we set appropriate distribution specific
29223 #  variables and defaults
29224 #
29225 # PFILES are platform specific files
29226 PFILES="platforms/Makefile"
29227 PSCMD="ps -e"
29228 WIN32=
29229 MACOSX=
29230 hostname=`uname -n | cut -d '.' -f 1`
29231 if test x${hostname} = x ; then
29232   hostname="localhost"
29233 fi
29234 case "$DISTNAME" in
29235 aix)
29236         DISTVER=`uname -r`
29237         PSCMD="ps -e -o pid,comm"
29238         PFILES="${PFILES} \
29239            platforms/aix/Makefile"
29240         TAPEDRIVE="/dev/rmt0.1"
29241   ;;
29242 alpha)
29243         DISTVER=`uname -r`
29244         PTHREAD_LIB="-lpthread -lexc"
29245         if test "${CC}" = "gcc" ; then
29246            lld="lld"
29247            llu="llu"
29248         else
29249            lld="ld"
29250            llu="lu"
29251         fi
29252         TAPEDRIVE="/dev/nrmt0"
29253   ;;
29254 bsdi)
29255         DISTVER=`uname -a |awk '{print $3}'`
29256         TAPEDRIVE="/dev/nrmt0"
29257         PTHREAD_LIB="-pthread"
29258         CFLAGS="${CFLAGS} -pthread"
29259         PSCMD="ps -ax -o pid,command"
29260         lld="qd"
29261         llu="qu"
29262         PFILES="${PFILES} \
29263             platforms/bsdi/Makefile \
29264             platforms/bsdi/bacula-fd \
29265             platforms/bsdi/bacula-sd \
29266             platforms/bsdi/bacula-dir"
29267         largefile_support="yes"
29268   ;;
29269 cygwin)
29270         DISTVER=`uname -a |awk '{print $3}'`
29271         TAPEDRIVE="/dev/nrst0"
29272         WIN32=win32
29273         WCFLAGS="-mwindows"
29274         WLDFLAGS="-mwindows"
29275   ;;
29276 darwin)
29277         DISTVER=`uname -r`
29278         TAPEDRIVE="/dev/nst0"
29279         PSCMD="ps -e -o pid,command"
29280         MACOSX=macosx
29281         PFILES="${PFILES} \
29282            platforms/darwin/Makefile"
29283   ;;
29284 debian)
29285 #       Make sure hostname is resolved
29286         ping -c 1 $hostname 2>&1 1>/dev/null
29287         if test ! $? = 0; then
29288            hostname="localhost"
29289         fi
29290         if `grep -q ubuntu /etc/apt/sources.list`; then
29291            DISTNAME="ubuntu"
29292         fi
29293         DISTVER=`cat /etc/debian_version`
29294         if test -f /etc/lsb-release ; then
29295            . /etc/lsb-release
29296            if test "x$DISTRIB_ID" != "x" ; then
29297               DISTNAME=$DISTRIB_ID
29298            fi
29299            if test "x$DISTRIB_RELEASE" != "x" ; then
29300               DISTVER=$DISTRIB_RELEASE
29301            fi
29302         fi
29303         if test "$DISTNAME" = "Ubuntu" ; then
29304            DISTNAME="ubuntu"
29305         fi
29306         TAPEDRIVE="/dev/nst0"
29307         PSCMD="ps -e -o pid,command"
29308         if test "$DISTNAME" = "ubuntu" ; then
29309            PFILES="${PFILES} \
29310               platforms/ubuntu/Makefile \
29311               platforms/ubuntu/bacula-fd \
29312               platforms/ubuntu/bacula-sd \
29313               platforms/ubuntu/bacula-dir"
29314         else
29315            PFILES="${PFILES} \
29316               platforms/debian/Makefile \
29317               platforms/debian/bacula-fd \
29318               platforms/debian/bacula-sd \
29319               platforms/debian/bacula-dir"
29320         fi
29321   ;;
29322 freebsd)
29323 #       Make sure hostname is resolved
29324         ping -c 1 $hostname 2>&1 1>/dev/null
29325         if test ! $? = 0; then
29326            hostname="localhost"
29327         fi
29328         if `grep -q ubuntu /etc/apt/sources.list`; then
29329            DISTNAME="ubuntu"
29330         fi
29331         DISTVER=`uname -a |awk '{print $3}'`
29332         VER=`echo $DISTVER | cut -c 1`
29333         if test x$VER = x4 ; then
29334            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29335            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29336         fi
29337         lld="qd"
29338         llu="qu"
29339         TAPEDRIVE="/dev/nrsa0"
29340         PSCMD="ps -ax -o pid,command"
29341         PFILES="${PFILES} \
29342             platforms/freebsd/Makefile \
29343             platforms/freebsd/bacula-fd \
29344             platforms/freebsd/bacula-sd \
29345             platforms/freebsd/bacula-dir"
29346         largefile_support="yes"
29347   ;;
29348 hpux)
29349         PSCMD="UNIX95=1; ps -e -o pid,comm"
29350         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29351         DISTVER=`uname -r`
29352         TAPEDRIVE="/dev/rmt/0hnb"
29353         PTHREAD_LIB="-lpthread"
29354         cat >>confdefs.h <<\_ACEOF
29355 #define _INCLUDE_LONGLONG 1
29356 _ACEOF
29357
29358   ;;
29359 irix)
29360         DISTVER=`uname -r`
29361         TAPEDRIVE="/dev/rmt/0cbn"
29362         PSCMD="ps -e -o pid,comm"
29363         PFILES="${PFILES} \
29364             platforms/irix/Makefile \
29365             platforms/irix/bacula-fd \
29366             platforms/irix/bacula-sd \
29367             platforms/irix/bacula-dir"
29368   ;;
29369 netbsd)
29370         DISTVER=`uname -a |awk '{print $3}'`
29371         lld="qd"
29372         llu="qu"
29373         TAPEDRIVE="/dev/nrst0"
29374         PSCMD="ps -ax -o pid,command"
29375         PTHREAD_LIB="-pthread"
29376         CFLAGS="${CFLAGS} -pthread"
29377   ;;
29378 openbsd)
29379         DISTVER=`uname -a |awk '{print $3}'`
29380         lld="qd"
29381         llu="qu"
29382         TAPEDRIVE="/dev/nrst0"
29383         PSCMD="ps -ax -o pid,command"
29384         PTHREAD_LIB="-pthread"
29385         CFLAGS="${CFLAGS} -pthread"
29386         PFILES="${PFILES} \
29387             platforms/openbsd/Makefile \
29388             platforms/openbsd/bacula-fd \
29389             platforms/openbsd/bacula-sd \
29390             platforms/openbsd/bacula-dir"
29391   ;;
29392 redhat)
29393 #       Make sure hostname is resolved
29394         ping -c 1 $hostname 2>&1 1>/dev/null
29395         if test ! $? = 0; then
29396            hostname="localhost"
29397         fi
29398         if `grep -q ubuntu /etc/apt/sources.list`; then
29399            DISTNAME="ubuntu"
29400         fi
29401         if test -f /etc/whitebox-release ; then
29402            f=/etc/whitebox-release
29403         else
29404            f=/etc/redhat-release
29405         fi
29406         if test `cat $f | grep release |\
29407                    cut -f 3 -d ' '`x = "Enterprise"x ; then
29408            DISTVER="Enterprise "`cat $f | grep release |\
29409                     cut -f 6 -d ' '`
29410         else
29411             DISTVER=`cat /etc/redhat-release | grep release |\
29412                      cut -f 5 -d ' '`
29413         fi
29414         TAPEDRIVE="/dev/nst0"
29415         PSCMD="ps -e -o pid,command"
29416         PFILES="${PFILES} \
29417             platforms/redhat/Makefile \
29418             platforms/redhat/bacula-fd \
29419             platforms/redhat/bacula-sd \
29420             platforms/redhat/bacula-dir \
29421             platforms/redhat/bacula.spec \
29422             "
29423   ;;
29424 mandrake)
29425 #       Make sure hostname is resolved
29426         ping -c 1 $hostname 2>&1 1>/dev/null
29427         if test ! $? = 0; then
29428            hostname="localhost"
29429         fi
29430         if `grep -q ubuntu /etc/apt/sources.list`; then
29431            DISTNAME="ubuntu"
29432         fi
29433         DISTVER=`cat /etc/mandrake-release | grep release |\
29434            cut -f 5 -d ' '`
29435         TAPEDRIVE="/dev/nst0"
29436         PSCMD="ps -e -o pid,command"
29437         PFILES="${PFILES} \
29438             platforms/mandrake/Makefile \
29439             platforms/mandrake/bacula-fd \
29440             platforms/mandrake/bacula-sd \
29441             platforms/mandrake/bacula-dir \
29442             platforms/mandrake/bacula.spec \
29443             "
29444   ;;
29445 gentoo)
29446 #       Make sure hostname is resolved
29447         ping -c 1 $hostname 2>&1 1>/dev/null
29448         if test ! $? = 0; then
29449            hostname="localhost"
29450         fi
29451         if `grep -q ubuntu /etc/apt/sources.list`; then
29452            DISTNAME="ubuntu"
29453         fi
29454         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29455         TAPEDRIVE="/dev/nst0"
29456         PSCMD="ps -e -o pid,command"
29457         PFILES="${PFILES} \
29458             platforms/gentoo/Makefile \
29459          platforms/gentoo/bacula-init \
29460             platforms/gentoo/bacula-fd \
29461             platforms/gentoo/bacula-sd \
29462             platforms/gentoo/bacula-dir"
29463   ;;
29464 slackware)
29465 #       Make sure hostname is resolved
29466         ping -c 1 $hostname 2>&1 1>/dev/null
29467         if test ! $? = 0; then
29468            hostname="localhost"
29469         fi
29470         if `grep -q ubuntu /etc/apt/sources.list`; then
29471            DISTNAME="ubuntu"
29472         fi
29473         DISTVER=`cat /etc/slackware-version`
29474         TAPEDRIVE="/dev/nst0"
29475         PSCMD="ps -e -o pid,command"
29476         PFILES="${PFILES} \
29477             platforms/slackware/Makefile \
29478             platforms/slackware/rc.bacula-fd \
29479             platforms/slackware/rc.bacula-sd \
29480             platforms/slackware/rc.bacula-dir\
29481             platforms/slackware/functions.bacula"
29482   ;;
29483 solaris)
29484         DISTVER=`uname -r`
29485         TAPEDRIVE="/dev/rmt/0cbn"
29486         PSCMD="ps -e -o pid,comm"
29487         PFILES="${PFILES} \
29488             platforms/solaris/Makefile \
29489             platforms/solaris/bacula-fd \
29490             platforms/solaris/bacula-sd \
29491             platforms/solaris/bacula-dir"
29492         if test x$DISTVER = x5.6 ; then
29493             cat >>confdefs.h <<\_ACEOF
29494 #define HAVE_OLD_SOCKOPT 1
29495 _ACEOF
29496
29497         fi
29498         LIBS="$LIBS -lresolv"
29499   ;;
29500 suse)
29501 #       Make sure hostname is resolved
29502         ping -c 1 $hostname 2>&1 1>/dev/null
29503         if test ! $? = 0; then
29504            hostname="localhost"
29505         fi
29506         if `grep -q ubuntu /etc/apt/sources.list`; then
29507            DISTNAME="ubuntu"
29508         fi
29509         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29510             cut -f 3 -d ' '`
29511         TAPEDRIVE="/dev/nst0"
29512         PSCMD="ps -e -o pid,command"
29513         PFILES="${PFILES} \
29514             platforms/suse/Makefile \
29515             platforms/suse/bacula-fd \
29516             platforms/suse/bacula-sd \
29517             platforms/suse/bacula-dir \
29518             platforms/suse/bacula \
29519             platforms/suse/bacula.spec"
29520   ;;
29521 suse5)
29522 #       Make sure hostname is resolved
29523         ping -c 1 $hostname 2>&1 1>/dev/null
29524         if test ! $? = 0; then
29525            hostname="localhost"
29526         fi
29527         if `grep -q ubuntu /etc/apt/sources.list`; then
29528            DISTNAME="ubuntu"
29529         fi
29530         DISTNAME=suse
29531         DISTVER=5.x
29532         TAPEDRIVE="/dev/nst0"
29533         PSCMD="ps -e -o pid,command"
29534         PFILES="${PFILES} \
29535             platforms/suse/Makefile \
29536             platforms/suse/bacula-fd \
29537             platforms/suse/bacula-sd \
29538             platforms/suse/bacula-dir"
29539   ;;
29540 unknown)
29541         DISTVER=unknown
29542         TAPEDRIVE="/dev/nst0"
29543   ;;
29544 *)
29545   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29546   ;;
29547 esac
29548
29549
29550
29551 LIBS="$PTHREAD_LIB $LIBS"
29552
29553 cat >>confdefs.h <<_ACEOF
29554 #define lld "$lld"
29555 _ACEOF
29556
29557 cat >>confdefs.h <<_ACEOF
29558 #define llu "$llu"
29559 _ACEOF
29560
29561
29562
29563
29564
29565
29566
29567
29568 MCOMMON=./autoconf/Make.common
29569
29570
29571 if test "x${subsysdir}" = "x${sbindir}" ; then
29572    echo " "
29573    echo " "
29574    echo "You have set both --sbindir and --with-subsys-dir"
29575    echo "  equal to: ${subsysdir} "
29576    echo "This is not permitted. Please reconfigure."
29577    echo " "
29578    echo "Aborting configuration ..."
29579    echo " "
29580    echo " "
29581    exit 1
29582 fi
29583
29584 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"
29585
29586 ac_config_commands="$ac_config_commands default"
29587
29588 cat >confcache <<\_ACEOF
29589 # This file is a shell script that caches the results of configure
29590 # tests run on this system so they can be shared between configure
29591 # scripts and configure runs, see configure's option --config-cache.
29592 # It is not useful on other systems.  If it contains results you don't
29593 # want to keep, you may remove or edit it.
29594 #
29595 # config.status only pays attention to the cache file if you give it
29596 # the --recheck option to rerun configure.
29597 #
29598 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29599 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29600 # following values.
29601
29602 _ACEOF
29603
29604 # The following way of writing the cache mishandles newlines in values,
29605 # but we know of no workaround that is simple, portable, and efficient.
29606 # So, we kill variables containing newlines.
29607 # Ultrix sh set writes to stderr and can't be redirected directly,
29608 # and sets the high bit in the cache file unless we assign to the vars.
29609 (
29610   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29611     eval ac_val=\$$ac_var
29612     case $ac_val in #(
29613     *${as_nl}*)
29614       case $ac_var in #(
29615       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29616 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29617       esac
29618       case $ac_var in #(
29619       _ | IFS | as_nl) ;; #(
29620       *) $as_unset $ac_var ;;
29621       esac ;;
29622     esac
29623   done
29624
29625   (set) 2>&1 |
29626     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29627     *${as_nl}ac_space=\ *)
29628       # `set' does not quote correctly, so add quotes (double-quote
29629       # substitution turns \\\\ into \\, and sed turns \\ into \).
29630       sed -n \
29631         "s/'/'\\\\''/g;
29632           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29633       ;; #(
29634     *)
29635       # `set' quotes correctly as required by POSIX, so do not add quotes.
29636       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29637       ;;
29638     esac |
29639     sort
29640 ) |
29641   sed '
29642      /^ac_cv_env_/b end
29643      t clear
29644      :clear
29645      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29646      t end
29647      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29648      :end' >>confcache
29649 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29650   if test -w "$cache_file"; then
29651     test "x$cache_file" != "x/dev/null" &&
29652       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29653 echo "$as_me: updating cache $cache_file" >&6;}
29654     cat confcache >$cache_file
29655   else
29656     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29657 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29658   fi
29659 fi
29660 rm -f confcache
29661
29662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29663 # Let make expand exec_prefix.
29664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29665
29666 DEFS=-DHAVE_CONFIG_H
29667
29668 ac_libobjs=
29669 ac_ltlibobjs=
29670 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29671   # 1. Remove the extension, and $U if already installed.
29672   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29673   ac_i=`echo "$ac_i" | sed "$ac_script"`
29674   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29675   #    will be set to the directory where LIBOBJS objects are built.
29676   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29677   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29678 done
29679 LIBOBJS=$ac_libobjs
29680
29681 LTLIBOBJS=$ac_ltlibobjs
29682
29683
29684 if test -z "${HAVE_DARWIN_OS_TRUE}" && test -z "${HAVE_DARWIN_OS_FALSE}"; then
29685   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DARWIN_OS\" was never defined.
29686 Usually this means the macro was only invoked conditionally." >&5
29687 echo "$as_me: error: conditional \"HAVE_DARWIN_OS\" was never defined.
29688 Usually this means the macro was only invoked conditionally." >&2;}
29689    { (exit 1); exit 1; }; }
29690 fi
29691 if test -z "${HAVE_DARWIN_OS_TRUE}" && test -z "${HAVE_DARWIN_OS_FALSE}"; then
29692   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DARWIN_OS\" was never defined.
29693 Usually this means the macro was only invoked conditionally." >&5
29694 echo "$as_me: error: conditional \"HAVE_DARWIN_OS\" was never defined.
29695 Usually this means the macro was only invoked conditionally." >&2;}
29696    { (exit 1); exit 1; }; }
29697 fi
29698
29699 : ${CONFIG_STATUS=./config.status}
29700 ac_clean_files_save=$ac_clean_files
29701 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29702 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29703 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29704 cat >$CONFIG_STATUS <<_ACEOF
29705 #! $SHELL
29706 # Generated by $as_me.
29707 # Run this file to recreate the current configuration.
29708 # Compiler output produced by configure, useful for debugging
29709 # configure, is in config.log if it exists.
29710
29711 debug=false
29712 ac_cs_recheck=false
29713 ac_cs_silent=false
29714 SHELL=\${CONFIG_SHELL-$SHELL}
29715 _ACEOF
29716
29717 cat >>$CONFIG_STATUS <<\_ACEOF
29718 ## --------------------- ##
29719 ## M4sh Initialization.  ##
29720 ## --------------------- ##
29721
29722 # Be more Bourne compatible
29723 DUALCASE=1; export DUALCASE # for MKS sh
29724 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29725   emulate sh
29726   NULLCMD=:
29727   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29728   # is contrary to our usage.  Disable this feature.
29729   alias -g '${1+"$@"}'='"$@"'
29730   setopt NO_GLOB_SUBST
29731 else
29732   case `(set -o) 2>/dev/null` in
29733   *posix*) set -o posix ;;
29734 esac
29735
29736 fi
29737
29738
29739
29740
29741 # PATH needs CR
29742 # Avoid depending upon Character Ranges.
29743 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29744 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29745 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29746 as_cr_digits='0123456789'
29747 as_cr_alnum=$as_cr_Letters$as_cr_digits
29748
29749 # The user is always right.
29750 if test "${PATH_SEPARATOR+set}" != set; then
29751   echo "#! /bin/sh" >conf$$.sh
29752   echo  "exit 0"   >>conf$$.sh
29753   chmod +x conf$$.sh
29754   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29755     PATH_SEPARATOR=';'
29756   else
29757     PATH_SEPARATOR=:
29758   fi
29759   rm -f conf$$.sh
29760 fi
29761
29762 # Support unset when possible.
29763 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29764   as_unset=unset
29765 else
29766   as_unset=false
29767 fi
29768
29769
29770 # IFS
29771 # We need space, tab and new line, in precisely that order.  Quoting is
29772 # there to prevent editors from complaining about space-tab.
29773 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29774 # splitting by setting IFS to empty value.)
29775 as_nl='
29776 '
29777 IFS=" ""        $as_nl"
29778
29779 # Find who we are.  Look in the path if we contain no directory separator.
29780 case $0 in
29781   *[\\/]* ) as_myself=$0 ;;
29782   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29783 for as_dir in $PATH
29784 do
29785   IFS=$as_save_IFS
29786   test -z "$as_dir" && as_dir=.
29787   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29788 done
29789 IFS=$as_save_IFS
29790
29791      ;;
29792 esac
29793 # We did not find ourselves, most probably we were run as `sh COMMAND'
29794 # in which case we are not to be found in the path.
29795 if test "x$as_myself" = x; then
29796   as_myself=$0
29797 fi
29798 if test ! -f "$as_myself"; then
29799   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29800   { (exit 1); exit 1; }
29801 fi
29802
29803 # Work around bugs in pre-3.0 UWIN ksh.
29804 for as_var in ENV MAIL MAILPATH
29805 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29806 done
29807 PS1='$ '
29808 PS2='> '
29809 PS4='+ '
29810
29811 # NLS nuisances.
29812 for as_var in \
29813   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29814   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29815   LC_TELEPHONE LC_TIME
29816 do
29817   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29818     eval $as_var=C; export $as_var
29819   else
29820     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29821   fi
29822 done
29823
29824 # Required to use basename.
29825 if expr a : '\(a\)' >/dev/null 2>&1 &&
29826    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29827   as_expr=expr
29828 else
29829   as_expr=false
29830 fi
29831
29832 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29833   as_basename=basename
29834 else
29835   as_basename=false
29836 fi
29837
29838
29839 # Name of the executable.
29840 as_me=`$as_basename -- "$0" ||
29841 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29842          X"$0" : 'X\(//\)$' \| \
29843          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29844 echo X/"$0" |
29845     sed '/^.*\/\([^/][^/]*\)\/*$/{
29846             s//\1/
29847             q
29848           }
29849           /^X\/\(\/\/\)$/{
29850             s//\1/
29851             q
29852           }
29853           /^X\/\(\/\).*/{
29854             s//\1/
29855             q
29856           }
29857           s/.*/./; q'`
29858
29859 # CDPATH.
29860 $as_unset CDPATH
29861
29862
29863
29864   as_lineno_1=$LINENO
29865   as_lineno_2=$LINENO
29866   test "x$as_lineno_1" != "x$as_lineno_2" &&
29867   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29868
29869   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29870   # uniformly replaced by the line number.  The first 'sed' inserts a
29871   # line-number line after each line using $LINENO; the second 'sed'
29872   # does the real work.  The second script uses 'N' to pair each
29873   # line-number line with the line containing $LINENO, and appends
29874   # trailing '-' during substitution so that $LINENO is not a special
29875   # case at line end.
29876   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29877   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29878   # E. McMahon (1931-1989) for sed's syntax.  :-)
29879   sed -n '
29880     p
29881     /[$]LINENO/=
29882   ' <$as_myself |
29883     sed '
29884       s/[$]LINENO.*/&-/
29885       t lineno
29886       b
29887       :lineno
29888       N
29889       :loop
29890       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29891       t loop
29892       s/-\n.*//
29893     ' >$as_me.lineno &&
29894   chmod +x "$as_me.lineno" ||
29895     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29896    { (exit 1); exit 1; }; }
29897
29898   # Don't try to exec as it changes $[0], causing all sort of problems
29899   # (the dirname of $[0] is not the place where we might find the
29900   # original and so on.  Autoconf is especially sensitive to this).
29901   . "./$as_me.lineno"
29902   # Exit status is that of the last command.
29903   exit
29904 }
29905
29906
29907 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29908   as_dirname=dirname
29909 else
29910   as_dirname=false
29911 fi
29912
29913 ECHO_C= ECHO_N= ECHO_T=
29914 case `echo -n x` in
29915 -n*)
29916   case `echo 'x\c'` in
29917   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29918   *)   ECHO_C='\c';;
29919   esac;;
29920 *)
29921   ECHO_N='-n';;
29922 esac
29923
29924 if expr a : '\(a\)' >/dev/null 2>&1 &&
29925    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29926   as_expr=expr
29927 else
29928   as_expr=false
29929 fi
29930
29931 rm -f conf$$ conf$$.exe conf$$.file
29932 if test -d conf$$.dir; then
29933   rm -f conf$$.dir/conf$$.file
29934 else
29935   rm -f conf$$.dir
29936   mkdir conf$$.dir
29937 fi
29938 echo >conf$$.file
29939 if ln -s conf$$.file conf$$ 2>/dev/null; then
29940   as_ln_s='ln -s'
29941   # ... but there are two gotchas:
29942   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29943   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29944   # In both cases, we have to default to `cp -p'.
29945   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29946     as_ln_s='cp -p'
29947 elif ln conf$$.file conf$$ 2>/dev/null; then
29948   as_ln_s=ln
29949 else
29950   as_ln_s='cp -p'
29951 fi
29952 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29953 rmdir conf$$.dir 2>/dev/null
29954
29955 if mkdir -p . 2>/dev/null; then
29956   as_mkdir_p=:
29957 else
29958   test -d ./-p && rmdir ./-p
29959   as_mkdir_p=false
29960 fi
29961
29962 if test -x / >/dev/null 2>&1; then
29963   as_test_x='test -x'
29964 else
29965   if ls -dL / >/dev/null 2>&1; then
29966     as_ls_L_option=L
29967   else
29968     as_ls_L_option=
29969   fi
29970   as_test_x='
29971     eval sh -c '\''
29972       if test -d "$1"; then
29973         test -d "$1/.";
29974       else
29975         case $1 in
29976         -*)set "./$1";;
29977         esac;
29978         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29979         ???[sx]*):;;*)false;;esac;fi
29980     '\'' sh
29981   '
29982 fi
29983 as_executable_p=$as_test_x
29984
29985 # Sed expression to map a string onto a valid CPP name.
29986 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29987
29988 # Sed expression to map a string onto a valid variable name.
29989 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29990
29991
29992 exec 6>&1
29993
29994 # Save the log message, to keep $[0] and so on meaningful, and to
29995 # report actual input values of CONFIG_FILES etc. instead of their
29996 # values after options handling.
29997 ac_log="
29998 This file was extended by $as_me, which was
29999 generated by GNU Autoconf 2.61.  Invocation command line was
30000
30001   CONFIG_FILES    = $CONFIG_FILES
30002   CONFIG_HEADERS  = $CONFIG_HEADERS
30003   CONFIG_LINKS    = $CONFIG_LINKS
30004   CONFIG_COMMANDS = $CONFIG_COMMANDS
30005   $ $0 $@
30006
30007 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30008 "
30009
30010 _ACEOF
30011
30012 cat >>$CONFIG_STATUS <<_ACEOF
30013 # Files that config.status was made for.
30014 config_files="$ac_config_files"
30015 config_headers="$ac_config_headers"
30016 config_commands="$ac_config_commands"
30017
30018 _ACEOF
30019
30020 cat >>$CONFIG_STATUS <<\_ACEOF
30021 ac_cs_usage="\
30022 \`$as_me' instantiates files from templates according to the
30023 current configuration.
30024
30025 Usage: $0 [OPTIONS] [FILE]...
30026
30027   -h, --help       print this help, then exit
30028   -V, --version    print version number and configuration settings, then exit
30029   -q, --quiet      do not print progress messages
30030   -d, --debug      don't remove temporary files
30031       --recheck    update $as_me by reconfiguring in the same conditions
30032   --file=FILE[:TEMPLATE]
30033                    instantiate the configuration file FILE
30034   --header=FILE[:TEMPLATE]
30035                    instantiate the configuration header FILE
30036
30037 Configuration files:
30038 $config_files
30039
30040 Configuration headers:
30041 $config_headers
30042
30043 Configuration commands:
30044 $config_commands
30045
30046 Report bugs to <bug-autoconf@gnu.org>."
30047
30048 _ACEOF
30049 cat >>$CONFIG_STATUS <<_ACEOF
30050 ac_cs_version="\\
30051 config.status
30052 configured by $0, generated by GNU Autoconf 2.61,
30053   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30054
30055 Copyright (C) 2006 Free Software Foundation, Inc.
30056 This config.status script is free software; the Free Software Foundation
30057 gives unlimited permission to copy, distribute and modify it."
30058
30059 ac_pwd='$ac_pwd'
30060 srcdir='$srcdir'
30061 INSTALL='$INSTALL'
30062 _ACEOF
30063
30064 cat >>$CONFIG_STATUS <<\_ACEOF
30065 # If no file are specified by the user, then we need to provide default
30066 # value.  By we need to know if files were specified by the user.
30067 ac_need_defaults=:
30068 while test $# != 0
30069 do
30070   case $1 in
30071   --*=*)
30072     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30073     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30074     ac_shift=:
30075     ;;
30076   *)
30077     ac_option=$1
30078     ac_optarg=$2
30079     ac_shift=shift
30080     ;;
30081   esac
30082
30083   case $ac_option in
30084   # Handling of the options.
30085   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30086     ac_cs_recheck=: ;;
30087   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30088     echo "$ac_cs_version"; exit ;;
30089   --debug | --debu | --deb | --de | --d | -d )
30090     debug=: ;;
30091   --file | --fil | --fi | --f )
30092     $ac_shift
30093     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30094     ac_need_defaults=false;;
30095   --header | --heade | --head | --hea )
30096     $ac_shift
30097     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30098     ac_need_defaults=false;;
30099   --he | --h)
30100     # Conflict between --help and --header
30101     { echo "$as_me: error: ambiguous option: $1
30102 Try \`$0 --help' for more information." >&2
30103    { (exit 1); exit 1; }; };;
30104   --help | --hel | -h )
30105     echo "$ac_cs_usage"; exit ;;
30106   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30107   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30108     ac_cs_silent=: ;;
30109
30110   # This is an error.
30111   -*) { echo "$as_me: error: unrecognized option: $1
30112 Try \`$0 --help' for more information." >&2
30113    { (exit 1); exit 1; }; } ;;
30114
30115   *) ac_config_targets="$ac_config_targets $1"
30116      ac_need_defaults=false ;;
30117
30118   esac
30119   shift
30120 done
30121
30122 ac_configure_extra_args=
30123
30124 if $ac_cs_silent; then
30125   exec 6>/dev/null
30126   ac_configure_extra_args="$ac_configure_extra_args --silent"
30127 fi
30128
30129 _ACEOF
30130 cat >>$CONFIG_STATUS <<_ACEOF
30131 if \$ac_cs_recheck; then
30132   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30133   CONFIG_SHELL=$SHELL
30134   export CONFIG_SHELL
30135   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30136 fi
30137
30138 _ACEOF
30139 cat >>$CONFIG_STATUS <<\_ACEOF
30140 exec 5>>config.log
30141 {
30142   echo
30143   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30144 ## Running $as_me. ##
30145 _ASBOX
30146   echo "$ac_log"
30147 } >&5
30148
30149 _ACEOF
30150 cat >>$CONFIG_STATUS <<_ACEOF
30151 #
30152 # INIT-COMMANDS
30153 #
30154 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30155     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30156     # from automake.
30157     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30158     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30159     LINGUAS="${LINGUAS-%UNSET%}"
30160
30161
30162 _ACEOF
30163
30164 cat >>$CONFIG_STATUS <<\_ACEOF
30165
30166 # Handling of arguments.
30167 for ac_config_target in $ac_config_targets
30168 do
30169   case $ac_config_target in
30170     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30171     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30172     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30173     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30174     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30175     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30176     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30177     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30178     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30179     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30180     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30181     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30182     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30183     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30184     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30185     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30186     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30187     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30188     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30189     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30190     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30191     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30192     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30193     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30194     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30195     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30196     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30197     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30198     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30199     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30200     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30201     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30202     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30203     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30204     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30205     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30206     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30207     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30208     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30209     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30210     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30211     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30212     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30213     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30214     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30215     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30216     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30217     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30218     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30219     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30220     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30221     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30222     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30223     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30224     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30225     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30226     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30227     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30228     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30229     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30230     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30231     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30232     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30233     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30234     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30235     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30236     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30237     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30238     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30239     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30240     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30241     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30242     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30243     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30244     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30245     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30246     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30247     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30248     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30249     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30250     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30251     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30252     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30253     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30254     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30255     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30256     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30257     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30258     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30259     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30260     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30261     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30262     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30263     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30264     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30265     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30266     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30267     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30268     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30269     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30270     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30271     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30272     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30273     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30274     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30275     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30276     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30277     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30278     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
30279     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30280     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30281
30282   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30283 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30284    { (exit 1); exit 1; }; };;
30285   esac
30286 done
30287
30288
30289 # If the user did not use the arguments to specify the items to instantiate,
30290 # then the envvar interface is used.  Set only those that are not.
30291 # We use the long form for the default assignment because of an extremely
30292 # bizarre bug on SunOS 4.1.3.
30293 if $ac_need_defaults; then
30294   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30295   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30296   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30297 fi
30298
30299 # Have a temporary directory for convenience.  Make it in the build tree
30300 # simply because there is no reason against having it here, and in addition,
30301 # creating and moving files from /tmp can sometimes cause problems.
30302 # Hook for its removal unless debugging.
30303 # Note that there is a small window in which the directory will not be cleaned:
30304 # after its creation but before its name has been assigned to `$tmp'.
30305 $debug ||
30306 {
30307   tmp=
30308   trap 'exit_status=$?
30309   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30310 ' 0
30311   trap '{ (exit 1); exit 1; }' 1 2 13 15
30312 }
30313 # Create a (secure) tmp directory for tmp files.
30314
30315 {
30316   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30317   test -n "$tmp" && test -d "$tmp"
30318 }  ||
30319 {
30320   tmp=./conf$$-$RANDOM
30321   (umask 077 && mkdir "$tmp")
30322 } ||
30323 {
30324    echo "$me: cannot create a temporary directory in ." >&2
30325    { (exit 1); exit 1; }
30326 }
30327
30328 #
30329 # Set up the sed scripts for CONFIG_FILES section.
30330 #
30331
30332 # No need to generate the scripts if there are no CONFIG_FILES.
30333 # This happens for instance when ./config.status config.h
30334 if test -n "$CONFIG_FILES"; then
30335
30336 _ACEOF
30337
30338 # Create sed commands to just substitute file output variables.
30339
30340 # Remaining file output variables are in a fragment that also has non-file
30341 # output varibles.
30342
30343
30344
30345 ac_delim='%!_!# '
30346 for ac_last_try in false false false false false :; do
30347   cat >conf$$subs.sed <<_ACEOF
30348 SHELL!$SHELL$ac_delim
30349 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30350 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30351 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30352 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30353 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30354 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30355 exec_prefix!$exec_prefix$ac_delim
30356 prefix!$prefix$ac_delim
30357 program_transform_name!$program_transform_name$ac_delim
30358 bindir!$bindir$ac_delim
30359 sbindir!$sbindir$ac_delim
30360 libexecdir!$libexecdir$ac_delim
30361 datarootdir!$datarootdir$ac_delim
30362 datadir!$datadir$ac_delim
30363 sysconfdir!$sysconfdir$ac_delim
30364 sharedstatedir!$sharedstatedir$ac_delim
30365 localstatedir!$localstatedir$ac_delim
30366 includedir!$includedir$ac_delim
30367 oldincludedir!$oldincludedir$ac_delim
30368 docdir!$docdir$ac_delim
30369 infodir!$infodir$ac_delim
30370 htmldir!$htmldir$ac_delim
30371 dvidir!$dvidir$ac_delim
30372 pdfdir!$pdfdir$ac_delim
30373 psdir!$psdir$ac_delim
30374 libdir!$libdir$ac_delim
30375 localedir!$localedir$ac_delim
30376 mandir!$mandir$ac_delim
30377 DEFS!$DEFS$ac_delim
30378 ECHO_C!$ECHO_C$ac_delim
30379 ECHO_N!$ECHO_N$ac_delim
30380 ECHO_T!$ECHO_T$ac_delim
30381 LIBS!$LIBS$ac_delim
30382 build_alias!$build_alias$ac_delim
30383 host_alias!$host_alias$ac_delim
30384 target_alias!$target_alias$ac_delim
30385 BUILD_DIR!$BUILD_DIR$ac_delim
30386 TOP_DIR!$TOP_DIR$ac_delim
30387 TRUEPRG!$TRUEPRG$ac_delim
30388 FALSEPRG!$FALSEPRG$ac_delim
30389 VERSION!$VERSION$ac_delim
30390 DATE!$DATE$ac_delim
30391 LSMDATE!$LSMDATE$ac_delim
30392 CC!$CC$ac_delim
30393 CFLAGS!$CFLAGS$ac_delim
30394 LDFLAGS!$LDFLAGS$ac_delim
30395 CPPFLAGS!$CPPFLAGS$ac_delim
30396 ac_ct_CC!$ac_ct_CC$ac_delim
30397 EXEEXT!$EXEEXT$ac_delim
30398 OBJEXT!$OBJEXT$ac_delim
30399 CXX!$CXX$ac_delim
30400 CXXFLAGS!$CXXFLAGS$ac_delim
30401 ac_ct_CXX!$ac_ct_CXX$ac_delim
30402 CPP!$CPP$ac_delim
30403 GREP!$GREP$ac_delim
30404 EGREP!$EGREP$ac_delim
30405 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30406 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30407 INSTALL_DATA!$INSTALL_DATA$ac_delim
30408 RANLIB!$RANLIB$ac_delim
30409 MV!$MV$ac_delim
30410 RM!$RM$ac_delim
30411 CP!$CP$ac_delim
30412 SED!$SED$ac_delim
30413 ECHO!$ECHO$ac_delim
30414 CMP!$CMP$ac_delim
30415 TBL!$TBL$ac_delim
30416 AR!$AR$ac_delim
30417 OPENSSL!$OPENSSL$ac_delim
30418 MTX!$MTX$ac_delim
30419 DD!$DD$ac_delim
30420 MKISOFS!$MKISOFS$ac_delim
30421 PYTHON!$PYTHON$ac_delim
30422 GROWISOFS!$GROWISOFS$ac_delim
30423 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
30424 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
30425 PKGCONFIG!$PKGCONFIG$ac_delim
30426 QMAKE!$QMAKE$ac_delim
30427 QMAKEQT4!$QMAKEQT4$ac_delim
30428 WXCONFIG!$WXCONFIG$ac_delim
30429 WXFLAGS!$WXFLAGS$ac_delim
30430 CDRECORD!$CDRECORD$ac_delim
30431 PIDOF!$PIDOF$ac_delim
30432 AWK!$AWK$ac_delim
30433 ARFLAGS!$ARFLAGS$ac_delim
30434 MAKE_SHELL!$MAKE_SHELL$ac_delim
30435 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
30436 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
30437 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
30438 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
30439 build!$build$ac_delim
30440 build_cpu!$build_cpu$ac_delim
30441 build_vendor!$build_vendor$ac_delim
30442 _ACEOF
30443
30444   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
30445     break
30446   elif $ac_last_try; then
30447     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30448 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30449    { (exit 1); exit 1; }; }
30450   else
30451     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30452   fi
30453 done
30454
30455 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30456 if test -n "$ac_eof"; then
30457   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30458   ac_eof=`expr $ac_eof + 1`
30459 fi
30460
30461 cat >>$CONFIG_STATUS <<_ACEOF
30462 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30464 /^[      ]*@MCOMMON@[    ]*$/{
30465 r $MCOMMON
30466 d
30467 }
30468 _ACEOF
30469 sed '
30470 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30471 s/^/s,@/; s/!/@,|#_!!_#|/
30472 :n
30473 t n
30474 s/'"$ac_delim"'$/,g/; t
30475 s/$/\\/; p
30476 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30477 ' >>$CONFIG_STATUS <conf$$subs.sed
30478 rm -f conf$$subs.sed
30479 cat >>$CONFIG_STATUS <<_ACEOF
30480 CEOF$ac_eof
30481 _ACEOF
30482
30483
30484 ac_delim='%!_!# '
30485 for ac_last_try in false false false false false :; do
30486   cat >conf$$subs.sed <<_ACEOF
30487 build_os!$build_os$ac_delim
30488 host!$host$ac_delim
30489 host_cpu!$host_cpu$ac_delim
30490 host_vendor!$host_vendor$ac_delim
30491 host_os!$host_os$ac_delim
30492 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
30493 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
30494 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
30495 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
30496 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
30497 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
30498 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
30499 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
30500 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
30501 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
30502 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
30503 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
30504 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
30505 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
30506 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
30507 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
30508 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
30509 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
30510 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
30511 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
30512 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
30513 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
30514 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
30515 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
30516 SET_MAKE!$SET_MAKE$ac_delim
30517 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
30518 USE_NLS!$USE_NLS$ac_delim
30519 MSGFMT!$MSGFMT$ac_delim
30520 GMSGFMT!$GMSGFMT$ac_delim
30521 XGETTEXT!$XGETTEXT$ac_delim
30522 MSGMERGE!$MSGMERGE$ac_delim
30523 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
30524 LIBICONV!$LIBICONV$ac_delim
30525 LTLIBICONV!$LTLIBICONV$ac_delim
30526 INTLLIBS!$INTLLIBS$ac_delim
30527 LIBINTL!$LIBINTL$ac_delim
30528 LTLIBINTL!$LTLIBINTL$ac_delim
30529 POSUB!$POSUB$ac_delim
30530 GLIBC2!$GLIBC2$ac_delim
30531 ALLOCA!$ALLOCA$ac_delim
30532 GLIBC21!$GLIBC21$ac_delim
30533 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
30534 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
30535 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
30536 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
30537 INTLBISON!$INTLBISON$ac_delim
30538 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
30539 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
30540 CATOBJEXT!$CATOBJEXT$ac_delim
30541 DATADIRNAME!$DATADIRNAME$ac_delim
30542 INSTOBJEXT!$INSTOBJEXT$ac_delim
30543 GENCAT!$GENCAT$ac_delim
30544 INTLOBJS!$INTLOBJS$ac_delim
30545 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
30546 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
30547 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
30548 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
30549 GNOME_LIBS!$GNOME_LIBS$ac_delim
30550 GNOME_DIR!$GNOME_DIR$ac_delim
30551 BAT_DIR!$BAT_DIR$ac_delim
30552 QWT_INC!$QWT_INC$ac_delim
30553 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
30554 QWT_LIB!$QWT_LIB$ac_delim
30555 QWT!$QWT$ac_delim
30556 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
30557 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
30558 WX_DIR!$WX_DIR$ac_delim
30559 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
30560 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
30561 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
30562 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
30563 STATIC_FD!$STATIC_FD$ac_delim
30564 STATIC_SD!$STATIC_SD$ac_delim
30565 STATIC_DIR!$STATIC_DIR$ac_delim
30566 STATIC_CONS!$STATIC_CONS$ac_delim
30567 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
30568 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
30569 ALL_DIRS!$ALL_DIRS$ac_delim
30570 DIRD_DIR!$DIRD_DIR$ac_delim
30571 DIR_TOOLS!$DIR_TOOLS$ac_delim
30572 STORED_DIR!$STORED_DIR$ac_delim
30573 CONS_INC!$CONS_INC$ac_delim
30574 CONS_OBJ!$CONS_OBJ$ac_delim
30575 CONS_SRC!$CONS_SRC$ac_delim
30576 CONS_LIBS!$CONS_LIBS$ac_delim
30577 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
30578 READLINE_SRC!$READLINE_SRC$ac_delim
30579 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
30580 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
30581 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
30582 OPENSSL_INC!$OPENSSL_INC$ac_delim
30583 working_dir!$working_dir$ac_delim
30584 _ACEOF
30585
30586   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30587     break
30588   elif $ac_last_try; then
30589     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30590 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30591    { (exit 1); exit 1; }; }
30592   else
30593     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30594   fi
30595 done
30596
30597 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30598 if test -n "$ac_eof"; then
30599   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30600   ac_eof=`expr $ac_eof + 1`
30601 fi
30602
30603 cat >>$CONFIG_STATUS <<_ACEOF
30604 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30606 _ACEOF
30607 sed '
30608 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30609 s/^/s,@/; s/!/@,|#_!!_#|/
30610 :n
30611 t n
30612 s/'"$ac_delim"'$/,g/; t
30613 s/$/\\/; p
30614 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30615 ' >>$CONFIG_STATUS <conf$$subs.sed
30616 rm -f conf$$subs.sed
30617 cat >>$CONFIG_STATUS <<_ACEOF
30618 CEOF$ac_eof
30619 _ACEOF
30620
30621
30622 ac_delim='%!_!# '
30623 for ac_last_try in false false false false false :; do
30624   cat >conf$$subs.sed <<_ACEOF
30625 archivedir!$archivedir$ac_delim
30626 scriptdir!$scriptdir$ac_delim
30627 plugindir!$plugindir$ac_delim
30628 dump_email!$dump_email$ac_delim
30629 job_email!$job_email$ac_delim
30630 smtp_host!$smtp_host$ac_delim
30631 piddir!$piddir$ac_delim
30632 subsysdir!$subsysdir$ac_delim
30633 baseport!$baseport$ac_delim
30634 dir_port!$dir_port$ac_delim
30635 fd_port!$fd_port$ac_delim
30636 sd_port!$sd_port$ac_delim
30637 dir_password!$dir_password$ac_delim
30638 fd_password!$fd_password$ac_delim
30639 sd_password!$sd_password$ac_delim
30640 mon_dir_password!$mon_dir_password$ac_delim
30641 mon_fd_password!$mon_fd_password$ac_delim
30642 mon_sd_password!$mon_sd_password$ac_delim
30643 db_name!$db_name$ac_delim
30644 db_user!$db_user$ac_delim
30645 db_password!$db_password$ac_delim
30646 db_port!$db_port$ac_delim
30647 dir_user!$dir_user$ac_delim
30648 dir_group!$dir_group$ac_delim
30649 sd_user!$sd_user$ac_delim
30650 sd_group!$sd_group$ac_delim
30651 fd_user!$fd_user$ac_delim
30652 fd_group!$fd_group$ac_delim
30653 SBINPERM!$SBINPERM$ac_delim
30654 cats!$cats$ac_delim
30655 DB_TYPE!$DB_TYPE$ac_delim
30656 uncomment_dbi!$uncomment_dbi$ac_delim
30657 GETCONF!$GETCONF$ac_delim
30658 XMKMF!$XMKMF$ac_delim
30659 X_CFLAGS!$X_CFLAGS$ac_delim
30660 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
30661 X_LIBS!$X_LIBS$ac_delim
30662 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
30663 LIBOBJS!$LIBOBJS$ac_delim
30664 FDLIBS!$FDLIBS$ac_delim
30665 DEBUG!$DEBUG$ac_delim
30666 DINCLUDE!$DINCLUDE$ac_delim
30667 DLIB!$DLIB$ac_delim
30668 DB_LIBS!$DB_LIBS$ac_delim
30669 WCFLAGS!$WCFLAGS$ac_delim
30670 WLDFLAGS!$WLDFLAGS$ac_delim
30671 WRAPLIBS!$WRAPLIBS$ac_delim
30672 OBJLIST!$OBJLIST$ac_delim
30673 hostname!$hostname$ac_delim
30674 TAPEDRIVE!$TAPEDRIVE$ac_delim
30675 PSCMD!$PSCMD$ac_delim
30676 WIN32!$WIN32$ac_delim
30677 MACOSX!$MACOSX$ac_delim
30678 DISTNAME!$DISTNAME$ac_delim
30679 DISTVER!$DISTVER$ac_delim
30680 LTLIBOBJS!$LTLIBOBJS$ac_delim
30681 _ACEOF
30682
30683   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
30684     break
30685   elif $ac_last_try; then
30686     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30687 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30688    { (exit 1); exit 1; }; }
30689   else
30690     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30691   fi
30692 done
30693
30694 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30695 if test -n "$ac_eof"; then
30696   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30697   ac_eof=`expr $ac_eof + 1`
30698 fi
30699
30700 cat >>$CONFIG_STATUS <<_ACEOF
30701 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
30702 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30703 _ACEOF
30704 sed '
30705 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30706 s/^/s,@/; s/!/@,|#_!!_#|/
30707 :n
30708 t n
30709 s/'"$ac_delim"'$/,g/; t
30710 s/$/\\/; p
30711 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30712 ' >>$CONFIG_STATUS <conf$$subs.sed
30713 rm -f conf$$subs.sed
30714 cat >>$CONFIG_STATUS <<_ACEOF
30715 :end
30716 s/|#_!!_#|//g
30717 CEOF$ac_eof
30718 _ACEOF
30719
30720
30721 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30722 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30723 # trailing colons and then remove the whole line if VPATH becomes empty
30724 # (actually we leave an empty line to preserve line numbers).
30725 if test "x$srcdir" = x.; then
30726   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30727 s/:*\$(srcdir):*/:/
30728 s/:*\${srcdir}:*/:/
30729 s/:*@srcdir@:*/:/
30730 s/^\([^=]*=[     ]*\):*/\1/
30731 s/:*$//
30732 s/^[^=]*=[       ]*$//
30733 }'
30734 fi
30735
30736 cat >>$CONFIG_STATUS <<\_ACEOF
30737 fi # test -n "$CONFIG_FILES"
30738
30739
30740 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30741 do
30742   case $ac_tag in
30743   :[FHLC]) ac_mode=$ac_tag; continue;;
30744   esac
30745   case $ac_mode$ac_tag in
30746   :[FHL]*:*);;
30747   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30748 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30749    { (exit 1); exit 1; }; };;
30750   :[FH]-) ac_tag=-:-;;
30751   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30752   esac
30753   ac_save_IFS=$IFS
30754   IFS=:
30755   set x $ac_tag
30756   IFS=$ac_save_IFS
30757   shift
30758   ac_file=$1
30759   shift
30760
30761   case $ac_mode in
30762   :L) ac_source=$1;;
30763   :[FH])
30764     ac_file_inputs=
30765     for ac_f
30766     do
30767       case $ac_f in
30768       -) ac_f="$tmp/stdin";;
30769       *) # Look for the file first in the build tree, then in the source tree
30770          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30771          # because $ac_f cannot contain `:'.
30772          test -f "$ac_f" ||
30773            case $ac_f in
30774            [\\/$]*) false;;
30775            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30776            esac ||
30777            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30778 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30779    { (exit 1); exit 1; }; };;
30780       esac
30781       ac_file_inputs="$ac_file_inputs $ac_f"
30782     done
30783
30784     # Let's still pretend it is `configure' which instantiates (i.e., don't
30785     # use $as_me), people would be surprised to read:
30786     #    /* config.h.  Generated by config.status.  */
30787     configure_input="Generated from "`IFS=:
30788           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30789     if test x"$ac_file" != x-; then
30790       configure_input="$ac_file.  $configure_input"
30791       { echo "$as_me:$LINENO: creating $ac_file" >&5
30792 echo "$as_me: creating $ac_file" >&6;}
30793     fi
30794
30795     case $ac_tag in
30796     *:-:* | *:-) cat >"$tmp/stdin";;
30797     esac
30798     ;;
30799   esac
30800
30801   ac_dir=`$as_dirname -- "$ac_file" ||
30802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30803          X"$ac_file" : 'X\(//\)[^/]' \| \
30804          X"$ac_file" : 'X\(//\)$' \| \
30805          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30806 echo X"$ac_file" |
30807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30808             s//\1/
30809             q
30810           }
30811           /^X\(\/\/\)[^/].*/{
30812             s//\1/
30813             q
30814           }
30815           /^X\(\/\/\)$/{
30816             s//\1/
30817             q
30818           }
30819           /^X\(\/\).*/{
30820             s//\1/
30821             q
30822           }
30823           s/.*/./; q'`
30824   { as_dir="$ac_dir"
30825   case $as_dir in #(
30826   -*) as_dir=./$as_dir;;
30827   esac
30828   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30829     as_dirs=
30830     while :; do
30831       case $as_dir in #(
30832       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30833       *) as_qdir=$as_dir;;
30834       esac
30835       as_dirs="'$as_qdir' $as_dirs"
30836       as_dir=`$as_dirname -- "$as_dir" ||
30837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30838          X"$as_dir" : 'X\(//\)[^/]' \| \
30839          X"$as_dir" : 'X\(//\)$' \| \
30840          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30841 echo X"$as_dir" |
30842     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30843             s//\1/
30844             q
30845           }
30846           /^X\(\/\/\)[^/].*/{
30847             s//\1/
30848             q
30849           }
30850           /^X\(\/\/\)$/{
30851             s//\1/
30852             q
30853           }
30854           /^X\(\/\).*/{
30855             s//\1/
30856             q
30857           }
30858           s/.*/./; q'`
30859       test -d "$as_dir" && break
30860     done
30861     test -z "$as_dirs" || eval "mkdir $as_dirs"
30862   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30863 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30864    { (exit 1); exit 1; }; }; }
30865   ac_builddir=.
30866
30867 case "$ac_dir" in
30868 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30869 *)
30870   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30871   # A ".." for each directory in $ac_dir_suffix.
30872   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30873   case $ac_top_builddir_sub in
30874   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30875   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30876   esac ;;
30877 esac
30878 ac_abs_top_builddir=$ac_pwd
30879 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30880 # for backward compatibility:
30881 ac_top_builddir=$ac_top_build_prefix
30882
30883 case $srcdir in
30884   .)  # We are building in place.
30885     ac_srcdir=.
30886     ac_top_srcdir=$ac_top_builddir_sub
30887     ac_abs_top_srcdir=$ac_pwd ;;
30888   [\\/]* | ?:[\\/]* )  # Absolute name.
30889     ac_srcdir=$srcdir$ac_dir_suffix;
30890     ac_top_srcdir=$srcdir
30891     ac_abs_top_srcdir=$srcdir ;;
30892   *) # Relative name.
30893     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30894     ac_top_srcdir=$ac_top_build_prefix$srcdir
30895     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30896 esac
30897 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30898
30899
30900   case $ac_mode in
30901   :F)
30902   #
30903   # CONFIG_FILE
30904   #
30905
30906   case $INSTALL in
30907   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30908   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30909   esac
30910 _ACEOF
30911
30912 cat >>$CONFIG_STATUS <<\_ACEOF
30913 # If the template does not know about datarootdir, expand it.
30914 # FIXME: This hack should be removed a few years after 2.60.
30915 ac_datarootdir_hack=; ac_datarootdir_seen=
30916
30917 case `sed -n '/datarootdir/ {
30918   p
30919   q
30920 }
30921 /@datadir@/p
30922 /@docdir@/p
30923 /@infodir@/p
30924 /@localedir@/p
30925 /@mandir@/p
30926 ' $ac_file_inputs` in
30927 *datarootdir*) ac_datarootdir_seen=yes;;
30928 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30929   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30930 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30931 _ACEOF
30932 cat >>$CONFIG_STATUS <<_ACEOF
30933   ac_datarootdir_hack='
30934   s&@datadir@&$datadir&g
30935   s&@docdir@&$docdir&g
30936   s&@infodir@&$infodir&g
30937   s&@localedir@&$localedir&g
30938   s&@mandir@&$mandir&g
30939     s&\\\${datarootdir}&$datarootdir&g' ;;
30940 esac
30941 _ACEOF
30942
30943 # Neutralize VPATH when `$srcdir' = `.'.
30944 # Shell code in configure.ac might set extrasub.
30945 # FIXME: do we really want to maintain this feature?
30946 cat >>$CONFIG_STATUS <<_ACEOF
30947   sed "$ac_vpsub
30948 $extrasub
30949 _ACEOF
30950 cat >>$CONFIG_STATUS <<\_ACEOF
30951 :t
30952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30953 s&@configure_input@&$configure_input&;t t
30954 s&@top_builddir@&$ac_top_builddir_sub&;t t
30955 s&@srcdir@&$ac_srcdir&;t t
30956 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30957 s&@top_srcdir@&$ac_top_srcdir&;t t
30958 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30959 s&@builddir@&$ac_builddir&;t t
30960 s&@abs_builddir@&$ac_abs_builddir&;t t
30961 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30962 s&@INSTALL@&$ac_INSTALL&;t t
30963 $ac_datarootdir_hack
30964 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30965
30966 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30967   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30968   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30969   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30970 which seems to be undefined.  Please make sure it is defined." >&5
30971 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30972 which seems to be undefined.  Please make sure it is defined." >&2;}
30973
30974   rm -f "$tmp/stdin"
30975   case $ac_file in
30976   -) cat "$tmp/out"; rm -f "$tmp/out";;
30977   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30978   esac
30979  ;;
30980   :H)
30981   #
30982   # CONFIG_HEADER
30983   #
30984 _ACEOF
30985
30986 # Transform confdefs.h into a sed script `conftest.defines', that
30987 # substitutes the proper values into config.h.in to produce config.h.
30988 rm -f conftest.defines conftest.tail
30989 # First, append a space to every undef/define line, to ease matching.
30990 echo 's/$/ /' >conftest.defines
30991 # Then, protect against being on the right side of a sed subst, or in
30992 # an unquoted here document, in config.status.  If some macros were
30993 # called several times there might be several #defines for the same
30994 # symbol, which is useless.  But do not sort them, since the last
30995 # AC_DEFINE must be honored.
30996 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30997 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30998 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30999 # PARAMS is the parameter list in the macro definition--in most cases, it's
31000 # just an empty string.
31001 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31002 ac_dB='\\)[      (].*,\\1define\\2'
31003 ac_dC=' '
31004 ac_dD=' ,'
31005
31006 uniq confdefs.h |
31007   sed -n '
31008         t rset
31009         :rset
31010         s/^[     ]*#[    ]*define[       ][      ]*//
31011         t ok
31012         d
31013         :ok
31014         s/[\\&,]/\\&/g
31015         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31016         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31017   ' >>conftest.defines
31018
31019 # Remove the space that was appended to ease matching.
31020 # Then replace #undef with comments.  This is necessary, for
31021 # example, in the case of _POSIX_SOURCE, which is predefined and required
31022 # on some systems where configure will not decide to define it.
31023 # (The regexp can be short, since the line contains either #define or #undef.)
31024 echo 's/ $//
31025 s,^[     #]*u.*,/* & */,' >>conftest.defines
31026
31027 # Break up conftest.defines:
31028 ac_max_sed_lines=50
31029
31030 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31031 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31032 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31033 # et cetera.
31034 ac_in='$ac_file_inputs'
31035 ac_out='"$tmp/out1"'
31036 ac_nxt='"$tmp/out2"'
31037
31038 while :
31039 do
31040   # Write a here document:
31041     cat >>$CONFIG_STATUS <<_ACEOF
31042     # First, check the format of the line:
31043     cat >"\$tmp/defines.sed" <<\\CEOF
31044 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31045 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31046 b
31047 :def
31048 _ACEOF
31049   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31050   echo 'CEOF
31051     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31052   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31053   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31054   grep . conftest.tail >/dev/null || break
31055   rm -f conftest.defines
31056   mv conftest.tail conftest.defines
31057 done
31058 rm -f conftest.defines conftest.tail
31059
31060 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31061 cat >>$CONFIG_STATUS <<\_ACEOF
31062   if test x"$ac_file" != x-; then
31063     echo "/* $configure_input  */" >"$tmp/config.h"
31064     cat "$ac_result" >>"$tmp/config.h"
31065     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31066       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31067 echo "$as_me: $ac_file is unchanged" >&6;}
31068     else
31069       rm -f $ac_file
31070       mv "$tmp/config.h" $ac_file
31071     fi
31072   else
31073     echo "/* $configure_input  */"
31074     cat "$ac_result"
31075   fi
31076   rm -f "$tmp/out12"
31077  ;;
31078
31079   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31080 echo "$as_me: executing $ac_file commands" >&6;}
31081  ;;
31082   esac
31083
31084
31085   case $ac_file$ac_mode in
31086     "default-1":C)
31087     for ac_file in $CONFIG_FILES; do
31088       # Support "outfile[:infile[:infile...]]"
31089       case "$ac_file" in
31090         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31091       esac
31092       # PO directories have a Makefile.in generated from Makefile.in.in.
31093       case "$ac_file" in */Makefile.in)
31094         # Adjust a relative srcdir.
31095         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31096         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31097         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31098         # In autoconf-2.13 it is called $ac_given_srcdir.
31099         # In autoconf-2.50 it is called $srcdir.
31100         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31101         case "$ac_given_srcdir" in
31102           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31103           /*) top_srcdir="$ac_given_srcdir" ;;
31104           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31105         esac
31106         # Treat a directory as a PO directory if and only if it has a
31107         # POTFILES.in file. This allows packages to have multiple PO
31108         # directories under different names or in different locations.
31109         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31110           rm -f "$ac_dir/POTFILES"
31111           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31112           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31113           POMAKEFILEDEPS="POTFILES.in"
31114           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31115           # on $ac_dir but don't depend on user-specified configuration
31116           # parameters.
31117           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31118             # The LINGUAS file contains the set of available languages.
31119             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31120               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31121             fi
31122             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31123             # Hide the ALL_LINGUAS assigment from automake.
31124             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31125             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31126           else
31127             # The set of available languages was given in configure.in.
31128             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31129           fi
31130           # Compute POFILES
31131           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31132           # Compute UPDATEPOFILES
31133           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31134           # Compute DUMMYPOFILES
31135           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31136           # Compute GMOFILES
31137           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31138           case "$ac_given_srcdir" in
31139             .) srcdirpre= ;;
31140             *) srcdirpre='$(srcdir)/' ;;
31141           esac
31142           POFILES=
31143           UPDATEPOFILES=
31144           DUMMYPOFILES=
31145           GMOFILES=
31146           for lang in $ALL_LINGUAS; do
31147             POFILES="$POFILES $srcdirpre$lang.po"
31148             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31149             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31150             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31151           done
31152           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31153           # environment variable.
31154           INST_LINGUAS=
31155           if test -n "$ALL_LINGUAS"; then
31156             for presentlang in $ALL_LINGUAS; do
31157               useit=no
31158               if test "%UNSET%" != "$LINGUAS"; then
31159                 desiredlanguages="$LINGUAS"
31160               else
31161                 desiredlanguages="$ALL_LINGUAS"
31162               fi
31163               for desiredlang in $desiredlanguages; do
31164                 # Use the presentlang catalog if desiredlang is
31165                 #   a. equal to presentlang, or
31166                 #   b. a variant of presentlang (because in this case,
31167                 #      presentlang can be used as a fallback for messages
31168                 #      which are not translated in the desiredlang catalog).
31169                 case "$desiredlang" in
31170                   "$presentlang"*) useit=yes;;
31171                 esac
31172               done
31173               if test $useit = yes; then
31174                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31175               fi
31176             done
31177           fi
31178           CATALOGS=
31179           if test -n "$INST_LINGUAS"; then
31180             for lang in $INST_LINGUAS; do
31181               CATALOGS="$CATALOGS $lang.gmo"
31182             done
31183           fi
31184           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31185           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"
31186           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31187             if test -f "$f"; then
31188               case "$f" in
31189                 *.orig | *.bak | *~) ;;
31190                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31191               esac
31192             fi
31193           done
31194         fi
31195         ;;
31196       esac
31197     done ;;
31198     "default":C)
31199  ;;
31200
31201   esac
31202 done # for ac_tag
31203
31204
31205 { (exit 0); exit 0; }
31206 _ACEOF
31207 chmod +x $CONFIG_STATUS
31208 ac_clean_files=$ac_clean_files_save
31209
31210
31211 # configure is writing to config.log, and then calls config.status.
31212 # config.status does its own redirection, appending to config.log.
31213 # Unfortunately, on DOS this fails, as config.log is still kept open
31214 # by configure, so config.status won't be able to write to it; its
31215 # output is simply discarded.  So we exec the FD to /dev/null,
31216 # effectively closing config.log, so it can be properly (re)opened and
31217 # appended to by config.status.  When coming back to configure, we
31218 # need to make the FD available again.
31219 if test "$no_create" != yes; then
31220   ac_cs_success=:
31221   ac_config_status_args=
31222   test "$silent" = yes &&
31223     ac_config_status_args="$ac_config_status_args --quiet"
31224   exec 5>/dev/null
31225   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31226   exec 5>>config.log
31227   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31228   # would make configure fail if this is the last instruction.
31229   $ac_cs_success || { (exit 1); exit 1; }
31230 fi
31231
31232
31233 if test "${support_bat}" = "yes" ; then
31234   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31235   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31236   exit 1
31237   fi
31238
31239   QMAKEBIN="qmake"
31240
31241   if test "x$QMAKEQT4" != "xnone"; then
31242     QMAKEBIN=qmake-qt4
31243   fi
31244
31245   cd src/qt-console
31246   chmod 755 install_conf_file build-depkgs-qt-console
31247   echo "Creating bat Makefile"
31248   $QMAKEBIN
31249   make clean
31250   cd ${BUILD_DIR}
31251 fi
31252
31253 echo "Doing make of dependencies"
31254 ${MAKE:-make} depend
31255
31256 cd scripts
31257 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31258 chmod 755 dvd-handler dvd-simulator
31259 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31260 cd ..
31261
31262 c=updatedb
31263 chmod 755 $c/update_mysql_tables_10_to_11       $c/update_sqlite3_tables_10_to_11
31264 chmod 755 $c/update_postgresql_tables_10_to_11  $c/update_sqlite_tables_10_to_11
31265
31266 c=src/cats
31267
31268 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31269 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31270
31271 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31272 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31273
31274 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31275 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31276
31277 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31278 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31279
31280 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31281 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31282
31283 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31284 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31285
31286 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31287 chmod 755 $c/sqlite
31288 chmod 755 $c/mysql
31289
31290 chmod 755 src/win32/build-depkgs-mingw32
31291
31292
31293
31294 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31295    largefile_support="yes"
31296 fi
31297
31298 #
31299 # A whole lot of hand springs to get the compiler version.
31300 #  This is because gcc changed the output in version 3.0
31301 #
31302 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31303 if test "x${CCVERSION}" = "x" ; then
31304   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31305 fi
31306 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31307 if test x"${CXXVERSION}" = x ; then
31308   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31309 fi
31310
31311 if test "x${subsysdir}" = "x${sbindir}" ; then
31312    echo " "
31313    echo " "
31314    echo "You have set --sbindir and --with-subsys-dir"
31315    echo "  both equal to: ${subsysdir} "
31316    echo "  This is not permitted. Please reconfigure."
31317    echo " "
31318    echo "Aborting configuration ..."
31319    echo " "
31320    echo " "
31321    exit 1
31322 fi
31323
31324 if test "x${db_type}" = "xInternal" ; then
31325    echo " "
31326    echo " "
31327    echo "You have not specified either --enable-client-only or one of the"
31328    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
31329    echo "  This is not permitted. Please reconfigure."
31330    echo " "
31331    echo "Aborting the configuration ..."
31332    echo " "
31333    echo " "
31334    exit 1
31335 fi
31336
31337 echo "
31338 Configuration on `date`:
31339
31340   Host:                       $host -- ${DISTNAME} ${DISTVER}
31341   Bacula version:             ${VERSION} (${DATE})
31342   Source code location:       ${srcdir}
31343   Install binaries:           ${sbindir}
31344   Install config files:       ${sysconfdir}
31345   Scripts directory:          ${scriptdir}
31346   Archive directory:          ${archivedir}
31347   Working directory:          ${working_dir}
31348   PID directory:              ${piddir}
31349   Subsys directory:           ${subsysdir}
31350   Man directory:              ${mandir}
31351   Data directory:             ${datadir}
31352   C Compiler:                 ${CC} ${CCVERSION}
31353   C++ Compiler:               ${CXX} ${CXXVERSION}
31354   Compiler flags:             ${WCFLAGS} ${CFLAGS}
31355   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
31356   Libraries:                  ${LIBS}
31357   Statically Linked Tools:    ${support_static_tools}
31358   Statically Linked FD:       ${support_static_fd}
31359   Statically Linked SD:       ${support_static_sd}
31360   Statically Linked DIR:      ${support_static_dir}
31361   Statically Linked CONS:     ${support_static_cons}
31362   Database type:              ${db_type}
31363   Database port:              ${db_port}
31364   Database lib:               ${DB_LIBS}
31365   Database name:              ${db_name}
31366   Database user:              ${db_user}
31367
31368   Job Output Email:           ${job_email}
31369   Traceback Email:            ${dump_email}
31370   SMTP Host Address:          ${smtp_host}
31371
31372   Director Port:              ${dir_port}
31373   File daemon Port:           ${fd_port}
31374   Storage daemon Port:        ${sd_port}
31375
31376   Director User:              ${dir_user}
31377   Director Group:             ${dir_group}
31378   Storage Daemon User:        ${sd_user}
31379   Storage DaemonGroup:        ${sd_group}
31380   File Daemon User:           ${fd_user}
31381   File Daemon Group:          ${fd_group}
31382
31383   SQL binaries Directory      ${SQL_BINDIR}
31384
31385   Large file support:         $largefile_support
31386   Bacula conio support:       ${got_conio} ${CONS_LIBS}
31387   readline support:           ${got_readline} ${PRTREADLINE_SRC}
31388   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
31389   TLS support:                ${support_tls}
31390   Encryption support:         ${support_crypto}
31391   ZLIB support:               ${have_zlib}
31392   enable-smartalloc:          ${support_smartalloc}
31393   bat support:                ${support_bat} ${QWT_LDFLAGS}
31394   enable-gnome:               ${support_gnome} ${gnome_version}
31395   enable-bwx-console:         ${support_wx_console} ${wx_version}
31396   enable-tray-monitor:        ${support_tray_monitor}
31397   client-only:                ${build_client_only}
31398   build-dird:                 ${build_dird}
31399   build-stored:               ${build_stored}
31400   ACL support:                ${have_acl}
31401   Python support:             ${support_python} ${PYTHON_LIBS}
31402   Batch insert enabled:       ${support_batch_insert}
31403
31404   " > config.out
31405
31406 cat config.out